~ubuntu-branches/ubuntu/natty/eglibc/natty-security

« back to all changes in this revision

Viewing changes to sysdeps/unix/sysv/linux/sh/sys/user.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-08-03 10:17:12 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20090803101712-n74r7xge7cwubmka
Tags: upstream-2.10.1
ImportĀ upstreamĀ versionĀ 2.10.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1998, 1999, 2000, 2003 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1998, 1999, 2000, 2003, 2009
 
2
   Free Software Foundation, Inc.
2
3
   This file is part of the GNU C Library.
3
4
 
4
5
   The GNU C Library is free software; you can redistribute it and/or
19
20
#ifndef _SYS_USER_H
20
21
#define _SYS_USER_H     1
21
22
 
22
 
#include <features.h>
23
 
 
24
 
#include <asm/user.h>
25
 
 
26
 
#undef start_thread
 
23
#include <asm/ptrace.h>
 
24
 
 
25
/* asm/ptrace.h polutes the namespace.  */
 
26
#undef PTRACE_GETREGS
 
27
#undef PTRACE_SETREGS
 
28
#undef PTRACE_GETFPREGS
 
29
#undef PTRACE_SETFPREGS
 
30
#undef PTRACE_GETFDPIC
 
31
#undef PTRACE_GETFDPIC_EXEC
 
32
#undef PTRACE_GETFDPIC_INTERP
 
33
#undef  PTRACE_GETDSPREGS
 
34
#undef  PTRACE_SETDSPREGS
 
35
 
 
36
typedef unsigned long elf_greg_t;
 
37
 
 
38
#define ELF_NGREG (sizeof (struct pt_regs) / sizeof (elf_greg_t))
 
39
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
40
 
 
41
struct user_fpu_struct
 
42
  {
 
43
    unsigned long fp_regs[16];
 
44
    unsigned long xfp_regs[16];
 
45
    unsigned long fpscr;
 
46
    unsigned long fpul;
 
47
  };
 
48
typedef struct user_fpu_struct elf_fpregset_t;
 
49
 
 
50
struct user
 
51
  {
 
52
    struct pt_regs regs;
 
53
    struct user_fpu_struct fpu;
 
54
    int u_fpvalid;
 
55
    size_t u_tsize;
 
56
    size_t u_dsize;
 
57
    size_t u_ssize;
 
58
    unsigned long start_code;
 
59
    unsigned long start_data;
 
60
    unsigned long start_stack;
 
61
    long int signal;
 
62
    unsigned long u_ar0;
 
63
    struct user_fpu_struct *u_fpstate;
 
64
    unsigned long magic;
 
65
    char u_comm[32];
 
66
  };
27
67
 
28
68
#endif  /* sys/user.h */