diff options
| author | Miguel <m.i@gmx.at> | 2018-09-20 20:51:57 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-20 20:51:57 +0200 |
| commit | aeefdb37d1fc1c0eb7953b9c196cab09460bc167 (patch) | |
| tree | 513789d7fd28b65afb594e9605975bd10ea06f74 /fs/fifo.c | |
| parent | 763f85c55fdb5a2c4f5bf98e4989a69d27da6e4f (diff) | |
we are now prepared for piping with _pipe and _dup2
Diffstat (limited to 'fs/fifo.c')
| -rw-r--r-- | fs/fifo.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/fifo.c b/fs/fifo.c new file mode 100644 index 0000000..abd6c46 --- /dev/null +++ b/fs/fifo.c @@ -0,0 +1,16 @@ +#include "fifo.h" + +bool fifo_put(fifo* f,uint8_t c) +{ + return f->put(f->data,c); +} + +uint8_t fifo_get(fifo* f) +{ + return f->get(f->data); +} + +bool fifo_has(fifo* f) +{ + return f->has(f->data); +} |
