]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: add new CLONE_ flags for Linux
authorKir Kolyshkin <kolyshkin@gmail.com>
Fri, 20 May 2022 05:25:42 +0000 (22:25 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 19 Aug 2022 16:12:50 +0000 (16:12 +0000)
The constants for these were auto-generated from the C includes
into zerrors_linux* files quite some time ago. The generator is
currently broken, but some new flags need to be added nevertheless.

As the flags won't change and the values are the same for all
architectures, we can just define them statically (as it's already
done in the runtime package):

 - remove the CLONE_* constants from zerrors_linux_*.go;
 - patch mkerrors.sh to not generate CLONE_ constants
   (in case it will be fixed and used in the future);
 - add the constants and some comments about them to exec_linux.go,
   using Linux v5.17 include/uapi/sched.h as the ultimate source.

This adds the following new flags:

 - CLONE_CLEAR_SIGHAND
 - CLONE_INTO_CGROUP
 - CLONE_NEWCGROUP
 - CLONE_NEWTIME
 - CLONE_PIDFD

For #51246.

Change-Id: I0c635723926218bd403d37e113ee4d62194463a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/407574
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Joedian Reid <joedian@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>

16 files changed:
api/next/51246.txt [new file with mode: 0644]
src/syscall/exec_linux.go
src/syscall/mkerrors.sh
src/syscall/zerrors_linux_386.go
src/syscall/zerrors_linux_amd64.go
src/syscall/zerrors_linux_arm.go
src/syscall/zerrors_linux_arm64.go
src/syscall/zerrors_linux_loong64.go
src/syscall/zerrors_linux_mips.go
src/syscall/zerrors_linux_mips64.go
src/syscall/zerrors_linux_mips64le.go
src/syscall/zerrors_linux_mipsle.go
src/syscall/zerrors_linux_ppc64.go
src/syscall/zerrors_linux_ppc64le.go
src/syscall/zerrors_linux_riscv64.go
src/syscall/zerrors_linux_s390x.go

diff --git a/api/next/51246.txt b/api/next/51246.txt
new file mode 100644 (file)
index 0000000..ae583cf
--- /dev/null
@@ -0,0 +1,60 @@
+pkg syscall (linux-386), const CLONE_CLEAR_SIGHAND = 4294967296 #51246
+pkg syscall (linux-386), const CLONE_CLEAR_SIGHAND ideal-int #51246
+pkg syscall (linux-386), const CLONE_INTO_CGROUP = 8589934592 #51246
+pkg syscall (linux-386), const CLONE_INTO_CGROUP ideal-int #51246
+pkg syscall (linux-386), const CLONE_NEWCGROUP = 33554432 #51246
+pkg syscall (linux-386), const CLONE_NEWCGROUP ideal-int #51246
+pkg syscall (linux-386), const CLONE_NEWTIME = 128 #51246
+pkg syscall (linux-386), const CLONE_NEWTIME ideal-int #51246
+pkg syscall (linux-386), const CLONE_PIDFD = 4096 #51246
+pkg syscall (linux-386), const CLONE_PIDFD ideal-int #51246
+pkg syscall (linux-386-cgo), const CLONE_CLEAR_SIGHAND = 4294967296 #51246
+pkg syscall (linux-386-cgo), const CLONE_CLEAR_SIGHAND ideal-int #51246
+pkg syscall (linux-386-cgo), const CLONE_INTO_CGROUP = 8589934592 #51246
+pkg syscall (linux-386-cgo), const CLONE_INTO_CGROUP ideal-int #51246
+pkg syscall (linux-386-cgo), const CLONE_NEWCGROUP = 33554432 #51246
+pkg syscall (linux-386-cgo), const CLONE_NEWCGROUP ideal-int #51246
+pkg syscall (linux-386-cgo), const CLONE_NEWTIME = 128 #51246
+pkg syscall (linux-386-cgo), const CLONE_NEWTIME ideal-int #51246
+pkg syscall (linux-386-cgo), const CLONE_PIDFD = 4096 #51246
+pkg syscall (linux-386-cgo), const CLONE_PIDFD ideal-int #51246
+pkg syscall (linux-amd64), const CLONE_CLEAR_SIGHAND = 4294967296 #51246
+pkg syscall (linux-amd64), const CLONE_CLEAR_SIGHAND ideal-int #51246
+pkg syscall (linux-amd64), const CLONE_INTO_CGROUP = 8589934592 #51246
+pkg syscall (linux-amd64), const CLONE_INTO_CGROUP ideal-int #51246
+pkg syscall (linux-amd64), const CLONE_NEWCGROUP = 33554432 #51246
+pkg syscall (linux-amd64), const CLONE_NEWCGROUP ideal-int #51246
+pkg syscall (linux-amd64), const CLONE_NEWTIME = 128 #51246
+pkg syscall (linux-amd64), const CLONE_NEWTIME ideal-int #51246
+pkg syscall (linux-amd64), const CLONE_PIDFD = 4096 #51246
+pkg syscall (linux-amd64), const CLONE_PIDFD ideal-int #51246
+pkg syscall (linux-amd64-cgo), const CLONE_CLEAR_SIGHAND = 4294967296 #51246
+pkg syscall (linux-amd64-cgo), const CLONE_CLEAR_SIGHAND ideal-int #51246
+pkg syscall (linux-amd64-cgo), const CLONE_INTO_CGROUP = 8589934592 #51246
+pkg syscall (linux-amd64-cgo), const CLONE_INTO_CGROUP ideal-int #51246
+pkg syscall (linux-amd64-cgo), const CLONE_NEWCGROUP = 33554432 #51246
+pkg syscall (linux-amd64-cgo), const CLONE_NEWCGROUP ideal-int #51246
+pkg syscall (linux-amd64-cgo), const CLONE_NEWTIME = 128 #51246
+pkg syscall (linux-amd64-cgo), const CLONE_NEWTIME ideal-int #51246
+pkg syscall (linux-amd64-cgo), const CLONE_PIDFD = 4096 #51246
+pkg syscall (linux-amd64-cgo), const CLONE_PIDFD ideal-int #51246
+pkg syscall (linux-arm), const CLONE_CLEAR_SIGHAND = 4294967296 #51246
+pkg syscall (linux-arm), const CLONE_CLEAR_SIGHAND ideal-int #51246
+pkg syscall (linux-arm), const CLONE_INTO_CGROUP = 8589934592 #51246
+pkg syscall (linux-arm), const CLONE_INTO_CGROUP ideal-int #51246
+pkg syscall (linux-arm), const CLONE_NEWCGROUP = 33554432 #51246
+pkg syscall (linux-arm), const CLONE_NEWCGROUP ideal-int #51246
+pkg syscall (linux-arm), const CLONE_NEWTIME = 128 #51246
+pkg syscall (linux-arm), const CLONE_NEWTIME ideal-int #51246
+pkg syscall (linux-arm), const CLONE_PIDFD = 4096 #51246
+pkg syscall (linux-arm), const CLONE_PIDFD ideal-int #51246
+pkg syscall (linux-arm-cgo), const CLONE_CLEAR_SIGHAND = 4294967296 #51246
+pkg syscall (linux-arm-cgo), const CLONE_CLEAR_SIGHAND ideal-int #51246
+pkg syscall (linux-arm-cgo), const CLONE_INTO_CGROUP = 8589934592 #51246
+pkg syscall (linux-arm-cgo), const CLONE_INTO_CGROUP ideal-int #51246
+pkg syscall (linux-arm-cgo), const CLONE_NEWCGROUP = 33554432 #51246
+pkg syscall (linux-arm-cgo), const CLONE_NEWCGROUP ideal-int #51246
+pkg syscall (linux-arm-cgo), const CLONE_NEWTIME = 128 #51246
+pkg syscall (linux-arm-cgo), const CLONE_NEWTIME ideal-int #51246
+pkg syscall (linux-arm-cgo), const CLONE_PIDFD = 4096 #51246
+pkg syscall (linux-arm-cgo), const CLONE_PIDFD ideal-int #51246
index 554aad412d3634fec230a024fc8423c30891b8da..4ae7f33462e9ef62f2dd1bef7ed1e83bfdcc2671 100644 (file)
@@ -12,6 +12,45 @@ import (
        "unsafe"
 )
 
+// Linux unshare/clone/clone2/clone3 flags, architecture-independent,
+// copied from linux/sched.h.
+const (
+       CLONE_VM             = 0x00000100 // set if VM shared between processes
+       CLONE_FS             = 0x00000200 // set if fs info shared between processes
+       CLONE_FILES          = 0x00000400 // set if open files shared between processes
+       CLONE_SIGHAND        = 0x00000800 // set if signal handlers and blocked signals shared
+       CLONE_PIDFD          = 0x00001000 // set if a pidfd should be placed in parent
+       CLONE_PTRACE         = 0x00002000 // set if we want to let tracing continue on the child too
+       CLONE_VFORK          = 0x00004000 // set if the parent wants the child to wake it up on mm_release
+       CLONE_PARENT         = 0x00008000 // set if we want to have the same parent as the cloner
+       CLONE_THREAD         = 0x00010000 // Same thread group?
+       CLONE_NEWNS          = 0x00020000 // New mount namespace group
+       CLONE_SYSVSEM        = 0x00040000 // share system V SEM_UNDO semantics
+       CLONE_SETTLS         = 0x00080000 // create a new TLS for the child
+       CLONE_PARENT_SETTID  = 0x00100000 // set the TID in the parent
+       CLONE_CHILD_CLEARTID = 0x00200000 // clear the TID in the child
+       CLONE_DETACHED       = 0x00400000 // Unused, ignored
+       CLONE_UNTRACED       = 0x00800000 // set if the tracing process can't force CLONE_PTRACE on this clone
+       CLONE_CHILD_SETTID   = 0x01000000 // set the TID in the child
+       CLONE_NEWCGROUP      = 0x02000000 // New cgroup namespace
+       CLONE_NEWUTS         = 0x04000000 // New utsname namespace
+       CLONE_NEWIPC         = 0x08000000 // New ipc namespace
+       CLONE_NEWUSER        = 0x10000000 // New user namespace
+       CLONE_NEWPID         = 0x20000000 // New pid namespace
+       CLONE_NEWNET         = 0x40000000 // New network namespace
+       CLONE_IO             = 0x80000000 // Clone io context
+
+       // Flags for the clone3() syscall.
+
+       CLONE_CLEAR_SIGHAND = 0x100000000 // Clear any signal handler and reset to SIG_DFL.
+       CLONE_INTO_CGROUP   = 0x200000000 // Clone into a specific cgroup given the right permissions.
+
+       // Cloning flags intersect with CSIGNAL so can be used with unshare and clone3
+       // syscalls only:
+
+       CLONE_NEWTIME = 0x00000080 // New time namespace
+)
+
 // SysProcIDMap holds Container ID to Host ID mappings used for User Namespaces in Linux.
 // See user_namespaces(7).
 type SysProcIDMap struct {
index 92ab4c5f1ea43d085820a6da39d6eae73bf38c94..f7d37279ed997e67c11bed9d8213b76a1665dc97 100755 (executable)
@@ -270,6 +270,7 @@ ccflags="$@"
                $2 ~ /^(SIGEV_|SIGSTKSZ|SIGRT(MIN|MAX))/ {next}
                $2 ~ /^(SCM_SRCRT)$/ {next}
                $2 ~ /^(MAP_FAILED)$/ {next}
+               $2 ~ /^CLONE_[A-Z_]+/ {next} # These are defined in exec_linux.go.
                $2 ~ /^ELF_.*$/ {next}  # <asm/elf.h> contains ELF_ARCH, etc.
 
                $2 !~ /^ETH_/ &&
@@ -317,7 +318,6 @@ ccflags="$@"
                $2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
                $2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|NOFILE|STACK)|RLIM_INFINITY/ ||
                $2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
-               $2 ~ /^CLONE_[A-Z_]+/ ||
                $2 !~ /^(BPF_TIMEVAL)$/ &&
                $2 ~ /^(BPF|DLT)_/ ||
                $2 !~ "WMESGLEN" &&
index 5e4c867bc90a102b7e809c564f4c8fa6dd3cfdfe..045a4166b0418be3048bc19a1cd7f083ed985219 100644 (file)
@@ -148,28 +148,6 @@ const (
        BPF_TXA                          = 0x80
        BPF_W                            = 0x0
        BPF_X                            = 0x8
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        DT_BLK                           = 0x6
        DT_CHR                           = 0x2
        DT_DIR                           = 0x4
index 3ff6e498e78df093c45134730ae0e3d9b9aa3c81..4eb44746487634741c2ecc11a1add2ae72ea04c2 100644 (file)
@@ -148,28 +148,6 @@ const (
        BPF_TXA                          = 0x80
        BPF_W                            = 0x0
        BPF_X                            = 0x8
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        DT_BLK                           = 0x6
        DT_CHR                           = 0x2
        DT_DIR                           = 0x4
index 35825cc9fb4b1287b1deb795c886aa7e2807dae2..a5f925ec6dde65b47f6cb9fd02a7f39510de53e0 100644 (file)
@@ -148,28 +148,6 @@ const (
        BPF_TXA                          = 0x80
        BPF_W                            = 0x0
        BPF_X                            = 0x8
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        DT_BLK                           = 0x6
        DT_CHR                           = 0x2
        DT_DIR                           = 0x4
index 444b8816d56490692eabe63c34e36279a262103d..ec8ac0708e0e49647a4385c06bccfbc50317cc67 100644 (file)
@@ -192,28 +192,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x800
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x80
        CS5                              = 0x0
        CS6                              = 0x10
index 17b109d63ee4a49858a1af2046e1372fed8b063b..a28439cf67a8a00e1a559275320a5a810813a788 100644 (file)
@@ -206,33 +206,6 @@ const (
        CLONE_ARGS_SIZE_VER0              = 0x40
        CLONE_ARGS_SIZE_VER1              = 0x50
        CLONE_ARGS_SIZE_VER2              = 0x58
-       CLONE_CHILD_CLEARTID              = 0x200000
-       CLONE_CHILD_SETTID                = 0x1000000
-       CLONE_CLEAR_SIGHAND               = 0x100000000
-       CLONE_DETACHED                    = 0x400000
-       CLONE_FILES                       = 0x400
-       CLONE_FS                          = 0x200
-       CLONE_INTO_CGROUP                 = 0x200000000
-       CLONE_IO                          = 0x80000000
-       CLONE_NEWCGROUP                   = 0x2000000
-       CLONE_NEWIPC                      = 0x8000000
-       CLONE_NEWNET                      = 0x40000000
-       CLONE_NEWNS                       = 0x20000
-       CLONE_NEWPID                      = 0x20000000
-       CLONE_NEWTIME                     = 0x80
-       CLONE_NEWUSER                     = 0x10000000
-       CLONE_NEWUTS                      = 0x4000000
-       CLONE_PARENT                      = 0x8000
-       CLONE_PARENT_SETTID               = 0x100000
-       CLONE_PIDFD                       = 0x1000
-       CLONE_PTRACE                      = 0x2000
-       CLONE_SETTLS                      = 0x80000
-       CLONE_SIGHAND                     = 0x800
-       CLONE_SYSVSEM                     = 0x40000
-       CLONE_THREAD                      = 0x10000
-       CLONE_UNTRACED                    = 0x800000
-       CLONE_VFORK                       = 0x4000
-       CLONE_VM                          = 0x100
        CREAD                             = 0x80
        CS5                               = 0x0
        CS6                               = 0x10
index d3dae6d84a6916fed564bf2bdee4fbc7f8ac31fc..3fe5c0075767837043fbcc9644cea8fca960f3ef 100644 (file)
@@ -191,28 +191,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x800
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x80
        CS5                              = 0x0
        CS6                              = 0x10
index 84c9e8fb6fe132a2d714840f259647ab101b2cda..74a1843ec2975d2f52738b53da60ec3e7d88a60e 100644 (file)
@@ -189,28 +189,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x800
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x80
        CS5                              = 0x0
        CS6                              = 0x10
index 84c9e8fb6fe132a2d714840f259647ab101b2cda..74a1843ec2975d2f52738b53da60ec3e7d88a60e 100644 (file)
@@ -189,28 +189,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x800
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x80
        CS5                              = 0x0
        CS6                              = 0x10
index d3dae6d84a6916fed564bf2bdee4fbc7f8ac31fc..3fe5c0075767837043fbcc9644cea8fca960f3ef 100644 (file)
@@ -191,28 +191,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x800
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x80
        CS5                              = 0x0
        CS6                              = 0x10
index dd439acc5823497b60535569c059d4ebff888a29..b63daea853b2c8595643fe893dbc6db909cc8f7f 100644 (file)
@@ -191,28 +191,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x8000
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x800
        CS5                              = 0x0
        CS6                              = 0x100
index b71cb0b4e7ead7e09c66f17aee5b465f6cf3a818..01f8adb027528060130b5f84b24d113a2649cdc0 100644 (file)
@@ -192,28 +192,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x8000
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x800
        CS5                              = 0x0
        CS6                              = 0x100
index 582537d0899a0db9186e76ce11b07437ff3bbec7..f4b1d9ae65f21fc09d319879c64ef8e2e9d61adb 100644 (file)
@@ -196,28 +196,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x800
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x80
        CS5                              = 0x0
        CS6                              = 0x10
index cd1aa161e8626bc09447a0d327b727b1b6c4d537..8b99a60995e26ed06c1ff9b0fadae0c272caddf1 100644 (file)
@@ -193,29 +193,6 @@ const (
        BRKINT                           = 0x2
        CFLUSH                           = 0xf
        CLOCAL                           = 0x800
-       CLONE_CHILD_CLEARTID             = 0x200000
-       CLONE_CHILD_SETTID               = 0x1000000
-       CLONE_DETACHED                   = 0x400000
-       CLONE_FILES                      = 0x400
-       CLONE_FS                         = 0x200
-       CLONE_IO                         = 0x80000000
-       CLONE_NEWCGROUP                  = 0x2000000
-       CLONE_NEWIPC                     = 0x8000000
-       CLONE_NEWNET                     = 0x40000000
-       CLONE_NEWNS                      = 0x20000
-       CLONE_NEWPID                     = 0x20000000
-       CLONE_NEWUSER                    = 0x10000000
-       CLONE_NEWUTS                     = 0x4000000
-       CLONE_PARENT                     = 0x8000
-       CLONE_PARENT_SETTID              = 0x100000
-       CLONE_PTRACE                     = 0x2000
-       CLONE_SETTLS                     = 0x80000
-       CLONE_SIGHAND                    = 0x800
-       CLONE_SYSVSEM                    = 0x40000
-       CLONE_THREAD                     = 0x10000
-       CLONE_UNTRACED                   = 0x800000
-       CLONE_VFORK                      = 0x4000
-       CLONE_VM                         = 0x100
        CREAD                            = 0x80
        CS5                              = 0x0
        CS6                              = 0x10