Mahmoud Al-Qudsi
0ca199ef98
Change wopen_cloexec()
to return File
2024-03-23 01:34:23 -05:00
Mahmoud Al-Qudsi
99c9d6eef6
IoFile: Wrap File instead of OwnedFd
2024-03-23 00:44:27 -05:00
Mahmoud Al-Qudsi
6f9f9ee400
Use bitflags contains() instead of intersects()
...
`intersects()` is "any of" while `contains()` is "all of" and while it makes no
difference when testing a single bit, I believe `contains()` is less brittle
for future maintenance and updates as its meaning is clearer.
</pedantic>
2024-03-23 00:24:31 -05:00
ridiculousfish
5021639db1
Correct some comments and duplicative error messages
...
If we fail to create a pipe, we will report that fact in multiple places; remove
some redundant error reporting.
2024-02-11 12:16:58 -08:00
PolyMeilex
b9ba9e57e8
Use nix & Results
2024-02-11 11:40:27 -08:00
PolyMeilex
971d774e67
Use OwnedFd in AutoClosePipes
2024-02-11 11:40:27 -08:00
Mahmoud Al-Qudsi
99bd2e71d0
Unify how file mode is specified
...
The lines of code I commented on in #10254 were meant to serve only as examples
of the changes I was requesting, not the only instances.
Also just use `Mode::from_bits_truncate()` instead of unsafe or unwrapping since
we know the modes are correct.
2024-01-28 18:09:52 -06:00
PolyMeilex
341fd7ca16
Revert to octal mode repr in autoload and io
2024-01-27 20:42:13 +01:00
PolyMeilex
6ef8125c96
Return OwnedFd
from open_cloexec
2024-01-27 20:42:13 +01:00
PolyMeilex
2512849ece
Use nix OFlag for open_cloexec
2024-01-27 20:42:13 +01:00
PolyMeilex
6915aeb44c
Use nix mode for open_cloexec
2024-01-27 20:42:13 +01:00
PolyMeilex
23301e4895
Return Result from wopen_cloexec
2024-01-27 20:42:13 +01:00
Fabian Boehm
ac9c5ed1b2
Retry open_cloexec for signals other than SIGINT
...
Fixes #10250
2024-01-25 11:14:31 +01:00
ridiculousfish
8554eb5f80
Further cleanup of FdMonitor
2024-01-13 12:51:36 -08:00
ridiculousfish
d8da79717e
Remove some FFI bits from FdMonitor
2024-01-13 12:51:36 -08:00
Johannes Altmanninger
3ae20bdba0
Move fish-rust to project root
2024-01-13 03:58:33 +01:00