Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / unix / sysv / linux / sh / sys / user.h
blob893879646859d7542d462e32739feaf0810e9af2
1 /* Copyright (C) 1998-2014 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
18 #ifndef _SYS_USER_H
19 #define _SYS_USER_H 1
21 #include <asm/ptrace.h>
23 /* asm/ptrace.h polutes the namespace. */
24 #undef PTRACE_GETREGS
25 #undef PTRACE_SETREGS
26 #undef PTRACE_GETFPREGS
27 #undef PTRACE_SETFPREGS
28 #undef PTRACE_GETFDPIC
29 #undef PTRACE_GETFDPIC_EXEC
30 #undef PTRACE_GETFDPIC_INTERP
31 #undef PTRACE_GETDSPREGS
32 #undef PTRACE_SETDSPREGS
34 typedef unsigned long elf_greg_t;
36 #define ELF_NGREG (sizeof (struct pt_regs) / sizeof (elf_greg_t))
37 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
39 struct user_fpu_struct
41 unsigned long fp_regs[16];
42 unsigned long xfp_regs[16];
43 unsigned long fpscr;
44 unsigned long fpul;
46 typedef struct user_fpu_struct elf_fpregset_t;
48 struct user
50 struct pt_regs regs;
51 struct user_fpu_struct fpu;
52 int u_fpvalid;
53 size_t u_tsize;
54 size_t u_dsize;
55 size_t u_ssize;
56 unsigned long start_code;
57 unsigned long start_data;
58 unsigned long start_stack;
59 long int signal;
60 unsigned long u_ar0;
61 struct user_fpu_struct *u_fpstate;
62 unsigned long magic;
63 char u_comm[32];
66 #endif /* sys/user.h */