diff options
author | Eric Blake <ebb9@byu.net> | 2009-10-12 10:36:33 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-10-12 20:38:51 -0600 |
commit | 4754ac9d681d36e16e92a1b08efb1d334d7b3829 (patch) | |
tree | ce843fa2a90299b04f4dd43bd139ccd0f3881360 /doc | |
parent | 959d9cb463d992f9c5cc2fbeb54bf12eee2346f7 (diff) | |
download | gnulib-4754ac9d681d36e16e92a1b08efb1d334d7b3829.tar.gz |
sys_stat: guarantee struct timespec
* lib/sys_stat.in.h (includes): Always include <time.h>
* modules/sys_stat (Depends-on): Add time.
* tests/test-sys_stat.c: Guarantee struct timespec, as well as
mode_t permission values.
* doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
get at subsecond timestamps.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-headers/sys_stat.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/posix-headers/sys_stat.texi b/doc/posix-headers/sys_stat.texi index 33c8683d22..6cfbe3d607 100644 --- a/doc/posix-headers/sys_stat.texi +++ b/doc/posix-headers/sys_stat.texi @@ -20,6 +20,10 @@ The functions @code{lstat} and @code{mkdir} are not declared on mingw. @item The macros @code{UTIME_NOW} and @code{UTIME_OMIT} are missing on some platforms. +@item +On some platforms, @code{struct stat} does not include @code{st_atim}, +@code{st_mtim}, or @code{st_ctim} members. Use the gnulib module +@samp{stat-time} for accessors to portably get at subsecond resolution. @end itemize Portability problems not fixed by Gnulib: |