gvisor/pkg
Michael Pratt 08d99c5fbe Convert poll/select to operate more directly on linux.PollFD
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
2019-04-17 12:15:01 -07:00
..
abi Fix index out of bounds in tty implementation. 2019-04-03 13:00:34 -07:00
amutex Remove license comments 2019-01-31 11:12:53 -08:00
atomicbitops Remove license comments 2019-01-31 11:12:53 -08:00
binary Internal change. 2019-04-17 11:40:11 -07:00
bits
bpf
compressio
control
cpuid Set fixed field in CPUID function 2 2019-04-04 18:01:56 -07:00
dhcp Resolve stringer TODO 2019-03-25 14:59:58 -07:00
eventchannel Internal change. 2019-04-03 22:02:51 -07:00
fd Keep FilePayloads open on server side until after RPC completed. 2019-02-08 10:51:24 -08:00
fdnotifier Convert poll/select to operate more directly on linux.PollFD 2019-04-17 12:15:01 -07:00
gate
ilist Use (*testing.T).Helper to clean up test failures 2019-04-09 05:17:32 -07:00
linewriter Remove license comments 2019-01-31 11:12:53 -08:00
log Remove license comments 2019-01-31 11:12:53 -08:00
metric Remove license comments 2019-01-31 11:12:53 -08:00
p9 Fix typo 2019-02-28 18:47:13 -08:00
rand Remove license comments 2019-01-31 11:12:53 -08:00
refs Remove license comments 2019-01-31 11:12:53 -08:00
seccomp Add profiling commands to runsc 2019-03-11 11:47:30 -07:00
secio Remove license comments 2019-01-31 11:12:53 -08:00
segment Remove license comments 2019-01-31 11:12:53 -08:00
sentry Convert poll/select to operate more directly on linux.PollFD 2019-04-17 12:15:01 -07:00
sleep Remove license comments 2019-01-31 11:12:53 -08:00
state Remove license comments 2019-01-31 11:12:53 -08:00
syserr Implement IP_MULTICAST_LOOP. 2019-03-08 15:49:17 -08:00
syserror Priority-inheritance futex implementation 2019-03-05 23:40:18 -08:00
tcpip Return error from fdbased.New 2019-04-17 11:16:35 -07:00
tmutex Remove license comments 2019-01-31 11:12:53 -08:00
unet Internal change. 2019-02-24 17:31:59 -08:00
urpc Internal change. 2019-02-08 14:14:14 -08:00
waiter Convert poll/select to operate more directly on linux.PollFD 2019-04-17 12:15:01 -07:00