2 "module gcc.config.libc;\n"
3 "private import gcc.builtins;\n"
5 "alias __builtin_Clong Clong_t;\n"
6 "alias __builtin_Culong Culong_t;\n");
8 x3_gi_push_header("\"config.h\"");
9 x3_gi_push_header("<sys/types.h>");
10 x3_out_int_type("off_t");
13 x3_gi_push_header("<stddef.h>");
14 x3_out_char_type("wchar_t");
17 x3_gi_push_header("<time.h>");
18 //x3_gi_push_header("<sys/time.h>");//?
19 x3_out_int_type("time_t");
20 x3_out_int_type("clock_t");
21 x3_out_int_value_ex("CLOCKS_PER_SEC", NULL, "unsigned int", "uint", 0, NULL);
22 x3_out_struct("struct tm", NULL, "i:tm_sec", "i:tm_min", "i:tm_hour",
23 "i:tm_mday", "i:tm_mon", "i:tm_year", "i:tm_wday", "i:tm_yday",
24 "i:tm_isdst", "oi:tm_gmtoff", "otchar *;:tm_zone", NULL);
27 x3_gi_push_header("<stdlib.h>");
28 x3_out_int_value("RAND_MAX");
31 x3_gi_push_header("<stdio.h>");
32 x3_gi_push_header("<limits.h>");
33 x3_out_int_value("EOF");
34 x3_out_int_value("FILENAME_MAX"); // find the deps.. aare these really needed?
35 x3_out_int_value("TMP_MAX");
37 x3_out_int_value("FOPEN_MAX");
38 x3_out_int_value("L_tmpnam");
41 // want to get rid of this...
42 x3_out_int_value_ex("FILE_struct_size", "sizeof(FILE)", "size_t", NULL, 0, "0");
44 x3_out_type("fpos_t");