1This regular expression package was originally developed by Henry Spencer. 2It bears the following copyright notice: 3 4********************************************************************** 5 6Copyright (c) 1998, 1999 Henry Spencer. All rights reserved. 7 8Development of this software was funded, in part, by Cray Research Inc., 9UUNET Communications Services Inc., Sun Microsystems Inc., and Scriptics 10Corporation, none of whom are responsible for the results. The author 11thanks all of them. 12 13Redistribution and use in source and binary forms -- with or without 14modification -- are permitted for any purpose, provided that 15redistributions in source form retain this entire copyright notice and 16indicate the origin and nature of any modifications. 17 18I'd appreciate being given credit for this package in the documentation 19of software which uses it, but that is not a requirement. 20 21THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 22INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 23AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 24HENRY SPENCER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 27OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 28WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 29OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 30ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 32********************************************************************** 33 34PostgreSQL adopted the code out of Tcl 8.4.1. Portions of regc_locale.c 35and re_syntax.n were developed by Tcl developers other than Henry; these 36files bear the Tcl copyright and license notice: 37 38********************************************************************** 39 40This software is copyrighted by the Regents of the University of 41California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState 42Corporation and other parties. The following terms apply to all files 43associated with the software unless explicitly disclaimed in 44individual files. 45 46The authors hereby grant permission to use, copy, modify, distribute, 47and license this software and its documentation for any purpose, provided 48that existing copyright notices are retained in all copies and that this 49notice is included verbatim in any distributions. No written agreement, 50license, or royalty fee is required for any of the authorized uses. 51Modifications to this software may be copyrighted by their authors 52and need not follow the licensing terms described here, provided that 53the new terms are clearly indicated on the first page of each file where 54they apply. 55 56IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY 57FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 58ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY 59DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE 60POSSIBILITY OF SUCH DAMAGE. 61 62THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, 63INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 64FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE 65IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE 66NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR 67MODIFICATIONS. 68 69GOVERNMENT USE: If you are acquiring this software on behalf of the 70U.S. government, the Government shall have only "Restricted Rights" 71in the software and related documentation as defined in the Federal 72Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you 73are acquiring the software on behalf of the Department of Defense, the 74software shall be classified as "Commercial Computer Software" and the 75Government shall have only "Restricted Rights" as defined in Clause 76252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the 77authors grant the U.S. Government and others acting in its behalf 78permission to use and distribute the software in accordance with the 79terms specified in this license. 80 81********************************************************************** 82 83Subsequent modifications to the code by the PostgreSQL project follow 84the same license terms as the rest of PostgreSQL. 85