232#if !defined(__DOXYGEN__)
249#define __SUNGET 0x040
250#define __SMALLOC 0x80
260 int (*put)(char,
struct __file *);
261 int (*get)(
struct __file *);
281#define stdin (__iob[0])
290#define stdout (__iob[1])
301#define stderr (__iob[2])
316#define fdev_set_udata(stream, u) do { (stream)->udata = u; } while(0)
320#define fdev_get_udata(stream) ((stream)->udata)
322#if defined(__DOXYGEN__)
343#define fdev_setup_stream(stream, put, get, rwflag)
345#define fdev_setup_stream(stream, p, g, f) \
349 (stream)->flags = f; \
350 (stream)->udata = 0; \
354#define _FDEV_SETUP_READ __SRD
355#define _FDEV_SETUP_WRITE __SWR
356#define _FDEV_SETUP_RW (__SRD|__SWR)
362#define _FDEV_ERR (-1)
368#define _FDEV_EOF (-2)
370#if defined(__DOXYGEN__)
380#define FDEV_SETUP_STREAM(put, get, rwflag)
385#define FDEV_SETUP_STREAM(PU, GE, FL) \
402#if !defined(__DOXYGEN__)
407extern struct __file *__iob[];
409#if defined(__STDIO_FDEVOPEN_COMPAT_12)
415extern FILE *
fdevopen(
int (*__put)(
char),
int (*__get)(
void),
416 int __opts __attribute__((__unused__)));
447#define fdev_close() ((void)0)
648extern int vfprintf_P(
FILE *__stream,
const char *__fmt, va_list __ap);
655extern int fputc(
int __c,
FILE *__stream);
657#if !defined(__DOXYGEN__)
660extern int putc(
int __c,
FILE *__stream);
672#define putc(__c, __stream) fputc(__c, __stream)
677#define putchar(__c) fputc(__c, stdout)
683extern int printf(
const char *__fmt, ...);
689extern int printf_P(
const char *__fmt, ...);
697extern int vprintf(
const char *__fmt, va_list __ap);
703extern int sprintf(
char *__s,
const char *__fmt, ...);
709extern int sprintf_P(
char *__s,
const char *__fmt, ...);
719extern int snprintf(
char *__s,
size_t __n,
const char *__fmt, ...);
725extern int snprintf_P(
char *__s,
size_t __n,
const char *__fmt, ...);
731extern int vsprintf(
char *__s,
const char *__fmt, va_list __ap);
737extern int vsprintf_P(
char *__s,
const char *__fmt, va_list __ap);
747extern int vsnprintf(
char *__s,
size_t __n,
const char *__fmt, va_list __ap);
753extern int vsnprintf_P(
char *__s,
size_t __n,
const char *__fmt, va_list __ap);
758extern int fprintf(
FILE *__stream,
const char *__fmt, ...);
771extern int fputs(
const char *__str,
FILE *__stream);
777extern int fputs_P(
const char *__str,
FILE *__stream);
783extern int puts(
const char *__str);
789extern int puts_P(
const char *__str);
798extern size_t fwrite(
const void *__ptr,
size_t __size,
size_t __nmemb,
FILE *__stream);
808#if !defined(__DOXYGEN__)
823#define getc(__stream) fgetc(__stream)
829#define getchar() fgetc(stdin)
857extern char *
fgets(
char *__str,
int __size,
FILE *__stream);
864extern char *
gets(
char *__str);
875extern size_t fread(
void *__ptr,
size_t __size,
size_t __nmemb,
FILE *__stream);
897extern int vfscanf(
FILE *__stream,
const char *__fmt, va_list __ap);
903extern int vfscanf_P(
FILE *__stream,
const char *__fmt, va_list __ap);
911extern int fscanf(
FILE *__stream,
const char *__fmt, ...);
917extern int fscanf_P(
FILE *__stream,
const char *__fmt, ...);
924extern int scanf(
const char *__fmt, ...);
930extern int scanf_P(
const char *__fmt, ...);
938extern int vscanf(
const char *__fmt, va_list __ap);
946extern int sscanf(
const char *__buf,
const char *__fmt, ...);
952extern int sscanf_P(
const char *__buf,
const char *__fmt, ...);
967__extension__
typedef long long fpos_t;
968extern int fgetpos(
FILE *stream, fpos_t *pos);
969extern FILE *fopen(
const char *path,
const char *mode);
970extern FILE *freopen(
const char *path,
const char *mode,
FILE *stream);
971extern FILE *fdopen(
int,
const char *);
972extern int fseek(
FILE *stream,
long offset,
int whence);
973extern int fsetpos(
FILE *stream, fpos_t *pos);
974extern long ftell(
FILE *stream);
975extern int fileno(
FILE *);
976extern void perror(
const char *s);
977extern int remove(
const char *pathname);
978extern int rename(
const char *oldpath,
const char *newpath);
979extern void rewind(
FILE *stream);
980extern void setbuf(
FILE *stream,
char *buf);
981extern int setvbuf(
FILE *stream,
char *buf,
int mode,
size_t size);
982extern FILE *tmpfile(
void);
983extern char *tmpnam (
char *s);
unsigned char uint8_t
Definition: stdint.h:88
int vprintf(const char *__fmt, va_list __ap)
Definition: vprintf.c:35
int fscanf(FILE *__stream, const char *__fmt,...)
Definition: fscanf.c:35
int fprintf(FILE *__stream, const char *__fmt,...)
Definition: fprintf.c:35
int scanf_P(const char *__fmt,...)
Definition: scanf_p.c:36
int vsprintf(char *__s, const char *__fmt, va_list __ap)
Definition: vsprintf.c:37
int vsnprintf(char *__s, size_t __n, const char *__fmt, va_list __ap)
Definition: vsnprintf.c:36
int fputs(const char *__str, FILE *__stream)
Definition: fputs.c:35
#define putc(__c, __stream)
Definition: stdio.h:672
int sprintf_P(char *__s, const char *__fmt,...)
Definition: sprintf_p.c:37
int puts(const char *__str)
Definition: puts.c:35
int fprintf_P(FILE *__stream, const char *__fmt,...)
Definition: fprintf_p.c:36
int fputs_P(const char *__str, FILE *__stream)
Definition: fputs_p.c:36
int scanf(const char *__fmt,...)
Definition: scanf.c:35
int printf_P(const char *__fmt,...)
Definition: printf_p.c:36
int feof(FILE *__stream)
Definition: feof.c:37
int printf(const char *__fmt,...)
Definition: printf.c:35
FILE * fdevopen(int(*put)(char, FILE *), int(*get)(FILE *))
Definition: fdevopen.c:84
int snprintf_P(char *__s, size_t __n, const char *__fmt,...)
Definition: snprintf_p.c:36
size_t fread(void *__ptr, size_t __size, size_t __nmemb, FILE *__stream)
Definition: fread.c:35
int sscanf(const char *__buf, const char *__fmt,...)
Definition: sscanf.c:37
int vfprintf_P(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfprintf_p.c:36
int sprintf(char *__s, const char *__fmt,...)
Definition: sprintf.c:37
#define putchar(__c)
Definition: stdio.h:677
int vfscanf(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfscanf.c:827
char * gets(char *__str)
Definition: gets.c:35
int vfscanf_P(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfscanf_p.c:36
int snprintf(char *__s, size_t __n, const char *__fmt,...)
Definition: snprintf.c:36
int fscanf_P(FILE *__stream, const char *__fmt,...)
Definition: fscanf_p.c:36
int fgetc(FILE *__stream)
Definition: fgetc.c:35
int vscanf(const char *__fmt, va_list __ap)
Definition: vscanf.c:35
int vfprintf(FILE *__stream, const char *__fmt, va_list __ap)
int ferror(FILE *__stream)
Definition: ferror.c:37
void clearerr(FILE *__stream)
Definition: clearerr.c:37
int puts_P(const char *__str)
Definition: puts_p.c:36
int ungetc(int __c, FILE *__stream)
Definition: ungetc.c:35
int vsprintf_P(char *__s, const char *__fmt, va_list __ap)
Definition: vsprintf_p.c:37
#define getchar()
Definition: stdio.h:829
int vsnprintf_P(char *__s, size_t __n, const char *__fmt, va_list __ap)
Definition: vsnprintf_p.c:36
#define getc(__stream)
Definition: stdio.h:823
int fclose(FILE *__stream)
Definition: fclose.c:37
int fflush(FILE *stream)
Definition: fflush.c:35
char * fgets(char *__str, int __size, FILE *__stream)
Definition: fgets.c:35
size_t fwrite(const void *__ptr, size_t __size, size_t __nmemb, FILE *__stream)
Definition: fwrite.c:35
int sscanf_P(const char *__buf, const char *__fmt,...)
Definition: sscanf_p.c:37
struct __file FILE
Definition: stdio.h:272
int fputc(int __c, FILE *__stream)
Definition: fputc.c:35