mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
|
* sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
|
||||||
use it instead of LINK_MAX.
|
use it instead of LINK_MAX.
|
||||||
|
* sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
|
||||||
|
|
||||||
2000-06-08 Andreas Jaeger <aj@suse.de>
|
2000-06-08 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Linux specific extensions to fpathconf.
|
/* Linux specific extensions to fpathconf.
|
||||||
Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1991, 95, 96, 98, 99, 2000 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
|
||||||
@ -23,6 +23,10 @@
|
|||||||
|
|
||||||
#include "linux_fsinfo.h"
|
#include "linux_fsinfo.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* The Linux kernel header mentioned this as a kind of generic value. */
|
||||||
|
#define LINUX_LINK_MAX 127
|
||||||
|
|
||||||
static long int posix_fpathconf (int fd, int name);
|
static long int posix_fpathconf (int fd, int name);
|
||||||
|
|
||||||
|
|
||||||
@ -39,7 +43,7 @@ __fpathconf (fd, name)
|
|||||||
/* Determine the filesystem type. */
|
/* Determine the filesystem type. */
|
||||||
if (__fstatfs (fd, &fsbuf) < 0)
|
if (__fstatfs (fd, &fsbuf) < 0)
|
||||||
/* not possible, return the default value. */
|
/* not possible, return the default value. */
|
||||||
return LINK_MAX;
|
return LINUX_LINK_MAX;
|
||||||
|
|
||||||
switch (fsbuf.f_type)
|
switch (fsbuf.f_type)
|
||||||
{
|
{
|
||||||
@ -72,7 +76,7 @@ __fpathconf (fd, name)
|
|||||||
return REISERFS_LINK_MAX;
|
return REISERFS_LINK_MAX;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return LINK_MAX;
|
return LINUX_LINK_MAX;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ __pathconf (path, name)
|
|||||||
/* Determine the filesystem type. */
|
/* Determine the filesystem type. */
|
||||||
if (__statfs (path, &fsbuf) < 0)
|
if (__statfs (path, &fsbuf) < 0)
|
||||||
/* not possible, return the default value. */
|
/* not possible, return the default value. */
|
||||||
return LINK_MAX;
|
return LINUX_LINK_MAX;
|
||||||
|
|
||||||
switch (fsbuf.f_type)
|
switch (fsbuf.f_type)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user