@@ -370,23 +370,6 @@ func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
370370
371371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372372
373- func EpollWait (epfd int , events []EpollEvent , msec int ) (n int , err error ) {
374- var _p0 unsafe.Pointer
375- if len (events ) > 0 {
376- _p0 = unsafe .Pointer (& events [0 ])
377- } else {
378- _p0 = unsafe .Pointer (& _zero )
379- }
380- r0 , _ , e1 := Syscall6 (SYS_EPOLL_WAIT , uintptr (epfd ), uintptr (_p0 ), uintptr (len (events )), uintptr (msec ), 0 , 0 )
381- n = int (r0 )
382- if e1 != 0 {
383- err = errnoErr (e1 )
384- }
385- return
386- }
387-
388- // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389-
390373func Exit (code int ) {
391374 Syscall (SYS_EXIT_GROUP , uintptr (code ), 0 , 0 )
392375 return
@@ -1226,6 +1209,23 @@ func Dup2(oldfd int, newfd int) (err error) {
12261209
12271210// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12281211
1212+ func EpollWait (epfd int , events []EpollEvent , msec int ) (n int , err error ) {
1213+ var _p0 unsafe.Pointer
1214+ if len (events ) > 0 {
1215+ _p0 = unsafe .Pointer (& events [0 ])
1216+ } else {
1217+ _p0 = unsafe .Pointer (& _zero )
1218+ }
1219+ r0 , _ , e1 := Syscall6 (SYS_EPOLL_WAIT , uintptr (epfd ), uintptr (_p0 ), uintptr (len (events )), uintptr (msec ), 0 , 0 )
1220+ n = int (r0 )
1221+ if e1 != 0 {
1222+ err = errnoErr (e1 )
1223+ }
1224+ return
1225+ }
1226+
1227+ // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1228+
12291229func Fadvise (fd int , offset int64 , length int64 , advice int ) (err error ) {
12301230 _ , _ , e1 := Syscall6 (SYS_FADVISE64 , uintptr (fd ), uintptr (offset ), uintptr (length ), uintptr (advice ), 0 , 0 )
12311231 if e1 != 0 {
0 commit comments