syscall
packagestandard library go1.25.2
Go to latest Published: Oct 7, 2025 License:BSD-3-Clause
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:2 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package syscall provides the syscall primitives required for the runtime.
Index¶
- Constants
- func Close(fd int) (errno uintptr)
- func EpollCreate1(flags int32) (fd int32, errno uintptr)
- func EpollCtl(epfd, op, fd int32, event *EpollEvent) (errno uintptr)
- func EpollWait(epfd int32, events []EpollEvent, maxev, waitms int32) (n int32, errno uintptr)
- func Eventfd(initval, flags int32) (fd int32, errno uintptr)
- func Open(path *byte, mode int, perm uint32) (fd int, errno uintptr)
- func Pread(fd int, p []byte, offset int64) (n int, errno uintptr)
- func Read(fd int, p []byte) (n int, errno uintptr)
- func Syscall6(num, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, errno uintptr)
- type EpollEvent
Constants¶
View Source
const (AT_FDCWD = -0x64ENOENT = 0x2EPOLLIN = 0x1EPOLLOUT = 0x4EPOLLERR = 0x8EPOLLHUP = 0x10EPOLLRDHUP = 0x2000EPOLLET = 0x80000000EPOLL_CLOEXEC = 0x80000EPOLL_CTL_ADD = 0x1EPOLL_CTL_DEL = 0x2EPOLL_CTL_MOD = 0x3EFD_CLOEXEC = 0x80000O_RDONLY = 0x0O_CLOEXEC = 0x80000PR_SET_VMA = 0x53564d41PR_SET_VMA_ANON_NAME = 0)
View Source
const (SYS_CLOSE = 3SYS_MPROTECT = 10SYS_FCNTL = 72SYS_PRCTL = 157SYS_EPOLL_CTL = 233SYS_EPOLL_PWAIT = 281SYS_EPOLL_CREATE1 = 291SYS_EPOLL_PWAIT2 = 441SYS_EVENTFD2 = 290SYS_OPENAT = 257SYS_PREAD64 = 17SYS_READ = 0EFD_NONBLOCK = 0x800O_LARGEFILE = 0x0)
Variables¶
This section is empty.
Functions¶
funcEpollCreate1¶
funcEpollCtl¶
func EpollCtl(epfd, op, fdint32, event *EpollEvent) (errnouintptr)
Types¶
typeEpollEvent¶
Click to show internal directories.
Click to hide internal directories.