c8ef 8ce0d05b88
[libc] Revise the definition of posix_spawn. (#124686)
Closes #124635.

Some parameter types in the definition of `posix_spawn` currently do not
match the standard. This patch resolves the issue.
ref: https://man7.org/linux/man-pages/man3/posix_spawn.3.html
2025-01-29 00:23:09 +08:00

60 lines
1.4 KiB
YAML

header: spawn.h
header_template: spawn.h.def
macros: []
types:
- type_name: posix_spawn_file_actions_t
- type_name: posix_spawnattr_t
- type_name: pid_t
- type_name: mode_t
enums: []
objects: []
functions:
- name: posix_spawn
standards:
- POSIX
return_type: int
arguments:
- type: pid_t *__restrict
- type: const char *__restrict
- type: posix_spawn_file_actions_t *
- type: posix_spawnattr_t *__restrict
- type: char * const * __restrict
- type: char * const * __restrict
- name: posix_spawn_file_actions_addclose
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *
- type: int
- name: posix_spawn_file_actions_adddup2
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *
- type: int
- type: int
- name: posix_spawn_file_actions_addopen
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *__restrict
- type: int
- type: const char *__restrict
- type: int
- type: mode_t
- name: posix_spawn_file_actions_destroy
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *
- name: posix_spawn_file_actions_init
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *