source: trunk/server/libcli/util/doserr.h@ 752

Last change on this file since 752 was 414, checked in by Herwig Bauernfeind, 16 years ago

Samba 3.5.0: Initial import

File size: 7.7 KB
Line 
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
9
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.
14
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.
19
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/>.
22*/
23
24#ifndef _DOSERR_H
25#define _DOSERR_H
26
27/* Error classes */
28
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. */
33
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