patches/uClibc/0.9.29/100-conditional-sched_affinity.patch
changeset 747 d3e603e7c17c
parent 746 b150d6f590fc
child 748 61cd4eb6034d
     1.1 --- a/patches/uClibc/0.9.29/100-conditional-sched_affinity.patch	Mon Jul 28 21:08:01 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,53 +0,0 @@
     1.4 -diff -ur uClibc-0.9.29/libc/sysdeps/linux/common/sched_getaffinity.c uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_getaffinity.c
     1.5 ---- uClibc-0.9.29/libc/sysdeps/linux/common/sched_getaffinity.c	2007-02-12 16:52:32.000000000 -0600
     1.6 -+++ uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_getaffinity.c	2007-05-09 18:05:09.397411811 -0500
     1.7 -@@ -29,6 +29,7 @@
     1.8 - #include <sys/param.h>
     1.9 - #include <sys/types.h>
    1.10 - 
    1.11 -+#ifdef __NR_sched_getaffinity
    1.12 - libc_hidden_proto(memset)
    1.13 - 
    1.14 - #define __NR___syscall_sched_getaffinity __NR_sched_getaffinity
    1.15 -@@ -48,5 +49,15 @@
    1.16 - 	}
    1.17 - 	return res;
    1.18 - }
    1.19 -+#else
    1.20 -+/*
    1.21 -+int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *cpuset)
    1.22 -+{
    1.23 -+	__set_errno(ENOSYS);
    1.24 -+	return -1;
    1.25 -+}
    1.26 -+*/
    1.27 - #endif
    1.28 - #endif
    1.29 -+
    1.30 -+#endif
    1.31 -diff -ur uClibc-0.9.29/libc/sysdeps/linux/common/sched_setaffinity.c uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_setaffinity.c
    1.32 ---- uClibc-0.9.29/libc/sysdeps/linux/common/sched_setaffinity.c	2007-02-12 16:52:32.000000000 -0600
    1.33 -+++ uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_setaffinity.c	2007-05-09 18:05:09.397411811 -0500
    1.34 -@@ -31,6 +31,7 @@
    1.35 - #include <sys/types.h>
    1.36 - #include <alloca.h>
    1.37 - 
    1.38 -+#ifdef __NR_sched_setaffinity
    1.39 - libc_hidden_proto(getpid)
    1.40 - 
    1.41 - #define __NR___syscall_sched_setaffinity __NR_sched_setaffinity
    1.42 -@@ -74,5 +75,14 @@
    1.43 - 
    1.44 - 	return INLINE_SYSCALL (sched_setaffinity, 3, pid, cpusetsize, cpuset);
    1.45 - }
    1.46 -+#else
    1.47 -+/*
    1.48 -+int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
    1.49 -+{
    1.50 -+	__set_errno(ENOSYS);
    1.51 -+	return -1;
    1.52 -+}
    1.53 -+*/
    1.54 -+#endif
    1.55 - #endif
    1.56 - #endif