write_mips_disk.c revision 225736
14Srgrimes/*-
24Srgrimes * Copyright (c) 2006 Olivier Houchard
34Srgrimes * All rights reserved.
44Srgrimes *
54Srgrimes * Redistribution and use in source and binary forms, with or without
64Srgrimes * modification, are permitted provided that the following conditions
74Srgrimes * are met:
84Srgrimes * 1. Redistributions of source code must retain the above copyright
94Srgrimes *    notice, this list of conditions and the following disclaimer.
104Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
114Srgrimes *    notice, this list of conditions and the following disclaimer in the
124Srgrimes *    documentation and/or other materials provided with the distribution.
134Srgrimes *
144Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
154Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
164Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
174Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
184Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
194Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
204Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
214Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
224Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
234Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
244Srgrimes * SUCH DAMAGE.
254Srgrimes */
264Srgrimes
274Srgrimes#include <sys/cdefs.h>
284Srgrimes__FBSDID("$FreeBSD: stable/9/lib/libdisk/write_mips_disk.c 178765 2008-05-04 22:24:40Z gonzo $");
294Srgrimes
304Srgrimes#include <stdio.h>
314Srgrimes#include <stdlib.h>
324Srgrimes#include <unistd.h>
334Srgrimes#include <fcntl.h>
344Srgrimes#include <string.h>
354Srgrimes#include <err.h>
36556Srgrimes#include <sys/types.h>
3727424Skato#include <sys/stat.h>
3815392Sphk#include <sys/ioctl.h>
39757Sdg#include <sys/disklabel.h>
40757Sdg#include <paths.h>
41757Sdg#include "libdisk.h"
4215392Sphk
4315392Sphkint
444SrgrimesWrite_Disk(const struct disk *d1)
454Srgrimes{
4614835Sbde
4718842Sbde	return (0);
4813228Swollman}
4918702Sjkh