2 Unix SMB/Netbios implementation.
4 SMB parameters and setup
5 Copyright (C) Andrew Tridgell 1992-2000
6 Copyright (C) John H Terpstra 1996-2000
7 Copyright (C) Luke Kenneth Casson Leighton 1996-2000
8 Copyright (C) Paul Ashton 1998-2000
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 2 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, write to the Free Software
22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 #define ERRDOS 0x01 /* Error is from the core DOS operating system set. */
31 #define ERRSRV 0x02 /* Error is generated by the server network file manager.*/
32 #define ERRHRD 0x03 /* Error is an hardware error. */
33 #define ERRCMD 0xFF /* Command was not in the "SMB" format. */
35 /* SMB X/Open error codes for the ERRDOS error class */
36 #define ERRsuccess 0 /* No error */
37 #define ERRbadfunc 1 /* Invalid function (or system call) */
38 #define ERRbadfile 2 /* File not found (pathname error) */
39 #define ERRbadpath 3 /* Directory not found */
40 #define ERRnofids 4 /* Too many open files */
41 #define ERRnoaccess 5 /* Access denied */
42 #define ERRbadfid 6 /* Invalid fid */
43 #define ERRnomem 8 /* Out of memory */
44 #define ERRbadmem 9 /* Invalid memory block address */
45 #define ERRbadenv 10 /* Invalid environment */
46 #define ERRbadaccess 12 /* Invalid open mode */
47 #define ERRbaddata 13 /* Invalid data (only from ioctl call) */
48 #define ERRres 14 /* reserved */
49 #define ERRbaddrive 15 /* Invalid drive */
50 #define ERRremcd 16 /* Attempt to delete current directory */
51 #define ERRdiffdevice 17 /* rename/move across different filesystems */
52 #define ERRnofiles 18 /* no more files found in file search */
53 #define ERRbadshare 32 /* Share mode on file conflict with open mode */
54 #define ERRlock 33 /* Lock request conflicts with existing lock */
55 #define ERRunsup 50 /* Request unsupported, returned by Win 95, RJS 20Jun98 */
56 #define ERRnosuchshare 67 /* You specified an invalid share name */
57 #define ERRfilexists 80 /* File in operation already exists */
58 #define ERRinvalidparam 87
59 #define ERRcannotopen 110 /* Cannot open the file specified */
60 #define ERRinsufficientbuffer 122
61 #define ERRinvalidname 123 /* Invalid name */
62 #define ERRunknownlevel 124
63 #define ERRnotlocked 158 /* This region is not locked by this locking context. */
65 #define ERRbadpipe 230 /* Named pipe invalid */
66 #define ERRpipebusy 231 /* All instances of pipe are busy */
67 #define ERRpipeclosing 232 /* named pipe close in progress */
68 #define ERRnotconnected 233 /* No process on other end of named pipe */
69 #define ERRmoredata 234 /* More data to be returned */
70 #define ERRnomoreitems 259
71 #define ERRbaddirectory 267 /* Invalid directory name in a path. */
72 #define ERReasnotsupported 282 /* Extended attributes */
73 #define ERRbuftoosmall 2123
74 #define ERRunknownipc 2142
75 #define ERRnosuchprintjob 2151
77 /* here's a special one from observing NT */
78 #define ERRnoipc 66 /* don't support ipc */
80 /* These errors seem to be only returned by the NT printer driver system */
82 #define ERRunknownprinterdriver 1797 /* ERROR_UNKNOWN_PRINTER_DRIVER */
83 #define ERRinvalidprintername 1801 /* ERROR_INVALID_PRINTER_NAME */
84 #define ERRinvaliddatatype 1804 /* ERROR_INVALID_DATATYPE */
85 #define ERRinvalidenvironment 1805 /* ERROR_INVALID_ENVIRONMENT */
86 #define ERRprinterdriverinuse 3001 /* ERROR_PRINTER_DRIVER_IN_USE */
88 /* Error codes for the ERRSRV class */
90 #define ERRerror 1 /* Non specific error code */
91 #define ERRbadpw 2 /* Bad password */
92 #define ERRbadtype 3 /* reserved */
93 #define ERRaccess 4 /* No permissions to do the requested operation */
94 #define ERRinvnid 5 /* tid invalid */
95 #define ERRinvnetname 6 /* Invalid servername */
96 #define ERRinvdevice 7 /* Invalid device */
97 #define ERRqfull 49 /* Print queue full */
98 #define ERRqtoobig 50 /* Queued item too big */
99 #define ERRinvpfid 52 /* Invalid print file in smb_fid */
100 #define ERRsmbcmd 64 /* Unrecognised command */
101 #define ERRsrverror 65 /* smb server internal error */
102 #define ERRfilespecs 67 /* fid and pathname invalid combination */
103 #define ERRbadlink 68 /* reserved */
104 #define ERRbadpermits 69 /* Access specified for a file is not valid */
105 #define ERRbadpid 70 /* reserved */
106 #define ERRsetattrmode 71 /* attribute mode invalid */
107 #define ERRpaused 81 /* Message server paused */
108 #define ERRmsgoff 82 /* Not receiving messages */
109 #define ERRnoroom 83 /* No room for message */
110 #define ERRrmuns 87 /* too many remote usernames */
111 #define ERRtimeout 88 /* operation timed out */
112 #define ERRnoresource 89 /* No resources currently available for request. */
113 #define ERRtoomanyuids 90 /* too many userids */
114 #define ERRbaduid 91 /* bad userid */
115 #define ERRuseMPX 250 /* temporarily unable to use raw mode, use MPX mode */
116 #define ERRuseSTD 251 /* temporarily unable to use raw mode, use standard mode */
117 #define ERRcontMPX 252 /* resume MPX mode */
118 #define ERRbadPW /* reserved */
119 #define ERRnosupport 0xFFFF
120 #define ERRunknownsmb 22 /* from NT 3.5 response */
122 /* Error codes for the ERRHRD class */
124 #define ERRnowrite 19 /* read only media */
125 #define ERRbadunit 20 /* Unknown device */
126 #define ERRnotready 21 /* Drive not ready */
127 #define ERRbadcmd 22 /* Unknown command */
128 #define ERRdata 23 /* Data (CRC) error */
129 #define ERRbadreq 24 /* Bad request structure length */
131 #define ERRbadmedia 26
132 #define ERRbadsector 27
133 #define ERRnopaper 28
134 #define ERRwrite 29 /* write fault */
135 #define ERRread 30 /* read fault */
136 #define ERRgeneral 31 /* General hardware failure */
137 #define ERRwrongdisk 34
138 #define ERRFCBunavail 35
139 #define ERRsharebufexc 36 /* share buffer exceeded */
140 #define ERRdiskfull 39
142 #endif /* _DOSERR_H */