This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11057] New: linux, pathconf(_PC_LINX_MAX)


pathconf(_PC_LINX_MAX) returns an incorrect value.
Its current implementation seems to return LINUX_LINK_MAX (127), 
except some FS whose LINK_MAX values are defined (copied) in
sysdeps/unix/sysv/linux/linux_fsinfo.h.

I guess the reason of current implementaion is the lack of linux kernel
interface, ie. there is no method to get the value from linux.
I've found an used member in struct statfs, named f_spare,
and pathconf(_PC_LINK_MAX) always issues statfs(2).
If linux kernel puts the correct value into f_spare[0] for instance,
and pathconf(3) returns the value from f_spare, then will the problem solved?
In other words, will you support f_spare if linux kernel changes?

-- 
           Summary: linux, pathconf(_PC_LINX_MAX)
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: hooanon05 at yahoo dot co dot jp
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11057

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]