summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2003-03-04Don't acquire __environ_lock around exec*() calls; nothing requiresnathanw
that these calls be thread-safe with respect to the environment, and it causes serious problems for threaded applications which call vfork() and exec*() (including indirectly, via popen() or system()). Acquire and release __environ_lock in the parent in popen() and system() to play safe and provide the child with a stable environment. __environ_lock should also have an atfork() handler; still under development.
2003-03-04Fix lib/20558:thorpej
A dynamically linked program invokes the rtld cleanup routine via an atexit handler. This rtld cleanup routine invokes _fini() for shared libraries, which in-turn invoke __cxa_finalize() with their DSO handle. By luck, this happens to work okay for non-threaded programs, but for a threaded program, this leads to deadlock (sometimes manifested as an assertion failure, if the program didn't actually create any threads). Fixed by teaching __cxa_finalize() that it can be recursively invoked, adjusting the handler list manipulation accordingly.
2003-03-01Add _Exit(), for C99 and POSIX-2001.bjh21
Proposed on tech-userlevel to a resounding silence in April last year.
2003-03-01Rewrite atexit(3), and add support for __cxa_atexit()/__cxa_finalize(),thorpej
as specified by the C++ ABI for Itanium. Despite the ABI document's name, many of the items in it are implemented for other architectures. See the following URL for a reference: http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor Fixes lib/18379 (from Joel Baker).
2003-02-08Use definition in "namespace.h" to rename functions, not home grown.itohy
2003-01-29Provide some more details for papers by Bentley/M.D. McIlroy and byheinz
P.M. McIlroy (after short e-mail conversation with M.D. McIlroy on www@).
2003-01-20Fix lib/17248 properlydsl
'ls -l-' now reports unknown option -- - 'env -' and 'su -' both work ok (change approved by christos)
2003-01-18s/_REENT/_REENTRANT/christos
2003-01-18Merge the nathanw_sa branch.thorpej
2002-12-09Add a couple of missing THREAD_UNLOCK's, for the error exit path.chris
No functional change on Mainline, however SA branch probably needs this.
2002-11-29a <-> an fixes.wiz
2002-11-29add strsuftoll(3) and strsuftollx(3) - parse a string for a numberlukem
with an optional suffix, product (two numbers separated by `x'), and provide range checking
2002-11-15Fix indent in sample code.enami
2002-11-11Fix signed/unsigned comparison warnings.thorpej
2002-11-11Fix signed/unsigned comparison warnings.thorpej
2002-10-06pull in config.h (et al) for libnbcompatlukem
2002-10-02Grammar fixes and markup improvements.wiz
2002-10-02completely with only one "el".wiz
2002-10-01New sentence, new line. From Robert Elz.wiz
2002-08-20Mark up NULL and ENOMEM.wiz
2002-08-20Remove superfluous double quotes and a superfluous Ns.wiz
2002-08-11bring in EXAMPLES and a note.yamt
from openbsd.
2002-08-11bring in EXAMPLES from OpenBSD.yamt
2002-08-11- more description about realloc.yamt
- mention errno. - add FILES section for malloc.conf. from openbsd.
2002-08-10fix sample code. from openbsd.yamt
2002-08-10result of getenv should be treated as read-only.yamt
from OpenBSD.
2002-08-10bump .Dd .yamt
2002-08-10note only 8 bits of exit-status is passed.yamt
from OpenBSD.
2002-08-10note that alloca can't report error.yamt
from OpenBSD.
2002-08-10bump .Dd for my previous commit.yamt
2002-08-10note that abort(3) causes streams flushed and closed.yamt
from OpenBSD.
2002-07-31restore the previous form of the condition checking malloc() return value, whichjdolecek
was changed in previous revision
2002-07-31allow calloc(0, x) and calloc(x, 0). sync w/openbsditojun
2002-07-30die if integer overflow. from openbsditojun
2002-07-10import CAVEATS sections from OpenBSD.yamt
with little tweak by me.
2002-06-21Undo last two, until I have time to take a good look at the problems.wiz
2002-06-13According to POSIX, "-" (the string) is an exception and should notwiz
be parsed as option. Restore behaviour broken by previous commit. Mirrors second part of patch from lib/17248.
2002-06-13Fix '-' handling. POSIX only recognizes "--" as end-of-options.wiz
Problem noted in lib/17248 by David Laight, including a patch. Part of this patch was used.
2002-06-06Added hppa support (some of it incomplete) to lib/csu, lib/libc,fredette
and lib/libkvm.
2002-06-03Fix SYNOPSIS, noted by Martin Macok on tech-userlevel.wiz
2002-05-26Remove #ifdef Bad_float_h and #ifndef __STDC__ parts (unneeded).wiz
2002-04-28Xref fabs(3)zuntum
OK'd by Jaromir Dolecek
2002-02-07generate & symbolicallyross
2002-02-07Generate <>& symbolically.ross
2002-01-31Roll in fixes to permit cross-compiling from non-NetBSD hosts. Thistv
round has been tested on Solaris/x86 and Linux hosts. * Add host tools cap_mkdb, ctags, m4, uudecode. * Protect __RCSID() and __COPYRIGHT() better. * Reduce the number of places that need to include "config.h", to keep sources closer to their "vanilla" versions. * Add more compat #defines and autoconf-checked functions.
2002-01-29Make almost all tools compile and run properly on non-NetBSD hosts. (Intv
particular, most tools now run correctly on Solaris 7.)
2002-01-28Punctuation fixes.wiz
2002-01-28C99: support INF, INFINITY, NAN and NAN(n-char-sequence-opt) arguments.kleink
2002-01-15Use .Pp instead of empty lines.wiz
2002-01-15Use Aq for email address.wiz