1RFIO_RCP(3)                 Rfio Library Functions                 RFIO_RCP(3)
2
3
4

NAME

6       rfio_rcp - third party copy of a file
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "rfio_api.h"
11
12       int rfio_rcp (char *source, char *destination, int timeout);
13

DESCRIPTION

15       rfio_rcp triggers a third party copy of a file.
16
17       source specifies the physical path of the source file.
18
19       destination
20              specifies the physical path of the file at destination.
21
22       timeout
23              specifies the time after which the copy is cancelled if not com‐
24              pleted.
25

RETURN VALUE

27       This routine returns 0 if the operation was successful  or  -1  if  the
28       operation failed. In the latter case, serrno is set appropriately.
29

ERRORS

31       ENOENT       The  source file does not exist or a component of destina‐
32                    tion prefix does not exist.
33
34       EACCES       Search permission is denied on a component of  the  source
35                    or destination prefix or read permission is not granted on
36                    the source file or write  permission  on  the  destination
37                    parent directory is denied.
38
39       EFAULT       source or destination is a NULL pointer.
40
41       ENOSPC       No space to store the new file copy.
42
43       ENAMETOOLONG The  length of source or destination exceeds CA_MAXPATHLEN
44                    or the length of a path component exceeds CA_MAXNAMELEN.
45
46       SENOSHOST    Host unknown.
47
48       SETIMEDOUT   Has timed out.
49
50       SECOMERR     Communication error.
51

SEE ALSO

53       Castor_limits(4)
54
55
56
57LCG          $Date: 2010-09-07 09:21:01 +0200 (Tue, 07 Sep 2010) $ RFIO_RCP(3)
Impressum