summaryrefslogtreecommitdiff
path: root/src/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* wierd -> weirdpvalchev2002-04-291-3/+3
|
* Tack on MagniComp (BSD) license since this originally came from rdist.millert2002-03-121-2/+30
|
* Xr getifaddrs(3) and networking(4) in SEE ALSO section.millert2002-03-071-1/+4
|
* Replace SIOCGIFCONF-using NRL versions with KAME versions that usemillert2002-03-073-333/+201
| | | | getifaddrs(3). Fixes problems on LP64 platforms.
* skip sockaddr correctly if sa_len < sockaddr. from niklasitojun2002-02-251-0/+3
|
* deraadt@ objects to the caveat remark, so remove it.miod2002-02-231-11/+1
|
* Slightly improve wording and punctuation.miod2002-02-231-4/+4
|
* Add a caveat section pointing out that people affecting the return valuemiod2002-02-231-5/+13
| | | | | | | | of getopt() to char variables instead of int lose on arches where char is unsigned by default. Clean the example by not pasting parts of <unistd.h> into it, and by not using atoi(3).
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-198-155/+11
|
* Manual cleanup of remaining userland __P use (excluding packages maintained ↵millert2002-02-1710-52/+46
| | | | outside the tree)
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-1629-105/+105
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* fix the history refsmickey2002-01-241-2/+2
|
* THREAD_UNLOCK() on error before returning; millert@ ok.fgsch2002-01-231-1/+3
|
* If the user passes in "" as the string to resolve the lstat() willmillert2002-01-121-2/+6
| | | | | | fail anyway so check for that. Also convert "." to "" since that way we avoid the lstat() (which we don't need) and the subsequent chdir() and some dir checks.
* label abort() from inside library as ILLEGALderaadt2002-01-023-7/+8
|
* more pid_t usederaadt2002-01-021-3/+4
|
* Add missing .Os. deraadt@ oknordin2002-01-021-1/+2
|
* Two functions can return errors here, not just one.miod2001-12-291-2/+4
|
* when strerror() has an Unknown error, also set EINVALderaadt2001-12-081-3/+8
|
* alloca cannot check if the allocation is valid. mention the consequences; ↵deraadt2001-12-061-1/+13
| | | | millert ok