apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurent Charmet <laurent.char...@atempo.com>
Subject simple way to match error code value with error code define ?
Date Thu, 16 Jul 2009 13:43:44 GMT
Hi,

On linux when filesystem is full, apr_file_write return 28 and windows
return 720112

I don't want to write this code:

res = apr_file_write(...);
if (res != APR_SUCCESS) {
  if (res == 28 || res == 720112) {
    /* manage fs full */
  }
}

What is the right way to do that ? Is there an APR_STATUS_IS_FSFULL()
macro for example ?

Regards,

Laurent

Note: sorry if this mailing list is only for internal Apr dev and not
related to dev using Apr in general

Mime
View raw message