about summary refs log tree commit diff
path: root/src/unistd
Commit message (Collapse)AuthorAgeFilesLines
* consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefixRich Felker2011-04-0612-12/+12
|
* move rsyscall out of pthread_create moduleRich Felker2011-04-066-12/+6
| | | | | | | | | | | | | | this is something of a tradeoff, as now set*id() functions, rather than pthread_create, are what pull in the code overhead for dealing with linux's refusal to implement proper POSIX thread-vs-process semantics. my motivations are: 1. it's cleaner this way, especially cleaner to optimize out the rsyscall locking overhead from pthread_create when it's not needed. 2. it's expected that only a tiny number of core system programs will ever use set*id() functions, whereas many programs may want to use threads, and making thread overhead tiny is an incentive for "light" programs to try threads.
* make ualarm actually work (obsolete function removed from SUS)Rich Felker2011-04-031-4/+9
|
* add setresuid/setresgid functions (nonstandard)Rich Felker2011-04-032-0/+20
|
* remove obsolete and useless useconds_t typeRich Felker2011-04-012-2/+2
|
* global cleanup to use the new syscall interfaceRich Felker2011-03-2049-50/+50
|
* syscall overhaul part two - unify public and internal syscall interfaceRich Felker2011-03-194-4/+4
| | | | | | | | | | | | | | | | 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.
* finish moving 32-bit-specific junk out of source files.Rich Felker2011-02-154-14/+4
|
* put confstr.c with the other conf functionsRich Felker2011-02-141-17/+0
|
* cleaning up syscalls in preparation for x86_64 portRich Felker2011-02-1314-24/+27
| | | | | | | | | - hide all the legacy xxxxxx32 name cruft in syscall.h so the actual source files can be clean and uniform across all archs. - cleanup llseek/lseek and mmap2/mmap handling for 32/64 bit systems - alternate implementation for nice if the target lacks nice syscall
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-1271-0/+646