xrootd
Loading...
Searching...
No Matches
src
XrdSys
XrdSysFallocate.hh
Go to the documentation of this file.
1
//----------------------------------------------------------------------------------
2
// 1. The Original Code is Mozilla code.
3
// The Initial Developer of the Original Code is Mozilla Foundation.
4
// Portions created by the Initial Developer are Copyright (C) 2010 the Initial Developer. All Rights Reserved.
5
// Contributor(s): Taras Glek <tglek@mozilla.com>
6
// 2. Created from the OSX-specific code from Mozilla's mozilla::fallocation() function.
7
// Adaptation (C) 2015,2016 R.J.V. Bertin for KDE, project.
8
//
9
// Original license allows modification / redistribution under LGPL 2.1 or higher.
10
//----------------------------------------------------------------------------------
11
// XRootD is free software: you can redistribute it and/or modify
12
// it under the terms of the GNU Lesser General Public License as published by
13
// the Free Software Foundation, either version 3 of the License, or
14
// (at your option) any later version.
15
//
16
// XRootD is distributed in the hope that it will be useful,
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
// GNU General Public License for more details.
20
//
21
// You should have received a copy of the GNU Lesser General Public License
22
// along with XRootD. If not, see <http://www.gnu.org/licenses/>.
23
//----------------------------------------------------------------------------------
24
25
// Implementation of posix_allocate for OSX.
26
27
#ifdef __APPLE__
28
29
extern
int
posix_fallocate(
int
fd, off_t offset, off_t len);
30
31
#else
32
33
#include <fcntl.h>
34
35
#endif
Generated by
1.9.8