X Tutup
Skip to content

Commit 0a7fd55

Browse files
committed
sys: deprecate EpollCreate1, EpollCtl, EpollWait
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 92cfc5b commit 0a7fd55

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

sys/epoll.go

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@ package sys
2020

2121
import "golang.org/x/sys/unix"
2222

23-
// EpollCreate1 directly calls unix.EpollCreate1
24-
func EpollCreate1(flag int) (int, error) {
25-
return unix.EpollCreate1(flag)
26-
}
27-
28-
// EpollCtl directly calls unix.EpollCtl
29-
func EpollCtl(epfd int, op int, fd int, event *unix.EpollEvent) error {
30-
return unix.EpollCtl(epfd, op, fd, event)
31-
}
32-
33-
// EpollWait directly calls unix.EpollWait
34-
func EpollWait(epfd int, events []unix.EpollEvent, msec int) (int, error) {
35-
return unix.EpollWait(epfd, events, msec)
36-
}
23+
// EpollCreate1 is an alias for unix.EpollCreate1
24+
// Deprecated: use golang.org/x/sys/unix.EpollCreate1
25+
var EpollCreate1 = unix.EpollCreate1
26+
27+
// EpollCtl is an alias for unix.EpollCtl
28+
// Deprecated: use golang.org/x/sys/unix.EpollCtl
29+
var EpollCtl = unix.EpollCtl
30+
31+
// EpollWait is an alias for unix.EpollWait
32+
// Deprecated: use golang.org/x/sys/unix.EpollWait
33+
var EpollWait = unix.EpollWait

0 commit comments

Comments
 (0)
X Tutup