linux_errno.inc (346827) | linux_errno.inc (346830) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994-1996 S��ren Schmidt 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994-1996 S��ren Schmidt 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: stable/11/sys/compat/linux/linux_errno.inc 346827 2019-04-28 13:40:17Z dchagin $ | 28 * $FreeBSD: stable/11/sys/compat/linux/linux_errno.inc 346830 2019-04-28 13:43:58Z dchagin $ |
29 */ 30 31/* 32 * Linux syscalls return negative errno's, we do positive and map them 33 * Reference: 34 * FreeBSD: src/sys/sys/errno.h 35 * Linux: include/uapi/asm-generic/errno-base.h 36 * include/uapi/asm-generic/errno.h --- 90 unchanged lines hidden (view full) --- 127 -6, /* EAUTH -> ENXIO */ 128 -6, /* ENEEDAUTH -> ENXIO */ 129 -43, 130 -42, 131 -75, 132 -125, 133 -84, 134 -61, | 29 */ 30 31/* 32 * Linux syscalls return negative errno's, we do positive and map them 33 * Reference: 34 * FreeBSD: src/sys/sys/errno.h 35 * Linux: include/uapi/asm-generic/errno-base.h 36 * include/uapi/asm-generic/errno.h --- 90 unchanged lines hidden (view full) --- 127 -6, /* EAUTH -> ENXIO */ 128 -6, /* ENEEDAUTH -> ENXIO */ 129 -43, 130 -42, 131 -75, 132 -125, 133 -84, 134 -61, |
135 -16, /* EDOOFUS -> EBUSY */ | 135 -22, /* EDOOFUS -> EINVAL */ |
136 -74, 137 138 -72, 139 -67, 140 -71, 141 -1, /* ENOTCAPABLE -> EPERM */ 142 -1, /* ECAPMODE -> EPERM */ 143 -131, /* ENOTRECOVERABLE */ 144 -130, /* EOWNERDEAD */ 145}; 146 147_Static_assert(ELAST == 96, 148 "missing errno entries in linux_errtbl"); | 136 -74, 137 138 -72, 139 -67, 140 -71, 141 -1, /* ENOTCAPABLE -> EPERM */ 142 -1, /* ECAPMODE -> EPERM */ 143 -131, /* ENOTRECOVERABLE */ 144 -130, /* EOWNERDEAD */ 145}; 146 147_Static_assert(ELAST == 96, 148 "missing errno entries in linux_errtbl"); |