237 #if !defined(__DOXYGEN__) 250 #define __SSTR 0x0004 251 #define __SPGM 0x0008 252 #define __SERR 0x0010 253 #define __SEOF 0x0020 254 #define __SUNGET 0x040 255 #define __SMALLOC 0x80 259 #define __SLBF 0x0200 260 #define __SNBF 0x0400 261 #define __SMBF 0x0800 265 int (*put)(char,
struct __file *);
266 int (*
get)(
struct __file *);
286 #define stdin (__iob[0]) 295 #define stdout (__iob[1]) 306 #define stderr (__iob[2]) 321 #define fdev_set_udata(stream, u) do { (stream)->udata = u; } while(0) 325 #define fdev_get_udata(stream) ((stream)->udata) 327 #if defined(__DOXYGEN__) 348 #define fdev_setup_stream(stream, put, get, rwflag) 350 #define fdev_setup_stream(stream, p, g, f) \ 354 (stream)->flags = f; \ 355 (stream)->udata = 0; \ 359 #define _FDEV_SETUP_READ __SRD 360 #define _FDEV_SETUP_WRITE __SWR 361 #define _FDEV_SETUP_RW (__SRD|__SWR) 368 #define _FDEV_ERR (-1) 375 #define _FDEV_EOF (-2) 377 #if defined(__DOXYGEN__) 387 #define FDEV_SETUP_STREAM(put, get, rwflag) 389 #define FDEV_SETUP_STREAM(p, g, f) \ 402 #if !defined(__DOXYGEN__) 407 extern struct __file *__iob[];
409 #if defined(__STDIO_FDEVOPEN_COMPAT_12) 415 extern FILE *
fdevopen(
int (*__put)(
char),
int (*__get)(
void),
447 #if defined(__DOXYGEN__) 448 # define fdev_close() 450 # define fdev_close() ((void)0) 610 extern int vfprintf(
FILE *__stream,
const char *__fmt, va_list __ap);
616 extern int vfprintf_P(
FILE *__stream,
const char *__fmt, va_list __ap);
623 extern int fputc(
int __c,
FILE *__stream);
625 #if !defined(__DOXYGEN__) 628 extern int putc(
int __c,
FILE *__stream);
640 #define putc(__c, __stream) fputc(__c, __stream) 645 #define putchar(__c) fputc(__c, stdout) 651 extern int printf(
const char *__fmt, ...);
657 extern int printf_P(
const char *__fmt, ...);
665 extern int vprintf(
const char *__fmt, va_list __ap);
671 extern int sprintf(
char *__s,
const char *__fmt, ...);
677 extern int sprintf_P(
char *__s,
const char *__fmt, ...);
687 extern int snprintf(
char *__s,
size_t __n,
const char *__fmt, ...);
693 extern int snprintf_P(
char *__s,
size_t __n,
const char *__fmt, ...);
699 extern int vsprintf(
char *__s,
const char *__fmt, va_list ap);
705 extern int vsprintf_P(
char *__s,
const char *__fmt, va_list ap);
715 extern int vsnprintf(
char *__s,
size_t __n,
const char *__fmt, va_list ap);
721 extern int vsnprintf_P(
char *__s,
size_t __n,
const char *__fmt, va_list ap);
726 extern int fprintf(
FILE *__stream,
const char *__fmt, ...);
732 extern int fprintf_P(
FILE *__stream,
const char *__fmt, ...);
739 extern int fputs(
const char *__str,
FILE *__stream);
744 extern int fputs_P(
const char *__str,
FILE *__stream);
750 extern int puts(
const char *__str);
755 extern int puts_P(
const char *__str);
764 extern size_t fwrite(
const void *__ptr,
size_t __size,
size_t __nmemb,
775 #if !defined(__DOXYGEN__) 790 #define getc(__stream) fgetc(__stream) 796 #define getchar() fgetc(stdin) 824 extern char *
fgets(
char *__str,
int __size,
FILE *__stream);
831 extern char *
gets(
char *__str);
842 extern size_t fread(
void *__ptr,
size_t __size,
size_t __nmemb,
850 #if !defined(__DOXYGEN__) 852 #define clearerror(s) do { (s)->flags &= ~(__SERR | __SEOF); } while(0) 861 #if !defined(__DOXYGEN__) 863 #define feof(s) ((s)->flags & __SEOF) 872 #if !defined(__DOXYGEN__) 874 #define ferror(s) ((s)->flags & __SERR) 877 extern int vfscanf(
FILE *__stream,
const char *__fmt, va_list __ap);
882 extern int vfscanf_P(
FILE *__stream,
const char *__fmt, va_list __ap);
890 extern int fscanf(
FILE *__stream,
const char *__fmt, ...);
895 extern int fscanf_P(
FILE *__stream,
const char *__fmt, ...);
902 extern int scanf(
const char *__fmt, ...);
907 extern int scanf_P(
const char *__fmt, ...);
915 extern int vscanf(
const char *__fmt, va_list __ap);
923 extern int sscanf(
const char *__buf,
const char *__fmt, ...);
928 extern int sscanf_P(
const char *__buf,
const char *__fmt, ...);
930 #if defined(__DOXYGEN__) 950 __extension__
typedef long long fpos_t;
951 extern int fgetpos(
FILE *stream, fpos_t *pos);
952 extern FILE *fopen(
const char *path,
const char *mode);
953 extern FILE *freopen(
const char *path,
const char *mode,
FILE *stream);
954 extern FILE *fdopen(
int,
const char *);
955 extern int fseek(
FILE *stream,
long offset,
int whence);
956 extern int fsetpos(
FILE *stream, fpos_t *pos);
957 extern long ftell(
FILE *stream);
958 extern int fileno(
FILE *);
959 extern void perror(
const char *s);
960 extern int remove(
const char *pathname);
961 extern int rename(
const char *oldpath,
const char *newpath);
962 extern void rewind(
FILE *stream);
963 extern void setbuf(
FILE *stream,
char *buf);
964 extern int setvbuf(
FILE *stream,
char *buf,
int mode,
size_t size);
965 extern FILE *tmpfile(
void);
966 extern char *tmpnam (
char *s);
int vfscanf(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfscanf.c:703
int vprintf(const char *__fmt, va_list __ap)
Definition: vprintf.c:38
size_t fwrite(const void *__ptr, size_t __size, size_t __nmemb, FILE *__stream)
Definition: fwrite.c:38
int scanf(const char *__fmt,...)
Definition: scanf.c:38
#define getc(__stream)
Definition: stdio.h:790
struct __file FILE
Definition: stdio.h:277
int vscanf(const char *__fmt, va_list __ap)
Definition: vscanf.c:38
int puts_P(const char *__str)
Definition: puts_p.c:41
int fclose(FILE *__stream)
Definition: fclose.c:40
int sprintf(char *__s, const char *__fmt,...)
Definition: sprintf.c:40
int snprintf_P(char *__s, size_t __n, const char *__fmt,...)
Definition: snprintf_p.c:39
int vfscanf_P(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfscanf_p.c:38
int vsnprintf(char *__s, size_t __n, const char *__fmt, va_list ap)
Definition: vsnprintf.c:39
#define putc(__c, __stream)
Definition: stdio.h:640
int sscanf(const char *__buf, const char *__fmt,...)
Definition: sscanf.c:40
int ferror(FILE *__stream)
Definition: ferror.c:40
int puts(const char *__str)
Definition: puts.c:38
int printf_P(const char *__fmt,...)
Definition: printf_p.c:39
int vsprintf(char *__s, const char *__fmt, va_list ap)
Definition: vsprintf.c:40
static __inline void __attribute__((__always_inline__)) __power_all_enable()
Definition: power.h:1188
FILE * fdevopen(int(*put)(char, FILE *), int(*get)(FILE *))
Definition: fdevopen.c:87
int scanf_P(const char *__fmt,...)
Definition: scanf_p.c:39
int vsprintf_P(char *__s, const char *__fmt, va_list ap)
Definition: vsprintf_p.c:40
char * gets(char *__str)
Definition: gets.c:38
int vfprintf_P(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfprintf_p.c:38
int fputs_P(const char *__str, FILE *__stream)
Definition: fputs_p.c:41
void clearerr(FILE *__stream)
Definition: clearerr.c:40
int fputs(const char *__str, FILE *__stream)
Definition: fputs.c:38
int snprintf(char *__s, size_t __n, const char *__fmt,...)
Definition: snprintf.c:39
#define putchar(__c)
Definition: stdio.h:645
unsigned char uint8_t
Definition: stdint.h:83
int fprintf_P(FILE *__stream, const char *__fmt,...)
Definition: fprintf_p.c:39
int feof(FILE *__stream)
Definition: feof.c:40
int fputc(int __c, FILE *__stream)
Definition: fputc.c:38
int fprintf(FILE *__stream, const char *__fmt,...)
Definition: fprintf.c:38
char * fgets(char *__str, int __size, FILE *__stream)
Definition: fgets.c:38
int fgetc(FILE *__stream)
Definition: fgetc.c:38
size_t fread(void *__ptr, size_t __size, size_t __nmemb, FILE *__stream)
Definition: fread.c:38
int ungetc(int __c, FILE *__stream)
Definition: ungetc.c:38
int sscanf_P(const char *__buf, const char *__fmt,...)
Definition: sscanf_p.c:40
#define getchar()
Definition: stdio.h:796
int vsnprintf_P(char *__s, size_t __n, const char *__fmt, va_list ap)
Definition: vsnprintf_p.c:39
int fscanf(FILE *__stream, const char *__fmt,...)
Definition: fscanf.c:38
int fscanf_P(FILE *__stream, const char *__fmt,...)
Definition: fscanf_p.c:39
int printf(const char *__fmt,...)
Definition: printf.c:38
int sprintf_P(char *__s, const char *__fmt,...)
Definition: sprintf_p.c:40
int vfprintf(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfprintf.c:285