08d99c5fbe
Current, doPoll copies the user struct pollfd array into a []syscalls.PollFD, which contains internal kdefs.FD and waiter.EventMask types. While these are currently binary-compatible with the Linux versions, we generally discourage copying directly to internal types (someone may inadvertantly change kdefs.FD to uint64). Instead, copy directly to a []linux.PollFD, which will certainly be binary compatible. Most of syscalls/polling.go is included directly into syscalls/linux/sys_poll.go, as it can then operate directly on linux.PollFD. The additional syscalls.PollFD type is providing little value. I've also added explicit conversion functions for waiter.EventMask, which creates the possibility of a different binary format. PiperOrigin-RevId: 244042947 Change-Id: I24e5b642002a32b3afb95a9dcb80d4acd1288abf |
||
---|---|---|
.. | ||
BUILD | ||
error.go | ||
flags.go | ||
linux64.go | ||
sigset.go | ||
sys_aio.go | ||
sys_capability.go | ||
sys_epoll.go | ||
sys_eventfd.go | ||
sys_file.go | ||
sys_futex.go | ||
sys_getdents.go | ||
sys_identity.go | ||
sys_inotify.go | ||
sys_lseek.go | ||
sys_mmap.go | ||
sys_mount.go | ||
sys_pipe.go | ||
sys_poll.go | ||
sys_prctl.go | ||
sys_random.go | ||
sys_read.go | ||
sys_rlimit.go | ||
sys_rusage.go | ||
sys_sched.go | ||
sys_seccomp.go | ||
sys_sem.go | ||
sys_shm.go | ||
sys_signal.go | ||
sys_socket.go | ||
sys_stat.go | ||
sys_sync.go | ||
sys_sysinfo.go | ||
sys_syslog.go | ||
sys_thread.go | ||
sys_time.go | ||
sys_timer.go | ||
sys_timerfd.go | ||
sys_tls.go | ||
sys_utsname.go | ||
sys_write.go | ||
timespec.go |