Files
Jeff Bailey dbe5e3391c [libc] Add sys/param.h header (#200559)
Added the sys/param.h header containing standard BSD macros:

* NBBY
* MIN and MAX
* howmany, roundup, and powerof2
* MAXPATHLEN

The macros are defined in llvm-libc-macros/sys-param-macros.h with
guards to prevent redefinition conflicts.

Enabled the header for x86_64, aarch64, riscv, and arm Linux targets.

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

23 lines
513 B
YAML

header: sys/param.h
standards:
- bsd
macros:
- macro_name: NBBY
macro_header: sys-param-macros.h
- macro_name: MIN
macro_header: sys-param-macros.h
- macro_name: MAX
macro_header: sys-param-macros.h
- macro_name: howmany
macro_header: sys-param-macros.h
- macro_name: roundup
macro_header: sys-param-macros.h
- macro_name: powerof2
macro_header: sys-param-macros.h
- macro_name: MAXPATHLEN
macro_header: sys-param-macros.h
types: []
enums: []
objects: []
functions: []