mirror of https://github.com/mkerrisk/man-pages
feature_test_macros.7: Document _LARGEFILE_SOURCE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
aba863afed
commit
d84dea2263
|
@ -22,7 +22,7 @@
|
|||
.\" the source, must acknowledge the copyright and authors of this work.
|
||||
.\" %%%LICENSE_END
|
||||
.\"
|
||||
.TH FEATURE_TEST_MACROS 7 2014-03-13 "Linux" "Linux Programmer's Manual"
|
||||
.TH FEATURE_TEST_MACROS 7 2014-03-20 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
feature_test_macros \- feature test macros
|
||||
.SH SYNOPSIS
|
||||
|
@ -283,6 +283,28 @@ New programs should not employ this macro; instead
|
|||
.I _FILE_OFFSET_BITS=64
|
||||
should be employed.
|
||||
.TP
|
||||
.BR _LARGEFILE_SOURCE
|
||||
This macro was historically used to expose certain functions (specifically
|
||||
.BR fseeko (3)
|
||||
and
|
||||
.BR ftello (3))
|
||||
that address limitations of earlier APIs
|
||||
.RB ( feek (3)
|
||||
and
|
||||
.BR ftell (3))
|
||||
that use
|
||||
.IR "long int"
|
||||
for file offsets.
|
||||
This macro is implicitly defined if
|
||||
.BR _XOPEN_SOURCE
|
||||
is defined with a value greater than or equal to 500.
|
||||
New programs should not employ this macro;
|
||||
defining
|
||||
.BR _XOPEN_SOURCE
|
||||
as just described or defining
|
||||
.B _FILE_OFFSET_BITS
|
||||
with the value 64 is the preferred mechanism to achieve the same result.
|
||||
.TP
|
||||
.B _FILE_OFFSET_BITS
|
||||
Defining this macro with the value 64
|
||||
automatically converts references to 32-bit functions and data types
|
||||
|
|
Loading…
Reference in New Issue