summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
* Add `_PATH_DEVZERO'.obrien2000-12-091-1/+2
| | | | Use _PATH_* where where possible.
* The parameter that contains valid options is "optstring", not "optarg".mph2000-11-281-1/+1
|
* Make it possible to override the function which writes messages tophk2000-11-262-18/+32
| | | | | | | stderr in case of warnings and errors. Rename malloc_options to have a leading underscore, I belive I have been told that is more correct namespace wise.
* mdoc(7) police: Er macro usage cleanup.ru2000-11-221-2/+2
|
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-172-2/+2
|
* Use Fx macro wherever possible.ru2000-11-142-2/+5
|
* Fixed typos.ru2000-11-061-4/+4
|
* Back out previous commit (MLINK malloc.conf.5 -> malloc.3).eivind2000-10-291-1/+0
| | | | | | This did not work correctly with whatis(1). Issue brought up by: mpp
* Add link malloc.conf.5 -> malloc.3eivind2000-10-291-0/+1
|
* Oops, un-spam this file - the last commit was an accident.brian2000-09-201-1/+0
| | | | Pointed out by: phk
* Only realloc() environ if we're sure that we know where it came from.brian2000-09-202-5/+5
| | | | | | The recent problems with sshd were due to sshd reassigning `environ' when setenv() thinks it owns it. setenv() subsequently realloc()s the new version of environ and *boom*
* Don't print an error message if the bad option is '?'. This has beenimp2000-09-041-1/+1
| | | | | | | | | in my tree for a long time. bde reviewed this once upon a time and said it was OK, iirc. This also obviates the need to put ? in the optstring argument to preclude the extra warning message which some people think confuses users. When I made my getopt cleanups of a long time ago, this was the compromise reached. I just neglected to commit it until now.
* Turn malloc options "AJ" on by default.phk2000-07-091-2/+2
| | | | | | | | These will be turned off again as we approach 5.0-RELEASE. If you benchmark things, make sure to ln -sf j /etc/malloc.conf to see "true" performance.
* bring in binary search tree code.alfred2000-07-016-2/+347
| | | | Obtained from: NetBSD
* Fix miscellaneous mdoc macro argument limit infringements.sheldonh2000-05-091-1/+1
| | | | | PR: 18465 Reported by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
* Use `Er' variable to define first column width in ERRORS section.phantom2000-05-065-5/+5
|
* Minor mdoc cleanup.mpp2000-05-051-2/+3
| | | | PR: docs/13218
* Introduce ".Lb" macro to libc manpages.phantom2000-04-2126-0/+52
| | | | More libraries manpages updates following.
* Add a missing THREAD_UNLOCK() found missing by Valentin Nechayevphk2000-04-102-8/+2
| | | | | | | <netch@segfault.kiev.ua> Remove allocation failure check from 'A' option, the 'X' option does this as a standalone check now.
* Spelling, fprintf -> err, remove unneeded variable declarationcharnier2000-03-261-8/+3
|
* Take care to avoid having "strong" and "weak" symbols of the same name injasone2000-03-161-0/+2
| | | | libc_r.
* Merge from RELENG_3 (oops):chris2000-01-291-5/+5
| | | | | resolved_name -> resolved_path resolvedname -> resolved_path
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-274-18/+17
| | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
* o Back out rev 1.4 - reallocf() failure clobbers existing `environ'.ru2000-01-271-3/+8
| | | | | | | | o Do not override `environ' if realloc() fails, leave it intact. o Set `alloced' only when memory is actually allocated. PR: bin/5604 (2nd part) Reviewed by: bde
* Document the memory leak that is inherent in FreeBSD's semanticsarchie2000-01-261-0/+15
| | | | | | for getenv()/putenv(). PR: 10341 5604
* Add three-tier symbol naming in support of POSIX thread cancellationjasone2000-01-124-18/+25
| | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
* Make example for handling "-##" work and comply with style(9). Stillhoek2000-01-061-5/+12
| | | | | | doesn't handle nastier corner cases such as "-j3 -33" correctly. <shrug> PR: docs/12994 (James Howard <howardjp@wam.umd.edu>)
* Add history: The reallocf() function first appeared in FreeBSD-3.0.hoek1999-12-281-0/+5
| | | | | See imp's 199808201619.KAA20970@harmony.village.org in freebsd-hackers (the reallocf.c cvs history mistakenly refers to freebsd-current).
* Fixed missing installation of a link to rand_r.3.bde1999-12-231-1/+1
|
* Document the current behaviour with respect to the handling of errno.sheldonh1999-12-221-1/+8
| | | | Approved by: phk
* Fix handling of trailing :'s to match what other OSes do (spit outjkh1999-12-171-2/+8
| | | | | | a diagnostis). Submitted by: Guy Harris <gharris@flashcom.net>
* Add a cross-reference to fabs(3) man page.chris1999-12-071-0/+1
| | | | | PR: docs/15337 Submitted by: Bruce A. Mah <bmah@ca.sandia.gov>
* Typokris1999-11-151-1/+1
| | | | Obtained from: OpenBSD
* Go to a bit more trouble to make it absolutely clear that malloc(3)peter1999-11-121-2/+9
| | | | does not zero the allocated memory.
* Change .Fn to .Xr on a couple of lines where abort(3) is referenced.chris1999-09-251-2/+2
|
* Tidy up $Log$ debris.peter1999-09-051-32/+2
|
* $Header$ -> $FreeBSD$peter1999-08-281-1/+5
|
* $Id$ -> $FreeBSD$peter1999-08-2832-32/+32
|
* Various man page cleanup:mpp1999-08-151-3/+3
| | | | | | | | | | - Sort xrefs - FreeBSD.ORG -> FreeBSD.org - Be consistent with section names as outlines in mdoc(7) - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexy M. Zelkin <phantom@cris.net>
* Fix .Xr line for `getpagesize'chris1999-08-141-2/+2
|
* Mention that EXIT_SUCCESS and EXIT_FAILURE are preferred overhoek1999-08-011-1/+7
| | | | sysexits.h-values as exit codes for portable programs.
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-1223-0/+23
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Back out previous commit after discussing it with Dmitrij Tejblum.des1999-07-071-4/+0
|
* Always set errno to ENOMEM when returning 0 from malloc() or realloc().des1999-07-071-1/+5
| | | | Approved by: phk
* Added Posix rand_r function.wes1999-05-242-5/+74
|
* Disable the "Hint" option in phkmalloc as default. Recent VM systemphk1999-03-282-4/+4
| | | | | | | | | | | | changes have made this too expensive. This gains about 1.25% on worldstone on my SMP machine. Swap-less machines, for instance PicoBSDs, and machines which experience page-out trafic, check with top(1), will probably want to reenable this with: ln -s H /etc/malloc.conf Suggested by: alc (&dyson ?)
* Correct synopsys: getsubopt is declared in unistd.h, not stdlib.h.ghelmer1999-03-021-1/+1
| | | | PR: docs/9376
* fix tabs lost apparently in copy&pasteache1999-02-121-5/+5
|
* Clarify format of exit status code. Note when a return code of -1 canjkoshy1999-01-271-4/+8
| | | | | | | be expected. PR: docs/9701 Submitted by: Marc van Kempen <marc@bowtie.nl>
OpenPOWER on IntegriCloud