summaryrefslogtreecommitdiff
path: root/sysdeps/stub/fxstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/fxstat.c')
-rw-r--r--sysdeps/stub/fxstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/stub/fxstat.c b/sysdeps/stub/fxstat.c
index 7c1eeff2cb..4318a08ecb 100644
--- a/sysdeps/stub/fxstat.c
+++ b/sysdeps/stub/fxstat.c
@@ -26,22 +26,22 @@ __fxstat (int vers, int fd, struct stat *buf)
{
if (vers != _STAT_VER)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}
if (fd < 0)
{
- errno = EBADF;
+ __set_errno (EBADF);
return -1;
}
else if (buf == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return -1;
}
stub_warning (__fxstat)