annotate gcc/ada/libgnarl/s-linux__mips.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 -- This is the MIPS version of this package
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 -- This package encapsulates cpu specific differences between implementations
kono
parents:
diff changeset
32 -- of GNU/Linux, in order to share s-osinte-linux.ads.
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 -- PLEASE DO NOT add any with-clauses to this package or remove the pragma
kono
parents:
diff changeset
35 -- Preelaborate. This package is designed to be a bottom-level (leaf) package
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 with Interfaces.C;
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 package System.Linux is
kono
parents:
diff changeset
40 pragma Preelaborate;
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 ----------
kono
parents:
diff changeset
43 -- Time --
kono
parents:
diff changeset
44 ----------
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 subtype int is Interfaces.C.int;
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;
kono
parents:
diff changeset
73 ETIMEDOUT : constant := 145;
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)
kono
parents:
diff changeset
84 SIGIOT : constant := 6; -- IOT instruction
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
85 SIGABRT : constant := 6; -- used by abort, replace SIGIOT in the future
111
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 SIGUSR1 : constant := 16; -- user defined signal 1
kono
parents:
diff changeset
96 SIGUSR2 : constant := 17; -- user defined signal 2
kono
parents:
diff changeset
97 SIGCLD : constant := 18; -- alias for SIGCHLD
kono
parents:
diff changeset
98 SIGCHLD : constant := 18; -- child status change
kono
parents:
diff changeset
99 SIGPWR : constant := 19; -- power-fail restart
kono
parents:
diff changeset
100 SIGWINCH : constant := 20; -- window size change
kono
parents:
diff changeset
101 SIGURG : constant := 21; -- urgent condition on IO channel
kono
parents:
diff changeset
102 SIGPOLL : constant := 22; -- pollable event occurred
kono
parents:
diff changeset
103 SIGIO : constant := 22; -- I/O now possible (4.2 BSD)
kono
parents:
diff changeset
104 SIGSTOP : constant := 23; -- stop (cannot be caught or ignored)
kono
parents:
diff changeset
105 SIGTSTP : constant := 24; -- user stop requested from tty
kono
parents:
diff changeset
106 SIGCONT : constant := 25; -- stopped process has been continued
kono
parents:
diff changeset
107 SIGTTIN : constant := 26; -- background tty read attempted
kono
parents:
diff changeset
108 SIGTTOU : constant := 27; -- background tty write attempted
kono
parents:
diff changeset
109 SIGVTALRM : constant := 28; -- virtual timer expired
kono
parents:
diff changeset
110 SIGPROF : constant := 29; -- profiling timer expired
kono
parents:
diff changeset
111 SIGXCPU : constant := 30; -- CPU time limit exceeded
kono
parents:
diff changeset
112 SIGXFSZ : constant := 31; -- filesize limit exceeded
kono
parents:
diff changeset
113
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
114 SIG32 : constant := 32; -- glibc internal signal
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
115 SIG33 : constant := 33; -- glibc internal signal
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
116 SIG34 : constant := 34; -- glibc internal signal
111
kono
parents:
diff changeset
117
kono
parents:
diff changeset
118 -- These don't exist for Linux/MIPS. The constants are present
kono
parents:
diff changeset
119 -- so that we can continue to use a-intnam-linux.ads.
kono
parents:
diff changeset
120 SIGLOST : constant := 0; -- File lock lost
kono
parents:
diff changeset
121 SIGSTKFLT : constant := 0; -- coprocessor stack fault (Linux)
kono
parents:
diff changeset
122 SIGUNUSED : constant := 0; -- unused signal (GNU/Linux)
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 := int'Size / 8;
kono
parents:
diff changeset
127 sa_mask_pos : constant := int'Size / 8 +
kono
parents:
diff changeset
128 Standard'Address_Size / 8;
kono
parents:
diff changeset
129 sa_flags_pos : constant := 0;
kono
parents:
diff changeset
130
kono
parents:
diff changeset
131 SA_SIGINFO : constant := 16#08#;
kono
parents:
diff changeset
132 SA_ONSTACK : constant := 16#08000000#;
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 end System.Linux;