]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/sh/sys/user.h
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / sh / sys / user.h
CommitLineData
04277e02 1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
3846ef75
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
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.
3846ef75
UD
8
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
41bdb6e2 12 Lesser General Public License for more details.
3846ef75 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6 15 License along with the GNU C Library; if not, see
5a82c748 16 <https://www.gnu.org/licenses/>. */
3846ef75
UD
17
18#ifndef _SYS_USER_H
19#define _SYS_USER_H 1
20
a3c37506 21#include <asm/ptrace.h>
8129bf77 22#include <stddef.h>
3846ef75 23
a3c37506
UD
24/* asm/ptrace.h polutes the namespace. */
25#undef PTRACE_GETREGS
26#undef PTRACE_SETREGS
27#undef PTRACE_GETFPREGS
28#undef PTRACE_SETFPREGS
29#undef PTRACE_GETFDPIC
30#undef PTRACE_GETFDPIC_EXEC
31#undef PTRACE_GETFDPIC_INTERP
32#undef PTRACE_GETDSPREGS
33#undef PTRACE_SETDSPREGS
3846ef75 34
a3c37506
UD
35typedef unsigned long elf_greg_t;
36
37#define ELF_NGREG (sizeof (struct pt_regs) / sizeof (elf_greg_t))
38typedef elf_greg_t elf_gregset_t[ELF_NGREG];
39
40struct user_fpu_struct
41 {
42 unsigned long fp_regs[16];
43 unsigned long xfp_regs[16];
44 unsigned long fpscr;
45 unsigned long fpul;
46 };
47typedef struct user_fpu_struct elf_fpregset_t;
48
49struct user
50 {
51 struct pt_regs regs;
52 struct user_fpu_struct fpu;
53 int u_fpvalid;
54 size_t u_tsize;
55 size_t u_dsize;
56 size_t u_ssize;
57 unsigned long start_code;
58 unsigned long start_data;
59 unsigned long start_stack;
60 long int signal;
61 unsigned long u_ar0;
62 struct user_fpu_struct *u_fpstate;
63 unsigned long magic;
64 char u_comm[32];
65 };
2a051a7d 66
3846ef75 67#endif /* sys/user.h */