From 048b064fcdcc2309c952d7b5f9dae10aa7bf15cd Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 7 Jun 2023 05:07:03 +0200 Subject: util.pposix: Add remove_blocks() for deleting parts of files Allows implementing e.g. a FIFO Will probably only work on some Linux file systems like ext4. --- teal-src/prosody/util/pposix.d.tl | 1 + 1 file changed, 1 insertion(+) (limited to 'teal-src') diff --git a/teal-src/prosody/util/pposix.d.tl b/teal-src/prosody/util/pposix.d.tl index 68f49730..d7780835 100644 --- a/teal-src/prosody/util/pposix.d.tl +++ b/teal-src/prosody/util/pposix.d.tl @@ -97,6 +97,7 @@ local record pposix meminfo : function () : memoryinfo atomic_append : function (f : FILE, s : string) : boolean, string, integer + remove_blocks : function (f : FILE, integer, integer) isatty : function(FILE) : boolean -- cgit v1.2.3