package syscall

Import Path
	syscall (on golang.org and go.dev)

Dependency Relation
	imports 8 packages, and imported by 19 packages

Involved Source Files bpf_darwin.go dirent.go endian_little.go env_unix.go exec_libc2.go exec_unix.go flock_darwin.go forkpipe.go msan0.go net.go ptrace_darwin.go route_bsd.go route_darwin.go sockcmsg_unix.go sockcmsg_unix_other.go str.go 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. syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go syscall_unix.go time_nofake.go timestruct.go zerrors_darwin_amd64.go zsyscall_darwin_amd64.go zsysnum_darwin_amd64.go ztypes_darwin_amd64.go asm_darwin_amd64.s zsyscall_darwin_amd64.s
Package-Level Type Names (total 74, in which 64 are exported)
/* sort exporteds by: | */
Caplen uint32 Datalen uint32 Hdrlen uint16 Pad_cgo_0 [2]byte Tstamp Timeval32
Code uint16 Jf uint8 Jt uint8 K uint32 func BpfJump(code, k, jt, jf int) *BpfInsn func BpfStmt(code, k int) *BpfInsn func SetBpf(fd int, i []BpfInsn) error
Insns *BpfInsn Len uint32 Pad_cgo_0 [4]byte
Drop uint32 Recv uint32 func BpfStats(fd int) (*BpfStat, error)
Major uint16 Minor uint16
Len uint32 Level int32 Type int32 (*T) SetLen(length int)
Conn is implemented by some types in the net and os packages to provide access to the underlying file descriptor or handle. SyscallConn returns a raw network connection. *net.IPConn *net.TCPConn *net.TCPListener *net.UDPConn *net.UnixConn *net.UnixListener *os.File
Credential holds user and group identities to be assumed by a child process started by StartProcess. // Group ID. // Supplementary group IDs. // If true, don't set supplementary groups // User ID.
Ino uint64 Name [1024]int8 Namlen uint16 Pad_cgo_0 [3]byte Reclen uint16 Seekoff uint64 Type uint8
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) ... ( T) Error() string ( T) Is(target error) bool ( T) Temporary() bool ( T) Timeout() bool T : error T : net.Error 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(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) func golang.org/x/sys/unix.RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) func golang.org/x/sys/unix.RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) func golang.org/x/sys/unix.Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) func golang.org/x/sys/unix.Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) func golang.org/x/sys/unix.Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) func golang.org/x/sys/unix.ErrnoName(e Errno) string const E2BIG const EACCES const EADDRINUSE const EADDRNOTAVAIL const EAFNOSUPPORT const EAGAIN const EALREADY const EAUTH const EBADARCH const EBADEXEC const EBADF const EBADMACHO const EBADMSG const EBADRPC const EBUSY const ECANCELED const ECHILD const ECONNABORTED const ECONNREFUSED const ECONNRESET const EDEADLK const EDESTADDRREQ const EDEVERR const EDOM const EDQUOT const EEXIST const EFAULT const EFBIG const EFTYPE const EHOSTDOWN const EHOSTUNREACH const EIDRM const EILSEQ const EINPROGRESS const EINTR const EINVAL const EIO const EISCONN const EISDIR const ELAST const ELOOP const EMFILE const EMLINK const EMSGSIZE const EMULTIHOP const ENAMETOOLONG const ENEEDAUTH const ENETDOWN const ENETRESET const ENETUNREACH const ENFILE const ENOATTR const ENOBUFS const ENODATA const ENODEV const ENOENT const ENOEXEC const ENOLCK const ENOLINK const ENOMEM const ENOMSG const ENOPOLICY const ENOPROTOOPT const ENOSPC const ENOSR const ENOSTR const ENOSYS const ENOTBLK const ENOTCONN const ENOTDIR const ENOTEMPTY const ENOTRECOVERABLE const ENOTSOCK const ENOTSUP const ENOTTY const ENXIO const EOPNOTSUPP const EOVERFLOW const EOWNERDEAD const EPERM const EPFNOSUPPORT const EPIPE const EPROCLIM const EPROCUNAVAIL const EPROGMISMATCH const EPROGUNAVAIL const EPROTO const EPROTONOSUPPORT const EPROTOTYPE const EPWROFF const ERANGE const EREMOTE const EROFS const ERPCMISMATCH const ESHLIBVERS const ESHUTDOWN const ESOCKTNOSUPPORT const ESPIPE const ESRCH const ESTALE const ETIME const ETIMEDOUT const ETOOMANYREFS const ETXTBSY const EUSERS const EWOULDBLOCK const EXDEV const golang.org/x/sys/unix.E2BIG const golang.org/x/sys/unix.EACCES const golang.org/x/sys/unix.EADDRINUSE const golang.org/x/sys/unix.EADDRNOTAVAIL const golang.org/x/sys/unix.EAFNOSUPPORT const golang.org/x/sys/unix.EAGAIN const golang.org/x/sys/unix.EALREADY const golang.org/x/sys/unix.EAUTH const golang.org/x/sys/unix.EBADARCH const golang.org/x/sys/unix.EBADEXEC const golang.org/x/sys/unix.EBADF const golang.org/x/sys/unix.EBADMACHO const golang.org/x/sys/unix.EBADMSG const golang.org/x/sys/unix.EBADRPC const golang.org/x/sys/unix.EBUSY const golang.org/x/sys/unix.ECANCELED const golang.org/x/sys/unix.ECHILD const golang.org/x/sys/unix.ECONNABORTED const golang.org/x/sys/unix.ECONNREFUSED const golang.org/x/sys/unix.ECONNRESET const golang.org/x/sys/unix.EDEADLK const golang.org/x/sys/unix.EDESTADDRREQ const golang.org/x/sys/unix.EDEVERR const golang.org/x/sys/unix.EDOM const golang.org/x/sys/unix.EDQUOT const golang.org/x/sys/unix.EEXIST const golang.org/x/sys/unix.EFAULT const golang.org/x/sys/unix.EFBIG const golang.org/x/sys/unix.EFTYPE const golang.org/x/sys/unix.EHOSTDOWN const golang.org/x/sys/unix.EHOSTUNREACH const golang.org/x/sys/unix.EIDRM const golang.org/x/sys/unix.EILSEQ const golang.org/x/sys/unix.EINPROGRESS const golang.org/x/sys/unix.EINTR const golang.org/x/sys/unix.EINVAL const golang.org/x/sys/unix.EIO const golang.org/x/sys/unix.EISCONN const golang.org/x/sys/unix.EISDIR const golang.org/x/sys/unix.ELAST const golang.org/x/sys/unix.ELOOP const golang.org/x/sys/unix.EMFILE const golang.org/x/sys/unix.EMLINK const golang.org/x/sys/unix.EMSGSIZE const golang.org/x/sys/unix.EMULTIHOP const golang.org/x/sys/unix.ENAMETOOLONG const golang.org/x/sys/unix.ENEEDAUTH const golang.org/x/sys/unix.ENETDOWN const golang.org/x/sys/unix.ENETRESET const golang.org/x/sys/unix.ENETUNREACH const golang.org/x/sys/unix.ENFILE const golang.org/x/sys/unix.ENOATTR const golang.org/x/sys/unix.ENOBUFS const golang.org/x/sys/unix.ENODATA const golang.org/x/sys/unix.ENODEV const golang.org/x/sys/unix.ENOENT const golang.org/x/sys/unix.ENOEXEC const golang.org/x/sys/unix.ENOLCK const golang.org/x/sys/unix.ENOLINK const golang.org/x/sys/unix.ENOMEM const golang.org/x/sys/unix.ENOMSG const golang.org/x/sys/unix.ENOPOLICY const golang.org/x/sys/unix.ENOPROTOOPT const golang.org/x/sys/unix.ENOSPC const golang.org/x/sys/unix.ENOSR const golang.org/x/sys/unix.ENOSTR const golang.org/x/sys/unix.ENOSYS const golang.org/x/sys/unix.ENOTBLK const golang.org/x/sys/unix.ENOTCONN const golang.org/x/sys/unix.ENOTDIR const golang.org/x/sys/unix.ENOTEMPTY const golang.org/x/sys/unix.ENOTRECOVERABLE const golang.org/x/sys/unix.ENOTSOCK const golang.org/x/sys/unix.ENOTSUP const golang.org/x/sys/unix.ENOTTY const golang.org/x/sys/unix.ENXIO const golang.org/x/sys/unix.EOPNOTSUPP const golang.org/x/sys/unix.EOVERFLOW const golang.org/x/sys/unix.EOWNERDEAD const golang.org/x/sys/unix.EPERM const golang.org/x/sys/unix.EPFNOSUPPORT const golang.org/x/sys/unix.EPIPE const golang.org/x/sys/unix.EPROCLIM const golang.org/x/sys/unix.EPROCUNAVAIL const golang.org/x/sys/unix.EPROGMISMATCH const golang.org/x/sys/unix.EPROGUNAVAIL const golang.org/x/sys/unix.EPROTO const golang.org/x/sys/unix.EPROTONOSUPPORT const golang.org/x/sys/unix.EPROTOTYPE const golang.org/x/sys/unix.EPWROFF const golang.org/x/sys/unix.EQFULL const golang.org/x/sys/unix.ERANGE const golang.org/x/sys/unix.EREMOTE const golang.org/x/sys/unix.EROFS const golang.org/x/sys/unix.ERPCMISMATCH const golang.org/x/sys/unix.ESHLIBVERS const golang.org/x/sys/unix.ESHUTDOWN const golang.org/x/sys/unix.ESOCKTNOSUPPORT const golang.org/x/sys/unix.ESPIPE const golang.org/x/sys/unix.ESRCH const golang.org/x/sys/unix.ESTALE const golang.org/x/sys/unix.ETIME const golang.org/x/sys/unix.ETIMEDOUT const golang.org/x/sys/unix.ETOOMANYREFS const golang.org/x/sys/unix.ETXTBSY const golang.org/x/sys/unix.EUSERS const golang.org/x/sys/unix.EWOULDBLOCK const golang.org/x/sys/unix.EXDEV
Buffer *byte Length uint64 Offset int64
Bits [32]int32 func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
Len int64 Pid int32 Start int64 Type int16 Whence int16 func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error
Val [2]int32
Bytesalloc int64 Flags uint32 Length int64 Offset int64 Posmode int32
Filt [8]uint32 func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error
Addrs int32 Flags int32 Index uint16 Msglen uint16 Pad_cgo_0 [2]byte Type uint8 Version uint8
Addrs int32 Data IfData Flags int32 Index uint16 Msglen uint16 Pad_cgo_0 [2]byte Type uint8 Version uint8
// in_addr Ifindex uint32 // in_addr
// in6_addr Ifindex uint32
InterfaceAddrMessage represents a routing message containing network interface address entries. Deprecated: Use golang.org/x/net/route instead. Data []byte Header IfaMsghdr *T : RoutingMessage
InterfaceMessage represents a routing message containing network interface entries. Deprecated: Use golang.org/x/net/route instead. Data []byte Header IfMsghdr *T : RoutingMessage
InterfaceMulticastAddrMessage represents a routing message containing network interface address entries. Deprecated: Use golang.org/x/net/route instead. Data []byte Header IfmaMsghdr2 *T : RoutingMessage
Base *byte Len uint64 (*T) SetLen(length int)
// in_addr // in_addr func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) func internal/poll.(*FD).SetsockoptIPMreq(level, name int, mreq *IPMreq) error
Interface uint32 // in6_addr func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) func internal/poll.(*FD).SetsockoptIPv6Mreq(level, name int, mreq *IPv6Mreq) error
Addr RawSockaddrInet6 Mtu uint32 func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error)
Data int64 Fflags uint32 Filter int16 Flags uint16 Ident uint64 Udata *byte func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error) func SetKevent(k *Kevent_t, fd, mode, flags int)
Linger int32 Onoff int32 func SetsockoptLinger(fd, level, opt int, l *Linger) (err error) func internal/poll.(*FD).SetsockoptLinger(level, name int, l *Linger) error
Contigbytes int64 Devoffset int64 Flags uint32
Control *byte Controllen uint32 Flags int32 Iov *Iovec Iovlen int32 Name *byte Namelen uint32 Pad_cgo_0 [4]byte Pad_cgo_1 [4]byte (*T) SetControllen(length int)
ProcAttr holds attributes that will be applied to a new process started by StartProcess. // Current working directory. // Environment. // File descriptors. Sys *SysProcAttr func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error)
Count int32 Offset int64 Pad_cgo_0 [4]byte
A RawConn is a raw network connection. 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. 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. Write is like Read but for writing. func Conn.SyscallConn() (RawConn, error) func net.(*IPConn).SyscallConn() (RawConn, error) func net.(*TCPConn).SyscallConn() (RawConn, error) func net.(*TCPListener).SyscallConn() (RawConn, error) func net.(*UDPConn).SyscallConn() (RawConn, error) func net.(*UnixConn).SyscallConn() (RawConn, error) func net.(*UnixListener).SyscallConn() (RawConn, error) func os.(*File).SyscallConn() (RawConn, error)
Data [14]int8 Family uint8 Len uint8
Addr RawSockaddr Pad [92]int8
// in_addr Family uint8 Len uint8 Port uint16 Zero [8]int8
// in6_addr Family uint8 Flowinfo uint32 Len uint8 Port uint16 Scope_id uint32
Family uint8 Len uint8 Path [104]int8
Cur uint64 Max uint64 func Getrlimit(which int, lim *Rlimit) (err error) func Setrlimit(which int, lim *Rlimit) (err error)
RouteMessage represents a routing message containing routing entries. Deprecated: Use golang.org/x/net/route instead. Data []byte Header RtMsghdr *T : RoutingMessage
RoutingMessage represents a routing message. Deprecated: Use golang.org/x/net/route instead. *InterfaceAddrMessage *InterfaceMessage *InterfaceMulticastAddrMessage *RouteMessage func ParseRoutingMessage(b []byte) (msgs []RoutingMessage, err error) func ParseRoutingSockaddr(msg RoutingMessage) ([]Sockaddr, error)
Idrss int64 Inblock int64 Isrss int64 Ixrss int64 Majflt int64 Maxrss int64 Minflt int64 Msgrcv int64 Msgsnd int64 Nivcsw int64 Nsignals int64 Nswap int64 Nvcsw int64 Oublock int64 Stime Timeval Utime Timeval func Getrusage(who int, rusage *Rusage) (err error) func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)
A Signal is a number describing a process signal. It implements the os.Signal interface. ( T) Signal() ( T) String() string T : expvar.Var T : fmt.Stringer T : os.Signal func WaitStatus.Signal() Signal func WaitStatus.StopSignal() Signal func golang.org/x/sys/unix.SignalNum(s string) Signal func golang.org/x/sys/unix.WaitStatus.Signal() Signal func golang.org/x/sys/unix.WaitStatus.StopSignal() Signal func Kill(pid int, signum Signal) (err error) func golang.org/x/sys/unix.Kill(pid int, signum Signal) (err error) func golang.org/x/sys/unix.SignalName(s Signal) string const SIGABRT const SIGALRM const SIGBUS const SIGCHLD const SIGCONT const SIGEMT const SIGFPE const SIGHUP const SIGILL const SIGINFO const SIGINT const SIGIO const SIGIOT const SIGKILL const SIGPIPE const SIGPROF const SIGQUIT const SIGSEGV const SIGSTOP const SIGSYS const SIGTERM const SIGTRAP const SIGTSTP const SIGTTIN const SIGTTOU const SIGURG const SIGUSR1 const SIGUSR2 const SIGVTALRM const SIGWINCH const SIGXCPU const SIGXFSZ const golang.org/x/sys/unix.SIGABRT const golang.org/x/sys/unix.SIGALRM const golang.org/x/sys/unix.SIGBUS const golang.org/x/sys/unix.SIGCHLD const golang.org/x/sys/unix.SIGCONT const golang.org/x/sys/unix.SIGEMT const golang.org/x/sys/unix.SIGFPE const golang.org/x/sys/unix.SIGHUP const golang.org/x/sys/unix.SIGILL const golang.org/x/sys/unix.SIGINFO const golang.org/x/sys/unix.SIGINT const golang.org/x/sys/unix.SIGIO const golang.org/x/sys/unix.SIGIOT const golang.org/x/sys/unix.SIGKILL const golang.org/x/sys/unix.SIGPIPE const golang.org/x/sys/unix.SIGPROF const golang.org/x/sys/unix.SIGQUIT const golang.org/x/sys/unix.SIGSEGV const golang.org/x/sys/unix.SIGSTOP const golang.org/x/sys/unix.SIGSYS const golang.org/x/sys/unix.SIGTERM const golang.org/x/sys/unix.SIGTRAP const golang.org/x/sys/unix.SIGTSTP const golang.org/x/sys/unix.SIGTTIN const golang.org/x/sys/unix.SIGTTOU const golang.org/x/sys/unix.SIGURG const golang.org/x/sys/unix.SIGUSR1 const golang.org/x/sys/unix.SIGUSR2 const golang.org/x/sys/unix.SIGVTALRM const golang.org/x/sys/unix.SIGWINCH const golang.org/x/sys/unix.SIGXCPU const golang.org/x/sys/unix.SIGXFSZ
*SockaddrDatalink *SockaddrInet4 *SockaddrInet6 *SockaddrUnix func Accept(fd 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) func internal/poll.(*FD).Accept() (int, Sockaddr, string, error) func internal/poll.(*FD).ReadFrom(p []byte) (int, Sockaddr, error) func internal/poll.(*FD).ReadMsg(p []byte, oob []byte) (int, int, int, Sockaddr, error) func Bind(fd int, sa Sockaddr) (err error) func Connect(fd int, sa Sockaddr) (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 internal/poll.(*FD).WriteMsg(p []byte, oob []byte, sa Sockaddr) (int, int, error) func internal/poll.(*FD).WriteTo(p []byte, sa Sockaddr) (int, error)
Addr [4]byte Port int *T : Sockaddr
Addr [16]byte Port int ZoneId uint32 *T : Sockaddr
Name string *T : Sockaddr
SocketControlMessage represents a socket control message. Data []byte Header Cmsghdr func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) func ParseUnixRights(m *SocketControlMessage) ([]int, error)
Atimespec Timespec Birthtimespec Timespec Blksize int32 Blocks int64 Ctimespec Timespec Dev int32 Flags uint32 Gen uint32 Gid uint32 Ino uint64 Lspare int32 Mode uint16 Mtimespec Timespec Nlink uint16 Pad_cgo_0 [4]byte Qspare [2]int64 Rdev int32 Size int64 Uid uint32 func Fstat(fd int, stat *Stat_t) (err error) func Lstat(path string, stat *Stat_t) (err error) func Stat(path string, stat *Stat_t) (err error) func internal/poll.(*FD).Fstat(s *Stat_t) error func internal/syscall/unix.Fstatat(dirfd int, path string, stat *Stat_t, flags int) error
Bavail uint64 Bfree uint64 Blocks uint64 Bsize uint32 Ffree uint64 Files uint64 Flags uint32 Fsid Fsid Fssubtype uint32 Fstypename [16]int8 Iosize int32 Mntfromname [1024]int8 Mntonname [1024]int8 Owner uint32 Reserved [8]uint32 Type uint32 func Fstatfs(fd int, stat *Statfs_t) (err error) func Getfsstat(buf []Statfs_t, flags int) (n int, err error) func Statfs(path string, stat *Statfs_t) (err error)
// Chroot. // Credential. // 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. // Detach fd 0 from controlling terminal // Child's process group ID if Setpgid. // Enable tracing. 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. Setpgid sets the process group ID of the child to Pgid, or, if Pgid == 0, to the new child's process ID. // Create session. func internal/syscall/execenv.Default(sys *SysProcAttr) ([]string, error)
Cc [20]uint8 Cflag uint64 Iflag uint64 Ispeed uint64 Lflag uint64 Oflag uint64 Ospeed uint64 Pad_cgo_0 [4]byte
Nsec int64 Sec int64 Nano returns the time stored in ts as nanoseconds. Unix returns the time stored in ts as seconds plus nanoseconds. func NsecToTimespec(nsec int64) Timespec func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error) func TimespecToNsec(ts Timespec) int64 func UtimesNano(path string, ts []Timespec) error
Pad_cgo_0 [4]byte Sec int64 Usec int32 Nano returns the time stored in tv as nanoseconds. Unix returns the time stored in tv as seconds plus nanoseconds. func BpfTimeout(fd int) (*Timeval, error) func NsecToTimeval(nsec int64) Timeval func Adjtime(delta *Timeval, olddelta *Timeval) (err error) func Adjtime(delta *Timeval, olddelta *Timeval) (err error) func Futimes(fd int, tv []Timeval) (err error) func Gettimeofday(tp *Timeval) (err error) func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) func SetBpfTimeout(fd int, tv *Timeval) error func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) func Settimeofday(tp *Timeval) (err error) func TimevalToNsec(tv Timeval) int64 func Utimes(path string, tv []Timeval) (err error)
Sec int32 Usec int32
( T) Continued() bool ( T) CoreDump() bool ( T) ExitStatus() int ( T) Exited() bool ( T) Signal() Signal ( T) Signaled() bool ( T) StopSignal() Signal ( T) Stopped() bool ( T) TrapCause() int func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)
Package-Level Functions (total 406, in which 188 are exported)
func Accept(fd int) (nfd int, sa Sockaddr, err error)
func Access(path string, mode uint32) (err error)
func Adjtime(delta *Timeval, olddelta *Timeval) (err error)
func Bind(fd int, sa Sockaddr) (err error)
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
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).
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(path string) (err error)
Deprecated: Use golang.org/x/net/bpf instead.
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 Close(fd int) (err error)
CmsgLen returns the value to store in the Len field of the Cmsghdr structure, taking into account any necessary alignment.
CmsgSpace returns the number of bytes an ancillary element with payload of the passed data length occupies.
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 Exchangedata(path1 string, path2 string, options int) (err error)
Exec invokes the execve(2) system call.
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)
FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
func Flock(fd int, how int) (err error)
Deprecated: Use golang.org/x/net/bpf instead.
Combination of fork and exec, careful to be thread safe.
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 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 GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error)
func Getuid() (uid int)
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 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 Mlock(b []byte) (err error)
func Mlockall(flags int) (err error)
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)
func Mprotect(b []byte, prot int) (err error)
func Munlock(b []byte) (err error)
func Munmap(b []byte) (err error)
NsecToTimespec converts a number of nanoseconds into a Timespec.
NsecToTimeval converts a number of nanoseconds into a Timeval.
func Open(path string, mode int, perm uint32) (fd int, err error)
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.
ParseRoutingMessage parses b as routing messages and returns the slice containing the RoutingMessage interfaces. Deprecated: Use golang.org/x/net/route instead.
ParseRoutingSockaddr parses msg's payload as raw sockaddrs and returns the slice containing the Sockaddr interfaces. Deprecated: Use golang.org/x/net/route instead.
ParseSocketControlMessage parses b as an array of socket control messages.
ParseUnixRights decodes a socket control message that contains an integer array of open file descriptors from another process.
func Pathconf(path string, name int) (val int, err error)
func Pipe(p []int) (err 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 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 Read(fd int, p []byte) (n int, err error)
func ReadDirent(fd int, buf []byte) (n int, err 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)
func Rename(from string, to string) (err error)
func Revoke(path string) (err error)
func Rmdir(path string) (err 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(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)
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
Deprecated: Use golang.org/x/net/bpf instead.
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 SetKevent(k *Kevent_t, fd, mode, flags int)
func Setlogin(name string) (err error)
func SetNonblock(fd int, nonblocking bool) (err error)
func Setpgid(pid int, pgid int) (err error)
func Setpriority(which int, who int, prio int) (err error)
func Setprivexec(flag 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 SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error)
func SetsockoptInt(fd, level, opt int, value int) (err error)
func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error)
func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (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 Setuid(uid int) (err error)
func Shutdown(s int, how int) (err 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(domain, typ, proto int) (fd int, err error)
func Socketpair(domain, typ, proto int) (fd [2]int, err error)
StartProcess wraps ForkExec for package os.
func Stat(path string, stat *Stat_t) (err error)
func Statfs(path string, stat *Statfs_t) (err error)
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.
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.
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 Sync() (err error)
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(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
func Sysctl(name string) (value string, err error)
func SysctlUint32(name string) (value uint32, err error)
TimespecToNSec returns the time stored in ts as nanoseconds.
TimevalToNsec returns the time stored in tv as nanoseconds.
func Truncate(path string, length int64) (err error)
func Umask(newmask int) (oldmask int)
func Undelete(path string) (err error)
UnixRights encodes a set of open file descriptors into a socket control message for sending to another process.
func Unmount(path string, flags int) (err error)
func Utimes(path string, tv []Timeval) (err 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)
Package-Level Variables (total 24, in which 5 are exported)
For testing: clients can set this flag to force creation of IPv6 sockets to return EAFNOSUPPORT.
Package-Level Constants (total 1665, in which 1642 are exported)
const B0 = 0
const B110 = 110
const B115200 = 115200
const B1200 = 1200
const B134 = 134
const B14400 = 14400
const B150 = 150
const B1800 = 1800
const B19200 = 19200
const B200 = 200
const B230400 = 230400
const B2400 = 2400
const B28800 = 28800
const B300 = 300
const B38400 = 38400
const B4800 = 4800
const B50 = 50
const B57600 = 57600
const B600 = 600
const B7200 = 7200
const B75 = 75
const B76800 = 76800
const B9600 = 9600
const BIOCFLUSH = 536887912
const BIOCGBLEN = 1074020966
const BIOCGDLT = 1074020970
const BIOCGDLTLIST = 3222028921
const BIOCGETIF = 1075855979
const BIOCGHDRCMPLT = 1074020980
const BIOCGRSIG = 1074020978
const BIOCGRTIMEOUT = 1074807406
const BIOCGSEESENT = 1074020982
const BIOCGSTATS = 1074283119
const BIOCIMMEDIATE = 2147762800
const BIOCPROMISC = 536887913
const BIOCSBLEN = 3221504614
const BIOCSDLT = 2147762808
const BIOCSETF = 2148549223
const BIOCSETIF = 2149597804
const BIOCSHDRCMPLT = 2147762805
const BIOCSRSIG = 2147762803
const BIOCSRTIMEOUT = 2148549229
const BIOCSSEESENT = 2147762807
const BIOCVERSION = 1074020977
const BPF_A = 16
const BPF_B = 16
const BPF_LEN = 128
const BPF_MSH = 160
const BPF_NEG = 128
const BPF_RELEASE = 199606
const BPF_RSH = 112
const BPF_TXA = 128
const CLOCAL = 32768
const CREAD = 2048
const CS5 = 0
const CS6 = 256
const CS7 = 512
const CS8 = 768
const CSIZE = 768
const CSTOP = 19
const CSTOPB = 1024
const CSUSP = 26
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
const ECHO = 8
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
const EV_EOF = 32768
const EV_ERROR = 16384
const EV_FLAG0 = 4096
const EV_FLAG1 = 8192
const EV_POLL = 4096
Errors
Errors
const EXTA = 19200
const EXTB = 38400
const EXTPROC = 2048
const F_OK = 0
const FLUSHO = 8388608
const HUPCL = 16384
const ICANON = 256
const ICRNL = 256
const IEXTEN = 1024
const IFF_LINK2 = 16384
const IFT_ENC = 244
const IFT_PDP = 255
const IGNCR = 128
const IMAXBEL = 8192
const IN_CLASSA_HOST = 16777215
const IN_CLASSA_NET = 4278190080
const IN_CLASSB_NET = 4294901760
const IN_CLASSC_NET = 4294967040
const IN_CLASSD_HOST = 268435455
const IN_CLASSD_NET = 4026531840
const INLCR = 64
const INPCK = 16
const IP_DF = 16384
const IP_MF = 8192
const IP_MSS = 576
const IP_RF = 32768
const ISIG = 128
const IUTF8 = 16384
const IXANY = 2048
const IXOFF = 1024
const IXON = 512
const MAP_ANON = 4096
const MAP_JIT = 2048
const MSG_EOF = 256
const MSG_HOLD = 2048
const MSG_NEEDSA = 65536
const MSG_SEND = 4096
const NOFLSH = 2147483648
const NOTE_EXEC = 536870912
const NOTE_EXIT = 2147483648
const NOTE_FFAND = 1073741824
const NOTE_FFCOPY = 3221225472
const NOTE_FFCTRLMASK = 3221225472
const NOTE_FFOR = 2147483648
const NOTE_FORK = 1073741824
const NOTE_PCTRLMASK = -1048576
const NOTE_REAP = 268435456
const NOTE_SIGNAL = 134217728
const NOTE_TRIGGER = 16777216
const NOTE_VM_ERROR = 268435456
const NOTE_VM_PRESSURE = 2147483648
const O_ALERT = 536870912
const O_CLOEXEC = 16777216
const O_CREAT = 512
const O_DIRECTORY = 1048576
const O_DSYNC = 4194304
const O_EVTONLY = 32768
const O_EXCL = 2048
const O_FSYNC = 128
const O_NOCTTY = 131072
const O_POPUP = 2147483648
const O_SYNC = 128
const O_TRUNC = 1024
const OCRNL = 16
const OFDEL = 131072
const OFILL = 128
const ONOCR = 32
const PARENB = 4096
const PARODD = 8192
const PENDIN = 536870912
const RLIM_INFINITY = 9223372036854775807
const RTA_BRD = 128
const RTF_BROADCAST = 4194304
const RTF_CONDEMNED = 33554432
const RTF_IFREF = 67108864
const RTF_IFSCOPE = 16777216
const RTF_LOCAL = 2097152
const RTF_MULTICAST = 8388608
const RTF_PINNED = 1048576
const RTF_PROTO1 = 32768
const RTF_PROTO2 = 16384
const RTF_PROTO3 = 262144
const RTM_RTTUNIT = 1000000
const S_IFBLK = 24576
const S_IFCHR = 8192
const S_IFDIR = 16384
const S_IFIFO = 4096
const S_IFLNK = 40960
const S_IFMT = 61440
const S_IFREG = 32768
const S_IFSOCK = 49152
const S_IFWHT = 57344
const S_IREAD = 256
const S_IRUSR = 256
const S_IRWXU = 448
const S_ISGID = 1024
const S_ISTXT = 512
const S_ISUID = 2048
const S_ISVTX = 512
const S_IWUSR = 128
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
Signals
const SIOCADDMULTI = 2149607729
const SIOCAIFADDR = 2151704858
const SIOCALIFADDR = 2165860637
const SIOCARPIPLL = 3223349544
const SIOCATMARK = 1074033415
const SIOCAUTOADDR = 3223349542
const SIOCAUTONETMASK = 2149607719
const SIOCDELMULTI = 2149607730
const SIOCDIFADDR = 2149607705
const SIOCDIFPHYADDR = 2149607745
const SIOCDLIFADDR = 2165860639
const SIOCGDRVSPEC = 3223873915
const SIOCGETSGCNT = 3222565404
const SIOCGETVIFCNT = 3222565403
const SIOCGETVLAN = 3223349631
const SIOCGHIWAT = 1074033409
const SIOCGIFADDR = 3223349537
const SIOCGIFALTMTU = 3223349576
const SIOCGIFASYNCMAP = 3223349628
const SIOCGIFBOND = 3223349575
const SIOCGIFBRDADDR = 3223349539
const SIOCGIFCAP = 3223349595
const SIOCGIFCONF = 3222038820
const SIOCGIFDEVMTU = 3223349572
const SIOCGIFDSTADDR = 3223349538
const SIOCGIFFLAGS = 3223349521
const SIOCGIFGENERIC = 3223349562
const SIOCGIFKPI = 3223349639
const SIOCGIFMAC = 3223349634
const SIOCGIFMEDIA = 3224135992
const SIOCGIFMETRIC = 3223349527
const SIOCGIFMTU = 3223349555
const SIOCGIFNETMASK = 3223349541
const SIOCGIFPDSTADDR = 3223349568
const SIOCGIFPHYS = 3223349557
const SIOCGIFPSRCADDR = 3223349567
const SIOCGIFSTATUS = 3274795325
const SIOCGIFVLAN = 3223349631
const SIOCGIFWAKEFLAGS = 3223349640
const SIOCGLIFADDR = 3239602462
const SIOCGLIFPHYADDR = 3239602499
const SIOCGLOWAT = 1074033411
const SIOCGPGRP = 1074033417
const SIOCIFCREATE = 3223349624
const SIOCIFCREATE2 = 3223349626
const SIOCIFDESTROY = 2149607801
const SIOCRSLVMULTI = 3222300987
const SIOCSDRVSPEC = 2150132091
const SIOCSETVLAN = 2149607806
const SIOCSHIWAT = 2147775232
const SIOCSIFADDR = 2149607692
const SIOCSIFALTMTU = 2149607749
const SIOCSIFASYNCMAP = 2149607805
const SIOCSIFBOND = 2149607750
const SIOCSIFBRDADDR = 2149607699
const SIOCSIFCAP = 2149607770
const SIOCSIFDSTADDR = 2149607694
const SIOCSIFFLAGS = 2149607696
const SIOCSIFGENERIC = 2149607737
const SIOCSIFKPI = 2149607814
const SIOCSIFLLADDR = 2149607740
const SIOCSIFMAC = 2149607811
const SIOCSIFMEDIA = 3223349559
const SIOCSIFMETRIC = 2149607704
const SIOCSIFMTU = 2149607732
const SIOCSIFNETMASK = 2149607702
const SIOCSIFPHYADDR = 2151704894
const SIOCSIFPHYS = 2149607734
const SIOCSIFVLAN = 2149607806
const SIOCSLIFPHYADDR = 2165860674
const SIOCSLOWAT = 2147775234
const SIOCSPGRP = 2147775240
const SO_ERROR = 4103
const SO_LABEL = 4112
const SO_NKE = 4129
const SO_NREAD = 4128
const SO_TYPE = 4104
const SOL_SOCKET = 65535
const SYS_SEM_POST = 273
const TCP_MAXWIN = 65535
const TCP_MSS = 512
const TIOCCBRK = 536900730
const TIOCCDTR = 536900728
const TIOCCONS = 2147775586
const TIOCDCDTIMESTAMP = 1074820184
const TIOCDRAIN = 536900702
const TIOCDSIMICROCODE = 536900693
const TIOCEXCL = 536900621
const TIOCEXT = 2147775584
const TIOCFLUSH = 2147775504
const TIOCGDRAINWAIT = 1074033750
const TIOCGETA = 1078490131
const TIOCGETD = 1074033690
const TIOCGPGRP = 1074033783
const TIOCGWINSZ = 1074295912
const TIOCIXOFF = 536900736
const TIOCIXON = 536900737
const TIOCMBIC = 2147775595
const TIOCMBIS = 2147775596
const TIOCMGDTRWAIT = 1074033754
const TIOCMGET = 1074033770
const TIOCMODG = 1074033667
const TIOCMODS = 2147775492
const TIOCMSDTRWAIT = 2147775579
const TIOCMSET = 2147775597
const TIOCNOTTY = 536900721
const TIOCNXCL = 536900622
const TIOCOUTQ = 1074033779
const TIOCPKT = 2147775600
const TIOCPTYGNAME = 1082160211
const TIOCPTYGRANT = 536900692
const TIOCPTYUNLK = 536900690
const TIOCREMOTE = 2147775593
const TIOCSBRK = 536900731
const TIOCSCONS = 536900707
const TIOCSCTTY = 536900705
const TIOCSDRAINWAIT = 2147775575
const TIOCSDTR = 536900729
const TIOCSETA = 2152231956
const TIOCSETAF = 2152231958
const TIOCSETAW = 2152231957
const TIOCSETD = 2147775515
const TIOCSIG = 536900703
const TIOCSPGRP = 2147775606
const TIOCSTART = 536900718
const TIOCSTAT = 536900709
const TIOCSTI = 2147578994
const TIOCSTOP = 536900719
const TIOCSWINSZ = 2148037735
const TIOCTIMESTAMP = 1074820185
const TIOCUCNTL = 2147775590
const TOSTOP = 4194304
const VEOF = 0
const VEOL = 1
const VMIN = 16
const VSTOP = 13
const VSUSP = 10
const VT0 = 0
const VT1 = 65536
const VTDLY = 65536
const VTIME = 17