1*4882a593SmuzhiyunCopyright 2003,2004 Colin Percival 2*4882a593SmuzhiyunAll rights reserved 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunRedistribution and use in source and binary forms, with or without 5*4882a593Smuzhiyunmodification, are permitted providing that the following conditions 6*4882a593Smuzhiyunare met: 7*4882a593Smuzhiyun1. Redistributions of source code must retain the above copyright 8*4882a593Smuzhiyun notice, this list of conditions and the following disclaimer. 9*4882a593Smuzhiyun2. Redistributions in binary form must reproduce the above copyright 10*4882a593Smuzhiyun notice, this list of conditions and the following disclaimer in the 11*4882a593Smuzhiyun documentation and/or other materials provided with the distribution. 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14*4882a593SmuzhiyunIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15*4882a593SmuzhiyunWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16*4882a593SmuzhiyunARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 17*4882a593SmuzhiyunDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*4882a593SmuzhiyunDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19*4882a593SmuzhiyunOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*4882a593SmuzhiyunHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 21*4882a593SmuzhiyunSTRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 22*4882a593SmuzhiyunIN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 23*4882a593SmuzhiyunPOSSIBILITY OF SUCH DAMAGE. 24