src/include/stdio.h File Reference

#include <ansi.h>
#include <minix/dir.h>

Go to the source code of this file.

Classes

struct  __iobuf

Defines

#define _IOFBF   0x000
#define _IOREAD   0x001
#define _IOWRITE   0x002
#define _IONBF   0x004
#define _IOMYBUF   0x008
#define _IOEOF   0x010
#define _IOERR   0x020
#define _IOLBF   0x040
#define _IOREADING   0x080
#define _IOWRITING   0x100
#define _IOAPPEND   0x200
#define _IOFIFO   0x400
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
#define stdin   (&__stdin)
#define stdout   (&__stdout)
#define stderr   (&__stderr)
#define BUFSIZ   4096
#define NULL   ((void *)0)
#define EOF   (-1)
#define FOPEN_MAX   20
#define FILENAME_MAX   DIRSIZ
#define TMP_MAX   999
#define L_tmpnam   (sizeof("/tmp/") + FILENAME_MAX)
#define __STDIO_VA_LIST__   void *
#define vfscanf   _doscan
#define getchar()   getc(stdin)
#define putchar(c)   putc(c,stdout)
#define getc(p)
#define putc(c, p)
#define feof(p)   (((p)->_flags & _IOEOF) != 0)
#define ferror(p)   (((p)->_flags & _IOERR) != 0)
#define clearerr(p)   ((p)->_flags &= ~(_IOERR|_IOEOF))

Typedefs

typedef struct __iobuf FILE
typedef long int fpos_t
typedef unsigned int size_t

Functions

 _PROTOTYPE (int remove,(const char *_filename))
 _PROTOTYPE (int rename,(const char *_old, const char *_new))
 _PROTOTYPE (FILE *tmpfile,(void))
 _PROTOTYPE (char *tmpnam,(char *_s))
 _PROTOTYPE (int fclose,(FILE *_stream))
 _PROTOTYPE (FILE *fopen,(const char *_filename, const char *_mode))
 _PROTOTYPE (FILE *freopen,(const char *_filename, const char *_mode, FILE *_stream))
 _PROTOTYPE (void setbuf,(FILE *_stream, char *_buf))
 _PROTOTYPE (int setvbuf,(FILE *_stream, char *_buf, int _mode, size_t _size))
 _PROTOTYPE (int fprintf,(FILE *_stream, const char *_format,...))
 _PROTOTYPE (int printf,(const char *_format,...))
 _PROTOTYPE (int sprintf,(char *_s, const char *_format,...))
 _PROTOTYPE (int vfprintf,(FILE *_stream, const char *_format, char *_arg))
 _PROTOTYPE (int vprintf,(const char *_format, char *_arg))
 _PROTOTYPE (int vsprintf,(char *_s, const char *_format, char *_arg))
 _PROTOTYPE (int sscanf,(const char *_s, const char *_format,...))
 _PROTOTYPE (int vsscanf,(const char *_s, const char *_format, char *_arg))
 _PROTOTYPE (char *fgets,(char *_s, int _n, FILE *_stream))
 _PROTOTYPE (int fputc,(int _c, FILE *_stream))
 _PROTOTYPE (int fputs,(const char *_s, FILE *_stream))
 _PROTOTYPE (int getchar,(void))
 _PROTOTYPE (int putchar,(int _c))
 _PROTOTYPE (int puts,(const char *_s))
 _PROTOTYPE (size_t fread,(void *_ptr, size_t _size, size_t _nmemb, FILE *_stream))
 _PROTOTYPE (size_t fwrite,(const void *_ptr, size_t _size, size_t _nmemb, FILE *_stream))
 _PROTOTYPE (int fgetpos,(FILE *_stream, fpos_t *_pos))
 _PROTOTYPE (int fseek,(FILE *_stream, long _offset, int _whence))
 _PROTOTYPE (long ftell,(FILE *_stream))
 _PROTOTYPE (void rewind,(FILE *_stream))
 _PROTOTYPE (void perror,(const char *_s))

Variables

FILE__iotab [FOPEN_MAX]
FILE __stdin
FILE __stdout
FILE __stderr


Define Documentation

#define __STDIO_VA_LIST__   void *

Definition at line 63 of file stdio.h.

#define _IOAPPEND   0x200

Definition at line 38 of file stdio.h.

#define _IOEOF   0x010

Definition at line 33 of file stdio.h.

#define _IOERR   0x020

Definition at line 34 of file stdio.h.

#define _IOFBF   0x000

Definition at line 28 of file stdio.h.

#define _IOFIFO   0x400

Definition at line 39 of file stdio.h.

#define _IOLBF   0x040

Definition at line 35 of file stdio.h.

#define _IOMYBUF   0x008

Definition at line 32 of file stdio.h.

#define _IONBF   0x004

Definition at line 31 of file stdio.h.

#define _IOREAD   0x001

Definition at line 29 of file stdio.h.

#define _IOREADING   0x080

Definition at line 36 of file stdio.h.

#define _IOWRITE   0x002

Definition at line 30 of file stdio.h.

#define _IOWRITING   0x100

Definition at line 37 of file stdio.h.

#define BUFSIZ   4096

Definition at line 52 of file stdio.h.

#define clearerr ( p   )     ((p)->_flags &= ~(_IOERR|_IOEOF))

Definition at line 138 of file stdio.h.

#define EOF   (-1)

Definition at line 54 of file stdio.h.

#define feof ( p   )     (((p)->_flags & _IOEOF) != 0)

Definition at line 136 of file stdio.h.

#define ferror ( p   )     (((p)->_flags & _IOERR) != 0)

Definition at line 137 of file stdio.h.

#define FILENAME_MAX   DIRSIZ

Definition at line 59 of file stdio.h.

#define FOPEN_MAX   20

Definition at line 56 of file stdio.h.

#define getc ( p   ) 

Value:

(--(p)->_count >= 0 ? (int) (*(p)->_ptr++) : \
                                __fillbuf(p))

Definition at line 130 of file stdio.h.

#define getchar ( void   )     getc(stdin)

Definition at line 128 of file stdio.h.

#define L_tmpnam   (sizeof("/tmp/") + FILENAME_MAX)

Definition at line 62 of file stdio.h.

#define NULL   ((void *)0)

Definition at line 53 of file stdio.h.

#define putc ( c,
p   ) 

Value:

(--(p)->_count >= 0 ? \
                         (int) (*(p)->_ptr++ = (c)) : \
                         __flushbuf((c),(p)))

Definition at line 132 of file stdio.h.

#define putchar ( c   )     putc(c,stdout)

Definition at line 129 of file stdio.h.

#define SEEK_CUR   1

Definition at line 45 of file stdio.h.

#define SEEK_END   2

Definition at line 46 of file stdio.h.

#define SEEK_SET   0

Definition at line 44 of file stdio.h.

#define stderr   (&__stderr)

Definition at line 50 of file stdio.h.

#define stdin   (&__stdin)

Definition at line 48 of file stdio.h.

#define stdout   (&__stdout)

Definition at line 49 of file stdio.h.

#define TMP_MAX   999

Definition at line 61 of file stdio.h.

#define vfscanf   _doscan

Definition at line 97 of file stdio.h.


Typedef Documentation

typedef struct __iobuf FILE

typedef long int fpos_t

Definition at line 65 of file stdio.h.

typedef unsigned int size_t

Definition at line 69 of file stdio.h.


Function Documentation

_PROTOTYPE ( void  perror,
(const char *_s)   
)

_PROTOTYPE ( void  rewind,
(FILE *_stream)   
)

_PROTOTYPE ( long  ftell,
(FILE *_stream)   
)

_PROTOTYPE ( int  fseek,
(FILE *_stream, long _offset, int _whence)   
)

_PROTOTYPE ( int  fgetpos,
(FILE *_stream, fpos_t *_pos)   
)

_PROTOTYPE ( size_t  fwrite,
(const void *_ptr, size_t _size, size_t _nmemb, FILE *_stream)   
)

_PROTOTYPE ( size_t  fread,
(void *_ptr, size_t _size, size_t _nmemb, FILE *_stream)   
)

_PROTOTYPE ( int  puts,
(const char *_s)   
)

_PROTOTYPE ( int  putchar,
(int _c)   
)

_PROTOTYPE ( int  getchar,
(void)   
)

_PROTOTYPE ( int  fputs,
(const char *_s, FILE *_stream)   
)

_PROTOTYPE ( int  fputc,
(int _c, FILE *_stream)   
)

_PROTOTYPE ( char *  fgets,
(char *_s, int _n, FILE *_stream)   
)

_PROTOTYPE ( int  vsscanf,
(const char *_s, const char *_format, char *_arg)   
)

_PROTOTYPE ( int  sscanf,
(const char *_s, const char *_format,...)   
)

_PROTOTYPE ( int  vsprintf,
(char *_s, const char *_format, char *_arg)   
)

_PROTOTYPE ( int  vprintf,
(const char *_format, char *_arg)   
)

_PROTOTYPE ( int  vfprintf,
(FILE *_stream, const char *_format, char *_arg)   
)

_PROTOTYPE ( int  sprintf,
(char *_s, const char *_format,...)   
)

_PROTOTYPE ( int  printf,
(const char *_format,...)   
)

_PROTOTYPE ( int  fprintf,
(FILE *_stream, const char *_format,...)   
)

_PROTOTYPE ( int  setvbuf,
(FILE *_stream, char *_buf, int _mode, size_t _size)   
)

_PROTOTYPE ( void  setbuf,
(FILE *_stream, char *_buf)   
)

_PROTOTYPE ( FILE freopen,
(const char *_filename, const char *_mode, FILE *_stream)   
)

_PROTOTYPE ( FILE fopen,
(const char *_filename, const char *_mode)   
)

_PROTOTYPE ( int  fclose,
(FILE *_stream)   
)

_PROTOTYPE ( char *  tmpnam,
(char *_s)   
)

_PROTOTYPE ( FILE tmpfile,
(void)   
)

_PROTOTYPE ( int  rename,
(const char *_old, const char *_new)   
)

_PROTOTYPE ( int  remove,
(const char *_filename)   
)


Variable Documentation

FILE* __iotab[FOPEN_MAX]

Definition at line 23 of file data.c.

Definition at line 18 of file data.c.

Definition at line 8 of file data.c.

Definition at line 13 of file data.c.


Generated on Tue Mar 9 04:36:54 2010 for Minix by  doxygen 1.5.8