From 11743fd21a99b32ae358f56b7cabdd8368bf78aa Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 17 May 2020 11:48:51 -0700 Subject: change signature for string functions --- sys/libn/io.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/libn/io.c') diff --git a/sys/libn/io.c b/sys/libn/io.c index 3827a82..2852f42 100644 --- a/sys/libn/io.c +++ b/sys/libn/io.c @@ -22,6 +22,12 @@ io·stat(Stream *s, io·Stat *buf) return fstat(fileno(s), buf); } +int +io·exists(byte *path, int flag) +{ + return access(path, flag); +} + error io·close(Stream *s) { -- cgit v1.2.1