RFIO_READLINK(3) Rfio Library Functions RFIO_READLINK(3)NAME
rfio_readlink - get the content of a symbolic link
SYNOPSIS
#include <sys/types.h>
#include "rfio_api.h"
int rfio_readlink (const char *path, char *buf, int length)
DESCRIPTION
rfio_readlink gets the content of the symbolic link identified by path.
buf content is not null terminated.
Symbolic link content can be truncated to length if buf is too small.
RETURN VALUE
This routine returns the count of bytes placed in buf if the operation was successful or -1 if the operation failed. In the latter case,
serrno is set appropriately.
ERRORS
ENOENT path does not exist.
ENOMEM Insufficient memory.
EACCES Search permission is denied on a component of the path prefix.
EFAULT path or buf is a NULL pointer.
ENOTDIR A component of the path prefix is not a directory.
EINVAL path is not a symbolic link or length is not positive.
ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
SEOPNOTSUP Not supported on Windows.
SEE ALSO Castor_limits(4), rfio_symlink(3), rfio_unlink(3)AUTHOR
LCG Grid Deployment Team
LCG $Date: 2005/03/31 13:13:03 $ RFIO_READLINK(3)
Check Out this Related Man Page
DPNS_READLINK(3) DPNS Library Functions DPNS_READLINK(3)NAME
dpns_readlink - read value of a symbolic link in the DPNS Name Server
SYNOPSIS
#include <sys/types.h>
#include "dpns_api.h"
int dpns_readlink (const char *path, char *buf, size_t bufsiz)
DESCRIPTION
dpns_readlink reads the value of a symbolic link in the DPNS Name Server.
path specifies the link name relative to the current DPNS directory or the full DPNS pathname.
buf points at a buffer to receive the value.
bufsiz gives the buffer size.
RETURN VALUE
This routine returns the number of characters put in the buffer if the operation was successful or -1 if the operation failed. In the lat-
ter case, serrno is set appropriately.
ERRORS
ENOENT The named link does not exist or is a null pathname.
EACCES Search permission is denied on a component of the path prefix.
EFAULT path or buf is a NULL pointer.
ENOTDIR A component of path prefix is not a directory.
EINVAL path is not a symbolic link.
ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
ENSNACT Name server is not running or is being shutdown.
SEE ALSO Castor_limits(4), dpns_chdir(3), dpns_stat(3), dpns_statg(3), dpns_symlink(3)AUTHOR
LCG Grid Deployment Team
DPNS $Date: 2004/06/28 09:46:55 $ DPNS_READLINK(3)
Hi all,
This is my first message in this forum.
I'd like to know if there is a nice way to get the complete path from a symbolic link.
Example:
When I do a ls -ltr I see this output.
lrwxr-xr-x 1 mmmm users 66 Sep 4 09:58 LINK_SEND ->... (4 Replies)
Hello Team,
Any one suggest how to delte the below special character from a file which is having one column 10 rows of same below content.
----------------------------------------
Kosten|bersicht gemd_ ' =Welche Kosten kvnnen... (2 Replies)
Hi,
I have a issue, I need to loop through a comma delimited file and check for the length which exceeds specified length , if Yes truncate the string.
But my problem is , I do not have to check for all the fields and the field lenght is not same for all the fields.
For ex:
Say my line... (9 Replies)