Commit Graph

3423 Commits

Author SHA1 Message Date
Wildan M f56bfc4883 Adapt inet socket implementing SYS_CALL 2026-01-08 04:05:19 +07:00
Jeremy Soller 0caf852888 Merge branch 'fix-accept-hang' into 'master'
Fix accept() hang, don't accept() on recvfrom

See merge request redox-os/relibc!876
2026-01-08 06:12:07 -07:00
Jeremy Soller 2c11d0f3cb Merge branch 'p12' into 'master'
fix(ld_so/dso): `TPOFF` with undefined symbol index

See merge request redox-os/relibc!874
2026-01-07 22:10:05 -07:00
Anhad Singh 79c0df3dda fix(ld_so/dso): TPOFF with undefined symbol index
Fixes random `rustc` errors/page fault:
```
Dump of assembler code for function _RNvYNCNkNvNtNtCskfd1poFMNVt_21rustc_data_structures4sync12worker_local8REGISTRY00INtNtNtCs713rKgAoQ4g_4core3ops8function6FnOnceTINtNtB1o_6option6OptionQIB23_INtNtNtB1o_4cell4once8OnceCellNtB8_8RegistryEEEEE9call_onceBc_:
   0x0000000007651e50 <+0>:	41 56              	push   r14
   0x0000000007651e52 <+2>:	53                 	push   rbx
   0x0000000007651e53 <+3>:	50                 	push   rax
   0x0000000007651e54 <+4>:	48 8b 1d 6d 9c 46 02	mov    rbx,QWORD PTR [rip+0x2469c6d]        # 0x9abbac8
   0x0000000007651e5b <+11>:	64 48 8b 04 25 00 00 00 00	mov    rax,QWORD PTR fs:0x0
   0x0000000007651e64 <+20>:	0f b6 4c 18 08     	movzx  ecx,BYTE PTR [rax+rbx*1+0x8]
   0x0000000007651e69 <+25>:	48 01 d8           	add    rax,rbx
   0x0000000007651e6c <+28>:	83 f9 01           	cmp    ecx,0x1
   0x0000000007651e6f <+31>:	74 07              	je     0x7651e78 <_RNvYNCNkNvNtNtCskfd1poFMNVt_21rustc_data_structures4sync12worker_local8REGISTRY00INtNtNtCs713rKgAoQ4g_4core3ops8function6FnOnceTINtNtB1o_6option6OptionQIB23_INtNtNtB1o_4cell4once8OnceCellNtB8_8RegistryEEEEE9call_onceBc_+40>
   0x0000000007651e71 <+33>:	83 f9 02           	cmp    ecx,0x2
   0x0000000007651e74 <+36>:	75 0a              	jne    0x7651e80 <_RNvYNCNkNvNtNtCskfd1poFMNVt_21rustc_data_structures4sync12worker_local8REGISTRY00INtNtNtCs713rKgAoQ4g_4core3ops8function6FnOnceTINtNtB1o_6option6OptionQIB23_INtNtNtB1o_4cell4once8OnceCellNtB8_8RegistryEEEEE9call_onceBc_+48>
   0x0000000007651e76 <+38>:	31 c0              	xor    eax,eax
   0x0000000007651e78 <+40>:	48 83 c4 08        	add    rsp,0x8
   0x0000000007651e7c <+44>:	5b                 	pop    rbx
   0x0000000007651e7d <+45>:	41 5e              	pop    r14
   0x0000000007651e7f <+47>:	c3                 	ret
   0x0000000007651e80 <+48>:	48 8d 35 69 11 00 00	lea    rsi,[rip+0x1169]        # 0x7652ff0 <_RINvNtNtNtNtCs7Gz96wxcBnT_3std3sys12thread_local6native5eager7destroyINtNtNtCs713rKgAoQ4g_4core4cell4once8OnceCellNtNtNtCskfd1poFMNVt_21rustc_data_structures4sync12worker_local8RegistryEEB1U_.llvm.5183627946997663933>
   0x0000000007651e87 <+55>:	48 89 c7           	mov    rdi,rax
   0x0000000007651e8a <+58>:	49 89 c6           	mov    r14,rax
   0x0000000007651e8d <+61>:	ff 15 c5 6b 47 02  	call   QWORD PTR [rip+0x2476bc5]        # 0x9ac8a58
   0x0000000007651e93 <+67>:	4c 89 f0           	mov    rax,r14
   0x0000000007651e96 <+70>:	64 48 8b 0c 25 00 00 00 00	mov    rcx,QWORD PTR fs:0x0
    # rcx = 0x20aeb000 [FSBASE]
    # rbx = 0x2b40
   0x0000000007651e9f <+79>:	c6 44 19 08 01     	mov    BYTE PTR [rcx+rbx*1+0x8],0x1 # <--- PAGE FAULT
   0x0000000007651ea4 <+84>:	48 83 c4 08        	add    rsp,0x8
   0x0000000007651ea8 <+88>:	5b                 	pop    rbx
   0x0000000007651ea9 <+89>:	41 5e              	pop    r14
   0x0000000007651eab <+91>:	c3                 	ret
```

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-08 11:45:36 +11:00
Wildan M ad3a39771b Add more test 2026-01-08 01:42:46 +07:00
Wildan M 02752dda27 Enable some tests 2026-01-07 22:59:34 +07:00
Wildan M 99c942318a Fix inet hang, don't accept() on recvfrom 2026-01-07 22:59:20 +07:00
Jeremy Soller 8c20bc7899 Merge branch 'sys-socket-tests' into 'master'
Add sys_socket tests, Update failing tests

See merge request redox-os/relibc!872
2026-01-07 07:03:07 -07:00
Jeremy Soller 28e238c8e4 Merge branch 'flock-mutex' into 'master'
Use pthread recursive mutex for flockfile

See merge request redox-os/relibc!871
2026-01-07 07:02:35 -07:00
Jeremy Soller fe284c1229 Merge branch 'cond-n-timedlock' into 'master'
Release pthread cond workaround, fix mutex timedlock

See merge request redox-os/relibc!870
2026-01-07 07:01:58 -07:00
Jeremy Soller 992063148f Merge branch 'p12' into 'master'
misc(macros.rs): `{e}print{ln}` use `format_args!()`

See merge request redox-os/relibc!868
2026-01-07 06:59:36 -07:00
Anhad Singh a97216aa93 misc(macros.rs): {e}print{ln} use format_args!()
Allows to capture identifiers in format strings.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-07 13:16:07 +11:00
Wildan M 053525fba1 Update failing tests 2026-01-07 04:52:35 +07:00
Wildan M 9c67018022 Add sys_socket tests 2026-01-07 04:48:31 +07:00
Jeremy Soller 6e23a1342f Merge branch 'pthread-timedwait' into 'master'
Implement pthread_cond_timedwait futex properly

See merge request redox-os/relibc!867
2026-01-06 12:05:13 -07:00
Wildan M 6b191f8c63 Adjust mutex test 2026-01-07 01:44:51 +07:00
Wildan M 6ef56f5bc9 Use pthread recursive mutex for flockfile 2026-01-07 00:54:20 +07:00
Wildan M 9789af36f0 Put timespec convert into common fn 2026-01-07 00:07:50 +07:00
Wildan M ba4d789f6e Calculate pthread_mutex_timedlock clock 2026-01-06 23:33:00 +07:00
Wildan M b063aadaa5 Release pthread cond workaround, simplify 2026-01-06 23:32:15 +07:00
Jeremy Soller 5cae0f91ea Merge branch 'utmp-wctype-cleanup' into 'master'
utmp and wctype header cleanup

See merge request redox-os/relibc!866
2026-01-06 06:24:37 -07:00
Jeremy Soller 81ee7889d9 Merge branch 'pwd-pty-cleanup' into 'master'
pwd and pty header cleanup

See merge request redox-os/relibc!865
2026-01-06 06:22:06 -07:00
auronandace 0042a808b0 utmp and wctype header cleanup 2026-01-06 10:08:13 +00:00
Wildan M 10b5513e09 Fix other pthread tests 2026-01-06 16:12:50 +07:00
Wildan M fab87ae2d8 Fix i586 compilation and add more checks 2026-01-06 15:56:57 +07:00
auronandace 9936d2e5d4 pwd and pty header cleanup 2026-01-06 08:56:04 +00:00
Wildan M 0ade938c63 Add pthread/timedwait to Makefile 2026-01-06 15:43:11 +07:00
Wildan M 242ed32b42 Implement pthread_cond_timedwait futex properly 2026-01-06 15:33:58 +07:00
Jeremy Soller 3eeaf4eb22 Merge branch 'putc-unlocked-test' into 'master'
Add putc_unlocked tests

See merge request redox-os/relibc!863
2026-01-05 06:22:18 -07:00
Jeremy Soller a3079a0ef2 Merge branch 'doc-test' into 'master'
Enhance single test run, document check.sh

See merge request redox-os/relibc!862
2026-01-05 06:20:52 -07:00
Wildan M 7f30fd2c42 Restore correct sleep values 2026-01-05 14:38:39 +07:00
Wildan M 13b105a54e Fix failing tests 2026-01-05 14:38:11 +07:00
Wildan M 1e587dc77b Add putc_unlocked tests 2026-01-05 12:43:51 +07:00
Wildan M 11d2bcede6 Enhance single test run, document check.sh 2026-01-05 11:23:14 +07:00
Jeremy Soller 79f88ab6ad Merge branch 'malloc-usable-size' into 'master'
Implement malloc_usable_size

See merge request redox-os/relibc!860
2026-01-03 19:01:36 -07:00
Wildan M b5b2d0f4a0 Add malloc/usable_size into tests 2026-01-04 02:46:40 +07:00
Wildan M 0a5b046299 Update dlmalloc 2026-01-04 02:44:50 +07:00
Wildan M 7d1c3961b5 Implement malloc_usable_size 2026-01-04 02:15:29 +07:00
Jeremy Soller 7f1bbc7426 Merge branch 'sysauxv-sysfile-sysrandom-cleanup' into 'master'
sys_auxv sys_file and sys_random header cleanup

See merge request redox-os/relibc!858
2026-01-02 14:46:44 -07:00
auronandace 34c3ec3e6b sys_auxv sys_file and sys_random header cleanup 2026-01-02 21:23:58 +00:00
Jeremy Soller db0ef9cde8 Merge branch 'systime-systimeb-sysmman-cleanup' into 'master'
sys_time sys_timeb and sys_mman header cleanup

See merge request redox-os/relibc!857
2026-01-02 12:21:42 -07:00
auronandace 5576521c12 sys_time sys_timeb and sys_mman header cleanup 2026-01-02 18:24:01 +00:00
Jeremy Soller 5a1b5eab07 Merge branch 'inttypes-malloc-errno-cleanup' into 'master'
inttypes malloc and errno header cleanup

See merge request redox-os/relibc!856
2026-01-02 06:37:40 -07:00
Jeremy Soller 878aa97579 Merge branch 'getopt-cleanup' into 'master'
getopt cleanup

See merge request redox-os/relibc!855
2026-01-02 06:33:33 -07:00
Jeremy Soller c2491060e4 Merge branch 'multicore-workaround' into 'master'
Run relibc tests CI in single core again

See merge request redox-os/relibc!854
2026-01-02 06:31:53 -07:00
auronandace 09c5eb43b7 inttypes malloc and errno header cleanup 2026-01-02 11:43:50 +00:00
auronandace d00994be35 getopt cleanup 2026-01-02 09:01:31 +00:00
Wildan M 7fcdbec309 Run relibc tests CI in single core again 2026-01-01 23:41:28 +07:00
Jeremy Soller b269ccbd6f Merge branch 'p12' into 'master'
misc(Makefile): add other crates as source

See merge request redox-os/relibc!853
2026-01-01 09:09:52 -07:00
Anhad Singh 4c90ea3506 misc(Makefile): add other crates as source
Otherwise it would say there is nothing to do and `touch src && make`
would be required to trigger a rebuild.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-02 02:45:44 +11:00