Files
llvm-project/libc/include/sys/stat.yaml
Alexey Samsonov ae63230c23 [libc] Remove more header template files (#189066)
Get rid of several .h.def files which were used to ensure that the
macro definitions from llvm-libc-macro would be included in the public
header. Replace this logic with YAML instead - add entries to the
"macros" list that point to the correct "macro_header" to ensure it
would be included.

For C standard library headers, list several standard-define macros
to document their availability. For POSIX/Linux headers, only reference
a handful of macro, since more planning is needed to decide how to
represent platform-specific macro in YAML.
2026-03-27 16:06:39 -07:00

73 lines
1.5 KiB
YAML

header: sys/stat.h
standards:
- posix
macros:
- macro_name: S_IFMT
macro_header: sys-stat-macros.h
types:
- type_name: blkcnt_t
- type_name: blksize_t
- type_name: off_t
- type_name: struct_timeval
- type_name: gid_t
- type_name: struct_stat
- type_name: uid_t
- type_name: nlink_t
- type_name: dev_t
- type_name: struct_timespec
- type_name: ino_t
- type_name: mode_t
enums: []
objects: []
functions:
- name: chmod
return_type: int
arguments:
- type: const char *
- type: mode_t
- name: fchmod
return_type: int
arguments:
- type: int
- type: mode_t
- name: fchmodat
return_type: int
arguments:
- type: int
- type: const char *
- type: mode_t
- type: int
- name: fstat
return_type: int
arguments:
- type: int
- type: struct stat *
- name: lstat
return_type: int
arguments:
- type: const char *__restrict
- type: struct stat *__restrict
- name: mkdir
return_type: int
arguments:
- type: const char *
- type: mode_t
- name: mkdirat
return_type: int
arguments:
- type: int
- type: const char *
- type: mode_t
- name: stat
return_type: int
arguments:
- type: const char *__restrict
- type: struct stat *__restrict
- name: utimensat
return_type: int
arguments:
- type: int
- type: const char *
- type: const struct timespec *
- type: int