Avril
8fcd1929a4
Added default feature `default-cloexec`: If this feature is set, file-descriptors will be created with the close-on-exec flag (`MFD_CLOEXEC` for memfds, `FD_CLOEXEC` for other pseudofiles and `O_CLOEXEC` for `open()` calls.)
...
This is a temporary means of adding cloexec configuration to the crate, the interface is not modified and unless the default feature is not selected ABI-compat will remain the same. NOTE: This is intended to be removed on the next interface-changing update.
Fortune for mapped-file's current commit: Future curse − 末凶
6 months ago
Avril
5d4c9b57f7
Added `try_map_or_cloned()`: Map a file, or if that fails, map an in-memory copy of that file.
...
Fortune for mapped-file's current commit: Half blessing − 半吉
2 years ago
Avril
08c93f2af0
MappedFile: Added generic into_inner(), inner_mut(), and inner() accessors.
...
Fortune for mapped-file's current commit: Small blessing − 小吉
2 years ago
Avril
d74946934d
Added read+write test for `ManagedFD` & `MemoryFile`.
...
Fortune for mapped-file's current commit: Curse − 凶
2 years ago
Avril
71da5e610f
Added io::Read/Write impls for `ManagedFD` and `MemoryFile`.
...
Fortune for mapped-file's current commit: Small blessing − 小吉
2 years ago
Avril
51c64b56b0
Made MappedFile<T> impl Send.
...
Added AsRef/Mut<[u8]> impl for MappedFile<T>
Fortune for mapped-file's current commit: Half blessing − 半吉
2 years ago
Avril
6b5c791880
Added fd-aliasing for Un/ManagedFD
...
Fortune for mapped-file's current commit: Great blessing − 大吉
2 years ago
Avril
0a146fb14a
Added doc-comment for `hugetlb::HugePage`
...
Fortune for mapped-file's current commit: Future small blessing − 末小吉
2 years ago
Avril
13165dfbe5
Added basic creation methods for `MemoryFile` (and `NamedMemoryFile`.)
...
Fortune for mapped-file's current commit: Small blessing − 小吉
2 years ago
Avril
c1f1d00af2
Added `{As,From,Into}RawFd` impls for ManagedFD and MemoryFile.
...
file: Made fd-wrappers backed by `NonNegativeI32`, a type that is backed by `NonZeroU32`, which takes only positive (including 0) i32 integers and allows for non-null optimisation in enums.
Fortune for mapped-file's current commit: Small blessing − 小吉
2 years ago
Avril
de56f67046
MappedFile::shared() is now unwind-safe.
...
Fortune for mapped-file's current commit: Half blessing − 半吉
2 years ago
Avril
e96c2274c3
MappedFile: Added `try_new_buffer()`.
...
Fortune for mapped-file's current commit: Half blessing − 半吉
2 years ago
Avril
ec26e0e9ed
Added basic (tx, rx) fd-overlap mapping with `MappedFile::try_new_buffer()`.
...
Fortune for mapped-file's current commit: Small blessing − 小吉
2 years ago
Avril
4f427e88e4
Started buffer: `(tx, rx)` memory buffer.
...
Added future support for paged ring-buffers (mod page) (TODO: not started impl yet.)
Fortune for mapped-file's current commit: Small blessing − 小吉
2 years ago
Avril
eca5ac5350
Update README
...
Fortune for mapped-file's current commit: Small curse − 小凶
2 years ago
Avril
b4fa3bf215
Started `UnmanagedFD`.
...
Added README.md, prepared for uploading to crates.io.
Fortune for mapped-file's current commit: Small blessing − 小吉
2 years ago
Avril
eb64632841
`MappedFile::new()`: changed `flags` to `impl MapFlags` to match `try_new()`
...
Fortune for mapped-file's current commit: Half curse − 半凶
2 years ago
Avril
aad400a458
Fixed build error on stable due to FFI namespace changes.
...
Fortune for mapped-file's current commit: Future small blessing − 末小吉
2 years ago
Avril
7e00ade351
hugetlb: Implemented `HugePage::compute_huge()`, `scan_hugepages()`, and a public lazy static `SYSTEM_HUGEPAGES`.
...
Fortune for mapped-file's current commit: Future small blessing − 末小吉
2 years ago
Avril
92fe0166de
Started adding huge-page support in for `MappedFile<T>` and `file::memory::MemoryFile`. Also added huge-page support to `MappedFile<T>` via the `MapFlags` trait, which can also be used to add user-provided flags.
...
Added unit struct `Anonymous`, which can be used in `MappedFile` for creating anonymous mappings.
Fortune for mapped-file's current commit: Future blessing − 末吉
2 years ago
Avril
8795f0a1a2
Added `err` module: Wrapped OS errors; Ad-hoc inline definitions, and named definitions with pre-defined messages.
...
Fortune for mapped-file's current commit: Future small blessing − 末小吉
2 years ago
Avril
d3cc7b45a5
Started `file` module: Will have file interfaces from `memfd`: `ManagedFD`, `UnmanagedFD`, and `MemoryFile`.
...
Fortune for mapped-file's current commit: Small curse − 小凶
2 years ago
Avril
5ba18c9358
Added `MappedFile<T>` interface.
...
Fortune for mapped-file's current commit: Curse − 凶
2 years ago
Avril
be452a99ff
Added `UniqueSlice<T>`, `MappedSlice`.
...
Copied over enums for control functions into re-exported submodule `flags`.
Fortune for mapped-file's current commit: Curse − 凶
2 years ago