Skip Headers
Oracle Hierarchical Storage Manager and QFS Software Command Reference
Section 3x: Introduction to Library Functions
Release 6.1.1
E70305-03

NAME

sam_settimeout - Set timeout value for Oracle HSM RPC API library calls

SYNOPSIS

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.

RETURN VALUES

Upon successful completion a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.

ERRORS

sam_settimeout() fails if one or more of the following are true:

EINVAL

The number of seconds specified is less than the default.

ECANCELED

Setting the timeout value failed.

SEE ALSO

sam_initrpc_timeout (3x), sam_ssum (3x).