1 ------------------------------------------------------------------------------
3 -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
5 -- S Y S T E M . Q N X --
9 -- Copyright (C) 2017-2023, Free Software Foundation, Inc. --
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. --
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. --
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/>. --
28 ------------------------------------------------------------------------------
30 -- This is the default version of this package
32 -- This package encapsulates cpu specific differences between implementations
33 -- of QNX, in order to share s-osinte-linux.ads.
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
40 with System
.Parameters
;
49 subtype long
is Interfaces
.C
.long
;
50 subtype suseconds_t
is Interfaces
.C
.long
;
51 type time_t
is range -2 ** (System
.Parameters
.time_t_bits
- 1)
52 .. 2 ** (System
.Parameters
.time_t_bits
- 1) - 1;
53 subtype clockid_t
is Interfaces
.C
.int
;
55 type timespec
is record
59 pragma Convention
(C
, timespec
);
61 type timeval
is record
63 tv_usec
: suseconds_t
;
65 pragma Convention
(C
, timeval
);
71 EAGAIN
: constant := 11;
72 EINTR
: constant := 4;
73 EINVAL
: constant := 22;
74 ENOMEM
: constant := 12;
75 EPERM
: constant := 1;
76 ETIMEDOUT
: constant := 110;
82 SIGHUP
: constant := 1; -- hangup
83 SIGINT
: constant := 2; -- interrupt (rubout)
84 SIGQUIT
: constant := 3; -- quit (ASCD FS)
85 SIGILL
: constant := 4; -- illegal instruction (not reset)
86 SIGTRAP
: constant := 5; -- trace trap (not reset)
87 SIGIOT
: constant := 6; -- IOT instruction
88 SIGABRT
: constant := 6; -- used by abort, replace SIGIOT in the future
89 SIGEMT
: constant := 7; -- EMT instruction
90 SIGDEADLK
: constant := 7; -- Mutex deadlock
91 SIGFPE
: constant := 8; -- floating point exception
92 SIGKILL
: constant := 9; -- kill (cannot be caught or ignored)
93 SIGSEGV
: constant := 11; -- segmentation violation
94 SIGPIPE
: constant := 13; -- write on a pipe with no one to read it
95 SIGALRM
: constant := 14; -- alarm clock
96 SIGTERM
: constant := 15; -- software termination signal from kill
97 SIGUSR1
: constant := 16; -- user defined signal 1
98 SIGUSR2
: constant := 17; -- user defined signal 2
99 SIGCHLD
: constant := 18; -- child status change
100 SIGCLD
: constant := 18; -- alias for SIGCHLD
101 SIGPWR
: constant := 19; -- power-fail restart
102 SIGWINCH
: constant := 20; -- window size change
103 SIGURG
: constant := 21; -- urgent condition on IO channel
104 SIGPOLL
: constant := 22; -- pollable event occurred
105 SIGIO
: constant := 22; -- I/O now possible (4.2 BSD)
106 SIGSTOP
: constant := 23; -- stop (cannot be caught or ignored)
107 SIGTSTP
: constant := 24; -- user stop requested from tty
108 SIGCONT
: constant := 25; -- stopped process has been continued
109 SIGTTIN
: constant := 26; -- background tty read attempted
110 SIGTTOU
: constant := 27; -- background tty write attempted
111 SIGVTALRM
: constant := 28; -- virtual timer expired
112 SIGPROF
: constant := 29; -- profiling timer expired
113 SIGXCPU
: constant := 30; -- CPU time limit exceeded
114 SIGXFSZ
: constant := 31; -- filesize limit exceeded
116 -- struct_sigaction offsets
118 sa_handler_pos
: constant := 0;
119 sa_mask_pos
: constant := Standard
'Address_Size / 8;
120 sa_flags_pos
: constant := 128 + sa_mask_pos
;
122 SA_SIGINFO
: constant := 16#
04#
;
123 SA_ONSTACK
: constant := 16#
08000000#
;