public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15838] New: fts.h interfaces are presently non-usable except on 64-bit systems
@ 2013-08-14 19:32 bugdal at aerifal dot cx
  2014-02-26 17:35 ` [Bug libc/15838] " rjones at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugdal at aerifal dot cx @ 2013-08-14 19:32 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 15838
           Summary: fts.h interfaces are presently non-usable except on
                    64-bit systems
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: bugdal at aerifal dot cx
                CC: drepper.fsp at gmail dot com

fts.h contains the following:

/* The fts interface is incompatible with the LFS interface which
   transparently uses the 64-bit file access functions.  */
#ifdef __USE_FILE_OFFSET64
# error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
#endif

Thus, the whole fts.h API is useless except on 64-bit machines. Assuming a
32-bit system, if 64-bit off_t is used, fts.h explicitly generates an error. If
32-bit off_t is used, fts will fail at runtime because stat fails with
EOVERFLOW when the inode number or file size does not fit in 32 bits, making
any program using the fts interfaces unreliable.

I would prefer just deprecating this whole API, removing the header and using
symbol versioning to prevent new apps from linking to it. There is a perfectly
good version, without the 32-bit limitations, in gnulib which apps can use if
they need it, and there are various BSD versions that also work fine. The
breakage in the glibc version is purely from keeping ABI compatibility with the
old 32-bit off_t interfaces.

Alternatively, FTS64, fts_open64, etc. could be added...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/15838] fts.h interfaces are presently non-usable except on 64-bit systems
  2013-08-14 19:32 [Bug libc/15838] New: fts.h interfaces are presently non-usable except on 64-bit systems bugdal at aerifal dot cx
@ 2014-02-26 17:35 ` rjones at redhat dot com
  2014-06-13 13:12 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rjones at redhat dot com @ 2014-02-26 17:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15838

Richard Jones <rjones at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rjones at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/15838] fts.h interfaces are presently non-usable except on 64-bit systems
  2013-08-14 19:32 [Bug libc/15838] New: fts.h interfaces are presently non-usable except on 64-bit systems bugdal at aerifal dot cx
  2014-02-26 17:35 ` [Bug libc/15838] " rjones at redhat dot com
@ 2014-06-13 13:12 ` fweimer at redhat dot com
  2015-08-24  9:46 ` jsm28 at gcc dot gnu.org
  2024-02-06 19:15 ` gabravier at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 13:12 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15838

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/15838] fts.h interfaces are presently non-usable except on 64-bit systems
  2013-08-14 19:32 [Bug libc/15838] New: fts.h interfaces are presently non-usable except on 64-bit systems bugdal at aerifal dot cx
  2014-02-26 17:35 ` [Bug libc/15838] " rjones at redhat dot com
  2014-06-13 13:12 ` fweimer at redhat dot com
@ 2015-08-24  9:46 ` jsm28 at gcc dot gnu.org
  2024-02-06 19:15 ` gabravier at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-24  9:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15838

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Duplicate.

*** This bug has been marked as a duplicate of bug 11460 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/15838] fts.h interfaces are presently non-usable except on 64-bit systems
  2013-08-14 19:32 [Bug libc/15838] New: fts.h interfaces are presently non-usable except on 64-bit systems bugdal at aerifal dot cx
                   ` (2 preceding siblings ...)
  2015-08-24  9:46 ` jsm28 at gcc dot gnu.org
@ 2024-02-06 19:15 ` gabravier at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: gabravier at gmail dot com @ 2024-02-06 19:15 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15838

Gabriel Ravier <gabravier at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gabravier at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-06 19:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 19:32 [Bug libc/15838] New: fts.h interfaces are presently non-usable except on 64-bit systems bugdal at aerifal dot cx
2014-02-26 17:35 ` [Bug libc/15838] " rjones at redhat dot com
2014-06-13 13:12 ` fweimer at redhat dot com
2015-08-24  9:46 ` jsm28 at gcc dot gnu.org
2024-02-06 19:15 ` gabravier at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).