[Bug 2826] New: _chsize implementation in msvcrt prevented by self-reference

Wine Bugs wine-bugs at winehq.org
Sat Mar 26 12:02:51 CST 2005


http://bugs.winehq.org/show_bug.cgi?id=2826

           Summary: _chsize implementation in msvcrt prevented by self-
                    reference
           Product: Wine
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-files
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: hutch at psfc.mit.edu


_chsize, the windows equivalent of ftruncate is not currently implemented in
msvcrt.dll. As a result some trivial programs, notably ones that are produced
from mingw (but this is hardly mingw's fault) break.

In principle, implementation of _chsize is trivial, since it is the same as
ftruncate. However, elsewhere in wine there are macro definitions that 
#define _chsize ftruncate

Then if you try to implement (or work around) _chsize by calls to ftruncate, you
are screwed because it references back to _chsize.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list