libIO.3x (2010 09)
l
libIO(3X) libIO(3X)
printf("%s", my_string);
io_end();
exit(0);
Return Value
Number of bytes in the string - Upon success.
IO_ERROR - Otherwise. io_errno is set to indicate the error.
Errors
[IO_E_DCONF_ACCESS]
[IO_E_DCONF_OPEN]
[IO_E_PARM]
[IO_E_SYSCALL]
libIO FUNCTION
Name
io_str_to_hw_path()
- converts a string representing the hardware path to
hw_path_t structure
Synopsis
int io_str_to_hw_path(char *str,hw_path_t *hw_path);
Description
io_str_to_hw_path()
fills hw_path with the hardware path, given a string representing the passed
path parameter.
Arguments
str Pointer to string representing hardware path.
hw_path Hardware path.
Example
char *str_path="4/16.4.0"
hw_path_t hw_path;
if (io_init(O_RDWR) == -1) exit(1);
io_str_to_hw_path(str_path, &hw_path);
io_end();
exit(0);
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_PATH_STR]
[IO_E_SYSCALL]
libIO FUNCTION
Name
io_is_option_set() - determines if the option(s) is set for dev_t
Synopsis
int io_is_option_set(dev_t dev, int dev_type, char *options);
Description
io_is_option_set() calls io_mkdev() with and without options to generate option mask. Mask is
then bitwise "ANDed" with dev argument and the boolean result is returned. This routine does not distin-
guish between one or more options set or multi-bit options.
HP-UX 11i Version 3: September 2010 − 7 − Hewlett-Packard Company 7