From 7f200e61c3201e3362f60813f1e4c9b5e36f2181 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 20 Sep 2021 19:50:50 +0100 Subject: [PATCH] netbsd add pollts fn. --- libc-test/semver/netbsd.txt | 1 + src/unix/bsd/netbsdlike/netbsd/mod.rs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt index a2b44a5d3345e..1d352971a7443 100644 --- a/libc-test/semver/netbsd.txt +++ b/libc-test/semver/netbsd.txt @@ -1270,6 +1270,7 @@ openat openpty pause pipe2 +pollts popen posix_madvise preadv diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index e38f22418642c..748e22c52b6a9 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -2276,6 +2276,14 @@ extern "C" { policy: ::c_int, param: *const ::sched_param, ) -> ::c_int; + + #[link_name = "__pollts50"] + pub fn pollts( + fds: *mut ::pollfd, + nfds: ::nfds_t, + ts: *const ::timespec, + sigmask: *const ::sigset_t, + ) -> ::c_int; } #[link(name = "util")]