summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | re-stir if pid changes; markus & mederaadt2003-02-141-3/+5
| | |
* | | simple alloca test. done twice per deraadt@ suggestmickey2003-02-123-1/+26
| | |
* | | delete duplicate line; jason@ackley.net, 3090deraadt2003-02-121-1/+0
| | |
* | | we do not need that mess of -Ideraadt2003-01-311-42/+1
| | |
* | | thread safer libc (note: safer, not safe)marc2003-01-2812-265/+348
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Access to the global _res structure replaced by pointers to a per thread instance. If unthreaded the pointer is to the global structure. Also replaced a 64k stack array with malloc-ed memory so threaded aps (with a default 64k stack) have a chance at working. ok deraadt@
* | | typos;jmc2003-01-211-3/+3
| | | | | | | | | | | | ok deraadt@
* | | inet6 fixes from jmc@prioris.mini.pw.edu.plderaadt2003-01-182-21/+13
| | |
* | | Add sanity check to prevent int oflow for very large allocations.millert2003-01-141-3/+11
| | | | | | | | | | | | | | | Also fix a signed vs. unsigned issue while I am at it. Found by Jim Geovedi. OK deraadt@
* | | Grammar fix - remove bogus comma; jmc@prioris.mini.pw.edu.plpvalchev2003-01-051-2/+2
| | |
* | | spellingderaadt2003-01-042-2/+2
| | |
* | | Nobody even compiles the #@!$&~ regression tests anyway.miod2003-01-031-2/+2
| | |
* | | use err vs. errx and display function; from Owl. ok fgsch@stevesk2002-12-301-4/+4
| | |
* | | include function in error; from Owl. ok fgsch@stevesk2002-12-301-4/+4
| | |
* | | correct return code check; from Owl. ok fgsch@stevesk2002-12-301-2/+2
| | |
* | | fix calloc's. also check for errors; fixes PR/3043.fgsch2002-12-281-5/+10
| | |
* | | typo; torh@bogus.netmarkus2002-12-161-1/+1
| | |
* | | more writeable -> writable by torhhenning2002-12-151-2/+2
| | |
* | | Recent modifications to netcat changed the behaviour to only exit when bothaaron2002-12-131-2/+2
| | | | | | | | | | | | | | | | | | the read (network) and write (stdin) ends of the socket were both closed. This is not how nc traditionally works. Instead, revert back to finishing up when read() on the socket returns 0; deraadt@, vincent@ ok.
* | | use proper __findenv() prototype; millert@ okmickey2002-12-102-8/+8
| | |
* | | Document BSD behavior of accepting '-' within optstring as long asmillert2002-12-101-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 specifiedmillert2002-12-101-4/+5
| | | | | | | | | | | | in optstring. Problem noticed by Theo.
* | | From Andrushock, s/sucess/success/gmillert2002-12-091-1/+1
| | |
* | | Fix pasto, spotted by lebel@millert2002-12-081-2/+2
| | |
* | | Test option "-" (BSD extension)millert2002-12-083-10/+16
| | |
* | | In BUGS section, append a warning to not use '-' as the first charactermillert2002-12-081-3/+13
| | | | | | | | | | | | of optstring to avoid a semantic conflict with GNU getopt.
* | | SUS (and apparently 1003.1-2001) say to check optstring for NULLmillert2002-12-082-4/+9
| | |
* | | If we are passed "-" in argv and the user didn't specify '-' in optstring,millert2002-12-081-6/+10
| | | | | | | | | | | | return -1 like POSIX requires.
* | | BSD getopt() supports '-' in the optstring so we should too.millert2002-12-081-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.cmillert2002-12-073-1/+26
| | |
* | | Fix pasto in last commit.millert2002-12-071-3/+3
| | |
* | | For getopt_long_only() we *do* want to match single-character optionsmillert2002-12-071-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.millert2002-12-061-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:millert2002-12-061-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 resultsmillert2002-12-051-10/+10
| | |
* | | excercise "-W longopt"millert2002-12-052-10/+10
| | |
* | | Correctly handle -Wlong_arg (no space between -W and long_arg) when "W;"millert2002-12-051-6/+8
| | | | | | | | | | | | is in optstring.
* | | Reorganize this so that getopt_only_only() works correctly.millert2002-12-051-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()millert2002-12-053-0/+204
| | |
* | | make getopt_long and getopt_long_only protos match getopt.hmillert2002-12-051-3/+3
| | |
* | | Add "RETURN VALUES" sectionsmillert2002-12-042-2/+52
| | |
* | | .Xr getopt_longmillert2002-12-041-1/+2
| | |
* | | 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.
* | | Crank all library major numbers. Needed due to the fact that wemillert2002-12-033-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.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
| | |