File: sighndh.inc

package info (click to toggle)
fpc 3.0.0%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 273,372 kB
  • sloc: pascal: 2,840,574; xml: 152,225; ansic: 9,635; asm: 8,297; java: 5,346; sh: 3,991; yacc: 3,745; php: 3,281; makefile: 2,635; lex: 2,538; sql: 267; cpp: 145; perl: 134; sed: 132; csh: 34; tcl: 7
file content (78 lines) | stat: -rw-r--r-- 1,685 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
    This file is part of the Free Pascal run time library.
    Copyright (c) 1999-2000 by Jonas Maebe,
    member of the Free Pascal development team.

    TSigContext

    See the file COPYING.FPC, included in this distribution,
    for details about the copyright.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 **********************************************************************}

{$packrecords C}

const
  __SUNOS_MAXWIN = 31;
  SIG_G0 = 0;
  SIG_G1 = 1;
  SIG_G2 = 2;
  SIG_G3 = 3;
  SIG_G4 = 4;
  SIG_G5 = 5;
  SIG_G6 = 6;
  SIG_G7 = 7;
  SIG_O0 = 8;
  SIG_O1 = 9;
  SIG_O2 = 10;
  SIG_O3 = 11;
  SIG_O4 = 12;
  SIG_O5 = 13;
  SIG_O6 = 14;
  SIG_O7 = 15;
  { l and i registers do not seem to be 
    written in sigcontext struct 
  SIG_L0 = 16;
  SIG_L1 = 17;
  SIG_L2 = 18;
  SIG_L3 = 19;
  SIG_L4 = 20;
  SIG_L5 = 21;
  SIG_L6 = 22;
  SIG_L7 = 23;
  SIG_I0 = 24;
  SIG_I1 = 25;
  SIG_I2 = 26;
  SIG_I3 = 27;
  SIG_I4 = 28;
  SIG_I5 = 29;
  SIG_I6 = 30;
  SIG_I7 = 31; }

  SIG_SP = SIG_O6;
  { SIG_FP = SIG_I6; }


type
  twbuf = record
    locals : array[0..7] of longint;
    ins    : array[0..7] of longint;
  end;

  PSigContext = ^TSigContext;
  TSigContext = record
    // sigc_onstack,      { state to restore }
    // sigc_mask,         { sigmask to restore }
    // sigc_sp,           { stack pointer }
    sigc_psr,          { for condition codes etc }
    sigc_pc,           { program counter }
    sigc_npc,          { next program counter }
    sigc_y : clong;
    sigc_gregs : array [0..31] of clong;
  end;