Back to index

glibc  2.9
user.h
Go to the documentation of this file.
00001 /* Copyright (C) 2008 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 /* The whole purpose of this file is for GDB and GDB only.  Don't read
00023    too much into it.  Don't use it for anything other than GDB unless
00024    you know what you are doing.  */
00025 
00026 struct user_m68kfp_struct {
00027        unsigned long fpregs[8*3];
00028        unsigned long fpcntl[3];
00029 };
00030 
00031 struct user_regs_struct {
00032        long d1, d2, d3, d4, d5, d6, d7;
00033        long a0, a1, a2, a3, a4, a5, a6;
00034        long d0;
00035        long usp;
00036        long orig_d0;
00037        short stkadj;
00038        short sr;
00039        long pc;
00040        short fmtvec;
00041        short __fill;
00042 };
00043 
00044 struct user {
00045        struct user_regs_struct regs;
00046        int u_fpvalid;
00047        struct user_m68kfp_struct m68kfp;
00048        unsigned long int u_tsize;
00049        unsigned long int u_dsize;
00050        unsigned long int u_ssize;
00051        unsigned long start_code;
00052        unsigned long start_stack;
00053        long int signal;
00054        int reserved;
00055        unsigned long u_ar0;
00056        struct user_m68kfp_struct *u_fpstate;
00057        unsigned long magic;
00058        char u_comm[32];
00059 };
00060 
00061 #endif