Main Page | Data Structures | File List | Data Fields | Globals

ioclient-posix.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) Members of the EGEE Collaboration. 2004.
00003  *  See http://eu-egee.org/partners/ for details on the copyright holders.
00004  *  For license conditions see the license file or http://eu-egee.org/license.html
00005  *
00006  *  GLite Data IO Client module: IOClient Posix API
00007  *
00008  *  Authors: Paolo Badino <paolo.badino@cern.ch>
00009  *  Version info: $Id: ioclient-posix.h,v 1.6 2005/05/10 09:19:23 badino Exp $
00010  *  Release: $Name: glite-data-io-client_R_1_5_2 $
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_
The GLite Project. All rights reserved.