summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* thread safe libc -- 2nd try. OK miod@, millert@marc2002-11-052-53/+14
| | | | Thanks to miod@ for m68k and vax fixes
* back out previous patch.. there are still some vax/m68k issuesmarc2002-11-032-14/+53
|
* libc changes for thread safety. Tested on:marc2002-11-032-53/+14
| | | | | | | 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.
* 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@
* missing include, ok theohenning2002-09-061-1/+2
|
* 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@
* Suggest better types in examples; from NetBSDmiod2002-08-191-2/+2
|
* 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
* 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.
* Replace strtou?q() with the more standard strtou?ll(), using weakmillert2002-06-295-42/+108
| | | | aliases to fake up strtou?q(). espie@ OK.
* 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-241-3/+3
|
* Initial cleanup:mpech2002-04-301-2/+2
| | | | | | | | | | | | 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
* 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-192-10/+3
|
* Manual cleanup of remaining userland __P use (excluding packages maintained ↵millert2002-02-173-8/+8
| | | | outside the tree)
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-169-22/+22
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* 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.
* Two functions can return errors here, not just one.miod2001-12-291-2/+4
|
* alloca cannot check if the allocation is valid. mention the consequences; ↵deraadt2001-12-061-1/+13
| | | | millert ok
* correct an alignment mis-conception for malloc(0) returned regions.tdeval2001-12-051-14/+25
| | | | OK deraadt@
* document how malloc(0) blobbies are stored, and their characterderaadt2001-12-051-1/+6
|
* Comment out info on U (utrace) malloc option since we don't support itmillert2001-11-051-8/+8
| | | | on OpenBSD.
* remove dangling spaces and tabsmickey2001-11-011-16/+16
|
* Grammar. Thanks markus@tdeval2001-10-301-2/+2
|
* mprotect allocations sized at 0 bytes. This will cause a fault for accesstdeval2001-10-302-37/+50
| | | | | to such, permitting them to be discovered, instead of exploited as the ssh crc insertion detector was. Idea by theo, written by tdeval.
* fix docs; tedu@heorot.stanford.eduderaadt2001-10-291-7/+3
|
* Initial idea from aaron@: Last char of .Xr group in SEE ALSO section shouldmpech2001-09-061-2/+2
| | | | | | be a single digit. Powered by mantoya@. millert@ ok.
* Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their ↵millert2001-09-041-6/+8
| | | | POSIX counterparts.
* #(endif|else) foo is incorrect, make it #endif /* foo */heko2001-08-121-5/+5
| | | | deraadt@ ok
* o) We always close .Bl and .Bd tags;mpech2001-08-062-4/+3
| | | | | | | | | | o) .Sh AUTHOR -> .Sh AUTHORS; o) We don't like .Pp before/after .Sh; o) We don't like .Pp before/after .Rs/.Re; o) NetBSD -> .Nx; o) OpenBSD -> .Ox; millert@ ok
* clean up.mpech2001-07-271-2/+2
| | | | millert@ ok
* a first pass at -Wallderaadt2001-07-092-9/+10
|
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-3/+2
|
* remove confusing comparison with srand (it does not return the old seed)assar2001-06-091-11/+3
| | | | use .Sh AUTHORS and .An for author
* unsigned -> unsigned int; grange@rt.mipt.rumillert2001-05-131-2/+2
|