|
|
@@ -102,6 +102,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
|
|
|
*/
|
|
|
@@ -243,7 +252,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|
|
// nfssvc
|
|
|
// nnpfspioctl
|
|
|
// openat
|
|
|
-// poll
|
|
|
// preadv
|
|
|
// profil
|
|
|
// pwritev
|