nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
stdio.h
Go to the documentation of this file.
1 
14 typedef struct file FILE;
15 
20 #ifndef EOF
21 # define EOF (-1)
22 #endif
23 
24 /* The possibilities for the third argument to `fseek'.
25  * These values should not be changed.
26  */
27 
29 #define SEEK_SET 0
30 
31 #define SEEK_CUR 1
32 
33 #define SEEK_END 2
34 
35 #define BUFSIZ 512
36 
37 #define stdin thread_get_stdin()
38 #define stdout thread_get_stdout()
39 #define stderr thread_get_stderr()
40 
48 #define putc(c, stream) fputc(c, stream)
49 
56 #define putchar(c) fputc(c, stdout)
57 
64 #define puts(s) fputs(s, stdout)
65 
72 extern int printf(const char *format, ...);
73 
81 extern int fprintf(FILE *stream, const char *format, ...);
82 
90 extern int sprintf(char *str, const char *format, ...);
91 
100 extern int snprintf(char *str, size_t size, const char *format, ...);
101 
108 extern int fputc(int c, FILE *stream);
109 
116 extern int fputs(const char *s, FILE *stream);
117 
123 extern int fflush(FILE *stream);
124 
125 extern void clearerr(FILE *stream);
126 
127 extern int feof(FILE *stream);
128 
129 extern int ferror(FILE *stream);
130 
131 extern int fileno(FILE *stream);
132