github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/abi/linux/clone.go (about) 1 // Copyright 2018 The gVisor Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package linux 16 17 // Clone constants per clone(2). 18 const ( 19 CLONE_VM = 0x100 20 CLONE_FS = 0x200 21 CLONE_FILES = 0x400 22 CLONE_SIGHAND = 0x800 23 CLONE_PARENT = 0x8000 24 CLONE_PTRACE = 0x2000 25 CLONE_VFORK = 0x4000 26 CLONE_THREAD = 0x10000 27 CLONE_NEWNS = 0x20000 28 CLONE_SYSVSEM = 0x40000 29 CLONE_SETTLS = 0x80000 30 CLONE_PARENT_SETTID = 0x100000 31 CLONE_CHILD_CLEARTID = 0x200000 32 CLONE_DETACHED = 0x400000 33 CLONE_UNTRACED = 0x800000 34 CLONE_CHILD_SETTID = 0x1000000 35 CLONE_NEWUTS = 0x4000000 36 CLONE_NEWIPC = 0x8000000 37 CLONE_NEWUSER = 0x10000000 38 CLONE_NEWPID = 0x20000000 39 CLONE_NEWNET = 0x40000000 40 CLONE_IO = 0x80000000 41 )