www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10227] New: _fileno, _setmode, _O_BINARY undefined when building x64 on windows

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10227

           Summary: _fileno, _setmode, _O_BINARY undefined when building
                    x64 on windows
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: yarrluben+dbugs googlemail.com


--- Comment #0 from Pierre LeMoine <yarrluben+dbugs googlemail.com> 2013-06-01
03:57:24 PDT ---
_fileno, _setmode and _O_BINARY are missing when compiling a program for x64 on
windows with the microsoft linker.
Adding a few lines to src/phobos/std/stdio.d fixes the problem.
To reproduce the problem, use std.stdio.rawRead or std.stdio.rawWrite in any
program.

On further inspecting the source, it seems that rawRead and rawWrite use
different version statements for switching to binary; rawRead uses Win32 while
rawWrite uses Windows.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 01 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10227


Dylan <tcdknutson gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tcdknutson gmail.com


--- Comment #1 from Dylan <tcdknutson gmail.com> 2013-09-03 14:53:52 PDT ---
Proposed fix for this issue:
https://github.com/D-Programming-Language/phobos/pull/1538

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10227



--- Comment #2 from github-bugzilla puremagic.com 2013-10-24 14:43:46 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/ce23685c0b4e66622230ab9031aba7500e162f83
Merge pull request #1538 from dymk/win64-fileio

Fix Issue 10227: Add missing file I/O functions for Win64 DMD and Windows LDC

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 24 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10227


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 24 2013