SYS___threxit cannot fail, but this integration looks like a gadget.Put a hard-trap instruction after the syscall instruction.ok kettenis mortimer
Eliminate cerror: use PAL_rdunique to get the TCB address directlyok deraadt@ kettenis@
Remove sigreturn declaration and the now-unused libc syscall stub
Use a Thread Information Block in both single and multi-threaded programs.This stores errno, the cancelation flags, and related bits for each threadand is allocated by ld.so or libc.a. This is an
Use a Thread Information Block in both single and multi-threaded programs.This stores errno, the cancelation flags, and related bits for each threadand is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!Make libpthread dlopen'able by moving the cancelation wrappers into libcand doing locking and fork/errno handling via callbacks that libpthreadregisters when it first initializes. 'errno' *must* be declared via<errno.h> now!Clean up libpthread's symbol exports like libc.On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.Testing by various, particularly sthen@ and patrick@ok kettenis@
show more ...
Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadinto libc, and move pthread_sigmask() as well (just a trivial wrapper).This provides consistent handling of SIGTHR between
Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadinto libc, and move pthread_sigmask() as well (just a trivial wrapper).This provides consistent handling of SIGTHR between single- and multi-threadedprograms and is a step in the merge of all the libpthread overloads, providingsome ASM and Makefile bits that the other wrappers will need.ok deraadt@ millert@
Adds hidden _libc_FOO aliases for the system call stubs.Stop generating _brk and _sbrk symbols: they've already been hidden.Set the ELF symbol size on the syscall stubs.Give the __{min,cur}brk sym
Adds hidden _libc_FOO aliases for the system call stubs.Stop generating _brk and _sbrk symbols: they've already been hidden.Set the ELF symbol size on the syscall stubs.Give the __{min,cur}brk symbols a size and type, and hide more jump labels.alpha, arm, m88k, sh, sparc, and vax assistance miod@hppa assistance kettenis@ok deraadt@ miod@
Hide many (194!) symbols that nothing should be using.Delete exect(2); it wasn't portable across archs and nothing used it.ports test build by naddy@ok deraadt@ kettenis@
Make pthread_atfork() track the DSO that called it like atexit() does,unregistering callbacks if the DSO is unloaded. Move the callbackhandling from libpthread to libc, though libpthread still ove
Make pthread_atfork() track the DSO that called it like atexit() does,unregistering callbacks if the DSO is unloaded. Move the callbackhandling from libpthread to libc, though libpthread still overrides theinner call to handle locking and thread-library reinitialization.Major version bump for both libc and libpthread.verification that this fixes various ports ajacoutot@asm assistance miod@; ok millert@ deraadt@
Simplify fork/vfork logic: the kernel has handled returning zero in the childfor a long time, so there's no need to test the second return register herein the asm stub.ok and testing of many arch
Simplify fork/vfork logic: the kernel has handled returning zero in the childfor a long time, so there's no need to test the second return register herein the asm stub.ok and testing of many archs by krw@ miod@
these are no longer used; ok guenther
__tfork() needs to set the stack address of the new thread in the kernel,so that it can't get a signal while still running on the parent thread'sstack. Also, pass in sizeof(struct __tfork) to prov
__tfork() needs to set the stack address of the new thread in the kernel,so that it can't get a signal while still running on the parent thread'sstack. Also, pass in sizeof(struct __tfork) to provide forward compatwhen more members are added. This is an ABI change, so switch syscallnumbers and bump lib majors this time.ok deraadt@ matthew@
remove rfork(); ok guenther miod
Move __tfork_thread() from rthreads (libpthread) to libc so thatit can be used for not-strictly-threading purposesok matthew@ kurt@
Move __cerror to ___cerror with a weak alias so that rthreads can override it.On mips64, also correct the name called from plain cerror to __cerror."looks correct" miod@
zap rcsid.okay deraadt@ (tested them all)
Rename curbrk to __curbrk on alpha to avoid namespace pollution.
Rename cerror to __cerror on alpha to avoid namespace pollution.
rfork() needs a fork.S-like stub as well; ok art
SYSLEAF, not LEAF. shared libc_r builds now on alpha.
replacement pipe() system call; copies data into place inside kernel, sothat EFAULT return value is possible
END -> SYSEND (typo fix)
mi ptrace
_THREAD_SAFE; nominal testing by fries
generate reboot.o like other system calls
Merge to NetBSD, added RCSids
12