aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include
AgeCommit message (Collapse)Author
2025-11-14libc: rename any-macos-any to any-darwin-anyAlex Rønne Petersen
2025-11-04libc: Add mach-o/getsect.h and mach/exception.h macOS headersLinus Groh
Closes #18257.
2025-11-04libc: Add all macOS CommonCrypto headersLinus Groh
Closes #23795.
2025-11-04libc: Update macOS headers to SDK 26.1Linus Groh
2025-09-29libc: update Linux headers to 6.17Alex Rønne Petersen
2025-09-24glibc: guard inet-fortified.hKyle Schwarz
2025-09-16libc: Update macOS headers to SDK 26.0Linus Groh
2025-08-20wasi-libc: update to c89896107d7b57aef69dcadede47409ee4f702eeAlex Rønne Petersen
2025-08-14netbsd: add some missing system headersAlex Rønne Petersen
The Lua headers are needed because, yes, NetBSD has a kernel module for Lua support. soundcard.h is technically a system header but is installed by libossaudio and so was missed previously. This also removes some riscv headers that shouldn't have been added because NetBSD does not yet officially support the riscv32/riscv64 ports. Closes #24737.
2025-07-31glibc: update headers to 2.42Alex Rønne Petersen
2025-07-16fix glibc version for single_threaded.h (2.32 instead of 2.35)DubbleClick
2025-06-24add glibc versioning for a number of headers (#24237)Marc
* getrandom was added in glibc 2.25 https://sourceware.org/bugzilla/show_bug.cgi?id=17252 * copy_file_range was added in glibc 2.27 https://sourceware.org/git/?p=glibc.git;a=commit;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f * threads.h should not exist for glibc < 2.28 * single_threaded.h should not exist for glibc < 2.35 * Apply suggestions from code review Co-authored-by: Alex Rønne Petersen <alex@alexrp.com> * 2.35 instead of 35 * before 2.35 instead of 2.34 and before --------- Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
2025-06-11mingw: Update MinGW-w64 headers to 38c8142f660b6ba11e7c408f2de1e9f8bfaf839e.Alex Rønne Petersen
2025-06-04Merge pull request #24025 from alexrp/glibc-deduplicationAlex Rønne Petersen
`libc`: Merge header directories for glibc and NetBSD libc where applicable
2025-06-03Merge pull request #24013 from alexrp/test-matrixAndrew Kelley
More target coverage in the module test matrix
2025-05-31libc: update macOS headers to SDK 15.5Linus Groh
2025-05-30libc: Merge header directories for glibc and NetBSD libc where applicable.Alex Rønne Petersen
Manual patches: * lib/libc/include/csky-linux-gnu/gnu/{lib-names,stubs}.h * lib/libc/include/powerpc-linux-gnu/bits/long-double.h Takes lib/libc/include from 115.5 MB to 113.4 MB. Closes #21258.
2025-05-29libc: Remove riscv32-netbsd-none and riscv64-netbsd-none headers.Alex Rønne Petersen
These were not intended to be included as NetBSD's RISC-V port has not had an official release yet.
2025-05-17libc: Add NetBSD system and libc headers from 10.1.Alex Rønne Petersen
sys/param.h was manually adjusted to not define __NetBSD_Version__ since it will be defined by the compiler.
2025-05-12libc: update macOS headers to SDK 15.2Linus Groh
2025-05-10libc: Add FreeBSD system and libc headers from 14.2.0.Alex Rønne Petersen
osreldate.h and sys/param.h were manually adjusted to not __FreeBSD_version since it will be defined by the compiler.
2025-04-11musl: Add hexagon-linux-musl headers.Alex Rønne Petersen
2025-04-06glibc: Add missing stubs-lp64s.h for loongarch64-linux-gnusf.Alex Rønne Petersen
https://sourceware.org/bugzilla/show_bug.cgi?id=32776
2025-03-13glibc: fix uninitialized memory in __pthread_cond_s for <=2.40TCROC
* https://sourceware.org/bugzilla/show_bug.cgi?id=32786 * https://inbox.sourceware.org/libc-alpha/87zfhpfqsm.fsf@oldenburg.str.redhat.com
2025-02-25Merge pull request #22999 from alexrp/mingw-updateAlex Rønne Petersen
2025-02-25libc: Update Linux headers to 6.13.4.Alex Rønne Petersen
2025-02-24mingw: Update MinGW-w64 headers to 3839e21b08807479a31d5a9764666f82ae2f0356.Alex Rønne Petersen
2025-02-21wasi-libc: Deduplicate sources and headers with regards to upstream musl.Alex Rønne Petersen
Unfortunately some duplicate files must remain in lib/libc/wasi/libc-top-half because they include internal headers *in the same directory* which have edits relative to upstream musl. Because C is an amazing language, there is no way to make it so that e.g. upstream musl's src/stdio/fputc.c includes wasi-libc's src/stdio/putc.h instead of the upstream putc.h. The preprocessor always searches the current directory first for quote includes. Anyway, this still takes us from 2.9M to 1.4M for the combination of lib/libc/wasi and lib/libc/include/wasm-wasi-musl, so I still call it a win.
2025-02-14glibc: don't redirect fts to fts64 before glibc 2.23Hugo Beauzée-Luyssen
2025-02-10Merge pull request #22695 from alexrp/glibc-2-41Andrew Kelley
glibc 2.41
2025-02-08generic glibc: guard memfd_create & mlock2 declarationsHugo Beauzée-Luyssen
They were introduced in glibc 2.27
2025-02-06generic glibc: guard pidfd_spawn(p) declarationsHugo Beauzée-Luyssen
2025-02-06generic glibc: guard pidfd function declarationsHugo Beauzée-Luyssen
They were introduced in 2.36 & 2.39
2025-02-06generic glibc: guard definitions of functions introduced in 2.36Hugo Beauzée-Luyssen
2025-02-06generic glibc: guard statx declarationHugo Beauzée-Luyssen
It was added in glibc 2.28
2025-02-06generic glibc: guard close_range declarationHugo Beauzée-Luyssen
It is only available starting from glibc 2.34
2025-01-31glibc: Update header files to 2.41.Alex Rønne Petersen
2025-01-29Add libdl shims from wasi-libcFrank Denis
2025-01-29Re-add lazy preopen changesFrank Denis
2025-01-29Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5Frank Denis
2024-12-15std.zig.target: Remove wasm32-freestanding-musl.Alex Rønne Petersen
This is, at least today, a very broken target: It doesn't actually build either musl or wasi-libc even if you use -lc. It does give you musl headers, but that's it. Those headers are not terribly useful, however, without any implementation code. You can sort of call some math functions because they just so happen to have implementations in compiler-rt. But that's only true for a small subset, and I don't think users should be relying on the ABI surface of a library that is an implementation detail of the compiler. Clearly, a freestanding-capable libc of sorts is a useful thing as evidenced by newlib, picolibc, etc existing. However, calling it "musl" is misleading when it isn't actually musl-compatible, nor can it ever be because the musl API surface is inextricably tied to the Linux kernel. In the discussion on #20690, there was agreement that once we split up the API and ABI components in the target string, the API component should be about compatibility, not whether you literally get a particular implementation of it. Also, we decided that Linux musl and wasi-libc musl shouldn't use the same API tag precisely because they're not actually compatible. (And besides, how would any syscall even be implemented in freestanding? Who or what would we be calling?) So I think we should remove this triple for now. If we decide to reintroduce something like this, especially once #2879 gets going, we should come up with a bespoke name for it rather than using "musl".
2024-12-14mingw: Update headers to dcd7fefc703fb4b12187235386900d34cc13fdc5.Alex Rønne Petersen
2024-12-13macos: vendored libc: bump to SDK 15.1Michael Dusan
2024-11-02musl: Update headers from musl 1.2.5.Alex Rønne Petersen
Adds mips64-linux-muslabin32 and x86_64-linux-muslx32 headers.
2024-10-03glibc: Add loongarch64-linux-gnusf headers.Alex Rønne Petersen
2024-09-01lib: guard definition of `strl{cat,cpy}` against glibc version when ↵Federico Di Pierro
_FORTIFY_SOURCE is enabled. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
2024-08-09Merge pull request #21004 from alexrp/linux-6.10Andrew Kelley
Linux 6.10 headers/syscalls
2024-08-08Update Linux kernel headers to 6.10.Alex Rønne Petersen
2024-08-08Update glibc headers to 2.40.Alex Rønne Petersen
2024-08-02glibc: Replace ilp32/lp64 headers with ilp32d/lp64d.Tristan Ross
The former are soft float; the latter are hard float. We primarily care about hard float here. Signed-off-by: Alex Rønne Petersen <alex@alexrp.com>