diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-25 11:38:29 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-25 11:38:29 -0700 |
commit | 788ddbd8e113cd4f9694aee779c5b5dcca26e30b (patch) | |
tree | 32e2db53cf5cd3fb907e6b17ab9ef6bdab8d9f4c /sys/libn | |
parent | 1f166f0a4ed9ed32ade1ed21a571c9b2d0171ebc (diff) |
feat: updated fasta code to allow for iteration
Diffstat (limited to 'sys/libn')
-rw-r--r-- | sys/libn/io.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/libn/io.c b/sys/libn/io.c index ff64ff0..3827a82 100644 --- a/sys/libn/io.c +++ b/sys/libn/io.c @@ -10,6 +10,18 @@ io·open(byte *name, byte *mode) return fopen(name, mode); } +int +io·fd(Stream *s) +{ + return fileno(s); +} + +error +io·stat(Stream *s, io·Stat *buf) +{ + return fstat(fileno(s), buf); +} + error io·close(Stream *s) { |