Commit Graph

23 Commits

Author SHA1 Message Date
David du Colombier
502423f4a8 primes: remove unused lrand function 2015-08-03 11:12:34 +02:00
David du Colombier
1bd5583c53 move README to README.md 2015-08-03 11:12:18 +02:00
David du Colombier
798c8c6df8 fix warnings reported by Coverity
fd.c:230 negative_returns: fd is passed to a parameter that cannot be negative.
net.c:65 check_return: Calling setsockopt(fd, 1, 2, (char *)&n, 4U) without checking return value.
net.c:77 check_return: Calling fdnoblock(fd) without checking return value.
net.c:112 check_return: Calling fdnoblock(cfd) without checking return value.
net.c:114 check_return: Calling setsockopt(cfd, IPPROTO_TCP, 1, (char *)&one, 4U) without checking return value.
net.c:144 leaked_storage: Variable result going out of scope leaks the storage it points to.
net.c:168 check_return: Calling fdnoblock(fd) without checking return value.
net.c:173 check_return: Calling setsockopt(fd, 1, 6, &n, 4U) without checking return value.
net.c:206 check_return: Calling getsockopt(fd, 1, 4, (void *)&n, &sn) without checking return value.
task.c:59 negative_returns: fd is passed to a parameter that cannot be negative.
tcpload.c:50 Calling fdread without checking return value (as is done elsewhere 4 out of 5 times).
tcpproxy.c:51 check_return: Calling fdnoblock(fd) without checking return value.
2015-06-24 23:16:58 +02:00
David du Colombier
728d616727 tcpproxy: close fd 2015-06-18 21:31:54 +02:00
David du Colombier
f75fc7ab04 fix warnings reported by clang static analyzer
channel.c:338:2: warning: Undefined or garbage value returned to caller
channel.c:353:2: warning: Undefined or garbage value returned to caller
channel.c:368:2: warning: Undefined or garbage value returned to caller
channel.c:383:2: warning: Undefined or garbage value returned to caller
2015-06-15 22:11:58 +02:00
David du Colombier
305a8b3f47 deprecate gethostbyname 2015-06-15 22:10:38 +02:00
David du Colombier
2f8a5a51c2 fix name resolution using gethostbyname 2015-06-15 22:06:31 +02:00
David du Colombier
53021339da fix clang warnings
amd64-ucontext.h:3:25: warning: redefinition of typedef 'mcontext_t' is a C11 feature
amd64-ucontext.h:4:25: warning: redefinition of typedef 'ucontext_t' is a C11 feature
context.c:86:3: warning: indirection of non-volatile null pointer will be deleted, not trap
2015-06-14 17:12:51 +02:00
David du Colombier
3ae1151187 fix warning
httpload.c:40:17: warning: unused parameter ‘v’
2015-04-11 16:41:34 +02:00
David du Colombier
726fe05c13 use portable ucontext on linux/amd64 2014-08-03 19:12:47 +02:00
David du Colombier
58868245a2 more examples 2014-08-03 18:59:15 +02:00
David du Colombier
02b74edba1 implement fdreadn 2014-08-03 18:51:25 +02:00
David du Colombier
0d454584f8 enable debugging functions when taskdebuglevel is set 2014-08-03 18:43:01 +02:00
David du Colombier
b0c00d19fb notice valgrind about stack switching 2014-08-03 18:40:18 +02:00
David du Colombier
cbb722db29 remove trailing spaces 2014-08-03 18:28:37 +02:00
David du Colombier
cf7e56655b initialize socklen 2014-08-03 18:19:36 +02:00
David du Colombier
ef218ac4d8 implement epoll (Jamie Turner) 2012-08-01 05:00:00 +02:00
David du Colombier
f5ea2e72ba implement ipv6 2012-08-01 04:00:00 +02:00
David du Colombier
e82890a2aa tcpproxy: reduce verbosity 2012-08-01 03:00:00 +02:00
David du Colombier
eed781b1a9 fix extra warnings
channel.c:116:12: warning: comparison between signed and unsigned integer expressions
fd.c:19:14: warning: unused parameter ‘v’
task.c:316:14: warning: unused parameter ‘s’
task.c:346:21: warning: unused parameter ‘v’
2012-08-01 02:00:00 +02:00
David du Colombier
0609977c6e fix warnings
print.c:106:10: warning: variable ‘neg’ set but not used
tcpproxy.c:55:25: warning: cast to pointer from integer of different size
tcpproxy.c:64:7: warning: cast from pointer to integer of different size
testdelay.c:15:12: warning: cast from pointer to integer of different size
testdelay.c:16:32: warning: cast from pointer to integer of different size
testdelay.c:31:25: warning: cast to pointer from integer of different size
2012-08-01 01:00:00 +02:00
Russ Cox
b75fdf3424 recent changes 2011-01-03 15:08:59 -05:00
Russ Cox
42f058999e libtask as of 2008/08/01 2009-10-10 13:04:03 -07:00