From 19dd090a0f68765db87990ef8eda9bf77bb29581 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Sat, 4 Jun 2011 21:21:41 +0200 Subject: libc: flesh out linux scheduler functions Most stuff was taken from the eglibc. Signed-off-by: Henning Heinold Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/stubs.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libc/sysdeps/linux/common/stubs.c') 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) -- cgit v1.2.3