176116Sdcs/* $NetBSD: saerrno.h,v 1.10 2007/11/23 04:32:14 isaki Exp $ */ 276116Sdcs 376116Sdcs/* 476116Sdcs * Copyright (c) 1988, 1993 576116Sdcs * The Regents of the University of California. All rights reserved. 676116Sdcs * 794290Sdcs * Redistribution and use in source and binary forms, with or without 876116Sdcs * modification, are permitted provided that the following conditions 976116Sdcs * are met: 1076116Sdcs * 1. Redistributions of source code must retain the above copyright 1176116Sdcs * notice, this list of conditions and the following disclaimer. 1276116Sdcs * 2. Redistributions in binary form must reproduce the above copyright 1376116Sdcs * notice, this list of conditions and the following disclaimer in the 1476116Sdcs * documentation and/or other materials provided with the distribution. 1594290Sdcs * 3. Neither the name of the University nor the names of its contributors 1694290Sdcs * may be used to endorse or promote products derived from this software 1794290Sdcs * without specific prior written permission. 1894290Sdcs * 1994290Sdcs * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2076116Sdcs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2176116Sdcs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2276116Sdcs * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2376116Sdcs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2476116Sdcs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2576116Sdcs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2676116Sdcs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2776116Sdcs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2876116Sdcs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2976116Sdcs * SUCH DAMAGE. 3076116Sdcs * 3176116Sdcs * @(#)saerrno.h 8.1 (Berkeley) 6/11/93 3276116Sdcs */ 3376116Sdcs 3476116Sdcs#include <sys/errno.h> 3576116Sdcs 3676116Sdcsextern int errno; 3776116Sdcs 3876116Sdcs/* special stand error codes */ 3976116Sdcs#define EADAPT (ELAST+1) /* bad adaptor */ 4076116Sdcs#define ECTLR (ELAST+2) /* bad controller */ 4176116Sdcs#define EUNIT (ELAST+3) /* bad drive */ 4276116Sdcs#define EPART (ELAST+4) /* bad partition */ 4376116Sdcs#define ERDLAB (ELAST+5) /* can't read disk label */ 4476116Sdcs#define EUNLAB (ELAST+6) /* unlabeled disk */ 4576116Sdcs#define EOFFSET (ELAST+7) /* relative seek not supported */ 4676116Sdcs#define ECMD (ELAST+8) /* undefined driver command */ 4776116Sdcs#define EBSE (ELAST+9) /* bad sector error */ 4876116Sdcs#define EWCK (ELAST+10) /* write check error */ 4976116Sdcs#define EECC (ELAST+11) /* uncorrectable ecc error */ 5076116Sdcs#define EHER (ELAST+12) /* hard error */ 5176116Sdcs#define ESALAST (ELAST+12) /* */ 5276116Sdcs