fdtools

fdtools is a set of utilities for working with file descriptors. With these tools, you can examine and manipulate file descriptor properties from shell scripts, where without them you might have resorted to a different language. These tools can rewind file descriptors, switch them between blocking and nonblocking mode, and examine their inode information. On some systems (currently only Linux, as far as I know) they can also allocate, lock, and switch virtual consoles.

This package is discussed on the prjware list. New releases are announced on the prjware-announce list.

Releases

fdtools is devoid of warranty and is distributed under the GNU General Public License, version 2. But that doesn't mean it's necessarily a good idea for you to distribute modified versions. (That includes repackaging.) I'd like to know if you plan to do that.

This link always points to the latest version (currently 2021.04.30).

Older versions are published for historical interest.

You can get the latest development sources with:

$ git clone git://git.dogmap.org/fdtools.git

Dependencies

To build fdtools, you need Laurent Bercot's skalibs package. Edit conf-compile/depend_* as necessary during installation.

Installation

slashpackage is a good thing. You can read more about it here. If you don't already have /package, create it (on any filesystem you like, as long as it's accessible by the name “/package”):

# mkdir -p /usr/local/package
# ln -s /usr/local/package /
# chmod +t /package/.

Then run sp-install:

# sp-install fdtools-VERSION.tar.bz2

Or, if you like to do things manually, unpack the tarball and run package/install:

# cd /package
# bunzip2 < /path/to/fdtools-VERSION.tar.bz2 |
> tar -xpf -
# cd misc/fdtools-VERSION
# package/install

Read package/README and package/INSTALL for more detailed instructions.

Documentation

Current known bugs

None.

To do