OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [ada/] [s-linux-sparc.ads] - Blame information for rev 281

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 281 jeremybenn
------------------------------------------------------------------------------
2
--                                                                          --
3
--                GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS               --
4
--                                                                          --
5
--                          S Y S T E M .  L I N U X                        --
6
--                                                                          --
7
--                                  S p e c                                 --
8
--                                                                          --
9
--             Copyright (C) 2009, Free Software Foundation, Inc.           --
10
--                                                                          --
11
-- GNARL is free software; you can  redistribute it  and/or modify it under --
12
-- terms of the  GNU General Public License as published  by the Free Soft- --
13
-- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14
-- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15
-- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16
-- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
17
--                                                                          --
18
-- As a special exception under Section 7 of GPL version 3, you are granted --
19
-- additional permissions described in the GCC Runtime Library Exception,   --
20
-- version 3.1, as published by the Free Software Foundation.               --
21
--                                                                          --
22
-- You should have received a copy of the GNU General Public License and    --
23
-- a copy of the GCC Runtime Library Exception along with this program;     --
24
-- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
25
-- <http://www.gnu.org/licenses/>.                                          --
26
--                                                                          --
27
--                                                                          --
28
------------------------------------------------------------------------------
29
 
30
--  This is the SPARC version of this package
31
 
32
--  This package encapsulates cpu specific differences between implementations
33
--  of GNU/Linux, in order to share s-osinte-linux.ads.
34
 
35
--  PLEASE DO NOT add any with-clauses to this package or remove the pragma
36
--  Preelaborate. This package is designed to be a bottom-level (leaf) package
37
 
38
with Interfaces.C;
39
 
40
package System.Linux is
41
   pragma Preelaborate;
42
 
43
   -----------
44
   -- Errno --
45
   -----------
46
 
47
   EAGAIN    : constant := 11;
48
   EINTR     : constant := 4;
49
   EINVAL    : constant := 22;
50
   ENOMEM    : constant := 12;
51
   EPERM     : constant := 1;
52
   ETIMEDOUT : constant := 110;
53
 
54
   -------------
55
   -- Signals --
56
   -------------
57
 
58
   SIGHUP     : constant := 1; --  hangup
59
   SIGINT     : constant := 2; --  interrupt (rubout)
60
   SIGQUIT    : constant := 3; --  quit (ASCD FS)
61
   SIGILL     : constant := 4; --  illegal instruction (not reset)
62
   SIGTRAP    : constant := 5; --  trace trap (not reset)
63
   SIGABRT    : constant := 6; --  used by abort, replace SIGIOT in the  future
64
   SIGIOT     : constant := 6; --  IOT instruction
65
   SIGEMT     : constant := 7; --  EMT
66
   SIGFPE     : constant := 8; --  floating point exception
67
   SIGKILL    : constant := 9; --  kill (cannot be caught or ignored)
68
   SIGBUS     : constant := 10; --  bus error
69
   SIGSEGV    : constant := 11; --  segmentation violation
70
   SIGSYS     : constant := 12; --  bad system call
71
   SIGPIPE    : constant := 13; --  write on a pipe with no one to read it
72
   SIGALRM    : constant := 14; --  alarm clock
73
   SIGTERM    : constant := 15; --  software termination signal from kill
74
   SIGURG     : constant := 16; --  urgent condition on IO channel
75
   SIGSTOP    : constant := 17; --  stop (cannot be caught or ignored)
76
   SIGTSTP    : constant := 18; --  user stop requested from tty
77
   SIGCONT    : constant := 19; --  stopped process has been continued
78
   SIGCHLD    : constant := 20; --  child status change
79
   SIGCLD     : constant := 20; --  alias for SIGCHLD
80
   SIGTTIN    : constant := 21; --  background tty read attempted
81
   SIGTTOU    : constant := 22; --  background tty write attempted
82
   SIGIO      : constant := 23; --  I/O now possible (4.2 BSD)
83
   SIGPOLL    : constant := 23; --  pollable event occurred
84
   SIGXCPU    : constant := 24; --  CPU time limit exceeded
85
   SIGXFSZ    : constant := 25; --  filesize limit exceeded
86
   SIGVTALRM  : constant := 26; --  virtual timer expired
87
   SIGPROF    : constant := 27; --  profiling timer expired
88
   SIGWINCH   : constant := 28; --  window size change
89
   SIGLOST    : constant := 29; --  File lock lost
90
   SIGPWR     : constant := 29; --  power-fail restart
91
   SIGUSR1    : constant := 30; --  user defined signal 1
92
   SIGUSR2    : constant := 31; --  user defined signal 2
93
 
94
   SIGLTHRRES : constant := 32; --  GNU/LinuxThreads restart signal
95
   SIGLTHRCAN : constant := 33; --  GNU/LinuxThreads cancel signal
96
   SIGLTHRDBG : constant := 34; --  GNU/LinuxThreads debugger signal
97
 
98
   SIGUNUSED  : constant := 0;
99
   SIGSTKFLT  : constant := 0;
100
   --  These don't exist for Linux/SPARC.  The constants are present
101
   --  so that we can continue to use a-intnam-linux.ads.
102
 
103
   --  struct_sigaction offsets
104
 
105
   sa_handler_pos : constant := 0;
106
   sa_mask_pos    : constant := Standard'Address_Size / 8;
107
   sa_flags_pos   : constant := 128 + sa_mask_pos;
108
 
109
   SA_SIGINFO  : constant := 16#200#;
110
   SA_ONSTACK  : constant := 16#001#;
111
 
112
   type pthread_mutex_t is record
113
      L1, L2, L3, L4 : Interfaces.C.long;
114
      I1, I2 : Interfaces.C.int;
115
   end record;
116
   pragma Convention (C, pthread_mutex_t);
117
   --  24 bytes for 32-bit and 40 bytes for 64-bit, aligned like 'long'
118
 
119
end System.Linux;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.