xrootd
XrdPosix.hh
Go to the documentation of this file.
00001 #ifndef __XRDPOSIX_H__
00002 #define __XRDPOSIX_H__
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                           X r d P o s i x . h h                            */
00006 /*                                                                            */
00007 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*                            All Rights Reserved                             */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC02-76-SFO0515 with the Department of Energy              */
00011 /*                                                                            */
00012 /* This file is part of the XRootD software suite.                            */
00013 /*                                                                            */
00014 /* XRootD is free software: you can redistribute it and/or modify it under    */
00015 /* the terms of the GNU Lesser General Public License as published by the     */
00016 /* Free Software Foundation, either version 3 of the License, or (at your     */
00017 /* option) any later version.                                                 */
00018 /*                                                                            */
00019 /* XRootD is distributed in the hope that it will be useful, but WITHOUT      */
00020 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or      */
00021 /* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public       */
00022 /* License for more details.                                                  */
00023 /*                                                                            */
00024 /* You should have received a copy of the GNU Lesser General Public License   */
00025 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file  */
00026 /* COPYING (GPL license).  If not, see <http://www.gnu.org/licenses/>.        */
00027 /*                                                                            */
00028 /* The copyright holder's institutional names and contributor's names may not */
00029 /* be used to endorse or promote products derived from this software without  */
00030 /* specific prior written permission of the institution or contributor.       */
00031 /* Modified by Frank Winklmeier to add the full Posix file system definition. */
00032 /******************************************************************************/
00033   
00034 // The following defines substitute our names for the common system names. We
00035 // would have liked to use wrappers but each platform uses a different mechanism
00036 // to accomplish this. So, redefinition is the most portable way of doing this.
00037 //
00038 
00039 #define access(a,b)      XrdPosix_Access(a,b)
00040 
00041 #define chdir(a)         XrdPosix_Chdir(a)
00042 
00043 #define close(a)         XrdPosix_Close(a)
00044 
00045 #define closedir(a)      XrdPosix_Closedir(a)
00046 
00047 #define lseek(a,b,c)     XrdPosix_Lseek(a,b,c)
00048 
00049 #define fopen(a,b)       XrdPosix_Fopen(a,b)
00050 
00051 #define fread(b,s,n,f)   XrdPosix_Fread(b,s,n,f)
00052 
00053 #define fseek(a,b,c)     XrdPosix_Fseek(a,b,c)
00054 
00055 #define fseeko(a,b,c)    XrdPosix_Fseeko(a,b,c)
00056 
00057 #define fstat(a,b)       XrdPosix_Fstat(a,b)
00058 
00059 #define fsync(a)         XrdPosix_Fsync(a)
00060 
00061 #define ftell(a)         XrdPosix_Ftell(a)
00062 
00063 #define ftello(a)        XrdPosix_Ftello(a)
00064 
00065 #define ftruncate(a,b)   XrdPosix_Ftruncate(a,b)
00066 
00067 #define fwrite(b,s,n,f)  XrdPosix_Fwrite(b,s,n,f)
00068 
00069 #define mkdir(a,b)       XrdPosix_Mkdir(a,b)
00070 
00071 #define open             XrdPosix_Open
00072 
00073 #define opendir(a)       XrdPosix_Opendir(a)
00074   
00075 #define pread(a,b,c,d)   XrdPosix_Pread(a,b,c,d)
00076 
00077 #define read(a,b,c)      XrdPosix_Read(a,b,c)
00078   
00079 #define readv(a,b,c)     XrdPosix_Readv(a,b,c)
00080 
00081 #define readdir(a)       XrdPosix_Readdir(a)
00082 #define readdir64(a)     XrdPosix_Readdir64(a)
00083 
00084 #define readdir_r(a,b,c)   XrdPosix_Readdir_r(a,b,c)
00085 #define readdir64_r(a,b,c) XrdPosix_Readdir64_r(a,b,c)
00086 
00087 #define rename(a,b)      XrdPosix_Rename(a,b)
00088 
00089 #define rewinddir(a)     XrdPosix_Rewinddir(a)
00090 
00091 #define rmdir(a)         XrdPosix_Rmdir(a)
00092 
00093 #define seekdir(a,b)     XrdPosix_Seekdir(a,b)
00094 
00095 #define stat(a,b)        XrdPosix_Stat(a,b)
00096 
00097 #define statfs(a,b)      XrdPosix_Statfs(a,b)
00098 
00099 #define statvfs(a,b)     XrdPosix_Statvfs(a,b)
00100 
00101 #define pwrite(a,b,c,d)  XrdPosix_Pwrite(a,b,c,d)
00102 
00103 #define telldir(a)       XrdPosix_Telldir(a)
00104 
00105 #define truncate(a,b)    XrdPosix_Truncate(a,b)
00106 
00107 #define unlink(a)        XrdPosix_Unlink(a)
00108 
00109 #define write(a,b,c)     XrdPosix_Write(a,b,c)
00110 
00111 #define writev(a,b,c)    XrdPosix_Writev(a,b,c)
00112 
00113 // Now define the external interfaces (not C++ but OS compatabile)
00114 //
00115 #include "XrdPosix/XrdPosixExtern.hh"
00116 
00117 #endif