X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/935ed37a5c468c8a1c07408573c08b8b7ef80e8b..593a1d5fd87cdf5b46dd5fcb84467b432cea0f91:/bsd/sys/stat.h?ds=sidebyside diff --git a/bsd/sys/stat.h b/bsd/sys/stat.h index f60c65821..ab921b8ae 100644 --- a/bsd/sys/stat.h +++ b/bsd/sys/stat.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2007 Apple Inc. All rights reserved. + * Copyright (c) 2000-2008 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -74,6 +74,8 @@ #include #ifdef KERNEL #include +#else /* !KERNEL */ +#include #endif /* KERNEL */ /* [XSI] The timespec structure may be defined as described in */ @@ -264,8 +266,12 @@ struct stat { #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) +#if !__DARWIN_ONLY_64_BIT_INO_T + struct stat64 __DARWIN_STRUCT_STAT64; +#endif /* !__DARWIN_ONLY_64_BIT_INO_T */ + #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */ @@ -537,15 +543,18 @@ int mkdirx_np(const char *, filesec_t); int mkfifox_np(const char *, filesec_t); int statx_np(const char *, struct stat *, filesec_t) __DARWIN_INODE64(statx_np); int umaskx_np(filesec_t); -/* The following are simillar to stat and friends except provide struct stat64 instead of struct stat */ -int fstatx64_np(int, struct stat64 *, filesec_t); -int lstatx64_np(const char *, struct stat64 *, filesec_t); -int statx64_np(const char *, struct stat64 *, filesec_t); -int fstat64(int, struct stat64 *); -int lstat64(const char *, struct stat64 *); -int stat64(const char *, struct stat64 *); + +#if !__DARWIN_ONLY_64_BIT_INO_T +/* The following deprecated routines are simillar to stat and friends except provide struct stat64 instead of struct stat */ +int fstatx64_np(int, struct stat64 *, filesec_t) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA); +int lstatx64_np(const char *, struct stat64 *, filesec_t) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA); +int statx64_np(const char *, struct stat64 *, filesec_t) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA); +int fstat64(int, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA); +int lstat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA); +int stat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA); +#endif /* !__DARWIN_ONLY_64_BIT_INO_T */ #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */ __END_DECLS -#endif +#endif /* !KERNEL */ #endif /* !_SYS_STAT_H_ */