DEVNAME(3) BSD Programmer's Manual DEVNAME(3)
d
\bde
\bev
\bvn
\bna
\bam
\bme
\be - get device name
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
#
\b#i
\bin
\bnc
\bcl
\blu
\bud
\bde
\be <
\b<s
\bst
\btd
\bdl
\bli
\bib
\bb.
\b.h
\bh>
\b>
d
\bde
\bev
\bvn
\bna
\bam
\bme
\be(_
\bd_
\be_
\bv_
\b__
\bt _
\bd_
\be_
\bv, _
\bm_
\bo_
\bd_
\be_
\b__
\bt _
\bt_
\by_
\bp_
\be);
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
The d
\bde
\bev
\bvn
\bna
\bam
\bme
\be() function returns a pointer to the name of the block or
character device in ``_
\b/_
\bd_
\be_
\bv'' with a device number of _
\bd_
\be_
\bv, and a file type
matching the one encoded in _
\bt_
\by_
\bp_
\be which must be one of S_IFBLK or S_IFCHR.
If no device matches the specified values, or no information is avail-
able, the string ``??'' is returned.
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
H
\bHI
\bIS
\bST
\bTO
\bOR
\bRY
\bY
The d
\bde
\bev
\bvn
\bna
\bam
\bme
\be function call appeared in 4.4BSD.