1110655Snectar/* 2110655Snectar * Copyright (c) 2001 Joerg Wunsch 3110655Snectar * 4110655Snectar * All rights reserved. 5110655Snectar * 6110655Snectar * Redistribution and use in source and binary forms, with or without 7238405Sjkim * modification, are permitted provided that the following conditions 8110655Snectar * are met: 9110655Snectar * 1. Redistributions of source code must retain the above copyright 10110655Snectar * notice, this list of conditions and the following disclaimer. 11110655Snectar * 2. Redistributions in binary form must reproduce the above copyright 12110655Snectar * notice, this list of conditions and the following disclaimer in the 13110655Snectar * documentation and/or other materials provided with the distribution. 14160819Ssimon * 15160819Ssimon * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR 16110655Snectar * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17160819Ssimon * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18110655Snectar * IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 19238405Sjkim * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20110655Snectar * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21110655Snectar * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22110655Snectar * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23110655Snectar * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24110655Snectar * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25110655Snectar * 26110655Snectar * $FreeBSD: releng/10.3/usr.sbin/fdread/fdutil.h 87992 2001-12-15 19:09:04Z joerg $ 27110655Snectar */ 28238405Sjkim 29238405Sjkim 30238405Sjkimvoid printstatus(struct fdc_status *fdcsp, int terse); 31110655Snectarvoid parse_fmt(const char *, enum fd_drivetype, 32110655Snectar struct fd_type, struct fd_type *); 33110655Snectarstruct fd_type *get_fmt(int, enum fd_drivetype); 34110655Snectarvoid print_fmt(struct fd_type); 35110655Snectarint getnum(const char *, int *); 36110655Snectarvoid getname(enum fd_drivetype, const char **, const char **); 37142429Snectar 38110655Snectar