1*45be1c61SMatthew Dillon /* 2*45be1c61SMatthew Dillon * Copyright (c) 2014 The DragonFly Project. All rights reserved. 3*45be1c61SMatthew Dillon * 4*45be1c61SMatthew Dillon * This code is derived from software contributed to The DragonFly Project 5*45be1c61SMatthew Dillon * by Matthew Dillon <dillon@backplane.com> 6*45be1c61SMatthew Dillon * 7*45be1c61SMatthew Dillon * Redistribution and use in source and binary forms, with or without 8*45be1c61SMatthew Dillon * modification, are permitted provided that the following conditions 9*45be1c61SMatthew Dillon * are met: 10*45be1c61SMatthew Dillon * 11*45be1c61SMatthew Dillon * 1. Redistributions of source code must retain the above copyright 12*45be1c61SMatthew Dillon * notice, this list of conditions and the following disclaimer. 13*45be1c61SMatthew Dillon * 2. Redistributions in binary form must reproduce the above copyright 14*45be1c61SMatthew Dillon * notice, this list of conditions and the following disclaimer in 15*45be1c61SMatthew Dillon * the documentation and/or other materials provided with the 16*45be1c61SMatthew Dillon * distribution. 17*45be1c61SMatthew Dillon * 3. Neither the name of The DragonFly Project nor the names of its 18*45be1c61SMatthew Dillon * contributors may be used to endorse or promote products derived 19*45be1c61SMatthew Dillon * from this software without specific, prior written permission. 20*45be1c61SMatthew Dillon * 21*45be1c61SMatthew Dillon * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22*45be1c61SMatthew Dillon * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23*45be1c61SMatthew Dillon * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24*45be1c61SMatthew Dillon * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25*45be1c61SMatthew Dillon * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26*45be1c61SMatthew Dillon * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, 27*45be1c61SMatthew Dillon * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28*45be1c61SMatthew Dillon * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 29*45be1c61SMatthew Dillon * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 30*45be1c61SMatthew Dillon * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 31*45be1c61SMatthew Dillon * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32*45be1c61SMatthew Dillon * SUCH DAMAGE. 33*45be1c61SMatthew Dillon */ 34*45be1c61SMatthew Dillon 35*45be1c61SMatthew Dillon #include "obp-utils.h" 36