xref: /openbsd-src/usr.sbin/makefs/msdos.h (revision 4af638d78c5e8dfcc5a7871d4bb63ff033dd441c)
1*4af638d7Stedu /*	$OpenBSD: msdos.h,v 1.3 2016/10/17 01:16:22 tedu Exp $	*/
26163fc9cSnatano /*	$NetBSD: msdos.h,v 1.3 2015/10/16 16:40:02 christos Exp $	*/
36163fc9cSnatano 
46163fc9cSnatano /*-
56163fc9cSnatano  * Copyright (c) 2013 The NetBSD Foundation, Inc.
66163fc9cSnatano  * All rights reserved.
76163fc9cSnatano  *
86163fc9cSnatano  * This code is derived from software contributed to The NetBSD Foundation
96163fc9cSnatano  * by Christos Zoulas.
106163fc9cSnatano  *
116163fc9cSnatano  * Redistribution and use in source and binary forms, with or without
126163fc9cSnatano  * modification, are permitted provided that the following conditions
136163fc9cSnatano  * are met:
146163fc9cSnatano  * 1. Redistributions of source code must retain the above copyright
156163fc9cSnatano  *    notice, this list of conditions and the following disclaimer.
166163fc9cSnatano  * 2. Redistributions in binary form must reproduce the above copyright
176163fc9cSnatano  *    notice, this list of conditions and the following disclaimer in the
186163fc9cSnatano  *    documentation and/or other materials provided with the distribution.
196163fc9cSnatano  *
206163fc9cSnatano  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
216163fc9cSnatano  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
226163fc9cSnatano  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
236163fc9cSnatano  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
246163fc9cSnatano  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
256163fc9cSnatano  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
266163fc9cSnatano  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
276163fc9cSnatano  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
286163fc9cSnatano  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
296163fc9cSnatano  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
306163fc9cSnatano  * POSSIBILITY OF SUCH DAMAGE.
316163fc9cSnatano  */
326163fc9cSnatano 
33*4af638d7Stedu struct mkfsvnode;
346163fc9cSnatano struct denode;
356163fc9cSnatano 
36*4af638d7Stedu struct msdosfsmount *msdosfs_mount(struct mkfsvnode *, int);
37*4af638d7Stedu int msdosfs_root(struct msdosfsmount *, struct mkfsvnode *);
386163fc9cSnatano 
396163fc9cSnatano struct denode *msdosfs_mkfile(const char *, struct denode *, fsnode *);
406163fc9cSnatano struct denode *msdosfs_mkdire(const char *, struct denode *, fsnode *);
41