hjl / source-git / glibc

Forked from source-git/glibc 3 years ago
Clone

Blame sysdeps/unix/sysv/linux/sparc/sys/user.h

Packit 6c4009
/* Copyright (C) 2003-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#ifndef _SYS_USER_H
Packit 6c4009
#define _SYS_USER_H	1
Packit 6c4009
Packit 6c4009
#include <stddef.h>
Packit 6c4009
Packit 6c4009
struct sunos_regs
Packit 6c4009
{
Packit 6c4009
  unsigned int psr, pc, npc, y;
Packit 6c4009
  unsigned int regs[15];
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
struct sunos_fpqueue
Packit 6c4009
{
Packit 6c4009
  unsigned int *addr;
Packit 6c4009
  unsigned int inst;
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
struct sunos_fp
Packit 6c4009
{
Packit 6c4009
  union
Packit 6c4009
    {
Packit 6c4009
      unsigned int regs[32];
Packit 6c4009
      double reg_dbls[16];
Packit 6c4009
    } fregs;
Packit 6c4009
  unsigned int fsr;
Packit 6c4009
  unsigned int flags;
Packit 6c4009
  unsigned int extra;
Packit 6c4009
  unsigned int fpq_count;
Packit 6c4009
  struct sunos_fpqueue fpq[16];
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
struct sunos_fpu
Packit 6c4009
{
Packit 6c4009
  struct sunos_fp fpstatus;
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
/* The SunOS core file header layout. */
Packit 6c4009
struct user {
Packit 6c4009
  unsigned int magic;
Packit 6c4009
  unsigned int len;
Packit 6c4009
  struct sunos_regs regs;
Packit 6c4009
  struct
Packit 6c4009
    {
Packit 6c4009
      unsigned char a_dynamic :1;
Packit 6c4009
      unsigned char a_toolversion :7;
Packit 6c4009
      unsigned char a_machtype;
Packit 6c4009
      unsigned short a_info;
Packit 6c4009
      unsigned int a_text;
Packit 6c4009
      unsigned int a_data;
Packit 6c4009
      unsigned int a_bss;
Packit 6c4009
      unsigned int a_syms;
Packit 6c4009
      unsigned int a_entry;
Packit 6c4009
      unsigned int a_trsize;
Packit 6c4009
      unsigned int a_drsize;
Packit 6c4009
    } uexec;
Packit 6c4009
  int           signal;
Packit 6c4009
  size_t        u_tsize;
Packit 6c4009
  size_t        u_dsize;
Packit 6c4009
  size_t        u_ssize;
Packit 6c4009
  char          u_comm[17];
Packit 6c4009
  struct sunos_fpu fpu;
Packit 6c4009
  unsigned int  sigcode;
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
#define NBPG			0x2000
Packit 6c4009
#define UPAGES			1
Packit 6c4009
#define SUNOS_CORE_MAGIC	0x080456
Packit 6c4009
Packit 6c4009
#endif