summaryrefslogtreecommitdiff
path: root/sys/modules/lua/lua.c
AgeCommit message (Collapse)Author
2017-12-26Fix cargo cult ioctl implementation for LUAINFO: the name and desc fieldsmartin
are arrays, not pointers, so don't use copyoutstr on them, but instead copyin/copyout the whole array of structures. Fixes PR 52864 for me (on sparc64).
2017-05-20always put the module on the stackmbalmer
2017-05-20Only load a module if it is not already loaded in a state (much like userlandmbalmer
Lua handles require). Fixes PR kern/52226.
2017-05-11Avoid possible null pointer dereferencing.mbalmer
Fixes PR kern/52225.
2017-04-16Can't destroy pb until we're done using it.riastradh
2017-01-20Check pmf_device_register return value. NFCmaya
Appeases static analyzers.
2016-07-14- Use aprint*() instead of printf() in xxx_attach().msaitoh
- Add missing aprint_naive("\n"); - KNF
2016-05-21fix double require bugsalazar
2015-02-07plug leak on error. Reported by:christos
http://www.m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-4
2014-11-30lua(4): fixed requirelneto
2014-09-24whitespace, knf, comments, but no functional changembalmer
2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland
All have been set to "nodiscard"; some should get a real implementation.
2014-07-19lua: updated from 5.1 to 5.3 work3lneto
* lua(1): - changed lua_Integer to intmax_t - updated distrib/sets/lists and etc/mtree - updated bsd.lua.mk - fixed bozohttpd (lua-bozo.c) - compatibilized bindings: gpio, sqlite * lua(4): - removed floating-point and libc dependencies using '#ifndef _KERNEL' - fixed division by zero and exponentiation - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct() - acpica: removed isprint() from acnetbsd.h - libc: moved strcspn.c, strpbrk.c and strspn.c to common - removed stub headers - compatibilized bindings: luapmf, luasystm * reorganized luaconf.h * updated doc/CHANGES and doc/RESPONSIBLE
2014-07-19lua(4): uniformed the KPI name space using 'klua_' prefixlneto
2014-07-19lua(4): using lua_CFunctionlneto
2014-07-19lua(4): added support for running Lua scripts in intr contextlneto
* using kmem_intr on lua_alloc * using mutex directly on klua_lock * added ipl arg on klua_newstate() * added kluaL_newstate function * fixed synchronization: locking the Lua state on luaioctl
2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland
designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-02-25Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist beforepooka
the sysctl link sets are processed, and remove redundancy. Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate lines of code.
2013-12-04fixed lua(4) alloc (nsize can be lesser than osize)lneto
2013-11-23switch from malloc(9) to kmem(9)mbalmer
2013-10-29initialize variablesmbalmer
2013-10-23use MODULE_CLASS_MISC for Lua modulesmbalmer
2013-10-18fix CVS marker and copyright yearmbalmer
2013-10-16welcome lua(4), a devide driver that can create and control Lua states ↵mbalmer
inside the kernel