Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ?RCS: $Id$ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1998 Jarkko Hietaniemi | |
4 | ?RCS: | |
5 | ?RCS: You may distribute under the terms of either the GNU General Public | |
6 | ?RCS: License or the Artistic License, as specified in the README file. | |
7 | ?RCS: | |
8 | ?MAKE:d_fgetpos64 d_fopen64 d_freopen64 d_fseek64 d_fseeko64 d_fsetpos64 \ | |
33b2427b | 9 | d_ftell64 d_ftello64 d_tmpfile64: Inlibc use64bitint Setvar test |
959f3c4c JH |
10 | ?MAKE: -pick add $@ %< |
11 | ?S:d_fgetpos64: | |
12 | ?S: This variable conditionally defines the HAS_FGETPOS64 symbol, which | |
13 | ?S: indicates to the C program that the fgetpos64() routine is available. | |
14 | ?S:. | |
15 | ?S:d_fopen64: | |
16 | ?S: This variable conditionally defines the HAS_FOPEN64 symbol, which | |
17 | ?S: indicates to the C program that the fopen64() routine is available. | |
18 | ?S:. | |
19 | ?S:d_freopen64: | |
20 | ?S: This variable conditionally defines the HAS_FREOPEN64 symbol, which | |
21 | ?S: indicates to the C program that the freopen64() routine is available. | |
22 | ?S:. | |
23 | ?S:d_fseek64: | |
24 | ?S: This variable conditionally defines the HAS_FSEEK64 symbol, which | |
25 | ?S: indicates to the C program that the fseek64() routine is available. | |
26 | ?S:. | |
27 | ?S:d_fseeko64: | |
28 | ?S: This variable conditionally defines the HAS_FSEEKO64 symbol, which | |
29 | ?S: indicates to the C program that the fseeko64() routine is available. | |
30 | ?S:. | |
31 | ?S:d_fsetpos64: | |
32 | ?S: This variable conditionally defines the HAS_FSETPOS64 symbol, which | |
33 | ?S: indicates to the C program that the fsetpos64() routine is available. | |
34 | ?S:. | |
35 | ?S:d_ftell64: | |
36 | ?S: This variable conditionally defines the HAS_FTELL64 symbol, which | |
37 | ?S: indicates to the C program that the ftell64() routine is available. | |
38 | ?S:. | |
39 | ?S:d_ftello64: | |
40 | ?S: This variable conditionally defines the HAS_FTELLO64 symbol, which | |
41 | ?S: indicates to the C program that the ftello64() routine is available. | |
42 | ?S:. | |
43 | ?S:d_tmpfile64: | |
44 | ?S: This variable conditionally defines the HAS_TMPFILE64 symbol, which | |
45 | ?S: indicates to the C program that the tmpfile64() routine is available. | |
46 | ?S:. | |
47 | ?C:HAS_FGETPOS64: | |
48 | ?C: This symbol, if defined, indicates that the fgetpos64 routine is | |
49 | ?C: available to getpos files larger than 2 gigabytes. | |
50 | ?C:. | |
51 | ?C:HAS_FOPEN64: | |
52 | ?C: This symbol, if defined, indicates that the fopen64 routine is | |
53 | ?C: available to open files larger than 2 gigabytes. | |
54 | ?C:. | |
55 | ?C:HAS_FREOPEN64: | |
56 | ?C: This symbol, if defined, indicates that the freopen64 routine is | |
57 | ?C: available to reopen files larger than 2 gigabytes. | |
58 | ?C:. | |
59 | ?C:HAS_FSEEK64: | |
60 | ?C: This symbol, if defined, indicates that the fseek64 routine is | |
61 | ?C: available to seek files larger than 2 gigabytes. | |
62 | ?C:. | |
63 | ?C:HAS_FSEEKO64: | |
64 | ?C: This symbol, if defined, indicates that the fseeko64 routine is | |
65 | ?C: available to seek files larger than 2 gigabytes. | |
66 | ?C:. | |
67 | ?C:HAS_FSETPOS64: | |
68 | ?C: This symbol, if defined, indicates that the fsetpos64 routine is | |
69 | ?C: available to setpos files larger than 2 gigabytes. | |
70 | ?C:. | |
71 | ?C:HAS_FTELL64: | |
72 | ?C: This symbol, if defined, indicates that the ftell64 routine is | |
73 | ?C: available to tell files larger than 2 gigabytes. | |
74 | ?C:. | |
75 | ?C:HAS_FTELLO64: | |
76 | ?C: This symbol, if defined, indicates that the ftello64 routine is | |
77 | ?C: available to tell files larger than 2 gigabytes. | |
78 | ?C:. | |
79 | ?C:HAS_TMPFILE64: | |
80 | ?C: This symbol, if defined, indicates that the tmpfile64 routine is | |
81 | ?C: available to tmpfile files larger than 2 gigabytes. | |
82 | ?C:. | |
83 | ?H:#$d_fgetpos64 HAS_FGETPOS64 /**/ | |
84 | ?H:#$d_fopen64 HAS_FOPEN64 /**/ | |
85 | ?H:#$d_freopen64 HAS_FREOPEN64 /**/ | |
86 | ?H:#$d_fseek64 HAS_FSEEK64 /**/ | |
87 | ?H:#$d_fseeko64 HAS_FSEEKO64 /**/ | |
88 | ?H:#$d_fsetpos64 HAS_FSETPOS64 /**/ | |
89 | ?H:#$d_ftell64 HAS_FTELL64 /**/ | |
90 | ?H:#$d_ftello64 HAS_FTELLO64 /**/ | |
91 | ?H:#$d_tmpfile64 HAS_TMPFILE64 /**/ | |
92 | ?H:. | |
93 | ?T:xxx | |
94 | ?LINT:set d_fgetpos64 | |
95 | ?LINT:set d_fopen64 | |
96 | ?LINT:set d_freopen64 | |
97 | ?LINT:set d_fseek64 | |
98 | ?LINT:set d_fseeko64 | |
99 | ?LINT:set d_fsetpos64 | |
100 | ?LINT:set d_ftell64 | |
101 | ?LINT:set d_ftello64 | |
102 | ?LINT:set d_tmpfile64 | |
2f125bce | 103 | : Check for 64bit versions of basic file IO |
33b2427b | 104 | if $test X"$use64bitint" = X"$define"; then |
959f3c4c JH |
105 | : see if fgetpos64 exists |
106 | set fgetpos64 d_fgetpos64 | |
107 | eval $inlibc | |
108 | ||
109 | : see if fopen64 exists | |
110 | set freopen64 d_fopen64 | |
111 | eval $inlibc | |
112 | ||
113 | : see if freopen64 exists | |
114 | set freopen64 d_freopen64 | |
115 | eval $inlibc | |
116 | ||
117 | : see if fseek64 exists | |
118 | set fseek64 d_fseek64 | |
119 | eval $inlibc | |
120 | ||
121 | : see if fseeko64 exists | |
122 | set fseeko64 d_fseeko64 | |
123 | eval $inlibc | |
124 | ||
125 | : see if fsetpos64 exists | |
126 | set fsetpos64 d_fsetpos64 | |
127 | eval $inlibc | |
128 | ||
129 | : see if ftell64 exists | |
130 | set ftell64 d_ftell64 | |
131 | eval $inlibc | |
132 | ||
133 | : see if ftello64 exists | |
134 | set ftello64 d_ftello64 | |
135 | eval $inlibc | |
136 | ||
137 | : see if tmpfile64 exists | |
138 | set tmpfile64 d_tmpfile64 | |
139 | eval $inlibc | |
140 | else | |
141 | val="$undef" | |
142 | for xxx in d_fgetpos64 d_fopen64 d_freopen64 d_fseek64 d_fseeko64 d_fsetpos64 d_ftell64 d_ftello64 d_tmpfile64 | |
143 | do | |
144 | set $xxx | |
145 | eval $setvar | |
146 | done | |
147 | fi | |
148 |