[libc-commits] [libc] 6e4374e - [libc] Add SIGPOLL si_code values. (#212873)

via libc-commits libc-commits at lists.llvm.org
Fri Jul 31 09:13:28 PDT 2026


Author: Alexey Samsonov
Date: 2026-07-31T09:13:24-07:00
New Revision: 6e4374e9749c23028009e8d06870a6c4184d9891

URL: https://github.com/llvm/llvm-project/commit/6e4374e9749c23028009e8d06870a6c4184d9891
DIFF: https://github.com/llvm/llvm-project/commit/6e4374e9749c23028009e8d06870a6c4184d9891.diff

LOG: [libc] Add SIGPOLL si_code values. (#212873)

This is a follow-up to efc78d2029b9f716de4546ed88571616d91e826c, which
adds `si_code` values for the `SIGPOLL` signal on Linux.

Added: 
    

Modified: 
    libc/include/llvm-libc-macros/linux/signal-macros.h

Removed: 
    


################################################################################
diff  --git a/libc/include/llvm-libc-macros/linux/signal-macros.h b/libc/include/llvm-libc-macros/linux/signal-macros.h
index a58dbf2b5f17c..e9fff447f9086 100644
--- a/libc/include/llvm-libc-macros/linux/signal-macros.h
+++ b/libc/include/llvm-libc-macros/linux/signal-macros.h
@@ -136,6 +136,14 @@
 #define CLD_STOPPED 5   // child has stopped
 #define CLD_CONTINUED 6 // stopped child has continued
 
+// SIGPOLL si_codes
+#define POLL_IN 1  // Data input available
+#define POLL_OUT 2 // Output buffers available
+#define POLL_MSG 3 // Input message available
+#define POLL_ERR 4 // I/O error
+#define POLL_PRI 5 // High priority input available
+#define POLL_HUP 6 // Device disconnected
+
 // Other si_codes.
 #define SI_USER 0       // Sent by kill()
 #define SI_QUEUE (-1)   // Sent by sigqueue()


        


More information about the libc-commits mailing list