about summary refs log tree commit diff
path: root/io/fcntl.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-08 15:46:21 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-27 10:52:59 -0300
commit86889e22db329abac618c6a41f86c84657a15324 (patch)
tree44cd2f7b8f61f93cc72cf5f2107fd90ad0c87391 /io/fcntl.h
parent68444c045077368446eced143510419c901e31b1 (diff)
downloadglibc-86889e22db329abac618c6a41f86c84657a15324.tar.gz
glibc-86889e22db329abac618c6a41f86c84657a15324.tar.xz
glibc-86889e22db329abac618c6a41f86c84657a15324.zip
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>
Diffstat (limited to 'io/fcntl.h')
-rw-r--r--io/fcntl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/io/fcntl.h b/io/fcntl.h
index 9cee0b5900..38aa12d7f2 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -337,8 +337,7 @@ extern int posix_fallocate64 (int __fd, off64_t __offset, off64_t __len);
 
 
 /* Define some inlines helping to catch common problems.  */
-#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function \
-    && defined __va_arg_pack_len
+#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
 # include <bits/fcntl2.h>
 #endif