diff options
author | Kim Alvefur <zash@zash.se> | 2023-06-07 05:07:03 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-06-07 05:07:03 +0200 |
commit | 048b064fcdcc2309c952d7b5f9dae10aa7bf15cd (patch) | |
tree | b4b9e839c289a2aefcff17f871db482ff688ca7a /teal-src/prosody | |
parent | 50ae2083ca474ea38c1b440e200b5d2734e514aa (diff) | |
download | prosody-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/prosody')
-rw-r--r-- | teal-src/prosody/util/pposix.d.tl | 1 |
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 |