📄 nerrno.h
字号:
/** Copyright (c) 1998-2001 by NETsilicon Inc.** This software is copyrighted by and is the sole property of* NETsilicon. All rights, title, ownership, or other interests* in the software remain the property of NETsilicon. This* software may only be used in accordance with the corresponding* license agreement. Any unauthorized use, duplication, transmission,* distribution, or disclosure of this software is expressly forbidden.** This Copyright notice may not be removed or modified without prior* written consent of NETsilicon.** NETsilicon, reserves the right to modify this software* without notice.** NETsilicon* 411 Waverley Oaks Road USA 781.647.1234* Suite 227 http://www.netsilicon.com* Waltham, MA 02452 AmericaSales@netsilicon.com*************************************************************************** $Source: M:/psisrc/stack/incl/rcs/nerrno.h $*************************************************************************** File Description: Net error number definitions***************************************************************************/#ifndef _NERRNO_#define _NERRNO_#define NET_ERR 80#define INET_ERR (-1)/* internal err/status values */#define IDITCHPACKET (INET_ERR - 1)#define IECHOPACKET (INET_ERR - 2)#define IRETRYLATER (INET_ERR - 3)#define IOTHER (INET_ERR - 4)/* General purpose errors */#define FNS_EZERO 0 /* No error */#define FNS_ENOERR 0 /* No error */#define FNS_EPERM 1 /* Not owner */#define FNS_ENOENT 2 /* No such file or directory */#define FNS_ESRCH 3 /* No such process */#define FNS_EINTR 4 /* Interrupted system call */#define FNS_EIO 5 /* I/O error */#define FNS_ENXIO 6 /* No such device or address */#define FNS_E2BIG 7 /* Arg list too long */#define FNS_ENOEXEC 8 /* Exec format error */#define FNS_EBADF 9 /* Bad file number */#define FNS_ECHILD 10 /* No children */#define FNS_EAGAIN 11 /* No more processes */#define FNS_ENOMEM 12 /* Not enough core */#define FNS_EACCES 13 /* Permission denied */#define FNS_EFAULT 14 /* Bad address */#define FNS_ENOTBLK 15 /* Block device required */#define FNS_EBUSY 16 /* Mount device busy */#define FNS_EEXIST 17 /* File exists */#define FNS_EXDEV 18 /* Cross-device link */#define FNS_ENODEV 19 /* No such device */#define FNS_ENOTDIR 20 /* Not a directory*/#define FNS_EISDIR 21 /* Is a directory */#define FNS_EINVAL 22 /* Invalid argument */#define FNS_ENFILE 23 /* File table overflow */#define FNS_EMFILE 24 /* Too many open files */#define FNS_ENOTTY 25 /* Not a typewriter */#define FNS_ETXTBSY 26 /* Text file busy */#define FNS_EFBIG 27 /* File too large */#define FNS_ENOSPC 28 /* No space left on device */#define FNS_ESPIPE 29 /* Illegal seek */#define FNS_EROFS 30 /* Read-only file system */#define FNS_EMLINK 31 /* Too many links */#define FNS_EPIPE 32 /* Broken pipe */#define FNS_EDOM 33 /* Argument too large */#define FNS_ERANGE 34 /* Result too large */#define FNS_ENOMSG 35 /* No message of desired type */#define FNS_EIDRM 36 /* Identifier removed */#define FNS_ECHRNG 37 /* Channel number out of range */#define FNS_EL2NSYNC 38 /* Level 2 not synchronized */#define FNS_EL3HLT 39 /* Level 3 halted */#define FNS_EL3RST 40 /* Level 3 reset */#define FNS_ELNRNG 41 /* Link number out of range */#define FNS_EUNATCH 42 /* Protocol driver not attached */#define FNS_ENOCSI 43 /* No CSI structure available */#define FNS_EL2HLT 44 /* Level 2 halted */#define FNS_EDEADLOCK 45 /* Locking deadlock *//* Network errors */#define FNS_EWOULDBLOCK (NET_ERR + 0)#define FNS_EINPROGRESS (NET_ERR + 1)#define FNS_EALREADY (NET_ERR + 2)#define FNS_ENOTSOCK (NET_ERR + 3)#define FNS_EDESTADDRREQ (NET_ERR + 4)#define FNS_EMSGSIZE (NET_ERR + 5)#define FNS_EPROTOTYPE (NET_ERR + 6)#define FNS_ENOPROTOOPT (NET_ERR + 7)#define FNS_EPROTONOSUPPORT (NET_ERR + 8)#define FNS_ESOCKTNOSUPPORT (NET_ERR + 9)#define FNS_EOPNOTSUPP (NET_ERR + 10)#define FNS_EAFNOSUPPORT (NET_ERR + 11)#define FNS_EADDRINUSE (NET_ERR + 12)#define FNS_EADDRNOTAVAIL (NET_ERR + 13)#define FNS_ENETDOWN (NET_ERR + 14)#define FNS_ENETUNREACH (NET_ERR + 15)#define FNS_ENETRESET (NET_ERR + 16)#define FNS_ECONNABORTED (NET_ERR + 17)#define FNS_ECONNRESET (NET_ERR + 18)#define FNS_ENOBUFS (NET_ERR + 19)#define FNS_EISCONN (NET_ERR + 20)#define FNS_ENOTCONN (NET_ERR + 21)#define FNS_ESHUTDOWN (NET_ERR + 22)#define FNS_ETIMEDOUT (NET_ERR + 23)#define FNS_ECONNREFUSED (NET_ERR + 24)#define FNS_EPFNOSUPPORT (NET_ERR + 25)#define FNS_EHOSTDOWN (NET_ERR + 26)#define FNS_EHOSTUNREACH (NET_ERR + 27)#define FNS_ENOURGENTDATA (NET_ERR + 28)#define FNS_ENOOOBDATA (NET_ERR + 29)#define FNS_ETOOMANYREFS (NET_ERR + 30)#define LAST_NET_ERR FNS_ETOOMANYREFS /* last NET_ERR define */extern char *err_to_string(int err_num);#endif /*_NERRNO_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -