[PATCH][BZ 15514] Use statvfs64() for pathconf(_PC_NAME_MAX).

Peter TB Brett peter@peter-b.co.uk
Mon Apr 7 20:56:00 GMT 2014


pathconf(_PC_NAME_MAX) was implemented on top of statfs().  The 32bit
version therefore fails EOVERFLOW if the filesystem blockcount is
sufficiently large.

Most pathconf() queries use statvfs64(), which avoids this issue.  This
patch modifies pathconf(_PC_NAME_MAX) to do likewise.

                                         Peter

P.S. I haven't completed FSF copyright assignment.

-- 
Dr Peter Brett <peter@peter-b.co.uk>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-statvfs64-for-pathconf-_PC_NAME_MAX-.-Bug-15514.patch
Type: text/x-patch
Size: 1505 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140407/ca821104/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 180 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140407/ca821104/attachment.sig>


More information about the Libc-alpha mailing list