#named-pipe #unix #fifo #mkfifo

unix-named-pipe

Ease creation of named pipes on Unix platform

2 unstable releases

0.2.0 Oct 6, 2018
0.1.0 Oct 3, 2018

#566 in Unix APIs

Download history 749/week @ 2023-11-30 776/week @ 2023-12-07 888/week @ 2023-12-14 514/week @ 2023-12-21 585/week @ 2023-12-28 1172/week @ 2024-01-04 1224/week @ 2024-01-11 1112/week @ 2024-01-18 1213/week @ 2024-01-25 1226/week @ 2024-02-01 1345/week @ 2024-02-08 1346/week @ 2024-02-15 1782/week @ 2024-02-22 1752/week @ 2024-02-29 1911/week @ 2024-03-07 1585/week @ 2024-03-14

7,287 downloads per month
Used in 11 crates (8 directly)

MIT license

12KB
157 lines

unix-named-pipe

pipeline status coverage report


unix-named-pipe is a library to ease the creation and usage of named pipes on the Unix platform

Usage

extern crate unix_named_pipe;

...

let filename = "/var/run/application.pipe";
let mode: u32 = 0o644

// Create a new named pipe
unix_named_pipe::create(filename, mode)?;

// Open a named pipe for reading
let read_file = unix_named_pipe::open_read(filename)?;

// Open a named pipe for writing (appending)
let write_file = unix_named_pipe::open_write(filename)?;

Contributing

Pull requests are welcomed and encouraged. Feel free to ask questions via the issue tracker or email.

Any contributions will be greatly appreciated <3.

License

Licensed under MIT. See LICENSE for details.

Dependencies

~230KB