You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Branko Čibej <br...@xbc.nu> on 2002/07/02 02:12:13 UTC
Re: cvs commit: apr/include apr_errno.h
Checking this in, after getting three +1's (myself, Wrowe and Cliff),
and no negative votes.
brane@apache.org wrote:
>brane 2002/07/01 17:10:44
>
> Modified: include apr_errno.h
> Log:
> Added ERROR_PATH_NOT_FOUND to the Win32 APR_STATUS_IS_ENOENT test,
> and added docs explaining why.
> See also <3D...@xbc.nu> and thread.
>
> Revision Changes Path
> 1.92 +11 -0 apr/include/apr_errno.h
>
> Index: apr_errno.h
> ===================================================================
> RCS file: /home/cvs/apr/include/apr_errno.h,v
> retrieving revision 1.91
> retrieving revision 1.92
> diff -u -r1.91 -r1.92
> --- apr_errno.h 20 May 2002 13:22:36 -0000 1.91
> +++ apr_errno.h 2 Jul 2002 00:10:44 -0000 1.92
> @@ -283,6 +283,16 @@
>
> /* APR ERROR VALUE TESTS */
> /**
> + * @defgroup APRErrorValueTests Error Value Tests
> + * @remark For any particular error condition, more than one of these tests
> + * may match. This is because platform-specific error codes may not
> + * always match the semantics of the POSIX codes these tests (and the
> + * correcponding APR error codes) are named after. A notable example
> + * are the APR_STATUS_IS_ENOENT and APR_STATUS_IS_ENOTDIR tests on
> + * Win32 platforms. The programmer should always be aware of this and
> + * adjust the order of the tests accordingly.
> + */
> +/**
> * APR was unable to perform a stat on the file
> * @warning always use this test, as platform-specific variances may meet this
> * more than one error code
> @@ -923,6 +933,7 @@
> || (s) == APR_OS_START_SYSERR + WSAENAMETOOLONG)
> #define APR_STATUS_IS_ENOENT(s) ((s) == APR_ENOENT \
> || (s) == APR_OS_START_SYSERR + ERROR_FILE_NOT_FOUND \
> + || (s) == APR_OS_START_SYSERR + ERROR_PATH_NOT_FOUND \
> || (s) == APR_OS_START_SYSERR + ERROR_OPEN_FAILED \
> || (s) == APR_OS_START_SYSERR + ERROR_NO_MORE_FILES)
> #define APR_STATUS_IS_ENOTDIR(s) ((s) == APR_ENOTDIR \
>
>
>
>
>
>
--
Brane Čibej <br...@xbc.nu> http://www.xbc.nu/brane/