summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/abort.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Minimize #includes, particularly to avoid thread_private.hguenther2017-08-121-3/+2
| | | | ok tedu@
* Use sigaction() instead of signal() to avoid pulling in unnecessaryguenther2015-10-251-3/+5
| | | | | | | wrappers. To keep uses from crawling back in, mark signal() as deprecated inside libc. ok deraadt@
* Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadguenther2015-10-231-4/+3
| | | | | | | | | into libc, and move pthread_sigmask() as well (just a trivial wrapper). This provides consistent handling of SIGTHR between single- and multi-threaded programs and is a step in the merge of all the libpthread overloads, providing some ASM and Makefile bits that the other wrappers will need. ok deraadt@ millert@
* Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther2015-09-131-1/+2
| | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
* stop flushing streams in abort(). it's hackish and unsafe, and no longertedu2014-05-141-18/+1
| | | | | required. try to document this fact and some of the history. with feedback from deraadt guenther millert
* Per POSIX, fix raise() and abort() to send the signal to the current thread.guenther2012-11-101-3/+5
| | | | | | Should make coredumps from abort() easier to debug too. ok kurt@
* Add __cxa_atexit() support for gcc3. This provides support for shared ↵millert2007-09-031-3/+6
| | | | object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Call _exit() not exit() from abort() if we are unable to kill ourselvesmillert2004-01-201-3/+3
| | | | | to avoid flushing stdio twice. This code path should never really happen though. Also make the function declaration ANSI. OK deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* thread safe libc -- 2nd try. OK miod@, millert@marc2002-11-051-9/+1
| | | | Thanks to miod@ for m68k and vax fixes
* back out previous patch.. there are still some vax/m68k issuesmarc2002-11-031-1/+9
|
* libc changes for thread safety. Tested on:marc2002-11-031-9/+1
| | | | | | | alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way.
* Move __cleanup into mprotect'ed page to prevent unintentional modificationsdhartmei2002-09-141-6/+10
| | | | similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
* #(endif|else) foo is incorrect, make it #endif /* foo */heko2001-08-121-5/+5
| | | | deraadt@ ok
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-1/+10
| | | | | | | | | | | | | All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
* Make sure we don't get stuck in a loop when trying to clean up stdiotholo1997-06-221-6/+11
|
* add decldownsj1996-10-251-1/+3
|
* POSIX requires stdio buffers be flushed on aborttholo1996-10-251-1/+7
|
* Fix RCS idstholo1996-08-191-2/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+65