rename posix_dent d_off

This commit is contained in:
Wildan M
2025-10-12 20:37:21 +07:00
parent 1712290deb
commit 135fba1f9f
+1 -3
View File
@@ -161,13 +161,12 @@ pub struct dirent {
#[derive(Clone)]
pub struct posix_dent {
pub d_ino: ino_t,
pub __unused_d_off: off_t,
pub d_off: off_t, // not specified by posix
pub d_reclen: reclen_t,
pub d_type: c_uchar,
pub d_name: [c_char; 256],
}
#[cfg(target_os = "redox")]
const _: () = {
use core::mem::{offset_of, size_of};
@@ -371,6 +370,5 @@ pub extern "C" fn telldir(dir: &mut DIR) -> c_long {
dir.opaque_offset as c_long
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cbindgen_stupid_struct_user_for_posix_dent(a: posix_dent) {}