/home/adevress/myworkspace/gfal2/src/core/posix/gfal_posix_api.h File Reference

main header file for API of the posix lib More...

#include <sys/types.h>
#include <fcntl.h>
#include <dirent.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <attr/xattr.h>
#include <global/gfal_global.h>
#include <common/gfal_constants.h>

Functions

int gfal_chmod (const char *url, mode_t mode)
 change file access permissions
int gfal_rename (const char *oldurl, const char *newurl)
 change the name or location of a file
int gfal_stat (const char *url, struct stat *st)
 get the file status, follow links
int gfal_lstat (const char *url, struct stat *st)
 get the file status, does not follow links
int gfal_access (const char *url, int amode)
 check user permissions for a file
ssize_t gfal_readlink (const char *url, char *buff, size_t buffsiz)
 resolve a link destination
int gfal_symlink (const char *oldurl, const char *newurl)
 create a symbolic link
int gfal_unlink (const char *url)
 unlink a file, delete it
int gfal_mkdir (const char *url, mode_t mode)
 create a directory
DIR * gfal_opendir (const char *url)
 open a directory
struct dirent * gfal_readdir (DIR *d)
 read a directory
int gfal_closedir (DIR *d)
 close a directory
int gfal_rmdir (const char *url)
 delete a directory
int gfal_creat (const char *url, mode_t mode)
 creat a file
int gfal_open (const char *url, int flags,...)
 open a file
off_t gfal_lseek (int fd, off_t off, int flags)
 reposition read/write file offset
int gfal_close (int fd)
 close a gfal file descriptor
ssize_t gfal_read (int fd, void *buff, size_t size)
 read from a gfal file descriptor
ssize_t gfal_write (int fd, const void *buff, size_t size)
 write from a gfal file descriptor
int gfal_flush (int fd)
 flush the given file descriptor
ssize_t gfal_pread (int fd, void *buff, size_t size, off_t offset)
 parallel read from a gfal file descriptor
ssize_t gfal_pwrite (int fd, const void *buff, size_t size, off_t offset)
 parallel write from a gfal file descriptor
ssize_t gfal_getxattr (const char *url, const char *name, void *value, size_t size)
 retrieve an extended attribute value
ssize_t gfal_listxattr (const char *url, char *list, size_t size)
 retrieve a list of the extended attributes availables
int gfal_setxattr (const char *url, const char *name, const void *value, size_t size, int flags)
 define an extended attribute value
int gfal_removexattr (const char *url, const char *name)
 delete a extended attribute value
int gfal_posix_check_error ()
void gfal_posix_clear_error ()
void gfal_posix_release_error ()
char * gfal_posix_strerror_r (char *buff_err, size_t s_err)
void gfal_posix_print_error ()
int gfal_posix_code_error ()
int gfal_set_verbose (int)
char * gfal_version ()
gfal2_context_t gfal_posix_get_context ()
 get context for advanced operation return the gfal2 context used for POSIX operations allow to do advanced operation ( config, checksum, transfer ) on this context

Detailed Description

main header file for API of the posix lib

Author:
Devresse Adrien
Version:
2.0.1
Date:
30/09/2011

Generated on 28 Nov 2013 for GFAL2 by  doxygen 1.6.1