DPNS_STAT(3) | DPNS Library Functions | DPNS_STAT(3) |
dpns_stat - get information about a DPNS file or directory in the name server
#include <sys/types.h>
#include "dpns_api.h"
int dpns_lstat (const char *path, struct dpns_filestat *statbuf)
int dpns_stat (const char *path, struct dpns_filestat *statbuf)
int dpns_statx (const char *path, struct dpns_fileid *file_uniqueid, struct dpns_filestat *statbuf)
dpns_stat gets information about a DPNS file or directory in the name server.
dpns_lstat is identical to dpns_stat except for symbolic links. dpns_lstat retrieves information about the link itself, while dpns_stat gets information about the file/directory referenced by the symbolic link.
dpns_statx returns the same information plus the file unique id (name server hostname and file id). The file can be specified by path name or by file_uniqueid. If both are given, file_uniqueid is used.
The structure pointed to by statbuf contains the following members:
filemode is constructed by OR'ing the bits defined in <sys/stat.h> under Unix or "statbits.h" under Windows/NT:
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
Castor_limits(4), dpns_chdir(3), dpns_chmod(3), dpns_chown(3), dpns_creat(3)
LCG Grid Deployment Team
$Date: 2003/09/02 07:08:38 $ | DPNS |