summaryrefslogtreecommitdiff
path: root/fs/fd.h
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-09 16:21:32 +0200
committerMiguel <m.i@gmx.at>2018-10-09 16:21:32 +0200
commit63e5017d9863d4ed215782e469e8ee2c6ff8473d (patch)
treef12d149ffa34e6a39f4bce4fe9a001e4ca8c6027 /fs/fd.h
parenta6a11437a390fb7e95fe995214d82bf5dbfe1eaf (diff)
fix pipers
Diffstat (limited to 'fs/fd.h')
-rw-r--r--fs/fd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fd.h b/fs/fd.h
index 21037c8..4bee666 100644
--- a/fs/fd.h
+++ b/fs/fd.h
@@ -22,6 +22,7 @@ typedef struct fd_struct
bool (*write)(struct fd_struct*,uint8_t);
uint8_t (*read)(struct fd_struct*);
bool (*has)(struct fd_struct*);
+ bool (*can_write)(struct fd_struct*);
bool (*eof)(struct fd_struct*);
bool (*close)(struct fd_struct*);
struct fd_struct (*dupl)(struct fd_struct *);
@@ -34,6 +35,7 @@ uint8_t fd_read(fd*);
bool fd_has(fd*);
bool fd_eof(fd*);
bool fd_write(fd*,uint8_t);
+bool fd_can_write(fd*);
bool fd_close(fd*);
fd fd_dupl(fd*);