1DEVNAME(3) Library Functions Manual DEVNAME(3)
2
3
4
6 devname - get device name
7
9 #include <sys/types.h>
10
11 char *
12 devname(dev, type)
13 dev_t dev;
14 mode_t type;
15
17 The devname function returns a pointer to the name of the block or
18 character device in /dev with a device number of dev , and a file type
19 matching the one encoded in type which must be one of S_IFBLK or
20 S_IFCHR. If no device matches the specified values, or no information
21 is available, the string ?? is returned.
22
24 stat(2), dev_mkdb(8)
25
27 The devname function call appeared in 4.4BSD.
28
29
30
314th Berkeley Distribution February 3, 1995 DEVNAME(3)