Added mcontext_t and ucontext_t types for x86_64 Linux, and the ucontext.h header definition. Used a dispatcher pattern for mcontext_t and ucontext_t to support future architecture ports, mirroring the pattern used in FPUtil. Definitions are based on the Linux kernel ABI for x86_64. Co-authored-by: Pavel Labath <pavel@labath.sk>
38 lines
735 B
YAML
38 lines
735 B
YAML
header: ucontext.h
|
|
standards:
|
|
- posix
|
|
types:
|
|
- type_name: mcontext_t
|
|
- type_name: ucontext_t
|
|
- type_name: sigset_t
|
|
- type_name: stack_t
|
|
functions:
|
|
- name: getcontext
|
|
standards:
|
|
- posix
|
|
return_type: int
|
|
arguments:
|
|
- type: ucontext_t *
|
|
- name: setcontext
|
|
standards:
|
|
- posix
|
|
return_type: int
|
|
arguments:
|
|
- type: const ucontext_t *
|
|
- name: makecontext
|
|
standards:
|
|
- posix
|
|
return_type: void
|
|
arguments:
|
|
- type: ucontext_t *
|
|
- type: void(*)(void)
|
|
- type: int
|
|
- type: ...
|
|
- name: swapcontext
|
|
standards:
|
|
- posix
|
|
return_type: int
|
|
arguments:
|
|
- type: ucontext_t *__restrict
|
|
- type: const ucontext_t *__restrict
|