-/* Copyright (C) 1991, 1995, 1996, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1998, 2000 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
#include <linux_fsinfo.h>
+
+/* The Linux kernel header mentioned this as a kind of generic value. */
+#define LINUX_LINK_MAX 127
+
static long int default_fpathconf (int fd, int name);
/* Get file-specific information about descriptor FD. */
/* Determine the filesystem type. */
if (__fstatfs (fd, &fsbuf) < 0)
/* not possible, return the default value. */
- return LINK_MAX;
+ return LINUX_LINK_MAX;
switch (fsbuf.f_type)
{
return UFS_LINK_MAX;
default:
- return LINK_MAX;
+ return LINUX_LINK_MAX;
}
}
/* Determine the filesystem type. */
if (__statfs (path, &fsbuf) < 0)
/* not possible, return the default value. */
- return LINK_MAX;
+ return LINUX_LINK_MAX;
switch (fsbuf.f_type)
{
return UFS_LINK_MAX;
default:
- return LINK_MAX;
+ return LINUX_LINK_MAX;
}
}