llvm-mos-sdk
Macros | Typedefs | Functions | Variables
stdio.h File Reference
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for stdio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BUFSIZ   256
 
#define EOF   (-1)
 
#define FOPEN_MAX   8
 
#define _IOFBF   (1u << 0)
 
#define _IOLBF   (1u << 1)
 
#define _IONBF   (1u << 2)
 
#define L_tmpnam   6
 
#define SEEK_SET   0
 
#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define TMP_MAX   25
 

Typedefs

typedef struct _FILE FILE
 
typedef uint32_t fpos_t
 

Functions

int remove (const char *filename)
 
int rename (const char *old, const char *_new)
 
FILEtmpfile (void)
 
char * tmpnam (char *s)
 
int fclose (FILE *stream)
 
int fflush (FILE *stream)
 
FILEfopen (const char *__restrict__ filename, const char *__restrict__ mode)
 
FILEfreopen (const char *__restrict__ filename, const char *__restrict__ mode, FILE *__restrict__ stream)
 
void setbuf (FILE *__restrict__ stream, char *__restrict__ buf)
 
int setvbuf (FILE *__restrict__ stream, char *__restrict__ buf, int mode, size_t size)
 
int fprintf (FILE *__restrict__ stream, const char *__restrict__ format,...)
 
int fscanf (FILE *__restrict__ stream, const char *__restrict__ format,...)
 
int printf (const char *__restrict__ format,...)
 
int scanf (const char *__restrict__ format,...)
 
int snprintf (char *__restrict__ s, size_t n, const char *__restrict__ format,...)
 
int sprintf (char *__restrict__ s, const char *__restrict__ format,...)
 
int sscanf (const char *__restrict__ s, const char *__restrict__ format,...)
 
int vfprintf (FILE *__restrict__ stream, const char *__restrict__ format, va_list arg)
 
int vfscanf (FILE *__restrict__ stream, const char *__restrict__ format, va_list arg)
 
int vprintf (const char *__restrict__ format, va_list arg)
 
int vscanf (const char *__restrict__ format, va_list arg)
 
int vsnprintf (char *__restrict__ s, size_t n, const char *__restrict__ format, va_list arg)
 
int vsprintf (char *__restrict__ s, const char *__restrict__ format, va_list arg)
 
int vsscanf (const char *__restrict__ s, const char *__restrict__ format, va_list arg)
 
int fgetc (FILE *stream)
 
char * fgets (char *__restrict__ s, int n, FILE *__restrict__ stream)
 
int fputc (int c, FILE *stream)
 
int fputs (const char *__restrict__ s, FILE *__restrict__ stream)
 
int getc (FILE *stream)
 
int getchar (void)
 
int putc (int c, FILE *stream)
 
int putchar (int c)
 
int puts (const char *s)
 
int ungetc (int c, FILE *stream)
 
size_t fread (void *__restrict ptr, size_t size, size_t nmemb, FILE *__restrict__ stream)
 
size_t fwrite (const void *__restrict ptr, size_t size, size_t nmemb, FILE *__restrict__ stream)
 
int fgetpos (FILE *__restrict__ stream, fpos_t *__restrict__ pos)
 
int fseek (FILE *stream, long int offset, int whence)
 
int fsetpos (FILE *stream, const fpos_t *pos)
 
long int ftell (FILE *stream)
 
void rewind (FILE *stream)
 
void clearerr (FILE *stream)
 
int feof (FILE *stream)
 
int ferror (FILE *stream)
 
void perror (const char *s)
 

Variables

FILEstdin
 
FILEstdout
 
FILEstderr
 
void * ctx
 
void int(* write )(char c, void *ctx))
 
int(* read )(void *ctx))
 

Macro Definition Documentation

◆ _IOFBF

#define _IOFBF   (1u << 0)

◆ _IOLBF

#define _IOLBF   (1u << 1)

◆ _IONBF

#define _IONBF   (1u << 2)

◆ BUFSIZ

#define BUFSIZ   256

◆ EOF

#define EOF   (-1)

◆ FOPEN_MAX

#define FOPEN_MAX   8

◆ L_tmpnam

#define L_tmpnam   6

◆ SEEK_CUR

#define SEEK_CUR   1

◆ SEEK_END

#define SEEK_END   2

◆ SEEK_SET

#define SEEK_SET   0

◆ TMP_MAX

#define TMP_MAX   25

Typedef Documentation

◆ FILE

typedef struct _FILE FILE

◆ fpos_t

typedef uint32_t fpos_t

Function Documentation

◆ clearerr()

void clearerr ( FILE stream)

◆ fclose()

int fclose ( FILE stream)

◆ feof()

int feof ( FILE stream)

◆ ferror()

int ferror ( FILE stream)

◆ fflush()

int fflush ( FILE stream)

◆ fgetc()

int fgetc ( FILE stream)

◆ fgetpos()

int fgetpos ( FILE *__restrict__  stream,
fpos_t *__restrict__  pos 
)

◆ fgets()

char* fgets ( char *__restrict__  s,
int  n,
FILE *__restrict__  stream 
)

◆ fopen()

FILE* fopen ( const char *__restrict__  filename,
const char *__restrict__  mode 
)

◆ fprintf()

int fprintf ( FILE *__restrict__  stream,
const char *__restrict__  format,
  ... 
)

◆ fputc()

int fputc ( int  c,
FILE stream 
)

◆ fputs()

int fputs ( const char *__restrict__  s,
FILE *__restrict__  stream 
)

◆ fread()

size_t fread ( void *__restrict  ptr,
size_t  size,
size_t  nmemb,
FILE *__restrict__  stream 
)

◆ freopen()

FILE* freopen ( const char *__restrict__  filename,
const char *__restrict__  mode,
FILE *__restrict__  stream 
)

◆ fscanf()

int fscanf ( FILE *__restrict__  stream,
const char *__restrict__  format,
  ... 
)

◆ fseek()

int fseek ( FILE stream,
long int  offset,
int  whence 
)

◆ fsetpos()

int fsetpos ( FILE stream,
const fpos_t pos 
)

◆ ftell()

long int ftell ( FILE stream)

◆ fwrite()

size_t fwrite ( const void *__restrict  ptr,
size_t  size,
size_t  nmemb,
FILE *__restrict__  stream 
)

◆ getc()

int getc ( FILE stream)

◆ getchar()

int getchar ( void  )

◆ perror()

void perror ( const char *  s)

◆ printf()

int printf ( const char *__restrict__  format,
  ... 
)

◆ putc()

int putc ( int  c,
FILE stream 
)

◆ putchar()

int putchar ( int  c)

◆ puts()

int puts ( const char *  s)

◆ remove()

int remove ( const char *  filename)

◆ rename()

int rename ( const char *  old,
const char *  _new 
)

◆ rewind()

void rewind ( FILE stream)

◆ scanf()

int scanf ( const char *__restrict__  format,
  ... 
)

◆ setbuf()

void setbuf ( FILE *__restrict__  stream,
char *__restrict__  buf 
)

◆ setvbuf()

int setvbuf ( FILE *__restrict__  stream,
char *__restrict__  buf,
int  mode,
size_t  size 
)

◆ snprintf()

int snprintf ( char *__restrict__  s,
size_t  n,
const char *__restrict__  format,
  ... 
)

◆ sprintf()

int sprintf ( char *__restrict__  s,
const char *__restrict__  format,
  ... 
)

◆ sscanf()

int sscanf ( const char *__restrict__  s,
const char *__restrict__  format,
  ... 
)

◆ tmpfile()

FILE* tmpfile ( void  )

◆ tmpnam()

char* tmpnam ( char *  s)

◆ ungetc()

int ungetc ( int  c,
FILE stream 
)

◆ vfprintf()

int vfprintf ( FILE *__restrict__  stream,
const char *__restrict__  format,
va_list  arg 
)

◆ vfscanf()

int vfscanf ( FILE *__restrict__  stream,
const char *__restrict__  format,
va_list  arg 
)

◆ vprintf()

int vprintf ( const char *__restrict__  format,
va_list  arg 
)

◆ vscanf()

int vscanf ( const char *__restrict__  format,
va_list  arg 
)

◆ vsnprintf()

int vsnprintf ( char *__restrict__  s,
size_t  n,
const char *__restrict__  format,
va_list  arg 
)

◆ vsprintf()

int vsprintf ( char *__restrict__  s,
const char *__restrict__  format,
va_list  arg 
)

◆ vsscanf()

int vsscanf ( const char *__restrict__  s,
const char *__restrict__  format,
va_list  arg 
)

Variable Documentation

◆ ctx

void* ctx

◆ read

int(* read) (void *ctx))

◆ stderr

FILE* stderr

◆ stdin

FILE* stdin

◆ stdout

FILE* stdout

◆ write

void int(* write) (char c, void *ctx))