From: Rémy Oudompheng Date: Fri, 23 Aug 2013 20:26:49 +0000 (+0200) Subject: syscall: define CLONE_* constants on Linux. X-Git-Tag: go1.2rc2~439 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d4f719ee13312e283af3346b7814f578e6db2155;p=gostls13.git syscall: define CLONE_* constants on Linux. Update #6214 R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13160043 --- diff --git a/src/pkg/syscall/mkerrors.sh b/src/pkg/syscall/mkerrors.sh index 9bdf993503..44ec781cb6 100755 --- a/src/pkg/syscall/mkerrors.sh +++ b/src/pkg/syscall/mkerrors.sh @@ -100,6 +100,7 @@ includes_Linux=' #include #include #include +#include #include #include #include @@ -243,6 +244,7 @@ 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" && diff --git a/src/pkg/syscall/zerrors_linux_386.go b/src/pkg/syscall/zerrors_linux_386.go index ea568ce4e3..3d1a07a99b 100644 --- a/src/pkg/syscall/zerrors_linux_386.go +++ b/src/pkg/syscall/zerrors_linux_386.go @@ -4,12 +4,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m32 _const.go -//line _const.go:1 package syscall -//line _const.go:51 - -//line _const.go:50 const ( AF_ALG = 0x26 AF_APPLETALK = 0x5 @@ -150,6 +146,28 @@ 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 diff --git a/src/pkg/syscall/zerrors_linux_amd64.go b/src/pkg/syscall/zerrors_linux_amd64.go index 337dc62d1b..ed175b73c4 100644 --- a/src/pkg/syscall/zerrors_linux_amd64.go +++ b/src/pkg/syscall/zerrors_linux_amd64.go @@ -4,12 +4,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go -//line _const.go:1 package syscall -//line _const.go:51 - -//line _const.go:50 const ( AF_ALG = 0x26 AF_APPLETALK = 0x5 @@ -150,6 +146,28 @@ 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 diff --git a/src/pkg/syscall/zerrors_linux_arm.go b/src/pkg/syscall/zerrors_linux_arm.go index 51e3b92719..f740f04516 100644 --- a/src/pkg/syscall/zerrors_linux_arm.go +++ b/src/pkg/syscall/zerrors_linux_arm.go @@ -146,6 +146,28 @@ 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