Skip to content

Commit

Permalink
openbsd: add devname(3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobhe committed Feb 25, 2025
1 parent 989b64a commit e44bf3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/openbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ clock_getres
clock_settime
cmsghdr
daemon
devname
difftime
dirfd
dirname
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2143,6 +2143,8 @@ extern "C" {
pub fn fstatfs(fd: c_int, buf: *mut statfs) -> c_int;
pub fn getmntinfo(mntbufp: *mut *mut crate::statfs, flags: c_int) -> c_int;
pub fn getfsstat(buf: *mut statfs, bufsize: size_t, flags: c_int) -> c_int;

pub fn devname(dev: crate::dev_t, mode_t: crate::mode_t) -> *mut c_char;
}

#[link(name = "execinfo")]
Expand Down

0 comments on commit e44bf3f

Please sign in to comment.