1/*-
2 * Copyright (c) 2008 Apple Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 12 unchanged lines hidden (view full) ---
21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#19 $
30 */
31
32#include <sys/types.h>
33
34#include <config/config.h>
35
36#include <bsm/audit_errno.h>
37#include <bsm/libbsm.h>
--- 410 unchanged lines hidden (view full) ---
448 { BSM_ERRNO_ETIMEDOUT, ETIMEDOUT, ES("Operation timed out") },
449 { BSM_ERRNO_ECONNREFUSED, ECONNREFUSED, ES("Connection refused") },
450 { BSM_ERRNO_EHOSTDOWN, EHOSTDOWN, ES("Host is down") },
451 { BSM_ERRNO_EHOSTUNREACH, EHOSTUNREACH, ES("No route to host") },
452 { BSM_ERRNO_EALREADY, EALREADY, ES("Operation already in progress") },
453 { BSM_ERRNO_EINPROGRESS, EINPROGRESS,
454 ES("Operation now in progress") },
455 { BSM_ERRNO_ESTALE, ESTALE, ES("Stale NFS file handle") },
456 { BSM_ERRNO_EPROCLIM,
457#ifdef EPROCLIM
458 EPROCLIM,
459#else
460 ERRNO_NO_LOCAL_MAPPING,
461#endif
462 ES("Too many processes") },
463 { BSM_ERRNO_EBADRPC,
464#ifdef EBADRPC
465 EBADRPC,
466#else
467 ERRNO_NO_LOCAL_MAPPING,
468#endif
469 ES("RPC struct is bad") },
470 { BSM_ERRNO_ERPCMISMATCH,
471#ifdef ERPCMISMATCH
472 ERPCMISMATCH,
473#else
474 ERRNO_NO_LOCAL_MAPPING,
475#endif
476 ES("RPC version wrong") },
477 { BSM_ERRNO_EPROGUNAVAIL,
478#ifdef EPROGUNAVAIL
479 EPROGUNAVAIL,
480#else
481 ERRNO_NO_LOCAL_MAPPING,
482#endif
483 ES("RPC prog. not avail") },
484 { BSM_ERRNO_EPROGMISMATCH,
485#ifdef EPROGMISMATCH
486 EPROGMISMATCH,
487#else
488 ERRNO_NO_LOCAL_MAPPING,
489#endif
490 ES("RPC version wrong") },
491 { BSM_ERRNO_EPROCUNAVAIL,
492#ifdef EPROCUNAVAIL
493 EPROCUNAVAIL,
494#else
495 ERRNO_NO_LOCAL_MAPPING,
496#endif
497 ES("Bad procedure for program") },
498 { BSM_ERRNO_EFTYPE,
499#ifdef EFTYPE
500 EFTYPE,
501#else
502 ERRNO_NO_LOCAL_MAPPING,
503#endif
504 ES("Inappropriate file type or format") },
505 { BSM_ERRNO_EAUTH,
506#ifdef EAUTH
507 EAUTH,
508#else
509 ERRNO_NO_LOCAL_MAPPING,
510#endif
511 ES("Authenticateion error") },
512 { BSM_ERRNO_ENEEDAUTH,
513#ifdef ENEEDAUTH
514 ENEEDAUTH,
515#else
516 ERRNO_NO_LOCAL_MAPPING,
517#endif
518 ES("Need authenticator") },
519 { BSM_ERRNO_ENOATTR,
520#ifdef ENOATTR
521 ENOATTR,
522#else
523 ERRNO_NO_LOCAL_MAPPING,
524#endif
525 ES("Attribute not found") },
526 { BSM_ERRNO_EDOOFUS,
527#ifdef EDOOFUS
528 EDOOFUS,
529#else
530 ERRNO_NO_LOCAL_MAPPING,
531#endif
532 ES("Programming error") },
533 { BSM_ERRNO_EJUSTRETURN,
534#ifdef EJUSTRETURN
535 EJUSTRETURN,
536#else
537 ERRNO_NO_LOCAL_MAPPING,
538#endif
539 ES("Just return") },
540 { BSM_ERRNO_ENOIOCTL,
541#ifdef ENOIOCTL
542 ENOIOCTL,
543#else
544 ERRNO_NO_LOCAL_MAPPING,
545#endif
546 ES("ioctl not handled by this layer") },
547 { BSM_ERRNO_EDIRIOCTL,
548#ifdef EDIRIOCTL
549 EDIRIOCTL,
550#else
551 ERRNO_NO_LOCAL_MAPPING,
552#endif
553 ES("do direct ioctl in GEOM") },
554 { BSM_ERRNO_EPWROFF,
555#ifdef EPWROFF
556 EPWROFF,
557#else
558 ERRNO_NO_LOCAL_MAPPING,
559#endif
560 ES("Device power is off") },
561 { BSM_ERRNO_EDEVERR,
--- 198 unchanged lines hidden ---
2 * Copyright (c) 2008 Apple Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 12 unchanged lines hidden (view full) ---
21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#19 $
30 */
31
32#include <sys/types.h>
33
34#include <config/config.h>
35
36#include <bsm/audit_errno.h>
37#include <bsm/libbsm.h>
--- 410 unchanged lines hidden (view full) ---
448 { BSM_ERRNO_ETIMEDOUT, ETIMEDOUT, ES("Operation timed out") },
449 { BSM_ERRNO_ECONNREFUSED, ECONNREFUSED, ES("Connection refused") },
450 { BSM_ERRNO_EHOSTDOWN, EHOSTDOWN, ES("Host is down") },
451 { BSM_ERRNO_EHOSTUNREACH, EHOSTUNREACH, ES("No route to host") },
452 { BSM_ERRNO_EALREADY, EALREADY, ES("Operation already in progress") },
453 { BSM_ERRNO_EINPROGRESS, EINPROGRESS,
454 ES("Operation now in progress") },
455 { BSM_ERRNO_ESTALE, ESTALE, ES("Stale NFS file handle") },
456 { BSM_ERRNO_EPROCLIM,
457#ifdef EPROCLIM
458 EPROCLIM,
459#else
460 ERRNO_NO_LOCAL_MAPPING,
461#endif
462 ES("Too many processes") },
463 { BSM_ERRNO_EBADRPC,
464#ifdef EBADRPC
465 EBADRPC,
466#else
467 ERRNO_NO_LOCAL_MAPPING,
468#endif
469 ES("RPC struct is bad") },
470 { BSM_ERRNO_ERPCMISMATCH,
471#ifdef ERPCMISMATCH
472 ERPCMISMATCH,
473#else
474 ERRNO_NO_LOCAL_MAPPING,
475#endif
476 ES("RPC version wrong") },
477 { BSM_ERRNO_EPROGUNAVAIL,
478#ifdef EPROGUNAVAIL
479 EPROGUNAVAIL,
480#else
481 ERRNO_NO_LOCAL_MAPPING,
482#endif
483 ES("RPC prog. not avail") },
484 { BSM_ERRNO_EPROGMISMATCH,
485#ifdef EPROGMISMATCH
486 EPROGMISMATCH,
487#else
488 ERRNO_NO_LOCAL_MAPPING,
489#endif
490 ES("RPC version wrong") },
491 { BSM_ERRNO_EPROCUNAVAIL,
492#ifdef EPROCUNAVAIL
493 EPROCUNAVAIL,
494#else
495 ERRNO_NO_LOCAL_MAPPING,
496#endif
497 ES("Bad procedure for program") },
498 { BSM_ERRNO_EFTYPE,
499#ifdef EFTYPE
500 EFTYPE,
501#else
502 ERRNO_NO_LOCAL_MAPPING,
503#endif
504 ES("Inappropriate file type or format") },
505 { BSM_ERRNO_EAUTH,
506#ifdef EAUTH
507 EAUTH,
508#else
509 ERRNO_NO_LOCAL_MAPPING,
510#endif
511 ES("Authenticateion error") },
512 { BSM_ERRNO_ENEEDAUTH,
513#ifdef ENEEDAUTH
514 ENEEDAUTH,
515#else
516 ERRNO_NO_LOCAL_MAPPING,
517#endif
518 ES("Need authenticator") },
519 { BSM_ERRNO_ENOATTR,
520#ifdef ENOATTR
521 ENOATTR,
522#else
523 ERRNO_NO_LOCAL_MAPPING,
524#endif
525 ES("Attribute not found") },
526 { BSM_ERRNO_EDOOFUS,
527#ifdef EDOOFUS
528 EDOOFUS,
529#else
530 ERRNO_NO_LOCAL_MAPPING,
531#endif
532 ES("Programming error") },
533 { BSM_ERRNO_EJUSTRETURN,
534#ifdef EJUSTRETURN
535 EJUSTRETURN,
536#else
537 ERRNO_NO_LOCAL_MAPPING,
538#endif
539 ES("Just return") },
540 { BSM_ERRNO_ENOIOCTL,
541#ifdef ENOIOCTL
542 ENOIOCTL,
543#else
544 ERRNO_NO_LOCAL_MAPPING,
545#endif
546 ES("ioctl not handled by this layer") },
547 { BSM_ERRNO_EDIRIOCTL,
548#ifdef EDIRIOCTL
549 EDIRIOCTL,
550#else
551 ERRNO_NO_LOCAL_MAPPING,
552#endif
553 ES("do direct ioctl in GEOM") },
554 { BSM_ERRNO_EPWROFF,
555#ifdef EPWROFF
556 EPWROFF,
557#else
558 ERRNO_NO_LOCAL_MAPPING,
559#endif
560 ES("Device power is off") },
561 { BSM_ERRNO_EDEVERR,
--- 198 unchanged lines hidden ---