aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-08 08:27:49 +0000
committerRoland McGrath <roland@gnu.org>2006-01-08 08:27:49 +0000
commit9b121343547d646f5e511446588f0ff69b168211 (patch)
tree083619b520adf84060ba3126bed98efa0341cce6
parent7b1b6d57d0417dcf3e8db1ce13fcb245a0bf2c33 (diff)
downloadglibc-9b121343547d646f5e511446588f0ff69b168211.tar
glibc-9b121343547d646f5e511446588f0ff69b168211.tar.gz
glibc-9b121343547d646f5e511446588f0ff69b168211.tar.bz2
glibc-9b121343547d646f5e511446588f0ff69b168211.zip
* sysdeps/unix/sysv/linux/futimes.c [!__NR_fcntl && __NR_fcntl64]: Use
fcntl64 syscall instead.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/futimes.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e07a4063e..a197726633 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-01-08 Roland McGrath <roland@redhat.com>
+ * sysdeps/unix/sysv/linux/futimes.c [!__NR_fcntl && __NR_fcntl64]: Use
+ fcntl64 syscall instead.
+
* stdio-common/tst-fmemopen2.c (do_test): Add a cast.
* stdio-common/printf-parsemb.c (__find_specmb): Likewise.
diff --git a/sysdeps/unix/sysv/linux/futimes.c b/sysdeps/unix/sysv/linux/futimes.c
index 6614c37880..b307c3ff64 100644
--- a/sysdeps/unix/sysv/linux/futimes.c
+++ b/sysdeps/unix/sysv/linux/futimes.c
@@ -88,6 +88,9 @@ __futimes (int fd, const struct timeval tvp[2])
case ENOENT:
/* Validate the file descriptor by letting fcntl set errno to
EBADF if it's bogus. Otherwise it's a /proc issue. */
+#if !defined __NR_fcntl && defined __NR_fcntl64
+# define __NR_fcntl __NR_fcntl64
+#endif
if (INLINE_SYSCALL (fcntl, 3, fd, F_GETFD, 0) != -1)
__set_errno (ENOSYS);
break;