|
|
|||
File indexing completed on 2026-09-15 09:29:01
0001 #ifndef __XRDPOSIXMAP_H__ 0002 #define __XRDPOSIXMAP_H__ 0003 /******************************************************************************/ 0004 /* */ 0005 /* X r d P o s i x M a p . h h */ 0006 /* */ 0007 /* (c) 2013 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 #include "XrdCl/XrdClFileSystem.hh" 0035 #include "XrdCl/XrdClXRootDResponses.hh" 0036 0037 #include <cstdint> 0038 #include <sys/types.h> 0039 0040 // Forward declarations 0041 class XrdOucECMsg; 0042 0043 struct stat; 0044 0045 class XrdPosixMap 0046 { 0047 public: 0048 0049 static mode_t Flags2Mode(dev_t *rdv, uint32_t flags); 0050 0051 // Convert a directory entry from the XrdCl to the OS's stat. 0052 // Will return non-zero (EIO) if the directory entry does not include any StatInfo. 0053 static int Entry2Buf(const XrdCl::DirectoryList::ListEntry &dirEnt, struct stat &buf, XrdOucECMsg &ecMsg); 0054 0055 static XrdCl::Access::Mode Mode2Access(mode_t mode); 0056 0057 static int Result(const XrdCl::XRootDStatus &Status, 0058 XrdOucECMsg& ecMsg, bool retneg1=false); 0059 0060 static void SetDebug(bool dbg) {Debug = dbg;} 0061 0062 XrdPosixMap() {} 0063 ~XrdPosixMap() {} 0064 0065 private: 0066 static int mapCode(int rc); 0067 static int mapError(int rc); 0068 static bool Debug; 0069 }; 0070 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|