remove sys_types from sys_statvfs header

This commit is contained in:
auronandace
2026-05-12 16:36:25 +01:00
parent 6b307d2cd5
commit fa6ef5d495
6 changed files with 46 additions and 11 deletions
+20
View File
@@ -0,0 +1,20 @@
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_types.h.html
#
# These types are split out to prevent importing all of sys/types.h into sys/statvfs.h.
#
# POSIX headers that require fsblkcnt_t and fsfilcnt_t:
# - sys/statvfs.h
# - sys/types.h (where they should be defined)
sys_includes = []
include_guard = "_RELIBC_BITS_SYS_STATVFS_H"
language = "C"
style = "type"
no_includes = true
cpp_compat = true
[export]
include = [
"fsblkcnt_t",
"fsfilcnt_t"
]
[enum]
prefix_with_name = true
+8
View File
@@ -0,0 +1,8 @@
use crate::platform::types::c_ulong;
/// Used for file system block counts.
#[allow(non_camel_case_types)]
pub type fsblkcnt_t = c_ulong;
/// Used for file system file counts.
#[allow(non_camel_case_types)]
pub type fsfilcnt_t = c_ulong;