about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/fpathconf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-14 06:28:45 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-14 06:28:45 +0000
commit564cd8b67ec487fe090c8ead2fb93be91959985d (patch)
treea45ad932a67e2684648c3065026c66166006827e /sysdeps/unix/sysv/linux/fpathconf.c
parent59b28a2e4b51c293025c157c62bfc27b633aee19 (diff)
downloadglibc-564cd8b67ec487fe090c8ead2fb93be91959985d.tar.gz
glibc-564cd8b67ec487fe090c8ead2fb93be91959985d.tar.xz
glibc-564cd8b67ec487fe090c8ead2fb93be91959985d.zip
Update.
2003-03-13  Ulrich Drepper  <drepper@redhat.com>

	* posix/getconf.c: Recognize POSIX2_SYMLINKS.
	* sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
	* sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
	* sysdeps/posix/pathconf.c: Likewise.
	* sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
	* sysdeps/unix/sysv/linux/pathconf.c: Likewise.
	* sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.

	* sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
	words.
Diffstat (limited to 'sysdeps/unix/sysv/linux/fpathconf.c')
-rw-r--r--sysdeps/unix/sysv/linux/fpathconf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c
index 4dd6059974..9eca7175cc 100644
--- a/sysdeps/unix/sysv/linux/fpathconf.c
+++ b/sysdeps/unix/sysv/linux/fpathconf.c
@@ -1,5 +1,5 @@
 /* Get file-specific information about descriptor FD.  Linux version.
-   Copyright (C) 1991,95,96,98,99,2000,2001,2002 Free Software Foundation, Inc.
+   Copyright (C) 1991,1995,1996,1998-2002,2003 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
@@ -38,8 +38,13 @@ __fpathconf (fd, name)
     {
     case _PC_LINK_MAX:
       return statfs_link_max (__fstatfs (fd, &fsbuf), &fsbuf);
+
     case _PC_FILESIZEBITS:
       return statfs_filesize_max (__fstatfs (fd, &fsbuf), &fsbuf);
+
+    case _PC_2_SYMLINKS:
+      return statfs_symlinks (__fstatfs (fd, &fsbuf), &fsbuf);
+
     default:
       return posix_fpathconf (fd, name);
     }