flua: Add wrappers for sys/utsname.hThis allows one to invoke uname from lua scripts.Reviewed by: bapt, kevans, emasteMFC after: 1 monthDifferential Revision: https://reviews.freebsd.org/D42017
flua: Add wrappers for sys/utsname.hThis allows one to invoke uname from lua scripts.Reviewed by: bapt, kevans, emasteMFC after: 1 monthDifferential Revision: https://reviews.freebsd.org/D42017(cherry picked from commit 1726db7af6b3738eb04d962b351d7f4017e1fc77)
show more ...
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: one-line .c comment patternRemove /^/[*/]\s*\$FreeBSD\$.*\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
flua: chown(2) binding, fix bad copy/paste
flua: add a chown(2) bindingThe main difference with the chown in luaposix, is that it checksand reports if a user or a group do exist when a string is passedas argumentsReviewed by: kevansDif
flua: add a chown(2) bindingThe main difference with the chown in luaposix, is that it checksand reports if a user or a group do exist when a string is passedas argumentsReviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D37479
stand: lua: enhance lfs.dir() to speed up kernels_autodetectThis eliminates a lot of stat() calls that happen when lualoader renders themenu with the default settings, and greatly speeds up render
stand: lua: enhance lfs.dir() to speed up kernels_autodetectThis eliminates a lot of stat() calls that happen when lualoader renders themenu with the default settings, and greatly speeds up rendering on mylaptop.ftype is nil if loader/loader.efi hasn't been updated yet, falling back tolfs.attributes() to test.This is technically incompatible with lfs, but not in a particularlyterrible way.Reviewed-by: cemMFC-after: 4 daysDifferential Revision: https://reviews.freebsd.org/D27542
flua: implement chmodLua does not provide a native way to change the permission of a file.Submitted by: Yang Wang <[email protected]>Reviewed by: kevansSponsored by: The FreeBSD FoundationDiffer
flua: implement chmodLua does not provide a native way to change the permission of a file.Submitted by: Yang Wang <[email protected]>Reviewed by: kevansSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D24036
Add flua to the base system, install to /usr/libexecFreeBSDlua ("flua") is a FreeBSD-private lua, flavored with whateverextensions we need for base system operations. We currently support a subset
Add flua to the base system, install to /usr/libexecFreeBSDlua ("flua") is a FreeBSD-private lua, flavored with whateverextensions we need for base system operations. We currently support a subsetof 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 andsome 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 addedin. This is similar to what we do in stand/. linit.c has been renamed tomake it clear that this has flua-specific bits.luaconf has been slightly obfuscated to make extensions more difficult. Partof the problem is that flua is already hard enough to use as a bootstraptool because it's not in PATH- attempting to do extension loading wouldrequire a special bootstrap version of flua with paths changed to protectthe 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), impDifferential Revision: https://reviews.freebsd.org/D21893