Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
_cstdio.h
Go to the documentation of this file.
1// -*- C++ -*-
2
30#ifndef _RWSTD_CSTDIO_H_INCLUDED
31#define _RWSTD_CSTDIO_H_INCLUDED
32
33
34#include <rw/_defs.h>
35
36
38
39#ifdef __linux__
40 // prevent multiple definitions of SEEK_XXX constants
41 // when Linux glibc's <unistd.h> is #included
42# define _STDIO_H
43#endif // __linux__
44
45
46#ifndef _IOFBF
47# define _IOFBF _RWSTD_IOFBF
48#endif
49
50#ifndef _IOLBF
51# define _IOLBF _RWSTD_IOLBF
52#endif
53
54#ifndef _IONBF
55# define _IONBF _RWSTD_IONBF
56#endif
57
58#ifndef BUFSIZ
59# define BUFSIZ _RWSTD_BUFSIZ
60#endif
61
62#ifndef EOF
63# define EOF _RWSTD_EOF
64#endif
65
66struct FILE;
67
68#ifndef FILE
69# define FILE FILE
70#endif
71
72#ifndef FILENAME_MAX
73# define FILENAME_MAX _RWSTD_FILENAME_MAX
74#endif
75
76#ifndef FOPEN_MAX
77# define FOPEN_MAX _RWSTD_FOPEN_MAX
78#endif
79
80#ifndef L_tmpnam
81# define L_tmpnam _RWSTD_L_TMPNAM
82#endif // L_tmpnam
83
84#ifndef SEEK_CUR
85# define SEEK_CUR _RWSTD_SEEK_CUR
86#endif
87
88#ifndef SEEK_END
89# define SEEK_END _RWSTD_SEEK_END
90#endif
91
92#ifndef SEEK_SET
93# define SEEK_SET _RWSTD_SEEK_SET
94#endif
95
96#ifndef stderr
97# define stderr _RW::__rw_stderr
98#endif
99
100#ifndef stdin
101# define stdin _RW::__rw_stdin
102#endif
103
104#ifndef stdout
105# define stdout _RW::__rw_stdout
106#endif
107
108#ifndef TMP_MAX
109# define TMP_MAX _RWSTD_TMP_MAX
110#endif
111
112extern "C" {
113
114#ifdef _RWSTD_SIZE_T
115typedef _RWSTD_SIZE_T size_t;
116#else
117typedef unsigned long size_t;
118#endif // _RWSTD_SIZE_T
119
120
121#ifdef _RWSTD_FPOS_T
122typedef _RWSTD_FPOS_T fpos_t;
123#elif defined (_RWSTD_FPOS_T_SIZE)
124
125struct fpos_t
126{
127 char _C_fill [_RWSTD_FPOS_T_SIZE];
128};
129
130#else
131typedef long fpos_t;
132#endif // _RWSTD_FPOS_T
133
134
135int remove (const char*);
136int rename (const char*, const char*);
137FILE* tmpfile (void);
138char* tmpnam (char*);
139int fclose (FILE*);
140int fflush (FILE*);
141FILE* fopen (const char*, const char*);
142FILE* freopen (const char*, const char*, FILE*);
143void setbuf (FILE*, char*);
144int setvbuf (FILE*, char*, int, size_t);
145int fprintf (FILE*, const char*, ...);
146int fscanf (FILE*, const char*, ...);
147int printf (const char*, ...);
148int scanf (const char*, ...);
149int sprintf (char*, const char*, ...);
150int sscanf (const char*, const char*, ...);
151int vfprintf (FILE*, const char*, _RWSTD_VA_LIST);
152int vprintf (const char*, _RWSTD_VA_LIST);
153int vsprintf (char*, const char*, _RWSTD_VA_LIST);
154int fgetc (FILE*);
155char* fgets (char*, int , FILE*);
156int fputc (int, FILE*);
157int fputs (const char*, FILE*);
158int getc (FILE*);
159int getchar (void);
160char* gets (char*);
161int putc (int, FILE*);
162int putchar (int);
163int puts (const char*);
164int ungetc (int c, FILE*);
165size_t fread (void*, size_t size, size_t, FILE*);
166size_t fwrite (const void*, size_t, size_t, FILE*);
167int fgetpos (FILE*, fpos_t*);
168int fseek (FILE*, long, int);
169int fsetpos (FILE*, const fpos_t*);
170long ftell (FILE*);
171void rewind (FILE*);
172void clearerr (FILE*);
173int feof (FILE*);
174int ferror (FILE*);
175void perror (const char*);
176
177} // extern "C"
178
179
180} // namespace std
181
182
184
185extern _STD::FILE* __rw_stdin;
186extern _STD::FILE* __rw_stdout;
187extern _STD::FILE* __rw_stderr;
188
189} // namespace __rw
190
191
192
193#endif // _RWSTD_CSTDIO_H_INCLUDED
#define c
Definition 17.names.cpp:111
IMPORT_C SInt32 printf(const Char *,...)
IMPORT_C SInt32 scanf(const Char *,...)
#define FILE
#define _RWSTD_NAMESPACE(name)
Definition _defs.h:567
Definition json.h:5363