Movatterモバイル変換


[0]ホーム

URL:


unix

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:4Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Index

Constants

View Source
const (AT_EACCESS          = 0x200AT_FDCWD            = -0x64AT_REMOVEDIR        = 0x200AT_SYMLINK_NOFOLLOW = 0x100UTIME_OMIT = 0x3ffffffe)
View Source
const (R_OK = 0x4W_OK = 0x2X_OK = 0x1// 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.NoFollowErrno = noFollowErrno)
View Source
const (P_PID   = 1P_PIDFD = 3)

Variables

This section is empty.

Functions

funcCopyFileRangeadded ingo1.15

func CopyFileRange(rfdint, roff *int64, wfdint, woff *int64, lenint, flagsint) (nint, errerror)

funcEaccessadded ingo1.20

func Eaccess(pathstring, modeuint32)error

funcFchmodatadded ingo1.25.0

func Fchmodat(dirfdint, pathstring, modeuint32, flagsint)error

funcFchownatadded ingo1.25.0

func Fchownat(dirfdint, pathstring, uid, gidint, flagsint)error

funcFcntladded ingo1.21.0

func Fcntl(fdint, cmdint, argint) (int,error)

funcFstatatadded ingo1.12

func Fstatat(dirfdint, pathstring, stat *syscall.Stat_t, flagsint)error

funcGetRandom

func GetRandom(p []byte, flagsGetRandomFlag) (nint, errerror)

GetRandom calls the getrandom system call.

funcHasNonblockFlagadded ingo1.20.5

func HasNonblockFlag(flagint)bool

funcIsNonblockadded ingo1.11

func IsNonblock(fdint) (nonblockingbool, errerror)

funcKernelVersionadded ingo1.20

func KernelVersion() (major, minorint)

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

funcLinkatadded ingo1.25.0

func Linkat(olddirfdint, oldpathstring, newdirfdint, newpathstring, flagint)error

funcMkdiratadded ingo1.24.0

func Mkdirat(dirfdint, pathstring, modeuint32)error

funcOpenatadded ingo1.12

func Openat(dirfdint, pathstring, flagsint, permuint32) (int,error)

funcPidFDOpenadded ingo1.23.0

func PidFDOpen(pid, flagsint) (uintptr,error)

funcPidFDSendSignaladded ingo1.22.0

func PidFDSendSignal(pidfduintptr, ssyscall.Signal)error

funcReadlinkatadded ingo1.24.0

func Readlinkat(dirfdint, pathstring, buf []byte) (int,error)

funcRecvfromInet4added ingo1.18

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

funcRecvfromInet6added ingo1.18

func RecvfromInet6(fdint, p []byte, flagsint, from *syscall.SockaddrInet6) (nint, errerror)

funcRecvmsgInet4added ingo1.18

func RecvmsgInet4(fdint, p, oob []byte, flagsint, from *syscall.SockaddrInet4) (n, oobnint, recvflagsint, errerror)

funcRecvmsgInet6added ingo1.18

func RecvmsgInet6(fdint, p, oob []byte, flagsint, from *syscall.SockaddrInet6) (n, oobnint, recvflagsint, errerror)

funcRenameatadded ingo1.25.0

func Renameat(olddirfdint, oldpathstring, newdirfdint, newpathstring)error

funcSendmsgNInet4added ingo1.18

func SendmsgNInet4(fdint, p, oob []byte, to *syscall.SockaddrInet4, flagsint) (nint, errerror)

funcSendmsgNInet6added ingo1.18

func SendmsgNInet6(fdint, p, oob []byte, to *syscall.SockaddrInet6, flagsint) (nint, errerror)

funcSendtoInet4added ingo1.18

func SendtoInet4(fdint, p []byte, flagsint, to *syscall.SockaddrInet4) (errerror)

funcSendtoInet6added ingo1.18

func SendtoInet6(fdint, p []byte, flagsint, to *syscall.SockaddrInet6) (errerror)

funcSymlinkatadded ingo1.25.0

func Symlinkat(oldpathstring, newdirfdint, newpathstring)error

funcTcsetpgrpadded ingo1.23.0

func Tcsetpgrp(fdint, pgidint32) (errerror)

funcUnlinkatadded ingo1.12

func Unlinkat(dirfdint, pathstring, flagsint)error

funcUtimensatadded ingo1.25.0

func Utimensat(dirfdint, pathstring, times *[2]syscall.Timespec, flagint)error

funcWaitidadded ingo1.24.0

func Waitid(idTypeint, idint, info *SiginfoChild, optionsint, rusage *syscall.Rusage)error

Types

typeGetRandomFlag

type GetRandomFlaguintptr

GetRandomFlag is a flag supported by the getrandom system call.

const (// GRND_NONBLOCK means return EAGAIN rather than blocking.GRND_NONBLOCKGetRandomFlag = 0x0001// GRND_RANDOM means use the /dev/random pool instead of /dev/urandom.GRND_RANDOMGetRandomFlag = 0x0002)

typeSiginfoChildadded ingo1.23.0

type SiginfoChild struct {Signoint32Pidint32Uiduint32Statusint32// contains filtered or unexported fields}

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.

func (*SiginfoChild)WaitStatusadded ingo1.23.0

func (s *SiginfoChild) WaitStatus() (wssyscall.WaitStatus)

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

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