1*9172SFei.Feng@Sun.COM/* 2*9172SFei.Feng@Sun.COM * Copyright (c) 2005, 2006 3*9172SFei.Feng@Sun.COM * Damien Bergamini <damien.bergamini@free.fr> 4*9172SFei.Feng@Sun.COM * 5*9172SFei.Feng@Sun.COM * Permission to use, copy, modify, and distribute this software for any 6*9172SFei.Feng@Sun.COM * purpose with or without fee is hereby granted, provided that the above 7*9172SFei.Feng@Sun.COM * copyright notice and this permission notice appear in all copies. 8*9172SFei.Feng@Sun.COM * 9*9172SFei.Feng@Sun.COM * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10*9172SFei.Feng@Sun.COM * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11*9172SFei.Feng@Sun.COM * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12*9172SFei.Feng@Sun.COM * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13*9172SFei.Feng@Sun.COM * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14*9172SFei.Feng@Sun.COM * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15*9172SFei.Feng@Sun.COM * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16*9172SFei.Feng@Sun.COM */ 17*9172SFei.Feng@Sun.COM 18*9172SFei.Feng@Sun.COM/* 19*9172SFei.Feng@Sun.COM * Copyright (c) 2003, 2004 David Young. All rights reserved. 20*9172SFei.Feng@Sun.COM * 21*9172SFei.Feng@Sun.COM * Redistribution and use in source and binary forms, with or 22*9172SFei.Feng@Sun.COM * without modification, are permitted provided that the following 23*9172SFei.Feng@Sun.COM * conditions are met: 24*9172SFei.Feng@Sun.COM * 1. Redistributions of source code must retain the above copyright 25*9172SFei.Feng@Sun.COM * notice, this list of conditions and the following disclaimer. 26*9172SFei.Feng@Sun.COM * 2. Redistributions in binary form must reproduce the above 27*9172SFei.Feng@Sun.COM * copyright notice, this list of conditions and the following 28*9172SFei.Feng@Sun.COM * disclaimer in the documentation and/or other materials provided 29*9172SFei.Feng@Sun.COM * with the distribution. 30*9172SFei.Feng@Sun.COM * 3. The name of David Young may not be used to endorse or promote 31*9172SFei.Feng@Sun.COM * products derived from this software without specific prior 32*9172SFei.Feng@Sun.COM * written permission. 33*9172SFei.Feng@Sun.COM * 34*9172SFei.Feng@Sun.COM * THIS SOFTWARE IS PROVIDED BY David Young ``AS IS'' AND ANY 35*9172SFei.Feng@Sun.COM * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 36*9172SFei.Feng@Sun.COM * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 37*9172SFei.Feng@Sun.COM * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL David 38*9172SFei.Feng@Sun.COM * Young BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 39*9172SFei.Feng@Sun.COM * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 40*9172SFei.Feng@Sun.COM * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 41*9172SFei.Feng@Sun.COM * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 42*9172SFei.Feng@Sun.COM * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 43*9172SFei.Feng@Sun.COM * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 44*9172SFei.Feng@Sun.COM * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 45*9172SFei.Feng@Sun.COM * OF SUCH DAMAGE. 46*9172SFei.Feng@Sun.COM */ 47