Jeff Bailey 4c4c1db7c6
[libc] Add utimensat syscall wrapper and entrypoint (#188347)
Implemented the utimensat syscall for Linux and added the entrypoint to
sys/stat.h.

* Added utimensat syscall wrapper to OSUtil
* Updated utimes to use the utimensat wrapper
* Added utimensat unit tests to sys/stat
* Configured entrypoints for x86_64, riscv, and aarch64
2026-03-25 07:53:29 +00:00

88 lines
1.7 KiB
YAML

header: sys/stat.h
header_template: stat.h.def
macros: []
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
standards:
- POSIX
return_type: int
arguments:
- type: const char *
- type: mode_t
- name: fchmod
standards:
- POSIX
return_type: int
arguments:
- type: int
- type: mode_t
- name: fchmodat
standards:
- POSIX
return_type: int
arguments:
- type: int
- type: const char *
- type: mode_t
- type: int
- name: fstat
standards:
- POSIX
return_type: int
arguments:
- type: int
- type: struct stat *
- name: lstat
standards:
- POSIX
return_type: int
arguments:
- type: const char *__restrict
- type: struct stat *__restrict
- name: mkdir
standards:
- POSIX
return_type: int
arguments:
- type: const char *
- type: mode_t
- name: mkdirat
standards:
- POSIX
return_type: int
arguments:
- type: int
- type: const char *
- type: mode_t
- name: stat
standards:
- POSIX
return_type: int
arguments:
- type: const char *__restrict
- type: struct stat *__restrict
- name: utimensat
standards:
- POSIX
return_type: int
arguments:
- type: int
- type: const char *
- type: const struct timespec *
- type: int