xref: /haiku/headers/os/support/Errors.h (revision 965aa03f490e07305068b71ec716d0f3e8fa6a1b)
1686bdd59SAxel Dörfler /*
24a50aa51SAxel Dörfler  * Copyright 2007, Haiku, Inc. All Rights Reserved.
3686bdd59SAxel Dörfler  * Distributed under the terms of the MIT License.
4686bdd59SAxel Dörfler  */
552a38012Sejakowatz #ifndef _ERRORS_H
652a38012Sejakowatz #define _ERRORS_H
752a38012Sejakowatz 
8686bdd59SAxel Dörfler 
9afe886fcSDavid Reid #include <limits.h>
1052a38012Sejakowatz 
1152a38012Sejakowatz 
124a50aa51SAxel Dörfler /* Error baselines */
1352a38012Sejakowatz #define B_GENERAL_ERROR_BASE		LONG_MIN
14*965aa03fSIngo Weinhold #define B_OS_ERROR_BASE				(B_GENERAL_ERROR_BASE + 0x1000)
15*965aa03fSIngo Weinhold #define B_APP_ERROR_BASE			(B_GENERAL_ERROR_BASE + 0x2000)
16*965aa03fSIngo Weinhold #define B_INTERFACE_ERROR_BASE		(B_GENERAL_ERROR_BASE + 0x3000)
17*965aa03fSIngo Weinhold #define B_MEDIA_ERROR_BASE			(B_GENERAL_ERROR_BASE + 0x4000)
18*965aa03fSIngo Weinhold 										/* - 0x41ff */
19*965aa03fSIngo Weinhold #define B_TRANSLATION_ERROR_BASE	(B_GENERAL_ERROR_BASE + 0x4800)
20*965aa03fSIngo Weinhold 										/* - 0x48ff */
21*965aa03fSIngo Weinhold #define B_MIDI_ERROR_BASE			(B_GENERAL_ERROR_BASE + 0x5000)
22*965aa03fSIngo Weinhold #define B_STORAGE_ERROR_BASE		(B_GENERAL_ERROR_BASE + 0x6000)
23*965aa03fSIngo Weinhold #define B_POSIX_ERROR_BASE			(B_GENERAL_ERROR_BASE + 0x7000)
24*965aa03fSIngo Weinhold #define B_MAIL_ERROR_BASE			(B_GENERAL_ERROR_BASE + 0x8000)
25*965aa03fSIngo Weinhold #define B_PRINT_ERROR_BASE			(B_GENERAL_ERROR_BASE + 0x9000)
26*965aa03fSIngo Weinhold #define B_DEVICE_ERROR_BASE			(B_GENERAL_ERROR_BASE + 0xa000)
2752a38012Sejakowatz 
284a50aa51SAxel Dörfler /* Developer-defined errors start at (B_ERRORS_END+1) */
2952a38012Sejakowatz #define B_ERRORS_END				(B_GENERAL_ERROR_BASE + 0xffff)
3052a38012Sejakowatz 
314a50aa51SAxel Dörfler /* General Errors */
32*965aa03fSIngo Weinhold #define B_NO_MEMORY					(B_GENERAL_ERROR_BASE + 0)
33*965aa03fSIngo Weinhold #define B_IO_ERROR					(B_GENERAL_ERROR_BASE + 1)
34*965aa03fSIngo Weinhold #define B_PERMISSION_DENIED			(B_GENERAL_ERROR_BASE + 2)
35*965aa03fSIngo Weinhold #define B_BAD_INDEX					(B_GENERAL_ERROR_BASE + 3)
36*965aa03fSIngo Weinhold #define B_BAD_TYPE					(B_GENERAL_ERROR_BASE + 4)
37*965aa03fSIngo Weinhold #define B_BAD_VALUE					(B_GENERAL_ERROR_BASE + 5)
38*965aa03fSIngo Weinhold #define B_MISMATCHED_VALUES			(B_GENERAL_ERROR_BASE + 6)
39*965aa03fSIngo Weinhold #define B_NAME_NOT_FOUND			(B_GENERAL_ERROR_BASE + 7)
40*965aa03fSIngo Weinhold #define B_NAME_IN_USE				(B_GENERAL_ERROR_BASE + 8)
41*965aa03fSIngo Weinhold #define B_TIMED_OUT					(B_GENERAL_ERROR_BASE + 9)
42*965aa03fSIngo Weinhold #define B_INTERRUPTED				(B_GENERAL_ERROR_BASE + 10)
43*965aa03fSIngo Weinhold #define B_WOULD_BLOCK				(B_GENERAL_ERROR_BASE + 11)
44*965aa03fSIngo Weinhold #define B_CANCELED					(B_GENERAL_ERROR_BASE + 12)
45*965aa03fSIngo Weinhold #define B_NO_INIT					(B_GENERAL_ERROR_BASE + 13)
46*965aa03fSIngo Weinhold #define B_BUSY						(B_GENERAL_ERROR_BASE + 14)
47*965aa03fSIngo Weinhold #define B_NOT_ALLOWED				(B_GENERAL_ERROR_BASE + 15)
48*965aa03fSIngo Weinhold #define B_BAD_DATA					(B_GENERAL_ERROR_BASE + 16)
49*965aa03fSIngo Weinhold #define B_DONT_DO_THAT				(B_GENERAL_ERROR_BASE + 17)
5052a38012Sejakowatz 
51*965aa03fSIngo Weinhold #define B_ERROR						(-1)
52*965aa03fSIngo Weinhold #define B_OK						((int)0)
53*965aa03fSIngo Weinhold #define B_NO_ERROR					((int)0)
5452a38012Sejakowatz 
554a50aa51SAxel Dörfler /* Kernel Kit Errors */
56*965aa03fSIngo Weinhold #define B_BAD_SEM_ID				(B_OS_ERROR_BASE + 0)
57*965aa03fSIngo Weinhold #define B_NO_MORE_SEMS				(B_OS_ERROR_BASE + 1)
5852a38012Sejakowatz 
59*965aa03fSIngo Weinhold #define B_BAD_THREAD_ID				(B_OS_ERROR_BASE + 0x100)
60*965aa03fSIngo Weinhold #define B_NO_MORE_THREADS			(B_OS_ERROR_BASE + 0x101)
61*965aa03fSIngo Weinhold #define B_BAD_THREAD_STATE			(B_OS_ERROR_BASE + 0x102)
62*965aa03fSIngo Weinhold #define B_BAD_TEAM_ID				(B_OS_ERROR_BASE + 0x103)
63*965aa03fSIngo Weinhold #define B_NO_MORE_TEAMS				(B_OS_ERROR_BASE + 0x104)
6452a38012Sejakowatz 
65*965aa03fSIngo Weinhold #define B_BAD_PORT_ID				(B_OS_ERROR_BASE + 0x200)
66*965aa03fSIngo Weinhold #define B_NO_MORE_PORTS				(B_OS_ERROR_BASE + 0x201)
6752a38012Sejakowatz 
68*965aa03fSIngo Weinhold #define B_BAD_IMAGE_ID				(B_OS_ERROR_BASE + 0x300)
69*965aa03fSIngo Weinhold #define B_BAD_ADDRESS				(B_OS_ERROR_BASE + 0x301)
70*965aa03fSIngo Weinhold #define B_NOT_AN_EXECUTABLE			(B_OS_ERROR_BASE + 0x302)
71*965aa03fSIngo Weinhold #define B_MISSING_LIBRARY			(B_OS_ERROR_BASE + 0x303)
72*965aa03fSIngo Weinhold #define B_MISSING_SYMBOL			(B_OS_ERROR_BASE + 0x304)
7352a38012Sejakowatz 
74*965aa03fSIngo Weinhold #define B_DEBUGGER_ALREADY_INSTALLED	(B_OS_ERROR_BASE + 0x400)
7552a38012Sejakowatz 
764a50aa51SAxel Dörfler /* Application Kit Errors */
77*965aa03fSIngo Weinhold #define B_BAD_REPLY							(B_APP_ERROR_BASE + 0)
78*965aa03fSIngo Weinhold #define B_DUPLICATE_REPLY					(B_APP_ERROR_BASE + 1)
79*965aa03fSIngo Weinhold #define B_MESSAGE_TO_SELF					(B_APP_ERROR_BASE + 2)
80*965aa03fSIngo Weinhold #define B_BAD_HANDLER						(B_APP_ERROR_BASE + 3)
81*965aa03fSIngo Weinhold #define B_ALREADY_RUNNING					(B_APP_ERROR_BASE + 4)
82*965aa03fSIngo Weinhold #define B_LAUNCH_FAILED						(B_APP_ERROR_BASE + 5)
83*965aa03fSIngo Weinhold #define B_AMBIGUOUS_APP_LAUNCH				(B_APP_ERROR_BASE + 6)
84*965aa03fSIngo Weinhold #define B_UNKNOWN_MIME_TYPE					(B_APP_ERROR_BASE + 7)
85*965aa03fSIngo Weinhold #define B_BAD_SCRIPT_SYNTAX					(B_APP_ERROR_BASE + 8)
86*965aa03fSIngo Weinhold #define B_LAUNCH_FAILED_NO_RESOLVE_LINK		(B_APP_ERROR_BASE + 9)
87*965aa03fSIngo Weinhold #define B_LAUNCH_FAILED_EXECUTABLE			(B_APP_ERROR_BASE + 10)
88*965aa03fSIngo Weinhold #define B_LAUNCH_FAILED_APP_NOT_FOUND		(B_APP_ERROR_BASE + 11)
89*965aa03fSIngo Weinhold #define B_LAUNCH_FAILED_APP_IN_TRASH		(B_APP_ERROR_BASE + 12)
90*965aa03fSIngo Weinhold #define B_LAUNCH_FAILED_NO_PREFERRED_APP	(B_APP_ERROR_BASE + 13)
91*965aa03fSIngo Weinhold #define B_LAUNCH_FAILED_FILES_APP_NOT_FOUND	(B_APP_ERROR_BASE + 14)
92*965aa03fSIngo Weinhold #define B_BAD_MIME_SNIFFER_RULE				(B_APP_ERROR_BASE + 15)
93*965aa03fSIngo Weinhold #define B_NOT_A_MESSAGE						(B_APP_ERROR_BASE + 16)
94*965aa03fSIngo Weinhold #define B_SHUTDOWN_CANCELLED				(B_APP_ERROR_BASE + 17)
95*965aa03fSIngo Weinhold #define B_SHUTTING_DOWN						(B_APP_ERROR_BASE + 18)
9652a38012Sejakowatz 
974a50aa51SAxel Dörfler /* Storage Kit/File System Errors */
98*965aa03fSIngo Weinhold #define B_FILE_ERROR						(B_STORAGE_ERROR_BASE + 0)
99*965aa03fSIngo Weinhold #define B_FILE_NOT_FOUND					(B_STORAGE_ERROR_BASE + 1)
100*965aa03fSIngo Weinhold 			/* deprecated: use B_ENTRY_NOT_FOUND instead */
101*965aa03fSIngo Weinhold #define B_FILE_EXISTS						(B_STORAGE_ERROR_BASE + 2)
102*965aa03fSIngo Weinhold #define B_ENTRY_NOT_FOUND					(B_STORAGE_ERROR_BASE + 3)
103*965aa03fSIngo Weinhold #define B_NAME_TOO_LONG						(B_STORAGE_ERROR_BASE + 4)
104*965aa03fSIngo Weinhold #define B_NOT_A_DIRECTORY					(B_STORAGE_ERROR_BASE + 5)
105*965aa03fSIngo Weinhold #define B_DIRECTORY_NOT_EMPTY				(B_STORAGE_ERROR_BASE + 6)
106*965aa03fSIngo Weinhold #define B_DEVICE_FULL						(B_STORAGE_ERROR_BASE + 7)
107*965aa03fSIngo Weinhold #define B_READ_ONLY_DEVICE					(B_STORAGE_ERROR_BASE + 8)
108*965aa03fSIngo Weinhold #define B_IS_A_DIRECTORY					(B_STORAGE_ERROR_BASE + 9)
109*965aa03fSIngo Weinhold #define B_NO_MORE_FDS						(B_STORAGE_ERROR_BASE + 10)
110*965aa03fSIngo Weinhold #define B_CROSS_DEVICE_LINK					(B_STORAGE_ERROR_BASE + 11)
111*965aa03fSIngo Weinhold #define B_LINK_LIMIT						(B_STORAGE_ERROR_BASE + 12)
112*965aa03fSIngo Weinhold #define B_BUSTED_PIPE						(B_STORAGE_ERROR_BASE + 13)
113*965aa03fSIngo Weinhold #define B_UNSUPPORTED						(B_STORAGE_ERROR_BASE + 14)
114*965aa03fSIngo Weinhold #define B_PARTITION_TOO_SMALL				(B_STORAGE_ERROR_BASE + 15)
11552a38012Sejakowatz 
1164a50aa51SAxel Dörfler /* POSIX Errors */
117afe886fcSDavid Reid #define E2BIG			(B_POSIX_ERROR_BASE + 1)
118afe886fcSDavid Reid #define ECHILD			(B_POSIX_ERROR_BASE + 2)
119afe886fcSDavid Reid #define EDEADLK			(B_POSIX_ERROR_BASE + 3)
120afe886fcSDavid Reid #define EFBIG			(B_POSIX_ERROR_BASE + 4)
121afe886fcSDavid Reid #define EMLINK			(B_POSIX_ERROR_BASE + 5)
122afe886fcSDavid Reid #define ENFILE			(B_POSIX_ERROR_BASE + 6)
123afe886fcSDavid Reid #define ENODEV			(B_POSIX_ERROR_BASE + 7)
124afe886fcSDavid Reid #define ENOLCK			(B_POSIX_ERROR_BASE + 8)
125afe886fcSDavid Reid #define ENOSYS			(B_POSIX_ERROR_BASE + 9)
126afe886fcSDavid Reid #define ENOTTY			(B_POSIX_ERROR_BASE + 10)
127afe886fcSDavid Reid #define ENXIO			(B_POSIX_ERROR_BASE + 11)
128afe886fcSDavid Reid #define ESPIPE			(B_POSIX_ERROR_BASE + 12)
129afe886fcSDavid Reid #define ESRCH			(B_POSIX_ERROR_BASE + 13)
130afe886fcSDavid Reid #define EFPOS			(B_POSIX_ERROR_BASE + 14)
131afe886fcSDavid Reid #define ESIGPARM		(B_POSIX_ERROR_BASE + 15)
132afe886fcSDavid Reid #define EDOM			(B_POSIX_ERROR_BASE + 16)
133afe886fcSDavid Reid #define ERANGE			(B_POSIX_ERROR_BASE + 17)
134afe886fcSDavid Reid #define EPROTOTYPE		(B_POSIX_ERROR_BASE + 18)
135afe886fcSDavid Reid #define EPROTONOSUPPORT	(B_POSIX_ERROR_BASE + 19)
136afe886fcSDavid Reid #define EPFNOSUPPORT	(B_POSIX_ERROR_BASE + 20)
137afe886fcSDavid Reid #define EAFNOSUPPORT	(B_POSIX_ERROR_BASE + 21)
138afe886fcSDavid Reid #define EADDRINUSE		(B_POSIX_ERROR_BASE + 22)
139afe886fcSDavid Reid #define EADDRNOTAVAIL	(B_POSIX_ERROR_BASE + 23)
140afe886fcSDavid Reid #define ENETDOWN		(B_POSIX_ERROR_BASE + 24)
141afe886fcSDavid Reid #define ENETUNREACH		(B_POSIX_ERROR_BASE + 25)
142afe886fcSDavid Reid #define ENETRESET		(B_POSIX_ERROR_BASE + 26)
143afe886fcSDavid Reid #define ECONNABORTED	(B_POSIX_ERROR_BASE + 27)
144afe886fcSDavid Reid #define ECONNRESET		(B_POSIX_ERROR_BASE + 28)
145afe886fcSDavid Reid #define EISCONN			(B_POSIX_ERROR_BASE + 29)
146afe886fcSDavid Reid #define ENOTCONN		(B_POSIX_ERROR_BASE + 30)
147afe886fcSDavid Reid #define ESHUTDOWN		(B_POSIX_ERROR_BASE + 31)
148afe886fcSDavid Reid #define ECONNREFUSED	(B_POSIX_ERROR_BASE + 32)
149afe886fcSDavid Reid #define EHOSTUNREACH	(B_POSIX_ERROR_BASE + 33)
150afe886fcSDavid Reid #define ENOPROTOOPT		(B_POSIX_ERROR_BASE + 34)
151afe886fcSDavid Reid #define ENOBUFS			(B_POSIX_ERROR_BASE + 35)
152afe886fcSDavid Reid #define EINPROGRESS		(B_POSIX_ERROR_BASE + 36)
153afe886fcSDavid Reid #define EALREADY		(B_POSIX_ERROR_BASE + 37)
154afe886fcSDavid Reid #define EILSEQ          (B_POSIX_ERROR_BASE + 38)
155afe886fcSDavid Reid #define ENOMSG          (B_POSIX_ERROR_BASE + 39)
156afe886fcSDavid Reid #define ESTALE          (B_POSIX_ERROR_BASE + 40)
157afe886fcSDavid Reid #define EOVERFLOW       (B_POSIX_ERROR_BASE + 41)
158afe886fcSDavid Reid #define EMSGSIZE        (B_POSIX_ERROR_BASE + 42)
159afe886fcSDavid Reid #define EOPNOTSUPP      (B_POSIX_ERROR_BASE + 43)
160afe886fcSDavid Reid #define ENOTSOCK		(B_POSIX_ERROR_BASE + 44)
1610e2e5d7fSbeveloper #define EHOSTDOWN		(B_POSIX_ERROR_BASE + 45)
1629f20e178SJérôme Duval #define	EBADMSG			(B_POSIX_ERROR_BASE + 46)
1639f20e178SJérôme Duval #define ECANCELED		(B_POSIX_ERROR_BASE + 47)
1649f20e178SJérôme Duval #define EDESTADDRREQ	(B_POSIX_ERROR_BASE + 48)
1659f20e178SJérôme Duval #define EDQUOT			(B_POSIX_ERROR_BASE + 49)
1669f20e178SJérôme Duval #define EIDRM			(B_POSIX_ERROR_BASE + 50)
1679f20e178SJérôme Duval #define EMULTIHOP		(B_POSIX_ERROR_BASE + 51)
1689f20e178SJérôme Duval #define ENODATA			(B_POSIX_ERROR_BASE + 52)
1699f20e178SJérôme Duval #define ENOLINK			(B_POSIX_ERROR_BASE + 53)
1709f20e178SJérôme Duval #define ENOSR			(B_POSIX_ERROR_BASE + 54)
1719f20e178SJérôme Duval #define ENOSTR			(B_POSIX_ERROR_BASE + 55)
1729f20e178SJérôme Duval #define ENOTSUP			(B_POSIX_ERROR_BASE + 56)
1739f20e178SJérôme Duval #define EPROTO			(B_POSIX_ERROR_BASE + 57)
1749f20e178SJérôme Duval #define ETIME			(B_POSIX_ERROR_BASE + 58)
1759f20e178SJérôme Duval #define ETXTBSY			(B_POSIX_ERROR_BASE + 59)
1769f20e178SJérôme Duval 
1774a50aa51SAxel Dörfler /* POSIX errors that can be mapped to BeOS error codes */
178afe886fcSDavid Reid #define ENOMEM			B_NO_MEMORY
179afe886fcSDavid Reid #define EACCES			B_PERMISSION_DENIED
180afe886fcSDavid Reid #define EINTR			B_INTERRUPTED
181afe886fcSDavid Reid #define EIO				B_IO_ERROR
182afe886fcSDavid Reid #define EBUSY			B_BUSY
183afe886fcSDavid Reid #define EFAULT			B_BAD_ADDRESS
184afe886fcSDavid Reid #define ETIMEDOUT		B_TIMED_OUT
1854a50aa51SAxel Dörfler #define EAGAIN 			B_WOULD_BLOCK	/* SysV compatibility */
1864a50aa51SAxel Dörfler #define EWOULDBLOCK 	B_WOULD_BLOCK	/* BSD compatibility */
187afe886fcSDavid Reid #define EBADF			B_FILE_ERROR
188afe886fcSDavid Reid #define EEXIST			B_FILE_EXISTS
189afe886fcSDavid Reid #define EINVAL			B_BAD_VALUE
190afe886fcSDavid Reid #define ENAMETOOLONG	B_NAME_TOO_LONG
191afe886fcSDavid Reid #define ENOENT			B_ENTRY_NOT_FOUND
192afe886fcSDavid Reid #define EPERM			B_NOT_ALLOWED
193afe886fcSDavid Reid #define ENOTDIR			B_NOT_A_DIRECTORY
194afe886fcSDavid Reid #define EISDIR			B_IS_A_DIRECTORY
195afe886fcSDavid Reid #define ENOTEMPTY		B_DIRECTORY_NOT_EMPTY
196afe886fcSDavid Reid #define ENOSPC			B_DEVICE_FULL
197afe886fcSDavid Reid #define EROFS			B_READ_ONLY_DEVICE
198afe886fcSDavid Reid #define EMFILE			B_NO_MORE_FDS
199afe886fcSDavid Reid #define EXDEV			B_CROSS_DEVICE_LINK
200afe886fcSDavid Reid #define ELOOP			B_LINK_LIMIT
201afe886fcSDavid Reid #define ENOEXEC			B_NOT_AN_EXECUTABLE
202afe886fcSDavid Reid #define EPIPE			B_BUSTED_PIPE
203afe886fcSDavid Reid 
2044a50aa51SAxel Dörfler /* new error codes that can be mapped to POSIX errors */
20568145d0dSAxel Dörfler #define	B_BUFFER_OVERFLOW	EOVERFLOW
20668145d0dSAxel Dörfler #define B_TOO_MANY_ARGS		E2BIG
20768145d0dSAxel Dörfler #define	B_FILE_TOO_LARGE	EFBIG
2089de96ae6SAxel Dörfler #define B_RESULT_NOT_REPRESENTABLE ERANGE
20968145d0dSAxel Dörfler #define	B_DEVICE_NOT_FOUND	ENODEV
210ec5a9998SAxel Dörfler #define B_NOT_SUPPORTED		EOPNOTSUPP
21168145d0dSAxel Dörfler 
2124a50aa51SAxel Dörfler /* Media Kit Errors */
213*965aa03fSIngo Weinhold #define B_STREAM_NOT_FOUND				(B_MEDIA_ERROR_BASE + 0)
214*965aa03fSIngo Weinhold #define B_SERVER_NOT_FOUND				(B_MEDIA_ERROR_BASE + 1)
215*965aa03fSIngo Weinhold #define B_RESOURCE_NOT_FOUND			(B_MEDIA_ERROR_BASE + 2)
216*965aa03fSIngo Weinhold #define B_RESOURCE_UNAVAILABLE			(B_MEDIA_ERROR_BASE + 3)
217*965aa03fSIngo Weinhold #define B_BAD_SUBSCRIBER				(B_MEDIA_ERROR_BASE + 4)
218*965aa03fSIngo Weinhold #define B_SUBSCRIBER_NOT_ENTERED		(B_MEDIA_ERROR_BASE + 5)
219*965aa03fSIngo Weinhold #define B_BUFFER_NOT_AVAILABLE			(B_MEDIA_ERROR_BASE + 6)
220*965aa03fSIngo Weinhold #define B_LAST_BUFFER_ERROR				(B_MEDIA_ERROR_BASE + 7)
22152a38012Sejakowatz 
2224a50aa51SAxel Dörfler /* Mail Kit Errors */
223*965aa03fSIngo Weinhold #define B_MAIL_NO_DAEMON				(B_MAIL_ERROR_BASE + 0)
224*965aa03fSIngo Weinhold #define B_MAIL_UNKNOWN_USER				(B_MAIL_ERROR_BASE + 1)
225*965aa03fSIngo Weinhold #define B_MAIL_WRONG_PASSWORD			(B_MAIL_ERROR_BASE + 2)
226*965aa03fSIngo Weinhold #define B_MAIL_UNKNOWN_HOST				(B_MAIL_ERROR_BASE + 3)
227*965aa03fSIngo Weinhold #define B_MAIL_ACCESS_ERROR				(B_MAIL_ERROR_BASE + 4)
228*965aa03fSIngo Weinhold #define B_MAIL_UNKNOWN_FIELD			(B_MAIL_ERROR_BASE + 5)
229*965aa03fSIngo Weinhold #define B_MAIL_NO_RECIPIENT				(B_MAIL_ERROR_BASE + 6)
230*965aa03fSIngo Weinhold #define B_MAIL_INVALID_MAIL				(B_MAIL_ERROR_BASE + 7)
23152a38012Sejakowatz 
2324a50aa51SAxel Dörfler /* Printing Errors */
233*965aa03fSIngo Weinhold #define B_NO_PRINT_SERVER				(B_PRINT_ERROR_BASE + 0)
23452a38012Sejakowatz 
2354a50aa51SAxel Dörfler /* Device Kit Errors */
236*965aa03fSIngo Weinhold #define B_DEV_INVALID_IOCTL				(B_DEVICE_ERROR_BASE + 0)
237*965aa03fSIngo Weinhold #define B_DEV_NO_MEMORY					(B_DEVICE_ERROR_BASE + 1)
238*965aa03fSIngo Weinhold #define B_DEV_BAD_DRIVE_NUM				(B_DEVICE_ERROR_BASE + 2)
239*965aa03fSIngo Weinhold #define B_DEV_NO_MEDIA					(B_DEVICE_ERROR_BASE + 3)
240*965aa03fSIngo Weinhold #define B_DEV_UNREADABLE				(B_DEVICE_ERROR_BASE + 4)
241*965aa03fSIngo Weinhold #define B_DEV_FORMAT_ERROR				(B_DEVICE_ERROR_BASE + 5)
242*965aa03fSIngo Weinhold #define B_DEV_TIMEOUT					(B_DEVICE_ERROR_BASE + 6)
243*965aa03fSIngo Weinhold #define B_DEV_RECALIBRATE_ERROR			(B_DEVICE_ERROR_BASE + 7)
244*965aa03fSIngo Weinhold #define B_DEV_SEEK_ERROR				(B_DEVICE_ERROR_BASE + 8)
245*965aa03fSIngo Weinhold #define B_DEV_ID_ERROR					(B_DEVICE_ERROR_BASE + 9)
246*965aa03fSIngo Weinhold #define B_DEV_READ_ERROR				(B_DEVICE_ERROR_BASE + 10)
247*965aa03fSIngo Weinhold #define B_DEV_WRITE_ERROR				(B_DEVICE_ERROR_BASE + 11)
248*965aa03fSIngo Weinhold #define B_DEV_NOT_READY					(B_DEVICE_ERROR_BASE + 12)
249*965aa03fSIngo Weinhold #define B_DEV_MEDIA_CHANGED				(B_DEVICE_ERROR_BASE + 13)
250*965aa03fSIngo Weinhold #define B_DEV_MEDIA_CHANGE_REQUESTED	(B_DEVICE_ERROR_BASE + 14)
251*965aa03fSIngo Weinhold #define B_DEV_RESOURCE_CONFLICT			(B_DEVICE_ERROR_BASE + 15)
252*965aa03fSIngo Weinhold #define B_DEV_CONFIGURATION_ERROR		(B_DEVICE_ERROR_BASE + 16)
253*965aa03fSIngo Weinhold #define B_DEV_DISABLED_BY_USER			(B_DEVICE_ERROR_BASE + 17)
254*965aa03fSIngo Weinhold #define B_DEV_DOOR_OPEN					(B_DEVICE_ERROR_BASE + 18)
255a4733dd5SAxel Dörfler 
256*965aa03fSIngo Weinhold #define B_DEV_INVALID_PIPE				(B_DEVICE_ERROR_BASE + 19)
257*965aa03fSIngo Weinhold #define B_DEV_CRC_ERROR					(B_DEVICE_ERROR_BASE + 20)
258*965aa03fSIngo Weinhold #define B_DEV_STALLED					(B_DEVICE_ERROR_BASE + 21)
259*965aa03fSIngo Weinhold #define B_DEV_BAD_PID					(B_DEVICE_ERROR_BASE + 22)
260*965aa03fSIngo Weinhold #define B_DEV_UNEXPECTED_PID			(B_DEVICE_ERROR_BASE + 23)
261*965aa03fSIngo Weinhold #define B_DEV_DATA_OVERRUN				(B_DEVICE_ERROR_BASE + 24)
262*965aa03fSIngo Weinhold #define B_DEV_DATA_UNDERRUN				(B_DEVICE_ERROR_BASE + 25)
263*965aa03fSIngo Weinhold #define B_DEV_FIFO_OVERRUN				(B_DEVICE_ERROR_BASE + 26)
264*965aa03fSIngo Weinhold #define B_DEV_FIFO_UNDERRUN				(B_DEVICE_ERROR_BASE + 27)
265*965aa03fSIngo Weinhold #define B_DEV_PENDING					(B_DEVICE_ERROR_BASE + 28)
266*965aa03fSIngo Weinhold #define B_DEV_MULTIPLE_ERRORS			(B_DEVICE_ERROR_BASE + 29)
267*965aa03fSIngo Weinhold #define B_DEV_TOO_LATE					(B_DEVICE_ERROR_BASE + 30)
26852a38012Sejakowatz 
2694a50aa51SAxel Dörfler #endif	/* _ERRORS_H */
270