HomeFreeBSD

flua: lposix: add fnmatch function

Description

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

(cherry picked from commit f35ccf46c7c6cb7d26994ec5dc5926ea53be0116)

Details

Provenance
seAuthored on Oct 28 2024, 3:22 PM
emasteCommitted on Aug 29 2025, 2:57 PM
Differential Revision
D46849: Add fnmatch() to libexec/flua
Parents
rG069a0460280b: Fix the cross-build after recent commits
Branches
Unknown
Tags
Unknown