review/correct/cleanup posix linux PR
This commit is contained in:
1 parent
c1a67f37e6
commit
5cd1784d41
15 files changed
+265
-332
No files matched your search
@@ -21,17 +21,11 @@ foreign lib {
|
||||
|
||||
[[ More; https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html ]]
|
||||
*/
|
||||
poll :: proc(fds: [^]pollfd, nfds: nfds_t, timeout: c.int) -> Poll_Error ---
|
||||
poll :: proc(fds: [^]pollfd, nfds: nfds_t, timeout: c.int) -> c.int ---
|
||||
}
|
||||
|
||||
nfds_t :: c.uint
|
||||
|
||||
Poll_Error :: enum c.int {
|
||||
EAGAIN = cast(c.int)Errno.EAGAIN,
|
||||
EINTR = cast(c.int)Errno.EINTR,
|
||||
EINVAL = cast(c.int)Errno.EINVAL,
|
||||
}
|
||||
|
||||
Poll_Event_Bits :: enum c.short {
|
||||
// Data other than high-priority data may be read without blocking.
|
||||
IN = log2(POLLIN),
|
||||
|
||||
Reference in new issue
Block a user