|
|
@@ -239,6 +239,15 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
|
return &value, err
|
|
|
}
|
|
|
|
|
|
+//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
|
|
|
*/
|
|
|
@@ -377,7 +386,6 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
|
// Searchfs
|
|
|
// Delete
|
|
|
// Copyfile
|
|
|
-// Poll
|
|
|
// Watchevent
|
|
|
// Waitevent
|
|
|
// Modwatch
|