remove sys_types from sys_statvfs header
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user