diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/utimensat.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/utimensat.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/utimensat.c b/sysdeps/unix/sysv/linux/utimensat.c index 9b645a10e6..81b565f2ea 100644 --- a/sysdeps/unix/sysv/linux/utimensat.c +++ b/sysdeps/unix/sysv/linux/utimensat.c @@ -30,13 +30,16 @@ utimensat (int fd, const char *file, const struct timespec tsp[2], int flags) { if (file == NULL) - return INLINE_SYSCALL_ERROR_RETURN (-EINVAL, int, -1); + { + __set_errno (EINVAL); + return -1; + } #ifdef __NR_utimensat /* Avoid implicit array coercion in syscall macros. */ - return INLINE_SYSCALL_RETURN (utimensat, 4, int, fd, file, &tsp[0], - flags); + return INLINE_SYSCALL (utimensat, 4, fd, file, &tsp[0], flags); #else - return INLINE_SYSCALL_ERROR_RETURN (-ENOSYS, int, -1); + __set_errno (ENOSYS); + return -1; #endif } #ifndef __NR_utimensat |