debug: Improve fcntl.h fortify warnings with clang
commit86889e22db329abac618c6a41f86c84657a15324
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 8 Feb 2024 18:46:21 +0000 (8 15:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 27 Feb 2024 13:52:59 +0000 (27 10:52 -0300)
tree44cd2f7b8f61f93cc72cf5f2107fd90ad0c87391
parent68444c045077368446eced143510419c901e31b1
debug: Improve fcntl.h fortify warnings with clang

It improves open, open64, openat, and openat64.  The compile and runtime
checks have similar coverage as with GCC.

Checked on aarch64, armhf, x86_64, and i686.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
io/bits/fcntl2.h
io/fcntl.h
misc/sys/cdefs.h