glibc/misc/sys
Zack Weinberg dbab6577c6 Deprecate inclusion of <sys/sysmacros.h> by <sys/types.h>
The macros defined by <sys/sysmacros.h> are not part of POSIX nor XSI, and
their names frequently collide with user code; see for instance glibc bug
19239 and Red Hat bug 130601.  <stdlib.h> includes <sys/types.h> under
_GNU_SOURCE, and C++ code presently cannot avoid being compiled under
_GNU_SOURCE, exacerbating the problem.

	* NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
	* misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
	define major, minor, and makedev to issue deprecation warnings on use.
	If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
	previously-activated deprecation warnings for these macros and prevent
	subsequent inclusions of this header from having any effect.
	* posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
	including <sys/sysmacros.h>, and undefine it again afterward.
2016-08-03 15:28:49 -04:00
..
auxv.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
cdefs.h Add utility macros for clang detection, and deprecation with messages. 2016-08-03 14:03:46 -04:00
dir.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
file.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ioctl.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
queue.h [BZ #5779] 2008-03-05 05:50:39 +00:00
select.h Fix sys/time.h timespec namespace (bug 20041). 2016-05-03 23:36:18 +00:00
syslog.h Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
sysmacros.h Deprecate inclusion of <sys/sysmacros.h> by <sys/types.h> 2016-08-03 15:28:49 -04:00
uio.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ustat.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
xattr.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00