summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* expand on the realloc no-no section to include adjusting a length beforetedu2003-09-181-6/+12
| | | | the allocation. ok deraadt@ markus@
* typos from wiz@netbsd (including one from a PR from Quentin Garnier);jmc2003-09-181-10/+14
| | | | | | slight sync with NetBSD page; ok millert@
* typo; ianm@cit.uws.edu.auderaadt2003-09-081-2/+2
|
* typos from Brian Poole;jmc2003-09-072-6/+6
| | | | ok deraadt@
* escape punctuation;jmc2003-09-022-6/+6
| | | | ok deraadt@
* ansify function argumentsjfb2003-08-041-34/+16
| | | | ok tdeval@
* Rename rootd to needslash and invert its value. This fixes the checkmillert2003-08-011-6/+6
| | | | | for ENAMETOOLONG, though since we use strlcpy() and strlcat() this is not a big deal. Problem found by vincent@
* fix a protoderaadt2003-07-311-2/+2
|
* Compile llabs.cmillert2003-07-211-1/+2
|
* llabs(3) for C99millert2003-07-212-6/+59
|
* - just warn in case of mmap/brk failuretdeval2003-07-191-5/+5
| | | | | | - extend_pgdir and malloc_make_chunks return int, not void* ok tedu@
* add missing includesdavid2003-07-181-2/+3
| | | | ok tedu@
* Fix two cases where malloc() returns NULL but does not set errno to ENOMEM.otto2003-07-131-2/+5
| | | | ok tdeval@ henning@ millert@
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-176-54/+68
| | | | where applicable.
* another term 3 & 4 from tholo after permissionderaadt2003-06-041-7/+2
|
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-036-135/+71
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0264-383/+127
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Remove some liesmillert2003-06-022-11/+8
|
* Use the getopt() in getopt_long.c which supports some GNU extensions.millert2003-06-022-3/+5
| | | | getopt.c is no longer compiled and will eventually be removed.
* - section reorderjmc2003-06-019-56/+56
| | | | | - merge COMPATIBILITY - kill whitespace at EOL
* typomillert2003-05-241-1/+1
|
* Say POSIX-2001 instead of Single Unix v3. They are the same but we generallymillert2003-05-241-1/+1
| | | | mention POSIX compliance, not Single Unix compliance.
* Unbreak 64-bit archs...tdeval2003-05-141-2/+2
|
* Pointer cleaning. ok ian@, tedu@, krw@tdeval2003-05-141-66/+67
|
* Delete reference to /usr/share/doc/papers/malloc.ascii.gz as we do notkrw2003-05-141-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.pjanzen2003-05-121-5/+8
| | | | Also, stomp a comma splice.
* typos;jmc2003-05-1011-31/+32
|
* Pass ndigit+1 as size arg to strlcpy() since ndigit doesn't include the NULmillert2003-05-091-3/+3
|
* assembler versions of insque and remque for m68k, also from 4.4BSDmillert2003-05-091-1/+1
|
* insque and remque are VAX instructions, no need for C functions; From 4.4BSDmillert2003-05-091-2/+8
|
* Oops, forgot to add remque.c heremillert2003-05-091-1/+1
|
* move insque(3) and remque(3) from libcompat -> libc; they are now POSIXmillert2003-05-084-8/+209
|
* move lsearch(3) and insque(3) from libcompat -> libc; they are now POSIXmillert2003-05-083-7/+205
|
* Mention that stroul() et al *do* accept negative numbers, theymillert2003-04-211-1/+6
| | | | just (effectively) cast to unsigned. ho@ OK
* make the second example valid; ok millert@jsyn2003-04-101-3/+4
|
* strcat -> strlcathin2003-04-041-3/+3
| | | | ok deraadt@ tedu@ tdeval@
* use strlcpy(); assumes buf is at least ndigit bytes long which is asmillert2003-04-021-4/+7
| | | | safe as we can get. deraadt@ OK
* .Xr's;jmc2003-03-061-2/+2
| | | | | | typos in man page section ok deraadt@
* Fix a pasto. (There is no ULLONG_MIN, for hopefully obvious reasons)kjell2003-03-061-4/+2
| | | | ok millert
* Use int32_t, not long since this deals with 32bit quantities.millert2003-02-281-20/+20
| | | | Inspired by a change in NetBSD and reported by Jan Johansson.
* of ofderaadt2003-02-241-2/+2
|
* typos;jmc2003-01-211-3/+3
| | | | ok deraadt@
* 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@
* 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.
* Fix pasto, spotted by lebel@millert2002-12-081-2/+2
|
* 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.