Skip to content

Commit

Permalink
Auto merge of #2412 - devnexen:netbsd_pollts, r=JohnTitor
Browse files Browse the repository at this point in the history
netbsd add pollts fn.
  • Loading branch information
bors committed Sep 24, 2021
2 parents 238162d + 7f200e6 commit 8a7e251
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,7 @@ openat
openpty
pause
pipe2
pollts
popen
posix_madvise
preadv
Expand Down
8 changes: 8 additions & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2277,6 +2277,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")]
Expand Down

0 comments on commit 8a7e251

Please sign in to comment.