Loading...
--- Libc/Libc-1725.40.4/include/glob.h
+++ Libc/Libc-583/include/glob.h
@@ -13,7 +13,11 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -37,12 +41,11 @@
#define _GLOB_H_
#include <_types.h>
-#include <sys/cdefs.h>
-#include <_bounds.h>
-#include <Availability.h>
-#include <sys/_types/_size_t.h>
-_LIBC_SINGLE_BY_DEFAULT()
+#ifndef _SIZE_T
+#define _SIZE_T
+typedef __darwin_size_t size_t;
+#endif
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
struct dirent;
@@ -53,7 +56,7 @@
int gl_matchc; /* Count of paths matching pattern. */
size_t gl_offs; /* Reserved at beginning of gl_pathv. */
int gl_flags; /* Copy of flags parameter to glob. */
- char *_LIBC_CSTR *_LIBC_COUNT(gl_matchc) gl_pathv; /* List of paths matching pattern. */
+ char **gl_pathv; /* List of paths matching pattern. */
/* Copy of errfunc parameter to glob. */
#ifdef __BLOCKS__
union {
@@ -128,19 +131,14 @@
#endif /* !LIBC_ALIAS_GLOB */
//End-Libc
#ifdef __BLOCKS__
-#if __has_attribute(noescape)
-#define __glob_noescape __attribute__((__noescape__))
-#else
-#define __glob_noescape
-#endif
//Begin-Libc
#ifndef LIBC_ALIAS_GLOB_B
//End-Libc
-int glob_b(const char * __restrict, int, int (^)(const char *, int) __glob_noescape,
- glob_t * __restrict) __DARWIN_INODE64(glob_b) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
+int glob_b(const char * __restrict, int, int (^)(const char *, int),
+ glob_t * __restrict) __DARWIN_INODE64(glob_b);
//Begin-Libc
#else /* LIBC_ALIAS_GLOB_B */
-int glob_b(const char * __restrict, int, int (^)(const char *, int) __glob_noescape,
+int glob_b(const char * __restrict, int, int (^)(const char *, int),
glob_t * __restrict) LIBC_INODE64(glob_b);
#endif /* !LIBC_ALIAS_GLOB_B */
//End-Libc