go/src/syscall/syscall_unix.go

var Stdin

var Stdout

var Stderr

const darwin64Bit

const netbsd32Bit

// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
func clen(n []byte) int {}

type mmapper

func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {}

func (m *mmapper) Munmap(data []byte) (err error) {}

type Errno

func (e Errno) Error() string {}

func (e Errno) Is(target error) bool {}

func (e Errno) Temporary() bool {}

func (e Errno) Timeout() bool {}

var errEAGAIN

var errEINVAL

var errENOENT

// errnoErr returns common boxed Errno values, to prevent
// allocations at runtime.
func errnoErr(e Errno) error {}

type Signal

func (s Signal) Signal() {}

func (s Signal) String() string {}

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

func Write(fd int, p []byte) (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) {}

var SocketDisableIPv6

type Sockaddr

type SockaddrInet4

type SockaddrInet6

type SockaddrUnix

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

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

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

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

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

func recvfromInet4(fd int, p []byte, flags int, from *SockaddrInet4) (n int, err error) {}

func recvfromInet6(fd int, p []byte, flags int, from *SockaddrInet6) (n int, err error) {}

func recvmsgInet4(fd int, p, oob []byte, flags int, from *SockaddrInet4) (n, oobn int, recvflags int, err error) {}

func recvmsgInet6(fd int, p, oob []byte, flags int, from *SockaddrInet6) (n, oobn int, recvflags int, err error) {}

func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from 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 sendmsgNInet4(fd int, p, oob []byte, to *SockaddrInet4, flags int) (n int, err error) {}

func sendmsgNInet6(fd int, p, oob []byte, to *SockaddrInet6, flags int) (n int, err error) {}

func sendtoInet4(fd int, p []byte, flags int, to *SockaddrInet4) (err error) {}

func sendtoInet6(fd int, p []byte, flags int, to *SockaddrInet6) (err error) {}

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

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

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

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

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

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

func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) 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 Socket(domain, typ, proto int) (fd int, err error) {}

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

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

var ioSync