| 167 | |
| 168 | |
| 169 | static int os_tmpname (lua_State *L) { |
| 170 | char buff[LUA_TMPNAMBUFSIZE]; |
| 171 | int err; |
| 172 | lua_tmpnam(buff, err); |
| 173 | if (l_unlikely(err)) |
| 174 | return luaL_error(L, "unable to generate a unique filename"); |
| 175 | lua_pushstring(L, buff); |
| 176 | return 1; |
| 177 | } |
| 178 | |
| 179 | |
| 180 | static int os_getenv (lua_State *L) { |
nothing calls this directly
no test coverage detected