This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel


------- Additional Comments From neelakan at uiuc dot edu  2005-12-22 20:20 -------
The kernel sets the value of uc_mcontext.fpregs to the correct address of the
__fpregs_mem structure.  A user-level program that checks the address of the
__fpregs_mem structure should get the same value as contained in uc_mcontext.fpregs.

The problem arises because of the way that the glibc header files define the
size of the __sigset_t struct in ucontext_t (see /usr/include/sys/ucontext.h). 
The sigset_t struct should match the definition used by the kernel (which is
"unsigned long[2]" if I remember correctly), but is instead defined as "usigned
long int[32]" in  the glibc header file /usr/include/bits/sigset.h.

Does that answer your question?

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1780

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]