fd

File descriptor utilities


Keywords
linux, pipe, fd, splice, file-descriptor
License
LGPL-3.0

Documentation

fd-rs

fd is a library to handle file descriptors:

  • FileDesc is a raw file descriptor wrapper properly closing itself when dropped.
  • Pipe is an interface to pipe(2).
  • The loop_splice() function can be used for zero-copy transfers using splice(2) (Linux specific).

This library is a work in progress. The API may change.