xref: /netbsd-src/usr.sbin/makefs/msdos.h (revision 50b513f12ff040bcdee27c5c3d42e114700e4613)
1*50b513f1Schristos /*	$NetBSD: msdos.h,v 1.3 2015/10/16 16:40:02 christos Exp $	*/
27e2d9be6Schristos 
37e2d9be6Schristos /*-
47e2d9be6Schristos  * Copyright (c) 2013 The NetBSD Foundation, Inc.
57e2d9be6Schristos  * All rights reserved.
67e2d9be6Schristos  *
77e2d9be6Schristos  * This code is derived from software contributed to The NetBSD Foundation
87e2d9be6Schristos  * by Christos Zoulas.
97e2d9be6Schristos  *
107e2d9be6Schristos  * Redistribution and use in source and binary forms, with or without
117e2d9be6Schristos  * modification, are permitted provided that the following conditions
127e2d9be6Schristos  * are met:
137e2d9be6Schristos  * 1. Redistributions of source code must retain the above copyright
147e2d9be6Schristos  *    notice, this list of conditions and the following disclaimer.
157e2d9be6Schristos  * 2. Redistributions in binary form must reproduce the above copyright
167e2d9be6Schristos  *    notice, this list of conditions and the following disclaimer in the
177e2d9be6Schristos  *    documentation and/or other materials provided with the distribution.
187e2d9be6Schristos  *
197e2d9be6Schristos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
207e2d9be6Schristos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
217e2d9be6Schristos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
227e2d9be6Schristos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
237e2d9be6Schristos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
247e2d9be6Schristos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
257e2d9be6Schristos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
267e2d9be6Schristos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
277e2d9be6Schristos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
287e2d9be6Schristos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
297e2d9be6Schristos  * POSSIBILITY OF SUCH DAMAGE.
307e2d9be6Schristos  */
317e2d9be6Schristos 
327e2d9be6Schristos struct vnode;
33980139beSchristos struct denode;
347e2d9be6Schristos 
357e2d9be6Schristos struct msdosfsmount *msdosfs_mount(struct vnode *, int);
367e2d9be6Schristos int msdosfs_root(struct msdosfsmount *, struct vnode *);
377e2d9be6Schristos 
387e2d9be6Schristos struct denode *msdosfs_mkfile(const char *, struct denode *, fsnode *);
397e2d9be6Schristos struct denode *msdosfs_mkdire(const char *, struct denode *, fsnode *);
40