Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ igetsesstyp(3) — HP-UX Instrument Control Library G.03.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

igeterrno(3)

igeterrstr(3)

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

igeterrno(3), igeterrstr(3)
 

AUTHOR

igetsesstype was developed by HP. 

Hewlett-Packard Company  —  September 29, 1999

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026