11.1Spgoyette/* $NetBSD: powerd_rumpops.c,v 1.1 2010/12/19 22:52:08 pgoyette Exp $ */ 21.1Spgoyette 31.1Spgoyette/* 41.1Spgoyette * Copyright (c) 2010 The NetBSD Foundation, Inc. 51.1Spgoyette * All rights reserved. 61.1Spgoyette * 71.1Spgoyette * Redistribution and use in source and binary forms, with or without 81.1Spgoyette * modification, are permitted provided that the following conditions 91.1Spgoyette * are met: 101.1Spgoyette * 1. Redistributions of source code must retain the above copyright 111.1Spgoyette * notice, this list of conditions and the following disclaimer. 121.1Spgoyette * 2. Redistributions in binary form must reproduce the above copyright 131.1Spgoyette * notice, this list of conditions and the following disclaimer in the 141.1Spgoyette * documentation and/or other materials provided with the distribution. 151.1Spgoyette * 161.1Spgoyette * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 171.1Spgoyette * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 181.1Spgoyette * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 191.1Spgoyette * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 201.1Spgoyette * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 211.1Spgoyette * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 221.1Spgoyette * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 231.1Spgoyette * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 241.1Spgoyette * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 251.1Spgoyette * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 261.1Spgoyette * POSSIBILITY OF SUCH DAMAGE. 271.1Spgoyette */ 281.1Spgoyette 291.1Spgoyette#include <sys/cdefs.h> 301.1Spgoyette#ifndef lint 311.1Spgoyette__RCSID("$NetBSD: powerd_rumpops.c,v 1.1 2010/12/19 22:52:08 pgoyette Exp $"); 321.1Spgoyette#endif /* !lint */ 331.1Spgoyette 341.1Spgoyette#include <sys/types.h> 351.1Spgoyette#include <sys/time.h> 361.1Spgoyette#include <sys/event.h> 371.1Spgoyette 381.1Spgoyette#include <rump/rump.h> 391.1Spgoyette#include <rump/rump_syscalls.h> 401.1Spgoyette#include <rump/rumpclient.h> 411.1Spgoyette 421.1Spgoyette#include "prog_ops.h" 431.1Spgoyette 441.1Spgoyetteconst struct prog_ops prog_ops = { 451.1Spgoyette .op_init = rumpclient_init, 461.1Spgoyette 471.1Spgoyette .op_open = rump_sys_open, 481.1Spgoyette .op_close = rump_sys_close, 491.1Spgoyette .op_read = rump_sys_read, 501.1Spgoyette .op_fcntl = rump_sys_fcntl, 511.1Spgoyette .op_ioctl = rump_sys_ioctl, 521.1Spgoyette .op_kevent = rump_sys_kevent, 531.1Spgoyette .op_kqueue = rump_sys_kqueue, 541.1Spgoyette}; 55