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
..
2006-09-30 10:34:13 +00:00
2006-05-19 19:06:38 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-10-19 06:23:39 +00:00
2007-01-09 00:28:16 +00:00
2009-02-08 08:26:58 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-07-04 00:00:41 +00:00
2008-08-03 22:47:23 +00:00
2005-01-20 09:17:07 +00:00
2006-09-23 14:48:31 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-07-06 17:03:37 +00:00
2008-07-06 11:31:20 +00:00
2008-01-13 02:11:10 +00:00
2005-12-24 22:37:59 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2005-01-20 09:17:07 +00:00
2008-10-17 08:30:20 +00:00
2008-11-03 21:17:18 +00:00
2008-12-01 10:20:59 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-03-28 04:32:51 +00:00
2008-08-20 08:31:58 +00:00
2009-02-11 20:24:59 +00:00
2007-01-09 00:28:16 +00:00
2008-01-14 09:21:34 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-12-11 20:39:32 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-05-14 18:33:13 +00:00
2007-01-09 00:28:16 +00:00
2008-04-24 07:49:00 +00:00
2007-12-16 21:19:28 +00:00
2007-01-09 00:28:16 +00:00
2007-04-10 11:17:00 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2006-09-30 10:34:13 +00:00
2006-03-14 19:53:03 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-08-27 02:00:53 +00:00
2008-06-26 08:24:59 +00:00
2007-01-09 00:28:16 +00:00
2006-06-23 13:36:33 +00:00