126594249SQin Michael Li/*- 2*dfa03ef6SQin Michael Li * Copyright (c) 2009 Martynas Venckus <martynas@openbsd.org> 326594249SQin Michael Li * Copyright (c) 2008 Weongyo Jeong 426594249SQin Michael Li * All rights reserved. 526594249SQin Michael Li * 626594249SQin Michael Li * Redistribution and use in source and binary forms, with or without 726594249SQin Michael Li * modification, are permitted provided that the following conditions 826594249SQin Michael Li * are met: 926594249SQin Michael Li * 1. Redistributions of source code must retain the above copyright 1026594249SQin Michael Li * notice, this list of conditions and the following disclaimer, 1126594249SQin Michael Li * without modification. 1226594249SQin Michael Li * 2. Redistributions in binary form must reproduce at minimum a disclaimer 1326594249SQin Michael Li * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 1426594249SQin Michael Li * redistribution must be conditioned upon including a substantially 1526594249SQin Michael Li * similar Disclaimer requirement for further binary redistribution. 1626594249SQin Michael Li * 1726594249SQin Michael Li * NO WARRANTY 1826594249SQin Michael Li * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1926594249SQin Michael Li * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2026594249SQin Michael Li * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 2126594249SQin Michael Li * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 2226594249SQin Michael Li * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 2326594249SQin Michael Li * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2426594249SQin Michael Li * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2526594249SQin Michael Li * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 2626594249SQin Michael Li * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2726594249SQin Michael Li * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 2826594249SQin Michael Li * THE POSSIBILITY OF SUCH DAMAGES. 2926594249SQin Michael Li */ 30