aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-06-07 05:07:03 +0200
committerKim Alvefur <zash@zash.se>2023-06-07 05:07:03 +0200
commit048b064fcdcc2309c952d7b5f9dae10aa7bf15cd (patch)
treeb4b9e839c289a2aefcff17f871db482ff688ca7a /teal-src
parent50ae2083ca474ea38c1b440e200b5d2734e514aa (diff)
downloadprosody-048b064fcdcc2309c952d7b5f9dae10aa7bf15cd.tar.gz
prosody-048b064fcdcc2309c952d7b5f9dae10aa7bf15cd.zip
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.
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/prosody/util/pposix.d.tl1
1 files changed, 1 insertions, 0 deletions
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