handle end-of-file while reading file object

This commit is contained in:
Yuichi Nishiwaki
2014-01-16 19:56:45 +09:00
parent 74be43195d
commit 6f32cbdea3
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -17,7 +17,12 @@ enum pic_port_status {
#define PIC_UBUFSIZ 3
enum pic_file_flags {
PIC_FILE_EOF = 1,
};
typedef struct {
short flags;
/* buffered IO */
char *buf;
int mode;