X7ROOT File Manager
Current Path:
/opt/golang/1.22.0/src/cmd/vendor/golang.org/x/sys/unix
opt
/
golang
/
1.22.0
/
src
/
cmd
/
vendor
/
golang.org
/
x
/
sys
/
unix
/
📁
..
📄
.gitignore
(16 B)
📄
README.md
(8.48 KB)
📄
affinity_linux.go
(1.88 KB)
📄
aliases.go
(396 B)
📄
asm_aix_ppc64.s
(407 B)
📄
asm_bsd_386.s
(696 B)
📄
asm_bsd_amd64.s
(722 B)
📄
asm_bsd_arm.s
(686 B)
📄
asm_bsd_arm64.s
(709 B)
📄
asm_bsd_ppc64.s
(716 B)
📄
asm_bsd_riscv64.s
(711 B)
📄
asm_linux_386.s
(1.44 KB)
📄
asm_linux_amd64.s
(1.18 KB)
📄
asm_linux_arm.s
(1.11 KB)
📄
asm_linux_arm64.s
(1.08 KB)
📄
asm_linux_loong64.s
(1.16 KB)
📄
asm_linux_mips64x.s
(1.14 KB)
📄
asm_linux_mipsx.s
(1.14 KB)
📄
asm_linux_ppc64x.s
(909 B)
📄
asm_linux_riscv64.s
(1.02 KB)
📄
asm_linux_s390x.s
(1.12 KB)
📄
asm_openbsd_mips64.s
(677 B)
📄
asm_solaris_amd64.s
(423 B)
📄
asm_zos_s390x.s
(8.4 KB)
📄
bluetooth_linux.go
(680 B)
📄
cap_freebsd.go
(5.01 KB)
📄
constants.go
(318 B)
📄
dev_aix_ppc.go
(739 B)
📄
dev_aix_ppc64.go
(858 B)
📄
dev_darwin.go
(747 B)
📄
dev_dragonfly.go
(1.01 KB)
📄
dev_freebsd.go
(1013 B)
📄
dev_linux.go
(1.54 KB)
📄
dev_netbsd.go
(913 B)
📄
dev_openbsd.go
(918 B)
📄
dev_zos.go
(830 B)
📄
dirent.go
(3.01 KB)
📄
endian_big.go
(330 B)
📄
endian_little.go
(358 B)
📄
env_unix.go
(645 B)
📄
epoll_zos.go
(5.02 KB)
📄
fcntl.go
(1.05 KB)
📄
fcntl_darwin.go
(806 B)
📄
fcntl_linux_32bit.go
(436 B)
📄
fdset.go
(781 B)
📄
fstatfs_zos.go
(4.07 KB)
📄
gccgo.go
(1.91 KB)
📄
gccgo_c.c
(1.49 KB)
📄
gccgo_linux_amd64.go
(436 B)
📄
ifreq_linux.go
(4.27 KB)
📄
ioctl_linux.go
(8.07 KB)
📄
ioctl_signed.go
(2.2 KB)
📄
ioctl_unsigned.go
(2.26 KB)
📄
ioctl_zos.go
(2.03 KB)
📄
mkall.sh
(8.11 KB)
📄
mkerrors.sh
(19.56 KB)
📄
mmap_nomremap.go
(336 B)
📄
mremap.go
(1.36 KB)
📄
pagesize_unix.go
(389 B)
📄
pledge_openbsd.go
(2.33 KB)
📄
ptrace_darwin.go
(315 B)
📄
ptrace_ios.go
(284 B)
📄
race.go
(629 B)
📄
race0.go
(553 B)
📄
readdirent_getdents.go
(401 B)
📄
readdirent_getdirentries.go
(698 B)
📄
sockcmsg_dragonfly.go
(544 B)
📄
sockcmsg_linux.go
(2.6 KB)
📄
sockcmsg_unix.go
(3.14 KB)
📄
sockcmsg_unix_other.go
(1.2 KB)
📄
syscall.go
(2.81 KB)
📄
syscall_aix.go
(16.1 KB)
📄
syscall_aix_ppc.go
(1.27 KB)
📄
syscall_aix_ppc64.go
(1.9 KB)
📄
syscall_bsd.go
(14.96 KB)
📄
syscall_darwin.go
(20.72 KB)
📄
syscall_darwin_amd64.go
(1.49 KB)
📄
syscall_darwin_arm64.go
(1.41 KB)
📄
syscall_darwin_libSystem.go
(1.21 KB)
📄
syscall_dragonfly.go
(11.18 KB)
📄
syscall_dragonfly_amd64.go
(1.25 KB)
📄
syscall_freebsd.go
(15.34 KB)
📄
syscall_freebsd_386.go
(1.48 KB)
📄
syscall_freebsd_amd64.go
(1.44 KB)
📄
syscall_freebsd_arm.go
(1.35 KB)
📄
syscall_freebsd_arm64.go
(1.31 KB)
📄
syscall_freebsd_riscv64.go
(1.32 KB)
📄
syscall_hurd.go
(635 B)
📄
syscall_hurd_386.go
(447 B)
📄
syscall_illumos.go
(1.76 KB)
📄
syscall_linux.go
(74.41 KB)
📄
syscall_linux_386.go
(8.88 KB)
📄
syscall_linux_alarm.go
(440 B)
📄
syscall_linux_amd64.go
(5.28 KB)
📄
syscall_linux_amd64_gc.go
(290 B)
📄
syscall_linux_arm.go
(6.94 KB)
📄
syscall_linux_arm64.go
(5.97 KB)
📄
syscall_linux_gc.go
(495 B)
📄
syscall_linux_gc_386.go
(585 B)
📄
syscall_linux_gc_arm.go
(411 B)
📄
syscall_linux_gccgo_386.go
(986 B)
📄
syscall_linux_gccgo_arm.go
(596 B)
📄
syscall_linux_loong64.go
(6.66 KB)
📄
syscall_linux_mips64x.go
(5.83 KB)
📄
syscall_linux_mipsx.go
(5.81 KB)
📄
syscall_linux_ppc.go
(6.85 KB)
📄
syscall_linux_ppc64x.go
(4.98 KB)
📄
syscall_linux_riscv64.go
(6.13 KB)
📄
syscall_linux_s390x.go
(9.29 KB)
📄
syscall_linux_sparc64.go
(4.37 KB)
📄
syscall_netbsd.go
(12.35 KB)
📄
syscall_netbsd_386.go
(819 B)
📄
syscall_netbsd_amd64.go
(814 B)
📄
syscall_netbsd_arm.go
(819 B)
📄
syscall_netbsd_arm64.go
(814 B)
📄
syscall_openbsd.go
(11.04 KB)
📄
syscall_openbsd_386.go
(1000 B)
📄
syscall_openbsd_amd64.go
(990 B)
📄
syscall_openbsd_arm.go
(1000 B)
📄
syscall_openbsd_arm64.go
(990 B)
📄
syscall_openbsd_libc.go
(1.1 KB)
📄
syscall_openbsd_mips64.go
(955 B)
📄
syscall_openbsd_ppc64.go
(990 B)
📄
syscall_openbsd_riscv64.go
(994 B)
📄
syscall_solaris.go
(31.11 KB)
📄
syscall_solaris_amd64.go
(593 B)
📄
syscall_unix.go
(16.45 KB)
📄
syscall_unix_gc.go
(640 B)
📄
syscall_unix_gc_ppc64x.go
(786 B)
📄
syscall_zos_s390x.go
(52.88 KB)
📄
sysvshm_linux.go
(521 B)
📄
sysvshm_unix.go
(1.42 KB)
📄
sysvshm_unix_other.go
(398 B)
📄
timestruct.go
(2.2 KB)
📄
unveil_openbsd.go
(1.19 KB)
📄
xattr_bsd.go
(5.66 KB)
📄
zerrors_aix_ppc.go
(52.42 KB)
📄
zerrors_aix_ppc64.go
(52.67 KB)
📄
zerrors_darwin_amd64.go
(87.45 KB)
📄
zerrors_darwin_arm64.go
(87.45 KB)
📄
zerrors_dragonfly_amd64.go
(70.7 KB)
📄
zerrors_freebsd_386.go
(79.55 KB)
📄
zerrors_freebsd_amd64.go
(79.44 KB)
📄
zerrors_freebsd_arm.go
(79.19 KB)
📄
zerrors_freebsd_arm64.go
(79.22 KB)
📄
zerrors_freebsd_riscv64.go
(83.75 KB)
📄
zerrors_linux.go
(180.01 KB)
📄
zerrors_linux_386.go
(33.98 KB)
📄
zerrors_linux_amd64.go
(34 KB)
📄
zerrors_linux_arm.go
(34.22 KB)
📄
zerrors_linux_arm64.go
(34.05 KB)
📄
zerrors_linux_loong64.go
(33.73 KB)
📄
zerrors_linux_mips.go
(34.54 KB)
📄
zerrors_linux_mips64.go
(34.54 KB)
📄
zerrors_linux_mips64le.go
(34.55 KB)
📄
zerrors_linux_mipsle.go
(34.54 KB)
📄
zerrors_linux_ppc.go
(36.62 KB)
📄
zerrors_linux_ppc64.go
(36.79 KB)
📄
zerrors_linux_ppc64le.go
(36.8 KB)
📄
zerrors_linux_riscv64.go
(33.59 KB)
📄
zerrors_linux_s390x.go
(36.53 KB)
📄
zerrors_linux_sparc64.go
(38.61 KB)
📄
zerrors_netbsd_386.go
(72.76 KB)
📄
zerrors_netbsd_amd64.go
(72.35 KB)
📄
zerrors_netbsd_arm.go
(71.89 KB)
📄
zerrors_netbsd_arm64.go
(72.35 KB)
📄
zerrors_openbsd_386.go
(78.55 KB)
📄
zerrors_openbsd_amd64.go
(78.55 KB)
📄
zerrors_openbsd_arm.go
(78.54 KB)
📄
zerrors_openbsd_arm64.go
(78.55 KB)
📄
zerrors_openbsd_mips64.go
(78.55 KB)
📄
zerrors_openbsd_ppc64.go
(78.51 KB)
📄
zerrors_openbsd_riscv64.go
(78.47 KB)
📄
zerrors_solaris_amd64.go
(59 KB)
📄
zerrors_zos_s390x.go
(34.47 KB)
📄
zptrace_armnn_linux.go
(1.17 KB)
📄
zptrace_linux_arm64.go
(721 B)
📄
zptrace_mipsnn_linux.go
(1.36 KB)
📄
zptrace_mipsnnle_linux.go
(1.41 KB)
📄
zptrace_x86_linux.go
(1.81 KB)
📄
zsyscall_aix_ppc.go
(35.68 KB)
📄
zsyscall_aix_ppc64.go
(30.04 KB)
📄
zsyscall_aix_ppc64_gc.go
(42.43 KB)
📄
zsyscall_aix_ppc64_gccgo.go
(30.85 KB)
📄
zsyscall_darwin_amd64.go
(66.74 KB)
📄
zsyscall_darwin_amd64.s
(29.28 KB)
📄
zsyscall_darwin_arm64.go
(66.69 KB)
📄
zsyscall_darwin_arm64.s
(29.21 KB)
📄
zsyscall_dragonfly_amd64.go
(38.79 KB)
📄
zsyscall_freebsd_386.go
(45.09 KB)
📄
zsyscall_freebsd_amd64.go
(44.9 KB)
📄
zsyscall_freebsd_arm.go
(45.13 KB)
📄
zsyscall_freebsd_arm64.go
(44.9 KB)
📄
zsyscall_freebsd_riscv64.go
(44.91 KB)
📄
zsyscall_illumos_amd64.go
(2.63 KB)
📄
zsyscall_linux.go
(54.29 KB)
📄
zsyscall_linux_386.go
(12.11 KB)
📄
zsyscall_linux_amd64.go
(16.5 KB)
📄
zsyscall_linux_arm.go
(15.61 KB)
📄
zsyscall_linux_arm64.go
(14.22 KB)
📄
zsyscall_linux_loong64.go
(12.61 KB)
📄
zsyscall_linux_mips.go
(16.76 KB)
📄
zsyscall_linux_mips64.go
(16.27 KB)
📄
zsyscall_linux_mips64le.go
(16.01 KB)
📄
zsyscall_linux_mipsle.go
(16.76 KB)
📄
zsyscall_linux_ppc.go
(16.83 KB)
📄
zsyscall_linux_ppc64.go
(17.79 KB)
📄
zsyscall_linux_ppc64le.go
(17.79 KB)
📄
zsyscall_linux_riscv64.go
(14.2 KB)
📄
zsyscall_linux_s390x.go
(12.11 KB)
📄
zsyscall_linux_sparc64.go
(16.43 KB)
📄
zsyscall_netbsd_386.go
(44.13 KB)
📄
zsyscall_netbsd_amd64.go
(43.94 KB)
📄
zsyscall_netbsd_arm.go
(44.13 KB)
📄
zsyscall_netbsd_arm64.go
(43.94 KB)
📄
zsyscall_openbsd_386.go
(57.67 KB)
📄
zsyscall_openbsd_386.s
(26.7 KB)
📄
zsyscall_openbsd_amd64.go
(57.52 KB)
📄
zsyscall_openbsd_amd64.s
(26.7 KB)
📄
zsyscall_openbsd_arm.go
(57.69 KB)
📄
zsyscall_openbsd_arm.s
(26.7 KB)
📄
zsyscall_openbsd_arm64.go
(57.52 KB)
📄
zsyscall_openbsd_arm64.s
(26.7 KB)
📄
zsyscall_openbsd_mips64.go
(57.52 KB)
📄
zsyscall_openbsd_mips64.s
(26.7 KB)
📄
zsyscall_openbsd_ppc64.go
(57.52 KB)
📄
zsyscall_openbsd_ppc64.s
(27.51 KB)
📄
zsyscall_openbsd_riscv64.go
(57.53 KB)
📄
zsyscall_openbsd_riscv64.s
(26.7 KB)
📄
zsyscall_solaris_amd64.go
(59.74 KB)
📄
zsyscall_zos_s390x.go
(29.82 KB)
📄
zsysctl_openbsd_386.go
(11.93 KB)
📄
zsysctl_openbsd_amd64.go
(11.93 KB)
📄
zsysctl_openbsd_arm.go
(11.93 KB)
📄
zsysctl_openbsd_arm64.go
(11.93 KB)
📄
zsysctl_openbsd_mips64.go
(11.93 KB)
📄
zsysctl_openbsd_ppc64.go
(11.93 KB)
📄
zsysctl_openbsd_riscv64.go
(11.97 KB)
📄
zsysnum_darwin_amd64.go
(17.84 KB)
📄
zsysnum_darwin_arm64.go
(17.76 KB)
📄
zsysnum_dragonfly_amd64.go
(27.61 KB)
📄
zsysnum_freebsd_386.go
(36.09 KB)
📄
zsysnum_freebsd_amd64.go
(36.1 KB)
📄
zsysnum_freebsd_arm.go
(36.09 KB)
📄
zsysnum_freebsd_arm64.go
(36.1 KB)
📄
zsysnum_freebsd_riscv64.go
(36.1 KB)
📄
zsysnum_linux_386.go
(17.38 KB)
📄
zsysnum_linux_amd64.go
(12.59 KB)
📄
zsysnum_linux_arm.go
(15.99 KB)
📄
zsysnum_linux_arm64.go
(10.69 KB)
📄
zsysnum_linux_loong64.go
(10.48 KB)
📄
zsysnum_linux_mips.go
(17.27 KB)
📄
zsysnum_linux_mips64.go
(12.74 KB)
📄
zsysnum_linux_mips64le.go
(12.74 KB)
📄
zsysnum_linux_mipsle.go
(17.28 KB)
📄
zsysnum_linux_ppc.go
(17.02 KB)
📄
zsysnum_linux_ppc64.go
(13.95 KB)
📄
zsysnum_linux_ppc64le.go
(13.96 KB)
📄
zsysnum_linux_riscv64.go
(10.71 KB)
📄
zsysnum_linux_s390x.go
(12.84 KB)
📄
zsysnum_linux_sparc64.go
(13.26 KB)
📄
zsysnum_netbsd_386.go
(25.72 KB)
📄
zsysnum_netbsd_amd64.go
(25.73 KB)
📄
zsysnum_netbsd_arm.go
(25.72 KB)
📄
zsysnum_netbsd_arm64.go
(25.71 KB)
📄
zsysnum_openbsd_386.go
(17.91 KB)
📄
zsysnum_openbsd_amd64.go
(17.91 KB)
📄
zsysnum_openbsd_arm.go
(17.91 KB)
📄
zsysnum_openbsd_arm64.go
(17.82 KB)
📄
zsysnum_openbsd_mips64.go
(18.05 KB)
📄
zsysnum_openbsd_ppc64.go
(17.76 KB)
📄
zsysnum_openbsd_riscv64.go
(17.83 KB)
📄
zsysnum_zos_s390x.go
(116.99 KB)
📄
ztypes_aix_ppc.go
(4.91 KB)
📄
ztypes_aix_ppc64.go
(4.98 KB)
📄
ztypes_darwin_amd64.go
(12.4 KB)
📄
ztypes_darwin_arm64.go
(12.4 KB)
📄
ztypes_dragonfly_amd64.go
(6.91 KB)
📄
ztypes_freebsd_386.go
(9.63 KB)
📄
ztypes_freebsd_amd64.go
(9.68 KB)
📄
ztypes_freebsd_arm.go
(9.5 KB)
📄
ztypes_freebsd_arm64.go
(9.39 KB)
📄
ztypes_freebsd_riscv64.go
(9.46 KB)
📄
ztypes_linux.go
(246.65 KB)
📄
ztypes_linux_386.go
(12.37 KB)
📄
ztypes_linux_amd64.go
(12.56 KB)
📄
ztypes_linux_arm.go
(12.33 KB)
📄
ztypes_linux_arm64.go
(12.21 KB)
📄
ztypes_linux_loong64.go
(12.23 KB)
📄
ztypes_linux_mips.go
(12.39 KB)
📄
ztypes_linux_mips64.go
(12.26 KB)
📄
ztypes_linux_mips64le.go
(12.27 KB)
📄
ztypes_linux_mipsle.go
(12.4 KB)
📄
ztypes_linux_ppc.go
(12.57 KB)
📄
ztypes_linux_ppc64.go
(12.4 KB)
📄
ztypes_linux_ppc64le.go
(12.41 KB)
📄
ztypes_linux_riscv64.go
(13.44 KB)
📄
ztypes_linux_s390x.go
(12.7 KB)
📄
ztypes_linux_sparc64.go
(12.26 KB)
📄
ztypes_netbsd_386.go
(9.46 KB)
📄
ztypes_netbsd_amd64.go
(9.65 KB)
📄
ztypes_netbsd_arm.go
(9.59 KB)
📄
ztypes_netbsd_arm64.go
(9.65 KB)
📄
ztypes_openbsd_386.go
(9.24 KB)
📄
ztypes_openbsd_amd64.go
(9.25 KB)
📄
ztypes_openbsd_arm.go
(9.38 KB)
📄
ztypes_openbsd_arm64.go
(9.26 KB)
📄
ztypes_openbsd_mips64.go
(9.26 KB)
📄
ztypes_openbsd_ppc64.go
(9.28 KB)
📄
ztypes_openbsd_riscv64.go
(9.29 KB)
📄
ztypes_solaris_amd64.go
(7.53 KB)
📄
ztypes_zos_s390x.go
(6.66 KB)
Editing: epoll_zos.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build zos && s390x package unix import ( "sync" ) // This file simulates epoll on z/OS using poll. // Analogous to epoll_event on Linux. // TODO(neeilan): Pad is because the Linux kernel expects a 96-bit struct. We never pass this to the kernel; remove? type EpollEvent struct { Events uint32 Fd int32 Pad int32 } const ( EPOLLERR = 0x8 EPOLLHUP = 0x10 EPOLLIN = 0x1 EPOLLMSG = 0x400 EPOLLOUT = 0x4 EPOLLPRI = 0x2 EPOLLRDBAND = 0x80 EPOLLRDNORM = 0x40 EPOLLWRBAND = 0x200 EPOLLWRNORM = 0x100 EPOLL_CTL_ADD = 0x1 EPOLL_CTL_DEL = 0x2 EPOLL_CTL_MOD = 0x3 // The following constants are part of the epoll API, but represent // currently unsupported functionality on z/OS. // EPOLL_CLOEXEC = 0x80000 // EPOLLET = 0x80000000 // EPOLLONESHOT = 0x40000000 // EPOLLRDHUP = 0x2000 // Typically used with edge-triggered notis // EPOLLEXCLUSIVE = 0x10000000 // Exclusive wake-up mode // EPOLLWAKEUP = 0x20000000 // Relies on Linux's BLOCK_SUSPEND capability ) // TODO(neeilan): We can eliminate these epToPoll / pToEpoll calls by using identical mask values for POLL/EPOLL // constants where possible The lower 16 bits of epoll events (uint32) can fit any system poll event (int16). // epToPollEvt converts epoll event field to poll equivalent. // In epoll, Events is a 32-bit field, while poll uses 16 bits. func epToPollEvt(events uint32) int16 { var ep2p = map[uint32]int16{ EPOLLIN: POLLIN, EPOLLOUT: POLLOUT, EPOLLHUP: POLLHUP, EPOLLPRI: POLLPRI, EPOLLERR: POLLERR, } var pollEvts int16 = 0 for epEvt, pEvt := range ep2p { if (events & epEvt) != 0 { pollEvts |= pEvt } } return pollEvts } // pToEpollEvt converts 16 bit poll event bitfields to 32-bit epoll event fields. func pToEpollEvt(revents int16) uint32 { var p2ep = map[int16]uint32{ POLLIN: EPOLLIN, POLLOUT: EPOLLOUT, POLLHUP: EPOLLHUP, POLLPRI: EPOLLPRI, POLLERR: EPOLLERR, } var epollEvts uint32 = 0 for pEvt, epEvt := range p2ep { if (revents & pEvt) != 0 { epollEvts |= epEvt } } return epollEvts } // Per-process epoll implementation. type epollImpl struct { mu sync.Mutex epfd2ep map[int]*eventPoll nextEpfd int } // eventPoll holds a set of file descriptors being watched by the process. A process can have multiple epoll instances. // On Linux, this is an in-kernel data structure accessed through a fd. type eventPoll struct { mu sync.Mutex fds map[int]*EpollEvent } // epoll impl for this process. var impl epollImpl = epollImpl{ epfd2ep: make(map[int]*eventPoll), nextEpfd: 0, } func (e *epollImpl) epollcreate(size int) (epfd int, err error) { e.mu.Lock() defer e.mu.Unlock() epfd = e.nextEpfd e.nextEpfd++ e.epfd2ep[epfd] = &eventPoll{ fds: make(map[int]*EpollEvent), } return epfd, nil } func (e *epollImpl) epollcreate1(flag int) (fd int, err error) { return e.epollcreate(4) } func (e *epollImpl) epollctl(epfd int, op int, fd int, event *EpollEvent) (err error) { e.mu.Lock() defer e.mu.Unlock() ep, ok := e.epfd2ep[epfd] if !ok { return EBADF } switch op { case EPOLL_CTL_ADD: // TODO(neeilan): When we make epfds and fds disjoint, detect epoll // loops here (instances watching each other) and return ELOOP. if _, ok := ep.fds[fd]; ok { return EEXIST } ep.fds[fd] = event case EPOLL_CTL_MOD: if _, ok := ep.fds[fd]; !ok { return ENOENT } ep.fds[fd] = event case EPOLL_CTL_DEL: if _, ok := ep.fds[fd]; !ok { return ENOENT } delete(ep.fds, fd) } return nil } // Must be called while holding ep.mu func (ep *eventPoll) getFds() []int { fds := make([]int, len(ep.fds)) for fd := range ep.fds { fds = append(fds, fd) } return fds } func (e *epollImpl) epollwait(epfd int, events []EpollEvent, msec int) (n int, err error) { e.mu.Lock() // in [rare] case of concurrent epollcreate + epollwait ep, ok := e.epfd2ep[epfd] if !ok { e.mu.Unlock() return 0, EBADF } pollfds := make([]PollFd, 4) for fd, epollevt := range ep.fds { pollfds = append(pollfds, PollFd{Fd: int32(fd), Events: epToPollEvt(epollevt.Events)}) } e.mu.Unlock() n, err = Poll(pollfds, msec) if err != nil { return n, err } i := 0 for _, pFd := range pollfds { if pFd.Revents != 0 { events[i] = EpollEvent{Fd: pFd.Fd, Events: pToEpollEvt(pFd.Revents)} i++ } if i == n { break } } return n, nil } func EpollCreate(size int) (fd int, err error) { return impl.epollcreate(size) } func EpollCreate1(flag int) (fd int, err error) { return impl.epollcreate1(flag) } func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { return impl.epollctl(epfd, op, fd, event) } // Because EpollWait mutates events, the caller is expected to coordinate // concurrent access if calling with the same epfd from multiple goroutines. func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { return impl.epollwait(epfd, events, msec) }
Upload File
Create Folder