summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/stubs.c
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2011-06-04 21:21:41 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-11-07 20:57:02 +0100
commit19dd090a0f68765db87990ef8eda9bf77bb29581 (patch)
treef210bb330d8b3dda2bcc345a80ce476bd41e1a69 /libc/sysdeps/linux/common/stubs.c
parent0c7690f6a5d6e073052ee6487f768289db3a58f7 (diff)
libc: flesh out linux scheduler functions
Most stuff was taken from the eglibc. Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/stubs.c')
-rw-r--r--libc/sysdeps/linux/common/stubs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c
index 70addec0b..06356afa4 100644
--- a/libc/sysdeps/linux/common/stubs.c
+++ b/libc/sysdeps/linux/common/stubs.c
@@ -128,6 +128,10 @@ make_stub(fstatfs)
make_stub(get_kernel_syms)
#endif
+#if !defined __NR_getcpu && defined __UCLIBC_LINUX_SPECIFIC__ && ((defined __x86_64__ && !defined __UCLIBC_HAS_TLS__) || !defined __x86_64__)
+make_stub(sched_getcpu)
+#endif
+
#if !defined __NR_getpeername && !defined __NR_socketcall && defined __UCLIBC_HAS_SOCKET__
make_stub(getpeername)
#endif
@@ -385,6 +389,10 @@ make_stub(umount)
make_stub(umount2)
#endif
+#if !defined __NR_unshare && defined __UCLIBC_LINUX_SPECIFIC__
+make_stub(unshare)
+#endif
+
#ifndef __NR_utimensat
make_stub(futimens)
make_stub(utimensat)