Skip to content

Commit

Permalink
Update boot.md
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Feb 25, 2023
1 parent 3f552bf commit 7b73105
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions developer/boot.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,34 +348,34 @@ This allows us to

The lua environment in the FreeBSD bootloader has some functions starting with `loader.` that seem to be undocumented, but we can list them by looking at the source code:

* `loader.closefile()`
* `loader.command_error()`
* `loader.command()`
* `loader.delay()`
* `loader.fb_bezier()`
* `loader.fb_drawrect()`
* `loader.fb_line()`
* `loader.fb_putimage()`
* `loader.fb_setpixel()`
* `loader.getchar()`
* `loader.getenv()`
* `loader.gets()`
* `loader.perform()`
* `loader.command_error()`
* `loader.interpret()`
* `loader.ischar()`
* `loader.openfile()`
* `loader.parse()`
* `loader.perform()`
* `loader.printc()`
* `loader.readfile()`
* `loader.setenv()`
* `loader.term_drawrect()`
* `loader.term_putimage()`
* `loader.getchar()`
* `loader.ischar()`
* `loader.gets()`
* `loader.time()`
* `loader.delay()`
* `loader.getenv()`
* `loader.setenv()`
* `loader.unsetenv()`
* `loader.printc()`
* `loader.openfile()`
* `loader.closefile()`
* `loader.readfile()`
* `loader.writefile()`
* `loader.term_putimage()`
* `loader.fb_putimage()`
* `loader.fb_setpixel()`
* `loader.fb_line()`
* `loader.fb_bezier()`
* `loader.fb_drawrect()`
* `loader.term_drawrect()`

This list was generated on a system on which the FreeBSD source code is installed in `/usr/src` using the following command:

```
grep -r '^lua_' /usr/src/stand/liblua/*.c | cut -d ":" -f 2 | sed -e 's|lua_|loader.|g' | sed -e 's|loader.State \*L||g' | sed -e 's|^|* \`|g' | sed -e 's|)|)\`|g' | sort
grep -r '^lua_' /usr/src/stand/liblua/*.c | cut -d ":" -f 2 | sed -e 's|lua_|loader.|g' | sed -e 's|loader.State \*L||g' | sed -e 's|^|* \`|g' | sed -e 's|)|)\`|g'
```

0 comments on commit 7b73105

Please sign in to comment.