summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls
Commit message (Collapse)AuthorAgeFilesLines
* Switch x86 syscall stubs over to the ENTER/END style of the ARM stubs.Elliott Hughes2013-02-06203-1218/+609
| | | | | | | | | Also update the x86 asm.h to support this; we need it for libm assembler anyway. Also clean up the _FBSDID hack in <sys/cdefs.h>. Change-Id: Iababd977b8110ec022bf7c93f4d62ece47630e7c
* Add signalfd call to bionicRom Lemarchand2013-01-101-0/+32
| | | | | | | | | | | | | | | | | | | Add signalfd() call to bionic. Adding the signalfd call was done in 3 steps: - add signalfd4 system call (function name and syscall number) to libc/SYSCALLS.TXT - generate all necessary headers by calling libc/tools/gensyscalls.py. This patch is adding the generated files since the build system does not call gensyscalls.py. - create the signalfd wrapper in signalfd.cpp and add the function prototype to sys/signalfd.h (cherry-pick of 0c11611c11f4dc1b6d43587b72c3ccbe8c51a51c, modified to work with older versions of GCC still in use on some branches.) Change-Id: I4c6c3f12199559af8be63f93a5336851b7e63355
* Add mlockall and munlockall for Google TV.Elliott Hughes2012-09-062-0/+43
| | | | Change-Id: I10e961d701e74aab07211ec7975f61167e387853
* Add getsid system call to bionicIrina Tirdea2012-09-031-0/+23
| | | | | | | | | | | | | | | | | | Add getsid() system call to bionic for all architectures. This is needed for various tools (e.g. perf). Adding the getsid system call was done in 3 steps: () add getsid system call (function name and syscall number) to libc/SYSCALLS.TXT () generate all necessary headers by calling libc/tools/gensyscalls.py. This patch is adding the generated files since the build system does not call gensyscalls.py. () add the system call signature to libc/include/unistd.h Change-Id: Id69a257e13ec02e1a44085a6b217a3f19ab025b1 Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
* Add unshare() syscall.Jeff Sharkey2012-08-101-0/+23
| | | | | | | (cherry-pick of 5467f25f82934d611c60f8bc57a05114f3c1bea0.) Bug: 6925012 Change-Id: Ic5ea2fbd606311087de05d7a3594df2fa9b2fef9
* resolved conflicts for merge of ef987656 to masterElliott Hughes2012-04-161-2/+8
|\ | | | | | | Change-Id: I3854de8f4cddaf344444efa6f9da027642a237d9
| * Merge "Bionic: Fix wrong prototype of system call clock_nanosleep"Elliott Hughes2012-04-161-2/+8
| |\
| | * Bionic: Fix wrong prototype of system call clock_nanosleepJack Ren2012-04-161-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In bionic/libc/SYSCALLS.TXT, the prototype of system call clock_nanosleep is incorrect. According to man page: int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, struct timespec *remain); Change-Id: Ic44c6db3d632293aa17998035554eacd664c2d57 Signed-off-by: Jin Wei <wei.a.jin@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | | resolved conflicts for merge of 6b8fd054 to masterElliott Hughes2012-04-162-0/+18
|\ \ \ | |/ / | | | | | | Change-Id: Ifc5a10d9c2f7764ad80d64cc552aad81d5fbf5eb
| * | bionic: Fix wrong prototype of system call getresuid/getresgidJack Ren2012-04-162-0/+18
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | In bionic/libc/SYSCALLS.TXT, the prototypes of system call getresuid/getresgid are incorrect. According to man page, they should be: int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); Change-Id: I676098868bb05a9e1fe45419b234cf397626fdad Signed-off-by: Jin Wei <wei.a.jin@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | Add faccessat to syscall listKenny Root2012-04-131-0/+32
| | | | | | | | Change-Id: I427a18811089cb280769ac8da3ed8adc00a65a10
* | Update kernel headers and add syscall "perf_event_open"Ben Cheng2012-03-131-0/+35
| | | | | | | | Change-Id: I43f12b727881df002a8524f2738586c043833bae
* | Merge 2f80f07dJean-Baptiste Queru2012-01-2012-0/+366
|\ \ | |/ | | | | Change-Id: Iff51b8530dbee01499ba4af0ecd6ab837c8c94fb
| * am 23f56bbb: Merge "Add extended attribute (xattr) system call wrappers to ↵Jean-Baptiste Queru2012-01-2012-0/+366
| |\ | | | | | | | | | | | | | | | | | | bionic." * commit '23f56bbb6ae053996dd821f29379aea0c7166055': Add extended attribute (xattr) system call wrappers to bionic.
| | * Add extended attribute (xattr) system call wrappers to bionic.Stephen Smalley2012-01-1812-0/+366
| | | | | | | | | | | | | | | | | | | | | | | | The xattr system calls are required for the SE Android userspace in order to get and set file security contexts. In particular, libselinux requires these calls. Change-Id: I78f5eb3d8f3384aed0a5e7c6a6f001781d982017
* | | am 06f51ba1: am f44de270: add personality() system call.Nick Kralevich2012-01-171-0/+23
|\ \ \ | |/ / | | | | | | | | | * commit '06f51ba1af2fafeec7fdfcba5d635bd001a31b3e': add personality() system call.
| * | am f44de270: add personality() system call.Nick Kralevich2012-01-171-0/+23
| |\ \ | | |/ | |/| | | | | | | * commit 'f44de270bba32c9b1b5eff8a34be07b10ddff238': add personality() system call.
| | * add personality() system call.Nick Kralevich2012-01-131-0/+23
| | | | | | | | | | | | Change-Id: Ie899def8ea1d705930ed83adae1343c1353e7c57
* | | am e30e9093: sreadahead: adding readahead system call into bionic libcBruce Beare2012-01-031-0/+32
|\ \ \ | |/ / | | | | | | | | | * commit 'e30e909363c5c706f394050d9cd00ce222caadbf': sreadahead: adding readahead system call into bionic libc
| * | sreadahead: adding readahead system call into bionic libcBruce Beare2012-01-031-0/+32
| |/ | | | | | | | | | | | | | | | | Add bionic libc to support readahead system call. This is needed to enable sreadahead to work. Change-Id: I3856e1a3833db82e6cf42fd34af7631bd40cc723 Author: Winson Yung <winson.w.yung@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | Add tgkill syscall.Jeff Brown2011-11-181-0/+29
|/ | | | | | | | Use tgkill instead of tkill to implement pthread_kill. This is safer in the event that the thread has already terminated and its id has been reused by a different process. Change-Id: Ied715e11d7eadeceead79f33db5e2b5722954ac9
* Add support for the utimensat(2) syscall to bionic.Ken Sumrall2011-03-241-0/+32
| | | | | | | | The kernel has supported this syscall for quite some time now, but bionic did not. Now that there is a need for it, let's add it to bionic. Change-Id: Ifcef3e46f1438d79435b600c4e6063857ab16903
* libc: Add ftruncate64 and improve 64-bit parameter syscall handling.David 'Digit' Turner2010-12-163-6/+35
| | | | | | | | | | | | | | | This patch improves the handling of 64-bit parameters in syscalls on ARM. The ARM EABI mandates that 64-bit quantities be passed in even/odd register pairs, which requires special treatment. This allows us to simplify our implementations of pread() and pwrite() and remove the C stubs for pread64() and pwrite64(). Also add ftruncate64() to <unistd.h> Change-Id: I407e2fd223ba0093dd2d0b04c6152fadfc9ce3ef Bug 3107933
* <sched.h>: Add sched_getcpu() and cpu_set_tDavid 'Digit' Turner2010-12-063-0/+87
| | | | | | | | | | | This adds the cpu_set_t type definition and related functions and macros used to handle CPU thread affinity. sched_getcpu() sched_setaffinity() sched_getaffinity() Change-Id: If382ecafde8926341a88478062b275553645065b
* libc: add <sys/eventfd.h> and corresponding implementations.David 'Digit' Turner2010-09-281-0/+26
| | | | Change-Id: Ide040884c456190226e580513099fdb8377e015b
* libc: Add missing waitid() implementation.David 'Digit' Turner2010-09-281-3/+3
| | | | Change-Id: I312ee608dbf9249e4886a10d45d13e3cda8a9042
* libc: Add missing fdatasync() implementationDavid 'Digit' Turner2010-09-281-0/+23
| | | | Change-Id: I04bb655d77e414021e1f2a973329167ad76ca1c4
* libc: Add missing pipe2() declaration and implementation.David 'Digit' Turner2010-09-271-0/+26
| | | | Change-Id: Iacb914bd6ac5adc60c5671e6fef680ede21f9b0c
* libc: fix fstatfs() implementation.David 'Digit' Turner2010-07-081-3/+3
| | | | | | The syscall expects the size of the buffer as the second argument. Change-Id: I99ede2fec7fcd385ca03ff022c2cffa4297bea8d
* Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - ↵David 'Digit' Turner2010-06-091-0/+23
| | | | | | DO NOT MERGE Change-Id: Iac4eb5911ffe4a7ab72b84df44e907685ac816af
* bonic: libc: cpuacct support for setuid functionsMike Chan2010-03-023-9/+9
| | | | | | | | | Any of the setuid functions now updates /acct/uid/ with its own tid before changing users. This is so we can properly account for cpu time per uid. Change-Id: I34186cf4d5228cac8439e582a9e26c01ef3011e4 Signed-off-by: Mike Chan <mike@android.com>
* add sigaltstack syscallAndrei Popescu2010-03-021-0/+26
|
* bionic: syscalls: Add ioprio_set/ioprio_get syscall wrappersSan Mehat2010-02-232-0/+55
| | | | Signed-off-by: San Mehat <san@google.com>
* Implement clone() C library function properly.David 'Digit' Turner2010-01-251-7/+10
| | | | | | | Only provide an implementation for ARM at the moment, since it requires specific assembly fragments (the standard syscall stubs cannot be used because the child returns in a different stack).
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03169-0/+4562
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03169-4562/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-1725-41/+519
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-21152-0/+4084