[JITLink][AArch32] Run all error unittests throug main entrypoints (#72091)
[llvm-project.git] / libc / spec / bsd_ext.td
blob3829e57e9765a9618ea470232524d96c9fc0b419
1 def BsdExtensions : StandardSpec<"BSDExtensions"> {
2   HeaderSpec String = HeaderSpec<
3       "string.h",
4       [], // Macros
5       [], // Types
6       [], // Enumerations
7       [ 
8         FunctionSpec<
9             "strlcat",
10             RetValSpec<SizeTType>,
11             [ArgSpec<CharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<SizeTType>]
12         >,
13         FunctionSpec<
14             "strlcpy",
15             RetValSpec<SizeTType>,
16             [ArgSpec<CharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<SizeTType>]
17         >,
18         FunctionSpec<
19             "strsep",
20             RetValSpec<CharPtr>,
21             [ArgSpec<CharRestrictedPtrPtr>, ArgSpec<ConstCharRestrictedPtr>]
22         >,
23       ]
24   >;
26   HeaderSpec Strings = HeaderSpec<
27       "strings.h",
28       [], // Macros
29       [], // Types
30       [], // Enumerations
31       [
32         FunctionSpec<
33             "strcasecmp",
34             RetValSpec<IntType>,
35             [ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>]
36         >,
37         FunctionSpec<
38             "strncasecmp",
39             RetValSpec<IntType>,
40             [ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<SizeTType>]
41         >,
42         FunctionSpec<
43             "index",
44             RetValSpec<CharPtr>,
45             [ArgSpec<ConstCharPtr>, ArgSpec<IntType>]
46         >,
47         FunctionSpec<
48             "rindex",
49             RetValSpec<CharPtr>,
50             [ArgSpec<ConstCharPtr>, ArgSpec<IntType>]
51         >,
52       ]
53   >;
55   HeaderSpec SysWait = HeaderSpec<
56       "sys/wait.h",
57       [], // Macros
58       [StructRUsage], // Types
59       [], // Enumerations
60       [
61         FunctionSpec<
62             "wait4",
63             RetValSpec<PidT>,
64             [ArgSpec<PidT>, ArgSpec<IntPtr>, ArgSpec<IntType>, ArgSpec<StructRUsagePtr>]
65         >
66       ]
67   >;
69   let Headers = [
70     String,
71     Strings,
72     SysWait,
73   ];