From 788ddbd8e113cd4f9694aee779c5b5dcca26e30b Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 25 Apr 2020 11:38:29 -0700 Subject: feat: updated fasta code to allow for iteration --- sys/libn/io.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/libn') 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) { -- cgit v1.2.1