Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-04-24 13:39:21 +0400
committerCorinna Vinschen <corinna@vinschen.de>2008-04-24 13:39:21 +0400
commit0d02384a4892d1419ca12125beaf155d2af7d720 (patch)
tree8d84a054cb83cbc51d278f802e1b0d41d43c65c5 /newlib/libc
parenta220e94953d3fbf4c2812780974ea5620afc7861 (diff)
* libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
(UTIME_OMIT): Ditto. (utimensat): Declare for Cygwin. (futimens): Ditto.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/sys/stat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index 949508d6f..8b8aa6563 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -115,6 +115,11 @@ struct stat
#define S_ISLNK(m) (((m)&_IFMT) == _IFLNK)
#define S_ISSOCK(m) (((m)&_IFMT) == _IFSOCK)
+#if defined(__CYGWIN__)
+/* Special tv_nsec values for futimens(2) and utimensat(2). */
+#define UTIME_NOW -2L
+#define UTIME_OMIT -1L
+#endif
int _EXFUN(chmod,( const char *__path, mode_t __mode ));
int _EXFUN(fchmod,(int __fd, mode_t __mode));
@@ -135,6 +140,8 @@ int _EXFUN(fstatat, (int, const char *, struct __stat64 *, int));
int _EXFUN(mkdirat, (int, const char *, mode_t));
int _EXFUN(mkfifoat, (int, const char *, mode_t));
int _EXFUN(mknodat, (int, const char *, mode_t, dev_t));
+int _EXFUN(utimensat, (int, const char *, const struct timespec *, int));
+int _EXFUN(futimens, (int, const struct timespec *));
#endif
/* Provide prototypes for most of the _<systemcall> names that are