freebsd-dev/include
Pedro F. Giffuni 153cbcd657 Make use of gcc attributes in some standard include headers.
The `nonnull' attribute specifies that some function parameters should be
non-null pointers.  This is very useful as it helps the compiler generate
warnings on suspicious code and can also enable some small optimizations.

Also start using 'alloc_size' attribute in the allocator functions.

This is an initial step to better integrate our libc with the compiler:
these attributes are fully supported by clang and they are also useful
for the static analyzer.

Note that due to some bogus internal procedure in the way gcc ports
are built they may require updating if they were built before r280801.

Relnotes:		yes
Hinted by:		Android's bionic libc
Differential Revision:	https://reviews.freebsd.org/D2107
2015-04-06 01:39:16 +00:00
..
arpa Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
gssapi
protocols Account for /usr/include/protocols/r{outed,whod}.h with their respective build knobs 2014-11-26 12:54:58 +00:00
rpc Replace Sun Industry Standards Source License for Sun RPC code with a 2013-11-25 19:08:38 +00:00
rpcsvc Fix build with rpcgen using a recent (tested with gcc 4.9.1) GNU cpp 2014-10-09 06:58:33 +00:00
xlocale Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance. 2014-05-30 01:09:07 +00:00
_ctype.h
a.out.h
ar.h
assert.h
bitstring.h
complex.h
cpio.h
ctype.h
db.h
dirent.h Fix some edge cases with rewinddir(): 2014-07-11 16:16:26 +00:00
dlfcn.h
elf-hints.h
elf.h
err.h
fmtmsg.h
fnmatch.h
fstab.h
fts.h
ftw.h
getopt.h
glob.h
grp.h include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE 2014-05-11 13:48:21 +00:00
gssapi.h
hesiod.h We don't use these files. 2014-08-09 20:03:40 +00:00
iconv.h
ieeefp.h
ifaddrs.h
inttypes.h Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4 2014-04-01 14:46:11 +00:00
iso646.h
kenv.h
langinfo.h langinfo.h: Hide YESSTR and NOSTR in strict POSIX mode. 2014-04-19 12:38:01 +00:00
libgen.h
limits.h
link.h
locale.h
Makefile Sort the entries by build knob, then MACHINE_ARCH like other areas of the tree 2015-02-04 11:48:33 +00:00
malloc_np.h Update jemalloc to version 3.5.0. 2014-01-23 02:47:36 +00:00
malloc.h
memory.h
mk-osreldate.sh
monetary.h
mpool.h
mqueue.h
ndbm.h
netconfig.h
netdb.h
nl_types.h
nlist.h
nss.h
nsswitch.h
paths.h
printf.h
proc_service.h
pthread_np.h
pthread.h Make use of gcc attributes in some standard include headers. 2015-04-06 01:39:16 +00:00
pwd.h
ranlib.h
readpassphrase.h
regex.h
res_update.h Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
resolv.h Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
runetype.h
search.h Add re-entrant versions of the hash functions based on the GNU api. 2014-07-21 15:22:48 +00:00
semaphore.h Ensure #include <semaphore.h> is sufficient for using SEM_VALUE_MAX. 2015-01-31 16:39:26 +00:00
setjmp.h include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE 2014-05-11 13:48:21 +00:00
signal.h Make use of gcc attributes in some standard include headers. 2015-04-06 01:39:16 +00:00
spawn.h
stab.h
stdalign.h
stdbool.h
stddef.h Add guards to ptrdiff_t definition in include/stddef.h 2014-08-21 15:10:10 +00:00
stdio.h Correct and clarify comment for __SMBF. 2015-02-11 22:39:13 +00:00
stdlib.h Make use of gcc attributes in some standard include headers. 2015-04-06 01:39:16 +00:00
stdnoreturn.h
string.h include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE 2014-05-11 13:48:21 +00:00
stringlist.h
strings.h Add explicit_bzero(3) and its kernel counterpart. 2014-10-07 04:54:11 +00:00
sysexits.h
tar.h
termios.h include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE 2014-05-11 13:48:21 +00:00
tgmath.h Roll back r271012 even more aggressively. 2014-09-05 05:36:32 +00:00
time.h
timeconv.h
timers.h
ttyent.h Add a new flag to /etc/ttys: onifconsole. This is equivalent to "on" if the 2014-01-20 18:15:06 +00:00
uchar.h
ulimit.h
unistd.h unistd: drop argument names from setpgrp(3) prototype. 2014-09-19 18:13:56 +00:00
unwind.h
utime.h
utmpx.h
uuid.h
varargs.h
wchar.h include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE 2014-05-11 13:48:21 +00:00
wctype.h
wordexp.h
xlocale.h