DEADSOFTWARE

99ada11c73995a1ffc904e9ebf4d8f726be7327f
[cpc.git] / src / cpfront / linux / C99 / Mod / stdlib.cp
1 MODULE C99stdlib ['stdlib.h'];
3 (* generated by genposix.sh, do not modify *)
5 IMPORT SYSTEM, C99types;
7 TYPE
8 char* = C99types.char;
9 signed_char* = C99types.signed_char;
10 unsigned_char* = C99types.unsigned_char;
11 short* = C99types.short;
12 short_int* = C99types.short_int;
13 signed_short* = C99types.signed_short;
14 signed_short_int* = C99types.signed_short_int;
15 unsigned_short* = C99types.unsigned_short;
16 unsigned_short_int* = C99types.unsigned_short_int;
17 int* = C99types.int;
18 signed* = C99types.signed;
19 signed_int* = C99types.signed_int;
20 unsigned* = C99types.unsigned;
21 unsigned_int* = C99types.unsigned_int;
22 long* = C99types.long;
23 long_int* = C99types.long_int;
24 signed_long* = C99types.signed_long;
25 signed_long_int* = C99types.signed_long_int;
26 unsigned_long* = C99types.unsigned_long;
27 unsigned_long_int* = C99types.unsigned_long_int;
28 long_long* = C99types.long_long;
29 long_long_int* = C99types.long_long_int;
30 signed_long_long* = C99types.signed_long_long;
31 signed_long_long_int* = C99types.signed_long_long_int;
32 unsigned_long_long* = C99types.unsigned_long_long;
33 unsigned_long_long_int* = C99types.unsigned_long_long_int;
34 float* = C99types.float;
35 double* = C99types.double;
36 long_double* = C99types.long_double;
38 CONST
39 EXIT_FAILURE* = 1;
40 EXIT_SUCCESS* = 0;
41 RAND_MAX* = 2147483647;
43 CONST
44 MB_CUR_MAX* = 1;
46 TYPE
47 div_t* = RECORD [noalign] _: ARRAY [untagged] 8 OF BYTE END;
48 ldiv_t* = RECORD [noalign] _: ARRAY [untagged] 8 OF BYTE END;
49 lldiv_t* = RECORD [noalign] _: ARRAY [untagged] 16 OF BYTE END;
51 TYPE
52 size_t* = INTEGER;
53 wchar_t* = INTEGER;
55 PROCEDURE [ccall] _Exit* (status: int);
56 PROCEDURE [ccall] abort* ;
57 PROCEDURE [ccall] atexit* (function: PROCEDURE [ccall]): int;
58 PROCEDURE [ccall] exit* (status: int);
59 PROCEDURE [ccall] free* (ptr: C99types.Pvoid);
60 PROCEDURE [ccall] getenv* (IN name: ARRAY [untagged] OF SHORTCHAR): POINTER TO ARRAY [untagged] OF SHORTCHAR;
61 PROCEDURE [ccall] malloc* (size: size_t): C99types.Pvoid;
62 PROCEDURE [ccall] system* (IN command: ARRAY [untagged] OF SHORTCHAR): int;
63 PROCEDURE [ccall] mkstemp* (VAR template: ARRAY [untagged] OF SHORTCHAR): int;
64 PROCEDURE [ccall] realpath* (IN path: ARRAY [untagged] OF SHORTCHAR; VAR [nil] resolved_path: ARRAY [untagged] OF SHORTCHAR): POINTER TO ARRAY [untagged] OF SHORTCHAR;
66 END C99stdlib.