[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Gnu-arch-users] Arch On Cygwin(Win32)
From: |
wlist |
Subject: |
RE: [Gnu-arch-users] Arch On Cygwin(Win32) |
Date: |
Thu, 27 Nov 2003 11:50:37 +0100 |
Robert Collins wrote:
> Changing arch may be an approach. Be sure to write home when you've
> reimplemented the entire cygwin file IO layer.
I've been making a few attempts at this myself, bearing in mind your
warnings that it is ugly and won't work. :-)
This is what I've found:
In hackerlab, vu_open() returns a file descriptor. We need a version of
open() that supports long pathnames, but it appears there isn't one in
win32.
So I've updated vu_open() to call CreateFileW() instead. However, this
returns a handle, which can be converted into a file descriptor using
_open_osfhandle().
_open_osfhandle() is in the VC++ RTL. From my (somewhat naive)
experiments, and searching through the Cygwin mailing list archives, it
appears that we can't link both libmsvcrt.a and cygwin.dll. I can build
some test code that successfully returns a working file descriptor by
compiling with -lmsvcrt and -mno-cygwin.
However, I can't build arch with those options (because it needs stuff
from cygwin).
Have you had to tackle a similar problem in Cygwin itself, or is there
some problem with my understanding of the issue?
Your thoughts would be appreciated.
Many thanks
Pat Galea
- Re: [Gnu-arch-users] Arch On Cygwin(Win32), (continued)
RE: [Gnu-arch-users] Arch On Cygwin(Win32), Parker, Ron, 2003/11/13
RE: [Gnu-arch-users] Arch On Cygwin(Win32), Parker, Ron, 2003/11/17
RE: [Gnu-arch-users] Arch On Cygwin(Win32), Parker, Ron, 2003/11/17
RE: [Gnu-arch-users] Arch On Cygwin(Win32), Parker, Ron, 2003/11/17
RE: [Gnu-arch-users] Arch On Cygwin(Win32), Parker, Ron, 2003/11/20
RE: [Gnu-arch-users] Arch On Cygwin(Win32),
wlist <=