aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* This is a partial MFC of 1.74. From the CVS log for that:Ken Smith2004-04-201-0/+2
| | | | | | | | | | | | | | revision 1.74 date: 2003/01/30 15:00:17; author: phk; state: Exp; lines: +4 -0 Catch some cases where asking for ridiculously large allocations could result in a segfault. Instead just return NULL. Requested by: JINMEI Tatuya <jinmei (at) isl.rdc.toshiba.co.jp> and so@ Reviewed by: phk (but he's not responsible if this makes 4.10 go boom :-) Approved by: re (scottl) Notes: svn path=/stable/4/; revision=128477
* MFC: Fix grammar bogons.Jens Schweikhardt2003-06-031-1/+1
| | | | Notes: svn path=/stable/4/; revision=115780
* MFC: rev. 1.20:Max Khon2003-06-021-2/+2
| | | | | | | | | fix stripping last path component when only one path component left. PR: 52686 Notes: svn path=/stable/4/; revision=115695
* MFC: make realpath thread-safe.Max Khon2003-05-221-104/+134
| | | | | | | This commit also fixes PR 12244. Notes: svn path=/stable/4/; revision=115231
* MFC 1.3: Document the fact that hdestory calls free on the keys added withDavid Malone2003-04-051-5/+25
| | | | | | | hsearch(.., ENTER). Make the example reflect this. Notes: svn path=/stable/4/; revision=113124
* MFC: revision 1.60Tom Rhodes2003-01-061-1/+1
| | | | Notes: svn path=/stable/4/; revision=108803
* MFC: Document what really occurs when we obtain an error.Tom Rhodes2002-12-201-6/+9
| | | | | | | | PR: 43357 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> Notes: svn path=/stable/4/; revision=108133
* MFC: Diff reduction to -current libc_r (part 1):Max Khon2002-10-151-2/+2
| | | | | | | | | | | | _thread_sys_{syscall} -> __sys_{syscall}. This change does not break ABI because these symbols are used solely inside libc_r. Approved by: deischen Notes: svn path=/stable/4/; revision=105168
* MFC 1.22: Use a union to access the words of a double.David Malone2002-08-311-4/+8
| | | | | | | PR: 40209 Notes: svn path=/stable/4/; revision=102745
* MFC: get decimal point from localeAndrey A. Chernov2002-04-171-1/+4
| | | | Notes: svn path=/stable/4/; revision=94931
* MFC: Make atexit thread safe.Tor Egge2002-03-101-2/+26
| | | | Notes: svn path=/stable/4/; revision=92021
* MFC: fix markup and typos.Ruslan Ermilov2002-01-211-10/+15
| | | | | | | Approved by: re (blanket) Notes: svn path=/stable/4/; revision=89611
* MFC:Akinori MUSHA2001-12-291-24/+29
| | | | | | | | | | | 1.62: If 'VX' is given, realloc(foo,0) will bail, it shouldn't. 1.61: Correctly call THREAD_UNLOCK() if the recursive call trap is sprung. 1.58: Fixed style bugs (dot `.' at the end of error and warning messages). Approved by: phk, re (rwatson) Notes: svn path=/stable/4/; revision=88646
* MFC: Reduce gratuitous diffs to -CURRENT.Ruslan Ermilov2001-12-1427-37/+37
| | | | Notes: svn path=/stable/4/; revision=87904
* MFC 1.49: malloc and calloc do not free memory.Dima Dorfman2001-11-121-2/+3
| | | | Notes: svn path=/stable/4/; revision=86283
* MFC: 1.8 (don't get stuck if a signal interrupts us during wait4)Alfred Perlstein2001-10-101-2/+3
| | | | Notes: svn path=/stable/4/; revision=84761
* Doh, namespace.h isn't in -STABLE. Also, add the forgotten manpage.Ruslan Ermilov2001-10-021-1/+0
| | | | Notes: svn path=/stable/4/; revision=84360
* MFC: Add new, from scratch implementation of hsearch() that actually works.Ruslan Ermilov2001-10-021-3/+4
| | | | Notes: svn path=/stable/4/; revision=84359
* MFC: Use ``.Rv -std'' wherever possible.Ruslan Ermilov2001-08-312-16/+2
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=82643
* {MFC from rev 1.4}. If the string specifying options starts with a leadingJoseph Koshy2001-08-261-5/+2
| | | | | | | | | `:', then `getopt(3)' should not print a warning for missing argument values. Approved by: re Notes: svn path=/stable/4/; revision=82336
* MFC: markup and misc fixes.Ruslan Ermilov2001-08-177-41/+55
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=81834
* MFC 1.40: the fact that phk wrote this is not a bug.Dima Dorfman2001-07-301-5/+2
| | | | Notes: svn path=/stable/4/; revision=80614
* MFC: remove whitespace at EOL.Dima Dorfman2001-07-2214-35/+35
| | | | Notes: svn path=/stable/4/; revision=80145
* MFC: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-222-2/+0
| | | | Notes: svn path=/stable/4/; revision=80140
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-07-111-0/+206
| | | | Notes: svn path=/stable/4/; revision=79580
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-05-201-0/+184
| | | | Notes: svn path=/stable/4/; revision=76914
* MFC: MAN[1-9] -> MAN.Ruslan Ermilov2001-04-251-1/+1
| | | | Notes: svn path=/stable/4/; revision=75949
* MFC: recent mdoc(7) fixes.Ruslan Ermilov2001-03-0618-22/+22
| | | | Notes: svn path=/stable/4/; revision=73888
* MFC: style sync with -currentDavid E. O'Brien2001-03-053-0/+6
| | | | Notes: svn path=/stable/4/; revision=73709
* MFC: 1.57: remove sizeof(void *) == sizeof(int) assumptionsDavid E. O'Brien2001-03-051-7/+7
| | | | Notes: svn path=/stable/4/; revision=73708
* MFC: Fix up prototypes and includesKris Kennaway2001-03-051-1/+1
| | | | | | | | | | | | | | | | Covers the following revisions: libc/rpc/rpc.3 1.13 libc/stdlib/tsearch.3 1.5 libc/xdr/xdr.3 1.10 libdisk/libdisk.3 1.20 libftpio/ftpio.3 1.27 libposix1e/posix1e.3 1.11 libusb/usb.3 1.5 libutil/logout.3 1.8 Notes: svn path=/stable/4/; revision=73581
* MFC: Update unused __dtoa prototypes to match reality.Tor Egge2001-03-022-3/+3
| | | | Notes: svn path=/stable/4/; revision=73351
* MFC: Impliment the ISO-C99 strto[u]ll()David E. O'Brien2001-03-025-160/+91
| | | | | | | and rewrite strto[u]q() in terms of it. Notes: svn path=/stable/4/; revision=73338
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-02-272-0/+265
| | | | Notes: svn path=/stable/4/; revision=73169
* MFC: Remove freelists managed by Balloc/Bfree. Change __dtoa internal API.Tor Egge2001-02-192-64/+25
| | | | | | | PR: 15070 Notes: svn path=/stable/4/; revision=72711
* MFC: Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-2/+2
| | | | Notes: svn path=/stable/4/; revision=71105
* MFC: mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-122-7/+7
| | | | Notes: svn path=/stable/4/; revision=70976
* MFC: Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-296-8/+9
| | | | Notes: svn path=/stable/4/; revision=70483
* MFC: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-141-1/+1
| | | | Notes: svn path=/stable/4/; revision=70016
* MFC: add /dev/zero and use PATH_* where possible.David E. O'Brien2000-12-111-1/+2
| | | | Notes: svn path=/stable/4/; revision=69839
* MFC: recent mdoc(7) fixes.Ruslan Ermilov2000-12-085-6/+9
| | | | Notes: svn path=/stable/4/; revision=69764
* MFC: Only realloc() environ if we're sure that we know where it came from.Brian Somers2000-09-201-5/+4
| | | | Notes: svn path=/stable/4/; revision=66139
* MFC: Use strtok instead of strsep. Handle links explicitly in remove.Jordan K. Hubbard2000-09-201-1/+1
| | | | | | | Check additional failure case in getopt. Notes: svn path=/stable/4/; revision=66103
* MFC:John Baldwin2000-08-232-8/+2
| | | | | | | | | - Add a missing THREAD_UNLOCK() - Remove allocation failure check from 'A' option, the 'X' option does this as a standalone check now. Notes: svn path=/stable/4/; revision=64967
* MFC: Binary search tree code.John Baldwin2000-08-171-2/+2
| | | | Notes: svn path=/stable/4/; revision=64766
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-07-045-0/+345
| | | | Notes: svn path=/stable/4/; revision=62529
* MFC: Typo, update example codeKris Kennaway2000-06-081-8/+3
| | | | Notes: svn path=/stable/4/; revision=61402
* MFC: minor mdoc cleanup.Mike Pritchard2000-05-241-2/+3
| | | | Notes: svn path=/stable/4/; revision=60875
* MFC: Fix miscellaneous mdoc macro argument limit infringements.Sheldon Hearn2000-05-091-1/+1
| | | | Notes: svn path=/stable/4/; revision=60259
* MFC: Use `Er' variable to define first column width in ERRORS section.Alexey Zelkin2000-05-065-5/+5
| | | | Notes: svn path=/stable/4/; revision=60084