#unix #named-pipe #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

#24 in #fifo

Download history 322/week @ 2023-02-08 248/week @ 2023-02-15 360/week @ 2023-02-22 210/week @ 2023-03-01 181/week @ 2023-03-08 169/week @ 2023-03-15 176/week @ 2023-03-22 165/week @ 2023-03-29 156/week @ 2023-04-05 171/week @ 2023-04-12 287/week @ 2023-04-19 395/week @ 2023-04-26 364/week @ 2023-05-03 427/week @ 2023-05-10 398/week @ 2023-05-17 366/week @ 2023-05-24

1,598 downloads per month
Used in 7 crates

MIT license

11KB
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

~75KB