#include "lprefix.h"
#include <errno.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
|
static const char * | checkoption (lua_State *L, const char *conv, ptrdiff_t convlen, char *buff) |
|
static int | getboolfield (lua_State *L, const char *key) |
|
static int | getfield (lua_State *L, const char *key, int d, int delta) |
|
static time_t | l_checktime (lua_State *L, int arg) |
|
LUAMOD_API int | luaopen_os (lua_State *L) |
|
static int | os_clock (lua_State *L) |
|
static int | os_date (lua_State *L) |
|
static int | os_difftime (lua_State *L) |
|
static int | os_execute (lua_State *L) |
|
static int | os_exit (lua_State *L) |
|
static int | os_getenv (lua_State *L) |
|
static int | os_remove (lua_State *L) |
|
static int | os_rename (lua_State *L) |
|
static int | os_setlocale (lua_State *L) |
|
static int | os_time (lua_State *L) |
|
static int | os_tmpname (lua_State *L) |
|
static void | setallfields (lua_State *L, struct tm *stm) |
|
static void | setboolfield (lua_State *L, const char *key, int value) |
|
static void | setfield (lua_State *L, const char *key, int value, int delta) |
|
#define l_gmtime |
( |
|
t, |
|
|
|
r |
|
) |
| ((void)(r)->tm_sec, gmtime(t)) |
#define l_localtime |
( |
|
t, |
|
|
|
r |
|
) |
| ((void)(r)->tm_sec, localtime(t)) |
#define L_STRFTIMEC89 "aAbBcdHIjmMpSUwWxXyYZ%" |
Value:"aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%" \
"||" "EcECExEXEyEY" "OdOeOHOIOmOMOSOuOUOVOwOWOy"
Definition at line 37 of file loslib.c.
Value:"aAbBcdHIjmMpSUwWxXyYzZ%" \
"||" "#c#x#d#H#I#j#m#M#S#U#w#W#y#Y"
Definition at line 41 of file loslib.c.
#define lua_tmpnam |
( |
|
b, |
|
|
|
e |
|
) |
| { e = (tmpnam(b) == NULL); } |
#define LUA_TMPNAMBUFSIZE L_tmpnam |
static const char* checkoption |
( |
lua_State * |
L, |
|
|
const char * |
conv, |
|
|
ptrdiff_t |
convlen, |
|
|
char * |
buff |
|
) |
| |
|
static |
static int getboolfield |
( |
lua_State * |
L, |
|
|
const char * |
key |
|
) |
| |
|
static |
static int getfield |
( |
lua_State * |
L, |
|
|
const char * |
key, |
|
|
int |
d, |
|
|
int |
delta |
|
) |
| |
|
static |
static time_t l_checktime |
( |
lua_State * |
L, |
|
|
int |
arg |
|
) |
| |
|
static |
static void setallfields |
( |
lua_State * |
L, |
|
|
struct tm * |
stm |
|
) |
| |
|
static |
static void setboolfield |
( |
lua_State * |
L, |
|
|
const char * |
key, |
|
|
int |
value |
|
) |
| |
|
static |
static void setfield |
( |
lua_State * |
L, |
|
|
const char * |
key, |
|
|
int |
value, |
|
|
int |
delta |
|
) |
| |
|
static |
Initial value:= {
{NULL, NULL}
}
static int os_date(lua_State *L)
static int os_difftime(lua_State *L)
static int os_execute(lua_State *L)
static int os_clock(lua_State *L)
static int os_setlocale(lua_State *L)
static int os_time(lua_State *L)
static int os_remove(lua_State *L)
static int os_tmpname(lua_State *L)
static int os_getenv(lua_State *L)
static int os_rename(lua_State *L)
static int os_exit(lua_State *L)
Definition at line 407 of file loslib.c.