split out blkcnt_t and blksize_t from sys_types header

This commit is contained in:
auronandace
2026-05-15 13:49:10 +01:00
parent f7594af753
commit eca687759a
5 changed files with 33 additions and 10 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 blkcnt_t and blksize_t:
# - sys/stat.h
# - sys/types.h (where they should be defined)
sys_includes = []
include_guard = "_RELIBC_BITS_SYS_STAT_H"
language = "C"
style = "type"
no_includes = true
cpp_compat = true
[export]
include = [
"blkcnt_t",
"blksize_t"
]
[enum]
prefix_with_name = true
+9
View File
@@ -0,0 +1,9 @@
use crate::platform::types::{c_long, c_longlong};
/// Used for file block counts.
#[allow(non_camel_case_types)]
pub type blkcnt_t = c_longlong;
/// Used for block sizes.
#[allow(non_camel_case_types)]
pub type blksize_t = c_long;