mirror of
				https://github.com/FDOS/kernel.git
				synced 2025-11-04 05:05:11 +01:00 
			
		
		
		
	git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@485 6ac86273-5f31-0410-b378-82cca8765d1b
		
			
				
	
	
		
			89 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			89 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/****************************************************************/
 | 
						|
/*                                                              */
 | 
						|
/*                          error.h                             */
 | 
						|
/*                                                              */
 | 
						|
/*                    DOS-C error return codes                  */
 | 
						|
/*                                                              */
 | 
						|
/*                       December 1, 1991                       */
 | 
						|
/*                                                              */
 | 
						|
/*                      Copyright (c) 1995                      */
 | 
						|
/*                      Pasquale J. Villani                     */
 | 
						|
/*                      All Rights Reserved                     */
 | 
						|
/*                                                              */
 | 
						|
/* This file is part of DOS-C.                                  */
 | 
						|
/*                                                              */
 | 
						|
/* DOS-C is free software; you can redistribute it and/or       */
 | 
						|
/* modify it under the terms of the GNU General Public License  */
 | 
						|
/* as published by the Free Software Foundation; either version */
 | 
						|
/* 2, or (at your option) any later version.                    */
 | 
						|
/*                                                              */
 | 
						|
/* DOS-C is distributed in the hope that it will be useful, but */
 | 
						|
/* WITHOUT ANY WARRANTY; without even the implied warranty of   */
 | 
						|
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See    */
 | 
						|
/* the GNU General Public License for more details.             */
 | 
						|
/*                                                              */
 | 
						|
/* You should have received a copy of the GNU General Public    */
 | 
						|
/* License along with DOS-C; see the file COPYING.  If not,     */
 | 
						|
/* write to the Free Software Foundation, 675 Mass Ave,         */
 | 
						|
/* Cambridge, MA 02139, USA.                                    */
 | 
						|
/****************************************************************/
 | 
						|
 | 
						|
#ifdef MAIN
 | 
						|
#ifdef VERSION_STRINGS
 | 
						|
static BYTE *error_hRcsId =
 | 
						|
    "$Id$";
 | 
						|
#endif
 | 
						|
#endif
 | 
						|
 | 
						|
/* Internal system error returns                                */
 | 
						|
#define SUCCESS         0       /* Function was successful      */
 | 
						|
#define DE_INVLDFUNC    -1      /* Invalid function number      */
 | 
						|
#define DE_FILENOTFND   -2      /* File not found               */
 | 
						|
#define DE_PATHNOTFND   -3      /* Path not found               */
 | 
						|
#define DE_TOOMANY      -4      /* Too many open files          */
 | 
						|
#define DE_ACCESS       -5      /* Access denied                */
 | 
						|
#define DE_INVLDHNDL    -6      /* Invalid handle               */
 | 
						|
#define DE_MCBDESTRY    -7      /* Memory control blocks shot   */
 | 
						|
#define DE_NOMEM        -8      /* Insufficient memory          */
 | 
						|
#define DE_INVLDMCB     -9      /* Invalid memory control block */
 | 
						|
#define DE_INVLDENV     -10     /* Invalid enviornement         */
 | 
						|
#define DE_INVLDFMT     -11     /* Invalid format               */
 | 
						|
#define DE_INVLDACC     -12     /* Invalid access               */
 | 
						|
#define DE_INVLDDATA    -13     /* Invalid data                 */
 | 
						|
#define DE_INVLDDRV     -15     /* Invalid drive                */
 | 
						|
#define DE_RMVCUDIR     -16     /* Attempt remove current dir   */
 | 
						|
#define DE_DEVICE       -17     /* Not same device              */
 | 
						|
#define DE_NFILES       -18     /* No more files                */
 | 
						|
#define DE_WRTPRTCT     -19     /* No more files                */
 | 
						|
#define DE_BLKINVLD     -20     /* invalid block                */
 | 
						|
#define DE_INVLDBUF     -24     /* invalid buffer size, ext fnc */
 | 
						|
#define DE_SEEK         -25     /* error on file seek           */
 | 
						|
#define DE_HNDLDSKFULL  -28     /* handle disk full (?)         */
 | 
						|
 | 
						|
#define DE_INVLDPARM    -0x57   /* invalid parameter */
 | 
						|
 | 
						|
#define DE_DEADLOCK	-36
 | 
						|
#define DE_LOCK		-39
 | 
						|
 | 
						|
#define DE_FILEEXISTS   -80     /* File exists                  */
 | 
						|
 | 
						|
/* Critical error flags                                         */
 | 
						|
#define EFLG_READ       0x00    /* Read error                   */
 | 
						|
#define EFLG_WRITE      0x01    /* Write error                  */
 | 
						|
#define EFLG_RSVRD      0x00    /* Error in rserved area        */
 | 
						|
#define EFLG_FAT        0x02    /* Error in FAT area            */
 | 
						|
#define EFLG_DIR        0x04    /* Error in dir area            */
 | 
						|
#define EFLG_DATA       0x06    /* Error in data area           */
 | 
						|
#define EFLG_ABORT      0x08    /* Handler can abort            */
 | 
						|
#define EFLG_RETRY      0x10    /* Handler can retry            */
 | 
						|
#define EFLG_IGNORE     0x20    /* Handler can ignore           */
 | 
						|
#define EFLG_CHAR       0x80    /* Error in char or FAT image   */
 | 
						|
 | 
						|
/* error results returned after asking user                     */
 | 
						|
/* MS-DOS compatible -- returned by CriticalError               */
 | 
						|
#define CONTINUE        0
 | 
						|
#define RETRY           1
 | 
						|
#define ABORT           2
 | 
						|
#define FAIL            3
 | 
						|
 |