|
|
@@ -125,6 +125,15 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+//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
|
|
|
*/
|
|
|
@@ -257,7 +266,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|
|
// Searchfs
|
|
|
// Delete
|
|
|
// Copyfile
|
|
|
-// Poll
|
|
|
// Watchevent
|
|
|
// Waitevent
|
|
|
// Modwatch
|
|
|
@@ -403,7 +411,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|
|
// Pread_nocancel
|
|
|
// Pwrite_nocancel
|
|
|
// Waitid_nocancel
|
|
|
-// Poll_nocancel
|
|
|
// Msgsnd_nocancel
|
|
|
// Msgrcv_nocancel
|
|
|
// Sem_wait_nocancel
|