⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errno.h

📁 支持nvram盘
💻 H
字号:
#ifdef __STDC__
#define _ERRNO_H
#endif

/*
 * errno.lib
 *
 * Copyright (C) Z-World, Inc. All rights reserved.
 *
 * Error code definitions, returned from e.g. filesystem.
 *
 * Change History:
 *  2001 Apr 11 - SJH - Created
 *
 */

/* START LIBRARY DESCRIPTION *********************************************
ERRNO.LIB
	Copyright (c) 2001, ZWorld.

DESCRIPTION:
	Error code definitions.
	

END DESCRIPTION **********************************************************/


/*** BeginHeader _errno */

// Codes derived from Unix header file; meaningless (to Rabbit) values deleted
// but still reserved.  Codes specific to FILESYSTEM.LIB start at code 201.
// Note that the existence of a code definition below does not imply that the
// code is actually generated in any library.  Some codes are reserved for
// future use.  A function which generates error codes will document the
// possible returned codes.

extern int _errno;

#define errno _errno
#define _set_errno(val) (_errno = (val))

// Unix-compatible codes...
#define	EPERM				 1	/* Operation not permitted */
#define	ENOENT			 2	/* No such file or directory */
#define	EIO			 	 5	/* I/O error */
#define	ENXIO				 6	/* No such device or address */
#define	E2BIG				 7	/* Arg list too long */
#define	EBADF				 9	/* Bad file number */
#define	EAGAIN			11	/* Try again */
#define	EWOULDBLOCK	EAGAIN	/* Operation would block */
#define	ENOMEM			12	/* Out of memory */
#define	EACCES			13	/* Permission denied */
#define	EFAULT			14	/* Bad address */
#define	ENOTBLK			15	/* Block device required */
#define	EBUSY				16	/* Device or resource busy */
#define	EEXIST			17	/* File exists */
#define	ENODEV			19	/* No such device */
#define	EINVAL			22	/* Invalid argument */
#define	ENFILE			23	/* File table overflow */
#define	EMFILE			24	/* Too many open files */
#define	EFBIG				27	/* File too large */
#define	ENOSPC			28	/* No space left on device */
#define	EROFS				30	/* Read-only file system */
//#define	EDOM				33	/* Math argument out of domain of func */
//#define	ERANGE			34	/* Math result not representable */
#define	ENOSYS			38	/* Function not implemented */
#define	ENODATA			61	/* No data available */
#define	ETIME				62	/* Timer expired */
#define	ENONET			64	/* Machine is not on the network */
#define	ENOLINK			67	/* Link has been severed */
#define	ECOMM				70	/* Communication error on send */
#define	EPROTO			71	/* Protocol error */
#define	EMULTIHOP		72	/* Multihop attempted */
#define	EBADMSG			74	/* Not a data message */
#define	EOVERFLOW		75	/* Value too large for defined data type */
#define	ENOTUNIQ			76	/* Name not unique on network */
#define	EBADFD			77	/* File descriptor in bad state */
#define	EILSEQ			84	/* Illegal byte sequence */
#define	ERESTART			85	/* Interrupted system call should be restarted */
#define	ENOTSOCK			88	/* Socket operation on non-socket */
#define	EDESTADDRREQ	89	/* Destination address required */
#define	EMSGSIZE			90	/* Message too long */
#define	EPROTOTYPE		91	/* Protocol wrong type for socket */
#define	ENOPROTOOPT		92	/* Protocol not available */
#define	EPROTONOSUPPORT	93	/* Protocol not supported */
#define	ESOCKTNOSUPPORT	94	/* Socket type not supported */
#define	EOPNOTSUPP		95	/* Operation not supported on transport endpoint */
#define	EPFNOSUPPORT	96	/* Protocol family not supported */
#define	EAFNOSUPPORT	97	/* Address family not supported by protocol */
#define	EADDRINUSE		98	/* Address already in use */
#define	EADDRNOTAVAIL	99	/* Cannot assign requested address */
#define	ENETDOWN			100	/* Network is down */
#define	ENETUNREACH		101	/* Network is unreachable */
#define	ENETRESET		102	/* Network dropped connection because of reset */
#define	ECONNABORTED	103	/* Software caused connection abort */
#define	ECONNRESET		104	/* Connection reset by peer */
#define	ENOBUFS			105	/* No buffer space available */
#define	EISCONN			106	/* Transport endpoint is already connected */
#define	ENOTCONN			107	/* Transport endpoint is not connected */
#define	ESHUTDOWN		108	/* Cannot send after transport endpoint shutdown */
#define	ETOOMANYREFS	109	/* Too many references: cannot splice */
#define	ETIMEDOUT		110	/* Connection timed out */
#define	ECONNREFUSED	111	/* Connection refused */
#define	EHOSTDOWN		112	/* Host is down */
#define	EHOSTUNREACH	113	/* No route to host */
#define	EALREADY			114	/* Operation already in progress */
#define	EINPROGRESS		115	/* Operation now in progress */
#define	EDQUOT			122	/* Quota exceeded */
#define	ENOMEDIUM		123	/* No medium found */
#define	EMEDIUMTYPE		124	/* Wrong medium type */
// Values up to and including 200 reserved

// Codes specific to Dynamic C Filesystem Mk II...
#define	EBADSEQ			201	/* Bad sequence number in file */
#define	EUNEXEOC			202	/* Unexpected end-of-chain in file */
#define	ENOTB				203	/* Not a data block (B-block) */
#define	EBADFNUM			204	/* Bad file number in file */

/*** EndHeader */

int _errno;


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -