mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* Get file-specific information about a file. 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
|
||||
@ -36,8 +36,13 @@ __pathconf (const char *file, int name)
|
||||
{
|
||||
case _PC_LINK_MAX:
|
||||
return statfs_link_max (__statfs (file, &fsbuf), &fsbuf);
|
||||
|
||||
case _PC_FILESIZEBITS:
|
||||
return statfs_filesize_max (__statfs (file, &fsbuf), &fsbuf);
|
||||
|
||||
case _PC_2_SYMLINKS:
|
||||
return statfs_symlinks (__statfs (file, &fsbuf), &fsbuf);
|
||||
|
||||
default:
|
||||
return posix_pathconf (file, name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user