glibc/misc/sys
Martin Sebor 7532837d7b The -Wstringop-truncation option new in GCC 8 detects common misuses
of the strncat and strncpy function that may result in truncating
the copied string before the terminating NUL.  To avoid false positive
warnings for correct code that intentionally creates sequences of
characters that aren't guaranteed to be NUL-terminated, arrays that
are intended to store such sequences should be decorated with a new
nonstring attribute.  This change add this attribute to Glibc and
uses it to suppress such false positives.

ChangeLog:
	* misc/sys/cdefs.h (__attribute_nonstring__): New macro.
	* sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
	* sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
2017-11-15 17:39:59 -07:00
..
auxv.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
cdefs.h The -Wstringop-truncation option new in GCC 8 detects common misuses 2017-11-15 17:39:59 -07:00
dir.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
file.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ioctl.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
queue.h
select.h Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
syslog.h Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
sysmacros.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
uio.h Remove __need_IOV_MAX and __need_FOPEN_MAX. 2017-06-14 07:51:30 -04:00
ustat.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
xattr.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00