delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/14/01:10:52

From: hqm AT ua DOT com (Henry Minsky)
Subject: _get_osfhandle and/or mmap under cygwin.dll on NT?
14 Jan 1997 01:10:52 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199701140726.XAA23090.cygnus.gnu-win32@teller.datawave.net>
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT 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 DOT Makepeace AT mailbox DOT uq DOT oz DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019