unix

Imports

Imports #

"runtime"
"sync"
"syscall"
"unsafe"
"syscall"
"syscall"
"unsafe"
"syscall"
"syscall"
"syscall"
"unsafe"
"internal/abi"
"syscall"
"unsafe"
"syscall"
"syscall"
"syscall"
_ "unsafe"
"syscall"
"syscall"
"unsafe"
"internal/abi"
"syscall"
"unsafe"
"syscall"
"unsafe"
"syscall"
"unsafe"
"syscall"
"syscall"
"syscall"
"syscall"
"unsafe"
"internal/abi"
"syscall"
"unsafe"
"syscall"
"syscall"
"unsafe"
"sync/atomic"
"syscall"
"unsafe"
"syscall"
"unsafe"
"syscall"
_ "unsafe"
"internal/abi"
"syscall"
"unsafe"
"sync"
"syscall"
"syscall"
_ "unsafe"
"syscall"
"internal/abi"
"syscall"
"unsafe"
"internal/abi"
"syscall"
"unsafe"
"syscall"
"syscall"
"syscall"
"syscall"
"syscall"
"runtime"
"syscall"
"syscall"
"internal/abi"
"unsafe"
"syscall"
"unsafe"
"internal/abi"
"unsafe"
"syscall"
"unsafe"
"syscall"
"internal/abi"
"syscall"
"unsafe"
"syscall"
_ "unsafe"
"syscall"
"syscall"
"unsafe"
"syscall"
"unsafe"
"syscall"
"syscall"
"syscall"
"sync/atomic"
"syscall"
"unsafe"
"syscall"
_ "unsafe"
"syscall"
_ "unsafe"
"syscall"

Constants & Variables

AI_ALL const #

const AI_ALL = 0x100

AI_CANONNAME const #

const AI_CANONNAME = 0x2

AI_MASK const #

const AI_MASK = 0x1407

AI_V4MAPPED const #

const AI_V4MAPPED = 0x800

AT_EACCESS const #

const AT_EACCESS = 0x4

AT_EACCESS const #

const AT_EACCESS = 0x100

AT_EACCESS const #

const AT_EACCESS = 0x1

AT_EACCESS const #

const AT_EACCESS = 0x10

AT_EACCESS const #

const AT_EACCESS = 0x1

AT_EACCESS const #

const AT_EACCESS = 0x200

AT_EACCESS const #

const AT_EACCESS = 0x4

AT_EACCESS const #

const AT_EACCESS = 0x100

AT_FDCWD const #

const AT_FDCWD = 0xfffafdcd

AT_FDCWD const #

const AT_FDCWD = *ast.UnaryExpr

AT_FDCWD const #

const AT_FDCWD = 0xffd19553

AT_FDCWD const #

const AT_FDCWD = *ast.UnaryExpr

AT_FDCWD const #

const AT_FDCWD = *ast.UnaryExpr

AT_FDCWD const #

const AT_FDCWD = *ast.UnaryExpr

AT_FDCWD const #

const AT_FDCWD = *ast.UnaryExpr

AT_FDCWD const #

const AT_FDCWD = *ast.UnaryExpr

AT_REMOVEDIR const #

const AT_REMOVEDIR = 0x80

AT_REMOVEDIR const #

The values of these constants are not part of the WASI API.

const AT_REMOVEDIR = 0x200

AT_REMOVEDIR const #

const AT_REMOVEDIR = 0x200

AT_REMOVEDIR const #

const AT_REMOVEDIR = 0x800

AT_REMOVEDIR const #

const AT_REMOVEDIR = 0x1

AT_REMOVEDIR const #

const AT_REMOVEDIR = 0x08

AT_REMOVEDIR const #

const AT_REMOVEDIR = 0x800

AT_REMOVEDIR const #

const AT_REMOVEDIR = 0x2

AT_REMOVEDIR const #

const AT_REMOVEDIR = 0x1

EAI_ADDRFAMILY const #

const EAI_ADDRFAMILY = 1

EAI_AGAIN const #

const EAI_AGAIN = 2

EAI_NODATA const #

const EAI_NODATA = 7

EAI_NONAME const #

const EAI_NONAME = 8

EAI_OVERFLOW const #

const EAI_OVERFLOW = 14

EAI_SERVICE const #

const EAI_SERVICE = 9

EAI_SYSTEM const #

const EAI_SYSTEM = 11

GRND_NONBLOCK const #

GRND_NONBLOCK means return EAGAIN rather than blocking.

const GRND_NONBLOCK GetRandomFlag = 0x0001

GRND_NONBLOCK const #

GRND_NONBLOCK means return EAGAIN rather than blocking.

const GRND_NONBLOCK GetRandomFlag = 0x0001

GRND_NONBLOCK const #

GRND_NONBLOCK means return EAGAIN rather than blocking.

const GRND_NONBLOCK GetRandomFlag = 0x0001

GRND_NONBLOCK const #

GRND_NONBLOCK means return EAGAIN rather than blocking.

const GRND_NONBLOCK GetRandomFlag = 0x0002

GRND_RANDOM const #

GRND_RANDOM means use the /dev/random pool instead of /dev/urandom.

const GRND_RANDOM GetRandomFlag = 0x0002

GRND_RANDOM const #

GRND_RANDOM is only set for portability purpose, no-op on DragonFlyBSD.

const GRND_RANDOM GetRandomFlag = 0x0001

GRND_RANDOM const #

GRND_RANDOM is only set for portability purpose, no-op on FreeBSD.

const GRND_RANDOM GetRandomFlag = 0x0002

GRND_RANDOM const #

GRND_RANDOM means use the /dev/random pool instead of /dev/urandom.

const GRND_RANDOM GetRandomFlag = 0x0002

NI_NAMEREQD const #

const NI_NAMEREQD = 4

NoFollowErrno const #

NoFollowErrno is the error returned from open/openat called with O_NOFOLLOW flag, when the trailing component (basename) of the path is a symbolic link.

const NoFollowErrno = noFollowErrno

P_PID const #

const P_PID = 1

P_PIDFD const #

const P_PIDFD = 3

R_OK const #

const R_OK = 0x4

SC_GETGR_R_SIZE_MAX const #

const SC_GETGR_R_SIZE_MAX = 0x46

SC_GETPW_R_SIZE_MAX const #

const SC_GETPW_R_SIZE_MAX = 0x47

SupportAccept4 var #

SupportAccept4 tests whether accept4 system call is available.

var SupportAccept4 = *ast.CallExpr

SupportCopyFileRange var #

SupportCopyFileRange reports whether the kernel supports the copy_file_range(2). This function will examine both the kernel version and the availability of the system call.

var SupportCopyFileRange = *ast.CallExpr

SupportSockNonblockCloexec var #

SupportSockNonblockCloexec tests if SOCK_NONBLOCK and SOCK_CLOEXEC are supported for socket() system call, returns true if affirmative.

var SupportSockNonblockCloexec = *ast.CallExpr

SupportTCPKeepAliveIdleIntvlCNT var #

SupportTCPKeepAliveIdleIntvlCNT determines whether the TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT are available by checking the kernel version for Solaris 11.4.

var SupportTCPKeepAliveIdleIntvlCNT = *ast.CallExpr

UTIME_OMIT const #

const UTIME_OMIT = *ast.UnaryExpr

UTIME_OMIT const #

const UTIME_OMIT = *ast.UnaryExpr

UTIME_OMIT const #

const UTIME_OMIT = *ast.UnaryExpr

UTIME_OMIT const #

const UTIME_OMIT = *ast.UnaryExpr

UTIME_OMIT const #

const UTIME_OMIT = *ast.BinaryExpr

UTIME_OMIT const #

const UTIME_OMIT = *ast.UnaryExpr

UTIME_OMIT const #

const UTIME_OMIT = 0x3ffffffe

UTIME_OMIT const #

UTIME_OMIT is the sentinel value to indicate that a time value should not be changed. It is useful for example to indicate for example with UtimesNano to avoid changing AccessTime or ModifiedTime. Its value must match syscall/fs_js.go

const UTIME_OMIT = *ast.UnaryExpr

UTIME_OMIT const #

const UTIME_OMIT = *ast.UnaryExpr

UTIME_OMIT const #

UTIME_OMIT is the sentinel value to indicate that a time value should not be changed. It is useful for example to indicate for example with UtimesNano to avoid changing AccessTime or ModifiedTime. Its value must match syscall/fs_wasip1.go

const UTIME_OMIT = *ast.UnaryExpr

W_OK const #

const W_OK = 0x2

X_OK const #

const X_OK = 0x1

_CLD_CONTINUED const #

const _CLD_CONTINUED = 6

_CLD_DUMPED const #

const _CLD_DUMPED = 3

_CLD_EXITED const #

Possible values for SiginfoChild.Code field.

const _CLD_EXITED int32 = 1

_CLD_KILLED const #

const _CLD_KILLED = 2

_CLD_STOPPED const #

const _CLD_STOPPED = 5

_CLD_TRAPPED const #

const _CLD_TRAPPED = 4

_CTL_KERN const #

const _CTL_KERN = 1

_KERN_ARND const #

const _KERN_ARND = 81

_zero var #

Single-word zero for use when we need a valid pointer to 0 bytes.

var _zero uintptr

continued const #

const continued = 0xffff

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 391

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 4360

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 375

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 569

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 326

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 377

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 5320

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 379

copyFileRangeTrap const #

const copyFileRangeTrap uintptr = 285

core const #

These are the same as in syscall/syscall_linux.go.

const core = 0x80

faccessat var #

var faccessat = syscall.Faccessat

fstatatTrap const #

const fstatatTrap uintptr = syscall.SYS_FSTATAT

fstatatTrap const #

const fstatatTrap uintptr = syscall.SYS_FSTATAT

fstatatTrap const #

const fstatatTrap uintptr = syscall.SYS_FSTATAT64

fstatatTrap const #

const fstatatTrap uintptr = syscall.SYS_NEWFSTATAT

fstatatTrap const #

const fstatatTrap uintptr = syscall.SYS_FSTATAT

fstatatTrap const #

const fstatatTrap uintptr = syscall.SYS_FSTATAT

getrandomTrap const #

const getrandomTrap uintptr = 278

getrandomTrap const #

const getrandomTrap uintptr = 349

getrandomTrap const #

const getrandomTrap uintptr = 4353

getrandomTrap const #

DragonFlyBSD getrandom system call number.

const getrandomTrap uintptr = 550

getrandomTrap const #

FreeBSD getrandom system call number.

const getrandomTrap uintptr = 563

getrandomTrap const #

const getrandomTrap uintptr = 359

getrandomTrap const #

const getrandomTrap uintptr = 5313

getrandomTrap const #

const getrandomTrap uintptr = 318

getrandomTrap const #

const getrandomTrap uintptr = 384

getrandomTrap const #

const getrandomTrap uintptr = 355

getrandomUnsupported var #

var getrandomUnsupported atomic.Bool

getrandomUnsupported var #

var getrandomUnsupported atomic.Bool

is64bit const #

const is64bit = *ast.BinaryExpr

libc_ioctl var #

go:cgo_import_dynamic libc_ioctl ioctl "libc.a/shr_64.o" go:linkname libc_ioctl libc_ioctl

var libc_ioctl uintptr

mkdiratTrap const #

const mkdiratTrap uintptr = syscall.SYS_MKDIRAT

mkdiratTrap const #

const mkdiratTrap uintptr = syscall.SYS_MKDIRAT

mkdiratTrap const #

const mkdiratTrap uintptr = syscall.SYS_MKDIRAT

mkdiratTrap const #

const mkdiratTrap uintptr = syscall.SYS_MKDIRAT

mkdiratTrap const #

const mkdiratTrap uintptr = syscall.SYS_MKDIRAT

noFollowErrno const #

References: - https://man.freebsd.org/cgi/man.cgi?open(2) - https://man.dragonflybsd.org/?command=open§ion=2

const noFollowErrno = syscall.EMLINK

noFollowErrno const #

POSIX.1-2008 says it's ELOOP. Most platforms follow: - aix: O_NOFOLLOW not documented (https://www.ibm.com/docs/ssw_aix_73/o_bostechref/open.html), assuming ELOOP - android: see linux - darwin: https://github.com/apple/darwin-xnu/blob/main/bsd/man/man2/open.2 - hurd: who knows if it works at all (https://www.gnu.org/software/hurd/open_issues/open_symlink.html) - illumos: https://illumos.org/man/2/open - ios: see darwin - linux: https://man7.org/linux/man-pages/man2/openat.2.html - openbsd: https://man.openbsd.org/open.2 - solaris: https://docs.oracle.com/cd/E23824_01/html/821-1463/open-2.html

const noFollowErrno = syscall.ELOOP

noFollowErrno const #

Reference: https://man.netbsd.org/open.2

const noFollowErrno = syscall.EFTYPE

openat2Trap const #

const openat2Trap uintptr = 437

openat2Trap const #

const openat2Trap uintptr = 437

openat2Trap const #

const openat2Trap uintptr = 4437

openat2Trap const #

const openat2Trap uintptr = 437

openat2Trap const #

const openat2Trap uintptr = 5437

openat2Trap const #

const openat2Trap uintptr = 437

openat2Trap const #

const openat2Trap uintptr = 437

openat2Trap const #

const openat2Trap uintptr = 437

openatTrap const #

const openatTrap uintptr = syscall.SYS_OPENAT

openatTrap const #

const openatTrap uintptr = syscall.SYS_OPENAT

openatTrap const #

const openatTrap uintptr = syscall.SYS_OPENAT

openatTrap const #

const openatTrap uintptr = syscall.SYS_OPENAT

openatTrap const #

const openatTrap uintptr = syscall.SYS_OPENAT

pidfdOpenTrap const #

const pidfdOpenTrap uintptr = 434

pidfdOpenTrap const #

const pidfdOpenTrap uintptr = 434

pidfdOpenTrap const #

const pidfdOpenTrap uintptr = 434

pidfdOpenTrap const #

const pidfdOpenTrap uintptr = 5434

pidfdOpenTrap const #

const pidfdOpenTrap uintptr = 434

pidfdOpenTrap const #

const pidfdOpenTrap uintptr = 434

pidfdOpenTrap const #

const pidfdOpenTrap uintptr = 4434

pidfdOpenTrap const #

const pidfdOpenTrap uintptr = 434

pidfdSendSignalTrap const #

const pidfdSendSignalTrap uintptr = 424

pidfdSendSignalTrap const #

const pidfdSendSignalTrap uintptr = 424

pidfdSendSignalTrap const #

const pidfdSendSignalTrap uintptr = 5424

pidfdSendSignalTrap const #

const pidfdSendSignalTrap uintptr = 424

pidfdSendSignalTrap const #

const pidfdSendSignalTrap uintptr = 424

pidfdSendSignalTrap const #

const pidfdSendSignalTrap uintptr = 424

pidfdSendSignalTrap const #

const pidfdSendSignalTrap uintptr = 4424

pidfdSendSignalTrap const #

const pidfdSendSignalTrap uintptr = 424

posixFallocateTrap const #

const posixFallocateTrap uintptr = syscall.SYS_POSIX_FALLOCATE

procFaccessat var #

var procFaccessat uintptr

procFstatat var #

var procFstatat uintptr

procGetrandom var #

var procGetrandom uintptr

procMkdirat var #

var procMkdirat uintptr

procOpenat var #

var procOpenat uintptr

procReadlinkat var #

var procReadlinkat uintptr

procUname var #

var procUname uintptr

procUnlinkat var #

var procUnlinkat uintptr

readlinkatTrap const #

const readlinkatTrap uintptr = syscall.SYS_READLINKAT

readlinkatTrap const #

const readlinkatTrap uintptr = syscall.SYS_READLINKAT

readlinkatTrap const #

const readlinkatTrap uintptr = syscall.SYS_READLINKAT

readlinkatTrap const #

const readlinkatTrap uintptr = syscall.SYS_READLINKAT

readlinkatTrap const #

const readlinkatTrap uintptr = syscall.SYS_READLINKAT

stopped const #

const stopped = 0x7f

unlinkatTrap const #

const unlinkatTrap uintptr = syscall.SYS_UNLINKAT

unlinkatTrap const #

const unlinkatTrap uintptr = syscall.SYS_UNLINKAT

unlinkatTrap const #

const unlinkatTrap uintptr = syscall.SYS_UNLINKAT

unlinkatTrap const #

const unlinkatTrap uintptr = syscall.SYS_UNLINKAT

unlinkatTrap const #

const unlinkatTrap uintptr = syscall.SYS_UNLINKAT

Type Aliases

GetRandomFlag type #

GetRandomFlag is a flag supported by the getrandom system call.

type GetRandomFlag uintptr

GetRandomFlag type #

GetRandomFlag is a flag supported by the getrandom system call.

type GetRandomFlag uintptr

size type #

type size uint32

Structs

Addrinfo struct #

type Addrinfo struct {
Flags int32
Family int32
Socktype int32
Protocol int32
Addrlen uint32
Canonname *byte
Addr *syscall.RawSockaddr
Next *Addrinfo
}

Group struct #

type Group struct {
Name *byte
Passwd *byte
Gid uint32
Mem **byte
}

Passwd struct #

type Passwd struct {
Name *byte
Passwd *byte
Uid uint32
Gid uint32
Change int64
Class *byte
Gecos *byte
Dir *byte
Shell *byte
Expire int64
}

ResState struct #

type ResState struct {
unexported [69]uintptr
}

SiginfoChild struct #

SiginfoChild is a struct filled in by Linux waitid syscall. In C, siginfo_t contains a union with multiple members; this struct corresponds to one used when Signo is SIGCHLD. NOTE fields are exported to be used by TestSiginfoChildLayout.

type SiginfoChild struct {
Signo int32
siErrnoCode
_ [is64bit]int32
Pid int32
Uid uint32
Status int32
_ [*ast.BinaryExpr]byte
}

siErrnoCode struct #

type siErrnoCode struct {
Errno int32
Code int32
}

siErrnoCode struct #

type siErrnoCode struct {
Code int32
Errno int32
}

utsname struct #

utsname represents the fields of a struct utsname defined in .

type utsname struct {
Sysname [257]byte
Nodename [257]byte
Release [257]byte
Version [257]byte
Machine [257]byte
}

Functions

ARC4Random function #

ARC4Random calls the macOS arc4random_buf(3) function.

func ARC4Random(p []byte)

ARC4Random function #

func ARC4Random(p []byte)

Arandom function #

func Arandom(p []byte) error

CopyFileRange function #

func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)

Eaccess function #

func Eaccess(path string, mode uint32) error

Fcntl function #

func Fcntl(fd int, cmd int, arg int) (int, error)

Fcntl function #

func Fcntl(fd int, cmd int, arg int) (int, error)

Fcntl function #

func Fcntl(fd int, cmd int, arg int) (int, error)

Freeaddrinfo function #

func Freeaddrinfo(ai *Addrinfo)

Fstatat function #

func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error

Fstatat function #

func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error

Fstatat function #

func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error

Fstatat function #

func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error

Fstatat function #

func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error

GaiStrerror function #

func GaiStrerror(ecode int) string

GetRandom function #

GetRandom calls the getrandom system call.

func GetRandom(p []byte, flags GetRandomFlag) (n int, err error)

GetRandom function #

GetRandom calls the getrandom system call.

func GetRandom(p []byte, flags GetRandomFlag) (n int, err error)

Getaddrinfo function #

func Getaddrinfo(hostname *byte, servname *byte, hints *Addrinfo, res **Addrinfo) (int, error)

Getgrgid function #

func Getgrgid(gid uint32, grp *Group, buf *byte, size uintptr, result **Group) syscall.Errno

Getgrnam function #

func Getgrnam(name *byte, grp *Group, buf *byte, size uintptr, result **Group) syscall.Errno

Getgrouplist function #

func Getgrouplist(name *byte, gid uint32, gids *uint32, n *int32) error

Getnameinfo function #

func Getnameinfo(sa *syscall.RawSockaddr, salen int, host *byte, hostlen int, serv *byte, servlen int, flags int) (int, error)

Getpwnam function #

func Getpwnam(name *byte, pwd *Passwd, buf *byte, size uintptr, result **Passwd) syscall.Errno

Getpwuid function #

func Getpwuid(uid uint32, pwd *Passwd, buf *byte, size uintptr, result **Passwd) syscall.Errno

GoString function #

func GoString(p *byte) string

Grantpt function #

func Grantpt(fd int) error

HasNonblockFlag function #

func HasNonblockFlag(flag int) bool

HasNonblockFlag function #

func HasNonblockFlag(flag int) bool

HasNonblockFlag function #

func HasNonblockFlag(flag int) bool

Ioctl function #

func Ioctl(fd int, cmd int, args unsafe.Pointer) (err error)

IsNonblock function #

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

IsNonblock function #

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

IsNonblock function #

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

KernelVersion function #

func KernelVersion() (major int, minor int)

KernelVersion function #

KernelVersion returns major and minor kernel version numbers parsed from the syscall.Uname's Version field, or (0, 0) if the version can't be obtained or parsed.

func KernelVersion() (major int, minor int)

KernelVersion function #

KernelVersion returns major and minor kernel version numbers parsed from the syscall.Sysctl("kern.osrelease")'s value, or (0, 0) if the version can't be obtained or parsed.

func KernelVersion() (major int, minor int)

KernelVersion function #

KernelVersion returns major and minor kernel version numbers parsed from the syscall.Uname's Release field, or (0, 0) if the version can't be obtained or parsed.

func KernelVersion() (major int, minor int)

Mkdirat function #

func Mkdirat(dirfd int, path string, mode uint32) error

Mkdirat function #

func Mkdirat(dirfd int, path string, mode uint32) error

Mkdirat function #

func Mkdirat(dirfd int, path string, mode uint32) error

Mkdirat function #

func Mkdirat(dirfd int, path string, mode uint32) error

Mkdirat function #

func Mkdirat(dirfd int, path string, mode uint32) error

Openat function #

func Openat(dirfd int, path string, flags int, perm uint32) (int, error)

Openat function #

func Openat(dirfd int, path string, flags int, perm uint32) (int, error)

Openat function #

func Openat(dirfd int, path string, flags int, perm uint32) (int, error)

Openat function #

func Openat(dirfd int, path string, flags int, perm uint32) (int, error)

PidFDOpen function #

func PidFDOpen(pid int, flags int) (uintptr, error)

PidFDSendSignal function #

func PidFDSendSignal(pidfd uintptr, s syscall.Signal) error

PosixFallocate function #

func PosixFallocate(fd int, off int64, size int64) error

PosixFallocate function #

func PosixFallocate(fd int, off int64, size int64) error

PosixFallocate function #

func PosixFallocate(fd int, off int64, size int64) error

PosixOpenpt function #

func PosixOpenpt(flag int) (fd int, err error)

Ptsname function #

func Ptsname(fd int) (string, error)

Readlinkat function #

func Readlinkat(dirfd int, path string, buf []byte) (int, error)

Readlinkat function #

func Readlinkat(dirfd int, path string, buf []byte) (int, error)

Readlinkat function #

func Readlinkat(dirfd int, path string, buf []byte) (int, error)

Readlinkat function #

func Readlinkat(dirfd int, path string, buf []byte) (int, error)

Readlinkat function #

func Readlinkat(dirfd int, path string, buf []byte) (int, error)

RecvfromInet4 function #

go:linkname RecvfromInet4 syscall.recvfromInet4 go:noescape

func RecvfromInet4(fd int, p []byte, flags int, from *syscall.SockaddrInet4) (int, error)

RecvfromInet4 function #

func RecvfromInet4(fd int, p []byte, flags int, from *syscall.SockaddrInet4) (int, error)

RecvfromInet4 function #

func RecvfromInet4(fd int, p []byte, flags int, from *syscall.SockaddrInet4) (int, error)

RecvfromInet6 function #

func RecvfromInet6(fd int, p []byte, flags int, from *syscall.SockaddrInet6) (n int, err error)

RecvfromInet6 function #

func RecvfromInet6(fd int, p []byte, flags int, from *syscall.SockaddrInet6) (n int, err error)

RecvfromInet6 function #

go:linkname RecvfromInet6 syscall.recvfromInet6 go:noescape

func RecvfromInet6(fd int, p []byte, flags int, from *syscall.SockaddrInet6) (n int, err error)

RecvmsgInet4 function #

func RecvmsgInet4(fd int, p []byte, oob []byte, flags int, from *syscall.SockaddrInet4) (n int, oobn int, recvflags int, err error)

RecvmsgInet4 function #

go:linkname RecvmsgInet4 syscall.recvmsgInet4 go:noescape

func RecvmsgInet4(fd int, p []byte, oob []byte, flags int, from *syscall.SockaddrInet4) (n int, oobn int, recvflags int, err error)

RecvmsgInet4 function #

func RecvmsgInet4(fd int, p []byte, oob []byte, flags int, from *syscall.SockaddrInet4) (n int, oobn int, recvflags int, err error)

RecvmsgInet6 function #

func RecvmsgInet6(fd int, p []byte, oob []byte, flags int, from *syscall.SockaddrInet6) (n int, oobn int, recvflags int, err error)

RecvmsgInet6 function #

go:linkname RecvmsgInet6 syscall.recvmsgInet6 go:noescape

func RecvmsgInet6(fd int, p []byte, oob []byte, flags int, from *syscall.SockaddrInet6) (n int, oobn int, recvflags int, err error)

RecvmsgInet6 function #

func RecvmsgInet6(fd int, p []byte, oob []byte, flags int, from *syscall.SockaddrInet6) (n int, oobn int, recvflags int, err error)

ResNclose function #

func ResNclose(state *ResState)

ResNinit function #

func ResNinit(state *ResState) error

ResNsearch function #

func ResNsearch(state *ResState, dname *byte, class int, typ int, ans *byte, anslen int) (int, error)

SendmsgNInet4 function #

func SendmsgNInet4(fd int, p []byte, oob []byte, to *syscall.SockaddrInet4, flags int) (n int, err error)

SendmsgNInet4 function #

go:linkname SendmsgNInet4 syscall.sendmsgNInet4 go:noescape

func SendmsgNInet4(fd int, p []byte, oob []byte, to *syscall.SockaddrInet4, flags int) (n int, err error)

SendmsgNInet4 function #

func SendmsgNInet4(fd int, p []byte, oob []byte, to *syscall.SockaddrInet4, flags int) (n int, err error)

SendmsgNInet6 function #

go:linkname SendmsgNInet6 syscall.sendmsgNInet6 go:noescape

func SendmsgNInet6(fd int, p []byte, oob []byte, to *syscall.SockaddrInet6, flags int) (n int, err error)

SendmsgNInet6 function #

func SendmsgNInet6(fd int, p []byte, oob []byte, to *syscall.SockaddrInet6, flags int) (n int, err error)

SendmsgNInet6 function #

func SendmsgNInet6(fd int, p []byte, oob []byte, to *syscall.SockaddrInet6, flags int) (n int, err error)

SendtoInet4 function #

func SendtoInet4(fd int, p []byte, flags int, to *syscall.SockaddrInet4) (err error)

SendtoInet4 function #

go:linkname SendtoInet4 syscall.sendtoInet4 go:noescape

func SendtoInet4(fd int, p []byte, flags int, to *syscall.SockaddrInet4) (err error)

SendtoInet4 function #

func SendtoInet4(fd int, p []byte, flags int, to *syscall.SockaddrInet4) (err error)

SendtoInet6 function #

go:linkname SendtoInet6 syscall.sendtoInet6 go:noescape

func SendtoInet6(fd int, p []byte, flags int, to *syscall.SockaddrInet6) (err error)

SendtoInet6 function #

func SendtoInet6(fd int, p []byte, flags int, to *syscall.SockaddrInet6) (err error)

SendtoInet6 function #

func SendtoInet6(fd int, p []byte, flags int, to *syscall.SockaddrInet6) (err error)

Sysconf function #

func Sysconf(key int32) int64

Tcsetpgrp function #

func Tcsetpgrp(fd int, pgid int32) (err error)

Tcsetpgrp function #

func Tcsetpgrp(fd int, pgid int32) (err error)

Unlinkat function #

func Unlinkat(dirfd int, path string, flags int) error

Unlinkat function #

func Unlinkat(dirfd int, path string, flags int) error

Unlinkat function #

func Unlinkat(dirfd int, path string, flags int) error

Unlinkat function #

func Unlinkat(dirfd int, path string, flags int) error

Unlockpt function #

func Unlockpt(fd int) error

WaitStatus method #

WaitStatus converts SiginfoChild, as filled in by the waitid syscall, to syscall.WaitStatus.

func (s *SiginfoChild) WaitStatus() (ws syscall.WaitStatus)

Waitid function #

func Waitid(idType int, id int, info *SiginfoChild, options int, rusage *syscall.Rusage) error

errnoErr function #

func errnoErr(errno syscall.Errno) error

faccessat function #

func faccessat(dirfd int, path string, mode uint32, flags int) error

faccessat function #

func faccessat(dirfd int, path string, mode uint32, flags int) error

faccessat function #

func faccessat(dirfd int, path string, mode uint32, flags int) error

faccessat function #

func faccessat(dirfd int, path string, mode uint32, flags int) error

fcntl function #

Implemented in the runtime package. go:linkname fcntl runtime.fcntl

func fcntl(fd int32, cmd int32, arg int32) (int32, int32)

fd_fdstat_get_flags function #

This helper is implemented in the syscall package. It means we don't have to redefine the fd_fdstat_get host import or the fdstat struct it populates. go:linkname fd_fdstat_get_flags syscall.fd_fdstat_get_flags

func fd_fdstat_get_flags(fd int) (uint32, error)

fstatat function #

go:linkname fstatat syscall.fstatat

func fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error

gostring function #

Implemented in the runtime package.

func gostring(*byte) string

ioctlPtr function #

go:linkname ioctlPtr syscall.ioctlPtr

func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error)

libc_arc4random_buf_trampoline function #

func libc_arc4random_buf_trampoline()

libc_arc4random_buf_trampoline function #

func libc_arc4random_buf_trampoline()

libc_faccessat_trampoline function #

func libc_faccessat_trampoline()

libc_faccessat_trampoline function #

func libc_faccessat_trampoline()

libc_freeaddrinfo_trampoline function #

go:cgo_import_dynamic libc_freeaddrinfo freeaddrinfo "/usr/lib/libSystem.B.dylib"

func libc_freeaddrinfo_trampoline()

libc_gai_strerror_trampoline function #

go:cgo_import_dynamic libc_gai_strerror gai_strerror "/usr/lib/libSystem.B.dylib"

func libc_gai_strerror_trampoline()

libc_getaddrinfo_trampoline function #

go:cgo_import_dynamic libc_getaddrinfo getaddrinfo "/usr/lib/libSystem.B.dylib"

func libc_getaddrinfo_trampoline()

libc_getgrgid_r_trampoline function #

go:cgo_import_dynamic libc_getgrgid_r getgrgid_r "/usr/lib/libSystem.B.dylib"

func libc_getgrgid_r_trampoline()

libc_getgrnam_r_trampoline function #

go:cgo_import_dynamic libc_getgrnam_r getgrnam_r "/usr/lib/libSystem.B.dylib"

func libc_getgrnam_r_trampoline()

libc_getgrouplist_trampoline function #

go:cgo_import_dynamic libc_getgrouplist getgrouplist "/usr/lib/libSystem.B.dylib"

func libc_getgrouplist_trampoline()

libc_getnameinfo_trampoline function #

go:cgo_import_dynamic libc_getnameinfo getnameinfo "/usr/lib/libSystem.B.dylib"

func libc_getnameinfo_trampoline()

libc_getpwnam_r_trampoline function #

go:cgo_import_dynamic libc_getpwnam_r getpwnam_r "/usr/lib/libSystem.B.dylib"

func libc_getpwnam_r_trampoline()

libc_getpwuid_r_trampoline function #

go:cgo_import_dynamic libc_getpwuid_r getpwuid_r "/usr/lib/libSystem.B.dylib"

func libc_getpwuid_r_trampoline()

libc_grantpt_trampoline function #

go:cgo_import_dynamic libc_grantpt grantpt "/usr/lib/libSystem.B.dylib"

func libc_grantpt_trampoline()

libc_mkdirat_trampoline function #

func libc_mkdirat_trampoline()

libc_mkdirat_trampoline function #

func libc_mkdirat_trampoline()

libc_posix_openpt_trampoline function #

go:cgo_import_dynamic libc_posix_openpt posix_openpt "/usr/lib/libSystem.B.dylib"

func libc_posix_openpt_trampoline()

libc_ptsname_r_trampoline function #

go:cgo_import_dynamic libc_ptsname_r ptsname_r "/usr/lib/libSystem.B.dylib"

func libc_ptsname_r_trampoline()

libc_readlinkat_trampoline function #

func libc_readlinkat_trampoline()

libc_readlinkat_trampoline function #

func libc_readlinkat_trampoline()

libc_sysconf_trampoline function #

go:cgo_import_dynamic libc_sysconf sysconf "/usr/lib/libSystem.B.dylib"

func libc_sysconf_trampoline()

libc_unlockpt_trampoline function #

go:cgo_import_dynamic libc_unlockpt unlockpt "/usr/lib/libSystem.B.dylib"

func libc_unlockpt_trampoline()

libresolv_res_9_nclose_trampoline function #

go:cgo_import_dynamic libresolv_res_9_nclose res_9_nclose "/usr/lib/libresolv.9.dylib"

func libresolv_res_9_nclose_trampoline()

libresolv_res_9_ninit_trampoline function #

go:cgo_import_dynamic libresolv_res_9_ninit res_9_ninit "/usr/lib/libresolv.9.dylib"

func libresolv_res_9_ninit_trampoline()

libresolv_res_9_nsearch_trampoline function #

go:cgo_import_dynamic libresolv_res_9_nsearch res_9_nsearch "/usr/lib/libresolv.9.dylib"

func libresolv_res_9_nsearch_trampoline()

openat function #

go:linkname openat syscall.openat

func openat(dirfd int, path string, flags int, perm uint32) (int, error)

path_create_directory function #

go:wasmimport wasi_snapshot_preview1 path_create_directory go:noescape

func path_create_directory(fd int32, path *byte, pathLen size) syscall.Errno

path_filestat_get function #

go:wasmimport wasi_snapshot_preview1 path_filestat_get go:noescape

func path_filestat_get(fd int32, flags uint32, path *byte, pathLen size, buf unsafe.Pointer) syscall.Errno

path_remove_directory function #

go:wasmimport wasi_snapshot_preview1 path_remove_directory go:noescape

func path_remove_directory(fd int32, path *byte, pathLen size) syscall.Errno

rawSyscall6 function #

Implemented as rawsysvicall6 in runtime/syscall_solaris.go.

func rawSyscall6(trap uintptr, nargs uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall6 function #

Implemented as sysvicall6 in runtime/syscall_solaris.go.

func syscall6(trap uintptr, nargs uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall6 function #

Implemented in syscall/syscall_aix.go.

func syscall6(trap uintptr, nargs uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall_syscall function #

go:linkname syscall_syscall syscall.syscall

func syscall_syscall(fn uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall_syscall function #

go:linkname syscall_syscall syscall.syscall

func syscall_syscall(fn uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall_syscall6 function #

go:linkname syscall_syscall6 syscall.syscall6

func syscall_syscall6(fn uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall_syscall6 function #

go:linkname syscall_syscall6 syscall.syscall6

func syscall_syscall6(fn uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall_syscall6X function #

go:linkname syscall_syscall6X syscall.syscall6X

func syscall_syscall6X(fn uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall_syscall9 function #

go:linkname syscall_syscall9 syscall.syscall9

func syscall_syscall9(fn uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr, a7 uintptr, a8 uintptr, a9 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

syscall_syscallPtr function #

go:linkname syscall_syscallPtr syscall.syscallPtr

func syscall_syscallPtr(fn uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

unlinkat function #

go:linkname unlinkat syscall.unlinkat

func unlinkat(dirfd int, path string, flags int) error

vgetrandom function #

go:linkname vgetrandom runtime.vgetrandom go:noescape

func vgetrandom(p []byte, flags uint32) (ret int, supported bool)

Generated with Arrow