diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-05-04 11:26:33 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-05-04 11:26:33 +0000 |
commit | fd9f30f6f9b266405d88eb11b1f8793451629125 (patch) | |
tree | 9ecd920d284ceb6ee72665b75ddee21a6b3550bd /sysdeps/unix/sysv/linux/x86/sys/ucontext.h | |
parent | 808befbf9edb079c507de4a2f3427c1cb715fa4b (diff) | |
download | glibc-fd9f30f6f9b266405d88eb11b1f8793451629125.tar.gz glibc-fd9f30f6f9b266405d88eb11b1f8793451629125.tar.xz glibc-fd9f30f6f9b266405d88eb11b1f8793451629125.zip |
Use __glibc_reserved convention in mcontext, sigcontext (bug 21457).
This patch implements the most straightforward part of fixing namespace issues for sys/ucontext.h and related headers: where fields in sys/ucontext.h or bits/sigcontext.h are named "reserved", "padding" or similar, they are renamed to use the __glibc_reserved* naming convention. It does not change fields with a leading underscore, or even those with a prefix such as uc_ or sc_. It only fixes a small part of bug 21457, so no XFAILs are removed. Tested for x86_64 and x86, and with build-many-glibcs.py. [BZ #21457] * sysdeps/unix/sysv/linux/mips/sys/ucontext.h [_MIPS_SIM != _ABIO32] (mcontext_t): Rename field reserved to __glibc_reserved1. * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h (struct _fpx_sw_bytes): Rename field padding to __glibc_reserved1. (struct _fpxreg): Likewise. [!__x86_64__] (struct _fpstate): Rename field reserved to __glibc_reserved1. Rename field padding to __glibc_reserved2. [__x86_64__] (struct _fpstate): Rename field padding to __glibc_reserved1. (struct _xsave_hdr): Rename field reserved1 to __glibc_reserved1. Rename field reserved2 to __glibc_reserved2. * sysdeps/unix/sysv/linux/x86/sys/ucontext.h [__x86_64__] (struct _libc_fpxreg): Rename field padding to __glibc_reserved1. [__x86_64__] (struct _libc_fpstate): Rename field padding to __glibc_reserved1.
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86/sys/ucontext.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86/sys/ucontext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/x86/sys/ucontext.h b/sysdeps/unix/sysv/linux/x86/sys/ucontext.h index 0da12f4081..6dad48fb2c 100644 --- a/sysdeps/unix/sysv/linux/x86/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/x86/sys/ucontext.h @@ -95,7 +95,7 @@ struct _libc_fpxreg { unsigned short int significand[4]; unsigned short int exponent; - unsigned short int padding[3]; + unsigned short int __glibc_reserved1[3]; }; struct _libc_xmmreg @@ -116,7 +116,7 @@ struct _libc_fpstate __uint32_t mxcr_mask; struct _libc_fpxreg _st[8]; struct _libc_xmmreg _xmm[16]; - __uint32_t padding[24]; + __uint32_t __glibc_reserved1[24]; }; /* Structure to describe FPU registers. */ |