Using the HP-UX libIO Library

Device Special File Services
A special file (typically) used to communicate with an I/O device is called a device
special file. The libIO routines that deal with device special files are listed in Table 6.
Table 6 – Device Special File routines in libIO
Routines Description
io_char_to_block_dsf()
Maps a character device special file to block
device special file.
io_block_to_char_dsf()
Maps a block device special file to character
device special file.
io_new_to_legacy_dsfs()
Maps a persistent device special file to one or
more legacy device special file.
io_legacy_to_new_dsf()
Maps a legacy device special file to a persistent
device special file.
io_char_to_block_dsf()
This routine maps a character device special file to block device special file. The
function prototype of this routine is:
int io_char_to_block_dsf(char *char_dsf, char *block_dsf);
io_block_to_char_dsf()
This routine maps a block device special file to character device special file. The
function prototype of this routine is:
Int io_block_to_char_dsf(char *block_dsf, char *char_dsf);
This function returns the character DSF of the corresponding block DSF.
io_new_to_legacy_dsfs()
This routine maps a persistent DSF(s) to one or more legacy DSF(s). The function
prototype of this routine is: