Skip to content

Commit c42379d

Browse files
committed
netbsd/openbsd ftok addition.
1 parent a8d7606 commit c42379d

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ fn test_openbsd(target: &str) {
427427
"string.h",
428428
"sys/file.h",
429429
"sys/ioctl.h",
430+
"sys/ipc.h",
430431
"sys/mman.h",
431432
"sys/param.h",
432433
"sys/resource.h",
@@ -990,6 +991,7 @@ fn test_netbsd(target: &str) {
990991
"sys/file.h",
991992
"sys/ioctl.h",
992993
"sys/ioctl_compat.h",
994+
"sys/ipc.h",
993995
"sys/ktrace.h",
994996
"sys/mman.h",
995997
"sys/mount.h",

libc-test/semver/netbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ forkpty
11831183
freeifaddrs
11841184
freelocale
11851185
fsid_t
1186+
ftok
11861187
futimes
11871188
getbootfile
11881189
getbyteorder

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ freelocale
952952
freezero
953953
fsid_t
954954
fstatfs
955+
ftok
955956
fusefs_args
956957
futimes
957958
getdomainname

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ extern "C" {
747747
pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void;
748748
pub fn gethostid() -> ::c_long;
749749
pub fn sethostid(hostid: ::c_long) -> ::c_int;
750+
pub fn ftok(path: *const ::c_char, id: ::c_int) -> ::key_t;
750751
}
751752

752753
cfg_if! {

0 commit comments

Comments
 (0)