/builddir/build/BUILD/gfal2-2.0.0/src/posix/gfal_posix_local_file.c File Reference

file for the internal func of the posix interface More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <glib.h>
#include <regex.h>
#include <attr/xattr.h>
#include "../common/gfal_common_errverbose.h"
#include "../common/gfal_common_filedescriptor.h"
#include "gfal_posix_local_file.h"

Defines

#define _GNU_SOURCE
#define GFAL_LOCAL_PREFIX   "file:"
#define GFAL_LOCAL_PREFIX_LEN   5

Functions

int gfal_local_initG (GError **err)
void gfal_local_report_error (const char *funcname, GError **err)
int gfal_local_access (const char *path, int amode, GError **err)
int gfal_local_chmod (const char *path, mode_t mode, GError **err)
ssize_t gfal_local_getxattr (const char *path, const char *name, void *buff, size_t s_buff, GError **err)
ssize_t gfal_local_listxattr (const char *path, char *list, size_t s_list, GError **err)
int gfal_local_setxattr (const char *path, const char *name, const void *value, size_t size, int flags, GError **err)
int gfal_local_rename (const char *oldpath, const char *newpath, GError **err)
int gfal_local_stat (const char *path, struct stat *buf, GError **err)
int gfal_local_lstat (const char *path, struct stat *buf, GError **err)
int gfal_local_mkdir_rec (const char *full_path, mode_t mode)
int gfal_local_mkdir (const char *path, mode_t mode, GError **err)
int gfal_local_unlink (const char *path, GError **err)
gfal_file_handle gfal_local_opendir (const char *path, GError **err)
dirent * gfal_local_readdir (gfal_file_handle fh, GError **err)
gfal_file_handle gfal_local_open (const char *path, int flag, mode_t mode, GError **err)
gboolean gfal_is_local_call (const char *module_name)
int gfal_local_read (gfal_file_handle fh, void *buff, size_t s_buff, GError **err)
ssize_t gfal_local_pread (gfal_file_handle fh, void *buff, size_t s_buff, off_t offset, GError **err)
int gfal_local_lseek (gfal_file_handle fh, off_t offset, int whence, GError **err)
int gfal_local_write (gfal_file_handle fh, void *buff, size_t s_buff, GError **err)
ssize_t gfal_local_pwrite (gfal_file_handle fh, void *buff, size_t s_buff, off_t offset, GError **err)
int gfal_local_close (gfal_file_handle fh, GError **err)
ssize_t gfal_local_readlink (const char *path, char *buff, size_t buffsiz, GError **err)
int gfal_local_rmdir (const char *path, GError **err)
int gfal_local_closedir (gfal_file_handle fh, GError **err)
int gfal_local_symlink (const char *oldpath, const char *newpath, GError **err)
gboolean gfal_check_local_url (const char *path, GError **err)


Detailed Description

file for the internal func of the posix interface

Author:
Devresse Adrien
Version:
2.0
Date:
06/05/2011

Function Documentation

gboolean gfal_check_local_url ( const char *  path,
GError **  err 
)

check the validity of a classique file url

int gfal_local_closedir ( gfal_file_handle  fh,
GError **  err 
)

local closedir mapper

ssize_t gfal_local_pread ( gfal_file_handle  fh,
void *  buff,
size_t  s_buff,
off_t  offset,
GError **  err 
)

map the gfal_pread call to the local pread call for file://

ssize_t gfal_local_pwrite ( gfal_file_handle  fh,
void *  buff,
size_t  s_buff,
off_t  offset,
GError **  err 
)

map to the local pwrite call

int gfal_local_read ( gfal_file_handle  fh,
void *  buff,
size_t  s_buff,
GError **  err 
)

map the gfal_read call to the local read call for file://

int gfal_local_rmdir ( const char *  path,
GError **  err 
)

local rmdir mapper

int gfal_local_write ( gfal_file_handle  fh,
void *  buff,
size_t  s_buff,
GError **  err 
)

map to the local write call


Generated on Wed May 16 16:46:34 2012 for CERN org.glite.Gfal by  doxygen 1.4.7