lua_pushglobaltable

lua_pushglobaltable[-0, +1, –] void lua_pushglobaltable (lua_State *L); Pushes the global environment onto the stack.

os.clock()

os.clock () Returns an approximation of the amount in seconds of CPU time used by the program.

math.mininteger

math.mininteger

math.cos()

math.cos (x) Returns the cosine of x (assumed to be in radians).

luaL_execresult

luaL_execresult[-0, +3, m] int luaL_execresult (lua_State *L, int stat); This function produces the return values for process-related functions in the standard library (os.execute and io.close).

luaL_optnumber

luaL_optnumber[-0, +0, v] lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number d); If the function argument arg is a number, returns this number. If this argument is absent or is nil, returns d. Otherwise, raises an error.

os.setlocale()

os.setlocale (locale [, category]) Sets the current locale of the program. locale is a system-dependent string specifying a locale; category is an optional string describing which category to change: "all", "collate", "ctype", "monetary", "numeric", or "time"; the default category is "all". The function returns the name of the new locale, or nil if the request cannot be honored. If locale is the empty string, the current locale is set to an implementation-defined native locale. If locale is

error()

error (message [, level])messageerror Usually, error adds some information about the error position at the beginning of the message, if the message is a string. The level argument specifies how to get the error position. With level 1 (the default), the error position is where the error function was called. Level 2 points the error to where the function that called error was called; and so on. Passing a level 0 avoids the addition of error position information to the message.

luaL_tolstring

luaL_tolstring[-0, +1, e] const char *luaL_tolstring (lua_State *L, int idx, size_t *len); Converts any Lua value at the given index to a C string in a reasonable format. The resulting string is pushed onto the stack and also returned by the function. If len is not NULL, the function also sets *len with the string length. If the value has a metatable with a __tostring field, then luaL_tolstring calls the corresponding metamethod with the value as argument, and uses the result of the call a

luaL_fileresult

luaL_fileresult[-0, +(1|3), m] int luaL_fileresult (lua_State *L, int stat, const char *fname); This function produces the return values for file-related functions in the standard library (io.open, os.rename, file:seek, etc.).