Skip several gcc.dg/builtin-dynamic-object-size tests on hppa*-*-hpux*
[official-gcc.git] / gcc / ada / libgnarl / s-linux__x32.ads
blob8d32ad8458231a49207b504a6f4d08d2cd679f0a
1 ------------------------------------------------------------------------------
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) 2013-2023, Free Software Foundation, Inc. --
11 -- --
12 -- GNARL is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 3, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- --
19 -- As a special exception under Section 7 of GPL version 3, you are granted --
20 -- additional permissions described in the GCC Runtime Library Exception, --
21 -- version 3.1, as published by the Free Software Foundation. --
22 -- --
23 -- You should have received a copy of the GNU General Public License and --
24 -- a copy of the GCC Runtime Library Exception along with this program; --
25 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
26 -- <http://www.gnu.org/licenses/>. --
27 -- --
28 -- --
29 ------------------------------------------------------------------------------
31 -- This is the x32 version of this package
33 -- This package encapsulates cpu specific differences between implementations
34 -- of GNU/Linux, in order to share s-osinte-linux.ads.
36 -- PLEASE DO NOT add any with-clauses to this package or remove the pragma
37 -- Preelaborate. This package is designed to be a bottom-level (leaf) package
39 with Interfaces.C;
41 with System.Parameters;
43 package System.Linux is
44 pragma Preelaborate;
46 ----------
47 -- Time --
48 ----------
50 subtype suseconds_t is Long_Long_Integer;
51 -- Note that suseconds_t is 64 bits.
52 type time_t is range -2 ** (System.Parameters.time_t_bits - 1)
53 .. 2 ** (System.Parameters.time_t_bits - 1) - 1;
54 subtype clockid_t is Interfaces.C.int;
56 type timespec is record
57 tv_sec : time_t;
58 tv_nsec : Long_Long_Integer;
59 -- Note that tv_nsec is 64 bits.
60 end record;
61 pragma Convention (C, timespec);
63 type timeval is record
64 tv_sec : time_t;
65 tv_usec : suseconds_t;
66 end record;
67 pragma Convention (C, timeval);
69 -----------
70 -- Errno --
71 -----------
73 EAGAIN : constant := 11;
74 EINTR : constant := 4;
75 EINVAL : constant := 22;
76 ENOMEM : constant := 12;
77 EPERM : constant := 1;
78 ETIMEDOUT : constant := 110;
80 -------------
81 -- Signals --
82 -------------
84 SIGHUP : constant := 1; -- hangup
85 SIGINT : constant := 2; -- interrupt (rubout)
86 SIGQUIT : constant := 3; -- quit (ASCD FS)
87 SIGILL : constant := 4; -- illegal instruction (not reset)
88 SIGTRAP : constant := 5; -- trace trap (not reset)
89 SIGIOT : constant := 6; -- IOT instruction
90 SIGABRT : constant := 6; -- used by abort, replace SIGIOT in the future
91 SIGFPE : constant := 8; -- floating point exception
92 SIGKILL : constant := 9; -- kill (cannot be caught or ignored)
93 SIGBUS : constant := 7; -- bus error
94 SIGUSR1 : constant := 10; -- user defined signal 1
95 SIGSEGV : constant := 11; -- segmentation violation
96 SIGUSR2 : constant := 12; -- user defined signal 2
97 SIGPIPE : constant := 13; -- write on a pipe with no one to read it
98 SIGALRM : constant := 14; -- alarm clock
99 SIGTERM : constant := 15; -- software termination signal from kill
100 SIGSTKFLT : constant := 16; -- coprocessor stack fault (Linux)
101 SIGCLD : constant := 17; -- alias for SIGCHLD
102 SIGCHLD : constant := 17; -- child status change
103 SIGSTOP : constant := 19; -- stop (cannot be caught or ignored)
104 SIGTSTP : constant := 20; -- user stop requested from tty
105 SIGCONT : constant := 18; -- stopped process has been continued
106 SIGTTIN : constant := 21; -- background tty read attempted
107 SIGTTOU : constant := 22; -- background tty write attempted
108 SIGURG : constant := 23; -- urgent condition on IO channel
109 SIGXCPU : constant := 24; -- CPU time limit exceeded
110 SIGXFSZ : constant := 25; -- filesize limit exceeded
111 SIGVTALRM : constant := 26; -- virtual timer expired
112 SIGPROF : constant := 27; -- profiling timer expired
113 SIGWINCH : constant := 28; -- window size change
114 SIGPOLL : constant := 29; -- pollable event occurred
115 SIGIO : constant := 29; -- I/O now possible (4.2 BSD)
116 SIGLOST : constant := 29; -- File lock lost
117 SIGPWR : constant := 30; -- power-fail restart
118 SIGSYS : constant := 31; -- bad system call
119 SIGUNUSED : constant := 31; -- unused signal (mapped to SIGSYS)
120 SIG32 : constant := 32; -- glibc internal signal
121 SIG33 : constant := 33; -- glibc internal signal
122 SIG34 : constant := 34; -- glibc internal signal
124 -- struct_sigaction offsets
126 sa_handler_pos : constant := 0;
127 sa_mask_pos : constant := Standard'Address_Size / 8;
128 sa_flags_pos : constant := 128 + sa_mask_pos;
130 SA_SIGINFO : constant := 16#04#;
131 SA_ONSTACK : constant := 16#08000000#;
133 end System.Linux;