Commit Graph

2143 Commits

Author SHA1 Message Date
4lDO2 d45adade1d Remove obsolete proc usage, now reaches init. 2024-07-09 15:00:53 +02:00
4lDO2 4e93f68324 Implement hack to ensure TCB exists in bootstrap. 2024-07-09 15:00:53 +02:00
4lDO2 a60710c597 Add missing signal arch offsets. 2024-07-09 15:00:53 +02:00
4lDO2 58d1153536 Split part of TCB into generic-rt 2024-07-09 15:00:53 +02:00
4lDO2 736a445af6 Use new proc control struct too. 2024-07-09 15:00:53 +02:00
4lDO2 edfe46c60b Write x86-64 signal trampoline asm stub. 2024-07-09 15:00:52 +02:00
4lDO2 5177ca3926 Remove memoffset dependency. 2024-07-09 15:00:52 +02:00
4lDO2 7d562920c2 Add sigaction boilerplate. 2024-07-09 15:00:52 +02:00
4lDO2 98ac085c5d Add sigprocmask stub to rt. 2024-07-09 15:00:52 +02:00
4lDO2 e1d3bf475a Increase SIGRTMIN to 35. 2024-07-09 15:00:52 +02:00
4lDO2 53ed7aae59 Move rlct_clone, sigprocmask, sigaction, to rt. 2024-07-09 15:00:52 +02:00
4lDO2 0440df142a Patch redox-syscall to fork. 2024-07-09 15:00:52 +02:00
4lDO2 4eb20628f3 Move some of signal config to redox-rt. 2024-07-09 15:00:52 +02:00
4lDO2 a800693266 Refactor: move redox-exec into redox-rt::proc. 2024-07-09 15:00:52 +02:00
Jeremy Soller e6f94291be Merge branch 'derick/fixes' into 'master'
Four distinct fixes for significant incorrectness bugs, as three small commits

See merge request redox-os/relibc!481
2024-07-09 12:57:23 +00:00
Derick Eddington 572f211be0 Fix getgrgid_r. 2024-07-06 22:47:55 -07:00
Derick Eddington 7c81de68b8 Fix header::grp::parse_grp. 2024-07-06 22:47:55 -07:00
Derick Eddington 802748b611 Fix Rwlock::acquire_write_lock to avoid blocking indefinitely.
Without this fix, `tests/bins_static/pthread/rwlock_randtest` would sometimes get stuck blocking
forever with only 1+ threads all doing `pthread_rwlock_wrlock()` but all the other threads
having finished.
2024-07-06 22:47:55 -07:00
Jeremy Soller 90af01986c Merge branch 'improve-instructions' into 'master'
Improve the testing instructions on the README

See merge request redox-os/relibc!477
2024-06-24 16:58:53 +00:00
Ribbon 482d094614 Improve the testing instructions on the README 2024-06-24 16:35:57 +00:00
Jeremy Soller 6044734a7c Merge branch 'document-tests' into 'master'
Document the test instructions and improve the title

See merge request redox-os/relibc!476
2024-06-23 23:48:30 +00:00
Ribbon d3d3dbab86 Document the test instructions and improve the title 2024-06-23 18:24:34 +00:00
Jeremy Soller 01bfb658db Merge branch 'schemev2plus' into 'master'
Implement pread and pwrite using the syscalls.

See merge request redox-os/relibc!475
2024-06-14 12:31:07 +00:00
4lDO2 4c11b607de Implement pread and pwrite using the syscalls. 2024-06-14 14:10:47 +02:00
Jeremy Soller ac08f016cd Merge branch 'ld_so_cleanup' into 'master'
Cleanup ld_so organization and move pthread_t into TCB

See merge request redox-os/relibc!474
2024-06-10 12:21:23 +00:00
4lDO2 6e86e64fdf Move pthread into TCB. 2024-06-08 11:36:22 +02:00
4lDO2 326c8a6231 Split shared ld_so code and actual ld_so stubs. 2024-06-08 11:36:06 +02:00
Jeremy Soller 73952b69ed Update to new nightly 2024-05-11 14:00:59 -06:00
Jeremy Soller b7a4527ab8 Do not print on unsupported epoll flags 2024-05-06 15:24:56 -06:00
Jeremy Soller 8ab61e3d9a Convert syscall events to EPOLL events 2024-05-06 15:16:31 -06:00
Jeremy Soller 0f5e6a5649 Correct EPOLL constants 2024-05-06 15:00:50 -06:00
Jeremy Soller 59e7d2d70f Return 0 when epoll_ctl is successful 2024-05-06 14:29:21 -06:00
Jeremy Soller 371cde006b Format 2024-05-06 14:28:42 -06:00
Jeremy Soller 373c2e30a2 Merge branch 'fix_sync' into 'master'
Various futex fixes

See merge request redox-os/relibc!470
2024-04-05 20:31:07 +00:00
Jacob Lorentzon 1fba2ef10a Various futex fixes 2024-04-05 20:31:06 +00:00
Jeremy Soller 7cf68bc8ee Merge branch 'fix_fpath' into 'master'
Fix double slashes in fpath.

See merge request redox-os/relibc!469
2024-04-02 13:25:53 +00:00
4lDO2 c53c38bcae Fix double slashes in fpath. 2024-04-02 15:10:03 +02:00
Jeremy Soller 84c0f5023e Merge branch 'unistd-constants' into 'master'
Add tests for unistd.h constants

See merge request redox-os/relibc!467
2024-03-27 12:21:14 +00:00
Peter Limkilde Svendsen a91a4082c4 Add tests for unistd.h constants 2024-03-27 12:21:14 +00:00
Jeremy Soller 612910ee80 Merge branch 'fork_clone_sync' into 'master'
Protect fork() and clone() behind a rwlock.

See merge request redox-os/relibc!468
2024-03-27 12:20:27 +00:00
4lDO2 e0a3811736 Protect fork() and clone() behind a rwlock.
rlct_clone will acquire a read lock, whereas fork will acquire a write
lock. The write lock is necessary because the fork will clone the file
table, which would result in other threads' fork/clone file descriptors
not being closed. If an address space switch fd never gets closed, fork
child processes and new threads, may never switch address spaces before
they are started, which has resulted in hard-to-debug RIP=0 instr fetch
page faults.
2024-03-27 10:30:49 +01:00
Jeremy Soller e03700421c Merge branch 'rwlock' into 'master'
Fix pthread rwlock code

See merge request redox-os/relibc!466
2024-03-26 15:46:32 +00:00
Jacob Lorentzon f7ac690c45 Fix pthread rwlock code 2024-03-26 15:46:32 +00:00
Jeremy Soller 071b10c641 Merge branch 'fix_thread_spawn' into 'master'
Don't map thread stacks as MAP_SHARED (lol), fix i686 signal trampoline

See merge request redox-os/relibc!465
2024-03-25 12:26:12 +00:00
4lDO2 6e1a0668aa Fix i686 signal trampoline asm. 2024-03-25 11:26:59 +01:00
4lDO2 b4799fdc28 Don't map thread stacks as MAP_SHARED, lol.
MAP_SHARED means it will continue to be shared after forks, which
obviously isn't the correct behavior. `acid thread` doesn't segfault
infinitely, anymore.
2024-03-25 11:25:37 +01:00
4lDO2 df91c67cf0 Implement redox_mkfs_v1. 2024-03-18 17:18:42 +01:00
Jeremy Soller 70abce96c1 Merge branch 'event_abi' into 'master'
Implement the event queue ABI.

See merge request redox-os/relibc!454
2024-03-18 12:34:48 +00:00
4lDO2 76154f555a Update redox_event. 2024-03-17 22:13:26 +01:00
4lDO2 53f7b640bd Update redox_syscall. 2024-03-17 18:13:05 +01:00