/builddir/build/BUILD/gfal2-2.0.0/src/posix/gfal_posix_local_file.h

00001 #pragma once
00002 /*
00003  * Copyright (c) Members of the EGEE Collaboration. 2004.
00004  * See http://www.eu-egee.org/partners/ for details on the copyright holders.
00005  *
00006  * Licensed under the Apache License, Version 2.0 (the "License");
00007  * you may not use this file except in compliance with the License.
00008  * You may obtain a copy of the License at
00009  * 
00010  *     http://www.apache.org/licenses/LICENSE-2.0
00011  * 
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
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);

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