diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-11-25 01:00:24 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-11-25 01:00:24 +0000 |
| commit | bcdd964e2d064dc64f0b0f2d464805fecbb99bb7 (patch) | |
| tree | 0e6a69579bc8c235502c85f526fda906fb0ce705 /man2/open.2 | |
| parent | 8b8732547cc5bbc778d74f7e4295353e18a54e5b (diff) | |
| download | man-pages-bcdd964e2d064dc64f0b0f2d464805fecbb99bb7.tar.gz | |
Fix description of O_LARGEFILE to mention required feature test macros.
Diffstat (limited to 'man2/open.2')
| -rw-r--r-- | man2/open.2 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/man2/open.2 b/man2/open.2 index 499488eaf4..0dd111a798 100644 --- a/man2/open.2 +++ b/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 |
