#include <bsm/audit_errno.h>
bsm/audit_errno.h
macroBSM_ERRNO_ESUCCESS
For the purposes of portable encoding, we convert between local error
numbers and Solaris error numbers (as well as some extensions for error
numbers that don't exist in Solaris). Although the first 35 or so
constants are the same across all OS's, we don't handle that in any
special way.
When adding constants here, also add them to bsm_errno.c.
#define BSM_ERRNO_ESUCCESS 0
macroBSM_ERRNO_EPERM
#define BSM_ERRNO_EPERM 1
macroBSM_ERRNO_ENOENT
#define BSM_ERRNO_ENOENT 2
macroBSM_ERRNO_ESRCH
#define BSM_ERRNO_ESRCH 3
macroBSM_ERRNO_EINTR
#define BSM_ERRNO_EINTR 4
macroBSM_ERRNO_EIO
#define BSM_ERRNO_EIO 5
macroBSM_ERRNO_ENXIO
#define BSM_ERRNO_ENXIO 6
macroBSM_ERRNO_E2BIG
#define BSM_ERRNO_E2BIG 7
macroBSM_ERRNO_ENOEXEC
#define BSM_ERRNO_ENOEXEC 8
macroBSM_ERRNO_EBADF
#define BSM_ERRNO_EBADF 9
macroBSM_ERRNO_ECHILD
#define BSM_ERRNO_ECHILD 10
macroBSM_ERRNO_EAGAIN
#define BSM_ERRNO_EAGAIN 11
macroBSM_ERRNO_ENOMEM
#define BSM_ERRNO_ENOMEM 12
macroBSM_ERRNO_EACCES
#define BSM_ERRNO_EACCES 13
macroBSM_ERRNO_EFAULT
#define BSM_ERRNO_EFAULT 14
macroBSM_ERRNO_ENOTBLK
#define BSM_ERRNO_ENOTBLK 15
macroBSM_ERRNO_EBUSY
#define BSM_ERRNO_EBUSY 16
macroBSM_ERRNO_EEXIST
#define BSM_ERRNO_EEXIST 17
macroBSM_ERRNO_EXDEV
#define BSM_ERRNO_EXDEV 18
macroBSM_ERRNO_ENODEV
#define BSM_ERRNO_ENODEV 19
macroBSM_ERRNO_ENOTDIR
#define BSM_ERRNO_ENOTDIR 20
macroBSM_ERRNO_EISDIR
#define BSM_ERRNO_EISDIR 21
macroBSM_ERRNO_EINVAL
#define BSM_ERRNO_EINVAL 22
macroBSM_ERRNO_ENFILE
#define BSM_ERRNO_ENFILE 23
macroBSM_ERRNO_EMFILE
#define BSM_ERRNO_EMFILE 24
macroBSM_ERRNO_ENOTTY
#define BSM_ERRNO_ENOTTY 25
macroBSM_ERRNO_ETXTBSY
#define BSM_ERRNO_ETXTBSY 26
macroBSM_ERRNO_EFBIG
#define BSM_ERRNO_EFBIG 27
macroBSM_ERRNO_ENOSPC
#define BSM_ERRNO_ENOSPC 28
macroBSM_ERRNO_ESPIPE
#define BSM_ERRNO_ESPIPE 29
macroBSM_ERRNO_EROFS
#define BSM_ERRNO_EROFS 30
macroBSM_ERRNO_EMLINK
#define BSM_ERRNO_EMLINK 31
macroBSM_ERRNO_EPIPE
#define BSM_ERRNO_EPIPE 32
macroBSM_ERRNO_EDOM
#define BSM_ERRNO_EDOM 33
macroBSM_ERRNO_ERANGE
#define BSM_ERRNO_ERANGE 34
macroBSM_ERRNO_ENOMSG
#define BSM_ERRNO_ENOMSG 35
macroBSM_ERRNO_EIDRM
#define BSM_ERRNO_EIDRM 36
macroBSM_ERRNO_EDEADLK
#define BSM_ERRNO_EDEADLK 45
macroBSM_ERRNO_ENOLCK
#define BSM_ERRNO_ENOLCK 46
macroBSM_ERRNO_ECANCELED
#define BSM_ERRNO_ECANCELED 47
macroBSM_ERRNO_ENOTSUP
#define BSM_ERRNO_ENOTSUP 48
macroBSM_ERRNO_EDQUOT
#define BSM_ERRNO_EDQUOT 49
macroBSM_ERRNO_EREMOTE
#define BSM_ERRNO_EREMOTE 66
macroBSM_ERRNO_ENOLINK
#define BSM_ERRNO_ENOLINK 67
macroBSM_ERRNO_EPROTO
#define BSM_ERRNO_EPROTO 71
macroBSM_ERRNO_EMULTIHOP
#define BSM_ERRNO_EMULTIHOP 74
macroBSM_ERRNO_EBADMSG
#define BSM_ERRNO_EBADMSG 77
macroBSM_ERRNO_ENAMETOOLONG
#define BSM_ERRNO_ENAMETOOLONG 78
macroBSM_ERRNO_EOVERFLOW
#define BSM_ERRNO_EOVERFLOW 79
macroBSM_ERRNO_EILSEQ
#define BSM_ERRNO_EILSEQ 88
macroBSM_ERRNO_ENOSYS
#define BSM_ERRNO_ENOSYS 89
macroBSM_ERRNO_ELOOP
#define BSM_ERRNO_ELOOP 90
macroBSM_ERRNO_ERESTART
#define BSM_ERRNO_ERESTART 91
macroBSM_ERRNO_ENOTEMPTY
#define BSM_ERRNO_ENOTEMPTY 93
macroBSM_ERRNO_EUSERS
#define BSM_ERRNO_EUSERS 94
macroBSM_ERRNO_ENOTSOCK
#define BSM_ERRNO_ENOTSOCK 95
macroBSM_ERRNO_EDESTADDRREQ
#define BSM_ERRNO_EDESTADDRREQ 96
macroBSM_ERRNO_EMSGSIZE
#define BSM_ERRNO_EMSGSIZE 97
macroBSM_ERRNO_EPROTOTYPE
#define BSM_ERRNO_EPROTOTYPE 98
macroBSM_ERRNO_ENOPROTOOPT
#define BSM_ERRNO_ENOPROTOOPT 99
macroBSM_ERRNO_EPROTONOSUPPORT
#define BSM_ERRNO_EPROTONOSUPPORT 120
macroBSM_ERRNO_ESOCKTNOSUPPORT
#define BSM_ERRNO_ESOCKTNOSUPPORT 121
macroBSM_ERRNO_EOPNOTSUPP
#define BSM_ERRNO_EOPNOTSUPP 122
macroBSM_ERRNO_EPFNOSUPPORT
#define BSM_ERRNO_EPFNOSUPPORT 123
macroBSM_ERRNO_EAFNOSUPPORT
#define BSM_ERRNO_EAFNOSUPPORT 124
macroBSM_ERRNO_EADDRINUSE
#define BSM_ERRNO_EADDRINUSE 125
macroBSM_ERRNO_EADDRNOTAVAIL
#define BSM_ERRNO_EADDRNOTAVAIL 126
macroBSM_ERRNO_ENETDOWN
#define BSM_ERRNO_ENETDOWN 127
macroBSM_ERRNO_ENETUNREACH
#define BSM_ERRNO_ENETUNREACH 128
macroBSM_ERRNO_ENETRESET
#define BSM_ERRNO_ENETRESET 129
macroBSM_ERRNO_ECONNABORTED
#define BSM_ERRNO_ECONNABORTED 130
macroBSM_ERRNO_ECONNRESET
#define BSM_ERRNO_ECONNRESET 131
macroBSM_ERRNO_ENOBUFS
#define BSM_ERRNO_ENOBUFS 132
macroBSM_ERRNO_EISCONN
#define BSM_ERRNO_EISCONN 133
macroBSM_ERRNO_ENOTCONN
#define BSM_ERRNO_ENOTCONN 134
macroBSM_ERRNO_ESHUTDOWN
#define BSM_ERRNO_ESHUTDOWN 143
macroBSM_ERRNO_ETOOMANYREFS
#define BSM_ERRNO_ETOOMANYREFS 144
macroBSM_ERRNO_ETIMEDOUT
#define BSM_ERRNO_ETIMEDOUT 145
macroBSM_ERRNO_ECONNREFUSED
#define BSM_ERRNO_ECONNREFUSED 146
macroBSM_ERRNO_EHOSTDOWN
#define BSM_ERRNO_EHOSTDOWN 147
macroBSM_ERRNO_EHOSTUNREACH
#define BSM_ERRNO_EHOSTUNREACH 148
macroBSM_ERRNO_EALREADY
#define BSM_ERRNO_EALREADY 149
macroBSM_ERRNO_EINPROGRESS
#define BSM_ERRNO_EINPROGRESS 150
macroBSM_ERRNO_ESTALE
#define BSM_ERRNO_ESTALE 151
macroBSM_ERRNO_EQFULL
#define BSM_ERRNO_EQFULL 152
macroBSM_ERRNO_EPROCLIM
OpenBSM constants for error numbers not defined in Solaris. In the event
that these errors are added to Solaris, we will deprecate the OpenBSM
numbers in the same way we do for audit event constants.
ELAST doesn't get a constant in the BSM space.
#define BSM_ERRNO_EPROCLIM 190
FreeBSD/Darwin-specific.
macroBSM_ERRNO_UNKNOWN
In the event that OpenBSM doesn't have a file representation of a local
error number, use this.
#define BSM_ERRNO_UNKNOWN 250
OpenBSM-specific.