xref: /illumos-gate/usr/src/lib/libc/port/gen/errlist (revision faadcf7e)
17c478bd9Sstevel@tonic-gate/*
27c478bd9Sstevel@tonic-gate * CDDL HEADER START
37c478bd9Sstevel@tonic-gate *
47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate * (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate * with the License.
87c478bd9Sstevel@tonic-gate *
97c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate * and limitations under the License.
137c478bd9Sstevel@tonic-gate *
147c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate *
207c478bd9Sstevel@tonic-gate * CDDL HEADER END
217c478bd9Sstevel@tonic-gate */
227c478bd9Sstevel@tonic-gate
237c478bd9Sstevel@tonic-gate/*
247c478bd9Sstevel@tonic-gate * WARNING!
257c478bd9Sstevel@tonic-gate *	  Do NOT add entries to this list such that it grows the list
267c478bd9Sstevel@tonic-gate *	  beyond the last entry:
277c478bd9Sstevel@tonic-gate *		151	Stale NFS file handle
287c478bd9Sstevel@tonic-gate *	  Growing this list may damage programs because this array is
297c478bd9Sstevel@tonic-gate *	  copied into a reserved array at runtime.  See bug 4097669.
307c478bd9Sstevel@tonic-gate *
317c478bd9Sstevel@tonic-gate *	  If you need to add an entry please use one of the empty
327c478bd9Sstevel@tonic-gate *	  slots.
337c478bd9Sstevel@tonic-gate *	  The arrays _sys_errs[], accessible via perror(3C) and strerror(3C)
347c478bd9Sstevel@tonic-gate *	  interfaces, and sys_errlist[] are created from this list.
357c478bd9Sstevel@tonic-gate *	  It is the direct referencing of sys_errlist[] that is the problem.
367c478bd9Sstevel@tonic-gate *	  Your code should only use perror() or strerror().
37*faadcf7eSRobert Mustacchi *
38*faadcf7eSRobert Mustacchi *	  The table is organized with the first column being the error number.
39*faadcf7eSRobert Mustacchi *	  The second column is the error's name. If the error should be skipped
40*faadcf7eSRobert Mustacchi *	  from the list, it has the magic name 'SKIP'. This generally is for
41*faadcf7eSRobert Mustacchi *	  the XENIX errors. The third column to the end of the file is the
42*faadcf7eSRobert Mustacchi *	  string that shows up when you run strerror().
437c478bd9Sstevel@tonic-gate */
447c478bd9Sstevel@tonic-gate
45*faadcf7eSRobert Mustacchi1	EPERM	Not owner
46*faadcf7eSRobert Mustacchi2	ENOENT	No such file or directory
47*faadcf7eSRobert Mustacchi3	ESRCH	No such process
48*faadcf7eSRobert Mustacchi4	EINTR	Interrupted system call
49*faadcf7eSRobert Mustacchi5	EIO	I/O error
50*faadcf7eSRobert Mustacchi6	ENXIO	No such device or address
51*faadcf7eSRobert Mustacchi7	E2BIG	Arg list too long
52*faadcf7eSRobert Mustacchi8	ENOEXEC	Exec format error
53*faadcf7eSRobert Mustacchi9	EBADF	Bad file number
54*faadcf7eSRobert Mustacchi10	ECHILD	No child processes
55*faadcf7eSRobert Mustacchi11	EAGAIN	Resource temporarily unavailable
56*faadcf7eSRobert Mustacchi12	ENOMEM	Not enough space
57*faadcf7eSRobert Mustacchi13	EACCES	Permission denied
58*faadcf7eSRobert Mustacchi14	EFAULT	Bad address
59*faadcf7eSRobert Mustacchi15	ENOTBLK	Block device required
60*faadcf7eSRobert Mustacchi16	EBUSY	Device busy
61*faadcf7eSRobert Mustacchi17	EEXIST	File exists
62*faadcf7eSRobert Mustacchi18	EXDEV	Cross-device link
63*faadcf7eSRobert Mustacchi19	ENODEV	No such device
64*faadcf7eSRobert Mustacchi20	ENOTDIR	Not a directory
65*faadcf7eSRobert Mustacchi21	EISDIR	Is a directory
66*faadcf7eSRobert Mustacchi22	EINVAL	Invalid argument
67*faadcf7eSRobert Mustacchi23	ENFILE	File table overflow
68*faadcf7eSRobert Mustacchi24	EMFILE	Too many open files
69*faadcf7eSRobert Mustacchi25	ENOTTY	Inappropriate ioctl for device
70*faadcf7eSRobert Mustacchi26	ETXTBSY	Text file busy
71*faadcf7eSRobert Mustacchi27	EFBIG	File too large
72*faadcf7eSRobert Mustacchi28	ENOSPC	No space left on device
73*faadcf7eSRobert Mustacchi29	ESPIPE	Illegal seek
74*faadcf7eSRobert Mustacchi30	EROFS	Read-only file system
75*faadcf7eSRobert Mustacchi31	EMLINK	Too many links
76*faadcf7eSRobert Mustacchi32	EPIPE	Broken pipe
77*faadcf7eSRobert Mustacchi33	EDOM	Argument out of domain
78*faadcf7eSRobert Mustacchi34	ERANGE	Result too large
79*faadcf7eSRobert Mustacchi35	ENOMSG	No message of desired type
80*faadcf7eSRobert Mustacchi36	EIDRM	Identifier removed
81*faadcf7eSRobert Mustacchi37	ECHRNG	Channel number out of range
82*faadcf7eSRobert Mustacchi38	EL2NSYNC	Level 2 not synchronized
83*faadcf7eSRobert Mustacchi39	EL3HLT	Level 3 halted
84*faadcf7eSRobert Mustacchi40	EL3RST	Level 3 reset
85*faadcf7eSRobert Mustacchi41	ELNRNG	Link number out of range
86*faadcf7eSRobert Mustacchi42	EUNATCH	Protocol driver not attached
87*faadcf7eSRobert Mustacchi43	ENOCSI	No CSI structure available
88*faadcf7eSRobert Mustacchi44	EL2HLT	Level 2 halted
89*faadcf7eSRobert Mustacchi45	EDEADLK	Deadlock situation detected/avoided
90*faadcf7eSRobert Mustacchi46	ENOLCK	No record locks available
91*faadcf7eSRobert Mustacchi47	ECANCELED	Operation canceled
92*faadcf7eSRobert Mustacchi48	ENOTSUP	Operation not supported
93*faadcf7eSRobert Mustacchi49	EDQUOT	Disc quota exceeded
94*faadcf7eSRobert Mustacchi50	EBADE	Bad exchange descriptor
95*faadcf7eSRobert Mustacchi51	EBADR	Bad request descriptor
96*faadcf7eSRobert Mustacchi52	EXFULL	Message tables full
97*faadcf7eSRobert Mustacchi53	ENOANO	Anode table overflow
98*faadcf7eSRobert Mustacchi54	EBADRQC	Bad request code
99*faadcf7eSRobert Mustacchi55	EBADSLT	Invalid slot
100*faadcf7eSRobert Mustacchi56	EDEADLOCK	File locking deadlock
101*faadcf7eSRobert Mustacchi57	EBFONT	Bad font file format
102*faadcf7eSRobert Mustacchi58	EOWNERDEAD	Owner of the lock died
103*faadcf7eSRobert Mustacchi59	ENOTRECOVERABLE	Lock is not recoverable
104*faadcf7eSRobert Mustacchi60	ENOSTR	Not a stream device
105*faadcf7eSRobert Mustacchi61	ENODATA	No data available
106*faadcf7eSRobert Mustacchi62	ETIME	Timer expired
107*faadcf7eSRobert Mustacchi63	ENOSR	Out of stream resources
108*faadcf7eSRobert Mustacchi64	ENONET	Machine is not on the network
109*faadcf7eSRobert Mustacchi65	ENOPKG	Package not installed
110*faadcf7eSRobert Mustacchi66	EREMOTE	Object is remote
111*faadcf7eSRobert Mustacchi67	ENOLINK	Link has been severed
112*faadcf7eSRobert Mustacchi68	EADV	Advertise error
113*faadcf7eSRobert Mustacchi69	ESRMNT	Srmount error
114*faadcf7eSRobert Mustacchi70	ECOMM	Communication error on send
115*faadcf7eSRobert Mustacchi71	EPROTO	Protocol error
116*faadcf7eSRobert Mustacchi72	ELOCKUNMAPPED	Locked lock was unmapped
117*faadcf7eSRobert Mustacchi73	ENOTACTIVE	Facility is not active
118*faadcf7eSRobert Mustacchi74	EMULTIHOP	Multihop attempted
119*faadcf7eSRobert Mustacchi77	EBADMSG	Not a data message
120*faadcf7eSRobert Mustacchi78	ENAMETOOLONG	File name too long
121*faadcf7eSRobert Mustacchi79	EOVERFLOW	Value too large for defined data type
122*faadcf7eSRobert Mustacchi80	ENOTUNIQ	Name not unique on network
123*faadcf7eSRobert Mustacchi81	EBADFD	File descriptor in bad state
124*faadcf7eSRobert Mustacchi82	EREMCHG	Remote address changed
125*faadcf7eSRobert Mustacchi83	ELIBACC	Can not access a needed shared library
126*faadcf7eSRobert Mustacchi84	ELIBBAD	Accessing a corrupted shared library
127*faadcf7eSRobert Mustacchi85	ELIBSCN	.lib section in a.out corrupted
128*faadcf7eSRobert Mustacchi86	ELIBMAX	Attempting to link in more shared libraries than system limit
129*faadcf7eSRobert Mustacchi87	ELIBEXEC	Can not exec a shared library directly
130*faadcf7eSRobert Mustacchi88	EILSEQ	Illegal byte sequence
131*faadcf7eSRobert Mustacchi89	ENOSYS	Operation not applicable
132*faadcf7eSRobert Mustacchi90	ELOOP	Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
133*faadcf7eSRobert Mustacchi93	ENOTEMPTY	Directory not empty
134*faadcf7eSRobert Mustacchi94	EUSERS	Too many users
135*faadcf7eSRobert Mustacchi95	ENOTSOCK	Socket operation on non-socket
136*faadcf7eSRobert Mustacchi96	EDESTADDRREQ	Destination address required
137*faadcf7eSRobert Mustacchi97	EMSGSIZE	Message too long
138*faadcf7eSRobert Mustacchi98	EPROTOTYPE	Protocol wrong type for socket
139*faadcf7eSRobert Mustacchi99	ENOPROTOOPT	Option not supported by protocol
140*faadcf7eSRobert Mustacchi120	EPROTONOSUPPORT	Protocol not supported
141*faadcf7eSRobert Mustacchi121	ESOCKTNOSUPPORT	Socket type not supported
142*faadcf7eSRobert Mustacchi122	EOPNOTSUPP	Operation not supported on transport endpoint
143*faadcf7eSRobert Mustacchi123	EPFNOSUPPORT	Protocol family not supported
144*faadcf7eSRobert Mustacchi124	EAFNOSUPPORT	Address family not supported by protocol family
145*faadcf7eSRobert Mustacchi125	EADDRINUSE	Address already in use
146*faadcf7eSRobert Mustacchi126	EADDRNOTAVAIL	Cannot assign requested address
147*faadcf7eSRobert Mustacchi127	ENETDOWN	Network is down
148*faadcf7eSRobert Mustacchi128	ENETUNREACH	Network is unreachable
149*faadcf7eSRobert Mustacchi129	ENETRESET	Network dropped connection because of reset
150*faadcf7eSRobert Mustacchi130	ECONNABORTED	Software caused connection abort
151*faadcf7eSRobert Mustacchi131	ECONNRESET	Connection reset by peer
152*faadcf7eSRobert Mustacchi132	ENOBUFS	No buffer space available
153*faadcf7eSRobert Mustacchi133	EISCONN	Transport endpoint is already connected
154*faadcf7eSRobert Mustacchi134	ENOTCONN	Transport endpoint is not connected
155*faadcf7eSRobert Mustacchi135	SKIP	Structure needs cleaning
156*faadcf7eSRobert Mustacchi137	SKIP	Not a name file
157*faadcf7eSRobert Mustacchi138	SKIP	Not available
158*faadcf7eSRobert Mustacchi139	SKIP	Is a name file
159*faadcf7eSRobert Mustacchi140	SKIP	Remote I/O error
160*faadcf7eSRobert Mustacchi141	SKIP	Reserved for future use
1617c478bd9Sstevel@tonic-gate142
162*faadcf7eSRobert Mustacchi143	ESHUTDOWN	Cannot send after socket shutdown
163*faadcf7eSRobert Mustacchi144	ETOOMANYREFS	Too many references: cannot splice
164*faadcf7eSRobert Mustacchi145	ETIMEDOUT	Connection timed out
165*faadcf7eSRobert Mustacchi146	ECONNREFUSED	Connection refused
166*faadcf7eSRobert Mustacchi147	EHOSTDOWN	Host is down
167*faadcf7eSRobert Mustacchi148	EHOSTUNREACH	No route to host
168*faadcf7eSRobert Mustacchi149	EALREADY	Operation already in progress
169*faadcf7eSRobert Mustacchi150	EINPROGRESS	Operation now in progress
170*faadcf7eSRobert Mustacchi151	ESTALE	Stale NFS file handle
171