From 63cb1ceea4bd8242366420bab97871263ef06c9d Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 18 Jul 2019 13:51:10 +1000 Subject: [PATCH] modified the docs to show iofs supports seek --- module/iofs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/iofs.lua b/module/iofs.lua index 3df233d..6313fc2 100644 --- a/module/iofs.lua +++ b/module/iofs.lua @@ -57,7 +57,7 @@ function iofs.component.seek(fd,...) end end -function iofs.register(fname,fopen) -- Register a new iofs node with the name *fname* that will run the function *fopen* when opened. This function should return a function for read, a function for write, and a function for close, in that order. +function iofs.register(fname,fopen) -- Register a new iofs node with the name *fname* that will run the function *fopen* when opened. This function should return a function for read, a function for write, function for close, and optionally, a function for seek, in that order. iofs.files[fname] = fopen end