Changeset efdfebc in mainline for uspace/lib/posix/include/posix/stdio.h
- Timestamp:
- 2012-11-06T21:03:44Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 338810f
- Parents:
- de73242 (diff), 94795812 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/stdio.h
rde73242 refdfebc 39 39 #include "stddef.h" 40 40 #include "unistd.h" 41 #include "libc/ stdio.h"41 #include "libc/io/verify.h" 42 42 #include "sys/types.h" 43 #include " libc/stdarg.h"43 #include "stdarg.h" 44 44 #include "limits.h" 45 46 /* 47 * These are the same as in HelenOS libc. 48 * It would be possible to directly include <stdio.h> but 49 * it is better not to pollute POSIX namespace with other functions 50 * defined in that header. 51 * 52 * Because libposix is always linked with libc, providing only these 53 * forward declarations ought to be enough. 54 */ 55 #define EOF (-1) 56 57 #define BUFSIZ 4096 58 #define SEEK_SET 0 59 #define SEEK_CUR 1 60 #define SEEK_END 2 61 62 typedef struct _IO_FILE FILE; 63 64 extern FILE *stdin; 65 extern FILE *stdout; 66 extern FILE *stderr; 67 68 extern int fgetc(FILE *); 69 extern char *fgets(char *, int, FILE *); 70 71 extern int getchar(void); 72 extern char *gets(char *, size_t); 73 74 extern int fputc(wchar_t, FILE *); 75 extern int fputs(const char *, FILE *); 76 77 extern int putchar(wchar_t); 78 extern int puts(const char *); 79 80 extern int fprintf(FILE *, const char*, ...) PRINTF_ATTRIBUTE(2, 3); 81 extern int vfprintf(FILE *, const char *, va_list); 82 83 extern int printf(const char *, ...) PRINTF_ATTRIBUTE(1, 2); 84 extern int vprintf(const char *, va_list); 85 86 extern int snprintf(char *, size_t , const char *, ...) PRINTF_ATTRIBUTE(3, 4); 87 #ifdef _GNU_SOURCE 88 extern int asprintf(char **, const char *, ...) PRINTF_ATTRIBUTE(2, 3); 89 #endif 90 extern int vsnprintf(char *, size_t, const char *, va_list); 91 92 extern FILE *fopen(const char *, const char *); 93 extern FILE *fdopen(int, const char *); 94 extern int fclose(FILE *); 95 96 extern size_t fread(void *, size_t, size_t, FILE *); 97 extern size_t fwrite(const void *, size_t, size_t, FILE *); 98 99 extern int fseek(FILE *, off64_t, int); 100 extern void rewind(FILE *); 101 extern off64_t ftell(FILE *); 102 extern int feof(FILE *); 103 extern int fileno(FILE *); 104 105 extern int fflush(FILE *); 106 extern int ferror(FILE *); 107 extern void clearerr(FILE *); 108 109 extern void setvbuf(FILE *, void *, int, size_t); 110 111 112 /* POSIX specific stuff. */ 45 113 46 114 /* Identifying the Terminal */
Note:
See TracChangeset
for help on using the changeset viewer.