platform_bionic/libc/include
Pirama Arumuga Nainar db71defb66 Annotate fortify functions with diagnose_as_builtin
Bug: http://b/197147102
Bug: http://b/214080353

With https://reviews.llvm.org/D77491, clang got stricter when issuing
diagnostics regarding builtin functions.
https://reviews.llvm.org/D112024 adds a diagnose_as_builtin attribute
which lets it diagnose builtins even though their signature is slightly
different.  This patch adds diagnose_as_builtin attribute as needed.

Versioner is built with an older clang so it doesn't recognize this
attribute.  So this is added with a preprocessor check on clang
versions.  We can remove the version check once versioner gets updated
shortly after the compiler update.

Test: mmma bionic/tests with clang-r445002
Change-Id: I3d0d63ecdbea0cffe97eb5110e2d9f2a7595a38e
2022-02-03 11:53:52 -08:00
..
android Fix copy pasta in guard macro for weak symbols. 2022-01-07 16:06:54 -08:00
arpa <arpa/nameser.h>: fix INTRODUCED_IN API level. 2019-06-06 09:57:54 -07:00
bits Annotate fortify functions with diagnose_as_builtin 2022-02-03 11:53:52 -08:00
net Another round of documentation. 2018-10-04 16:35:13 -07:00
netinet Define sockaddr_storage in bionic 2021-07-14 14:20:36 -07:00
netpacket
sys Annotate fortify functions with diagnose_as_builtin 2022-02-03 11:53:52 -08:00
.clang-format Fix the libc/include .clang-format. 2020-01-30 13:51:39 -08:00
alloca.h Start documenting libc. 2018-08-23 11:03:17 -07:00
ar.h Start documenting libc. 2018-08-23 11:03:17 -07:00
assert.h Start documenting libc. 2018-08-23 11:03:17 -07:00
byteswap.h Start documenting libc. 2018-08-23 11:03:17 -07:00
complex.h Reland "Retire GCC FORTIFY." 2018-07-24 19:36:51 +00:00
cpio.h Start documenting libc. 2018-08-23 11:03:17 -07:00
ctype.h <ctype.h>: inline the ASCII functions. 2020-02-05 08:18:51 -08:00
dirent.h Add documentation to <dirent.h>. 2020-03-30 14:26:35 -07:00
dlfcn.h
elf.h Remove unused declarations. 2020-02-18 13:25:22 -08:00
endian.h Start documenting libc. 2018-08-23 11:03:17 -07:00
err.h Start documenting libc. 2018-08-23 11:03:17 -07:00
errno.h Start documenting libc. 2018-08-23 11:03:17 -07:00
error.h Start documenting libc. 2018-08-23 11:03:17 -07:00
execinfo.h Add execinfo functionality. 2021-10-20 21:53:07 +00:00
fcntl.h _FILE_OFFSET_BITS=64 support for fcntl. 2020-01-29 19:36:14 -08:00
features.h Start documenting libc. 2018-08-23 11:03:17 -07:00
fenv.h Clean up the math headers. 2020-02-11 08:46:29 -08:00
fnmatch.h Start documenting libc. 2018-08-23 11:03:17 -07:00
fts.h Fix various ftw/nftw "shall fail"s from POSIX. 2018-05-08 15:20:07 -07:00
ftw.h Better backwards compatibility for stat64. 2018-02-12 15:48:01 -08:00
getopt.h Another round of documentation. 2018-10-04 16:35:13 -07:00
glob.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
grp.h
iconv.h Start documenting libc. 2018-08-23 11:03:17 -07:00
ifaddrs.h Start documenting libc. 2018-08-23 11:03:17 -07:00
inttypes.h
langinfo.h
lastlog.h Start documenting libc. 2018-08-23 11:03:17 -07:00
libgen.h Start documenting libc. 2018-08-23 11:03:17 -07:00
limits.h More <limits.h> fixes. 2017-10-18 13:27:01 -07:00
link.h Add additional dl_phdr_info fields 2019-08-22 12:43:17 -07:00
locale.h Fix __VERSIONER_NO_GUARD cases for availability. 2021-02-01 12:53:22 -08:00
malloc.h Add mallinfo2 call. 2021-12-13 14:26:17 -08:00
math.h Fix __VERSIONER_NO_GUARD cases for availability. 2021-02-01 12:53:22 -08:00
memory.h Start documenting libc. 2018-08-23 11:03:17 -07:00
mntent.h
netdb.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
nl_types.h Changes for #inclusivefixit. 2020-07-21 16:34:58 -07:00
paths.h Add /system_ext/bin to shell search path 2020-01-07 20:39:52 +09:00
poll.h Accept NULL for fds parameter in poll. 2018-08-28 14:20:15 -07:00
pthread.h Fix bugprone-macro-parentheses warnings 2020-03-04 13:22:05 -08:00
pty.h Cleanup for #inclusivefixit. 2020-07-28 12:12:20 -07:00
pwd.h Remove __INTRODUCED_IN for obsolete API levels. 2019-10-03 16:09:04 -07:00
regex.h
resolv.h The future is now (2019 edition). 2019-03-14 09:29:52 -07:00
sched.h sched.h: add doc comments. 2021-12-15 13:56:39 -08:00
search.h versioner: Update libc.map.txt to match annotations 2019-12-23 07:13:33 -08:00
semaphore.h Implement new clock wait functions 2019-07-15 09:06:19 -07:00
setjmp.h Clean up mips references in the headers. 2020-02-13 18:00:16 -08:00
signal.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
spawn.h Add sigset64_t and accompanying functions. 2018-01-30 18:47:16 -08:00
stdatomic.h Change stdatomic.h check from defined(_USING_LIBCXX) to __has_include(<atomic>) 2019-07-18 13:57:39 -07:00
stdint.h
stdio.h Simplify and improve tempnam() and tmpnam(). 2020-12-08 22:26:06 -08:00
stdio_ext.h Start documenting libc. 2018-08-23 11:03:17 -07:00
stdlib.h Remove availability definitions for mbs APIs. 2022-01-07 14:38:29 -08:00
string.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
strings.h strings.h: undef ffs/ffsl/ffsll. 2020-06-25 08:46:06 -07:00
syscall.h Start documenting libc. 2018-08-23 11:03:17 -07:00
sysexits.h Start documenting libc. 2018-08-23 11:03:17 -07:00
syslog.h Start documenting libc. 2018-08-23 11:03:17 -07:00
tar.h Start documenting libc. 2018-08-23 11:03:17 -07:00
termio.h Start documenting libc. 2018-08-23 11:03:17 -07:00
termios.h Consistent <termios.h> behavior on all API levels. 2020-01-09 16:42:15 -08:00
threads.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
time.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
time64.h
uchar.h Start documenting libc. 2018-08-23 11:03:17 -07:00
ucontext.h Start documenting libc. 2018-08-23 11:03:17 -07:00
unistd.h Make swab(3) inline prior to API 28. 2020-08-07 13:10:51 -07:00
utime.h Start documenting libc. 2018-08-23 11:03:17 -07:00
utmp.h Reimplement our no-op utmp.h functions more simply. 2020-08-07 17:07:31 -07:00
wait.h Start documenting libc. 2018-08-23 11:03:17 -07:00
wchar.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
wctype.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
xlocale.h Start documenting libc. 2018-08-23 11:03:17 -07:00