summaryrefslogtreecommitdiff
path: root/include/sched.h
diff options
context:
space:
mode:
authorNathan Zadoks <nathan@nathan7.eu>2016-03-02 17:26:26 +0100
committerRich Felker <dalias@aerifal.cx>2016-03-02 21:32:36 -0500
commit98d335735d64ee34a34cb9c08ea2cb51a076d2a1 (patch)
treeb8d57da2b7e216381f34d9695a0c8cb8d8f9e527 /include/sched.h
parent29b13575376509bb21539711f30c1deaf0823033 (diff)
downloadmusl-98d335735d64ee34a34cb9c08ea2cb51a076d2a1.tar.gz
musl-98d335735d64ee34a34cb9c08ea2cb51a076d2a1.tar.bz2
musl-98d335735d64ee34a34cb9c08ea2cb51a076d2a1.tar.xz
musl-98d335735d64ee34a34cb9c08ea2cb51a076d2a1.zip
add sched_getcpu
This is a GNU extension, but a fairly minor one, for a system call that otherwise has no libc wrapper.
Diffstat (limited to 'include/sched.h')
-rw-r--r--include/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sched.h b/include/sched.h
index 3e34a72c..7e88f097 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -76,6 +76,7 @@ void free(void *);
typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t;
int __sched_cpucount(size_t, const cpu_set_t *);
+int sched_getcpu(void);
int sched_getaffinity(pid_t, size_t, cpu_set_t *);
int sched_setaffinity(pid_t, size_t, const cpu_set_t *);