History

signals/sigaltstack: Change SS_AUTODISARM to (1U << 31)

Using bit 4 divides the space of available bits strangely. Use bit 31 instead so that we have a better chance of keeping flag and mode bits separate in the long run.

Andy Lutomirski committed 10 years ago

Commit 91c61801 parent 0318bc82 files · +2 −2Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/signal.h+1−1
@@ -8,7 +8,7 @@ · 7 unmodified lines
8#define SS_DISABLE 28#define SS_DISABLE 2
9 9
10/* bit-flags */10/* bit-flags */
11#define SS_AUTODISARM (1 << 4) /* disable sas during sighandling */11#define SS_AUTODISARM (1U << 31) /* disable sas during sighandling */
12/* mask for all SS_xxx flags */12/* mask for all SS_xxx flags */
13#define SS_FLAG_BITS SS_AUTODISARM13#define SS_FLAG_BITS SS_AUTODISARM
14 14

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t