Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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