00001 #pragma once
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00027 #include <sys/types.h>
00028 #include <glib.h>
00029 #include "../common/gfal_types.h"
00030
00031 int gfal_local_initG(GError** err);
00032
00033 gboolean gfal_check_local_url(const char* path, GError** err);
00034
00035 gboolean gfal_is_local_call(const char * module_name);
00036
00037 int gfal_local_access(const char *path, int amode, GError** err);
00038
00039 int gfal_local_chmod(const char* path, mode_t mode, GError** err);
00040
00041 int gfal_local_rename(const char* oldpath, const char* newpath, GError** err);
00042
00043 int gfal_local_stat(const char* path, struct stat* buf, GError ** err);
00044
00045 int gfal_local_lstat(const char* path, struct stat* buf, GError ** err);
00046
00047 int gfal_local_symlink(const char* oldpath, const char* newpath, GError** err);
00048
00049 ssize_t gfal_local_readlink(const char* path, char* buff, size_t buffsiz, GError** err);
00050
00051 int gfal_local_lseek(gfal_file_handle fh, off_t offset, int whence, GError** err);
00052
00053 int gfal_local_mkdir(const char* path, mode_t mode, GError** err);
00054
00055 ssize_t gfal_local_getxattr(const char* path, const char* name, void* buff, size_t s_buff, GError** err);
00056
00057 ssize_t gfal_local_listxattr(const char* path, char* list, size_t s_list, GError** err);
00058
00059 int gfal_local_setxattr(const char* path, const char* name, const void* value, size_t size, int flags, GError** err);
00060
00061 int gfal_local_rmdir(const char* path, GError** err);
00062
00063 struct dirent* gfal_local_readdir(gfal_file_handle d, GError** err);
00064
00065 gfal_file_handle gfal_local_opendir(const char* path, GError** err);
00066
00067 int gfal_local_closedir(gfal_file_handle fh, GError** err);
00068
00069 gfal_file_handle gfal_local_open(const char* path, int flag, mode_t mode, GError** err);
00070
00071 int gfal_local_read(gfal_file_handle fh, void* buff, size_t s_buff, GError** err);
00072
00073 ssize_t gfal_local_pread(gfal_file_handle fh, void* buff, size_t s_buff, off_t offset, GError** err);
00074
00075
00076 int gfal_local_write(gfal_file_handle fh, void* buff, size_t s_buff, GError** err);
00077
00078 ssize_t gfal_local_pwrite(gfal_file_handle fh, void* buff, size_t s_buff, off_t offset, GError** err);
00079
00080 int gfal_local_close(gfal_file_handle fh, GError** err);
00081
00082 int gfal_local_unlink(const char* path, GError** err);