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
88 #define SS_DISABLE 2
99
1010 /* bit-flags */
11−#define SS_AUTODISARM (1 << 4) /* disable sas during sighandling */
11+#define SS_AUTODISARM (1U << 31) /* disable sas during sighandling */
1212 /* mask for all SS_xxx flags */
1313 #define SS_FLAG_BITS SS_AUTODISARM
1414

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