4lDO2
198caa3bc5
Rustify Sys::open and some fs:: error handling.
2024-09-11 23:22:32 +02:00
4lDO2
4bd0d2a1ef
Move pthread::Errno to separate module.
2024-09-11 23:22:29 +02:00
Agoston Szepessy
b5f767ea30
More PR feedback
...
Use u8 internally instead of `c_char`.
2024-07-23 18:07:09 +02:00
Agoston Szepessy
99ade44c12
PR feedback
...
- Remove `stdio` functions and use `File` API completely.
- Remove `unsafe` from wrapper function.
- Move static buffer to `getpass()` instead of keeping it in wrapper.
2024-07-23 16:56:39 +02:00
Agoston Szepessy
545e9e7b29
Implement getpass using File API
...
Returns a Result for better error handling.
2024-07-23 16:07:25 +02:00
Agoston Szepessy
a83d4cbced
Implement getpass()
...
Also make fields in `termios` public; required for modifying them.
There's an new type of test: `EXPECT_INPUT_BINS`. These require a `.exp`
file to be present along with the `.c` file. The `.exp` file takes the
produced binary as an argument and sends input to the program. This is
useful for testing functions like `getpass()`.
2024-07-23 16:07:25 +02:00
4lDO2
bf26de70e2
Add setresuid/setresgid (suid/sgid stub on Redox).
2024-07-18 23:54:46 +02:00
4lDO2
4c11b607de
Implement pread and pwrite using the syscalls.
2024-06-14 14:10:47 +02:00
Jacob Lorentzon
e0b640d530
Implement new low-level signal trampoline
2024-03-17 16:58:42 +00:00
Jeremy Soller
d3aac3585c
Merge branch 'errno-naming' into 'master'
...
Use standard casing and mangling for internal errno
See merge request redox-os/relibc!457
2024-03-01 00:25:42 +00:00
Peter Limkilde Svendsen
a7137512fa
Use standard casing and mangling for internal errno
2024-03-01 00:25:42 +00:00
Jeremy Soller
4f8d16a3b9
Merge branch 'crypt' into 'master'
...
Add Crypt functions
See merge request redox-os/relibc!453
2024-03-01 00:23:42 +00:00
Darley Barreto
55dc2019f2
Add Crypt functions
2024-03-01 00:23:42 +00:00
Peter Limkilde Svendsen
9093f6bc47
Use Cell representation for errno
2024-02-29 14:07:40 +00:00
Peter Limkilde Svendsen
aea9e2b432
Panic when getpagesize() cannot succeed as specified
2024-02-19 00:19:03 +00:00
Jeremy Soller
a2321e4b2b
Add initgroups
2024-01-16 20:00:57 -07:00
4lDO2
5630b6e0df
Make relibc (except libm) pure Rust
2024-01-11 13:08:06 +00:00
Jeremy Soller
635248cdff
Define _SC_GETGR_R_SIZE_MAX
2023-09-13 11:26:44 -06:00
Jeremy Soller
afdc26f9cc
Add getgroups/setgroups (stub on redox)
2023-09-13 11:16:59 -06:00
4lDO2
cdd0f67b23
Rustfmt.
2023-05-17 15:28:10 +02:00
David Carlier
bae8bb68df
lockf implementation proposal
2023-05-16 23:40:40 +01:00
David Carlier
5041df0015
setsid implementation
2023-05-04 19:09:32 +01:00
David Carlier
eb87e2b796
fix no_mangle annotation missing
2023-04-26 19:42:29 +01:00
Jeremy Soller
8a002ecc1d
Merge branch 'sync_impl' into 'master'
...
sync implementation
See merge request redox-os/relibc!375
2023-04-26 18:24:48 +00:00
David Carlier
a561e682a3
sync implementation
2023-04-22 13:20:18 +01:00
David Carlier
3456b4f30e
unistd: fdatasync implementation.
2023-04-19 21:48:54 +01:00
David Carlier
66786f619d
unistd: getdtablesize implementation proposal
2023-04-11 20:45:02 +01:00
David Carlier
637dd22d3d
stdio: implements legacy cuserid proposal.
2023-04-05 22:17:09 +01:00
Jeremy Soller
59b2e32953
Fix compilation on 32-bit systems
2022-12-02 08:00:36 -07:00
Jeremy Soller
9e0c53f222
Make long 32-bits on 32-bit systems
2022-12-01 18:33:00 -07:00
Jeremy Soller
b30c33adc3
Add getsid stub
2022-10-17 11:37:58 -06:00
4lDO2
ebd597f748
Update dependencies for rust 2022-03-18.
2022-03-24 17:12:02 +01:00
4lDO2
d35c303ef0
Implement chroot as always returning EPERM.
2021-06-17 22:31:39 +02:00
Peter Limkilde Svendsen
9e8cd0bf07
Centralize page size info in platform abstraction
2021-03-24 00:02:39 +01:00
Jeremy Soller
2f3987dd88
Add _SC_GETPW_R_SIZE_MAX
2020-12-23 19:47:53 -07:00
jD91mZM2
593925ceb4
Unambiguate all include guards
...
GNU binutils also uses _FNMATCH_H for a guard, maybe along others!
2020-06-29 11:34:51 +02:00
oddcoder
c2488b5094
Running ./fmt.sh
...
These files needs formating by the auto formatter and It keeps popping
up every time I format my own code.
2020-03-07 23:52:27 +02:00
Jeremy Soller
2e5d4a4d25
Merge remote-tracking branch 'origin/truncate-n-mkfifo'
2020-01-20 11:17:15 -07:00
AdminXVII
884ec85838
Replace occurences of uninitialized with MaybeUninit
...
mem::uninitialized is deprecated, so move over the not-UB MaybeUninit.
2020-01-20 16:54:22 +00:00
Xavier L'Heureux
e8b8b7eb25
Fix format and disable stat check for access time
2019-09-17 21:23:07 -04:00
Xavier L'Heureux
64f93fe6e0
Implement the truncate function
2019-09-17 19:57:43 -04:00
jD91mZM2
b8c50c7c64
Format
2019-08-04 19:05:45 +02: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
Mateusz Mikuła
63a1319e50
Cbindgen update
2019-07-10 10:08:39 +00:00
Jeremy Soller
05f71567ab
Format
2019-07-06 19:37:13 -06:00
jD91mZM2
bf13674e11
Merge branch 'getpagesize_check' into 'master'
...
Use try_from in getpagesize(), add test
See merge request redox-os/relibc!225
2019-07-01 11:03:58 +00:00
jD91mZM2
e35f22b3df
WIP: pthread_atfork
...
WIP mainly because we *should* use thread locals, but #[thread_local]
causes segfaults.
2019-07-01 09:07:11 +02:00
jD91mZM2
e929538098
Uncomment pthread_atfork stub to get ion to build
2019-06-16 14:59:04 +02:00
Peter Limkilde Svendsen
8b975877e6
Formatting
2019-06-14 00:07:36 +02:00
Peter Limkilde Svendsen
6e88617762
Use fallible conversion in getpagesize()
2019-06-12 23:47:11 +02:00