00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef GLITE_DATA_IO_CLIENT_IOCLIENT_POSIX_H_
00015 #define GLITE_DATA_IO_CLIENT_IOCLIENT_POSIX_H_
00016
00017 #include "glite/data/io/client/iotypes.h"
00018 #include <unistd.h>
00019 #include <fcntl.h>
00020
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif //__cplusplus
00024
00041 int glite_posix_open(const char * pathname, int flags, mode_t mode);
00042
00055 int glite_posix_creat(const char * pathname, mode_t mode);
00056
00069 ssize_t glite_posix_read(int fd, void * buf, size_t count);
00070
00083 ssize_t glite_posix_write(int fd, const void * buf, size_t count);
00084
00099 off_t glite_posix_lseek(int fd, off_t offset, int whence);
00100
00115 off64_t glite_posix_lseek64(int fd, off64_t offset, int whence);
00116
00126 int glite_posix_fstat(int fd, struct stat *buf);
00127
00137 int glite_posix_fstat64(int fd, struct stat64 *buf);
00138
00146 int glite_posix_close(int fd);
00147
00148
00164 int glite_posix_unlink(const char * pathname);
00165
00176 glite_handle glite_filehandle(int fd);
00177
00181 extern int glite_posix_errno;
00182
00183 #ifdef __cplusplus
00184 }
00185 #endif //__cplusplus
00186
00187 #endif //GLITE_DATA_IO_CLIENT_IOCLIENT_POSIX_H_