|
|
|||
Warning, file /include/xrootd/XrdPosix/XrdPosixOsDep.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #ifndef __XRDPOSIXOSDEP_H__ 0002 #define __XRDPOSIXOSDEP_H__ 0003 /******************************************************************************/ 0004 /* */ 0005 /* X r d P o s i x O s D e p . 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 // Solaris does not have a statfs64 structure. So all interfaces use statfs. 0035 // 0036 #ifdef __solaris__ 0037 #define statfs64 statfs 0038 #endif 0039 0040 // We need to avoid using dirent64 for MacOS platforms. We would normally 0041 // include XrdSysPlatform.hh for this but this include file needs to be 0042 // standalone. So, we replicate the dirent64 redefinition here, Additionally, 0043 // off64_t, normally defined in Solaris and Linux, is cast as long long (the 0044 // appropriate type for the next 25 years). The Posix interface only supports 0045 // 64-bit offsets. 0046 // 0047 #if defined(__APPLE__) 0048 #if !defined(dirent64) 0049 #define dirent64 dirent 0050 #endif 0051 #if !defined(off64_t) 0052 #define off64_t long long 0053 #endif 0054 0055 #if defined(__DARWIN_VERS_1050) && !__DARWIN_VERS_1050 0056 #if !defined(stat64) 0057 #define stat64 stat 0058 #endif 0059 #if !defined(statfs64) 0060 #define statfs64 statfs 0061 #endif 0062 #endif 0063 0064 #if !defined(statvfs64) 0065 #define statvfs64 statvfs 0066 #endif 0067 #define ELIBACC ESHLIBVERS 0068 #endif 0069 0070 #ifdef __FreeBSD__ 0071 #define dirent64 dirent 0072 #define ELIBACC EFTYPE 0073 #endif 0074 0075 #if defined(__GNU__) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__)) 0076 #define ELIBACC EFTYPE 0077 #endif 0078 0079 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|