Skip to content

Commit

Permalink
bsd: 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 d27a284
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/apple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,7 @@ cpu_type_t
ctime
ctime_r
ctl_info
devname
difftime
dirfd
dirname
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,7 @@ cpuctl_cpuid_count_args_t
cpuctl_msr_args_t
cpuctl_update_args_t
daemon
devname
devname_r
difftime
dirfd
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,7 @@ cpuset_setid
cpusetid_t
daemon
dallocx
devname
devname_r
difftime
dirfd
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 @@ -1255,6 +1255,7 @@ clock_settime
cmsghdr
consttime_memequal
daemon
devname
difftime
dirfd
dirname
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 @@ -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/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,8 @@ extern "C" {
timeptr: *const crate::tm,
locale: crate::locale_t,
) -> size_t;

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

cfg_if! {
Expand Down

0 comments on commit d27a284

Please sign in to comment.