-int chmod(const char *, mode_t) __DARWIN_ALIAS(chmod);
-int fchmod(int, mode_t) __DARWIN_ALIAS(fchmod);
-int fstat(int, struct stat *) __DARWIN_INODE64(fstat);
-int lstat(const char *, struct stat *) __DARWIN_INODE64(lstat);
-int mkdir(const char *, mode_t);
-int mkfifo(const char *, mode_t);
-int stat(const char *, struct stat *) __DARWIN_INODE64(stat);
-int mknod(const char *, mode_t, dev_t);
-mode_t umask(mode_t);
+int chmod(const char *, mode_t) __DARWIN_ALIAS(chmod);
+int fchmod(int, mode_t) __DARWIN_ALIAS(fchmod);
+int fstat(int, struct stat *) __DARWIN_INODE64(fstat);
+int lstat(const char *, struct stat *) __DARWIN_INODE64(lstat);
+int mkdir(const char *, mode_t);
+int mkfifo(const char *, mode_t);
+int stat(const char *, struct stat *) __DARWIN_INODE64(stat);
+int mknod(const char *, mode_t, dev_t);
+mode_t umask(mode_t);
+
+#if __DARWIN_C_LEVEL >= 200809L
+int fchmodat(int, const char *, mode_t, int) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+int fstatat(int, const char *, struct stat *, int) __DARWIN_INODE64(fstatat) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+int mkdirat(int, const char *, mode_t) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+
+#define UTIME_NOW -1
+#define UTIME_OMIT -2
+
+int futimens(int __fd, const struct timespec __times[2]) __API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0));
+int utimensat(int __fd, const char *__path, const struct timespec __times[2],
+ int __flag) __API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0));
+#endif