Skip to content

openbsd: add devname(3) #4285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2025
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
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
Loading