diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 14:42:29 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 14:42:29 +0100 |
| commit | 7cd3b7caee10d62f7be674afb86a136bf30485d6 (patch) | |
| tree | 121a8c79114174b765713387187d930b102f760f /tests/headers/glob.c | |
| parent | 3b3325f761b09ebbfef04c44eed546cc4fdeb329 (diff) | |
Add mqueue rt api, add header tests
Diffstat (limited to 'tests/headers/glob.c')
| -rw-r--r-- | tests/headers/glob.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/headers/glob.c b/tests/headers/glob.c new file mode 100644 index 00000000..6f0ed3c6 --- /dev/null +++ b/tests/headers/glob.c @@ -0,0 +1,32 @@ +// https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/glob.h.html + +#include "core.h" + +#include <glob.h> + +TEST(glob_h) +{ + TYPE(glob_t); + STRUCT_MEMBER(glob_t, size_t, gl_pathc); + STRUCT_MEMBER(glob_t, char **, gl_pathv); + STRUCT_MEMBER(glob_t, size_t, gl_offs); + + TYPE(size_t); + + MACRO(GLOB_APPEND); + MACRO(GLOB_DOOFFS); + MACRO(GLOB_ERR); + MACRO(GLOB_MARK); + MACRO(GLOB_NOCHECK); + MACRO(GLOB_NOESCAPE); + MACRO(GLOB_NOSORT); + + MACRO(GLOB_ABORTED); + MACRO(GLOB_NOMATCH); + MACRO(GLOB_NOSPACE); + + FUNCTION(glob, FN(int, const char *, int, int (*)(const char *, int), + glob_t *)); + + FUNCTION(globfree, FN(void, glob_t *)); +} |
