Open System Services System Calls Reference Manual (G06.28+, H06.05+)
System Functions (s and S) SPT_SETMODE(2)
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 func-
tions in the Guardian Procedure Calls Reference Manual.
param1 Provides the first 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.
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 Programmer’s Guide and the manual for the data communication protocol you are
using.
527186-007 Hewlett-Packard Company 7−309