HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)

l
libIO(3X) libIO(3X)
libIO FUNCTION
Name
io_legacy_to_new_dev()
- maps a legacy
dev_t to an agile dev_t
Synopsis
int io_legacy_to_new_dev(dev_t legacy_dev, int dev_type,
dev_t *new_dev);
Description
Given a legacy dev_t and dev_type , this API retrieves its agile
dev_t.
Arguments
legacy_dev Legacy
dev_t to retrieve the agile dev_t
.
dev_type Possible values are:
D_CHR Character dev_t.
D_BLK Block dev_t.
new_dev The agile dev_t is stored here.
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_OPEN]
[IO_E_PARM]
[IO_E_DCONF_ACCESS]
[IO_E_SYSCALL]
libIO FUNCTION
Name
io_legacy_to_new_dsf()
- maps a legacy device special file to a persistent device special file
Synopsis
int io_legacy_to_new_dsf(char *legacy_dsf, char *new_dsf);
Description
This API converts a given legacy device special file to persistent device special file.
Arguments
legacy_dsf Legacy device special file to find its corresponding persistent device special file.
new_dsf A pointer to a buffer of length MAXPATHLEN .
Return Value
IO_SUCCESS - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_OPEN]
[IO_E_PARM]
[IO_E_DCONF_ACCESS]
[IO_E_SYSCALL]
[IO_E_MATCH]
738 Hewlett-Packard Company 20 HP-UX 11i Version 3: February 2007