about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-01-07 04:56:33 +0000
committerUlrich Drepper <drepper@redhat.com>2005-01-07 04:56:33 +0000
commitea0034f3bf8e5e3733f8193e708db83452cf15c0 (patch)
treec1386c571923240d17fcaa3f6872ada47ec78654 /sysdeps
parent1e6a5f2fd22346b837f5f52158ea97d32de3b93c (diff)
downloadglibc-ea0034f3bf8e5e3733f8193e708db83452cf15c0.tar.gz
glibc-ea0034f3bf8e5e3733f8193e708db83452cf15c0.tar.xz
glibc-ea0034f3bf8e5e3733f8193e708db83452cf15c0.zip
(__futimes): Use __set_errno.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/futimes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/futimes.c b/sysdeps/unix/sysv/linux/futimes.c
index 27b453c605..0c4be2b67f 100644
--- a/sysdeps/unix/sysv/linux/futimes.c
+++ b/sysdeps/unix/sysv/linux/futimes.c
@@ -82,14 +82,14 @@ __futimes (int fd, const struct timeval tvp[2])
       case ELOOP:
       case ENAMETOOLONG:
       case ENOTDIR:
-	errno = ENOSYS;
+	__set_errno (ENOSYS);
 	break;
 
       case ENOENT:
 	/* Validate the file descriptor by letting fcntl set errno to
 	   EBADF if it's bogus.  Otherwise it's a /proc issue.  */
 	if (INLINE_SYSCALL (fcntl, 3, fd, F_GETFD, 0) != -1)
-	  errno = ENOSYS;
+	  __set_errno (ENOSYS);
 	break;
       }