Open System Services System Calls Reference Manual (G06.28+)

SPT_READX(2) OSS System Calls Reference Manual
NAME
SPT_READX - returns data from an open Guardian le to the application process data area
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
[#include <cextdecs.h>]
#include <spthread.h>
short SPT_READX (
short lenum,
char *buffer,
short read_count,
[short *count_read ],
[long tag ]
);
PARAMETERS
filenum species the le number of a Guardian le open instance that identies the le to
be read.
buffer species an array in the application process in which the information read from
the le is returned.
read_count species the number of bytes to be read.
count_read is for waited I/O only. This parameter returns a count of the number of bytes
returned from the le into buffer.
tag is for nowait I/O only. The tag value you dene uniquely identies the operation
associated with this call.
This parameter is supported only for program compatibility; if you provide it, it
is ignored.
DESCRIPTION
The SPT_READX() function is the thread-aware version of the Guardian READX procedure.
The SPT_READX() function returns data from an open Guardian le to the application
processs data area. The SPT_READX() function sequentially reads a disk le. For key-
sequenced, relative, and entry-sequenced les, the SPT_READX() function reads a subset of
records in the le. (A subset of records is dened by an access path, positioning mode, and com-
parison length.)
For programming information about the Guardian READX le-system procedure, refer to the
Guardian Programmers Guide, the Enscribe Programmers Guide, and the data communication
manuals.
General Considerations
Buffer use SPT_READX() is intended for use with 32-bit extended addresses. Therefore,
the data buffer for SPT_READX( ) can be either in the callers stack segment or
any extended data segment.
Waited SPT_READX( )
If a waited SPT_READX() call is executed, the count_read parameter indicates
the number of bytes actually read.
7252 Hewlett-Packard Company 527186-005