| #
bc531a96
|
| 09-Mar-2026 |
Kyle Evans <kevans@FreeBSD.org> |
stand: lua: break out a few more dirent types in lfs
These are non-standard and specific to the version used in loader. We have some desire to recognize symlinks to avoid filtering out kernel symli
stand: lua: break out a few more dirent types in lfs
These are non-standard and specific to the version used in loader. We have some desire to recognize symlinks to avoid filtering out kernel symlinks in the autodetection bits when they would be perfectly fine to `load`.
This won't be usable right away, so any impending use will need to be careful to account for nil.
Reported by: leres
show more ...
|
| #
b11a5709
|
| 04-Oct-2025 |
Kyle Evans <kevans@FreeBSD.org> |
flua: kick out the remaining builtin modules
Bootstrap flua has some magic now to handle modules by building them in and discovering them via linker sets. This is slightly cleaner than always build
flua: kick out the remaining builtin modules
Bootstrap flua has some magic now to handle modules by building them in and discovering them via linker sets. This is slightly cleaner than always building them in and baking them into loadedlibs for both bootstrap and system flua.
Adjust the stand build now that these three libs have their own new homes.
Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D51891
show more ...
|
| #
d4c973fa
|
| 04-Oct-2025 |
Kyle Evans <kevans@FreeBSD.org> |
Revert "flua: kick out the remaining builtin modules"
This reverts commit 80ada959004c4386880e47b11618f8abfc2d80e1, because bootstrap flua is about to get backed out.
|
| #
80ada959
|
| 03-Oct-2025 |
Kyle Evans <kevans@FreeBSD.org> |
flua: kick out the remaining builtin modules
Bootstrap flua has some magic now to handle modules by building them in and discovering them via linker sets. This is slightly cleaner than always build
flua: kick out the remaining builtin modules
Bootstrap flua has some magic now to handle modules by building them in and discovering them via linker sets. This is slightly cleaner than always building them in and baking them into loadedlibs for both bootstrap and system flua.
Adjust the stand build now that these three libs have their own new homes.
Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D51891
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
e25ee296
|
| 24-Jan-2021 |
Kyle Evans <kevans@FreeBSD.org> |
stand: lua: enhance lfs.dir() to speed up kernels_autodetect
This eliminates a lot of stat() calls that happen when lualoader renders the menu with the default settings, and greatly speeds up render
stand: lua: enhance lfs.dir() to speed up kernels_autodetect
This eliminates a lot of stat() calls that happen when lualoader renders the menu with the default settings, and greatly speeds up rendering on my laptop.
ftype is nil if loader/loader.efi hasn't been updated yet, falling back to lfs.attributes() to test.
This is technically incompatible with lfs, but not in a particularly terrible way.
Reviewed-by: cem MFC-after: 4 days Differential Revision: https://reviews.freebsd.org/D27542
show more ...
|
| #
506f3640
|
| 18-Nov-2019 |
Kyle Evans <kevans@FreeBSD.org> |
Add flua to the base system, install to /usr/libexec
FreeBSDlua ("flua") is a FreeBSD-private lua, flavored with whatever extensions we need for base system operations. We currently support a subset
Add flua to the base system, install to /usr/libexec
FreeBSDlua ("flua") is a FreeBSD-private lua, flavored with whatever extensions we need for base system operations. We currently support a subset of lfs and lposix that are used in the rewrite of makesyscall.sh into lua, added in r354786.
flua is intentionally written such that one can install standard lua and some set of lua modules from ports and achieve the same effect.
linit_flua is a copy of linit.c from contrib/lua with lfs and lposix added in. This is similar to what we do in stand/. linit.c has been renamed to make it clear that this has flua-specific bits.
luaconf has been slightly obfuscated to make extensions more difficult. Part of the problem is that flua is already hard enough to use as a bootstrap tool because it's not in PATH- attempting to do extension loading would require a special bootstrap version of flua with paths changed to protect the innocent.
src.lua.mk has been added to make it easy for in-tree stuff to find flua, whether it's bootstrap-flua or relying on PATH frobbing by Makefile.inc1.
Reviewed by: brooks, emaste (both earlier version), imp Differential Revision: https://reviews.freebsd.org/D21893
show more ...
|
| #
f2b32f47
|
| 20-Feb-2018 |
Conrad Meyer <cem@FreeBSD.org> |
Lua lfs.attributes: Provide a more consistent error return
In the remaining error case, return a 3-tuple consistent with the other error return case.
Document how to invoke lfs.attributes() and det
Lua lfs.attributes: Provide a more consistent error return
In the remaining error case, return a 3-tuple consistent with the other error return case.
Document how to invoke lfs.attributes() and detect/decode error return in example comments.
Reviewed by: kevans Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D14451
show more ...
|
| #
77d4be50
|
| 18-Feb-2018 |
Conrad Meyer <cem@FreeBSD.org> |
Lua loader: Add barebones "lfs" module
Add a Lua FileSystem module, an emulation of a subset of the permissively licensed (MIT) Lua library of the same name[0], to our loader's Lua environment.
[0]
Lua loader: Add barebones "lfs" module
Add a Lua FileSystem module, an emulation of a subset of the permissively licensed (MIT) Lua library of the same name[0], to our loader's Lua environment.
[0]: https://github.com/keplerproject/luafilesystem/
Reviewed by: kevans Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D14418
show more ...
|