Fix NSIG.
Our sigset_t definition hasn't been tied to our NSIG definition since we switched to uapi headers, so we can now fix it without breaking the LP32 ABI. The kernel uapi headers define and use _NSIG, so we need to have our scripts rename the kernel's definitions out of the way, then we can define _NSIG and NSIG in terms of the kernel's off-by-one value. Bug: 12938442 Change-Id: Ic7c86fd5be5ad1d822f7b2b1d88c8a0d70a1ac0f
This commit is contained in:
@@ -57,10 +57,15 @@ kernel_arch_token_replacements = {
|
||||
"mips": {"off_t":"__kernel_off_t"},
|
||||
"x86": {},
|
||||
}
|
||||
|
||||
# Replace tokens in the output according to this mapping
|
||||
kernel_token_replacements = {
|
||||
"asm": "__asm__",
|
||||
"__unused": "__linux_unused", # The kernel usage of __unused conflicts with the macro defined in sys/cdefs.h
|
||||
# The kernel usage of __unused for unused struct fields conflicts with the macro defined in <sys/cdefs.h>.
|
||||
"__unused": "__linux_unused",
|
||||
# The kernel's _NSIG/NSIG are one less than the userspace value, so we need to move them aside.
|
||||
"_NSIG": "_KERNEL__NSIG",
|
||||
"NSIG": "_KERNEL_NSIG",
|
||||
}
|
||||
|
||||
# this is the set of known static inline functions that we want to keep
|
||||
|
Reference in New Issue
Block a user