include/doserr.h

説明を見る。
00001 /* 
00002    Unix SMB/CIFS implementation.
00003    DOS error code constants
00004    Copyright (C) Andrew Tridgell              1992-2000
00005    Copyright (C) John H Terpstra              1996-2000
00006    Copyright (C) Luke Kenneth Casson Leighton 1996-2000
00007    Copyright (C) Paul Ashton                  1998-2000
00008    Copyright (C) Gerald (Jerry) Carter        2005
00009    
00010    This program is free software; you can redistribute it and/or modify
00011    it under the terms of the GNU General Public License as published by
00012    the Free Software Foundation; either version 2 of the License, or
00013    (at your option) any later version.
00014    
00015    This program is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018    GNU General Public License for more details.
00019    
00020    You should have received a copy of the GNU General Public License
00021    along with this program; if not, write to the Free Software
00022    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00023 */
00024 
00025 #ifndef _DOSERR_H
00026 #define _DOSERR_H
00027 
00028 /* Error classes */
00029 
00030 #define ERRDOS 0x01 /*  Error is from the core DOS operating system set. */
00031 #define ERRSRV 0x02  /* Error is generated by the server network file manager.*/
00032 #define ERRHRD 0x03  /* Error is an hardware error. */
00033 #define ERRCMD 0xFF  /* Command was not in the "SMB" format. */
00034 
00035 /* SMB X/Open error codes for the ERRDOS error class */
00036 #define ERRsuccess 0 /* No error */
00037 #define ERRbadfunc 1 /* Invalid function (or system call) */
00038 #define ERRbadfile 2 /* File not found (pathname error) */
00039 #define ERRbadpath 3 /* Directory not found */
00040 #define ERRnofids 4 /* Too many open files */
00041 #define ERRnoaccess 5 /* Access denied */
00042 #define ERRbadfid 6 /* Invalid fid */
00043 #define ERRbadmcb 7 /* Memory control blocks destroyed. */
00044 #define ERRnomem 8 /* Out of memory */
00045 #define ERRbadmem 9 /* Invalid memory block address */
00046 #define ERRbadenv 10 /* Invalid environment */
00047 #define ERRbadformat 11 /* Bad Format */
00048 #define ERRbadaccess 12 /* Invalid open mode */
00049 #define ERRbaddata 13 /* Invalid data (only from ioctl call) */
00050 #define ERRres 14 /* reserved */
00051 #define ERRbaddrive 15 /* Invalid drive */
00052 #define ERRremcd 16 /* Attempt to delete current directory */
00053 #define ERRdiffdevice 17 /* rename/move across different filesystems */
00054 #define ERRnofiles 18 /* no more files found in file search */
00055 #define ERRgeneral 31 /* General failure */
00056 #define ERRbadshare 32 /* Share mode on file conflict with open mode */
00057 #define ERRlock 33 /* Lock request conflicts with existing lock */
00058 #define ERRunsup 50 /* Request unsupported, returned by Win 95, RJS 20Jun98 */
00059 #define ERRnetnamedel 64 /* Network name deleted or not available */
00060 #define ERRnosuchshare 67 /* You specified an invalid share name */
00061 #define ERRfilexists 80 /* File in operation already exists */
00062 #define ERRinvalidparam 87
00063 #define ERRcannotopen 110 /* Cannot open the file specified */
00064 #define ERRbufferoverflow 111
00065 #define ERRinsufficientbuffer 122
00066 #define ERRinvalidname 123 /* Invalid name */
00067 #define ERRunknownlevel 124
00068 #define ERRnotlocked 158 /* This region is not locked by this locking context. */
00069 #define ERRinvalidpath 161
00070 #define ERRcancelviolation 173
00071 #define ERRnoatomiclocks 174
00072 #define ERRrename 183
00073 #define ERRbadpipe 230 /* Named pipe invalid */
00074 #define ERRpipebusy 231 /* All instances of pipe are busy */
00075 #define ERRpipeclosing 232 /* named pipe close in progress */
00076 #define ERRnotconnected 233 /* No process on other end of named pipe */
00077 #define ERRmoredata 234 /* More data to be returned */
00078 #define ERReainconsistent 255 /* from EMC */
00079 #define ERRnomoreitems 259
00080 #define ERRbaddirectory 267 /* Invalid directory name in a path. */
00081 #define ERReasnotsupported 282 /* Extended attributes */
00082 #define ERRlogonfailure 1326 /* Unknown username or bad password */
00083 #define ERRbuftoosmall 2123
00084 #define ERRunknownipc 2142
00085 #define ERRnosuchprintjob 2151
00086 #define ERRinvgroup 2455
00087 
00088 /* here's a special one from observing NT */
00089 #define ERRnoipc 66 /* don't support ipc */
00090 
00091 /* These errors seem to be only returned by the NT printer driver system */
00092 #define ERRdriveralreadyinstalled 1795 /* ERROR_PRINTER_DRIVER_ALREADY_INSTALLED */
00093 #define ERRunknownprinterport 1796 /* ERROR_UNKNOWN_PORT */
00094 #define ERRunknownprinterdriver 1797 /* ERROR_UNKNOWN_PRINTER_DRIVER */
00095 #define ERRunknownprintprocessor 1798 /* ERROR_UNKNOWN_PRINTPROCESSOR */
00096 #define ERRinvalidseparatorfile 1799 /* ERROR_INVALID_SEPARATOR_FILE */
00097 #define ERRinvalidjobpriority 1800 /* ERROR_INVALID_PRIORITY */
00098 #define ERRinvalidprintername 1801 /* ERROR_INVALID_PRINTER_NAME */
00099 #define ERRprinteralreadyexists 1802 /* ERROR_PRINTER_ALREADY_EXISTS */
00100 #define ERRinvalidprintercommand 1803 /* ERROR_INVALID_PRINTER_COMMAND */
00101 #define ERRinvaliddatatype 1804 /* ERROR_INVALID_DATATYPE */
00102 #define ERRinvalidenvironment 1805 /* ERROR_INVALID_ENVIRONMENT */
00103 
00104 #define ERRunknownprintmonitor 3000 /* ERROR_UNKNOWN_PRINT_MONITOR */
00105 #define ERRprinterdriverinuse 3001 /* ERROR_PRINTER_DRIVER_IN_USE */
00106 #define ERRspoolfilenotfound 3002 /* ERROR_SPOOL_FILE_NOT_FOUND */
00107 #define ERRnostartdoc 3003 /* ERROR_SPL_NO_STARTDOC */
00108 #define ERRnoaddjob 3004 /* ERROR_SPL_NO_ADDJOB */
00109 #define ERRprintprocessoralreadyinstalled 3005 /* ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED */
00110 #define ERRprintmonitoralreadyinstalled 3006 /* ERROR_PRINT_MONITOR_ALREADY_INSTALLED */
00111 #define ERRinvalidprintmonitor 3007 /* ERROR_INVALID_PRINT_MONITOR */
00112 #define ERRprintmonitorinuse 3008 /* ERROR_PRINT_MONITOR_IN_USE */
00113 #define ERRprinterhasjobsqueued 3009 /* ERROR_PRINTER_HAS_JOBS_QUEUED */
00114 
00115 /* Error codes for the ERRSRV class */
00116 
00117 #define ERRerror 1 /* Non specific error code */
00118 #define ERRbadpw 2 /* Bad password */
00119 #define ERRbadtype 3 /* reserved */
00120 #define ERRaccess 4 /* No permissions to do the requested operation */
00121 #define ERRinvnid 5 /* tid invalid */
00122 #define ERRinvnetname 6 /* Invalid servername */
00123 #define ERRinvdevice 7 /* Invalid device */
00124 #define ERRqfull 49 /* Print queue full */
00125 #define ERRqtoobig 50 /* Queued item too big */
00126 #define ERRinvpfid 52 /* Invalid print file in smb_fid */
00127 #define ERRsmbcmd 64 /* Unrecognised command */
00128 #define ERRsrverror 65 /* smb server internal error */
00129 #define ERRfilespecs 67 /* fid and pathname invalid combination */
00130 #define ERRbadlink 68 /* reserved */
00131 #define ERRbadpermits 69 /* Access specified for a file is not valid */
00132 #define ERRbadpid 70 /* reserved */
00133 #define ERRsetattrmode 71 /* attribute mode invalid */
00134 #define ERRpaused 81 /* Message server paused */
00135 #define ERRmsgoff 82 /* Not receiving messages */
00136 #define ERRnoroom 83 /* No room for message */
00137 #define ERRrmuns 87 /* too many remote usernames */
00138 #define ERRtimeout 88 /* operation timed out */
00139 #define ERRnoresource  89 /* No resources currently available for request. */
00140 #define ERRtoomanyuids 90 /* too many userids */
00141 #define ERRbaduid 91 /* bad userid */
00142 #define ERRuseMPX 250 /* temporarily unable to use raw mode, use MPX mode */
00143 #define ERRuseSTD 251 /* temporarily unable to use raw mode, use standard mode */
00144 #define ERRcontMPX 252 /* resume MPX mode */
00145 #define ERRbadPW /* reserved */
00146 #define ERRnosupport 0xFFFF
00147 #define ERRunknownsmb 22 /* from NT 3.5 response */
00148 
00149 /* Error codes for the ERRHRD class */
00150 
00151 #define ERRnowrite 19 /* read only media */
00152 #define ERRbadunit 20 /* Unknown device */
00153 #define ERRnotready 21 /* Drive not ready */
00154 #define ERRbadcmd 22 /* Unknown command */
00155 #define ERRdata 23 /* Data (CRC) error */
00156 #define ERRbadreq 24 /* Bad request structure length */
00157 #define ERRseek 25
00158 #define ERRbadmedia 26
00159 #define ERRbadsector 27
00160 #define ERRnopaper 28
00161 #define ERRwrite 29 /* write fault */
00162 #define ERRread 30 /* read fault */
00163 #define ERRgeneral 31 /* General hardware failure */
00164 #define ERRwrongdisk 34
00165 #define ERRFCBunavail 35
00166 #define ERRsharebufexc 36 /* share buffer exceeded */
00167 #define ERRdiskfull 39
00168 
00169 
00170 /* these are win32 error codes. There are only a few places where
00171    these matter for Samba, primarily in the NT printing code */
00172 #define WERR_OK W_ERROR(0)
00173 #define WERR_BADFUNC W_ERROR(1)
00174 #define WERR_BADFILE W_ERROR(2)
00175 #define WERR_ACCESS_DENIED W_ERROR(5)
00176 #define WERR_BADFID W_ERROR(6)
00177 #define WERR_NOMEM W_ERROR(8)
00178 #define WERR_GENERAL_FAILURE W_ERROR(31)
00179 #define WERR_NOT_SUPPORTED W_ERROR(50)
00180 #define WERR_DEVICE_NOT_EXIST W_ERROR(55)
00181 #define WERR_PRINTQ_FULL W_ERROR(61)
00182 #define WERR_NO_SPOOL_SPACE W_ERROR(62)
00183 #define WERR_NO_SUCH_SHARE W_ERROR(67)
00184 #define WERR_ALREADY_EXISTS W_ERROR(80)
00185 #define WERR_BAD_PASSWORD W_ERROR(86)
00186 #define WERR_INVALID_PARAM W_ERROR(87)
00187 #define WERR_SEM_TIMEOUT W_ERROR(121)
00188 #define WERR_INSUFFICIENT_BUFFER W_ERROR(122)
00189 #define WERR_INVALID_NAME W_ERROR(123)
00190 #define WERR_UNKNOWN_LEVEL W_ERROR(124)
00191 #define WERR_OBJECT_PATH_INVALID W_ERROR(161)
00192 #define WERR_NO_MORE_ITEMS W_ERROR(259)
00193 #define WERR_MORE_DATA W_ERROR(234)
00194 #define WERR_INVALID_OWNER W_ERROR(1307)
00195 #define WERR_IO_PENDING W_ERROR(997)
00196 #define WERR_CAN_NOT_COMPLETE W_ERROR(1003)
00197 #define WERR_INVALID_FLAGS W_ERROR(1004)
00198 #define WERR_REG_CORRUPT W_ERROR(1015)
00199 #define WERR_REG_IO_FAILURE W_ERROR(1016)
00200 #define WERR_REG_FILE_INVALID W_ERROR(1017)
00201 #define WERR_NO_SUCH_SERVICE W_ERROR(1060)
00202 #define WERR_INVALID_SERVICE_CONTROL W_ERROR(1052)
00203 #define WERR_SERVICE_DISABLED W_ERROR(1058)
00204 #define WERR_SERVICE_NEVER_STARTED W_ERROR(1077)
00205 #define WERR_MACHINE_LOCKED W_ERROR(1271)
00206 #define WERR_NO_LOGON_SERVERS W_ERROR(1311)
00207 #define WERR_LOGON_FAILURE W_ERROR(1326)
00208 #define WERR_NO_SUCH_DOMAIN W_ERROR(1355)
00209 #define WERR_INVALID_SECURITY_DESCRIPTOR W_ERROR(1338)
00210 #define WERR_TIME_SKEW W_ERROR(1398)
00211 #define WERR_EVENTLOG_FILE_CORRUPT W_ERROR(1500)
00212 #define WERR_SERVER_UNAVAILABLE W_ERROR(1722)
00213 #define WERR_INVALID_FORM_NAME W_ERROR(1902)
00214 #define WERR_INVALID_FORM_SIZE W_ERROR(1903)
00215 #define WERR_BUF_TOO_SMALL W_ERROR(2123)
00216 #define WERR_JOB_NOT_FOUND W_ERROR(2151)
00217 #define WERR_DEST_NOT_FOUND W_ERROR(2152)
00218 #define WERR_NOT_LOCAL_DOMAIN W_ERROR(2320)
00219 #define WERR_DOMAIN_CONTROLLER_NOT_FOUND W_ERROR(2453)
00220 #define WERR_STATUS_MORE_ENTRIES   W_ERROR(0x0105)
00221 
00222 #define WERR_PRINTER_DRIVER_ALREADY_INSTALLED W_ERROR(ERRdriveralreadyinstalled)
00223 #define WERR_UNKNOWN_PORT W_ERROR(ERRunknownprinterport)
00224 #define WERR_UNKNOWN_PRINTER_DRIVER W_ERROR(ERRunknownprinterdriver)
00225 #define WERR_UNKNOWN_PRINTPROCESSOR W_ERROR(ERRunknownprintprocessor)
00226 #define WERR_INVALID_SEPARATOR_FILE W_ERROR(ERRinvalidseparatorfile)
00227 #define WERR_INVALID_PRIORITY W_ERROR(ERRinvalidjobpriority)
00228 #define WERR_INVALID_PRINTER_NAME W_ERROR(ERRinvalidprintername)
00229 #define WERR_PRINTER_ALREADY_EXISTS W_ERROR(ERRprinteralreadyexists)
00230 #define WERR_INVALID_PRINTER_COMMAND W_ERROR(ERRinvalidprintercommand)
00231 #define WERR_INVALID_DATATYPE W_ERROR(ERRinvaliddatatype)
00232 #define WERR_INVALID_ENVIRONMENT W_ERROR(ERRinvalidenvironment)
00233 
00234 #define WERR_UNKNOWN_PRINT_MONITOR W_ERROR(ERRunknownprintmonitor)
00235 #define WERR_PRINTER_DRIVER_IN_USE W_ERROR(ERRprinterdriverinuse)
00236 #define WERR_SPOOL_FILE_NOT_FOUND W_ERROR(ERRspoolfilenotfound)
00237 #define WERR_SPL_NO_STARTDOC W_ERROR(ERRnostartdoc)
00238 #define WERR_SPL_NO_ADDJOB W_ERROR(ERRnoaddjob)
00239 #define WERR_PRINT_PROCESSOR_ALREADY_INSTALLED W_ERROR(ERRprintprocessoralreadyinstalled)
00240 #define WERR_PRINT_MONITOR_ALREADY_INSTALLED W_ERROR(ERRprintmonitoralreadyinstalled)
00241 #define WERR_INVALID_PRINT_MONITOR W_ERROR(ERRinvalidprintmonitor)
00242 #define WERR_PRINT_MONITOR_IN_USE W_ERROR(ERRprintmonitorinuse)
00243 #define WERR_PRINTER_HAS_JOBS_QUEUED W_ERROR(ERRprinterhasjobsqueued)
00244 
00245 /* Configuration Manager Errors */
00246 /* Basically Win32 errors meanings are specific to the \ntsvcs pipe */
00247 
00248 #define WERR_CM_NO_MORE_HW_PROFILES W_ERROR(35)
00249 #define WERR_CM_NO_SUCH_VALUE W_ERROR(37)
00250 
00251 
00252 /* DFS errors */
00253 
00254 #ifndef NERR_BASE
00255 #define NERR_BASE (2100)
00256 #endif
00257 
00258 #define WERR_DFS_NO_SUCH_VOL            W_ERROR(NERR_BASE+562)
00259 #define WERR_DFS_NO_SUCH_SHARE          W_ERROR(NERR_BASE+565)
00260 #define WERR_DFS_NO_SUCH_SERVER         W_ERROR(NERR_BASE+573)
00261 #define WERR_DFS_INTERNAL_ERROR         W_ERROR(NERR_BASE+590)
00262 #define WERR_DFS_CANT_CREATE_JUNCT      W_ERROR(NERR_BASE+569)
00263 
00264 #define WERR_NET_NAME_NOT_FOUND         W_ERROR(NERR_BASE+210)
00265 
00266 
00267 #endif /* _DOSERR_H */

Sambaに対してSat Aug 29 21:22:54 2009に生成されました。  doxygen 1.4.7