sam_settimeout - Set timeout value for Oracle HSM RPC API library calls
cc [ flag
… ] file
… -L∕opt∕SUNWsamfs∕lib -lsamrpc -l nsl [ library … ]
#include "∕opt∕SUNWsamfs∕include∕samrpc.h"
int sam_settimeout(int seconds );
sam_settimeout()
set the timeout value for seqsequent Oracle HSM RPC calls.
The default timeout value is 25 seconds.
seconds is the number of seconds used to timeout Oracle HSM RPC calls.
Upon successful completion a value of 0 is returned.
Otherwise, a value of -1 is returned and
errno
is set to indicate the error.
sam_settimeout()
fails if one or more of the following are true:
EINVALThe number of seconds specified is less than the default.
ECANCELEDSetting the timeout value failed.