xref: /titanic_51/usr/src/lib/libbc/inc/include/sys/errno.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate /*
30*7c478bd9Sstevel@tonic-gate  * If error codes are added or changed here, they should be updated in
31*7c478bd9Sstevel@tonic-gate  * /usr/src/lib/libc/gen/common/errlst.c as well.
32*7c478bd9Sstevel@tonic-gate  */
33*7c478bd9Sstevel@tonic-gate 
34*7c478bd9Sstevel@tonic-gate /*
35*7c478bd9Sstevel@tonic-gate  * Error codes
36*7c478bd9Sstevel@tonic-gate  */
37*7c478bd9Sstevel@tonic-gate 
38*7c478bd9Sstevel@tonic-gate #ifndef _sys_errno_h
39*7c478bd9Sstevel@tonic-gate #define _sys_errno_h
40*7c478bd9Sstevel@tonic-gate 
41*7c478bd9Sstevel@tonic-gate #define	EPERM		1		/* Not owner */
42*7c478bd9Sstevel@tonic-gate #define	ENOENT		2		/* No such file or directory */
43*7c478bd9Sstevel@tonic-gate #define	ESRCH		3		/* No such process */
44*7c478bd9Sstevel@tonic-gate #define	EINTR		4		/* Interrupted system call */
45*7c478bd9Sstevel@tonic-gate #define	EIO		5		/* I/O error */
46*7c478bd9Sstevel@tonic-gate #define	ENXIO		6		/* No such device or address */
47*7c478bd9Sstevel@tonic-gate #define	E2BIG		7		/* Arg list too long */
48*7c478bd9Sstevel@tonic-gate #define	ENOEXEC		8		/* Exec format error */
49*7c478bd9Sstevel@tonic-gate #define	EBADF		9		/* Bad file number */
50*7c478bd9Sstevel@tonic-gate #define	ECHILD		10		/* No children */
51*7c478bd9Sstevel@tonic-gate #define	EAGAIN		11		/* No more processes */
52*7c478bd9Sstevel@tonic-gate #define	ENOMEM		12		/* Not enough core */
53*7c478bd9Sstevel@tonic-gate #define	EACCES		13		/* Permission denied */
54*7c478bd9Sstevel@tonic-gate #define	EFAULT		14		/* Bad address */
55*7c478bd9Sstevel@tonic-gate #define	ENOTBLK		15		/* Block device required */
56*7c478bd9Sstevel@tonic-gate #define	EBUSY		16		/* Mount device busy */
57*7c478bd9Sstevel@tonic-gate #define	EEXIST		17		/* File exists */
58*7c478bd9Sstevel@tonic-gate #define	EXDEV		18		/* Cross-device link */
59*7c478bd9Sstevel@tonic-gate #define	ENODEV		19		/* No such device */
60*7c478bd9Sstevel@tonic-gate #define	ENOTDIR		20		/* Not a directory*/
61*7c478bd9Sstevel@tonic-gate #define	EISDIR		21		/* Is a directory */
62*7c478bd9Sstevel@tonic-gate #define	EINVAL		22		/* Invalid argument */
63*7c478bd9Sstevel@tonic-gate #define	ENFILE		23		/* File table overflow */
64*7c478bd9Sstevel@tonic-gate #define	EMFILE		24		/* Too many open files */
65*7c478bd9Sstevel@tonic-gate #define	ENOTTY		25		/* Not a typewriter */
66*7c478bd9Sstevel@tonic-gate #define	ETXTBSY		26		/* Text file busy */
67*7c478bd9Sstevel@tonic-gate #define	EFBIG		27		/* File too large */
68*7c478bd9Sstevel@tonic-gate #define	ENOSPC		28		/* No space left on device */
69*7c478bd9Sstevel@tonic-gate #define	ESPIPE		29		/* Illegal seek */
70*7c478bd9Sstevel@tonic-gate #define	EROFS		30		/* Read-only file system */
71*7c478bd9Sstevel@tonic-gate #define	EMLINK		31		/* Too many links */
72*7c478bd9Sstevel@tonic-gate #define	EPIPE		32		/* Broken pipe */
73*7c478bd9Sstevel@tonic-gate 
74*7c478bd9Sstevel@tonic-gate /* math software */
75*7c478bd9Sstevel@tonic-gate #define	EDOM		33		/* Argument too large */
76*7c478bd9Sstevel@tonic-gate #define	ERANGE		34		/* Result too large */
77*7c478bd9Sstevel@tonic-gate 
78*7c478bd9Sstevel@tonic-gate /* non-blocking and interrupt i/o */
79*7c478bd9Sstevel@tonic-gate #define	EWOULDBLOCK	35		/* Operation would block */
80*7c478bd9Sstevel@tonic-gate #define	EINPROGRESS	36		/* Operation now in progress */
81*7c478bd9Sstevel@tonic-gate #define	EALREADY	37		/* Operation already in progress */
82*7c478bd9Sstevel@tonic-gate /* ipc/network software */
83*7c478bd9Sstevel@tonic-gate 
84*7c478bd9Sstevel@tonic-gate 	/* argument errors */
85*7c478bd9Sstevel@tonic-gate #define	ENOTSOCK	38		/* Socket operation on non-socket */
86*7c478bd9Sstevel@tonic-gate #define	EDESTADDRREQ	39		/* Destination address required */
87*7c478bd9Sstevel@tonic-gate #define	EMSGSIZE	40		/* Message too long */
88*7c478bd9Sstevel@tonic-gate #define	EPROTOTYPE	41		/* Protocol wrong type for socket */
89*7c478bd9Sstevel@tonic-gate #define	ENOPROTOOPT	42		/* Protocol not available */
90*7c478bd9Sstevel@tonic-gate #define	EPROTONOSUPPORT	43		/* Protocol not supported */
91*7c478bd9Sstevel@tonic-gate #define	ESOCKTNOSUPPORT	44		/* Socket type not supported */
92*7c478bd9Sstevel@tonic-gate #define	EOPNOTSUPP	45		/* Operation not supported on socket */
93*7c478bd9Sstevel@tonic-gate #define	EPFNOSUPPORT	46		/* Protocol family not supported */
94*7c478bd9Sstevel@tonic-gate #define	EAFNOSUPPORT	47		/* Address family not supported by protocol family */
95*7c478bd9Sstevel@tonic-gate #define	EADDRINUSE	48		/* Address already in use */
96*7c478bd9Sstevel@tonic-gate #define	EADDRNOTAVAIL	49		/* Can't assign requested address */
97*7c478bd9Sstevel@tonic-gate 
98*7c478bd9Sstevel@tonic-gate 	/* operational errors */
99*7c478bd9Sstevel@tonic-gate #define	ENETDOWN	50		/* Network is down */
100*7c478bd9Sstevel@tonic-gate #define	ENETUNREACH	51		/* Network is unreachable */
101*7c478bd9Sstevel@tonic-gate #define	ENETRESET	52		/* Network dropped connection on reset */
102*7c478bd9Sstevel@tonic-gate #define	ECONNABORTED	53		/* Software caused connection abort */
103*7c478bd9Sstevel@tonic-gate #define	ECONNRESET	54		/* Connection reset by peer */
104*7c478bd9Sstevel@tonic-gate #define	ENOBUFS		55		/* No buffer space available */
105*7c478bd9Sstevel@tonic-gate #define	EISCONN		56		/* Socket is already connected */
106*7c478bd9Sstevel@tonic-gate #define	ENOTCONN	57		/* Socket is not connected */
107*7c478bd9Sstevel@tonic-gate #define	ESHUTDOWN	58		/* Can't send after socket shutdown */
108*7c478bd9Sstevel@tonic-gate #define	ETOOMANYREFS	59		/* Too many references: can't splice */
109*7c478bd9Sstevel@tonic-gate #define	ETIMEDOUT	60		/* Connection timed out */
110*7c478bd9Sstevel@tonic-gate #define	ECONNREFUSED	61		/* Connection refused */
111*7c478bd9Sstevel@tonic-gate 
112*7c478bd9Sstevel@tonic-gate 	/* */
113*7c478bd9Sstevel@tonic-gate #define	ELOOP		62		/* Too many levels of symbolic links */
114*7c478bd9Sstevel@tonic-gate #define	ENAMETOOLONG	63		/* File name too long */
115*7c478bd9Sstevel@tonic-gate 
116*7c478bd9Sstevel@tonic-gate /* should be rearranged */
117*7c478bd9Sstevel@tonic-gate #define	EHOSTDOWN	64		/* Host is down */
118*7c478bd9Sstevel@tonic-gate #define	EHOSTUNREACH	65		/* No route to host */
119*7c478bd9Sstevel@tonic-gate #define	ENOTEMPTY	66		/* Directory not empty */
120*7c478bd9Sstevel@tonic-gate 
121*7c478bd9Sstevel@tonic-gate /* quotas & mush */
122*7c478bd9Sstevel@tonic-gate #define	EPROCLIM	67		/* Too many processes */
123*7c478bd9Sstevel@tonic-gate #define	EUSERS		68		/* Too many users */
124*7c478bd9Sstevel@tonic-gate #define	EDQUOT		69		/* Disc quota exceeded */
125*7c478bd9Sstevel@tonic-gate 
126*7c478bd9Sstevel@tonic-gate /* Network File System */
127*7c478bd9Sstevel@tonic-gate #define	ESTALE		70		/* Stale NFS file handle */
128*7c478bd9Sstevel@tonic-gate #define	EREMOTE		71		/* Too many levels of remote in path */
129*7c478bd9Sstevel@tonic-gate 
130*7c478bd9Sstevel@tonic-gate /* streams */
131*7c478bd9Sstevel@tonic-gate #define	ENOSTR		72		/* Device is not a stream */
132*7c478bd9Sstevel@tonic-gate #define	ETIME		73		/* Timer expired */
133*7c478bd9Sstevel@tonic-gate #define	ENOSR		74		/* Out of streams resources */
134*7c478bd9Sstevel@tonic-gate #define	ENOMSG		75		/* No message of desired type */
135*7c478bd9Sstevel@tonic-gate #define	EBADMSG		76		/* Trying to read unreadable message */
136*7c478bd9Sstevel@tonic-gate 
137*7c478bd9Sstevel@tonic-gate /* SystemV IPC */
138*7c478bd9Sstevel@tonic-gate #define EIDRM		77		/* Identifier removed */
139*7c478bd9Sstevel@tonic-gate 
140*7c478bd9Sstevel@tonic-gate /* SystemV Record Locking */
141*7c478bd9Sstevel@tonic-gate #define EDEADLK		78		/* Deadlock condition. */
142*7c478bd9Sstevel@tonic-gate #define ENOLCK		79		/* No record locks available. */
143*7c478bd9Sstevel@tonic-gate 
144*7c478bd9Sstevel@tonic-gate /* POSIX */
145*7c478bd9Sstevel@tonic-gate #define ENOSYS		90		/* function not implemented */
146*7c478bd9Sstevel@tonic-gate 
147*7c478bd9Sstevel@tonic-gate #endif /*!_sys_errno_h*/
148