ed de78bbbfe8 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-08-07 15:07:48 +00:00
2004-02-24 08:09:20 +00:00
2006-05-22 05:57:39 +00:00
2007-06-11 06:25:19 +00:00
2006-03-02 10:01:52 +00:00
2007-06-03 17:20:27 +00:00
2004-06-30 13:55:08 +00:00