Home | History | Annotate | only in /src/sys/modules/lua
History log of /src/sys/modules/lua
RevisionDateAuthorComments
 1.14 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.13 16-Apr-2023  nikita Resolve conflicts for lua 5.4.4 import.
Adjust various files for lua 5.4.4.
 1.12 12-Apr-2021  mrg branches: 1.12.16;
add some new uses of existing GCC_NO_* variables for warning issues.
remove an no longer relevant for gcc7 workaround (works fine in both
gcc9 and gcc 10.)
 1.11 11-Nov-2019  joerg branches: 1.11.10;
Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)
 1.10 19-Jul-2014  christos branches: 1.10.4; 1.10.30;
undo previous
 1.9 19-Jul-2014  christos XXX: remove file that includes userland headers.
 1.8 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.7 19-Jul-2014  lneto lua(4): added debug library
 1.6 27-Dec-2013  christos branches: 1.6.2; 1.6.4; 1.6.6;
Remove strncat now that it is part of the kernel anyway.
 1.5 02-Dec-2013  lneto merged luaconf.h of kernel and userspace Lua
 1.4 02-Dec-2013  lneto put Lua auxlib and some stdlibs in lua(4)
 1.3 02-Dec-2013  lneto changed lua_Number to int64_t
 1.2 31-Oct-2013  mbalmer fix build on arm
 1.1 16-Oct-2013  mbalmer welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.6.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6.6.1 27-Dec-2013  yamt file Makefile was added on branch yamt-pagecache on 2014-05-22 11:41:07 +0000
 1.6.4.2 18-May-2014  rmind sync with head
 1.6.4.1 27-Dec-2013  rmind file Makefile was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.6.2.1 10-Aug-2014  tls Rebase.
 1.10.30.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.10.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.4.1 19-Jul-2014  tls file Makefile was added on branch tls-maxphys on 2014-08-20 00:04:33 +0000
 1.11.10.1 17-Apr-2021  thorpej Sync with HEAD.
 1.12.16.1 11-Aug-2023  martin Pull up following revision(s) (requested by nikita in ticket #313):

external/mit/lua/dist/src/ljumptab.h up to 1.2
external/mit/lua/dist/src/lopnames.h up to 1.1.1.1
external/mit/lua/dist/src/lbitlib.c delete
external/mit/lua/dist/Makefile up to 1.9
external/mit/lua/dist/README up to 1.10
external/mit/lua/dist/README.import up to 1.5
external/mit/lua/dist/doc/contents.html up to 1.9
external/mit/lua/dist/doc/lua.1 up to 1.9
external/mit/lua/dist/doc/manual.html up to 1.10
external/mit/lua/dist/doc/readme.html up to 1.9
external/mit/lua/dist/src/Makefile up to 1.7
external/mit/lua/dist/src/lapi.c up to 1.15
external/mit/lua/dist/src/lapi.h up to 1.11
external/mit/lua/dist/src/lauxlib.c up to 1.13
external/mit/lua/dist/src/lauxlib.h up to 1.9
external/mit/lua/dist/src/lbaselib.c up to 1.11
external/mit/lua/dist/src/lcode.c up to 1.14
external/mit/lua/dist/src/lcode.h up to 1.9
external/mit/lua/dist/src/lcorolib.c up to 1.10
external/mit/lua/dist/src/lctype.c up to 1.8
external/mit/lua/dist/src/lctype.h up to 1.8
external/mit/lua/dist/src/ldblib.c up to 1.12
external/mit/lua/dist/src/ldebug.c up to 1.14
external/mit/lua/dist/src/ldebug.h up to 1.11
external/mit/lua/dist/src/ldo.c up to 1.12
external/mit/lua/dist/src/ldo.h up to 1.12
external/mit/lua/dist/src/ldump.c up to 1.12
external/mit/lua/dist/src/lfunc.c up to 1.11
external/mit/lua/dist/src/lfunc.h up to 1.11
external/mit/lua/dist/src/lgc.c up to 1.13
external/mit/lua/dist/src/lgc.h up to 1.10
external/mit/lua/dist/src/linit.c up to 1.10
external/mit/lua/dist/src/liolib.c up to 1.10
external/mit/lua/dist/src/llex.c up to 1.14
external/mit/lua/dist/src/llex.h up to 1.9
external/mit/lua/dist/src/llimits.h up to 1.12
external/mit/lua/dist/src/lmathlib.c up to 1.11
external/mit/lua/dist/src/lmem.c up to 1.11
external/mit/lua/dist/src/lmem.h up to 1.9
external/mit/lua/dist/src/loadlib.c up to 1.11
external/mit/lua/dist/src/lobject.c up to 1.14
external/mit/lua/dist/src/lobject.h up to 1.12
external/mit/lua/dist/src/lopcodes.c up to 1.9
external/mit/lua/dist/src/lopcodes.h up to 1.10
external/mit/lua/dist/src/loslib.c up to 1.13
external/mit/lua/dist/src/lparser.c up to 1.15
external/mit/lua/dist/src/lparser.h up to 1.9
external/mit/lua/dist/src/lprefix.h up to 1.8
external/mit/lua/dist/src/lstate.c up to 1.12
external/mit/lua/dist/src/lstate.h up to 1.11
external/mit/lua/dist/src/lstring.c up to 1.10
external/mit/lua/dist/src/lstring.h up to 1.10
external/mit/lua/dist/src/lstrlib.c up to 1.21
external/mit/lua/dist/src/ltable.c up to 1.13
external/mit/lua/dist/src/ltable.h up to 1.10
external/mit/lua/dist/src/ltablib.c up to 1.11
external/mit/lua/dist/src/ltm.c up to 1.11
external/mit/lua/dist/src/ltm.h up to 1.10
external/mit/lua/dist/src/lua.c up to 1.12
external/mit/lua/dist/src/lua.h up to 1.14
external/mit/lua/dist/src/luac.c up to 1.12
external/mit/lua/dist/src/luaconf.h up to 1.25
external/mit/lua/dist/src/lualib.h up to 1.8
external/mit/lua/dist/src/lundump.c up to 1.11
external/mit/lua/dist/src/lundump.h up to 1.8
external/mit/lua/dist/src/lutf8lib.c up to 1.11
external/mit/lua/dist/src/lvm.c up to 1.20
external/mit/lua/dist/src/lvm.h up to 1.12
external/mit/lua/dist/src/lzio.c up to 1.9
external/mit/lua/dist/src/lzio.h up to 1.9
external/mit/lua/lib/liblua/Makefile up to 1.13
external/mit/lua/lib/liblua/shlib_version up to 1.4
distrib/sets/lists/base/ad.aarch64 1.37
distrib/sets/lists/base/mi 1.1315
distrib/sets/lists/base/shl.mi 1.947,1.949
distrib/sets/lists/debug/shl.mi 1.304,1.312
etc/mtree/NetBSD.dist.base 1.247
etc/mtree/NetBSD.dist.compat.in 1.2
share/mk/bsd.lua.mk 1.9
sys/modules/examples/luahello/luahello.lua 1.3
sys/modules/lua/Makefile 1.13
doc/CHANGES (manually edited)
doc/3RDPARTY (manually edited)

Import lua 5.4.6
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file assert.h was added on branch yamt-pagecache on 2014-05-22 11:41:07 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file assert.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file ctype.h was added on branch yamt-pagecache on 2014-05-22 11:41:07 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file ctype.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.3 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.2 19-Jul-2014  lneto lua(4): cleaned stubs
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file errno.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file errno.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.1 16-Oct-2013  mbalmer branches: 1.1.4; 1.1.6; 1.1.10;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.10.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.10.1 16-Oct-2013  tls file infinite.lua was added on branch tls-maxphys on 2014-08-20 00:04:33 +0000
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file infinite.lua was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file infinite.lua was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.3 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.2 19-Jul-2014  lneto lua(4): cleaned stubs
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file inttypes.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file inttypes.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file limits.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file limits.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file locale.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file locale.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.28 31-Mar-2022  pgoyette For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence. This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

devsw_attach()
config_init_component() or config_cf*_attach()
...
config_fini_component() or config_cf*_detach()
devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
1. compile without build break
2. no related test failures from atf
3. modload/modunload work as well as
before.

No functional device testing done, since I don't have any
of these devices. Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken; see kern/56772. This commit does not break
any additional modules (as far as I know).
 1.27 08-Aug-2021  rin Fix LIST operations, found by strictly-aligned CPUs, i.e., ARMv5 and IBM403:
- Initialize LIST_HEAD.
- Use LIST_FOREACH_SAFE() where necessary.
 1.26 07-Aug-2021  rin Make sure that buffers allocated by lua_alloc() are aligned to 8-byte
boundaries as done by kmem_alloc(9).

Fix alignment faults on armv5te; GCC emits ldrd/strd instructions for
memory operands that are guaranteed to be aligned properly.

Drop unnecessary __packed attribute from alloc_header_t at the same time.
 1.25 29-Jun-2021  dholland Add containment for the cloning devices hack in vn_open.

Cloning devices (and also things like /dev/stderr) work by allocating
a struct file, stuffing it in the file table (which is a layer
violation), stuffing the file descriptor number for it in a magic
field of struct lwp (which is gross), and then "failing" with one of
two magic errnos, EDUPFD or EMOVEFD.

Before this commit, all callers of vn_open in the kernel (there are
quite a few) were expected to check for these errors and handle the
situation. Needless to say, none of them except for open() itself did,
resulting in internal negative errnos being returned to userspace.

This hack is fairly deeply rooted and cannot be eliminated all at
once. This commit adds logic to handle the magic errnos inside
vn_open; now on success vn_open returns either a vnode or an integer
file descriptor, along with a flag that says whether the underlying
code requested EDUPFD or EMOVEFD. Callers not prepared to cope with
file descriptors can pass NULL for the extra return values, in which
case if a file descriptor would be produced vn_open fails with
EOPNOTSUPP.

Since I'm rearranging vn_open's signature anyway, stop exposing struct
nameidata. Instead, take three arguments: an optional vnode to use as
the starting point (like openat()), the path, and additional namei
flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei
behavior, e.g. NOFOLLOW, can be requested via the open flags.)

This change requires a kernel bump. Ride the one an hour ago.
(That was supposed to be coordinated; did not intend to let an hour
slip by. My fault.)
 1.24 26-Dec-2017  martin branches: 1.24.20;
Fix cargo cult ioctl implementation for LUAINFO: the name and desc fields
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).
 1.23 20-May-2017  mbalmer branches: 1.23.2;
always put the module on the stack
 1.22 20-May-2017  mbalmer Only load a module if it is not already loaded in a state (much like userland
Lua handles require).
Fixes PR kern/52226.
 1.21 11-May-2017  mbalmer Avoid possible null pointer dereferencing.
Fixes PR kern/52225.
 1.20 16-Apr-2017  riastradh branches: 1.20.2;
Can't destroy pb until we're done using it.
 1.19 20-Jan-2017  maya Check pmf_device_register return value. NFC
Appeases static analyzers.
 1.18 14-Jul-2016  msaitoh branches: 1.18.2; 1.18.4;
- Use aprint*() instead of printf() in xxx_attach().
- Add missing aprint_naive("\n");
- KNF
 1.17 21-May-2016  salazar fix double require bug
 1.16 07-Feb-2015  christos plug leak on error. Reported by:
http://www.m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-4
 1.15 30-Nov-2014  lneto lua(4): fixed require
 1.14 24-Sep-2014  mbalmer branches: 1.14.2;
whitespace, knf, comments, but no functional change
 1.13 25-Jul-2014  dholland branches: 1.13.2; 1.13.4;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.12 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.11 19-Jul-2014  lneto lua(4): uniformed the KPI name space using 'klua_' prefix
 1.10 19-Jul-2014  lneto lua(4): using lua_CFunction
 1.9 19-Jul-2014  lneto lua(4): added support for running Lua scripts in intr context

* 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
 1.8 16-Mar-2014  dholland branches: 1.8.2; 1.8.4; 1.8.6;
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
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.
 1.7 25-Feb-2014  pooka Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
 1.6 04-Dec-2013  lneto fixed lua(4) alloc (nsize can be lesser than osize)
 1.5 23-Nov-2013  mbalmer switch from malloc(9) to kmem(9)
 1.4 29-Oct-2013  mbalmer initialize variables
 1.3 23-Oct-2013  mbalmer use MODULE_CLASS_MISC for Lua modules
 1.2 18-Oct-2013  mbalmer fix CVS marker and copyright year
 1.1 16-Oct-2013  mbalmer welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.8.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.6.1 16-Mar-2014  yamt file lua.c was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.8.4.2 18-May-2014  rmind sync with head
 1.8.4.1 16-Mar-2014  rmind file lua.c was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.8.2.1 10-Aug-2014  tls Rebase.
 1.13.4.3 03-Dec-2017  jdolecek update from HEAD
 1.13.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.13.4.1 25-Jul-2014  tls file lua.c was added on branch tls-maxphys on 2014-08-20 00:04:33 +0000
 1.13.2.7 25-Feb-2018  snj Pull up following revision(s) (requested by sevan in ticket #1545):
sys/modules/lua/lua.c: up to 1.24
whitespace, knf, comments, but no functional change
--
lua(4): fixed require
--
plug leak on error. Reported by:
http://www.m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-4
--
fix double require bug
--
Use aprint*() instead of printf() in xxx_attach().
--
Check pmf_device_register return value. NFC
Appeases static analyzers.
Can't destroy pb until we're done using it.
--
Fix cargo cult ioctl implementation for LUAINFO: the name and desc fields
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).
 1.13.2.6 23-Jul-2017  snj Pull up following revision(s) (requested by mbalmer in ticket #1423):
sys/modules/lua/lua.c: revision 1.23
always put the module on the stack
 1.13.2.5 23-Jul-2017  snj Pull up following revision(s) (requested by mbalmer in ticket #1422):
sys/modules/lua/lua.c: revision 1.22 via patch
Only load a module if it is not already loaded in a state (much like
userland Lua handles require).
Fixes PR kern/52226.
 1.13.2.4 23-Jul-2017  snj Pull up following revision(s) (requested by mbalmer in ticket #1418):
sys/modules/lua/lua.c: revision 1.21
Avoid possible null pointer dereferencing.
Fixes PR kern/52225.
 1.13.2.3 22-May-2016  martin branches: 1.13.2.3.4;
Pull up following revision(s) (requested by salazar in ticket #1171):
sys/modules/lua/lua.c: revision 1.17
fix double require bug
 1.13.2.2 16-Feb-2015  martin Pull up following revision(s) (requested by maxv in ticket #520):
sys/ufs/chfs/ebh.c: revision 1.6
sys/dev/sdmmc/sdmmc_mem.c: revision 1.33
sys/dev/ic/aic7xxx.c: revision 1.132
sys/fs/nfs/common/krpc_subr.c: revision 1.2
sys/modules/lua/lua.c: revision 1.16
sys/fs/udf/udf_subr.c: revision 1.128
sys/ufs/chfs/chfs_scan.c: revision 1.6
sys/dev/ic/an.c: revision 1.62

Fix six memory leaks and two inconsistencies.
 1.13.2.1 01-Dec-2014  martin Pull up following revision(s) (requested by lneto in ticket #283):
sys/modules/lua/lua.c: revision 1.15
lua(4): fixed require
 1.13.2.3.4.1 23-Jul-2017  snj Pull up following revision(s) (requested by mbalmer in ticket #1418):
sys/modules/lua/lua.c: revision 1.21
Avoid possible null pointer dereferencing.
Fixes PR kern/52225.
 1.14.2.5 28-Aug-2017  skrll Sync with HEAD
 1.14.2.4 05-Feb-2017  skrll Sync with HEAD
 1.14.2.3 05-Oct-2016  skrll Sync with HEAD
 1.14.2.2 29-May-2016  skrll Sync with HEAD
 1.14.2.1 06-Apr-2015  skrll Sync with HEAD
 1.18.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.18.2.2 26-Apr-2017  pgoyette Sync with HEAD
 1.18.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.20.2.4 19-May-2017  pgoyette Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)
 1.20.2.3 17-May-2017  pgoyette At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.

Adapt callers to expect the reference to exist, and to ensure that the
reference is released.
 1.20.2.2 29-Apr-2017  pgoyette Revise previous. Rather than explicitly including <sys/localcount.h>
in all the places where {b,c}devsw is initialized, just include it
from <sys/conf.h>. This avoids an include-sequence dependancy.
 1.20.2.1 29-Apr-2017  pgoyette Add DEVSW_MODULE_INIT to existing device-driver modules, so that they
willl have a localcount defined and thus be permitted to load. Without
a localcount, loading the module will return EINVAL.

XXX the dtrace and drm stuff might need to be fed back upstream?
 1.23.2.1 07-Jan-2018  snj Pull up following revision(s) (requested by sevan in ticket #469):
sys/modules/lua/lua.c: revision 1.24
Fix cargo cult ioctl implementation for LUAINFO: the name and desc fields
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).
 1.24.20.1 01-Aug-2021  thorpej Sync with HEAD.
 1.3 02-Dec-2013  lneto merged luaconf.h of kernel and userspace Lua
 1.2 02-Dec-2013  lneto changed lua_Number to int64_t
 1.1 16-Oct-2013  mbalmer welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.2 19-Jul-2014  lneto branches: 1.2.4;
lua(4): using lua_CFunction
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file luavar.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file luavar.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.4.1 19-Jul-2014  tls file luavar.h was added on branch tls-maxphys on 2014-08-20 00:04:33 +0000
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file math.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file math.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file setjmp.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file setjmp.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file signal.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file signal.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.3 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.2 19-Jul-2014  lneto lua(4): cleaned stubs
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file stdarg.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file stdarg.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.3 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.2 19-Jul-2014  lneto lua(4): cleaned stubs
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file stddef.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file stddef.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.3 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.2 02-Dec-2013  joerg branches: 1.2.2; 1.2.4; 1.2.6;
Let's use a format string, shall we?
 1.1 16-Oct-2013  mbalmer welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.2.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.6.1 02-Dec-2013  yamt file stdio.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.2.4.2 18-May-2014  rmind sync with head
 1.2.4.1 02-Dec-2013  rmind file stdio.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.2.2.1 10-Aug-2014  tls Rebase.
 1.3 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.2 19-Jul-2014  lneto lua(4): cleaned stubs
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file stdlib.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file stdlib.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file string.h was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file string.h was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2 19-Jul-2014  lneto branches: 1.2.4;
lua: updated from 5.1 to 5.3 work3

* 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
 1.1 16-Oct-2013  mbalmer branches: 1.1.2; 1.1.4; 1.1.6;
welcome lua(4), a devide driver that can create and control Lua states inside the kernel
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 16-Oct-2013  yamt file test.lua was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 16-Oct-2013  rmind file test.lua was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.4.1 19-Jul-2014  tls file test.lua was added on branch tls-maxphys on 2014-08-20 00:04:33 +0000

RSS XML Feed