diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-05-10 23:10:52 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-05-10 23:10:52 +0000 |
commit | e169ea9b569d9e9a60bde4aebe960591bacaf4ef (patch) | |
tree | 8a14840e4fb4177c94d8e3f51e1b62cac56e6664 /io/sys | |
parent | 6bad2cd171c7d81e9a43ccc79e91009438c948ac (diff) |
Updated to fedora-glibc-20070510T2308cvs/fedora-glibc-2_5_90-24
Diffstat (limited to 'io/sys')
-rw-r--r-- | io/sys/stat.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h index d1f4484185..15ae35b199 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -28,11 +28,12 @@ #include <bits/types.h> /* For __mode_t and __dev_t. */ -#if defined __USE_XOPEN || defined __USE_MISC +#if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \ + || defined __USE_ATFILE # if defined __USE_XOPEN || defined __USE_XOPEN2K # define __need_time_t # endif -# ifdef __USE_MISC +# if defined __USE_MISC || defined __USE_ATFILE # define __need_timespec # endif # include <time.h> /* For time_t resp. timespec. */ @@ -354,6 +355,21 @@ extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode) __THROW __nonnull ((2)); #endif +#ifdef __USE_ATFILE +/* Set file access and modification times relative to directory file + descriptor. */ +extern int utimensat (int __fd, __const char *__path, + __const struct timespec __times[2], + int __flags) + __THROW __nonnull ((2)); +#endif + +#ifdef __USE_GNU +/* XXX This will change to the macro for the next 2008 POSIX revision. */ +/* Set file access and modification times of the file associated with FD. */ +extern int futimens (int __fd, __const struct timespec __times[2]) __THROW; +#endif + /* To allow the `struct stat' structure and the file type `mode_t' bits to vary without changing shared library major version number, the `stat' family of functions and `mknod' are in fact inline |