1RFIO_READLINK(3) Rfio Library Functions RFIO_READLINK(3)
2
3
4
6 rfio_readlink - get the content of a symbolic link
7
9 #include <sys/types.h>
10 #include "rfio_api.h"
11
12 int rfio_readlink (const char *path, char *buf, int length)
13
15 rfio_readlink gets the content of the symbolic link identified by path.
16
17 buf content is not null terminated.
18 Symbolic link content can be truncated to length if buf is too small.
19
21 This routine returns the count of bytes placed in buf if the operation
22 was successful or -1 if the operation failed. In the latter case, ser‐
23 rno is set appropriately.
24
26 ENOENT path does not exist.
27
28 ENOMEM Insufficient memory.
29
30 EACCES Search permission is denied on a component of the path
31 prefix.
32
33 EFAULT path or buf is a NULL pointer.
34
35 ENOTDIR A component of the path prefix is not a directory.
36
37 EINVAL path is not a symbolic link or length is not positive.
38
39 ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of
40 a path component exceeds CA_MAXNAMELEN.
41
42 SENOSHOST Host unknown.
43
44 SENOSSERV Service unknown.
45
46 SECOMERR Communication error.
47
48 SEOPNOTSUP Not supported on Windows.
49
51 Castor_limits(4), rfio_symlink(3), rfio_unlink(3)
52
54 LCG Grid Deployment Team
55
56
57
58LCG $Date: 2005/03/31 13:13:03 $ RFIO_READLINK(3)