]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/internal/syscall: merge duplicate constants
authorAndy Pan <panjf2000@gmail.com>
Fri, 16 Feb 2024 06:32:27 +0000 (14:32 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 20 Feb 2024 14:59:53 +0000 (14:59 +0000)
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>
src/runtime/internal/syscall/defs_linux.go
src/runtime/internal/syscall/defs_linux_386.go
src/runtime/internal/syscall/defs_linux_amd64.go
src/runtime/internal/syscall/defs_linux_arm.go
src/runtime/internal/syscall/defs_linux_arm64.go
src/runtime/internal/syscall/defs_linux_loong64.go
src/runtime/internal/syscall/defs_linux_mips64x.go
src/runtime/internal/syscall/defs_linux_mipsx.go
src/runtime/internal/syscall/defs_linux_ppc64x.go
src/runtime/internal/syscall/defs_linux_riscv64.go
src/runtime/internal/syscall/defs_linux_s390x.go

index 242a67b4bca24b1478f47b94becec30c9f43b175..b2e36a244f82011513ffea345b8f5fd54e678bc1 100644 (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
 )
index fa0ca5ed0aee95987b1fda229b0f32ca6fe573a4..613dc77d59d7dac2beb501992c7e613f8933fed8 100644 (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 {
index 71bd906ed45e78368935b13a124fe6c763131a0c..2ba31288139e469bd410685c11e26dbaba3eb5e5 100644 (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 {
index 146cda5fcbd998126020a992835a99499620430d..af3e0510b19b41055cd6ef7000c7a969f532a9a8 100644 (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 {
index 0500b317e9a24544954f608b96a09fc66b2711b4..c924f6211a32e275fcac68b5e6b73f37e8c2bfef 100644 (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 {
index 2c67b7b5689e940d88a7351796e8d3de515cc8fb..c1a5649a4210fbfa0daf33949ffaa81439d76249 100644 (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 {
index 3031af241bece67fc7c23d0aa4ee211fdc14b99f..07c0aba5398c1f40a630f48d9b319a08d9681e7b 100644 (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 {
index 4d51921abd63ef2f7acfa1679175b4c6ea78684e..a1bb5d720a58cdac7b04ea8f9ffaa67f50452336 100644 (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 {
index fcd15e60a2b1c3789c3334a0710ad668e7efbd5d..78558b360fadd18c7b390b6d841bdb22b97d19f8 100644 (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 {
index 2c67b7b5689e940d88a7351796e8d3de515cc8fb..c1a5649a4210fbfa0daf33949ffaa81439d76249 100644 (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 {
index c1deed6c7410d1892445636ad6d2f05126395bd8..b539b2d22a99d70bfa1cff81b963b15d8a602d28 100644 (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 {