]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/glob-util.h
3d5f5435085aca376f0362fdad86c8fe8f673d3f
1 /* SPDX-License-Identifier: LGPL-2.1+ */
8 #include "string-util.h"
10 /* Note: this function modifies pglob to set various functions. */
11 int safe_glob(const char *path
, int flags
, glob_t
*pglob
);
13 int glob_exists(const char *path
);
14 int glob_extend(char ***strv
, const char *path
, int flags
);
16 #define _cleanup_globfree_ _cleanup_(globfree)
18 _pure_
static inline bool string_is_glob(const char *p
) {
19 /* Check if a string contains any glob patterns. */
20 return !!strpbrk(p
, GLOB_CHARS
);