diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-10-29 02:19:22 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-10-29 02:19:22 -0400 |
| commit | 67058b9b7089446e16eee3c03ab3f8f9a5d13529 (patch) | |
| tree | 6c70752e5ad29ce53088f30fa431833c58f36b04 /lib/std/event | |
| parent | d5865f5319305b6d06502b64772f8207bae2d6a5 (diff) | |
| download | zig-67058b9b7089446e16eee3c03ab3f8f9a5d13529.tar.gz zig-67058b9b7089446e16eee3c03ab3f8f9a5d13529.zip | |
basic DNS address resolution for linux without libc
Diffstat (limited to 'lib/std/event')
| -rw-r--r-- | lib/std/event/loop.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig index d0d36abc0c..cec722985b 100644 --- a/lib/std/event/loop.zig +++ b/lib/std/event/loop.zig @@ -466,6 +466,10 @@ pub const Loop = struct { return self.linuxWaitFd(fd, os.EPOLLET | os.EPOLLIN); } + pub fn waitUntilFdWritable(self: *Loop, fd: os.fd_t) !void { + return self.linuxWaitFd(fd, os.EPOLLET | os.EPOLLOUT); + } + pub async fn bsdWaitKev(self: *Loop, ident: usize, filter: i16, fflags: u32) !os.Kevent { var resume_node = ResumeNode.Basic{ .base = ResumeNode{ |
