Changeset

13862:d8d1a3ff8ce9

util.pposix: Update teal interface spec f29d15aef6f8 added fdopen() 5d4d7ed83f1a added pipe()
author Kim Alvefur <zash@zash.se>
date Thu, 20 Feb 2025 00:05:24 +0100
parents 13861:17607f5ad815
children 13863:945cc639d175
files teal-src/prosody/util/pposix.d.tl
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/teal-src/prosody/util/pposix.d.tl	Thu Feb 20 00:02:10 2025 +0100
+++ b/teal-src/prosody/util/pposix.d.tl	Thu Feb 20 00:05:24 2025 +0100
@@ -86,6 +86,14 @@
 
 	mkdir : function (dir : string) : boolean, string
 
+	enum pipe_flag_names
+		"cloexec"
+		"direct"
+		"nonblock"
+	end
+	pipe : function (... : pipe_flag_names) : integer, integer
+	fdopen : function (integer, string) : FILE, string
+
 	setrlimit : function (resource : ulimit_resource, soft : ulimit_limit, hard : ulimit_limit) : boolean, string
 	getrlimit : function (resource : ulimit_resource) : boolean, ulimit_limit, ulimit_limit
 	getrlimit : function (resource : ulimit_resource) : boolean, string