auronandace
49f96a96e6
rename bits_time to bits_timespec for consistency
2026-04-09 10:50:04 +01:00
auronandace
bc5ee99856
move sys stat bits from C file to cbindgen
2026-03-26 13:58:09 +00:00
auronandace
28ab34921c
verify header includes for sys_stat
2026-03-10 10:04:56 +00:00
auronandace
bc25b5a7ed
add export renames to cbindgen files
2026-02-12 13:33:54 +00:00
auronandace
1191d8e1b4
extract timespec to a bits header
2026-02-12 13:07:24 +00:00
auronandace
a3c67e898d
add unused_must_use lint
2026-02-11 09:48:47 +00:00
sourceturner
95c8e6ddb5
Use unsafe blocks in sys/stat.h implementation
2026-01-18 21:17:21 +01:00
Connor-GH
da140913bc
Implement mkfifoat(2)
2026-01-13 01:40:25 +00:00
Connor-GH
75ca2cf29e
Implement mkdirat
...
Linux's variant uses the syscall as intended. Redox's variant uses fpath to build a path to pass to mkdir from the file descriptor plus the file name, which isn't atomic due to the fpath lookup being subject to TOCTOU when paired with mkdir.
2026-01-08 17:56:49 -06:00
auronandace
1e27ad561f
only import needed types in sys_socket and sys_stat
2025-12-03 14:16:19 +00:00
auronandace
cae30932b3
update and add spec links in sys_socket and sys_stat
2025-12-03 14:06:55 +00:00
Jeremy Soller
82084440ad
Support nightly-2025-10-03
2025-10-03 21:51:10 -06:00
Josh Megnauth
85c5e889fb
Implement fchmodat
...
Capability based `fchmod`. I also implemented unit tests for chmod,
fchmod, and fchmodat.
The unit tests check Redox-specific behavior, so some of the tests are
disabled for Linux.
2025-09-21 10:04:11 -04:00
Jacob Lorentzon
9c5f11fbc8
Add Out<T> wrapper
2025-09-21 14:36:12 +02:00
Josh Megnauth
c899feb774
Implement fstatat
...
Linux's variant uses the syscall as intended. Redox's variant uses fpath
to build a path to pass to fstat from the file descriptor plus the file
name. Unlike the syscall, this isn't atomic so the liminal space between
fpath/getcwd and fstat is subject to TOCTOU.
Beyond fstatat, I moved the stat test to its correct location and added
an assert since the output of the test is unchecked.
I also added AT_FDCWD which seems to be -100 across Unixes. The other
AT_* constants are unimplemented for now.
2025-08-27 08:21:41 -04:00
Jeremy Soller
4a805ea97c
Add some compatibility defines for libssh
2025-08-04 19:54:45 -06: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
4lDO2
313b32c815
Switch almost all of Pal to Rusty error handling.
2024-09-27 10:19:44 +02:00
4lDO2
4b687c25d2
Convert more Pal methods to Result.
2024-09-26 16:24:01 +02:00
4lDO2
6e5959b3fa
Convert a bunch of c_int to Result<(), Errno>.
2024-09-26 16:21:34 +02:00
4lDO2
198caa3bc5
Rustify Sys::open and some fs:: error handling.
2024-09-11 23:22:32 +02:00
Abdullah Emad
0caf011122
Implement mknod and mknodat
2024-01-03 16:43:28 +00:00
Henri Hannetel
330b50d734
Add UTIME_OMIT and UTIME_NOW
2023-10-19 14:57:58 +00: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
52fd4d7e83
Clippy fixes
2018-12-02 08:04:53 -07:00
Jeremy Soller
950b4526c7
- Disable output of empty header files
...
- Remove incorrect header styles
- Use export.replace where header style was previously needed
- Check compilation of tests using system gcc
2018-11-26 21:35:02 -07:00
Jeremy Soller
861602bbcc
Add umask
2018-11-16 19:49:47 -07:00
Jeremy Soller
ebffc977b2
Reduce warnings
2018-11-10 07:52:45 -07:00
Jeremy Soller
dfb07e473a
Comment out functions not implemented by Redox
2018-09-15 12:31:40 -06:00
jD91mZM2
6fe3e05ea0
Delete duplicate types
...
Now that we use cbindgen differently :D
2018-09-02 08:17:15 +02:00
Jeremy Soller
c911facca6
Make pal functions take cstr
2018-08-27 08:33:12 -06:00
Jeremy Soller
bab4e2896a
Format
2018-08-27 06:35:30 -06:00
Jeremy Soller
c20ce5ffed
Large reorganization of headers (WIP)
2018-08-26 08:11:35 -06:00