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

NAME

6       lfc_setptime - set replica pin time
7

SYNOPSIS

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

DESCRIPTION

15       lfc_setptime  sets  the  pin  time  for a file replica to a given time.
16       This function should be called everytime a  file  replica  is  created,
17       when its lifetime is extended or when the replica is released.
18
19       sfn    is the Physical File Name for the replica.
20
21       ptime  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: 2005/04/27 09:11:24 $          LFC_SETPTIME(3)
Impressum