Software /
code /
prosody
Comparison
teal-src/util/pposix.d.tl @ 11459:86904555bffc
teal: Use new integer support in Teal 0.13.0
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Mar 2021 23:16:41 +0100 |
parent | 11432:113f3912c7cb |
child | 11656:c368b4f6ee04 |
comparison
equal
deleted
inserted
replaced
11458:0e00fa518688 | 11459:86904555bffc |
---|---|
44 | 44 |
45 enum ulimit_unlimited | 45 enum ulimit_unlimited |
46 "unlimited" | 46 "unlimited" |
47 end | 47 end |
48 | 48 |
49 type ulimit_limit = number | ulimit_unlimited | 49 type ulimit_limit = integer | ulimit_unlimited |
50 | 50 |
51 record utsname | 51 record utsname |
52 sysname : string | 52 sysname : string |
53 nodename : string | 53 nodename : string |
54 release : string | 54 release : string |
56 machine : string | 56 machine : string |
57 domainname : string | 57 domainname : string |
58 end | 58 end |
59 | 59 |
60 record memoryinfo | 60 record memoryinfo |
61 allocated : number | 61 allocated : integer |
62 allocated_mmap : number | 62 allocated_mmap : integer |
63 used : number | 63 used : integer |
64 unused : number | 64 unused : integer |
65 returnable : number | 65 returnable : integer |
66 end | 66 end |
67 | 67 |
68 abort : function () | 68 abort : function () |
69 | 69 |
70 daemonize : function () : boolean, string | 70 daemonize : function () : boolean, string |
72 syslog_open : function (ident : string, facility : syslog_facility) | 72 syslog_open : function (ident : string, facility : syslog_facility) |
73 syslog_close : function () | 73 syslog_close : function () |
74 syslog_log : function (level : syslog_level, src : string, msg : string) | 74 syslog_log : function (level : syslog_level, src : string, msg : string) |
75 syslog_setminlevel : function (level : syslog_level) | 75 syslog_setminlevel : function (level : syslog_level) |
76 | 76 |
77 getpid : function () : number | 77 getpid : function () : integer |
78 getuid : function () : number | 78 getuid : function () : integer |
79 getgid : function () : number | 79 getgid : function () : integer |
80 | 80 |
81 setuid : function (uid : string) : boolean, string -- string|number | 81 setuid : function (uid : integer | string) : boolean, string -- string|integer |
82 setgid : function (uid : string) : boolean, string | 82 setgid : function (uid : integer | string) : boolean, string |
83 initgroups : function (user : string, gid : number) : boolean, string | 83 initgroups : function (user : string, gid : integer) : boolean, string |
84 | 84 |
85 umask : function (umask : string) : string | 85 umask : function (umask : string) : string |
86 | 86 |
87 mkdir : function (dir : string) : boolean, string | 87 mkdir : function (dir : string) : boolean, string |
88 | 88 |
94 | 94 |
95 setenv : function (key : string, value : string) : boolean | 95 setenv : function (key : string, value : string) : boolean |
96 | 96 |
97 meminfo : function () : memoryinfo | 97 meminfo : function () : memoryinfo |
98 | 98 |
99 atomic_append : function (f : FILE, s : string) : boolean, string, number | 99 atomic_append : function (f : FILE, s : string) : boolean, string, integer |
100 | 100 |
101 ENOENT : number | 101 ENOENT : integer |
102 _NAME : string | 102 _NAME : string |
103 _VESRION : string | 103 _VESRION : string |
104 end | 104 end |
105 | 105 |
106 return pposix | 106 return pposix |