Lines Matching refs:statcode
39 static char *apr_error_string(apr_status_t statcode) in apr_error_string() argument
41 switch (statcode) { in apr_error_string()
357 static char *native_strerror(apr_status_t statcode, char *buf, in native_strerror() argument
360 if (strerror_r(statcode, buf, bufsize) < 0) { in native_strerror()
379 static char *native_strerror(apr_status_t statcode, char *buf, in native_strerror() argument
385 msg = strerror_r(statcode, buf, bufsize); in native_strerror()
397 static char *native_strerror(apr_status_t statcode, char *buf, in native_strerror() argument
402 sprintf(err, "Native Error #%d", statcode); in native_strerror()
405 const char *err = strerror(statcode); in native_strerror()
416 APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf, in apr_strerror() argument
419 if (statcode < APR_OS_START_ERROR) { in apr_strerror()
420 return native_strerror(statcode, buf, bufsize); in apr_strerror()
422 else if (statcode < APR_OS_START_USERERR) { in apr_strerror()
423 return stuffbuffer(buf, bufsize, apr_error_string(statcode)); in apr_strerror()
425 else if (statcode < APR_OS_START_EAIERR) { in apr_strerror()
428 else if (statcode < APR_OS_START_SYSERR) { in apr_strerror()
430 statcode -= APR_OS_START_EAIERR; in apr_strerror()
432 statcode = -statcode; in apr_strerror()
434 return stuffbuffer(buf, bufsize, gai_strerror(statcode)); in apr_strerror()
440 return apr_os_strerror(buf, bufsize, statcode - APR_OS_START_SYSERR); in apr_strerror()