sam_stage - Sets stage attributes on a file
cc [ flag ... ] file ... -L/opt/SUNWsamfs/lib -lsamrpc -lnsl [ library ... ]
int sam_stage(const char *path, const char *ops);
This is the RPC-based version of sam_stage(3), which allows
stage attributes on a file to be set from a remote machine.
sam_stage(3x) sets stage attributes on a file or directory
by sending its request to the Sun QFS or SAM-QFS RPC server,
A call to sam_initrpc(3X) must be issued before calling this
Upon successful completion, a value of 0 is returned. Oth-
erwise, a value of -1 is returned and errno is set to indi-
cate the error.
EDESTADDRREQ sam_initrpc was not successfully called,
as required, before making this call.