[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: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2004-05-22 08:40:45 CEST

On Sat, 22 May 2004, [UTF-8] Branko ─^Libej wrote:

> Peter N. Lundblad wrote:
> >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.
Thank for enlighten me. Wasn't sure about how this really works.

> >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
> >on.
> >
> >
> I'd suggest using plain errno as an APR error code. we can test what
> happens on Windows.
OK. I'll try this tonight.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 22 08:32:53 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.