\hypertarget{loslib_8c}{
\section{loslib.c File Reference}
\label{loslib_8c}\index{loslib.c@{loslib.c}}
}
{\tt \#include $<$errno.h$>$}\par
{\tt \#include $<$locale.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$time.h$>$}\par
{\tt \#include \char`\"{}lua.h\char`\"{}}\par
{\tt \#include \char`\"{}lauxlib.h\char`\"{}}\par
{\tt \#include \char`\"{}lualib.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{loslib_8c_3ec58cf7ef7bd5214b2688f74dcefb73}{loslib\_\-c}
\item 
\#define \hyperlink{loslib_8c_884b19ad6094d6238c4072a8064aeb12}{LUA\_\-LIB}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static int \hyperlink{loslib_8c_38dd90cacd77820790f203a6216c0de3}{os\_\-pushresult} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int i, const char $\ast$filename)
\item 
static int \hyperlink{loslib_8c_2da7b72413e7abbb84043eeb7988ba36}{os\_\-execute} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_ff1386a6722ad488ced309e2fcdebe13}{os\_\-remove} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_9e0e5e5a06a8a1aa797e15034070b405}{os\_\-rename} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_89a90062784a8adc223ff4cbe576321d}{os\_\-tmpname} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_32640cd81f9679e9539fa18a4083a4ec}{os\_\-getenv} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_c8ac40c239a4c86ee937b34663bffe80}{os\_\-clock} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static void \hyperlink{loslib_8c_74a823f500a50f231ec779026238169e}{setfield} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$key, int value)
\item 
static void \hyperlink{loslib_8c_66ff5b88f96a4df4a360cf6928636860}{setboolfield} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$key, int value)
\item 
static int \hyperlink{loslib_8c_5dbd1fc25ad13c0f325d09f811bb6172}{getboolfield} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$key)
\item 
static int \hyperlink{loslib_8c_4d6a2679129f7d65f34a60a6c701b782}{getfield} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$key, int d)
\item 
static int \hyperlink{loslib_8c_6520f2562b500aee87a6a475995adefb}{os\_\-date} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_e32288bc9696b48450146e11c241f943}{os\_\-time} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_b2027c89bfc0320114b3cce3d77a01ed}{os\_\-difftime} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_148e76ec4bfa32f07c0bd8c802960113}{os\_\-setlocale} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loslib_8c_905e81425fe3d6d0b363c10162a2a37b}{os\_\-exit} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
LUALIB\_\-API int \hyperlink{loslib_8c_d8bb0e7bbed408907d578e3dcef7e285}{luaopen\_\-os} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
static const \hyperlink{structluaL__Reg}{luaL\_\-Reg} \hyperlink{loslib_8c_6860192a4da9966ab5be22f3cfa624a2}{syslib} \mbox{[}$\,$\mbox{]}
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{loslib_8c_3ec58cf7ef7bd5214b2688f74dcefb73}{
\index{loslib.c@{loslib.c}!loslib\_\-c@{loslib\_\-c}}
\index{loslib\_\-c@{loslib\_\-c}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define loslib\_\-c}}
\label{loslib_8c_3ec58cf7ef7bd5214b2688f74dcefb73}


\hypertarget{loslib_8c_884b19ad6094d6238c4072a8064aeb12}{
\index{loslib.c@{loslib.c}!LUA\_\-LIB@{LUA\_\-LIB}}
\index{LUA\_\-LIB@{LUA\_\-LIB}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-LIB}}
\label{loslib_8c_884b19ad6094d6238c4072a8064aeb12}




\subsection{Function Documentation}
\hypertarget{loslib_8c_5dbd1fc25ad13c0f325d09f811bb6172}{
\index{loslib.c@{loslib.c}!getboolfield@{getboolfield}}
\index{getboolfield@{getboolfield}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int getboolfield ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em key})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_5dbd1fc25ad13c0f325d09f811bb6172}


\hypertarget{loslib_8c_4d6a2679129f7d65f34a60a6c701b782}{
\index{loslib.c@{loslib.c}!getfield@{getfield}}
\index{getfield@{getfield}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int getfield ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em key}, \/  int {\em d})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_4d6a2679129f7d65f34a60a6c701b782}


\hypertarget{loslib_8c_d8bb0e7bbed408907d578e3dcef7e285}{
\index{loslib.c@{loslib.c}!luaopen\_\-os@{luaopen\_\-os}}
\index{luaopen\_\-os@{luaopen\_\-os}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int luaopen\_\-os ({\bf lua\_\-State} $\ast$ {\em L})}}
\label{loslib_8c_d8bb0e7bbed408907d578e3dcef7e285}


\hypertarget{loslib_8c_c8ac40c239a4c86ee937b34663bffe80}{
\index{loslib.c@{loslib.c}!os\_\-clock@{os\_\-clock}}
\index{os\_\-clock@{os\_\-clock}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-clock ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_c8ac40c239a4c86ee937b34663bffe80}


\hypertarget{loslib_8c_6520f2562b500aee87a6a475995adefb}{
\index{loslib.c@{loslib.c}!os\_\-date@{os\_\-date}}
\index{os\_\-date@{os\_\-date}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-date ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_6520f2562b500aee87a6a475995adefb}


\hypertarget{loslib_8c_b2027c89bfc0320114b3cce3d77a01ed}{
\index{loslib.c@{loslib.c}!os\_\-difftime@{os\_\-difftime}}
\index{os\_\-difftime@{os\_\-difftime}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-difftime ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_b2027c89bfc0320114b3cce3d77a01ed}


\hypertarget{loslib_8c_2da7b72413e7abbb84043eeb7988ba36}{
\index{loslib.c@{loslib.c}!os\_\-execute@{os\_\-execute}}
\index{os\_\-execute@{os\_\-execute}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-execute ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_2da7b72413e7abbb84043eeb7988ba36}


\hypertarget{loslib_8c_905e81425fe3d6d0b363c10162a2a37b}{
\index{loslib.c@{loslib.c}!os\_\-exit@{os\_\-exit}}
\index{os\_\-exit@{os\_\-exit}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-exit ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_905e81425fe3d6d0b363c10162a2a37b}


\hypertarget{loslib_8c_32640cd81f9679e9539fa18a4083a4ec}{
\index{loslib.c@{loslib.c}!os\_\-getenv@{os\_\-getenv}}
\index{os\_\-getenv@{os\_\-getenv}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-getenv ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_32640cd81f9679e9539fa18a4083a4ec}


\hypertarget{loslib_8c_38dd90cacd77820790f203a6216c0de3}{
\index{loslib.c@{loslib.c}!os\_\-pushresult@{os\_\-pushresult}}
\index{os\_\-pushresult@{os\_\-pushresult}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-pushresult ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em i}, \/  const char $\ast$ {\em filename})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_38dd90cacd77820790f203a6216c0de3}


\hypertarget{loslib_8c_ff1386a6722ad488ced309e2fcdebe13}{
\index{loslib.c@{loslib.c}!os\_\-remove@{os\_\-remove}}
\index{os\_\-remove@{os\_\-remove}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-remove ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_ff1386a6722ad488ced309e2fcdebe13}


\hypertarget{loslib_8c_9e0e5e5a06a8a1aa797e15034070b405}{
\index{loslib.c@{loslib.c}!os\_\-rename@{os\_\-rename}}
\index{os\_\-rename@{os\_\-rename}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-rename ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_9e0e5e5a06a8a1aa797e15034070b405}


\hypertarget{loslib_8c_148e76ec4bfa32f07c0bd8c802960113}{
\index{loslib.c@{loslib.c}!os\_\-setlocale@{os\_\-setlocale}}
\index{os\_\-setlocale@{os\_\-setlocale}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-setlocale ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_148e76ec4bfa32f07c0bd8c802960113}


\hypertarget{loslib_8c_e32288bc9696b48450146e11c241f943}{
\index{loslib.c@{loslib.c}!os\_\-time@{os\_\-time}}
\index{os\_\-time@{os\_\-time}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-time ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_e32288bc9696b48450146e11c241f943}


\hypertarget{loslib_8c_89a90062784a8adc223ff4cbe576321d}{
\index{loslib.c@{loslib.c}!os\_\-tmpname@{os\_\-tmpname}}
\index{os\_\-tmpname@{os\_\-tmpname}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int os\_\-tmpname ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_89a90062784a8adc223ff4cbe576321d}


\hypertarget{loslib_8c_66ff5b88f96a4df4a360cf6928636860}{
\index{loslib.c@{loslib.c}!setboolfield@{setboolfield}}
\index{setboolfield@{setboolfield}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void setboolfield ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em key}, \/  int {\em value})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_66ff5b88f96a4df4a360cf6928636860}


\hypertarget{loslib_8c_74a823f500a50f231ec779026238169e}{
\index{loslib.c@{loslib.c}!setfield@{setfield}}
\index{setfield@{setfield}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void setfield ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em key}, \/  int {\em value})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_74a823f500a50f231ec779026238169e}




\subsection{Variable Documentation}
\hypertarget{loslib_8c_6860192a4da9966ab5be22f3cfa624a2}{
\index{loslib.c@{loslib.c}!syslib@{syslib}}
\index{syslib@{syslib}!loslib.c@{loslib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf luaL\_\-Reg} {\bf syslib}\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loslib_8c_6860192a4da9966ab5be22f3cfa624a2}


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
  {"clock",     os_clock},
  {"date",      os_date},
  {"difftime",  os_difftime},
  {"execute",   os_execute},
  {"exit",      os_exit},
  {"getenv",    os_getenv},
  {"remove",    os_remove},
  {"rename",    os_rename},
  {"setlocale", os_setlocale},
  {"time",      os_time},
  {"tmpname",   os_tmpname},
  {NULL, NULL}
}
\end{verbatim}
\end{Code}
