aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/fpathconf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-08 10:05:46 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-08 10:05:46 +0000
commitde1a717765d50ae5339a9ff0c004eefab9ecf2b1 (patch)
treed3df4a84e6ad013c69f6bfdb827b1d8ff8260d1a /sysdeps/unix/sysv/linux/fpathconf.c
parent9e56352f882e634fde43c7bf4a76090f51cd7c59 (diff)
downloadglibc-de1a717765d50ae5339a9ff0c004eefab9ecf2b1.tar
glibc-de1a717765d50ae5339a9ff0c004eefab9ecf2b1.tar.gz
glibc-de1a717765d50ae5339a9ff0c004eefab9ecf2b1.tar.bz2
glibc-de1a717765d50ae5339a9ff0c004eefab9ecf2b1.zip
Update.
* sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/fpathconf.c')
-rw-r--r--sysdeps/unix/sysv/linux/fpathconf.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c
index 3c01de6e0c..c56fdc629b 100644
--- a/sysdeps/unix/sysv/linux/fpathconf.c
+++ b/sysdeps/unix/sysv/linux/fpathconf.c
@@ -1,5 +1,5 @@
/* Linux specific extensions to fpathconf.
- Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1991, 95, 96, 98, 99, 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
@@ -23,6 +23,10 @@
#include "linux_fsinfo.h"
+
+/* The Linux kernel header mentioned this as a kind of generic value. */
+#define LINUX_LINK_MAX 127
+
static long int posix_fpathconf (int fd, int name);
@@ -39,7 +43,7 @@ __fpathconf (fd, name)
/* 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)
{
@@ -72,7 +76,7 @@ __fpathconf (fd, name)
return REISERFS_LINK_MAX;
default:
- return LINK_MAX;
+ return LINUX_LINK_MAX;
}
}