[JITLink][AArch32] Run all error unittests throug main entrypoints (#72091)
[llvm-project.git] / libc / spec / linux.td
blobba5f99c12ecd116cc8190b8654adbd0ff8db48ec
1 def Linux : StandardSpec<"Linux"> {
2   HeaderSpec Errno = HeaderSpec<
3       "errno.h",
4       [
5         Macro<"ENOMEDIUM">,
6         Macro<"ENOTBLK">,
7         Macro<"EMEDIUMTYPE">,
8         Macro<"EBADSLT">,
9         Macro<"ECHRNG">,
10         Macro<"ERFKILL">,
11         Macro<"EUSERS">,
12         Macro<"EBADR">,
13         Macro<"EL3HLT">,
14         Macro<"ENOTUNIQ">,
15         Macro<"EXFULL">,
16         Macro<"EHOSTDOWN">,
17         Macro<"EL3RST">,
18         Macro<"ENOPKG">,
19         Macro<"ENOCSI">,
20         Macro<"EUNATCH">,
21         Macro<"EREMCHG">,
22         Macro<"ETOOMANYREFS">,
23         Macro<"EL2HLT">,
24         Macro<"EBADFD">,
25         Macro<"EREMOTEIO">,
26         Macro<"ENAVAIL">,
27         Macro<"ELIBEXEC">,
28         Macro<"ESHUTDOWN">,
29         Macro<"ENOKEY">,
30         Macro<"ESTRPIPE">,
31         Macro<"EKEYREJECTED">,
32         Macro<"ESRMNT">,
33         Macro<"EKEYREVOKED">,
34         Macro<"EBADE">,
35         Macro<"ELIBBAD">,
36         Macro<"EISNAM">,
37         Macro<"EBFONT">,
38         Macro<"EPFNOSUPPORT">,
39         Macro<"EREMOTE">,
40         Macro<"EDEADLOCK">,
41         Macro<"ENONET">,
42         Macro<"EDOTDOT">,
43         Macro<"EKEYEXPIRED">,
44         Macro<"ELIBSCN">,
45         Macro<"ERESTART">,
46         Macro<"EBADRQC">,
47         Macro<"EUCLEAN">,
48         Macro<"ENOANO">,
49         Macro<"ELIBACC">,
50         Macro<"EHWPOISON">,
51         Macro<"ELIBMAX">,
52         Macro<"ESOCKTNOSUPPORT">,
53         Macro<"ENOTNAM">,
54         Macro<"ELNRNG">,
55         Macro<"EL2NSYNC">,
56         Macro<"EADV">,
57         Macro<"ECOMM">,
58       ]
59   >;
61   HeaderSpec Sched = HeaderSpec<
62       "sched.h",
63       [
64         Macro<"SCHED_OTHER">,
65         Macro<"SCHED_FIFO">,
66         Macro<"SCHED_RR">,
67         Macro<"SCHED_BATCH">,
68         Macro<"SCHED_ISO">,
69         Macro<"SCHED_IDLE">,
70         Macro<"SCHED_DEADLINE">,
71       ],
72       [], // Types
73       [], // Enumerations
74       []  // Functions
75   >;
77   HeaderSpec SysMMan = HeaderSpec<
78       "sys/mman.h",
79       [Macro<"MAP_ANONYMOUS">]
80   >;
83   HeaderSpec SysPrctl = HeaderSpec<
84       "sys/prctl.h",
85       [], // Macros
86       [], // Types
87       [], // Enumerations
88       []  // Functions
89   >;
91   HeaderSpec SysRandom = HeaderSpec<
92       "sys/random.h",
93       [
94         Macro<"GRND_RANDOM">,
95         Macro<"GRND_NONBLOCK">,
96         Macro<"GRND_INSECURE">,
97       ],
98       [SizeTType, SSizeTType], // Types
99       [], // Enumerations
100       [
101         FunctionSpec<
102           "getrandom",
103           RetValSpec<SSizeTType>,
104           [
105             ArgSpec<VoidPtr>,
106             ArgSpec<SizeTType>,
107             ArgSpec<UnsignedIntType>
108           ]
109         >,
110       ]
111   >;
113   HeaderSpec SysTime = HeaderSpec<
114       "sys/time.h",
115       [
116         Macro<"timeradd">,
117         Macro<"timersub">,
118         Macro<"timerclear">,
119         Macro<"timerisset">,
120         Macro<"timercmp">,
121       ],
122       [StructTimevalType], // Types
123       [], // Enumerations
124       []  // Functions
125   >;
127   HeaderSpec Signal = HeaderSpec<
128       "signal.h",
129       [
130         Macro<"NSIG">,
132         Macro<"SIGHUP">,
133         Macro<"SIGINT">,
134         Macro<"SIGQUIT">,
135         Macro<"SIGILL">,
136         Macro<"SIGTRAP">,
137         Macro<"SIGABRT">,
138         Macro<"SIGIOT">,
139         Macro<"SIGBUS">,
140         Macro<"SIGFPE">,
141         Macro<"SIGKILL">,
142         Macro<"SIGUSR1">,
143         Macro<"SIGSEGV">,
144         Macro<"SIGUSR2">,
145         Macro<"SIGPIPE">,
146         Macro<"SIGALRM">,
147         Macro<"SIGTERM">,
148         Macro<"SIGSTKFLT">,
149         Macro<"SIGCHLD">,
150         Macro<"SIGCONT">,
151         Macro<"SIGSTOP">,
152         Macro<"SIGTSTP">,
153         Macro<"SIGTTIN">,
154         Macro<"SIGTTOU">,
155         Macro<"SIGURG">,
156         Macro<"SIGXCPU">,
157         Macro<"SIGXFSZ">,
158         Macro<"SIGVTALRM">,
159         Macro<"SIGPROF">,
160         Macro<"SIGWINCH">,
161         Macro<"SIGIO">,
162         Macro<"SIGPOLL">,
163         Macro<"SIGPWR">,
164         Macro<"SIGSYS">,
165         Macro<"SIGUNUSED">,
166       ]
167   >;
169   let Headers = [
170     Errno,
171     SysMMan,
172     SysPrctl,
173     SysRandom,
174     SysTime,
175     Signal,
176   ];