Changes in uspace/lib/c/generic/private/stdio.h [01cc7b4:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/private/stdio.h
r01cc7b4 ra35b458 39 39 #include <stdio.h> 40 40 #include <async.h> 41 #include <stddef.h>42 41 43 42 /** Maximum characters that can be pushed back by ungetc() */ 44 43 #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;56 44 57 45 struct _IO_FILE { … … 59 47 link_t link; 60 48 61 /** Stream operations */62 __stream_ops_t *ops;63 64 49 /** Underlying file descriptor. */ 65 50 int fd; 66 67 /** Instance argument */68 void *arg;69 51 70 52 /** File position. */ … … 76 58 /** End-of-file indicator. */ 77 59 int eof; 60 61 /** KIO indicator */ 62 int kio; 78 63 79 64 /** Session to the file provider */
Note:
See TracChangeset
for help on using the changeset viewer.