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 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. For a
description of valid values, see the table of SETMODE func-
tions in the Guardian Procedure Calls Reference Manual.
param1 Provides the rst value or pattern of set bits that denes the
specic 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 denes the
specic 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 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 manual for the data communication protocol you are
using.
527186-007 Hewlett-Packard Company 7309