From: hqm@ua.com (Henry Minsky)
Subject: _get_osfhandle and/or mmap under cygwin.dll on NT?
14 Jan 1997 01:10:52 -0800
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199701140726.XAA23090.cygnus.gnu-win32@teller.datawave.net>
Original-To: gnu-win32@cygnus.com
Original-Sender: owner-gnu-win32@cygnus.com


Hi,

Does anyone know if mmap is supposed to work under the current (v B
17.1) cygwin.dll?  I get undefined symbol errors when I try to compile
programs with calls to mmap().

If mmap() has not yet been implemented, I was given an implementation
called mman.c written by a fellow in Australia, David Makepeace
<D.Makepeace@mailbox.uq.oz.au>, which says it implements mmap using
the Win32 memory mapping routines.

I cannot compile this version of mmap under gcc on Windows NT,
however, because it references a function called _get_osfhandle. This
seems to be defined in the Microsoft LIBC, but not in the gnu-win32
libraries. Can anyone tell me how to link with this function, or more
generally how to link with a .lib or other object file produced by
Mirosoft's compiler?


Thanks,
	Henry
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
