mirror of https://github.com/mkerrisk/man-pages
Fix description of O_LARGEFILE to mention required feature test macros.
This commit is contained in:
parent
8b8732547c
commit
bcdd964e2d
12
man2/open.2
12
man2/open.2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue