Subversion Repositories Kolibri OS

Rev

Rev 4874 | Rev 5963 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 4921
Line 29... Line 29...
29
#include "_ansi.h"
29
#include "_ansi.h"
Line 30... Line 30...
30
 
30
 
Line 31... Line 31...
31
#define	_FSTDIO			/* ``function stdio'' */
31
#define	_FSTDIO			/* ``function stdio'' */
-
 
32
 
32
 
33
#define __need_size_t
Line 33... Line 34...
33
#define __need_size_t
34
#define __need_NULL
34
#include 
35
#include 
Line 94... Line 95...
94
 */
95
 */
95
#define	_IOFBF	0		/* setvbuf should set fully buffered */
96
#define	_IOFBF	0		/* setvbuf should set fully buffered */
96
#define	_IOLBF	1		/* setvbuf should set line buffered */
97
#define	_IOLBF	1		/* setvbuf should set line buffered */
97
#define	_IONBF	2		/* setvbuf should set unbuffered */
98
#define	_IONBF	2		/* setvbuf should set unbuffered */
Line 98... Line -...
98
 
-
 
99
#ifndef NULL
-
 
100
#define	NULL	0
-
 
101
#endif
-
 
102
 
99
 
Line 103... Line 100...
103
#define	EOF	(-1)
100
#define	EOF	(-1)
104
 
101
 
105
#ifdef __BUFSIZ__
102
#ifdef __BUFSIZ__
Line 140... Line 137...
140
#define	SEEK_END	2	/* set file offset to EOF plus offset */
137
#define	SEEK_END	2	/* set file offset to EOF plus offset */
141
#endif
138
#endif
Line 142... Line 139...
142
 
139
 
Line 143... Line -...
143
#define	TMP_MAX		26
-
 
144
 
140
#define	TMP_MAX		26
145
#ifndef _REENT_ONLY
141
 
146
#define	stdin	(_REENT->_stdin)
142
#define	stdin	(_REENT->_stdin)
147
#define	stdout	(_REENT->_stdout)
-
 
148
#define	stderr	(_REENT->_stderr)
-
 
149
#else /* _REENT_ONLY */
-
 
150
#define	stdin	(_impure_ptr->_stdin)
-
 
151
#define	stdout	(_impure_ptr->_stdout)
-
 
Line 152... Line 143...
152
#define	stderr	(_impure_ptr->_stderr)
143
#define	stdout	(_REENT->_stdout)
153
#endif /* _REENT_ONLY */
144
#define	stderr	(_REENT->_stderr)
154
 
145
 
Line 170... Line 161...
170
 
161
 
171
FILE *	_EXFUN(tmpfile, (void));
162
FILE *	_EXFUN(tmpfile, (void));
172
char *	_EXFUN(tmpnam, (char *));
163
char *	_EXFUN(tmpnam, (char *));
173
int	_EXFUN(fclose, (FILE *));
164
int	_EXFUN(fclose, (FILE *));
174
int	_EXFUN(fflush, (FILE *));
165
int	_EXFUN(fflush, (FILE *));
175
FILE *	_EXFUN(freopen, (const char *, const char *, FILE *));
166
FILE *	_EXFUN(freopen, (const char *__restrict, const char *__restrict, FILE *__restrict));
176
void	_EXFUN(setbuf, (FILE *, char *));
167
void	_EXFUN(setbuf, (FILE *__restrict, char *__restrict));
177
int	_EXFUN(setvbuf, (FILE *, char *, int, size_t));
168
int	_EXFUN(setvbuf, (FILE *__restrict, char *__restrict, int, size_t));
178
int	_EXFUN(fprintf, (FILE *, const char *, ...)
169
int	_EXFUN(fprintf, (FILE *__restrict, const char *__restrict, ...)
179
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
170
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
180
int	_EXFUN(fscanf, (FILE *, const char *, ...)
171
int	_EXFUN(fscanf, (FILE *__restrict, const char *__restrict, ...)
181
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
172
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
182
int	_EXFUN(printf, (const char *, ...)
173
int	_EXFUN(printf, (const char *__restrict, ...)
183
               _ATTRIBUTE ((__format__ (__printf__, 1, 2))));
174
               _ATTRIBUTE ((__format__ (__printf__, 1, 2))));
184
int	_EXFUN(scanf, (const char *, ...)
175
int	_EXFUN(scanf, (const char *__restrict, ...)
185
               _ATTRIBUTE ((__format__ (__scanf__, 1, 2))));
176
               _ATTRIBUTE ((__format__ (__scanf__, 1, 2))));
186
int	_EXFUN(sscanf, (const char *, const char *, ...)
177
int	_EXFUN(sscanf, (const char *__restrict, const char *__restrict, ...)
187
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
178
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
188
int	_EXFUN(vfprintf, (FILE *, const char *, __VALIST)
179
int	_EXFUN(vfprintf, (FILE *__restrict, const char *__restrict, __VALIST)
189
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
180
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
190
int	_EXFUN(vprintf, (const char *, __VALIST)
181
int	_EXFUN(vprintf, (const char *, __VALIST)
191
               _ATTRIBUTE ((__format__ (__printf__, 1, 0))));
182
               _ATTRIBUTE ((__format__ (__printf__, 1, 0))));
192
int	_EXFUN(vsprintf, (char *, const char *, __VALIST)
183
int	_EXFUN(vsprintf, (char *__restrict, const char *__restrict, __VALIST)
193
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
184
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
194
int	_EXFUN(fgetc, (FILE *));
185
int	_EXFUN(fgetc, (FILE *));
195
char *  _EXFUN(fgets, (char *, int, FILE *));
186
char *  _EXFUN(fgets, (char *__restrict, int, FILE *__restrict));
196
int	_EXFUN(fputc, (int, FILE *));
187
int	_EXFUN(fputc, (int, FILE *));
197
int	_EXFUN(fputs, (const char *, FILE *));
188
int	_EXFUN(fputs, (const char *__restrict, FILE *__restrict));
198
int	_EXFUN(getc, (FILE *));
189
int	_EXFUN(getc, (FILE *));
199
int	_EXFUN(getchar, (void));
190
int	_EXFUN(getchar, (void));
200
char *  _EXFUN(gets, (char *));
191
char *  _EXFUN(gets, (char *));
201
int	_EXFUN(putc, (int, FILE *));
192
int	_EXFUN(putc, (int, FILE *));
202
int	_EXFUN(putchar, (int));
193
int	_EXFUN(putchar, (int));
203
int	_EXFUN(puts, (const char *));
194
int	_EXFUN(puts, (const char *));
204
int	_EXFUN(ungetc, (int, FILE *));
195
int	_EXFUN(ungetc, (int, FILE *));
205
size_t	_EXFUN(fread, (_PTR, size_t _size, size_t _n, FILE *));
196
size_t	_EXFUN(fread, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
206
size_t	_EXFUN(fwrite, (const _PTR , size_t _size, size_t _n, FILE *));
197
size_t	_EXFUN(fwrite, (const _PTR __restrict , size_t _size, size_t _n, FILE *));
207
#ifdef _COMPILING_NEWLIB
198
#ifdef _COMPILING_NEWLIB
208
int	_EXFUN(fgetpos, (FILE *, _fpos_t *));
199
int	_EXFUN(fgetpos, (FILE *, _fpos_t *));
209
#else
200
#else
210
int	_EXFUN(fgetpos, (FILE *, fpos_t *));
201
int	_EXFUN(fgetpos, (FILE *__restrict, fpos_t *__restrict));
211
#endif
202
#endif
212
int	_EXFUN(fseek, (FILE *, long, int));
203
int	_EXFUN(fseek, (FILE *, long, int));
213
#ifdef _COMPILING_NEWLIB
204
#ifdef _COMPILING_NEWLIB
214
int	_EXFUN(fsetpos, (FILE *, const _fpos_t *));
205
int	_EXFUN(fsetpos, (FILE *, const _fpos_t *));
Line 220... Line 211...
220
void	_EXFUN(clearerr, (FILE *));
211
void	_EXFUN(clearerr, (FILE *));
221
int	_EXFUN(feof, (FILE *));
212
int	_EXFUN(feof, (FILE *));
222
int	_EXFUN(ferror, (FILE *));
213
int	_EXFUN(ferror, (FILE *));
223
void    _EXFUN(perror, (const char *));
214
void    _EXFUN(perror, (const char *));
224
#ifndef _REENT_ONLY
215
#ifndef _REENT_ONLY
225
FILE *	_EXFUN(fopen, (const char *_name, const char *_type));
216
FILE *	_EXFUN(fopen, (const char *__restrict _name, const char *__restrict _type));
226
int	_EXFUN(sprintf, (char *, const char *, ...)
217
int	_EXFUN(sprintf, (char *__restrict, const char *__restrict, ...)
227
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
218
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
228
int	_EXFUN(remove, (const char *));
219
int	_EXFUN(remove, (const char *));
229
int	_EXFUN(rename, (const char *, const char *));
220
int	_EXFUN(rename, (const char *, const char *));
-
 
221
#ifdef _COMPILING_NEWLIB
-
 
222
int	_EXFUN(_rename, (const char *, const char *));
-
 
223
#endif
230
#endif
224
#endif
231
#if !defined(__STRICT_ANSI__) || defined(__USE_XOPEN2K)
225
#if !defined(__STRICT_ANSI__) || defined(__USE_XOPEN2K)
232
#ifdef _COMPILING_NEWLIB
226
#ifdef _COMPILING_NEWLIB
233
int	_EXFUN(fseeko, (FILE *, _off_t, int));
227
int	_EXFUN(fseeko, (FILE *, _off_t, int));
234
_off_t	_EXFUN(ftello, ( FILE *));
228
_off_t	_EXFUN(ftello, ( FILE *));
Line 241... Line 235...
241
#ifndef _REENT_ONLY
235
#ifndef _REENT_ONLY
242
int	_EXFUN(asiprintf, (char **, const char *, ...)
236
int	_EXFUN(asiprintf, (char **, const char *, ...)
243
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
237
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
244
char *	_EXFUN(asniprintf, (char *, size_t *, const char *, ...)
238
char *	_EXFUN(asniprintf, (char *, size_t *, const char *, ...)
245
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
239
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
246
char *	_EXFUN(asnprintf, (char *, size_t *, const char *, ...)
240
char *	_EXFUN(asnprintf, (char *__restrict, size_t *__restrict, const char *__restrict, ...)
247
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
241
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
248
int	_EXFUN(asprintf, (char **, const char *, ...)
242
int	_EXFUN(asprintf, (char **__restrict, const char *__restrict, ...)
249
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
243
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
250
#ifndef diprintf
244
#ifndef diprintf
251
int	_EXFUN(diprintf, (int, const char *, ...)
245
int	_EXFUN(diprintf, (int, const char *, ...)
252
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
246
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
253
#endif
247
#endif
Line 262... Line 256...
262
               _ATTRIBUTE ((__format__ (__scanf__, 1, 2))));
256
               _ATTRIBUTE ((__format__ (__scanf__, 1, 2))));
263
int	_EXFUN(siprintf, (char *, const char *, ...)
257
int	_EXFUN(siprintf, (char *, const char *, ...)
264
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
258
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
265
int	_EXFUN(siscanf, (const char *, const char *, ...)
259
int	_EXFUN(siscanf, (const char *, const char *, ...)
266
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
260
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
267
int	_EXFUN(snprintf, (char *, size_t, const char *, ...)
261
int	_EXFUN(snprintf, (char *__restrict, size_t, const char *__restrict, ...)
268
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
262
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
269
int _EXFUN(sniprintf, (char *, size_t, const char *, ...)
263
int _EXFUN(sniprintf, (char *, size_t, const char *, ...)
270
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
264
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
271
char *	_EXFUN(tempnam, (const char *, const char *));
265
char *	_EXFUN(tempnam, (const char *, const char *));
272
int	_EXFUN(vasiprintf, (char **, const char *, __VALIST)
266
int	_EXFUN(vasiprintf, (char **, const char *, __VALIST)
Line 281... Line 275...
281
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
275
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
282
int	_EXFUN(vfiprintf, (FILE *, const char *, __VALIST)
276
int	_EXFUN(vfiprintf, (FILE *, const char *, __VALIST)
283
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
277
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
284
int	_EXFUN(vfiscanf, (FILE *, const char *, __VALIST)
278
int	_EXFUN(vfiscanf, (FILE *, const char *, __VALIST)
285
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
279
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
286
int	_EXFUN(vfscanf, (FILE *, const char *, __VALIST)
280
int	_EXFUN(vfscanf, (FILE *__restrict, const char *__restrict, __VALIST)
287
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
281
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
288
int	_EXFUN(viprintf, (const char *, __VALIST)
282
int	_EXFUN(viprintf, (const char *, __VALIST)
289
               _ATTRIBUTE ((__format__ (__printf__, 1, 0))));
283
               _ATTRIBUTE ((__format__ (__printf__, 1, 0))));
290
int	_EXFUN(viscanf, (const char *, __VALIST)
284
int	_EXFUN(viscanf, (const char *, __VALIST)
291
               _ATTRIBUTE ((__format__ (__scanf__, 1, 0))));
285
               _ATTRIBUTE ((__format__ (__scanf__, 1, 0))));
Line 295... Line 289...
295
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
289
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
296
int	_EXFUN(vsiscanf, (const char *, const char *, __VALIST)
290
int	_EXFUN(vsiscanf, (const char *, const char *, __VALIST)
297
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
291
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
298
int	_EXFUN(vsniprintf, (char *, size_t, const char *, __VALIST)
292
int	_EXFUN(vsniprintf, (char *, size_t, const char *, __VALIST)
299
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
293
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
300
int	_EXFUN(vsnprintf, (char *, size_t, const char *, __VALIST)
294
int	_EXFUN(vsnprintf, (char *__restrict, size_t, const char *__restrict, __VALIST)
301
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
295
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
302
int	_EXFUN(vsscanf, (const char *, const char *, __VALIST)
296
int	_EXFUN(vsscanf, (const char *__restrict, const char *__restrict, __VALIST)
303
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
297
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
304
#endif /* !_REENT_ONLY */
298
#endif /* !_REENT_ONLY */
305
#endif /* !__STRICT_ANSI__ */
299
#endif /* !__STRICT_ANSI__ */
Line 306... Line 300...
306
 
300
 
Line 333... Line 327...
333
 */
327
 */
Line 334... Line 328...
334
 
328
 
335
#ifndef __STRICT_ANSI__
329
#ifndef __STRICT_ANSI__
336
# ifndef _REENT_ONLY
330
# ifndef _REENT_ONLY
337
#  ifndef dprintf
331
#  ifndef dprintf
338
int	_EXFUN(dprintf, (int, const char *, ...)
332
int	_EXFUN(dprintf, (int, const char *__restrict, ...)
339
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
333
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
340
#  endif
334
#  endif
341
FILE *	_EXFUN(fmemopen, (void *, size_t, const char *));
335
FILE *	_EXFUN(fmemopen, (void *__restrict, size_t, const char *__restrict));
342
/* getdelim - see __getdelim for now */
336
/* getdelim - see __getdelim for now */
343
/* getline - see __getline for now */
337
/* getline - see __getline for now */
344
FILE *	_EXFUN(open_memstream, (char **, size_t *));
338
FILE *	_EXFUN(open_memstream, (char **, size_t *));
345
#if defined (__CYGWIN__)
339
#if defined (__CYGWIN__)
346
int	_EXFUN(renameat, (int, const char *, int, const char *));
340
int	_EXFUN(renameat, (int, const char *, int, const char *));
347
#endif
341
#endif
348
int	_EXFUN(vdprintf, (int, const char *, __VALIST)
342
int	_EXFUN(vdprintf, (int, const char *__restrict, __VALIST)
349
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
343
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
350
# endif
344
# endif
Line 351... Line 345...
351
#endif
345
#endif
Line 356... Line 350...
356
 
350
 
357
int	_EXFUN(_asiprintf_r, (struct _reent *, char **, const char *, ...)
351
int	_EXFUN(_asiprintf_r, (struct _reent *, char **, const char *, ...)
358
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
352
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
359
char *	_EXFUN(_asniprintf_r, (struct _reent *, char *, size_t *, const char *, ...)
353
char *	_EXFUN(_asniprintf_r, (struct _reent *, char *, size_t *, const char *, ...)
360
               _ATTRIBUTE ((__format__ (__printf__, 4, 5))));
354
               _ATTRIBUTE ((__format__ (__printf__, 4, 5))));
361
char *	_EXFUN(_asnprintf_r, (struct _reent *, char *, size_t *, const char *, ...)
355
char *	_EXFUN(_asnprintf_r, (struct _reent *, char *__restrict, size_t *__restrict, const char *__restrict, ...)
362
               _ATTRIBUTE ((__format__ (__printf__, 4, 5))));
356
               _ATTRIBUTE ((__format__ (__printf__, 4, 5))));
363
int	_EXFUN(_asprintf_r, (struct _reent *, char **, const char *, ...)
357
int	_EXFUN(_asprintf_r, (struct _reent *, char **__restrict, const char *__restrict, ...)
364
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
358
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
365
int	_EXFUN(_diprintf_r, (struct _reent *, int, const char *, ...)
359
int	_EXFUN(_diprintf_r, (struct _reent *, int, const char *, ...)
366
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
360
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
367
int	_EXFUN(_dprintf_r, (struct _reent *, int, const char *, ...)
361
int	_EXFUN(_dprintf_r, (struct _reent *, int, const char *__restrict, ...)
368
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
362
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
369
int	_EXFUN(_fclose_r, (struct _reent *, FILE *));
363
int	_EXFUN(_fclose_r, (struct _reent *, FILE *));
370
int	_EXFUN(_fcloseall_r, (struct _reent *));
364
int	_EXFUN(_fcloseall_r, (struct _reent *));
371
FILE *	_EXFUN(_fdopen_r, (struct _reent *, int, const char *));
365
FILE *	_EXFUN(_fdopen_r, (struct _reent *, int, const char *));
372
int	_EXFUN(_fflush_r, (struct _reent *, FILE *));
366
int	_EXFUN(_fflush_r, (struct _reent *, FILE *));
373
int	_EXFUN(_fgetc_r, (struct _reent *, FILE *));
367
int	_EXFUN(_fgetc_r, (struct _reent *, FILE *));
374
char *  _EXFUN(_fgets_r, (struct _reent *, char *, int, FILE *));
368
char *  _EXFUN(_fgets_r, (struct _reent *, char *__restrict, int, FILE *__restrict));
375
#ifdef _COMPILING_NEWLIB
369
#ifdef _COMPILING_NEWLIB
376
int	_EXFUN(_fgetpos_r, (struct _reent *, FILE *, _fpos_t *));
370
int	_EXFUN(_fgetpos_r, (struct _reent *, FILE *__restrict, _fpos_t *__restrict));
377
int	_EXFUN(_fsetpos_r, (struct _reent *, FILE *, const _fpos_t *));
371
int	_EXFUN(_fsetpos_r, (struct _reent *, FILE *, const _fpos_t *));
378
#else
372
#else
379
int	_EXFUN(_fgetpos_r, (struct _reent *, FILE *, fpos_t *));
373
int	_EXFUN(_fgetpos_r, (struct _reent *, FILE *, fpos_t *));
380
int	_EXFUN(_fsetpos_r, (struct _reent *, FILE *, const fpos_t *));
374
int	_EXFUN(_fsetpos_r, (struct _reent *, FILE *, const fpos_t *));
381
#endif
375
#endif
382
int	_EXFUN(_fiprintf_r, (struct _reent *, FILE *, const char *, ...)
376
int	_EXFUN(_fiprintf_r, (struct _reent *, FILE *, const char *, ...)
383
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
377
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
384
int	_EXFUN(_fiscanf_r, (struct _reent *, FILE *, const char *, ...)
378
int	_EXFUN(_fiscanf_r, (struct _reent *, FILE *, const char *, ...)
385
               _ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
379
               _ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
386
FILE *	_EXFUN(_fmemopen_r, (struct _reent *, void *, size_t, const char *));
380
FILE *	_EXFUN(_fmemopen_r, (struct _reent *, void *__restrict, size_t, const char *__restrict));
387
FILE *	_EXFUN(_fopen_r, (struct _reent *, const char *, const char *));
381
FILE *	_EXFUN(_fopen_r, (struct _reent *, const char *__restrict, const char *__restrict));
388
FILE *	_EXFUN(_freopen_r, (struct _reent *, const char *, const char *, FILE *));
382
FILE *	_EXFUN(_freopen_r, (struct _reent *, const char *__restrict, const char *__restrict, FILE *__restrict));
389
int	_EXFUN(_fprintf_r, (struct _reent *, FILE *, const char *, ...)
383
int	_EXFUN(_fprintf_r, (struct _reent *, FILE *__restrict, const char *__restrict, ...)
390
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
384
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
391
int	_EXFUN(_fpurge_r, (struct _reent *, FILE *));
385
int	_EXFUN(_fpurge_r, (struct _reent *, FILE *));
392
int	_EXFUN(_fputc_r, (struct _reent *, int, FILE *));
386
int	_EXFUN(_fputc_r, (struct _reent *, int, FILE *));
393
int	_EXFUN(_fputs_r, (struct _reent *, const char *, FILE *));
387
int	_EXFUN(_fputs_r, (struct _reent *, const char *__restrict, FILE *__restrict));
394
size_t	_EXFUN(_fread_r, (struct _reent *, _PTR, size_t _size, size_t _n, FILE *));
388
size_t	_EXFUN(_fread_r, (struct _reent *, _PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
395
int	_EXFUN(_fscanf_r, (struct _reent *, FILE *, const char *, ...)
389
int	_EXFUN(_fscanf_r, (struct _reent *, FILE *__restrict, const char *__restrict, ...)
396
               _ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
390
               _ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
397
int	_EXFUN(_fseek_r, (struct _reent *, FILE *, long, int));
391
int	_EXFUN(_fseek_r, (struct _reent *, FILE *, long, int));
398
int	_EXFUN(_fseeko_r,(struct _reent *, FILE *, _off_t, int));
392
int	_EXFUN(_fseeko_r,(struct _reent *, FILE *, _off_t, int));
399
long	_EXFUN(_ftell_r, (struct _reent *, FILE *));
393
long	_EXFUN(_ftell_r, (struct _reent *, FILE *));
400
_off_t	_EXFUN(_ftello_r,(struct _reent *, FILE *));
394
_off_t	_EXFUN(_ftello_r,(struct _reent *, FILE *));
401
void	_EXFUN(_rewind_r, (struct _reent *, FILE *));
395
void	_EXFUN(_rewind_r, (struct _reent *, FILE *));
402
size_t	_EXFUN(_fwrite_r, (struct _reent *, const _PTR , size_t _size, size_t _n, FILE *));
396
size_t	_EXFUN(_fwrite_r, (struct _reent *, const _PTR __restrict, size_t _size, size_t _n, FILE *__restrict));
403
int	_EXFUN(_getc_r, (struct _reent *, FILE *));
397
int	_EXFUN(_getc_r, (struct _reent *, FILE *));
404
int	_EXFUN(_getc_unlocked_r, (struct _reent *, FILE *));
398
int	_EXFUN(_getc_unlocked_r, (struct _reent *, FILE *));
405
int	_EXFUN(_getchar_r, (struct _reent *));
399
int	_EXFUN(_getchar_r, (struct _reent *));
406
int	_EXFUN(_getchar_unlocked_r, (struct _reent *));
400
int	_EXFUN(_getchar_unlocked_r, (struct _reent *));
Line 409... Line 403...
409
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
403
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
410
int	_EXFUN(_iscanf_r, (struct _reent *, const char *, ...)
404
int	_EXFUN(_iscanf_r, (struct _reent *, const char *, ...)
411
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
405
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
412
FILE *	_EXFUN(_open_memstream_r, (struct _reent *, char **, size_t *));
406
FILE *	_EXFUN(_open_memstream_r, (struct _reent *, char **, size_t *));
413
void	_EXFUN(_perror_r, (struct _reent *, const char *));
407
void	_EXFUN(_perror_r, (struct _reent *, const char *));
414
int	_EXFUN(_printf_r, (struct _reent *, const char *, ...)
408
int	_EXFUN(_printf_r, (struct _reent *, const char *__restrict, ...)
415
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
409
               _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
416
int	_EXFUN(_putc_r, (struct _reent *, int, FILE *));
410
int	_EXFUN(_putc_r, (struct _reent *, int, FILE *));
417
int	_EXFUN(_putc_unlocked_r, (struct _reent *, int, FILE *));
411
int	_EXFUN(_putc_unlocked_r, (struct _reent *, int, FILE *));
418
int	_EXFUN(_putchar_unlocked_r, (struct _reent *, int));
412
int	_EXFUN(_putchar_unlocked_r, (struct _reent *, int));
419
int	_EXFUN(_putchar_r, (struct _reent *, int));
413
int	_EXFUN(_putchar_r, (struct _reent *, int));
420
int	_EXFUN(_puts_r, (struct _reent *, const char *));
414
int	_EXFUN(_puts_r, (struct _reent *, const char *));
421
int	_EXFUN(_remove_r, (struct _reent *, const char *));
415
int	_EXFUN(_remove_r, (struct _reent *, const char *));
422
int	_EXFUN(_rename_r, (struct _reent *,
416
int	_EXFUN(_rename_r, (struct _reent *,
423
			   const char *_old, const char *_new));
417
			   const char *_old, const char *_new));
424
int	_EXFUN(_scanf_r, (struct _reent *, const char *, ...)
418
int	_EXFUN(_scanf_r, (struct _reent *, const char *__restrict, ...)
425
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
419
               _ATTRIBUTE ((__format__ (__scanf__, 2, 3))));
426
int	_EXFUN(_siprintf_r, (struct _reent *, char *, const char *, ...)
420
int	_EXFUN(_siprintf_r, (struct _reent *, char *, const char *, ...)
427
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
421
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
428
int	_EXFUN(_siscanf_r, (struct _reent *, const char *, const char *, ...)
422
int	_EXFUN(_siscanf_r, (struct _reent *, const char *, const char *, ...)
429
               _ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
423
               _ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
430
int	_EXFUN(_sniprintf_r, (struct _reent *, char *, size_t, const char *, ...)
424
int	_EXFUN(_sniprintf_r, (struct _reent *, char *, size_t, const char *, ...)
431
               _ATTRIBUTE ((__format__ (__printf__, 4, 5))));
425
               _ATTRIBUTE ((__format__ (__printf__, 4, 5))));
432
int	_EXFUN(_snprintf_r, (struct _reent *, char *, size_t, const char *, ...)
426
int	_EXFUN(_snprintf_r, (struct _reent *, char *__restrict, size_t, const char *__restrict, ...)
433
               _ATTRIBUTE ((__format__ (__printf__, 4, 5))));
427
               _ATTRIBUTE ((__format__ (__printf__, 4, 5))));
434
int	_EXFUN(_sprintf_r, (struct _reent *, char *, const char *, ...)
428
int	_EXFUN(_sprintf_r, (struct _reent *, char *__restrict, const char *__restrict, ...)
435
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
429
               _ATTRIBUTE ((__format__ (__printf__, 3, 4))));
436
int	_EXFUN(_sscanf_r, (struct _reent *, const char *, const char *, ...)
430
int	_EXFUN(_sscanf_r, (struct _reent *, const char *__restrict, const char *__restrict, ...)
437
               _ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
431
               _ATTRIBUTE ((__format__ (__scanf__, 3, 4))));
438
char *	_EXFUN(_tempnam_r, (struct _reent *, const char *, const char *));
432
char *	_EXFUN(_tempnam_r, (struct _reent *, const char *, const char *));
439
FILE *	_EXFUN(_tmpfile_r, (struct _reent *));
433
FILE *	_EXFUN(_tmpfile_r, (struct _reent *));
440
char *	_EXFUN(_tmpnam_r, (struct _reent *, char *));
434
char *	_EXFUN(_tmpnam_r, (struct _reent *, char *));
441
int	_EXFUN(_ungetc_r, (struct _reent *, int, FILE *));
435
int	_EXFUN(_ungetc_r, (struct _reent *, int, FILE *));
Line 447... Line 441...
447
               _ATTRIBUTE ((__format__ (__printf__, 4, 0))));
441
               _ATTRIBUTE ((__format__ (__printf__, 4, 0))));
448
int	_EXFUN(_vasprintf_r, (struct _reent *, char **, const char *, __VALIST)
442
int	_EXFUN(_vasprintf_r, (struct _reent *, char **, const char *, __VALIST)
449
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
443
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
450
int	_EXFUN(_vdiprintf_r, (struct _reent *, int, const char *, __VALIST)
444
int	_EXFUN(_vdiprintf_r, (struct _reent *, int, const char *, __VALIST)
451
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
445
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
452
int	_EXFUN(_vdprintf_r, (struct _reent *, int, const char *, __VALIST)
446
int	_EXFUN(_vdprintf_r, (struct _reent *, int, const char *__restrict, __VALIST)
453
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
447
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
454
int	_EXFUN(_vfiprintf_r, (struct _reent *, FILE *, const char *, __VALIST)
448
int	_EXFUN(_vfiprintf_r, (struct _reent *, FILE *, const char *, __VALIST)
455
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
449
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
456
int	_EXFUN(_vfiscanf_r, (struct _reent *, FILE *, const char *, __VALIST)
450
int	_EXFUN(_vfiscanf_r, (struct _reent *, FILE *, const char *, __VALIST)
457
               _ATTRIBUTE ((__format__ (__scanf__, 3, 0))));
451
               _ATTRIBUTE ((__format__ (__scanf__, 3, 0))));
458
int	_EXFUN(_vfprintf_r, (struct _reent *, FILE *, const char *, __VALIST)
452
int	_EXFUN(_vfprintf_r, (struct _reent *, FILE *__restrict, const char *__restrict, __VALIST)
459
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
453
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
460
int	_EXFUN(_vfscanf_r, (struct _reent *, FILE *, const char *, __VALIST)
454
int	_EXFUN(_vfscanf_r, (struct _reent *, FILE *__restrict, const char *__restrict, __VALIST)
461
               _ATTRIBUTE ((__format__ (__scanf__, 3, 0))));
455
               _ATTRIBUTE ((__format__ (__scanf__, 3, 0))));
462
int	_EXFUN(_viprintf_r, (struct _reent *, const char *, __VALIST)
456
int	_EXFUN(_viprintf_r, (struct _reent *, const char *, __VALIST)
463
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
457
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
464
int	_EXFUN(_viscanf_r, (struct _reent *, const char *, __VALIST)
458
int	_EXFUN(_viscanf_r, (struct _reent *, const char *, __VALIST)
465
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
459
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
466
int	_EXFUN(_vprintf_r, (struct _reent *, const char *, __VALIST)
460
int	_EXFUN(_vprintf_r, (struct _reent *, const char *__restrict, __VALIST)
467
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
461
               _ATTRIBUTE ((__format__ (__printf__, 2, 0))));
468
int	_EXFUN(_vscanf_r, (struct _reent *, const char *, __VALIST)
462
int	_EXFUN(_vscanf_r, (struct _reent *, const char *__restrict, __VALIST)
469
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
463
               _ATTRIBUTE ((__format__ (__scanf__, 2, 0))));
470
int	_EXFUN(_vsiprintf_r, (struct _reent *, char *, const char *, __VALIST)
464
int	_EXFUN(_vsiprintf_r, (struct _reent *, char *, const char *, __VALIST)
471
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
465
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
472
int	_EXFUN(_vsiscanf_r, (struct _reent *, const char *, const char *, __VALIST)
466
int	_EXFUN(_vsiscanf_r, (struct _reent *, const char *, const char *, __VALIST)
473
               _ATTRIBUTE ((__format__ (__scanf__, 3, 0))));
467
               _ATTRIBUTE ((__format__ (__scanf__, 3, 0))));
474
int	_EXFUN(_vsniprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST)
468
int	_EXFUN(_vsniprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST)
475
               _ATTRIBUTE ((__format__ (__printf__, 4, 0))));
469
               _ATTRIBUTE ((__format__ (__printf__, 4, 0))));
476
int	_EXFUN(_vsnprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST)
470
int	_EXFUN(_vsnprintf_r, (struct _reent *, char *__restrict, size_t, const char *__restrict, __VALIST)
477
               _ATTRIBUTE ((__format__ (__printf__, 4, 0))));
471
               _ATTRIBUTE ((__format__ (__printf__, 4, 0))));
478
int	_EXFUN(_vsprintf_r, (struct _reent *, char *, const char *, __VALIST)
472
int	_EXFUN(_vsprintf_r, (struct _reent *, char *__restrict, const char *__restrict, __VALIST)
479
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
473
               _ATTRIBUTE ((__format__ (__printf__, 3, 0))));
480
int	_EXFUN(_vsscanf_r, (struct _reent *, const char *, const char *, __VALIST)
474
int	_EXFUN(_vsscanf_r, (struct _reent *, const char *__restrict, const char *__restrict, __VALIST)
481
               _ATTRIBUTE ((__format__ (__scanf__, 3, 0))));
475
               _ATTRIBUTE ((__format__ (__scanf__, 3, 0))));
Line 482... Line 476...
482
 
476
 
Line 483... Line 477...
483
/* Other extensions.  */
477
/* Other extensions.  */
Line 520... Line 514...
520
 */
514
 */
Line 521... Line 515...
521
 
515
 
522
#ifndef __STRICT_ANSI__
516
#ifndef __STRICT_ANSI__
523
# ifdef __LARGE64_FILES
517
# ifdef __LARGE64_FILES
524
FILE	*_EXFUN(funopen,(const _PTR __cookie,
518
FILE	*_EXFUN(funopen,(const _PTR __cookie,
-
 
519
		int (*__readfn)(_PTR __c, char *__buf,
525
		int (*__readfn)(_PTR __c, char *__buf, int __n),
520
				_READ_WRITE_BUFSIZE_TYPE __n),
-
 
521
		int (*__writefn)(_PTR __c, const char *__buf,
526
		int (*__writefn)(_PTR __c, const char *__buf, int __n),
522
				 _READ_WRITE_BUFSIZE_TYPE __n),
527
		_fpos64_t (*__seekfn)(_PTR __c, _fpos64_t __off, int __whence),
523
		_fpos64_t (*__seekfn)(_PTR __c, _fpos64_t __off, int __whence),
528
		int (*__closefn)(_PTR __c)));
524
		int (*__closefn)(_PTR __c)));
529
FILE	*_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie,
525
FILE	*_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie,
-
 
526
		int (*__readfn)(_PTR __c, char *__buf,
530
		int (*__readfn)(_PTR __c, char *__buf, int __n),
527
				_READ_WRITE_BUFSIZE_TYPE __n),
-
 
528
		int (*__writefn)(_PTR __c, const char *__buf,
531
		int (*__writefn)(_PTR __c, const char *__buf, int __n),
529
				 _READ_WRITE_BUFSIZE_TYPE __n),
532
		_fpos64_t (*__seekfn)(_PTR __c, _fpos64_t __off, int __whence),
530
		_fpos64_t (*__seekfn)(_PTR __c, _fpos64_t __off, int __whence),
533
		int (*__closefn)(_PTR __c)));
531
		int (*__closefn)(_PTR __c)));
534
# else
532
# else
535
FILE	*_EXFUN(funopen,(const _PTR __cookie,
533
FILE	*_EXFUN(funopen,(const _PTR __cookie,
-
 
534
		int (*__readfn)(_PTR __cookie, char *__buf,
536
		int (*__readfn)(_PTR __cookie, char *__buf, int __n),
535
				_READ_WRITE_BUFSIZE_TYPE __n),
-
 
536
		int (*__writefn)(_PTR __cookie, const char *__buf,
537
		int (*__writefn)(_PTR __cookie, const char *__buf, int __n),
537
				 _READ_WRITE_BUFSIZE_TYPE __n),
538
		fpos_t (*__seekfn)(_PTR __cookie, fpos_t __off, int __whence),
538
		fpos_t (*__seekfn)(_PTR __cookie, fpos_t __off, int __whence),
539
		int (*__closefn)(_PTR __cookie)));
539
		int (*__closefn)(_PTR __cookie)));
540
FILE	*_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie,
540
FILE	*_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie,
-
 
541
		int (*__readfn)(_PTR __cookie, char *__buf,
541
		int (*__readfn)(_PTR __cookie, char *__buf, int __n),
542
				_READ_WRITE_BUFSIZE_TYPE __n),
-
 
543
		int (*__writefn)(_PTR __cookie, const char *__buf,
542
		int (*__writefn)(_PTR __cookie, const char *__buf, int __n),
544
				 _READ_WRITE_BUFSIZE_TYPE __n),
543
		fpos_t (*__seekfn)(_PTR __cookie, fpos_t __off, int __whence),
545
		fpos_t (*__seekfn)(_PTR __cookie, fpos_t __off, int __whence),
544
		int (*__closefn)(_PTR __cookie)));
546
		int (*__closefn)(_PTR __cookie)));
Line 545... Line 547...
545
# endif /* !__LARGE64_FILES */
547
# endif /* !__LARGE64_FILES */