diff --git a/src/runtime/internal/syscall/defs_linux.go b/src/runtime/internal/syscall/defs_linux.go index 242a67b4bca..b2e36a244f8 100644 --- a/src/runtime/internal/syscall/defs_linux.go +++ b/src/runtime/internal/syscall/defs_linux.go @@ -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 ) diff --git a/src/runtime/internal/syscall/defs_linux_386.go b/src/runtime/internal/syscall/defs_linux_386.go index fa0ca5ed0ae..613dc77d59d 100644 --- a/src/runtime/internal/syscall/defs_linux_386.go +++ b/src/runtime/internal/syscall/defs_linux_386.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_amd64.go b/src/runtime/internal/syscall/defs_linux_amd64.go index 71bd906ed45..2ba31288139 100644 --- a/src/runtime/internal/syscall/defs_linux_amd64.go +++ b/src/runtime/internal/syscall/defs_linux_amd64.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_arm.go b/src/runtime/internal/syscall/defs_linux_arm.go index 146cda5fcbd..af3e0510b19 100644 --- a/src/runtime/internal/syscall/defs_linux_arm.go +++ b/src/runtime/internal/syscall/defs_linux_arm.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_arm64.go b/src/runtime/internal/syscall/defs_linux_arm64.go index 0500b317e9a..c924f6211a3 100644 --- a/src/runtime/internal/syscall/defs_linux_arm64.go +++ b/src/runtime/internal/syscall/defs_linux_arm64.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_loong64.go b/src/runtime/internal/syscall/defs_linux_loong64.go index 2c67b7b5689..c1a5649a421 100644 --- a/src/runtime/internal/syscall/defs_linux_loong64.go +++ b/src/runtime/internal/syscall/defs_linux_loong64.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_mips64x.go b/src/runtime/internal/syscall/defs_linux_mips64x.go index 3031af241be..07c0aba5398 100644 --- a/src/runtime/internal/syscall/defs_linux_mips64x.go +++ b/src/runtime/internal/syscall/defs_linux_mips64x.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_mipsx.go b/src/runtime/internal/syscall/defs_linux_mipsx.go index 4d51921abd6..a1bb5d720a5 100644 --- a/src/runtime/internal/syscall/defs_linux_mipsx.go +++ b/src/runtime/internal/syscall/defs_linux_mipsx.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_ppc64x.go b/src/runtime/internal/syscall/defs_linux_ppc64x.go index fcd15e60a2b..78558b360fa 100644 --- a/src/runtime/internal/syscall/defs_linux_ppc64x.go +++ b/src/runtime/internal/syscall/defs_linux_ppc64x.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_riscv64.go b/src/runtime/internal/syscall/defs_linux_riscv64.go index 2c67b7b5689..c1a5649a421 100644 --- a/src/runtime/internal/syscall/defs_linux_riscv64.go +++ b/src/runtime/internal/syscall/defs_linux_riscv64.go @@ -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 { diff --git a/src/runtime/internal/syscall/defs_linux_s390x.go b/src/runtime/internal/syscall/defs_linux_s390x.go index c1deed6c741..b539b2d22a9 100644 --- a/src/runtime/internal/syscall/defs_linux_s390x.go +++ b/src/runtime/internal/syscall/defs_linux_s390x.go @@ -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 {