1lf64(5)               Standards, Environments, and Macros              lf64(5)
2
3
4

NAME

6       lf64 - transitional interfaces for 64-bit file offsets
7

DESCRIPTION

9       The  data  types, interfaces, and macros described on this page provide
10       explicit access to 64-bit file offsets. They are accessible through the
11       transitional  compilation  environment  described on the lfcompile64(5)
12       manual page. The function prototype and  semantics  of  a  transitional
13       interface  are equivalent to those of the standard version of the call,
14       except that relevant data types are 64-bit entities.
15
16   Data Types
17       The following tables list the standard data  or  struct  types  in  the
18       left-hand  column  and their  corresponding explicit 64-bit file offset
19       types in the right-hand column, grouped by header. The  absence  of  an
20       entry  in  the   left-hand  column  indicates that there is no existing
21       explicit 32-bit type that corresponds to the 64-bit type listed in  the
22       right—hand  column.   Note  that  in a 64-bit application, the standard
23       definition is equivalent to the 64-bit file offset definition.
24
25   <aio.h>
26       struct aiocb                  struct aiocb64
27          off_t aio_offset;             off64_t aio_offset;
28
29
30   <sys/dirent.h>
31       struct dirent                 struct dirent64
32          ino_t d_ino;                  ino64_t d_ino;
33          off_t d_off;                  off64_t d_off;
34
35
36   <sys/fcntl.h>
37       struct flock                  struct flock64
38          off_t l_start;                off64_t l_start;
39          off_t l_len;                  off64_t l_len;
40       F_SETLK                       F_SETLK64
41       F_SETLKW                      F_SETLKW64
42       F_GETLK                       F_GETLK64
43       F_FREESP                      F_FREESP64
44       F_ALLOCSP                     F_ALLOCSP64
45                                     O_LARGEFILE
46
47
48   <sys/stdio.h>
49       fpos_t                        fpos64_t
50
51
52   <sys/resource.h>
53       rlim_t                        rlim64_t
54       struct rlimit                 struct rlimit64
55          rlim_t rlim_cur;              rlim64_t rlim_cur;
56          rlim_t rlim_max;              rlim64_t rlim_max;
57       RLIM_INFINITY                 RLIM64_INFINITY
58       RLIM_SAVED_MAX                RLIM64_SAVED_MAX
59       RLIM_SAVED_CUR                RLIM64_SAVED_CUR
60
61
62   <sys/stat.h>
63       struct stat                   struct stat64
64          ino_t st_ino;                 ino64_t st_ino;
65          off_t st_size;                off64_t st_size;
66
67          blkcnt_t st_blocks;           blkcnt64_t st_blocks;
68
69
70   <sys/statvfs.h>
71       struct statvfs                struct statvfs64
72          fsblkcnt_t f_blocks;          fsblkcnt64_t f_blocks;
73          fsblkcnt_t f_bfree;           fsblkcnt64_t f_bfree;
74          fsblkcnt_t f_bavial;          fsblkcnt64_t f_bavial;
75          fsfilcnt_t  f_files;          fsfilcnt64_t  f_files;
76          fsfilcnt_t  f_ffree;          fsfilcnt64_t  f_ffree;
77          fsfilcnt_t  f_favail;         fsfilcnt64_t  f_favail;
78
79
80   <sys/types.h>
81       off_t;                        off64_t;
82       ino_t;                        ino64_t;
83       blkcnt_t;                     blkcnt64_t;
84       fsblkcnt_t;                   fsblkcnt64_t;
85       fsfilcnt_t;                   fsfilcnt64_t;
86
87
88   <unistd.h>
89                                     _LFS64_LARGEFILE
90                                     _LFS64_STDIO
91
92
93   <sys/unistd.h>
94                                     _CS_LFS64_CFLAGS
95                                     _CS_LFS64_LDFLAGS
96                                     _CS_LFS64_LIBS
97                                     _CS_LFS64_LINTFLAGS
98
99
100   System Interfaces
101       The following tables display the standard  API  and  the  corresponding
102       transitional   interfaces  for  64-bit file offsets. The interfaces are
103       grouped by header. The interface name and the affected data  types  are
104       displayed in courier font.
105
106   <aio.h>
107       int aio_cancel(...,               int aio_cancel64(...,
108          struct aiocb *);                  struct aiocb64 *);
109       int aio_error(                    int aio_error64(
110          const struct aiocb *);            const struct aiocb64 *);
111       int aio_fsync(...,                int aio_fsync64(...,
112          struct aiocb *);                  struct aiocb64 *);
113       int aio_read(struct aiocb *);     int aio_read64(struct aiocb64 *);
114       int aio_return(struct aiocb *);   int aio_return64(struct aiocb64 *);
115       int aio_suspend(                  int aio_suspend64(
116          const struct aiocb *, ...);       const struct aiocb64 *, ...);
117       int aio_waitn(aiocb_t *[],        int aio_waitn64(aiocb64_t *[],
118          ...);                             ...);
119       int aio_write(struct aiocb *);    int aio_write64(struct aiocb64 *);
120       int lio_listio(...,               int lio_listio64(...,
121          const struct aiocb *, ...);       const struct aiocb64 *, ...);
122
123
124   <dirent.h>
125       int alphasort(                       int alphasort64(
126          const struct dirent **,              const struct dirent64 **,
127          const struct dirent **)              const struct dirent64 **)
128       struct dirent *readdir();            struct dirent64 *readdir64();
129       struct dirent *readdir_r();          struct dirent64 *readdir64_r();
130       int scandir(...,                     int scandir64(...,
131          struct dirent *(*[]),                struct dirent64 *(*[]),
132
133          int (*)(const struct dirent *),      int (*)(const struct dirent64 *),
134          int (*)(const struct dirent **,      int (*)(const struct dirent64 **,
135             const struct dirent **))             const struct dirent64 **))
136
137
138   <fcntl.h>
139       int attropen();               int attropen64();
140       int creat();                  int creat64();
141       int open();                   int open64();
142       int openat();                 int openat64();
143       int posix_fadvise()           int posix_fadvise64()
144       int posix_fallocate()         int posix_fallocate64()
145
146
147   <ftw.h>
148       int ftw(...,                    int ftw64(...,
149          const struct stat *, ...);      const struct stat64 *, ...);
150
151       int nftw(..                     int nftw64(...,
152          const struct stat *, ...);      const struct stat64 *,  ...);
153
154
155
156   <libgen.h>
157       char *copylist(..., off_t);   char *copylist64(..., off64_t);
158
159
160   <stdio.h>
161       int fgetpos();                 int fgetpos64();
162       FILE *fopen();                 FILE *fopen64();
163       FILE *freopen();               FILE *freopen64();
164       int fseeko(..., off_t, ...);   int fseeko64(..., off64_t, ...);
165       int fsetpos(...,               int fsetpos64(...,
166          const fpos_t *);              const fpos64_t *);
167       off_t ftello();                off64_t ftello64()();
168       FILE *tmpfile();               FILE *tmpfile64();
169
170
171   <stdlib.h>
172       int mkstemp();                int mkstemp64();
173
174
175   <sys/async.h>
176       int aioread(..., off_t, ...);    int aioread64(..., off64_t, ...);
177       int aiowrite(..., off_t, ...);   int aiowrite64(..., off64_t, ...);
178
179
180   <sys/dirent.h>
181       int getdents(..., dirent);    int getdents64(..., dirent64);
182
183
184
185   <sys/mman.h>
186       void mmap(..., off_t);        void mmap64(..., off64_t);
187
188
189   <sys/resource.h>
190       int getrlimit(...,            int getrlimit64(...,
191          struct rlimit *);             struct rlimit64 *);
192       int setrlimit(...,            int setrlimit64(...,
193          const struct rlimit *);       const struct rlimit64 *);
194
195
196   <sys/sendfile.h>
197       ssize_t sendfile(...,             ssize_t sendfile64(...,
198
199          off_t *, ...);                    off64_t *, ...);
200       ssize_t sendfilev(..., const      ssize_t sendfilev64(..., const
201          struct sendfilevec *,  ...);     struct sendfilevec64 *, ...);
202
203
204
205   <sys/stat.h>
206       int fstat(..., struct stat *);   int fstat64(...,  struct stat64 *);
207       int fstatat(...,                 int fstatat64(...,
208          struct stat *, int);             struct stat64 *, int);
209       int lstat(..., struct stat *);   int lstat64(..., struct stat64 *);
210       int stat(..., struct stat *);    int stat64(..., struct stat64 *);
211
212
213   <sys/statvfs.h>
214       int statvfs(...,              int statvfs64(...,
215          struct statvfs *);            struct statvfs64 *);
216       int fstatvfs(...,             int fstatvfs64(...,
217          struct statvfs *);           struct statvfs64 *);
218
219
220   <ucbinclude/stdio.h>
221       FILE *fopen()                 FILE *fopen64()
222       FILE *freopen()               FILE *freopen64()
223
224
225   <ucbinclude/sys/dir.h>
226       int alphasort(                     int alphasort64(
227          struct direct **,                  struct direct64 **,
228          struct direct **);                 struct direct64 **);
229       struct direct *readdir();          struct direct64 *readdir64();
230       int scandir(...,                   int scandir64(...,
231          struct direct *(*[]);,  ...);      struct direct64 *(*[]);,  ...);
232
233
234
235   <unistd.h>
236       int lockf(..., off_t);          int lockf64(..., off64_t);
237       off_t lseek(..., off_t, ...);   off64_t lseek64(..., off64_t, ...);
238       int ftruncate(..., off_t);      int ftruncate64..., off64_t);
239       ssize_t pread(..., off_t);      ssize_t pread64..., off64_t);
240       ssize_t pwrite(..., off_t);     ssize_t pwrite64(..., off64_t);
241       int truncate(..., off_t);       int truncate64(..., off64_t);
242
243

SEE ALSO

245       lfcompile(5), lfcompile64(5)
246
247
248
249SunOS 5.11                        14 Jul 2008                          lf64(5)
Impressum