DEADSOFTWARE

f487d529fdeb0a76be38fd96afba5581a7c45086
[cpc.git] / src / cpfront / linux / C99 / Mod / stdio.cp
1 MODULE C99stdio ['stdio.h'];
3 (* generated by genposix.sh, do not modify *)
5 IMPORT SYSTEM, C99types, C99sys_types;
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 TYPE
39 PFILE* = POINTER TO FILE;
40 FILE ['FILE'] = LIMITED RECORD [untagged] END;
42 TYPE
43 fpos_t* = RECORD [noalign] _: ARRAY [untagged] 12 OF BYTE END;
45 TYPE
46 off_t* = C99sys_types.off_t;
47 ssize_t* = C99sys_types.ssize_t;
49 TYPE
50 size_t* = INTEGER;
52 TYPE
53 va_list* = INTEGER;
55 CONST
56 BUFSIZ* = 8192;
57 L_ctermid* = 9;
58 L_tmpnam* = 20;
60 CONST
61 _IOFBF* = 0;
62 _IOLBF* = 1;
63 _IONBF* = 2;
65 CONST
66 SEEK_CUR* = 1;
67 SEEK_END* = 2;
68 SEEK_SET* = 0;
70 CONST
71 FILENAME_MAX* = 4096;
72 FOPEN_MAX* = 16;
73 TMP_MAX* = 238328;
75 CONST
76 EOF* = -1;
78 PROCEDURE [ccall] fclose* (stream: PFILE): int;
79 PROCEDURE [ccall] ferror* (stream: PFILE): int;
80 PROCEDURE [ccall] fflush* (stream: PFILE): int;
81 PROCEDURE [ccall] fopen* (IN pathname, mode: ARRAY [untagged] OF SHORTCHAR): PFILE;
82 PROCEDURE [ccall] fread* (ptr: C99types.Pvoid; size, n: size_t; stream: PFILE): size_t;
83 PROCEDURE [ccall] fseek* (stream: PFILE; offset: long; whence: int): int;
84 PROCEDURE [ccall] ftell* (stream: PFILE): long;
85 PROCEDURE [ccall] fwrite* (ptr: C99types.Pvoid; size, n: size_t; stream: PFILE): size_t;
86 PROCEDURE [ccall] feof* (stream: PFILE): int;
87 PROCEDURE [ccall] remove* (IN pathname: ARRAY [untagged] OF SHORTCHAR): int;
88 PROCEDURE [ccall] rename* (IN old, new: ARRAY [untagged] OF SHORTCHAR): int;
89 PROCEDURE [ccall] tmpfile* (): PFILE;
91 END C99stdio.