]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/stub/xstat.c
update from main archive
[thirdparty/glibc.git] / sysdeps / stub / xstat.c
index ad67aa9fec0ecf25fdfd1244588f9f29a4e11296..a487062fdf325db4c780a76272269dce5ae35d65 100644 (file)
@@ -26,11 +26,11 @@ __xstat (int vers, const char *file, struct stat *buf)
 {
   if (vers != _STAT_VER || file == NULL || buf == NULL)
     {
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return -1;
     }
 
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return -1;
 }
 stub_warning (stat)