source: CIVL/text/include/stdio.h@ 6423d7a

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 6423d7a was 6423d7a, checked in by Stephen Siegel <siegel@…>, 12 years ago

Implementing CIVL's stdio.h file.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@837 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 721 bytes
Line 
1/* stdio.h: The CIVL representation of standard C library stdio.
2 * Based on C11 Standard.
3 */
4 #ifdef __STDIO__
5 #else
6 #define __STDIO__
7
8/* Needed from stdarg.h: */
9
10typedef struct _ABC_va_list {
11 int x;
12} va_list;
13
14/* Types */
15
16typedef unsigned long int size_t;
17
18typedef struct FILE FILE;
19
20typedef int fpos_t;
21
22/* Macros */
23
24#define NULL ((void*)0)
25#define _IOFBF 1
26#define _IOLBF 2
27#define _IONBF 3
28#define BUFSIZ 100
29#define EOF (-100)
30#define FOPEN_MAX 100
31#define FILENAME_MAX 500
32#define L_tmpnam 500
33#define SEEK_CUR 1
34#define SEEK_END 2
35#define SEEK_SET 3
36#define TMP_MAX 100
37#define stdin (FILE*)0
38#define stdout (FILE*)1
39#define stderr (FILE*)2
40
41/* Function Prototypes */
42
43#include<stdio-common.h>
44
45#endif
46
Note: See TracBrowser for help on using the repository browser.