mirror of
https://sourceware.org/git/glibc.git
synced 2025-06-09 10:01:22 +03:00
Update.
2001-03-20 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Return LINUX_LINK_MAX only if the statfs function is not implemented for the filesystem. * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Return LINUX_LINK_MAX only if the fstatfs function is not implemented for the filesystem.
This commit is contained in:
parent
2541eda0d4
commit
c200ecdff4
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2001-03-20 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Return
|
||||||
|
LINUX_LINK_MAX only if the statfs function is not implemented for
|
||||||
|
the filesystem.
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Return
|
||||||
|
LINUX_LINK_MAX only if the fstatfs function is not implemented for
|
||||||
|
the filesystem.
|
||||||
|
|
||||||
2001-03-19 Ulrich Drepper <drepper@redhat.com>
|
2001-03-19 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* elf/dl-dst.h (DL_DST_COUNT): Add __builtin_expect.
|
* elf/dl-dst.h (DL_DST_COUNT): Add __builtin_expect.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Linux specific extensions to fpathconf.
|
/* Linux specific extensions to fpathconf.
|
||||||
Copyright (C) 1991, 95, 96, 98, 99, 2000 Free Software Foundation, Inc.
|
Copyright (C) 1991,95,96,98,99,2000,2001 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -17,6 +17,7 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/statfs.h>
|
#include <sys/statfs.h>
|
||||||
@ -42,9 +43,15 @@ __fpathconf (fd, name)
|
|||||||
|
|
||||||
/* Determine the filesystem type. */
|
/* Determine the filesystem type. */
|
||||||
if (__fstatfs (fd, &fsbuf) < 0)
|
if (__fstatfs (fd, &fsbuf) < 0)
|
||||||
|
{
|
||||||
|
if (errno == ENOSYS)
|
||||||
/* not possible, return the default value. */
|
/* not possible, return the default value. */
|
||||||
return LINUX_LINK_MAX;
|
return LINUX_LINK_MAX;
|
||||||
|
|
||||||
|
/* Some error occured. */
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
switch (fsbuf.f_type)
|
switch (fsbuf.f_type)
|
||||||
{
|
{
|
||||||
case EXT2_SUPER_MAGIC:
|
case EXT2_SUPER_MAGIC:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Linux specific extensions to pathconf.
|
/* Linux specific extensions to pathconf.
|
||||||
Copyright (C) 1991, 95, 96, 98, 99, 2000 Free Software Foundation, Inc.
|
Copyright (C) 1991,95,96,98,99,2000,2001 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -17,6 +17,7 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/statfs.h>
|
#include <sys/statfs.h>
|
||||||
@ -42,9 +43,15 @@ __pathconf (path, name)
|
|||||||
|
|
||||||
/* Determine the filesystem type. */
|
/* Determine the filesystem type. */
|
||||||
if (__statfs (path, &fsbuf) < 0)
|
if (__statfs (path, &fsbuf) < 0)
|
||||||
|
{
|
||||||
|
if (errno == ENOSYS)
|
||||||
/* not possible, return the default value. */
|
/* not possible, return the default value. */
|
||||||
return LINUX_LINK_MAX;
|
return LINUX_LINK_MAX;
|
||||||
|
|
||||||
|
/* Some error occured. */
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
switch (fsbuf.f_type)
|
switch (fsbuf.f_type)
|
||||||
{
|
{
|
||||||
case EXT2_SUPER_MAGIC:
|
case EXT2_SUPER_MAGIC:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user