Commit Graph

3550 Commits

Author SHA1 Message Date
Anhad Singh f3d16d3fbd fix(pthread/tls): nit
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-23 14:29:35 +11:00
Anhad Singh b6914ef239 feat(pthread/tls): more tests
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-23 14:27:47 +11:00
Anhad Singh 0f4a82b5e8 fix(pthread/tls): destructors
Also added tests for it.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-23 14:24:43 +11:00
Jeremy Soller ba99b7940c Merge branch 'langinfo.h-posix-2024' into 'master'
langinfo.h: add macros and a function for POSIX 2024

See merge request redox-os/relibc!907
2026-01-22 17:19:35 -07:00
Connor-GH 0baee310eb langinfo.h: add macros and a function for POSIX 2024
Additionally, the `CRNCYSTR` string was in the wrong place in
the string table. This has been fixed.

This completes all requirements for Sortie's os-test for the "include"
section of langinfo.
2026-01-22 18:11:32 -06:00
Jeremy Soller c2d759bfd1 Merge branch 'multiple_sigs' into 'master'
misc signal fixes

See merge request redox-os/relibc!873
2026-01-22 07:35:04 -07:00
Jacob Lorentzon eeba32b3a2 misc signal fixes 2026-01-22 07:35:04 -07:00
Jeremy Soller 1cba18f299 Merge branch 'ctype.h-locale-functions-impl' into 'master'
ctype/mod.rs: add locale_t type definition

See merge request redox-os/relibc!906
2026-01-22 07:29:56 -07:00
Connor-GH 7beaba6bce ctype/mod.rs: add locale_t type definition 2026-01-22 08:26:56 -06:00
Jeremy Soller a65c9282e6 Merge branch 'ctype.h-locale-functions-impl' into 'master'
ctype.h: add *_l family of functions

See merge request redox-os/relibc!905
2026-01-22 06:52:31 -07:00
Connor-GH 71d192fa4c ctype.h: add *_l family of functions
This commit adds all of the locale-based versions of the ctype
functions, like `isalpha_l`. This allows 14 more tests to pass for
os-test.
2026-01-22 07:39:24 -06:00
Jeremy Soller 576fd5fe01 Merge branch 'ctype.h-locale_t-fix' into 'master'
ctype.h: add locale_t type

See merge request redox-os/relibc!904
2026-01-21 18:23:54 -07:00
Connor-GH cfd291f698 ctype.h: add locale_t type 2026-01-21 19:20:10 -06:00
Jeremy Soller a1a97069f6 Merge branch 'psignal-psiginfo-todo-completion' into 'master'
psignal/psiginfo: complete TODOs and remove allocations

See merge request redox-os/relibc!903
2026-01-21 17:10:34 -07:00
Connor-GH 89c0ff6570 psignal/psiginfo: complete TODOs and remove allocations
These implementations already passed the os-test test suite (and still
do after these changes), but I saw that they had some TODOs and some
overcomplicated code. If we want to be a fast libc, removing use of
`format!` where we can is likely a good first step because it
allocates memory.
2026-01-21 17:41:33 -06:00
Jeremy Soller 8548517784 Merge branch 'feature/deny-unsafe_op_in_unsafe_fn' into 'master'
Feature/deny unsafe op in unsafe fn

See merge request redox-os/relibc!902
2026-01-21 15:04:26 -07:00
sourceturner 1a04c02b06 Deny unsafe_op_in_unsafe_fn in generic-rt, ld_so, redox-ioctl 2026-01-21 22:43:00 +01:00
sourceturner e6ce5628da Use unsafe blocks in redox-rt 2026-01-21 22:41:46 +01:00
Jeremy Soller ac7b3c2b74 Merge branch 'shadow-sysprocfs-cleanup' into 'master'
shadow and sys_procfs header cleanup

See merge request redox-os/relibc!901
2026-01-21 06:15:39 -07:00
Jeremy Soller b44e3c2e31 Merge branch 'sgtty-sysioctl-cleanup' into 'master'
sgtty and sys_ioctl header cleanup

See merge request redox-os/relibc!900
2026-01-21 06:15:12 -07:00
auronandace f45bc46bfc shadow and sys_procfs header cleanup 2026-01-21 11:26:08 +00:00
auronandace cea71ae627 sgtty and sys_ioctl header cleanup 2026-01-21 10:50:36 +00:00
Jeremy Soller 3a8f64aa14 Merge branch 'namespace-improvement' into 'master'
Introduce namespace fd and related features

See merge request redox-os/relibc!797
2026-01-20 20:43:06 -07:00
Ibuki Omatsu 1bcb6dff78 Introduce namespace fd and related features 2026-01-20 20:43:05 -07:00
Jeremy Soller 4a50c8f313 Merge branch 'p12' into 'master'
fix(libc): use `ld.so`'s allocator

See merge request redox-os/relibc!882
2026-01-20 20:35:12 -07:00
Jeremy Soller 896c40507f Merge branch 'feature/deny-unsafe_op_in_unsafe_fn' into 'master'
Use unsafe blocks in some more unsafe functions, deny unsafe_op_in_unsafe_fn on crate level

See merge request redox-os/relibc!899
2026-01-20 16:48:35 -07:00
sourceturner defd2ce7c3 Deny deny-unsafe_op_in_unsafe_fn on the crate level 2026-01-21 00:41:57 +01:00
sourceturner 582e6eba69 Use unsafe blocks in some more unsafe functions
Building with redoxer showed some more places
that have to use unsafe blocks
2026-01-21 00:41:43 +01:00
Jeremy Soller 55aba2825e Merge branch 'locale.h-string.h-namespace-pollution-fix' into 'master'
string.h: don't pollute the namespace with locale.h

See merge request redox-os/relibc!898
2026-01-20 13:35:47 -07:00
Connor-GH cedd1686ba string.h: don't pollute the namespace with locale.h
Previously, we included all of `<locale.h>` in order to get `locale_t`.
This commit separates it into a `<bits/locale-t.h>` header (generated by
cbindgen) to better deal with this.
2026-01-20 14:29:08 -06:00
Jeremy Soller 3362ca356a Merge branch 'stdlib-cleanup' into 'master'
stdlib header cleanup

See merge request redox-os/relibc!897
2026-01-20 10:18:09 -07:00
auronandace 06971ff4bf stdlib header cleanup 2026-01-20 16:43:51 +00:00
Jeremy Soller 5d378c1460 Merge branch 'strings-endian-elf-cleanup' into 'master'
cleanup strings endian and elf headers

See merge request redox-os/relibc!896
2026-01-20 09:01:31 -07:00
auronandace c7e45afd23 cleanup strings endian and elf headers 2026-01-20 15:43:35 +00:00
Anhad Singh bbc86d8027 fix(libc): use ld.so's allocator
Previously, this was implemented incorrectly because `tcb.mspace` was
set just *before* jumping to the program's entry point. However,
`alloc_init` is called when the init functions are run for `libc.so`, so
`tcb.mspace` must be initialized *before* the init functions are
run.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-20 14:00:29 +11:00
Jeremy Soller ca46905fa9 Merge branch 'i586-guard-fix' into 'master'
Fix cbindgen 32 bit definition

See merge request redox-os/relibc!895
2026-01-19 17:54:06 -07:00
Wildan M 18b7b5456a Fix cbindgen 32 bit definition 2026-01-20 07:32:31 +07:00
Jeremy Soller e63c891af4 Merge branch 'string-locale' into 'master'
Fix CI regression caused by 0934bcf1

See merge request redox-os/relibc!894
2026-01-19 17:23:35 -07:00
Connor-GH 8544c078eb Fix CI regression caused by 0934bcf1
Previously, the CI was failing to build because it didn't
see `locale_t` inside of `<string.h>`. This commit adds
a hacky fix to this so that CI stops failing.

For now, this pollutes the C namespace by including locale
functions and definitions inside of `<string.h>`. In the
future, we will come up with a mechanism to export `locale_t`
by itself.
2026-01-19 18:19:20 -06:00
Jeremy Soller 79a636f853 Merge branch 'string-locale' into 'master'
Implement strxfrm_l, strcoll_l, and strerror_l

See merge request redox-os/relibc!893
2026-01-19 16:01:56 -07:00
Connor-GH 0934bcf13e Implement strxfrm_l, strcoll_l, and strerror_l
These implementations are effectively the same as the ones in musl.
2026-01-19 16:58:54 -06:00
Jeremy Soller b17df4daf5 Merge branch 'shutdown' into 'master'
netstack: Add shutdown syscall

See merge request redox-os/relibc!892
2026-01-19 09:34:46 -07:00
Akshit Gaur 3754effab8 Add shutdown syscall 2026-01-19 21:58:06 +05:30
Jeremy Soller 31e0766eb6 Merge branch 'master' into 'master'
fix(redox/build): missing unsafe blocks

See merge request redox-os/relibc!891
2026-01-19 03:55:38 -07:00
Anhad Singh c05e2da5b3 misc(all): formatting
Signed-off-by: Anhad Singh andypython@protonmail.com
2026-01-19 09:03:44 +00:00
Anhad Singh 81e6d4116a fix(redox/build): missing unsafe blocks
This change was made, commited, pushed and tested entirely on Redox :^)
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-19 08:42:41 +00:00
Jeremy Soller bfbbfb756c Merge branch 'feature/deny-unsafe_op_in_unsafe_fn' into 'master'
Use unsafe blocks in headers and modules

See merge request redox-os/relibc!890
2026-01-18 18:56:50 -07:00
sourceturner df5d7b2adb Use unsafe blocks in start.rs 2026-01-18 21:57:21 +01:00
sourceturner 86ca639b14 Use unsafe blocks in raw_cell.rs 2026-01-18 21:56:53 +01:00
sourceturner 0107a29e00 Use unsafe blocks in out.rs 2026-01-18 21:56:20 +01:00