Changeset 76ca3f7 in mainline for uspace/lib/c/include/stdio.h
- Timestamp:
- 2010-03-23T20:49:54Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e417b96
- Parents:
- b48ebd19 (diff), 63f8966 (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
rb48ebd19 r76ca3f7 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 … … 75 75 }; 76 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 86 }; 87 77 88 typedef struct { 78 89 /** Linked list pointer. */ … … 94 105 int phone; 95 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 96 113 /** Buffering type */ 97 114 enum _buffer_type btype; 115 98 116 /** Buffer */ 99 117 uint8_t *buf; 118 100 119 /** Buffer size */ 101 120 size_t buf_size; 121 122 /** Buffer state */ 123 enum _buffer_state buf_state; 124 102 125 /** Buffer I/O pointer */ 103 126 uint8_t *buf_head; 127 128 /** Points to end of occupied space when in read mode. */ 129 uint8_t *buf_tail; 104 130 } FILE; 105 131
Note:
See TracChangeset
for help on using the changeset viewer.