Commit Graph

695 Commits

Author SHA1 Message Date
Red Bear OS fa54b985ff absorb: 27 orphaned relibc patches re-applied (Phase 1.0A)
Per local/docs/PATCH-PRESERVATION-AUDIT-2026-07-12.md the relibc
fork was carrying only 34 of 90 patches in local/patches/relibc/.
The other 56 patches' content was silently missing from the fork.

This commit re-applies 27 patches that genuinely still apply
cleanly. Recovery covers:

- eventfd implementation (sys/eventfd.h + eventfd.rs)
- signalfd implementation (sys/signalfd.h + signalfd.rs)
- timerfd implementation (sys/timerfd.h + timerfd.rs)
- bits/eventfd.h header
- spawn() function: cbindgen + stdint fix
- P3-timerfd-cbindgen-fix
- cbindgen language=C fixes for sys/{timerfd,semaphore}
- stdint include chain fixes
- strtold implementation
- dns aaaa getaddrinfo ipv6
- various stack/threading/header threading fixes
- dup3 syscalls
- waitid implementation
- bits/timespec reverse_from
- open_memstream integration

24 files changed.
2026-07-12 01:29:50 +03:00
Wildan M dc3461f3e9 Set the test runner dynamically linked 2026-07-05 05:17:18 +07:00
Wildan M 001062e20c Fix clean tests 2026-07-05 02:51:17 +07:00
Wildan M ead8ca0043 Add basic test for openat 2026-06-28 15:34:01 +07:00
Wildan M c234ace91d Use ArrayString for Cwd 2026-06-22 22:13:24 +07:00
Wildan M c47b492717 Disable spawn test temporarily 2026-06-21 14:54:58 +07:00
Mathew John Roberts da55b3be0e Merge branch 'spawn' into 'master'
Add support for `posix_spawn` and `posix_spawnp` (Redox OS)

Closes #192

See merge request redox-os/relibc!1333
2026-06-17 06:18:59 +01:00
auronandace 16c3a316c6 remove ifdef from wscanf test file 2026-06-16 11:49:13 +01:00
R Aadarsh 5891ae023e Change number of characters 2026-06-15 17:08:11 +05:30
R Aadarsh 484fe42c0e * Add docs
* Change safety signatures

* Change tests

* Correctly set u/g id
2026-06-15 17:08:11 +05:30
R Aadarsh 0d127d3652 Add more tests 2026-06-15 17:08:11 +05:30
R Aadarsh ad151e0de8 * Correctly determine argv[0]
- If the function called is `posix_spawnp`, and the passed program name **does not** contain a slash, the path is used unmodified, and the path to the directory containing the program on $PATH is prepended to the program's path and assigned to `argv[0]. If the program name **does** contain a slash, the path is absolutised relative to CWD, and assigned to argv[0]

    - If the function called is `posix_spawn`, the behaviour is as described above in the case where path contains a slash

* Add initial tests
2026-06-15 17:08:11 +05:30
R Aadarsh df78820f01 Add posix_spawn_file_actions_t and posix_spawnattr_t and tests 2026-06-15 17:08:11 +05:30
sourceturner 16abb5d342 fix: implement IPv6 for arpa_inet/inet_pton() 2026-06-11 00:05:58 +02:00
Marsman1996 9408cef1c6 fix: crypt_md5: clamp salt slice to string length 2026-06-10 16:38:27 +08:00
lyw458372 38d9c05e39 fix: crypt_r: treat key as raw bytes instead of requiring UTF-8 2026-06-09 15:23:50 +08:00
Jeremy Soller 4a521f06e1 Merge branch 'fix-shm' into 'master'
fix: shmget: return EINVAL on size overflow

See merge request redox-os/relibc!1439
2026-06-08 06:46:12 -06:00
lyw458372 163c44e523 fix: shmget: return EINVAL on size overflow 2026-06-08 20:27:54 +08:00
lyw458372 5a545a1e26 test: add tm_gmtoff 2026-06-08 19:39:55 +08:00
sourceturner f035178b00 revert checks for presence of IPv6 related symbols 2026-06-06 16:18:01 +02:00
Jeremy Soller 646687f138 Merge branch 'sem' into 'master'
Fix sem_trywait and sem_wait error handling

See merge request redox-os/relibc!1424
2026-06-05 20:31:58 -06:00
Wildan M 85e6e1e675 Fix sem_trywait and sem_wait error handling 2026-06-05 09:21:50 +07:00
sourceturner 20d89d166c use ip6 feature flag for IPv6 related definitions
as a consequence, some unit tests have to be fixed, too
2026-06-04 17:48:14 +02:00
sourceturner b2da042f79 fix sys_socket/getpeername unit test 2026-06-04 17:33:37 +02:00
sourceturner fddf16c8b1 fix netdb/getaddrinfo unit test 2026-06-04 17:33:37 +02:00
sourceturner ef7b690626 add arpa_inet/inet_addr unit test 2026-06-04 17:33:37 +02:00
Connor-GH 6da03f457c tests/stdlib/ptsname: fix test for Linux due to pty changes 2026-06-04 08:17:17 -05:00
Jeremy Soller fafc4c2c00 Merge branch 'epoll-del-test' into 'master'
Add test for EPOLL_CTL_DEL

See merge request redox-os/relibc!1309
2026-06-03 19:27:58 -06:00
Wildan M 6acf560ed0 Fix pthread init and null for C++ 2026-06-04 00:38:58 +07:00
sourceturner c96fd58a07 increase values for timer
CI runner needs more time to be able to run timer_gettime() after timer_settime()
2026-05-24 19:14:08 +02:00
sourceturner abbae3dce6 add basic unit test for posix timers (time/timer) 2026-05-24 19:12:05 +02:00
Wildan M 0f03bff838 Implement pselect and write test 2026-05-22 03:29:57 +07:00
Wildan M 90676dcf04 Add %x support to strftime 2026-05-21 06:52:01 +07:00
Wildan M bc6ea5ba99 Implement key_t, sys/ipc and sys/shm 2026-05-20 18:51:53 +07:00
Jeremy Soller e6fceb9dd1 Merge branch 'static-assert' into 'master'
Implement static_assert

See merge request redox-os/relibc!1355
2026-05-19 06:03:05 -06:00
Wildan M ff56dc9b74 Implement static_assert 2026-05-18 21:56:54 +07:00
David Finder 1dbc61932a Alarm fix 2026-05-18 16:52:04 -06:00
Wildan M f731a20e02 Move sigsetjmp and siglongjmp to setjmp.h 2026-05-18 19:03:11 +07:00
Wildan M 74d34ca6e0 Add test for EPOLL_CTL_DEL 2026-05-10 18:02:57 +07:00
Wildan M 19da3a5551 Fix UB in utimes and write test 2026-05-10 08:05:05 +07:00
Wildan M 2c23024245 Fix possible signal race in tests 2026-05-09 11:14:19 +07:00
Wildan M c15059e205 Workaround nice test hit the ceiling 2026-05-09 05:48:45 +07:00
Wildan M e9c3960c65 Implement nice and write test 2026-05-09 01:23:37 +07:00
Wildan M e9f8b0c697 Merge expect files 2026-05-08 17:57:18 +07:00
Wildan M 796b1d8ef5 Remove empty stderr expect 2026-05-08 17:48:25 +07:00
Speedy_Lex 2d4ab41de5 Cargo fmt 2026-05-07 00:05:13 +02:00
Speedy_Lex eff610eac6 Fix many clippy lints 2026-05-07 00:05:07 +02:00
Wildan M 7aba041004 Implement utimensat 2026-05-05 02:02:43 +07:00
Wildan M 043ec22076 FIx sigjmp_buf and add tests 2026-05-02 16:59:48 +07:00
Mustafa öz 03d56f4887 Add fmtmsg 2026-05-01 06:00:11 +01:00