1LFC_SETRLTIME(3)             LFC Library Functions            LFC_SETRLTIME(3)
2
3
4

NAME

6       lfc_setrltime - set replica lifetime
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       int lfc_setrltime (const char *sfn, time_t ltime)
13

DESCRIPTION

15       lfc_setrltime  sets  the  lifetime  for a file replica to a given time.
16       This function should be called everytime a file replica is  created  or
17       when its lifetime is extended.
18
19       sfn    is the Physical File Name for the replica.
20
21       ltime  specifies the new lifetime.
22

RETURN VALUE

24       This  routine  returns  0  if the operation was successful or -1 if the
25       operation failed. In the latter case, serrno is set appropriately.
26

ERRORS

28       ENOENT       The named replica does not exist.
29
30       EACCES       Search permission is denied on a  component  of  the  file
31                    prefix  or the caller effective user ID does not match the
32                    owner ID of the file or read permission on the file itself
33                    is denied.
34
35       EFAULT       sfn is a NULL pointer.
36
37       ENAMETOOLONG The length of sfn exceeds CA_MAXSFNLEN.
38
39       SENOSHOST    Host unknown.
40
41       SENOSSERV    Service unknown.
42
43       SECOMERR     Communication error.
44
45       ENSNACT      Name server is not running or is being shutdown.
46

SEE ALSO

48       Castor_limits(4), lfc_listreplica(3)
49
50
51
52LFC                      $Date: 2006/12/01 09:19:37 $         LFC_SETRLTIME(3)
Impressum