00001 /* 00002 * WinDom: a high level GEM library 00003 * Copyright (c) 1997-2006 windom authors (see AUTHORS file) 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 * $Source: /cvsroot/windom/htdocs/doc/html/toserror_8h-source.html,v $ 00020 * Module : definition of TOS error (based on Atari Compendium) 00021 * 00022 * CVS info: 00023 * $Author: bercegeay $ 00024 * $Date: 2006/06/22 11:58:30 $ 00025 * $Revision: 1.5 $ 00026 */ 00027 00028 #ifndef __TOSERROR 00029 #define __TOSERROR 00030 00031 /* error codes unified for all libc 00032 * (except sozobonx that already has included xdlibs/errno.h 00033 * which is similar to this toserror.h) 00034 */ 00035 00036 #ifndef __SOZOBONX__ 00037 00038 #define E_OK 0 /* No error */ 00039 00040 /* BIOS errors (-1 to -31) */ 00041 00042 #define ERROR -1 /* Generic error */ 00043 #define EDRVNR -2 /* Drive not ready */ 00044 #define EUNCMD -3 /* Unknown command */ 00045 #define E_CRC -4 /* CRC error */ 00046 #define EBADRQ -5 /* Bad request */ 00047 #define E_SEEK -6 /* Seek error */ 00048 #define EMEDIA -7 /* Unknown media */ 00049 #define ESECNF -8 /* Sector not found */ 00050 #define EPAPER -9 /* Out of paper */ 00051 #define EWRITF -10 /* Write fault */ 00052 #define EREADF -11 /* Read fault */ 00053 #define EWRPRO -12 /* Device is write protected */ 00054 #define E_CHNG -14 /* Media change detected */ 00055 #define EUNDEV -15 /* Unknown device */ 00056 #define EBADSF -16 /* Bad sectors on format */ 00057 #define EOTHER -17 /* Insert other disk (request) */ 00058 00059 /* GEMDOS errors (from -32) */ 00060 00061 #define EINVFN -32 /* Invalid function */ 00062 #define ENOSYS -32 /* Invalid function */ 00063 #define EFILNF -33 /* File not found */ 00064 #define EPTHNF -34 /* Path not found */ 00065 #define ENHNDL -35 /* No more handles */ 00066 #define EACCDN -36 /* Acces denied */ 00067 #define EIHNDL -37 /* Invalid handle */ 00068 #define ENSMEM -39 /* Insufficient memory */ 00069 #define EIMBA -40 /* Invalid memory block address */ 00070 #define EDRIVE -46 /* Invalid drive specification */ 00071 #define ENSAME -47 /* Cross device rename */ 00072 #define ENMFIL -49 /* No more files */ 00073 #define ELOCKED -58 /* Record is already locked */ 00074 #define ENSLOCK -59 /* Invalid lock removal request */ 00075 #define ERANGE -64 /* Range error */ 00076 #define ENAMETOOLONG ERANGE 00077 #define EINTRN -65 /* Internal error */ 00078 #define EPLFMT -66 /* Invalid program load format */ 00079 #define EGSBF -67 /* Memory block growth failure */ 00080 #define ELOOP -80 /* Too many symbolic links */ 00081 #define EMOUNT -200 /* Mount point crossed */ 00082 00083 #else /* __SOZOBONX__ */ 00084 00085 /* constants needed by windom, but missing in xdlibs */ 00086 #define ENOSYS -32 /* Invalid function */ 00087 00088 #endif /* __SOZOBONX__ */ 00089 00090 #endif