Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:59:55

0001 #ifndef __XRDPOSIX_H__
0002 #define __XRDPOSIX_H__
0003 /******************************************************************************/
0004 /*                                                                            */
0005 /*                           X r d P o s i x . h h                            */
0006 /*                                                                            */
0007 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University  */
0008 /*                            All Rights Reserved                             */
0009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
0010 /*              DE-AC02-76-SFO0515 with the Department of Energy              */
0011 /*                                                                            */
0012 /* This file is part of the XRootD software suite.                            */
0013 /*                                                                            */
0014 /* XRootD is free software: you can redistribute it and/or modify it under    */
0015 /* the terms of the GNU Lesser General Public License as published by the     */
0016 /* Free Software Foundation, either version 3 of the License, or (at your     */
0017 /* option) any later version.                                                 */
0018 /*                                                                            */
0019 /* XRootD is distributed in the hope that it will be useful, but WITHOUT      */
0020 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or      */
0021 /* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public       */
0022 /* License for more details.                                                  */
0023 /*                                                                            */
0024 /* You should have received a copy of the GNU Lesser General Public License   */
0025 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file  */
0026 /* COPYING (GPL license).  If not, see <http://www.gnu.org/licenses/>.        */
0027 /*                                                                            */
0028 /* The copyright holder's institutional names and contributor's names may not */
0029 /* be used to endorse or promote products derived from this software without  */
0030 /* specific prior written permission of the institution or contributor.       */
0031 /* Modified by Frank Winklmeier to add the full Posix file system definition. */
0032 /******************************************************************************/
0033   
0034 // The following defines substitute our names for the common system names. We
0035 // would have liked to use wrappers but each platform uses a different mechanism
0036 // to accomplish this. So, redefinition is the most portable way of doing this.
0037 //
0038 
0039 #define access(a,b)      XrdPosix_Access(a,b)
0040 
0041 #define chdir(a)         XrdPosix_Chdir(a)
0042 
0043 #define close(a)         XrdPosix_Close(a)
0044 
0045 #define closedir(a)      XrdPosix_Closedir(a)
0046 
0047 #define lseek(a,b,c)     XrdPosix_Lseek(a,b,c)
0048 
0049 #define fopen(a,b)       XrdPosix_Fopen(a,b)
0050 
0051 #define fread(b,s,n,f)   XrdPosix_Fread(b,s,n,f)
0052 
0053 #define fseek(a,b,c)     XrdPosix_Fseek(a,b,c)
0054 
0055 #define fseeko(a,b,c)    XrdPosix_Fseeko(a,b,c)
0056 
0057 #define fstat(a,b)       XrdPosix_Fstat(a,b)
0058 
0059 #define fsync(a)         XrdPosix_Fsync(a)
0060 
0061 #define ftell(a)         XrdPosix_Ftell(a)
0062 
0063 #define ftello(a)        XrdPosix_Ftello(a)
0064 
0065 #define ftruncate(a,b)   XrdPosix_Ftruncate(a,b)
0066 
0067 #define fwrite(b,s,n,f)  XrdPosix_Fwrite(b,s,n,f)
0068 
0069 #define mkdir(a,b)       XrdPosix_Mkdir(a,b)
0070 
0071 #define open             XrdPosix_Open
0072 
0073 #define opendir(a)       XrdPosix_Opendir(a)
0074   
0075 #define pread(a,b,c,d)   XrdPosix_Pread(a,b,c,d)
0076 
0077 #define read(a,b,c)      XrdPosix_Read(a,b,c)
0078   
0079 #define readv(a,b,c)     XrdPosix_Readv(a,b,c)
0080 
0081 #define readdir(a)       XrdPosix_Readdir(a)
0082 #define readdir64(a)     XrdPosix_Readdir64(a)
0083 
0084 #define readdir_r(a,b,c)   XrdPosix_Readdir_r(a,b,c)
0085 #define readdir64_r(a,b,c) XrdPosix_Readdir64_r(a,b,c)
0086 
0087 #define rename(a,b)      XrdPosix_Rename(a,b)
0088 
0089 #undef rewinddir
0090 #define rewinddir(a)     XrdPosix_Rewinddir(a)
0091 
0092 #define rmdir(a)         XrdPosix_Rmdir(a)
0093 
0094 #define seekdir(a,b)     XrdPosix_Seekdir(a,b)
0095 
0096 #define stat(a,b)        XrdPosix_Stat(a,b)
0097 
0098 #define statfs(a,b)      XrdPosix_Statfs(a,b)
0099 
0100 #define statvfs(a,b)     XrdPosix_Statvfs(a,b)
0101 
0102 #define pwrite(a,b,c,d)  XrdPosix_Pwrite(a,b,c,d)
0103 
0104 #define telldir(a)       XrdPosix_Telldir(a)
0105 
0106 #define truncate(a,b)    XrdPosix_Truncate(a,b)
0107 
0108 #define unlink(a)        XrdPosix_Unlink(a)
0109 
0110 #define write(a,b,c)     XrdPosix_Write(a,b,c)
0111 
0112 #define writev(a,b,c)    XrdPosix_Writev(a,b,c)
0113 
0114 // Now define the external interfaces (not C++ but OS compatabile)
0115 //
0116 #include "XrdPosix/XrdPosixExtern.hh"
0117 
0118 #endif