auronandace
bf6dc24407
add ptr_offset_by_literal clippy lint and set to deny
2026-07-06 12:40:43 +01:00
auronandace
c953dff5dd
cargo fmt
2026-06-15 15:13:37 +01:00
auronandace
68758f3f90
add descriptions to inttypes header and related functions
2026-06-15 15:09:18 +01:00
auronandace
ecb081d8bd
add descriptions and pick a better function name
2026-06-12 11:13:06 +01:00
auronandace
4882c450d8
apply ByteLiteral abstraction
2026-06-11 18:01:25 +01:00
auronandace
40767a44fa
avoid as casting ascii bytes to c_char
2026-06-11 15:06:06 +01:00
auronandace
965941564d
silence cast_lossless clippy lint from triggering inside macros
2026-06-11 09:42:47 +01:00
auronandace
94b2f29beb
tackle various clippy lints
2026-06-05 14:36:06 +01:00
Connor-GH
38737af78d
pty: update libc functions for ptyd changes
...
Of note is that `unlockpt` is required, both by the standard, and our
implementation. This has been taken care of inside of `openpty`, which
is the only non-libc way we are acquiring ptys. Additionally, it has
been modified such that it is POSIX compliant, so any outside future
changes to ptyd will not affect it.
This is part of my ptyd changes (#100 ). This can be safely merged once
the changes from base/ and userutils/ are merged alongside it.
2026-06-03 19:41:38 -05:00
Connor-GH
774a9a658d
implement threads.h
...
Most of the functions are wrappers around the pthread.h functions, but
we are not allowed to include pthread.h.
2026-05-10 19:44:34 -05:00
Wildan M
799cca048f
Revert 292fd9e to fix LLVM allocation issue
2026-05-10 03:45:59 +07:00
Wildan M
5c253e3cc8
Implement qsort_r
2026-05-05 02:54:17 +07:00
Connor-GH
7c8259dfd6
fix some lints caught by Clippy
...
Most of these changes are very simple. Among the changes made involve
taking advantage of auto-deref (`(*val).foo()` -> `val.foo()`) and
removing instances where we create a ref and immediately dereference it
(`&*val` -> `val`). There was a pretty neat case in `posix_openpt` where
some pointer verbosity was able to be reduced by using the more modern C
strings rather than the byte strings with an explicit NUL at the end.
Additionally, `exit()` now calls `unreachable!()` at the end. We
previously did `loop {}`, but clippy didn't like this. It can be up for
debate whether we want to make this `unreachable_unchecked` or similar.
There is only one change that might cause any sort of concern, and that
is the change from `.skip_while(!p).next()` -> `.find(p)`. This, like
everything else, was caught in a Clippy lint but I believe it deserves
some explanation because it isn't immediately obvious. Info about the
lint is here: https://rust-lang.github.io/rust-clippy/rust-1.89.0/index.html#skip_while_next
2026-04-30 19:02:35 -05:00
bjorn3
79b469f29d
Remove support for _init and _fini in statically linked executables
...
These are legacy predecessors of .init_array/.fini_array. They were
already not supported by the dynamic linker.
2026-04-28 17:59:45 +02:00
sourceturner
292fd9e50b
replace deprecated memalign() with posix_memalign()
2026-04-20 21:37:52 +00:00
sourceturner
885118ccac
add missing #[deprecated] annotations
...
add #[deprecated] annotation to functions that are marked
as 'legacy' or 'obsolecent' (according to their comments)
2026-04-20 21:37:52 +00:00
Peter Limkilde Svendsen
f28cb80507
Replace static mut in seed48()
2026-04-11 16:07:48 +02:00
auronandace
b516113722
minor cleanup
2026-03-19 13:03:16 +00:00
auronandace
2b52312227
update rand dependencies to latest
2026-03-14 15:38:45 +00:00
auronandace
b44bf78793
stdlib and stdio header cleanup
2026-02-28 19:01:06 +00:00
auronandace
1c1ec91167
take into account x86 c_long
2026-02-27 12:21:54 +00:00
auronandace
ebc1410fa5
stdlib header cleanup
2026-02-27 11:56:45 +00:00
Jeremy Soller
24ea34a03e
Merge branch 'fix-aligned_alloc' into 'master'
...
fix: return EINVAL when `alignment` of `aligned_alloc` is 0
Closes #258
See merge request redox-os/relibc!968
2026-02-24 08:10:24 -07:00
auronandace
47b23ae546
apply precedence clippy lint
2026-02-20 11:27:43 +00:00
auronandace
c3f3e051e1
add unused-unsafe lint
2026-02-08 15:39:48 +00:00
auronandace
50cd1ce1b0
add unpredictable_function_pointer_comparisons lint
2026-02-07 19:38:07 +00:00
Marsman
2e4db0d130
fix: return EINVAL when alignment is 0
2026-02-07 10:55:39 +00:00
Wildan M
f15322453b
Convert all println to log or todo
2026-01-25 05:27:38 +07:00
sourceturner
defd2ce7c3
Deny deny-unsafe_op_in_unsafe_fn on the crate level
2026-01-21 00:41:57 +01:00
auronandace
06971ff4bf
stdlib header cleanup
2026-01-20 16:43:51 +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
sourceturner
59fb13ee2c
Use unsafe blocks in stdlib.h implementation
2026-01-18 21:10:34 +01:00
Jeremy Soller
40c9c14ea8
Revert "Convert strtold to Rust"
...
This reverts commit 08485648f6 .
2026-01-15 18:31:47 -07:00
Wildan M
08485648f6
Convert strtold to Rust
2025-12-25 16:11:36 +07:00
Wildan M
8e16c9c80c
Fix getsubopt and add test
2025-11-28 06:59:51 -08:00
Jeremy Soller
0844e6fc90
WIP: use upper fd table
2025-11-15 07:55:37 -07:00
Jeremy Soller
ced734c162
Add RawCell::unsafe_set
2025-10-04 07:50:16 -06:00
Jeremy Soller
82084440ad
Support nightly-2025-10-03
2025-10-03 21:51:10 -06:00
Jacob Lorentzon
9c5f11fbc8
Add Out<T> wrapper
2025-09-21 14:36:12 +02:00
Jeremy Soller
5673575354
Revert "Merge branch 'rustifying' into 'master'"
...
This reverts merge request !663
2025-07-06 12:54:39 -06:00
David DA SILVA
7fd3a8d698
Rustify some functions (following TODO)
2025-06-25 08:39:01 -06:00
Jeremy Soller
72d2b1137c
Implement quick_exit and at_quick_exit
2025-04-11 18:09:44 -06:00
Jeremy Soller
d9a28156ce
Disable at_quick_exit
2025-04-11 16:25:12 -06:00
bjorn3
8650ac293e
Fix building on targets with unsigned c_char
2025-03-30 16:35:29 +02:00
Anhad Singh
5eeb59dad2
feat(rand48): rwlock for global params
...
Signed-off-by: Anhad Singh <andypython@protonmail.com >
2024-12-31 01:23:20 +11:00
Josh Megnauth
90f934c769
Exit should return never (!)
...
`_Exit`, `exit`, and related functions should return `!` because they
don't return. This also signals to cbindgen that it should emit
`[[noreturn]]` for those functions.
2024-11-23 03:33:00 -05:00
Peter Limkilde Svendsen
c440c61e58
Avoid unnecessary intrinsic in calloc
2024-11-09 17:35:09 +01:00
Peter Limkilde Svendsen
890be6fc02
Add docs for stdlib.h, add stubs for missing functions
2024-11-08 14:45:26 +00:00
Peter Limkilde Svendsen
35d7a0ac3f
Add docs to rand48 functions
2024-10-29 21:22:27 +01:00
Andrey Turkin
a4122753e6
Initial RISC-V64 support
2024-10-11 06:44:54 +03:00