mirror of git://sourceware.org/git/glibc.git
(__futimes): Use __set_errno.
This commit is contained in:
parent
1e6a5f2fd2
commit
ea0034f3bf
|
|
@ -82,14 +82,14 @@ __futimes (int fd, const struct timeval tvp[2])
|
||||||
case ELOOP:
|
case ELOOP:
|
||||||
case ENAMETOOLONG:
|
case ENAMETOOLONG:
|
||||||
case ENOTDIR:
|
case ENOTDIR:
|
||||||
errno = ENOSYS;
|
__set_errno (ENOSYS);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ENOENT:
|
case ENOENT:
|
||||||
/* Validate the file descriptor by letting fcntl set errno to
|
/* Validate the file descriptor by letting fcntl set errno to
|
||||||
EBADF if it's bogus. Otherwise it's a /proc issue. */
|
EBADF if it's bogus. Otherwise it's a /proc issue. */
|
||||||
if (INLINE_SYSCALL (fcntl, 3, fd, F_GETFD, 0) != -1)
|
if (INLINE_SYSCALL (fcntl, 3, fd, F_GETFD, 0) != -1)
|
||||||
errno = ENOSYS;
|
__set_errno (ENOSYS);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue