• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2022 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package syscall
6
7const (
8	SYS_EPOLL_CREATE1 = 20
9	SYS_EPOLL_CTL     = 21
10	SYS_EPOLL_PWAIT   = 22
11	SYS_FCNTL         = 25
12	SYS_MPROTECT      = 226
13	SYS_EPOLL_PWAIT2  = 441
14	SYS_EVENTFD2      = 19
15
16	EFD_NONBLOCK = 0x800
17)
18
19type EpollEvent struct {
20	Events    uint32
21	pad_cgo_0 [4]byte
22	Data      [8]byte // unaligned uintptr
23}
24