...

Package syscall

import "syscall"
Overview
Index
Subdirectories

Overview ▾

Package syscall contains an interface to the low-level operating system primitives. The details vary depending on the underlying system, and by default, godoc will display the syscall documentation for the current system. If you want godoc to display syscall documentation for another system, set $GOOS and $GOARCH to the desired system. For example, if you want to view documentation for freebsd/arm on linux/amd64, set $GOOS to freebsd and $GOARCH to arm. The primary use of syscall is inside other packages that provide a more portable interface to the system, such as "os", "time" and "net". Use those packages rather than this one if you can. For details of the functions and data types in this package consult the manuals for the appropriate operating system. These calls return err == nil to indicate success; otherwise err is an operating system error describing the failure. On most systems, that error has type syscall.Errno.

Deprecated: this package is locked down. Callers should use the corresponding package in the golang.org/x/sys repository instead. That is also where updates required by new systems or versions should be applied. See https://golang.org/s/go1.4-syscall for more information.

Index ▾

Constants
Variables
func Access(path string, mode uint32) (err error)
func Adjtime(delta *Timeval, olddelta *Timeval) (err error)
func Bind(fd int, sa Sockaddr) (err error)
func BpfBuflen(fd int) (int, error)
func BpfDatalink(fd int) (int, error)
func BpfHeadercmpl(fd int) (int, error)
func BpfInterface(fd int, name string) (string, error)
func BytePtrFromString(s string) (*byte, error)
func ByteSliceFromString(s string) ([]byte, error)
func Chdir(path string) (err error)
func CheckBpfVersion(fd int) error
func Chflags(path string, flags int) (err error)
func Chmod(path string, mode uint32) (err error)
func Chown(path string, uid int, gid int) (err error)
func Chroot(path string) (err error)
func Clearenv()
func Close(fd int) (err error)
func CloseOnExec(fd int)
func CmsgLen(datalen int) int
func CmsgSpace(datalen int) int
func Connect(fd int, sa Sockaddr) (err error)
func Dup(fd int) (nfd int, err error)
func Dup2(from int, to int) (err error)
func Environ() []string
func Exec(argv0 string, argv []string, envv []string) (err error)
func Exit(code int)
func Fchdir(fd int) (err error)
func Fchflags(fd int, flags int) (err error)
func Fchmod(fd int, mode uint32) (err error)
func Fchown(fd int, uid int, gid int) (err error)
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error
func Flock(fd int, how int) (err error)
func FlushBpf(fd int) error
func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
func Fpathconf(fd int, name int) (val int, err error)
func Fstat(fd int, stat *Stat_t) (err error)
func Fstatfs(fd int, stat *Statfs_t) (err error)
func Fsync(fd int) (err error)
func Ftruncate(fd int, length int64) (err error)
func Futimes(fd int, tv []Timeval) (err error)
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
func Getegid() (egid int)
func Getenv(key string) (value string, found bool)
func Geteuid() (uid int)
func Getfsstat(buf []Statfs_t, flags int) (n int, err error)
func Getgid() (gid int)
func Getgroups() (gids []int, err error)
func Getpagesize() int
func Getpgid(pid int) (pgid int, err error)
func Getpgrp() (pgrp int)
func Getpid() (pid int)
func Getppid() (ppid int)
func Getpriority(which int, who int) (prio int, err error)
func Getrlimit(which int, lim *Rlimit) (err error)
func Getrusage(who int, rusage *Rusage) (err error)
func Getsid(pid int) (sid int, err error)
func GetsockoptByte(fd, level, opt int) (value byte, err error)
func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error)
func GetsockoptInt(fd, level, opt int) (value int, err error)
func Gettimeofday(tv *Timeval) (err error)
func Getuid() (uid int)
func Getwd() (string, error)
func Issetugid() (tainted bool)
func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error)
func Kill(pid int, signum Signal) (err error)
func Kqueue() (fd int, err error)
func Lchown(path string, uid int, gid int) (err error)
func Link(path string, link string) (err error)
func Listen(s int, backlog int) (err error)
func Lstat(path string, stat *Stat_t) (err error)
func Mkdir(path string, mode uint32) (err error)
func Mkfifo(path string, mode uint32) (err error)
func Mknod(path string, mode uint32, dev int) (err error)
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)
func Munmap(b []byte) (err error)
func Nanosleep(time *Timespec, leftover *Timespec) (err error)
func Open(path string, mode int, perm uint32) (fd int, err error)
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string)
func ParseUnixRights(m *SocketControlMessage) ([]int, error)
func Pathconf(path string, name int) (val int, err error)
func Pipe(p []int) error
func Pipe2(p []int, flags int) error
func Pread(fd int, p []byte, offset int64) (n int, err error)
func Pwrite(fd int, p []byte, offset int64) (n int, err error)
func Read(fd int, p []byte) (n int, err error)
func ReadDirent(fd int, buf []byte) (n int, err error)
func Readlink(path string, buf []byte) (n int, err error)
func Rename(from string, to string) (err error)
func Revoke(path string) (err error)
func Rmdir(path string) (err error)
func RouteRIB(facility, param int) ([]byte, error)
func Seek(fd int, offset int64, whence int) (newoffset int64, err error)
func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error)
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error)
func SetBpf(fd int, i []BpfInsn) error
func SetBpfBuflen(fd, l int) (int, error)
func SetBpfDatalink(fd, t int) (int, error)
func SetBpfHeadercmpl(fd, f int) error
func SetBpfImmediate(fd, m int) error
func SetBpfInterface(fd int, name string) error
func SetBpfPromisc(fd, m int) error
func SetBpfTimeout(fd int, tv *Timeval) error
func SetKevent(k *Kevent_t, fd, mode, flags int)
func SetNonblock(fd int, nonblocking bool) (err error)
func Setegid(egid int) (err error)
func Setenv(key, value string) error
func Seteuid(euid int) (err error)
func Setgid(gid int) (err error)
func Setgroups(gids []int) (err error)
func Setlogin(name string) (err error)
func Setpgid(pid int, pgid int) (err error)
func Setpriority(which int, who int, prio int) (err error)
func Setregid(rgid int, egid int) (err error)
func Setreuid(ruid int, euid int) (err error)
func Setrlimit(which int, lim *Rlimit) (err error)
func Setsid() (pid int, err error)
func SetsockoptByte(fd, level, opt int, value byte) (err error)
func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error
func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error)
func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error)
func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error)
func SetsockoptInt(fd, level, opt int, value int) (err error)
func SetsockoptLinger(fd, level, opt int, l *Linger) (err error)
func SetsockoptString(fd, level, opt int, s string) (err error)
func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error)
func Settimeofday(tp *Timeval) (err error)
func Setuid(uid int) (err error)
func Shutdown(s int, how int) (err error)
func SlicePtrFromStrings(ss []string) ([]*byte, error)
func Socket(domain, typ, proto int) (fd int, err error)
func Socketpair(domain, typ, proto int) (fd [2]int, err error)
func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error)
func Stat(path string, stat *Stat_t) (err error)
func Statfs(path string, stat *Statfs_t) (err error)
func StringBytePtr(s string) *byte
func StringByteSlice(s string) []byte
func StringSlicePtr(ss []string) []*byte
func Symlink(path string, link string) (err error)
func Sync() (err error)
func Sysctl(name string) (value string, err error)
func SysctlUint32(name string) (value uint32, err error)
func TimespecToNsec(ts Timespec) int64
func TimevalToNsec(tv Timeval) int64
func Truncate(path string, length int64) (err error)
func Umask(newmask int) (oldmask int)
func UnixRights(fds ...int) []byte
func Unlink(path string) (err error)
func Unmount(path string, flags int) (err error)
func Unsetenv(key string) error
func Utimes(path string, tv []Timeval) (err error)
func UtimesNano(path string, ts []Timespec) error
func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)
func Write(fd int, p []byte) (n int, err error)
type BpfHdr
type BpfInsn
    func BpfJump(code, k, jt, jf int) *BpfInsn
    func BpfStmt(code, k int) *BpfInsn
type BpfProgram
type BpfStat
    func BpfStats(fd int) (*BpfStat, error)
type BpfTimeval
type BpfVersion
type Cmsghdr
    func (cmsg *Cmsghdr) SetLen(length int)
type Conn
type Credential
type Dirent
type Errno
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
    func (e Errno) Error() string
    func (e Errno) Is(target error) bool
    func (e Errno) Temporary() bool
    func (e Errno) Timeout() bool
type FdSet
type Flock_t
type Fsid
type ICMPv6Filter
    func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error)
type IPMreq
    func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error)
type IPv6MTUInfo
    func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error)
type IPv6Mreq
    func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error)
type IfAnnounceMsghdr
type IfData
type IfMsghdr
type IfaMsghdr
type Inet6Pktinfo
type InterfaceAddrMessage
type InterfaceAnnounceMessage
type InterfaceMessage
type Iovec
    func (iov *Iovec) SetLen(length int)
type Kevent_t
type Linger
type Mclpool
type Msghdr
    func (msghdr *Msghdr) SetControllen(length int)
type ProcAttr
type RawConn
type RawSockaddr
type RawSockaddrAny
type RawSockaddrDatalink
type RawSockaddrInet4
type RawSockaddrInet6
type RawSockaddrUnix
type Rlimit
type RouteMessage
type RoutingMessage
    func ParseRoutingMessage(b []byte) (msgs []RoutingMessage, err error)
type RtMetrics
type RtMsghdr
type Rusage
type Signal
    func (s Signal) Signal()
    func (s Signal) String() string
type Sockaddr
    func Accept(fd int) (nfd int, sa Sockaddr, err error)
    func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error)
    func Getpeername(fd int) (sa Sockaddr, err error)
    func Getsockname(fd int) (sa Sockaddr, err error)
    func ParseRoutingSockaddr(msg RoutingMessage) ([]Sockaddr, error)
    func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error)
    func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error)
type SockaddrDatalink
type SockaddrInet4
type SockaddrInet6
type SockaddrUnix
type SocketControlMessage
    func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error)
type Stat_t
type Statfs_t
type SysProcAttr
type Termios
type Timespec
    func NsecToTimespec(nsec int64) Timespec
    func (ts *Timespec) Nano() int64
    func (ts *Timespec) Unix() (sec int64, nsec int64)
type Timeval
    func BpfTimeout(fd int) (*Timeval, error)
    func NsecToTimeval(nsec int64) Timeval
    func (tv *Timeval) Nano() int64
    func (tv *Timeval) Unix() (sec int64, nsec int64)
type WaitStatus
    func (w WaitStatus) Continued() bool
    func (w WaitStatus) CoreDump() bool
    func (w WaitStatus) ExitStatus() int
    func (w WaitStatus) Exited() bool
    func (w WaitStatus) Signal() Signal
    func (w WaitStatus) Signaled() bool
    func (w WaitStatus) StopSignal() Signal
    func (w WaitStatus) Stopped() bool
    func (w WaitStatus) TrapCause() int

Package files

bpf_bsd.go dirent.go endian_little.go env_unix.go exec_libc2.go exec_unix.go flock.go forkpipe2.go msan0.go net.go route_bsd.go route_openbsd.go sockcmsg_unix.go sockcmsg_unix_other.go syscall.go syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go syscall_openbsd_libc.go syscall_unix.go time_nofake.go timestruct.go zerrors_openbsd_amd64.go zsyscall_openbsd_amd64.go zsysctl_openbsd.go zsysnum_openbsd_amd64.go ztypes_openbsd_amd64.go

Constants

const (
		AF_APPLETALK											= 0x10
		AF_BLUETOOTH											= 0x20
		AF_CCITT													= 0xa
		AF_CHAOS													= 0x5
		AF_CNT														= 0x15
		AF_COIP													 = 0x14
		AF_DATAKIT												= 0x9
		AF_DECnet												 = 0xc
		AF_DLI														= 0xd
		AF_E164													 = 0x1a
		AF_ECMA													 = 0x8
		AF_ENCAP													= 0x1c
		AF_HYLINK												 = 0xf
		AF_IMPLINK												= 0x3
		AF_INET													 = 0x2
		AF_INET6													= 0x18
		AF_IPX														= 0x17
		AF_ISDN													 = 0x1a
		AF_ISO														= 0x7
		AF_KEY														= 0x1e
		AF_LAT														= 0xe
		AF_LINK													 = 0x12
		AF_LOCAL													= 0x1
		AF_MAX														= 0x24
		AF_MPLS													 = 0x21
		AF_NATM													 = 0x1b
		AF_NS														 = 0x6
		AF_OSI														= 0x7
		AF_PUP														= 0x4
		AF_ROUTE													= 0x11
		AF_SIP														= 0x1d
		AF_SNA														= 0xb
		AF_UNIX													 = 0x1
		AF_UNSPEC												 = 0x0
		ARPHRD_ETHER											= 0x1
		ARPHRD_FRELAY										 = 0xf
		ARPHRD_IEEE1394									 = 0x18
		ARPHRD_IEEE802										= 0x6
		B0																= 0x0
		B110															= 0x6e
		B115200													 = 0x1c200
		B1200														 = 0x4b0
		B134															= 0x86
		B14400														= 0x3840
		B150															= 0x96
		B1800														 = 0x708
		B19200														= 0x4b00
		B200															= 0xc8
		B230400													 = 0x38400
		B2400														 = 0x960
		B28800														= 0x7080
		B300															= 0x12c
		B38400														= 0x9600
		B4800														 = 0x12c0
		B50															 = 0x32
		B57600														= 0xe100
		B600															= 0x258
		B7200														 = 0x1c20
		B75															 = 0x4b
		B76800														= 0x12c00
		B9600														 = 0x2580
		BIOCFLUSH												 = 0x20004268
		BIOCGBLEN												 = 0x40044266
		BIOCGDIRFILT											= 0x4004427c
		BIOCGDLT													= 0x4004426a
		BIOCGDLTLIST											= 0xc010427b
		BIOCGETIF												 = 0x4020426b
		BIOCGFILDROP											= 0x40044278
		BIOCGHDRCMPLT										 = 0x40044274
		BIOCGRSIG												 = 0x40044273
		BIOCGRTIMEOUT										 = 0x4010426e
		BIOCGSTATS												= 0x4008426f
		BIOCIMMEDIATE										 = 0x80044270
		BIOCLOCK													= 0x20004276
		BIOCPROMISC											 = 0x20004269
		BIOCSBLEN												 = 0xc0044266
		BIOCSDIRFILT											= 0x8004427d
		BIOCSDLT													= 0x8004427a
		BIOCSETF													= 0x80104267
		BIOCSETIF												 = 0x8020426c
		BIOCSETWF												 = 0x80104277
		BIOCSFILDROP											= 0x80044279
		BIOCSHDRCMPLT										 = 0x80044275
		BIOCSRSIG												 = 0x80044272
		BIOCSRTIMEOUT										 = 0x8010426d
		BIOCVERSION											 = 0x40044271
		BPF_A														 = 0x10
		BPF_ABS													 = 0x20
		BPF_ADD													 = 0x0
		BPF_ALIGNMENT										 = 0x4
		BPF_ALU													 = 0x4
		BPF_AND													 = 0x50
		BPF_B														 = 0x10
		BPF_DIRECTION_IN									= 0x1
		BPF_DIRECTION_OUT								 = 0x2
		BPF_DIV													 = 0x30
		BPF_H														 = 0x8
		BPF_IMM													 = 0x0
		BPF_IND													 = 0x40
		BPF_JA														= 0x0
		BPF_JEQ													 = 0x10
		BPF_JGE													 = 0x30
		BPF_JGT													 = 0x20
		BPF_JMP													 = 0x5
		BPF_JSET													= 0x40
		BPF_K														 = 0x0
		BPF_LD														= 0x0
		BPF_LDX													 = 0x1
		BPF_LEN													 = 0x80
		BPF_LSH													 = 0x60
		BPF_MAJOR_VERSION								 = 0x1
		BPF_MAXBUFSIZE										= 0x200000
		BPF_MAXINSNS											= 0x200
		BPF_MEM													 = 0x60
		BPF_MEMWORDS											= 0x10
		BPF_MINBUFSIZE										= 0x20
		BPF_MINOR_VERSION								 = 0x1
		BPF_MISC													= 0x7
		BPF_MSH													 = 0xa0
		BPF_MUL													 = 0x20
		BPF_NEG													 = 0x80
		BPF_OR														= 0x40
		BPF_RELEASE											 = 0x30bb6
		BPF_RET													 = 0x6
		BPF_RSH													 = 0x70
		BPF_ST														= 0x2
		BPF_STX													 = 0x3
		BPF_SUB													 = 0x10
		BPF_TAX													 = 0x0
		BPF_TXA													 = 0x80
		BPF_W														 = 0x0
		BPF_X														 = 0x8
		BRKINT														= 0x2
		CFLUSH														= 0xf
		CLOCAL														= 0x8000
		CREAD														 = 0x800
		CS5															 = 0x0
		CS6															 = 0x100
		CS7															 = 0x200
		CS8															 = 0x300
		CSIZE														 = 0x300
		CSTART														= 0x11
		CSTATUS													 = 0xff
		CSTOP														 = 0x13
		CSTOPB														= 0x400
		CSUSP														 = 0x1a
		CTL_MAXNAME											 = 0xc
		CTL_NET													 = 0x4
		DIOCOSFPFLUSH										 = 0x2000444e
		DLT_ARCNET												= 0x7
		DLT_ATM_RFC1483									 = 0xb
		DLT_AX25													= 0x3
		DLT_CHAOS												 = 0x5
		DLT_C_HDLC												= 0x68
		DLT_EN10MB												= 0x1
		DLT_EN3MB												 = 0x2
		DLT_ENC													 = 0xd
		DLT_FDDI													= 0xa
		DLT_IEEE802											 = 0x6
		DLT_IEEE802_11										= 0x69
		DLT_IEEE802_11_RADIO							= 0x7f
		DLT_LOOP													= 0xc
		DLT_MPLS													= 0xdb
		DLT_NULL													= 0x0
		DLT_PFLOG												 = 0x75
		DLT_PFSYNC												= 0x12
		DLT_PPP													 = 0x9
		DLT_PPP_BSDOS										 = 0x10
		DLT_PPP_ETHER										 = 0x33
		DLT_PPP_SERIAL										= 0x32
		DLT_PRONET												= 0x4
		DLT_RAW													 = 0xe
		DLT_SLIP													= 0x8
		DLT_SLIP_BSDOS										= 0xf
		DT_BLK														= 0x6
		DT_CHR														= 0x2
		DT_DIR														= 0x4
		DT_FIFO													 = 0x1
		DT_LNK														= 0xa
		DT_REG														= 0x8
		DT_SOCK													 = 0xc
		DT_UNKNOWN												= 0x0
		ECHO															= 0x8
		ECHOCTL													 = 0x40
		ECHOE														 = 0x2
		ECHOK														 = 0x4
		ECHOKE														= 0x1
		ECHONL														= 0x10
		ECHOPRT													 = 0x20
		EMT_TAGOVF												= 0x1
		EMUL_ENABLED											= 0x1
		EMUL_NATIVE											 = 0x2
		ENDRUNDISC												= 0x9
		ETHERMIN													= 0x2e
		ETHERMTU													= 0x5dc
		ETHERTYPE_8023										= 0x4
		ETHERTYPE_AARP										= 0x80f3
		ETHERTYPE_ACCTON									= 0x8390
		ETHERTYPE_AEONIC									= 0x8036
		ETHERTYPE_ALPHA									 = 0x814a
		ETHERTYPE_AMBER									 = 0x6008
		ETHERTYPE_AMOEBA									= 0x8145
		ETHERTYPE_AOE										 = 0x88a2
		ETHERTYPE_APOLLO									= 0x80f7
		ETHERTYPE_APOLLODOMAIN						= 0x8019
		ETHERTYPE_APPLETALK							 = 0x809b
		ETHERTYPE_APPLITEK								= 0x80c7
		ETHERTYPE_ARGONAUT								= 0x803a
		ETHERTYPE_ARP										 = 0x806
		ETHERTYPE_AT											= 0x809b
		ETHERTYPE_ATALK									 = 0x809b
		ETHERTYPE_ATOMIC									= 0x86df
		ETHERTYPE_ATT										 = 0x8069
		ETHERTYPE_ATTSTANFORD						 = 0x8008
		ETHERTYPE_AUTOPHON								= 0x806a
		ETHERTYPE_AXIS										= 0x8856
		ETHERTYPE_BCLOOP									= 0x9003
		ETHERTYPE_BOFL										= 0x8102
		ETHERTYPE_CABLETRON							 = 0x7034
		ETHERTYPE_CHAOS									 = 0x804
		ETHERTYPE_COMDESIGN							 = 0x806c
		ETHERTYPE_COMPUGRAPHIC						= 0x806d
		ETHERTYPE_COUNTERPOINT						= 0x8062
		ETHERTYPE_CRONUS									= 0x8004
		ETHERTYPE_CRONUSVLN							 = 0x8003
		ETHERTYPE_DCA										 = 0x1234
		ETHERTYPE_DDE										 = 0x807b
		ETHERTYPE_DEBNI									 = 0xaaaa
		ETHERTYPE_DECAM									 = 0x8048
		ETHERTYPE_DECCUST								 = 0x6006
		ETHERTYPE_DECDIAG								 = 0x6005
		ETHERTYPE_DECDNS									= 0x803c
		ETHERTYPE_DECDTS									= 0x803e
		ETHERTYPE_DECEXPER								= 0x6000
		ETHERTYPE_DECLAST								 = 0x8041
		ETHERTYPE_DECLTM									= 0x803f
		ETHERTYPE_DECMUMPS								= 0x6009
		ETHERTYPE_DECNETBIOS							= 0x8040
		ETHERTYPE_DELTACON								= 0x86de
		ETHERTYPE_DIDDLE									= 0x4321
		ETHERTYPE_DLOG1									 = 0x660
		ETHERTYPE_DLOG2									 = 0x661
		ETHERTYPE_DN											= 0x6003
		ETHERTYPE_DOGFIGHT								= 0x1989
		ETHERTYPE_DSMD										= 0x8039
		ETHERTYPE_ECMA										= 0x803
		ETHERTYPE_ENCRYPT								 = 0x803d
		ETHERTYPE_ES											= 0x805d
		ETHERTYPE_EXCELAN								 = 0x8010
		ETHERTYPE_EXPERDATA							 = 0x8049
		ETHERTYPE_FLIP										= 0x8146
		ETHERTYPE_FLOWCONTROL						 = 0x8808
		ETHERTYPE_FRARP									 = 0x808
		ETHERTYPE_GENDYN									= 0x8068
		ETHERTYPE_HAYES									 = 0x8130
		ETHERTYPE_HIPPI_FP								= 0x8180
		ETHERTYPE_HITACHI								 = 0x8820
		ETHERTYPE_HP											= 0x8005
		ETHERTYPE_IEEEPUP								 = 0xa00
		ETHERTYPE_IEEEPUPAT							 = 0xa01
		ETHERTYPE_IMLBL									 = 0x4c42
		ETHERTYPE_IMLBLDIAG							 = 0x424c
		ETHERTYPE_IP											= 0x800
		ETHERTYPE_IPAS										= 0x876c
		ETHERTYPE_IPV6										= 0x86dd
		ETHERTYPE_IPX										 = 0x8137
		ETHERTYPE_IPXNEW									= 0x8037
		ETHERTYPE_KALPANA								 = 0x8582
		ETHERTYPE_LANBRIDGE							 = 0x8038
		ETHERTYPE_LANPROBE								= 0x8888
		ETHERTYPE_LAT										 = 0x6004
		ETHERTYPE_LBACK									 = 0x9000
		ETHERTYPE_LITTLE									= 0x8060
		ETHERTYPE_LLDP										= 0x88cc
		ETHERTYPE_LOGICRAFT							 = 0x8148
		ETHERTYPE_LOOPBACK								= 0x9000
		ETHERTYPE_MATRA									 = 0x807a
		ETHERTYPE_MAX										 = 0xffff
		ETHERTYPE_MERIT									 = 0x807c
		ETHERTYPE_MICP										= 0x873a
		ETHERTYPE_MOPDL									 = 0x6001
		ETHERTYPE_MOPRC									 = 0x6002
		ETHERTYPE_MOTOROLA								= 0x818d
		ETHERTYPE_MPLS										= 0x8847
		ETHERTYPE_MPLS_MCAST							= 0x8848
		ETHERTYPE_MUMPS									 = 0x813f
		ETHERTYPE_NBPCC									 = 0x3c04
		ETHERTYPE_NBPCLAIM								= 0x3c09
		ETHERTYPE_NBPCLREQ								= 0x3c05
		ETHERTYPE_NBPCLRSP								= 0x3c06
		ETHERTYPE_NBPCREQ								 = 0x3c02
		ETHERTYPE_NBPCRSP								 = 0x3c03
		ETHERTYPE_NBPDG									 = 0x3c07
		ETHERTYPE_NBPDGB									= 0x3c08
		ETHERTYPE_NBPDLTE								 = 0x3c0a
		ETHERTYPE_NBPRAR									= 0x3c0c
		ETHERTYPE_NBPRAS									= 0x3c0b
		ETHERTYPE_NBPRST									= 0x3c0d
		ETHERTYPE_NBPSCD									= 0x3c01
		ETHERTYPE_NBPVCD									= 0x3c00
		ETHERTYPE_NBS										 = 0x802
		ETHERTYPE_NCD										 = 0x8149
		ETHERTYPE_NESTAR									= 0x8006
		ETHERTYPE_NETBEUI								 = 0x8191
		ETHERTYPE_NOVELL									= 0x8138
		ETHERTYPE_NS											= 0x600
		ETHERTYPE_NSAT										= 0x601
		ETHERTYPE_NSCOMPAT								= 0x807
		ETHERTYPE_NTRAILER								= 0x10
		ETHERTYPE_OS9										 = 0x7007
		ETHERTYPE_OS9NET									= 0x7009
		ETHERTYPE_PACER									 = 0x80c6
		ETHERTYPE_PAE										 = 0x888e
		ETHERTYPE_PCS										 = 0x4242
		ETHERTYPE_PLANNING								= 0x8044
		ETHERTYPE_PPP										 = 0x880b
		ETHERTYPE_PPPOE									 = 0x8864
		ETHERTYPE_PPPOEDISC							 = 0x8863
		ETHERTYPE_PRIMENTS								= 0x7031
		ETHERTYPE_PUP										 = 0x200
		ETHERTYPE_PUPAT									 = 0x200
		ETHERTYPE_QINQ										= 0x88a8
		ETHERTYPE_RACAL									 = 0x7030
		ETHERTYPE_RATIONAL								= 0x8150
		ETHERTYPE_RAWFR									 = 0x6559
		ETHERTYPE_RCL										 = 0x1995
		ETHERTYPE_RDP										 = 0x8739
		ETHERTYPE_RETIX									 = 0x80f2
		ETHERTYPE_REVARP									= 0x8035
		ETHERTYPE_SCA										 = 0x6007
		ETHERTYPE_SECTRA									= 0x86db
		ETHERTYPE_SECUREDATA							= 0x876d
		ETHERTYPE_SGITW									 = 0x817e
		ETHERTYPE_SG_BOUNCE							 = 0x8016
		ETHERTYPE_SG_DIAG								 = 0x8013
		ETHERTYPE_SG_NETGAMES						 = 0x8014
		ETHERTYPE_SG_RESV								 = 0x8015
		ETHERTYPE_SIMNET									= 0x5208
		ETHERTYPE_SLOW										= 0x8809
		ETHERTYPE_SNA										 = 0x80d5
		ETHERTYPE_SNMP										= 0x814c
		ETHERTYPE_SONIX									 = 0xfaf5
		ETHERTYPE_SPIDER									= 0x809f
		ETHERTYPE_SPRITE									= 0x500
		ETHERTYPE_STP										 = 0x8181
		ETHERTYPE_TALARIS								 = 0x812b
		ETHERTYPE_TALARISMC							 = 0x852b
		ETHERTYPE_TCPCOMP								 = 0x876b
		ETHERTYPE_TCPSM									 = 0x9002
		ETHERTYPE_TEC										 = 0x814f
		ETHERTYPE_TIGAN									 = 0x802f
		ETHERTYPE_TRAIL									 = 0x1000
		ETHERTYPE_TRANSETHER							= 0x6558
		ETHERTYPE_TYMSHARE								= 0x802e
		ETHERTYPE_UBBST									 = 0x7005
		ETHERTYPE_UBDEBUG								 = 0x900
		ETHERTYPE_UBDIAGLOOP							= 0x7002
		ETHERTYPE_UBDL										= 0x7000
		ETHERTYPE_UBNIU									 = 0x7001
		ETHERTYPE_UBNMC									 = 0x7003
		ETHERTYPE_VALID									 = 0x1600
		ETHERTYPE_VARIAN									= 0x80dd
		ETHERTYPE_VAXELN									= 0x803b
		ETHERTYPE_VEECO									 = 0x8067
		ETHERTYPE_VEXP										= 0x805b
		ETHERTYPE_VGLAB									 = 0x8131
		ETHERTYPE_VINES									 = 0xbad
		ETHERTYPE_VINESECHO							 = 0xbaf
		ETHERTYPE_VINESLOOP							 = 0xbae
		ETHERTYPE_VITAL									 = 0xff00
		ETHERTYPE_VLAN										= 0x8100
		ETHERTYPE_VLTLMAN								 = 0x8080
		ETHERTYPE_VPROD									 = 0x805c
		ETHERTYPE_VURESERVED							= 0x8147
		ETHERTYPE_WATERLOO								= 0x8130
		ETHERTYPE_WELLFLEET							 = 0x8103
		ETHERTYPE_X25										 = 0x805
		ETHERTYPE_X75										 = 0x801
		ETHERTYPE_XNSSM									 = 0x9001
		ETHERTYPE_XTP										 = 0x817d
		ETHER_ADDR_LEN										= 0x6
		ETHER_ALIGN											 = 0x2
		ETHER_CRC_LEN										 = 0x4
		ETHER_CRC_POLY_BE								 = 0x4c11db6
		ETHER_CRC_POLY_LE								 = 0xedb88320
		ETHER_HDR_LEN										 = 0xe
		ETHER_MAX_DIX_LEN								 = 0x600
		ETHER_MAX_LEN										 = 0x5ee
		ETHER_MIN_LEN										 = 0x40
		ETHER_TYPE_LEN										= 0x2
		ETHER_VLAN_ENCAP_LEN							= 0x4
		EVFILT_AIO												= -0x3
		EVFILT_PROC											 = -0x5
		EVFILT_READ											 = -0x1
		EVFILT_SIGNAL										 = -0x6
		EVFILT_SYSCOUNT									 = 0x7
		EVFILT_TIMER											= -0x7
		EVFILT_VNODE											= -0x4
		EVFILT_WRITE											= -0x2
		EV_ADD														= 0x1
		EV_CLEAR													= 0x20
		EV_DELETE												 = 0x2
		EV_DISABLE												= 0x8
		EV_ENABLE												 = 0x4
		EV_EOF														= 0x8000
		EV_ERROR													= 0x4000
		EV_FLAG1													= 0x2000
		EV_ONESHOT												= 0x10
		EV_SYSFLAGS											 = 0xf000
		EXTA															= 0x4b00
		EXTB															= 0x9600
		EXTPROC													 = 0x800
		FD_CLOEXEC												= 0x1
		FD_SETSIZE												= 0x400
		FLUSHO														= 0x800000
		F_DUPFD													 = 0x0
		F_DUPFD_CLOEXEC									 = 0xa
		F_GETFD													 = 0x1
		F_GETFL													 = 0x3
		F_GETLK													 = 0x7
		F_GETOWN													= 0x5
		F_OK															= 0x0
		F_RDLCK													 = 0x1
		F_SETFD													 = 0x2
		F_SETFL													 = 0x4
		F_SETLK													 = 0x8
		F_SETLKW													= 0x9
		F_SETOWN													= 0x6
		F_UNLCK													 = 0x2
		F_WRLCK													 = 0x3
		HUPCL														 = 0x4000
		ICANON														= 0x100
		ICMP6_FILTER											= 0x12
		ICRNL														 = 0x100
		IEXTEN														= 0x400
		IFAN_ARRIVAL											= 0x0
		IFAN_DEPARTURE										= 0x1
		IFA_ROUTE												 = 0x1
		IFF_ALLMULTI											= 0x200
		IFF_BROADCAST										 = 0x2
		IFF_CANTCHANGE										= 0x8e52
		IFF_DEBUG												 = 0x4
		IFF_LINK0												 = 0x1000
		IFF_LINK1												 = 0x2000
		IFF_LINK2												 = 0x4000
		IFF_LOOPBACK											= 0x8
		IFF_MULTICAST										 = 0x8000
		IFF_NOARP												 = 0x80
		IFF_NOTRAILERS										= 0x20
		IFF_OACTIVE											 = 0x400
		IFF_POINTOPOINT									 = 0x10
		IFF_PROMISC											 = 0x100
		IFF_RUNNING											 = 0x40
		IFF_SIMPLEX											 = 0x800
		IFF_UP														= 0x1
		IFNAMSIZ													= 0x10
		IFT_1822													= 0x2
		IFT_A12MPPSWITCH									= 0x82
		IFT_AAL2													= 0xbb
		IFT_AAL5													= 0x31
		IFT_ADSL													= 0x5e
		IFT_AFLANE8023										= 0x3b
		IFT_AFLANE8025										= 0x3c
		IFT_ARAP													= 0x58
		IFT_ARCNET												= 0x23
		IFT_ARCNETPLUS										= 0x24
		IFT_ASYNC												 = 0x54
		IFT_ATM													 = 0x25
		IFT_ATMDXI												= 0x69
		IFT_ATMFUNI											 = 0x6a
		IFT_ATMIMA												= 0x6b
		IFT_ATMLOGICAL										= 0x50
		IFT_ATMRADIO											= 0xbd
		IFT_ATMSUBINTERFACE							 = 0x86
		IFT_ATMVCIENDPT									 = 0xc2
		IFT_ATMVIRTUAL										= 0x95
		IFT_BGPPOLICYACCOUNTING					 = 0xa2
		IFT_BLUETOOTH										 = 0xf8
		IFT_BRIDGE												= 0xd1
		IFT_BSC													 = 0x53
		IFT_CARP													= 0xf7
		IFT_CCTEMUL											 = 0x3d
		IFT_CEPT													= 0x13
		IFT_CES													 = 0x85
		IFT_CHANNEL											 = 0x46
		IFT_CNR													 = 0x55
		IFT_COFFEE												= 0x84
		IFT_COMPOSITELINK								 = 0x9b
		IFT_DCN													 = 0x8d
		IFT_DIGITALPOWERLINE							= 0x8a
		IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
		IFT_DLSW													= 0x4a
		IFT_DOCSCABLEDOWNSTREAM					 = 0x80
		IFT_DOCSCABLEMACLAYER						 = 0x7f
		IFT_DOCSCABLEUPSTREAM						 = 0x81
		IFT_DOCSCABLEUPSTREAMCHANNEL			= 0xcd
		IFT_DS0													 = 0x51
		IFT_DS0BUNDLE										 = 0x52
		IFT_DS1FDL												= 0xaa
		IFT_DS3													 = 0x1e
		IFT_DTM													 = 0x8c
		IFT_DUMMY												 = 0xf1
		IFT_DVBASILN											= 0xac
		IFT_DVBASIOUT										 = 0xad
		IFT_DVBRCCDOWNSTREAM							= 0x93
		IFT_DVBRCCMACLAYER								= 0x92
		IFT_DVBRCCUPSTREAM								= 0x94
		IFT_ECONET												= 0xce
		IFT_ENC													 = 0xf4
		IFT_EON													 = 0x19
		IFT_EPLRS												 = 0x57
		IFT_ESCON												 = 0x49
		IFT_ETHER												 = 0x6
		IFT_FAITH												 = 0xf3
		IFT_FAST													= 0x7d
		IFT_FASTETHER										 = 0x3e
		IFT_FASTETHERFX									 = 0x45
		IFT_FDDI													= 0xf
		IFT_FIBRECHANNEL									= 0x38
		IFT_FRAMERELAYINTERCONNECT				= 0x3a
		IFT_FRAMERELAYMPI								 = 0x5c
		IFT_FRDLCIENDPT									 = 0xc1
		IFT_FRELAY												= 0x20
		IFT_FRELAYDCE										 = 0x2c
		IFT_FRF16MFRBUNDLE								= 0xa3
		IFT_FRFORWARD										 = 0x9e
		IFT_G703AT2MB										 = 0x43
		IFT_G703AT64K										 = 0x42
		IFT_GIF													 = 0xf0
		IFT_GIGABITETHERNET							 = 0x75
		IFT_GR303IDT											= 0xb2
		IFT_GR303RDT											= 0xb1
		IFT_H323GATEKEEPER								= 0xa4
		IFT_H323PROXY										 = 0xa5
		IFT_HDH1822											 = 0x3
		IFT_HDLC													= 0x76
		IFT_HDSL2												 = 0xa8
		IFT_HIPERLAN2										 = 0xb7
		IFT_HIPPI												 = 0x2f
		IFT_HIPPIINTERFACE								= 0x39
		IFT_HOSTPAD											 = 0x5a
		IFT_HSSI													= 0x2e
		IFT_HY														= 0xe
		IFT_IBM370PARCHAN								 = 0x48
		IFT_IDSL													= 0x9a
		IFT_IEEE1394											= 0x90
		IFT_IEEE80211										 = 0x47
		IFT_IEEE80212										 = 0x37
		IFT_IEEE8023ADLAG								 = 0xa1
		IFT_IFGSN												 = 0x91
		IFT_IMT													 = 0xbe
		IFT_INFINIBAND										= 0xc7
		IFT_INTERLEAVE										= 0x7c
		IFT_IP														= 0x7e
		IFT_IPFORWARD										 = 0x8e
		IFT_IPOVERATM										 = 0x72
		IFT_IPOVERCDLC										= 0x6d
		IFT_IPOVERCLAW										= 0x6e
		IFT_IPSWITCH											= 0x4e
		IFT_ISDN													= 0x3f
		IFT_ISDNBASIC										 = 0x14
		IFT_ISDNPRIMARY									 = 0x15
		IFT_ISDNS												 = 0x4b
		IFT_ISDNU												 = 0x4c
		IFT_ISO88022LLC									 = 0x29
		IFT_ISO88023											= 0x7
		IFT_ISO88024											= 0x8
		IFT_ISO88025											= 0x9
		IFT_ISO88025CRFPINT							 = 0x62
		IFT_ISO88025DTR									 = 0x56
		IFT_ISO88025FIBER								 = 0x73
		IFT_ISO88026											= 0xa
		IFT_ISUP													= 0xb3
		IFT_L2VLAN												= 0x87
		IFT_L3IPVLAN											= 0x88
		IFT_L3IPXVLAN										 = 0x89
		IFT_LAPB													= 0x10
		IFT_LAPD													= 0x4d
		IFT_LAPF													= 0x77
		IFT_LINEGROUP										 = 0xd2
		IFT_LOCALTALK										 = 0x2a
		IFT_LOOP													= 0x18
		IFT_MEDIAMAILOVERIP							 = 0x8b
		IFT_MFSIGLINK										 = 0xa7
		IFT_MIOX25												= 0x26
		IFT_MODEM												 = 0x30
		IFT_MPC													 = 0x71
		IFT_MPLS													= 0xa6
		IFT_MPLSTUNNEL										= 0x96
		IFT_MSDSL												 = 0x8f
		IFT_MVL													 = 0xbf
		IFT_MYRINET											 = 0x63
		IFT_NFAS													= 0xaf
		IFT_NSIP													= 0x1b
		IFT_OPTICALCHANNEL								= 0xc3
		IFT_OPTICALTRANSPORT							= 0xc4
		IFT_OTHER												 = 0x1
		IFT_P10													 = 0xc
		IFT_P80													 = 0xd
		IFT_PARA													= 0x22
		IFT_PFLOG												 = 0xf5
		IFT_PFLOW												 = 0xf9
		IFT_PFSYNC												= 0xf6
		IFT_PLC													 = 0xae
		IFT_PON155												= 0xcf
		IFT_PON622												= 0xd0
		IFT_POS													 = 0xab
		IFT_PPP													 = 0x17
		IFT_PPPMULTILINKBUNDLE						= 0x6c
		IFT_PROPATM											 = 0xc5
		IFT_PROPBWAP2MP									 = 0xb8
		IFT_PROPCNLS											= 0x59
		IFT_PROPDOCSWIRELESSDOWNSTREAM		= 0xb5
		IFT_PROPDOCSWIRELESSMACLAYER			= 0xb4
		IFT_PROPDOCSWIRELESSUPSTREAM			= 0xb6
		IFT_PROPMUX											 = 0x36
		IFT_PROPVIRTUAL									 = 0x35
		IFT_PROPWIRELESSP2P							 = 0x9d
		IFT_PTPSERIAL										 = 0x16
		IFT_PVC													 = 0xf2
		IFT_Q2931												 = 0xc9
		IFT_QLLC													= 0x44
		IFT_RADIOMAC											= 0xbc
		IFT_RADSL												 = 0x5f
		IFT_REACHDSL											= 0xc0
		IFT_RFC1483											 = 0x9f
		IFT_RS232												 = 0x21
		IFT_RSRB													= 0x4f
		IFT_SDLC													= 0x11
		IFT_SDSL													= 0x60
		IFT_SHDSL												 = 0xa9
		IFT_SIP													 = 0x1f
		IFT_SIPSIG												= 0xcc
		IFT_SIPTG												 = 0xcb
		IFT_SLIP													= 0x1c
		IFT_SMDSDXI											 = 0x2b
		IFT_SMDSICIP											= 0x34
		IFT_SONET												 = 0x27
		IFT_SONETOVERHEADCHANNEL					= 0xb9
		IFT_SONETPATH										 = 0x32
		IFT_SONETVT											 = 0x33
		IFT_SRP													 = 0x97
		IFT_SS7SIGLINK										= 0x9c
		IFT_STACKTOSTACK									= 0x6f
		IFT_STARLAN											 = 0xb
		IFT_T1														= 0x12
		IFT_TDLC													= 0x74
		IFT_TELINK												= 0xc8
		IFT_TERMPAD											 = 0x5b
		IFT_TR008												 = 0xb0
		IFT_TRANSPHDLC										= 0x7b
		IFT_TUNNEL												= 0x83
		IFT_ULTRA												 = 0x1d
		IFT_USB													 = 0xa0
		IFT_V11													 = 0x40
		IFT_V35													 = 0x2d
		IFT_V36													 = 0x41
		IFT_V37													 = 0x78
		IFT_VDSL													= 0x61
		IFT_VIRTUALIPADDRESS							= 0x70
		IFT_VIRTUALTG										 = 0xca
		IFT_VOICEDID											= 0xd5
		IFT_VOICEEM											 = 0x64
		IFT_VOICEEMFGD										= 0xd3
		IFT_VOICEENCAP										= 0x67
		IFT_VOICEFGDEANA									= 0xd4
		IFT_VOICEFXO											= 0x65
		IFT_VOICEFXS											= 0x66
		IFT_VOICEOVERATM									= 0x98
		IFT_VOICEOVERCABLE								= 0xc6
		IFT_VOICEOVERFRAMERELAY					 = 0x99
		IFT_VOICEOVERIP									 = 0x68
		IFT_X213													= 0x5d
		IFT_X25													 = 0x5
		IFT_X25DDN												= 0x4
		IFT_X25HUNTGROUP									= 0x7a
		IFT_X25MLP												= 0x79
		IFT_X25PLE												= 0x28
		IFT_XETHER												= 0x1a
		IGNBRK														= 0x1
		IGNCR														 = 0x80
		IGNPAR														= 0x4
		IMAXBEL													 = 0x2000
		INLCR														 = 0x40
		INPCK														 = 0x10
		IN_CLASSA_HOST										= 0xffffff
		IN_CLASSA_MAX										 = 0x80
		IN_CLASSA_NET										 = 0xff000000
		IN_CLASSA_NSHIFT									= 0x18
		IN_CLASSB_HOST										= 0xffff
		IN_CLASSB_MAX										 = 0x10000
		IN_CLASSB_NET										 = 0xffff0000
		IN_CLASSB_NSHIFT									= 0x10
		IN_CLASSC_HOST										= 0xff
		IN_CLASSC_NET										 = 0xffffff00
		IN_CLASSC_NSHIFT									= 0x8
		IN_CLASSD_HOST										= 0xfffffff
		IN_CLASSD_NET										 = 0xf0000000
		IN_CLASSD_NSHIFT									= 0x1c
		IN_LOOPBACKNET										= 0x7f
		IN_RFC3021_HOST									 = 0x1
		IN_RFC3021_NET										= 0xfffffffe
		IN_RFC3021_NSHIFT								 = 0x1f
		IPPROTO_AH												= 0x33
		IPPROTO_CARP											= 0x70
		IPPROTO_DIVERT										= 0x102
		IPPROTO_DIVERT_INIT							 = 0x2
		IPPROTO_DIVERT_RESP							 = 0x1
		IPPROTO_DONE											= 0x101
		IPPROTO_DSTOPTS									 = 0x3c
		IPPROTO_EGP											 = 0x8
		IPPROTO_ENCAP										 = 0x62
		IPPROTO_EON											 = 0x50
		IPPROTO_ESP											 = 0x32
		IPPROTO_ETHERIP									 = 0x61
		IPPROTO_FRAGMENT									= 0x2c
		IPPROTO_GGP											 = 0x3
		IPPROTO_GRE											 = 0x2f
		IPPROTO_HOPOPTS									 = 0x0
		IPPROTO_ICMP											= 0x1
		IPPROTO_ICMPV6										= 0x3a
		IPPROTO_IDP											 = 0x16
		IPPROTO_IGMP											= 0x2
		IPPROTO_IP												= 0x0
		IPPROTO_IPCOMP										= 0x6c
		IPPROTO_IPIP											= 0x4
		IPPROTO_IPV4											= 0x4
		IPPROTO_IPV6											= 0x29
		IPPROTO_MAX											 = 0x100
		IPPROTO_MAXID										 = 0x103
		IPPROTO_MOBILE										= 0x37
		IPPROTO_MPLS											= 0x89
		IPPROTO_NONE											= 0x3b
		IPPROTO_PFSYNC										= 0xf0
		IPPROTO_PIM											 = 0x67
		IPPROTO_PUP											 = 0xc
		IPPROTO_RAW											 = 0xff
		IPPROTO_ROUTING									 = 0x2b
		IPPROTO_RSVP											= 0x2e
		IPPROTO_TCP											 = 0x6
		IPPROTO_TP												= 0x1d
		IPPROTO_UDP											 = 0x11
		IPV6_AUTH_LEVEL									 = 0x35
		IPV6_AUTOFLOWLABEL								= 0x3b
		IPV6_CHECKSUM										 = 0x1a
		IPV6_DEFAULT_MULTICAST_HOPS			 = 0x1
		IPV6_DEFAULT_MULTICAST_LOOP			 = 0x1
		IPV6_DEFHLIM											= 0x40
		IPV6_DONTFRAG										 = 0x3e
		IPV6_DSTOPTS											= 0x32
		IPV6_ESP_NETWORK_LEVEL						= 0x37
		IPV6_ESP_TRANS_LEVEL							= 0x36
		IPV6_FAITH												= 0x1d
		IPV6_FLOWINFO_MASK								= 0xffffff0f
		IPV6_FLOWLABEL_MASK							 = 0xffff0f00
		IPV6_FRAGTTL											= 0x78
		IPV6_HLIMDEC											= 0x1
		IPV6_HOPLIMIT										 = 0x2f
		IPV6_HOPOPTS											= 0x31
		IPV6_IPCOMP_LEVEL								 = 0x3c
		IPV6_JOIN_GROUP									 = 0xc
		IPV6_LEAVE_GROUP									= 0xd
		IPV6_MAXHLIM											= 0xff
		IPV6_MAXPACKET										= 0xffff
		IPV6_MMTU												 = 0x500
		IPV6_MULTICAST_HOPS							 = 0xa
		IPV6_MULTICAST_IF								 = 0x9
		IPV6_MULTICAST_LOOP							 = 0xb
		IPV6_NEXTHOP											= 0x30
		IPV6_OPTIONS											= 0x1
		IPV6_PATHMTU											= 0x2c
		IPV6_PIPEX												= 0x3f
		IPV6_PKTINFO											= 0x2e
		IPV6_PORTRANGE										= 0xe
		IPV6_PORTRANGE_DEFAULT						= 0x0
		IPV6_PORTRANGE_HIGH							 = 0x1
		IPV6_PORTRANGE_LOW								= 0x2
		IPV6_RECVDSTOPTS									= 0x28
		IPV6_RECVDSTPORT									= 0x40
		IPV6_RECVHOPLIMIT								 = 0x25
		IPV6_RECVHOPOPTS									= 0x27
		IPV6_RECVPATHMTU									= 0x2b
		IPV6_RECVPKTINFO									= 0x24
		IPV6_RECVRTHDR										= 0x26
		IPV6_RECVTCLASS									 = 0x39
		IPV6_RTABLE											 = 0x1021
		IPV6_RTHDR												= 0x33
		IPV6_RTHDRDSTOPTS								 = 0x23
		IPV6_RTHDR_LOOSE									= 0x0
		IPV6_RTHDR_STRICT								 = 0x1
		IPV6_RTHDR_TYPE_0								 = 0x0
		IPV6_SOCKOPT_RESERVED1						= 0x3
		IPV6_TCLASS											 = 0x3d
		IPV6_UNICAST_HOPS								 = 0x4
		IPV6_USE_MIN_MTU									= 0x2a
		IPV6_V6ONLY											 = 0x1b
		IPV6_VERSION											= 0x60
		IPV6_VERSION_MASK								 = 0xf0
		IP_ADD_MEMBERSHIP								 = 0xc
		IP_AUTH_LEVEL										 = 0x14
		IP_DEFAULT_MULTICAST_LOOP				 = 0x1
		IP_DEFAULT_MULTICAST_TTL					= 0x1
		IP_DF														 = 0x4000
		IP_DIVERTFL											 = 0x1022
		IP_DROP_MEMBERSHIP								= 0xd
		IP_ESP_NETWORK_LEVEL							= 0x16
		IP_ESP_TRANS_LEVEL								= 0x15
		IP_HDRINCL												= 0x2
		IP_IPCOMP_LEVEL									 = 0x1d
		IP_IPSECFLOWINFO									= 0x24
		IP_IPSEC_LOCAL_AUTH							 = 0x1b
		IP_IPSEC_LOCAL_CRED							 = 0x19
		IP_IPSEC_LOCAL_ID								 = 0x17
		IP_IPSEC_REMOTE_AUTH							= 0x1c
		IP_IPSEC_REMOTE_CRED							= 0x1a
		IP_IPSEC_REMOTE_ID								= 0x18
		IP_MAXPACKET											= 0xffff
		IP_MAX_MEMBERSHIPS								= 0xfff
		IP_MF														 = 0x2000
		IP_MINTTL												 = 0x20
		IP_MIN_MEMBERSHIPS								= 0xf
		IP_MSS														= 0x240
		IP_MULTICAST_IF									 = 0x9
		IP_MULTICAST_LOOP								 = 0xb
		IP_MULTICAST_TTL									= 0xa
		IP_OFFMASK												= 0x1fff
		IP_OPTIONS												= 0x1
		IP_PIPEX													= 0x22
		IP_PORTRANGE											= 0x13
		IP_PORTRANGE_DEFAULT							= 0x0
		IP_PORTRANGE_HIGH								 = 0x1
		IP_PORTRANGE_LOW									= 0x2
		IP_RECVDSTADDR										= 0x7
		IP_RECVDSTPORT										= 0x21
		IP_RECVIF												 = 0x1e
		IP_RECVOPTS											 = 0x5
		IP_RECVRETOPTS										= 0x6
		IP_RECVRTABLE										 = 0x23
		IP_RECVTTL												= 0x1f
		IP_RETOPTS												= 0x8
		IP_RF														 = 0x8000
		IP_RTABLE												 = 0x1021
		IP_TOS														= 0x3
		IP_TTL														= 0x4
		ISIG															= 0x80
		ISTRIP														= 0x20
		IXANY														 = 0x800
		IXOFF														 = 0x400
		IXON															= 0x200
		LCNT_OVERLOAD_FLUSH							 = 0x6
		LOCK_EX													 = 0x2
		LOCK_NB													 = 0x4
		LOCK_SH													 = 0x1
		LOCK_UN													 = 0x8
		MADV_DONTNEED										 = 0x4
		MADV_FREE												 = 0x6
		MADV_NORMAL											 = 0x0
		MADV_RANDOM											 = 0x1
		MADV_SEQUENTIAL									 = 0x2
		MADV_SPACEAVAIL									 = 0x5
		MADV_WILLNEED										 = 0x3
		MAP_ANON													= 0x1000
		MAP_COPY													= 0x4
		MAP_FILE													= 0x0
		MAP_FIXED												 = 0x10
		MAP_FLAGMASK											= 0x1ff7
		MAP_HASSEMAPHORE									= 0x200
		MAP_INHERIT											 = 0x80
		MAP_INHERIT_COPY									= 0x1
		MAP_INHERIT_DONATE_COPY					 = 0x3
		MAP_INHERIT_NONE									= 0x2
		MAP_INHERIT_SHARE								 = 0x0
		MAP_NOEXTEND											= 0x100
		MAP_NORESERVE										 = 0x40
		MAP_PRIVATE											 = 0x2
		MAP_RENAME												= 0x20
		MAP_SHARED												= 0x1
		MAP_TRYFIXED											= 0x400
		MCL_CURRENT											 = 0x1
		MCL_FUTURE												= 0x2
		MSG_BCAST												 = 0x100
		MSG_CMSG_CLOEXEC									= 0x800
		MSG_CTRUNC												= 0x20
		MSG_DONTROUTE										 = 0x4
		MSG_DONTWAIT											= 0x80
		MSG_EOR													 = 0x8
		MSG_MCAST												 = 0x200
		MSG_NOSIGNAL											= 0x400
		MSG_OOB													 = 0x1
		MSG_PEEK													= 0x2
		MSG_TRUNC												 = 0x10
		MSG_WAITALL											 = 0x40
		MS_ASYNC													= 0x1
		MS_INVALIDATE										 = 0x4
		MS_SYNC													 = 0x2
		NAME_MAX													= 0xff
		NET_RT_DUMP											 = 0x1
		NET_RT_FLAGS											= 0x2
		NET_RT_IFLIST										 = 0x3
		NET_RT_MAXID											= 0x6
		NET_RT_STATS											= 0x4
		NET_RT_TABLE											= 0x5
		NOFLSH														= 0x80000000
		NOTE_ATTRIB											 = 0x8
		NOTE_CHILD												= 0x4
		NOTE_DELETE											 = 0x1
		NOTE_EOF													= 0x2
		NOTE_EXEC												 = 0x20000000
		NOTE_EXIT												 = 0x80000000
		NOTE_EXTEND											 = 0x4
		NOTE_FORK												 = 0x40000000
		NOTE_LINK												 = 0x10
		NOTE_LOWAT												= 0x1
		NOTE_PCTRLMASK										= 0xf0000000
		NOTE_PDATAMASK										= 0xfffff
		NOTE_RENAME											 = 0x20
		NOTE_REVOKE											 = 0x40
		NOTE_TRACK												= 0x1
		NOTE_TRACKERR										 = 0x2
		NOTE_TRUNCATE										 = 0x80
		NOTE_WRITE												= 0x2
		OCRNL														 = 0x10
		ONLCR														 = 0x2
		ONLRET														= 0x80
		ONOCR														 = 0x40
		ONOEOT														= 0x8
		OPOST														 = 0x1
		O_ACCMODE												 = 0x3
		O_APPEND													= 0x8
		O_ASYNC													 = 0x40
		O_CLOEXEC												 = 0x10000
		O_CREAT													 = 0x200
		O_DIRECTORY											 = 0x20000
		O_DSYNC													 = 0x80
		O_EXCL														= 0x800
		O_EXLOCK													= 0x20
		O_FSYNC													 = 0x80
		O_NDELAY													= 0x4
		O_NOCTTY													= 0x8000
		O_NOFOLLOW												= 0x100
		O_NONBLOCK												= 0x4
		O_RDONLY													= 0x0
		O_RDWR														= 0x2
		O_RSYNC													 = 0x80
		O_SHLOCK													= 0x10
		O_SYNC														= 0x80
		O_TRUNC													 = 0x400
		O_WRONLY													= 0x1
		PARENB														= 0x1000
		PARMRK														= 0x8
		PARODD														= 0x2000
		PENDIN														= 0x20000000
		PF_FLUSH													= 0x1
		PRIO_PGRP												 = 0x1
		PRIO_PROCESS											= 0x0
		PRIO_USER												 = 0x2
		PROT_EXEC												 = 0x4
		PROT_NONE												 = 0x0
		PROT_READ												 = 0x1
		PROT_WRITE												= 0x2
		RLIMIT_CORE											 = 0x4
		RLIMIT_CPU												= 0x0
		RLIMIT_DATA											 = 0x2
		RLIMIT_FSIZE											= 0x1
		RLIMIT_NOFILE										 = 0x8
		RLIMIT_STACK											= 0x3
		RLIM_INFINITY										 = 0x7fffffffffffffff
		RTAX_AUTHOR											 = 0x6
		RTAX_BRD													= 0x7
		RTAX_DST													= 0x0
		RTAX_GATEWAY											= 0x1
		RTAX_GENMASK											= 0x3
		RTAX_IFA													= 0x5
		RTAX_IFP													= 0x4
		RTAX_LABEL												= 0xa
		RTAX_MAX													= 0xb
		RTAX_NETMASK											= 0x2
		RTAX_SRC													= 0x8
		RTAX_SRCMASK											= 0x9
		RTA_AUTHOR												= 0x40
		RTA_BRD													 = 0x80
		RTA_DST													 = 0x1
		RTA_GATEWAY											 = 0x2
		RTA_GENMASK											 = 0x8
		RTA_IFA													 = 0x20
		RTA_IFP													 = 0x10
		RTA_LABEL												 = 0x400
		RTA_NETMASK											 = 0x4
		RTA_SRC													 = 0x100
		RTA_SRCMASK											 = 0x200
		RTF_ANNOUNCE											= 0x4000
		RTF_BLACKHOLE										 = 0x1000
		RTF_CLONED												= 0x10000
		RTF_CLONING											 = 0x100
		RTF_DONE													= 0x40
		RTF_DYNAMIC											 = 0x10
		RTF_FMASK												 = 0x10f808
		RTF_GATEWAY											 = 0x2
		RTF_HOST													= 0x4
		RTF_LLINFO												= 0x400
		RTF_MASK													= 0x80
		RTF_MODIFIED											= 0x20
		RTF_MPATH												 = 0x40000
		RTF_MPLS													= 0x100000
		RTF_PERMANENT_ARP								 = 0x2000
		RTF_PROTO1												= 0x8000
		RTF_PROTO2												= 0x4000
		RTF_PROTO3												= 0x2000
		RTF_REJECT												= 0x8
		RTF_SOURCE												= 0x20000
		RTF_STATIC												= 0x800
		RTF_TUNNEL												= 0x100000
		RTF_UP														= 0x1
		RTF_USETRAILERS									 = 0x8000
		RTF_XRESOLVE											= 0x200
		RTM_ADD													 = 0x1
		RTM_CHANGE												= 0x3
		RTM_DELADDR											 = 0xd
		RTM_DELETE												= 0x2
		RTM_DESYNC												= 0x10
		RTM_GET													 = 0x4
		RTM_IFANNOUNCE										= 0xf
		RTM_IFINFO												= 0xe
		RTM_LOCK													= 0x8
		RTM_LOSING												= 0x5
		RTM_MAXSIZE											 = 0x800
		RTM_MISS													= 0x7
		RTM_NEWADDR											 = 0xc
		RTM_REDIRECT											= 0x6
		RTM_RESOLVE											 = 0xb
		RTM_RTTUNIT											 = 0xf4240
		RTM_VERSION											 = 0x5
		RTV_EXPIRE												= 0x4
		RTV_HOPCOUNT											= 0x2
		RTV_MTU													 = 0x1
		RTV_RPIPE												 = 0x8
		RTV_RTT													 = 0x40
		RTV_RTTVAR												= 0x80
		RTV_SPIPE												 = 0x10
		RTV_SSTHRESH											= 0x20
		RT_TABLEID_MAX										= 0xff
		RUSAGE_CHILDREN									 = -0x1
		RUSAGE_SELF											 = 0x0
		RUSAGE_THREAD										 = 0x1
		SCM_RIGHTS												= 0x1
		SCM_TIMESTAMP										 = 0x4
		SHUT_RD													 = 0x0
		SHUT_RDWR												 = 0x2
		SHUT_WR													 = 0x1
		SIOCADDMULTI											= 0x80206931
		SIOCAIFADDR											 = 0x8040691a
		SIOCAIFGROUP											= 0x80286987
		SIOCALIFADDR											= 0x8218691c
		SIOCATMARK												= 0x40047307
		SIOCBRDGADD											 = 0x8058693c
		SIOCBRDGADDS											= 0x80586941
		SIOCBRDGARL											 = 0x806e694d
		SIOCBRDGDADDR										 = 0x81286947
		SIOCBRDGDEL											 = 0x8058693d
		SIOCBRDGDELS											= 0x80586942
		SIOCBRDGFLUSH										 = 0x80586948
		SIOCBRDGFRL											 = 0x806e694e
		SIOCBRDGGCACHE										= 0xc0146941
		SIOCBRDGGFD											 = 0xc0146952
		SIOCBRDGGHT											 = 0xc0146951
		SIOCBRDGGIFFLGS									 = 0xc058693e
		SIOCBRDGGMA											 = 0xc0146953
		SIOCBRDGGPARAM										= 0xc0406958
		SIOCBRDGGPRI											= 0xc0146950
		SIOCBRDGGRL											 = 0xc030694f
		SIOCBRDGGSIFS										 = 0xc058693c
		SIOCBRDGGTO											 = 0xc0146946
		SIOCBRDGIFS											 = 0xc0586942
		SIOCBRDGRTS											 = 0xc0206943
		SIOCBRDGSADDR										 = 0xc1286944
		SIOCBRDGSCACHE										= 0x80146940
		SIOCBRDGSFD											 = 0x80146952
		SIOCBRDGSHT											 = 0x80146951
		SIOCBRDGSIFCOST									 = 0x80586955
		SIOCBRDGSIFFLGS									 = 0x8058693f
		SIOCBRDGSIFPRIO									 = 0x80586954
		SIOCBRDGSMA											 = 0x80146953
		SIOCBRDGSPRI											= 0x80146950
		SIOCBRDGSPROTO										= 0x8014695a
		SIOCBRDGSTO											 = 0x80146945
		SIOCBRDGSTXHC										 = 0x80146959
		SIOCDELMULTI											= 0x80206932
		SIOCDIFADDR											 = 0x80206919
		SIOCDIFGROUP											= 0x80286989
		SIOCDIFPHYADDR										= 0x80206949
		SIOCDLIFADDR											= 0x8218691e
		SIOCGETKALIVE										 = 0xc01869a4
		SIOCGETLABEL											= 0x8020699a
		SIOCGETPFLOW											= 0xc02069fe
		SIOCGETPFSYNC										 = 0xc02069f8
		SIOCGETSGCNT											= 0xc0207534
		SIOCGETVIFCNT										 = 0xc0287533
		SIOCGETVLAN											 = 0xc0206990
		SIOCGHIWAT												= 0x40047301
		SIOCGIFADDR											 = 0xc0206921
		SIOCGIFASYNCMAP									 = 0xc020697c
		SIOCGIFBRDADDR										= 0xc0206923
		SIOCGIFCONF											 = 0xc0106924
		SIOCGIFDATA											 = 0xc020691b
		SIOCGIFDESCR											= 0xc0206981
		SIOCGIFDSTADDR										= 0xc0206922
		SIOCGIFFLAGS											= 0xc0206911
		SIOCGIFGATTR											= 0xc028698b
		SIOCGIFGENERIC										= 0xc020693a
		SIOCGIFGMEMB											= 0xc028698a
		SIOCGIFGROUP											= 0xc0286988
		SIOCGIFHARDMTU										= 0xc02069a5
		SIOCGIFMEDIA											= 0xc0306936
		SIOCGIFMETRIC										 = 0xc0206917
		SIOCGIFMTU												= 0xc020697e
		SIOCGIFNETMASK										= 0xc0206925
		SIOCGIFPDSTADDR									 = 0xc0206948
		SIOCGIFPRIORITY									 = 0xc020699c
		SIOCGIFPSRCADDR									 = 0xc0206947
		SIOCGIFRDOMAIN										= 0xc02069a0
		SIOCGIFRTLABEL										= 0xc0206983
		SIOCGIFTIMESLOT									 = 0xc0206986
		SIOCGIFXFLAGS										 = 0xc020699e
		SIOCGLIFADDR											= 0xc218691d
		SIOCGLIFPHYADDR									 = 0xc218694b
		SIOCGLIFPHYRTABLE								 = 0xc02069a2
		SIOCGLIFPHYTTL										= 0xc02069a9
		SIOCGLOWAT												= 0x40047303
		SIOCGPGRP												 = 0x40047309
		SIOCGSPPPPARAMS									 = 0xc0206994
		SIOCGVH													 = 0xc02069f6
		SIOCGVNETID											 = 0xc02069a7
		SIOCIFCREATE											= 0x8020697a
		SIOCIFDESTROY										 = 0x80206979
		SIOCIFGCLONERS										= 0xc0106978
		SIOCSETKALIVE										 = 0x801869a3
		SIOCSETLABEL											= 0x80206999
		SIOCSETPFLOW											= 0x802069fd
		SIOCSETPFSYNC										 = 0x802069f7
		SIOCSETVLAN											 = 0x8020698f
		SIOCSHIWAT												= 0x80047300
		SIOCSIFADDR											 = 0x8020690c
		SIOCSIFASYNCMAP									 = 0x8020697d
		SIOCSIFBRDADDR										= 0x80206913
		SIOCSIFDESCR											= 0x80206980
		SIOCSIFDSTADDR										= 0x8020690e
		SIOCSIFFLAGS											= 0x80206910
		SIOCSIFGATTR											= 0x8028698c
		SIOCSIFGENERIC										= 0x80206939
		SIOCSIFLLADDR										 = 0x8020691f
		SIOCSIFMEDIA											= 0xc0206935
		SIOCSIFMETRIC										 = 0x80206918
		SIOCSIFMTU												= 0x8020697f
		SIOCSIFNETMASK										= 0x80206916
		SIOCSIFPHYADDR										= 0x80406946
		SIOCSIFPRIORITY									 = 0x8020699b
		SIOCSIFRDOMAIN										= 0x8020699f
		SIOCSIFRTLABEL										= 0x80206982
		SIOCSIFTIMESLOT									 = 0x80206985
		SIOCSIFXFLAGS										 = 0x8020699d
		SIOCSLIFPHYADDR									 = 0x8218694a
		SIOCSLIFPHYRTABLE								 = 0x802069a1
		SIOCSLIFPHYTTL										= 0x802069a8
		SIOCSLOWAT												= 0x80047302
		SIOCSPGRP												 = 0x80047308
		SIOCSSPPPPARAMS									 = 0x80206993
		SIOCSVH													 = 0xc02069f5
		SIOCSVNETID											 = 0x802069a6
		SOCK_CLOEXEC											= 0x8000
		SOCK_DGRAM												= 0x2
		SOCK_NONBLOCK										 = 0x4000
		SOCK_RAW													= 0x3
		SOCK_RDM													= 0x4
		SOCK_SEQPACKET										= 0x5
		SOCK_STREAM											 = 0x1
		SOL_SOCKET												= 0xffff
		SOMAXCONN												 = 0x80
		SO_ACCEPTCONN										 = 0x2
		SO_BINDANY												= 0x1000
		SO_BROADCAST											= 0x20
		SO_DEBUG													= 0x1
		SO_DONTROUTE											= 0x10
		SO_ERROR													= 0x1007
		SO_KEEPALIVE											= 0x8
		SO_LINGER												 = 0x80
		SO_NETPROC												= 0x1020
		SO_OOBINLINE											= 0x100
		SO_PEERCRED											 = 0x1022
		SO_RCVBUF												 = 0x1002
		SO_RCVLOWAT											 = 0x1004
		SO_RCVTIMEO											 = 0x1006
		SO_REUSEADDR											= 0x4
		SO_REUSEPORT											= 0x200
		SO_RTABLE												 = 0x1021
		SO_SNDBUF												 = 0x1001
		SO_SNDLOWAT											 = 0x1003
		SO_SNDTIMEO											 = 0x1005
		SO_SPLICE												 = 0x1023
		SO_TIMESTAMP											= 0x800
		SO_TYPE													 = 0x1008
		SO_USELOOPBACK										= 0x40
		TCIFLUSH													= 0x1
		TCIOFLUSH												 = 0x3
		TCOFLUSH													= 0x2
		TCP_MAXBURST											= 0x4
		TCP_MAXSEG												= 0x2
		TCP_MAXWIN												= 0xffff
		TCP_MAX_SACK											= 0x3
		TCP_MAX_WINSHIFT									= 0xe
		TCP_MD5SIG												= 0x4
		TCP_MSS													 = 0x200
		TCP_NODELAY											 = 0x1
		TCP_NOPUSH												= 0x10
		TCP_NSTATES											 = 0xb
		TCP_SACK_ENABLE									 = 0x8
		TCSAFLUSH												 = 0x2
		TIOCCBRK													= 0x2000747a
		TIOCCDTR													= 0x20007478
		TIOCCONS													= 0x80047462
		TIOCDRAIN												 = 0x2000745e
		TIOCEXCL													= 0x2000740d
		TIOCEXT													 = 0x80047460
		TIOCFLAG_CLOCAL									 = 0x2
		TIOCFLAG_CRTSCTS									= 0x4
		TIOCFLAG_MDMBUF									 = 0x8
		TIOCFLAG_PPS											= 0x10
		TIOCFLAG_SOFTCAR									= 0x1
		TIOCFLUSH												 = 0x80047410
		TIOCGETA													= 0x402c7413
		TIOCGETD													= 0x4004741a
		TIOCGFLAGS												= 0x4004745d
		TIOCGPGRP												 = 0x40047477
		TIOCGSID													= 0x40047463
		TIOCGTSTAMP											 = 0x4010745b
		TIOCGWINSZ												= 0x40087468
		TIOCMBIC													= 0x8004746b
		TIOCMBIS													= 0x8004746c
		TIOCMGET													= 0x4004746a
		TIOCMODG													= 0x4004746a
		TIOCMODS													= 0x8004746d
		TIOCMSET													= 0x8004746d
		TIOCM_CAR												 = 0x40
		TIOCM_CD													= 0x40
		TIOCM_CTS												 = 0x20
		TIOCM_DSR												 = 0x100
		TIOCM_DTR												 = 0x2
		TIOCM_LE													= 0x1
		TIOCM_RI													= 0x80
		TIOCM_RNG												 = 0x80
		TIOCM_RTS												 = 0x4
		TIOCM_SR													= 0x10
		TIOCM_ST													= 0x8
		TIOCNOTTY												 = 0x20007471
		TIOCNXCL													= 0x2000740e
		TIOCOUTQ													= 0x40047473
		TIOCPKT													 = 0x80047470
		TIOCPKT_DATA											= 0x0
		TIOCPKT_DOSTOP										= 0x20
		TIOCPKT_FLUSHREAD								 = 0x1
		TIOCPKT_FLUSHWRITE								= 0x2
		TIOCPKT_IOCTL										 = 0x40
		TIOCPKT_NOSTOP										= 0x10
		TIOCPKT_START										 = 0x8
		TIOCPKT_STOP											= 0x4
		TIOCREMOTE												= 0x80047469
		TIOCSBRK													= 0x2000747b
		TIOCSCTTY												 = 0x20007461
		TIOCSDTR													= 0x20007479
		TIOCSETA													= 0x802c7414
		TIOCSETAF												 = 0x802c7416
		TIOCSETAW												 = 0x802c7415
		TIOCSETD													= 0x8004741b
		TIOCSFLAGS												= 0x8004745c
		TIOCSIG													 = 0x8004745f
		TIOCSPGRP												 = 0x80047476
		TIOCSTART												 = 0x2000746e
		TIOCSTAT													= 0x80047465
		TIOCSTI													 = 0x80017472
		TIOCSTOP													= 0x2000746f
		TIOCSTSTAMP											 = 0x8008745a
		TIOCSWINSZ												= 0x80087467
		TIOCUCNTL												 = 0x80047466
		TOSTOP														= 0x400000
		VDISCARD													= 0xf
		VDSUSP														= 0xb
		VEOF															= 0x0
		VEOL															= 0x1
		VEOL2														 = 0x2
		VERASE														= 0x3
		VINTR														 = 0x8
		VKILL														 = 0x5
		VLNEXT														= 0xe
		VMIN															= 0x10
		VQUIT														 = 0x9
		VREPRINT													= 0x6
		VSTART														= 0xc
		VSTATUS													 = 0x12
		VSTOP														 = 0xd
		VSUSP														 = 0xa
		VTIME														 = 0x11
		VWERASE													 = 0x4
		WALTSIG													 = 0x4
		WCONTINUED												= 0x8
		WCOREFLAG												 = 0x80
		WNOHANG													 = 0x1
		WSTOPPED													= 0x7f
		WUNTRACED												 = 0x2
)

Errors

const (
		E2BIG					 = Errno(0x7)
		EACCES					= Errno(0xd)
		EADDRINUSE			= Errno(0x30)
		EADDRNOTAVAIL	 = Errno(0x31)
		EAFNOSUPPORT		= Errno(0x2f)
		EAGAIN					= Errno(0x23)
		EALREADY				= Errno(0x25)
		EAUTH					 = Errno(0x50)
		EBADF					 = Errno(0x9)
		EBADRPC				 = Errno(0x48)
		EBUSY					 = Errno(0x10)
		ECANCELED			 = Errno(0x58)
		ECHILD					= Errno(0xa)
		ECONNABORTED		= Errno(0x35)
		ECONNREFUSED		= Errno(0x3d)
		ECONNRESET			= Errno(0x36)
		EDEADLK				 = Errno(0xb)
		EDESTADDRREQ		= Errno(0x27)
		EDOM						= Errno(0x21)
		EDQUOT					= Errno(0x45)
		EEXIST					= Errno(0x11)
		EFAULT					= Errno(0xe)
		EFBIG					 = Errno(0x1b)
		EFTYPE					= Errno(0x4f)
		EHOSTDOWN			 = Errno(0x40)
		EHOSTUNREACH		= Errno(0x41)
		EIDRM					 = Errno(0x59)
		EILSEQ					= Errno(0x54)
		EINPROGRESS		 = Errno(0x24)
		EINTR					 = Errno(0x4)
		EINVAL					= Errno(0x16)
		EIO						 = Errno(0x5)
		EIPSEC					= Errno(0x52)
		EISCONN				 = Errno(0x38)
		EISDIR					= Errno(0x15)
		ELAST					 = Errno(0x5b)
		ELOOP					 = Errno(0x3e)
		EMEDIUMTYPE		 = Errno(0x56)
		EMFILE					= Errno(0x18)
		EMLINK					= Errno(0x1f)
		EMSGSIZE				= Errno(0x28)
		ENAMETOOLONG		= Errno(0x3f)
		ENEEDAUTH			 = Errno(0x51)
		ENETDOWN				= Errno(0x32)
		ENETRESET			 = Errno(0x34)
		ENETUNREACH		 = Errno(0x33)
		ENFILE					= Errno(0x17)
		ENOATTR				 = Errno(0x53)
		ENOBUFS				 = Errno(0x37)
		ENODEV					= Errno(0x13)
		ENOENT					= Errno(0x2)
		ENOEXEC				 = Errno(0x8)
		ENOLCK					= Errno(0x4d)
		ENOMEDIUM			 = Errno(0x55)
		ENOMEM					= Errno(0xc)
		ENOMSG					= Errno(0x5a)
		ENOPROTOOPT		 = Errno(0x2a)
		ENOSPC					= Errno(0x1c)
		ENOSYS					= Errno(0x4e)
		ENOTBLK				 = Errno(0xf)
		ENOTCONN				= Errno(0x39)
		ENOTDIR				 = Errno(0x14)
		ENOTEMPTY			 = Errno(0x42)
		ENOTSOCK				= Errno(0x26)
		ENOTSUP				 = Errno(0x5b)
		ENOTTY					= Errno(0x19)
		ENXIO					 = Errno(0x6)
		EOPNOTSUPP			= Errno(0x2d)
		EOVERFLOW			 = Errno(0x57)
		EPERM					 = Errno(0x1)
		EPFNOSUPPORT		= Errno(0x2e)
		EPIPE					 = Errno(0x20)
		EPROCLIM				= Errno(0x43)
		EPROCUNAVAIL		= Errno(0x4c)
		EPROGMISMATCH	 = Errno(0x4b)
		EPROGUNAVAIL		= Errno(0x4a)
		EPROTONOSUPPORT = Errno(0x2b)
		EPROTOTYPE			= Errno(0x29)
		ERANGE					= Errno(0x22)
		EREMOTE				 = Errno(0x47)
		EROFS					 = Errno(0x1e)
		ERPCMISMATCH		= Errno(0x49)
		ESHUTDOWN			 = Errno(0x3a)
		ESOCKTNOSUPPORT = Errno(0x2c)
		ESPIPE					= Errno(0x1d)
		ESRCH					 = Errno(0x3)
		ESTALE					= Errno(0x46)
		ETIMEDOUT			 = Errno(0x3c)
		ETOOMANYREFS		= Errno(0x3b)
		ETXTBSY				 = Errno(0x1a)
		EUSERS					= Errno(0x44)
		EWOULDBLOCK		 = Errno(0x23)
		EXDEV					 = Errno(0x12)
)

Signals

const (
		SIGABRT	 = Signal(0x6)
		SIGALRM	 = Signal(0xe)
		SIGBUS		= Signal(0xa)
		SIGCHLD	 = Signal(0x14)
		SIGCONT	 = Signal(0x13)
		SIGEMT		= Signal(0x7)
		SIGFPE		= Signal(0x8)
		SIGHUP		= Signal(0x1)
		SIGILL		= Signal(0x4)
		SIGINFO	 = Signal(0x1d)
		SIGINT		= Signal(0x2)
		SIGIO		 = Signal(0x17)
		SIGIOT		= Signal(0x6)
		SIGKILL	 = Signal(0x9)
		SIGPIPE	 = Signal(0xd)
		SIGPROF	 = Signal(0x1b)
		SIGQUIT	 = Signal(0x3)
		SIGSEGV	 = Signal(0xb)
		SIGSTOP	 = Signal(0x11)
		SIGSYS		= Signal(0xc)
		SIGTERM	 = Signal(0xf)
		SIGTHR		= Signal(0x20)
		SIGTRAP	 = Signal(0x5)
		SIGTSTP	 = Signal(0x12)
		SIGTTIN	 = Signal(0x15)
		SIGTTOU	 = Signal(0x16)
		SIGURG		= Signal(0x10)
		SIGUSR1	 = Signal(0x1e)
		SIGUSR2	 = Signal(0x1f)
		SIGVTALRM = Signal(0x1a)
		SIGWINCH	= Signal(0x1c)
		SIGXCPU	 = Signal(0x18)
		SIGXFSZ	 = Signal(0x19)
)
const (
		SYS_EXIT					 = 1	 // { void sys_exit(int rval); }
		SYS_FORK					 = 2	 // { int sys_fork(void); }
		SYS_READ					 = 3	 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
		SYS_WRITE					= 4	 // { ssize_t sys_write(int fd, const void *buf, \
		SYS_OPEN					 = 5	 // { int sys_open(const char *path, \
		SYS_CLOSE					= 6	 // { int sys_close(int fd); }
		SYS___TFORK				= 8	 // { int sys___tfork(const struct __tfork *param, \
		SYS_LINK					 = 9	 // { int sys_link(const char *path, const char *link); }
		SYS_UNLINK				 = 10	// { int sys_unlink(const char *path); }
		SYS_WAIT4					= 11	// { pid_t sys_wait4(pid_t pid, int *status, \
		SYS_CHDIR					= 12	// { int sys_chdir(const char *path); }
		SYS_FCHDIR				 = 13	// { int sys_fchdir(int fd); }
		SYS_MKNOD					= 14	// { int sys_mknod(const char *path, mode_t mode, \
		SYS_CHMOD					= 15	// { int sys_chmod(const char *path, mode_t mode); }
		SYS_CHOWN					= 16	// { int sys_chown(const char *path, uid_t uid, \
		SYS_OBREAK				 = 17	// { int sys_obreak(char *nsize); } break
		SYS_GETDTABLECOUNT = 18	// { int sys_getdtablecount(void); }
		SYS_GETRUSAGE			= 19	// { int sys_getrusage(int who, \
		SYS_GETPID				 = 20	// { pid_t sys_getpid(void); }
		SYS_MOUNT					= 21	// { int sys_mount(const char *type, const char *path, \
		SYS_UNMOUNT				= 22	// { int sys_unmount(const char *path, int flags); }
		SYS_SETUID				 = 23	// { int sys_setuid(uid_t uid); }
		SYS_GETUID				 = 24	// { uid_t sys_getuid(void); }
		SYS_GETEUID				= 25	// { uid_t sys_geteuid(void); }
		SYS_PTRACE				 = 26	// { int sys_ptrace(int req, pid_t pid, caddr_t addr, \
		SYS_RECVMSG				= 27	// { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
		SYS_SENDMSG				= 28	// { ssize_t sys_sendmsg(int s, \
		SYS_RECVFROM			 = 29	// { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
		SYS_ACCEPT				 = 30	// { int sys_accept(int s, struct sockaddr *name, \
		SYS_GETPEERNAME		= 31	// { int sys_getpeername(int fdes, struct sockaddr *asa, \
		SYS_GETSOCKNAME		= 32	// { int sys_getsockname(int fdes, struct sockaddr *asa, \
		SYS_ACCESS				 = 33	// { int sys_access(const char *path, int flags); }
		SYS_CHFLAGS				= 34	// { int sys_chflags(const char *path, u_int flags); }
		SYS_FCHFLAGS			 = 35	// { int sys_fchflags(int fd, u_int flags); }
		SYS_SYNC					 = 36	// { void sys_sync(void); }
		SYS_STAT					 = 38	// { int sys_stat(const char *path, struct stat *ub); }
		SYS_GETPPID				= 39	// { pid_t sys_getppid(void); }
		SYS_LSTAT					= 40	// { int sys_lstat(const char *path, struct stat *ub); }
		SYS_DUP						= 41	// { int sys_dup(int fd); }
		SYS_FSTATAT				= 42	// { int sys_fstatat(int fd, const char *path, \
		SYS_GETEGID				= 43	// { gid_t sys_getegid(void); }
		SYS_PROFIL				 = 44	// { int sys_profil(caddr_t samples, size_t size, \
		SYS_KTRACE				 = 45	// { int sys_ktrace(const char *fname, int ops, \
		SYS_SIGACTION			= 46	// { int sys_sigaction(int signum, \
		SYS_GETGID				 = 47	// { gid_t sys_getgid(void); }
		SYS_SIGPROCMASK		= 48	// { int sys_sigprocmask(int how, sigset_t mask); }
		SYS_GETLOGIN			 = 49	// { int sys_getlogin(char *namebuf, u_int namelen); }
		SYS_SETLOGIN			 = 50	// { int sys_setlogin(const char *namebuf); }
		SYS_ACCT					 = 51	// { int sys_acct(const char *path); }
		SYS_SIGPENDING		 = 52	// { int sys_sigpending(void); }
		SYS_FSTAT					= 53	// { int sys_fstat(int fd, struct stat *sb); }
		SYS_IOCTL					= 54	// { int sys_ioctl(int fd, \
		SYS_REBOOT				 = 55	// { int sys_reboot(int opt); }
		SYS_REVOKE				 = 56	// { int sys_revoke(const char *path); }
		SYS_SYMLINK				= 57	// { int sys_symlink(const char *path, \
		SYS_READLINK			 = 58	// { int sys_readlink(const char *path, char *buf, \
		SYS_EXECVE				 = 59	// { int sys_execve(const char *path, \
		SYS_UMASK					= 60	// { mode_t sys_umask(mode_t newmask); }
		SYS_CHROOT				 = 61	// { int sys_chroot(const char *path); }
		SYS_GETFSSTAT			= 62	// { int sys_getfsstat(struct statfs *buf, size_t bufsize, \
		SYS_STATFS				 = 63	// { int sys_statfs(const char *path, \
		SYS_FSTATFS				= 64	// { int sys_fstatfs(int fd, struct statfs *buf); }
		SYS_FHSTATFS			 = 65	// { int sys_fhstatfs(const fhandle_t *fhp, \
		SYS_VFORK					= 66	// { int sys_vfork(void); }
		SYS_GETTIMEOFDAY	 = 67	// { int sys_gettimeofday(struct timeval *tp, \
		SYS_SETTIMEOFDAY	 = 68	// { int sys_settimeofday(const struct timeval *tv, \
		SYS_SETITIMER			= 69	// { int sys_setitimer(int which, \
		SYS_GETITIMER			= 70	// { int sys_getitimer(int which, \
		SYS_SELECT				 = 71	// { int sys_select(int nd, fd_set *in, fd_set *ou, \
		SYS_KEVENT				 = 72	// { int sys_kevent(int fd, \
		SYS_MUNMAP				 = 73	// { int sys_munmap(void *addr, size_t len); }
		SYS_MPROTECT			 = 74	// { int sys_mprotect(void *addr, size_t len, \
		SYS_MADVISE				= 75	// { int sys_madvise(void *addr, size_t len, \
		SYS_UTIMES				 = 76	// { int sys_utimes(const char *path, \
		SYS_FUTIMES				= 77	// { int sys_futimes(int fd, \
		SYS_MINCORE				= 78	// { int sys_mincore(void *addr, size_t len, \
		SYS_GETGROUPS			= 79	// { int sys_getgroups(int gidsetsize, \
		SYS_SETGROUPS			= 80	// { int sys_setgroups(int gidsetsize, \
		SYS_GETPGRP				= 81	// { int sys_getpgrp(void); }
		SYS_SETPGID				= 82	// { int sys_setpgid(pid_t pid, int pgid); }
		SYS_UTIMENSAT			= 84	// { int sys_utimensat(int fd, const char *path, \
		SYS_FUTIMENS			 = 85	// { int sys_futimens(int fd, \
		SYS_CLOCK_GETTIME	= 87	// { int sys_clock_gettime(clockid_t clock_id, \
		SYS_CLOCK_SETTIME	= 88	// { int sys_clock_settime(clockid_t clock_id, \
		SYS_CLOCK_GETRES	 = 89	// { int sys_clock_getres(clockid_t clock_id, \
		SYS_DUP2					 = 90	// { int sys_dup2(int from, int to); }
		SYS_NANOSLEEP			= 91	// { int sys_nanosleep(const struct timespec *rqtp, \
		SYS_FCNTL					= 92	// { int sys_fcntl(int fd, int cmd, ... void *arg); }
		SYS_ACCEPT4				= 93	// { int sys_accept4(int s, struct sockaddr *name, \
		SYS___THRSLEEP		 = 94	// { int sys___thrsleep(const volatile void *ident, \
		SYS_FSYNC					= 95	// { int sys_fsync(int fd); }
		SYS_SETPRIORITY		= 96	// { int sys_setpriority(int which, id_t who, int prio); }
		SYS_SOCKET				 = 97	// { int sys_socket(int domain, int type, int protocol); }
		SYS_CONNECT				= 98	// { int sys_connect(int s, const struct sockaddr *name, \
		SYS_GETDENTS			 = 99	// { int sys_getdents(int fd, void *buf, size_t buflen); }
		SYS_GETPRIORITY		= 100 // { int sys_getpriority(int which, id_t who); }
		SYS_PIPE2					= 101 // { int sys_pipe2(int *fdp, int flags); }
		SYS_SIGRETURN			= 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); }
		SYS_BIND					 = 104 // { int sys_bind(int s, const struct sockaddr *name, \
		SYS_SETSOCKOPT		 = 105 // { int sys_setsockopt(int s, int level, int name, \
		SYS_LISTEN				 = 106 // { int sys_listen(int s, int backlog); }
		SYS_PPOLL					= 109 // { int sys_ppoll(struct pollfd *fds, \
		SYS_PSELECT				= 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
		SYS_SIGSUSPEND		 = 111 // { int sys_sigsuspend(int mask); }
		SYS_GETSOCKOPT		 = 118 // { int sys_getsockopt(int s, int level, int name, \
		SYS_READV					= 120 // { ssize_t sys_readv(int fd, \
		SYS_WRITEV				 = 121 // { ssize_t sys_writev(int fd, \
		SYS_KILL					 = 122 // { int sys_kill(int pid, int signum); }
		SYS_FCHOWN				 = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); }
		SYS_FCHMOD				 = 124 // { int sys_fchmod(int fd, mode_t mode); }
		SYS_SETREUID			 = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); }
		SYS_SETREGID			 = 127 // { int sys_setregid(gid_t rgid, gid_t egid); }
		SYS_RENAME				 = 128 // { int sys_rename(const char *from, const char *to); }
		SYS_FLOCK					= 131 // { int sys_flock(int fd, int how); }
		SYS_MKFIFO				 = 132 // { int sys_mkfifo(const char *path, mode_t mode); }
		SYS_SENDTO				 = 133 // { ssize_t sys_sendto(int s, const void *buf, \
		SYS_SHUTDOWN			 = 134 // { int sys_shutdown(int s, int how); }
		SYS_SOCKETPAIR		 = 135 // { int sys_socketpair(int domain, int type, \
		SYS_MKDIR					= 136 // { int sys_mkdir(const char *path, mode_t mode); }
		SYS_RMDIR					= 137 // { int sys_rmdir(const char *path); }
		SYS_ADJTIME				= 140 // { int sys_adjtime(const struct timeval *delta, \
		SYS_SETSID				 = 147 // { int sys_setsid(void); }
		SYS_QUOTACTL			 = 148 // { int sys_quotactl(const char *path, int cmd, \
		SYS_NFSSVC				 = 155 // { int sys_nfssvc(int flag, void *argp); }
		SYS_GETFH					= 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); }
		SYS_SYSARCH				= 165 // { int sys_sysarch(int op, void *parms); }
		SYS_PREAD					= 173 // { ssize_t sys_pread(int fd, void *buf, \
		SYS_PWRITE				 = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \
		SYS_SETGID				 = 181 // { int sys_setgid(gid_t gid); }
		SYS_SETEGID				= 182 // { int sys_setegid(gid_t egid); }
		SYS_SETEUID				= 183 // { int sys_seteuid(uid_t euid); }
		SYS_PATHCONF			 = 191 // { long sys_pathconf(const char *path, int name); }
		SYS_FPATHCONF			= 192 // { long sys_fpathconf(int fd, int name); }
		SYS_SWAPCTL				= 193 // { int sys_swapctl(int cmd, const void *arg, int misc); }
		SYS_GETRLIMIT			= 194 // { int sys_getrlimit(int which, \
		SYS_SETRLIMIT			= 195 // { int sys_setrlimit(int which, \
		SYS_MMAP					 = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \
		SYS_LSEEK					= 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \
		SYS_TRUNCATE			 = 200 // { int sys_truncate(const char *path, int pad, \
		SYS_FTRUNCATE			= 201 // { int sys_ftruncate(int fd, int pad, off_t length); }
		SYS___SYSCTL			 = 202 // { int sys___sysctl(const int *name, u_int namelen, \
		SYS_MLOCK					= 203 // { int sys_mlock(const void *addr, size_t len); }
		SYS_MUNLOCK				= 204 // { int sys_munlock(const void *addr, size_t len); }
		SYS_GETPGID				= 207 // { pid_t sys_getpgid(pid_t pid); }
		SYS_UTRACE				 = 209 // { int sys_utrace(const char *label, const void *addr, \
		SYS_SEMGET				 = 221 // { int sys_semget(key_t key, int nsems, int semflg); }
		SYS_MSGGET				 = 225 // { int sys_msgget(key_t key, int msgflg); }
		SYS_MSGSND				 = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \
		SYS_MSGRCV				 = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
		SYS_SHMAT					= 228 // { void *sys_shmat(int shmid, const void *shmaddr, \
		SYS_SHMDT					= 230 // { int sys_shmdt(const void *shmaddr); }
		SYS_MINHERIT			 = 250 // { int sys_minherit(void *addr, size_t len, \
		SYS_POLL					 = 252 // { int sys_poll(struct pollfd *fds, \
		SYS_ISSETUGID			= 253 // { int sys_issetugid(void); }
		SYS_LCHOWN				 = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); }
		SYS_GETSID				 = 255 // { pid_t sys_getsid(pid_t pid); }
		SYS_MSYNC					= 256 // { int sys_msync(void *addr, size_t len, int flags); }
		SYS_PIPE					 = 263 // { int sys_pipe(int *fdp); }
		SYS_FHOPEN				 = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); }
		SYS_PREADV				 = 267 // { ssize_t sys_preadv(int fd, \
		SYS_PWRITEV				= 268 // { ssize_t sys_pwritev(int fd, \
		SYS_KQUEUE				 = 269 // { int sys_kqueue(void); }
		SYS_MLOCKALL			 = 271 // { int sys_mlockall(int flags); }
		SYS_MUNLOCKALL		 = 272 // { int sys_munlockall(void); }
		SYS_GETRESUID			= 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \
		SYS_SETRESUID			= 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \
		SYS_GETRESGID			= 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \
		SYS_SETRESGID			= 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \
		SYS_MQUERY				 = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \
		SYS_CLOSEFROM			= 287 // { int sys_closefrom(int fd); }
		SYS_SIGALTSTACK		= 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \
		SYS_SHMGET				 = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); }
		SYS_SEMOP					= 290 // { int sys_semop(int semid, struct sembuf *sops, \
		SYS_FHSTAT				 = 294 // { int sys_fhstat(const fhandle_t *fhp, \
		SYS___SEMCTL			 = 295 // { int sys___semctl(int semid, int semnum, int cmd, \
		SYS_SHMCTL				 = 296 // { int sys_shmctl(int shmid, int cmd, \
		SYS_MSGCTL				 = 297 // { int sys_msgctl(int msqid, int cmd, \
		SYS_SCHED_YIELD		= 298 // { int sys_sched_yield(void); }
		SYS_GETTHRID			 = 299 // { pid_t sys_getthrid(void); }
		SYS___THRWAKEUP		= 301 // { int sys___thrwakeup(const volatile void *ident, \
		SYS___THREXIT			= 302 // { void sys___threxit(pid_t *notdead); }
		SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \
		SYS___GETCWD			 = 304 // { int sys___getcwd(char *buf, size_t len); }
		SYS_ADJFREQ				= 305 // { int sys_adjfreq(const int64_t *freq, \
		SYS_SETRTABLE			= 310 // { int sys_setrtable(int rtableid); }
		SYS_GETRTABLE			= 311 // { int sys_getrtable(void); }
		SYS_FACCESSAT			= 313 // { int sys_faccessat(int fd, const char *path, \
		SYS_FCHMODAT			 = 314 // { int sys_fchmodat(int fd, const char *path, \
		SYS_FCHOWNAT			 = 315 // { int sys_fchownat(int fd, const char *path, \
		SYS_LINKAT				 = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \
		SYS_MKDIRAT				= 318 // { int sys_mkdirat(int fd, const char *path, \
		SYS_MKFIFOAT			 = 319 // { int sys_mkfifoat(int fd, const char *path, \
		SYS_MKNODAT				= 320 // { int sys_mknodat(int fd, const char *path, \
		SYS_OPENAT				 = 321 // { int sys_openat(int fd, const char *path, int flags, \
		SYS_READLINKAT		 = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \
		SYS_RENAMEAT			 = 323 // { int sys_renameat(int fromfd, const char *from, \
		SYS_SYMLINKAT			= 324 // { int sys_symlinkat(const char *path, int fd, \
		SYS_UNLINKAT			 = 325 // { int sys_unlinkat(int fd, const char *path, \
		SYS___SET_TCB			= 329 // { void sys___set_tcb(void *tcb); }
		SYS___GET_TCB			= 330 // { void *sys___get_tcb(void); }
)
const (
		S_IFMT	 = 0xf000
		S_IFIFO	= 0x1000
		S_IFCHR	= 0x2000
		S_IFDIR	= 0x4000
		S_IFBLK	= 0x6000
		S_IFREG	= 0x8000
		S_IFLNK	= 0xa000
		S_IFSOCK = 0xc000
		S_ISUID	= 0x800
		S_ISGID	= 0x400
		S_ISVTX	= 0x200
		S_IRUSR	= 0x100
		S_IWUSR	= 0x80
		S_IXUSR	= 0x40
		S_IRWXG	= 0x38
		S_IRWXO	= 0x7
)
const (
		SizeofSockaddrInet4		= 0x10
		SizeofSockaddrInet6		= 0x1c
		SizeofSockaddrAny			= 0x6c
		SizeofSockaddrUnix		 = 0x6a
		SizeofSockaddrDatalink = 0x20
		SizeofLinger					 = 0x8
		SizeofIPMreq					 = 0x8
		SizeofIPv6Mreq				 = 0x14
		SizeofMsghdr					 = 0x30
		SizeofCmsghdr					= 0xc
		SizeofInet6Pktinfo		 = 0x14
		SizeofIPv6MTUInfo			= 0x20
		SizeofICMPv6Filter		 = 0x20
)
const (
		PTRACE_TRACEME = 0x0
		PTRACE_CONT		= 0x7
		PTRACE_KILL		= 0x8
)
const (
		SizeofIfMsghdr				 = 0xf8
		SizeofIfData					 = 0xe0
		SizeofIfaMsghdr				= 0x18
		SizeofIfAnnounceMsghdr = 0x1a
		SizeofRtMsghdr				 = 0x60
		SizeofRtMetrics				= 0x38
)
const (
		SizeofBpfVersion = 0x4
		SizeofBpfStat		= 0x8
		SizeofBpfProgram = 0x10
		SizeofBpfInsn		= 0x8
		SizeofBpfHdr		 = 0x14
)
const ImplementsGetwd = true

Variables

var (
		Stdin	= 0
		Stdout = 1
		Stderr = 2
)
var ForkLock sync.RWMutex

For testing: clients can set this flag to force creation of IPv6 sockets to return EAFNOSUPPORT.

var SocketDisableIPv6 bool

func Access

func Access(path string, mode uint32) (err error)

func Adjtime

func Adjtime(delta *Timeval, olddelta *Timeval) (err error)

func Bind

func Bind(fd int, sa Sockaddr) (err error)

func BpfBuflen

func BpfBuflen(fd int) (int, error)

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

func BpfDatalink(fd int) (int, error)

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

func BpfHeadercmpl

func BpfHeadercmpl(fd int) (int, error)

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

func BpfInterface

func BpfInterface(fd int, name string) (string, error)

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

func BytePtrFromString 1.1

func BytePtrFromString(s string) (*byte, error)

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

func ByteSliceFromString 1.1

func ByteSliceFromString(s string) ([]byte, error)

ByteSliceFromString returns a NUL-terminated slice of bytes containing the text of s. If s contains a NUL byte at any location, it returns (nil, EINVAL).

func Chdir

func Chdir(path string) (err error)

func CheckBpfVersion

func CheckBpfVersion(fd int) error

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

func Chflags

func Chflags(path string, flags int) (err error)

func Chmod

func Chmod(path string, mode uint32) (err error)

func Chown

func Chown(path string, uid int, gid int) (err error)

func Chroot

func Chroot(path string) (err error)

func Clearenv

func Clearenv()

func Close

func Close(fd int) (err error)

func CloseOnExec

func CloseOnExec(fd int)

func CmsgLen

func CmsgLen(datalen int) int

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

func CmsgSpace

func CmsgSpace(datalen int) int

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

func Connect

func Connect(fd int, sa Sockaddr) (err error)

func Dup

func Dup(fd int) (nfd int, err error)

func Dup2

func Dup2(from int, to int) (err error)

func Environ

func Environ() []string

func Exec

func Exec(argv0 string, argv []string, envv []string) (err error)

Exec invokes the execve(2) system call.

func Exit

func Exit(code int)

func Fchdir

func Fchdir(fd int) (err error)

func Fchflags

func Fchflags(fd int, flags int) (err error)

func Fchmod

func Fchmod(fd int, mode uint32) (err error)

func Fchown

func Fchown(fd int, uid int, gid int) (err error)

func FcntlFlock

func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error

FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.

func Flock

func Flock(fd int, how int) (err error)

func FlushBpf

func FlushBpf(fd int) error

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

func ForkExec

func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)

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

func Fpathconf

func Fpathconf(fd int, name int) (val int, err error)

func Fstat

func Fstat(fd int, stat *Stat_t) (err error)

func Fstatfs

func Fstatfs(fd int, stat *Statfs_t) (err error)

func Fsync

func Fsync(fd int) (err error)

func Ftruncate

func Ftruncate(fd int, length int64) (err error)

func Futimes

func Futimes(fd int, tv []Timeval) (err error)

func Getdirentries

func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)

sys getdents(fd int, buf []byte) (n int, err error)

func Getegid

func Getegid() (egid int)

func Getenv

func Getenv(key string) (value string, found bool)

func Geteuid

func Geteuid() (uid int)

func Getfsstat

func Getfsstat(buf []Statfs_t, flags int) (n int, err error)

func Getgid

func Getgid() (gid int)

func Getgroups

func Getgroups() (gids []int, err error)

func Getpagesize

func Getpagesize() int

func Getpgid

func Getpgid(pid int) (pgid int, err error)

func Getpgrp

func Getpgrp() (pgrp int)

func Getpid

func Getpid() (pid int)

func Getppid

func Getppid() (ppid int)

func Getpriority

func Getpriority(which int, who int) (prio int, err error)

func Getrlimit

func Getrlimit(which int, lim *Rlimit) (err error)

func Getrusage

func Getrusage(who int, rusage *Rusage) (err error)

func Getsid

func Getsid(pid int) (sid int, err error)

func GetsockoptByte

func GetsockoptByte(fd, level, opt int) (value byte, err error)

func GetsockoptInet4Addr

func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error)

func GetsockoptInt

func GetsockoptInt(fd, level, opt int) (value int, err error)

func Gettimeofday

func Gettimeofday(tv *Timeval) (err error)

func Getuid

func Getuid() (uid int)

func Getwd

func Getwd() (string, error)

func Issetugid

func Issetugid() (tainted bool)

func Kevent

func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error)

func Kill

func Kill(pid int, signum Signal) (err error)

func Kqueue

func Kqueue() (fd int, err error)

func Lchown

func Lchown(path string, uid int, gid int) (err error)
func Link(path string, link string) (err error)

func Listen

func Listen(s int, backlog int) (err error)

func Lstat

func Lstat(path string, stat *Stat_t) (err error)

func Mkdir

func Mkdir(path string, mode uint32) (err error)

func Mkfifo

func Mkfifo(path string, mode uint32) (err error)

func Mknod

func Mknod(path string, mode uint32, dev int) (err error)

func Mmap

func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)

func Munmap

func Munmap(b []byte) (err error)

func Nanosleep

func Nanosleep(time *Timespec, leftover *Timespec) (err error)

func Open

func Open(path string, mode int, perm uint32) (fd int, err error)

func ParseDirent

func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string)

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

func ParseUnixRights

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

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

func Pathconf

func Pathconf(path string, name int) (val int, err error)

func Pipe

func Pipe(p []int) error

func Pipe2

func Pipe2(p []int, flags int) error

sysnb pipe2(p *[2]_C_int, flags int) (err error)

func Pread

func Pread(fd int, p []byte, offset int64) (n int, err error)

func Pwrite

func Pwrite(fd int, p []byte, offset int64) (n int, err error)

func Read

func Read(fd int, p []byte) (n int, err error)

func ReadDirent

func ReadDirent(fd int, buf []byte) (n int, err error)
func Readlink(path string, buf []byte) (n int, err error)

func Rename

func Rename(from string, to string) (err error)

func Revoke

func Revoke(path string) (err error)

func Rmdir

func Rmdir(path string) (err error)

func RouteRIB

func RouteRIB(facility, param int) ([]byte, error)

RouteRIB returns routing information base, as known as RIB, which consists of network facility information, states and parameters.

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

func Seek

func Seek(fd int, offset int64, whence int) (newoffset int64, err error)

func Select

func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)

func Sendfile

func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

func Sendmsg

func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error)

func SendmsgN

func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)

func Sendto

func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error)

func SetBpf

func SetBpf(fd int, i []BpfInsn) error

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

func SetBpfBuflen

func SetBpfBuflen(fd, l int) (int, error)

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

func SetBpfDatalink(fd, t int) (int, error)

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

func SetBpfHeadercmpl

func SetBpfHeadercmpl(fd, f int) error

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

func SetBpfImmediate

func SetBpfImmediate(fd, m int) error

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

func SetBpfInterface

func SetBpfInterface(fd int, name string) error

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

func SetBpfPromisc

func SetBpfPromisc(fd, m int) error

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

func SetBpfTimeout

func SetBpfTimeout(fd int, tv *Timeval) error

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

func SetKevent

func SetKevent(k *Kevent_t, fd, mode, flags int)

func SetNonblock

func SetNonblock(fd int, nonblocking bool) (err error)

func Setegid

func Setegid(egid int) (err error)

func Setenv

func Setenv(key, value string) error

func Seteuid

func Seteuid(euid int) (err error)

func Setgid

func Setgid(gid int) (err error)

func Setgroups

func Setgroups(gids []int) (err error)

func Setlogin

func Setlogin(name string) (err error)

func Setpgid

func Setpgid(pid int, pgid int) (err error)

func Setpriority

func Setpriority(which int, who int, prio int) (err error)

func Setregid

func Setregid(rgid int, egid int) (err error)

func Setreuid

func Setreuid(ruid int, euid int) (err error)

func Setrlimit

func Setrlimit(which int, lim *Rlimit) (err error)

func Setsid

func Setsid() (pid int, err error)

func SetsockoptByte

func SetsockoptByte(fd, level, opt int, value byte) (err error)

func SetsockoptICMPv6Filter

func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error

func SetsockoptIPMreq

func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error)

func SetsockoptIPv6Mreq

func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error)

func SetsockoptInet4Addr

func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error)

func SetsockoptInt

func SetsockoptInt(fd, level, opt int, value int) (err error)

func SetsockoptLinger

func SetsockoptLinger(fd, level, opt int, l *Linger) (err error)

func SetsockoptString

func SetsockoptString(fd, level, opt int, s string) (err error)

func SetsockoptTimeval

func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error)

func Settimeofday

func Settimeofday(tp *Timeval) (err error)

func Setuid

func Setuid(uid int) (err error)

func Shutdown

func Shutdown(s int, how int) (err error)

func SlicePtrFromStrings

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

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

func Socket

func Socket(domain, typ, proto int) (fd int, err error)

func Socketpair

func Socketpair(domain, typ, proto int) (fd [2]int, err error)

func StartProcess

func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error)

StartProcess wraps ForkExec for package os.

func Stat

func Stat(path string, stat *Stat_t) (err error)

func Statfs

func Statfs(path string, stat *Statfs_t) (err error)

func StringBytePtr

func StringBytePtr(s string) *byte

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

Deprecated: Use BytePtrFromString instead.

func StringByteSlice

func StringByteSlice(s string) []byte

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

Deprecated: Use ByteSliceFromString instead.

func StringSlicePtr

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

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

Deprecated: Use SlicePtrFromStrings instead.

func Symlink(path string, link string) (err error)

func Sync

func Sync() (err error)

func Sysctl

func Sysctl(name string) (value string, err error)

func SysctlUint32

func SysctlUint32(name string) (value uint32, err error)

func TimespecToNsec 1.1

func TimespecToNsec(ts Timespec) int64

TimespecToNSec returns the time stored in ts as nanoseconds.

func TimevalToNsec

func TimevalToNsec(tv Timeval) int64

TimevalToNsec returns the time stored in tv as nanoseconds.

func Truncate

func Truncate(path string, length int64) (err error)

func Umask

func Umask(newmask int) (oldmask int)

func UnixRights

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

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

func Unlink(path string) (err error)

func Unmount

func Unmount(path string, flags int) (err error)

func Unsetenv 1.4

func Unsetenv(key string) error

func Utimes

func Utimes(path string, tv []Timeval) (err error)

func UtimesNano 1.1

func UtimesNano(path string, ts []Timespec) error

func Wait4

func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)

func Write

func Write(fd int, p []byte) (n int, err error)

type BpfHdr

type BpfHdr struct {
		Tstamp		BpfTimeval
		Caplen		uint32
		Datalen	 uint32
		Hdrlen		uint16
		Pad_cgo_0 [2]byte
}

type BpfInsn

type BpfInsn struct {
		Code uint16
		Jt	 uint8
		Jf	 uint8
		K		uint32
}

func BpfJump

func BpfJump(code, k, jt, jf int) *BpfInsn

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

func BpfStmt

func BpfStmt(code, k int) *BpfInsn

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

type BpfProgram

type BpfProgram struct {
		Len			 uint32
		Pad_cgo_0 [4]byte
		Insns		 *BpfInsn
}

type BpfStat

type BpfStat struct {
		Recv uint32
		Drop uint32
}

func BpfStats

func BpfStats(fd int) (*BpfStat, error)

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

type BpfTimeval

type BpfTimeval struct {
		Sec	uint32
		Usec uint32
}

type BpfVersion

type BpfVersion struct {
		Major uint16
		Minor uint16
}

type Cmsghdr

type Cmsghdr struct {
		Len	 uint32
		Level int32
		Type	int32
}

func (*Cmsghdr) SetLen

func (cmsg *Cmsghdr) SetLen(length int)

type Conn 1.9

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

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

type Credential

Credential holds user and group identities to be assumed by a child process started by StartProcess.

type Credential struct {
		Uid				 uint32	 // User ID.
		Gid				 uint32	 // Group ID.
		Groups			[]uint32 // Supplementary group IDs.
		NoSetGroups bool		 // If true, don't set supplementary groups
}

type Dirent

type Dirent struct {
		Fileno			 uint64
		Off					int64
		Reclen			 uint16
		Type				 uint8
		Namlen			 uint8
		X__d_padding [4]uint8
		Name				 [256]int8
}

type Errno

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

err = nil
if errno != 0 {
	err = errno
}

Errno values can be tested against error values from the os package using errors.Is. For example:

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

func RawSyscall

func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)

func RawSyscall6

func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)

func Syscall

func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)

func Syscall6

func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)

func Syscall9

func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)

func (Errno) Error

func (e Errno) Error() string

func (Errno) Is 1.13

func (e Errno) Is(target error) bool

func (Errno) Temporary

func (e Errno) Temporary() bool

func (Errno) Timeout

func (e Errno) Timeout() bool

type FdSet

type FdSet struct {
		Bits [32]uint32
}

type Flock_t

type Flock_t struct {
		Start	int64
		Len		int64
		Pid		int32
		Type	 int16
		Whence int16
}

type Fsid

type Fsid struct {
		Val [2]int32
}

type ICMPv6Filter

type ICMPv6Filter struct {
		Filt [8]uint32
}

func GetsockoptICMPv6Filter

func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error)

type IPMreq

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

func GetsockoptIPMreq

func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error)

type IPv6MTUInfo

type IPv6MTUInfo struct {
		Addr RawSockaddrInet6
		Mtu	uint32
}

func GetsockoptIPv6MTUInfo

func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error)

type IPv6Mreq

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

func GetsockoptIPv6Mreq

func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error)

type IfAnnounceMsghdr

type IfAnnounceMsghdr struct {
		Msglen	uint16
		Version uint8
		Type		uint8
		Hdrlen	uint16
		Index	 uint16
		What		uint16
		Name		[16]int8
}

type IfData

type IfData struct {
		Type				 uint8
		Addrlen			uint8
		Hdrlen			 uint8
		Link_state	 uint8
		Mtu					uint32
		Metric			 uint32
		Pad					uint32
		Baudrate		 uint64
		Ipackets		 uint64
		Ierrors			uint64
		Opackets		 uint64
		Oerrors			uint64
		Collisions	 uint64
		Ibytes			 uint64
		Obytes			 uint64
		Imcasts			uint64
		Omcasts			uint64
		Iqdrops			uint64
		Noproto			uint64
		Capabilities uint32
		Pad_cgo_0		[4]byte
		Lastchange	 Timeval
		Mclpool			[7]Mclpool
		Pad_cgo_1		[4]byte
}

type IfMsghdr

type IfMsghdr struct {
		Msglen	uint16
		Version uint8
		Type		uint8
		Hdrlen	uint16
		Index	 uint16
		Tableid uint16
		Pad1		uint8
		Pad2		uint8
		Addrs	 int32
		Flags	 int32
		Xflags	int32
		Data		IfData
}

type IfaMsghdr

type IfaMsghdr struct {
		Msglen	uint16
		Version uint8
		Type		uint8
		Hdrlen	uint16
		Index	 uint16
		Tableid uint16
		Pad1		uint8
		Pad2		uint8
		Addrs	 int32
		Flags	 int32
		Metric	int32
}

type Inet6Pktinfo

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

type InterfaceAddrMessage

InterfaceAddrMessage represents a routing message containing network interface address entries.

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

type InterfaceAddrMessage struct {
		Header IfaMsghdr
		Data	 []byte
}

type InterfaceAnnounceMessage

InterfaceAnnounceMessage represents a routing message containing network interface arrival and departure information.

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

type InterfaceAnnounceMessage struct {
		Header IfAnnounceMsghdr
}

type InterfaceMessage

InterfaceMessage represents a routing message containing network interface entries.

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

type InterfaceMessage struct {
		Header IfMsghdr
		Data	 []byte
}

type Iovec

type Iovec struct {
		Base *byte
		Len	uint64
}

func (*Iovec) SetLen

func (iov *Iovec) SetLen(length int)

type Kevent_t

type Kevent_t struct {
		Ident	uint64
		Filter int16
		Flags	uint16
		Fflags uint32
		Data	 int64
		Udata	*byte
}

type Linger

type Linger struct {
		Onoff	int32
		Linger int32
}

type Mclpool

type Mclpool struct {
		Grown int32
		Alive uint16
		Hwm	 uint16
		Cwm	 uint16
		Lwm	 uint16
}

type Msghdr

type Msghdr struct {
		Name			 *byte
		Namelen		uint32
		Pad_cgo_0	[4]byte
		Iov				*Iovec
		Iovlen		 uint32
		Pad_cgo_1	[4]byte
		Control		*byte
		Controllen uint32
		Flags			int32
}

func (*Msghdr) SetControllen

func (msghdr *Msghdr) SetControllen(length int)

type ProcAttr

ProcAttr holds attributes that will be applied to a new process started by StartProcess.

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

type RawConn 1.9

A RawConn is a raw network connection.

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(fd uintptr)) 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(fd uintptr) (done bool)) error

		// Write is like Read but for writing.
		Write(f func(fd uintptr) (done bool)) error
}

type RawSockaddr

type RawSockaddr struct {
		Len		uint8
		Family uint8
		Data	 [14]int8
}

type RawSockaddrAny

type RawSockaddrAny struct {
		Addr RawSockaddr
		Pad	[92]int8
}
type RawSockaddrDatalink struct {
		Len		uint8
		Family uint8
		Index	uint16
		Type	 uint8
		Nlen	 uint8
		Alen	 uint8
		Slen	 uint8
		Data	 [24]int8
}

type RawSockaddrInet4

type RawSockaddrInet4 struct {
		Len		uint8
		Family uint8
		Port	 uint16
		Addr	 [4]byte /* in_addr */
		Zero	 [8]int8
}

type RawSockaddrInet6 1.1

type RawSockaddrInet6 struct {
		Len			uint8
		Family	 uint8
		Port		 uint16
		Flowinfo uint32
		Addr		 [16]byte /* in6_addr */
		Scope_id uint32
}

type RawSockaddrUnix 1.12

type RawSockaddrUnix struct {
		Len		uint8
		Family uint8
		Path	 [104]int8
}

type Rlimit

type Rlimit struct {
		Cur uint64
		Max uint64
}

type RouteMessage

RouteMessage represents a routing message containing routing entries.

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

type RouteMessage struct {
		Header RtMsghdr
		Data	 []byte
}

type RoutingMessage

RoutingMessage represents a routing message.

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

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

func ParseRoutingMessage

func ParseRoutingMessage(b []byte) (msgs []RoutingMessage, err error)

ParseRoutingMessage parses b as routing messages and returns the slice containing the RoutingMessage interfaces.

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

type RtMetrics

type RtMetrics struct {
		Pksent	 uint64
		Expire	 int64
		Locks		uint32
		Mtu			uint32
		Refcnt	 uint32
		Hopcount uint32
		Recvpipe uint32
		Sendpipe uint32
		Ssthresh uint32
		Rtt			uint32
		Rttvar	 uint32
		Pad			uint32
}

type RtMsghdr

type RtMsghdr struct {
		Msglen	 uint16
		Version	uint8
		Type		 uint8
		Hdrlen	 uint16
		Index		uint16
		Tableid	uint16
		Priority uint8
		Mpls		 uint8
		Addrs		int32
		Flags		int32
		Fmask		int32
		Pid			int32
		Seq			int32
		Errno		int32
		Inits		uint32
		Rmx			RtMetrics
}

type Rusage

type Rusage struct {
		Utime		Timeval
		Stime		Timeval
		Maxrss	 int64
		Ixrss		int64
		Idrss		int64
		Isrss		int64
		Minflt	 int64
		Majflt	 int64
		Nswap		int64
		Inblock	int64
		Oublock	int64
		Msgsnd	 int64
		Msgrcv	 int64
		Nsignals int64
		Nvcsw		int64
		Nivcsw	 int64
}

type Signal

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

type Signal int

func (Signal) Signal

func (s Signal) Signal()

func (Signal) String

func (s Signal) String() string

type Sockaddr

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

func Accept

func Accept(fd int) (nfd int, sa Sockaddr, err error)

func Accept4

func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error)

sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error)

func Getpeername

func Getpeername(fd int) (sa Sockaddr, err error)

func Getsockname

func Getsockname(fd int) (sa Sockaddr, err error)

func ParseRoutingSockaddr

func ParseRoutingSockaddr(msg RoutingMessage) ([]Sockaddr, error)

ParseRoutingSockaddr parses msg's payload as raw sockaddrs and returns the slice containing the Sockaddr interfaces.

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

func Recvfrom

func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error)

func Recvmsg

func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error)
type SockaddrDatalink struct {
		Len		uint8
		Family uint8
		Index	uint16
		Type	 uint8
		Nlen	 uint8
		Alen	 uint8
		Slen	 uint8
		Data	 [24]int8
		// contains filtered or unexported fields
}

type SockaddrInet4

type SockaddrInet4 struct {
		Port int
		Addr [4]byte
		// contains filtered or unexported fields
}

type SockaddrInet6

type SockaddrInet6 struct {
		Port	 int
		ZoneId uint32
		Addr	 [16]byte
		// contains filtered or unexported fields
}

type SockaddrUnix

type SockaddrUnix struct {
		Name string
		// contains filtered or unexported fields
}

type SocketControlMessage

SocketControlMessage represents a socket control message.

type SocketControlMessage struct {
		Header Cmsghdr
		Data	 []byte
}

func ParseSocketControlMessage

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

ParseSocketControlMessage parses b as an array of socket control messages.

type Stat_t

type Stat_t struct {
		Mode					 uint32
		Dev						int32
		Ino						uint64
		Nlink					uint32
		Uid						uint32
		Gid						uint32
		Rdev					 int32
		Atim					 Timespec
		Mtim					 Timespec
		Ctim					 Timespec
		Size					 int64
		Blocks				 int64
		Blksize				uint32
		Flags					uint32
		Gen						uint32
		Pad_cgo_0			[4]byte
		X__st_birthtim Timespec
}

type Statfs_t

type Statfs_t struct {
		F_flags			 uint32
		F_bsize			 uint32
		F_iosize			uint32
		Pad_cgo_0		 [4]byte
		F_blocks			uint64
		F_bfree			 uint64
		F_bavail			int64
		F_files			 uint64
		F_ffree			 uint64
		F_favail			int64
		F_syncwrites	uint64
		F_syncreads	 uint64
		F_asyncwrites uint64
		F_asyncreads	uint64
		F_fsid				Fsid
		F_namemax		 uint32
		F_owner			 uint32
		F_ctime			 uint64
		F_fstypename	[16]int8
		F_mntonname	 [90]int8
		F_mntfromname [90]int8
		F_mntfromspec [90]int8
		Pad_cgo_1		 [2]byte
		Mount_info		[160]byte
}

type SysProcAttr

type SysProcAttr struct {
		Chroot		 string			// Chroot.
		Credential *Credential // Credential.
		Ptrace		 bool				// Enable tracing.
		Setsid		 bool				// Create session.
		// Setpgid sets the process group ID of the child to Pgid,
		// or, if Pgid == 0, to the new child's process ID.
		Setpgid bool
		// 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.
		Setctty bool
		Noctty	bool // Detach fd 0 from controlling terminal
		Ctty		int	// 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.
		Foreground bool
		Pgid			 int // Child's process group ID if Setpgid.
}

type Termios

type Termios struct {
		Iflag	uint32
		Oflag	uint32
		Cflag	uint32
		Lflag	uint32
		Cc		 [20]uint8
		Ispeed int32
		Ospeed int32
}

type Timespec

type Timespec struct {
		Sec	int64
		Nsec int64
}

func NsecToTimespec 1.1

func NsecToTimespec(nsec int64) Timespec

NsecToTimespec converts a number of nanoseconds into a Timespec.

func (*Timespec) Nano

func (ts *Timespec) Nano() int64

Nano returns the time stored in ts as nanoseconds.

func (*Timespec) Unix

func (ts *Timespec) Unix() (sec int64, nsec int64)

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

type Timeval

type Timeval struct {
		Sec	int64
		Usec int64
}

func BpfTimeout

func BpfTimeout(fd int) (*Timeval, error)

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

func NsecToTimeval

func NsecToTimeval(nsec int64) Timeval

NsecToTimeval converts a number of nanoseconds into a Timeval.

func (*Timeval) Nano

func (tv *Timeval) Nano() int64

Nano returns the time stored in tv as nanoseconds.

func (*Timeval) Unix

func (tv *Timeval) Unix() (sec int64, nsec int64)

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

type WaitStatus

type WaitStatus uint32

func (WaitStatus) Continued

func (w WaitStatus) Continued() bool

func (WaitStatus) CoreDump

func (w WaitStatus) CoreDump() bool

func (WaitStatus) ExitStatus

func (w WaitStatus) ExitStatus() int

func (WaitStatus) Exited

func (w WaitStatus) Exited() bool

func (WaitStatus) Signal

func (w WaitStatus) Signal() Signal

func (WaitStatus) Signaled

func (w WaitStatus) Signaled() bool

func (WaitStatus) StopSignal

func (w WaitStatus) StopSignal() Signal

func (WaitStatus) Stopped

func (w WaitStatus) Stopped() bool

func (WaitStatus) TrapCause

func (w WaitStatus) TrapCause() int

Subdirectories

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