X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fglob.h;h=4a562a206d5202397ca989ff373bdf18bf6f4f4f;hb=c9f48cde0a22641ce3daf54596a9ecebdab91435;hp=376baa712429a639cff6f6a21ebcd2a0e7ab398e;hpb=3b94daba711090f1936f59fae6f7cbcba963b29e;p=musl diff --git a/include/glob.h b/include/glob.h index 376baa71..4a562a20 100644 --- a/include/glob.h +++ b/include/glob.h @@ -5,6 +5,8 @@ extern "C" { #endif +#include + #define __NEED_size_t #include @@ -17,7 +19,7 @@ typedef struct { void *__dummy2[5]; } glob_t; -int glob(const char *, int, int (*)(const char *, int), glob_t *); +int glob(const char *__restrict, int, int (*)(const char *, int), glob_t *__restrict); void globfree(glob_t *); #define GLOB_ERR 0x01 @@ -29,6 +31,9 @@ void globfree(glob_t *); #define GLOB_NOESCAPE 0x40 #define GLOB_PERIOD 0x80 +#define GLOB_TILDE 0x1000 +#define GLOB_TILDE_CHECK 0x4000 + #define GLOB_NOSPACE 1 #define GLOB_ABORTED 2 #define GLOB_NOMATCH 3 @@ -37,6 +42,7 @@ void globfree(glob_t *); #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) #define glob64 glob #define globfree64 globfree +#define glob64_t glob_t #endif #ifdef __cplusplus