1DPNS_SETRTYPE(3)            DPNS Library Functions            DP‐
2NS_SETRTYPE(3)
3
4
5
6[1mNAME[0m
7       dpns_setrtype ‐ set replica type
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "dpns_api.h"[0m
12
13       [1mint dpns_setrtype (const char *[4m[22msfn[24m[1m, const
14char [4m[22mtype[24m[1m)[0m
15
16[1mDESCRIPTION[0m
17       [1mdpns_setrtype [22msets the replica type.
18
19       [4msfn[24m    is the Physical File Name for the replica.
20
21       [4mtype[24m   specifies the new type.  Valid types are:
22
23              [1mV      [22mreplica is volatile.
24
25              [1mD      [22mreplica is durable.
26
27              [1mP      [22mreplica is permanent.
28
29[1mRETURN VALUE[0m
30       This  routine  returns  0  if the operation was successful
31or ‐1 if the
32       operation failed. In the latter case, [1mserrno [22mis set
33appropriately.
34
35[1mERRORS[0m
36       [1mENOENT       [22mThe named replica does not exist.
37
38       [1mEACCES       [22mSearch permission is denied on a  com‐
39ponent  of  the  file
40                    prefix  or the caller effective user ID  does
41not match the
42                    owner  ID  of the file  or  write  permission
43on  the  file
44                    itself is denied.
45
46       [1mEFAULT       [4m[22msfn[24m is a NULL pointer.
47
48       [1mENAMETOOLONG  [22mThe  length  of  [4msfn[24m   exceeds
49[1mCA_MAXSFNLEN[22m.
50
51       [1mSENOSHOST    [22mHost unknown.
52
53       [1mSENOSSERV    [22mService unknown.
54
55       [1mSECOMERR     [22mCommunication error.
56
57       [1mENSNACT      [22mName server is not running or is being
58shutdown.
59
60[1mSEE ALSO[0m
61       [1mCastor_limits(4)[22m, [1mdpns_listreplica(3)[0m
62
63
64
65DPNS                     $Date: 2006/07/14 14:10:08 $         DP‐
66NS_SETRTYPE(3)
Impressum