kj4tmp@gmail.com
3dc2a1f9ac
zig libc: acosf
2026-02-13 11:30:14 -08:00
rpkak
4ea9904923
remove some unused libc files
2026-02-13 19:57:59 +01:00
kineye
f36d0573cd
zig libc: add rint
2026-02-12 21:42:38 -08:00
Neel
5132d78e83
libc: implement insque and remque in Zig
...
Implements insque() and remque() doubly-linked list functions
in lib/c/search.zig and removes musl C implementation.
Contributes to #30978
2026-02-12 21:35:36 -08:00
Andrew Kelley
f5d5dbd166
wasi libc: remove malloc defines
2026-02-12 13:14:51 -08:00
Andrew Kelley
e2fccd8dd5
musl: remove macro redefinitions of malloc
2026-02-12 13:14:51 -08:00
Andrew Kelley
6744160211
zig libc: implement malloc
2026-02-12 13:14:51 -08:00
Andrew Kelley
b600b6e5e0
std.posix: remove close function
2026-02-11 23:37:31 +01:00
Pivok
d4217e2119
zig libc: exp10, exp10f, pow10, pow10f ( #31163 )
...
See #30978 .
Commands i run:
```
$ stage3/bin/zig build -p stage4 -Denable-llvm -Dno-lib
$ stage4/bin/zig build test-libc -Dlibc-test-path=../../libc-test -Dtest-filter=exp10 -fqemu -fwasmtime --summary line
Build Summary: 725/737 steps succeeded (12 skipped)
```
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31163
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Pivok <pivoc@protonmail.com>
Co-committed-by: Pivok <pivoc@protonmail.com>
2026-02-11 19:39:40 +01:00
Andrew Kelley
7fbeeca924
Merge pull request 'Linux 6.19' ( #31165 ) from alexrp/zig:linux-6.19 into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31165
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-02-10 05:29:00 +01:00
Alex Rønne Petersen
7af9882c6d
libc: update Linux headers to 6.19
2026-02-09 23:54:30 +01:00
Pivok
f1b2554023
libzigc: hypotf, hypotl ( #31150 )
...
Implements hypotf and hypotl for libzigc #30978 .
Continuation of #31104
Commands i run:
```
$ stage3/bin/zig build -p stage4 -Denable-llvm -Dno-lib
$ stage4/bin/zig build test-libc -Dlibc-test-path=../../libc-test -Dtest-filter=hypotf -fqemu -fwasmtime --summary line
Build Summary: 365/369 steps succeeded (4 skipped)
$ stage4/bin/zig build test-modules -Dtest-target-filter=windows -Dtest-filter=hypotf --summary line
Build Summary: 53/101 steps succeeded (48 skipped)
```
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31150
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Pivok <pivoc@protonmail.com>
Co-committed-by: Pivok <pivoc@protonmail.com>
2026-02-09 07:59:40 +01:00
Pivok
d0b39c7f2b
libzigc: hypot ( #31104 )
...
First time contribution.
Implements hypot for libzigc #30978 .
Commands i run:
```
$ stage3/bin/zig build -p stage4 -Denable-llvm -Dno-lib
$ stage4/bin/zig build test-libc -Dlibc-test-path=../../libc-test -Dtest-filter=hypot --summary line -fqemu -fwasmtime
Build Summary: 725/737 steps succeeded (12 skipped)
```
I also changed std.math.hypot becuase some libc-tests raised fp exceptions. Example:
```
../../libc-test/src/math/special/hypot.h:8: bad fp exception: RN hypot(0x1p-1074,0x0p+0)=0x1p-1074, want 0 got INEXACT|UNDERFLOW
../../libc-test/src/math/special/hypot.h:9: bad fp exception: RN hypot(0x1p-1074,-0x0p+0)=0x1p-1074, want 0 got INEXACT|UNDERFLOW
```
I also run this command as a quick sanity check:
```
$ stage4/bin/zig build test-std -Dtest-filter=hypot -Dtest-target-filter=x86_64-linux-musl --summary line
Build Summary: 5/5 steps succeeded; 136/136 tests passed
```
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31104
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Pivok <pivoc@protonmail.com>
Co-committed-by: Pivok <pivoc@protonmail.com>
2026-02-05 21:57:32 +01:00
Ivel
fa3228ae42
libc: reimplement swab in Zig ( #31130 )
...
This PR replaces the bundled musl swab() implementation with zig's one.
Contributes towards #30978 .
It looks like there are not test cases for swab() in test-libc.
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31130
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Ivel <ivel.santos@proton.me>
Co-committed-by: Ivel <ivel.santos@proton.me>
2026-02-05 20:21:41 +01:00
Ivel
7aae7dd3f4
libzigc: pow
2026-02-03 20:14:22 +01:00
Andrew Kelley
37d14a4f3b
Merge pull request 'libzigc: cbrt, cbrtf' ( #31078 ) from jeffective/zig:jeff/libzigc-cbrt into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31078
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-02-01 20:03:57 +01:00
Jeff Anderson
4aadb5e4a5
libzigc: cbrtf
2026-02-01 00:09:54 -08:00
Jeff Anderson
0aae9768aa
libzigc: cbrt
2026-02-01 00:09:45 -08:00
Jeff Anderson
379d128cba
libzigc: roundf
2026-01-31 18:18:29 -08:00
Jeff Anderson
69a95571ed
libzigc: round
2026-01-31 17:26:17 -08:00
kj4tmp@gmail.com
e60ba21114
libzigc: roundl
2026-02-01 00:59:35 +01:00
lzm-build
ccd82ae7cc
Add f16, f80 and f128 support for atan
2026-01-30 06:20:14 +01:00
Alex Rønne Petersen
0f51f663f0
musl: update some hexagon headers from the quic fork
2026-01-27 23:24:57 +01:00
Andrew Kelley
3729a53eec
Merge pull request 'libc: use common implementations for linux syscalls' ( #30993 ) from GasInfinity/zig:libc-musl-syscalls into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30993
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-01-27 07:48:58 +01:00
Alex Rønne Petersen
519f1eb361
musl: zero fp/lr registers in _start() and clone() on hexagon
2026-01-27 05:23:31 +01:00
Alex Rønne Petersen
ff8dbd010f
libc: update glibc crt0 code to 2.43
2026-01-26 05:56:54 +01:00
Alex Rønne Petersen
e4058f2c27
libc: update glibc abilists to 2.43
2026-01-26 05:56:54 +01:00
Alex Rønne Petersen
49afd7eee0
libc: update glibc headers to 2.43
2026-01-26 05:56:54 +01:00
GasInfinity
9cf34a8d81
feat(libzigc): move over some linux syscalls
...
* does not move all of them, only those which map almost 1:1
* also removes their musl implementation
2026-01-24 20:41:15 +01:00
Andrew Kelley
4b2eae32f1
Merge pull request 'libc: use common implementation for sys/utsname.h' ( #30904 ) from GasInfinity/zig:libc-uname into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30904
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-01-22 02:23:52 +01:00
Alex Rønne Petersen
3245eddcb1
musl: fix typo in 171b104640
2026-01-21 17:53:11 +01:00
GasInfinity
4f652fb4e3
feat(libzigc): use common implementations for sys/utsname.h
...
* and remove their musl/wasi implementation
2026-01-21 00:06:42 +01:00
GasInfinity
f67d21f736
chore(libc/musl): remove unused ffs impls
...
* forgot to remove them in the previous PR
2026-01-21 00:06:42 +01:00
rpkak
e6ac1b77f0
libzigc: test and fix acos
2026-01-20 18:02:15 +01:00
Daggerfall-is-the-best-TES-game
21fc85f035
Add acos to ziglibc ( #30888 )
...
Since this is my first time contributing I wanted to keep it simple and I added just one function
I tested with
```bash
stage3/bin/zig build -p stage4 -Dno-lib -Dno-langref -Denable-llvm=true --search-prefix ~/repos/zig-boostrap/out/native-linux-musl-baseline/
stage4/bin/zig build test-libc -Dlibc-test-path=../libc-test -Dtest-target-filter=x86_64-linux-musl
```
and the tests passed.
I'm planning on doing more once I get the hang of it.
Co-authored-by: david <davidc.fried@gmail.com>
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30888
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Daggerfall-is-the-best-TES-game <daggerfall-is-the-best-tes-game@noreply.codeberg.org>
Co-committed-by: Daggerfall-is-the-best-TES-game <daggerfall-is-the-best-tes-game@noreply.codeberg.org>
2026-01-19 22:43:57 +01:00
GasInfinity
f0649dd978
feat(libzigc): use common implementations for strings.h and string.h
...
* forwards all functions to their equivalent `std`
* removes their musl, wasi-libc and mingw implementations
2026-01-17 22:37:29 +01:00
Andrew Kelley
d417441f4f
Merge pull request 'libc: use common implementations for wchar.h' ( #30850 ) from GasInfinity/zig:libc-wchar into master
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30850
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-01-17 00:58:01 +01:00
Alex Rønne Petersen
081888286b
musl: patch riscv bits/fenv.h for soft float
2026-01-16 13:29:34 +01:00
Alex Rønne Petersen
171b104640
musl: patch loongarch bits/fenv.h for soft float
...
This change was missed in 1f7ee99b35 .
2026-01-16 13:25:21 +01:00
GasInfinity
e22bf480aa
feat(libzigc): use common implementation for wchar.h
...
* but does not fully implement it (missing locale/unicode tables)
* also removes their musl/mingw implementation
2026-01-15 18:01:20 +01:00
GasInfinity
e10a325410
feat(libzigc): implement the drand48 family
...
* also remove their musl implementation
2026-01-14 13:14:33 +01:00
GasInfinity
ad3828db45
feat(libzigc): use common rand implementations
...
* also remove their musl implementation
2026-01-14 12:47:58 +01:00
Carl Åstholm
6376103b23
wasi-libc: De-deduplicate erroneously removed headers
...
05d8b565ad deduplicated wasi-libc headers
that are identical to upstream musl, but because some public headers
match the same `#include <>` patterns as private headers, this resulted
in unmodified upstream musl headers sometimes getting prioritized when
compiling wasi-libc, resulting in incorrect definitions. For example,
`UTIME_OMIT` is supposed to be -2 on WASI, but became 0x3ffffffe.
The restored headers were sourced from
<c89896107d >
which is the same revision as the most recent wasi-libc sync
07cc32b004 .
2026-01-12 22:33:29 +01:00
GasInfinity
514f6e589c
feat(libzigc): use common integer ato* and strto* implementations
...
* also removes their musl implementation
2026-01-12 00:55:11 +01:00
rpkak
08d37d6e14
compiler_rt: fix sqrtf implementation; libc: remove sqrt implementations
2026-01-10 00:09:54 +01:00
rpkak
813ae89208
libc -> libzigc: copysign
2026-01-10 00:09:54 +01:00
rpkak
aa7dac9739
libc: remove fmin/fmax implementations
2026-01-10 00:09:54 +01:00
rpkak
a2861a6c8d
libc: remove fmod implementations
2026-01-10 00:09:54 +01:00
rpkak
9dd32d5e65
libc: remove some more log implementations
2026-01-10 00:09:54 +01:00
GasInfinity
6abb1dcd35
feat(libzigc): add common ctype implementation
...
* implements all functions in the standard `ctype.h` header
* also removes their musl implementations
2026-01-09 02:51:29 +01:00