Home
last modified time | relevance | path

Searched refs:lua_State (Results 1 – 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlua.h52 typedef struct lua_State lua_State; typedef
54 typedef int (*lua_CFunction) (lua_State *L);
60 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
62 typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);
130 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
131 LUA_API void (lua_close) (lua_State *L);
132 LUA_API lua_State *(lua_newthread) (lua_State *L);
134 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
137 LUA_API const lua_Number *(lua_version) (lua_State *L);
143 LUA_API int (lua_absindex) (lua_State *L, int idx);
[all …]
H A Dlauxlib.h28 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver);
31 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
32 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);
33 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len);
34 LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg);
35 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg,
37 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int numArg,
39 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int numArg);
40 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int nArg, lua_Number def);
42 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg);
[all …]
H A Dlualib.h15 LUAMOD_API int (luaopen_base) (lua_State *L);
18 LUAMOD_API int (luaopen_coroutine) (lua_State *L);
21 LUAMOD_API int (luaopen_table) (lua_State *L);
24 LUAMOD_API int (luaopen_io) (lua_State *L);
27 LUAMOD_API int (luaopen_os) (lua_State *L);
30 LUAMOD_API int (luaopen_string) (lua_State *L);
33 LUAMOD_API int (luaopen_bit32) (lua_State *L);
36 LUAMOD_API int (luaopen_math) (lua_State *L);
39 LUAMOD_API int (luaopen_debug) (lua_State *L);
42 LUAMOD_API int (luaopen_package) (lua_State *L);
[all …]
H A Dldo.h27 typedef void (*Pfunc) (lua_State *L, void *ud);
29 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
31 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line);
32 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
33 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults,
35 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
37 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult);
38 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
39 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
40 LUAI_FUNC void luaD_shrinkstack (lua_State *L);
[all …]
H A Dlcorolib.c19 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume()
48 static int luaB_coresume (lua_State *L) { in luaB_coresume()
49 lua_State *co = lua_tothread(L, 1); in luaB_coresume()
66 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap()
67 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap()
81 static int luaB_cocreate (lua_State *L) { in luaB_cocreate()
82 lua_State *NL; in luaB_cocreate()
91 static int luaB_cowrap (lua_State *L) { in luaB_cowrap()
98 static int luaB_yield (lua_State *L) { in luaB_yield()
103 static int luaB_costatus (lua_State *L) { in luaB_costatus()
[all …]
H A Dlauxlib.c38 static int findfield (lua_State *L, int objidx, int level) { in findfield()
62 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname()
78 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname()
96 static int countlevels (lua_State *L) { in countlevels()
111 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback()
148 LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { in luaL_argerror()
166 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror()
173 static void tag_error (lua_State *L, int narg, int tag) { in tag_error()
178 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
191 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error()
[all …]
H A Dlapi.c54 static TValue *index2addr (lua_State *L, int idx) { in index2addr()
85 static void growstack (lua_State *L, void *ud) { in growstack()
91 LUA_API int lua_checkstack (lua_State *L, int size) { in lua_checkstack()
111 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove()
126 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic()
136 LUA_API const lua_Number *lua_version (lua_State *L) { in lua_version()
152 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex()
159 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
164 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop()
181 LUA_API void lua_remove (lua_State *L, int idx) { in lua_remove()
[all …]
H A Dlbitlib.c36 static b_uint andaux (lua_State *L) { in andaux()
45 static int b_and (lua_State *L) { in b_and()
52 static int b_test (lua_State *L) { in b_test()
59 static int b_or (lua_State *L) { in b_or()
69 static int b_xor (lua_State *L) { in b_xor()
79 static int b_not (lua_State *L) { in b_not()
86 static int b_shift (lua_State *L, b_uint r, int i) { in b_shift()
103 static int b_lshift (lua_State *L) { in b_lshift()
108 static int b_rshift (lua_State *L) { in b_rshift()
113 static int b_arshift (lua_State *L) { in b_arshift()
[all …]
H A Dlbaselib.c32 static int luaB_tonumber (lua_State *L) { in luaB_tonumber()
73 static int luaB_error (lua_State *L) { in luaB_error()
85 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable()
96 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable()
109 static int luaB_rawequal (lua_State *L) { in luaB_rawequal()
117 static int luaB_rawlen (lua_State *L) { in luaB_rawlen()
126 static int luaB_rawget (lua_State *L) { in luaB_rawget()
134 static int luaB_rawset (lua_State *L) { in luaB_rawset()
144 static int luaB_collectgarbage (lua_State *L) { in luaB_collectgarbage()
173 static int luaB_type (lua_State *L) { in luaB_type()
[all …]
H A Dlvm.h26 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2);
29 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
30 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
32 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
33 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
35 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
37 LUAI_FUNC void luaV_finishOp (lua_State *L);
38 LUAI_FUNC void luaV_execute (lua_State *L);
39 LUAI_FUNC void luaV_concat (lua_State *L, int total);
40 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
[all …]
H A Dlfunc.h21 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems);
23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems);
24 LUAI_FUNC UpVal *luaF_newupval (lua_State *L);
25 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
26 LUAI_FUNC void luaF_close (lua_State *L, StkId level);
27 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
28 LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
H A Dlstate.c61 lua_State l;
87 static unsigned int makeseed (lua_State *L) { in makeseed()
110 CallInfo *luaE_extendCI (lua_State *L) { in luaE_extendCI()
120 void luaE_freeCI (lua_State *L) { in luaE_freeCI()
131 static void stack_init (lua_State *L1, lua_State *L) { in stack_init()
151 static void freestack (lua_State *L) { in freestack()
163 static void init_registry (lua_State *L, global_State *g) { in init_registry()
181 static void f_luaopen (lua_State *L, void *ud) { in f_luaopen()
202 static void preinit_state (lua_State *L, global_State *g) { in preinit_state()
221 static void close_state (lua_State *L) { in close_state()
[all …]
H A Dltable.h26 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value);
29 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);
30 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
31 LUAI_FUNC Table *luaH_new (lua_State *L);
32 LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize);
33 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize);
34 LUAI_FUNC void luaH_free (lua_State *L, Table *t);
35 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
H A Dlgc.h143 LUAI_FUNC void luaC_freeallobjects (lua_State *L);
144 LUAI_FUNC void luaC_step (lua_State *L);
145 LUAI_FUNC void luaC_forcestep (lua_State *L);
146 LUAI_FUNC void luaC_runtilstate (lua_State *L, int statesmask);
147 LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency);
148 LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz,
150 LUAI_FUNC void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v);
151 LUAI_FUNC void luaC_barrierback_ (lua_State *L, GCObject *o);
152 LUAI_FUNC void luaC_barrierproto_ (lua_State *L, Proto *p, Closure *c);
153 LUAI_FUNC void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt);
[all …]
H A Dldebug.h24 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
26 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2);
27 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1,
29 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
31 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
32 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
H A Dltablib.c24 static int maxn (lua_State *L) { in maxn()
41 static int tinsert (lua_State *L) { in tinsert()
68 static int tremove (lua_State *L) { in tremove()
84 static void addfield (lua_State *L, luaL_Buffer *b, int i) { in addfield()
93 static int tconcat (lua_State *L) { in tconcat()
119 static int pack (lua_State *L) { in pack()
136 static int unpack (lua_State *L) { in unpack()
165 static void set2 (lua_State *L, int i, int j) { in set2()
170 static int sort_comp (lua_State *L, int a, int b) { in sort_comp()
185 static void auxsort (lua_State *L, int l, int u) { in auxsort()
[all …]
H A Dldebug.c33 static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name);
47 static void swapextra (lua_State *L) { in swapextra()
60 LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { in lua_sethook()
75 LUA_API lua_Hook lua_gethook (lua_State *L) { in lua_gethook()
80 LUA_API int lua_gethookmask (lua_State *L) { in lua_gethookmask()
85 LUA_API int lua_gethookcount (lua_State *L) { in lua_gethookcount()
90 LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) { in lua_getstack()
125 static const char *findlocal (lua_State *L, CallInfo *ci, int n, in findlocal()
151 LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) { in lua_getlocal()
175 LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) { in lua_setlocal()
[all …]
H A Dldo.c88 static void seterrorobj (lua_State *L, int errcode, StkId oldtop) { in seterrorobj()
107 l_noret luaD_throw (lua_State *L, int errcode) { in luaD_throw()
129 int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { in luaD_rawrunprotected()
146 static void correctstack (lua_State *L, TValue *oldstack) { in correctstack()
165 void luaD_reallocstack (lua_State *L, int newsize) { in luaD_reallocstack()
179 void luaD_growstack (lua_State *L, int n) { in luaD_growstack()
198 static int stackinuse (lua_State *L) { in stackinuse()
209 void luaD_shrinkstack (lua_State *L) { in luaD_shrinkstack()
221 void luaD_hook (lua_State *L, int event, int line) { in luaD_hook()
248 static void callhook (lua_State *L, CallInfo *ci) { in callhook()
[all …]
H A Dlgc.c135 void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v) { in luaC_barrier_()
155 void luaC_barrierback_ (lua_State *L, GCObject *o) { in luaC_barrierback_()
172 LUAI_FUNC void luaC_barrierproto_ (lua_State *L, Proto *p, Closure *c) { in luaC_barrierproto_()
212 GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, GCObject **list, in luaC_newobj()
495 static lu_mem traversestack (global_State *g, lua_State *th) { in traversestack()
512 return sizeof(lua_State) + sizeof(TValue) * th->stacksize + in traversestack()
546 lua_State *th = gco2th(o); in propagatemark()
663 static void freeobj (lua_State *L, GCObject *o) { in freeobj()
691 static GCObject **sweeplist (lua_State *L, GCObject **p, lu_mem count);
698 static void sweepthread (lua_State *L, lua_State *L1) { in sweepthread()
[all …]
H A Dlstate.h143 struct lua_State *mainthread;
154 struct lua_State { struct
193 struct lua_State th; /* thread */ argument
222 LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1);
223 LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L);
224 LUAI_FUNC void luaE_freeCI (lua_State *L);
H A Dlfunc.c23 Closure *luaF_newCclosure (lua_State *L, int n) { in luaF_newCclosure()
30 Closure *luaF_newLclosure (lua_State *L, int n) { in luaF_newLclosure()
39 UpVal *luaF_newupval (lua_State *L) { in luaF_newupval()
47 UpVal *luaF_findupval (lua_State *L, StkId level) { in luaF_findupval()
82 void luaF_freeupval (lua_State *L, UpVal *uv) { in luaF_freeupval()
89 void luaF_close (lua_State *L, StkId level) { in luaF_close()
110 Proto *luaF_newproto (lua_State *L) { in luaF_newproto()
135 void luaF_freeproto (lua_State *L, Proto *f) { in luaF_freeproto()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzcp.h39 int zcp_argerror(lua_State *, int, const char *, ...);
44 int zcp_load_list_lib(lua_State *);
46 int zcp_load_synctask_lib(lua_State *, boolean_t);
122 lua_State *zri_state;
140 zcp_run_info_t *zcp_run_info(lua_State *);
141 zcp_cleanup_handler_t *zcp_register_cleanup(lua_State *, zcp_cleanup_t, void *);
142 void zcp_deregister_cleanup(lua_State *, zcp_cleanup_handler_t *);
143 void zcp_cleanup(lua_State *);
166 void zcp_parse_args(lua_State *, const char *, const zcp_arg_t *,
168 int zcp_nvlist_to_lua(lua_State *, nvlist_t *, char *, int);
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_synctask.c43 lua_State *zipa_state;
48 typedef int (zcp_synctask_func_t)(lua_State *, boolean_t, nvlist_t *);
77 zcp_sync_task(lua_State *state, dsl_checkfunc_t *checkfunc, in zcp_sync_task()
111 static int zcp_synctask_destroy(lua_State *, boolean_t, nvlist_t *);
129 zcp_synctask_destroy(lua_State *state, boolean_t sync, nvlist_t *err_details) in zcp_synctask_destroy()
164 static int zcp_synctask_promote(lua_State *, boolean_t, nvlist_t *);
180 zcp_synctask_promote(lua_State *state, boolean_t sync, nvlist_t *err_details) in zcp_synctask_promote()
201 static int zcp_synctask_rollback(lua_State *, boolean_t, nvlist_t *err_details);
217 zcp_synctask_rollback(lua_State *state, boolean_t sync, nvlist_t *err_details) in zcp_synctask_rollback()
232 static int zcp_synctask_snapshot(lua_State *, boolean_t, nvlist_t *);
[all …]
H A Dzcp_iter.c36 typedef int (zcp_list_func_t)(lua_State *);
46 zcp_clones_iter(lua_State *state) in zcp_clones_iter()
106 static int zcp_clones_list(lua_State *);
121 zcp_clones_list(lua_State *state) in zcp_clones_list()
153 zcp_snapshots_iter(lua_State *state) in zcp_snapshots_iter()
195 static int zcp_snapshots_list(lua_State *);
210 zcp_snapshots_list(lua_State *state) in zcp_snapshots_list()
250 zcp_children_iter(lua_State *state) in zcp_children_iter()
296 static int zcp_children_list(lua_State *);
311 zcp_children_list(lua_State *state) in zcp_children_list()
[all …]
H A Dzcp.c114 static int zcp_nvpair_value_to_lua(lua_State *, nvpair_t *, char *, int);
115 static int zcp_lua_to_nvlist_impl(lua_State *, int, nvlist_t *, const char *,
130 zcp_error_handler(lua_State *state) in zcp_error_handler()
143 zcp_argerror(lua_State *state, int narg, const char *msg, ...) in zcp_argerror()
166 zcp_register_cleanup(lua_State *state, zcp_cleanup_t cleanfunc, void *cleanarg) in zcp_register_cleanup()
179 zcp_deregister_cleanup(lua_State *state, zcp_cleanup_handler_t *zch) in zcp_deregister_cleanup()
191 zcp_cleanup(lua_State *state) in zcp_cleanup()
211 zcp_table_to_nvlist(lua_State *state, int index, int depth) in zcp_table_to_nvlist()
364 zcp_lua_to_nvlist_impl(lua_State *state, int index, nvlist_t *nvl, in zcp_lua_to_nvlist_impl()
415 zcp_lua_to_nvlist(lua_State *state, int index, nvlist_t *nvl, const char *key) in zcp_lua_to_nvlist()
[all …]

123