xref: /netbsd-src/usr.sbin/fssconfig/fssconfig_rumpops.c (revision e8022dfde603e6bac72b06f072028cb3c0178e1a)
1*e8022dfdSpgoyette /*	$NetBSD: fssconfig_rumpops.c,v 1.2 2016/07/31 02:15:54 pgoyette Exp $	*/
2*e8022dfdSpgoyette 
3*e8022dfdSpgoyette /*
4*e8022dfdSpgoyette  * Copyright (c) 2009 The NetBSD Foundation, Inc.
5*e8022dfdSpgoyette  * All rights reserved.
6*e8022dfdSpgoyette  *
7*e8022dfdSpgoyette  * Redistribution and use in source and binary forms, with or without
8*e8022dfdSpgoyette  * modification, are permitted provided that the following conditions
9*e8022dfdSpgoyette  * are met:
10*e8022dfdSpgoyette  * 1. Redistributions of source code must retain the above copyright
11*e8022dfdSpgoyette  *    notice, this list of conditions and the following disclaimer.
12*e8022dfdSpgoyette  * 2. Redistributions in binary form must reproduce the above copyright
13*e8022dfdSpgoyette  *    notice, this list of conditions and the following disclaimer in the
14*e8022dfdSpgoyette  *    documentation and/or other materials provided with the distribution.
15*e8022dfdSpgoyette  *
16*e8022dfdSpgoyette  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17*e8022dfdSpgoyette  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18*e8022dfdSpgoyette  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19*e8022dfdSpgoyette  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20*e8022dfdSpgoyette  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21*e8022dfdSpgoyette  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22*e8022dfdSpgoyette  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23*e8022dfdSpgoyette  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24*e8022dfdSpgoyette  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25*e8022dfdSpgoyette  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26*e8022dfdSpgoyette  * POSSIBILITY OF SUCH DAMAGE.
27*e8022dfdSpgoyette  */
28*e8022dfdSpgoyette 
29*e8022dfdSpgoyette #include <sys/cdefs.h>
30*e8022dfdSpgoyette #ifndef lint
31*e8022dfdSpgoyette __RCSID("$NetBSD: fssconfig_rumpops.c,v 1.2 2016/07/31 02:15:54 pgoyette Exp $");
32*e8022dfdSpgoyette #endif /* !lint */
33*e8022dfdSpgoyette 
34*e8022dfdSpgoyette #include <sys/types.h>
35*e8022dfdSpgoyette #include <sys/ioctl.h>
36*e8022dfdSpgoyette #include <sys/stat.h>
37*e8022dfdSpgoyette #include <sys/statvfs.h>
38*e8022dfdSpgoyette 
39*e8022dfdSpgoyette #include <rump/rump.h>
40*e8022dfdSpgoyette #include <rump/rump_syscalls.h>
41*e8022dfdSpgoyette #include <rump/rumpclient.h>
42*e8022dfdSpgoyette 
43*e8022dfdSpgoyette #include "prog_ops.h"
44*e8022dfdSpgoyette 
45*e8022dfdSpgoyette const struct prog_ops prog_ops = {
46*e8022dfdSpgoyette 	.op_init =	rumpclient_init,
47*e8022dfdSpgoyette 	.op_open =	rump_sys_open,
48*e8022dfdSpgoyette 	.op_ioctl =	rump_sys_ioctl,
49*e8022dfdSpgoyette 	.op_pread =	rump_sys_pread,
50*e8022dfdSpgoyette 	.op_close =	rump_sys_close,
51*e8022dfdSpgoyette         .op_stat =	rump_sys_stat,
52*e8022dfdSpgoyette         .op_fstat =	rump_sys_fstat,
53*e8022dfdSpgoyette         .op_statvfs1 =	rump_sys_statvfs1,
54*e8022dfdSpgoyette };
55