diff options
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 *)); +} |
