1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
'\" te
.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.\" Copyright (c) 2015, Joyent, Inc. All rights reserved.
.TH LF64 5 "Jan 14, 2015"
.SH NAME
lf64 \- transitional interfaces for 64-bit file offsets
.SH DESCRIPTION
.LP
The data types, interfaces, and macros described on this page provide explicit
access to 64-bit file offsets. They are accessible through the transitional
compilation environment described on the \fBlfcompile64\fR(5) manual page. The
function prototype and semantics of a transitional interface are equivalent to
those of the standard version of the call, except that relevant data types are
64-bit entities.
.SS "Data Types"
.LP
The following tables list the standard data or struct types in the left-hand
column and their corresponding explicit 64-bit file offset types in the
right-hand column, grouped by header. The absence of an entry in the left-hand
column indicates that there is no existing explicit 32-bit type that
corresponds to the 64-bit type listed in the right\(emhand column. Note that
in a 64-bit application, the standard definition is equivalent to the 64-bit
file offset definition.
.SS "<\fBaio.h\fR>"
.TS
l l
l l .
struct \fBaiocb\fR struct \fBaiocb64\fR
\fBoff_t\fR aio_offset; \fBoff64_t\fR aio_offset;
.TE
.SS "<\fBsys/dirent.h\fR>"
.TS
l l
l l .
struct \fBdirent\fR struct \fBdirent64\fR
\fBino_t\fR d_ino; \fBino64_t\fR d_ino;
\fBoff_t\fR d_off; \fBoff64_t\fR d_off;
.TE
.SS "<\fBsys/fcntl.h\fR>"
.TS
l l
l l .
struct \fBflock\fR struct \fBflock64\fR
\fBoff_t\fR l_start; \fBoff64_t\fR l_start;
\fBoff_t\fR l_len; \fBoff64_t\fR l_len;
\fBF_SETLK\fR \fBF_SETLK64\fR
\fBF_SETLKW\fR \fBF_SETLKW64\fR
\fBF_GETLK\fR \fBF_GETLK64\fR
\fBF_FREESP\fR \fBF_FREESP64\fR
\fBF_ALLOCSP\fR \fBF_ALLOCSP64\fR
\fBO_LARGEFILE\fR
.TE
.SS "<\fBsys/stdio.h\fR>"
.TS
l l .
\fBfpos_t\fR \fBfpos64_t\fR
.TE
.SS "<\fBsys/resource.h\fR>"
.TS
l l
l l .
\fBrlim_t\fR \fBrlim64_t\fR
struct \fBrlimit\fR struct \fBrlimit64\fR
\fBrlim_t\fR rlim_cur; \fBrlim64_t\fR rlim_cur;
\fBrlim_t\fR rlim_max; \fBrlim64_t\fR rlim_max;
\fBRLIM_INFINITY\fR \fBRLIM64_INFINITY\fR
\fBRLIM_SAVED_MAX\fR \fBRLIM64_SAVED_MAX\fR
\fBRLIM_SAVED_CUR\fR \fBRLIM64_SAVED_CUR\fR
.TE
.SS "<\fBsys/stat.h\fR>"
.TS
l l
l l .
struct \fBstat\fR struct \fBstat64\fR
\fBino_t\fR st_ino; \fBino64_t\fR st_ino;
\fBoff_t\fR st_size; \fBoff64_t\fR st_size;
\fBblkcnt_t\fR st_blocks; \fBblkcnt64_t\fR st_blocks;
.TE
.SS "<\fBsys/statvfs.h\fR>"
.TS
l l
l l .
struct \fBstatvfs\fR struct \fBstatvfs64\fR
\fBfsblkcnt_t\fR f_blocks; \fBfsblkcnt64_t\fR f_blocks;
\fBfsblkcnt_t\fR f_bfree; \fBfsblkcnt64_t\fR f_bfree;
\fBfsblkcnt_t\fR f_bavial; \fBfsblkcnt64_t\fR f_bavial;
\fBfsfilcnt_t\fR f_files; \fBfsfilcnt64_t\fR f_files;
\fBfsfilcnt_t\fR f_ffree; \fBfsfilcnt64_t\fR f_ffree;
\fBfsfilcnt_t\fR f_favail; \fBfsfilcnt64_t\fR f_favail;
.TE
.SS "<\fBsys/types.h\fR>"
.TS
l l
l l .
\fBoff_t\fR; \fBoff64_t\fR;
\fBino_t\fR; \fBino64_t\fR;
\fBblkcnt_t\fR; \fBblkcnt64_t\fR;
\fBfsblkcnt_t\fR; \fBfsblkcnt64_t\fR;
\fBfsfilcnt_t\fR; \fBfsfilcnt64_t\fR;
.TE
.SS "<\fBunistd.h\fR>"
.TS
l l
l l .
\fB_LFS64_LARGEFILE\fR
\fB_LFS64_STDIO\fR
.TE
.SS "<\fBsys/unistd.h\fR>"
.TS
l l
l l .
\fB_CS_LFS64_CFLAGS\fR
\fB_CS_LFS64_LDFLAGS\fR
\fB_CS_LFS64_LIBS\fR
\fB_CS_LFS64_LINTFLAGS\fR
.TE
.SS "System Interfaces"
.LP
The following tables display the standard API and the corresponding
transitional interfaces for 64-bit file offsets. The interfaces are grouped by
header. The interface name and the affected data types are displayed in courier
font.
.SS "<\fBaio.h\fR>"
.TS
l l
l l .
int \fBaio_cancel\fR(..., int \fBaio_cancel64\fR(...,
struct \fBaiocb\fR *); struct \fBaiocb64\fR *);
int \fBaio_error\fR( int \fBaio_error64\fR(
const struct \fBaiocb\fR *); const struct \fBaiocb64\fR *);
int \fBaio_fsync\fR(..., int \fBaio_fsync64\fR(...,
struct \fBaiocb\fR *); struct \fBaiocb64\fR *);
int \fBaio_read\fR(struct \fBaiocb\fR *); int \fBaio_read64\fR(struct \fBaiocb64\fR *);
int \fBaio_return\fR(struct \fBaiocb\fR *); int \fBaio_return64\fR(struct \fBaiocb64\fR *);
int \fBaio_suspend\fR( int \fBaio_suspend64\fR(
const struct \fBaiocb\fR *, ...); const struct \fBaiocb64\fR *, ...);
int \fBaio_waitn\fR(aiocb_t *[], int \fBaio_waitn64\fR(aiocb64_t *[],
...); ...);
int \fBaio_write\fR(struct \fBaiocb\fR *); int \fBaio_write64\fR(struct \fBaiocb64\fR *);
int \fBlio_listio\fR(..., int \fBlio_listio64\fR(...,
const struct \fBaiocb\fR *, ...); const struct \fBaiocb64\fR *, ...);
.TE
.SS "<\fBdirent.h\fR>"
.TS
l l
l l .
int \fBalphasort\fR( int \fBalphasort64\fR(
const struct dirent **, const struct dirent64 **,
const struct dirent **) const struct dirent64 **)
struct \fBdirent *\fR\fBreaddir()\fR; struct \fBdirent64 *\fR\fBreaddir64()\fR;
struct \fBdirent *\fR\fBreaddir_r()\fR; struct \fBdirent64 *\fR\fBreaddir64_r()\fR;
int \fBscandir\fR(..., int \fBscandir64\fR(...,
struct dirent *(*[]), struct dirent64 *(*[]),
int (*)(const struct dirent *), int (*)(const struct dirent64 *),
int (*)(const struct dirent **, int (*)(const struct dirent64 **,
const struct dirent **)) const struct dirent64 **))
.TE
.SS "<\fBfcntl.h\fR>"
.TS
l l
l l .
int \fBattropen()\fR; int \fBattropen64()\fR;
int \fBcreat()\fR; int \fBcreat64()\fR;
int \fBopen()\fR; int \fBopen64()\fR;
int \fBopenat()\fR; int \fBopenat64()\fR;
int \fBposix_fadvise()\fR int \fBposix_fadvise64()\fR
int \fBposix_fallocate()\fR int \fBposix_fallocate64()\fR
.TE
.SS "<\fBftw.h\fR>"
.TS
l l
l l .
int \fBftw\fR(..., int \fBftw64\fR(...,
const struct \fBstat\fR *, ...); const struct \fBstat64\fR *, ...);
int \fBnftw\fR(.. int \fBnftw64\fR(...,
const struct \fBstat\fR *, ...); const struct \fBstat64\fR *, ...);
.TE
.SS "<\fBlibgen.h\fR>"
.TS
l l .
char *\fBcopylist\fR(..., \fBoff_t\fR); char *\fBcopylist64\fR(..., \fBoff64_t\fR);
.TE
.SS "<\fBstdio.h\fR>"
.TS
l l
l l .
int \fBfgetpos()\fR; int \fBfgetpos64()\fR;
FILE *\fBfopen()\fR; FILE *\fBfopen64()\fR;
FILE *\fBfreopen()\fR; FILE *\fBfreopen64()\fR;
int \fBfseeko\fR(..., \fBoff_t\fR, ...); int \fBfseeko64\fR(..., \fBoff64_t\fR, ...);
int \fBfsetpos\fR(..., int \fBfsetpos64\fR(...,
const \fBfpos_t\fR *); const \fBfpos64_t\fR *);
off_t \fBftello()\fR; off64_t \fBftello64()\fR();
FILE *\fBtmpfile()\fR; FILE *\fBtmpfile64()\fR;
.TE
.SS "<\fBstdlib.h\fR>"
.TS
l l .
int \fBmkstemp()\fR; int \fBmkstemp64()\fR;
.TE
.SS "<\fBsys/async.h\fR>"
.TS
l l
l l .
int \fBaioread\fR(..., \fBoff_t\fR, ...); int \fBaioread64\fR(..., \fBoff64_t\fR, ...);
int \fBaiowrite\fR(..., \fBoff_t\fR, ...); int \fBaiowrite64\fR(..., \fBoff64_t\fR, ...);
.TE
.SS "<\fBsys/dirent.h\fR>"
.TS
l l
l l .
int \fBgetdents\fR(..., \fBdirent\fR); int \fBgetdents64\fR(..., \fBdirent64\fR);
.TE
.SS "<\fBsys/mman.h\fR>"
.TS
l l .
void \fBmmap\fR(..., \fBoff_t\fR); void \fBmmap64\fR(..., \fBoff64_t\fR);
.TE
.SS "<\fBsys/resource.h\fR>"
.TS
l l
l l .
int \fBgetrlimit\fR(..., int \fBgetrlimit64\fR(...,
struct \fBrlimit\fR *); struct \fBrlimit64\fR *);
int \fBsetrlimit\fR(..., int \fBsetrlimit64\fR(...,
const struct \fBrlimit\fR *); const struct \fBrlimit64\fR *);
.TE
.SS "<\fBsys/sendfile.h\fR>"
.TS
l l
l l .
ssize_t \fBsendfile\fR(..., ssize_t \fBsendfile64\fR(...,
\fBoff_t\fR *, ...); \fBoff64_t\fR *, ...);
ssize_t \fBsendfilev\fR(..., const ssize_t \fBsendfilev64\fR(..., const
struct \fBsendfilevec\fR *, ...); struct \fBsendfilevec64\fR *, ...);
.TE
.SS "<\fBsys/stat.h\fR>"
.TS
l l
l l .
int \fBfstat\fR(..., struct \fBstat\fR *); int \fBfstat64\fR(..., struct \fBstat64\fR *);
int \fBfstatat\fR(..., int \fBfstatat64\fR(...,
struct \fBstat\fR *, int); struct \fBstat64\fR *, int);
int \fBlstat\fR(..., struct \fBstat\fR *); int \fBlstat64\fR(..., struct \fBstat64\fR *);
int \fBstat\fR(..., struct \fBstat\fR *); int \fBstat64\fR(..., struct \fBstat64\fR *);
.TE
.SS "<\fBsys/statvfs.h\fR>"
.TS
l l
l l .
int \fBstatvfs\fR(..., int \fBstatvfs64\fR(...,
struct \fBstatvfs\fR *); struct \fBstatvfs64\fR *);
int \fBfstatvfs\fR(..., int \fBfstatvfs64\fR(...,
struct \fBstatvfs\fR *); struct \fBstatvfs64\fR *);
.TE
.SS "<\fBucbinclude/stdio.h\fR>"
.TS
l l
l l .
FILE *\fBfopen()\fR FILE *\fBfopen64()\fR
FILE *\fBfreopen()\fR FILE *\fBfreopen64()\fR
.TE
.SS "<\fBucbinclude/sys/dir.h\fR>"
.TS
l l
l l .
int \fBalphasort\fR( int \fBalphasort64\fR(
struct \fBdirect\fR **, struct \fBdirect64\fR **,
struct \fBdirect\fR **); struct \fBdirect64\fR **);
struct \fBdirect *\fR\fBreaddir()\fR; struct \fBdirect64 *\fR\fBreaddir64()\fR;
int \fBscandir\fR(..., int \fBscandir64\fR(...,
struct \fBdirect\fR *(*[]);, ...); struct \fBdirect64\fR *(*[]);, ...);
.TE
.SS "<\fBunistd.h\fR>"
.TS
l l
l l .
int \fBlockf\fR(..., \fBoff_t\fR); int \fBlockf64\fR(..., \fBoff64_t\fR);
\fBoff_t lseek\fR(..., \fBoff_t\fR, ...); \fBoff64_t lseek64\fR(..., \fBoff64_t\fR, ...);
int \fBftruncate\fR(..., \fBoff_t\fR); int \fBftruncate64\fR..., \fBoff64_t\fR);
ssize_t \fBpread\fR(..., \fBoff_t\fR); ssize_t \fBpread64\fR..., \fBoff64_t\fR);
ssize_t \fBpwrite\fR(..., \fBoff_t\fR); ssize_t \fBpwrite64\fR(..., \fBoff64_t\fR);
ssize_t \fBpreadv\fR(..., \fBoff_t\fR); ssize_t \fBpreadv64\fR..., \fBoff64_t\fR);
ssize_t \fBpwritev\fR(..., \fBoff_t\fR); ssize_t \fBpwritev64\fR(..., \fBoff64_t\fR);
int \fBtruncate\fR(..., \fBoff_t\fR); int \fBtruncate64\fR(..., \fBoff64_t\fR);
.TE
.SH SEE ALSO
.LP
\fBlfcompile\fR(5), \fBlfcompile64\fR(5)
|