[compiler-rt] [sanitizer] Remove usage of termios ioctl constants on Linux (PR #149140)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 16 22:01:06 PDT 2025


================
@@ -482,4 +482,26 @@
 #  define SANITIZER_START_BACKGROUND_THREAD_IN_ASAN_INTERNAL 0
 #endif
 
+#if SANITIZER_LINUX
+#  if !SANITIZER_GLIBC || SANITIZER_PPC
+// Workaround for
+// glibc/commit/3d3572f59059e2b19b8541ea648a6172136ec42e
+// Linux: Keep termios ioctl constants strictly internal
+#    define SANITIZER_TERMIOS_IOCTL_CONSTANTS 1
+#    if SANITIZER_GLIBC && SANITIZER_PPC
+#      define SANITIZER_TCGETS 0x402c7413
+#      define SANITIZER_TCSETS 0x802c7414
+#      define SANITIZER_TCSETSF 0x802c7415
+#      define SANITIZER_TCSETSW 0x802c7416
----------------
trcrsired wrote:

but you said we need to support PPC to make bots happy

https://github.com/llvm/llvm-project/pull/149140


More information about the llvm-commits mailing list