mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:41:35 +08:00
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.
62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
header: sys/epoll.h
|
|
header_template: epoll.h.def
|
|
macros: []
|
|
types:
|
|
- type_name: struct_epoll_event
|
|
- type_name: struct_epoll_data
|
|
- type_name: sigset_t
|
|
- type_name: struct_timespec
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: epoll_create
|
|
standards:
|
|
- Linux
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- name: epoll_create1
|
|
standards:
|
|
- Linux
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- name: epoll_ctl
|
|
standards:
|
|
- Linux
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: int
|
|
- type: int
|
|
- type: struct epoll_event *
|
|
- name: epoll_pwait
|
|
standards:
|
|
- Linux
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: struct epoll_event *
|
|
- type: int
|
|
- type: int
|
|
- type: const sigset_t *
|
|
- name: epoll_pwait2
|
|
standards:
|
|
- Linux
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: struct epoll_event *
|
|
- type: int
|
|
- type: const struct timespec *
|
|
- type: const sigset_t *
|
|
- name: epoll_wait
|
|
standards:
|
|
- Linux
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: struct epoll_event *
|
|
- type: int
|
|
- type: int
|