This patch adds a Linux implementation for signal
It also fixes ASSERT|EXPECT_THAT macros
Details
- Reviewers
sivachandra PaulkaToast MaskRay - Commits
- rGca04d0c8fd26: [libc] Add signal
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
OK with one naming fix suggested inline.
| libc/spec/stdc.td | ||
|---|---|---|
| 19 | Neither POSIX nor std C prescribe it. Is it present merely as a convenience or because there is no way to describe function types using tablegen? Either way, I think this is OK. But to avoid name pollution, we should name this type with __ prefix. | |
| libc/src/signal/linux/signal.cpp | ||
| 22 | Add a note that sigaction sets the errno value on error? | |
Rename sighandler_t to __sighandler_t. Internally called __llvm_libc::sighandler_t (we could put it in global scope in internal headers or not use it all)
| libc/spec/stdc.td | ||
|---|---|---|
| 19 | Will you take another look to make sure its ok? Specifically that I put the using sighandler_t = __sighandler_t in src/signal/signal.h inside __llvm_libc. | |
| libc/spec/stdc.td | ||
|---|---|---|
| 19 | LGTM | |
Neither POSIX nor std C prescribe it. Is it present merely as a convenience or because there is no way to describe function types using tablegen? Either way, I think this is OK. But to avoid name pollution, we should name this type with __ prefix.