summaryrefslogtreecommitdiff
path: root/src/stdio/_stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/_stdio.h')
-rw-r--r--src/stdio/_stdio.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/stdio/_stdio.h b/src/stdio/_stdio.h
index a613f45b..056d58e5 100644
--- a/src/stdio/_stdio.h
+++ b/src/stdio/_stdio.h
@@ -28,8 +28,12 @@ struct __FILE {
char ibuf[BUFSIZ]; /* statically allocated buffer */
size_t bsize; /* how big is the buffer */
size_t bpos; /* current position of next character */
- int bmode; /* 0, _IONBF, _IOLBF, _IOFBF */
- /* 0 means this FILE is currently free */
+ enum {
+ UNUSED = 0,
+ FULL = _IOFBF,
+ LINE = _IOLBF,
+ NONE = _IONBF,
+ } bmode; /* buffer mode or stream available */
int fd; /* the backing file descriptor */