diff options
author | Jan Janssen <medhefgo@web.de> | 2022-06-09 10:05:52 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-06-09 12:50:08 +0200 |
commit | 0e8ecba96e72ecb57a5f2a668b645214e2f3b12b (patch) | |
tree | 3ff942fff9bf68ed2469a1d5dd1a18bcf19aaa67 /src/boot/efi/efi-string.h | |
parent | 2299b1cae32c1fb8911da0ce26efced68032f4f8 (diff) | |
download | systemd-0e8ecba96e72ecb57a5f2a668b645214e2f3b12b.tar.gz |
boot: Add efi_fnmatch
Unlike MetaiMatch from the UEFI spec/EDK2 this implementation is
intended to be compatible with POSIX fnmatch.
Diffstat (limited to 'src/boot/efi/efi-string.h')
-rw-r--r-- | src/boot/efi/efi-string.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/boot/efi/efi-string.h b/src/boot/efi/efi-string.h index b4870975bc..55c9c6e47a 100644 --- a/src/boot/efi/efi-string.h +++ b/src/boot/efi/efi-string.h @@ -99,6 +99,8 @@ static inline char16_t *xstrdup16(const char16_t *s) { return xstrndup16(s, SIZE_MAX); } +bool efi_fnmatch(const char16_t *pattern, const char16_t *haystack); + #ifdef SD_BOOT /* The compiler normally has knowledge about standard functions such as memcmp, but this is not the case when * compiling with -ffreestanding. By referring to builtins, the compiler can check arguments and do |