2022-06-18 08:10:29 +00:00
|
|
|
#ifndef COSMOPOLITAN_THIRD_PARTY_LUA_LUNIX_H_
|
|
|
|
#define COSMOPOLITAN_THIRD_PARTY_LUA_LUNIX_H_
|
|
|
|
#include "third_party/lua/lauxlib.h"
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-07-20 22:13:39 +00:00
|
|
|
struct UnixErrno {
|
|
|
|
int errno_;
|
|
|
|
int winerr;
|
|
|
|
const char *call;
|
|
|
|
};
|
|
|
|
|
2022-06-18 08:10:29 +00:00
|
|
|
int LuaUnix(lua_State *);
|
2022-07-20 22:13:39 +00:00
|
|
|
int LuaUnixSysretErrno(lua_State *, const char *, int);
|
2022-06-18 08:10:29 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_LUA_LUNIX_H_ */
|