From fc00c656c96528112d05cf0edf8631bd5eaea446 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 20:10:31 +0100 Subject: Add build system scaffolding and libc headers --- include/glob.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/glob.h (limited to 'include/glob.h') diff --git a/include/glob.h b/include/glob.h new file mode 100644 index 00000000..9cbf80ac --- /dev/null +++ b/include/glob.h @@ -0,0 +1,28 @@ +#ifndef __GLOB_H +#define __GLOB_H + +#define GLOB_APPEND 0x0001 +#define GLOB_DOOFFS 0x0002 +#define GLOB_ERR 0x0004 +#define GLOB_MARK 0x0008 +#define GLOB_NOCHECK 0x0010 +#define GLOB_NOESCAPE 0x0020 +#define GLOB_NOSORT 0x0040 + +#define GLOB_ABORTED -1 +#define GLOB_NOMATCH -2 +#define GLOB_NOSPACE -3 + +typedef __SIZE_TYPE__ size_t; + +typedef struct { + size_t gl_pathc; + char **gl_pathv; + size_t gl_offs; +} glob_t; + +int glob(const char *restrict, int, int (*)(const char *, int), + glob_t *restrict); +void globfree(glob_t *); + +#endif -- cgit v1.2.3