summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/sparc/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* retire the sparc library codetedu2016-09-018-472/+0
|
* Remove sigreturn declaration and the now-unused libc syscall stubguenther2016-05-091-41/+0
|
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-074-102/+5
| | | | | | | | | | | | | | | | | 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@
* Switch to RSYSCALL: no special handling is needed here any more andguenther2016-03-271-6/+2
| | | | | | we do need the hidden _libc_syscall alias. from miod@
* Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadguenther2015-10-231-3/+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@
* Adds hidden _libc_FOO aliases for the system call stubs.guenther2015-09-106-11/+24
| | | | | | | | | | 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.guenther2015-08-263-52/+17
| | | | | | | 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-17/+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@
* Add support for -fPICderaadt2012-09-043-3/+28
| | | | ok kettenis
* these are no longer used; ok guentherderaadt2012-09-041-49/+0
|
* Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccpascal2012-08-224-8/+8
| | | | | | | invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
* __tfork() needs to set the stack address of the new thread in the kernel,guenther2012-06-211-9/+3
| | | | | | | | | 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-40/+0
|
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-221-0/+74
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther2011-04-041-7/+6
| | | | | | On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
* zap rcsid.espie2005-08-0713-65/+13
| | | | okay deraadt@ (tested them all)
* Use an unsigned comparison against minbrk.miod2003-12-251-3/+3
| | | | ok deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0213-78/+26
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* curbrk -> __curbrk on sparc to avoid name space pollution.art2002-10-062-12/+12
|
* Two touches to make this work with ELF.art2002-08-111-7/+7
| | | | | - use _C_LABEL(__cerror) and not cerror to avoid polluting the name space. - Use weak symbols for libc_r syscalls.
* rfork() needs a fork.S-like stub as well; ok artderaadt2002-02-171-0/+48
|
* system call entry, art@d2000-01-061-2/+2
|
* replacement pipe() system call; copies data into place inside kernel, soderaadt1999-06-071-55/+0
| | | | that EFAULT return value is possible
* use SYSENTRY, so that libc_r wraps this properlyderaadt1999-05-281-2/+2
|
* mi ptraced1999-02-011-61/+0
|
* ENTRY -> SYSENTRY for sparc libc_r (per d@)marc1999-01-223-6/+6
|
* _THREAD_SAFE; nominal testing by friesd1999-01-061-2/+2
|
* generate reboot.o like other system callsderaadt1996-12-111-46/+0
|
* Fix RCS idstholo1996-08-1915-90/+60
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-1815-0/+893