4lDO2
24cf96393c
Expand Out wrapper and use it in utsname.
2025-10-05 20:01:12 +02:00
Jeremy Soller
82084440ad
Support nightly-2025-10-03
2025-10-03 21:51:10 -06:00
4lDO2
618b43ccae
Add RawCell<T> wrapper.
2025-10-03 20:24:08 +02:00
Jacob Lorentzon
9c5f11fbc8
Add Out<T> wrapper
2025-09-21 14:36:12 +02:00
elle
5613fe2cdb
lib: remove unused Nightly features
...
Removes unused Nightly features from the library.
2025-09-16 18:37:33 +00:00
elle
bd13557f98
lib: remove array_chunks nightly feature
...
Removes the nightly `array_chunks` feature, since it is marked as
unlikely to be merged.
Usage is trivially refactored using iterators.
2025-09-08 17:08:22 +00:00
bjorn3
50766b0469
Fix building on newer nighlies
2025-03-30 16:37:13 +02:00
Anhad Singh
aae27c5e0c
feat(ld.so): switch to object crate
...
Signed-off-by: Anhad Singh <andypython@protonmail.com >
2025-01-08 16:50:47 +11:00
Anhad Singh
cfe89f828a
feat: rwlock instead of mutex for global scope
...
* Rwlock -> InnerRwLock
* RwLock makes use of InnerRwLock.
Signed-off-by: Anhad Singh <andypython@protonmail.com >
2024-12-31 00:54:52 +11:00
Peter Limkilde Svendsen
93b6374d1e
Reimplement memcpy() using slices, fix unaligned read/write, add test
2024-12-23 19:14:44 +00:00
Anhad Singh
c286ad2868
fix(ld.so): do not depend on TLS at all
...
In the next big refactor (next PR), all of the platform functionality
used by both relibc and ld.so will be moved into a `platform`/`sysdeps`
crate and then ld.so would be moved out of relibc and not link with it.
I think doing it in a seperate PR would make it more managable, as when
I did half of it, the diff was pretty huge and that way it would be
easier to review too :)
Signed-off-by: Anhad Singh <andypython@protonmail.com >
2024-12-05 23:11:59 +11:00
Peter Limkilde Svendsen
06fec0b843
Add various basic docstrings
2024-10-27 23:25:57 +01:00
4lDO2
313b32c815
Switch almost all of Pal to Rusty error handling.
2024-09-27 10:19:44 +02:00
Peter Limkilde Svendsen
0a23acd401
Implement iterators on pointers
2024-09-22 23:42:28 +00:00
4lDO2
c0e7af5289
Backwards-compatibly rewrite getdents to use special syscall.
2024-09-11 23:32:19 +02:00
4lDO2
4bd0d2a1ef
Move pthread::Errno to separate module.
2024-09-11 23:22:29 +02:00
4lDO2
5177ca3926
Remove memoffset dependency.
2024-07-09 15:00:52 +02:00
Jeremy Soller
73952b69ed
Update to new nightly
2024-05-11 14:00:59 -06:00
4lDO2
5630b6e0df
Make relibc (except libm) pure Rust
2024-01-11 13:08:06 +00:00
Arthur Paulino
d4eddbf42e
Refactor: inline core_io
...
* Extract the minimal set of definitions from `core_io` to `relibc` itself
* Remove dependency on `core_io`
2023-12-24 17:06:27 -03:00
4lDO2
75d1c67ca2
Switch to a lightweight CStr wrapper
2023-11-04 18:29:38 +00:00
Jacob Schneider
2f887ae434
Groups
2023-08-21 12:05:16 +00:00
4lDO2
4169e99aa5
Stop requiring #![feature(atomic_mut_ptr)].
2023-05-07 19:20:20 +02:00
4lDO2
558d43082c
WIP: Expand native pthreads implementation.
2023-05-06 17:02:50 +02:00
Jeremy Soller
0bd476d28a
Update to new Rust toolchain
2023-02-11 13:45:07 -07:00
4lDO2
bb45466a4e
Implement clone in userspace.
2022-07-26 21:34:11 +02:00
4lDO2
ebd597f748
Update dependencies for rust 2022-03-18.
2022-03-24 17:12:02 +01:00
4lDO2
a388b1ae4d
Initialize TLS manually on Redox too.
2021-08-05 11:49:40 +02:00
4lDO2
d69c115421
Compile on latest nightly.
...
This also replaces all the assembly that previously used the AT&T style
with the (in my opinion) superior Intel syntax.
I tried prepending `.att_syntax prefix`, but that did not work...
2021-06-17 22:31:39 +02:00
Jeremy Soller
f2c2d7c52e
Fix compilation on newer nightly, update nightly to 2020-08-01
2020-08-02 12:24:49 -06:00
oddcoder
9a1efda121
Initial allocator structure
2020-07-18 20:54:30 +02:00
Jeremy Soller
e3ce41da79
Fix compilation on newer nightly
2019-11-29 18:05:31 -07:00
jD91mZM2
4f2a93ea90
Vast refactor of pwd.h, add getpwent/setpwent/endpwent
2019-08-12 09:58:11 +02:00
Jeremy Soller
8feed5bbd5
Update Rust to 2019-08-08
2019-08-07 20:48:29 -06:00
jD91mZM2
c7d499d4f2
Upgrade to the 2018 edition
...
I didn't think it'd be this useful first, but thank god for `cargo fix --edition`!
2019-08-04 19:05:45 +02:00
jD91mZM2
35c1d5210c
Implement the Once<T> synchronization structure
...
Not sure if I should add a RwLock for the ptrace state too...
2019-08-04 19:05:44 +02:00
jD91mZM2
e559a3e2e5
Stub for ptrace
...
It's happening...
2019-08-04 19:05:44 +02:00
jD91mZM2
a2c8cfb4a5
Implement CVec, an abstraction to return vectors from Rust
2019-07-18 06:40:23 +02:00
Mateusz Mikuła
7597c082e7
Fix Clippy warnings
2019-05-11 22:34:13 +02:00
jD91mZM2
3a3fd3da39
Use the memchr crate
...
https://github.com/BurntSushi/rust-memchr is supposed to be a whole
lot faster :)
2019-04-21 19:09:37 +02:00
Dan Robertson
fa94f1b6d5
Use core::ffi::VaList
2019-04-21 17:46:22 +02:00
Jeremy Soller
361f32b63c
ld_so: significant refactor to prepare for pthread_create support of TLS
2019-04-14 13:17:07 -06:00
Jeremy Soller
084b69b361
Add ld_so executable
2019-04-13 12:17:38 -06:00
Jeremy Soller
42d40da973
Map stacks based on provided size.
2019-03-31 15:04:37 -06:00
Jeremy Soller
bee72373be
Fix panic not producing output
2019-03-27 21:28:39 -06:00
Jeremy Soller
d0261ebb35
Move db to crate root
2019-01-17 19:56:51 -07:00
Jeremy Soller
c71088e768
Cleanup and format
2019-01-14 21:07:24 -07:00
Jeremy Soller
c41c20a943
Allow for static CStr
2019-01-06 14:40:01 -07:00
Jeremy Soller
52fd4d7e83
Clippy fixes
2018-12-02 08:04:53 -07:00
Jeremy Soller
869eb160bd
Add poll
2018-11-25 13:04:38 -07:00