mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Assume __NR_utimensat is always defined
With the 2.6.32 minimum kernel on x86 and 3.2 on other architectures, __NR_utimensat is always defined. Changelog: * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]: Make code unconditional. [!__NR_utimensat]: Remove conditional code. * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]: Make code unconditional. [!__NR_utimensat]: Remove conditional code. * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]: Make code unconditional. [!__NR_utimensat]: Remove conditional code.
This commit is contained in:
@ -31,13 +31,6 @@ utimensat (int fd, const char *file, const struct timespec tsp[2],
|
||||
{
|
||||
if (file == NULL)
|
||||
return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL);
|
||||
#ifdef __NR_utimensat
|
||||
/* Avoid implicit array coercion in syscall macros. */
|
||||
return INLINE_SYSCALL (utimensat, 4, fd, file, &tsp[0], flags);
|
||||
#else
|
||||
return INLINE_SYSCALL_ERROR_RETURN_VALUE (ENOSYS);
|
||||
#endif
|
||||
}
|
||||
#ifndef __NR_utimensat
|
||||
stub_warning (utimensat)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user