summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/sched.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-24 00:15:09 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-24 00:15:09 +0000
commit64085a723ae341524e35b1b7cb13bfe0bd4794dc (patch)
treed4311a0b9460b08731a9c68110158e99787405a4 /libc/sysdeps/linux/common/bits/sched.h
parent7320e0ffac2dd65a911fd6bdc8f65c1467eede5e (diff)
sync with upstream via psm
Diffstat (limited to 'libc/sysdeps/linux/common/bits/sched.h')
-rw-r--r--libc/sysdeps/linux/common/bits/sched.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/libc/sysdeps/linux/common/bits/sched.h b/libc/sysdeps/linux/common/bits/sched.h
index 78f18ad4e..b48a0c874 100644
--- a/libc/sysdeps/linux/common/bits/sched.h
+++ b/libc/sysdeps/linux/common/bits/sched.h
@@ -29,7 +29,7 @@
#define SCHED_OTHER 0
#define SCHED_FIFO 1
#define SCHED_RR 2
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
# define SCHED_BATCH 3
#endif
@@ -46,7 +46,6 @@
# define CLONE_PARENT 0x00008000 /* Set if we want to have the same
parent as the cloner. */
# define CLONE_THREAD 0x00010000 /* Set to add to same thread group. */
-#if 0
# define CLONE_NEWNS 0x00020000 /* Set to create new namespace. */
# define CLONE_SYSVSEM 0x00040000 /* Set to shared SVID SEM_UNDO semantics. */
# define CLONE_SETTLS 0x00080000 /* Set TLS info. */
@@ -61,9 +60,6 @@
the child. */
# define CLONE_STOPPED 0x02000000 /* Start in stopped state. */
#endif
-#endif
-
-#ifndef __ASSEMBLER__
/* The official definition. */
struct sched_param
@@ -86,12 +82,8 @@ extern int unshare (int __flags) __THROW;
__END_DECLS
-#endif /* __ASSEMBLER__ */
-
#endif /* need schedparam */
-#ifndef __ASSEMBLER__
-
#if !defined __defined_schedparam \
&& (defined __need_schedparam || defined _SCHED_H)
# define __defined_schedparam 1
@@ -104,7 +96,6 @@ struct __sched_param
#endif
-#if 0
#if defined _SCHED_H && !defined __cpu_set_t_defined
# define __cpu_set_t_defined
/* Size definition for CPU sets. */
@@ -139,6 +130,3 @@ typedef struct
# define __CPU_ISSET(cpu, cpusetp) \
(((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
#endif
-#endif
-
-#endif /* __ASSEMBLER__ */