Ed Schouten 26d4f5e969 Add two new routines: fdevname() and fdevname_r().
A more elegant way of obtaining a name of a character device by its file
descriptor on FreeBSD, is to use the FIODGNAME ioctl. Because a valid
file descriptor implies a file descriptor is visible in /dev, it will
always resolve a valid device name.

I'm adding a more friendly wrapper for this ioctl, called fdevname(). It
is a lot easier to use than devname() and also has better error
handling. When a device name cannot be resolved, it will just return
NULL instead of a generated device name that makes no sense.

Discussed with:	kib
2009-02-11 20:24:59 +00:00
..
2008-12-23 22:50:39 +00:00
2007-06-10 19:06:09 +00:00
2009-01-05 05:14:26 +00:00
2008-11-29 14:32:14 +00:00
2008-05-15 15:28:18 +00:00
2007-04-09 01:45:30 +00:00