Add the following definitions related to cpu affinity to <sched.h>:
- cpu_set_t and associated macros: CPU_ZERO, CPU_SET, CPU_CLR, CPU_ISSET, CPU_EQUAL,
CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR.
- sched_getcpu(), sched_getaffinity() and sched_setaffinity()
- define macros for dynamically-sized cpu_set_t variables, i.e.:
CPU_ALLOC_SIZE, CPU_ALLOC, CPU_FREE, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S,
CPU_ISSET_S, CPU_EQUAL_S, CPU_COUNT_S
NOTE: You must define _GNU_SOURCE before including the header to get them.
Change-Id: I37338573c7af092118e7987420f6a930b6cc24b1
This patch improves the formatting of <pthread.h> as exposed by the NDK:
- change '#if __cplusplus' into '#ifdef __cplusplus'
- change C++-style comment into C-style comment
It also adds pthread_atfork() for API level 11 (3.0)
Change-Id: Ie814208335ed102d4c178a4c373e6963e5dcc9dd
HC added the following:
- <android/asset_manager.h>: new functions to deal with 64-bit file offsets/sizes.
- <android/input.h>: new AMETA_XXX constants
- <android/keycodes.h>: new AKEYCODE_XXX constants
- <android/native_activity.h>: Added obbPath to the ANativeActivity structure.
Note that this doesn't break the ABI because the structure is always
allocated by the system.
Change-Id: I61a03d7b8a839318e5f0d8074d2272ba874219b7