Skip to content

Commit

Permalink
Auto merge of #2542 - devnexen:ftok_nbsd_obsd, r=JohnTitor
Browse files Browse the repository at this point in the history
netbsd/openbsd ftok addition.
  • Loading branch information
bors committed Nov 17, 2021
2 parents 9d94fb1 + c42379d commit 49e6255
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/build.rs
Expand Up @@ -430,6 +430,7 @@ fn test_openbsd(target: &str) {
"string.h",
"sys/file.h",
"sys/ioctl.h",
"sys/ipc.h",
"sys/mman.h",
"sys/param.h",
"sys/resource.h",
Expand Down Expand Up @@ -993,6 +994,7 @@ fn test_netbsd(target: &str) {
"sys/file.h",
"sys/ioctl.h",
"sys/ioctl_compat.h",
"sys/ipc.h",
"sys/ktrace.h",
"sys/mman.h",
"sys/mount.h",
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/netbsd.txt
Expand Up @@ -1183,6 +1183,7 @@ forkpty
freeifaddrs
freelocale
fsid_t
ftok
futimes
getbootfile
getbyteorder
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/openbsd.txt
Expand Up @@ -952,6 +952,7 @@ freelocale
freezero
fsid_t
fstatfs
ftok
fusefs_args
futimes
getdomainname
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/netbsdlike/mod.rs
Expand Up @@ -747,6 +747,7 @@ extern "C" {
pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void;
pub fn gethostid() -> ::c_long;
pub fn sethostid(hostid: ::c_long) -> ::c_int;
pub fn ftok(path: *const ::c_char, id: ::c_int) -> ::key_t;
}

cfg_if! {
Expand Down

0 comments on commit 49e6255

Please sign in to comment.