summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2002-12-05Correctly handle -Wlong_arg (no space between -W and long_arg) when "W;"Todd C. Miller
is in optstring.
2002-12-05Reorganize this so that getopt_only_only() works correctly.Todd C. Miller
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.
2002-12-05make getopt_long and getopt_long_only protos match getopt.hTodd C. Miller
2002-12-04Add "RETURN VALUES" sectionsTodd C. Miller
2002-12-04.Xr getopt_longTodd C. Miller
2002-12-03Whoops, add missing #ifdef REPLACE_GETOPTTodd C. Miller
2002-12-03fix typoTodd C. Miller
2002-12-03GNU-like getopt_long() from NetBSD with changes by me to supportTodd C. Miller
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.
2002-12-02Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.Todd C. Miller
2002-11-27Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update.Thierry Deval
2002-11-25Warn if atexit(3) fails. Change some tabs to spaces. UseChad Loder
STDERR_FILENO instead of 2. OK millert@
2002-11-21.Xr atoll(3) and add missing .Xr of atol(3) in atoll(3) man page.Todd C. Miller
2002-11-21Take advantage of the libc minor bump and add atoll(3)Todd C. Miller
2002-11-05thread safe libc -- 2nd try. OK miod@, millert@Marco S Hyman
Thanks to miod@ for m68k and vax fixes
2002-11-03back out previous patch.. there are still some vax/m68k issuesMarco S Hyman
2002-11-03libc changes for thread safety. Tested on:Marco S Hyman
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.
2002-09-14Move __cleanup into mprotect'ed page to prevent unintentional modificationsDaniel Hartmeier
similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
2002-09-06missing include, ok theoHenning Brauer
2002-08-30re-enable function pointer table protection, this time make sure thatDaniel Hartmeier
malloc.c gets the first mmap() call (since it depends on that, for its sbrk(0) use). ok deraadt@
2002-08-19Suggest better types in examples; from NetBSDMiod Vallat
2002-07-31Back it out, it breaks something in perl (seen with spamassassin), debugDaniel Hartmeier
first.
2002-07-31permit calloc(0, N) and calloc(N, 0) -- malloc(0) does the right thing; ↵Theo de Raadt
markus miod ok
2002-07-30return failure if integer overflow happens. sigh; too people had toTheo de Raadt
help get this right.
2002-07-29Replace atexit handler. mprotect() the pages so an attempt to modify theDaniel Hartmeier
function pointers from the outside will segfault. Idea, hints and feedback from deraadt. ok deraadt.
2002-06-29Replace strtou?q() with the more standard strtou?ll(), using weakTodd C. Miller
aliases to fake up strtou?q(). espie@ OK.
2002-05-27unsigned vs unsigned intTheo de Raadt
2002-05-26pid_t cleanupTheo de Raadt
2002-05-24try to use strlcpy and snprintf more; ok variousTheo de Raadt
2002-04-30Initial cleanup:Mike Pechkin
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
2002-02-23deraadt@ objects to the caveat remark, so remove it.Miod Vallat
2002-02-23Slightly improve wording and punctuation.Miod Vallat
2002-02-23Add a caveat section pointing out that people affecting the return valueMiod Vallat
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).
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-23THREAD_UNLOCK() on error before returning; millert@ ok.Federico G. Schwindt
2002-01-12If the user passes in "" as the string to resolve the lstat() willTodd C. Miller
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.
2001-12-29Two functions can return errors here, not just one.Miod Vallat
2001-12-06alloca cannot check if the allocation is valid. mention the consequences; ↵Theo de Raadt
millert ok
2001-12-05correct an alignment mis-conception for malloc(0) returned regions.Thierry Deval
OK deraadt@
2001-12-05document how malloc(0) blobbies are stored, and their characterTheo de Raadt
2001-11-05Comment out info on U (utrace) malloc option since we don't support itTodd C. Miller
on OpenBSD.
2001-11-01remove dangling spaces and tabsMichael Shalayeff
2001-10-30Grammar. Thanks markus@Thierry Deval
2001-10-30mprotect allocations sized at 0 bytes. This will cause a fault for accessThierry Deval
to such, permitting them to be discovered, instead of exploited as the ssh crc insertion detector was. Idea by theo, written by tdeval.
2001-10-29fix docs; tedu@heorot.stanford.eduTheo de Raadt
2001-09-06Initial idea from aaron@: Last char of .Xr group in SEE ALSO section shouldMike Pechkin
be a single digit. Powered by mantoya@. millert@ ok.
2001-09-04Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their ↵Todd C. Miller
POSIX counterparts.
2001-08-12#(endif|else) foo is incorrect, make it #endif /* foo */Heikki Korpela
deraadt@ ok
2001-08-06o) We always close .Bl and .Bd tags;Mike Pechkin
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