1 def CpuSetT : NamedType<"cpu_set_t">;
2 def CpuSetPtr : PtrType<CpuSetT>;
3 def ConstCpuSetPtr : ConstType<CpuSetPtr>;
5 def QSortRCompareT : NamedType<"__qsortrcompare_t">;
6 def StructHsearchData : NamedType<"struct hsearch_data">;
7 def StructHsearchDataPtr : PtrType<StructHsearchData>;
9 def GnuExtensions : StandardSpec<"GNUExtensions"> {
10 NamedType CookieIOFunctionsT = NamedType<"cookie_io_functions_t">;
11 HeaderSpec CType = HeaderSpec<
25 HeaderSpec Malloc = HeaderSpec<
31 FunctionSpec<"mallopt", RetValSpec<IntType>, [ArgSpec<IntType>, ArgSpec<IntType>]>,
35 HeaderSpec Math = HeaderSpec<
44 [ArgSpec<FloatType>, ArgSpec<FloatPtr>, ArgSpec<FloatPtr>]
48 RetValSpec<DoubleType>,
49 [ArgSpec<DoubleType>, ArgSpec<IntPtr>]
53 RetValSpec<FloatType>,
54 [ArgSpec<FloatType>, ArgSpec<IntPtr>]
58 RetValSpec<LongDoubleType>,
59 [ArgSpec<LongDoubleType>, ArgSpec<IntPtr>]
64 HeaderSpec Sched = HeaderSpec<
67 [PidT, SizeTType, CpuSetT], // Types
73 [ArgSpec<PidT>, ArgSpec<SizeTType>, ArgSpec<CpuSetPtr>]
78 [ArgSpec<PidT>, ArgSpec<SizeTType>, ArgSpec<ConstCpuSetPtr>]
82 HeaderSpec String = HeaderSpec<
91 [ArgSpec<ConstVoidPtr>, ArgSpec<SizeTType>, ArgSpec<ConstVoidPtr>, ArgSpec<SizeTType>]
96 [ArgSpec<ConstVoidPtr>, ArgSpec<IntType>, ArgSpec<SizeTType>]
101 [ArgSpec<IntType>, ArgSpec<CharPtr>, ArgSpec<SizeTType>]
106 [ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>]
111 [ArgSpec<ConstCharPtr>, ArgSpec<IntType>]
116 HeaderSpec Search = HeaderSpec<
129 ArgSpec<StructHsearchDataPtr>
134 RetValSpec<VoidType>,
136 ArgSpec<StructHsearchDataPtr>
145 ArgSpec<EntryTypePtrPtr>,
146 ArgSpec<StructHsearchDataPtr>
152 HeaderSpec FEnv = HeaderSpec<
176 HeaderSpec StdIO = HeaderSpec<
179 [CookieIOFunctionsT], // Types
184 RetValSpec<VoidType>,
200 [ArgSpec<VoidPtr>, ArgSpec<ConstCharPtr>, ArgSpec<CookieIOFunctionsT>]
204 RetValSpec<SizeTType>,
205 [ArgSpec<VoidRestrictedPtr>,
208 ArgSpec<FILERestrictedPtr>]
212 RetValSpec<SizeTType>,
213 [ArgSpec<ConstVoidRestrictedPtr>,
216 ArgSpec<FILERestrictedPtr>]
226 HeaderSpec StdLib = HeaderSpec<
229 [QSortRCompareT], // Types
234 RetValSpec<VoidType>,
235 [ArgSpec<VoidPtr>, ArgSpec<SizeTType>, ArgSpec<SizeTType>, ArgSpec<QSortRCompareT>, ArgSpec<VoidPtr>]
240 HeaderSpec PThread = HeaderSpec<
247 "pthread_setname_np",
249 [ArgSpec<PThreadTType>, ArgSpec<ConstCharPtr>]
252 "pthread_getname_np",
254 [ArgSpec<PThreadTType>, ArgSpec<CharPtr>, ArgSpec<SizeTType>]
259 HeaderSpec SysAuxv = HeaderSpec<
267 RetValSpec<UnsignedLongType>,
268 [ArgSpec<UnsignedLongType>]
273 HeaderSpec SendFile = HeaderSpec<
276 [OffTType, SizeTType, SSizeTType,], // Types
281 RetValSpec<SSizeTType>,
282 [ArgSpec<IntType>, ArgSpec<IntType>, ArgSpec<OffTPtr>, ArgSpec<SizeTType>]
287 HeaderSpec UniStd = HeaderSpec<
296 [ArgSpec<IntType>, ArgSpec<IntType>, ArgSpec<IntType>]