diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index 196ed91e94c3f..91ab963b883da 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -281,7 +281,7 @@ Elf64_Word Elf64_Xword FILENAME_MAX FIOASYNC -FIODGNAME +FIODNAME FIODTYPE FIOGETLBA FIOGETOWN @@ -1037,7 +1037,6 @@ WNOWAIT WSTOPPED WTRAPPED XUCRED_VERSION -XU_NGROUPS YESEXPR YESSTR _IOFBF diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index e9dfc8a68f1e2..0044ecab04cc7 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -106,11 +106,6 @@ s! { pub f_uid_uuid: ::uuid_t, } - #[deprecated( - since = "0.2.107", - note = "stat.st_blksize is an i64 and stat.st_qspare1 is replaced with \ - stat.st_blksize in DragonFly 5.8" - )] pub struct stat { pub st_ino: ::ino_t, pub st_nlink: ::nlink_t, @@ -128,11 +123,11 @@ s! { pub st_ctime_nsec: ::c_long, pub st_size: ::off_t, pub st_blocks: i64, - pub st_blksize: u32, + pub __old_st_blksize: u32, pub st_flags: u32, pub st_gen: u32, pub st_lspare: i32, - pub st_qspare1: i64, + pub st_blksize: i64, pub st_qspare2: i64, } @@ -724,9 +719,6 @@ pub const RLIMIT_POSIXLOCKS: ::c_int = 11; #[deprecated(since = "0.2.64", note = "Not stable across OS versions")] pub const RLIM_NLIMITS: ::rlim_t = 12; -#[deprecated(since = "0.2.105", note = "Only exists on FreeBSD, not DragonFly BSD")] -pub const XU_NGROUPS: ::c_int = 16; - pub const Q_GETQUOTA: ::c_int = 0x300; pub const Q_SETQUOTA: ::c_int = 0x400; @@ -888,11 +880,6 @@ pub const EV_EOF: u16 = 0x8000; pub const EV_SYSFLAGS: u16 = 0xf000; pub const FIODNAME: ::c_ulong = 0x80106678; -#[deprecated( - since = "0.2.106", - note = "FIODGNAME is not defined on DragonFly BSD. See FIODNAME." -)] -pub const FIODGNAME: ::c_ulong = 0x80106678; pub const NOTE_TRIGGER: u32 = 0x01000000; pub const NOTE_FFNOP: u32 = 0x00000000; @@ -1375,12 +1362,11 @@ extern "C" { pub fn aio_waitcomplete(iocbp: *mut *mut aiocb, timeout: *mut ::timespec) -> ::c_int; - #[deprecated(since = "0.2.107", note = "len should be of type size_t")] pub fn devname_r( dev: ::dev_t, mode: ::mode_t, buf: *mut ::c_char, - len: ::c_int, + len: ::size_t, ) -> *mut ::c_char; pub fn waitid( diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 52f8752182447..5ff2294e797c3 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -699,7 +699,6 @@ extern "C" { all(target_os = "freebsd", any(freebsd11, freebsd10)), link_name = "fstat@FBSD_1.0" )] - #[cfg_attr(target_os = "dragonfly", allow(deprecated))] pub fn fstat(fildes: ::c_int, buf: *mut stat) -> ::c_int; pub fn mkdir(path: *const c_char, mode: mode_t) -> ::c_int; @@ -713,7 +712,6 @@ extern "C" { all(target_os = "freebsd", any(freebsd11, freebsd10)), link_name = "stat@FBSD_1.0" )] - #[cfg_attr(target_os = "dragonfly", allow(deprecated))] pub fn stat(path: *const c_char, buf: *mut stat) -> ::c_int; pub fn pclose(stream: *mut ::FILE) -> ::c_int; @@ -798,7 +796,6 @@ extern "C" { all(target_os = "freebsd", any(freebsd11, freebsd10)), link_name = "fstatat@FBSD_1.1" )] - #[cfg_attr(target_os = "dragonfly", allow(deprecated))] pub fn fstatat( dirfd: ::c_int, pathname: *const ::c_char, @@ -990,7 +987,6 @@ extern "C" { all(target_os = "freebsd", any(freebsd11, freebsd10)), link_name = "lstat@FBSD_1.0" )] - #[cfg_attr(target_os = "dragonfly", allow(deprecated))] pub fn lstat(path: *const c_char, buf: *mut stat) -> ::c_int; #[cfg_attr(