summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@
2003-08-04ansify function argumentsJean-Francois Brousseau
ok tdeval@
2003-08-01Rename rootd to needslash and invert its value. This fixes the checkTodd C. Miller
for ENAMETOOLONG, though since we use strlcpy() and strlcat() this is not a big deal. Problem found by vincent@
2003-07-31fix a protoTheo de Raadt
2003-07-21Compile llabs.cTodd C. Miller
2003-07-21llabs(3) for C99Todd C. Miller
2003-07-19- just warn in case of mmap/brk failureThierry Deval
- extend_pgdir and malloc_make_chunks return int, not void* ok tedu@
2003-07-18add missing includesDavid Krause
ok tedu@
2003-07-13Fix two cases where malloc() returns NULL but does not set errno to ENOMEM.Otto Moerbeek
ok tdeval@ henning@ millert@
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-04another term 3 & 4 from tholo after permissionTheo de Raadt
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02Remove some liesTodd C. Miller
2003-06-02Use the getopt() in getopt_long.c which supports some GNU extensions.Todd C. Miller
getopt.c is no longer compiled and will eventually be removed.
2003-06-01- section reorderJason McIntyre
- merge COMPATIBILITY - kill whitespace at EOL
2003-05-24typoTodd C. Miller
2003-05-24Say POSIX-2001 instead of Single Unix v3. They are the same but we generallyTodd C. Miller
mention POSIX compliance, not Single Unix compliance.
2003-05-14Unbreak 64-bit archs...Thierry Deval
2003-05-14Pointer cleaning. ok ian@, tedu@, krw@Thierry Deval
2003-05-14Delete reference to /usr/share/doc/papers/malloc.ascii.gz as we do notKenneth R Westerback
have it. We don't even have the directory /usr/share/doc/papers. ok millert@.
2003-05-12Ideas from NetBSD: document nmemb and include sradixsort in the NAME section.Paul Janzen
Also, stomp a comma splice.
2003-05-10typos;Jason McIntyre
2003-05-09Pass ndigit+1 as size arg to strlcpy() since ndigit doesn't include the NULTodd C. Miller
2003-05-09assembler versions of insque and remque for m68k, also from 4.4BSDTodd C. Miller
2003-05-09insque and remque are VAX instructions, no need for C functions; From 4.4BSDTodd C. Miller
2003-05-09Oops, forgot to add remque.c hereTodd C. Miller
2003-05-08move insque(3) and remque(3) from libcompat -> libc; they are now POSIXTodd C. Miller
2003-05-08move lsearch(3) and insque(3) from libcompat -> libc; they are now POSIXTodd C. Miller
2003-04-21Mention that stroul() et al *do* accept negative numbers, theyTodd C. Miller
just (effectively) cast to unsigned. ho@ OK
2003-04-10make the second example valid; ok millert@Jason Peel
2003-04-04strcat -> strlcatHans Insulander
ok deraadt@ tedu@ tdeval@
2003-04-02use strlcpy(); assumes buf is at least ndigit bytes long which is asTodd C. Miller
safe as we can get. deraadt@ OK
2003-03-06.Xr's;Jason McIntyre
typos in man page section ok deraadt@
2003-03-06Fix a pasto. (There is no ULLONG_MIN, for hopefully obvious reasons)Kjell Wooding
ok millert
2003-02-28Use int32_t, not long since this deals with 32bit quantities.Todd C. Miller
Inspired by a change in NetBSD and reported by Jan Johansson.
2003-02-24of ofTheo de Raadt
2003-01-21typos;Jason McIntyre
ok deraadt@
2003-01-14Add 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-10use proper __findenv() prototype; millert@ okMichael Shalayeff
2002-12-10Document BSD behavior of accepting '-' within optstring as long asTodd 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-10When doing permutation, only treat "-" as an option if it was specifiedTodd C. Miller
in optstring. Problem noticed by Theo.
2002-12-08Fix pasto, spotted by lebel@Todd C. Miller
2002-12-08In BUGS section, append a warning to not use '-' as the first characterTodd C. Miller
of optstring to avoid a semantic conflict with GNU getopt.
2002-12-08SUS (and apparently 1003.1-2001) say to check optstring for NULLTodd C. Miller
2002-12-08If we are passed "-" in argv and the user didn't specify '-' in optstring,Todd C. Miller
return -1 like POSIX requires.
2002-12-08BSD 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-07Fix pasto in last commit.Todd C. Miller
2002-12-07For getopt_long_only() we *do* want to match single-character optionsTodd 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-06In 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.