//#include "linux_fsinfo.h"
+libc_hidden_proto(fstat)
+libc_hidden_proto(fstatfs)
/* The Linux kernel headers mention this as a kind of generic value. */
#define LINUX_LINK_MAX 127
struct statfs fsbuf;
/* Determine the filesystem type. */
- if (__fstatfs (fd, &fsbuf) < 0)
+ if (fstatfs (fd, &fsbuf) < 0)
{
if (errno == ENOSYS)
/* not possible, return the default value. */
struct statfs buf;
int save_errno = errno;
- if (__fstatfs (fd, &buf) < 0)
+ if (fstatfs (fd, &buf) < 0)
{
if (errno == ENOSYS)
{
/* AIO is only allowed on regular files and block devices. */
struct stat st;
- if (__fstat (fd, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode)))
+ if (fstat (fd, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode)))
return -1;
else
return 1;