Loading...
--- Libc/Libc-1725.40.4/include/fts.h
+++ Libc/Libc-1583.60.2/include/fts.h
@@ -63,10 +63,7 @@
#include <sys/_types/_ino_t.h>
#include <sys/_types/_nlink_t.h>
-#include <_bounds.h>
#include <Availability.h>
-
-_LIBC_SINGLE_BY_DEFAULT()
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wstrict-prototypes"
@@ -74,7 +71,7 @@
typedef struct {
struct _ftsent *fts_cur; /* current node */
struct _ftsent *fts_child; /* linked list of children */
- struct _ftsent **_LIBC_COUNT(fts_nitems) fts_array; /* sort array */
+ struct _ftsent **fts_array; /* sort array */
dev_t fts_dev; /* starting device # */
char *fts_path; /* path for this descent */
int fts_rfd; /* fd for root */
@@ -120,8 +117,8 @@
struct _ftsent *fts_link; /* next file in directory */
long fts_number; /* local numeric value */
void *fts_pointer; /* local address value */
- char *_LIBC_CSTR fts_accpath; /* access path */
- char *_LIBC_CSTR fts_path; /* root path */
+ char *fts_accpath; /* access path */
+ char *fts_path; /* root path */
int fts_errno; /* errno for this node */
int fts_symfd; /* fd for symlink or chdir */
unsigned short fts_pathlen; /* strlen(fts_path) */
@@ -165,7 +162,7 @@
unsigned short fts_instr; /* fts_set() instructions */
struct stat *fts_statp; /* stat(2) information */
- char fts_name[1]; /* file name, unsafe with -fbounds-safety */
+ char fts_name[1]; /* file name */
} FTSENT;
#include <sys/cdefs.h>
@@ -193,11 +190,11 @@
//Begin-Libc
#ifndef LIBC_ALIAS_FTS_OPEN
//End-Libc
-FTS *fts_open(char *_LIBC_CSTR const *, int,
+FTS *fts_open(char * const *, int,
int (*)(const FTSENT **, const FTSENT **)) __DARWIN_INODE64(fts_open);
//Begin-Libc
#else /* LIBC_ALIAS_FTS_OPEN */
-FTS *fts_open(char *_LIBC_CSTR const *, int,
+FTS *fts_open(char * const *, int,
int (*)(const FTSENT **, const FTSENT **)) LIBC_INODE64(fts_open);
#endif /* !LIBC_ALIAS_FTS_OPEN */
//End-Libc
@@ -210,12 +207,12 @@
//Begin-Libc
#ifndef LIBC_ALIAS_FTS_OPEN_B
//End-Libc
-FTS *fts_open_b(char *_LIBC_CSTR const *, int,
+FTS *fts_open_b(char * const *, int,
int (^)(const FTSENT **, const FTSENT **) __fts_noescape)
__DARWIN_INODE64(fts_open_b) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
//Begin-Libc
#else /* LIBC_ALIAS_FTS_OPEN */
-FTS *fts_open_b(char *_LIBC_CSTR const *, int,
+FTS *fts_open_b(char * const *, int,
int (^)(const FTSENT **, const FTSENT **) __fts_noescape)
LIBC_INODE64(fts_open_b);
#endif /* !LIBC_ALIAS_FTS_OPEN */