summaryrefslogtreecommitdiff
path: root/src/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Updates from http://www.isc.org/products/BIND/patches/bind4910.diffmillert2002-11-141-22/+37
| | | | | | o check __dn_skipname() return value for errors o fix sanity checking of reverse records, getnetbyname() may not have been working before.
* thread safe libc -- 2nd try. OK miod@, millert@marc2002-11-053-93/+44
| | | | Thanks to miod@ for m68k and vax fixes
* back out previous patch.. there are still some vax/m68k issuesmarc2002-11-033-44/+93
|
* libc changes for thread safety. Tested on:marc2002-11-033-93/+44
| | | | | | | alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way.
* Describe the actual operation of inet_net_pton with a few examples.marc2002-10-261-32/+65
| | | | | Also add caution regarding dst field initialization. operation text OK millert@
* missing arg; peterw@ifost.org.auderaadt2002-09-251-2/+2
|
* Move __cleanup into mprotect'ed page to prevent unintentional modificationsdhartmei2002-09-143-17/+70
| | | | similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
* ansi pedantic. ok deraadt@jakob2002-09-071-11/+12
|
* missing include, ok theohenning2002-09-061-1/+2
|
* use socklen_t where needed; henning pvalchev okderaadt2002-09-062-5/+5
|
* re-enable function pointer table protection, this time make sure thatdhartmei2002-08-303-71/+92
| | | | | malloc.c gets the first mmap() call (since it depends on that, for its sbrk(0) use). ok deraadt@
* Limit UDP payload size for EDNS0 to 0xffff, not use lower 16bit value.itojun2002-08-281-2/+4
| | | | from onoe@sm.sony.co.jp
* allocate 64K recieve buffer for DNS responses.itojun2002-08-273-48/+78
|
* deal with negative return value from snprintf.itojun2002-08-231-3/+5
|
* drop AAAA reply with IPv4 mapped address. sync w/kameitojun2002-08-222-2/+18
| | | | draft-itojun-v6ops-v4mapped-harmful-00.txt
* Suggest better types in examples; from NetBSDmiod2002-08-191-2/+2
|
* snprintf audit. debug inet_neta() on non-continuous masks (like 0.255.0.255),itojun2002-08-193-36/+76
| | | | more pickier string manipulation. deraadt ok
* remove obsolete comment, no SIOCGIFCONF path any moreitojun2002-08-091-5/+2
|
* unifdef for auditability.itojun2002-08-091-112/+5
|
* Back it out, it breaks something in perl (seen with spamassassin), debugdhartmei2002-07-313-87/+71
| | | | first.
* permit calloc(0, N) and calloc(N, 0) -- malloc(0) does the right thing; ↵deraadt2002-07-311-2/+2
| | | | markus miod ok
* more strlcpy; itojun okderaadt2002-07-301-4/+4
|
* return failure if integer overflow happens. sigh; too people had toderaadt2002-07-301-1/+7
| | | | help get this right.
* Replace atexit handler. mprotect() the pages so an attempt to modify thedhartmei2002-07-293-71/+87
| | | | | function pointers from the outside will segfault. Idea, hints and feedback from deraadt. ok deraadt.
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.itojun2002-07-291-2/+8
| | | | (need some string-manipulation cleanup near here)
* more snprintf and strlcpy; help from millertderaadt2002-07-251-13/+48
|
* kill more strcpyderaadt2002-07-254-16/+15
|
* cleanupderaadt2002-07-251-23/+26
|
* Convert to ANSI function headers and make 'ch' argument int, not char.millert2002-07-242-8/+6
| | | | Noticed by deraadt@
* have _THREAD_PRIVATE_MUTEX for DNS/YP/hosts lookup.itojun2002-07-241-3/+16
|
* more type pedantitojun2002-07-011-2/+2
|
* lint clean (and don't mixup signed/unsigned). from martin husemannitojun2002-07-011-12/+12
|
* make more pedantic check on strtoul. from deraadt, sync w/kameitojun2002-07-011-8/+12
|
* correct port range check. from deraadt. sync w/kame. bind-bugs have ↵itojun2002-06-291-2/+3
| | | | already notified.
* Replace strtou?q() with the more standard strtou?ll(), using weakmillert2002-06-295-42/+108
| | | | aliases to fake up strtou?q(). espie@ OK.
* %d -> %u. mostly in #ifdef DEBUG.itojun2002-06-275-34/+34
|
* %d/%u mixup (in #ifdef DEBUG)itojun2002-06-272-5/+5
|
* ntohs() returns unsigned valueitojun2002-06-271-2/+2
|
* correct bad practice in the code - it uses two changing variablesitojun2002-06-262-26/+22
| | | | | | | to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. this fix is NOT critical.
* avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>itojun2002-06-262-43/+33
| | | | | | | | correct bad practice in the code - it uses two changing variables to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. this fix is critical.
* spelling; moritz@jodeit.orgderaadt2002-06-091-2/+4
|
* unsigned vs unsigned intderaadt2002-05-271-3/+3
|
* pid_t cleanupderaadt2002-05-261-3/+3
|
* try to use strlcpy and snprintf more; ok variousderaadt2002-05-249-38/+43
|
* more strlcpy and snprintfderaadt2002-05-223-47/+41
|
* do not reverse-lookup scoped ipv6 address - it is meaningless as there'sitojun2002-05-181-1/+7
| | | | no way to pass scope id. sync w/kame
* For strncpy(), dst is not NUL terminated if strlen(src) >= len.millert2002-05-131-6/+5
| | | | Also fix a typo; adapted from a patch by Moritz Jodeit
* Kill/adjust r(login|exec)d? references now that those are no longer inmillert2002-05-061-5/+1
| | | | the tree.
* o) start new sentence on a new line;mpech2002-05-011-2/+3
| | | | | | | o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
* Initial cleanup:mpech2002-04-305-10/+10
| | | | | | | | | | | | o) remove extra space in the end of line; o) remove extra blank lines in the end of file; o) remove .Pp before .Ss; o) CAVEAT -> CAVEATS; o) fix usage of .Fa; o) <blank-line> -> .Pp; o) wrap long lines; millert@ ok