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


Ignore:
Timestamp:
2010-03-15T19:35:25Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6092b56e
Parents:
92307f1 (diff), 4684368 (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 from bzr://bzr.helenos.org/head.

File:
1 edited

Legend:

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

    r92307f1 r858fc90  
    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.