Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Document BSD behavior of accepting '-' within optstring as long as | millert | 2002-12-10 | 1 | -5/+25 | |
| | | | | | | | | 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. | |||||
* | When doing permutation, only treat "-" as an option if it was specified | millert | 2002-12-10 | 1 | -4/+5 | |
| | | | | in optstring. Problem noticed by Theo. | |||||
* | From Andrushock, s/sucess/success/g | millert | 2002-12-09 | 1 | -1/+1 | |
| | ||||||
* | Fix pasto, spotted by lebel@ | millert | 2002-12-08 | 1 | -2/+2 | |
| | ||||||
* | Test option "-" (BSD extension) | millert | 2002-12-08 | 3 | -10/+16 | |
| | ||||||
* | In BUGS section, append a warning to not use '-' as the first character | millert | 2002-12-08 | 1 | -3/+13 | |
| | | | | of optstring to avoid a semantic conflict with GNU getopt. | |||||
* | SUS (and apparently 1003.1-2001) say to check optstring for NULL | millert | 2002-12-08 | 2 | -4/+9 | |
| | ||||||
* | If we are passed "-" in argv and the user didn't specify '-' in optstring, | millert | 2002-12-08 | 1 | -6/+10 | |
| | | | | return -1 like POSIX requires. | |||||
* | BSD getopt() supports '-' in the optstring so we should too. | millert | 2002-12-08 | 1 | -8/+15 | |
| | | | | This is used by a few programs such as man and su. | |||||
* | Add test for fix in revision 1.5 of getopt_long.c | millert | 2002-12-07 | 3 | -1/+26 | |
| | ||||||
* | Fix pasto in last commit. | millert | 2002-12-07 | 1 | -3/+3 | |
| | ||||||
* | For getopt_long_only() we *do* want to match single-character options | millert | 2002-12-07 | 1 | -41/+36 | |
| | | | | | as shortcuts for long ones, but only if this would not conflict with a short option in optstring. Now binutils gas works. | |||||
* | In srandomdev(), if we can't access /dev/arandom, use the sysctl() instead. | millert | 2002-12-06 | 1 | -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: | millert | 2002-12-06 | 1 | -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() | |||||
* | update test results | millert | 2002-12-05 | 1 | -10/+10 | |
| | ||||||
* | excercise "-W longopt" | millert | 2002-12-05 | 2 | -10/+10 | |
| | ||||||
* | Correctly handle -Wlong_arg (no space between -W and long_arg) when "W;" | millert | 2002-12-05 | 1 | -6/+8 | |
| | | | | is in optstring. | |||||
* | Reorganize this so that getopt_only_only() works correctly. | millert | 2002-12-05 | 1 | -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. | |||||
* | simple regress for getopt_long() and getopt_long_only() | millert | 2002-12-05 | 3 | -0/+204 | |
| | ||||||
* | make getopt_long and getopt_long_only protos match getopt.h | millert | 2002-12-05 | 1 | -3/+3 | |
| | ||||||
* | Add "RETURN VALUES" sections | millert | 2002-12-04 | 2 | -2/+52 | |
| | ||||||
* | .Xr getopt_long | millert | 2002-12-04 | 1 | -1/+2 | |
| | ||||||
* | Whoops, add missing #ifdef REPLACE_GETOPT | millert | 2002-12-03 | 1 | -2/+4 | |
| | ||||||
* | fix typo | millert | 2002-12-03 | 1 | -1/+1 | |
| | ||||||
* | GNU-like getopt_long() from NetBSD with changes by me to support | millert | 2002-12-03 | 3 | -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. | |||||
* | Crank all library major numbers. Needed due to the fact that we | millert | 2002-12-03 | 3 | -3/+3 | |
| | | | | | | | | now build libraries with propolice enabled. Without this, existing binaries (such as ports/packages) that link with any system library other than libc will fail with an undefined symbol of "___guard" (__guard on ELF). Pointed out by markus@ and discussed with deraadt@ | |||||
* | Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code. | millert | 2002-12-02 | 5 | -9/+396 | |
| | ||||||
* | Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update. | tdeval | 2002-11-27 | 1 | -6/+11 | |
| | ||||||
* | Warn if atexit(3) fails. Change some tabs to spaces. Use | cloder | 2002-11-25 | 1 | -5/+5 | |
| | | | | | | STDERR_FILENO instead of 2. OK millert@ | |||||
* | .Xr atoll(3) and add missing .Xr of atol(3) in atoll(3) man page. | millert | 2002-11-21 | 4 | -9/+26 | |
| | ||||||
* | Take advantage of the libc minor bump and add atoll(3) | millert | 2002-11-21 | 3 | -7/+125 | |
| | ||||||
* | Add strerror_r and functions versions of getchar_unlocked and | marc | 2002-11-21 | 3 | -3/+53 | |
| | | | | putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@ | |||||
* | Updates from http://www.isc.org/products/BIND/patches/bind4910.diff | millert | 2002-11-14 | 1 | -22/+37 | |
| | | | | | | o check __dn_skipname() return value for errors o fix sanity checking of reverse records, getnetbyname() may not have been working before. | |||||
* | $ in front of commands | deraadt | 2002-11-14 | 1 | -13/+13 | |
| | ||||||
* | update usage; ok ericj@ | markus | 2002-11-13 | 1 | -3/+4 | |
| | ||||||
* | thread safe libc -- 2nd try. OK miod@, millert@ | marc | 2002-11-05 | 3 | -93/+44 | |
| | | | | Thanks to miod@ for m68k and vax fixes | |||||
* | back out previous patch.. there are still some vax/m68k issues | marc | 2002-11-03 | 3 | -44/+93 | |
| | ||||||
* | libc changes for thread safety. Tested on: | marc | 2002-11-03 | 3 | -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. | marc | 2002-10-26 | 1 | -32/+65 | |
| | | | | | Also add caution regarding dst field initialization. operation text OK millert@ | |||||
* | do not use an absolute path in include; dhartmei@ ok | mickey | 2002-10-21 | 2 | -3/+4 | |
| | ||||||
* | install SSL_do_handshake(3) as well; markus@ ok | fgsch | 2002-10-09 | 1 | -1/+2 | |
| | ||||||
* | do not install mdc2 man pages; markus ok | deraadt | 2002-09-26 | 1 | -18/+1 | |
| | ||||||
* | remove MDC2; patents | markus | 2002-09-26 | 5 | -14/+11 | |
| | ||||||
* | missing arg; peterw@ifost.org.au | deraadt | 2002-09-25 | 1 | -2/+2 | |
| | ||||||
* | remove rc5 | markus | 2002-09-25 | 2 | -218/+0 | |
| | ||||||
* | pull in fix from openssl-0.9.7-stable-SNAP-20020921: | markus | 2002-09-23 | 2 | -32/+10 | |
| | | | | | | *) Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c (the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes). [Bodo Moeller] | |||||
* | use arc4random instead of /dev/arandom, | markus | 2002-09-17 | 2 | -60/+22 | |
| | | | | allows RAND_poll after chroot, ok deraadt, fgsch | |||||
* | undo local change, HMAC_Init() already does HMAC_CTX_init if(key && md) | markus | 2002-09-17 | 2 | -2/+0 | |
| | ||||||
* | add -elapsed to usage() for USE_TOD, too | markus | 2002-09-16 | 1 | -1/+1 | |
| | ||||||
* | sync with 0.9.7-beta3 | markus | 2002-09-16 | 2 | -0/+8 | |
| |