Changeset 371bd7d in mainline for uspace/lib/c/include/stdio.h
- Timestamp:
- 2010-03-27T09:22:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a75a2
- Parents:
- cd82bb1 (diff), eaf22d4 (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/c/include/stdio.h
rcd82bb1 r371bd7d 38 38 #include <sys/types.h> 39 39 #include <stdarg.h> 40 #include <str ing.h>40 #include <str.h> 41 41 #include <adt/list.h> 42 42 … … 46 46 #define BUFSIZ 4096 47 47 48 #define DEBUG(fmt, ...) 48 #define DEBUG(fmt, ...)se\ 49 49 { \ 50 50 char _buf[256]; \ … … 56 56 #ifndef SEEK_SET 57 57 #define SEEK_SET 0 58 #endif 59 60 #ifndef SEEK_CUR 58 61 #define SEEK_CUR 1 62 #endif 63 64 #ifndef SEEK_END 59 65 #define SEEK_END 2 60 66 #endif … … 67 73 /** Full buffering */ 68 74 _IOFBF 75 }; 76 77 enum _buffer_state { 78 /** Buffer is empty */ 79 _bs_empty, 80 81 /** Buffer contains data to be written */ 82 _bs_write, 83 84 /** Buffer contains prefetched data for reading */ 85 _bs_read 69 86 }; 70 87 … … 88 105 int phone; 89 106 107 /** 108 * Non-zero if the stream needs sync on fflush(). XXX change 109 * console semantics so that sync is not needed. 110 */ 111 int need_sync; 112 90 113 /** Buffering type */ 91 114 enum _buffer_type btype; 115 92 116 /** Buffer */ 93 117 uint8_t *buf; 118 94 119 /** Buffer size */ 95 120 size_t buf_size; 121 122 /** Buffer state */ 123 enum _buffer_state buf_state; 124 96 125 /** Buffer I/O pointer */ 97 126 uint8_t *buf_head; 127 128 /** Points to end of occupied space when in read mode. */ 129 uint8_t *buf_tail; 98 130 } FILE; 99 131 … … 104 136 /* Character and string input functions */ 105 137 extern int fgetc(FILE *); 106 extern char *fgets(char *, size_t, FILE *);138 extern char *fgets(char *, int, FILE *); 107 139 108 140 extern int getchar(void); … … 135 167 extern size_t fwrite(const void *, size_t, size_t, FILE *); 136 168 137 extern int fseek(FILE *, long, int);169 extern int fseek(FILE *, off64_t, int); 138 170 extern void rewind(FILE *); 139 extern int ftell(FILE *);171 extern off64_t ftell(FILE *); 140 172 extern int feof(FILE *); 141 173
Note:
See TracChangeset
for help on using the changeset viewer.