This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Win32 files and cygwin files
- To: gnu-win32 at cygnus dot com
- Subject: Re: Win32 files and cygwin files
- From: cgf at cygnus dot com (Christopher G. Faylor)
- Date: 24 Nov 1998 13:39:56 GMT
- Newsgroups: cygnus.gnu-win32
- Organization: Cygnus Solutions
- References: <199811231555.KAA14580.cygnus.gnu-win32@clay.sii-nh.com>
- Stamped: newsgate-cygnus
In article <199811231555.KAA14580.cygnus.gnu-win32@clay.sii-nh.com>,
David R. Dick <drd@sii-nh.com> wrote:
>Because file locking seems to be unavailable in CygWin,
>I probably need to use Win32 LockFile().
>
>I know that I can link with Win32 libaries to use some
>Windows functionality.
>
>Is there a way I can use LockFile() on files I have opened
>with normal UNIX fopen() calls? or do I need to go all the
>way in using Win32 file calls?
HANDLE h = get_osfhandle (fd) returns the Windows handle associated with
the cygwin fd.
--
cgf@cygnus.com
http://www.cygnus.com/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".