|
|
@@ -370,23 +370,6 @@ func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
|
|
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
|
-func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
|
|
- var _p0 unsafe.Pointer
|
|
|
- if len(events) > 0 {
|
|
|
- _p0 = unsafe.Pointer(&events[0])
|
|
|
- } else {
|
|
|
- _p0 = unsafe.Pointer(&_zero)
|
|
|
- }
|
|
|
- r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
|
|
- n = int(r0)
|
|
|
- if e1 != 0 {
|
|
|
- err = errnoErr(e1)
|
|
|
- }
|
|
|
- return
|
|
|
-}
|
|
|
-
|
|
|
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
-
|
|
|
func Exit(code int) {
|
|
|
Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
|
|
|
return
|
|
|
@@ -1226,6 +1209,23 @@ func Dup2(oldfd int, newfd int) (err error) {
|
|
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
|
+func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
|
|
+ var _p0 unsafe.Pointer
|
|
|
+ if len(events) > 0 {
|
|
|
+ _p0 = unsafe.Pointer(&events[0])
|
|
|
+ } else {
|
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
|
+ }
|
|
|
+ r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
|
|
+ n = int(r0)
|
|
|
+ if e1 != 0 {
|
|
|
+ err = errnoErr(e1)
|
|
|
+ }
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
+
|
|
|
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
|
|
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
|
|
|
if e1 != 0 {
|