| 161 | |
| 162 | |
| 163 | static int os_rename (lua_State *L) { |
| 164 | const char *fromname = luaL_checkstring(L, 1); |
| 165 | const char *toname = luaL_checkstring(L, 2); |
| 166 | errno = 0; |
| 167 | return luaL_fileresult(L, rename(fromname, toname) == 0, NULL); |
| 168 | } |
| 169 | |
| 170 | |
| 171 | static int os_tmpname (lua_State *L) { |
nothing calls this directly
no test coverage detected