Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | - just warn in case of mmap/brk failure | tdeval | 2003-07-19 | 1 | -5/+5 | |
| | | | | | | - extend_pgdir and malloc_make_chunks return int, not void* ok tedu@ | |||||
* | add missing includes | david | 2003-07-18 | 1 | -2/+3 | |
| | | | | ok tedu@ | |||||
* | Fix two cases where malloc() returns NULL but does not set errno to ENOMEM. | otto | 2003-07-13 | 1 | -2/+5 | |
| | | | | ok tdeval@ henning@ millert@ | |||||
* | Sync with share/misc/license.template and add missing DARPA credit | millert | 2003-06-17 | 6 | -54/+68 | |
| | | | | where applicable. | |||||
* | another term 3 & 4 from tholo after permission | deraadt | 2003-06-04 | 1 | -7/+2 | |
| | ||||||
* | Use an ISC-tyle license for all my code; it is simpler and more permissive. | millert | 2003-06-03 | 6 | -135/+71 | |
| | ||||||
* | Remove the advertising clause in the UCB license which Berkeley | millert | 2003-06-02 | 64 | -383/+127 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | |||||
* | Remove some lies | millert | 2003-06-02 | 2 | -11/+8 | |
| | ||||||
* | Use the getopt() in getopt_long.c which supports some GNU extensions. | millert | 2003-06-02 | 2 | -3/+5 | |
| | | | | getopt.c is no longer compiled and will eventually be removed. | |||||
* | - section reorder | jmc | 2003-06-01 | 9 | -56/+56 | |
| | | | | | - merge COMPATIBILITY - kill whitespace at EOL | |||||
* | typo | millert | 2003-05-24 | 1 | -1/+1 | |
| | ||||||
* | Say POSIX-2001 instead of Single Unix v3. They are the same but we generally | millert | 2003-05-24 | 1 | -1/+1 | |
| | | | | mention POSIX compliance, not Single Unix compliance. | |||||
* | Unbreak 64-bit archs... | tdeval | 2003-05-14 | 1 | -2/+2 | |
| | ||||||
* | Pointer cleaning. ok ian@, tedu@, krw@ | tdeval | 2003-05-14 | 1 | -66/+67 | |
| | ||||||
* | Delete reference to /usr/share/doc/papers/malloc.ascii.gz as we do not | krw | 2003-05-14 | 1 | -2/+1 | |
| | | | | | | have it. We don't even have the directory /usr/share/doc/papers. ok millert@. | |||||
* | Ideas from NetBSD: document nmemb and include sradixsort in the NAME section. | pjanzen | 2003-05-12 | 1 | -5/+8 | |
| | | | | Also, stomp a comma splice. | |||||
* | typos; | jmc | 2003-05-10 | 11 | -31/+32 | |
| | ||||||
* | Pass ndigit+1 as size arg to strlcpy() since ndigit doesn't include the NUL | millert | 2003-05-09 | 1 | -3/+3 | |
| | ||||||
* | assembler versions of insque and remque for m68k, also from 4.4BSD | millert | 2003-05-09 | 1 | -1/+1 | |
| | ||||||
* | insque and remque are VAX instructions, no need for C functions; From 4.4BSD | millert | 2003-05-09 | 1 | -2/+8 | |
| | ||||||
* | Oops, forgot to add remque.c here | millert | 2003-05-09 | 1 | -1/+1 | |
| | ||||||
* | move insque(3) and remque(3) from libcompat -> libc; they are now POSIX | millert | 2003-05-08 | 4 | -8/+209 | |
| | ||||||
* | move lsearch(3) and insque(3) from libcompat -> libc; they are now POSIX | millert | 2003-05-08 | 3 | -7/+205 | |
| | ||||||
* | Mention that stroul() et al *do* accept negative numbers, they | millert | 2003-04-21 | 1 | -1/+6 | |
| | | | | just (effectively) cast to unsigned. ho@ OK | |||||
* | make the second example valid; ok millert@ | jsyn | 2003-04-10 | 1 | -3/+4 | |
| | ||||||
* | strcat -> strlcat | hin | 2003-04-04 | 1 | -3/+3 | |
| | | | | ok deraadt@ tedu@ tdeval@ | |||||
* | use strlcpy(); assumes buf is at least ndigit bytes long which is as | millert | 2003-04-02 | 1 | -4/+7 | |
| | | | | safe as we can get. deraadt@ OK | |||||
* | .Xr's; | jmc | 2003-03-06 | 1 | -2/+2 | |
| | | | | | | typos in man page section ok deraadt@ | |||||
* | Fix a pasto. (There is no ULLONG_MIN, for hopefully obvious reasons) | kjell | 2003-03-06 | 1 | -4/+2 | |
| | | | | ok millert | |||||
* | Use int32_t, not long since this deals with 32bit quantities. | millert | 2003-02-28 | 1 | -20/+20 | |
| | | | | Inspired by a change in NetBSD and reported by Jan Johansson. | |||||
* | of of | deraadt | 2003-02-24 | 1 | -2/+2 | |
| | ||||||
* | typos; | jmc | 2003-01-21 | 1 | -3/+3 | |
| | | | | ok deraadt@ | |||||
* | Add sanity check to prevent int oflow for very large allocations. | millert | 2003-01-14 | 1 | -3/+11 | |
| | | | | | Also fix a signed vs. unsigned issue while I am at it. Found by Jim Geovedi. OK deraadt@ | |||||
* | use proper __findenv() prototype; millert@ ok | mickey | 2002-12-10 | 2 | -8/+8 | |
| | ||||||
* | 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. | |||||
* | Fix pasto, spotted by lebel@ | millert | 2002-12-08 | 1 | -2/+2 | |
| | ||||||
* | 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. | |||||
* | 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() | |||||
* | 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. | |||||
* | 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 | |
| |