Commit Graph

2750 Commits

Author SHA1 Message Date
Connor-GH 24e250c339 add faccessat(2) and fchownat(2)
Additionally, we were using the `access` syscall for x86_64 for our
linux PAL. I looked at the linux source and found that using the
`access`
syscall is equivalent to using `faccessat` as we do now: https://elixir.bootlin.com/linux/v6.17.5/source/fs/open.c#L550

Also, some of the `fcntl.h` functions were accidentally implemented and exported from `unistd.h`. They are supposed to be implemented in `fcntl.h` and exported to `unistd.h`. This is now the behavior.
2026-04-20 17:20:18 -05:00
Jeremy Soller cad9a0dfc8 Merge branch 'unlinkat-symlinkat-linkat' into 'master'
add unlinkat(2), symlinkat(2), linkat(2) and expose openat(2)

See merge request redox-os/relibc!1212
2026-04-20 11:31:10 -06:00
Jeremy Soller 61703694a5 Merge branch 'float-bits' into 'master'
move float bits from C to cbindgen

See merge request redox-os/relibc!1210
2026-04-20 11:27:47 -06:00
Connor-GH 0ff79b80a2 add unlinkat(2), symlinkat(2), linkat(2) and expose openat(2)
`linkat(2)` doesn't have `AT_EMPTY_PATH` as a valid flag in this
implementation because it isn't POSIX. We have it (and have
support for it), but it is more effort to add it. If we need it at some
point, it can be added in about 3 lines.

`openat(2)` previously wasn't exposed, and William was not aware of
`Sys::openat`'s existence. We use it under the hood for `mkfifoat(2)`
and friends, so expose it as a libc API. This helps to pass more os-test tests.

Lastly, the 3 implemented syscalls here help pass some os-test tests.
2026-04-20 10:58:25 -05:00
auronandace abd64422c8 move float bits from C to cbindgen 2026-04-20 08:34:51 +01:00
Wildan M 63f1790b41 Define syscall function for linux 2026-04-20 09:09:42 +07:00
Jeremy Soller c21041d0c7 Merge branch 'strtold-conflict' into 'master'
Fix include conflict in strtold

See merge request redox-os/relibc!1206
2026-04-18 07:02:49 -06:00
Wildan M 30ccb7d337 Fix include conflict in strtold 2026-04-18 12:49:02 +07:00
Jeremy Soller 2b69838a48 Merge branch 'sig_atomic_t' into 'master'
Move sig_atomic_t from stdint

See merge request redox-os/relibc!1205
2026-04-17 18:48:29 -06:00
Akshit Gaur 87b16e6d12 Priority Scheduler 2026-04-17 18:45:46 -06:00
Wildan M f59dfab490 Move sig_atomic_t from stdint 2026-04-18 02:31:35 +07:00
Jeremy Soller c35c291bea Merge branch 'susecond-t' into 'master'
Fix linux suseconds_t to fix alarm test

See merge request redox-os/relibc!1203
2026-04-16 06:49:46 -06:00
Jeremy Soller e87e3b8dc1 Merge branch 'fix-sigalrm' into 'master'
Disable SIGARLM timer delivery

See merge request redox-os/relibc!1202
2026-04-16 06:49:06 -06:00
Jeremy Soller 8f8c918822 Merge branch 'safamilyt-stdint' into 'master'
use c_ushort instead of u16 for sa_family_t

See merge request redox-os/relibc!1199
2026-04-16 06:48:20 -06:00
Jeremy Soller a549399ac3 Merge branch 'fix_wscanf_regressions' into 'master'
Fix wscanf regressions

See merge request redox-os/relibc!1201
2026-04-16 06:47:09 -06:00
Jeremy Soller 3d13964fd8 Merge branch 'termios-types-fix' into 'master'
fix types used in termios

See merge request redox-os/relibc!1200
2026-04-16 06:46:15 -06:00
Jeremy Soller c6390fc17f Merge branch 'monetary-type-fix' into 'master'
correct types in monetary

See merge request redox-os/relibc!1198
2026-04-16 06:45:24 -06:00
Jeremy Soller 48c4445c08 Merge branch 'no-libc-check-fix' into 'master'
Fix unable to compile without libc check

See merge request redox-os/relibc!1038
2026-04-16 06:44:58 -06:00
auronandace 752ac8f49d use c_ushort instead of u16 for sa_family_t 2026-04-15 22:09:43 +01:00
nicoan abc05e8c0b handling better the case 2026-04-15 17:10:31 -03:00
nicoan 495779a21b format 2026-04-15 15:40:45 -03:00
nicoan da3ff538d6 WIP: fixing regressions 2026-04-15 14:18:20 -03:00
Wildan M 9ef2789287 Fix linux suseconds_t to fix alarm test 2026-04-16 00:11:44 +07:00
Wildan M b73dd22020 Disable SIGARLM timer delivery 2026-04-15 21:03:36 +07:00
auronandace 8f62fed364 fix types used in termios 2026-04-15 14:09:42 +01:00
auronandace f0aaef6336 add stdint to safamily-t bits for uint16_t 2026-04-15 13:47:17 +01:00
auronandace 3e30fc9091 correct types in monetary 2026-04-15 13:16:38 +01:00
Wildan M 3b5acbdb40 Fix type for jump 2026-04-15 11:16:31 +07:00
Jeremy Soller 24a481364f Merge branch 'more-maths' into 'master'
Add more definition to rust math.h

See merge request redox-os/relibc!1196
2026-04-14 21:16:49 -06:00
Wildan M ff43be1be0 Use native types for signal.h 2026-04-15 10:05:35 +07:00
Wildan M 1689055c0d Add more definition to rust math.h 2026-04-15 05:50:21 +07:00
Nicolás Antinori 89f53e7640 Using Reader (formerly LookAheadReader) in scanf/wscanf format string 2026-04-14 14:11:57 -06:00
Wildan M f26bc31c2b Fix unable to compile without libc check 2026-04-14 23:43:09 +07:00
auronandace 78040e75ba verify sys_un header includes 2026-04-14 14:32:45 +01:00
Jeremy Soller 746d025957 Merge branch 'verify-termios-includes' into 'master'
verify termios header includes

See merge request redox-os/relibc!1194
2026-04-14 07:13:38 -06:00
Jeremy Soller 9b766ca8de Merge branch 'verify-monetary-includes' into 'master'
verify monetary header includes

See merge request redox-os/relibc!1193
2026-04-14 07:13:18 -06:00
Jeremy Soller f148ec216a Merge branch 'rust-cpio' into 'master'
move cpio header from C to Rust

See merge request redox-os/relibc!1192
2026-04-14 07:12:58 -06:00
auronandace a0d1e5648b verify termios header includes 2026-04-14 12:59:14 +01:00
auronandace 09fe8e29c3 verify monetary header includes 2026-04-14 11:00:25 +01:00
auronandace 1a6659ada1 move cpio header from C to Rust 2026-04-14 10:21:26 +01:00
auronandace 8c41979aba fix redox compilation for sa_family_t 2026-04-14 08:52:31 +01:00
auronandace b0c66cf470 split out sa_family_t to a bits header 2026-04-14 08:44:13 +01:00
Jeremy Soller 022f040f05 Merge branch 'signal-h' into 'master'
Fix signal.h include headers

See merge request redox-os/relibc!1190
2026-04-13 19:25:26 -06:00
Jeremy Soller 5d6dc38b71 Merge branch 'rust-math' into 'master'
Expose rust math with a feature flag

See merge request redox-os/relibc!1189
2026-04-13 19:24:51 -06:00
Connor-GH 7ade6fc0ca limits.h: add more constants
This helps us to pass several tests in Sortie's os-test suite. I forget
the exact number, but it was something like 8 or so tests:
https://doc.redox-os.org/test-results/os-test/os-test-20260410/html/limits/index.html#limits
2026-04-13 19:59:38 -05:00
Wildan M a3d2429dec Fix signal.h include headers 2026-04-14 06:22:26 +07:00
Wildan M 8f7879fc47 Expose rust math with a feature flag 2026-04-14 06:19:41 +07:00
Jeremy Soller f3a5152cb2 Merge branch 'setgroups-to-grp' into 'master'
Move setgroups() to grp.h

See merge request redox-os/relibc!1187
2026-04-13 17:03:02 -06:00
Peter Limkilde Svendsen fbccaff46c Move setgroups() to grp.h 2026-04-13 22:56:56 +02:00
auronandace 95f897b62e verify glob header includes 2026-04-13 15:19:48 +01:00