1
0
mirror of https://github.com/golang/go synced 2024-09-29 07:24:32 -06:00

runtime/internal/syscall: merge duplicate constants

Change-Id: Ifdc6e22d52317cdb90a607ac4d72437d4d6b33e8
Reviewed-on: https://go-review.googlesource.com/c/go/+/564716
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Andy Pan 2024-02-16 14:32:27 +08:00 committed by Gopher Robot
parent d068c2cb62
commit a3c35430fc
11 changed files with 21 additions and 111 deletions

View File

@ -5,5 +5,15 @@
package syscall
const (
EFD_CLOEXEC = 0x80000
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_CLOEXEC = 0x80000
)

View File

@ -12,17 +12,7 @@ const (
SYS_EPOLL_PWAIT2 = 441
SYS_EVENTFD2 = 328
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x800
EFD_NONBLOCK = 0x800
)
type EpollEvent struct {

View File

@ -12,17 +12,7 @@ const (
SYS_EPOLL_PWAIT2 = 441
SYS_EVENTFD2 = 290
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x800
EFD_NONBLOCK = 0x800
)
type EpollEvent struct {

View File

@ -12,17 +12,7 @@ const (
SYS_EPOLL_PWAIT2 = 441
SYS_EVENTFD2 = 356
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x800
EFD_NONBLOCK = 0x800
)
type EpollEvent struct {

View File

@ -12,17 +12,7 @@ const (
SYS_EPOLL_PWAIT2 = 441
SYS_EVENTFD2 = 19
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x800
EFD_NONBLOCK = 0x800
)
type EpollEvent struct {

View File

@ -12,17 +12,7 @@ const (
SYS_EPOLL_PWAIT2 = 441
SYS_EVENTFD2 = 19
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x800
EFD_NONBLOCK = 0x800
)
type EpollEvent struct {

View File

@ -14,17 +14,7 @@ const (
SYS_EPOLL_PWAIT2 = 5441
SYS_EVENTFD2 = 5284
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x80
EFD_NONBLOCK = 0x80
)
type EpollEvent struct {

View File

@ -14,17 +14,7 @@ const (
SYS_EPOLL_PWAIT2 = 4441
SYS_EVENTFD2 = 4325
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x80
EFD_NONBLOCK = 0x80
)
type EpollEvent struct {

View File

@ -14,17 +14,7 @@ const (
SYS_EPOLL_PWAIT2 = 441
SYS_EVENTFD2 = 314
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x800
EFD_NONBLOCK = 0x800
)
type EpollEvent struct {

View File

@ -12,17 +12,7 @@ const (
SYS_EPOLL_PWAIT2 = 441
SYS_EVENTFD2 = 19
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x800
EFD_NONBLOCK = 0x800
)
type EpollEvent struct {

View File

@ -12,17 +12,7 @@ const (
SYS_EPOLL_PWAIT2 = 441
SYS_EVENTFD2 = 323
EPOLLIN = 0x1
EPOLLOUT = 0x4
EPOLLERR = 0x8
EPOLLHUP = 0x10
EPOLLRDHUP = 0x2000
EPOLLET = 0x80000000
EPOLL_CLOEXEC = 0x80000
EPOLL_CTL_ADD = 0x1
EPOLL_CTL_DEL = 0x2
EPOLL_CTL_MOD = 0x3
EFD_NONBLOCK = 0x800
EFD_NONBLOCK = 0x800
)
type EpollEvent struct {