243#if !defined(__DOXYGEN__)
260#define __SUNGET 0x040
261#define __SMALLOC 0x80
271 int (*put)(char,
struct __file *);
272 int (*get)(
struct __file *);
292#define stdin (__iob[0])
301#define stdout (__iob[1])
312#define stderr (__iob[2])
327#define fdev_set_udata(stream, u) do { (stream)->udata = u; } while(0)
331#define fdev_get_udata(stream) ((stream)->udata)
333#if defined(__DOXYGEN__)
354#define fdev_setup_stream(stream, put, get, rwflag)
356#define fdev_setup_stream(stream, p, g, f) \
360 (stream)->flags = f; \
361 (stream)->udata = 0; \
365#define _FDEV_SETUP_READ __SRD
366#define _FDEV_SETUP_WRITE __SWR
367#define _FDEV_SETUP_RW (__SRD|__SWR)
374#define _FDEV_ERR (-1)
381#define _FDEV_EOF (-2)
383#if defined(__DOXYGEN__)
393#define FDEV_SETUP_STREAM(put, get, rwflag)
398#define FDEV_SETUP_STREAM(PU, GE, FL) \
415#if !defined(__DOXYGEN__)
420extern struct __file *__iob[];
422#if defined(__STDIO_FDEVOPEN_COMPAT_12)
428extern FILE *
fdevopen(
int (*__put)(
char),
int (*__get)(
void),
429 int __opts __attribute__((unused)));
460#if defined(__DOXYGEN__)
463# define fdev_close() ((void)0)
623extern int vfprintf(
FILE *__stream,
const char *__fmt, va_list __ap);
629extern int vfprintf_P(
FILE *__stream,
const char *__fmt, va_list __ap);
636extern int fputc(
int __c,
FILE *__stream);
638#if !defined(__DOXYGEN__)
641extern int putc(
int __c,
FILE *__stream);
653#define putc(__c, __stream) fputc(__c, __stream)
658#define putchar(__c) fputc(__c, stdout)
664extern int printf(
const char *__fmt, ...);
670extern int printf_P(
const char *__fmt, ...);
678extern int vprintf(
const char *__fmt, va_list __ap);
684extern int sprintf(
char *__s,
const char *__fmt, ...);
690extern int sprintf_P(
char *__s,
const char *__fmt, ...);
700extern int snprintf(
char *__s,
size_t __n,
const char *__fmt, ...);
706extern int snprintf_P(
char *__s,
size_t __n,
const char *__fmt, ...);
712extern int vsprintf(
char *__s,
const char *__fmt, va_list ap);
718extern int vsprintf_P(
char *__s,
const char *__fmt, va_list ap);
728extern int vsnprintf(
char *__s,
size_t __n,
const char *__fmt, va_list ap);
734extern int vsnprintf_P(
char *__s,
size_t __n,
const char *__fmt, va_list ap);
739extern int fprintf(
FILE *__stream,
const char *__fmt, ...);
752extern int fputs(
const char *__str,
FILE *__stream);
757extern int fputs_P(
const char *__str,
FILE *__stream);
763extern int puts(
const char *__str);
768extern int puts_P(
const char *__str);
777extern size_t fwrite(
const void *__ptr,
size_t __size,
size_t __nmemb,
788#if !defined(__DOXYGEN__)
803#define getc(__stream) fgetc(__stream)
809#define getchar() fgetc(stdin)
837extern char *
fgets(
char *__str,
int __size,
FILE *__stream);
844extern char *
gets(
char *__str);
855extern size_t fread(
void *__ptr,
size_t __size,
size_t __nmemb,
863#if !defined(__DOXYGEN__)
865#define clearerror(s) do { (s)->flags &= ~(__SERR | __SEOF); } while(0)
874#if !defined(__DOXYGEN__)
876#define feof(s) ((s)->flags & __SEOF)
885#if !defined(__DOXYGEN__)
887#define ferror(s) ((s)->flags & __SERR)
890extern int vfscanf(
FILE *__stream,
const char *__fmt, va_list __ap);
895extern int vfscanf_P(
FILE *__stream,
const char *__fmt, va_list __ap);
903extern int fscanf(
FILE *__stream,
const char *__fmt, ...);
908extern int fscanf_P(
FILE *__stream,
const char *__fmt, ...);
915extern int scanf(
const char *__fmt, ...);
920extern int scanf_P(
const char *__fmt, ...);
928extern int vscanf(
const char *__fmt, va_list __ap);
936extern int sscanf(
const char *__buf,
const char *__fmt, ...);
941extern int sscanf_P(
const char *__buf,
const char *__fmt, ...);
943#if defined(__DOXYGEN__)
953static __inline__
int fflush(
FILE *stream __attribute__((unused)))
963__extension__
typedef long long fpos_t;
964extern int fgetpos(
FILE *stream, fpos_t *pos);
965extern FILE *fopen(
const char *path,
const char *mode);
966extern FILE *freopen(
const char *path,
const char *mode,
FILE *stream);
967extern FILE *fdopen(
int,
const char *);
968extern int fseek(
FILE *stream,
long offset,
int whence);
969extern int fsetpos(
FILE *stream, fpos_t *pos);
970extern long ftell(
FILE *stream);
971extern int fileno(
FILE *);
972extern void perror(
const char *s);
973extern int remove(
const char *pathname);
974extern int rename(
const char *oldpath,
const char *newpath);
975extern void rewind(
FILE *stream);
976extern void setbuf(
FILE *stream,
char *buf);
977extern int setvbuf(
FILE *stream,
char *buf,
int mode,
size_t size);
978extern FILE *tmpfile(
void);
979extern char *tmpnam (
char *s);
unsigned char uint8_t
Definition: stdint.h:83
int vprintf(const char *__fmt, va_list __ap)
Definition: vprintf.c:38
int fscanf(FILE *__stream, const char *__fmt,...)
Definition: fscanf.c:38
int fprintf(FILE *__stream, const char *__fmt,...)
Definition: fprintf.c:38
int scanf_P(const char *__fmt,...)
Definition: scanf_p.c:39
int fputs(const char *__str, FILE *__stream)
Definition: fputs.c:38
int vsnprintf_P(char *__s, size_t __n, const char *__fmt, va_list ap)
Definition: vsnprintf_p.c:39
#define putc(__c, __stream)
Definition: stdio.h:653
int sprintf_P(char *__s, const char *__fmt,...)
Definition: sprintf_p.c:40
int puts(const char *__str)
Definition: puts.c:38
int fprintf_P(FILE *__stream, const char *__fmt,...)
Definition: fprintf_p.c:39
int fputs_P(const char *__str, FILE *__stream)
Definition: fputs_p.c:41
int scanf(const char *__fmt,...)
Definition: scanf.c:38
int printf_P(const char *__fmt,...)
Definition: printf_p.c:39
int feof(FILE *__stream)
Definition: feof.c:40
int printf(const char *__fmt,...)
Definition: printf.c:38
FILE * fdevopen(int(*put)(char, FILE *), int(*get)(FILE *))
Definition: fdevopen.c:87
int snprintf_P(char *__s, size_t __n, const char *__fmt,...)
Definition: snprintf_p.c:39
size_t fread(void *__ptr, size_t __size, size_t __nmemb, FILE *__stream)
Definition: fread.c:38
int sscanf(const char *__buf, const char *__fmt,...)
Definition: sscanf.c:40
int vfprintf_P(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfprintf_p.c:38
int sprintf(char *__s, const char *__fmt,...)
Definition: sprintf.c:40
#define putchar(__c)
Definition: stdio.h:658
int vfscanf(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfscanf.c:744
char * gets(char *__str)
Definition: gets.c:38
int vfscanf_P(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfscanf_p.c:38
int snprintf(char *__s, size_t __n, const char *__fmt,...)
Definition: snprintf.c:39
int fscanf_P(FILE *__stream, const char *__fmt,...)
Definition: fscanf_p.c:39
int fgetc(FILE *__stream)
Definition: fgetc.c:38
int vscanf(const char *__fmt, va_list __ap)
Definition: vscanf.c:38
int vfprintf(FILE *__stream, const char *__fmt, va_list __ap)
Definition: vfprintf.c:129
int ferror(FILE *__stream)
Definition: ferror.c:40
void clearerr(FILE *__stream)
Definition: clearerr.c:40
int vsprintf(char *__s, const char *__fmt, va_list ap)
Definition: vsprintf.c:40
int puts_P(const char *__str)
Definition: puts_p.c:41
int ungetc(int __c, FILE *__stream)
Definition: ungetc.c:38
#define getchar()
Definition: stdio.h:809
int vsnprintf(char *__s, size_t __n, const char *__fmt, va_list ap)
Definition: vsnprintf.c:39
#define getc(__stream)
Definition: stdio.h:803
int fclose(FILE *__stream)
Definition: fclose.c:40
char * fgets(char *__str, int __size, FILE *__stream)
Definition: fgets.c:38
size_t fwrite(const void *__ptr, size_t __size, size_t __nmemb, FILE *__stream)
Definition: fwrite.c:38
int sscanf_P(const char *__buf, const char *__fmt,...)
Definition: sscanf_p.c:40
struct __file FILE
Definition: stdio.h:283
int fputc(int __c, FILE *__stream)
Definition: fputc.c:38
int vsprintf_P(char *__s, const char *__fmt, va_list ap)
Definition: vsprintf_p.c:40