Back to home page

Quest Cross Reference

 
 

    


Warning, cross-references for /libc/include/stdio.h need to be fixed.

0001 /*                    The Quest Operating System
0002  *  Copyright (C) 2005-2010  Richard West, Boston University
0003  *
0004  *  This program is free software: you can redistribute it and/or modify
0005  *  it under the terms of the GNU General Public License as published by
0006  *  the Free Software Foundation, either version 3 of the License, or
0007  *  (at your option) any later version.
0008  *
0009  *  This program is distributed in the hope that it will be useful,
0010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  *  GNU General Public License for more details.
0013  *
0014  *  You should have received a copy of the GNU General Public License
0015  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
0016  */
0017 
0018 #include "syscall.h"
0019 
0020 #ifndef NULL
0021 #define NULL 0
0022 #endif 
0023 
0024 #ifndef _SIZE_T
0025 typedef int size_t;
0026 #define _SIZE_T 1
0027 #endif
0028 
0029 typedef struct _file {
0030   int fd;
0031 
0032 } FILE;
0033 
0034 extern FILE *fopen( const char *filename, const char *mode );
0035 extern int printf( const char *format, ... );
0036 extern int fprintf( FILE *stream, const char *format, ... );
0037 extern int sprintf( char *str, const char *format, ... );
0038 
0039 extern void itoa( char *buf, int base, int d );
0040 
0041 extern int fclose( FILE *stream );
0042 
0043 extern size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
0044 extern size_t   fwrite(const  void  *ptr,  size_t  size,  size_t  nmemb,  FILE *stream);
0045 
0046 extern int puts( const char *s );
0047 
0048 /* 
0049  * Local Variables:
0050  * indent-tabs-mode: nil
0051  * mode: C
0052  * c-file-style: "gnu"
0053  * c-basic-offset: 2
0054  * End: 
0055  */
0056 
0057 /* vi: set et sw=2 sts=2: */