Commit Graph

3152 Commits

Author SHA1 Message Date
Jeremy Soller c24f4bdd54 Merge branch 'correct-dlfcn' into 'master'
Correct dlfcn

See merge request redox-os/relibc!772
2025-12-03 03:50:08 -07:00
auronandace 5e6c9b8868 make Dl_info_t the type and Dl_info the alias 2025-12-02 20:26:28 +00:00
auronandace a702cb9555 only imported needed types in dlfcn 2025-12-02 20:24:05 +00:00
Jeremy Soller 96c0c058f5 Merge branch 'cleanup-sys-wait' into 'master'
Cleanup sys wait

See merge request redox-os/relibc!771
2025-12-02 12:43:07 -07:00
auronandace 68b4693564 only import needed types in sys_wait 2025-12-02 19:37:16 +00:00
auronandace ec9fd09335 update header spec link, add spec links to functions 2025-12-02 19:34:32 +00:00
auronandace ccc1d0b6fe remove commented out wait3 and rusage 2025-12-02 19:30:19 +00:00
Jeremy Soller cf3aaf4e43 Merge branch 'only-needed-sys-un-uio' into 'master'
only import the needed types in sys_un and sys_uio

See merge request redox-os/relibc!770
2025-12-02 09:54:04 -07:00
auronandace 02b302253b only import the needed types in sys_un and sys_uio 2025-12-02 15:41:01 +00:00
Jeremy Soller f15163704e Merge branch 'master' into 'master'
fix(all): aarch64 compilation

See merge request redox-os/relibc!769
2025-11-30 21:16:31 -07:00
Anhad Singh 1fdddef6a0 fix(ld_so): linker script for aarch64-unknown-linux-gnu
Ignore TLS.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 15:10:50 +11:00
Anhad Singh a7d08aa37e fix(tests/getopt_long): c should be an int not a char
`getopt_long` returns an `int` not a `char`. On aarch64 `char` is
unsigned but on x86 is signed. This is why it had worked so far without
any issues.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:55:00 +11:00
Anhad Singh 6bcdac4202 fix(platform/linux): use FCHOWNAT to implement lchown(2)
`LCHOWN` syscall is not available on aarch64.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:46:08 +11:00
Anhad Singh 6d68ca9957 fix(platform/linux): use FACCESSAT to implement access(2)
`ACCESS` syscall is not available on aarch64.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:46:08 +11:00
Anhad Singh 90963fdfb9 feat(platform/linux): stub rlct_clone
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:46:07 +11:00
Anhad Singh 4f1920ab96 feat(ld_so/tcb): implement os_arch_activate for aarch64 linux
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:46:07 +11:00
Anhad Singh 6262c4ae50 fix(ld_so): getting TP on linux
`ARCH_GET_FS` is x86_64 specific. On aarch64 it is not platform
specific and just need to read out the TP from `TPIDR_EL0`

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:46:07 +11:00
Anhad Singh 35a10eb940 feat(ld_so): add linker script for aarch64-unknown-linux-gnu
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:46:07 +11:00
Anhad Singh 7f21c95503 misc(Cargo.toml): bump sc
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:46:07 +11:00
Jeremy Soller c4941007c6 Merge branch 'document-sys-uio' into 'master'
update header spec reference and add spec references to functions

See merge request redox-os/relibc!768
2025-11-29 11:08:38 -07:00
auronandace 44cd0971b1 update header spec reference and add spec references to functions 2025-11-29 17:48:56 +00:00
Jeremy Soller 53e89724b7 Merge branch 'document-dlfcn' into 'master'
Document dlfcn

See merge request redox-os/relibc!767
2025-11-29 09:24:09 -07:00
auronandace 329db0dd9c add Dl_info_t alias for Dl_info 2025-11-29 15:33:31 +00:00
auronandace a25cf92162 update header reference and add references to functions 2025-11-29 15:22:39 +00:00
Jeremy Soller 8ad1d3c110 Merge branch 'fix-netdb-test' into 'master'
Move netdb to varied output test

See merge request redox-os/relibc!766
2025-11-29 06:44:56 -07:00
Jeremy Soller b15eb5c506 Merge branch 'impl-posix_fallocate' into 'master'
Implement posix_fallocate

See merge request redox-os/relibc!751
2025-11-29 06:44:34 -07:00
Wildan M 7e48f2d2fc Move netdb to varied output test 2025-11-28 19:08:32 -08:00
Josh Megnauth 8e5937ca25 Implement posix_fallocate
`posix_fallocate` ensures that a byte range in a file is allocated so
that subsequent writes don't fail. Unlike ftruncate, posix_fallocate
does not shrink files.

The Linux syscall fallocate is similar to posix_fallocate except with
far more control over how byte ranges are allocated (e.g. it supports
file holes and other features). This MR doesn't implement fallocate as
it requires syscall and redoxfs support.

Finally, I changed the flags for flock from usize to c_int. That matches
what we have in libc and also avoids some silly, needless type casting.
2025-11-28 19:49:21 -05:00
Jeremy Soller 27355b953b Merge branch 'getsubopt' into 'master'
Fix getsubopt and add test

See merge request redox-os/relibc!765
2025-11-28 08:14:44 -07:00
Wildan M 8e16c9c80c Fix getsubopt and add test 2025-11-28 06:59:51 -08:00
Jeremy Soller f9c78622bd Merge branch 'fix-inet-eopnopsupp' into 'master'
Fix netstack triggering EOPNOTSUPP

See merge request redox-os/relibc!764
2025-11-24 07:08:11 -07:00
Wildan M c90bb71deb Fix netstack triggering EOPNOTSUPP 2025-11-23 22:00:26 -08:00
Jeremy Soller 339e97ac65 Fix type of ai_addrlen 2025-11-21 11:37:16 -07:00
Jeremy Soller 549cae066f Add sys/queue.h from NetBSD like Alpine Linux does 2025-11-20 09:37:09 -07:00
Jeremy Soller 01f01d3bd4 Fix for F_DUPFD_CLOEXEC, add TODO for usage in upper table 2025-11-17 17:46:57 -07:00
Jeremy Soller db2600881f Add F_DUPFD_CLOEXEC 2025-11-17 17:44:49 -07:00
Jeremy Soller c6849f21e4 Fix compilation on i586 2025-11-16 08:54:54 -07:00
Jeremy Soller 099c35f3ca Merge branch 'use-upper-fdtbl' into 'master'
use upper fd table

See merge request redox-os/relibc!760
2025-11-16 08:35:32 -07:00
Jeremy Soller b263819d91 Merge branch 'switch-x86' into 'master'
Switch x86 GCC to i586

See merge request redox-os/relibc!762
2025-11-16 06:31:24 -07:00
Wildan M 3ab012e441 Switch x86 GCC to i586 2025-11-16 13:23:56 +07:00
Jeremy Soller 0844e6fc90 WIP: use upper fd table 2025-11-15 07:55:37 -07:00
Jeremy Soller d445714769 Merge branch 'bump-toolchain' into 'master'
Fix relibc freestanding build by bumping toolchain

See merge request redox-os/relibc!761
2025-11-15 06:09:15 -07:00
Wildan M 4e8a8cad5c Fix relibc freestanding build by bumping toolchain 2025-11-15 19:04:57 +07:00
Jeremy Soller 74e3ad1c2c Do TLS alignment in reliable way 2025-11-13 12:07:06 -07:00
Jeremy Soller afb8f46020 Implement ppoll 2025-11-13 10:47:29 -07:00
Jeremy Soller aeb243746c Add recv/sendmsg flags to metadata 2025-11-13 10:19:45 -07:00
Jeremy Soller c4050203e8 Revert "Align TLS to 16 bytes again"
This reverts commit 860a8e6e4b.
2025-11-13 08:16:22 -07:00
Jeremy Soller 764a30ef3d Merge branch 'setsockopt-ignore-eopnotsupp' into 'master'
fix: Ignore EOPNOTSUPP error from sys_call in setsockopt.

See merge request redox-os/relibc!759
2025-11-12 06:00:44 -07:00
Ibuki Omatsu e675da5a30 fix: Ignore EOPNOTSUPP error from sys_call in setsockopt. 2025-11-12 06:00:44 -07:00
4lDO2 512c4f0aa8 Clarification of st_mode bits extraction code. 2025-11-12 12:10:11 +01:00