xrootd
Loading...
Searching...
No Matches
XrdPosixExtra.hh
Go to the documentation of this file.
1#ifndef __XRDPOSIXEXTRA_H__
2#define __XRDPOSIXEXTRA_H__
3/******************************************************************************/
4/* */
5/* X r d P o s i x E x t r a . h h */
6/* */
7/* */
8/* (c) 2021 by the Board of Trustees of the Leland Stanford, Jr., University */
9/* All Rights Reserved */
10/* Produced by Andrew Hanushevsky for Stanford University under contract */
11/* DE-AC02-76-SFO0515 with the Department of Energy */
12/* */
13/* This file is part of the XRootD software suite. */
14/* */
15/* XRootD is free software: you can redistribute it and/or modify it under */
16/* the terms of the GNU Lesser General Public License as published by the */
17/* Free Software Foundation, either version 3 of the License, or (at your */
18/* option) any later version. */
19/* */
20/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
21/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
22/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
23/* License for more details. */
24/* */
25/* You should have received a copy of the GNU Lesser General Public License */
26/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
27/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
28/* */
29/* The copyright holder's institutional names and contributor's names may not */
30/* be used to endorse or promote products derived from this software without */
31/* specific prior written permission of the institution or contributor. */
32/* Modified by Frank Winklmeier to add the full Posix file system definition. */
33/******************************************************************************/
34
35#include <cstdint>
36#include <unistd.h>
37#include <vector>
38#include <sys/types.h>
39
41
42//-----------------------------------------------------------------------------
44//-----------------------------------------------------------------------------
45
47{
48public:
49
50//-----------------------------------------------------------------------------
65//-----------------------------------------------------------------------------
66
67static const uint64_t forceCS = 0x0000000000000001ULL; // Gen chksum if missing
68
69static ssize_t pgRead (int fildes, void* buffer, off_t offset, size_t rdlen,
70 std::vector<uint32_t> &csvec, uint64_t opts=0,
71 XrdPosixCallBackIO *cbp=0);
72
73//-----------------------------------------------------------------------------
91//-----------------------------------------------------------------------------
92
93static ssize_t pgWrite(int fildes, void* buffer, off_t offset, size_t wrlen,
94 std::vector<uint32_t> &csvec, uint64_t opts=0,
95 XrdPosixCallBackIO *cbp=0);
96
99
100};
101#endif
Definition XrdPosixCallBack.hh:76
Extended POSIX interface to XRootD.
Definition XrdPosixExtra.hh:47
static ssize_t pgWrite(int fildes, void *buffer, off_t offset, size_t wrlen, std::vector< uint32_t > &csvec, uint64_t opts=0, XrdPosixCallBackIO *cbp=0)
XrdPosixExtra()
Definition XrdPosixExtra.hh:97
static ssize_t pgRead(int fildes, void *buffer, off_t offset, size_t rdlen, std::vector< uint32_t > &csvec, uint64_t opts=0, XrdPosixCallBackIO *cbp=0)
~XrdPosixExtra()
Definition XrdPosixExtra.hh:98
static const uint64_t forceCS
Definition XrdPosixExtra.hh:67