]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: define CLONE_* constants on Linux.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 23 Aug 2013 20:26:49 +0000 (22:26 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 23 Aug 2013 20:26:49 +0000 (22:26 +0200)
Update #6214

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13160043

src/pkg/syscall/mkerrors.sh
src/pkg/syscall/zerrors_linux_386.go
src/pkg/syscall/zerrors_linux_amd64.go
src/pkg/syscall/zerrors_linux_arm.go

index 9bdf9935032da77327e588cc61872dae0b78c7c3..44ec781cb6d30ac136d96f37379765b16dfae3ac 100755 (executable)
@@ -100,6 +100,7 @@ includes_Linux='
 #include <linux/reboot.h>
 #include <linux/rtnetlink.h>
 #include <linux/ptrace.h>
+#include <linux/sched.h>
 #include <linux/wait.h>
 #include <linux/icmpv6.h>
 #include <net/if.h>
@@ -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" &&
index ea568ce4e3797b8461f6e6922ebae787564586d8..3d1a07a99ba4ea4c65319ec8018f0f0302d68f32 100644 (file)
@@ -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
index 337dc62d1b35b4ead7e48464ffd49ae18b1634e0..ed175b73c481953804a47dab7ea48bc83f6508de 100644 (file)
@@ -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
index 51e3b927194dbbfc42f983182b4e978e074567e6..f740f04516c6e243f6ae1d7296f2ccbe7a5d2ddc 100644 (file)
@@ -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