annotate gcc/ada/libgnarl/s-linux__sparc.ads @ 145:1830386684a0

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