mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
added tell stub for named pipe stream's
This commit is contained in:
parent
dd9ba26f7b
commit
490db13498
2 changed files with 8 additions and 0 deletions
|
|
@ -64,6 +64,10 @@ function lib.seek(fd, mode, offset)
|
||||||
error("cannot seek the named pipe")
|
error("cannot seek the named pipe")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function lib.tell(fd)
|
||||||
|
error("cannot tell the named pipe")
|
||||||
|
end
|
||||||
|
|
||||||
function lib.flush(fd)
|
function lib.flush(fd)
|
||||||
-- no flush on unix
|
-- no flush on unix
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,10 @@ function lib.seek(handle, mode, offset)
|
||||||
error("cannot seek the named pipe")
|
error("cannot seek the named pipe")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function lib.tell(handle)
|
||||||
|
error("cannot tell the named pipe")
|
||||||
|
end
|
||||||
|
|
||||||
function lib.flush(handle)
|
function lib.flush(handle)
|
||||||
C.FlushFileBuffers(handle)
|
C.FlushFileBuffers(handle)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue