extern.h revision 1.12
11.12Schristos/* $NetBSD: extern.h,v 1.12 2013/01/17 18:33:58 christos Exp $ */ 21.1Schristos 31.1Schristos/* 41.1Schristos * Copyright (c) 1997 Christos Zoulas. All rights reserved. 51.1Schristos * 61.1Schristos * Redistribution and use in source and binary forms, with or without 71.1Schristos * modification, are permitted provided that the following conditions 81.1Schristos * are met: 91.1Schristos * 1. Redistributions of source code must retain the above copyright 101.1Schristos * notice, this list of conditions and the following disclaimer. 111.1Schristos * 2. Redistributions in binary form must reproduce the above copyright 121.1Schristos * notice, this list of conditions and the following disclaimer in the 131.1Schristos * documentation and/or other materials provided with the distribution. 141.1Schristos * 151.1Schristos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 161.1Schristos * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 171.1Schristos * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 181.1Schristos * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 191.1Schristos * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 201.1Schristos * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 211.1Schristos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 221.1Schristos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 231.1Schristos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 241.1Schristos * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 251.1Schristos */ 261.1Schristos 271.9Sdslint writelabel(int, struct disklabel *); 281.5Slukemint checklabel(struct disklabel *); 291.6Slukemvoid showinfo(FILE *, struct disklabel *, const char *); 301.6Slukemvoid showpartitions(FILE *, struct disklabel *, int); 311.7Schristosvoid showpartition(FILE *, struct disklabel *, int, int); 321.5Slukemvoid interact(struct disklabel *, int); 331.10Sjmmvint list_fs_types(void); 341.5Slukem 351.9Sdslextern char specname[]; 361.6Slukemextern int Cflag; 371.12Schristos 381.12Schristos#ifdef HAVE_NBTOOL_CONFIG_H 391.12Schristosstatic int 401.12Schristosdk_ioctl(int f, void *arg) 411.12Schristos{ 421.12Schristos errno = ENOTTY; 431.12Schristos return -1; 441.12Schristos} 451.12Schristos# define dk_ioctl(f, cmd, arg) dk_ioctl(f, arg) 461.12Schristos#else 471.12Schristos# define dk_ioctl(f, cmd, arg) ioctl(f, cmd, arg) 481.12Schristos#endif /* HAVE_NBTOOL_CONFIG_H */ 49