summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/amd64/SYS.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove branch prediction hints from conditional branch instructions. Thesekettenis2016-09-061-3/+3
| | | | | | | hints are not recognized by clang's builtin assembler and the opcode prefixes they generate have been no-ops for all CPUs after the Pentium 4. ok guenther@
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-071-37/+27
| | | | | | | | | | | | | | | | | 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@
* Split the non-syscall ASM bits from SYS.h into DEFS.h and use that in theguenther2015-11-141-24/+2
| | | | | | non-syscall .S source ok millert@ miod@
* Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadguenther2015-10-231-1/+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@
* Rename SYSEXIT() to SYSCALL_END() for consistency with most other archs.guenther2015-10-171-17/+6
| | | | | | No change in resulting object files ok millert@
* Adds hidden _libc_FOO aliases for the system call stubs.guenther2015-09-051-4/+6
| | | | | | | | 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@
* Add framework for resolving (pun intended) libc namespace issues, usingguenther2015-08-311-5/+27
| | | | | | | | | | | | wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
* Hide many (194!) symbols that nothing should be using.guenther2015-08-261-2/+1
| | | | | | | Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
* Set FUNC symbol sizes of auto-generated and hand-written syscall wrappers.uebayasi2015-06-171-5/+22
| | | | | | Original diff from guenther@, adjusted by me. OK guenther@
* Reuse SYSENTRY_HIDDEN() in SYSENTRY(); no functional changes.uebayasi2015-06-121-2/+2
|
* Make pthread_atfork() track the DSO that called it like atexit() does,guenther2015-04-071-5/+23
| | | | | | | | | | 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@
* Apply "unifdef -D__STDC__" to libc/arch/*/SYS.hmatthew2014-06-041-11/+1
| | | | | | | | A while back, pascal@ converted our system call stubs from using "cpp | as" to "cc -x assembler-with-cpp", so there's no need to stay compatible with ancient preprocessor semantics. ok miod
* Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccpascal2012-08-221-2/+2
| | | | | | | 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@
* Change to syscall is done, so delete an XXX commentguenther2011-10-111-5/+1
|
* Switch sigreturn() to the normal syscall entry instead of int$80.guenther2011-09-051-24/+1
| | | | | | This was done for the sigreturn call in sigcode before 5.0. ok deraadt@ for post-5.0
* Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther2011-04-041-1/+2
| | | | | | On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
* Remove the advertising clause in the UCB license which Berkeleyjsg2005-12-131-6/+2
| | | | | rescinded 22 July 1999. Checked by ian@ and deraadt@
* Define OSYSCALL* macros, as their SYSCALL* counterparts, but using themiod2004-02-221-1/+24
| | | | | | | | | int 0x80 mechanism; and use OSYSCALL for sigreturn() as done in the sigcode. Naming borrowed from NetBSD. ok deraadt@
* make old & new SYSENTRY macrosderaadt2004-02-061-7/+12
|
* things for amd64; from art@mickey2004-01-281-0/+107