Home
last modified time | relevance | path

Searched defs:L (Results 1 – 25 of 833) sorted by relevance

12345678910>>...34

/netbsd-src/lib/lua/sqlite/
H A Dsqlite.c46 sqlite_error(lua_State *L, const char *fmt, ...) in sqlite_error()
65 sqlite_initialize(lua_State *L) in sqlite_initialize()
72 sqlite_shutdown(lua_State *L) in sqlite_shutdown()
79 sqlite_open(lua_State *L) in sqlite_open()
97 sqlite_libversion(lua_State *L) in sqlite_libversion()
104 sqlite_libversion_number(lua_State *L) in sqlite_libversion_number()
111 sqlite_sourceid(lua_State *L) in sqlite_sourceid()
118 db_close(lua_State *L) in db_close()
133 db_prepare(lua_State *L) in db_prepare()
151 db_exec(lua_State *L) in db_exec()
[all …]
/netbsd-src/external/mit/lua/dist/src/
H A Dlbaselib.c28 static int luaB_print (lua_State *L) { in luaB_print()
49 static int luaB_warn (lua_State *L) { in luaB_warn()
85 static int luaB_tonumber (lua_State *L) { in luaB_tonumber()
118 static int luaB_error (lua_State *L) { in luaB_error()
130 static int luaB_getmetatable (lua_State *L) { in luaB_getmetatable()
141 static int luaB_setmetatable (lua_State *L) { in luaB_setmetatable()
153 static int luaB_rawequal (lua_State *L) { in luaB_rawequal()
161 static int luaB_rawlen (lua_State *L) { in luaB_rawlen()
170 static int luaB_rawget (lua_State *L) { in luaB_rawget()
178 static int luaB_rawset (lua_State *L) { in luaB_rawset()
[all …]
H A Dlapi.c52 #define isvalid(L, o) (!ttisnil(o) || o != &G(L)->nilvalue) argument
66 static TValue *index2value (lua_State *L, int idx) { in index2value()
101 l_sinline StkId index2stack (lua_State *L, int idx) { in index2stack()
117 LUA_API int lua_checkstack (lua_State *L, int n) { in lua_checkstack()
150 LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { in lua_atpanic()
160 LUA_API lua_Number lua_version (lua_State *L) { in lua_version()
175 LUA_API int lua_absindex (lua_State *L, int idx) { in lua_absindex()
182 LUA_API int lua_gettop (lua_State *L) { in lua_gettop()
187 LUA_API void lua_settop (lua_State *L, int idx) { in lua_settop()
215 LUA_API void lua_closeslot (lua_State *L, int idx) { in lua_closeslot()
[all …]
H A Dldblib.c39 static void checkstack (lua_State *L, lua_State *L1, int n) { in checkstack()
45 static int db_getregistry (lua_State *L) { in db_getregistry()
51 static int db_getmetatable (lua_State *L) { in db_getmetatable()
60 static int db_setmetatable (lua_State *L) { in db_setmetatable()
69 static int db_getuservalue (lua_State *L) { in db_getuservalue()
81 static int db_setuservalue (lua_State *L) { in db_setuservalue()
98 static lua_State *getthread (lua_State *L, int *arg) { in getthread()
115 static void settabss (lua_State *L, const char *k, const char *v) { in settabss()
120 static void settabsi (lua_State *L, const char *k, int v) { in settabsi()
125 static void settabsb (lua_State *L, const char *k, int v) { in settabsb()
[all …]
H A Dlstate.c55 #define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l))) argument
75 static unsigned int luai_makeseed (lua_State *L) { in luai_makeseed()
103 LUA_API int lua_setcstacklimit (lua_State *L, unsigned int limit) { in lua_setcstacklimit()
109 CallInfo *luaE_extendCI (lua_State *L) { in luaE_extendCI()
126 void luaE_freeCI (lua_State *L) { in luaE_freeCI()
142 void luaE_shrinkCI (lua_State *L) { in luaE_shrinkCI()
169 void luaE_checkcstack (lua_State *L) { in luaE_checkcstack()
177 LUAI_FUNC void luaE_incCstack (lua_State *L) { in luaE_incCstack()
184 static void stack_init (lua_State *L1, lua_State *L) { in stack_init()
207 static void freestack (lua_State *L) { in freestack()
[all …]
H A Dliolib.c61 #define l_popen(L,c,m) (fflush(NULL), popen(c,m)) argument
62 #define l_pclose(L,file) (pclose(file)) argument
66 #define l_popen(L,c,m) (_popen(c,m)) argument
67 #define l_pclose(L,file) (_pclose(file)) argument
78 #define l_popen(L,c,m) \ argument
82 #define l_pclose(L,file) ((void)L, (void)file, -1) argument
160 #define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE)) argument
165 static int io_type (lua_State *L) { in io_type()
179 static int f_tostring (lua_State *L) { in f_tostring()
189 static FILE *tofile (lua_State *L) { in tofile()
[all …]
H A Dldo.c62 #define LUAI_THROW(L,c) throw(c) argument
63 #define LUAI_TRY(L,c,a) \ argument
70 #define LUAI_THROW(L,c) _longjmp((c)->b, 1) argument
71 #define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a } argument
77 #define LUAI_THROW(L,c) longjmp((c)->b, 1) argument
78 #define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } argument
95 void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop) { in luaD_seterrorobj()
119 l_noret luaD_throw (lua_State *L, int errcode) { in luaD_throw()
142 int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { in luaD_rawrunprotected()
169 static void relstack (lua_State *L) { in relstack()
[all …]
H A Dloadlib.c69 #define setprogdir(L) ((void)0) argument
135 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
143 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
179 static void setprogdir (lua_State *L) { in setprogdir()
196 static void pusherror (lua_State *L) { in pusherror()
211 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
219 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
247 static void *lsys_load (lua_State *L, const char *path, int seeglb) { in lsys_load()
254 static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { in lsys_sym()
287 static int noenv (lua_State *L) { in noenv()
[all …]
H A Dlua.c65 static void lstop (lua_State *L, lua_Debug *ar) { in lstop()
123 static int report (lua_State *L, int status) { in report()
136 static int msghandler (lua_State *L) { in msghandler()
155 static int docall (lua_State *L, int narg, int nres) { in docall()
185 static void createargtable (lua_State *L, char **argv, int argc, int script) { in createargtable()
197 static int dochunk (lua_State *L, int status) { in dochunk()
203 static int dofile (lua_State *L, const char *name) { in dofile()
208 static int dostring (lua_State *L, const char *s, const char *name) { in dostring()
216 static int dolibrary (lua_State *L, char *globname) { in dolibrary()
237 static int pushargs (lua_State *L) { in pushargs()
[all …]
H A Dlcorolib.c25 static lua_State *getco (lua_State *L) { in getco()
36 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume()
60 static int luaB_coresume (lua_State *L) { in luaB_coresume()
77 static int luaB_auxwrap (lua_State *L) { in luaB_auxwrap()
99 static int luaB_cocreate (lua_State *L) { in luaB_cocreate()
109 static int luaB_cowrap (lua_State *L) { in luaB_cowrap()
116 static int luaB_yield (lua_State *L) { in luaB_yield()
131 static int auxstatus (lua_State *L, lua_State *co) { in auxstatus()
153 static int luaB_costatus (lua_State *L) { in luaB_costatus()
160 static int luaB_yieldable (lua_State *L) { in luaB_yieldable()
[all …]
H A Dlmathlib.c31 static int math_abs (lua_State *L) { in math_abs()
42 static int math_sin (lua_State *L) { in math_sin()
47 static int math_cos (lua_State *L) { in math_cos()
52 static int math_tan (lua_State *L) { in math_tan()
57 static int math_asin (lua_State *L) { in math_asin()
62 static int math_acos (lua_State *L) { in math_acos()
67 static int math_atan (lua_State *L) { in math_atan()
75 static int math_toint (lua_State *L) { in math_toint()
88 static void pushnumint (lua_State *L, lua_Number d) { in pushnumint()
97 static int math_floor (lua_State *L) { in math_floor()
[all …]
H A Dlauxlib.c58 static int findfield (lua_State *L, int objidx, int level) { in findfield()
85 static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { in pushglobalfuncname()
106 static void pushfuncname (lua_State *L, lua_Debug *ar) { in pushfuncname()
122 static int lastlevel (lua_State *L) { in lastlevel()
137 LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, in luaL_traceback()
181 LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) { in luaL_argerror()
199 LUALIB_API int luaL_typeerror (lua_State *L, int arg, const char *tname) { in luaL_typeerror()
213 static void tag_error (lua_State *L, int arg, int tag) { in tag_error()
222 LUALIB_API void luaL_where (lua_State *L, int level) { in luaL_where()
240 LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { in luaL_error()
[all …]
H A Dloslib.c61 #define l_pushtime(L,t) lua_pushinteger(L,(lua_Integer)(t)) argument
62 #define l_gettime(L,arg) luaL_checkinteger(L, arg) argument
67 #define l_pushtime(L,t) lua_pushnumber(L,(lua_Number)(t)) argument
68 #define l_gettime(L,arg) luaL_checknumber(L, arg) argument
144 static int os_execute (lua_State *L) { in os_execute()
158 static int os_remove (lua_State *L) { in os_remove()
164 static int os_rename (lua_State *L) { in os_rename()
171 static int os_tmpname (lua_State *L) { in os_tmpname()
182 static int os_getenv (lua_State *L) { in os_getenv()
188 static int os_clock (lua_State *L) { in os_clock()
[all …]
H A Dlmem.h21 #define luaM_error(L) luaD_throw(L, LUA_ERRMEM) argument
38 #define luaM_checksize(L,n,e) \ argument
56 #define luaM_reallocvchar(L,b,on,n) \ argument
59 #define luaM_freemem(L, b, s) luaM_free_(L, (b), (s)) argument
60 #define luaM_free(L, b) luaM_free_(L, (b), sizeof(*(b))) argument
61 #define luaM_freearray(L, b, n) luaM_free_(L, (b), (n)*sizeof(*(b))) argument
63 #define luaM_new(L,t) cast(t*, luaM_malloc_(L, sizeof(t), 0)) argument
64 #define luaM_newvector(L,n,t) cast(t*, luaM_malloc_(L, (n)*sizeof(t), 0)) argument
65 #define luaM_newvectorchecked(L,n,t) \ argument
68 #define luaM_newobject(L,tag,s) luaM_malloc_(L, (s), tag) argument
[all …]
H A Dltablib.c37 #define aux_getn(L,n,w) (checktab(L, n, (w) | TAB_L), luaL_len(L, n)) argument
40 static int checkfield (lua_State *L, const char *key, int n) { in checkfield()
50 static void checktab (lua_State *L, int arg, int what) { in checktab()
65 static int tinsert (lua_State *L) { in tinsert()
95 static int tremove (lua_State *L) { in tremove()
119 static int tmove (lua_State *L) { in tmove()
151 static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) { in addfield()
160 static int tconcat (lua_State *L) { in tconcat()
185 static int tpack (lua_State *L) { in tpack()
198 static int tunpack (lua_State *L) { in tunpack()
[all …]
H A Dlfunc.c31 CClosure *luaF_newCclosure (lua_State *L, int nupvals) { in luaF_newCclosure()
39 LClosure *luaF_newLclosure (lua_State *L, int nupvals) { in luaF_newLclosure()
52 void luaF_initupvals (lua_State *L, LClosure *cl) { in luaF_initupvals()
69 static UpVal *newupval (lua_State *L, StkId level, UpVal **prev) { in newupval()
91 UpVal *luaF_findupval (lua_State *L, StkId level) { in luaF_findupval()
111 static void callclosemethod (lua_State *L, TValue *obj, TValue *err, int yy) { in callclosemethod()
129 static void checkclosemth (lua_State *L, StkId level) { in checkclosemth()
147 static void prepcallclosemth (lua_State *L, StkId level, int status, int yy) { in prepcallclosemth()
172 void luaF_newtbcupval (lua_State *L, StkId level) { in luaF_newtbcupval()
197 void luaF_closeupval (lua_State *L, StkId level) { in luaF_closeupval()
[all …]
H A Dldo.h28 #define luaD_checkstackaux(L,n,pre,pos) \ argument
34 #define luaD_checkstack(L,n) luaD_checkstackaux(L,n,(void)0,(void)0) argument
38 #define savestack(L,pt) (cast_charp(pt) - cast_charp(L->stack.p)) argument
39 #define restorestack(L,n) cast(StkId, cast_charp(L->stack.p) + (n)) argument
43 #define checkstackp(L,n,p) \ argument
50 #define checkstackGCp(L,n,p) \ argument
58 #define checkstackGC(L,fsize) \ argument
H A Dltm.c42 void luaT_init (lua_State *L) { in luaT_init()
80 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { in luaT_gettmbyobj()
100 const char *luaT_objtypename (lua_State *L, const TValue *o) { in luaT_objtypename()
112 void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTM()
128 void luaT_callTMres (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTMres()
146 static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, in callbinTM()
157 void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, in luaT_trybinTM()
176 void luaT_tryconcatTM (lua_State *L) { in luaT_tryconcatTM()
184 void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2, in luaT_trybinassocTM()
193 void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, in luaT_trybiniTM()
[all …]
H A Dlauxlib.h51 #define luaL_checkversion(L) \ argument
72 #define luaL_optinteger(L,a,d) luaL_optnumber(L, (a), (lua_Number)(d)) argument
107 #define luaL_loadfile(L,f) luaL_loadfilex(L,f,NULL) argument
140 #define luaL_newlibtable(L,l) \ argument
143 #define luaL_newlib(L,l) \ argument
146 #define luaL_argcheck(L, cond,arg,extramsg) \ argument
149 #define luaL_argexpected(L,cond,arg,tname) \ argument
152 #define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) argument
153 #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) argument
155 #define luaL_typename(L,i) lua_typename(L, lua_type(L,(i))) argument
[all …]
H A Dllimits.h270 #define lua_lock(L) ((void) 0) argument
271 #define lua_unlock(L) ((void) 0) argument
279 #define luai_threadyield(L) {lua_unlock(L); lua_lock(L);} argument
288 #define luai_userstateopen(L) ((void)L) argument
292 #define luai_userstateclose(L) ((void)L) argument
296 #define luai_userstatethread(L,L1) ((void)L) argument
300 #define luai_userstatefree(L,L1) ((void)L) argument
304 #define luai_userstateresume(L,n) ((void)L) argument
308 #define luai_userstateyield(L,n) ((void)L) argument
319 #define luai_numidiv(L,a,b) ((void)L, l_floor(luai_numdiv(L,a,b))) argument
[all …]
/netbsd-src/sys/modules/luasystm/
H A Dluasystm.c50 print(lua_State *L) in print()
61 print_nolog(lua_State *L) in print_nolog()
72 uprint(lua_State *L) in uprint()
83 systm_aprint_normal(lua_State *L) in systm_aprint_normal()
94 systm_aprint_naive(lua_State *L) in systm_aprint_naive()
105 systm_aprint_verbose(lua_State *L) in systm_aprint_verbose()
116 systm_aprint_debug(lua_State *L) in systm_aprint_debug()
127 systm_aprint_error(lua_State *L) in systm_aprint_error()
138 systm_aprint_get_error_count(lua_State *L) in systm_aprint_get_error_count()
147 systm_panic(lua_State *L) in systm_panic()
[all …]
/netbsd-src/libexec/httpd/lua/
H A Dglue.c53 l_new(lua_State *L) in l_new()
64 l_init_httpd(lua_State *L) in l_init_httpd()
75 l_init_prefs(lua_State *L) in l_init_prefs()
89 l_bozo_set_pref(lua_State *L) in l_bozo_set_pref()
106 l_bozo_get_pref(lua_State *L) in l_bozo_get_pref()
119 l_bozo_setup(lua_State *L) in l_bozo_setup()
139 l_bozo_read_request(lua_State *L) in l_bozo_read_request()
152 l_bozo_process_request(lua_State *L) in l_bozo_process_request()
167 l_bozo_clean_request(lua_State *L) in l_bozo_clean_request()
182 l_bozo_dynamic_mime(lua_State *L) in l_bozo_dynamic_mime()
[all …]
/netbsd-src/lib/lua/gpio/
H A Dgpio.c49 gpio_error(lua_State *L, const char *fmt, ...) in gpio_error()
68 gpio_open(lua_State *L) in gpio_open()
85 gpio_close(lua_State *L) in gpio_close()
98 gpio_info(lua_State *L) in gpio_info()
111 gpio_get_pin(lua_State *L, int n, struct gpio_req *req) in gpio_get_pin()
127 gpio_set(lua_State *L) in gpio_set()
142 gpio_unset(lua_State *L) in gpio_unset()
156 gpio_read(lua_State *L) in gpio_read()
172 gpio_write(lua_State *L) in gpio_write()
191 gpio_toggle(lua_State *L) in gpio_toggle()
[all …]
/netbsd-src/lib/lua/syslog/
H A Dsyslog.c42 syslog_openlog(lua_State *L) in syslog_openlog()
56 syslog_syslog(lua_State *L) in syslog_syslog()
63 syslog_closelog(lua_State *L) in syslog_closelog()
70 syslog_setlogmask(lua_State *L) in syslog_setlogmask()
77 syslog_set_info(lua_State *L) in syslog_set_info()
143 luaopen_syslog(lua_State *L) in luaopen_syslog()
/netbsd-src/crypto/external/bsd/netpgp/dist/bindings/lua/
H A Dglue.c102 l_new(lua_State *L) in l_new()
115 l_init(lua_State *L) in l_init()
126 l_homedir(lua_State *L) in l_homedir()
147 l_encrypt_file(lua_State *L) in l_encrypt_file()
171 l_decrypt_file(lua_State *L) in l_decrypt_file()
200 l_sign_file(lua_State *L) in l_sign_file()
228 l_clearsign_file(lua_State *L) in l_clearsign_file()
253 l_verify_file(lua_State *L) in l_verify_file()
270 l_verify_cat_file(lua_State *L) in l_verify_cat_file()
289 l_list_packets(lua_State *L) in l_list_packets()
[all …]

12345678910>>...34