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

Re: svn commit: r9806 - in trunk/subversion: include libsvn_subr

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-05-22 02:24:30 CEST

Peter N. Lundblad wrote:

>>No, because apr_get_os_error() doesn't use errno on Win32.
>So it uses GetLastError() then? Wouldn't a failed fputs on Windows also
>set GetLastError()? But that might be relying on the implementation
Very much so, I'm afraid.

>Maybe it would be better to use plain errno? But I'd like not to use
>strerror directly.
You don't have to. Look at apr_errno.h: you'll notice that the core
posix-like codes (APR_EACCES, APR_ENOSPC, etc.) are mapped to the errono
values on all platforms. The Windows C runtime does use a number of
these, so the value of errno is always a valid APR error code.

>What I'd like is something more than the generic write error, but if it is
>difficult on non-POSIX systems, I'll just return the generic one and go
I'd suggest using plain errno as an APR error code. we can test what
happens on Windows.

-- Brane

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 22 02:25:06 2004

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.