| /freebsd-13-stable/sys/contrib/openzfs/include/sys/lua/ |
| HD | lua.h | 53 typedef struct lua_State lua_State; typedef 55 typedef int (*lua_CFunction) (lua_State *L); 61 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); 63 typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); 131 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); 132 LUA_API void (lua_close) (lua_State *L); 133 LUA_API lua_State *(lua_newthread) (lua_State *L); 135 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); 138 LUA_API const lua_Number *(lua_version) (lua_State *L); 144 LUA_API int (lua_absindex) (lua_State *L, int idx); [all …]
|
| HD | lauxlib.h | 27 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver); 30 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); 31 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); 32 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); 33 LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg); 34 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg, 36 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int numArg, 38 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int numArg); 39 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int nArg, lua_Number def); 41 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg); [all …]
|
| HD | lualib.h | 16 LUAMOD_API int (luaopen_base) (lua_State *L); 19 LUAMOD_API int (luaopen_coroutine) (lua_State *L); 22 LUAMOD_API int (luaopen_table) (lua_State *L); 25 LUAMOD_API int (luaopen_io) (lua_State *L); 28 LUAMOD_API int (luaopen_os) (lua_State *L); 31 LUAMOD_API int (luaopen_string) (lua_State *L); 34 LUAMOD_API int (luaopen_bit32) (lua_State *L); 37 LUAMOD_API int (luaopen_math) (lua_State *L); 40 LUAMOD_API int (luaopen_debug) (lua_State *L); 43 LUAMOD_API int (luaopen_package) (lua_State *L); [all …]
|
| /freebsd-13-stable/contrib/lua/src/ |
| HD | lua.h | 57 typedef struct lua_State lua_State; typedef 106 typedef int (*lua_CFunction) (lua_State *L); 111 typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx); 117 typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); 119 typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud); 153 LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); 154 LUA_API void (lua_close) (lua_State *L); 155 LUA_API lua_State *(lua_newthread) (lua_State *L); 156 LUA_API int (lua_resetthread) (lua_State *L); 158 LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); [all …]
|
| HD | lauxlib.h | 45 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver, size_t sz); 49 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); 50 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); 51 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); 52 LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg); 53 LUALIB_API int (luaL_typeerror) (lua_State *L, int arg, const char *tname); 54 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg, 56 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg, 58 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg); 59 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def); [all …]
|
| HD | lcorolib.c | 21 static lua_State *getco (lua_State *L) { in getco() 22 lua_State *co = lua_tothread(L, 1); in getco() 32 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() 56 static int luaB_coresume (lua_State *L) { in luaB_coresume() 57 lua_State *co = getco(L); in luaB_coresume() 73 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap() 74 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap() 92 static int luaB_cocreate (lua_State *L) { in luaB_cocreate() 93 lua_State *NL; in luaB_cocreate() 102 static int luaB_cowrap (lua_State *L) { in luaB_cowrap() [all …]
|
| HD | ldo.h | 53 typedef void (*Pfunc) (lua_State *L, void *ud); 55 LUAI_FUNC void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop); 56 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, 58 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line, 60 LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci); 61 LUAI_FUNC void luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int n); 62 LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults); 63 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults); 64 LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults); 65 LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func); [all …]
|
| HD | ldblib.c | 35 static void checkstack (lua_State *L, lua_State *L1, int n) { in checkstack() 41 static int db_getregistry (lua_State *L) { in db_getregistry() 47 static int db_getmetatable (lua_State *L) { in db_getmetatable() 56 static int db_setmetatable (lua_State *L) { in db_setmetatable() 65 static int db_getuservalue (lua_State *L) { in db_getuservalue() 77 static int db_setuservalue (lua_State *L) { in db_setuservalue() 94 static lua_State *getthread (lua_State *L, int *arg) { in getthread() 111 static void settabss (lua_State *L, const char *k, const char *v) { in settabss() 116 static void settabsi (lua_State *L, const char *k, int v) { in settabsi() 121 static void settabsb (lua_State *L, const char *k, int v) { in settabsb() [all …]
|
| HD | lualib.h | 18 LUAMOD_API int (luaopen_base) (lua_State *L); 21 LUAMOD_API int (luaopen_coroutine) (lua_State *L); 24 LUAMOD_API int (luaopen_table) (lua_State *L); 27 LUAMOD_API int (luaopen_io) (lua_State *L); 30 LUAMOD_API int (luaopen_os) (lua_State *L); 33 LUAMOD_API int (luaopen_string) (lua_State *L); 36 LUAMOD_API int (luaopen_utf8) (lua_State *L); 39 LUAMOD_API int (luaopen_math) (lua_State *L); 42 LUAMOD_API int (luaopen_debug) (lua_State *L); 45 LUAMOD_API int (luaopen_package) (lua_State *L); [all …]
|
| HD | lauxlib.c | 52 static int findfield (lua_State *L, int objidx, int level) { in findfield() 79 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname() 100 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname() 116 static int lastlevel (lua_State *L) { in lastlevel() 131 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback() 175 LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) { in luaL_argerror() 193 int luaL_typeerror (lua_State *L, int arg, const char *tname) { in luaL_typeerror() 207 static void tag_error (lua_State *L, int arg, int tag) { in tag_error() 216 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where() 234 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error() [all …]
|
| HD | lbaselib.c | 24 static int luaB_print (lua_State *L) { in luaB_print() 45 static int luaB_warn (lua_State *L) { in luaB_warn() 81 static int luaB_tonumber (lua_State *L) { in luaB_tonumber() 114 static int luaB_error (lua_State *L) { in luaB_error() 126 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable() 137 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable() 149 static int luaB_rawequal (lua_State *L) { in luaB_rawequal() 157 static int luaB_rawlen (lua_State *L) { in luaB_rawlen() 166 static int luaB_rawget (lua_State *L) { in luaB_rawget() 174 static int luaB_rawset (lua_State *L) { in luaB_rawset() [all …]
|
| HD | ldebug.h | 30 LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, 32 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 34 LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o, 36 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, 38 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, 41 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1, 43 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, 45 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); 46 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg, 48 LUAI_FUNC l_noret luaG_errormsg (lua_State *L); [all …]
|
| HD | liolib.c | 157 static int io_type (lua_State *L) { in io_type() 171 static int f_tostring (lua_State *L) { in f_tostring() 181 static FILE *tofile (lua_State *L) { in tofile() 195 static LStream *newprefile (lua_State *L) { in newprefile() 208 static int aux_close (lua_State *L) { in aux_close() 216 static int f_close (lua_State *L) { in f_close() 222 static int io_close (lua_State *L) { in io_close() 229 static int f_gc (lua_State *L) { in f_gc() 240 static int io_fclose (lua_State *L) { in io_fclose() 247 static LStream *newfile (lua_State *L) { in newfile() [all …]
|
| HD | lapi.c | 56 static TValue *index2value (lua_State *L, int idx) { in index2value() 83 static StkId index2stack (lua_State *L, int idx) { in index2stack() 98 LUA_API int lua_checkstack (lua_State *L, int n) { in lua_checkstack() 120 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove() 136 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic() 146 LUA_API lua_Number lua_version (lua_State *L) { in lua_version() 161 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex() 168 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() 173 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop() 203 static void reverse (lua_State *L, StkId from, StkId to) { in reverse() [all …]
|
| HD | ltm.h | 74 LUAI_FUNC const char *luaT_objtypename (lua_State *L, const TValue *o); 77 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, 79 LUAI_FUNC void luaT_init (lua_State *L); 81 LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, 83 LUAI_FUNC void luaT_callTMres (lua_State *L, const TValue *f, 85 LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, 87 LUAI_FUNC void luaT_tryconcatTM (lua_State *L); 88 LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1, 90 LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, 92 LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1, [all …]
|
| HD | loadlib.c | 92 static void *lsys_load (lua_State *L, const char *path, int seeglb); 99 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym); 133 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 140 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() 175 static void setprogdir (lua_State *L) { in setprogdir() 192 static void pusherror (lua_State *L) { in pusherror() 207 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 215 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() 243 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load() 250 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym() [all …]
|
| HD | lmathlib.c | 29 static int math_abs (lua_State *L) { in math_abs() 40 static int math_sin (lua_State *L) { in math_sin() 45 static int math_cos (lua_State *L) { in math_cos() 50 static int math_tan (lua_State *L) { in math_tan() 55 static int math_asin (lua_State *L) { in math_asin() 60 static int math_acos (lua_State *L) { in math_acos() 65 static int math_atan (lua_State *L) { in math_atan() 73 static int math_toint (lua_State *L) { in math_toint() 86 static void pushnumint (lua_State *L, lua_Number d) { in pushnumint() 95 static int math_floor (lua_State *L) { in math_floor() [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/include/sys/ |
| HD | zcp.h | 39 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); 123 lua_State *zri_state; 149 zcp_run_info_t *zcp_run_info(lua_State *); 150 zcp_cleanup_handler_t *zcp_register_cleanup(lua_State *, zcp_cleanup_t, void *); 151 void zcp_deregister_cleanup(lua_State *, zcp_cleanup_handler_t *); 152 void zcp_cleanup(lua_State *); 175 void zcp_parse_args(lua_State *, const char *, const zcp_arg_t *, 177 int zcp_nvlist_to_lua(lua_State *, nvlist_t *, char *, int); [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/module/lua/ |
| HD | ldo.h | 28 typedef void (*Pfunc) (lua_State *L, void *ud); 30 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, 32 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line); 33 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults); 34 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults, 36 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, 38 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult); 39 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize); 40 LUAI_FUNC void luaD_growstack (lua_State *L, int n); 41 LUAI_FUNC void luaD_shrinkstack (lua_State *L); [all …]
|
| HD | lauxlib.c | 37 static int findfield (lua_State *L, int objidx, int level) { in findfield() 61 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname() 77 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname() 95 static int countlevels (lua_State *L) { in countlevels() 110 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback() 147 LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { in luaL_argerror() 165 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror() 172 static void tag_error (lua_State *L, int narg, int tag) { in tag_error() 177 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where() 190 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error() [all …]
|
| HD | lcorolib.c | 18 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() 47 static int luaB_coresume (lua_State *L) { in luaB_coresume() 48 lua_State *co = lua_tothread(L, 1); in luaB_coresume() 65 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap() 66 lua_State *co = lua_tothread(L, lua_upvalueindex(1)); in luaB_auxwrap() 80 static int luaB_cocreate (lua_State *L) { in luaB_cocreate() 81 lua_State *NL; in luaB_cocreate() 90 static int luaB_cowrap (lua_State *L) { in luaB_cowrap() 97 static int luaB_yield (lua_State *L) { in luaB_yield() 102 static int luaB_costatus (lua_State *L) { in luaB_costatus() [all …]
|
| HD | lapi.c | 52 static TValue *index2addr (lua_State *L, int idx) { in index2addr() 83 static void growstack (lua_State *L, void *ud) { in growstack() 89 LUA_API int lua_checkstack (lua_State *L, int size) { in lua_checkstack() 109 LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { in lua_xmove() 124 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic() 134 LUA_API const lua_Number *lua_version (lua_State *L) { in lua_version() 150 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex() 157 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() 162 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop() 179 LUA_API void lua_remove (lua_State *L, int idx) { in lua_remove() [all …]
|
| HD | lvm.h | 27 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2); 30 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 31 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); 33 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); 34 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 36 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, 38 LUAI_FUNC void luaV_finishOp (lua_State *L); 39 LUAI_FUNC void luaV_execute (lua_State *L); 40 LUAI_FUNC void luaV_concat (lua_State *L, int total); 41 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb, [all …]
|
| HD | lbaselib.c | 30 static int luaB_tonumber (lua_State *L) { in luaB_tonumber() 71 static int luaB_error (lua_State *L) { in luaB_error() 83 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable() 94 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable() 107 static int luaB_rawequal (lua_State *L) { in luaB_rawequal() 115 static int luaB_rawlen (lua_State *L) { in luaB_rawlen() 124 static int luaB_rawget (lua_State *L) { in luaB_rawget() 132 static int luaB_rawset (lua_State *L) { in luaB_rawset() 142 static int luaB_collectgarbage (lua_State *L) { in luaB_collectgarbage() 171 static int luaB_type (lua_State *L) { in luaB_type() [all …]
|
| /freebsd-13-stable/stand/liblua/ |
| HD | lutils.c | 44 lua_command(lua_State *L) in lua_command() 65 lua_has_command(lua_State *L) in lua_has_command() 80 lua_has_feature(lua_State *L) in lua_has_feature() 99 lua_perform(lua_State *L) in lua_perform() 115 lua_command_error(lua_State *L) in lua_command_error() 127 lua_interpret(lua_State *L) in lua_interpret() 142 lua_parse(lua_State *L) in lua_parse() 160 lua_getchar(lua_State *L) in lua_getchar() 168 lua_ischar(lua_State *L) in lua_ischar() 176 lua_gets(lua_State *L) in lua_gets() [all …]
|