glibc/sysdeps
H.J. Lu ed97ef7a4b not-cancel.h: Support testing fortify build with Clang
When Clang is used to test fortify glibc build configured with

--enable-fortify-source=N

clang issues errors like

In file included from tst-rfc3484.c:60:
In file included from ./getaddrinfo.c:81:
../sysdeps/unix/sysv/linux/not-cancel.h:36:10: error: reference to overloaded function could not be resolved; did you mean to call it?
   36 | __typeof (open64) __open64_nocancel;
      |          ^~~~~~~~
../include/bits/../../io/bits/fcntl2.h:127:1: note: possible target for call
  127 | open64 (__fortify_clang_overload_arg (const char *, ,__path), int __oflag,
      | ^
../include/bits/../../io/bits/fcntl2.h:118:1: note: possible target for call
  118 | open64 (__fortify_clang_overload_arg (const char *, ,__path), int __oflag)
      | ^
../include/bits/../../io/bits/fcntl2.h:114:1: note: possible target for call
  114 | open64 (const char *__path, int __oflag, mode_t __mode, ...)
      | ^
../io/fcntl.h:219:12: note: possible target for call
  219 | extern int open64 (const char *__file, int __oflag, ...) __nonnull ((1));
      |            ^

because clang fortify support for functions with variable arguments relies
on function overload.  Update not-cancel.h to avoid __typeof on functions
with variable arguments.

Co-Authored-By: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
2025-01-03 04:56:48 +08:00
..
aarch64 AArch64: Update libm-test-ulps 2025-01-02 17:53:07 +00:00
alpha elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
arc elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
arm elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
csky elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
generic elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
gnu Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hppa elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
htl htl: move pthread_mutexattr_setprioceiling, pthread_mutexattr_getprioceiling into libc. 2025-01-02 01:20:21 +01:00
hurd Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
i386 elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
ieee754 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
loongarch elf: Remove the remaining uses of GET_ADDR_OFFSET 2025-01-02 13:45:27 +01:00
m68k elf: Remove the remaining uses of GET_ADDR_OFFSET 2025-01-02 13:45:27 +01:00
mach htl: move pthread_mutexattr_setprioceiling, pthread_mutexattr_getprioceiling into libc. 2025-01-02 01:20:21 +01:00
microblaze elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
mips elf: Remove the remaining uses of GET_ADDR_OFFSET 2025-01-02 13:45:27 +01:00
nptl Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
or1k elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
posix Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
powerpc elf: Remove the remaining uses of GET_ADDR_OFFSET 2025-01-02 13:45:27 +01:00
pthread Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
riscv RISC-V: Regenerate ULPs 2025-01-02 20:46:24 +01:00
s390 s390: Define TLS_DTV_OFFSET instead of GET_ADDR_OFFSET 2025-01-02 13:45:27 +01:00
sh elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
sparc elf: Introduce generic <dl-tls.h> 2025-01-02 13:45:27 +01:00
unix not-cancel.h: Support testing fortify build with Clang 2025-01-03 04:56:48 +08:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
x86 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
x86_64 new inputs with large errors for [a]cospi, [a]sinpi, [a]tanpi, atan2pi 2025-01-02 18:26:36 +01:00