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

SPT_FILE_OPEN_(2) OSS System Calls Reference Manual
NAME
SPT_FILE_OPEN_ - Establishes a communication path between an application process and a
le
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_FILE_OPEN_ (
{ const char *lename | const char *pathname },
short length,
short *lenum,
[ short access ],
[ short exclusion ],
[ short nowait_depth ],
[ short sync_or_receive_depth ],
[ short options ],
[ short seq_block_buffer_id ],
[ short seq_block_buffer_len ],
[ short *primary_processhandle ],
[ long elections ]
);
PARAMETERS
filename | pathname
lename species the Guardian lename of a Guardian le to be opened. The
value of lename must be a valid fully or partially qualied le name or DEFINE
name. If the name is partially qualied, it is resolved using the contents of the
=_DEFAULTS DEFINE.
pathname species the OSS lename or pathname of an OSS le to be opened.
The value of the pathname parameter is terminated by a null character. options
bit 10 must be set to 1 to open an OSS le.
filenum returns a Guardian le number that is used to identify the Guardian le open
instance in subsequent Guardian le-system calls. If the le cannot be opened, a
value of -1 is returned.
lenum is used as an input parameter only when you are attempting a backup
open. In that case, you must supply the primary_processhandle parameter or
else the input value of lenum is ignored. For a backup open, the value specied
for lenum must be the lenum value that was returned when the le was opened
by the primary process. If a backup open is successful, the input value of lenum
is returned unless options bit 3 is set, in which case a new le number is assigned
for the backup open. If the backup open is unsuccessful, -1 is returned.
access Species the desired access mode for the le to be opened. Valid values are:
0 Read-write
7136 Hewlett-Packard Company 527186-005