| Skip Navigation Links | |
| Exit Print View | |
|
Sun QFS and Sun Storage Archive Manager 5.3 Reference Manual Sun QFS and Sun Storage Archive Manager 5.3 Information Library |
1. User Commands (Man Pages Section 1)
2. Maintenance Commands (Man Pages Section 1M)
3. Library Functions (Man Pages Section 3)
4. Library Functions (Man Pages Section 3X)
5. File Formats (Man Pages Section 4)
NAME
sam_segment - Sets segment attributes on a file or directory
SYNOPSIS
cc [ flag ... ] file ... -L/opt/SUNWsamfs/lib -lsamrpc -lnsl [ library ... ]
#include "/opt/SUNWsamfs/include/samrpc.h"
int sam_segment(const char *path, const char *ops);
DESCRIPTION
This is the RPC-based version of sam_segment(3), which
allows file attributes to be set from a remote machine.
sam_segment(3X) sets segment attributes on a file or direc-
tory by sending its request to the Sun QFS or SAM-QFS
server, rpc.sam.
A call to sam_initrpc(3X) must be issued before calling this
routine.
RETURN VALUES
Upon successful completion a value of 0 is returned. Other-
wise, a value of -1 is returned and errno is set to indicate
the error.
ERRORS
EDESTADDRREQ sam_initrpc was not successfully called,
as required, before making this call.
SEE ALSO
segment(1).
sam_segment(3).
sam_initrpc(3X), sam_closerpc(3X).