[Patches] [Patch #101773] BeOS PPC lacks fseeko, but isn't MS Windows

noreply@sourceforge.net noreply@sourceforge.net
Wed, 4 Oct 2000 11:18:23 -0700


Patch #101773 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: BeOS PPC lacks fseeko, but isn't MS Windows

Follow-Ups:

Date: 2000-Oct-04 11:18
By: tmick

Comment:
This is similar to a recent NetBSD 1.4.2 problem (cf: http://sourceforge.net/bugs/?func=detailbug&bug_id=112289&group_id=5470)

The problem:
  NetBSD 1.4.2 and now I think BeOS pass the configure test for HAVE_LARGEFILE_SUPPORT but neither defines either fseeko() or fseek64() as required by the Single Unix Specification. That sucks.

Question:
  What is this _fseek() in youy patch? This is a BeOS specific thing (sigh) I presume? Does it support large files, or pretend to? You can tell by the type of the second argument (the offset). If it is 'off_t' then it presumes to support largefiles. If it is 'long' then it does not. How is _fseek() different from fseek() on BeOS?

Right Answer (tm):
  If this _fseek() does *not* support largefiles then I *think* the right answer is to change the HAVE_LARGEFILE_SUUPORT test such that it is *false* for NetBSD 1.4.2 and BeOS.

I don't have the time (or a box to test this on) to try to get the right answer, though. So fat lot of good this comment is.

It might be preferable to copy the NetBSD/OpenBSD patch (search NetBSD in the same file). Add __BEOS__. Does that work then?
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101773&group_id=5470