From 61afdfc9984f7686962b3be31d95c865e926a296 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Tue, 13 Aug 2002 00:36:16 -0700 Subject: [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. --- include/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') 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) -- cgit v1.2.3