#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) |
|
◆ l_gettime
◆ l_gmtime
#define l_gmtime |
( |
|
t, |
|
|
|
r |
|
) |
| ((void)(r)->tm_sec, gmtime(t)) |
◆ l_localtime
#define l_localtime |
( |
|
t, |
|
|
|
r |
|
) |
| ((void)(r)->tm_sec, localtime(t)) |
◆ l_pushtime
◆ L_STRFTIMEC89
#define L_STRFTIMEC89 "aAbBcdHIjmMpSUwWxXyYZ%" |
◆ L_STRFTIMEC99
Value: "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%" \
"||" "EcECExEXEyEY" "OdOeOHOIOmOMOSOuOUOVOwOWOy"
Definition at line 37 of file loslib.c.
◆ L_STRFTIMEWIN
Value: "aAbBcdHIjmMpSUwWxXyYzZ%" \
"||" "#c#x#d#H#I#j#m#M#S#U#w#W#y#Y"
Definition at line 41 of file loslib.c.
◆ l_timet
◆ loslib_c
◆ LUA_LIB
◆ LUA_STRFTIMEOPTIONS
◆ lua_tmpnam
#define lua_tmpnam |
( |
|
b, |
|
|
|
e |
|
) |
| { e = (tmpnam(b) == NULL); } |
◆ LUA_TMPNAMBUFSIZE
#define LUA_TMPNAMBUFSIZE L_tmpnam |
◆ SIZETIMEFMT
◆ checkoption()
static const char* checkoption |
( |
lua_State * |
L, |
|
|
const char * |
conv, |
|
|
ptrdiff_t |
convlen, |
|
|
char * |
buff |
|
) |
| |
|
static |
◆ getboolfield()
static int getboolfield |
( |
lua_State * |
L, |
|
|
const char * |
key |
|
) |
| |
|
static |
◆ getfield()
static int getfield |
( |
lua_State * |
L, |
|
|
const char * |
key, |
|
|
int |
d, |
|
|
int |
delta |
|
) |
| |
|
static |
◆ l_checktime()
static time_t l_checktime |
( |
lua_State * |
L, |
|
|
int |
arg |
|
) |
| |
|
static |
◆ luaopen_os()
◆ os_clock()
◆ os_date()
◆ os_difftime()
◆ os_execute()
◆ os_exit()
◆ os_getenv()
◆ os_remove()
◆ os_rename()
◆ os_setlocale()
◆ os_time()
◆ os_tmpname()
◆ setallfields()
static void setallfields |
( |
lua_State * |
L, |
|
|
struct tm * |
stm |
|
) |
| |
|
static |
◆ setboolfield()
static void setboolfield |
( |
lua_State * |
L, |
|
|
const char * |
key, |
|
|
int |
value |
|
) |
| |
|
static |
◆ setfield()
static void setfield |
( |
lua_State * |
L, |
|
|
const char * |
key, |
|
|
int |
value, |
|
|
int |
delta |
|
) |
| |
|
static |
◆ syslib
Initial value:
Definition at line 407 of file loslib.c.