Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

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. For a description of valid
values, see the table of SETMODE functions in the Guardian Procedure Calls
Reference Manual.
param1 Provides the first value or pattern of set bits that defines the specific function set-
ting to be used. For a description of valid values, see the table of SETMODE
functions in the Guardian Procedure Calls Reference Manual.
param2 Provides the second value or pattern of set bits that defines the specific function
setting to be used. For a description of valid values, see the table of SETMODE
functions in the Guardian Procedure Calls Reference Manual.
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 Programmers Guide and the manual for the data communication protocol you are
using.
Considerations
Default settings
The SPT_SETMODE() settings designated as default in the Guardian Pro-
cedure 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).
7410 Hewlett-Packard Company 527186-023