Document stat changes on DragonFly BSD

This commit is contained in:
Ryan Zoeller 2021-10-29 22:42:58 -05:00
parent 90ebf43bb6
commit 9d11d8de1a
2 changed files with 9 additions and 0 deletions

View file

@ -106,6 +106,11 @@ 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,

View file

@ -699,6 +699,7 @@ 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;
@ -712,6 +713,7 @@ 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;
@ -796,6 +798,7 @@ 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,
@ -987,6 +990,7 @@ 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(