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