Commit Graph

95 Commits

Author SHA1 Message Date
Fish (David B. Trout)
1cda4f155a (sigh!) Fix typo in error message. (I hate when I do that) 2015-01-19 14:12:10 -08:00
Fish (David B. Trout)
a2e06edcc9 Fixes for unreliable console keepalive issue #44:
1. Fix configure.ac tcp.h header and keepalive constant checks and report during ./configure the keepalive support that was detected (none, basic or full).

2. #include the correct tcp.h header in hstdinc.h

3. Issue warning message at build time (during make) when full keepalive support is missing or partial.

4. Report partial or missing keepalive build support via version.c "With" and "Without" messages.

5. Issue error or warning in both impl.c as well as in 'conkpalv' command/statement processing function when keepalive support is either missing or only partially supported. Same for the 2703 device 'ka=' option too.

6. Enhance set_socket_keepalive function to let the caller know not only about failures but also about partial-only successes (so they can be reported).

7. Fix the bad setsockopt call in the Linux version of the set_socket_keepalive function that was using the wrong value, which was at the heart of the problem. (Note: setsockopt was returning "success" anyway even though it had actually failed! [to accomplish anything].)

8. Introduce new get_socket_keepalive function to allow retrieval and reporting of current keepalive settings for a given socket.

9. Manually maintain socket keepalive values for Windows builds so it too can support retrieval of current values via new get_socket_keepalive function. (see comments in w32util.c "get_socket_keepalive" function!)

10. Minor HTML documentation edits.
2015-01-19 13:35:29 -08:00
Fish (David B. Trout)
e184143427 Use strlcat, NOT strncat! (strncat is not safe!)
Too many programmers forget argument 3 is NOT the size of the destination buffer but rather the maximum number of chars to append. They also tend to forget the destination buffer will NOT be NULL terminated if not enough room remains. Buffer overflows are very common with strncat. Our "strlcat" function on the other hand, ensures the destination buffer will NEVER overflow and will ALWAYS be NULL terminated. Note too, however, strlcat does NOT return char* either, but rather the new new updated strlen of destination.
2014-10-27 03:56:38 -07:00
Enrico Sorichetti
c396a57818 Fixed some (silenced others) clang warnings
more to analyze and fix for linux
2014-10-08 12:49:31 +02:00
Fish (David B. Trout)
0316c4f294 More set thread priority tweaking:
1. Move SETMODE calls into hthreads functions.
2. Issue message that identifies source statement that failed.
2014-01-13 02:01:39 -08:00
Fish (David B. Trout)
a7c8ce6ce8 correct set priority handling 2014-01-03 13:54:14 -08:00
David Durgee
1d1b9a1b63 FIX async comm lines bug impacting VM/ESA 1.5
Fixes issue #3.
2014-01-02 18:13:28 -08:00
dasdman
de39e3a40b Update channel counts and residual counts to use U32 internally instead of U16 for large block handling. 2013-08-17 19:56:13 -07:00
Fish (David B. Trout)
7365302b25 New COMMADPT crlf option: "crlf2cr=yes|no" 2013-08-04 11:17:56 -07:00
Fish (David B. Trout)
d0315e9ff0 COMMADPT: Add keepalive support per David Durgee request [dhdurgee@verizon.net] 2013-07-28 14:19:31 -07:00
Max H. Parke
8fa5a4cda8 COMMADPT driver mods for APL\360 2013-07-28 13:08:18 -07:00
Fish (David B. Trout)
b2092176d4 (remove tabs; no functional change) 2012-10-27 02:37:53 -07:00
Jan Jaeger
0ca0539f2a Fix DASD initialisation broken by devinit change 2012-04-13 20:58:06 +10:00
Jan Jaeger
601a0864ef Simplify devinit command, move device dependent processing out to the device initialisation routines 2012-04-13 20:27:09 +10:00
Enrico Sorichetti
07f542edcd commadpt.* fixed the copyright date 2012-03-31 08:38:46 +02:00
Enrico Sorichetti
18a36783c4 commadpt patch as per last request on hercules-390 forum 2012-03-30 21:54:47 +02:00
Jan Jaeger
439bdbca92 Remove subversion $Id$ tag
Update copyright statement to 2012
2012-03-24 18:41:51 +11:00
Jan Jaeger
85beb7e9dc QDIO Thin Interrupts
git-svn-id: file:///home/jj/hercules.svn/trunk@7726 956126f8-22a0-4046-8f4a-272fa8102e63
2011-08-28 11:41:48 +00:00
Paul Gorlinsky
2a24e1edd5 Remove unreferenced variables...
git-svn-id: file:///home/jj/hercules.svn/trunk@7607 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-22 22:09:34 +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
d341815c17 Provide consistancy in EXCP counting
git-svn-id: file:///home/jj/hercules.svn/trunk@7541 956126f8-22a0-4046-8f4a-272fa8102e63
2011-07-03 07:24:14 +00:00
Paul Gorlinsky
108c960997 change reserved word class and private
git-svn-id: file:///home/jj/hercules.svn/trunk@7410 956126f8-22a0-4046-8f4a-272fa8102e63
2011-04-10 04:35:42 +00:00
Paul Gorlinsky
cce0ac690a Begin support for extended device query.
git-svn-id: file:///home/jj/hercules.svn/trunk@7357 956126f8-22a0-4046-8f4a-272fa8102e63
2011-03-19 02:06:55 +00:00
Jan Jaeger
ceb0ce0fb3 Move halt device function ^C devhnd
git-svn-id: file:///home/jj/hercules.svn/trunk@7215 956126f8-22a0-4046-8f4a-272fa8102e63
2010-12-27 17:11:13 +00:00
Jan Jaeger
caef3233f9 QETH mods
git-svn-id: file:///home/jj/hercules.svn/trunk@7195 956126f8-22a0-4046-8f4a-272fa8102e63
2010-12-18 21:33:34 +00:00
Paul Gorlinsky
39596840ca Message cleanup
git-svn-id: file:///home/jj/hercules.svn/trunk@6982 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-26 16:49:10 +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
332f1cc653 Message cleanup
git-svn-id: file:///home/jj/hercules.svn/trunk@6973 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-25 21:49:42 +00:00
Paul Gorlinsky
55e4b60037 snprintf buffer overflow checks. qports http port display restored. SRVPRIO for server thread priority.
git-svn-id: file:///home/jj/hercules.svn/trunk@6889 956126f8-22a0-4046-8f4a-272fa8102e63
2010-10-14 01:37:56 +00:00
Bernard van der Helm
ea4ea1560d commadpt.c std debug msg
git-svn-id: file:///home/jj/hercules.svn/trunk@6177 956126f8-22a0-4046-8f4a-272fa8102e63
2010-07-12 14:54:56 +00:00
Paul Gorlinsky
b67a543aaf std msg cleanup
git-svn-id: file:///home/jj/hercules.svn/trunk@6120 956126f8-22a0-4046-8f4a-272fa8102e63
2010-06-15 03:11:33 +00:00
Paul Gorlinsky
1c2aea3b76 EXCPs changed to IO on device query
git-svn-id: file:///home/jj/hercules.svn/trunk@6118 956126f8-22a0-4046-8f4a-272fa8102e63
2010-06-13 18:05:07 +00:00
Bernard van der Helm
fe4820b164 Changed all static sprintf(buf to snprintf(buf, buflen for more
robustness. And solved a segmentation fault in the lsdep command.


git-svn-id: file:///home/jj/hercules.svn/trunk@6081 956126f8-22a0-4046-8f4a-272fa8102e63
2010-06-03 14:08:26 +00:00
Paul Gorlinsky
ed65e8c6b7 Update notices; Standardize preamble...
git-svn-id: file:///home/jj/hercules.svn/trunk@6043 956126f8-22a0-4046-8f4a-272fa8102e63
2010-05-25 22:34:00 +00:00
Paul Gorlinsky
a8d53f41f4 Update code preamble.
git-svn-id: file:///home/jj/hercules.svn/trunk@5928 956126f8-22a0-4046-8f4a-272fa8102e63
2010-05-04 01:01:37 +00:00
Bernard van der Helm
ea67369e06 comm*.c std msg
git-svn-id: file:///home/jj/hercules.svn/trunk@5926 956126f8-22a0-4046-8f4a-272fa8102e63
2010-05-03 20:03:47 +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
Paul Gorlinsky
d15f8eb3dd Update packet trace function
git-svn-id: file:///home/jj/hercules.svn/trunk@5855 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-19 22:08:02 +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
Fish (David B Trout)
defa2b9daf Add missing SSID_TO_LCSS argument to WRITEMSG calls so that the
device number prints correctly, and remove some trailing blanks.

git-svn-id: file:///home/jj/hercules.svn/trunk@5845 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-18 03:33:01 +00:00
Fish (David B Trout)
725d149fe5 Fix buffer overflow in commadpt stmt parser logic.
git-svn-id: file:///home/jj/hercules.svn/trunk@5844 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-18 03:24:24 +00:00
Bernard van der Helm
7774210fa1 Final actions std msgs and some warning msgs (again)
git-svn-id: file:///home/jj/hercules.svn/trunk@5788 956126f8-22a0-4046-8f4a-272fa8102e63
2010-04-03 08:08:25 +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
7dbfb63c05 smc - move declaration to beginning of function
git-svn-id: file:///home/jj/hercules.svn/trunk@5710 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-19 15:01:06 +00:00
Bernard van der Helm
683b31087d commadpt.c std msg
git-svn-id: file:///home/jj/hercules.svn/trunk@5707 956126f8-22a0-4046-8f4a-272fa8102e63
2010-03-19 07:52:54 +00:00
Jay Maynard
9eb2126e10 Added TTY and 2741 support to 2703.
git-svn-id: file:///home/jj/hercules.svn/trunk@5346 956126f8-22a0-4046-8f4a-272fa8102e63
2009-05-14 02:19:35 +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