mirror-llvm-project/libc/include/err.yaml
Jeff Bailey 21be7ef447
[libc] Implement BSD extensions in <err.h> (#199055)
Implemented the BSD-extension functions defined in <err.h>:

- err, errx, verr, verrx
- warn, warnx, vwarn, vwarnx

Added an internal reporting helper in src/__support/Err. The err family
functions call internal::exit directly to satisfy [[noreturn]]
requirements. Enabled these entrypoints for aarch64, riscv, and x86_64.

Assisted-by: Automated tooling, human reviewed.
2026-07-09 06:09:01 +01:00

67 lines
1.1 KiB
YAML

header: err.h
standards:
- bsd
macros: []
types:
- type_name: va_list
functions:
- name: err
standards:
- bsd
return_type: void
arguments:
- type: int
- type: const char *
- type: '...'
- name: verr
standards:
- bsd
return_type: void
arguments:
- type: int
- type: const char *
- type: va_list
- name: errx
standards:
- bsd
return_type: void
arguments:
- type: int
- type: const char *
- type: '...'
- name: verrx
standards:
- bsd
return_type: void
arguments:
- type: int
- type: const char *
- type: va_list
- name: warn
standards:
- bsd
return_type: void
arguments:
- type: const char *
- type: '...'
- name: vwarn
standards:
- bsd
return_type: void
arguments:
- type: const char *
- type: va_list
- name: warnx
standards:
- bsd
return_type: void
arguments:
- type: const char *
- type: '...'
- name: vwarnx
standards:
- bsd
return_type: void
arguments:
- type: const char *
- type: va_list