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