X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fglob.h;h=76f6c1c68a235688789bbf740b2ba7e5f34983a5;hb=14edadb542848300193b76d2eee7a1eae07f0911;hp=185912df2c0176907c1a00589508ecc6b58cc031;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/glob.h b/include/glob.h index 185912df..76f6c1c6 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 @@ -34,6 +36,12 @@ void globfree(glob_t *); #define GLOB_NOMATCH 3 #define GLOB_NOSYS 4 +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define glob64 glob +#define globfree64 globfree +#define glob64_t glob_t +#endif + #ifdef __cplusplus } #endif