Open System Services System Calls Reference Manual (G06.25+, H06.03+)

spt_awaitio(2) OSS System Calls Reference Manual
NAME
spt_awaitio - Awaits a tagged I/O le
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
spt_error_t spt_awaitio(
const short lenum,
const long tag,
const long timelimit,
long *count_transferred,
long *error,
void *userdata);
PARAMETERS
filenum Species Guardian le number being waited on
tag Species tag being waited on
timelimit Species how many hundredths of a second to wait for a completed I/O:
-1 means wait forever
0 means immediate return
count_transferred
Species transfer count of completed I/O; set by callback when SPT_SUCCESS
is returned.
error Species Guardian error number for I/O; set by callback when SPT_SUCCESS
is returned or as described in ERRORS
userdata Species address of user data area; the referenced data may be modied by a
callback
DESCRIPTION
Awaits a tagged I/O on le number to complete, timeout, or be interrupted (see the
spt_interrupt(2) reference page under RETURN VALUES). The function never cancels I/O.
I/O completes only if SPT_SUCCESS is returned. Multiple threads should not await the same
tagged I/O on any given le number.
RETURN VALUES
SPT_SUCCESS
File number was waited on.
SPT_ERROR An error occurred. See ERRORS.
SPT_TIMEDOUT
Time limit has expired. See ERRORS.
SPT_INTERRUPTED
Wait was interrupted. See ERRORS.
784 Hewlett-Packard Company 527186-003