mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 23:00:22 +00:00
Include <sys/user.h>.
Make fpregset_t definition compatible with definition in 2.1.2 and before. (struct ucontext): Use fpregset_t.
This commit is contained in:
parent
53ab923fdc
commit
da3829e1fe
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -26,6 +26,10 @@
|
|||||||
included in <signal.h>. */
|
included in <signal.h>. */
|
||||||
#include <bits/sigcontext.h>
|
#include <bits/sigcontext.h>
|
||||||
|
|
||||||
|
/* We also need the definition of the userlevel data representation
|
||||||
|
for the register contexts. */
|
||||||
|
#include <sys/user.h>
|
||||||
|
|
||||||
|
|
||||||
/* Type for general register. */
|
/* Type for general register. */
|
||||||
typedef int greg_t;
|
typedef int greg_t;
|
||||||
@ -82,7 +86,7 @@ enum
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Structure to describe FPU registers. */
|
/* Structure to describe FPU registers. */
|
||||||
typedef struct _fpstate *fpregset_t;
|
typedef struct user_fpregs_struct fpregset_t;
|
||||||
|
|
||||||
/* Context to describe whole processor state. */
|
/* Context to describe whole processor state. */
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -103,7 +107,7 @@ typedef struct ucontext
|
|||||||
stack_t uc_stack;
|
stack_t uc_stack;
|
||||||
mcontext_t uc_mcontext;
|
mcontext_t uc_mcontext;
|
||||||
__sigset_t uc_sigmask;
|
__sigset_t uc_sigmask;
|
||||||
struct _fpstate __fpregs_mem;
|
fpregset_t __fpregs_mem;
|
||||||
} ucontext_t;
|
} ucontext_t;
|
||||||
|
|
||||||
#endif /* sys/ucontext.h */
|
#endif /* sys/ucontext.h */
|
||||||
|
Loading…
Reference in New Issue
Block a user