summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2002-08-13 00:36:16 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-08-13 00:36:16 -0700
commit61afdfc9984f7686962b3be31d95c865e926a296 (patch)
tree281b2070223bbe0beb19f0ac5c754cae13e9531a /include/linux
parent192b4702937e0828b6204fed1f7cd82270ffec9d (diff)
[PATCH] CLONE_SETTLS, CLONE_SETTID, 2.5.31-BK
This adds two new clone() flags: CLONE_SETTLS => if present then the third clone() syscall parameter is the new TLS. CLONE_SETTID => if present then the child TID is written to the address specified by the fourth clone() parameter. the new parameters are handled in a safe way, clone() returns -EFAULT or -EINVAL if there's some problem with them.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 7adc9c6278b7..d44342a05d5b 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -45,6 +45,8 @@ struct exec_domain;
#define CLONE_THREAD 0x00010000 /* Same thread group? */
#define CLONE_NEWNS 0x00020000 /* New namespace group? */
#define CLONE_SYSVSEM 0x00040000 /* share system V SEM_UNDO semantics */
+#define CLONE_SETTLS 0x00080000 /* create a new TLS for the child */
+#define CLONE_SETTID 0x00100000 /* write the TID back to userspace */
#define CLONE_SIGNAL (CLONE_SIGHAND | CLONE_THREAD)