native Lua  0.4.0
Lua on the platform you use with the compiler you choose
Macros | Functions
loslib.c File Reference
#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"
Include dependency graph for loslib.c:

Macros

#define loslib_c
 
#define LUA_LIB
 
#define L_STRFTIMEC89   "aAbBcdHIjmMpSUwWxXyYZ%"
 
#define L_STRFTIMEC99
 
#define L_STRFTIMEWIN
 
#define LUA_STRFTIMEOPTIONS   L_STRFTIMEC99
 
#define l_timet   lua_Integer
 
#define l_pushtime(L, t)   lua_pushinteger(L,(lua_Integer)(t))
 
#define l_gmtime(t, r)   ((void)(r)->tm_sec, gmtime(t))
 
#define l_localtime(t, r)   ((void)(r)->tm_sec, localtime(t))
 
#define LUA_TMPNAMBUFSIZE   L_tmpnam
 
#define lua_tmpnam(b, e)   { e = (tmpnam(b) == NULL); }
 
#define L_MAXDATEFIELD   (INT_MAX / 2)
 
#define SIZETIMEFMT   250
 

Functions

LUAMOD_API int luaopen_os (lua_State *L)
 

Macro Definition Documentation

◆ l_gmtime

#define l_gmtime (   t,
 
)    ((void)(r)->tm_sec, gmtime(t))

◆ l_localtime

#define l_localtime (   t,
 
)    ((void)(r)->tm_sec, localtime(t))

◆ L_MAXDATEFIELD

#define L_MAXDATEFIELD   (INT_MAX / 2)

◆ l_pushtime

#define l_pushtime (   L,
 
)    lua_pushinteger(L,(lua_Integer)(t))

◆ L_STRFTIMEC89

#define L_STRFTIMEC89   "aAbBcdHIjmMpSUwWxXyYZ%"

◆ L_STRFTIMEC99

#define L_STRFTIMEC99
Value:
"aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%" \
"||" "EcECExEXEyEY" "OdOeOHOIOmOMOSOuOUOVOwOWOy" /* two-char options */

◆ L_STRFTIMEWIN

#define L_STRFTIMEWIN
Value:
"aAbBcdHIjmMpSUwWxXyYzZ%" \
"||" "#c#x#d#H#I#j#m#M#S#U#w#W#y#Y" /* two-char options */

◆ l_timet

#define l_timet   lua_Integer

◆ loslib_c

#define loslib_c

◆ LUA_LIB

#define LUA_LIB

◆ LUA_STRFTIMEOPTIONS

#define LUA_STRFTIMEOPTIONS   L_STRFTIMEC99

◆ lua_tmpnam

#define lua_tmpnam (   b,
 
)    { e = (tmpnam(b) == NULL); }

◆ LUA_TMPNAMBUFSIZE

#define LUA_TMPNAMBUFSIZE   L_tmpnam

◆ SIZETIMEFMT

#define SIZETIMEFMT   250

Function Documentation

◆ luaopen_os()

LUAMOD_API int luaopen_os ( lua_State L)