summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/zfs/lua/lualib.h
diff options
context:
space:
mode:
authorChris Williamson <chris.williamson@delphix.com>2017-06-23 15:56:06 -0700
committerMatthew Ahrens <mahrens@delphix.com>2017-06-26 06:45:06 -0700
commitdfc115332c94a2f62058ac7f2bce7631fbd20b3d (patch)
tree1bcc8a12ac56d03b394b32e32347d9f28f9af103 /usr/src/uts/common/fs/zfs/lua/lualib.h
parent3d9b1a2a543845425f021c3f896a07b1deff87c9 (diff)
downloadillumos-joyent-dfc115332c94a2f62058ac7f2bce7631fbd20b3d.tar.gz
7431 ZFS Channel Programs
Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: John Kennedy <john.kennedy@delphix.com> Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/uts/common/fs/zfs/lua/lualib.h')
-rw-r--r--usr/src/uts/common/fs/zfs/lua/lualib.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/usr/src/uts/common/fs/zfs/lua/lualib.h b/usr/src/uts/common/fs/zfs/lua/lualib.h
new file mode 100644
index 0000000000..da82005c9d
--- /dev/null
+++ b/usr/src/uts/common/fs/zfs/lua/lualib.h
@@ -0,0 +1,55 @@
+/*
+** $Id: lualib.h,v 1.43.1.1 2013/04/12 18:48:47 roberto Exp $
+** Lua standard libraries
+** See Copyright Notice in lua.h
+*/
+
+
+#ifndef lualib_h
+#define lualib_h
+
+#include "lua.h"
+
+
+
+LUAMOD_API int (luaopen_base) (lua_State *L);
+
+#define LUA_COLIBNAME "coroutine"
+LUAMOD_API int (luaopen_coroutine) (lua_State *L);
+
+#define LUA_TABLIBNAME "table"
+LUAMOD_API int (luaopen_table) (lua_State *L);
+
+#define LUA_IOLIBNAME "io"
+LUAMOD_API int (luaopen_io) (lua_State *L);
+
+#define LUA_OSLIBNAME "os"
+LUAMOD_API int (luaopen_os) (lua_State *L);
+
+#define LUA_STRLIBNAME "string"
+LUAMOD_API int (luaopen_string) (lua_State *L);
+
+#define LUA_BITLIBNAME "bit32"
+LUAMOD_API int (luaopen_bit32) (lua_State *L);
+
+#define LUA_MATHLIBNAME "math"
+LUAMOD_API int (luaopen_math) (lua_State *L);
+
+#define LUA_DBLIBNAME "debug"
+LUAMOD_API int (luaopen_debug) (lua_State *L);
+
+#define LUA_LOADLIBNAME "package"
+LUAMOD_API int (luaopen_package) (lua_State *L);
+
+
+/* open all previous libraries */
+LUALIB_API void (luaL_openlibs) (lua_State *L);
+
+
+
+#if !defined(lua_assert)
+#define lua_assert(x) ((void)0)
+#endif
+
+
+#endif