opnsense-src/libexec/flua/modules/lposix.h
Stefan Eßer f35ccf46c7 flua: lposix: add fnmatch function
The fnmatch function matches a string against a shell-style filename
pattern. It is a complex function and cannot easily be implenented
using regular expressions. Adding fnmatch to flua increases the amd64
binary by less than 1 KB.

Approved by:	markj
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D46849
2024-10-28 16:31:08 +01:00

16 lines
372 B
C

/*-
*
* This file is in the public domain.
*/
#pragma once
#include <lua.h>
int luaopen_posix_fnmatch(lua_State *L);
int luaopen_posix_libgen(lua_State *L);
int luaopen_posix_stdlib(lua_State *L);
int luaopen_posix_sys_stat(lua_State *L);
int luaopen_posix_sys_utsname(lua_State *L);
int luaopen_posix_sys_wait(lua_State *L);
int luaopen_posix_unistd(lua_State *L);