about summary refs log tree commit diff
path: root/arch/i386/syscall.h
Commit message (Collapse)AuthorAgeFilesLines
* syscall overhaul part two - unify public and internal syscall interfaceRich Felker2011-03-191-167/+0
| | | | | | | | | | | | | | | | with this patch, the syscallN() functions are no longer needed; a variadic syscall() macro allows syscalls with anywhere from 0 to 6 arguments to be made with a single macro name. also, manually casting each non-integer argument with (long) is no longer necessary; the casts are hidden in the macros. some source files which depended on being able to define the old macro SYSCALL_RETURNS_ERRNO have been modified to directly use __syscall() instead of syscall(). references to SYSCALL_SIGSET_SIZE and SYSCALL_LL have also been changed. x86_64 has not been tested, and may need a follow-up commit to fix any minor bugs/oversights.
* overhaul syscall interfaceRich Felker2011-03-191-423/+49
| | | | | | | | | | | | | | | this commit shuffles around the location of syscall definitions so that we can make a syscall() library function with both SYS_* and __NR_* style syscall names available to user applications, provides the syscall() library function, and optimizes the code that performs the actual inline syscalls in the library itself. previously on i386 when built as PIC (shared library), syscalls were incurring bus lock (lock prefix) overhead at entry and exit, due to the way the ebx register was being loaded (xchg instruction with a memory operand). now the xchg takes place between two registers. further cleanup to arch/$(ARCH)/syscall.h is planned.
* remove standalone syscall cruftRich Felker2011-02-151-11/+1
| | | | | | | | | | | this was originally written for an early draft of the library where non-standard functions would reside in a static library separate from the shared libc.so, which would implement a pure standard. the idea was not to depend on an implementation-dependent __syscall_ret function in the main libc. but it turned out to be better to put everything in a single library for both static and dynamic linking uses, and thus the (incomplete) remnants of this feature were just enlarging the source and binary.
* yet another ugly legacy syscall rename...Rich Felker2011-02-151-0/+5
|
* fix getrlimit handling on 32-bit systems, and ease porting to 64-bitRich Felker2011-02-151-0/+2
|
* cleanup socketcall syscall interface to ease porting to sane(r) archsRich Felker2011-02-151-0/+21
|
* finish moving 32-bit-specific junk out of source files.Rich Felker2011-02-151-0/+23
|
* move arch-specific internal headers into placeRich Felker2011-02-151-0/+500