sam_setfa - Sets attributes on a file or directory
cc [ flag ... ] file ... -L/opt/SUNWsamfs/lib -lsamrpc -lnsl [ library ... ]
int sam_setfa(const char *path, const char *ops);
This is the RPC-based version of sam_setfa(3), which allows
file attributes to be set from a remote machine.
sam_setfa(3X) sets attributes on a file or directory by
sending its request to the Sun QFS or SAM-QFS server, sam-
A call to sam_initrpc(3X) must be issued before calling this
Upon successful completion a value of 0 is returned. Other-
wise, a value of -1 is returned and errno is set to indicate
EDESTADDRREQ sam_initrpc was not successfully called,
as required, before making this call.
EINVAL A valid filename was not provided.
EPERM The calling process is not superuser or
the owner of the file specified.
EROFS The file system is a read-only file sys-