[libc-commits] [PATCH] D74528: [libc] Add Initial Support for Signals

Fangrui Song via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Feb 13 16:48:57 PST 2020


MaskRay added inline comments.


================
Comment at: libc/config/linux/api.td:144
+    // We use <linux/signal.h> so these should be defined.
+    MacroDefineIfNot<"NSIG", "64">,
+
----------------
MaskRay wrote:
> What is it 64?
65 may be a reasonable choice for most architectures.

MIPS may require 129. A MIPS signal mask contains 128 bits.

The Linux uapi may be stuck with `#define SIGRTMAX _NSIG` but a libc should not replicate that (mistake). A libc should have `SIGRTMAX-1 == _NSIG`, though `SIGRTMAX` is not necessarily a constant.



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74528/new/

https://reviews.llvm.org/D74528





More information about the libc-commits mailing list