glibc/grp
Joseph Myers b400fdefc7 Fix grp.h endgrent, getgrent namespace (bug 18528).
grp.h declares endgrent and getgrent if __USE_XOPEN2K8 (i.e. 2008
edition of POSIX, non-XSI).  However, the 2013 Technical Corrigendum
corrected the grp.h specification to XSI-shade these functions as in
previous editions (see <http://austingroupbugs.net/view.php?id=24>),
so they should not be declared for non-XSI POSIX.  This patch corrects
the conditions - using __USE_MISC || __USE_XOPEN_EXTENDED to match
setgrent - and the conform/ test expectations for this header, thereby
fixing the conform tests for this header for XPG3 (where the
expectations were wrong) and the linknamespace tests for it for
POSIX2008 (where the header bug meant it was wrongly considered a
problem for endgrent to bring in a reference to setgrent).

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).

	[BZ #18528]
	* grp/grp.h (endgrent): Condition on [__USE_MISC ||
	__USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
	__USE_XOPEN2K8].
	(getgrent): Likewise.
	* conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
	expect.
	[XPG3 || POSIX2008] (endgrent): Likewise.
	[XPG3] (setgrent): Likewise.
	* conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
	variable.
	(test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
2015-06-12 22:29:19 +00:00
..
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions Update. 2001-06-16 19:50:36 +00:00
compat-initgroups.c grp: Rewrite to use struct scratch_buffer instead of extend_alloca 2015-04-08 21:07:03 +02:00
fgetgrent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fgetgrent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getgrent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getgrent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getgrgid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getgrgid_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getgrnam.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getgrnam_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
grp.h Fix grp.h endgrent, getgrent namespace (bug 18528). 2015-06-12 22:29:19 +00:00
initgroups.c grp: Rewrite to use struct scratch_buffer instead of extend_alloca 2015-04-08 21:07:03 +02:00
putgrent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setgroups.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
testgrp.c * malloc/memusagestat.c (main): Use return instead of exit to 2000-12-31 10:52:32 +00:00
tst_fgetgrent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst_fgetgrent.sh Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00