Movatterモバイル変換


[0]ホーム

URL:


syscall

packagestandard library
go1.25.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2025 License:BSD-3-ClauseImports:2Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

Package syscall provides the syscall primitives required for the runtime.

Index

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

funcCloseadded ingo1.25.0

func Close(fdint) (errnouintptr)

funcEpollCreate1

func EpollCreate1(flagsint32) (fdint32, errnouintptr)

funcEpollCtl

func EpollCtl(epfd, op, fdint32, event *EpollEvent) (errnouintptr)

funcEpollWait

func EpollWait(epfdint32, events []EpollEvent, maxev, waitmsint32) (nint32, errnouintptr)

funcEventfd

func Eventfd(initval, flagsint32) (fdint32, errnouintptr)

funcOpenadded ingo1.25.0

func Open(path *byte, modeint, permuint32) (fdint, errnouintptr)

funcPreadadded ingo1.25.0

func Pread(fdint, p []byte, offsetint64) (nint, errnouintptr)

funcReadadded ingo1.25.0

func Read(fdint, p []byte) (nint, errnouintptr)

funcSyscall6

func Syscall6(num, a1, a2, a3, a4, a5, a6uintptr) (r1, r2, errnouintptr)

Syscall6 calls system call number 'num' with arguments a1-6.

Types

typeEpollEvent

type EpollEvent struct {Eventsuint32Data   [8]byte// unaligned uintptr}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp