Open System Services System Calls Reference Manual (G06.28+)
SPT_SETMODE(2) OSS System Calls Reference Manual
NAME
SPT_SETMODE - sets device-dependent Guardian file-system functions
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_ SETMODE (
short filenum,
short function,
[short param1 ],
[short param2 ],
[short *last_params]
);
PARAMETERS
filenum Specifies the Guardian file number of a Guardian file open
instance, identifying the file to receive the requested function.
function Specifies the number of a device-dependent function. See the
table of SETMODE functions in the Guardian Procedure Calls
Reference Manual for a description of valid values.
param1 Provides the first value or pattern of set bits that defines the
specific function setting to be used. See the table of SETMODE
functions in the Guardian Procedure Calls Reference Manual
for a description of valid values.
param2 Provides the second value or pattern of set bits that defines the
specific function setting to be used. See the table of SETMODE
functions in the Guardian Procedure Calls Reference Manual
for a description of valid values.
last_params Returns the previous settings of param1 and param2 associated
with the current function.
DESCRIPTION
The SPT_SETMODE() function is the thread-aware version of the Guardian SETMODE pro-
cedure.
The SPT_SETMODE() function is used to set device-dependent Guardian file-system functions.
A call to the SPT_SETMODE() function is rejected with an error indication if incomplete
nowait operations are pending on the specified file.
For programming information about the Guardian SETMODE file-system procedure, see the
Guardian Programmer’s Guide and the data communication manuals.
Considerations
Default settings
The SPT_SETMODE() settings designated as default in the
Guardian Procedure Calls Reference Manual are the values that
apply when a file is opened (not if a particular function value is
omitted when SPT_SETMODE() is called).
7−304 Hewlett-Packard Company 527186-005