Fix description of O_LARGEFILE to mention required feature test macros.

This commit is contained in:
Michael Kerrisk 2006-11-25 01:00:24 +00:00
parent 8b8732547c
commit bcdd964e2d
1 changed files with 10 additions and 2 deletions

View File

@ -209,6 +209,14 @@ Allow files whose sizes cannot be represented in an
(but can be represented in an
.IR off64_t )
to be opened.
The
.B _LARGEFILE64_SOURCE
macro must be defined in order to obtain this definition.
Setting the
.B _FILE_OFFSET_BITS
feature test macro to 64 is the preferred method of obtaining
this functionality (see
.BR feature_test_macros (7)).rd Bloch <blade@debian.org>
.TP
.B O_NOATIME
(Since Linux 2.6.8)
@ -495,8 +503,8 @@ macro to get their definitions.
.LP
The (undefined) effect of
.B O_RDONLY | O_TRUNC
varies among implementations. On many systems the file is actually
truncated.
varies among implementations.
On many systems the file is actually truncated.
.\" Linux 2.0, 2.5: truncate
.\" Solaris 5.7, 5.8: truncate
.\" Irix 6.5: truncate