about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/pathconf.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-07-07 10:53:16 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-07 10:53:16 -0400
commit4e5f31c847982997c856f03bbc35134e9fd0f61f (patch)
tree218f0da37b738c1eb8cce3ce4fedd252e5a74cb0 /sysdeps/unix/sysv/linux/pathconf.h
parentde283087c74f720cf8a7171972e72b5fa2b45e79 (diff)
downloadglibc-4e5f31c847982997c856f03bbc35134e9fd0f61f.tar.gz
glibc-4e5f31c847982997c856f03bbc35134e9fd0f61f.tar.xz
glibc-4e5f31c847982997c856f03bbc35134e9fd0f61f.zip
Handle ext4 in {,f}pathconf
ext4 has a higher LINK_MAX limit than ext2/3.  Unfortunately it is
not easy to distinguish the filesystems from userlevel.
Diffstat (limited to 'sysdeps/unix/sysv/linux/pathconf.h')
-rw-r--r--sysdeps/unix/sysv/linux/pathconf.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/pathconf.h b/sysdeps/unix/sysv/linux/pathconf.h
index 806adcc5ea..34289d8005 100644
--- a/sysdeps/unix/sysv/linux/pathconf.h
+++ b/sysdeps/unix/sysv/linux/pathconf.h
@@ -1,5 +1,6 @@
 /* Common parts of Linux implementation of pathconf and fpathconf.
-   Copyright (C) 1991,1995,1996,1998-2003,2008 Free Software Foundation, Inc.
+   Copyright (C) 1991,1995,1996,1998-2003,2008,2011
+   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
@@ -22,8 +23,10 @@
 #include <sys/statfs.h>
 
 
-/* Used like: return __statfs_link_max (__statfs (name, &buf), &buf); */
-extern long int __statfs_link_max (int result, const struct statfs *fsbuf);
+/* Used like: return __statfs_link_max (__statfs (name, &buf), &buf,
+					name, -1); */
+extern long int __statfs_link_max (int result, const struct statfs *fsbuf,
+				   const char *file, int fd);
 
 
 /* Used like: return __statfs_filesize_max (__statfs (name, &buf), &buf); */