#include <string.h>
#include <stdio.h>
-#define ACL_MIN_SIZE_HEURISTIC (sizeof(struct kauth_filesec) + 16 * sizeof(struct kauth_ace))
+#define ACL_MIN_SIZE_HEURISTIC (KAUTH_FILESEC_SIZE(16))
static int statx_syscall(void *obj, void *sbptr, void *fsacl, size_t *fsacl_size);
static int fstatx_syscall(void *obj, void *sbptr, void *fsacl, size_t *fsacl_size);
}
-#if __DARWIN_64_BIT_INO_T
+#if __DARWIN_64_BIT_INO_T && !__DARWIN_ONLY_64_BIT_INO_T
int
statx64_np(const char *path, struct stat64 *sb, filesec_t fsec)
{
{
return(lstatx_np(path, (struct stat *)sb, fsec));
}
-#endif /* __DARWIN_64_BIT_INO_T */
+#endif /* __DARWIN_64_BIT_INO_T && !__DARWIN_ONLY_64_BIT_INO_T */
/*
* Stat syscalls
int (* stat_syscall)(void *obj, void *sbptr, void *fsacl, size_t *fsacl_size),
void *sbptr, filesec_t fsec)
{
- struct kauth_filesec *fsacl, *ofsacl;
+ kauth_filesec_t fsacl, ofsacl;
size_t fsacl_size, buffer_size;
int error;
struct stat * sb = (struct stat *)0;