/* vim: set filetype=c:
 *
 * errors.h86  -  DOS error codes
 *
 * Copyright (C) 2003-2007 Gero Kuhlmann <gero@gkminix.han.de>
 *
 *  This program 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 of the License, or
 *  any later version.
 *
 *  This program 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 this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Id: errors.h86,v 1.5 2007/01/06 18:30:52 gkminix Exp $
 */

#ifndef DOS_ERRORS_H86
#define DOS_ERRORS_H86


/*
 * This file can only get included into target C or assembler source files.
 */
#define GCC_INCLUDE
#include <compiler.h>



/*
 * DOS error codes
 */
#define	DOS_ERR_NOFN	1		/* function does not exist */
#define	DOS_ERR_NOFILE	2		/* file not found */
#define	DOS_ERR_NODIR	3		/* directory not found */
#define	DOS_ERR_TOOMANY	4		/* too many open files */
#define	DOS_ERR_NOACC	5		/* access denied */
#define	DOS_ERR_INVHDL	6		/* invalid file handle */
#define	DOS_ERR_INVMCB	7		/* invalid memory control block */
#define	DOS_ERR_NOMEM	8		/* not enough memory */
#define	DOS_ERR_INVMEM	9		/* invalid memory block address */
#define	DOS_ERR_INVENV	10		/* invalid environment */
#define	DOS_ERR_INVFORM	11		/* invalid format */
#define	DOS_ERR_INVACC	12		/* invalid access code */
#define	DOS_ERR_INVDATA	13		/* invalid data */
#define	DOS_ERR_INVDRV	15		/* invalid drive */
#define	DOS_ERR_DELACT	16		/* not allowed to delete active dir */
#define	DOS_ERR_NODEV	17		/* device not available */
#define	DOS_ERR_NOMORE	18		/* no more files */
#define	DOS_ERR_WRTPROT	19		/* disk is write protected */
#define	DOS_ERR_NODISK	20		/* disk device not available */
#define	DOS_ERR_NOTRDY	21		/* drive not ready */
#define	DOS_ERR_INVCMD	22		/* invalid disk command */
#define	DOS_ERR_CRCERR	23		/* CRC error */
#define	DOS_ERR_TIMOUT	24		/* time out of disk operation */
#define	DOS_ERR_SEARCH	25		/* error searching disk block */
#define	DOS_ERR_NODOS	26		/* no DOS diskette */
#define	DOS_ERR_NOSECT	27		/* sector not found */
#define	DOS_ERR_NOPAPER	28		/* no paper in printer */
#define	DOS_ERR_WRITE	29		/* write error */
#define	DOS_ERR_READ	30		/* read error */
#define	DOS_ERR_GENERAL	31		/* general error */


#endif

