package unix

Import Path
	golang.org/x/sys/unix (on go.dev)

Dependency Relation
	imports 9 packages, and imported by 3 packages

Involved Source Files aliases.go constants.go dev_darwin.go dirent.go endian_little.go env_unix.go fcntl_darwin.go fdset.go ioctl.go pagesize_unix.go race0.go readdirent_getdirentries.go sockcmsg_unix.go sockcmsg_unix_other.go str.go Package unix contains an interface to the low-level operating system primitives. OS details vary depending on the underlying system, and by default, godoc will display OS-specific documentation for the current system. If you want godoc to display OS 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 this package 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 represents an operating system error describing the failure and holds a value of type syscall.Errno. syscall_bsd.go syscall_darwin.1_13.go syscall_darwin.go syscall_darwin_amd64.go syscall_darwin_libSystem.go syscall_unix.go syscall_unix_gc.go timestruct.go zerrors_darwin_amd64.go zsyscall_darwin_amd64.1_13.go zsyscall_darwin_amd64.go zsysnum_darwin_amd64.go ztypes_darwin_amd64.go asm_darwin_amd64.s zsyscall_darwin_amd64.1_13.s zsyscall_darwin_amd64.s
Code Examples package main import ( "golang.org/x/sys/unix" "log" "os" ) func main() { err := unix.Exec("/bin/ls", []string{"ls", "-al"}, os.Environ()) log.Fatal(err) } package main import ( "golang.org/x/sys/unix" "log" "os" ) func main() { f, _ := os.Create("example.lock") if err := unix.Flock(int(f.Fd()), unix.LOCK_EX); err != nil { log.Fatal(err) } // Do work here that requires the lock. When finished, release the lock: if err := unix.Flock(int(f.Fd()), unix.LOCK_UN); err != nil { log.Fatal(err) } }
Package-Level Type Names (total 71, in which 63 are exported)
/* sort exporteds by: | */
Caplen uint32 Datalen uint32 Hdrlen uint16 Tstamp Timeval32
Code uint16 Jf uint8 Jt uint8 K uint32
Insns *BpfInsn Len uint32
Drop uint32 Recv uint32
Major uint16 Minor uint16
Hz int32 Profhz int32 Stathz int32 Tick int32 Tickadj int32 func SysctlClockinfo(name string) (*Clockinfo, error)
Len uint32 Level int32 Type int32 (*T) SetLen(length int)
Id uint32 Name [96]byte func IoctlCtlInfo(fd int, ctlInfo *CtlInfo) error
Ino uint64 Name [1024]int8 Namlen uint16 Reclen uint16 Seekoff uint64 Type uint8
type Errno = syscall.Errno (basic type)
Buffer *byte Length uint64 Offset int64
Bits [32]int32 Clear removes fd from the set fds. IsSet returns whether fd is in the set fds. Set adds fd to the set fds. Zero clears the set fds. func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, 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 func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error
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 Metric int32 Msglen uint16 Type uint8 Version uint8
Addrs int32 Flags int32 Index uint16 Msglen uint16 Type uint8 Version uint8
Addrs int32 Data IfData Flags int32 Index uint16 Msglen uint16 Type uint8 Version uint8
IfreqMTU is struct ifreq used to get or set a network device's MTU. MTU int32 Name [16]byte func IoctlGetIfreqMTU(fd int, ifname string) (*IfreqMTU, error) func IoctlSetIfreqMTU(fd int, ifreq *IfreqMTU) error
// in_addr Ifindex uint32 // in_addr
// in6_addr Ifindex uint32
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)
Interface uint32 // in6_addr func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err 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 GetsockoptLinger(fd, level, opt int) (*Linger, error) func SetsockoptLinger(fd, level, opt int, l *Linger) (err error)
Flags uint32
Control *byte Controllen uint32 Flags int32 Iov *Iovec Iovlen int32 Name *byte Namelen uint32 (*T) SetControllen(length int) (*T) SetIovlen(length int)
Events int16 Fd int32 Revents int16 func Poll(fds []PollFd, timeout int) (n int, err error)
Count int32 Offset int64
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)
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)
type Signal = syscall.Signal (basic type)
Sockaddr represents a socket address. *SockaddrCtl *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 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 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)
SockaddrCtl implements the Sockaddr interface for AF_SYSTEM type sockets. ID uint32 Unit uint32 *T : Sockaddr
SockaddrInet4 implements the Sockaddr interface for AF_INET type sockets. Addr [4]byte Port int *T : Sockaddr
SockaddrInet6 implements the Sockaddr interface for AF_INET6 type sockets. Addr [16]byte Port int ZoneId uint32 *T : Sockaddr
SockaddrUnix implements the Sockaddr interface for AF_UNIX type sockets. 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)
Atim Timespec Blksize int32 Blocks int64 Btim Timespec Ctim Timespec Dev int32 Flags uint32 Gen uint32 Gid uint32 Ino uint64 Lspare int32 Mode uint16 Mtim Timespec Nlink uint16 Qspare [2]int64 Rdev int32 Size int64 Uid uint32 func Fstat(fd int, stat *Stat_t) (err error) func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) func Lstat(path string, stat *Stat_t) (err error) func Stat(path string, stat *Stat_t) (err error)
Bavail uint64 Bfree uint64 Blocks uint64 Bsize uint32 Ffree uint64 Files uint64 Flags uint32 Flags_ext uint32 Fsid Fsid Fssubtype uint32 Fstypename [16]byte Iosize int32 Mntfromname [1024]byte Mntonname [1024]byte Owner uint32 Reserved [7]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)
Cc [20]uint8 Cflag uint64 Iflag uint64 Ispeed uint64 Lflag uint64 Oflag uint64 Ospeed uint64 func IoctlGetTermios(fd int, req uint) (*Termios, error) func IoctlSetTermios(fd int, req uint, value *Termios) error
Nsec int64 Sec int64 Nano returns ts as the number of nanoseconds elapsed since the Unix epoch. Unix returns ts as the number of seconds and nanoseconds elapsed since the Unix epoch. func NsecToTimespec(nsec int64) Timespec func TimeToTimespec(t time.Time) (Timespec, error) func ClockGettime(clockid int32, time *Timespec) (err error) 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 func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error
Sec int64 Usec int32 Nano returns tv as the number of nanoseconds elapsed since the Unix epoch. Unix returns tv as the number of seconds and nanoseconds elapsed since the Unix epoch. func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) func NsecToTimeval(nsec int64) Timeval func SysctlTimeval(name string) (*Timeval, error) func Adjtime(delta *Timeval, olddelta *Timeval) (err error) func Adjtime(delta *Timeval, olddelta *Timeval) (err error) func Futimes(fd int, tv []Timeval) error func Gettimeofday(tp *Timeval) (err error) func Lutimes(path string, tv []Timeval) error func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err 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) error
Sec int32 Usec int32
Machine [256]byte Nodename [256]byte Release [256]byte Sysname [256]byte Version [256]byte func Uname(uname *Utsname) error
( T) Continued() bool ( T) CoreDump() bool ( T) ExitStatus() int ( T) Exited() bool ( T) Killed() bool ( T) Signal() syscall.Signal ( T) Signaled() bool ( T) StopSignal() syscall.Signal ( T) Stopped() bool ( T) TrapCause() int func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error)
Col uint16 Row uint16 Xpixel uint16 Ypixel uint16 func IoctlGetWinsize(fd int, req uint) (*Winsize, error) func IoctlSetWinsize(fd int, req uint, value *Winsize) error
Package-Level Functions (total 451, in which 227 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)
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).
BytePtrToString takes a pointer to a sequence of text and returns the corresponding string. If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated at a zero byte; if the zero byte is not present, the program may crash.
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).
ByteSliceToString returns a string form of the text represented by the slice s, with a terminating NUL and any bytes after the NUL removed.
func Chdir(path string) (err 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 ClockGettime(clockid int32, time *Timespec) (err error)
func Clonefile(src string, dst string, flags int) (err error)
func Clonefileat(srcDirfd int, src string, dstDirfd int, dst string, flags int) (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)
ErrnoName returns the error name for error number e.
func Exchangedata(path1 string, path2 string, options int) (err error)
Exec calls execve(2), which replaces the calling executable in the process tree. argv0 should be the full path to an executable ("/bin/ls") and the executable name should also be the first argument in argv (["ls", "-l"]). envv are the environment variables that should be passed to the new process (["USER=go", "PWD=/tmp"]).
func Exit(code int)
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
func Fchdir(fd int) (err error)
func Fchflags(fd int, flags int) (err error)
func Fchmod(fd int, mode uint32) (err error)
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
func Fchown(fd int, uid int, gid int) (err error)
func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
func Fclonefileat(srcDirfd int, dstDirfd int, dst string, flags int) (err error)
FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command.
FcntlInt performs a fcntl syscall on fd with the provided command and argument.
func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
func Flistxattr(fd int, dest []byte) (sz int, err error)
func Flock(fd int, how int) (err error)
func Fpathconf(fd int, name int) (val int, err error)
func Fremovexattr(fd int, attr string) (err error)
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error)
func Fstat(fd int, stat *Stat_t) (err error)
func Fstatat(fd int, path string, stat *Stat_t, flags int) (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 Getcwd(buf []byte) (n int, 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 GetsockoptLinger(fd, level, opt int) (*Linger, error)
GetsockoptString returns the string value of the socket option opt for the socket associated with fd at the given socket level.
func GetsockoptTimeval(fd, level, opt int) (*Timeval, error)
func GetsockoptUint64(fd, level, opt int) (value uint64, err error)
func Getuid() (uid int)
func Getxattr(path string, attr string, dest []byte) (sz int, err error)
IoctlGetIfreqMTU performs the SIOCGIFMTU ioctl operation on fd to get the MTU of the network device specified by ifname.
IoctlGetInt performs an ioctl operation which gets an integer value from fd, using the specified request number. A few ioctl requests use the return value as an output parameter; for those, IoctlRetInt should be used instead of this function.
IoctlSetIfreqMTU performs the SIOCSIFMTU ioctl operation on fd to set the MTU of the network device specified by ifreq.Name.
IoctlSetInt performs an ioctl operation which sets an integer value on fd, using the specified request number.
IoctlSetPointerInt performs an ioctl operation which sets an integer value on fd, using the specified request number. The ioctl argument is called with a pointer to the integer value, rather than passing the integer value directly.
IoctlSetTermios performs an ioctl on fd with a *Termios. The req value will usually be TCSETA or TIOCSETA.
IoctlSetWinsize performs an ioctl on fd with a *Winsize argument. To change fd's window size, the req argument should be TIOCSWINSZ.
func Issetugid() (tainted bool)
func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error)
func Kill(pid int, signum syscall.Signal) (err error)
func Kqueue() (fd int, err error)
func Lchown(path string, uid int, gid int) (err error)
func Lgetxattr(link string, attr string, dest []byte) (sz int, err error)
func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
func Listen(s int, backlog int) (err error)
func Listxattr(path string, dest []byte) (sz int, err error)
func Llistxattr(link string, dest []byte) (sz int, err error)
func Lremovexattr(link string, attr string) (err error)
func Lsetxattr(link string, attr string, data []byte, flags int) (err error)
func Lstat(path string, stat *Stat_t) (err error)
Lutimes sets the access and modification times tv on path. If path refers to a symlink, it is not dereferenced and the timestamps are set on the symlink. If tv is nil, the access and modification times are set to the current time. Otherwise tv must contain exactly 2 elements, with access time as the first element and modification time as the second element.
func Madvise(b []byte, behav int) (err error)
Major returns the major component of a Darwin device number.
Minor returns the minor component of a Darwin device number.
Mkdev returns a Darwin device number generated from the given major and minor components.
func Mkdir(path string, mode uint32) (err error)
func Mkdirat(dirfd int, 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 Msync(b []byte, flags int) (err error)
func Munlock(b []byte) (err error)
func Munmap(b []byte) (err error)
NsecToTimespec takes a number of nanoseconds since the Unix epoch and returns the corresponding Timespec value.
NsecToTimeval takes a number of nanoseconds since the Unix epoch and returns the corresponding Timeval value.
func Open(path string, mode int, perm uint32) (fd int, err error)
func Openat(dirfd int, 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.
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 Poll(fds []PollFd, timeout int) (n 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 syscall.Errno)
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
func Read(fd int, p []byte) (n int, err error)
ReadDirent reads directory entries from fd and writes them into buf.
func Readlinkat(dirfd int, path string, 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 Removexattr(path string, attr string) (err error)
func Rename(from string, to string) (err error)
func Renameat(fromfd int, from string, tofd int, to string) (err error)
func Revoke(path string) (err error)
func Rmdir(path string) (err error)
func Seek(fd int, offset int64, whence int) (newoffset int64, err error)
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, 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 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 SetsockoptUint64(fd, level, opt int, value uint64) (err error)
func Setuid(uid int) (err error)
func Setxattr(path string, attr string, data []byte, flags int) (err error)
func Shutdown(s int, how int) (err error)
SignalName returns the signal name for signal number s.
SignalNum returns the syscall.Signal for signal named s, or 0 if a signal with such name is not found. The signal name should start with "SIG".
func Socket(domain, typ, proto int) (fd int, err error)
func Socketpair(domain, typ, proto int) (fd [2]int, err error)
func Stat(path string, stat *Stat_t) (err error)
func Statfs(path string, stat *Statfs_t) (err error)
func Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
func Sync() (err error)
func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
func SysctlArgs(name string, args ...int) (string, error)
func SysctlRaw(name string, args ...int) ([]byte, error)
func SysctlUint64(name string, args ...int) (uint64, error)
TimespecToNsec converts a Timespec value into a number of nanoseconds since the Unix epoch.
TimeToTimespec converts t into a Timespec. On some 32-bit systems the range of valid Timespec values are smaller than that of time.Time values. So if t is out of the valid range of Timespec, it returns a zero Timespec and ERANGE.
TimevalToNsec converts a Timeval value into a number of nanoseconds since the Unix epoch.
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 Unlinkat(dirfd int, path string, flags int) (err error)
func Unmount(path string, flags int) (err error)
func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) 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 14, in which 4 are exported)
For testing: clients can set this flag to force creation of IPv6 sockets to return EAFNOSUPPORT.
Package-Level Constants (total 2106, in which 2098 are exported)
const ATTR_CMN_ERROR = 536870912
const ATTR_CMN_SETMASK = 1103625984
const ATTR_CMN_UUID = 8388608
const ATTR_VOL_INFO = 2147483648
const ATTR_VOL_SETMASK = 2147491840
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 BIOCSETFNR = 2148549246
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 BS0 = 0
const BS1 = 32768
const BSDLY = 32768
const CLOCAL = 32768
const CR0 = 0
const CR1 = 4096
const CR2 = 8192
const CR3 = 12288
const CRDLY = 12288
const CREAD = 2048
const CRTSCTS = 196608
const CS5 = 0
const CS6 = 256
const CS7 = 512
const CS8 = 768
const CSIZE = 768
const CSTOP = 19
const CSTOPB = 1024
const CSUSP = 26
const CTLIOCGINFO = 3227799043
const DLT_AOS = 222
const DLT_ENC = 109
const DLT_ERF = 197
const DLT_LIN = 212
const DLT_MFR = 182
const DLT_PPI = 192
const DLT_RIO = 124
const DLT_USB = 186
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
const EV_EOF = 32768
const EV_ERROR = 16384
const EV_FLAG0 = 4096
const EV_FLAG1 = 8192
const EV_POLL = 4096
Errors
const EXTA = 19200
const EXTB = 38400
const EXTPROC = 2048
const F_OK = 0
const FF0 = 0
const FF1 = 16384
const FFDLY = 16384
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 MNT_DEFWRITE = 33554432
const MNT_FORCE = 524288
const MNT_JOURNALED = 8388608
const MNT_MULTILABEL = 67108864
const MNT_NOATIME = 268435456
const MNT_NOBLOCK = 131072
const MNT_RELOAD = 262144
const MNT_ROOTFS = 16384
const MNT_UPDATE = 65536
const MNT_VISFLAGMASK = 401667583
const MSG_EOF = 256
const MSG_HOLD = 2048
const MSG_NEEDSA = 65536
const MSG_SEND = 4096
const NL0 = 0
const NL1 = 256
const NL2 = 512
const NL3 = 768
const NLDLY = 768
const NOFLSH = 2147483648
const NOKERNINFO = 33554432
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 PathMax = 1024
const PENDIN = 536870912
const R_OK = 4
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 RTF_PROXY = 134217728
const RTF_ROUTER = 268435456
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 SIOCARPIPLL = 3223349544
const SIOCATMARK = 1074033415
const SIOCAUTOADDR = 3223349542
const SIOCAUTONETMASK = 2149607719
const SIOCDELMULTI = 2149607730
const SIOCDIFADDR = 2149607705
const SIOCDIFPHYADDR = 2149607745
const SIOCGDRVSPEC = 3223873915
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 SIOCGLOWAT = 1074033411
const SIOCGPGRP = 1074033417
const SIOCIFCREATE = 3223349624
const SIOCIFCREATE2 = 3223349626
const SIOCIFDESTROY = 2149607801
const SIOCIFGCLONERS = 3222301057
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 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
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Some external packages rely on SYS___SYSCTL being defined to implement their own sysctl wrappers. Provide it here, even though direct syscalls are no longer supported on darwin.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
Deprecated: Use libSystem wrappers instead of direct syscalls.
const TAB0 = 0
const TAB1 = 1024
const TAB2 = 2048
const TAB3 = 4
const TABDLY = 3076
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
const W_OK = 2
const X_OK = 1