errno.h (331722) | errno.h (370402) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)errno.h 8.5 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)errno.h 8.5 (Berkeley) 1/21/94 |
35 * $FreeBSD: stable/11/sys/sys/errno.h 331722 2018-03-29 02:50:57Z eadler $ | 35 * $FreeBSD: stable/11/sys/sys/errno.h 370402 2021-08-25 17:19:33Z git2svn $ |
36 */ 37 38#ifndef _SYS_ERRNO_H_ 39#define _SYS_ERRNO_H_ 40 41#if !defined(_KERNEL) && !defined(_STANDALONE) 42#include <sys/cdefs.h> 43__BEGIN_DECLS --- 135 unchanged lines hidden (view full) --- 179#define ENOTRECOVERABLE 95 /* State not recoverable */ 180#define EOWNERDEAD 96 /* Previous owner died */ 181#endif /* _POSIX_SOURCE */ 182 183#ifndef _POSIX_SOURCE 184#define ELAST 96 /* Must be equal largest errno */ 185#endif /* _POSIX_SOURCE */ 186 | 36 */ 37 38#ifndef _SYS_ERRNO_H_ 39#define _SYS_ERRNO_H_ 40 41#if !defined(_KERNEL) && !defined(_STANDALONE) 42#include <sys/cdefs.h> 43__BEGIN_DECLS --- 135 unchanged lines hidden (view full) --- 179#define ENOTRECOVERABLE 95 /* State not recoverable */ 180#define EOWNERDEAD 96 /* Previous owner died */ 181#endif /* _POSIX_SOURCE */ 182 183#ifndef _POSIX_SOURCE 184#define ELAST 96 /* Must be equal largest errno */ 185#endif /* _POSIX_SOURCE */ 186 |
187#if defined(_KERNEL) || defined(_WANT_KERNEL_ERRNO) | 187#if defined(_KERNEL) || defined(_WANT_KERNEL_ERRNO) || defined(_STANDALONE) |
188/* pseudo-errors returned inside kernel to modify return to process */ 189#define ERESTART (-1) /* restart syscall */ 190#define EJUSTRETURN (-2) /* don't modify regs, just return */ 191#define ENOIOCTL (-3) /* ioctl not handled by this layer */ 192#define EDIRIOCTL (-4) /* do direct ioctl in GEOM */ 193#define ERELOOKUP (-5) /* retry the directory lookup */ 194#endif 195 196#ifndef _KERNEL 197#if __EXT1_VISIBLE 198/* ISO/IEC 9899:2011 K.3.2.2 */ 199#ifndef _ERRNO_T_DEFINED 200#define _ERRNO_T_DEFINED 201typedef int errno_t; 202#endif 203#endif /* __EXT1_VISIBLE */ 204#endif 205 206#endif | 188/* pseudo-errors returned inside kernel to modify return to process */ 189#define ERESTART (-1) /* restart syscall */ 190#define EJUSTRETURN (-2) /* don't modify regs, just return */ 191#define ENOIOCTL (-3) /* ioctl not handled by this layer */ 192#define EDIRIOCTL (-4) /* do direct ioctl in GEOM */ 193#define ERELOOKUP (-5) /* retry the directory lookup */ 194#endif 195 196#ifndef _KERNEL 197#if __EXT1_VISIBLE 198/* ISO/IEC 9899:2011 K.3.2.2 */ 199#ifndef _ERRNO_T_DEFINED 200#define _ERRNO_T_DEFINED 201typedef int errno_t; 202#endif 203#endif /* __EXT1_VISIBLE */ 204#endif 205 206#endif |