Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-02-24 | of of | Theo de Raadt | |
2003-01-21 | typos; | Jason McIntyre | |
ok deraadt@ | |||
2003-01-14 | Add sanity check to prevent int oflow for very large allocations. | Todd C. Miller | |
Also fix a signed vs. unsigned issue while I am at it. Found by Jim Geovedi. OK deraadt@ | |||
2002-12-10 | use proper __findenv() prototype; millert@ ok | Michael Shalayeff | |
2002-12-10 | Document BSD behavior of accepting '-' within optstring as long as | Todd C. Miller | |
it is not the fist character of optstring (since that would conflict with GNU semantics). Update the bit on "W;" within optstring when called as getopt (not getopt_long) to current reality. | |||
2002-12-10 | When doing permutation, only treat "-" as an option if it was specified | Todd C. Miller | |
in optstring. Problem noticed by Theo. | |||
2002-12-08 | Fix pasto, spotted by lebel@ | Todd C. Miller | |
2002-12-08 | In BUGS section, append a warning to not use '-' as the first character | Todd C. Miller | |
of optstring to avoid a semantic conflict with GNU getopt. | |||
2002-12-08 | SUS (and apparently 1003.1-2001) say to check optstring for NULL | Todd C. Miller | |
2002-12-08 | If we are passed "-" in argv and the user didn't specify '-' in optstring, | Todd C. Miller | |
return -1 like POSIX requires. | |||
2002-12-08 | BSD getopt() supports '-' in the optstring so we should too. | Todd C. Miller | |
This is used by a few programs such as man and su. | |||
2002-12-07 | Fix pasto in last commit. | Todd C. Miller | |
2002-12-07 | For getopt_long_only() we *do* want to match single-character options | Todd C. Miller | |
as shortcuts for long ones, but only if this would not conflict with a short option in optstring. Now binutils gas works. | |||
2002-12-06 | In srandomdev(), if we can't access /dev/arandom, use the sysctl() instead. | Todd C. Miller | |
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. | |||
2002-12-06 | Fix two compatibility issues with our getopt_long_only() vs. the GNU version: | Todd C. Miller | |
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() | |||
2002-12-05 | Correctly handle -Wlong_arg (no space between -W and long_arg) when "W;" | Todd C. Miller | |
is in optstring. | |||
2002-12-05 | Reorganize 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-05 | make getopt_long and getopt_long_only protos match getopt.h | Todd C. Miller | |
2002-12-04 | Add "RETURN VALUES" sections | Todd C. Miller | |
2002-12-04 | .Xr getopt_long | Todd C. Miller | |
2002-12-03 | Whoops, add missing #ifdef REPLACE_GETOPT | Todd C. Miller | |
2002-12-03 | fix typo | Todd C. Miller | |
2002-12-03 | GNU-like getopt_long() from NetBSD with changes by me to support | Todd 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-02 | Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code. | Todd C. Miller | |
2002-11-27 | Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update. | Thierry Deval | |
2002-11-25 | Warn if atexit(3) fails. Change some tabs to spaces. Use | Chad 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-21 | Take advantage of the libc minor bump and add atoll(3) | Todd C. Miller | |
2002-11-05 | thread safe libc -- 2nd try. OK miod@, millert@ | Marco S Hyman | |
Thanks to miod@ for m68k and vax fixes | |||
2002-11-03 | back out previous patch.. there are still some vax/m68k issues | Marco S Hyman | |
2002-11-03 | libc 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-14 | Move __cleanup into mprotect'ed page to prevent unintentional modifications | Daniel Hartmeier | |
similar to the atexit handlers. Idea and help deraadt@, ok deraadt@ | |||
2002-09-06 | missing include, ok theo | Henning Brauer | |
2002-08-30 | re-enable function pointer table protection, this time make sure that | Daniel Hartmeier | |
malloc.c gets the first mmap() call (since it depends on that, for its sbrk(0) use). ok deraadt@ | |||
2002-08-19 | Suggest better types in examples; from NetBSD | Miod Vallat | |
2002-07-31 | Back it out, it breaks something in perl (seen with spamassassin), debug | Daniel Hartmeier | |
first. | |||
2002-07-31 | permit calloc(0, N) and calloc(N, 0) -- malloc(0) does the right thing; ↵ | Theo de Raadt | |
markus miod ok | |||
2002-07-30 | return failure if integer overflow happens. sigh; too people had to | Theo de Raadt | |
help get this right. | |||
2002-07-29 | Replace atexit handler. mprotect() the pages so an attempt to modify the | Daniel Hartmeier | |
function pointers from the outside will segfault. Idea, hints and feedback from deraadt. ok deraadt. | |||
2002-06-29 | Replace strtou?q() with the more standard strtou?ll(), using weak | Todd C. Miller | |
aliases to fake up strtou?q(). espie@ OK. | |||
2002-05-27 | unsigned vs unsigned int | Theo de Raadt | |
2002-05-26 | pid_t cleanup | Theo de Raadt | |
2002-05-24 | try to use strlcpy and snprintf more; ok various | Theo de Raadt | |
2002-04-30 | Initial 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-23 | deraadt@ objects to the caveat remark, so remove it. | Miod Vallat | |
2002-02-23 | Slightly improve wording and punctuation. | Miod Vallat | |
2002-02-23 | Add a caveat section pointing out that people affecting the return value | Miod 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-19 | We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. | Todd C. Miller | |
2002-02-17 | Manual cleanup of remaining userland __P use (excluding packages maintained ↵ | Todd C. Miller | |
outside the tree) | |||
2002-02-16 | Part 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. |