apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurent Charmet <laurent.char...@atempo.com>
Subject Re: simple way to match error code value with error code define ?
Date Fri, 17 Jul 2009 09:03:49 GMT
Dan Poirier wrote:
> Laurent Charmet <laurent.charmet@atempo.com> writes:
>
>   
>> On linux when filesystem is full, apr_file_write return 28 and windows
>> return 720112
>>
>>
>> What is the right way to do that ? Is there an APR_STATUS_IS_FSFULL()
>> macro for example ?
>>     
>
> Search apr/include/*.h for FULL.
>
>   
I find APR_STATUS_IS_ENOSPC. But even if grep is my friend, it's not
obvious to determine that error code 28 or 720112 is manage by

#define APR_STATUS_IS_ENOSPC(s)         ((s) == APR_ENOSPC \
                || (s) == APR_OS_START_SYSERR + ERROR_DISK_FULL)

Thx for your answer, and congratulation to all for this very usefull
framework.

Laurent

Mime
View raw message