clusapi: add and use clusapi_ClusterControlCode to IDL.
[Samba.git] / libcli / util / doserr.h
blob12cca12bd6be842bd19523523c1ec9906ab8993d
1 /*
2 Unix SMB/CIFS implementation.
3 DOS error code constants
4 Copyright (C) Andrew Tridgell 1992-2000
5 Copyright (C) John H Terpstra 1996-2000
6 Copyright (C) Luke Kenneth Casson Leighton 1996-2000
7 Copyright (C) Paul Ashton 1998-2000
8 Copyright (C) Gerald (Jerry) Carter 2005
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef _DOSERR_H
25 #define _DOSERR_H
27 /* Error classes */
29 #define ERRDOS 0x01 /* Error is from the core DOS operating system set. */
30 #define ERRSRV 0x02 /* Error is generated by the server network file manager.*/
31 #define ERRHRD 0x03 /* Error is an hardware error. */
32 #define ERRCMD 0xFF /* Command was not in the "SMB" format. */
34 /* SMB X/Open error codes for the ERRDOS error class */
35 #define ERRsuccess 0 /* No error */
36 #define ERRbadfunc 1 /* Invalid function (or system call) */
37 #define ERRbadfile 2 /* File not found (pathname error) */
38 #define ERRbadpath 3 /* Directory not found */
39 #define ERRnofids 4 /* Too many open files */
40 #define ERRnoaccess 5 /* Access denied */
41 #define ERRbadfid 6 /* Invalid fid */
42 #define ERRbadmcb 7 /* Memory control blocks destroyed. */
43 #define ERRnomem 8 /* Out of memory */
44 #define ERRbadmem 9 /* Invalid memory block address */
45 #define ERRbadenv 10 /* Invalid environment */
46 #define ERRbadformat 11 /* Bad Format */
47 #define ERRbadaccess 12 /* Invalid open mode */
48 #define ERRbaddata 13 /* Invalid data (only from ioctl call) */
49 #define ERRres 14 /* reserved */
50 #define ERRbaddrive 15 /* Invalid drive */
51 #define ERRremcd 16 /* Attempt to delete current directory */
52 #define ERRdiffdevice 17 /* rename/move across different filesystems */
53 #define ERRnofiles 18 /* no more files found in file search */
54 #define ERRgeneral 31 /* General failure */
55 #define ERRbadshare 32 /* Share mode on file conflict with open mode */
56 #define ERRlock 33 /* Lock request conflicts with existing lock */
57 #define ERRunsup 50 /* Request unsupported, returned by Win 95, RJS 20Jun98 */
58 #define ERRnetnamedel 64 /* Network name deleted or not available */
59 #define ERRnosuchshare 67 /* You specified an invalid share name */
60 #define ERRfilexists 80 /* File in operation already exists */
61 #define ERRinvalidparam 87
62 #define ERRcannotopen 110 /* Cannot open the file specified */
63 #define ERRbufferoverflow 111
64 #define ERRinsufficientbuffer 122
65 #define ERRinvalidname 123 /* Invalid name */
66 #define ERRunknownlevel 124
67 #define ERRnotlocked 158 /* This region is not locked by this locking context. */
68 #define ERRinvalidpath 161
69 #define ERRcancelviolation 173
70 #define ERRnoatomiclocks 174
71 #define ERRrename 183
72 #define ERRbadpipe 230 /* Named pipe invalid */
73 #define ERRpipebusy 231 /* All instances of pipe are busy */
74 #define ERRpipeclosing 232 /* named pipe close in progress */
75 #define ERRnotconnected 233 /* No process on other end of named pipe */
76 #define ERRmoredata 234 /* More data to be returned */
77 #define ERReainconsistent 255 /* from EMC */
78 #define ERRnomoreitems 259
79 #define ERRbaddirectory 267 /* Invalid directory name in a path. */
80 #define ERReasnotsupported 282 /* Extended attributes */
81 #define ERRlogonfailure 1326 /* Unknown username or bad password */
82 #define ERRbuftoosmall 2123
83 #define ERRunknownipc 2142
84 #define ERRnosuchprintjob 2151
85 #define ERRinvgroup 2455
87 /* here's a special one from observing NT */
88 #define ERRnoipc 66 /* don't support ipc */
90 /* These errors seem to be only returned by the NT printer driver system */
91 #define ERRdriveralreadyinstalled 1795 /* ERROR_PRINTER_DRIVER_ALREADY_INSTALLED */
92 #define ERRunknownprinterport 1796 /* ERROR_UNKNOWN_PORT */
93 #define ERRunknownprinterdriver 1797 /* ERROR_UNKNOWN_PRINTER_DRIVER */
94 #define ERRunknownprintprocessor 1798 /* ERROR_UNKNOWN_PRINTPROCESSOR */
95 #define ERRinvalidseparatorfile 1799 /* ERROR_INVALID_SEPARATOR_FILE */
96 #define ERRinvalidjobpriority 1800 /* ERROR_INVALID_PRIORITY */
97 #define ERRinvalidprintername 1801 /* ERROR_INVALID_PRINTER_NAME */
98 #define ERRprinteralreadyexists 1802 /* ERROR_PRINTER_ALREADY_EXISTS */
99 #define ERRinvalidprintercommand 1803 /* ERROR_INVALID_PRINTER_COMMAND */
100 #define ERRinvaliddatatype 1804 /* ERROR_INVALID_DATATYPE */
101 #define ERRinvalidenvironment 1805 /* ERROR_INVALID_ENVIRONMENT */
103 #define ERRunknownprintmonitor 3000 /* ERROR_UNKNOWN_PRINT_MONITOR */
104 #define ERRprinterdriverinuse 3001 /* ERROR_PRINTER_DRIVER_IN_USE */
105 #define ERRspoolfilenotfound 3002 /* ERROR_SPOOL_FILE_NOT_FOUND */
106 #define ERRnostartdoc 3003 /* ERROR_SPL_NO_STARTDOC */
107 #define ERRnoaddjob 3004 /* ERROR_SPL_NO_ADDJOB */
108 #define ERRprintprocessoralreadyinstalled 3005 /* ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED */
109 #define ERRprintmonitoralreadyinstalled 3006 /* ERROR_PRINT_MONITOR_ALREADY_INSTALLED */
110 #define ERRinvalidprintmonitor 3007 /* ERROR_INVALID_PRINT_MONITOR */
111 #define ERRprintmonitorinuse 3008 /* ERROR_PRINT_MONITOR_IN_USE */
112 #define ERRprinterhasjobsqueued 3009 /* ERROR_PRINTER_HAS_JOBS_QUEUED */
114 /* Error codes for the ERRSRV class */
116 #define ERRerror 1 /* Non specific error code */
117 #define ERRbadpw 2 /* Bad password */
118 #define ERRbadtype 3 /* reserved */
119 #define ERRaccess 4 /* No permissions to do the requested operation */
120 #define ERRinvnid 5 /* tid invalid */
121 #define ERRinvnetname 6 /* Invalid servername */
122 #define ERRinvdevice 7 /* Invalid device */
123 #define ERRqfull 49 /* Print queue full */
124 #define ERRqtoobig 50 /* Queued item too big */
125 #define ERRinvpfid 52 /* Invalid print file in smb_fid */
126 #define ERRsmbcmd 64 /* Unrecognised command */
127 #define ERRsrverror 65 /* smb server internal error */
128 #define ERRfilespecs 67 /* fid and pathname invalid combination */
129 #define ERRbadlink 68 /* reserved */
130 #define ERRbadpermits 69 /* Access specified for a file is not valid */
131 #define ERRbadpid 70 /* reserved */
132 #define ERRsetattrmode 71 /* attribute mode invalid */
133 #define ERRpaused 81 /* Message server paused */
134 #define ERRmsgoff 82 /* Not receiving messages */
135 #define ERRnoroom 83 /* No room for message */
136 #define ERRrmuns 87 /* too many remote usernames */
137 #define ERRtimeout 88 /* operation timed out */
138 #define ERRnoresource 89 /* No resources currently available for request. */
139 #define ERRtoomanyuids 90 /* too many userids */
140 #define ERRbaduid 91 /* bad userid */
141 #define ERRuseMPX 250 /* temporarily unable to use raw mode, use MPX mode */
142 #define ERRuseSTD 251 /* temporarily unable to use raw mode, use standard mode */
143 #define ERRcontMPX 252 /* resume MPX mode */
144 #define ERRbadPW /* reserved */
145 #define ERRnosupport 0xFFFF
146 #define ERRunknownsmb 22 /* from NT 3.5 response */
148 /* Error codes for the ERRHRD class */
150 #define ERRnowrite 19 /* read only media */
151 #define ERRbadunit 20 /* Unknown device */
152 #define ERRnotready 21 /* Drive not ready */
153 #define ERRbadcmd 22 /* Unknown command */
154 #define ERRdata 23 /* Data (CRC) error */
155 #define ERRbadreq 24 /* Bad request structure length */
156 #define ERRseek 25
157 #define ERRbadmedia 26
158 #define ERRbadsector 27
159 #define ERRnopaper 28
160 #define ERRwrite 29 /* write fault */
161 #define ERRread 30 /* read fault */
162 #define ERRgeneral 31 /* General hardware failure */
163 #define ERRwrongdisk 34
164 #define ERRFCBunavail 35
165 #define ERRsharebufexc 36 /* share buffer exceeded */
166 #define ERRdiskfull 39
168 #ifndef NERR_BASE
169 #define NERR_BASE (2100)
170 #endif
172 #ifndef FRS_ERR_BASE
173 #define FRS_ERR_BASE (8000)
174 #endif
176 #endif /* _DOSERR_H */