fssconfig_hostops.c revision 1.2
11.2Spgoyette/*	$NetBSD: fssconfig_hostops.c,v 1.2 2016/07/31 02:15:54 pgoyette Exp $	*/
21.2Spgoyette
31.2Spgoyette/*
41.2Spgoyette * Copyright (c) 2009 The NetBSD Foundation, Inc.
51.2Spgoyette * All rights reserved.
61.2Spgoyette *
71.2Spgoyette * Redistribution and use in source and binary forms, with or without
81.2Spgoyette * modification, are permitted provided that the following conditions
91.2Spgoyette * are met:
101.2Spgoyette * 1. Redistributions of source code must retain the above copyright
111.2Spgoyette *    notice, this list of conditions and the following disclaimer.
121.2Spgoyette * 2. Redistributions in binary form must reproduce the above copyright
131.2Spgoyette *    notice, this list of conditions and the following disclaimer in the
141.2Spgoyette *    documentation and/or other materials provided with the distribution.
151.2Spgoyette *
161.2Spgoyette * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
171.2Spgoyette * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
181.2Spgoyette * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
191.2Spgoyette * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
201.2Spgoyette * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
211.2Spgoyette * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
221.2Spgoyette * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
231.2Spgoyette * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
241.2Spgoyette * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
251.2Spgoyette * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
261.2Spgoyette * POSSIBILITY OF SUCH DAMAGE.
271.2Spgoyette */
281.2Spgoyette
291.2Spgoyette#include <sys/cdefs.h>
301.2Spgoyette#ifndef lint
311.2Spgoyette__RCSID("$NetBSD: fssconfig_hostops.c,v 1.2 2016/07/31 02:15:54 pgoyette Exp $");
321.2Spgoyette#endif /* !lint */
331.2Spgoyette
341.2Spgoyette#include <sys/types.h>
351.2Spgoyette#include <sys/ioctl.h>
361.2Spgoyette#include <sys/stat.h>
371.2Spgoyette#include <sys/statvfs.h>
381.2Spgoyette
391.2Spgoyette#include <fcntl.h>
401.2Spgoyette#include <unistd.h>
411.2Spgoyette
421.2Spgoyette#include "prog_ops.h"
431.2Spgoyette
441.2Spgoyetteconst struct prog_ops prog_ops = {
451.2Spgoyette	.op_open = open,
461.2Spgoyette	.op_ioctl = ioctl,
471.2Spgoyette	.op_pread = pread,
481.2Spgoyette	.op_close = close,
491.2Spgoyette	.op_stat = stat,
501.2Spgoyette	.op_fstat = fstat,
511.2Spgoyette	.op_statvfs1 = statvfs1,
521.2Spgoyette};
53