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

SPT_SETMODE(2) OSS System Calls Reference Manual
NAME
SPT_SETMODE - sets device-dependent Guardian le-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 lenum,
short function,
[short param1 ],
[short param2 ],
[short *last_params]
);
PARAMETERS
filenum Species the Guardian le number of a Guardian le open
instance, identifying the le to receive the requested function.
function Species 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 rst value or pattern of set bits that denes the
specic 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 denes the
specic 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 le-system functions.
A call to the SPT_SETMODE() function is rejected with an error indication if incomplete
nowait operations are pending on the specied le.
For programming information about the Guardian SETMODE le-system procedure, see the
Guardian Programmers 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 le is opened (not if a particular function value is
omitted when SPT_SETMODE() is called).
7304 Hewlett-Packard Company 527186-005