Go to the documentation of this file.
64 #define APR_FROM_OS_ERROR(e) (e == 0 ? APR_SUCCESS : e + APR_OS_START_SYSERR)
75 #define APR_TO_OS_ERROR(e) (e == 0 ? APR_SUCCESS : e - APR_OS_START_SYSERR)
117 #define APR_OS_START_ERROR 20000
123 #define APR_OS_ERRSPACE_SIZE 50000
132 #define APR_UTIL_ERRSPACE_SIZE 20000
136 #define APR_OS_START_STATUS (APR_OS_START_ERROR + APR_OS_ERRSPACE_SIZE)
141 #define APR_UTIL_START_STATUS (APR_OS_START_STATUS + \
142 (APR_OS_ERRSPACE_SIZE - APR_UTIL_ERRSPACE_SIZE))
164 #define APR_OS_START_USERERR (APR_OS_START_STATUS + APR_OS_ERRSPACE_SIZE)
169 #define APR_OS_START_USEERR APR_OS_START_USERERR
174 #define APR_OS_START_CANONERR (APR_OS_START_USERERR \
175 + (APR_OS_ERRSPACE_SIZE * 10))
180 #define APR_OS_START_EAIERR (APR_OS_START_CANONERR + APR_OS_ERRSPACE_SIZE)
185 #define APR_OS_START_SYSERR (APR_OS_START_EAIERR + APR_OS_ERRSPACE_SIZE)
225 #define APR_SUCCESS 0
288 #define APR_ENOSTAT (APR_OS_START_ERROR + 1)
290 #define APR_ENOPOOL (APR_OS_START_ERROR + 2)
293 #define APR_EBADDATE (APR_OS_START_ERROR + 4)
295 #define APR_EINVALSOCK (APR_OS_START_ERROR + 5)
297 #define APR_ENOPROC (APR_OS_START_ERROR + 6)
299 #define APR_ENOTIME (APR_OS_START_ERROR + 7)
301 #define APR_ENODIR (APR_OS_START_ERROR + 8)
303 #define APR_ENOLOCK (APR_OS_START_ERROR + 9)
305 #define APR_ENOPOLL (APR_OS_START_ERROR + 10)
307 #define APR_ENOSOCKET (APR_OS_START_ERROR + 11)
309 #define APR_ENOTHREAD (APR_OS_START_ERROR + 12)
311 #define APR_ENOTHDKEY (APR_OS_START_ERROR + 13)
313 #define APR_EGENERAL (APR_OS_START_ERROR + 14)
315 #define APR_ENOSHMAVAIL (APR_OS_START_ERROR + 15)
317 #define APR_EBADIP (APR_OS_START_ERROR + 16)
319 #define APR_EBADMASK (APR_OS_START_ERROR + 17)
322 #define APR_EDSOOPEN (APR_OS_START_ERROR + 19)
324 #define APR_EABSOLUTE (APR_OS_START_ERROR + 20)
326 #define APR_ERELATIVE (APR_OS_START_ERROR + 21)
328 #define APR_EINCOMPLETE (APR_OS_START_ERROR + 22)
330 #define APR_EABOVEROOT (APR_OS_START_ERROR + 23)
332 #define APR_EBADPATH (APR_OS_START_ERROR + 24)
334 #define APR_EPATHWILD (APR_OS_START_ERROR + 25)
336 #define APR_ESYMNOTFOUND (APR_OS_START_ERROR + 26)
338 #define APR_EPROC_UNKNOWN (APR_OS_START_ERROR + 27)
340 #define APR_ENOTENOUGHENTROPY (APR_OS_START_ERROR + 28)
359 #define APR_STATUS_IS_ENOSTAT(s) ((s) == APR_ENOSTAT)
365 #define APR_STATUS_IS_ENOPOOL(s) ((s) == APR_ENOPOOL)
367 #define APR_STATUS_IS_EBADDATE(s) ((s) == APR_EBADDATE)
369 #define APR_STATUS_IS_EINVALSOCK(s) ((s) == APR_EINVALSOCK)
371 #define APR_STATUS_IS_ENOPROC(s) ((s) == APR_ENOPROC)
373 #define APR_STATUS_IS_ENOTIME(s) ((s) == APR_ENOTIME)
375 #define APR_STATUS_IS_ENODIR(s) ((s) == APR_ENODIR)
377 #define APR_STATUS_IS_ENOLOCK(s) ((s) == APR_ENOLOCK)
379 #define APR_STATUS_IS_ENOPOLL(s) ((s) == APR_ENOPOLL)
381 #define APR_STATUS_IS_ENOSOCKET(s) ((s) == APR_ENOSOCKET)
383 #define APR_STATUS_IS_ENOTHREAD(s) ((s) == APR_ENOTHREAD)
385 #define APR_STATUS_IS_ENOTHDKEY(s) ((s) == APR_ENOTHDKEY)
387 #define APR_STATUS_IS_EGENERAL(s) ((s) == APR_EGENERAL)
389 #define APR_STATUS_IS_ENOSHMAVAIL(s) ((s) == APR_ENOSHMAVAIL)
391 #define APR_STATUS_IS_EBADIP(s) ((s) == APR_EBADIP)
393 #define APR_STATUS_IS_EBADMASK(s) ((s) == APR_EBADMASK)
400 #define APR_STATUS_IS_EDSOOPEN(s) ((s) == APR_EDSOOPEN \
401 || APR_TO_OS_ERROR(s) == ERROR_MOD_NOT_FOUND)
403 #define APR_STATUS_IS_EDSOOPEN(s) ((s) == APR_EDSOOPEN)
406 #define APR_STATUS_IS_EABSOLUTE(s) ((s) == APR_EABSOLUTE)
408 #define APR_STATUS_IS_ERELATIVE(s) ((s) == APR_ERELATIVE)
410 #define APR_STATUS_IS_EINCOMPLETE(s) ((s) == APR_EINCOMPLETE)
412 #define APR_STATUS_IS_EABOVEROOT(s) ((s) == APR_EABOVEROOT)
414 #define APR_STATUS_IS_EBADPATH(s) ((s) == APR_EBADPATH)
416 #define APR_STATUS_IS_EPATHWILD(s) ((s) == APR_EPATHWILD)
421 #define APR_STATUS_IS_ESYMNOTFOUND(s) ((s) == APR_ESYMNOTFOUND \
422 || APR_TO_OS_ERROR(s) == ERROR_PROC_NOT_FOUND)
424 #define APR_STATUS_IS_ESYMNOTFOUND(s) ((s) == APR_ESYMNOTFOUND)
427 #define APR_STATUS_IS_EPROC_UNKNOWN(s) ((s) == APR_EPROC_UNKNOWN)
429 #define APR_STATUS_IS_ENOTENOUGHENTROPY(s) ((s) == APR_ENOTENOUGHENTROPY)
438 #define APR_INCHILD (APR_OS_START_STATUS + 1)
440 #define APR_INPARENT (APR_OS_START_STATUS + 2)
442 #define APR_DETACH (APR_OS_START_STATUS + 3)
444 #define APR_NOTDETACH (APR_OS_START_STATUS + 4)
446 #define APR_CHILD_DONE (APR_OS_START_STATUS + 5)
448 #define APR_CHILD_NOTDONE (APR_OS_START_STATUS + 6)
450 #define APR_TIMEUP (APR_OS_START_STATUS + 7)
452 #define APR_INCOMPLETE (APR_OS_START_STATUS + 8)
457 #define APR_BADCH (APR_OS_START_STATUS + 12)
459 #define APR_BADARG (APR_OS_START_STATUS + 13)
461 #define APR_EOF (APR_OS_START_STATUS + 14)
463 #define APR_NOTFOUND (APR_OS_START_STATUS + 15)
468 #define APR_ANONYMOUS (APR_OS_START_STATUS + 19)
470 #define APR_FILEBASED (APR_OS_START_STATUS + 20)
472 #define APR_KEYBASED (APR_OS_START_STATUS + 21)
474 #define APR_EINIT (APR_OS_START_STATUS + 22)
476 #define APR_ENOTIMPL (APR_OS_START_STATUS + 23)
478 #define APR_EMISMATCH (APR_OS_START_STATUS + 24)
480 #define APR_EBUSY (APR_OS_START_STATUS + 25)
492 #define APR_STATUS_IS_INCHILD(s) ((s) == APR_INCHILD)
499 #define APR_STATUS_IS_INPARENT(s) ((s) == APR_INPARENT)
506 #define APR_STATUS_IS_DETACH(s) ((s) == APR_DETACH)
513 #define APR_STATUS_IS_NOTDETACH(s) ((s) == APR_NOTDETACH)
520 #define APR_STATUS_IS_CHILD_DONE(s) ((s) == APR_CHILD_DONE)
527 #define APR_STATUS_IS_CHILD_NOTDONE(s) ((s) == APR_CHILD_NOTDONE)
534 #define APR_STATUS_IS_TIMEUP(s) ((s) == APR_TIMEUP)
542 #define APR_STATUS_IS_INCOMPLETE(s) ((s) == APR_INCOMPLETE)
552 #define APR_STATUS_IS_BADCH(s) ((s) == APR_BADCH)
560 #define APR_STATUS_IS_BADARG(s) ((s) == APR_BADARG)
567 #define APR_STATUS_IS_EOF(s) ((s) == APR_EOF)
574 #define APR_STATUS_IS_NOTFOUND(s) ((s) == APR_NOTFOUND)
584 #define APR_STATUS_IS_ANONYMOUS(s) ((s) == APR_ANONYMOUS)
591 #define APR_STATUS_IS_FILEBASED(s) ((s) == APR_FILEBASED)
598 #define APR_STATUS_IS_KEYBASED(s) ((s) == APR_KEYBASED)
606 #define APR_STATUS_IS_EINIT(s) ((s) == APR_EINIT)
615 #define APR_STATUS_IS_ENOTIMPL(s) ((s) == APR_ENOTIMPL)
622 #define APR_STATUS_IS_EMISMATCH(s) ((s) == APR_EMISMATCH)
628 #define APR_STATUS_IS_EBUSY(s) ((s) == APR_EBUSY)
639 #define APR_EACCES EACCES
641 #define APR_EACCES (APR_OS_START_CANONERR + 1)
646 #define APR_EEXIST EEXIST
648 #define APR_EEXIST (APR_OS_START_CANONERR + 2)
653 #define APR_ENAMETOOLONG ENAMETOOLONG
655 #define APR_ENAMETOOLONG (APR_OS_START_CANONERR + 3)
660 #define APR_ENOENT ENOENT
662 #define APR_ENOENT (APR_OS_START_CANONERR + 4)
667 #define APR_ENOTDIR ENOTDIR
669 #define APR_ENOTDIR (APR_OS_START_CANONERR + 5)
674 #define APR_ENOSPC ENOSPC
676 #define APR_ENOSPC (APR_OS_START_CANONERR + 6)
681 #define APR_ENOMEM ENOMEM
683 #define APR_ENOMEM (APR_OS_START_CANONERR + 7)
688 #define APR_EMFILE EMFILE
690 #define APR_EMFILE (APR_OS_START_CANONERR + 8)
695 #define APR_ENFILE ENFILE
697 #define APR_ENFILE (APR_OS_START_CANONERR + 9)
702 #define APR_EBADF EBADF
704 #define APR_EBADF (APR_OS_START_CANONERR + 10)
709 #define APR_EINVAL EINVAL
711 #define APR_EINVAL (APR_OS_START_CANONERR + 11)
716 #define APR_ESPIPE ESPIPE
718 #define APR_ESPIPE (APR_OS_START_CANONERR + 12)
726 #define APR_EAGAIN EAGAIN
727 #elif defined(EWOULDBLOCK)
728 #define APR_EAGAIN EWOULDBLOCK
730 #define APR_EAGAIN (APR_OS_START_CANONERR + 13)
735 #define APR_EINTR EINTR
737 #define APR_EINTR (APR_OS_START_CANONERR + 14)
742 #define APR_ENOTSOCK ENOTSOCK
744 #define APR_ENOTSOCK (APR_OS_START_CANONERR + 15)
749 #define APR_ECONNREFUSED ECONNREFUSED
751 #define APR_ECONNREFUSED (APR_OS_START_CANONERR + 16)
756 #define APR_EINPROGRESS EINPROGRESS
758 #define APR_EINPROGRESS (APR_OS_START_CANONERR + 17)
767 #define APR_ECONNABORTED ECONNABORTED
769 #define APR_ECONNABORTED (APR_OS_START_CANONERR + 18)
774 #define APR_ECONNRESET ECONNRESET
776 #define APR_ECONNRESET (APR_OS_START_CANONERR + 19)
782 #define APR_ETIMEDOUT ETIMEDOUT
784 #define APR_ETIMEDOUT (APR_OS_START_CANONERR + 20)
789 #define APR_EHOSTUNREACH EHOSTUNREACH
697 #define APR_ENFILE (APR_OS_START_CANONERR + 9)
702 #define APR_EBADF EBADF
704 #define APR_EBADF (APR_OS_START_CANONERR + 10)
709 #define APR_EINVAL EINVAL
711 #define APR_EINVAL (APR_OS_START_CANONERR + 11)
716 #define APR_ESPIPE ESPIPE
718 #define APR_ESPIPE (APR_OS_START_CANONERR + 12)
726 #define APR_EAGAIN EAGAIN
727 #elif defined(EWOULDBLOCK)
728 #define APR_EAGAIN EWOULDBLOCK
730 #define APR_EAGAIN (APR_OS_START_CANONERR + 13)
735 #define APR_EINTR EINTR
737 #define APR_EINTR (APR_OS_START_CANONERR + 14)
742 #define APR_ENOTSOCK ENOTSOCK
744 #define APR_ENOTSOCK (APR_OS_START_CANONERR + 15)
749 #define APR_ECONNREFUSED ECONNREFUSED
751 #define APR_ECONNREFUSED (APR_OS_START_CANONERR + 16)
756 #define APR_EINPROGRESS EINPROGRESS
758 #define APR_EINPROGRESS (APR_OS_START_CANONERR + 17)
767 #define APR_ECONNABORTED ECONNABORTED
769 #define APR_ECONNABORTED (APR_OS_START_CANONERR + 18)
774 #define APR_ECONNRESET ECONNRESET
776 #define APR_ECONNRESET (APR_OS_START_CANONERR + 19)
782 #define APR_ETIMEDOUT ETIMEDOUT
784 #define APR_ETIMEDOUT (APR_OS_START_CANONERR + 20)
789 #define APR_EHOSTUNREACH EHOSTUNREACH
697 #define APR_ENFILE (APR_OS_START_CANONERR + 9)
702 #define APR_EBADF EBADF
704 #define APR_EBADF (APR_OS_START_CANONERR + 10)
709 #define APR_EINVAL EINVAL
711 #define APR_EINVAL (APR_OS_START_CANONERR + 11)
716 #define APR_ESPIPE ESPIPE
718 #define APR_ESPIPE (APR_OS_START_CANONERR + 12)
726 #define APR_EAGAIN EAGAIN
727 #elif defined(EWOULDBLOCK)
728 #define APR_EAGAIN EWOULDBLOCK
730 #define APR_EAGAIN (APR_OS_START_CANONERR + 13)
735 #define APR_EINTR EINTR
737 #define APR_EINTR (APR_OS_START_CANONERR + 14)
742 #define APR_ENOTSOCK ENOTSOCK
744 #define APR_ENOTSOCK (APR_OS_START_CANONERR + 15)
749 #define APR_ECONNREFUSED ECONNREFUSED
751 #define APR_ECONNREFUSED (APR_OS_START_CANONERR + 16)
756 #define APR_EINPROGRESS EINPROGRESS
758 #define APR_EINPROGRESS (APR_OS_START_CANONERR + 17)
767 #define APR_ECONNABORTED ECONNABORTED
769 #define APR_ECONNABORTED (APR_OS_START_CANONERR + 18)
774 #define APR_ECONNRESET ECONNRESET
776 #define APR_ECONNRESET (APR_OS_START_CANONERR + 19)
782 #define APR_ETIMEDOUT ETIMEDOUT
784 #define APR_ETIMEDOUT (APR_OS_START_CANONERR + 20)
789 #define APR_EHOSTUNREACH EHOSTUNREACH
697 #define APR_ENFILE (APR_OS_START_CANONERR + 9)
702 #define APR_EBADF EBADF
704 #define APR_EBADF (APR_OS_START_CANONERR + 10)
709 #define APR_EINVAL EINVAL
711 #define APR_EINVAL (APR_OS_START_CANONERR + 11)
716 #define APR_ESPIPE ESPIPE
718 #define APR_ESPIPE (APR_OS_START_CANONERR + 12)
726 #define APR_EAGAIN EAGAIN
727 #elif defined(EWOULDBLOCK)
728 #define APR_EAGAIN EWOULDBLOCK
730 #define APR_EAGAIN (APR_OS_START_CANONERR + 13)
735 #define APR_EINTR EINTR
737 #define APR_EINTR (APR_OS_START_CANONERR + 14)
742 #define APR_ENOTSOCK ENOTSOCK
744 #define APR_ENOTSOCK (APR_OS_START_CANONERR + 15)
749 #define APR_ECONNREFUSED ECONNREFUSED
751 #define APR_ECONNREFUSED (APR_OS_START_CANONERR + 16)
756 #define APR_EINPROGRESS EINPROGRESS
758 #define APR_EINPROGRESS (APR_OS_START_CANONERR + 17)
767 #define APR_ECONNABORTED ECONNABORTED
769 #define APR_ECONNABORTED (APR_OS_START_CANONERR + 18)
774 #define APR_ECONNRESET ECONNRESET
776 #define APR_ECONNRESET (APR_OS_START_CANONERR + 19)
782 #define APR_ETIMEDOUT ETIMEDOUT
784 #define APR_ETIMEDOUT (APR_OS_START_CANONERR + 20)
789 #define APR_EHOSTUNREACH EHOSTUNREACH
697 #define APR_ENFILE (APR_OS_START_CANONERR + 9)
702 #define APR_EBADF EBADF
704 #define APR_EBADF (APR_OS_START_CANONERR + 10)
709 #define APR_EINVAL EINVAL
711 #define APR_EINVAL (APR_OS_START_CANONERR + 11)
716 #define APR_ESPIPE ESPIPE
718 #define APR_ESPIPE (APR_OS_START_CANONERR + 12)
726 #define APR_EAGAIN EAGAIN
727 #elif defined(EWOULDBLOCK)
728 #define APR_EAGAIN EWOULDBLOCK
730 #define APR_EAGAIN (APR_OS_START_CANONERR + 13)
735 #define APR_EINTR EINTR
737 #define APR_EINTR (APR_OS_START_CANONERR + 14)
742 #define APR_ENOTSOCK ENOTSOCK
744 #define APR_ENOTSOCK (APR_OS_START_CANONERR + 15)
749 #define APR_ECONNREFUSED ECONNREFUSED
751 #define APR_ECONNREFUSED (APR_OS_START_CANONERR + 16)
756 #define APR_EINPROGRESS EINPROGRESS
758 #define APR_EINPROGRESS (APR_OS_START_CANONERR + 17)
767 #define APR_ECONNABORTED ECONNABORTED
769 #define APR_ECONNABORTED (APR_OS_START_CANONERR + 18)
774 #define APR_ECONNRESET ECONNRESET
776 #define APR_ECONNRESET (APR_OS_START_CANONERR + 19)
782 #define APR_ETIMEDOUT ETIMEDOUT
784 #define APR_ETIMEDOUT (APR_OS_START_CANONERR + 20)
789 #define APR_EHOSTUNREACH EHOSTUNREACH
697 #define APR_ENFILE (APR_OS_START_CANONERR + 9)
702 #define APR_EBADF EBADF
704 #define APR_EBADF (APR_OS_START_CANONERR + 10)
709 #define APR_EINVAL EINVAL
711 #define APR_EINVAL (APR_OS_START_CANONERR + 11)
716 #define APR_ESPIPE ESPIPE
718 #define APR_ESPIPE (APR_OS_START_CANONERR + 12)
726 #define APR_EAGAIN EAGAIN
727 #elif defined(EWOULDBLOCK)
728 #define APR_EAGAIN EWOULDBLOCK
730 #define APR_EAGAIN (APR_OS_START_CANONERR + 13)
735 #define APR_EINTR EINTR
737 #define APR_EINTR (APR_OS_START_CANONERR + 14)
742 #define APR_ENOTSOCK ENOTSOCK
744 #define APR_ENOTSOCK (APR_OS_START_CANONERR + 15)
749 #define APR_ECONNREFUSED ECONNREFUSED
751 #define APR_ECONNREFUSED (APR_OS_START_CANONERR + 16)
756 #define APR_EINPROGRESS EINPROGRESS
758 #define APR_EINPROGRESS (APR_OS_START_CANONERR + 17)
767 #define APR_ECONNABORTED ECONNABORTED
769 #define APR_ECONNABORTED (APR_OS_START_CANONERR + 18)
774 #define APR_ECONNRESET ECONNRESET
776 #define APR_ECONNRESET (APR_OS_START_CANONERR + 19)
782 #define APR_ETIMEDOUT ETIMEDOUT
784 #define APR_ETIMEDOUT (APR_OS_START_CANONERR + 20)
789 #define APR_EHOSTUNREACH EHOSTUNREACH
697 #define APR_ENFILE (APR_OS_START_CANONERR + 9)
702 #define APR_EBADF EBADF
704 #define APR_EBADF (APR_OS_START_CANONERR + 10)
709 #define APR_EINVAL EINVAL
711 #define APR_EINVAL (APR_OS_START_CANONERR + 11)
716 #define APR_ESPIPE ESPIPE
718 #define APR_ESPIPE (APR_OS_START_CANONERR + 12)
726 #define APR_EAGAIN EAGAIN
727 #elif defined(EWOULDBLOCK)
728 #define APR_EAGAIN EWOULDBLOCK
730 #define APR_EAGAIN (APR_OS_START_CANONERR + 13)
735 #define APR_EINTR EINTR
737 #define APR_EINTR (APR_OS_START_CANONERR + 14)
742 #define APR_ENOTSOCK ENOTSOCK
744 #define APR_ENOTSOCK (APR_OS_START_CANONERR + 15)
749 #define APR_ECONNREFUSED ECONNREFUSED
751 #define APR_ECONNREFUSED (APR_OS_START_CANONERR + 16)
756 #define APR_EINPROGRESS EINPROGRESS
758 #define APR_EINPROGRESS (APR_OS_START_CANONERR + 17)
767 #define APR_ECONNABORTED ECONNABORTED
769 #define APR_ECONNABORTED (APR_OS_START_CANONERR + 18)
774 #define APR_ECONNRESET ECONNRESET
776 #define APR_ECONNRESET (APR_OS_START_CANONERR + 19)
782 #define APR_ETIMEDOUT ETIMEDOUT
784 #define APR_ETIMEDOUT (APR_OS_START_CANONERR + 20)
789 #define APR_EHOSTUNREACH EHOSTUNREACH
697 #define APR_ENFILE (APR_OS_START_CANONERR + 9)
702 #define APR_EBADF EBADF
704 #define APR_EBADF (APR_OS_START_CANONERR + 10)
709 #define APR_EINVAL EINVAL
711 #define APR_EINVAL (APR_OS_START_CANONERR + 11)
716 #define APR_ESPIPE ESPIPE