glibc/misc/sys
Zack Weinberg 809b72df6c [BZ #19239] Issue deprecation warnings on macro expansion.
By using __glibc_macro_warning instead of __attribute_deprecated__,
we get the deprecation warnings whenever the macros are expanded,
not just when they compile to a function call.  This is important
for unintentional uses like the test case in #19239 (C++ var(value)
initialization syntax, with a variable named "major").  It's also
simpler, because __REDIRECT is no longer required.

	* misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
	(__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
	(__SYSMACROS_FST_IMPL_TEMPL): Delete.
	(major, minor, makedev): Use __SYSMACROS_DM in definition, instead
	of redirected function names.

	* misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
	as well.  Document that MESSAGE must be a single string literal.
2016-11-14 08:34:59 -05:00
..
auxv.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
cdefs.h [BZ #19239] Issue deprecation warnings on macro expansion. 2016-11-14 08:34:59 -05: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 Installed-header hygiene (BZ#20366): time.h types. 2016-09-23 08:43:56 -04:00
syslog.h Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
sysmacros.h [BZ #19239] Issue deprecation warnings on macro expansion. 2016-11-14 08:34:59 -05: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