Content-type: text/html Manpage of GFAL_ACCESS

GFAL_ACCESS

Section: Library Functions (3)
Updated: 2003/11/19 12:56:29
Index Return to Main Contents
 

NAME

gfal_access - check existence/accessibility of a file/directory  

SYNOPSIS

#include <unistd.h>
#include "gfal_api.h"

int gfal_access (const char *path, int amode);  

DESCRIPTION

gfal_access checks the existence or the accessibility of the file/directory path according to the bit pattern in amode using the real user ID.
path
specifies the file name (this can only be a TURL in the current implementation).
amode
the bit pattern is built by an OR of the constants defined in <unistd.h>.
 

RETURN VALUE

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

ERRORS

ENOENT
The named file/directory does not exist.
EACCES
Search permission is denied on a component of the path prefix or specified access to the file itself is denied.
EFAULT
path is a NULL pointer.
ENOTDIR
A component of path prefix is not a directory.
EINVAL
path has an invalid syntax or amode is invalid.
ECOMM
Communication error.
EPROTONOSUPPORT
Access method not supported.
 

SEE ALSO

gfal(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 12:34:06 GMT, January 20, 2004