lkml.org 
[lkml]   [2013]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRE: X86 fpu registers in a signal handler's ucontext
    Date
    richard -rw- weinberger <richard.weinberger@gmail.com> writes:
    > Are you telling us that Ubuntu shipped the wrong header file?

    Hmm - at least I still don't know how to get the right definition
    of uc_mcontext (with eglibc-2.13 on Ubuntu 11.10) ...

    If I include both signal.h and asm-generic/ucontext.h, gcc reports
    this error:

    /usr/include/asm-generic/ucontext.h:4:8: error: redefinition of 'struct ucontext'
    /usr/include/i386-linux-gnu/sys/ucontext.h:119:16: error: previous definition of 'struct ucontext'

    Thus, signal.h obviously includes the wrong i386-linux-gnu/sys/ucontext.h
    defining uc_mcontext to be of type mcontext_t.

    So is it still me doing something wrong or or _did_ Ubuntu ship
    the wrong header files?

    \
     
     \ /
      Last update: 2013-05-02 11:21    [W:3.110 / U:3.224 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site