sys: deprecate EpollCreate1, EpollCtl, EpollWait
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
92cfc5b1fb
commit
0a7fd55f32
21
sys/epoll.go
21
sys/epoll.go
@ -20,17 +20,14 @@ package sys
|
|||||||
|
|
||||||
import "golang.org/x/sys/unix"
|
import "golang.org/x/sys/unix"
|
||||||
|
|
||||||
// EpollCreate1 directly calls unix.EpollCreate1
|
// EpollCreate1 is an alias for unix.EpollCreate1
|
||||||
func EpollCreate1(flag int) (int, error) {
|
// Deprecated: use golang.org/x/sys/unix.EpollCreate1
|
||||||
return unix.EpollCreate1(flag)
|
var EpollCreate1 = unix.EpollCreate1
|
||||||
}
|
|
||||||
|
|
||||||
// EpollCtl directly calls unix.EpollCtl
|
// EpollCtl is an alias for unix.EpollCtl
|
||||||
func EpollCtl(epfd int, op int, fd int, event *unix.EpollEvent) error {
|
// Deprecated: use golang.org/x/sys/unix.EpollCtl
|
||||||
return unix.EpollCtl(epfd, op, fd, event)
|
var EpollCtl = unix.EpollCtl
|
||||||
}
|
|
||||||
|
|
||||||
// EpollWait directly calls unix.EpollWait
|
// EpollWait is an alias for unix.EpollWait
|
||||||
func EpollWait(epfd int, events []unix.EpollEvent, msec int) (int, error) {
|
// Deprecated: use golang.org/x/sys/unix.EpollWait
|
||||||
return unix.EpollWait(epfd, events, msec)
|
var EpollWait = unix.EpollWait
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user