Commit Graph

2001 Commits

Author SHA1 Message Date
Ibuki Omatsu 06d5cb0bfd fix: Fix getpeername for unix sockets adding SocketCall::GetPeerName and using SYS_CALL. 2025-11-10 06:20:46 -07:00
Jeremy Soller ed5a2a66ad Merge branch 'master' of https://gitlab.redox-os.org/redox-os/relibc 2025-11-08 20:59:05 -07:00
Jeremy Soller 052f000668 Ensure pipes have O_RDONLY or O_WRONLY set 2025-11-08 20:58:58 -07:00
4lDO2 513514a804 fix typo when libc check feature not enabled 2025-11-08 17:35:51 +01:00
4lDO2 4855cf3875 Fix compilation on Linux. 2025-11-08 17:31:57 +01:00
4lDO2 3ad0420b85 Add derive macro to check types vs libc crate. 2025-11-08 17:30:34 +01:00
Jeremy Soller 9eaa9e82b0 Pass through all SOL_SOCKET options, fix getsockopt option_len handling 2025-11-08 08:00:43 -07:00
Jeremy Soller f7cfacfbc8 Remove leftover dbg 2025-11-07 20:17:16 -07:00
Jeremy Soller 0ee947c389 Fix recvmsg stream being too small by one usize 2025-11-07 20:11:59 -07:00
Jeremy Soller ef5e54547f Close accepted socket on getpeername error 2025-11-07 18:46:54 -07:00
Jeremy Soller 16814d2e32 Fix socklen_t type 2025-11-07 18:10:17 -07:00
Jeremy Soller 443145fdee On Redox, if recvfrom/sendto has flags, use recvmsg/sendmsg 2025-11-07 11:05:04 -07:00
Jeremy Soller cb0acf3e57 Revert "Make sure TLS modules are aligned to 16 bytes for SSE"
This reverts commit d39fe6c9fb.
2025-11-01 10:44:34 -06:00
Jeremy Soller a33bb699e6 Remove weak linkage from getopt functions and globals 2025-10-30 14:39:27 -06:00
Jeremy Soller ab2a948d0b Abort on panic or oom, remove stabilized let_chains feature 2025-10-30 09:33:29 -06:00
Jeremy Soller c2eed49e2d Add NAME_MAX 2025-10-29 12:30:28 -06:00
Jeremy Soller 62513befa6 Merge branch 'shared-dyn-fix' into 'master'
Fix ld_so multiple objects loading the same object

Closes #227

See merge request redox-os/relibc!752
2025-10-29 08:06:07 -06:00
Wildan M abdfd3d0ac Fix ld_so multiple objects loading the same object 2025-10-29 15:46:35 +07:00
Josh Megnauth f5d432644f Implement renameat, renameat2
Like the other "at" functions, renameat renames files with respect with
a directory descriptor. "renameat2" is Linux specific but really nice -
it adds a flag which supports atomically swapping two files or failing
if the target already exists. The latter is easily supported in relibc.
The former requires redoxfs support.

Besides the impl itself, I refactored "cap_path_at" into what it really
is: a mini openat2-like function.
2025-10-21 14:47:39 -04:00
Wildan M c8fce67873 Support SIGEV_SIGNAL and TIMER_ABSTIME 2025-10-16 22:37:24 +07:00
Jeremy Soller 6092acc5bd Merge branch 'timer-fn' into 'master'
Implement POSIX timer functions

See merge request redox-os/relibc!747
2025-10-15 08:10:06 -06:00
Wildan Mubarok 2efcd20fbc Implement POSIX timer functions 2025-10-15 08:10:06 -06:00
Jeremy Soller a8f6205b10 Merge branch 'spec-and-import' into 'master'
update spec links and imports for assert and fcntl headers

See merge request redox-os/relibc!748
2025-10-15 06:35:18 -06:00
Wildan M b102d17ff5 Fix compilation on ARM/RISCV due to c_char being different 2025-10-13 20:57:28 +07:00
auronandace e4eada2e52 update spec links and imports for assert and fcntl headers 2025-10-12 17:25:03 +01:00
Jeremy Soller d50ce16e0f Merge branch 'add-posix-dent' into 'master'
Define posix_dent for posix_getdents

See merge request redox-os/relibc!746
2025-10-12 08:23:36 -06:00
Wildan M 135fba1f9f rename posix_dent d_off 2025-10-12 20:37:21 +07:00
Wildan M 1712290deb Define posix_dent for posix_getdents 2025-10-12 20:25:37 +07:00
auronandace 03c646222e update spec links and imports for libgen and sys_resource 2025-10-11 19:21:36 +01:00
Jeremy Soller 02e4d98020 Merge branch 'panic-strlen' into 'master'
Avoid panic by uninitialized string of strlen

See merge request redox-os/relibc!744
2025-10-09 10:58:28 -06:00
Wildan M 036dd3fb73 Avoid panic by unitialized string of strlen 2025-10-09 23:52:45 +07:00
auronandace 900e27538b fix formatting 2025-10-09 17:14:26 +01:00
auronandace 159b6dcdde only import what is needed 2025-10-09 17:08:43 +01:00
auronandace 0d34c229ff update and add spec links 2025-10-09 17:02:54 +01:00
Wildan M efad028739 Fix getting total memory 2025-10-09 21:15:03 +07:00
Wildan M cc325b8b0a Fix compile 2025-10-09 13:24:03 +07:00
Wildan M a118d5659b Implement reading memory 2025-10-09 13:15:05 +07:00
Jeremy Soller 1dda8a00e7 Merge branch 'nulstr' into 'master'
Generalize CStr into NulStr, adding WStr

See merge request redox-os/relibc!739
2025-10-07 10:50:08 -06:00
4lDO2 1c5732ba36 Share almost all code between printf and wprintf. 2025-10-07 15:58:34 +02:00
Wildan M 38a64f2247 Define stub memory constants 2025-10-07 20:27:32 +07:00
4lDO2 96917f519e Reuse PrintfIter for both printf and wprintf. 2025-10-06 16:16:48 +02:00
4lDO2 62cc63c351 WIP: Reimpl WPrintfIter also in safe code. 2025-10-06 16:16:48 +02:00
4lDO2 04719d6f77 Add WStr type. 2025-10-06 16:16:48 +02:00
4lDO2 9bc464686f Generalize CStr into NulStr to allow wide strings. 2025-10-06 16:16:48 +02:00
4lDO2 6dc2606886 Expand CStr to make PrintfIter fully safe. 2025-10-06 16:16:48 +02:00
Jeremy Soller 45337004b8 Merge branch 'expose-pie' into 'master'
Expose PIE information with LD_DEBUG

See merge request redox-os/relibc!738
2025-10-06 06:34:14 -06:00
Jeremy Soller fcb03dc2cd Merge branch 'out2' into 'master'
Expand Out wrapper and use it in utsname.

See merge request redox-os/relibc!736
2025-10-06 06:31:46 -06:00
Wildan M ab8021fdbe Expose PIE information with LD_DEBUG 2025-10-06 12:53:22 +07:00
4lDO2 f4cd024c2b Also add align check to projection macro. 2025-10-05 21:53:24 +02:00
4lDO2 24cf96393c Expand Out wrapper and use it in utsname. 2025-10-05 20:01:12 +02:00