summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/swapcontext.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix known issues which blow up the process after dlopen("libthr.so")kib2015-01-181-55/+0
| | | | | | | | | | | | | | | | | | | | | (or loading a dso linked to libthr.so into process which was not linked against threading library). MFC r276630: Remove interposing, fix malloc, reinstall signal handlers wrappers on libthr load. MFC r276681: Avoid calling internal libc function through PLT or accessing data though GOT. MFC r277032: Reduce the size of the interposing table and amount of cancellation-handling code in the libthr. MFC note: r276646 ("do not erronously export 'openat' symbol from rtld") is not applicable to stable/10 yet, since PATHFDS support was not merged.
* Don't peek into MD structures from MI code. The getcontext(3) andmini2002-09-201-9/+1
| | | | setcontext(3) functions check the validify of the mcontext_t structs.
* Bandaid to stop failing on non-i386 platforms.peter2002-09-171-0/+5
| | | | Add a big ugly #warning as a reminder.
* Add signalcontext(), which lays down a signal frame onto a ucontext_t.mini2002-09-161-12/+15
| | | | | Reviewed by: deischen, julian Approved by: -arch
* Include <stddef.h> to fix build problem when namespace pollutiondeischen2002-01-111-7/+8
| | | | | | | | | by <signal.h> (including <time.h> so that NULL is accidentally defined) is removed. Style nits. Submitted by: bde
* Add getcontext, setcontext, makecontext, and swapcontext. Thesedeischen2002-01-101-0/+54
functions are defined in SUSv2 and the latest POSIX spec. Thanks to Bernd Walter <ticso@cicely8.cicely.de> for helping debug my alpha assembly. Approved by: -arch
OpenPOWER on IntegriCloud