Back to index

glibc  2.9
user.h
Go to the documentation of this file.
00001 /* Copyright (C) 2003 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #ifndef _SYS_USER_H
00020 #define _SYS_USER_H  1
00021 
00022 struct sunos_regs
00023 {
00024   unsigned int psr, pc, npc, y;
00025   unsigned int regs[15];
00026 };
00027 
00028 struct sunos_fpqueue
00029 {
00030   unsigned int *addr;
00031   unsigned int inst;
00032 };
00033 
00034 struct sunos_fp
00035 {
00036   union
00037     {
00038       unsigned int regs[32];
00039       double reg_dbls[16];
00040     } fregs;
00041   unsigned int fsr;
00042   unsigned int flags;
00043   unsigned int extra;
00044   unsigned int fpq_count;
00045   struct sunos_fpqueue fpq[16];
00046 };
00047 
00048 struct sunos_fpu
00049 {
00050   struct sunos_fp fpstatus;
00051 };
00052 
00053 /* The SunOS core file header layout. */
00054 struct user {
00055   unsigned int magic;
00056   unsigned int len;
00057   struct sunos_regs regs;
00058   struct
00059     {
00060       unsigned char a_dynamic :1;
00061       unsigned char a_toolversion :7;
00062       unsigned char a_machtype;
00063       unsigned short a_info;
00064       unsigned int a_text;
00065       unsigned int a_data;
00066       unsigned int a_bss;
00067       unsigned int a_syms;
00068       unsigned int a_entry;
00069       unsigned int a_trsize;
00070       unsigned int a_drsize;
00071     } uexec;
00072   int           signal;
00073   size_t        u_tsize;
00074   size_t        u_dsize;
00075   size_t        u_ssize;
00076   char          u_comm[17];
00077   struct sunos_fpu fpu;
00078   unsigned int  sigcode;
00079 };
00080 
00081 #define NBPG                0x2000
00082 #define UPAGES                     1
00083 #define SUNOS_CORE_MAGIC    0x080456
00084 
00085 #endif