1 stable release
| 1.0.0 | Feb 25, 2024 |
|---|
#956 in Unix APIs
573 downloads per month
Used in 3 crates
(via wayrs-utils)
8KB
51 lines
shmemfdrs2
Fork of shmemfdrs.
Provides a single function
pub fn create_shmem<T: AsRef<CStr>>(name: T) -> io::Result<File>;
- On Linux
memfd_createis used. - On FreeBSD
shm_openwithSHM_ANONis used. - Other platform use
shm_openfollowed byshm_unlink.
License
Licensed under the Apache License, Version 2.0 < LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0 > or the MIT license < LICENSE-MIT or https://opensource.org/licenses/MIT >, at your option.
Dependencies
~44KB