Changeset be2a20ac in mainline for uspace/lib/c/generic/private/stdio.h
- Timestamp:
- 2018-06-14T12:59:51Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ceeac3
- Parents:
- a55d76b1 (diff), 80f345c (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. - git-author:
- Jiri Svoboda <jiri@…> (2018-06-14 12:55:40)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-06-14 12:59:51)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/private/stdio.h
ra55d76b1 rbe2a20ac 39 39 #include <stdio.h> 40 40 #include <async.h> 41 #include <stddef.h> 41 42 42 43 /** Maximum characters that can be pushed back by ungetc() */ 43 44 #define UNGETC_MAX 1 45 46 /** Stream operations */ 47 typedef struct { 48 /** Read from stream */ 49 size_t (*read)(void *buf, size_t size, size_t nmemb, FILE *stream); 50 /** Write to stream */ 51 size_t (*write)(const void *buf, size_t size, size_t nmemb, 52 FILE *stream); 53 /** Flush stream */ 54 int (*flush)(FILE *stream); 55 } __stream_ops_t; 44 56 45 57 struct _IO_FILE { … … 47 59 link_t link; 48 60 61 /** Stream operations */ 62 __stream_ops_t *ops; 63 49 64 /** Underlying file descriptor. */ 50 65 int fd; 66 67 /** Instance argument */ 68 void *arg; 51 69 52 70 /** File position. */ … … 58 76 /** End-of-file indicator. */ 59 77 int eof; 60 61 /** KIO indicator */62 int kio;63 78 64 79 /** Session to the file provider */
Note:
See TracChangeset
for help on using the changeset viewer.