Mercurial > octave
annotate liboctave/wrappers/filepos-wrappers.h @ 23219:3ac9f9ecfae5 stable
maint: Update copyright dates.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Feb 2017 12:39:29 -0500 |
parents | e9a0469dedd9 |
children | 092078913d54 |
rev | line source |
---|---|
21913
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 /* |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
23219
3ac9f9ecfae5
maint: Update copyright dates.
John W. Eaton <jwe@octave.org>
parents:
23083
diff
changeset
|
3 Copyright (C) 2016-2017 John W. Eaton |
21913
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 This file is part of Octave. |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 Octave is free software; you can redistribute it and/or modify it |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 under the terms of the GNU General Public License as published by the |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 Free Software Foundation; either version 3 of the License, or (at your |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 option) any later version. |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 for more details. |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 along with Octave; see the file COPYING. If not, see |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 <http://www.gnu.org/licenses/>. |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 */ |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 #if ! defined (octave_filepos_wrappers_h) |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 #define octave_filepos_wrappers_h 1 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 #include <sys/types.h> |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 #if defined __cplusplus |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 # include <cstdio> |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 #else |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 # include <stdio.h> |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 #endif |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 #if defined __cplusplus |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 extern "C" { |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 #endif |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 extern int octave_fseeko_wrapper (FILE *fp, off_t offset, int whence); |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 extern off_t octave_ftello_wrapper (FILE *fp); |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 #if defined __cplusplus |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
43 } |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
44 #endif |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
45 |
c0604bba8da1
provide wrappers for fseeko and ftello
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
46 #endif |