summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2013-04-16Replace a realloc() + memcpy() with calloc() + memcpy().Todd C. Miller
We don't need to zero pfd but using calloc() gets us overflow protection for free. OK chl@ deraadt@
2013-04-15Remove CTL_USER hierarchy from sysctl()Philip Guenther
(Use sysconf() or confstr() instead) ok miod@ millert@
2013-04-15Implement fdatasync() as a wrapper around fsync()Matthew Dempsky
ok guenther, deraadt, jmc
2013-04-15SHA-224 is to SHA-256 as SHA-384 is to SHA-512. It was added in aTodd C. Miller
later revision of FIPS-180. OK miod@ jmc@ guenther@ djm@
2013-04-15Crank due to statfs changes and other inbound commits.Joel Sing
2013-04-15Back out r1.17 and its subsequent conversion to poll. OtherwiseTodd C. Miller
we can get into a svc_getreq_poll() -> readtcp() -> svc_getreq_poll() loop until we run out of stack. If we want to avoid blocking on the new fd in readtcp() we need to poll() in svc_getreq_poll(), which will require a more elaborate change. OK tedu@
2013-04-14spacingTheo de Raadt
2013-04-14typo; Benedikt SteinbuschStuart Henderson
2013-04-11Proper access of _THREAD_PRIVATE storage. Avoids a mem leak and reinitOtto Moerbeek
of resolver context for each resolver call for single threaded programs. With and ok tedu@ ok eric@
2013-04-11Fix obviously stupid bug in the PIC_{LOAD,STORE} macros when compiling withMiod Vallat
-fPIC. Harmless since we build libc -fpic so far.
2013-04-09show what we parsed in debug output; ok guether@Otto Moerbeek
2013-04-08Do not fail if the user buffer is too short to hold the packet: fill it upEric Faurot
to the given size and return the packet length. issue spotted by weerd@
2013-04-08Updates to SYNOPSIS, ERRORS, and STANDARDS.Philip Guenther
2013-04-08Use .Er for errno E* constantsPhilip Guenther
2013-04-08Comply with rfc2553. lib/libc/net/getaddrinfo.c already has this right.Christopher Zimmermann
This fixes hostname resolution for OpenVPN 2.3.1. ok eric@.
2013-04-08macro fix for previous;Jason McIntyre
2013-04-08Updates to SYNOPSIS, ERRORS, and STANDARDS.Philip Guenther
2013-04-08zap trailing whitespace;Jason McIntyre
2013-04-08Updates to SYNOPSIS, ERRORS, and STANDARDS.Philip Guenther
getrlimit(2) RLIMIT_STACK wording suggested by jmc@
2013-04-06explain what "default" means in sndio.7 rather than {sio,mio}_open.3,Alexandre Ratchov
with tweaks from jmc
2013-04-06a little fix for the version historyTed Unangst
2013-04-06remove more references to kern.rthreads sysctl.Ted Unangst
many thanks to jmc for noticing
2013-04-06fix race when exiting a detached thread. observed by and ok guentherTed Unangst
2013-04-06rthread sysctl isn't experimental anymore. oh, and it's gone too.Ted Unangst
2013-04-05- Add comments regarding copies of these files also in libexec/ld.soKurt Miller
okay guenther@
2013-04-05do not fail on EINTREric Faurot
suggested by deraadt@
2013-04-04fix alignment issue in getnetby{addr,name}() too.Eric Faurot
2013-04-04use the provided ALIGN() macro instead of re-inventing a square wheel.Eric Faurot
prodded by deraadt@
2013-04-03properly follow the CNAME chain in reverse lookupsEric Faurot
spotted by sthen@
2013-04-03Use MSG_NOSIGNAL when writing DNS queries over TCP sockets to ensureMatthew Dempsky
we don't trigger SIGPIPE. ok millert
2013-04-03Update a comment about standards requirementsPhilip Guenther
2013-04-03Drop an unnecessary #includePhilip Guenther
reminded by schwarze@
2013-04-03Handle big time_t.Philip Guenther
Use clock_gettime(CLOCK_MONOTONIC) instead of gettimeofday() when measuring time intervals for debugging output. ok ratchov@
2013-04-03Set the stream orientation in open_{,w}memstream().Philip Guenther
Check it in the regress test ok mpi@
2013-04-02add comment for how EINPROGRESS is handled there.Eric Faurot
2013-04-02make sure we always point before the current offset.Eric Faurot
spotted by matthew@
2013-04-02better implementation for tcp_read() that can get the packet length inEric Faurot
multiple read. prodded by deraadt@
2013-04-01If more than one lookup line is found in resolv.conf, the latest oneEric Faurot
takes precedence. Simplify code while there. suggested by deraadt@
2013-04-01properly check for domain name truncation at various places and failEric Faurot
if that happens. prodded by deraadt@
2013-04-01When there are multiple groups of functions with their own #includesPhilip Guenther
listed, the #includes in each group are independent, so that users don't need to guess at possible carry-over. general idea ok otto@ millert@ actual diff ok jmc@ schwarze@
2013-04-01space cleanup; ok ericTheo de Raadt
2013-04-01space cleanup; ok ericTheo de Raadt
2013-04-01rename fieldEric Faurot
2013-04-01simpler and saner implementation for tcp_write(). now fully handlesEric Faurot
short writes. prodded by deraadt@
2013-04-01fix alignment issue in the structure filled by gethostby{name,addr}()Eric Faurot
spotted by naddy@
2013-03-31- Don't include guard pages in the stack size.Kurt Miller
From Christian Schulte (cs at schulte.it) - Use stack->sp instead of recalculating it. From guenther@ okay guenther@
2013-03-31More SYNOPSIS, ERRORS, and STANDARDS updatesPhilip Guenther
2013-03-31Principle of least astonishment: implement nameserver retry/backoff asEric Faurot
in the former resolver.
2013-03-31Add a couple commas, as suggested by jmc@Philip Guenther
2013-03-31getaddrinfo is now thread-safe.Brad Smith
ok eric@