diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-09-28 23:42:46 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-09-28 23:42:46 +0000 |
commit | 011bb3d67ca56e6bddf36e5f082946fa031fbfab (patch) | |
tree | eeb9f5a45fae920cb3bdb67f96bf0d175f656a1b /sys | |
parent | 02c92012a5da91c5a77c8d5ccd22c7a2766af080 (diff) |
Remove an unused file.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/dkbad.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/sys/arch/i386/i386/dkbad.c b/sys/arch/i386/i386/dkbad.c deleted file mode 100644 index 030f681466e..00000000000 --- a/sys/arch/i386/i386/dkbad.c +++ /dev/null @@ -1,66 +0,0 @@ -/* $OpenBSD: dkbad.c,v 1.6 2003/06/02 23:27:47 millert Exp $ */ -/* $NetBSD: dkbad.c,v 1.4 1996/02/02 18:05:59 mycroft Exp $ */ - -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)dkbad.c 5.4 (Berkeley) 1/19/91 - */ - - -#ifndef NOBADSECT -#include <sys/param.h> -#include <sys/buf.h> -#include <sys/dkbad.h> - -/* - * Search the bad sector table looking for - * the specified sector. Return index if found. - * Return -1 if not found. - */ - -isbad(bt, cyl, trk, sec) - register struct dkbad *bt; -{ - register int i; - register long blk, bblk; - - blk = ((long)cyl << 16) + (trk << 8) + sec; - for (i = 0; i < NBT_BAD; i++) { - bblk = ((long)bt->bt_bad[i].bt_cyl << 16) + bt->bt_bad[i].bt_trksec; - if (blk == bblk) - return (i); - if (blk < bblk || bblk < 0) - break; - } - return (-1); -} -#endif |