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

Re: errno values over the net

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-11-29 03:29:38 CET

Greg Hudson wrote:

>On Wed, 2002-11-27 at 14:29, Ben Collins-Sussman wrote:
>
>
>>I don't understand the problem. If your server process is linking
>>against libsvn_fs (which it must be), then it has access to the whole
>>APR error system and SVN error system (which is just an extension.)
>>Why not just move apr error codes over the wire?
>>
>>
>
>The goal is to marshal and unmarshal an svn_error_t structure over the
>wire. The apr_err field is portable, but the src_err field is not.
>
>
I saw a funny thing on my way through apr_errno.h:

/**
 * @see APR_STATUS_IS_EAGAIN
 * @warning use APR_STATUS_IS_EAGAIN instead of just testing this value
 */
#ifdef EAGAIN
#define APR_EAGAIN EAGAIN
#elif defined(EWOULDBLOCK)
#define APR_EAGAIN EWOULDBLOCK
#else
#define APR_EAGAIN (APR_OS_START_CANONERR + 13)
#endif

And lots of other similar defines. Which means that some APR codes may
well be different on different systems, doesn't it?

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 29 03:30:21 2002

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.