Skip to content

Commit

Permalink
netbsd/openbsd ftok addition.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Nov 16, 2021
1 parent a8d7606 commit c42379d
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 @@ -427,6 +427,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 @@ -990,6 +991,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 c42379d

Please sign in to comment.