IGETSESSTYPE(3)
HP-UX
NAME
igetsesstype − Return the type session associated with a given INST id.
SYNOPSIS
#include <sicl.h>
int igetsesstype(INST id, int *data);
DESCRIPTION
igetsesstype will return, in *data, one of the following values:
I_SESS_INTF
The session associated with id is an interface session.
I_SESS_DEV
The session associated with id is a device session.
I_SESS_CMDR
The session associated with id is a commander session.
RETURN VALUE
igetsesstype returns (0) if successful, or a non-zero error code if an error was encountered.
ERRORS
igetsesstype fails under the following circumstances, and sets the return value to one of the following:
[I_ERR_NORSRC] Out of system resources
[I_ERR_NOINTF] Interface is not active
[I_ERR_NODEV] Device is not active
[I_ERR_BADID] The INST id is invalid
[I_ERR_BADADDR] Invalid address (device/interface doesn’t exist)
SEE ALSO
AUTHOR
igetsesstype was developed by HP.
Hewlett-Packard Company — September 29, 1999