summaryrefslogtreecommitdiff
path: root/src/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* In srandomdev(), if we can't access /dev/arandom, use the sysctl() instead.millert2002-12-061-10/+27
| | | | | We don't want to use the sysctl() by default since we are reading more than just a few bytes of entropy when setting up the state.
* Fix two compatibility issues with our getopt_long_only() vs. the GNU version:millert2002-12-061-28/+61
| | | | | | | | | | | | | | o Check for long options even when not at the beginning of an option. For instance, if -a is a short option w/o an arg and -static is a boolean long option then -astatic is valid for getopt_long_only(). o If a potential long argument does not match longopts and the first character is not a short option, print a warning and skip the rest of the argument. Also clean up some trailing whitespace and change return value of parse_long_options() from -2 to -1 when unmatched and in long_only mode. With these fixes the binutils ld seems happy with our getopt_long_only()
* Correctly handle -Wlong_arg (no space between -W and long_arg) when "W;"millert2002-12-051-6/+8
| | | | is in optstring.
* Reorganize this so that getopt_only_only() works correctly.millert2002-12-051-221/+208
| | | | | | | | In order for getopt_only_only() to work we need to check for long options before short ones. I have merged getopt_internal and getopt_long_internal into a single function with the actual long args parsing broken out into a separate function. This also simplifies the flow of control.
* make getopt_long and getopt_long_only protos match getopt.hmillert2002-12-051-3/+3
|
* Add "RETURN VALUES" sectionsmillert2002-12-042-2/+52
|
* .Xr getopt_longmillert2002-12-041-1/+2
|
* Whoops, add missing #ifdef REPLACE_GETOPTmillert2002-12-031-2/+4
|
* fix typomillert2002-12-031-1/+1
|
* GNU-like getopt_long() from NetBSD with changes by me to supportmillert2002-12-033-8/+845
| | | | | | | | getopt_long_only(). At some point this should replace the BSD getopt(3) but we are not there yet. While I am here add protection from the multiple getopt() definitions due to conflicting standards.
* Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.millert2002-12-025-9/+396
|
* Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update.tdeval2002-11-271-6/+11
|
* Warn if atexit(3) fails. Change some tabs to spaces. Usecloder2002-11-251-5/+5
| | | | | | STDERR_FILENO instead of 2. OK millert@
* .Xr atoll(3) and add missing .Xr of atol(3) in atoll(3) man page.millert2002-11-214-9/+26
|
* Take advantage of the libc minor bump and add atoll(3)millert2002-11-213-7/+125
|
* Add strerror_r and functions versions of getchar_unlocked andmarc2002-11-213-3/+53
| | | | putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@
* 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.