Files
llvm-project/libc/include/ucontext.yaml
Jeff Bailey d8c95e6ea4 [libc] Add ucontext types and headers (#191789)
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>
2026-04-14 12:52:36 +00:00

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