mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
(statfs_filesize_max): New function. * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC, JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC, ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define. * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use statfs_filesize_max. * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise. * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed. * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
This commit is contained in:
@ -30,11 +30,15 @@ static long int posix_pathconf (const char *file, int name);
|
||||
long int
|
||||
__pathconf (const char *file, int name)
|
||||
{
|
||||
if (name == _PC_LINK_MAX)
|
||||
{
|
||||
struct statfs fsbuf;
|
||||
return statfs_link_max (__statfs (file, &fsbuf), &fsbuf);
|
||||
}
|
||||
struct statfs fsbuf;
|
||||
|
||||
return posix_pathconf (file, name);
|
||||
switch (name)
|
||||
{
|
||||
case _PC_LINK_MAX:
|
||||
return statfs_link_max (__statfs (file, &fsbuf), &fsbuf);
|
||||
case _PC_FILESIZEBITS:
|
||||
return statfs_filesize_max (__statfs (file, &fsbuf), &fsbuf);
|
||||
default:
|
||||
return posix_pathconf (file, name);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user