Movatterモバイル変換


[0]ホーム

URL:


syscall

packagestandard library
go1.24.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2025 License:BSD-3-ClauseImports:14Imported by:272,802

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

Package syscall contains an interface to the low-level operating systemprimitives. The details vary depending on the underlying system, andby default, godoc will display the syscall documentation for the currentsystem. If you want godoc to display syscall documentation for anothersystem, set $GOOS and $GOARCH to the desired system. For example, ifyou want to view documentation for freebsd/arm on linux/amd64, set $GOOSto freebsd and $GOARCH to arm.The primary use of syscall is inside other packages that provide a moreportable interface to the system, such as "os", "time" and "net". Usethose packages rather than this one if you can.For details of the functions and data types in this package consultthe manuals for the appropriate operating system.These calls return err == nil to indicate success; otherwiseerr is an operating system error describing the failure.On most systems, that error has typeErrno.

NOTE: Most of the functions, types, and constants defined inthis package are also available in thegolang.org/x/sys package.That package has more system call support than this one,and most new code should prefer that package where possible.Seehttps://golang.org/s/go1.4-syscall for more information.

Index

Constants

View Source
const (CLONE_VM             = 0x00000100// set if VM shared between processesCLONE_FS             = 0x00000200// set if fs info shared between processesCLONE_FILES          = 0x00000400// set if open files shared between processesCLONE_SIGHAND        = 0x00000800// set if signal handlers and blocked signals sharedCLONE_PIDFD          = 0x00001000// set if a pidfd should be placed in parentCLONE_PTRACE         = 0x00002000// set if we want to let tracing continue on the child tooCLONE_VFORK          = 0x00004000// set if the parent wants the child to wake it up on mm_releaseCLONE_PARENT         = 0x00008000// set if we want to have the same parent as the clonerCLONE_THREAD         = 0x00010000// Same thread group?CLONE_NEWNS          = 0x00020000// New mount namespace groupCLONE_SYSVSEM        = 0x00040000// share system V SEM_UNDO semanticsCLONE_SETTLS         = 0x00080000// create a new TLS for the childCLONE_PARENT_SETTID  = 0x00100000// set the TID in the parentCLONE_CHILD_CLEARTID = 0x00200000// clear the TID in the childCLONE_DETACHED       = 0x00400000// Unused, ignoredCLONE_UNTRACED       = 0x00800000// set if the tracing process can't force CLONE_PTRACE on this cloneCLONE_CHILD_SETTID   = 0x01000000// set the TID in the childCLONE_NEWCGROUP      = 0x02000000// New cgroup namespaceCLONE_NEWUTS         = 0x04000000// New utsname namespaceCLONE_NEWIPC         = 0x08000000// New ipc namespaceCLONE_NEWUSER        = 0x10000000// New user namespaceCLONE_NEWPID         = 0x20000000// New pid namespaceCLONE_NEWNET         = 0x40000000// New network namespaceCLONE_IO             = 0x80000000// Clone io contextCLONE_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.CLONE_NEWTIME = 0x00000080// New time namespace)

Linux unshare/clone/clone2/clone3 flags, architecture-independent,copied from linux/sched.h.

View Source
const (AF_ALG                           = 0x26AF_APPLETALK                     = 0x5AF_ASH                           = 0x12AF_ATMPVC                        = 0x8AF_ATMSVC                        = 0x14AF_AX25                          = 0x3AF_BLUETOOTH                     = 0x1fAF_BRIDGE                        = 0x7AF_CAIF                          = 0x25AF_CAN                           = 0x1dAF_DECnet                        = 0xcAF_ECONET                        = 0x13AF_FILE                          = 0x1AF_IEEE802154                    = 0x24AF_INET                          = 0x2AF_INET6                         = 0xaAF_IPX                           = 0x4AF_IRDA                          = 0x17AF_ISDN                          = 0x22AF_IUCV                          = 0x20AF_KEY                           = 0xfAF_LLC                           = 0x1aAF_LOCAL                         = 0x1AF_MAX                           = 0x27AF_NETBEUI                       = 0xdAF_NETLINK                       = 0x10AF_NETROM                        = 0x6AF_PACKET                        = 0x11AF_PHONET                        = 0x23AF_PPPOX                         = 0x18AF_RDS                           = 0x15AF_ROSE                          = 0xbAF_ROUTE                         = 0x10AF_RXRPC                         = 0x21AF_SECURITY                      = 0xeAF_SNA                           = 0x16AF_TIPC                          = 0x1eAF_UNIX                          = 0x1AF_UNSPEC                        = 0x0AF_WANPIPE                       = 0x19AF_X25                           = 0x9ARPHRD_ADAPT                     = 0x108ARPHRD_APPLETLK                  = 0x8ARPHRD_ARCNET                    = 0x7ARPHRD_ASH                       = 0x30dARPHRD_ATM                       = 0x13ARPHRD_AX25                      = 0x3ARPHRD_BIF                       = 0x307ARPHRD_CHAOS                     = 0x5ARPHRD_CISCO                     = 0x201ARPHRD_CSLIP                     = 0x101ARPHRD_CSLIP6                    = 0x103ARPHRD_DDCMP                     = 0x205ARPHRD_DLCI                      = 0xfARPHRD_ECONET                    = 0x30eARPHRD_EETHER                    = 0x2ARPHRD_ETHER                     = 0x1ARPHRD_EUI64                     = 0x1bARPHRD_FCAL                      = 0x311ARPHRD_FCFABRIC                  = 0x313ARPHRD_FCPL                      = 0x312ARPHRD_FCPP                      = 0x310ARPHRD_FDDI                      = 0x306ARPHRD_FRAD                      = 0x302ARPHRD_HDLC                      = 0x201ARPHRD_HIPPI                     = 0x30cARPHRD_HWX25                     = 0x110ARPHRD_IEEE1394                  = 0x18ARPHRD_IEEE802                   = 0x6ARPHRD_IEEE80211                 = 0x321ARPHRD_IEEE80211_PRISM           = 0x322ARPHRD_IEEE80211_RADIOTAP        = 0x323ARPHRD_IEEE802154                = 0x324ARPHRD_IEEE802154_PHY            = 0x325ARPHRD_IEEE802_TR                = 0x320ARPHRD_INFINIBAND                = 0x20ARPHRD_IPDDP                     = 0x309ARPHRD_IPGRE                     = 0x30aARPHRD_IRDA                      = 0x30fARPHRD_LAPB                      = 0x204ARPHRD_LOCALTLK                  = 0x305ARPHRD_LOOPBACK                  = 0x304ARPHRD_METRICOM                  = 0x17ARPHRD_NETROM                    = 0x0ARPHRD_NONE                      = 0xfffeARPHRD_PIMREG                    = 0x30bARPHRD_PPP                       = 0x200ARPHRD_PRONET                    = 0x4ARPHRD_RAWHDLC                   = 0x206ARPHRD_ROSE                      = 0x10eARPHRD_RSRVD                     = 0x104ARPHRD_SIT                       = 0x308ARPHRD_SKIP                      = 0x303ARPHRD_SLIP                      = 0x100ARPHRD_SLIP6                     = 0x102ARPHRD_TUNNEL                    = 0x300ARPHRD_TUNNEL6                   = 0x301ARPHRD_VOID                      = 0xffffARPHRD_X25                       = 0x10fBPF_A                            = 0x10BPF_ABS                          = 0x20BPF_ADD                          = 0x0BPF_ALU                          = 0x4BPF_AND                          = 0x50BPF_B                            = 0x10BPF_DIV                          = 0x30BPF_H                            = 0x8BPF_IMM                          = 0x0BPF_IND                          = 0x40BPF_JA                           = 0x0BPF_JEQ                          = 0x10BPF_JGE                          = 0x30BPF_JGT                          = 0x20BPF_JMP                          = 0x5BPF_JSET                         = 0x40BPF_K                            = 0x0BPF_LD                           = 0x0BPF_LDX                          = 0x1BPF_LEN                          = 0x80BPF_LSH                          = 0x60BPF_MAJOR_VERSION                = 0x1BPF_MAXINSNS                     = 0x1000BPF_MEM                          = 0x60BPF_MEMWORDS                     = 0x10BPF_MINOR_VERSION                = 0x1BPF_MISC                         = 0x7BPF_MSH                          = 0xa0BPF_MUL                          = 0x20BPF_NEG                          = 0x80BPF_OR                           = 0x40BPF_RET                          = 0x6BPF_RSH                          = 0x70BPF_ST                           = 0x2BPF_STX                          = 0x3BPF_SUB                          = 0x10BPF_TAX                          = 0x0BPF_TXA                          = 0x80BPF_W                            = 0x0BPF_X                            = 0x8DT_BLK                           = 0x6DT_CHR                           = 0x2DT_DIR                           = 0x4DT_FIFO                          = 0x1DT_LNK                           = 0xaDT_REG                           = 0x8DT_SOCK                          = 0xcDT_UNKNOWN                       = 0x0DT_WHT                           = 0xeEPOLLERR                         = 0x8EPOLLET                          = -0x80000000EPOLLHUP                         = 0x10EPOLLIN                          = 0x1EPOLLMSG                         = 0x400EPOLLONESHOT                     = 0x40000000EPOLLOUT                         = 0x4EPOLLPRI                         = 0x2EPOLLRDBAND                      = 0x80EPOLLRDHUP                       = 0x2000EPOLLRDNORM                      = 0x40EPOLLWRBAND                      = 0x200EPOLLWRNORM                      = 0x100EPOLL_CLOEXEC                    = 0x80000EPOLL_CTL_ADD                    = 0x1EPOLL_CTL_DEL                    = 0x2EPOLL_CTL_MOD                    = 0x3EPOLL_NONBLOCK                   = 0x800ETH_P_1588                       = 0x88f7ETH_P_8021Q                      = 0x8100ETH_P_802_2                      = 0x4ETH_P_802_3                      = 0x1ETH_P_AARP                       = 0x80f3ETH_P_ALL                        = 0x3ETH_P_AOE                        = 0x88a2ETH_P_ARCNET                     = 0x1aETH_P_ARP                        = 0x806ETH_P_ATALK                      = 0x809bETH_P_ATMFATE                    = 0x8884ETH_P_ATMMPOA                    = 0x884cETH_P_AX25                       = 0x2ETH_P_BPQ                        = 0x8ffETH_P_CAIF                       = 0xf7ETH_P_CAN                        = 0xcETH_P_CONTROL                    = 0x16ETH_P_CUST                       = 0x6006ETH_P_DDCMP                      = 0x6ETH_P_DEC                        = 0x6000ETH_P_DIAG                       = 0x6005ETH_P_DNA_DL                     = 0x6001ETH_P_DNA_RC                     = 0x6002ETH_P_DNA_RT                     = 0x6003ETH_P_DSA                        = 0x1bETH_P_ECONET                     = 0x18ETH_P_EDSA                       = 0xdadaETH_P_FCOE                       = 0x8906ETH_P_FIP                        = 0x8914ETH_P_HDLC                       = 0x19ETH_P_IEEE802154                 = 0xf6ETH_P_IEEEPUP                    = 0xa00ETH_P_IEEEPUPAT                  = 0xa01ETH_P_IP                         = 0x800ETH_P_IPV6                       = 0x86ddETH_P_IPX                        = 0x8137ETH_P_IRDA                       = 0x17ETH_P_LAT                        = 0x6004ETH_P_LINK_CTL                   = 0x886cETH_P_LOCALTALK                  = 0x9ETH_P_LOOP                       = 0x60ETH_P_MOBITEX                    = 0x15ETH_P_MPLS_MC                    = 0x8848ETH_P_MPLS_UC                    = 0x8847ETH_P_PAE                        = 0x888eETH_P_PAUSE                      = 0x8808ETH_P_PHONET                     = 0xf5ETH_P_PPPTALK                    = 0x10ETH_P_PPP_DISC                   = 0x8863ETH_P_PPP_MP                     = 0x8ETH_P_PPP_SES                    = 0x8864ETH_P_PUP                        = 0x200ETH_P_PUPAT                      = 0x201ETH_P_RARP                       = 0x8035ETH_P_SCA                        = 0x6007ETH_P_SLOW                       = 0x8809ETH_P_SNAP                       = 0x5ETH_P_TEB                        = 0x6558ETH_P_TIPC                       = 0x88caETH_P_TRAILER                    = 0x1cETH_P_TR_802_2                   = 0x11ETH_P_WAN_PPP                    = 0x7ETH_P_WCCP                       = 0x883eETH_P_X25                        = 0x805FD_CLOEXEC                       = 0x1FD_SETSIZE                       = 0x400F_DUPFD                          = 0x0F_DUPFD_CLOEXEC                  = 0x406F_EXLCK                          = 0x4F_GETFD                          = 0x1F_GETFL                          = 0x3F_GETLEASE                       = 0x401F_GETLK                          = 0x5F_GETLK64                        = 0x5F_GETOWN                         = 0x9F_GETOWN_EX                      = 0x10F_GETPIPE_SZ                     = 0x408F_GETSIG                         = 0xbF_LOCK                           = 0x1F_NOTIFY                         = 0x402F_OK                             = 0x0F_RDLCK                          = 0x0F_SETFD                          = 0x2F_SETFL                          = 0x4F_SETLEASE                       = 0x400F_SETLK                          = 0x6F_SETLK64                        = 0x6F_SETLKW                         = 0x7F_SETLKW64                       = 0x7F_SETOWN                         = 0x8F_SETOWN_EX                      = 0xfF_SETPIPE_SZ                     = 0x407F_SETSIG                         = 0xaF_SHLCK                          = 0x8F_TEST                           = 0x3F_TLOCK                          = 0x2F_ULOCK                          = 0x0F_UNLCK                          = 0x2F_WRLCK                          = 0x1ICMPV6_FILTER                    = 0x1IFA_F_DADFAILED                  = 0x8IFA_F_DEPRECATED                 = 0x20IFA_F_HOMEADDRESS                = 0x10IFA_F_NODAD                      = 0x2IFA_F_OPTIMISTIC                 = 0x4IFA_F_PERMANENT                  = 0x80IFA_F_SECONDARY                  = 0x1IFA_F_TEMPORARY                  = 0x1IFA_F_TENTATIVE                  = 0x40IFA_MAX                          = 0x7IFF_ALLMULTI                     = 0x200IFF_AUTOMEDIA                    = 0x4000IFF_BROADCAST                    = 0x2IFF_DEBUG                        = 0x4IFF_DYNAMIC                      = 0x8000IFF_LOOPBACK                     = 0x8IFF_MASTER                       = 0x400IFF_MULTICAST                    = 0x1000IFF_NOARP                        = 0x80IFF_NOTRAILERS                   = 0x20IFF_NO_PI                        = 0x1000IFF_ONE_QUEUE                    = 0x2000IFF_POINTOPOINT                  = 0x10IFF_PORTSEL                      = 0x2000IFF_PROMISC                      = 0x100IFF_RUNNING                      = 0x40IFF_SLAVE                        = 0x800IFF_TAP                          = 0x2IFF_TUN                          = 0x1IFF_TUN_EXCL                     = 0x8000IFF_UP                           = 0x1IFF_VNET_HDR                     = 0x4000IFNAMSIZ                         = 0x10IN_ACCESS                        = 0x1IN_ALL_EVENTS                    = 0xfffIN_ATTRIB                        = 0x4IN_CLASSA_HOST                   = 0xffffffIN_CLASSA_MAX                    = 0x80IN_CLASSA_NET                    = 0xff000000IN_CLASSA_NSHIFT                 = 0x18IN_CLASSB_HOST                   = 0xffffIN_CLASSB_MAX                    = 0x10000IN_CLASSB_NET                    = 0xffff0000IN_CLASSB_NSHIFT                 = 0x10IN_CLASSC_HOST                   = 0xffIN_CLASSC_NET                    = 0xffffff00IN_CLASSC_NSHIFT                 = 0x8IN_CLOEXEC                       = 0x80000IN_CLOSE                         = 0x18IN_CLOSE_NOWRITE                 = 0x10IN_CLOSE_WRITE                   = 0x8IN_CREATE                        = 0x100IN_DELETE                        = 0x200IN_DELETE_SELF                   = 0x400IN_DONT_FOLLOW                   = 0x2000000IN_EXCL_UNLINK                   = 0x4000000IN_IGNORED                       = 0x8000IN_ISDIR                         = 0x40000000IN_LOOPBACKNET                   = 0x7fIN_MASK_ADD                      = 0x20000000IN_MODIFY                        = 0x2IN_MOVE                          = 0xc0IN_MOVED_FROM                    = 0x40IN_MOVED_TO                      = 0x80IN_MOVE_SELF                     = 0x800IN_NONBLOCK                      = 0x800IN_ONESHOT                       = 0x80000000IN_ONLYDIR                       = 0x1000000IN_OPEN                          = 0x20IN_Q_OVERFLOW                    = 0x4000IN_UNMOUNT                       = 0x2000IPPROTO_AH                       = 0x33IPPROTO_COMP                     = 0x6cIPPROTO_DCCP                     = 0x21IPPROTO_DSTOPTS                  = 0x3cIPPROTO_EGP                      = 0x8IPPROTO_ENCAP                    = 0x62IPPROTO_ESP                      = 0x32IPPROTO_FRAGMENT                 = 0x2cIPPROTO_GRE                      = 0x2fIPPROTO_HOPOPTS                  = 0x0IPPROTO_ICMP                     = 0x1IPPROTO_ICMPV6                   = 0x3aIPPROTO_IDP                      = 0x16IPPROTO_IGMP                     = 0x2IPPROTO_IP                       = 0x0IPPROTO_IPIP                     = 0x4IPPROTO_IPV6                     = 0x29IPPROTO_MTP                      = 0x5cIPPROTO_NONE                     = 0x3bIPPROTO_PIM                      = 0x67IPPROTO_PUP                      = 0xcIPPROTO_RAW                      = 0xffIPPROTO_ROUTING                  = 0x2bIPPROTO_RSVP                     = 0x2eIPPROTO_SCTP                     = 0x84IPPROTO_TCP                      = 0x6IPPROTO_TP                       = 0x1dIPPROTO_UDP                      = 0x11IPPROTO_UDPLITE                  = 0x88IPV6_2292DSTOPTS                 = 0x4IPV6_2292HOPLIMIT                = 0x8IPV6_2292HOPOPTS                 = 0x3IPV6_2292PKTINFO                 = 0x2IPV6_2292PKTOPTIONS              = 0x6IPV6_2292RTHDR                   = 0x5IPV6_ADDRFORM                    = 0x1IPV6_ADD_MEMBERSHIP              = 0x14IPV6_AUTHHDR                     = 0xaIPV6_CHECKSUM                    = 0x7IPV6_DROP_MEMBERSHIP             = 0x15IPV6_DSTOPTS                     = 0x3bIPV6_HOPLIMIT                    = 0x34IPV6_HOPOPTS                     = 0x36IPV6_IPSEC_POLICY                = 0x22IPV6_JOIN_ANYCAST                = 0x1bIPV6_JOIN_GROUP                  = 0x14IPV6_LEAVE_ANYCAST               = 0x1cIPV6_LEAVE_GROUP                 = 0x15IPV6_MTU                         = 0x18IPV6_MTU_DISCOVER                = 0x17IPV6_MULTICAST_HOPS              = 0x12IPV6_MULTICAST_IF                = 0x11IPV6_MULTICAST_LOOP              = 0x13IPV6_NEXTHOP                     = 0x9IPV6_PKTINFO                     = 0x32IPV6_PMTUDISC_DO                 = 0x2IPV6_PMTUDISC_DONT               = 0x0IPV6_PMTUDISC_PROBE              = 0x3IPV6_PMTUDISC_WANT               = 0x1IPV6_RECVDSTOPTS                 = 0x3aIPV6_RECVERR                     = 0x19IPV6_RECVHOPLIMIT                = 0x33IPV6_RECVHOPOPTS                 = 0x35IPV6_RECVPKTINFO                 = 0x31IPV6_RECVRTHDR                   = 0x38IPV6_RECVTCLASS                  = 0x42IPV6_ROUTER_ALERT                = 0x16IPV6_RTHDR                       = 0x39IPV6_RTHDRDSTOPTS                = 0x37IPV6_RTHDR_LOOSE                 = 0x0IPV6_RTHDR_STRICT                = 0x1IPV6_RTHDR_TYPE_0                = 0x0IPV6_RXDSTOPTS                   = 0x3bIPV6_RXHOPOPTS                   = 0x36IPV6_TCLASS                      = 0x43IPV6_UNICAST_HOPS                = 0x10IPV6_V6ONLY                      = 0x1aIPV6_XFRM_POLICY                 = 0x23IP_ADD_MEMBERSHIP                = 0x23IP_ADD_SOURCE_MEMBERSHIP         = 0x27IP_BLOCK_SOURCE                  = 0x26IP_DEFAULT_MULTICAST_LOOP        = 0x1IP_DEFAULT_MULTICAST_TTL         = 0x1IP_DF                            = 0x4000IP_DROP_MEMBERSHIP               = 0x24IP_DROP_SOURCE_MEMBERSHIP        = 0x28IP_FREEBIND                      = 0xfIP_HDRINCL                       = 0x3IP_IPSEC_POLICY                  = 0x10IP_MAXPACKET                     = 0xffffIP_MAX_MEMBERSHIPS               = 0x14IP_MF                            = 0x2000IP_MINTTL                        = 0x15IP_MSFILTER                      = 0x29IP_MSS                           = 0x240IP_MTU                           = 0xeIP_MTU_DISCOVER                  = 0xaIP_MULTICAST_IF                  = 0x20IP_MULTICAST_LOOP                = 0x22IP_MULTICAST_TTL                 = 0x21IP_OFFMASK                       = 0x1fffIP_OPTIONS                       = 0x4IP_ORIGDSTADDR                   = 0x14IP_PASSSEC                       = 0x12IP_PKTINFO                       = 0x8IP_PKTOPTIONS                    = 0x9IP_PMTUDISC                      = 0xaIP_PMTUDISC_DO                   = 0x2IP_PMTUDISC_DONT                 = 0x0IP_PMTUDISC_PROBE                = 0x3IP_PMTUDISC_WANT                 = 0x1IP_RECVERR                       = 0xbIP_RECVOPTS                      = 0x6IP_RECVORIGDSTADDR               = 0x14IP_RECVRETOPTS                   = 0x7IP_RECVTOS                       = 0xdIP_RECVTTL                       = 0xcIP_RETOPTS                       = 0x7IP_RF                            = 0x8000IP_ROUTER_ALERT                  = 0x5IP_TOS                           = 0x1IP_TRANSPARENT                   = 0x13IP_TTL                           = 0x2IP_UNBLOCK_SOURCE                = 0x25IP_XFRM_POLICY                   = 0x11LINUX_REBOOT_CMD_CAD_OFF         = 0x0LINUX_REBOOT_CMD_CAD_ON          = 0x89abcdefLINUX_REBOOT_CMD_HALT            = 0xcdef0123LINUX_REBOOT_CMD_KEXEC           = 0x45584543LINUX_REBOOT_CMD_POWER_OFF       = 0x4321fedcLINUX_REBOOT_CMD_RESTART         = 0x1234567LINUX_REBOOT_CMD_RESTART2        = 0xa1b2c3d4LINUX_REBOOT_CMD_SW_SUSPEND      = 0xd000fce2LINUX_REBOOT_MAGIC1              = 0xfee1deadLINUX_REBOOT_MAGIC2              = 0x28121969LOCK_EX                          = 0x2LOCK_NB                          = 0x4LOCK_SH                          = 0x1LOCK_UN                          = 0x8MADV_DOFORK                      = 0xbMADV_DONTFORK                    = 0xaMADV_DONTNEED                    = 0x4MADV_HUGEPAGE                    = 0xeMADV_HWPOISON                    = 0x64MADV_MERGEABLE                   = 0xcMADV_NOHUGEPAGE                  = 0xfMADV_NORMAL                      = 0x0MADV_RANDOM                      = 0x1MADV_REMOVE                      = 0x9MADV_SEQUENTIAL                  = 0x2MADV_UNMERGEABLE                 = 0xdMADV_WILLNEED                    = 0x3MAP_32BIT                        = 0x40MAP_ANON                         = 0x20MAP_ANONYMOUS                    = 0x20MAP_DENYWRITE                    = 0x800MAP_EXECUTABLE                   = 0x1000MAP_FILE                         = 0x0MAP_FIXED                        = 0x10MAP_GROWSDOWN                    = 0x100MAP_HUGETLB                      = 0x40000MAP_LOCKED                       = 0x2000MAP_NONBLOCK                     = 0x10000MAP_NORESERVE                    = 0x4000MAP_POPULATE                     = 0x8000MAP_PRIVATE                      = 0x2MAP_SHARED                       = 0x1MAP_STACK                        = 0x20000MAP_TYPE                         = 0xfMCL_CURRENT                      = 0x1MCL_FUTURE                       = 0x2MNT_DETACH                       = 0x2MNT_EXPIRE                       = 0x4MNT_FORCE                        = 0x1MSG_CMSG_CLOEXEC                 = 0x40000000MSG_CONFIRM                      = 0x800MSG_CTRUNC                       = 0x8MSG_DONTROUTE                    = 0x4MSG_DONTWAIT                     = 0x40MSG_EOR                          = 0x80MSG_ERRQUEUE                     = 0x2000MSG_FASTOPEN                     = 0x20000000MSG_FIN                          = 0x200MSG_MORE                         = 0x8000MSG_NOSIGNAL                     = 0x4000MSG_OOB                          = 0x1MSG_PEEK                         = 0x2MSG_PROXY                        = 0x10MSG_RST                          = 0x1000MSG_SYN                          = 0x400MSG_TRUNC                        = 0x20MSG_TRYHARD                      = 0x4MSG_WAITALL                      = 0x100MSG_WAITFORONE                   = 0x10000MS_ACTIVE                        = 0x40000000MS_ASYNC                         = 0x1MS_BIND                          = 0x1000MS_DIRSYNC                       = 0x80MS_INVALIDATE                    = 0x2MS_I_VERSION                     = 0x800000MS_KERNMOUNT                     = 0x400000MS_MANDLOCK                      = 0x40MS_MGC_MSK                       = 0xffff0000MS_MGC_VAL                       = 0xc0ed0000MS_MOVE                          = 0x2000MS_NOATIME                       = 0x400MS_NODEV                         = 0x4MS_NODIRATIME                    = 0x800MS_NOEXEC                        = 0x8MS_NOSUID                        = 0x2MS_NOUSER                        = -0x80000000MS_POSIXACL                      = 0x10000MS_PRIVATE                       = 0x40000MS_RDONLY                        = 0x1MS_REC                           = 0x4000MS_RELATIME                      = 0x200000MS_REMOUNT                       = 0x20MS_RMT_MASK                      = 0x800051MS_SHARED                        = 0x100000MS_SILENT                        = 0x8000MS_SLAVE                         = 0x80000MS_STRICTATIME                   = 0x1000000MS_SYNC                          = 0x4MS_SYNCHRONOUS                   = 0x10MS_UNBINDABLE                    = 0x20000NAME_MAX                         = 0xffNETLINK_ADD_MEMBERSHIP           = 0x1NETLINK_AUDIT                    = 0x9NETLINK_BROADCAST_ERROR          = 0x4NETLINK_CONNECTOR                = 0xbNETLINK_DNRTMSG                  = 0xeNETLINK_DROP_MEMBERSHIP          = 0x2NETLINK_ECRYPTFS                 = 0x13NETLINK_FIB_LOOKUP               = 0xaNETLINK_FIREWALL                 = 0x3NETLINK_GENERIC                  = 0x10NETLINK_INET_DIAG                = 0x4NETLINK_IP6_FW                   = 0xdNETLINK_ISCSI                    = 0x8NETLINK_KOBJECT_UEVENT           = 0xfNETLINK_NETFILTER                = 0xcNETLINK_NFLOG                    = 0x5NETLINK_NO_ENOBUFS               = 0x5NETLINK_PKTINFO                  = 0x3NETLINK_ROUTE                    = 0x0NETLINK_SCSITRANSPORT            = 0x12NETLINK_SELINUX                  = 0x7NETLINK_UNUSED                   = 0x1NETLINK_USERSOCK                 = 0x2NETLINK_XFRM                     = 0x6NLA_ALIGNTO                      = 0x4NLA_F_NESTED                     = 0x8000NLA_F_NET_BYTEORDER              = 0x4000NLA_HDRLEN                       = 0x4NLMSG_ALIGNTO                    = 0x4NLMSG_DONE                       = 0x3NLMSG_ERROR                      = 0x2NLMSG_HDRLEN                     = 0x10NLMSG_MIN_TYPE                   = 0x10NLMSG_NOOP                       = 0x1NLMSG_OVERRUN                    = 0x4NLM_F_ACK                        = 0x4NLM_F_APPEND                     = 0x800NLM_F_ATOMIC                     = 0x400NLM_F_CREATE                     = 0x400NLM_F_DUMP                       = 0x300NLM_F_ECHO                       = 0x8NLM_F_EXCL                       = 0x200NLM_F_MATCH                      = 0x200NLM_F_MULTI                      = 0x2NLM_F_REPLACE                    = 0x100NLM_F_REQUEST                    = 0x1NLM_F_ROOT                       = 0x100O_ACCMODE                        = 0x3O_APPEND                         = 0x400O_ASYNC                          = 0x2000O_CLOEXEC                        = 0x80000O_CREAT                          = 0x40O_DIRECT                         = 0x4000O_DIRECTORY                      = 0x10000O_DSYNC                          = 0x1000O_EXCL                           = 0x80O_FSYNC                          = 0x101000O_LARGEFILE                      = 0x0O_NDELAY                         = 0x800O_NOATIME                        = 0x40000O_NOCTTY                         = 0x100O_NOFOLLOW                       = 0x20000O_NONBLOCK                       = 0x800O_RDONLY                         = 0x0O_RDWR                           = 0x2O_RSYNC                          = 0x101000O_SYNC                           = 0x101000O_TRUNC                          = 0x200O_WRONLY                         = 0x1PACKET_ADD_MEMBERSHIP            = 0x1PACKET_BROADCAST                 = 0x1PACKET_DROP_MEMBERSHIP           = 0x2PACKET_FASTROUTE                 = 0x6PACKET_HOST                      = 0x0PACKET_LOOPBACK                  = 0x5PACKET_MR_ALLMULTI               = 0x2PACKET_MR_MULTICAST              = 0x0PACKET_MR_PROMISC                = 0x1PACKET_MULTICAST                 = 0x2PACKET_OTHERHOST                 = 0x3PACKET_OUTGOING                  = 0x4PACKET_RECV_OUTPUT               = 0x3PACKET_RX_RING                   = 0x5PACKET_STATISTICS                = 0x6PRIO_PGRP                        = 0x1PRIO_PROCESS                     = 0x0PRIO_USER                        = 0x2PROT_EXEC                        = 0x4PROT_GROWSDOWN                   = 0x1000000PROT_GROWSUP                     = 0x2000000PROT_NONE                        = 0x0PROT_READ                        = 0x1PROT_WRITE                       = 0x2PR_CAPBSET_DROP                  = 0x18PR_CAPBSET_READ                  = 0x17PR_ENDIAN_BIG                    = 0x0PR_ENDIAN_LITTLE                 = 0x1PR_ENDIAN_PPC_LITTLE             = 0x2PR_FPEMU_NOPRINT                 = 0x1PR_FPEMU_SIGFPE                  = 0x2PR_FP_EXC_ASYNC                  = 0x2PR_FP_EXC_DISABLED               = 0x0PR_FP_EXC_DIV                    = 0x10000PR_FP_EXC_INV                    = 0x100000PR_FP_EXC_NONRECOV               = 0x1PR_FP_EXC_OVF                    = 0x20000PR_FP_EXC_PRECISE                = 0x3PR_FP_EXC_RES                    = 0x80000PR_FP_EXC_SW_ENABLE              = 0x80PR_FP_EXC_UND                    = 0x40000PR_GET_DUMPABLE                  = 0x3PR_GET_ENDIAN                    = 0x13PR_GET_FPEMU                     = 0x9PR_GET_FPEXC                     = 0xbPR_GET_KEEPCAPS                  = 0x7PR_GET_NAME                      = 0x10PR_GET_PDEATHSIG                 = 0x2PR_GET_SECCOMP                   = 0x15PR_GET_SECUREBITS                = 0x1bPR_GET_TIMERSLACK                = 0x1ePR_GET_TIMING                    = 0xdPR_GET_TSC                       = 0x19PR_GET_UNALIGN                   = 0x5PR_MCE_KILL                      = 0x21PR_MCE_KILL_CLEAR                = 0x0PR_MCE_KILL_DEFAULT              = 0x2PR_MCE_KILL_EARLY                = 0x1PR_MCE_KILL_GET                  = 0x22PR_MCE_KILL_LATE                 = 0x0PR_MCE_KILL_SET                  = 0x1PR_SET_DUMPABLE                  = 0x4PR_SET_ENDIAN                    = 0x14PR_SET_FPEMU                     = 0xaPR_SET_FPEXC                     = 0xcPR_SET_KEEPCAPS                  = 0x8PR_SET_NAME                      = 0xfPR_SET_PDEATHSIG                 = 0x1PR_SET_PTRACER                   = 0x59616d61PR_SET_SECCOMP                   = 0x16PR_SET_SECUREBITS                = 0x1cPR_SET_TIMERSLACK                = 0x1dPR_SET_TIMING                    = 0xePR_SET_TSC                       = 0x1aPR_SET_UNALIGN                   = 0x6PR_TASK_PERF_EVENTS_DISABLE      = 0x1fPR_TASK_PERF_EVENTS_ENABLE       = 0x20PR_TIMING_STATISTICAL            = 0x0PR_TIMING_TIMESTAMP              = 0x1PR_TSC_ENABLE                    = 0x1PR_TSC_SIGSEGV                   = 0x2PR_UNALIGN_NOPRINT               = 0x1PR_UNALIGN_SIGBUS                = 0x2PTRACE_ARCH_PRCTL                = 0x1ePTRACE_ATTACH                    = 0x10PTRACE_CONT                      = 0x7PTRACE_DETACH                    = 0x11PTRACE_EVENT_CLONE               = 0x3PTRACE_EVENT_EXEC                = 0x4PTRACE_EVENT_EXIT                = 0x6PTRACE_EVENT_FORK                = 0x1PTRACE_EVENT_VFORK               = 0x2PTRACE_EVENT_VFORK_DONE          = 0x5PTRACE_GETEVENTMSG               = 0x4201PTRACE_GETFPREGS                 = 0xePTRACE_GETFPXREGS                = 0x12PTRACE_GETREGS                   = 0xcPTRACE_GETREGSET                 = 0x4204PTRACE_GETSIGINFO                = 0x4202PTRACE_GET_THREAD_AREA           = 0x19PTRACE_KILL                      = 0x8PTRACE_OLDSETOPTIONS             = 0x15PTRACE_O_MASK                    = 0x7fPTRACE_O_TRACECLONE              = 0x8PTRACE_O_TRACEEXEC               = 0x10PTRACE_O_TRACEEXIT               = 0x40PTRACE_O_TRACEFORK               = 0x2PTRACE_O_TRACESYSGOOD            = 0x1PTRACE_O_TRACEVFORK              = 0x4PTRACE_O_TRACEVFORKDONE          = 0x20PTRACE_PEEKDATA                  = 0x2PTRACE_PEEKTEXT                  = 0x1PTRACE_PEEKUSR                   = 0x3PTRACE_POKEDATA                  = 0x5PTRACE_POKETEXT                  = 0x4PTRACE_POKEUSR                   = 0x6PTRACE_SETFPREGS                 = 0xfPTRACE_SETFPXREGS                = 0x13PTRACE_SETOPTIONS                = 0x4200PTRACE_SETREGS                   = 0xdPTRACE_SETREGSET                 = 0x4205PTRACE_SETSIGINFO                = 0x4203PTRACE_SET_THREAD_AREA           = 0x1aPTRACE_SINGLEBLOCK               = 0x21PTRACE_SINGLESTEP                = 0x9PTRACE_SYSCALL                   = 0x18PTRACE_SYSEMU                    = 0x1fPTRACE_SYSEMU_SINGLESTEP         = 0x20PTRACE_TRACEME                   = 0x0RLIMIT_AS                        = 0x9RLIMIT_CORE                      = 0x4RLIMIT_CPU                       = 0x0RLIMIT_DATA                      = 0x2RLIMIT_FSIZE                     = 0x1RLIMIT_NOFILE                    = 0x7RLIMIT_STACK                     = 0x3RLIM_INFINITY                    = -0x1RTAX_ADVMSS                      = 0x8RTAX_CWND                        = 0x7RTAX_FEATURES                    = 0xcRTAX_FEATURE_ALLFRAG             = 0x8RTAX_FEATURE_ECN                 = 0x1RTAX_FEATURE_SACK                = 0x2RTAX_FEATURE_TIMESTAMP           = 0x4RTAX_HOPLIMIT                    = 0xaRTAX_INITCWND                    = 0xbRTAX_INITRWND                    = 0xeRTAX_LOCK                        = 0x1RTAX_MAX                         = 0xeRTAX_MTU                         = 0x2RTAX_REORDERING                  = 0x9RTAX_RTO_MIN                     = 0xdRTAX_RTT                         = 0x4RTAX_RTTVAR                      = 0x5RTAX_SSTHRESH                    = 0x6RTAX_UNSPEC                      = 0x0RTAX_WINDOW                      = 0x3RTA_ALIGNTO                      = 0x4RTA_MAX                          = 0x10RTCF_DIRECTSRC                   = 0x4000000RTCF_DOREDIRECT                  = 0x1000000RTCF_LOG                         = 0x2000000RTCF_MASQ                        = 0x400000RTCF_NAT                         = 0x800000RTCF_VALVE                       = 0x200000RTF_ADDRCLASSMASK                = 0xf8000000RTF_ADDRCONF                     = 0x40000RTF_ALLONLINK                    = 0x20000RTF_BROADCAST                    = 0x10000000RTF_CACHE                        = 0x1000000RTF_DEFAULT                      = 0x10000RTF_DYNAMIC                      = 0x10RTF_FLOW                         = 0x2000000RTF_GATEWAY                      = 0x2RTF_HOST                         = 0x4RTF_INTERFACE                    = 0x40000000RTF_IRTT                         = 0x100RTF_LINKRT                       = 0x100000RTF_LOCAL                        = 0x80000000RTF_MODIFIED                     = 0x20RTF_MSS                          = 0x40RTF_MTU                          = 0x40RTF_MULTICAST                    = 0x20000000RTF_NAT                          = 0x8000000RTF_NOFORWARD                    = 0x1000RTF_NONEXTHOP                    = 0x200000RTF_NOPMTUDISC                   = 0x4000RTF_POLICY                       = 0x4000000RTF_REINSTATE                    = 0x8RTF_REJECT                       = 0x200RTF_STATIC                       = 0x400RTF_THROW                        = 0x2000RTF_UP                           = 0x1RTF_WINDOW                       = 0x80RTF_XRESOLVE                     = 0x800RTM_BASE                         = 0x10RTM_DELACTION                    = 0x31RTM_DELADDR                      = 0x15RTM_DELADDRLABEL                 = 0x49RTM_DELLINK                      = 0x11RTM_DELNEIGH                     = 0x1dRTM_DELQDISC                     = 0x25RTM_DELROUTE                     = 0x19RTM_DELRULE                      = 0x21RTM_DELTCLASS                    = 0x29RTM_DELTFILTER                   = 0x2dRTM_F_CLONED                     = 0x200RTM_F_EQUALIZE                   = 0x400RTM_F_NOTIFY                     = 0x100RTM_F_PREFIX                     = 0x800RTM_GETACTION                    = 0x32RTM_GETADDR                      = 0x16RTM_GETADDRLABEL                 = 0x4aRTM_GETANYCAST                   = 0x3eRTM_GETDCB                       = 0x4eRTM_GETLINK                      = 0x12RTM_GETMULTICAST                 = 0x3aRTM_GETNEIGH                     = 0x1eRTM_GETNEIGHTBL                  = 0x42RTM_GETQDISC                     = 0x26RTM_GETROUTE                     = 0x1aRTM_GETRULE                      = 0x22RTM_GETTCLASS                    = 0x2aRTM_GETTFILTER                   = 0x2eRTM_MAX                          = 0x4fRTM_NEWACTION                    = 0x30RTM_NEWADDR                      = 0x14RTM_NEWADDRLABEL                 = 0x48RTM_NEWLINK                      = 0x10RTM_NEWNDUSEROPT                 = 0x44RTM_NEWNEIGH                     = 0x1cRTM_NEWNEIGHTBL                  = 0x40RTM_NEWPREFIX                    = 0x34RTM_NEWQDISC                     = 0x24RTM_NEWROUTE                     = 0x18RTM_NEWRULE                      = 0x20RTM_NEWTCLASS                    = 0x28RTM_NEWTFILTER                   = 0x2cRTM_NR_FAMILIES                  = 0x10RTM_NR_MSGTYPES                  = 0x40RTM_SETDCB                       = 0x4fRTM_SETLINK                      = 0x13RTM_SETNEIGHTBL                  = 0x43RTNH_ALIGNTO                     = 0x4RTNH_F_DEAD                      = 0x1RTNH_F_ONLINK                    = 0x4RTNH_F_PERVASIVE                 = 0x2RTN_MAX                          = 0xbRTPROT_BIRD                      = 0xcRTPROT_BOOT                      = 0x3RTPROT_DHCP                      = 0x10RTPROT_DNROUTED                  = 0xdRTPROT_GATED                     = 0x8RTPROT_KERNEL                    = 0x2RTPROT_MRT                       = 0xaRTPROT_NTK                       = 0xfRTPROT_RA                        = 0x9RTPROT_REDIRECT                  = 0x1RTPROT_STATIC                    = 0x4RTPROT_UNSPEC                    = 0x0RTPROT_XORP                      = 0xeRTPROT_ZEBRA                     = 0xbRT_CLASS_DEFAULT                 = 0xfdRT_CLASS_LOCAL                   = 0xffRT_CLASS_MAIN                    = 0xfeRT_CLASS_MAX                     = 0xffRT_CLASS_UNSPEC                  = 0x0RUSAGE_CHILDREN                  = -0x1RUSAGE_SELF                      = 0x0RUSAGE_THREAD                    = 0x1SCM_CREDENTIALS                  = 0x2SCM_RIGHTS                       = 0x1SCM_TIMESTAMP                    = 0x1dSCM_TIMESTAMPING                 = 0x25SCM_TIMESTAMPNS                  = 0x23SHUT_RD                          = 0x0SHUT_RDWR                        = 0x2SHUT_WR                          = 0x1SIOCADDDLCI                      = 0x8980SIOCADDMULTI                     = 0x8931SIOCADDRT                        = 0x890bSIOCATMARK                       = 0x8905SIOCDARP                         = 0x8953SIOCDELDLCI                      = 0x8981SIOCDELMULTI                     = 0x8932SIOCDELRT                        = 0x890cSIOCDEVPRIVATE                   = 0x89f0SIOCDIFADDR                      = 0x8936SIOCDRARP                        = 0x8960SIOCGARP                         = 0x8954SIOCGIFADDR                      = 0x8915SIOCGIFBR                        = 0x8940SIOCGIFBRDADDR                   = 0x8919SIOCGIFCONF                      = 0x8912SIOCGIFCOUNT                     = 0x8938SIOCGIFDSTADDR                   = 0x8917SIOCGIFENCAP                     = 0x8925SIOCGIFFLAGS                     = 0x8913SIOCGIFHWADDR                    = 0x8927SIOCGIFINDEX                     = 0x8933SIOCGIFMAP                       = 0x8970SIOCGIFMEM                       = 0x891fSIOCGIFMETRIC                    = 0x891dSIOCGIFMTU                       = 0x8921SIOCGIFNAME                      = 0x8910SIOCGIFNETMASK                   = 0x891bSIOCGIFPFLAGS                    = 0x8935SIOCGIFSLAVE                     = 0x8929SIOCGIFTXQLEN                    = 0x8942SIOCGPGRP                        = 0x8904SIOCGRARP                        = 0x8961SIOCGSTAMP                       = 0x8906SIOCGSTAMPNS                     = 0x8907SIOCPROTOPRIVATE                 = 0x89e0SIOCRTMSG                        = 0x890dSIOCSARP                         = 0x8955SIOCSIFADDR                      = 0x8916SIOCSIFBR                        = 0x8941SIOCSIFBRDADDR                   = 0x891aSIOCSIFDSTADDR                   = 0x8918SIOCSIFENCAP                     = 0x8926SIOCSIFFLAGS                     = 0x8914SIOCSIFHWADDR                    = 0x8924SIOCSIFHWBROADCAST               = 0x8937SIOCSIFLINK                      = 0x8911SIOCSIFMAP                       = 0x8971SIOCSIFMEM                       = 0x8920SIOCSIFMETRIC                    = 0x891eSIOCSIFMTU                       = 0x8922SIOCSIFNAME                      = 0x8923SIOCSIFNETMASK                   = 0x891cSIOCSIFPFLAGS                    = 0x8934SIOCSIFSLAVE                     = 0x8930SIOCSIFTXQLEN                    = 0x8943SIOCSPGRP                        = 0x8902SIOCSRARP                        = 0x8962SOCK_CLOEXEC                     = 0x80000SOCK_DCCP                        = 0x6SOCK_DGRAM                       = 0x2SOCK_NONBLOCK                    = 0x800SOCK_PACKET                      = 0xaSOCK_RAW                         = 0x3SOCK_RDM                         = 0x4SOCK_SEQPACKET                   = 0x5SOCK_STREAM                      = 0x1SOL_AAL                          = 0x109SOL_ATM                          = 0x108SOL_DECNET                       = 0x105SOL_ICMPV6                       = 0x3aSOL_IP                           = 0x0SOL_IPV6                         = 0x29SOL_IRDA                         = 0x10aSOL_PACKET                       = 0x107SOL_RAW                          = 0xffSOL_SOCKET                       = 0x1SOL_TCP                          = 0x6SOL_X25                          = 0x106SOMAXCONN                        = 0x80SO_ACCEPTCONN                    = 0x1eSO_ATTACH_FILTER                 = 0x1aSO_BINDTODEVICE                  = 0x19SO_BROADCAST                     = 0x6SO_BSDCOMPAT                     = 0xeSO_DEBUG                         = 0x1SO_DETACH_FILTER                 = 0x1bSO_DOMAIN                        = 0x27SO_DONTROUTE                     = 0x5SO_ERROR                         = 0x4SO_KEEPALIVE                     = 0x9SO_LINGER                        = 0xdSO_MARK                          = 0x24SO_NO_CHECK                      = 0xbSO_OOBINLINE                     = 0xaSO_PASSCRED                      = 0x10SO_PASSSEC                       = 0x22SO_PEERCRED                      = 0x11SO_PEERNAME                      = 0x1cSO_PEERSEC                       = 0x1fSO_PRIORITY                      = 0xcSO_PROTOCOL                      = 0x26SO_RCVBUF                        = 0x8SO_RCVBUFFORCE                   = 0x21SO_RCVLOWAT                      = 0x12SO_RCVTIMEO                      = 0x14SO_REUSEADDR                     = 0x2SO_RXQ_OVFL                      = 0x28SO_SECURITY_AUTHENTICATION       = 0x16SO_SECURITY_ENCRYPTION_NETWORK   = 0x18SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17SO_SNDBUF                        = 0x7SO_SNDBUFFORCE                   = 0x20SO_SNDLOWAT                      = 0x13SO_SNDTIMEO                      = 0x15SO_TIMESTAMP                     = 0x1dSO_TIMESTAMPING                  = 0x25SO_TIMESTAMPNS                   = 0x23SO_TYPE                          = 0x3S_BLKSIZE                        = 0x200S_IEXEC                          = 0x40S_IFBLK                          = 0x6000S_IFCHR                          = 0x2000S_IFDIR                          = 0x4000S_IFIFO                          = 0x1000S_IFLNK                          = 0xa000S_IFMT                           = 0xf000S_IFREG                          = 0x8000S_IFSOCK                         = 0xc000S_IREAD                          = 0x100S_IRGRP                          = 0x20S_IROTH                          = 0x4S_IRUSR                          = 0x100S_IRWXG                          = 0x38S_IRWXO                          = 0x7S_IRWXU                          = 0x1c0S_ISGID                          = 0x400S_ISUID                          = 0x800S_ISVTX                          = 0x200S_IWGRP                          = 0x10S_IWOTH                          = 0x2S_IWRITE                         = 0x80S_IWUSR                          = 0x80S_IXGRP                          = 0x8S_IXOTH                          = 0x1S_IXUSR                          = 0x40TCIFLUSH                         = 0x0TCIOFLUSH                        = 0x2TCOFLUSH                         = 0x1TCP_CONGESTION                   = 0xdTCP_CORK                         = 0x3TCP_DEFER_ACCEPT                 = 0x9TCP_INFO                         = 0xbTCP_KEEPCNT                      = 0x6TCP_KEEPIDLE                     = 0x4TCP_KEEPINTVL                    = 0x5TCP_LINGER2                      = 0x8TCP_MAXSEG                       = 0x2TCP_MAXWIN                       = 0xffffTCP_MAX_WINSHIFT                 = 0xeTCP_MD5SIG                       = 0xeTCP_MD5SIG_MAXKEYLEN             = 0x50TCP_MSS                          = 0x200TCP_NODELAY                      = 0x1TCP_QUICKACK                     = 0xcTCP_SYNCNT                       = 0x7TCP_WINDOW_CLAMP                 = 0xaTIOCCBRK                         = 0x5428TIOCCONS                         = 0x541dTIOCEXCL                         = 0x540cTIOCGDEV                         = 0x80045432TIOCGETD                         = 0x5424TIOCGICOUNT                      = 0x545dTIOCGLCKTRMIOS                   = 0x5456TIOCGPGRP                        = 0x540fTIOCGPTN                         = 0x80045430TIOCGRS485                       = 0x542eTIOCGSERIAL                      = 0x541eTIOCGSID                         = 0x5429TIOCGSOFTCAR                     = 0x5419TIOCGWINSZ                       = 0x5413TIOCINQ                          = 0x541bTIOCLINUX                        = 0x541cTIOCMBIC                         = 0x5417TIOCMBIS                         = 0x5416TIOCMGET                         = 0x5415TIOCMIWAIT                       = 0x545cTIOCMSET                         = 0x5418TIOCM_CAR                        = 0x40TIOCM_CD                         = 0x40TIOCM_CTS                        = 0x20TIOCM_DSR                        = 0x100TIOCM_DTR                        = 0x2TIOCM_LE                         = 0x1TIOCM_RI                         = 0x80TIOCM_RNG                        = 0x80TIOCM_RTS                        = 0x4TIOCM_SR                         = 0x10TIOCM_ST                         = 0x8TIOCNOTTY                        = 0x5422TIOCNXCL                         = 0x540dTIOCOUTQ                         = 0x5411TIOCPKT                          = 0x5420TIOCPKT_DATA                     = 0x0TIOCPKT_DOSTOP                   = 0x20TIOCPKT_FLUSHREAD                = 0x1TIOCPKT_FLUSHWRITE               = 0x2TIOCPKT_IOCTL                    = 0x40TIOCPKT_NOSTOP                   = 0x10TIOCPKT_START                    = 0x8TIOCPKT_STOP                     = 0x4TIOCSBRK                         = 0x5427TIOCSCTTY                        = 0x540eTIOCSERCONFIG                    = 0x5453TIOCSERGETLSR                    = 0x5459TIOCSERGETMULTI                  = 0x545aTIOCSERGSTRUCT                   = 0x5458TIOCSERGWILD                     = 0x5454TIOCSERSETMULTI                  = 0x545bTIOCSERSWILD                     = 0x5455TIOCSER_TEMT                     = 0x1TIOCSETD                         = 0x5423TIOCSIG                          = 0x40045436TIOCSLCKTRMIOS                   = 0x5457TIOCSPGRP                        = 0x5410TIOCSPTLCK                       = 0x40045431TIOCSRS485                       = 0x542fTIOCSSERIAL                      = 0x541fTIOCSSOFTCAR                     = 0x541aTIOCSTI                          = 0x5412TIOCSWINSZ                       = 0x5414TUNATTACHFILTER                  = 0x401054d5TUNDETACHFILTER                  = 0x401054d6TUNGETFEATURES                   = 0x800454cfTUNGETIFF                        = 0x800454d2TUNGETSNDBUF                     = 0x800454d3TUNGETVNETHDRSZ                  = 0x800454d7TUNSETDEBUG                      = 0x400454c9TUNSETGROUP                      = 0x400454ceTUNSETIFF                        = 0x400454caTUNSETLINK                       = 0x400454cdTUNSETNOCSUM                     = 0x400454c8TUNSETOFFLOAD                    = 0x400454d0TUNSETOWNER                      = 0x400454ccTUNSETPERSIST                    = 0x400454cbTUNSETSNDBUF                     = 0x400454d4TUNSETTXFILTER                   = 0x400454d1TUNSETVNETHDRSZ                  = 0x400454d8WALL                             = 0x40000000WCLONE                           = 0x80000000WCONTINUED                       = 0x8WEXITED                          = 0x4WNOHANG                          = 0x1WNOTHREAD                        = 0x20000000WNOWAIT                          = 0x1000000WORDSIZE                         = 0x40WSTOPPED                         = 0x2WUNTRACED                        = 0x2)
View Source
const (E2BIG           =Errno(0x7)EACCES          =Errno(0xd)EADDRINUSE      =Errno(0x62)EADDRNOTAVAIL   =Errno(0x63)EADV            =Errno(0x44)EAFNOSUPPORT    =Errno(0x61)EAGAIN          =Errno(0xb)EALREADY        =Errno(0x72)EBADE           =Errno(0x34)EBADF           =Errno(0x9)EBADFD          =Errno(0x4d)EBADMSG         =Errno(0x4a)EBADR           =Errno(0x35)EBADRQC         =Errno(0x38)EBADSLT         =Errno(0x39)EBFONT          =Errno(0x3b)EBUSY           =Errno(0x10)ECANCELED       =Errno(0x7d)ECHILD          =Errno(0xa)ECHRNG          =Errno(0x2c)ECOMM           =Errno(0x46)ECONNABORTED    =Errno(0x67)ECONNREFUSED    =Errno(0x6f)ECONNRESET      =Errno(0x68)EDEADLK         =Errno(0x23)EDEADLOCK       =Errno(0x23)EDESTADDRREQ    =Errno(0x59)EDOM            =Errno(0x21)EDOTDOT         =Errno(0x49)EDQUOT          =Errno(0x7a)EEXIST          =Errno(0x11)EFAULT          =Errno(0xe)EFBIG           =Errno(0x1b)EHOSTDOWN       =Errno(0x70)EHOSTUNREACH    =Errno(0x71)EIDRM           =Errno(0x2b)EILSEQ          =Errno(0x54)EINPROGRESS     =Errno(0x73)EINTR           =Errno(0x4)EINVAL          =Errno(0x16)EIO             =Errno(0x5)EISCONN         =Errno(0x6a)EISDIR          =Errno(0x15)EISNAM          =Errno(0x78)EKEYEXPIRED     =Errno(0x7f)EKEYREJECTED    =Errno(0x81)EKEYREVOKED     =Errno(0x80)EL2HLT          =Errno(0x33)EL2NSYNC        =Errno(0x2d)EL3HLT          =Errno(0x2e)EL3RST          =Errno(0x2f)ELIBACC         =Errno(0x4f)ELIBBAD         =Errno(0x50)ELIBEXEC        =Errno(0x53)ELIBMAX         =Errno(0x52)ELIBSCN         =Errno(0x51)ELNRNG          =Errno(0x30)ELOOP           =Errno(0x28)EMEDIUMTYPE     =Errno(0x7c)EMFILE          =Errno(0x18)EMLINK          =Errno(0x1f)EMSGSIZE        =Errno(0x5a)EMULTIHOP       =Errno(0x48)ENAMETOOLONG    =Errno(0x24)ENAVAIL         =Errno(0x77)ENETDOWN        =Errno(0x64)ENETRESET       =Errno(0x66)ENETUNREACH     =Errno(0x65)ENFILE          =Errno(0x17)ENOANO          =Errno(0x37)ENOBUFS         =Errno(0x69)ENOCSI          =Errno(0x32)ENODATA         =Errno(0x3d)ENODEV          =Errno(0x13)ENOENT          =Errno(0x2)ENOEXEC         =Errno(0x8)ENOKEY          =Errno(0x7e)ENOLCK          =Errno(0x25)ENOLINK         =Errno(0x43)ENOMEDIUM       =Errno(0x7b)ENOMEM          =Errno(0xc)ENOMSG          =Errno(0x2a)ENONET          =Errno(0x40)ENOPKG          =Errno(0x41)ENOPROTOOPT     =Errno(0x5c)ENOSPC          =Errno(0x1c)ENOSR           =Errno(0x3f)ENOSTR          =Errno(0x3c)ENOSYS          =Errno(0x26)ENOTBLK         =Errno(0xf)ENOTCONN        =Errno(0x6b)ENOTDIR         =Errno(0x14)ENOTEMPTY       =Errno(0x27)ENOTNAM         =Errno(0x76)ENOTRECOVERABLE =Errno(0x83)ENOTSOCK        =Errno(0x58)ENOTSUP         =Errno(0x5f)ENOTTY          =Errno(0x19)ENOTUNIQ        =Errno(0x4c)ENXIO           =Errno(0x6)EOPNOTSUPP      =Errno(0x5f)EOVERFLOW       =Errno(0x4b)EOWNERDEAD      =Errno(0x82)EPERM           =Errno(0x1)EPFNOSUPPORT    =Errno(0x60)EPIPE           =Errno(0x20)EPROTO          =Errno(0x47)EPROTONOSUPPORT =Errno(0x5d)EPROTOTYPE      =Errno(0x5b)ERANGE          =Errno(0x22)EREMCHG         =Errno(0x4e)EREMOTE         =Errno(0x42)EREMOTEIO       =Errno(0x79)ERESTART        =Errno(0x55)ERFKILL         =Errno(0x84)EROFS           =Errno(0x1e)ESHUTDOWN       =Errno(0x6c)ESOCKTNOSUPPORT =Errno(0x5e)ESPIPE          =Errno(0x1d)ESRCH           =Errno(0x3)ESRMNT          =Errno(0x45)ESTALE          =Errno(0x74)ESTRPIPE        =Errno(0x56)ETIME           =Errno(0x3e)ETIMEDOUT       =Errno(0x6e)ETOOMANYREFS    =Errno(0x6d)ETXTBSY         =Errno(0x1a)EUCLEAN         =Errno(0x75)EUNATCH         =Errno(0x31)EUSERS          =Errno(0x57)EWOULDBLOCK     =Errno(0xb)EXDEV           =Errno(0x12)EXFULL          =Errno(0x36))

Errors

View Source
const (SIGABRT   =Signal(0x6)SIGALRM   =Signal(0xe)SIGBUS    =Signal(0x7)SIGCHLD   =Signal(0x11)SIGCLD    =Signal(0x11)SIGCONT   =Signal(0x12)SIGFPE    =Signal(0x8)SIGHUP    =Signal(0x1)SIGILL    =Signal(0x4)SIGINT    =Signal(0x2)SIGIO     =Signal(0x1d)SIGIOT    =Signal(0x6)SIGKILL   =Signal(0x9)SIGPIPE   =Signal(0xd)SIGPOLL   =Signal(0x1d)SIGPROF   =Signal(0x1b)SIGPWR    =Signal(0x1e)SIGQUIT   =Signal(0x3)SIGSEGV   =Signal(0xb)SIGSTKFLT =Signal(0x10)SIGSTOP   =Signal(0x13)SIGSYS    =Signal(0x1f)SIGTERM   =Signal(0xf)SIGTRAP   =Signal(0x5)SIGTSTP   =Signal(0x14)SIGTTIN   =Signal(0x15)SIGTTOU   =Signal(0x16)SIGUNUSED =Signal(0x1f)SIGURG    =Signal(0x17)SIGUSR1   =Signal(0xa)SIGUSR2   =Signal(0xc)SIGVTALRM =Signal(0x1a)SIGWINCH  =Signal(0x1c)SIGXCPU   =Signal(0x18)SIGXFSZ   =Signal(0x19))

Signals

View Source
const (SYS_READ                   = 0SYS_WRITE                  = 1SYS_OPEN                   = 2SYS_CLOSE                  = 3SYS_STAT                   = 4SYS_FSTAT                  = 5SYS_LSTAT                  = 6SYS_POLL                   = 7SYS_LSEEK                  = 8SYS_MMAP                   = 9SYS_MPROTECT               = 10SYS_MUNMAP                 = 11SYS_BRK                    = 12SYS_RT_SIGACTION           = 13SYS_RT_SIGPROCMASK         = 14SYS_RT_SIGRETURN           = 15SYS_IOCTL                  = 16SYS_PREAD64                = 17SYS_PWRITE64               = 18SYS_READV                  = 19SYS_WRITEV                 = 20SYS_ACCESS                 = 21SYS_PIPE                   = 22SYS_SELECT                 = 23SYS_SCHED_YIELD            = 24SYS_MREMAP                 = 25SYS_MSYNC                  = 26SYS_MINCORE                = 27SYS_MADVISE                = 28SYS_SHMGET                 = 29SYS_SHMAT                  = 30SYS_SHMCTL                 = 31SYS_DUP                    = 32SYS_DUP2                   = 33SYS_PAUSE                  = 34SYS_NANOSLEEP              = 35SYS_GETITIMER              = 36SYS_ALARM                  = 37SYS_SETITIMER              = 38SYS_GETPID                 = 39SYS_SENDFILE               = 40SYS_SOCKET                 = 41SYS_CONNECT                = 42SYS_ACCEPT                 = 43SYS_SENDTO                 = 44SYS_RECVFROM               = 45SYS_SENDMSG                = 46SYS_RECVMSG                = 47SYS_SHUTDOWN               = 48SYS_BIND                   = 49SYS_LISTEN                 = 50SYS_GETSOCKNAME            = 51SYS_GETPEERNAME            = 52SYS_SOCKETPAIR             = 53SYS_SETSOCKOPT             = 54SYS_GETSOCKOPT             = 55SYS_CLONE                  = 56SYS_FORK                   = 57SYS_VFORK                  = 58SYS_EXECVE                 = 59SYS_EXIT                   = 60SYS_WAIT4                  = 61SYS_KILL                   = 62SYS_UNAME                  = 63SYS_SEMGET                 = 64SYS_SEMOP                  = 65SYS_SEMCTL                 = 66SYS_SHMDT                  = 67SYS_MSGGET                 = 68SYS_MSGSND                 = 69SYS_MSGRCV                 = 70SYS_MSGCTL                 = 71SYS_FCNTL                  = 72SYS_FLOCK                  = 73SYS_FSYNC                  = 74SYS_FDATASYNC              = 75SYS_TRUNCATE               = 76SYS_FTRUNCATE              = 77SYS_GETDENTS               = 78SYS_GETCWD                 = 79SYS_CHDIR                  = 80SYS_FCHDIR                 = 81SYS_RENAME                 = 82SYS_MKDIR                  = 83SYS_RMDIR                  = 84SYS_CREAT                  = 85SYS_LINK                   = 86SYS_UNLINK                 = 87SYS_SYMLINK                = 88SYS_READLINK               = 89SYS_CHMOD                  = 90SYS_FCHMOD                 = 91SYS_CHOWN                  = 92SYS_FCHOWN                 = 93SYS_LCHOWN                 = 94SYS_UMASK                  = 95SYS_GETTIMEOFDAY           = 96SYS_GETRLIMIT              = 97SYS_GETRUSAGE              = 98SYS_SYSINFO                = 99SYS_TIMES                  = 100SYS_PTRACE                 = 101SYS_GETUID                 = 102SYS_SYSLOG                 = 103SYS_GETGID                 = 104SYS_SETUID                 = 105SYS_SETGID                 = 106SYS_GETEUID                = 107SYS_GETEGID                = 108SYS_SETPGID                = 109SYS_GETPPID                = 110SYS_GETPGRP                = 111SYS_SETSID                 = 112SYS_SETREUID               = 113SYS_SETREGID               = 114SYS_GETGROUPS              = 115SYS_SETGROUPS              = 116SYS_SETRESUID              = 117SYS_GETRESUID              = 118SYS_SETRESGID              = 119SYS_GETRESGID              = 120SYS_GETPGID                = 121SYS_SETFSUID               = 122SYS_SETFSGID               = 123SYS_GETSID                 = 124SYS_CAPGET                 = 125SYS_CAPSET                 = 126SYS_RT_SIGPENDING          = 127SYS_RT_SIGTIMEDWAIT        = 128SYS_RT_SIGQUEUEINFO        = 129SYS_RT_SIGSUSPEND          = 130SYS_SIGALTSTACK            = 131SYS_UTIME                  = 132SYS_MKNOD                  = 133SYS_USELIB                 = 134SYS_PERSONALITY            = 135SYS_USTAT                  = 136SYS_STATFS                 = 137SYS_FSTATFS                = 138SYS_SYSFS                  = 139SYS_GETPRIORITY            = 140SYS_SETPRIORITY            = 141SYS_SCHED_SETPARAM         = 142SYS_SCHED_GETPARAM         = 143SYS_SCHED_SETSCHEDULER     = 144SYS_SCHED_GETSCHEDULER     = 145SYS_SCHED_GET_PRIORITY_MAX = 146SYS_SCHED_GET_PRIORITY_MIN = 147SYS_SCHED_RR_GET_INTERVAL  = 148SYS_MLOCK                  = 149SYS_MUNLOCK                = 150SYS_MLOCKALL               = 151SYS_MUNLOCKALL             = 152SYS_VHANGUP                = 153SYS_MODIFY_LDT             = 154SYS_PIVOT_ROOT             = 155SYS__SYSCTL                = 156SYS_PRCTL                  = 157SYS_ARCH_PRCTL             = 158SYS_ADJTIMEX               = 159SYS_SETRLIMIT              = 160SYS_CHROOT                 = 161SYS_SYNC                   = 162SYS_ACCT                   = 163SYS_SETTIMEOFDAY           = 164SYS_MOUNT                  = 165SYS_UMOUNT2                = 166SYS_SWAPON                 = 167SYS_SWAPOFF                = 168SYS_REBOOT                 = 169SYS_SETHOSTNAME            = 170SYS_SETDOMAINNAME          = 171SYS_IOPL                   = 172SYS_IOPERM                 = 173SYS_CREATE_MODULE          = 174SYS_INIT_MODULE            = 175SYS_DELETE_MODULE          = 176SYS_GET_KERNEL_SYMS        = 177SYS_QUERY_MODULE           = 178SYS_QUOTACTL               = 179SYS_NFSSERVCTL             = 180SYS_GETPMSG                = 181SYS_PUTPMSG                = 182SYS_AFS_SYSCALL            = 183SYS_TUXCALL                = 184SYS_SECURITY               = 185SYS_GETTID                 = 186SYS_READAHEAD              = 187SYS_SETXATTR               = 188SYS_LSETXATTR              = 189SYS_FSETXATTR              = 190SYS_GETXATTR               = 191SYS_LGETXATTR              = 192SYS_FGETXATTR              = 193SYS_LISTXATTR              = 194SYS_LLISTXATTR             = 195SYS_FLISTXATTR             = 196SYS_REMOVEXATTR            = 197SYS_LREMOVEXATTR           = 198SYS_FREMOVEXATTR           = 199SYS_TKILL                  = 200SYS_TIME                   = 201SYS_FUTEX                  = 202SYS_SCHED_SETAFFINITY      = 203SYS_SCHED_GETAFFINITY      = 204SYS_SET_THREAD_AREA        = 205SYS_IO_SETUP               = 206SYS_IO_DESTROY             = 207SYS_IO_GETEVENTS           = 208SYS_IO_SUBMIT              = 209SYS_IO_CANCEL              = 210SYS_GET_THREAD_AREA        = 211SYS_LOOKUP_DCOOKIE         = 212SYS_EPOLL_CREATE           = 213SYS_EPOLL_CTL_OLD          = 214SYS_EPOLL_WAIT_OLD         = 215SYS_REMAP_FILE_PAGES       = 216SYS_GETDENTS64             = 217SYS_SET_TID_ADDRESS        = 218SYS_RESTART_SYSCALL        = 219SYS_SEMTIMEDOP             = 220SYS_FADVISE64              = 221SYS_TIMER_CREATE           = 222SYS_TIMER_SETTIME          = 223SYS_TIMER_GETTIME          = 224SYS_TIMER_GETOVERRUN       = 225SYS_TIMER_DELETE           = 226SYS_CLOCK_SETTIME          = 227SYS_CLOCK_GETTIME          = 228SYS_CLOCK_GETRES           = 229SYS_CLOCK_NANOSLEEP        = 230SYS_EXIT_GROUP             = 231SYS_EPOLL_WAIT             = 232SYS_EPOLL_CTL              = 233SYS_TGKILL                 = 234SYS_UTIMES                 = 235SYS_VSERVER                = 236SYS_MBIND                  = 237SYS_SET_MEMPOLICY          = 238SYS_GET_MEMPOLICY          = 239SYS_MQ_OPEN                = 240SYS_MQ_UNLINK              = 241SYS_MQ_TIMEDSEND           = 242SYS_MQ_TIMEDRECEIVE        = 243SYS_MQ_NOTIFY              = 244SYS_MQ_GETSETATTR          = 245SYS_KEXEC_LOAD             = 246SYS_WAITID                 = 247SYS_ADD_KEY                = 248SYS_REQUEST_KEY            = 249SYS_KEYCTL                 = 250SYS_IOPRIO_SET             = 251SYS_IOPRIO_GET             = 252SYS_INOTIFY_INIT           = 253SYS_INOTIFY_ADD_WATCH      = 254SYS_INOTIFY_RM_WATCH       = 255SYS_MIGRATE_PAGES          = 256SYS_OPENAT                 = 257SYS_MKDIRAT                = 258SYS_MKNODAT                = 259SYS_FCHOWNAT               = 260SYS_FUTIMESAT              = 261SYS_NEWFSTATAT             = 262SYS_UNLINKAT               = 263SYS_RENAMEAT               = 264SYS_LINKAT                 = 265SYS_SYMLINKAT              = 266SYS_READLINKAT             = 267SYS_FCHMODAT               = 268SYS_FACCESSAT              = 269SYS_PSELECT6               = 270SYS_PPOLL                  = 271SYS_UNSHARE                = 272SYS_SET_ROBUST_LIST        = 273SYS_GET_ROBUST_LIST        = 274SYS_SPLICE                 = 275SYS_TEE                    = 276SYS_SYNC_FILE_RANGE        = 277SYS_VMSPLICE               = 278SYS_MOVE_PAGES             = 279SYS_UTIMENSAT              = 280SYS_EPOLL_PWAIT            = 281SYS_SIGNALFD               = 282SYS_TIMERFD_CREATE         = 283SYS_EVENTFD                = 284SYS_FALLOCATE              = 285SYS_TIMERFD_SETTIME        = 286SYS_TIMERFD_GETTIME        = 287SYS_ACCEPT4                = 288SYS_SIGNALFD4              = 289SYS_EVENTFD2               = 290SYS_EPOLL_CREATE1          = 291SYS_DUP3                   = 292SYS_PIPE2                  = 293SYS_INOTIFY_INIT1          = 294SYS_PREADV                 = 295SYS_PWRITEV                = 296SYS_RT_TGSIGQUEUEINFO      = 297SYS_PERF_EVENT_OPEN        = 298SYS_RECVMMSG               = 299SYS_FANOTIFY_INIT          = 300SYS_FANOTIFY_MARK          = 301SYS_PRLIMIT64              = 302)
View Source
const (SizeofSockaddrInet4     = 0x10SizeofSockaddrInet6     = 0x1cSizeofSockaddrAny       = 0x70SizeofSockaddrUnix      = 0x6eSizeofSockaddrLinklayer = 0x14SizeofSockaddrNetlink   = 0xcSizeofLinger            = 0x8SizeofIPMreq            = 0x8SizeofIPMreqn           = 0xcSizeofIPv6Mreq          = 0x14SizeofMsghdr            = 0x38SizeofCmsghdr           = 0x10SizeofInet4Pktinfo      = 0xcSizeofInet6Pktinfo      = 0x14SizeofIPv6MTUInfo       = 0x20SizeofICMPv6Filter      = 0x20SizeofUcred             = 0xcSizeofTCPInfo           = 0x68)
View Source
const (IFA_UNSPEC          = 0x0IFA_ADDRESS         = 0x1IFA_LOCAL           = 0x2IFA_LABEL           = 0x3IFA_BROADCAST       = 0x4IFA_ANYCAST         = 0x5IFA_CACHEINFO       = 0x6IFA_MULTICAST       = 0x7IFLA_UNSPEC         = 0x0IFLA_ADDRESS        = 0x1IFLA_BROADCAST      = 0x2IFLA_IFNAME         = 0x3IFLA_MTU            = 0x4IFLA_LINK           = 0x5IFLA_QDISC          = 0x6IFLA_STATS          = 0x7IFLA_COST           = 0x8IFLA_PRIORITY       = 0x9IFLA_MASTER         = 0xaIFLA_WIRELESS       = 0xbIFLA_PROTINFO       = 0xcIFLA_TXQLEN         = 0xdIFLA_MAP            = 0xeIFLA_WEIGHT         = 0xfIFLA_OPERSTATE      = 0x10IFLA_LINKMODE       = 0x11IFLA_LINKINFO       = 0x12IFLA_NET_NS_PID     = 0x13IFLA_IFALIAS        = 0x14IFLA_MAX            = 0x1dRT_SCOPE_UNIVERSE   = 0x0RT_SCOPE_SITE       = 0xc8RT_SCOPE_LINK       = 0xfdRT_SCOPE_HOST       = 0xfeRT_SCOPE_NOWHERE    = 0xffRT_TABLE_UNSPEC     = 0x0RT_TABLE_COMPAT     = 0xfcRT_TABLE_DEFAULT    = 0xfdRT_TABLE_MAIN       = 0xfeRT_TABLE_LOCAL      = 0xffRT_TABLE_MAX        = 0xffffffffRTA_UNSPEC          = 0x0RTA_DST             = 0x1RTA_SRC             = 0x2RTA_IIF             = 0x3RTA_OIF             = 0x4RTA_GATEWAY         = 0x5RTA_PRIORITY        = 0x6RTA_PREFSRC         = 0x7RTA_METRICS         = 0x8RTA_MULTIPATH       = 0x9RTA_FLOW            = 0xbRTA_CACHEINFO       = 0xcRTA_TABLE           = 0xfRTN_UNSPEC          = 0x0RTN_UNICAST         = 0x1RTN_LOCAL           = 0x2RTN_BROADCAST       = 0x3RTN_ANYCAST         = 0x4RTN_MULTICAST       = 0x5RTN_BLACKHOLE       = 0x6RTN_UNREACHABLE     = 0x7RTN_PROHIBIT        = 0x8RTN_THROW           = 0x9RTN_NAT             = 0xaRTN_XRESOLVE        = 0xbRTNLGRP_NONE        = 0x0RTNLGRP_LINK        = 0x1RTNLGRP_NOTIFY      = 0x2RTNLGRP_NEIGH       = 0x3RTNLGRP_TC          = 0x4RTNLGRP_IPV4_IFADDR = 0x5RTNLGRP_IPV4_MROUTE = 0x6RTNLGRP_IPV4_ROUTE  = 0x7RTNLGRP_IPV4_RULE   = 0x8RTNLGRP_IPV6_IFADDR = 0x9RTNLGRP_IPV6_MROUTE = 0xaRTNLGRP_IPV6_ROUTE  = 0xbRTNLGRP_IPV6_IFINFO = 0xcRTNLGRP_IPV6_PREFIX = 0x12RTNLGRP_IPV6_RULE   = 0x13RTNLGRP_ND_USEROPT  = 0x14SizeofNlMsghdr      = 0x10SizeofNlMsgerr      = 0x14SizeofRtGenmsg      = 0x1SizeofNlAttr        = 0x4SizeofRtAttr        = 0x4SizeofIfInfomsg     = 0x10SizeofIfAddrmsg     = 0x8SizeofRtMsg         = 0xcSizeofRtNexthop     = 0x8)
View Source
const (SizeofSockFilter = 0x8SizeofSockFprog  = 0x10)
View Source
const (VINTR    = 0x0VQUIT    = 0x1VERASE   = 0x2VKILL    = 0x3VEOF     = 0x4VTIME    = 0x5VMIN     = 0x6VSWTC    = 0x7VSTART   = 0x8VSTOP    = 0x9VSUSP    = 0xaVEOL     = 0xbVREPRINT = 0xcVDISCARD = 0xdVWERASE  = 0xeVLNEXT   = 0xfVEOL2    = 0x10IGNBRK   = 0x1BRKINT   = 0x2IGNPAR   = 0x4PARMRK   = 0x8INPCK    = 0x10ISTRIP   = 0x20INLCR    = 0x40IGNCR    = 0x80ICRNL    = 0x100IUCLC    = 0x200IXON     = 0x400IXANY    = 0x800IXOFF    = 0x1000IMAXBEL  = 0x2000IUTF8    = 0x4000OPOST    = 0x1OLCUC    = 0x2ONLCR    = 0x4OCRNL    = 0x8ONOCR    = 0x10ONLRET   = 0x20OFILL    = 0x40OFDEL    = 0x80B0       = 0x0B50      = 0x1B75      = 0x2B110     = 0x3B134     = 0x4B150     = 0x5B200     = 0x6B300     = 0x7B600     = 0x8B1200    = 0x9B1800    = 0xaB2400    = 0xbB4800    = 0xcB9600    = 0xdB19200   = 0xeB38400   = 0xfCSIZE    = 0x30CS5      = 0x0CS6      = 0x10CS7      = 0x20CS8      = 0x30CSTOPB   = 0x40CREAD    = 0x80PARENB   = 0x100PARODD   = 0x200HUPCL    = 0x400CLOCAL   = 0x800B57600   = 0x1001B115200  = 0x1002B230400  = 0x1003B460800  = 0x1004B500000  = 0x1005B576000  = 0x1006B921600  = 0x1007B1000000 = 0x1008B1152000 = 0x1009B1500000 = 0x100aB2000000 = 0x100bB2500000 = 0x100cB3000000 = 0x100dB3500000 = 0x100eB4000000 = 0x100fISIG     = 0x1ICANON   = 0x2XCASE    = 0x4ECHO     = 0x8ECHOE    = 0x10ECHOK    = 0x20ECHONL   = 0x40NOFLSH   = 0x80TOSTOP   = 0x100ECHOCTL  = 0x200ECHOPRT  = 0x400ECHOKE   = 0x800FLUSHO   = 0x1000PENDIN   = 0x4000IEXTEN   = 0x8000TCGETS   = 0x5401TCSETS   = 0x5402)
View Source
const ImplementsGetwd =true
View Source
const (PathMax = 0x1000)
View Source
const SizeofInotifyEvent = 0x10

Variables

View Source
var (Stdin  = 0Stdout = 1Stderr = 2)

ForkLock is used to synchronize creation of new file descriptorswith fork.

We want the child in a fork/exec sequence to inherit only thefile descriptors we intend. To do that, we mark all filedescriptors close-on-exec and then, in the child, explicitlyunmark the ones we want the exec'ed program to keep.Unix doesn't make this easy: there is, in general, no way toallocate a new file descriptor close-on-exec. Instead youhave to allocate the descriptor and then mark it close-on-exec.If a fork happens between those two events, the child's execwill inherit an unwanted file descriptor.

This lock solves that race: the create new fd/mark close-on-execoperation is done holding ForkLock for reading, and the fork itselfis done holding ForkLock for writing. At least, that's the idea.There are some complications.

Some system calls that create new file descriptors can blockfor arbitrarily long times: open on a hung NFS server or namedpipe, accept on a socket, and so on. We can't reasonably grabthe lock across those operations.

It is worse to inherit some file descriptors than others.If a non-malicious child accidentally inherits an open ordinary file,that's not a big deal. On the other hand, if a long-lived childaccidentally inherits the write end of a pipe, then the readerof that pipe will not see EOF until that child exits, potentiallycausing the parent program to hang. This is a common problemin threaded C programs that use popen.

Luckily, the file descriptors that are most important not toinherit are not the ones that can take an arbitrarily long timeto create: pipe returns instantly, and the net package usesnon-blocking I/O to accept on a listening socket.The rules for which file descriptor-creating operations use theForkLock are as follows:

  • Pipe. Use pipe2 if available. Otherwise, does not block,so use ForkLock.
  • Socket. Use SOCK_CLOEXEC if available. Otherwise, does notblock, so use ForkLock.
  • Open. UseO_CLOEXEC if available. Otherwise, may block,so live with the race.
  • Dup. UseF_DUPFD_CLOEXEC or dup3 if available. Otherwise,does not block, so use ForkLock.
View Source
var SocketDisableIPv6bool

For testing: clients can set this flag to forcecreation of IPv6 sockets to returnEAFNOSUPPORT.

Functions

funcAccess

func Access(pathstring, modeuint32) (errerror)

funcAcct

func Acct(pathstring) (errerror)

funcAdjtimex

func Adjtimex(buf *Timex) (stateint, errerror)

funcAttachLsfdeprecated

func AttachLsf(fdint, i []SockFilter)error

Deprecated: Use golang.org/x/net/bpf instead.

funcBind

func Bind(fdint, saSockaddr) (errerror)

funcBindToDevice

func BindToDevice(fdint, devicestring) (errerror)

BindToDevice binds the socket associated with fd to device.

funcBytePtrFromStringadded ingo1.1

func BytePtrFromString(sstring) (*byte,error)

BytePtrFromString returns a pointer to a NUL-terminated array ofbytes containing the text of s. If s contains a NUL byte at anylocation, it returns (nil,EINVAL).

funcByteSliceFromStringadded ingo1.1

func ByteSliceFromString(sstring) ([]byte,error)

ByteSliceFromString returns a NUL-terminated slice of bytescontaining the text of s. If s contains a NUL byte at anylocation, it returns (nil,EINVAL).

funcChdir

func Chdir(pathstring) (errerror)

funcChmod

func Chmod(pathstring, modeuint32) (errerror)

funcChown

func Chown(pathstring, uidint, gidint) (errerror)

funcChroot

func Chroot(pathstring) (errerror)

funcClearenv

func Clearenv()

funcClose

func Close(fdint) (errerror)

funcCloseOnExec

func CloseOnExec(fdint)

funcCmsgLen

func CmsgLen(datalenint)int

CmsgLen returns the value to store in the Len field of theCmsghdrstructure, taking into account any necessary alignment.

funcCmsgSpace

func CmsgSpace(datalenint)int

CmsgSpace returns the number of bytes an ancillary element withpayload of the passed data length occupies.

funcConnect

func Connect(fdint, saSockaddr) (errerror)

funcCreat

func Creat(pathstring, modeuint32) (fdint, errerror)

funcDetachLsfdeprecated

func DetachLsf(fdint)error

Deprecated: Use golang.org/x/net/bpf instead.

funcDup

func Dup(oldfdint) (fdint, errerror)

funcDup2

func Dup2(oldfdint, newfdint) (errerror)

funcDup3added ingo1.2

func Dup3(oldfdint, newfdint, flagsint) (errerror)

funcEnviron

func Environ() []string

funcEpollCreate

func EpollCreate(sizeint) (fdint, errerror)

funcEpollCreate1

func EpollCreate1(flagint) (fdint, errerror)

funcEpollCtl

func EpollCtl(epfdint, opint, fdint, event *EpollEvent) (errerror)

funcEpollWait

func EpollWait(epfdint, events []EpollEvent, msecint) (nint, errerror)

funcExec

func Exec(argv0string, argv []string, envv []string) (errerror)

Exec invokes the execve(2) system call.

funcExit

func Exit(codeint)

funcFaccessat

func Faccessat(dirfdint, pathstring, modeuint32, flagsint) (errerror)

funcFallocate

func Fallocate(fdint, modeuint32, offint64, lenint64) (errerror)

funcFchdir

func Fchdir(fdint) (errerror)

funcFchmod

func Fchmod(fdint, modeuint32) (errerror)

funcFchmodat

func Fchmodat(dirfdint, pathstring, modeuint32, flagsint)error

funcFchown

func Fchown(fdint, uidint, gidint) (errerror)

funcFchownat

func Fchownat(dirfdint, pathstring, uidint, gidint, flagsint) (errerror)

funcFcntlFlockadded ingo1.3

func FcntlFlock(fduintptr, cmdint, lk *Flock_t)error

FcntlFlock performs a fcntl syscall for theF_GETLK,F_SETLK orF_SETLKW command.

funcFdatasync

func Fdatasync(fdint) (errerror)

funcFlock

func Flock(fdint, howint) (errerror)

funcForkExec

func ForkExec(argv0string, argv []string, attr *ProcAttr) (pidint, errerror)

Combination of fork and exec, careful to be thread safe.

funcFstat

func Fstat(fdint, stat *Stat_t) (errerror)

funcFstatfs

func Fstatfs(fdint, buf *Statfs_t) (errerror)

funcFsync

func Fsync(fdint) (errerror)

funcFtruncate

func Ftruncate(fdint, lengthint64) (errerror)

funcFutimes

func Futimes(fdint, tv []Timeval) (errerror)

funcFutimesat

func Futimesat(dirfdint, pathstring, tv []Timeval) (errerror)

funcGetcwd

func Getcwd(buf []byte) (nint, errerror)

funcGetdents

func Getdents(fdint, buf []byte) (nint, errerror)

funcGetegid

func Getegid() (egidint)

funcGetenv

func Getenv(keystring) (valuestring, foundbool)

funcGeteuid

func Geteuid() (euidint)

funcGetgid

func Getgid() (gidint)

funcGetgroups

func Getgroups() (gids []int, errerror)

funcGetpagesize

func Getpagesize()int

funcGetpgid

func Getpgid(pidint) (pgidint, errerror)

funcGetpgrp

func Getpgrp() (pidint)

funcGetpid

func Getpid() (pidint)

funcGetppid

func Getppid() (ppidint)

funcGetpriorityadded ingo1.2

func Getpriority(whichint, whoint) (prioint, errerror)

funcGetrlimit

func Getrlimit(resourceint, rlim *Rlimit) (errerror)

funcGetrusage

func Getrusage(whoint, rusage *Rusage) (errerror)

funcGetsockoptInet4Addr

func GetsockoptInet4Addr(fd, level, optint) (value [4]byte, errerror)

funcGetsockoptInt

func GetsockoptInt(fd, level, optint) (valueint, errerror)

funcGettid

func Gettid() (tidint)

funcGettimeofday

func Gettimeofday(tv *Timeval) (errerror)

funcGetuid

func Getuid() (uidint)

funcGetwd

func Getwd() (wdstring, errerror)

funcGetxattradded ingo1.1

func Getxattr(pathstring, attrstring, dest []byte) (szint, errerror)

funcInotifyAddWatch

func InotifyAddWatch(fdint, pathnamestring, maskuint32) (watchdescint, errerror)

funcInotifyInit

func InotifyInit() (fdint, errerror)

funcInotifyInit1

func InotifyInit1(flagsint) (fdint, errerror)

funcInotifyRmWatch

func InotifyRmWatch(fdint, watchdescuint32) (successint, errerror)

funcIoperm

func Ioperm(fromint, numint, onint) (errerror)

funcIopl

func Iopl(levelint) (errerror)

funcKill

func Kill(pidint, sigSignal) (errerror)

funcKlogctl

func Klogctl(typint, buf []byte) (nint, errerror)

funcLchown

func Lchown(pathstring, uidint, gidint) (errerror)

funcLink

func Link(oldpathstring, newpathstring) (errerror)

funcListen

func Listen(sint, nint) (errerror)

funcListxattradded ingo1.1

func Listxattr(pathstring, dest []byte) (szint, errerror)

funcLsfSocketdeprecated

func LsfSocket(ifindex, protoint) (int,error)

Deprecated: Use golang.org/x/net/bpf instead.

funcLstat

func Lstat(pathstring, stat *Stat_t) (errerror)

funcMadvise

func Madvise(b []byte, adviceint) (errerror)

funcMkdir

func Mkdir(pathstring, modeuint32) (errerror)

funcMkdirat

func Mkdirat(dirfdint, pathstring, modeuint32) (errerror)

funcMkfifo

func Mkfifo(pathstring, modeuint32) (errerror)

funcMknod

func Mknod(pathstring, modeuint32, devint) (errerror)

funcMknodat

func Mknodat(dirfdint, pathstring, modeuint32, devint) (errerror)

funcMlock

func Mlock(b []byte) (errerror)

funcMlockall

func Mlockall(flagsint) (errerror)

funcMmap

func Mmap(fdint, offsetint64, lengthint, protint, flagsint) (data []byte, errerror)

funcMount

func Mount(sourcestring, targetstring, fstypestring, flagsuintptr, datastring) (errerror)

funcMprotect

func Mprotect(b []byte, protint) (errerror)

funcMunlock

func Munlock(b []byte) (errerror)

funcMunlockall

func Munlockall() (errerror)

funcMunmap

func Munmap(b []byte) (errerror)

funcNanosleep

func Nanosleep(time *Timespec, leftover *Timespec) (errerror)

funcNetlinkRIB

func NetlinkRIB(proto, familyint) ([]byte,error)

NetlinkRIB returns routing information base, as known as RIB, whichconsists of network facility information, states and parameters.

funcOpen

func Open(pathstring, modeint, permuint32) (fdint, errerror)

funcOpenat

func Openat(dirfdint, pathstring, flagsint, modeuint32) (fdint, errerror)

funcParseDirent

func ParseDirent(buf []byte, maxint, names []string) (consumedint, countint, newnames []string)

ParseDirent parses up to max directory entries in buf,appending the names to names. It returns the number ofbytes consumed from buf, the number of entries addedto names, and the new names slice.

funcParseUnixRights

func ParseUnixRights(m *SocketControlMessage) ([]int,error)

ParseUnixRights decodes a socket control message that contains aninteger array of open file descriptors from another process.

funcPause

func Pause() (errerror)

funcPipe

func Pipe(p []int)error

funcPipe2added ingo1.1

func Pipe2(p []int, flagsint)error

funcPivotRoot

func PivotRoot(newrootstring, putoldstring) (errerror)

funcPread

func Pread(fdint, p []byte, offsetint64) (nint, errerror)

funcPtraceAttach

func PtraceAttach(pidint) (errerror)

funcPtraceCont

func PtraceCont(pidint, signalint) (errerror)

funcPtraceDetach

func PtraceDetach(pidint) (errerror)

funcPtraceGetEventMsg

func PtraceGetEventMsg(pidint) (msguint, errerror)

funcPtraceGetRegs

func PtraceGetRegs(pidint, regsout *PtraceRegs) (errerror)

funcPtracePeekData

func PtracePeekData(pidint, addruintptr, out []byte) (countint, errerror)

funcPtracePeekText

func PtracePeekText(pidint, addruintptr, out []byte) (countint, errerror)

funcPtracePokeData

func PtracePokeData(pidint, addruintptr, data []byte) (countint, errerror)

funcPtracePokeText

func PtracePokeText(pidint, addruintptr, data []byte) (countint, errerror)

funcPtraceSetOptions

func PtraceSetOptions(pidint, optionsint) (errerror)

funcPtraceSetRegs

func PtraceSetRegs(pidint, regs *PtraceRegs) (errerror)

funcPtraceSingleStep

func PtraceSingleStep(pidint) (errerror)

funcPtraceSyscalladded ingo1.1

func PtraceSyscall(pidint, signalint) (errerror)

funcPwrite

func Pwrite(fdint, p []byte, offsetint64) (nint, errerror)

funcRead

func Read(fdint, p []byte) (nint, errerror)

funcReadDirent

func ReadDirent(fdint, buf []byte) (nint, errerror)

funcReadlink

func Readlink(pathstring, buf []byte) (nint, errerror)

funcReboot

func Reboot(cmdint) (errerror)

funcRemovexattradded ingo1.1

func Removexattr(pathstring, attrstring) (errerror)

funcRename

func Rename(oldpathstring, newpathstring) (errerror)

funcRenameat

func Renameat(olddirfdint, oldpathstring, newdirfdint, newpathstring) (errerror)

funcRmdir

func Rmdir(pathstring)error

funcSeek

func Seek(fdint, offsetint64, whenceint) (offint64, errerror)

funcSelect

func Select(nfdint, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (nint, errerror)

funcSendfile

func Sendfile(outfdint, infdint, offset *int64, countint) (writtenint, errerror)

funcSendmsg

func Sendmsg(fdint, p, oob []byte, toSockaddr, flagsint) (errerror)

funcSendmsgNadded ingo1.3

func SendmsgN(fdint, p, oob []byte, toSockaddr, flagsint) (nint, errerror)

funcSendto

func Sendto(fdint, p []byte, flagsint, toSockaddr) (errerror)

funcSetLsfPromiscdeprecated

func SetLsfPromisc(namestring, mbool)error

Deprecated: Use golang.org/x/net/bpf instead.

funcSetNonblock

func SetNonblock(fdint, nonblockingbool) (errerror)

funcSetdomainname

func Setdomainname(p []byte) (errerror)

funcSetegidadded ingo1.16

func Setegid(egidint) (errerror)

funcSetenv

func Setenv(key, valuestring)error

funcSeteuidadded ingo1.16

func Seteuid(euidint) (errerror)

funcSetfsgid

func Setfsgid(gidint) (errerror)

funcSetfsuid

func Setfsuid(uidint) (errerror)

funcSetgid

func Setgid(gidint) (errerror)

funcSetgroups

func Setgroups(gids []int) (errerror)

funcSethostname

func Sethostname(p []byte) (errerror)

funcSetpgid

func Setpgid(pidint, pgidint) (errerror)

funcSetpriorityadded ingo1.2

func Setpriority(whichint, whoint, prioint) (errerror)

funcSetregid

func Setregid(rgid, egidint) (errerror)

funcSetresgid

func Setresgid(rgid, egid, sgidint) (errerror)

funcSetresuid

func Setresuid(ruid, euid, suidint) (errerror)

funcSetreuid

func Setreuid(ruid, euidint) (errerror)

funcSetrlimit

func Setrlimit(resourceint, rlim *Rlimit)error

funcSetsid

func Setsid() (pidint, errerror)

funcSetsockoptByteadded ingo1.2

func SetsockoptByte(fd, level, optint, valuebyte) (errerror)

funcSetsockoptICMPv6Filteradded ingo1.2

func SetsockoptICMPv6Filter(fd, level, optint, filter *ICMPv6Filter)error

funcSetsockoptIPMreq

func SetsockoptIPMreq(fd, level, optint, mreq *IPMreq) (errerror)

funcSetsockoptIPMreqn

func SetsockoptIPMreqn(fd, level, optint, mreq *IPMreqn) (errerror)

funcSetsockoptIPv6Mreq

func SetsockoptIPv6Mreq(fd, level, optint, mreq *IPv6Mreq) (errerror)

funcSetsockoptInet4Addr

func SetsockoptInet4Addr(fd, level, optint, value [4]byte) (errerror)

funcSetsockoptInt

func SetsockoptInt(fd, level, optint, valueint) (errerror)

funcSetsockoptLinger

func SetsockoptLinger(fd, level, optint, l *Linger) (errerror)

funcSetsockoptString

func SetsockoptString(fd, level, optint, sstring) (errerror)

funcSetsockoptTimeval

func SetsockoptTimeval(fd, level, optint, tv *Timeval) (errerror)

funcSettimeofday

func Settimeofday(tv *Timeval) (errerror)

funcSetuid

func Setuid(uidint) (errerror)

funcSetxattradded ingo1.1

func Setxattr(pathstring, attrstring, data []byte, flagsint) (errerror)

funcShutdown

func Shutdown(fdint, howint) (errerror)

funcSlicePtrFromStringsadded ingo1.1

func SlicePtrFromStrings(ss []string) ([]*byte,error)

SlicePtrFromStrings converts a slice of strings to a slice ofpointers to NUL-terminated byte arrays. If any string containsa NUL byte, it returns (nil,EINVAL).

funcSocket

func Socket(domain, typ, protoint) (fdint, errerror)

funcSocketpair

func Socketpair(domain, typ, protoint) (fd [2]int, errerror)

funcSplice

func Splice(rfdint, roff *int64, wfdint, woff *int64, lenint, flagsint) (nint64, errerror)

funcStartProcess

func StartProcess(argv0string, argv []string, attr *ProcAttr) (pidint, handleuintptr, errerror)

StartProcess wrapsForkExec for package os.

funcStat

func Stat(pathstring, stat *Stat_t) (errerror)

funcStatfs

func Statfs(pathstring, buf *Statfs_t) (errerror)

funcStringBytePtrdeprecated

func StringBytePtr(sstring) *byte

StringBytePtr returns a pointer to a NUL-terminated array of bytes.If s contains a NUL byte this function panics instead of returningan error.

Deprecated: UseBytePtrFromString instead.

funcStringByteSlicedeprecated

func StringByteSlice(sstring) []byte

StringByteSlice converts a string to a NUL-terminated []byte,If s contains a NUL byte this function panics instead ofreturning an error.

Deprecated: Use ByteSliceFromString instead.

funcStringSlicePtrdeprecated

func StringSlicePtr(ss []string) []*byte

StringSlicePtr converts a slice of strings to a slice of pointersto NUL-terminated byte arrays. If any string contains a NUL bytethis function panics instead of returning an error.

Deprecated: UseSlicePtrFromStrings instead.

funcSymlink

func Symlink(oldpathstring, newpathstring) (errerror)

funcSync

func Sync()

funcSyncFileRange

func SyncFileRange(fdint, offint64, nint64, flagsint) (errerror)

funcSysinfo

func Sysinfo(info *Sysinfo_t) (errerror)

funcTee

func Tee(rfdint, wfdint, lenint, flagsint) (nint64, errerror)

funcTgkill

func Tgkill(tgidint, tidint, sigSignal) (errerror)

funcTimes

func Times(tms *Tms) (ticksuintptr, errerror)

funcTimespecToNsec

func TimespecToNsec(tsTimespec)int64

TimespecToNsec returns the time stored in ts as nanoseconds.

funcTimevalToNsec

func TimevalToNsec(tvTimeval)int64

TimevalToNsec returns the time stored in tv as nanoseconds.

funcTruncate

func Truncate(pathstring, lengthint64) (errerror)

funcUmask

func Umask(maskint) (oldmaskint)

funcUname

func Uname(buf *Utsname) (errerror)

funcUnixCredentials

func UnixCredentials(ucred *Ucred) []byte

UnixCredentials encodes credentials into a socket control messagefor sending to another process. This can be used forauthentication.

funcUnixRights

func UnixRights(fds ...int) []byte

UnixRights encodes a set of open file descriptors into a socketcontrol message for sending to another process.

funcUnlink

func Unlink(pathstring)error

funcUnlinkat

func Unlinkat(dirfdint, pathstring)error

funcUnmount

func Unmount(targetstring, flagsint) (errerror)

funcUnsetenvadded ingo1.4

func Unsetenv(keystring)error

funcUnshare

func Unshare(flagsint) (errerror)

funcUstat

func Ustat(devint, ubuf *Ustat_t) (errerror)

funcUtime

func Utime(pathstring, buf *Utimbuf) (errerror)

funcUtimes

func Utimes(pathstring, tv []Timeval) (errerror)

funcUtimesNanoadded ingo1.1

func UtimesNano(pathstring, ts []Timespec) (errerror)

funcWait4

func Wait4(pidint, wstatus *WaitStatus, optionsint, rusage *Rusage) (wpidint, errerror)

funcWrite

func Write(fdint, p []byte) (nint, errerror)

Types

typeCmsghdr

type Cmsghdr struct {Lenuint64Levelint32Typeint32}

func (*Cmsghdr)SetLen

func (cmsg *Cmsghdr) SetLen(lengthint)

typeConnadded ingo1.9

type Conn interface {// SyscallConn returns a raw network connection.SyscallConn() (RawConn,error)}

Conn is implemented by some types in the net and os packages to provideaccess to the underlying file descriptor or handle.

typeCredential

type Credential struct {Uiduint32// User ID.Giduint32// Group ID.Groups      []uint32// Supplementary group IDs.NoSetGroupsbool// If true, don't set supplementary groups}

Credential holds user and group identities to be assumedby a child process started byStartProcess.

typeDirent

type Dirent struct {Inouint64Offint64Reclenuint16Typeuint8Name      [256]int8Pad_cgo_0 [5]byte}

typeEpollEvent

type EpollEvent struct {Eventsuint32Fdint32Padint32}

typeErrno

type Errnouintptr

An Errno is an unsigned number describing an error condition.It implements the error interface. The zero Errno is by conventiona non-error, so code to convert from Errno to error should use:

err = nilif errno != 0 {err = errno}

Errno values can be tested against error values usingerrors.Is.For example:

_, _, err := syscall.Syscall(...)if errors.Is(err, fs.ErrNotExist) ...

funcAllThreadsSyscalladded ingo1.16

func AllThreadsSyscall(trap, a1, a2, a3uintptr) (r1, r2uintptr, errErrno)

AllThreadsSyscall performs a syscall on each OS thread of the Goruntime. It first invokes the syscall on one thread. Should thatinvocation fail, it returns immediately with the error status.Otherwise, it invokes the syscall on all of the remaining threadsin parallel. It will terminate the program if it observes anyinvoked syscall's return value differs from that of the firstinvocation.

AllThreadsSyscall is intended for emulating simultaneousprocess-wide state changes that require consistently modifyingper-thread state of the Go runtime.

AllThreadsSyscall is unaware of any threads that are launchedexplicitly by cgo linked code, so the function always returnsENOTSUP in binaries that use cgo.

funcAllThreadsSyscall6added ingo1.16

func AllThreadsSyscall6(trap, a1, a2, a3, a4, a5, a6uintptr) (r1, r2uintptr, errErrno)

AllThreadsSyscall6 is likeAllThreadsSyscall, but extended to sixarguments.

funcRawSyscall

func RawSyscall(trap, a1, a2, a3uintptr) (r1, r2uintptr, errErrno)

funcRawSyscall6

func RawSyscall6(trap, a1, a2, a3, a4, a5, a6uintptr) (r1, r2uintptr, errErrno)

funcSyscall

func Syscall(trap, a1, a2, a3uintptr) (r1, r2uintptr, errErrno)

funcSyscall6

func Syscall6(trap, a1, a2, a3, a4, a5, a6uintptr) (r1, r2uintptr, errErrno)

func (Errno)Error

func (eErrno) Error()string

func (Errno)Isadded ingo1.13

func (eErrno) Is(targeterror)bool

func (Errno)Temporary

func (eErrno) Temporary()bool

func (Errno)Timeout

func (eErrno) Timeout()bool

typeFdSet

type FdSet struct {Bits [16]int64}

typeFlock_tadded ingo1.3

type Flock_t struct {Typeint16Whenceint16Pad_cgo_0 [4]byteStartint64Lenint64Pidint32Pad_cgo_1 [4]byte}

typeFsid

type Fsid struct {X__val [2]int32}

typeICMPv6Filteradded ingo1.2

type ICMPv6Filter struct {Data [8]uint32}

funcGetsockoptICMPv6Filteradded ingo1.2

func GetsockoptICMPv6Filter(fd, level, optint) (*ICMPv6Filter,error)

typeIPMreq

type IPMreq struct {Multiaddr [4]byte/* in_addr */Interface [4]byte/* in_addr */}

funcGetsockoptIPMreq

func GetsockoptIPMreq(fd, level, optint) (*IPMreq,error)

typeIPMreqn

type IPMreqn struct {Multiaddr [4]byte/* in_addr */Address   [4]byte/* in_addr */Ifindexint32}

funcGetsockoptIPMreqn

func GetsockoptIPMreqn(fd, level, optint) (*IPMreqn,error)

typeIPv6MTUInfoadded ingo1.2

type IPv6MTUInfo struct {AddrRawSockaddrInet6Mtuuint32}

funcGetsockoptIPv6MTUInfoadded ingo1.2

func GetsockoptIPv6MTUInfo(fd, level, optint) (*IPv6MTUInfo,error)

typeIPv6Mreq

type IPv6Mreq struct {Multiaddr [16]byte/* in6_addr */Interfaceuint32}

funcGetsockoptIPv6Mreq

func GetsockoptIPv6Mreq(fd, level, optint) (*IPv6Mreq,error)

typeIfAddrmsg

type IfAddrmsg struct {Familyuint8Prefixlenuint8Flagsuint8Scopeuint8Indexuint32}

typeIfInfomsg

type IfInfomsg struct {Familyuint8X__ifi_paduint8Typeuint16Indexint32Flagsuint32Changeuint32}

typeInet4Pktinfo

type Inet4Pktinfo struct {Ifindexint32Spec_dst [4]byte/* in_addr */Addr     [4]byte/* in_addr */}

typeInet6Pktinfo

type Inet6Pktinfo struct {Addr    [16]byte/* in6_addr */Ifindexuint32}

typeInotifyEvent

type InotifyEvent struct {Wdint32Maskuint32Cookieuint32Lenuint32Name   [0]uint8}

typeIovec

type Iovec struct {Base *byteLenuint64}

func (*Iovec)SetLen

func (iov *Iovec) SetLen(lengthint)

typeLinger

type Linger struct {Onoffint32Lingerint32}

typeMsghdr

type Msghdr struct {Name       *byteNamelenuint32Pad_cgo_0  [4]byteIov        *IovecIovlenuint64Control    *byteControllenuint64Flagsint32Pad_cgo_1  [4]byte}

func (*Msghdr)SetControllen

func (msghdr *Msghdr) SetControllen(lengthint)

typeNetlinkMessage

type NetlinkMessage struct {HeaderNlMsghdrData   []byte}

NetlinkMessage represents a netlink message.

funcParseNetlinkMessage

func ParseNetlinkMessage(b []byte) ([]NetlinkMessage,error)

ParseNetlinkMessage parses b as an array of netlink messages andreturns the slice containing the NetlinkMessage structures.

typeNetlinkRouteAttr

type NetlinkRouteAttr struct {AttrRtAttrValue []byte}

NetlinkRouteAttr represents a netlink route attribute.

funcParseNetlinkRouteAttr

func ParseNetlinkRouteAttr(m *NetlinkMessage) ([]NetlinkRouteAttr,error)

ParseNetlinkRouteAttr parses m's payload as an array of netlinkroute attributes and returns the slice containing theNetlinkRouteAttr structures.

typeNetlinkRouteRequest

type NetlinkRouteRequest struct {HeaderNlMsghdrDataRtGenmsg}

NetlinkRouteRequest represents a request message to receive routingand link states from the kernel.

typeNlAttr

type NlAttr struct {Lenuint16Typeuint16}

typeNlMsgerr

type NlMsgerr struct {Errorint32MsgNlMsghdr}

typeNlMsghdr

type NlMsghdr struct {Lenuint32Typeuint16Flagsuint16Sequint32Piduint32}

typeProcAttr

type ProcAttr struct {Dirstring// Current working directory.Env   []string// Environment.Files []uintptr// File descriptors.Sys   *SysProcAttr}

ProcAttr holds attributes that will be applied to a new process startedbyStartProcess.

typePtraceRegs

type PtraceRegs struct {R15uint64R14uint64R13uint64R12uint64Rbpuint64Rbxuint64R11uint64R10uint64R9uint64R8uint64Raxuint64Rcxuint64Rdxuint64Rsiuint64Rdiuint64Orig_raxuint64Ripuint64Csuint64Eflagsuint64Rspuint64Ssuint64Fs_baseuint64Gs_baseuint64Dsuint64Esuint64Fsuint64Gsuint64}

func (*PtraceRegs)PC

func (r *PtraceRegs) PC()uint64

func (*PtraceRegs)SetPC

func (r *PtraceRegs) SetPC(pcuint64)

typeRawConnadded ingo1.9

type RawConn interface {// Control invokes f on the underlying connection's file// descriptor or handle.// The file descriptor fd is guaranteed to remain valid while// f executes but not after f returns.Control(f func(fduintptr))error// Read invokes f on the underlying connection's file// descriptor or handle; f is expected to try to read from the// file descriptor.// If f returns true, Read returns. Otherwise Read blocks// waiting for the connection to be ready for reading and// tries again repeatedly.// The file descriptor is guaranteed to remain valid while f// executes but not after f returns.Read(f func(fduintptr) (donebool))error// Write is like Read but for writing.Write(f func(fduintptr) (donebool))error}

A RawConn is a raw network connection.

typeRawSockaddr

type RawSockaddr struct {Familyuint16Data   [14]int8}

typeRawSockaddrAny

type RawSockaddrAny struct {AddrRawSockaddrPad  [96]int8}

typeRawSockaddrInet4

type RawSockaddrInet4 struct {Familyuint16Portuint16Addr   [4]byte/* in_addr */Zero   [8]uint8}

typeRawSockaddrInet6

type RawSockaddrInet6 struct {Familyuint16Portuint16Flowinfouint32Addr     [16]byte/* in6_addr */Scope_iduint32}

typeRawSockaddrLinklayer

type RawSockaddrLinklayer struct {Familyuint16Protocoluint16Ifindexint32Hatypeuint16Pkttypeuint8Halenuint8Addr     [8]uint8}

typeRawSockaddrNetlink

type RawSockaddrNetlink struct {Familyuint16Paduint16Piduint32Groupsuint32}

typeRawSockaddrUnix

type RawSockaddrUnix struct {Familyuint16Path   [108]int8}

typeRlimit

type Rlimit struct {Curuint64Maxuint64}

typeRtAttr

type RtAttr struct {Lenuint16Typeuint16}

typeRtGenmsg

type RtGenmsg struct {Familyuint8}

typeRtMsg

type RtMsg struct {Familyuint8Dst_lenuint8Src_lenuint8Tosuint8Tableuint8Protocoluint8Scopeuint8Typeuint8Flagsuint32}

typeRtNexthop

type RtNexthop struct {Lenuint16Flagsuint8Hopsuint8Ifindexint32}

typeRusage

type Rusage struct {UtimeTimevalStimeTimevalMaxrssint64Ixrssint64Idrssint64Isrssint64Minfltint64Majfltint64Nswapint64Inblockint64Oublockint64Msgsndint64Msgrcvint64Nsignalsint64Nvcswint64Nivcswint64}

typeSignal

type Signalint

A Signal is a number describing a process signal.It implements theos.Signal interface.

func (Signal)Signal

func (sSignal) Signal()

func (Signal)String

func (sSignal) String()string

typeSockFilter

type SockFilter struct {Codeuint16Jtuint8Jfuint8Kuint32}

funcLsfJumpdeprecated

func LsfJump(code, k, jt, jfint) *SockFilter

Deprecated: Use golang.org/x/net/bpf instead.

funcLsfStmtdeprecated

func LsfStmt(code, kint) *SockFilter

Deprecated: Use golang.org/x/net/bpf instead.

typeSockFprog

type SockFprog struct {Lenuint16Pad_cgo_0 [6]byteFilter    *SockFilter}

typeSockaddr

type Sockaddr interface {// contains filtered or unexported methods}

funcAccept

func Accept(fdint) (nfdint, saSockaddr, errerror)

funcAccept4added ingo1.1

func Accept4(fdint, flagsint) (nfdint, saSockaddr, errerror)

funcGetpeername

func Getpeername(fdint) (saSockaddr, errerror)

funcGetsockname

func Getsockname(fdint) (saSockaddr, errerror)

funcRecvfrom

func Recvfrom(fdint, p []byte, flagsint) (nint, fromSockaddr, errerror)

funcRecvmsg

func Recvmsg(fdint, p, oob []byte, flagsint) (n, oobnint, recvflagsint, fromSockaddr, errerror)

typeSockaddrInet4

type SockaddrInet4 struct {PortintAddr [4]byte// contains filtered or unexported fields}

typeSockaddrInet6

type SockaddrInet6 struct {PortintZoneIduint32Addr   [16]byte// contains filtered or unexported fields}

typeSockaddrLinklayer

type SockaddrLinklayer struct {Protocoluint16IfindexintHatypeuint16Pkttypeuint8Halenuint8Addr     [8]byte// contains filtered or unexported fields}

typeSockaddrNetlink

type SockaddrNetlink struct {Familyuint16Paduint16Piduint32Groupsuint32// contains filtered or unexported fields}

typeSockaddrUnix

type SockaddrUnix struct {Namestring// contains filtered or unexported fields}

typeSocketControlMessage

type SocketControlMessage struct {HeaderCmsghdrData   []byte}

SocketControlMessage represents a socket control message.

funcParseSocketControlMessage

func ParseSocketControlMessage(b []byte) ([]SocketControlMessage,error)

ParseSocketControlMessage parses b as an array of socket controlmessages.

typeStat_t

type Stat_t struct {Devuint64Inouint64Nlinkuint64Modeuint32Uiduint32Giduint32X__pad0int32Rdevuint64Sizeint64Blksizeint64Blocksint64AtimTimespecMtimTimespecCtimTimespecX__unused [3]int64}

typeStatfs_t

type Statfs_t struct {Typeint64Bsizeint64Blocksuint64Bfreeuint64Bavailuint64Filesuint64Ffreeuint64FsidFsidNamelenint64Frsizeint64Flagsint64Spare   [4]int64}

typeSysProcAttr

type SysProcAttr struct {Chrootstring// Chroot.Credential *Credential// Credential.// Ptrace tells the child to call ptrace(PTRACE_TRACEME).// Call runtime.LockOSThread before starting a process with this set,// and don't call UnlockOSThread until done with PtraceSyscall calls.PtraceboolSetsidbool// Create session.// Setpgid sets the process group ID of the child to Pgid,// or, if Pgid == 0, to the new child's process ID.Setpgidbool// Setctty sets the controlling terminal of the child to// file descriptor Ctty. Ctty must be a descriptor number// in the child process: an index into ProcAttr.Files.// This is only meaningful if Setsid is true.SetcttyboolNocttybool// Detach fd 0 from controlling terminal.Cttyint// Controlling TTY fd.// Foreground places the child process group in the foreground.// This implies Setpgid. The Ctty field must be set to// the descriptor of the controlling TTY.// Unlike Setctty, in this case Ctty must be a descriptor// number in the parent process.ForegroundboolPgidint// Child's process group ID if Setpgid.// Pdeathsig, if non-zero, is a signal that the kernel will send to// the child process when the creating thread dies. Note that the signal// is sent on thread termination, which may happen before process termination.// There are more details athttps://go.dev/issue/27505.PdeathsigSignalCloneflagsuintptr// Flags for clone calls.Unshareflagsuintptr// Flags for unshare calls.UidMappings  []SysProcIDMap// User ID mappings for user namespaces.GidMappings  []SysProcIDMap// Group ID mappings for user namespaces.// GidMappingsEnableSetgroups enabling setgroups syscall.// If false, then setgroups syscall will be disabled for the child process.// This parameter is no-op if GidMappings == nil. Otherwise for unprivileged// users this should be set to false for mappings work.GidMappingsEnableSetgroupsboolAmbientCaps                []uintptr// Ambient capabilities.UseCgroupFDbool// Whether to make use of the CgroupFD field.CgroupFDint// File descriptor of a cgroup to put the new process into.// PidFD, if not nil, is used to store the pidfd of a child, if the// functionality is supported by the kernel, or -1. Note *PidFD is// changed only if the process starts successfully.PidFD *int}

typeSysProcIDMapadded ingo1.4

type SysProcIDMap struct {ContainerIDint// Container ID.HostIDint// Host ID.Sizeint// Size.}

SysProcIDMap holds Container ID to Host ID mappings used for User Namespaces in Linux.See user_namespaces(7).

Note that User Namespaces are not available on a number of popular Linuxversions (due to security issues), or are available but subject to AppArmorrestrictions like in Ubuntu 24.04.

typeSysinfo_t

type Sysinfo_t struct {Uptimeint64Loads     [3]uint64Totalramuint64Freeramuint64Sharedramuint64Bufferramuint64Totalswapuint64Freeswapuint64Procsuint16Paduint16Pad_cgo_0 [4]byteTotalhighuint64Freehighuint64Unituint32X_f       [0]bytePad_cgo_1 [4]byte}

typeTCPInfoadded ingo1.1

type TCPInfo struct {Stateuint8Ca_stateuint8Retransmitsuint8Probesuint8Backoffuint8Optionsuint8Pad_cgo_0      [2]byteRtouint32Atouint32Snd_mssuint32Rcv_mssuint32Unackeduint32Sackeduint32Lostuint32Retransuint32Facketsuint32Last_data_sentuint32Last_ack_sentuint32Last_data_recvuint32Last_ack_recvuint32Pmtuuint32Rcv_ssthreshuint32Rttuint32Rttvaruint32Snd_ssthreshuint32Snd_cwnduint32Advmssuint32Reorderinguint32Rcv_rttuint32Rcv_spaceuint32Total_retransuint32}

typeTermios

type Termios struct {Iflaguint32Oflaguint32Cflaguint32Lflaguint32Lineuint8Cc        [32]uint8Pad_cgo_0 [3]byteIspeeduint32Ospeeduint32}

typeTime_t

type Time_tint64

funcTime

func Time(t *Time_t) (ttTime_t, errerror)

typeTimespec

type Timespec struct {Secint64Nsecint64}

funcNsecToTimespec

func NsecToTimespec(nsecint64)Timespec

NsecToTimespec converts a number of nanoseconds into aTimespec.

func (*Timespec)Nano

func (ts *Timespec) Nano()int64

Nano returns the time stored in ts as nanoseconds.

func (*Timespec)Unix

func (ts *Timespec) Unix() (secint64, nsecint64)

Unix returns the time stored in ts as seconds plus nanoseconds.

typeTimeval

type Timeval struct {Secint64Usecint64}

funcNsecToTimeval

func NsecToTimeval(nsecint64)Timeval

NsecToTimeval converts a number of nanoseconds into aTimeval.

func (*Timeval)Nano

func (tv *Timeval) Nano()int64

Nano returns the time stored in tv as nanoseconds.

func (*Timeval)Unix

func (tv *Timeval) Unix() (secint64, nsecint64)

Unix returns the time stored in tv as seconds plus nanoseconds.

typeTimex

type Timex struct {Modesuint32Pad_cgo_0 [4]byteOffsetint64Freqint64Maxerrorint64Esterrorint64Statusint32Pad_cgo_1 [4]byteConstantint64Precisionint64Toleranceint64TimeTimevalTickint64Ppsfreqint64Jitterint64Shiftint32Pad_cgo_2 [4]byteStabilint64Jitcntint64Calcntint64Errcntint64Stbcntint64Taiint32Pad_cgo_3 [44]byte}

typeTms

type Tms struct {Utimeint64Stimeint64Cutimeint64Cstimeint64}

typeUcred

type Ucred struct {Pidint32Uiduint32Giduint32}

funcGetsockoptUcredadded ingo1.1

func GetsockoptUcred(fd, level, optint) (*Ucred,error)

funcParseUnixCredentials

func ParseUnixCredentials(m *SocketControlMessage) (*Ucred,error)

ParseUnixCredentials decodes a socket control message that containscredentials in a Ucred structure. To receive such a message, theSO_PASSCRED option must be enabled on the socket.

typeUstat_t

type Ustat_t struct {Tfreeint32Pad_cgo_0 [4]byteTinodeuint64Fname     [6]int8Fpack     [6]int8Pad_cgo_1 [4]byte}

typeUtimbuf

type Utimbuf struct {Actimeint64Modtimeint64}

typeUtsname

type Utsname struct {Sysname    [65]int8Nodename   [65]int8Release    [65]int8Version    [65]int8Machine    [65]int8Domainname [65]int8}

typeWaitStatus

type WaitStatusuint32

func (WaitStatus)Continued

func (wWaitStatus) Continued()bool

func (WaitStatus)CoreDump

func (wWaitStatus) CoreDump()bool

func (WaitStatus)ExitStatus

func (wWaitStatus) ExitStatus()int

func (WaitStatus)Exited

func (wWaitStatus) Exited()bool

func (WaitStatus)Signal

func (wWaitStatus) Signal()Signal

func (WaitStatus)Signaled

func (wWaitStatus) Signaled()bool

func (WaitStatus)StopSignal

func (wWaitStatus) StopSignal()Signal

func (WaitStatus)Stopped

func (wWaitStatus) Stopped()bool

func (WaitStatus)TrapCause

func (wWaitStatus) TrapCause()int

Source Files

View all Source files

Directories

PathSynopsis
Package js gives access to the WebAssembly host environment when using the js/wasm architecture.
Package js gives access to the WebAssembly host environment when using the js/wasm architecture.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp