Commit Graph

52 Commits

Author SHA1 Message Date
Fish (David B. Trout)
a7c8ce6ce8 correct set priority handling 2014-01-03 13:54:14 -08:00
Fish (David B. Trout)
d5530d16f3 (fix line endings; no functional change) 2013-07-30 06:43:16 -07:00
Roger Bowler
7b0e84b6dd Allow regex replacement variables in HAO commands
The following variables are recognized in the command string
of an Hercules Automatic Operator rule:

$1 to $9 - the text which matched the 1st to 9th capturing
group in the target regular expression
$` - the text which precedes the regular expression match
$' - the text which follows the regular expression match
$$ - replaced by a single dollar sign

Substitution of a $n variable does not occur if there are
fewer than n capturing groups in the regular expression.
2013-07-12 11:22:01 -07:00
Jan Jaeger
439bdbca92 Remove subversion $Id$ tag
Update copyright statement to 2012
2012-03-24 18:41:51 +11:00
Fish (David B Trout)
bc278b5311 nocolor only needed if OPTION_MSGCLR defined
git-svn-id: file:///home/jj/hercules.svn/trunk@7758 956126f8-22a0-4046-8f4a-272fa8102e63
2011-09-19 10:23:23 +00:00
Jan Jaeger
9c72e28c21 Revert to Gregs memory allocation and disable non thread safe features
git-svn-id: file:///home/jj/hercules.svn/trunk@7748 956126f8-22a0-4046-8f4a-272fa8102e63
2011-09-10 08:10:49 +00:00
Jan Jaeger
1b1a7cc644 Correct MSGHLD, MSGCLR and simplify message processing
git-svn-id: file:///home/jj/hercules.svn/trunk@7741 956126f8-22a0-4046-8f4a-272fa8102e63
2011-09-04 09:52:00 +00:00
Jan Jaeger
e11e136ad0 Correct data type
git-svn-id: file:///home/jj/hercules.svn/trunk@7728 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-29 03:50:39 +00:00
Paul Gorlinsky
47f306d108 Revert bzero(d,s) to memset(d,0,s).
git-svn-id: file:///home/jj/hercules.svn/trunk@7604 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-22 19:23:35 +00:00
Paul Gorlinsky
9083dcf949 Add inline bzero function. Change memset(x, 0, l) to bzero(x, l)
git-svn-id: file:///home/jj/hercules.svn/trunk@7601 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-20 01:49:14 +00:00
Paul Gorlinsky
03a4560910 Update Copyright notices to 2011.
git-svn-id: file:///home/jj/hercules.svn/trunk@7593 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-18 22:19:10 +00:00
Jan Jaeger
f899973487 Remove command security vulnerability in hao processing
git-svn-id: file:///home/jj/hercules.svn/trunk@7582 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-18 07:51:01 +00:00
Jan Jaeger
a0b14aa2a2 Move haotid from sysblk to hao local
git-svn-id: file:///home/jj/hercules.svn/trunk@7581 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-18 07:46:29 +00:00
Jan Jaeger
cf7abc12f4 Fix HAO commands when issued from .cnf config file
git-svn-id: file:///home/jj/hercules.svn/trunk@7580 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-18 07:28:14 +00:00
Paul Gorlinsky
09233e600b Add missing castings... Windows type strlen() as size_t not int.
git-svn-id: file:///home/jj/hercules.svn/trunk@7497 956126f8-22a0-4046-8f4a-272fa8102e63
2011-06-08 01:42:05 +00:00
Fish (David B Trout)
2c78c5abf9 Tweak Hercules command echoing
git-svn-id: file:///home/jj/hercules.svn/trunk@7492 956126f8-22a0-4046-8f4a-272fa8102e63
2011-06-03 14:57:07 +00:00
Fish (David B Trout)
570914ae14 Fix hao (Hercules Automatic Operator) functionality to
ignore "<pnl.." color prefix and "msglvl debug" prefix.


git-svn-id: file:///home/jj/hercules.svn/trunk@7471 956126f8-22a0-4046-8f4a-272fa8102e63
2011-05-22 23:51:01 +00:00
Paul Gorlinsky
103837eb0c Message cleanup
git-svn-id: file:///home/jj/hercules.svn/trunk@6978 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-26 04:44:08 +00:00
Paul Gorlinsky
650296e40f Fix priority change function for windows
git-svn-id: file:///home/jj/hercules.svn/trunk@6948 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-19 22:44:07 +00:00
Jan Jaeger
a02270be90 Rework command and config processing:
- Change command class CONFIG to command level CONFIG
- Create group SYSNDIAG: commands may not be executed by means of DIAG8
- Fix segfault in single step trace




git-svn-id: file:///home/jj/hercules.svn/trunk@6925 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-16 19:46:19 +00:00
Bernard van der Helm
7f955a32fb Typo strcasecmp -> strcasestr
git-svn-id: file:///home/jj/hercules.svn/trunk@6234 956126f8-22a0-4046-8f4a-272fa8102e63
2010-07-28 13:57:14 +00:00
Paul Gorlinsky
7a0dd031e7 Add strcasestr to windows.
git-svn-id: file:///home/jj/hercules.svn/trunk@6232 956126f8-22a0-4046-8f4a-272fa8102e63
2010-07-27 20:14:12 +00:00
Bernard van der Helm
b3fbf00526 Further prevent reacting on own (herc) commands
git-svn-id: file:///home/jj/hercules.svn/trunk@6230 956126f8-22a0-4046-8f4a-272fa8102e63
2010-07-25 15:03:09 +00:00
Paul Gorlinsky
edd55527cf Update notices
git-svn-id: file:///home/jj/hercules.svn/trunk@5953 956126f8-22a0-4046-8f4a-272fa8102e63
2010-05-09 14:24:03 +00:00
Bernard van der Helm
d3e2b73cac sockdev.c standard messages. Some panel lay out changes and hoa doc
changes.


git-svn-id: file:///home/jj/hercules.svn/trunk@5949 956126f8-22a0-4046-8f4a-272fa8102e63
2010-05-09 06:15:20 +00:00
Bernard van der Helm
752cbbd080 Standard messages for thread error handling + error handling when a
thread is started


git-svn-id: file:///home/jj/hercules.svn/trunk@5857 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-20 13:55:05 +00:00
Bernard van der Helm
073b913305 Thread message cleanup and more
git-svn-id: file:///home/jj/hercules.svn/trunk@5850 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-19 19:53:46 +00:00
Bernard van der Helm
d0a6e7b6d8 std msg
git-svn-id: file:///home/jj/hercules.svn/trunk@5825 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-11 07:08:34 +00:00
Paul Gorlinsky
302299bd46 Message Cleanup. Changed empty table message on hao list command.
git-svn-id: file:///home/jj/hercules.svn/trunk@5824 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-11 04:02:50 +00:00
Paul Gorlinsky
1d129aea41 Message Cleanup. Consolidate messages in hao. Change wording for clarity.
git-svn-id: file:///home/jj/hercules.svn/trunk@5823 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-11 03:48:40 +00:00
Bernard van der Helm
c134bfab4d hao.c std msg
git-svn-id: file:///home/jj/hercules.svn/trunk@5822 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-10 18:49:02 +00:00
Paul Gorlinsky
be5e18ab94 Message Cleanup. Standardize DEVICE references.
git-svn-id: file:///home/jj/hercules.svn/trunk@5783 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-02 22:33:14 +00:00
Paul Gorlinsky
8eb7e78c7c Add new command CMDLEVEL and support for multiple levels or grouping of commands. OPER, MAINT, PROG, DEVEL, and DEBUG. Default is working as before. This only causes user input commands to be limited. HAO, panel functions, and DIAGnose initiated work as before.
git-svn-id: file:///home/jj/hercules.svn/trunk@5769 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-29 22:34:30 +00:00
Bernard van der Helm
2fdbf58df4 std msgs + CPU display on panel in std fmt
git-svn-id: file:///home/jj/hercules.svn/trunk@5757 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-27 09:50:58 +00:00
Paul Gorlinsky
110b48caca Windows changes. Add handlers for CTRL-C, CTRL-Break, CLOSE, SHUTDOWN and LOGOFF. Please see CHANGES for more details.
git-svn-id: file:///home/jj/hercules.svn/trunk@5703 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-18 20:30:29 +00:00
Bernard van der Helm
6c7b4e0cad hoa.c standard messages
git-svn-id: file:///home/jj/hercules.svn/trunk@5682 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-14 09:45:57 +00:00
Bernard van der Helm
56d0369332 copyright notice
git-svn-id: file:///home/jj/hercules.svn/trunk@5125 956126f8-22a0-4046-8f4a-272fa8102e63
2009-01-23 12:01:44 +00:00
Bernard van der Helm
45159411d1 End the licensed OS experiment
git-svn-id: file:///home/jj/hercules.svn/trunk@4924 956126f8-22a0-4046-8f4a-272fa8102e63
2008-11-30 09:12:41 +00:00
Bernard van der Helm
8c71677a6b PGMPRDOS implementation within hoa. Not perfect! please provide command
hoa clear if you want to violate the PGMPRDOS warning.


git-svn-id: file:///home/jj/hercules.svn/trunk@4921 956126f8-22a0-4046-8f4a-272fa8102e63
2008-11-29 12:26:19 +00:00
Fish (David B Trout)
78ea621d04 Put ensure consistent create_thread ATTR usage change back in
git-svn-id: file:///home/jj/hercules.svn/trunk@4908 956126f8-22a0-4046-8f4a-272fa8102e63
2008-11-04 05:56:31 +00:00
Roger Bowler
6302d56d42 Back out consistent create_thread ATTR modification
git-svn-id: file:///home/jj/hercules.svn/trunk@4905 956126f8-22a0-4046-8f4a-272fa8102e63
2008-11-03 15:31:58 +00:00
Fish (David B Trout)
33bd4dd1c9 Ensure consistent create_thread ATTR usage
git-svn-id: file:///home/jj/hercules.svn/trunk@4890 956126f8-22a0-4046-8f4a-272fa8102e63
2008-10-18 09:32:21 +00:00
Fish (David B Trout)
d4be265596 Increase max #of rules from 10 to 64
git-svn-id: file:///home/jj/hercules.svn/trunk@4846 956126f8-22a0-4046-8f4a-272fa8102e63
2008-08-23 11:55:23 +00:00
Bernard van der Helm
b3e6a3d6f4 Strip herc prefix before checking the message.
git-svn-id: file:///home/jj/hercules.svn/trunk@4820 956126f8-22a0-4046-8f4a-272fa8102e63
2008-07-30 15:29:04 +00:00
Fish (David B Trout)
38f5d9953b use 'if' statement instead of 'min' macro to fix Linux build error,
and remove redundant buffer initialization already done by hao_initialize.


git-svn-id: file:///home/jj/hercules.svn/trunk@4818 956126f8-22a0-4046-8f4a-272fa8102e63
2008-07-30 06:25:27 +00:00
Fish (David B Trout)
0476346116 Fix buffer mgmt bug in hao_thread causing garbage
git-svn-id: file:///home/jj/hercules.svn/trunk@4817 956126f8-22a0-4046-8f4a-272fa8102e63
2008-07-29 05:55:41 +00:00
Bernard van der Helm
9568ce2e24 Foutje, bedankt!
git-svn-id: file:///home/jj/hercules.svn/trunk@4814 956126f8-22a0-4046-8f4a-272fa8102e63
2008-07-26 14:39:42 +00:00
Bernard van der Helm
b1961d6488 Reject hao automatic commands. This causes deadlocks.
git-svn-id: file:///home/jj/hercules.svn/trunk@4813 956126f8-22a0-4046-8f4a-272fa8102e63
2008-07-26 14:30:17 +00:00
Ivan Warren
0a090d20e9 Update copyright notices to include current year (2007)
git-svn-id: file:///home/jj/hercules.svn/trunk@4405 956126f8-22a0-4046-8f4a-272fa8102e63
2007-06-23 00:04:19 +00:00
Jan Jaeger
64b9a97a0d Add CVS message log
git-svn-id: file:///home/jj/hercules.svn/trunk@4102 956126f8-22a0-4046-8f4a-272fa8102e63
2006-12-08 09:43:35 +00:00