Changeset 2070570 in mainline for uspace/lib/libc/include/stdio.h


Ignore:
Timestamp:
2010-03-12T22:00:35Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4684368, 7715994
Parents:
5782081 (diff), facebd56 (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.
Message:

Merge streams improvement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/stdio.h

    r5782081 r2070570  
    7575};
    7676
     77enum _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
    7788typedef struct {
    7889        /** Linked list pointer. */
     
    94105        int phone;
    95106
     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
    96113        /** Buffering type */
    97114        enum _buffer_type btype;
     115
    98116        /** Buffer */
    99117        uint8_t *buf;
     118
    100119        /** Buffer size */
    101120        size_t buf_size;
     121
     122        /** Buffer state */
     123        enum _buffer_state buf_state;
     124
    102125        /** Buffer I/O pointer */
    103126        uint8_t *buf_head;
     127
     128        /** Points to end of occupied space when in read mode. */
     129        uint8_t *buf_tail;
    104130} FILE;
    105131
Note: See TracChangeset for help on using the changeset viewer.