typo
[lnanohttp.git] / ulinux / sched.h
blob400e95b300d64790beb14f91eb73b6945cb0a67c
1 #ifndef ULINUX_SCHED_H
2 #define ULINUX_SCHED_H
3 /*******************************************************************************
4 this code is protected by the GNU affero GPLv3
5 author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
6 *******************************************************************************/
7 #define ULINUX_CSIGNAL 0x000000ff/*signal mask to be sent at exit*/
8 #define ULINUX_CLONE_VM 0x00000100/*set if vm shared between
9 processes*/
10 #define ULINUX_CLONE_FS 0x00000200/*set if fs info shared between
11 processes*/
12 #define ULINUX_CLONE_FILES 0x00000400/*set if open files shared between
13 processes*/
14 #define ULINUX_CLONE_SIGHAND 0x00000800/*set if signal handlers and
15 blocked signals shared*/
16 #define ULINUX_CLONE_PTRACE 0x00002000/*set if we want to let tracing
17 continue on the child too*/
18 #define ULINUX_CLONE_VFORK 0x00004000/*set if the parent wants the
19 child to wake it up on
20 mm_release*/
21 #define ULINUX_CLONE_PARENT 0x00008000/*set if we want to have the same
22 parent as the cloner*/
23 #define ULINUX_CLONE_THREAD 0x00010000/*same thread group?*/
24 #define ULINUX_CLONE_NEWNS 0x00020000/*new namespace group?*/
25 #define ULINUX_CLONE_SYSVSEM 0x00040000/*share system v sem_undo
26 semantics*/
27 #define ULINUX_CLONE_SETTLS 0x00080000/*create a new tls for the child*/
28 #define ULINUX_CLONE_PARENT_SETTID 0x00100000/*set the tid in the parent*/
29 #define ULINUX_CLONE_CHILD_CLEARTID 0x00200000/*clear the tid in the child*/
30 #define ULINUX_CLONE_DETACHED 0x00400000/*unused, ignored*/
31 #define ULINUX_CLONE_UNTRACED 0x00800000/*set if the tracing process can't
32 force clone_ptrace on this clone*/
33 #define ULINUX_CLONE_CHILD_SETTID 0x01000000/*set the tid in the child*/
35 0x0200000 was previously the unused clone_stopped (start in stopped state)
36 and isnow available for re-use.
38 #define ULINUX_CLONE_NEWUTS 0x04000000/*new utsname group?*/
39 #define ULINUX_CLONE_NEWIPC 0x08000000/*new ipcs*/
40 #define ULINUX_CLONE_NEWUSER 0x10000000/*new user namespace*/
41 #define ULINUX_CLONE_NEWPID 0x20000000/*new pid namespace*/
42 #define ULINUX_CLONE_NEWNET 0x40000000/*new network namespace*/
43 #define ULINUX_CLONE_IO 0x80000000/*clone io context*/
44 #endif