1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00
Commit graph

61 commits

Author SHA1 Message Date
Jun-ichi Takimoto
4d7b34c5f3 unposted: silence warnings on Cygwin
On Cygwin, h_name in struct hostent is 'const char*'
2017-03-10 18:41:25 +09:00
Jun-ichi Takimoto
a4020e10a3 37868: add 'static' to file local variables 2016-02-03 01:25:33 +09:00
Jun-ichi Takimoto
ca3bc0d95d 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
Peter Stephenson
0628802baf 37014: Improved internal parameter setting.
Enhance WARNCREATEGLOBAL to work in many more cases.

Don't create REPLY as an integer if it didn't previously exist
as one, even if the value to be set is integral, as this is likely to
mess up later uses of REPLY.
2015-10-29 15:01:07 +00:00
Peter Stephenson
15490398d7 36944: extend fd management to zsocket 2015-10-24 20:48:47 +01:00
Peter Stephenson
1f6dcf9bcd 36941: Mark file descripors in ztcp as used.
Allow such file descriptors to be either internal and closed on exec
or external and so managed explicitly by module.
2015-10-24 20:24:35 +01:00
Peter Stephenson
cbdb3cf9be not quite posted: check for error return before EINTR 2015-08-10 13:44:12 +01:00
Joshua Krusell
9728f535e2 36039: Restart socket commands on EINTR 2015-08-10 12:32:33 +01:00
Joshua Krusell
855ceea901 35939: fix select polling in ztcp and zsocket 2015-07-22 13:06:56 -07:00
Mikael Magnusson
e2fe81ae9a 33785: Fix leaks of desthost in ztcp
Found by coverity.
2014-11-24 08:16:48 +01:00
Wayne Davison
2f8aaaf5e4 27286: Made movefd() return the targetfd on success. Added
a little more error checking in the callers of movefd().
2009-09-22 16:04:13 +00:00
Peter Stephenson
51409732d0 27284: better use of movefd() 2009-09-22 09:17:05 +00:00
Clint Adams
cbc24017fe 26013: don't ztrdup the other buffer returned by inet_ntoa. cf. 25987. 2008-11-06 01:35:12 +00:00
Clint Adams
1b78e1a912 25987: don't ztrdup the buffer returned by inet_ntoa. 2008-11-01 18:20:14 +00:00
Clint Adams
01ba47bd4f revert that 2007-07-12 03:09:12 +00:00
Clint Adams
a5187bb6ac 23670: use getaddrinfo() and getnameinfo() instead of get*by* functions. 2007-07-12 02:33:19 +00:00
Peter Stephenson
1b52f47cf2 23665: autoloading of module features and related tweaks 2007-07-06 21:52:38 +00:00
Peter Stephenson
3fbbdf245b 23482: more typos 2007-05-29 09:53:44 +00:00
Peter Stephenson
b0c5f09169 see 23479: add initial features support for modules 2007-05-28 22:57:39 +00:00
Peter Stephenson
10f36dd29b 23168: fix error message for failed bind 2007-02-13 11:08:12 +00:00
Peter Stephenson
dd5602f59b 22474: use variable argument lists to improve error message handling 2006-05-30 22:35:03 +00:00
Peter Stephenson
fece5e8960 20556: change SOCKLEN_T to ZSOCKLEN_T to avoid clash 2004-11-16 11:04:25 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Oliver Kiddle
0b787b5da2 19525: suppress compiler warnings and complete groups using lookupd on Mac OS 2004-03-03 11:05:40 +00:00
Peter Stephenson
815bc92148 a la 19209: zcalloc -> zshcalloc 2003-10-29 19:17:30 +00:00
Peter Stephenson
1be7d4744d 18559, 18562: make modules use proper option arguments 2003-05-22 09:48:25 +00:00
Peter Stephenson
f319daae1d 18466: tcp.mdh only included by C file 2003-04-23 18:47:59 +00:00
Peter Stephenson
5c1f3b65a6 18202: New TCP function system plus small error message change in ztcp. 2003-02-06 12:21:49 +00:00
Peter Stephenson
9634760d5e 17582: Improved option argument handling.
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-27 21:10:30 +00:00
Peter Stephenson
b2226ac72f remove builtin when tcp module is unloaded. 2002-06-05 21:02:34 +00:00
Peter Stephenson
69b570e28c 17253: ztcp -L gives parseable information on tcp session 2002-05-30 15:16:18 +00:00
Peter Stephenson
7898d5b198 17249: fix user output from ztcp 2002-05-29 13:15:35 +00:00
Peter Stephenson
00d476ac20 17220: Src/Modules/tcp.c: bugs using ztcp to list connections. 2002-05-24 13:01:57 +00:00
Peter Stephenson
dbe104ca8c 17171: Src/Modules/tcp.c: ztcp didn't return failure
when a connect() failed.
2002-05-16 14:05:27 +00:00
Peter Stephenson
92e651c940 17162: Src/Modules/tcp.c: prevent warning on
gethostbyaddr() arguments.
2002-05-14 17:52:50 +00:00
Peter Stephenson
568d2e0aba 17161: Src/Modules/tcp.c: length parameter to accept()
wasn't initialised, causing random failures.
2002-05-14 17:29:49 +00:00
Peter Stephenson
12e6a9ad32 17102: looking up TCP sessions by fd returned the wrong pointer 2002-05-08 16:45:21 +00:00
Peter Stephenson
8c47be28f9 17097: closing all TCP sessions referenced freed memory. 2002-05-08 15:54:05 +00:00
Peter Stephenson
421123b0f0 17040: Src/Modules/tcp.c: AF_INET6 wasn't copied into the
socket structure for IPv6.
17041: Src/Modules/zftp.c: Minor but fatal typos creating a data
connection for zftp using IPv6.
2002-04-25 14:06:47 +00:00
Peter Stephenson
2a55dc74ef 17011: Src/Modules/tcp.c, Src/Modules/zftp.c: restore
freehostent() incorrectly removed in 16172.
2002-04-18 11:39:13 +00:00
Peter Stephenson
c9e1fd9567 16176: Src/Modules/tcp.c, Src/Modules/zftp.c: after fdclose(),
TCP control fd is no longer valid, but we still need to remove
the session cleanly.
2001-10-26 17:15:17 +00:00
Peter Stephenson
6d798f6700 16172: freehostent -> zfreehostent to avoid name clash 2001-10-26 12:06:38 +00:00
Bart Schaefer
fdb4782642 Remove <arpa/telnet.h> from tcp.c. 2001-10-14 17:23:30 +00:00
Oliver Kiddle
bc0f49e09b remove duplicated includes which caused problems on IRIX 5 (15987) 2001-10-08 16:36:54 +00:00
Andrey Borzenkov
b109834dc2 15964: use SOCKLEN_T 2001-10-08 07:19:35 +00:00
Clint Adams
1bbe1d1b0a 15919: use LinkLists in place of somewhat equivalent code 2001-10-02 02:35:00 +00:00
Clint Adams
8c05772007 15886: use select if poll is not available, or complain if neither are available 2001-09-27 15:36:41 +00:00
Clint Adams
ab205e5bb9 15780: rename **arg to **dargs 2001-09-10 19:19:15 +00:00
Clint Adams
2e174804c8 15779: ztcp -d 2001-09-10 15:23:37 +00:00
Clint Adams
718fb33b29 stupid bugfixes 2001-09-10 12:37:21 +00:00