optimize compound-literal sigset_t's not to contain useless hurd bits

This commit is contained in:
Rich Felker
2011-05-07 23:37:10 -04:00
parent 99b8a25e94
commit 4c4e22d781
3 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -79,8 +79,10 @@ struct __timer {
#define SIGCANCEL 33
#define SIGSYSCALL 34
#define SIGPT_SET ((sigset_t){{[sizeof(long)==4] = 3<<(32*(sizeof(long)>4))}})
#define SIGTIMER_SET ((sigset_t){{ 0x80000000 }})
#define SIGPT_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \
[sizeof(long)==4] = 3<<(32*(sizeof(long)>4)) })
#define SIGTIMER_SET ((sigset_t *)(unsigned long [1+(sizeof(long)==4)]){ \
0x80000000 })
int __set_thread_area(void *);
int __libc_sigaction(int, const struct sigaction *, struct sigaction *);