Files
clang-p2996/libc/include/spawn.yaml
Roland McGrath 6ad0dcf67f [libc] Revamp hdrgen command line and build integration (#121522)
This adds a new main command-line entry point for hdrgen, in the
new main.py.  This new interface is used for generating a header.
The old ways of invoking yaml_to_classes.py for other purposes
are left there for now, but `--e` is renamed to `--entry-point`
for consistency with the new CLI.

The YAML schema is expanded with the `header_template` key where
the corresponding `.h.def` file's path is given relative to where
the YAML file is found.  The build integration no longer gives
the `.h.def` path on the command line.  Instead, the script now
emits a depfile that's used by the cmake rules to track that.
The output file is always explicit in the script command line
rather than sometimes being derived from a directory path.
2025-01-07 15:56:12 -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: const char *__restrict *
- type: const char *__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 *