public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12037] New: Feature test macros incorrect for ftruncate() (and probably also truncate())
@ 2010-09-18 12:36 mtk dot manpages at gmail dot com
2010-09-21 18:04 ` [Bug libc/12037] " drepper dot fsp at gmail dot com
0 siblings, 1 reply; 3+ messages in thread
From: mtk dot manpages at gmail dot com @ 2010-09-18 12:36 UTC (permalink / raw)
To: glibc-bugs
I've just been documenting the new feature test macro requirements for
truncate() and ftruncate() in glibc 2.12, and it appears that the FTMs for
ftruncate() are incorrect.
Some background. In POSIX, these functions are marked as follows:
POSIX.1-2001/SUSv3
ftruncate() no markings
truncate() marked XSI
POSIX.1-2008/SUSv4
ftruncate() no markings
truncate() no markings
Here's the history of feature test macro requirements for these two functions as
defined in <unistd.h>:
truncate():
Since glibc 2.12
_BSD_SOURCE || _XOPEN_SOURCE >= 500 ||
_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED ||
_POSIX_C_SOURCE >= 200809L
Before glibc 2.12:
_BSD_SOURCE || _XOPEN_SOURCE >= 500 ||
_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
ftruncate():
Since glibc 2.12:
_BSD_SOURCE || _XOPEN_SOURCE >= 500 ||
_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED ||
_POSIX_C_SOURCE >= 200809L
Between glibc 2.3.5 and 2.11
_BSD_SOURCE || _XOPEN_SOURCE >= 500 ||
_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED ||
_POSIX_C_SOURCE >= 200112L
Before glibc 2.3.5:
_BSD_SOURCE || _XOPEN_SOURCE >= 500 ||
_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
>From the above, ftruncate() is no longer exposed in glibc 2.12 if
_POSIX_C_SOURCE >= 200112. This seems pretty clearly incorrect. I belive the
FTMs governing the declaration should have remained as they were pre 2.12:
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
--
Summary: Feature test macros incorrect for ftruncate() (and
probably also truncate())
Product: glibc
Version: 2.12
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper dot fsp at gmail dot com
ReportedBy: mtk dot manpages at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12037
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/12037] Feature test macros incorrect for ftruncate() (and probably also truncate())
2010-09-18 12:36 [Bug libc/12037] New: Feature test macros incorrect for ftruncate() (and probably also truncate()) mtk dot manpages at gmail dot com
@ 2010-09-21 18:04 ` drepper dot fsp at gmail dot com
0 siblings, 0 replies; 3+ messages in thread
From: drepper dot fsp at gmail dot com @ 2010-09-21 18:04 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper dot fsp at gmail dot com 2010-09-21 18:03 -------
Fixed in git.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=12037
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/12037] Feature test macros incorrect for ftruncate() (and probably also truncate())
[not found] <bug-12037-131@http.sourceware.org/bugzilla/>
@ 2014-06-30 8:02 ` fweimer at redhat dot com
0 siblings, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30 8:02 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=12037
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-30 8:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-18 12:36 [Bug libc/12037] New: Feature test macros incorrect for ftruncate() (and probably also truncate()) mtk dot manpages at gmail dot com
2010-09-21 18:04 ` [Bug libc/12037] " drepper dot fsp at gmail dot com
[not found] <bug-12037-131@http.sourceware.org/bugzilla/>
2014-06-30 8:02 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).