diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2016-03-23 23:35:08 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2016-03-23 23:35:08 +0100 |
commit | 7e1ff08c260ae105208edb4e778e50525dff05d3 (patch) | |
tree | 292431c4192fd50cb1fa2af1f5dfcd045fca7ea7 /sysdeps/unix/sysv/linux/utimensat.c | |
parent | 16d94f67e56c8dfd4fcac45ec0380d8b1ba6b2af (diff) | |
download | glibc-7e1ff08c260ae105208edb4e778e50525dff05d3.tar glibc-7e1ff08c260ae105208edb4e778e50525dff05d3.tar.gz glibc-7e1ff08c260ae105208edb4e778e50525dff05d3.tar.bz2 glibc-7e1ff08c260ae105208edb4e778e50525dff05d3.zip |
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/utimensat.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/utimensat.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sysdeps/unix/sysv/linux/utimensat.c b/sysdeps/unix/sysv/linux/utimensat.c index f3a9697a17..89af2f516b 100644 --- a/sysdeps/unix/sysv/linux/utimensat.c +++ b/sysdeps/unix/sysv/linux/utimensat.c @@ -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 |