Commit Graph

2672 Commits

Author SHA1 Message Date
Peter Limkilde Svendsen abb1c62ff7 Add docs for PalSocket 2026-04-08 23:24:50 +02:00
Mathew John Roberts d6261d3868 Merge branch 'pal-docs' into 'master'
Document Pal methods

See merge request redox-os/relibc!1165
2026-04-08 19:48:47 +01:00
Mathew John Roberts 0b802afc7f Merge branch 'platform-rw-docs' into 'master'
Document platform readers and writers

See merge request redox-os/relibc!1164
2026-04-08 19:46:58 +01:00
Mathew John Roberts 83022746f9 Merge branch 'aio-docs' into 'master'
Add aio.h docs

See merge request redox-os/relibc!1163
2026-04-08 19:45:06 +01:00
Mathew John Roberts 4a05586a2f Merge branch 'format-mr-1159' into 'master'
Formatting

See merge request redox-os/relibc!1162
2026-04-08 19:43:22 +01:00
Mathew John Roberts 67fd089c90 Merge branch 'pthread-types-docs' into 'master'
Document pthread types

See merge request redox-os/relibc!1160
2026-04-08 19:42:29 +01:00
Peter Limkilde Svendsen 2d2aa5592b Document Pal methods 2026-04-06 20:12:04 +02:00
Peter Limkilde Svendsen bbb9426e6a Document platform readers and writers 2026-04-06 01:02:42 +02:00
Peter Limkilde Svendsen 68a49acace Add aio.h docs 2026-04-05 17:30:06 +02:00
Peter Limkilde Svendsen 8757c0facf Formatting 2026-04-05 16:44:09 +02:00
Peter Limkilde Svendsen 5151e58b47 Document pthread types 2026-04-05 16:33:06 +02:00
Jeremy Soller 933a53bfc0 Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Mathew John Roberts <auronandace@duck.com>
2026-04-05 07:51:20 -06:00
Wildan M f348d880e7 Fix compilation 2026-04-05 20:03:40 +07:00
Benton60 2b63e37410 fix behavior to always nullify the address regardless of what is passed in. 2026-04-05 01:26:45 -04:00
Benton60 7c733fc3b3 adding support for disconnecting via AF_UNSPEC 2026-04-04 18:27:01 -04:00
auronandace b4009544a8 minor code cleanups 2026-04-03 14:39:56 +01:00
Jeremy Soller 19b0b44eb9 Merge branch 'elf-bits' into 'master'
move elf bits to cbindgen

See merge request redox-os/relibc!1157
2026-04-03 07:01:10 -06:00
auronandace 700cf642e5 move elf bits to cbindgen 2026-04-03 09:15:08 +01:00
auronandace a0dd75a011 move unistd bits to cbindgen 2026-04-03 08:58:37 +01:00
Connor-GH aecec88fb6 Fix regression caused in e553e9e4
In the process of converting the assembly from AT&T syntax to Intel
syntax, bjorn3 made some mistakes. Firstly, `A+B(%reg)` is translated to
`[reg + A + B]`, and not `[reg * B + A]`. I can see how this was
confused because x86 also has an addressing mode that takes up to 4
arguments, where `A(%r1,%r2,B)` is translated to `[r1 + A + r2 * B]`
with the constraints that `B` must be a power of two <= 8, and `A` (if
present), must be an immediate. In this case, the `72+8` and such is
constfolded by the assembler into `80`.

This commit and the previous AT&T syntax version produce the exact same
assembly output now.
2026-04-02 19:14:42 -05:00
Jeremy Soller 8f9dde924b Merge branch 'fix-grp' into 'master'
make usize as size_t as per spec

See merge request redox-os/relibc!1154
2026-04-02 08:47:10 -06:00
Jeremy Soller 44efa11673 Merge branch 'platform-types-docs' into 'master'
Platform types docs

See merge request redox-os/relibc!1153
2026-04-02 08:47:08 -06:00
Peter Limkilde Svendsen 1f3cfcafb2 Platform types docs 2026-04-02 08:47:07 -06:00
auronandace 6d0030b765 make usize as size_t as per spec 2026-04-02 13:59:14 +01:00
auronandace 18ce904d7e export iovec via cbindgen function 2026-04-02 08:03:19 +01:00
Jeremy Soller 616f380856 Merge branch 'fix-rustdoc-warnings' into 'master'
Fix most rustdoc warnings

See merge request redox-os/relibc!1151
2026-04-01 18:47:12 -06:00
Jeremy Soller 369b45fceb Merge branch 'getopt-docs' into 'master'
Improve getopt.h docs

See merge request redox-os/relibc!1150
2026-04-01 18:46:38 -06:00
Peter Limkilde Svendsen 55f9c611b2 Fix most rustdoc warnings 2026-04-02 00:43:20 +02:00
Peter Limkilde Svendsen ce26bdc8b6 Improve getopt.h docs 2026-04-01 23:43:32 +02:00
Jeremy Soller 594381aaff Merge branch 'timeval-move-doc' into 'master'
Document moved spec of timeval struct

See merge request redox-os/relibc!1149
2026-04-01 15:35:42 -06:00
Peter Limkilde Svendsen 6f458cf1f3 Document moved spec of timeval struct 2026-04-01 23:20:05 +02:00
Peter Limkilde Svendsen b057e5078c Add docs for shadow.h 2026-04-01 22:54:30 +02:00
Jeremy Soller 0b880eb17d Merge branch 'split-iovec' into 'master'
split out iovec from sys_uio header

See merge request redox-os/relibc!1147
2026-04-01 08:41:26 -06:00
Jeremy Soller a64cebf296 Merge branch 'verify-grp-includes' into 'master'
verify grp header includes

See merge request redox-os/relibc!1146
2026-04-01 08:41:07 -06:00
Jeremy Soller 0630fa12f2 Merge branch 'stdio-bits' into 'master'
move stdio bits to cbindgen

See merge request redox-os/relibc!1145
2026-04-01 08:40:50 -06:00
Jeremy Soller d4c14e721e Merge branch 'stdlib-bits' into 'master'
move stdlib bits to cbindgen

See merge request redox-os/relibc!1144
2026-04-01 08:40:37 -06:00
auronandace 005b322c7c actually export iovec 2026-03-31 11:13:16 +01:00
auronandace 5d22f7096b split out iovec from sys_uio header 2026-03-31 11:03:41 +01:00
auronandace 83eb95a496 verify grp header includes 2026-03-31 09:15:51 +01:00
auronandace 1764004b80 move stdio bits to cbindgen 2026-03-31 08:53:10 +01:00
auronandace afd9cad0c3 move stdlib bits to cbindgen 2026-03-31 08:31:26 +01:00
Zero caa5ef8afb chore(signal): Move alarm function and adding the todo 2026-03-31 00:19:35 +02:00
Zero aca4df91cf feat(time): Add process_pid to timer_internal_t
Add `process_pid` field to `timer_internal_t` struct.
This field is used by the `alarm()` function to specify the PID of the process
to which the `SIGALRM` signal should be delivered.
2026-03-31 00:19:35 +02:00
Zero e0c9b0ed03 feat(signal): Implement alarm() and timer_settime logic
Adds the implementation for the `alarm()` function and its underlying
`alarm_timespec` helper. This involves managing a process-global POSIX timer
to deliver SIGALRM signals.
2026-03-31 00:09:07 +02:00
Jeremy Soller d34872cb35 Merge branch 'fgetws-fix' into 'master'
fgetws: don't always return NULL on EOF

See merge request redox-os/relibc!1126
2026-03-30 07:12:06 -06:00
Connor-GH e721d3d7c8 fgetws: don't always return NULL on EOF
This was a bug that prevented a lot of tests from passing. We only
need to return NULL if the file had an error. `fgetws` "stops when end
of stream is reached". Also, it only returns an error if "end of stream
was *already* reached or if an error occurred" (emphasis mine). Compare
this to the musl implementation:
https://git.musl-libc.org/cgit/musl/tree/src/stdio/fgetws.c
2026-03-29 21:10:59 -05:00
Jeremy Soller a1337a8fc0 Merge branch 'sysconf-heads' into 'master'
Add sysconf posix constants

See merge request redox-os/relibc!1143
2026-03-29 16:21:12 -06:00
Jeremy Soller 9b38ea8b55 Merge branch 'wchar-bits' into 'master'
move wchar bits to cbindgen

See merge request redox-os/relibc!1142
2026-03-29 15:32:18 -06:00
Jeremy Soller c9f6befae8 Merge branch 'exec-cache' into 'master'
Implement exec cache from ld_so cache

See merge request redox-os/relibc!1140
2026-03-29 15:31:56 -06:00
auronandace 4130dbce23 readd trailer for inttypes bits 2026-03-29 16:07:58 +01:00