aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/sched.h
Commit message (Collapse)AuthorAgeFilesLines
* Use machine/timespec.h to separate timespec definition.Yabin Cui2014-12-101-3/+2
| | | | Bug: 18627763 Change-Id: Ib1c406320f0ecc3705d19183a48f986cdf57c279
* Revert "<sched.h> should offer both __sched_priority and sched_priority."Dan Albert2014-11-211-2/+1
| | | | | | | | This was only ever added to keep strace compiling, but strace has since (actually, prior) fixed their source to use the less ugly name, so we don't need this anymore (good riddance, #define!). This reverts commit bbb34f9536db8234b0b43bd5333256fa4accc50e.
* Move the meat of <features.h> into <sys/cdefs.h>.Elliott Hughes2014-08-191-1/+0
| | | | | | | | This way it's a lot harder for us to screw up (since we should always be including <sys/cdefs.h> anyway). Bug: 14659579 Change-Id: I23070fff3296b0d1c683bb5e3a6e214146327d53
* Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE).Elliott Hughes2014-08-181-2/+3
| | | | | | | | | | | <features.h> is supposed to take user-settable stuff like _GNU_SOURCE and _BSD_SOURCE and turn them into __USE_GNU and __USE_BSD for use in the C library headers. Instead, bionic used to unconditionally define _BSD_SOURCE and _GNU_SOURCE, and then test _GNU_SOURCE in the header files (which makes no sense whatsoever). Bug: 14659579 Change-Id: Ice4cf21a364ea2e559071dc8329e995277d5b987
* Use __LP64__ instead of __LP32__ in sched.hCalin Juravle2014-05-131-3/+3
| | | | | | | Gcc defines only __LP64__ so testing __LP32__ will always be false. Bug: 14881256 Change-Id: Ic63c1d562be09c3eb4b9e17c9e5ef2d9e404db80
* Fix cpu_set_tCalin Juravle2014-04-301-125/+64
| | | | | | | | | | - extend CPU_SETSIZE for LP64 - fix CPU_(AND|OR|XOR) macros - fix CPU_OP_S macro - fix __sched_cpucount - tidy up the code Change-Id: I741afff4d0c473e8a1ee6b4141981dc24467e0d4
* <sched.h> should offer both __sched_priority and sched_priority.Elliott Hughes2014-01-071-1/+2
| | | | | | | | | If glibc hadn't already done things this way round, I'd have called the field sched_priority and the macro __sched_priority since that would seem less likely to cause trouble, but glibc source compatibility is probably more important. Change-Id: I8a8a477f2aa87cae641069c5c84b4fcab3152a82
* Clean up <sched.h>.Elliott Hughes2014-01-021-36/+14
| | | | | | | | This patch switches to using the uapi constants. It also adds the missing setns system call, fixes sched_getcpu's error behavior, and fixes the gensyscalls script now ARM is uapi-only too. Change-Id: I8e16b1693d6d32cd9b8499e46b5d8b0a50bc4f1d
* Update MS_ mount flags, define unshare() syscall.Jeff Sharkey2012-08-141-0/+1
| | | | | Bug: 6925012 Change-Id: I4ad79b4bccb7737d4dc704476cdb5795d124f53e
* <sched.h>: Add sched_getcpu() and cpu_set_tDavid 'Digit' Turner2010-12-061-0/+156
| | | | | | | | | | | 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: tag missing functions in system headers.David 'Digit' Turner2010-10-091-1/+1
| | | | | | | | | This matches recent changes in the NDK header. We enclose missing functions in #if 0 .. #endif blocks with a clear "MISSING" in comments in order to locate them later. Change-Id: I87b3a62e777897e75c9243360fb0a82bcc53d9fb
* Implement clone() C library function properly.David 'Digit' Turner2010-01-251-2/+3
| | | | | | | 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-031-0/+77
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-77/+0
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-211-0/+77