|
|
@@ -124,6 +124,15 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|
|
return -1, ENOSYS
|
|
|
}
|
|
|
|
|
|
+//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
|
|
|
+
|
|
|
+func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|
|
+ if len(fds) == 0 {
|
|
|
+ return poll(nil, 0, timeout)
|
|
|
+ }
|
|
|
+ return poll(&fds[0], len(fds), timeout)
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* Exposed directly
|
|
|
*/
|
|
|
@@ -422,7 +431,6 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|
|
// ntp_adjtime
|
|
|
// pmc_control
|
|
|
// pmc_get_info
|
|
|
-// poll
|
|
|
// pollts
|
|
|
// preadv
|
|
|
// profil
|