2022-05-18 17:45:05 +00:00
|
|
|
def BsdExtensions : StandardSpec<"BSDExtensions"> {
|
|
|
|
HeaderSpec String = HeaderSpec<
|
|
|
|
"string.h",
|
|
|
|
[], // Macros
|
|
|
|
[], // Types
|
|
|
|
[], // Enumerations
|
|
|
|
[
|
2022-05-19 21:47:28 +00:00
|
|
|
FunctionSpec<
|
|
|
|
"strlcat",
|
|
|
|
RetValSpec<SizeTType>,
|
2024-01-15 18:12:09 +00:00
|
|
|
[ArgSpec<ConstCharRestrictedPtr>, ArgSpec<ConstCharRestrictedPtr>, ArgSpec<SizeTType>]
|
2022-05-19 21:47:28 +00:00
|
|
|
>,
|
2022-05-18 17:45:05 +00:00
|
|
|
FunctionSpec<
|
|
|
|
"strlcpy",
|
|
|
|
RetValSpec<SizeTType>,
|
2024-01-15 18:12:09 +00:00
|
|
|
[ArgSpec<ConstCharRestrictedPtr>, ArgSpec<ConstCharRestrictedPtr>, ArgSpec<SizeTType>]
|
2022-05-18 17:45:05 +00:00
|
|
|
>,
|
2023-04-06 17:48:28 +00:00
|
|
|
FunctionSpec<
|
|
|
|
"strsep",
|
|
|
|
RetValSpec<CharPtr>,
|
|
|
|
[ArgSpec<CharRestrictedPtrPtr>, ArgSpec<ConstCharRestrictedPtr>]
|
|
|
|
>,
|
2022-05-18 17:45:05 +00:00
|
|
|
]
|
|
|
|
>;
|
2022-05-18 18:01:02 +00:00
|
|
|
|
2023-01-11 05:38:33 +00:00
|
|
|
HeaderSpec Strings = HeaderSpec<
|
|
|
|
"strings.h",
|
|
|
|
[], // Macros
|
|
|
|
[], // Types
|
|
|
|
[], // Enumerations
|
|
|
|
[
|
|
|
|
FunctionSpec<
|
|
|
|
"strcasecmp",
|
|
|
|
RetValSpec<IntType>,
|
|
|
|
[ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>]
|
|
|
|
>,
|
|
|
|
FunctionSpec<
|
|
|
|
"strncasecmp",
|
|
|
|
RetValSpec<IntType>,
|
|
|
|
[ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<SizeTType>]
|
|
|
|
>,
|
2023-04-11 04:30:50 +00:00
|
|
|
FunctionSpec<
|
|
|
|
"index",
|
|
|
|
RetValSpec<CharPtr>,
|
|
|
|
[ArgSpec<ConstCharPtr>, ArgSpec<IntType>]
|
|
|
|
>,
|
|
|
|
FunctionSpec<
|
|
|
|
"rindex",
|
|
|
|
RetValSpec<CharPtr>,
|
|
|
|
[ArgSpec<ConstCharPtr>, ArgSpec<IntType>]
|
|
|
|
>,
|
2023-01-11 05:38:33 +00:00
|
|
|
]
|
|
|
|
>;
|
|
|
|
|
2022-10-04 21:17:27 +00:00
|
|
|
HeaderSpec SysWait = HeaderSpec<
|
|
|
|
"sys/wait.h",
|
|
|
|
[], // Macros
|
|
|
|
[StructRUsage], // Types
|
|
|
|
[], // Enumerations
|
|
|
|
[
|
|
|
|
FunctionSpec<
|
|
|
|
"wait4",
|
|
|
|
RetValSpec<PidT>,
|
|
|
|
[ArgSpec<PidT>, ArgSpec<IntPtr>, ArgSpec<IntType>, ArgSpec<StructRUsagePtr>]
|
|
|
|
>
|
|
|
|
]
|
|
|
|
>;
|
|
|
|
|
2022-05-18 18:01:02 +00:00
|
|
|
let Headers = [
|
|
|
|
String,
|
2023-01-11 05:38:33 +00:00
|
|
|
Strings,
|
2022-10-04 21:17:27 +00:00
|
|
|
SysWait,
|
2022-05-18 18:17:11 +00:00
|
|
|
];
|
2022-05-18 17:45:05 +00:00
|
|
|
}
|