[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: file-descriptor probs.

From: Bill Tutt <billtut_at_microsoft.com>
Date: 2001-09-20 02:02:09 CEST

Branko wrote:
> Ben Collins-Sussman wrote:

> > * in commit_stream_close,
> >
> > - the apr_file_t is rewound using apr_file_seek()
> > - the filedescriptor is discovered using apr_os_file_get()
> >
> ... which won't work on Windows, where an apr_os_file_t is a HANDLE,
not
> a Unix-like file descriptor.

Yes it will.

Here are those 2 MSVCRT routines I alluded to before:

// Takes a Win32 HANDLE, and CRT open() flags, and returns a CRT integer
file descriptor.
_open_osfhandle(handle, flags)

// Takes a CRT integer file descriptor and returns it's underlying Win32
HANDLE.
_get_osfhandle(fd)

FYI,
Bill

"Though we are not now that strength that in old days moved Earth and
Heaven, that which we are we are; One equal temper of heroic hearts made
weak by time and fate but strong in will to strive, to seek, to find,
and not to yield." -- Tennyson

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:42 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.