diff options
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | docs/classes/bitflags.html | 4 | ||||
| -rw-r--r-- | docs/examples/compat.lua.html | 4 | ||||
| -rw-r--r-- | docs/examples/flag_debugging.lua.html | 4 | ||||
| -rw-r--r-- | docs/examples/password_input.lua.html | 4 | ||||
| -rw-r--r-- | docs/examples/read.lua.html | 4 | ||||
| -rw-r--r-- | docs/examples/readline.lua.html | 4 | ||||
| -rw-r--r-- | docs/examples/spinner.lua.html | 4 | ||||
| -rw-r--r-- | docs/examples/spiral_snake.lua.html | 4 | ||||
| -rw-r--r-- | docs/examples/terminalsize.lua.html | 4 | ||||
| -rw-r--r-- | docs/index.html | 34 | ||||
| -rw-r--r-- | docs/modules/system.html | 48 | ||||
| -rw-r--r-- | docs/topics/01-introduction.md.html | 4 | ||||
| -rw-r--r-- | docs/topics/02-development.md.html | 4 | ||||
| -rw-r--r-- | docs/topics/03-terminal.md.html | 4 | ||||
| -rw-r--r-- | docs/topics/CHANGELOG.md.html | 11 | ||||
| -rw-r--r-- | docs/topics/LICENSE.md.html | 4 | ||||
| -rw-r--r-- | rockspecs/luasystem-0.7.1-1.rockspec | 85 | ||||
| -rw-r--r-- | src/core.c | 2 |
19 files changed, 185 insertions, 49 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index fce2d0c..b4f215c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
| @@ -27,7 +27,7 @@ The scope of what is covered by the version number excludes: | |||
| 27 | 27 | ||
| 28 | ## Version history | 28 | ## Version history |
| 29 | 29 | ||
| 30 | ### version 0.x.x, unreleased | 30 | ### version 0.7.1, released 26-Apr-2026 |
| 31 | 31 | ||
| 32 | - Fix: improve error messages and handling on Windows. | 32 | - Fix: improve error messages and handling on Windows. |
| 33 | See [#85](https://github.com/lunarmodules/luasystem/pull/85). | 33 | See [#85](https://github.com/lunarmodules/luasystem/pull/85). |
diff --git a/docs/classes/bitflags.html b/docs/classes/bitflags.html index c03f11f..97595ae 100644 --- a/docs/classes/bitflags.html +++ b/docs/classes/bitflags.html | |||
| @@ -297,8 +297,8 @@ return <code>false</code> if the flags are checked. | |||
| 297 | </div> <!-- id="content" --> | 297 | </div> <!-- id="content" --> |
| 298 | </div> <!-- id="main" --> | 298 | </div> <!-- id="main" --> |
| 299 | <div id="about"> | 299 | <div id="about"> |
| 300 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 300 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 301 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 301 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 302 | </div> <!-- id="about" --> | 302 | </div> <!-- id="about" --> |
| 303 | </div> <!-- id="container" --> | 303 | </div> <!-- id="container" --> |
| 304 | </body> | 304 | </body> |
diff --git a/docs/examples/compat.lua.html b/docs/examples/compat.lua.html index f6c7e1e..e5b37f2 100644 --- a/docs/examples/compat.lua.html +++ b/docs/examples/compat.lua.html | |||
| @@ -111,8 +111,8 @@ | |||
| 111 | </div> <!-- id="content" --> | 111 | </div> <!-- id="content" --> |
| 112 | </div> <!-- id="main" --> | 112 | </div> <!-- id="main" --> |
| 113 | <div id="about"> | 113 | <div id="about"> |
| 114 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 114 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 115 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 115 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 116 | </div> <!-- id="about" --> | 116 | </div> <!-- id="about" --> |
| 117 | </div> <!-- id="container" --> | 117 | </div> <!-- id="container" --> |
| 118 | </body> | 118 | </body> |
diff --git a/docs/examples/flag_debugging.lua.html b/docs/examples/flag_debugging.lua.html index 402ee51..3b018ce 100644 --- a/docs/examples/flag_debugging.lua.html +++ b/docs/examples/flag_debugging.lua.html | |||
| @@ -79,8 +79,8 @@ | |||
| 79 | </div> <!-- id="content" --> | 79 | </div> <!-- id="content" --> |
| 80 | </div> <!-- id="main" --> | 80 | </div> <!-- id="main" --> |
| 81 | <div id="about"> | 81 | <div id="about"> |
| 82 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 82 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 83 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 83 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 84 | </div> <!-- id="about" --> | 84 | </div> <!-- id="about" --> |
| 85 | </div> <!-- id="container" --> | 85 | </div> <!-- id="container" --> |
| 86 | </body> | 86 | </body> |
diff --git a/docs/examples/password_input.lua.html b/docs/examples/password_input.lua.html index 8095acd..53ef422 100644 --- a/docs/examples/password_input.lua.html +++ b/docs/examples/password_input.lua.html | |||
| @@ -131,8 +131,8 @@ useful for reading secrets from the user. | |||
| 131 | </div> <!-- id="content" --> | 131 | </div> <!-- id="content" --> |
| 132 | </div> <!-- id="main" --> | 132 | </div> <!-- id="main" --> |
| 133 | <div id="about"> | 133 | <div id="about"> |
| 134 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 134 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 135 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 135 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 136 | </div> <!-- id="about" --> | 136 | </div> <!-- id="about" --> |
| 137 | </div> <!-- id="container" --> | 137 | </div> <!-- id="container" --> |
| 138 | </body> | 138 | </body> |
diff --git a/docs/examples/read.lua.html b/docs/examples/read.lua.html index f5d8fb5..ed6c394 100644 --- a/docs/examples/read.lua.html +++ b/docs/examples/read.lua.html | |||
| @@ -142,8 +142,8 @@ sys.<span class="function-name">setnonblock</span>(<span class="global">io</span | |||
| 142 | </div> <!-- id="content" --> | 142 | </div> <!-- id="content" --> |
| 143 | </div> <!-- id="main" --> | 143 | </div> <!-- id="main" --> |
| 144 | <div id="about"> | 144 | <div id="about"> |
| 145 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 145 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 146 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 146 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 147 | </div> <!-- id="about" --> | 147 | </div> <!-- id="about" --> |
| 148 | </div> <!-- id="container" --> | 148 | </div> <!-- id="container" --> |
| 149 | </body> | 149 | </body> |
diff --git a/docs/examples/readline.lua.html b/docs/examples/readline.lua.html index ff06b99..633e152 100644 --- a/docs/examples/readline.lua.html +++ b/docs/examples/readline.lua.html | |||
| @@ -548,8 +548,8 @@ sys.<span class="function-name">setconsoleflags</span>(<span class="global">io</ | |||
| 548 | </div> <!-- id="content" --> | 548 | </div> <!-- id="content" --> |
| 549 | </div> <!-- id="main" --> | 549 | </div> <!-- id="main" --> |
| 550 | <div id="about"> | 550 | <div id="about"> |
| 551 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 551 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 552 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 552 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 553 | </div> <!-- id="about" --> | 553 | </div> <!-- id="about" --> |
| 554 | </div> <!-- id="container" --> | 554 | </div> <!-- id="container" --> |
| 555 | </body> | 555 | </body> |
diff --git a/docs/examples/spinner.lua.html b/docs/examples/spinner.lua.html index b9c0856..bef87c0 100644 --- a/docs/examples/spinner.lua.html +++ b/docs/examples/spinner.lua.html | |||
| @@ -136,8 +136,8 @@ sys.<span class="function-name">setnonblock</span>(<span class="global">io</span | |||
| 136 | </div> <!-- id="content" --> | 136 | </div> <!-- id="content" --> |
| 137 | </div> <!-- id="main" --> | 137 | </div> <!-- id="main" --> |
| 138 | <div id="about"> | 138 | <div id="about"> |
| 139 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 139 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 140 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 140 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 141 | </div> <!-- id="about" --> | 141 | </div> <!-- id="about" --> |
| 142 | </div> <!-- id="container" --> | 142 | </div> <!-- id="container" --> |
| 143 | </body> | 143 | </body> |
diff --git a/docs/examples/spiral_snake.lua.html b/docs/examples/spiral_snake.lua.html index 38404c1..94f38dc 100644 --- a/docs/examples/spiral_snake.lua.html +++ b/docs/examples/spiral_snake.lua.html | |||
| @@ -144,8 +144,8 @@ codes for moving the cursor around. | |||
| 144 | </div> <!-- id="content" --> | 144 | </div> <!-- id="content" --> |
| 145 | </div> <!-- id="main" --> | 145 | </div> <!-- id="main" --> |
| 146 | <div id="about"> | 146 | <div id="about"> |
| 147 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 147 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 148 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 148 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 149 | </div> <!-- id="about" --> | 149 | </div> <!-- id="about" --> |
| 150 | </div> <!-- id="container" --> | 150 | </div> <!-- id="container" --> |
| 151 | </body> | 151 | </body> |
diff --git a/docs/examples/terminalsize.lua.html b/docs/examples/terminalsize.lua.html index 4da228a..c29bd1b 100644 --- a/docs/examples/terminalsize.lua.html +++ b/docs/examples/terminalsize.lua.html | |||
| @@ -109,8 +109,8 @@ sys.<span class="function-name">tcsetattr</span>(<span class="global">io</span>. | |||
| 109 | </div> <!-- id="content" --> | 109 | </div> <!-- id="content" --> |
| 110 | </div> <!-- id="main" --> | 110 | </div> <!-- id="main" --> |
| 111 | <div id="about"> | 111 | <div id="about"> |
| 112 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 112 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 113 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 113 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 114 | </div> <!-- id="about" --> | 114 | </div> <!-- id="about" --> |
| 115 | </div> <!-- id="container" --> | 115 | </div> <!-- id="container" --> |
| 116 | </body> | 116 | </body> |
diff --git a/docs/index.html b/docs/index.html index da33fcb..66db274 100644 --- a/docs/index.html +++ b/docs/index.html | |||
| @@ -68,72 +68,72 @@ | |||
| 68 | <h2>Modules</h2> | 68 | <h2>Modules</h2> |
| 69 | <table class="module_list"> | 69 | <table class="module_list"> |
| 70 | <tr> | 70 | <tr> |
| 71 | <td class="name" nowrap><a href="modules/system.html">system</a></td> | 71 | <td class="name" nowrap><a href="modules/system.html">system</a></td> |
| 72 | <td class="summary">Platform independent system calls for Lua.</td> | 72 | <td class="summary">Platform independent system calls for Lua.</td> |
| 73 | </tr> | 73 | </tr> |
| 74 | </table> | 74 | </table> |
| 75 | <h2>Classes</h2> | 75 | <h2>Classes</h2> |
| 76 | <table class="module_list"> | 76 | <table class="module_list"> |
| 77 | <tr> | 77 | <tr> |
| 78 | <td class="name" nowrap><a href="classes/bitflags.html">bitflags</a></td> | 78 | <td class="name" nowrap><a href="classes/bitflags.html">bitflags</a></td> |
| 79 | <td class="summary">Bitflags module.</td> | 79 | <td class="summary">Bitflags module.</td> |
| 80 | </tr> | 80 | </tr> |
| 81 | </table> | 81 | </table> |
| 82 | <h2>Topics</h2> | 82 | <h2>Topics</h2> |
| 83 | <table class="module_list"> | 83 | <table class="module_list"> |
| 84 | <tr> | 84 | <tr> |
| 85 | <td class="name" nowrap><a href="topics/01-introduction.md.html">01-introduction.md</a></td> | 85 | <td class="name" nowrap><a href="topics/01-introduction.md.html">01-introduction.md</a></td> |
| 86 | <td class="summary"></td> | 86 | <td class="summary"></td> |
| 87 | </tr> | 87 | </tr> |
| 88 | <tr> | 88 | <tr> |
| 89 | <td class="name" nowrap><a href="topics/02-development.md.html">02-development.md</a></td> | 89 | <td class="name" nowrap><a href="topics/02-development.md.html">02-development.md</a></td> |
| 90 | <td class="summary"></td> | 90 | <td class="summary"></td> |
| 91 | </tr> | 91 | </tr> |
| 92 | <tr> | 92 | <tr> |
| 93 | <td class="name" nowrap><a href="topics/03-terminal.md.html">03-terminal.md</a></td> | 93 | <td class="name" nowrap><a href="topics/03-terminal.md.html">03-terminal.md</a></td> |
| 94 | <td class="summary"></td> | 94 | <td class="summary"></td> |
| 95 | </tr> | 95 | </tr> |
| 96 | <tr> | 96 | <tr> |
| 97 | <td class="name" nowrap><a href="topics/CHANGELOG.md.html">CHANGELOG.md</a></td> | 97 | <td class="name" nowrap><a href="topics/CHANGELOG.md.html">CHANGELOG.md</a></td> |
| 98 | <td class="summary"></td> | 98 | <td class="summary"></td> |
| 99 | </tr> | 99 | </tr> |
| 100 | <tr> | 100 | <tr> |
| 101 | <td class="name" nowrap><a href="topics/LICENSE.md.html">LICENSE.md</a></td> | 101 | <td class="name" nowrap><a href="topics/LICENSE.md.html">LICENSE.md</a></td> |
| 102 | <td class="summary"></td> | 102 | <td class="summary"></td> |
| 103 | </tr> | 103 | </tr> |
| 104 | </table> | 104 | </table> |
| 105 | <h2>Examples</h2> | 105 | <h2>Examples</h2> |
| 106 | <table class="module_list"> | 106 | <table class="module_list"> |
| 107 | <tr> | 107 | <tr> |
| 108 | <td class="name" nowrap><a href="examples/compat.lua.html">compat.lua</a></td> | 108 | <td class="name" nowrap><a href="examples/compat.lua.html">compat.lua</a></td> |
| 109 | <td class="summary"></td> | 109 | <td class="summary"></td> |
| 110 | </tr> | 110 | </tr> |
| 111 | <tr> | 111 | <tr> |
| 112 | <td class="name" nowrap><a href="examples/flag_debugging.lua.html">flag_debugging.lua</a></td> | 112 | <td class="name" nowrap><a href="examples/flag_debugging.lua.html">flag_debugging.lua</a></td> |
| 113 | <td class="summary"></td> | 113 | <td class="summary"></td> |
| 114 | </tr> | 114 | </tr> |
| 115 | <tr> | 115 | <tr> |
| 116 | <td class="name" nowrap><a href="examples/password_input.lua.html">password_input.lua</a></td> | 116 | <td class="name" nowrap><a href="examples/password_input.lua.html">password_input.lua</a></td> |
| 117 | <td class="summary"></td> | 117 | <td class="summary"></td> |
| 118 | </tr> | 118 | </tr> |
| 119 | <tr> | 119 | <tr> |
| 120 | <td class="name" nowrap><a href="examples/read.lua.html">read.lua</a></td> | 120 | <td class="name" nowrap><a href="examples/read.lua.html">read.lua</a></td> |
| 121 | <td class="summary"></td> | 121 | <td class="summary"></td> |
| 122 | </tr> | 122 | </tr> |
| 123 | <tr> | 123 | <tr> |
| 124 | <td class="name" nowrap><a href="examples/readline.lua.html">readline.lua</a></td> | 124 | <td class="name" nowrap><a href="examples/readline.lua.html">readline.lua</a></td> |
| 125 | <td class="summary"></td> | 125 | <td class="summary"></td> |
| 126 | </tr> | 126 | </tr> |
| 127 | <tr> | 127 | <tr> |
| 128 | <td class="name" nowrap><a href="examples/spinner.lua.html">spinner.lua</a></td> | 128 | <td class="name" nowrap><a href="examples/spinner.lua.html">spinner.lua</a></td> |
| 129 | <td class="summary"></td> | 129 | <td class="summary"></td> |
| 130 | </tr> | 130 | </tr> |
| 131 | <tr> | 131 | <tr> |
| 132 | <td class="name" nowrap><a href="examples/spiral_snake.lua.html">spiral_snake.lua</a></td> | 132 | <td class="name" nowrap><a href="examples/spiral_snake.lua.html">spiral_snake.lua</a></td> |
| 133 | <td class="summary"></td> | 133 | <td class="summary"></td> |
| 134 | </tr> | 134 | </tr> |
| 135 | <tr> | 135 | <tr> |
| 136 | <td class="name" nowrap><a href="examples/terminalsize.lua.html">terminalsize.lua</a></td> | 136 | <td class="name" nowrap><a href="examples/terminalsize.lua.html">terminalsize.lua</a></td> |
| 137 | <td class="summary"></td> | 137 | <td class="summary"></td> |
| 138 | </tr> | 138 | </tr> |
| 139 | </table> | 139 | </table> |
| @@ -141,8 +141,8 @@ | |||
| 141 | </div> <!-- id="content" --> | 141 | </div> <!-- id="content" --> |
| 142 | </div> <!-- id="main" --> | 142 | </div> <!-- id="main" --> |
| 143 | <div id="about"> | 143 | <div id="about"> |
| 144 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 144 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 145 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 145 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 146 | </div> <!-- id="about" --> | 146 | </div> <!-- id="about" --> |
| 147 | </div> <!-- id="container" --> | 147 | </div> <!-- id="container" --> |
| 148 | </body> | 148 | </body> |
diff --git a/docs/modules/system.html b/docs/modules/system.html index 2e3ddc0..1a99b32 100644 --- a/docs/modules/system.html +++ b/docs/modules/system.html | |||
| @@ -1167,6 +1167,17 @@ sequences will be buffered internally and returned one byte at a time. | |||
| 1167 | <span class="types"><span class="type">int</span></span> | 1167 | <span class="types"><span class="type">int</span></span> |
| 1168 | the current code page (always 65001 on Posix systems) | 1168 | the current code page (always 65001 on Posix systems) |
| 1169 | </ol> | 1169 | </ol> |
| 1170 | <h3>Or</h3> | ||
| 1171 | <ol> | ||
| 1172 | <li> | ||
| 1173 | <span class="types"><span class="type">nil</span></span> | ||
| 1174 | |||
| 1175 | |||
| 1176 | </li> | ||
| 1177 | <li> | ||
| 1178 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> | ||
| 1179 | error message</li> | ||
| 1180 | </ol> | ||
| 1170 | 1181 | ||
| 1171 | 1182 | ||
| 1172 | 1183 | ||
| @@ -1187,6 +1198,17 @@ sequences will be buffered internally and returned one byte at a time. | |||
| 1187 | <span class="types"><span class="type">int</span></span> | 1198 | <span class="types"><span class="type">int</span></span> |
| 1188 | the current code page (always 65001 on Posix systems) | 1199 | the current code page (always 65001 on Posix systems) |
| 1189 | </ol> | 1200 | </ol> |
| 1201 | <h3>Or</h3> | ||
| 1202 | <ol> | ||
| 1203 | <li> | ||
| 1204 | <span class="types"><span class="type">nil</span></span> | ||
| 1205 | |||
| 1206 | |||
| 1207 | </li> | ||
| 1208 | <li> | ||
| 1209 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> | ||
| 1210 | error message</li> | ||
| 1211 | </ol> | ||
| 1190 | 1212 | ||
| 1191 | 1213 | ||
| 1192 | 1214 | ||
| @@ -1214,6 +1236,17 @@ sequences will be buffered internally and returned one byte at a time. | |||
| 1214 | <span class="types"><span class="type">bool</span></span> | 1236 | <span class="types"><span class="type">bool</span></span> |
| 1215 | <code>true</code> on success (always <code>true</code> on Posix systems) | 1237 | <code>true</code> on success (always <code>true</code> on Posix systems) |
| 1216 | </ol> | 1238 | </ol> |
| 1239 | <h3>Or</h3> | ||
| 1240 | <ol> | ||
| 1241 | <li> | ||
| 1242 | <span class="types"><span class="type">nil</span></span> | ||
| 1243 | |||
| 1244 | |||
| 1245 | </li> | ||
| 1246 | <li> | ||
| 1247 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> | ||
| 1248 | error message</li> | ||
| 1249 | </ol> | ||
| 1217 | 1250 | ||
| 1218 | 1251 | ||
| 1219 | 1252 | ||
| @@ -1241,6 +1274,17 @@ sequences will be buffered internally and returned one byte at a time. | |||
| 1241 | <span class="types"><span class="type">bool</span></span> | 1274 | <span class="types"><span class="type">bool</span></span> |
| 1242 | <code>true</code> on success (always <code>true</code> on Posix systems) | 1275 | <code>true</code> on success (always <code>true</code> on Posix systems) |
| 1243 | </ol> | 1276 | </ol> |
| 1277 | <h3>Or</h3> | ||
| 1278 | <ol> | ||
| 1279 | <li> | ||
| 1280 | <span class="types"><span class="type">nil</span></span> | ||
| 1281 | |||
| 1282 | |||
| 1283 | </li> | ||
| 1284 | <li> | ||
| 1285 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> | ||
| 1286 | error message</li> | ||
| 1287 | </ol> | ||
| 1244 | 1288 | ||
| 1245 | 1289 | ||
| 1246 | 1290 | ||
| @@ -1527,8 +1571,8 @@ This function will sleep, without doing a busy-loop and wasting CPU cycles. | |||
| 1527 | </div> <!-- id="content" --> | 1571 | </div> <!-- id="content" --> |
| 1528 | </div> <!-- id="main" --> | 1572 | </div> <!-- id="main" --> |
| 1529 | <div id="about"> | 1573 | <div id="about"> |
| 1530 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 1574 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 1531 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 1575 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 1532 | </div> <!-- id="about" --> | 1576 | </div> <!-- id="about" --> |
| 1533 | </div> <!-- id="container" --> | 1577 | </div> <!-- id="container" --> |
| 1534 | </body> | 1578 | </body> |
diff --git a/docs/topics/01-introduction.md.html b/docs/topics/01-introduction.md.html index 0723af1..5a67ade 100644 --- a/docs/topics/01-introduction.md.html +++ b/docs/topics/01-introduction.md.html | |||
| @@ -83,8 +83,8 @@ independence.</p> | |||
| 83 | </div> <!-- id="content" --> | 83 | </div> <!-- id="content" --> |
| 84 | </div> <!-- id="main" --> | 84 | </div> <!-- id="main" --> |
| 85 | <div id="about"> | 85 | <div id="about"> |
| 86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 86 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 87 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 87 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 88 | </div> <!-- id="about" --> | 88 | </div> <!-- id="about" --> |
| 89 | </div> <!-- id="container" --> | 89 | </div> <!-- id="container" --> |
| 90 | </body> | 90 | </body> |
diff --git a/docs/topics/02-development.md.html b/docs/topics/02-development.md.html index b2a9833..c593cdf 100644 --- a/docs/topics/02-development.md.html +++ b/docs/topics/02-development.md.html | |||
| @@ -83,8 +83,8 @@ pass locally, and do not rely on CI only.</p> | |||
| 83 | </div> <!-- id="content" --> | 83 | </div> <!-- id="content" --> |
| 84 | </div> <!-- id="main" --> | 84 | </div> <!-- id="main" --> |
| 85 | <div id="about"> | 85 | <div id="about"> |
| 86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 86 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 87 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 87 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 88 | </div> <!-- id="about" --> | 88 | </div> <!-- id="about" --> |
| 89 | </div> <!-- id="container" --> | 89 | </div> <!-- id="container" --> |
| 90 | </body> | 90 | </body> |
diff --git a/docs/topics/03-terminal.md.html b/docs/topics/03-terminal.md.html index 272d124..8241ccc 100644 --- a/docs/topics/03-terminal.md.html +++ b/docs/topics/03-terminal.md.html | |||
| @@ -219,8 +219,8 @@ For an example see <a href="../examples/password_input.lua.html"><code>examples/ | |||
| 219 | </div> <!-- id="content" --> | 219 | </div> <!-- id="content" --> |
| 220 | </div> <!-- id="main" --> | 220 | </div> <!-- id="main" --> |
| 221 | <div id="about"> | 221 | <div id="about"> |
| 222 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 222 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 223 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 223 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 224 | </div> <!-- id="about" --> | 224 | </div> <!-- id="about" --> |
| 225 | </div> <!-- id="container" --> | 225 | </div> <!-- id="container" --> |
| 226 | </body> | 226 | </body> |
diff --git a/docs/topics/CHANGELOG.md.html b/docs/topics/CHANGELOG.md.html index 318c020..99d6939 100644 --- a/docs/topics/CHANGELOG.md.html +++ b/docs/topics/CHANGELOG.md.html | |||
| @@ -106,6 +106,13 @@ | |||
| 106 | <p><a name="Version_history"></a></p> | 106 | <p><a name="Version_history"></a></p> |
| 107 | <h2>Version history</h2> | 107 | <h2>Version history</h2> |
| 108 | 108 | ||
| 109 | <h3>version 0.7.1, released 26-Apr-2026</h3> | ||
| 110 | |||
| 111 | <ul> | ||
| 112 | <li>Fix: improve error messages and handling on Windows. | ||
| 113 | See <a href="https://github.com/lunarmodules/luasystem/pull/85">#85</a>.</li> | ||
| 114 | </ul> | ||
| 115 | |||
| 109 | <h3>version 0.7.0, released 17-Feb-2026</h3> | 116 | <h3>version 0.7.0, released 17-Feb-2026</h3> |
| 110 | 117 | ||
| 111 | <ul> | 118 | <ul> |
| @@ -251,8 +258,8 @@ | |||
| 251 | </div> <!-- id="content" --> | 258 | </div> <!-- id="content" --> |
| 252 | </div> <!-- id="main" --> | 259 | </div> <!-- id="main" --> |
| 253 | <div id="about"> | 260 | <div id="about"> |
| 254 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 261 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 255 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 262 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 256 | </div> <!-- id="about" --> | 263 | </div> <!-- id="about" --> |
| 257 | </div> <!-- id="container" --> | 264 | </div> <!-- id="container" --> |
| 258 | </body> | 265 | </body> |
diff --git a/docs/topics/LICENSE.md.html b/docs/topics/LICENSE.md.html index c417973..b1ae724 100644 --- a/docs/topics/LICENSE.md.html +++ b/docs/topics/LICENSE.md.html | |||
| @@ -93,8 +93,8 @@ SOFTWARE.</p> | |||
| 93 | </div> <!-- id="content" --> | 93 | </div> <!-- id="content" --> |
| 94 | </div> <!-- id="main" --> | 94 | </div> <!-- id="main" --> |
| 95 | <div id="about"> | 95 | <div id="about"> |
| 96 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 96 | <i>generated by <a href="http://github.com/lunarmodules/ldoc">LDoc 1.5.0</a></i> |
| 97 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> | 97 | <i style="float:right;">Last updated 2026-04-26 10:36:21 </i> |
| 98 | </div> <!-- id="about" --> | 98 | </div> <!-- id="about" --> |
| 99 | </div> <!-- id="container" --> | 99 | </div> <!-- id="container" --> |
| 100 | </body> | 100 | </body> |
diff --git a/rockspecs/luasystem-0.7.1-1.rockspec b/rockspecs/luasystem-0.7.1-1.rockspec new file mode 100644 index 0000000..d96a3f8 --- /dev/null +++ b/rockspecs/luasystem-0.7.1-1.rockspec | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | local package_name = "luasystem" | ||
| 2 | local package_version = "0.7.1" | ||
| 3 | local rockspec_revision = "1" | ||
| 4 | local github_account_name = "lunarmodules" | ||
| 5 | local github_repo_name = "luasystem" | ||
| 6 | |||
| 7 | |||
| 8 | package = package_name | ||
| 9 | version = package_version.."-"..rockspec_revision | ||
| 10 | |||
| 11 | source = { | ||
| 12 | url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", | ||
| 13 | branch = (package_version == "scm") and "master" or nil, | ||
| 14 | tag = (package_version ~= "scm") and "v"..package_version or nil, | ||
| 15 | } | ||
| 16 | |||
| 17 | description = { | ||
| 18 | summary = 'Platform independent system calls for Lua.', | ||
| 19 | detailed = [[ | ||
| 20 | Adds a Lua API for making platform independent system calls. | ||
| 21 | ]], | ||
| 22 | license = 'MIT <http://opensource.org/licenses/MIT>', | ||
| 23 | homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, | ||
| 24 | } | ||
| 25 | |||
| 26 | dependencies = { | ||
| 27 | 'lua >= 5.1', | ||
| 28 | } | ||
| 29 | |||
| 30 | local function make_platform(plat) | ||
| 31 | local defines = { | ||
| 32 | linux = { }, | ||
| 33 | unix = { }, | ||
| 34 | macosx = { }, | ||
| 35 | win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, | ||
| 36 | mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, | ||
| 37 | } | ||
| 38 | local libraries = { | ||
| 39 | linux = { "rt" }, | ||
| 40 | unix = { }, | ||
| 41 | macosx = { }, | ||
| 42 | win32 = { "advapi32", "winmm", "bcrypt" }, | ||
| 43 | mingw32 = { }, | ||
| 44 | } | ||
| 45 | local libdirs = { | ||
| 46 | linux = nil, | ||
| 47 | unix = nil, | ||
| 48 | macosx = nil, | ||
| 49 | win32 = nil, | ||
| 50 | mingw32 = { }, | ||
| 51 | } | ||
| 52 | return { | ||
| 53 | modules = { | ||
| 54 | ['system.core'] = { | ||
| 55 | sources = { | ||
| 56 | 'src/core.c', | ||
| 57 | 'src/compat.c', | ||
| 58 | 'src/time.c', | ||
| 59 | 'src/environment.c', | ||
| 60 | 'src/random.c', | ||
| 61 | 'src/term.c', | ||
| 62 | 'src/bitflags.c', | ||
| 63 | 'src/wcwidth.c', | ||
| 64 | }, | ||
| 65 | defines = defines[plat], | ||
| 66 | libraries = libraries[plat], | ||
| 67 | libdirs = libdirs[plat], | ||
| 68 | }, | ||
| 69 | }, | ||
| 70 | } | ||
| 71 | end | ||
| 72 | |||
| 73 | build = { | ||
| 74 | type = 'builtin', | ||
| 75 | platforms = { | ||
| 76 | linux = make_platform('linux'), | ||
| 77 | unix = make_platform('unix'), | ||
| 78 | macosx = make_platform('macosx'), | ||
| 79 | win32 = make_platform('win32'), | ||
| 80 | mingw32 = make_platform('mingw32'), | ||
| 81 | }, | ||
| 82 | modules = { | ||
| 83 | ['system.init'] = 'system/init.lua', | ||
| 84 | }, | ||
| 85 | } | ||
| @@ -4,7 +4,7 @@ | |||
| 4 | #include <lua.h> | 4 | #include <lua.h> |
| 5 | #include <lauxlib.h> | 5 | #include <lauxlib.h> |
| 6 | 6 | ||
| 7 | #define LUASYSTEM_VERSION "LuaSystem 0.7.0" | 7 | #define LUASYSTEM_VERSION "LuaSystem 0.7.1" |
| 8 | 8 | ||
| 9 | #ifdef _WIN32 | 9 | #ifdef _WIN32 |
| 10 | #define LUAEXPORT __declspec(dllexport) | 10 | #define LUAEXPORT __declspec(dllexport) |
