Skip to content

Commit e44bf3f

Browse files
committed
openbsd: add devname(3)
1 parent 989b64a commit e44bf3f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/openbsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,7 @@ clock_getres
10661066
clock_settime
10671067
cmsghdr
10681068
daemon
1069+
devname
10691070
difftime
10701071
dirfd
10711072
dirname

src/unix/bsd/netbsdlike/openbsd/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2143,6 +2143,8 @@ extern "C" {
21432143
pub fn fstatfs(fd: c_int, buf: *mut statfs) -> c_int;
21442144
pub fn getmntinfo(mntbufp: *mut *mut crate::statfs, flags: c_int) -> c_int;
21452145
pub fn getfsstat(buf: *mut statfs, bufsize: size_t, flags: c_int) -> c_int;
2146+
2147+
pub fn devname(dev: crate::dev_t, mode_t: crate::mode_t) -> *mut c_char;
21462148
}
21472149

21482150
#[link(name = "execinfo")]

0 commit comments

Comments
 (0)