aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
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-10-19glibc: change library link order to prefer libc.so symbolsAlex Rønne Petersen
Also avoid resolving symbols in libraries that were later removed if possible. closes #24347
2025-10-12musl: avoid r0 as address register in s390x __tls_get_offsetAlex Rønne Petersen
https://www.openwall.com/lists/musl/2025/10/12/4 See also 7b92d5f4052be651e9bc5cd4ad78a69ccbee865d...
2025-09-29libc: update Linux headers to 6.17Alex Rønne Petersen
2025-09-28musl: delete dead __restore and __restore_rt functions for hexagon, ↵Alex Rønne Petersen
loongarch64, riscv32, riscv64 https://www.openwall.com/lists/musl/2025/09/28/2
2025-09-28musl: delete SA_RESTORER for hexagonAlex Rønne Petersen
https://github.com/quic/musl/pull/7
2025-09-28musl: delete SA_RESTORER for riscv32Alex Rønne Petersen
https://www.openwall.com/lists/musl/2025/09/28/1
2025-09-27musl: add missing fenv C dummy functions for loongarch64-linux-muslsfAlex Rønne Petersen
https://www.openwall.com/lists/musl/2025/09/27/1 closes #25367
2025-09-24glibc: guard inet-fortified.hKyle Schwarz
2025-09-16libc: Update macOS headers to SDK 26.0Linus Groh
2025-08-30musl: replace .data.rel.ro with .section .data.rel.ro,"aw"Alex Rønne Petersen
The former was an LLVM extension that appears to have been removed in LLVM 21. I won't bother fixing gen_stubs.zig; see #23881.
2025-08-28libc: delete superfluous c and assembly trunc implementationsDavid Senoner
2025-08-28libc: delete superfluous c and assembly ceil implementationDavid Senoner
2025-08-27libc: remove c floorl implementaions forgotten in #24335David Senoner
2025-08-27libc: use zig isnan and derivates for mingwDavid Senoner
2025-08-27Remove memcmp and memset from bundled musl and wasiYefeng Li
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-08-01glibc: update crt0 code to 2.42Alex Rønne Petersen
2025-07-31glibc: update headers to 2.42Alex Rønne Petersen
2025-07-31glibc: update abilists file to 2.42Alex Rønne Petersen
2025-07-16fix glibc version for single_threaded.h (2.32 instead of 2.35)DubbleClick
2025-07-04delete superfluous assembly libc floor implementationsDavid Senoner
2025-07-04delete superfluous libc floor implementationsDavid Senoner
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 sources to 38c8142f660b6ba11e7c408f2de1e9f8bfaf839e.Alex Rønne Petersen
2025-06-11mingw: Update MinGW-w64 headers to 38c8142f660b6ba11e7c408f2de1e9f8bfaf839e.Alex Rønne Petersen
2025-06-11mingw: Update MinGW-w64 definitions 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-06-03Merge pull request #24034 from papparapa/remove-musl-trigonometric-functionAndrew Kelley
libc: replace musl's and MinGW's trigonometric functions with compiler_rt's
2025-06-02Added zig patch comments to annotate the deletion of the sincos symbolSuper User
2025-06-01libc: replace MinGW's trigonometric functions with compiler_rt'sKoki Ueha
- sinf - cosf - sincos - sincosf - tanf
2025-05-31libc: update macOS headers to SDK 15.5Linus Groh
2025-05-30libc: replace musl's trigonometric functions with compiler_rt'sKoki Ueha
- sin - sinf - cos - cosf - sincos - sincosf - tan - tanf
2025-05-30mingw: Remove libscrnsav(e,w) support.Alex Rønne Petersen
This defines a WinMain() function that can be potentially problematic when it isn't wanted. If we add back support for this library in the future, it should be built separately from mingw32.lib and on demand.
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-21libc: implement common `abs` for various integer sizes (#23893)David
* libc: implement common `abs` for various integer sizes * libc: move imaxabs to inttypes.zig and don't use cInclude * libc: delete `fabs` c implementations because already implemented in compiler_rt * libc: export functions depending on the target libc Previously all the functions that were exported were handled equally, though some may exist and some not inside the same file. Moving the checks inside the file allows handling different functions differently * remove empty ifs in inttypes Co-authored-by: Alex Rønne Petersen <alex@alexrp.com> * remove empty ifs in stdlib Co-authored-by: Alex Rønne Petersen <alex@alexrp.com> * libc: use `@abs` for the absolute value calculation --------- Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
2025-05-17libc: Add NetBSD libc abilists file.Alex Rønne Petersen
Currently covers version 10.1.
2025-05-17libc: Add NetBSD libc startup code from 10.1.Alex Rønne Petersen
* sysident_assym.h was manually expanded. * The ELF_NOTE_MARCH_DESC and ELF_NOTE_MARCH_DESCSZ macros will be defined by the compiler. * Legacy .init/.fini stuff was removed. * GCJ nonsense was removed.
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-15Introduce common `strcasecmp` and `strncasecmp` implementations (#23840)Bryson Miller
2025-05-12libc: update macOS headers to SDK 15.2Linus Groh
2025-05-10libc: Add FreeBSD libc abilists file.Alex Rønne Petersen
Currently covers version 1.7 (FreeBSD 14.0.0).
2025-05-10libc: Add FreeBSD libc startup code from 14.2.0.Alex Rønne Petersen
* NT_FREEBSD_ABI_TAG was manually adjusted from using a hardcoded value to using __FreeBSD_version which will be defined by the compiler. * GCJ stuff was removed. * HAVE_CTORS definitions were removed.
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-05-10Introduce common `bzero` libc implementation. (#23812)David
* Introduce common `bzero` libc implementation. * Update test name according to review Co-authored-by: Linus Groh <mail@linusgroh.de> * address code review - import common implementation when musl or wasi is included - don't use `c_builtins`, use `@memset` * bzero calling conv to .c * Apply review Co-authored-by: Veikka Tuominen <git@vexu.eu> --------- Co-authored-by: Linus Groh <mail@linusgroh.de> Co-authored-by: Veikka Tuominen <git@vexu.eu>