236
|
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 ]
|
|
19 >;
|
|
20
|
|
21 HeaderSpec SysWait = HeaderSpec<
|
|
22 "sys/wait.h",
|
|
23 [], // Macros
|
|
24 [StructRUsage], // Types
|
|
25 [], // Enumerations
|
|
26 [
|
|
27 FunctionSpec<
|
|
28 "wait4",
|
|
29 RetValSpec<PidT>,
|
|
30 [ArgSpec<PidT>, ArgSpec<IntPtr>, ArgSpec<IntType>, ArgSpec<StructRUsagePtr>]
|
|
31 >
|
|
32 ]
|
|
33 >;
|
|
34
|
|
35 let Headers = [
|
|
36 String,
|
|
37 SysWait,
|
|
38 ];
|
|
39 }
|