casacore
casa
IO
LargeIOFuncDef.h
Go to the documentation of this file.
1
//# LargeIOFuncDef.cc: Header to define possible large IO function names
2
//# Copyright (C) 2001,2002,2003
3
//# Associated Universities, Inc. Washington DC, USA.
4
//#
5
//# This library is free software; you can redistribute it and/or modify it
6
//# under the terms of the GNU Library General Public License as published by
7
//# the Free Software Foundation; either version 2 of the License, or (at your
8
//# option) any later version.
9
//#
10
//# This library is distributed in the hope that it will be useful, but WITHOUT
11
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13
//# License for more details.
14
//#
15
//# You should have received a copy of the GNU Library General Public License
16
//# along with this library; if not, write to the Free Software Foundation,
17
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18
//#
19
//# Correspondence concerning AIPS++ should be addressed as follows:
20
//# Internet email: aips2-request@nrao.edu.
21
//# Postal address: AIPS++ Project Office
22
//# National Radio Astronomy Observatory
23
//# 520 Edgemont Road
24
//# Charlottesville, VA 22903-2475 USA
25
//#
26
//# $Id$
27
28
#ifndef CASA_LARGEIOFUNCDEF_H
29
#define CASA_LARGEIOFUNCDEF_H
30
31
32
// <summary>
33
// Defines for correct name of functions to access large files.
34
// </summary>
35
36
// <use visibility=local>
37
38
// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
39
// </reviewed>
40
41
// </synopsis>
42
// The defines in this file let us instrument the IO system using PABLO.
43
// See www-pablo.cs.uiuc.edu for more about pablo.
44
//
45
// If AIPS_NOLARGEFILE is not defined, use the large file functions.
46
// Define _LARGEFILE64_SOURCE for Linux systems.
47
// <synopsis>
48
49
50
#if !defined(AIPS_NOLARGEFILE)
51
#if defined(AIPS_LINUX)
52
# if !defined(_LARGEFILE64_SOURCE)
53
# define _LARGEFILE64_SOURCE
54
# endif
55
# endif
56
#if defined(PABLO_IO)
57
# include "IOTrace.h"
58
# define traceFOPEN fopen64
59
# define traceFSEEK fseeko64
60
# define traceFTELL ftello64
61
# define trace2OPEN open64
62
# define traceLSEEK lseek64
63
# define trace3OPEN open64
64
# else
65
# define traceFOPEN fopen64
66
# define traceFCLOSE fclose
67
# define traceFSEEK fseeko64
68
# define traceFTELL ftello64
69
# define traceFREAD fread
70
# define traceFWRITE fwrite
71
# define traceREAD read
72
# define tracePREAD pread
73
# define traceWRITE write
74
# define tracePWRITE pwrite
75
# define trace2OPEN open64
76
# define traceLSEEK lseek64
77
# define trace3OPEN open64
78
# define traceCLOSE close
79
# endif
80
#else
81
# define traceFTELL ftell
82
#if defined(PABLO_IO)
83
# include "IOTrace.h"
84
# else
85
# define traceFOPEN fopen
86
# define traceFCLOSE fclose
87
# define traceFSEEK fseek
88
# define traceFREAD fread
89
# define traceFWRITE fwrite
90
# define traceREAD read
91
# define tracePREAD pread
92
# define traceWRITE write
93
# define tracePWRITE pwrite
94
# define trace2OPEN open
95
# define traceLSEEK lseek
96
# define trace3OPEN open
97
# define traceCLOSE close
98
# endif
99
#endif
100
101
namespace
casacore
{
//# NAMESPACE CASACORE - BEGIN
102
103
104
}
//# NAMESPACE CASACORE - END
105
106
#endif
casacore
this file contains all the compiler specific defines
Definition:
mainpage.dox:28
Generated by
1.8.17