2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / linux / sparc / sys / user.h
blob2aad01b0ff86361d97fca6bde3ea863242179614
1 /* Copyright (C) 2003 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, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #ifndef _SYS_USER_H
20 #define _SYS_USER_H 1
22 struct sunos_regs
24 unsigned int psr, pc, npc, y;
25 unsigned int regs[15];
28 struct sunos_fpqueue
30 unsigned int *addr;
31 unsigned int inst;
34 struct sunos_fp
36 union
38 unsigned int regs[32];
39 double reg_dbls[16];
40 } fregs;
41 unsigned int fsr;
42 unsigned int flags;
43 unsigned int extra;
44 unsigned int fpq_count;
45 struct sunos_fpqueue fpq[16];
48 struct sunos_fpu
50 struct sunos_fp fpstatus;
53 /* The SunOS core file header layout. */
54 struct user {
55 unsigned int magic;
56 unsigned int len;
57 struct sunos_regs regs;
58 struct
60 unsigned char a_dynamic :1;
61 unsigned char a_toolversion :7;
62 unsigned char a_machtype;
63 unsigned short a_info;
64 unsigned int a_text;
65 unsigned int a_data;
66 unsigned int a_bss;
67 unsigned int a_syms;
68 unsigned int a_entry;
69 unsigned int a_trsize;
70 unsigned int a_drsize;
71 } uexec;
72 int signal;
73 size_t u_tsize;
74 size_t u_dsize;
75 size_t u_ssize;
76 char u_comm[17];
77 struct sunos_fpu fpu;
78 unsigned int sigcode;
81 #define NBPG 0x2000
82 #define UPAGES 1
83 #define SUNOS_CORE_MAGIC 0x080456
85 #endif