9 Commits
Author SHA1 Message Date
Sönke Holz 835be1085d LibC: Reorder definitions in endian.h to match POSIX spec order
No behavior change. This makes it a bit easier to compare the header
with the POSIX spec.
2026-02-26 23:09:53 +01:00
Sönke Holz e2a5a212e0 LibC: Use byte order definitions from the compiler
Instead of defining LITTLE_ENDIAN and BIG_ENDIAN ourselves, we should
use the definitions from the compiler.

Additionally, we don't have <bits/endian.h>, so it's never correct to
include that header.
2026-02-26 23:09:53 +01:00
Sönke Holz 051985c46b LibC: Add some POSIX spec comments to endian.h 2026-02-26 23:09:53 +01:00
Sönke Holz e8133a43fa LibC: Remove PDP_ENDIAN
I don't expect SerenityOS to ever run on a PDP-11. This definition is
not required by POSIX either.
2026-02-26 23:09:53 +01:00
Sönke Holz c3564fdb0f LibC: Remove __bswap{16,32,64}
These definitions are unused and not required by POSIX.
2026-02-26 23:09:53 +01:00
Sönke Holz 227ee20f3c LibC: Remove {le,be}toh{16,32,64}
These definitions appear to be unused and are not required by POSIX.
They appear to be specific to OpenBSD and do not seem to exist on any
other system.
2026-02-26 23:09:53 +01:00
Sönke Holz a718987a01 LibC: Don't check for feature test macros in endian.h
We don't check for feature test macros in any other LibC header, and
especially not for _GNU_SOURCE or _BSD_SOURCE. With no feature test
macro defined, this header would previously essentially be empty.

POSIX doesn't seem to require any feature test macros for this header
either.
2026-02-26 23:09:53 +01:00
Brian Gianforcaro 1682f0b760 Everything: Move to SPDX license identifiers in all files.
SPDX License Identifiers are a more compact / standardized
way of representing file license information.

See: https://spdx.dev/resources/use/#identifiers

This was done with the `ambr` search and replace tool.

 ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00
Andreas Kling 13d7c09125 Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00