annotate libc/spec/bsd_ext.td @ 240:ca573705d418

merge
author matac
date Fri, 28 Jul 2023 20:50:09 +0900
parents c4bab56944e8
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
1 def BsdExtensions : StandardSpec<"BSDExtensions"> {
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2 HeaderSpec String = HeaderSpec<
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3 "string.h",
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4 [], // Macros
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5 [], // Types
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6 [], // Enumerations
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7 [
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 FunctionSpec<
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 "strlcat",
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10 RetValSpec<SizeTType>,
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11 [ArgSpec<CharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<SizeTType>]
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 >,
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13 FunctionSpec<
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14 "strlcpy",
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
15 RetValSpec<SizeTType>,
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
16 [ArgSpec<CharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<SizeTType>]
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
17 >,
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
18 ]
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
19 >;
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
20
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
21 HeaderSpec SysWait = HeaderSpec<
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
22 "sys/wait.h",
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
23 [], // Macros
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
24 [StructRUsage], // Types
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
25 [], // Enumerations
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
26 [
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
27 FunctionSpec<
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
28 "wait4",
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
29 RetValSpec<PidT>,
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
30 [ArgSpec<PidT>, ArgSpec<IntPtr>, ArgSpec<IntType>, ArgSpec<StructRUsagePtr>]
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
31 >
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
32 ]
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
33 >;
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
34
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
35 let Headers = [
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
36 String,
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
37 SysWait,
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
38 ];
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
39 }