+2015-01-08 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
+
+ * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
+ timespec struct member in syscall macro.
+ * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
+ * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
+ first timeval struct member in syscall macro.
+ * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
+
2015-01-07 Joseph Myers <joseph@codesourcery.com>
[BZ #17748]
__set_errno (EBADF);
return -1;
}
- return INLINE_SYSCALL (utimensat, 4, fd, NULL, tsp, 0);
+ /* Avoid implicit array coercion in syscall macros. */
+ return INLINE_SYSCALL (utimensat, 4, fd, NULL, &tsp[0], 0);
#else
__set_errno (ENOSYS);
return -1;
/* Change the access time of FILE relative to FD to TVP[0] and
the modification time of FILE to TVP[1]. */
int
-futimesat (fd, file, tvp)
- int fd;
- const char *file;
- const struct timeval tvp[2];
+futimesat (int fd, const char *file, const struct timeval tvp[2])
{
if (file == NULL)
return __futimes (fd, tvp);
- return INLINE_SYSCALL (futimesat, 3, fd, file, tvp);
+ /* Avoid implicit array coercion in syscall macros. */
+ return INLINE_SYSCALL (futimesat, 3, fd, file, &tvp[0]);
}
return -1;
}
#ifdef __NR_utimensat
- return INLINE_SYSCALL (utimensat, 4, fd, file, tsp, flags);
+ /* Avoid implicit array coercion in syscall macros. */
+ return INLINE_SYSCALL (utimensat, 4, fd, file, &tsp[0], flags);
#else
__set_errno (ENOSYS);
return -1;
int
__utimes (const char *file, const struct timeval tvp[2])
{
- return INLINE_SYSCALL (utimes, 2, file, tvp);
+ /* Avoid implicit array coercion in syscall macros. */
+ return INLINE_SYSCALL (utimes, 2, file, &tvp[0]);
}
weak_alias (__utimes, utimes)