Lines Matching +full:linear +full:- +full:mapping +full:- +full:mode
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
46 * stored in a single 8-bit character, so don't have a byte order.
58 #define ERRNO_NO_LOCAL_MAPPING -600
67 * Mapping table -- please maintain in numeric sorted order with respect to
68 * the BSM constant. Today we do a linear lookup, but could switch to a
72 * XXXRW: It would be nice to have a similar ordered table mapping to BSM
74 * OS. Really we need to build that table at compile-time but don't do that
77 * XXXRW: We currently embed English-language error strings here, but should
100 { BSM_ERRNO_EXDEV, EXDEV, ES("Cross-device link") },
112 { BSM_ERRNO_EROFS, EROFS, ES("Read-only file system") },
422 ES("Socket operation on non-socket") },
706 ES("Not permitted in capability mode") },
733 return (bsme->be_bsm_errno); in au_errno_to_bsm()
751 * appropriate local mapping.
759 if (bsme == NULL || bsme->be_local_errno == ERRNO_NO_LOCAL_MAPPING) in au_bsm_to_errno()
760 return (-1); in au_bsm_to_errno()
761 *errorp = bsme->be_local_errno; in au_bsm_to_errno()
774 if (bsme->be_local_errno != ERRNO_NO_LOCAL_MAPPING) in au_strerror()
775 return (strerror(bsme->be_local_errno)); in au_strerror()
776 return (bsme->be_strerror); in au_strerror()