|
||||
File indexing completed on 2025-01-18 10:15:41
0001 #ifndef __OUC_SFVEC_H__ 0002 #define __OUC_SFVEC_H__ 0003 /******************************************************************************/ 0004 /* */ 0005 /* X r d O u c S F V e c . h h */ 0006 /* */ 0007 /* (c) 2013 by the Board of Trustees of the Leland Stanford, Jr., University */ 0008 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 0009 /* DE-AC02-76-SFO0515 with the Department of Energy */ 0010 /* */ 0011 /* This file is part of the XRootD software suite. */ 0012 /* */ 0013 /* XRootD is free software: you can redistribute it and/or modify it under */ 0014 /* the terms of the GNU Lesser General Public License as published by the */ 0015 /* Free Software Foundation, either version 3 of the License, or (at your */ 0016 /* option) any later version. */ 0017 /* */ 0018 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */ 0019 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */ 0020 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */ 0021 /* License for more details. */ 0022 /* */ 0023 /* You should have received a copy of the GNU Lesser General Public License */ 0024 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */ 0025 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */ 0026 /* */ 0027 /* The copyright holder's institutional names and contributor's names may not */ 0028 /* be used to endorse or promote products derived from this software without */ 0029 /* specific prior written permission of the institution or contributor. */ 0030 /******************************************************************************/ 0031 0032 #include <unistd.h> 0033 0034 //----------------------------------------------------------------------------- 0035 //! XrdOucSFVec 0036 //! 0037 //! The struct defined here is a generic data structure that is used whenever 0038 //! we need to pass a vector of file offsets, lengths, and the corresponding 0039 //! target buffer pointers to effect a sendfile() call. It is used by the 0040 //! xrd, sfs, ofs., and oss components. 0041 //----------------------------------------------------------------------------- 0042 0043 struct XrdOucSFVec {union {char *buffer; //!< ->Data if fdnum < 0 0044 off_t offset; //!< File offset of data otherwise 0045 }; 0046 int sendsz; //!< Length of data at offset 0047 int fdnum; //!< File descriptor for data 0048 0049 enum {sfMax = 16}; //!< Maximum number of elements 0050 }; 0051 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |