summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/mips64/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use a trap instruction that unconditionally terminates the process.visa2020-10-201-2/+2
| | | | OK deraadt@
* SYS___threxit cannot fail, but this integration looks like a gadget.deraadt2020-10-181-1/+2
| | | | | Put a hard-trap instruction after the syscall instruction. ok kettenis mortimer
* Consistently reference '_end' instead of 'end' in the brk/sbrk implementationguenther2016-05-302-4/+4
| | | | ok deraadt@
* Remove sigreturn declaration and the now-unused libc syscall stubguenther2016-05-091-40/+0
|
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-074-53/+32
| | | | | | | | | | | | | | | | | This stores errno, the cancelation flags, and related bits for each thread and 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 libc and doing locking and fork/errno handling via callbacks that libpthread registers 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@
* Don't need to define SYS_sycall hereguenther2016-03-271-4/+1
| | | | noted by miod@
* Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadguenther2015-10-233-10/+10
| | | | | | | | | 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@
* Delete an inexplicable commentguenther2015-10-041-2/+2
|
* Adds hidden _libc_FOO aliases for the system call stubs.guenther2015-09-053-19/+23
| | | | | | | | 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. ok deraadt@
* Hide many (194!) symbols that nothing should be using.guenther2015-08-263-92/+21
| | | | | | | 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,guenther2015-04-071-2/+3
| | | | | | | | | | unregistering callbacks if the DSO is unloaded. Move the callback handling from libpthread to libc, though libpthread still overrides the inner 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 childguenther2015-03-312-53/+4
| | | | | | | for a long time, so there's no need to test the second return register here in the asm stub. ok and testing of many archs by krw@ miod@
* these are no longer used; ok guentherderaadt2012-09-041-57/+0
|
* __tfork() needs to set the stack address of the new thread in the kernel,guenther2012-06-211-8/+6
| | | | | | | | | so that it can't get a signal while still running on the parent thread's stack. Also, pass in sizeof(struct __tfork) to provide forward compat when more members are added. This is an ABI change, so switch syscall numbers and bump lib majors this time. ok deraadt@ matthew@
* remove rfork(); ok guenther miodderaadt2012-04-121-57/+0
|
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-221-0/+80
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* Kill weak `cerror' alias, it's colliding with the userland namespace. Noticedmiod2011-07-081-2/+1
| | | | by guenther@ months ago, had to wait for a libc major bump.
* Fix the previous commit: define ___cerror, no __cerrorguenther2011-04-051-4/+4
| | | | tested by otto@; ok miod@
* Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther2011-04-0411-25/+28
| | | | | | On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
* Load symbol address with dla, not la; good thing userland is still limitedmiod2009-07-131-2/+2
| | | | to 2GB of vm space.
* zap rcsid.espie2005-08-0713-65/+13
| | | | okay deraadt@ (tested them all)
* mips64 is now going ABI64 and shared library support!pefo2004-09-0911-27/+132
| | | | String functions need some optimization/rewrite to take full advantage.
* 32 -> 64 bit cleanups but no optimizations yetpefo2004-09-079-29/+30
|
* Move mips to mips64pefo2004-08-1113-0/+695