summaryrefslogtreecommitdiffstats
path: root/include/linux/time.h
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2017-08-02 19:51:15 -0700
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-03 20:24:30 -0400
commitaaed2dd8a31359e5767ee099ecbb078d55be4d29 (patch)
treef04a2e3db658c12cabae3dfd4449d8199dc0fc19 /include/linux/time.h
parent7ff2819e8dd5b528887dfbe4ff395f5d2142edff (diff)
downloadblackbird-obmc-linux-aaed2dd8a31359e5767ee099ecbb078d55be4d29.tar.gz
blackbird-obmc-linux-aaed2dd8a31359e5767ee099ecbb078d55be4d29.zip
utimes: Make utimes y2038 safe
struct timespec is not y2038 safe on 32 bit machines. Replace timespec with y2038 safe struct timespec64. Note that the patch only changes the internals without modifying the syscall interfaces. This will be part of a separate series. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/time.h')
-rw-r--r--include/linux/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index 4abb32d4c6b8..3d0cd017f0d7 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -178,7 +178,7 @@ extern int do_setitimer(int which, struct itimerval *value,
struct itimerval *ovalue);
extern int do_getitimer(int which, struct itimerval *value);
-extern long do_utimes(int dfd, const char __user *filename, struct timespec *times, int flags);
+extern long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, int flags);
/*
* Similar to the struct tm in userspace <time.h>, but it needs to be here so
OpenPOWER on IntegriCloud