| 55 | |
| 56 | |
| 57 | static int os_tmpname (lua_State *L) { |
| 58 | char buff[LUA_TMPNAMBUFSIZE]; |
| 59 | int err; |
| 60 | lua_tmpnam(buff, err); |
| 61 | if (err) |
| 62 | return luaL_error(L, "unable to generate a unique filename"); |
| 63 | lua_pushstring(L, buff); |
| 64 | return 1; |
| 65 | } |
| 66 | |
| 67 | |
| 68 | static int os_getenv (lua_State *L) { |
nothing calls this directly
no test coverage detected