unix_devio.c revision 986fd29a0dc13f7608ef7f508f6e700bd7bc2720
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1991-1994, Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Emulate the firmware on Unix
* Only useful for testing the boot block code.
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
int
{
}
void *
{
int fd;
return (NULL);
}
return ((void *)fd);
}
int
{
}
static void
usage(void)
{
char mess[] = "Usage:\ta.out raw-device pathname\n";
exit(1);
}
static void
openfail(void)
{
char mess[] = "openfile failed\n";
exit(2);
}
extern int openfile(char *, char *);
extern int closefile(int);
int
{
if (argc != 3)
usage();
openfail();
return (0);
}
/*
* Sigh. These shouldn't be needed.
*/
void
{
}
void
{
}