summaryrefslogtreecommitdiff
path: root/fs/fd.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fd.h')
-rw-r--r--fs/fd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fd.h b/fs/fd.h
index 64a53ed..21037c8 100644
--- a/fs/fd.h
+++ b/fs/fd.h
@@ -10,7 +10,7 @@
#include "ringbuffer.h"
enum FD_TYPE{
- FD_TYPE_FIFO_BUFFERED=1,
+ FD_TYPE_FIFO=1,
FD_TYPE_EXT2_FILE=2,
FD_TYPE_EXT2_DIR=3,
FD_TYPE_SYSFS=4,
@@ -24,6 +24,7 @@ typedef struct fd_struct
bool (*has)(struct fd_struct*);
bool (*eof)(struct fd_struct*);
bool (*close)(struct fd_struct*);
+ struct fd_struct (*dupl)(struct fd_struct *);
uint8_t type;
void *data; // opaque data
@@ -34,6 +35,7 @@ bool fd_has(fd*);
bool fd_eof(fd*);
bool fd_write(fd*,uint8_t);
bool fd_close(fd*);
+fd fd_dupl(fd*);
fd fd_from_fifo(fifo* f);
fd fd_from_path(char *path);