Skip to content

Commit 91fa905

Browse files
committed
Auto merge of #2435 - i509VCB:devname_r, r=JohnTitor
add `devname_r` to freebsd and dragonfly ## Rationale I need this function specifically to re-implement some parts of `libdrm` in Rust for FreeBSD: https://cgit.freedesktop.org/drm/libdrm/tree/xf86drm.c#n905 Just so happened that dragonfly also has `devname_r` so that is included.
2 parents 3114845 + 4bffc77 commit 91fa905

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,7 @@ clock_settime
12111211
cmsgcred
12121212
cmsghdr
12131213
daemon
1214+
devname_r
12141215
difftime
12151216
dirfd
12161217
dl_iterate_phdr

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,7 @@ cmsgcred
14101410
cmsghdr
14111411
daemon
14121412
dallocx
1413+
devname_r
14131414
difftime
14141415
dirfd
14151416
dl_iterate_phdr

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,12 @@ extern "C" {
14101410
pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int;
14111411

14121412
pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int;
1413+
pub fn devname_r(
1414+
dev: ::dev_t,
1415+
mode: ::mode_t,
1416+
buf: *mut ::c_char,
1417+
len: ::c_int,
1418+
) -> *mut ::c_char;
14131419
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int;
14141420
pub fn accept4(
14151421
s: ::c_int,

0 commit comments

Comments
 (0)