-/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
#include <errno.h>
#include <fcntl.h>
{
/* Check FD is associated with a directory. */
struct stat64 st;
- if (__fxstat64 (_STAT_VER, fd, &st) != 0)
+ if (__fstat64 (fd, &st) != 0)
return -1;
if (!S_ISDIR (st.st_mode))