From 896c0427df9d8eff5de6a1735dcd992e067df844 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 2 Aug 2002 19:26:55 +0000 Subject: [PATCH] Towards GPL --- LICENSE.zebra | 388 +++++++++++++++++++++++++++++++++++++++++++------- bfile/bfile.c | 132 +++-------------- bfile/cfile.c | 113 +++------------ bfile/cfile.h | 30 +++- bfile/commit.c | 78 +++------- bfile/mfile.c | 30 +++- dfa/agrep.c | 69 +++------ dfa/bset.c | 47 +++--- dfa/dfa.c | 117 +++------------ dfa/dfap.h | 62 +++----- dfa/grepper.c | 59 +++----- dfa/imalloc.c | 55 +++---- dfa/imalloc.h | 46 +++--- dfa/lexer.c | 69 +++------ dfa/lexer.h | 44 +++--- dfa/readfile.c | 58 +++----- dfa/set.c | 53 +++---- dfa/states.c | 51 +++---- dict/close.c | 48 +++---- dict/dclose.c | 39 ++--- dict/dcompact.c | 51 +++---- dict/delete.c | 53 +++---- dict/dictext.c | 54 +++---- dict/dicttest.c | 117 +++------------ dict/dopen.c | 49 +++---- dict/drdwr.c | 56 +++----- dict/insert.c | 100 +++---------- dict/lookgrep.c | 111 +++------------ dict/lookup.c | 61 +++----- dict/lookupec.c | 62 +++----- dict/open.c | 87 +++-------- dict/scan.c | 30 +++- doc/introduction.xml | 16 +-- include/bfile.h | 30 +++- include/bset.h | 40 +++--- include/charmap.h | 81 +++-------- include/dfa.h | 59 +++----- include/dict.h | 133 +++-------------- include/direntz.h | 50 +++---- include/isam.h | 74 +++------- include/isamb.h | 28 +++- include/isamc.h | 62 +++----- include/isamd.h | 39 ++--- include/isamg.h | 39 +++-- include/isams.h | 30 +++- include/mfile.h | 30 +++- include/passwddb.h | 36 +++-- include/recctrl.h | 155 +++----------------- include/res.h | 30 +++- include/rsbetween.h | 34 +++-- include/rsbool.h | 58 +++----- include/rset.h | 96 +++---------- include/rsisam.h | 47 +++--- include/rsisamb.h | 29 +++- include/rsisamc.h | 30 +++- include/rsisamd.h | 28 +++- include/rsisams.h | 30 +++- include/rsm_or.h | 47 +++--- include/rsnull.h | 43 +++--- include/rstemp.h | 53 +++---- include/set.h | 40 +++--- include/sortidx.h | 36 +++-- include/str.h | 43 +++--- include/zebra-lock.h | 23 +++ include/zebramap.h | 75 +++------- include/zebrautl.h | 54 +++---- include/zebraver.h | 31 +++- index/apitest.c | 29 +++- index/attribute.c | 73 +++------- index/compact.c | 36 +++-- index/dir.c | 98 +++---------- index/dirs.c | 85 +++-------- index/extract.c | 30 +++- index/index.h | 29 +++- index/invstat.c | 35 +++-- index/kcompare.c | 36 +++-- index/kdump.c | 100 +++---------- index/kinput.c | 35 +++-- index/lockidx.c | 102 +++---------- index/locksrv.c | 85 +++-------- index/lockutil.c | 30 +++- index/main.c | 29 +++- index/rank1.c | 58 +++----- index/recindex.c | 29 +++- index/recindex.h | 97 +++---------- index/recindxp.h | 72 +++------- index/recstat.c | 56 +++----- index/retrieve.c | 89 +++--------- index/sortidx.c | 30 +++- index/symtab.c | 49 +++---- index/trav.c | 29 +++- index/trunc.c | 31 ++-- index/zebraapi.c | 29 +++- index/zebraapi.h | 30 +++- index/zinfo.c | 30 +++- index/zinfo.h | 74 +++------- index/zrpn.c | 30 +++- index/zserver.c | 29 +++- index/zserver.h | 30 +++- index/zsets.c | 30 +++- isam/isam.c | 108 +++----------- isam/issh.c | 26 +++- isam/isutil.c | 42 +++--- isam/isutil.h | 39 ++--- isam/keyops.h | 36 +++-- isam/memory.c | 83 +++-------- isam/memory.h | 56 +++----- isam/physical.c | 82 +++-------- isam/physical.h | 46 +++--- isam/rootblk.c | 39 ++--- isam/rootblk.h | 39 ++--- isamb/isamb.c | 29 +++- isamc/isamc-p.h | 53 +++---- isamc/isamc.c | 105 +++----------- isamc/isamd-p.h | 35 +++-- isamc/isamd.c | 40 ++++-- isamc/merge-d.c | 122 ++++------------ isamc/merge.c | 34 ++++- isamg/isamg.c | 40 ++++-- isams/isams.c | 52 +++---- recctrl/grsread.h | 30 +++- recctrl/marcread.c | 30 +++- recctrl/recctrl.c | 63 +++----- recctrl/recgrs.c | 29 +++- recctrl/recgrs.h | 49 +++---- recctrl/rectext.c | 100 +++---------- recctrl/rectext.h | 45 +++--- recctrl/regxread.c | 29 +++- recctrl/sgmlread.c | 62 +++----- recctrl/xmlread.c | 29 +++- rset/rsbetween.c | 30 +++- rset/rsbool.c | 30 +++- rset/rset.c | 85 +++-------- rset/rsisam.c | 29 +++- rset/rsisamb.c | 29 +++- rset/rsisamc.c | 29 +++- rset/rsisamd.c | 41 +++--- rset/rsisams.c | 36 +++-- rset/rsm_or.c | 31 ++-- rset/rsnull.c | 82 +++-------- rset/rstemp.c | 30 +++- test/api/t1.c | 26 +++- test/api/t2.c | 26 +++- util/charmap.c | 31 ++-- util/dirent.c | 31 ++-- util/passtest.c | 23 +++ util/passwddb.c | 45 +++--- util/res-test.c | 51 +++---- util/res.c | 30 +++- util/zebra-lock.c | 23 +++ util/zebramap.c | 114 +++------------ zebra.spec | 8 +- 152 files changed, 3803 insertions(+), 4431 deletions(-) diff --git a/LICENSE.zebra b/LICENSE.zebra index e66fe41..d60c31a 100644 --- a/LICENSE.zebra +++ b/LICENSE.zebra @@ -1,50 +1,340 @@ -Zebra -Copyright (c) 1995-2002 Index Data ApS. - -All rights reserved. - -Use and redistribution in source or binary form, with or without -modification, of any or all of this software and documentation is -permitted, provided that the following Conditions 1 to 6 set out below -are met. - -1. Unless prior specific written permission is obtained this copyright -and permission notice appear with all copies of the software and its -documentation. Notices of copyright or attribution which appear at the -beginning of any file must remain unchanged. - -2. The names of Index Data or the individual authors may not be used -to endorse or promote products derived from this software without -specific prior written permission. - -3. Source code or binary versions of this software and its documentation -may be used freely in `not for profitĀ“ applications limited to databases -of 100,000 records maximum. Other applications - such as publishing over -100,000 records, providing for-pay services, distributing a product based -in whole or in part on this software or its documentation, or generally -distributing this software or its documentation under a different license -require a commercial license from Index Data. - -4. The software may be installed and used for evaluation purposes in -conjunction with such commercially licensed applications for a trial -period no longer than 60 days. - -5. Unless a prior specific written agreement is obtained THIS SOFTWARE -IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED, -OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL -INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR -CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING -FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE -POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -6. Commercial licenses and support agreements for Zebra and related -Index Data products such as Z'bol (c) - and written agreements -relating to these Conditions may be obtained only from Index Data -or its appointed agents as follows: - -Index Data: www.indexdata.dk -Fretwell-Downing Informatics: www.fdgroup.co.uk -Fretwell-Downing Informatics USA: www.fdi.com + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/bfile/bfile.c b/bfile/bfile.c index b0b8bea..b9372fe 100644 --- a/bfile/bfile.c +++ b/bfile/bfile.c @@ -1,112 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: bfile.c,v $ - * Revision 1.34 2002-07-16 13:17:53 heikki - * Removed a crash on zebraidx init, if the register area isn't there - * - * Revision 1.33 2002/04/04 14:14:13 adam - * Multiple registers (alpha early) - * - * Revision 1.32 2000/03/15 15:00:30 adam - * First work on threaded version. - * - * Revision 1.31 1999/12/08 15:03:11 adam - * Implemented bf_reset. - * - * Revision 1.30 1999/10/14 14:33:49 adam - * Added truncation 5=106. - * - * Revision 1.29 1999/05/26 07:49:12 adam - * C++ compilation. - * - * Revision 1.28 1999/05/12 13:08:05 adam - * First version of ISAMS. - * - * Revision 1.27 1999/02/02 14:50:01 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.26 1998/02/17 10:32:52 adam - * Fixed bug: binary files weren't opened with flag b on NT. - * - * Revision 1.25 1997/10/27 14:25:38 adam - * Fixed memory leaks. - * - * Revision 1.24 1997/09/18 08:59:16 adam - * Extra generic handle for the character mapping routines. - * - * Revision 1.23 1997/09/17 12:19:06 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.22 1997/09/09 13:37:52 adam - * Partial port to WIN95/NT. - * - * Revision 1.21 1996/10/29 13:56:13 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.20 1996/03/26 15:59:04 adam - * The directory of the shadow table file can be specified by the new - * bf_lockDir call. - * - * Revision 1.19 1996/02/05 12:28:58 adam - * Removed a LOG_LOG message. - * - * Revision 1.18 1996/01/02 08:59:06 quinn - * Changed "commit" setting to "shadow". - * - * Revision 1.17 1995/12/11 09:03:51 adam - * New function: cf_unlink. - * New member of commit file head: state (0) deleted, (1) hash file. - * - * Revision 1.16 1995/12/08 16:21:13 adam - * Work on commit/update. - * - * Revision 1.15 1995/12/01 16:24:28 adam - * Commit files use separate meta file area. - * - * Revision 1.14 1995/12/01 11:37:21 adam - * Cached/commit files implemented as meta-files. - * - * Revision 1.13 1995/11/30 17:00:49 adam - * Several bug fixes. Commit system runs now. - * - * Revision 1.12 1995/11/30 08:33:10 adam - * Started work on commit facility. - * - * Revision 1.11 1995/09/04 12:33:21 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.10 1994/08/25 10:15:54 quinn - * Trivial - * - * Revision 1.9 1994/08/24 08:45:48 quinn - * Using mfile. - * - * Revision 1.8 1994/08/23 15:03:34 quinn - * *** empty log message *** - * - * Revision 1.7 1994/08/23 14:25:45 quinn - * Added O_CREAT because some geek wanted it. Sheesh. - * - * Revision 1.6 1994/08/23 14:21:38 quinn - * Fixed call to log - * - * Revision 1.5 1994/08/18 08:10:08 quinn - * Minimal changes - * - * Revision 1.4 1994/08/17 14:27:32 quinn - * last mods - * - * Revision 1.2 1994/08/17 14:09:32 quinn - * Compiles cleanly (still only dummy). - * - * Revision 1.1 1994/08/17 13:55:08 quinn - * New blocksystem. dummy only - * - */ +/* $Id: bfile.c,v 1.35 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/bfile/cfile.c b/bfile/cfile.c index 5b27f49..9241385 100644 --- a/bfile/cfile.c +++ b/bfile/cfile.c @@ -1,93 +1,26 @@ -/* - * Copyright (C) 1995-2000, Index Data ApS - * All rights reserved. - * - * $Log: cfile.c,v $ - * Revision 1.26 2000-03-20 19:08:35 adam - * Added remote record import using Z39.50 extended services and Segment - * Requests. - * - * Revision 1.25 1999/05/26 07:49:12 adam - * C++ compilation. - * - * Revision 1.24 1999/05/12 13:08:06 adam - * First version of ISAMS. - * - * Revision 1.23 1998/10/15 13:09:29 adam - * Minor changes. - * - * Revision 1.22 1998/10/13 20:07:22 adam - * Changed some log messages. - * - * Revision 1.21 1998/08/24 17:29:52 adam - * Minor changes. - * - * Revision 1.20 1998/08/07 15:07:13 adam - * Fixed but in cf_commit_flat. - * - * Revision 1.19 1997/02/12 20:37:17 adam - * Changed the messages logged. No real code changed. - * - * Revision 1.18 1996/10/29 13:56:15 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.17 1996/04/19 16:49:00 adam - * Minor changes. - * - * Revision 1.16 1996/04/19 16:23:47 adam - * Serious bug fix in shadow implementation; function new_bucket might - * set wrong bucket number on new bucket. - * - * Revision 1.15 1996/04/18 16:02:56 adam - * Changed logging a bit. - * Removed warning message when commiting flat shadow files. - * - * Revision 1.14 1996/04/12 07:01:55 adam - * Yet another bug fix (next_block was initialized to 0; now set to 1). - * - * Revision 1.13 1996/04/09 14:48:49 adam - * Bug fix: offset calculation when using flat files was completely broken. - * - * Revision 1.12 1996/04/09 06:47:28 adam - * Function scan_areadef doesn't use sscanf (%n fails on this Linux). - * - * Revision 1.11 1996/03/26 15:59:05 adam - * The directory of the shadow table file can be specified by the new - * bf_lockDir call. - * - * Revision 1.10 1996/02/07 14:03:46 adam - * Work on flat indexed shadow files. - * - * Revision 1.9 1996/02/07 10:08:43 adam - * Work on flat shadow (not finished yet). - * - * Revision 1.8 1995/12/15 12:36:52 adam - * Moved hash file information to union. - * Renamed commit files. - * - * Revision 1.7 1995/12/15 10:35:07 adam - * Changed names of commit files. - * - * Revision 1.6 1995/12/11 09:03:53 adam - * New function: cf_unlink. - * New member of commit file head: state (0) deleted, (1) hash file. - * - * Revision 1.5 1995/12/08 16:21:14 adam - * Work on commit/update. - * - * Revision 1.4 1995/12/01 16:24:28 adam - * Commit files use separate meta file area. - * - * Revision 1.3 1995/12/01 11:37:22 adam - * Cached/commit files implemented as meta-files. - * - * Revision 1.2 1995/11/30 17:00:49 adam - * Several bug fixes. Commit system runs now. - * - * Revision 1.1 1995/11/30 08:33:11 adam - * Started work on commit facility. - * - */ +/* $Id: cfile.c,v 1.27 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/bfile/cfile.h b/bfile/cfile.h index ef0a692..43d69a9 100644 --- a/bfile/cfile.h +++ b/bfile/cfile.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1995-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: cfile.h,v 1.13 2000-03-20 19:08:35 adam Exp $ - */ +/* $Id: cfile.h,v 1.14 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef CFILE_H #define CFILE_H diff --git a/bfile/commit.c b/bfile/commit.c index ee95df3..5727679 100644 --- a/bfile/commit.c +++ b/bfile/commit.c @@ -1,58 +1,26 @@ -/* - * Copyright (C) 1995-1998, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: commit.c,v $ - * Revision 1.15 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.14 1998/08/07 15:07:16 adam - * Fixed but in cf_commit_flat. - * - * Revision 1.13 1996/10/29 13:56:16 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.12 1996/04/24 13:29:16 adam - * Work on optimized on commit operation. - * - * Revision 1.11 1996/04/23 12:36:41 adam - * Started work on more efficient commit operation. - * - * Revision 1.10 1996/04/18 16:02:56 adam - * Changed logging a bit. - * Removed warning message when commiting flat shadow files. - * - * Revision 1.9 1996/04/12 07:01:57 adam - * Yet another bug fix (next_block was initialized to 0; now set to 1). - * - * Revision 1.8 1996/02/07 14:03:49 adam - * Work on flat indexed shadow files. - * - * Revision 1.7 1996/02/07 10:08:46 adam - * Work on flat shadow (not finished yet). - * - * Revision 1.6 1995/12/15 12:36:53 adam - * Moved hash file information to union. - * Renamed commit files. - * - * Revision 1.5 1995/12/12 15:57:55 adam - * Implemented mf_unlink. cf_unlink uses mf_unlink. - * - * Revision 1.4 1995/12/11 09:03:55 adam - * New function: cf_unlink. - * New member of commit file head: state (0) deleted, (1) hash file. - * - * Revision 1.3 1995/12/01 16:24:29 adam - * Commit files use separate meta file area. - * - * Revision 1.2 1995/12/01 11:37:24 adam - * Cached/commit files implemented as meta-files. - * - * Revision 1.1 1995/11/30 08:33:13 adam - * Started work on commit facility. - * - */ +/* $Id: commit.c,v 1.16 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/bfile/mfile.c b/bfile/mfile.c index 8680c76..002a3f9 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: mfile.c,v 1.48 2002-07-25 13:45:49 adam Exp $ - */ +/* $Id: mfile.c,v 1.49 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* diff --git a/dfa/agrep.c b/dfa/agrep.c index 39d0f69..a741c1e 100644 --- a/dfa/agrep.c +++ b/dfa/agrep.c @@ -1,49 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: agrep.c,v $ - * Revision 1.12 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.11 1999/02/02 14:50:03 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.10 1997/09/09 13:37:57 adam - * Partial port to WIN95/NT. - * - * Revision 1.9 1996/10/29 13:57:18 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.8 1996/01/08 09:09:16 adam - * Function dfa_parse got 'const' string argument. - * New functions to define char mappings made public. - * - * Revision 1.7 1995/10/16 09:31:24 adam - * Bug fix. - * - * Revision 1.6 1995/09/28 09:18:51 adam - * Removed various preprocessor defines. - * - * Revision 1.5 1995/09/04 12:33:25 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.4 1995/01/24 16:00:21 adam - * Added -ansi to CFLAGS. - * Some changes to the dfa module. - * - * Revision 1.3 1994/09/27 16:31:18 adam - * First version of grepper: grep with error correction. - * - * Revision 1.2 1994/09/26 16:30:56 adam - * Minor changes. imalloc uses xmalloc now. - * - * Revision 1.1 1994/09/26 10:16:52 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - */ +/* $Id: agrep.c,v 1.13 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/dfa/bset.c b/dfa/bset.c index 2f326c9..b2aac53 100644 --- a/dfa/bset.c +++ b/dfa/bset.c @@ -1,27 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: bset.c,v $ - * Revision 1.5 1999-02-02 14:50:04 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1996/10/29 13:57:20 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.3 1995/09/04 12:33:25 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.2 1995/01/24 16:00:21 adam - * Added -ansi to CFLAGS. - * Some changes to the dfa module. - * - * Revision 1.1 1994/09/26 10:16:53 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - */ +/* $Id: bset.c,v 1.6 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dfa/dfa.c b/dfa/dfa.c index d7ef391..d52fc57 100644 --- a/dfa/dfa.c +++ b/dfa/dfa.c @@ -1,97 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dfa.c,v $ - * Revision 1.27 1999-07-15 12:05:32 adam - * Bug fix: Anyset (.) includes all 8-bit characters when charmap is defined. - * - * Revision 1.26 1999/05/26 07:49:12 adam - * C++ compilation. - * - * Revision 1.25 1999/02/02 14:50:05 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.24 1998/10/28 10:48:55 adam - * Added type cast to prevent warning. - * - * Revision 1.23 1998/09/02 14:15:28 adam - * Zebra uses GNU Configure. - * - * Revision 1.22 1998/06/24 12:16:10 adam - * Support for relations on text operands. Open range support in - * DFA module (i.e. [-j], [g-]). - * - * Revision 1.21 1998/06/22 11:33:39 adam - * Added two type casts. - * - * Revision 1.20 1998/06/08 14:40:44 adam - * Fixed problem with signed character(s) in regular expressions. - * - * Revision 1.19 1998/01/12 14:39:39 adam - * Fixed bug in term_Tnode. - * - * Revision 1.18 1997/09/29 09:05:17 adam - * Thread safe DFA module. We simply had to put a few static vars to - * the DFA_parse structure. - * - * Revision 1.17 1997/09/18 08:59:17 adam - * Extra generic handle for the character mapping routines. - * - * Revision 1.16 1997/09/05 15:29:57 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.15 1997/02/10 10:19:20 adam - * Added facility for open character sets, eg [a-]. - * - * Revision 1.14 1996/10/29 13:57:22 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.13 1996/06/17 14:24:08 adam - * Bug fix: read_charset didn't handle character mapping. - * - * Revision 1.12 1996/06/04 10:20:02 adam - * Added support for character mapping. - * - * Revision 1.11 1996/01/08 19:15:24 adam - * Allow single $ in expressions. - * - * Revision 1.10 1996/01/08 09:09:17 adam - * Function dfa_parse got 'const' string argument. - * New functions to define char mappings made public. - * - * Revision 1.9 1995/12/06 12:24:58 adam - * Removed verbatim mode code. - * - * Revision 1.8 1995/12/06 09:09:58 adam - * Work on left and right anchors. - * - * Revision 1.7 1995/11/27 09:23:02 adam - * New berbatim hook in regular expressions. "[]n ..". - * - * Revision 1.6 1995/10/16 09:31:25 adam - * Bug fix. - * - * Revision 1.5 1995/10/02 15:17:58 adam - * Bug fix in dfa_delete. - * - * Revision 1.4 1995/09/28 09:18:52 adam - * Removed various preprocessor defines. - * - * Revision 1.3 1995/09/04 12:33:26 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.2 1995/01/25 11:30:50 adam - * Simple error reporting when parsing regular expressions. - * Memory usage reduced. - * - * Revision 1.1 1995/01/24 16:02:52 adam - * New private header file in dfa module (dfap.h). - * Module no longer uses yacc to parse regular expressions. - * - */ +/* $Id: dfa.c,v 1.28 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dfa/dfap.h b/dfa/dfap.h index fd8bf93..ecd6392 100644 --- a/dfa/dfap.h +++ b/dfa/dfap.h @@ -1,42 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dfap.h,v $ - * Revision 1.9 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.8 1999/02/02 14:50:06 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.7 1997/09/29 09:05:17 adam - * Thread safe DFA module. We simply had to put a few static vars to - * the DFA_parse structure. - * - * Revision 1.6 1997/09/18 08:59:17 adam - * Extra generic handle for the character mapping routines. - * - * Revision 1.5 1997/09/05 15:29:58 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.4 1996/06/04 10:20:03 adam - * Added support for character mapping. - * - * Revision 1.3 1996/01/08 09:09:19 adam - * Function dfa_parse got 'const' string argument. - * New functions to define char mappings made public. - * - * Revision 1.2 1995/01/25 11:30:50 adam - * Simple error reporting when parsing regular expressions. - * Memory usage reduced. - * - * Revision 1.1 1995/01/24 16:02:53 adam - * New private header file in dfa module (dfap.h). - * Module no longer uses yacc to parse regular expressions. - * - */ +/* $Id: dfap.h,v 1.10 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef DFAP_H #define DFAP_H diff --git a/dfa/grepper.c b/dfa/grepper.c index baa9be7..d8830a1 100644 --- a/dfa/grepper.c +++ b/dfa/grepper.c @@ -1,39 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: grepper.c,v $ - * Revision 1.9 2000-09-05 14:04:05 adam - * Updates for prefix 'yaz_' for YAZ log functions. - * - * Revision 1.8 1999/02/02 14:50:07 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.7 1996/10/29 13:57:24 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.6 1996/01/08 09:09:20 adam - * Function dfa_parse got 'const' string argument. - * New functions to define char mappings made public. - * - * Revision 1.5 1995/09/04 12:33:26 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.4 1995/01/24 16:00:21 adam - * Added -ansi to CFLAGS. - * Some changes to the dfa module. - * - * Revision 1.3 1994/10/04 17:46:43 adam - * Function options now returns arg with error option. - * - * Revision 1.2 1994/10/03 17:22:18 adam - * Optimization of grepper. - * - * Revision 1.1 1994/09/27 16:31:18 adam - * First version of grepper: grep with error correction. - * - */ +/* $Id: grepper.c,v 1.10 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/dfa/imalloc.c b/dfa/imalloc.c index d93ea3b..f21b197 100644 --- a/dfa/imalloc.c +++ b/dfa/imalloc.c @@ -1,35 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: imalloc.c,v $ - * Revision 1.8 1999-02-02 14:50:08 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.7 1997/10/27 14:27:13 adam - * Minor changes. - * - * Revision 1.6 1996/10/29 13:57:25 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.5 1996/05/14 11:33:41 adam - * MEMDEBUG turned off by default. - * - * Revision 1.4 1995/09/04 12:33:26 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.3 1994/09/27 16:31:19 adam - * First version of grepper: grep with error correction. - * - * Revision 1.2 1994/09/26 16:30:56 adam - * Minor changes. imalloc uses xmalloc now. - * - * Revision 1.1 1994/09/26 10:16:54 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - */ +/* $Id: imalloc.c,v 1.9 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/dfa/imalloc.h b/dfa/imalloc.h index a53a4e8..af0b314 100644 --- a/dfa/imalloc.h +++ b/dfa/imalloc.h @@ -1,26 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: imalloc.h,v $ - * Revision 1.5 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.4 1999/02/02 14:50:09 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.3 1997/10/27 14:27:13 adam - * Minor changes. - * - * Revision 1.2 1996/05/14 11:33:41 adam - * MEMDEBUG turned off by default. - * - * Revision 1.1 1994/09/26 10:16:54 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - */ +/* $Id: imalloc.h,v 1.6 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifdef __cplusplus extern "C" { diff --git a/dfa/lexer.c b/dfa/lexer.c index ace18cc..b1005a6 100644 --- a/dfa/lexer.c +++ b/dfa/lexer.c @@ -1,49 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: lexer.c,v $ - * Revision 1.11 1999-02-02 14:50:10 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.10 1996/10/29 13:57:27 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.9 1996/05/14 11:33:41 adam - * MEMDEBUG turned off by default. - * - * Revision 1.8 1995/09/28 09:18:54 adam - * Removed various preprocessor defines. - * - * Revision 1.7 1995/09/04 12:33:27 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.6 1995/01/25 11:30:51 adam - * Simple error reporting when parsing regular expressions. - * Memory usage reduced. - * - * Revision 1.5 1995/01/24 16:00:22 adam - * Added -ansi to CFLAGS. - * Some changes to the dfa module. - * - * Revision 1.4 1994/10/04 17:46:44 adam - * Function options now returns arg with error option. - * - * Revision 1.3 1994/10/03 17:22:19 adam - * Optimization of grepper. - * - * Revision 1.2 1994/09/27 16:31:20 adam - * First version of grepper: grep with error correction. - * - * Revision 1.1 1994/09/26 10:16:55 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - * - * Adam Dickmeiss. 1992-1993 - * This module is actually very old... - */ +/* $Id: lexer.c,v 1.12 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dfa/lexer.h b/dfa/lexer.h index 305223e..4775fe9 100644 --- a/dfa/lexer.h +++ b/dfa/lexer.h @@ -1,24 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: lexer.h,v $ - * Revision 1.4 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.3 1999/02/02 14:50:11 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.2 1995/01/24 16:00:22 adam - * Added -ansi to CFLAGS. - * Some changes to the dfa module. - * - * Revision 1.1 1994/09/26 10:16:55 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - */ +/* $Id: lexer.h,v 1.5 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifdef __cplusplus extern "C" { diff --git a/dfa/readfile.c b/dfa/readfile.c index cd40c92..7131318 100644 --- a/dfa/readfile.c +++ b/dfa/readfile.c @@ -1,38 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: readfile.c,v $ - * Revision 1.8 1999-02-02 14:50:12 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.7 1996/10/29 13:57:28 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.6 1996/01/08 09:09:21 adam - * Function dfa_parse got 'const' string argument. - * New functions to define char mappings made public. - * - * Revision 1.5 1995/09/04 12:33:27 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.4 1995/01/25 11:30:51 adam - * Simple error reporting when parsing regular expressions. - * Memory usage reduced. - * - * Revision 1.3 1995/01/24 16:00:22 adam - * Added -ansi to CFLAGS. - * Some changes to the dfa module. - * - * Revision 1.2 1994/09/26 16:30:57 adam - * Minor changes. imalloc uses xmalloc now. - * - * Revision 1.1 1994/09/26 10:16:56 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - */ +/* $Id: readfile.c,v 1.9 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dfa/set.c b/dfa/set.c index aaf9313..5a2aa99 100644 --- a/dfa/set.c +++ b/dfa/set.c @@ -1,33 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: set.c,v $ - * Revision 1.7 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.6 1999/02/02 14:50:13 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.5 1996/10/29 13:57:29 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.4 1995/09/04 12:33:27 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.3 1995/02/06 10:12:55 adam - * Unused static function rm_SetElement was removed. - * - * Revision 1.2 1995/01/24 16:00:22 adam - * Added -ansi to CFLAGS. - * Some changes to the dfa module. - * - * Revision 1.1 1994/09/26 10:16:57 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - */ +/* $Id: set.c,v 1.8 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dfa/states.c b/dfa/states.c index 566036e..6492659 100644 --- a/dfa/states.c +++ b/dfa/states.c @@ -1,31 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: states.c,v $ - * Revision 1.6 1999-02-02 14:50:14 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.5 1996/10/29 13:57:31 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.4 1995/09/04 12:33:28 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.3 1995/01/25 11:30:51 adam - * Simple error reporting when parsing regular expressions. - * Memory usage reduced. - * - * Revision 1.2 1995/01/24 16:00:23 adam - * Added -ansi to CFLAGS. - * Some changes to the dfa module. - * - * Revision 1.1 1994/09/26 10:16:58 adam - * First version of dfa module in alex. This version uses yacc to parse - * regular expressions. This should be hand-made instead. - * - */ +/* $Id: states.c,v 1.7 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/close.c b/dict/close.c index eea8b1a..0044e9a 100644 --- a/dict/close.c +++ b/dict/close.c @@ -1,28 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: close.c,v $ - * Revision 1.6 1999-02-02 14:50:15 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.5 1994/09/01 17:49:36 adam - * Removed stupid line. Work on insertion in dictionary. Not finished yet. - * - * Revision 1.4 1994/09/01 17:44:06 adam - * depend include change. - * - * Revision 1.3 1994/08/18 12:40:52 adam - * Some development of dictionary. Not finished at all! - * - * Revision 1.2 1994/08/17 13:32:19 adam - * Use cache in dict - not in bfile. - * - * Revision 1.1 1994/08/16 16:26:47 adam - * Added dict. - * - */ +/* $Id: close.c,v 1.7 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/dclose.c b/dict/dclose.c index e66b96a..92142d8 100644 --- a/dict/dclose.c +++ b/dict/dclose.c @@ -1,19 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dclose.c,v $ - * Revision 1.5 1999-02-02 14:50:16 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1997/09/09 13:38:01 adam - * Partial port to WIN95/NT. - * - * Revision 1.3 1994/09/01 17:49:36 adam - * Removed stupid line. Work on insertion in dictionary. Not finished yet. - * - */ +/* $Id: dclose.c,v 1.6 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/dcompact.c b/dict/dcompact.c index 70a167b..e2f8a8c 100644 --- a/dict/dcompact.c +++ b/dict/dcompact.c @@ -1,31 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dcompact.c,v $ - * Revision 1.7 1999-11-30 13:48:03 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.6 1999/09/07 08:13:08 adam - * Removed log messages. - * - * Revision 1.5 1999/05/26 07:49:12 adam - * C++ compilation. - * - * Revision 1.4 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.3 1999/05/12 13:08:06 adam - * First version of ISAMS. - * - * Revision 1.2 1999/03/09 16:27:49 adam - * More work on SDRKit integration. - * - * Revision 1.1 1999/03/09 13:07:06 adam - * Work on dict_compact routine. - * - */ +/* $Id: dcompact.c,v 1.8 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/delete.c b/dict/delete.c index 8b217b1..6b0d565 100644 --- a/dict/delete.c +++ b/dict/delete.c @@ -1,33 +1,26 @@ -/* - * Copyright (C) 1994-2000, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: delete.c,v $ - * Revision 1.7 2000-12-05 09:59:10 adam - * Work on dict_delete_subtree. - * - * Revision 1.6 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.5 1999/02/02 14:50:17 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1996/02/02 13:43:50 adam - * The public functions simply use char instead of Dict_char to represent - * search strings. Dict_char is used internally only. - * - * Revision 1.3 1995/12/07 11:48:55 adam - * Insert operation obeys DICT_type = 1 (slack in page). - * Function dict_open exists if page size or magic aren't right. - * - * Revision 1.2 1995/12/06 17:48:30 adam - * Bug fix: delete didn't work. - * - * Revision 1.1 1995/12/06 14:52:21 adam - * New function: dict_delete. - * - */ +/* $Id: delete.c,v 1.8 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/dictext.c b/dict/dictext.c index 8f49431..06f13e3 100644 --- a/dict/dictext.c +++ b/dict/dictext.c @@ -1,34 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dictext.c,v $ - * Revision 1.8 2000-09-05 14:04:05 adam - * Updates for prefix 'yaz_' for YAZ log functions. - * - * Revision 1.7 1999/02/02 14:50:18 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.6 1996/10/29 14:00:02 adam - * Page size given by DICT_DEFAULT_PAGESIZE in dict.h. - * - * Revision 1.5 1996/01/31 21:03:59 adam - * Extra options. - * - * Revision 1.4 1995/09/04 12:33:31 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.3 1994/10/04 17:46:54 adam - * Function options now returns arg with error option. - * - * Revision 1.2 1994/09/28 13:07:08 adam - * Use log_mask_str now. - * - * Revision 1.1 1994/09/16 15:39:11 adam - * Initial code of lookup - not tested yet. - * - */ +/* $Id: dictext.c,v 1.9 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/dicttest.c b/dict/dicttest.c index da56a75..a21bb26 100644 --- a/dict/dicttest.c +++ b/dict/dicttest.c @@ -1,97 +1,26 @@ -/* - * Copyright (C) 1994-2000, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dicttest.c,v $ - * Revision 1.26 2002-04-04 14:14:13 adam - * Multiple registers (alpha early) - * - * Revision 1.25 2000/12/05 09:59:10 adam - * Work on dict_delete_subtree. - * - * Revision 1.24 2000/09/05 14:04:05 adam - * Updates for prefix 'yaz_' for YAZ log functions. - * - * Revision 1.23 2000/07/07 12:49:20 adam - * Optimized resultSetInsert{Rank,Sort}. - * - * Revision 1.22 1999/02/02 14:50:19 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.21 1996/10/29 14:00:03 adam - * Page size given by DICT_DEFAULT_PAGESIZE in dict.h. - * - * Revision 1.20 1996/03/20 09:35:16 adam - * Function dict_lookup_grep got extra parameter, init_pos, which marks - * from which position in pattern approximate pattern matching should occur. - * - * Revision 1.19 1996/02/02 13:43:50 adam - * The public functions simply use char instead of Dict_char to represent - * search strings. Dict_char is used internally only. - * - * Revision 1.18 1996/02/01 20:39:52 adam - * Bug fix: insert didn't work on 8-bit characters due to unsigned char - * compares in dict_strcmp (strcmp) and signed Dict_char. Dict_char is - * unsigned now. - * - * Revision 1.17 1995/12/06 17:48:30 adam - * Bug fix: delete didn't work. - * - * Revision 1.16 1995/10/09 16:18:31 adam - * Function dict_lookup_grep got extra client data parameter. - * - * Revision 1.15 1995/09/04 12:33:31 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.14 1994/10/04 17:46:55 adam - * Function options now returns arg with error option. - * - * Revision 1.13 1994/10/04 12:08:05 adam - * Some bug fixes and some optimizations. - * - * Revision 1.12 1994/10/03 17:23:03 adam - * First version of dictionary lookup with regular expressions and errors. - * - * Revision 1.11 1994/09/28 13:07:09 adam - * Use log_mask_str now. - * - * Revision 1.10 1994/09/26 10:17:24 adam - * Minor changes. - * - * Revision 1.9 1994/09/22 14:43:56 adam - * First functional version of lookup with error correction. A 'range' - * specified the maximum number of insertions+deletions+substitutions. - * - * Revision 1.8 1994/09/22 10:43:44 adam - * Two versions of depend. Type 1 is the tail-type compatible with - * all make programs. Type 2 is the GNU make with include facility. - * Type 2 is default. depend rule chooses current rule. - * - * Revision 1.7 1994/09/19 16:34:26 adam - * Depend rule change. Minor changes in dicttest.c - * - * Revision 1.6 1994/09/16 15:39:12 adam - * Initial code of lookup - not tested yet. - * - * Revision 1.5 1994/09/06 13:05:14 adam - * Further development of insertion. Some special cases are - * not properly handled yet! assert(0) are put here. The - * binary search in each page definitely reduce usr CPU. - * - * Revision 1.4 1994/09/01 17:49:37 adam - * Removed stupid line. Work on insertion in dictionary. Not finished yet. - * - * Revision 1.3 1994/09/01 17:44:06 adam - * depend include change. - * - * Revision 1.2 1994/08/18 12:40:54 adam - * Some development of dictionary. Not finished at all! - * - * Revision 1.1 1994/08/16 16:26:47 adam - * Added dict. - * - */ +/* $Id: dicttest.c,v 1.27 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/dopen.c b/dict/dopen.c index ecd742f..12e1e9c 100644 --- a/dict/dopen.c +++ b/dict/dopen.c @@ -1,29 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dopen.c,v $ - * Revision 1.8 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.7 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.6 1999/02/02 14:50:20 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.5 1997/09/17 12:19:07 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.4 1997/09/09 13:38:01 adam - * Partial port to WIN95/NT. - * - * Revision 1.3 1994/09/01 17:49:37 adam - * Removed stupid line. Work on insertion in dictionary. Not finished yet. - * - */ +/* $Id: dopen.c,v 1.9 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/drdwr.c b/dict/drdwr.c index 23ba730..dc6499b 100644 --- a/dict/drdwr.c +++ b/dict/drdwr.c @@ -1,36 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: drdwr.c,v $ - * Revision 1.12 1999-05-18 20:00:33 adam - * Minor fix. - * - * Revision 1.11 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.10 1999/02/02 14:50:21 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.9 1997/09/09 13:38:01 adam - * Partial port to WIN95/NT. - * - * Revision 1.8 1995/01/24 11:25:11 adam - * Removed stupid assertion. - * - * Revision 1.7 1994/10/05 10:47:15 adam - * Function pr_lru is non-static now. No warning no more. - * - * Revision 1.6 1994/09/06 13:05:14 adam - * Further development of insertion. Some special cases are - * not properly handled yet! assert(0) are put here. The - * binary search in each page definitely reduce usr CPU. - * - * Revision 1.5 1994/09/01 17:49:38 adam - * Removed stupid line. Work on insertion in dictionary. Not finished yet. - * - */ +/* $Id: drdwr.c,v 1.13 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/insert.c b/dict/insert.c index 1057d67..955a2cd 100644 --- a/dict/insert.c +++ b/dict/insert.c @@ -1,80 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: insert.c,v $ - * Revision 1.21 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.20 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.19 1999/02/02 14:50:22 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.18 1998/03/05 08:17:24 adam - * Added a few comments - no code changed. - * - * Revision 1.17 1996/05/14 15:49:09 adam - * Bug fix: In function split_page. In rare cases variable best_indxp was - * referenced. - * - * Revision 1.16 1996/02/02 13:43:50 adam - * The public functions simply use char instead of Dict_char to represent - * search strings. Dict_char is used internally only. - * - * Revision 1.15 1996/02/01 20:39:59 adam - * Bug fix: insert didn't work on 8-bit characters due to unsigned char - * compares in dict_strcmp (strcmp) and signed Dict_char. Dict_char is - * unsigned now. - * - * Revision 1.14 1995/12/07 11:48:56 adam - * Insert operation obeys DICT_type = 1 (slack in page). - * Function dict_open exists if page size or magic aren't right. - * - * Revision 1.13 1995/11/28 09:06:37 adam - * Fixed potential dangling pointer. - * - * Revision 1.12 1995/09/06 10:34:44 adam - * Memcpy in clean_page edited to satisfy checkergcc. - * - * Revision 1.11 1995/09/04 12:33:31 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.10 1994/10/05 12:16:48 adam - * Pagesize is a resource now. - * - * Revision 1.9 1994/09/16 15:39:13 adam - * Initial code of lookup - not tested yet. - * - * Revision 1.8 1994/09/16 12:35:01 adam - * New version of split_page which use clean_page for splitting. - * - * Revision 1.7 1994/09/12 08:06:42 adam - * Futher development of insert.c - * - * Revision 1.6 1994/09/06 13:05:15 adam - * Further development of insertion. Some special cases are - * not properly handled yet! assert(0) are put here. The - * binary search in each page definitely reduce usr CPU. - * - * Revision 1.5 1994/09/01 17:49:39 adam - * Removed stupid line. Work on insertion in dictionary. Not finished yet. - * - * Revision 1.4 1994/09/01 17:44:09 adam - * depend include change. - * - * Revision 1.3 1994/08/18 12:40:56 adam - * Some development of dictionary. Not finished at all! - * - * Revision 1.2 1994/08/17 13:32:19 adam - * Use cache in dict - not in bfile. - * - * Revision 1.1 1994/08/16 16:26:48 adam - * Added dict. - * - */ +/* $Id: insert.c,v 1.22 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/lookgrep.c b/dict/lookgrep.c index bde3771..aa01af5 100644 --- a/dict/lookgrep.c +++ b/dict/lookgrep.c @@ -1,91 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: lookgrep.c,v $ - * Revision 1.24 1999-05-26 07:49:12 adam - * C++ compilation. - * - * Revision 1.23 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.22 1999/02/02 14:50:23 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.21 1998/06/24 12:16:12 adam - * Support for relations on text operands. Open range support in - * DFA module (i.e. [-j], [g-]). - * - * Revision 1.20 1997/10/27 14:33:03 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - * Revision 1.19 1997/09/18 08:59:18 adam - * Extra generic handle for the character mapping routines. - * - * Revision 1.18 1997/09/05 15:29:58 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.17 1996/06/04 10:20:06 adam - * Added support for character mapping. - * - * Revision 1.16 1996/05/24 14:46:04 adam - * Added dict_grep_cmap function to define user-mapping in grep lookups. - * - * Revision 1.15 1996/03/20 09:35:18 adam - * Function dict_lookup_grep got extra parameter, init_pos, which marks - * from which position in pattern approximate pattern matching should occur. - * - * Revision 1.14 1996/02/02 13:43:51 adam - * The public functions simply use char instead of Dict_char to represent - * search strings. Dict_char is used internally only. - * - * Revision 1.13 1996/01/08 09:09:30 adam - * Function dfa_parse got 'const' string argument. - * - * Revision 1.12 1995/12/11 09:04:48 adam - * Bug fix: the lookup/scan/lookgrep didn't handle empty dictionary. - * - * Revision 1.11 1995/12/06 14:43:02 adam - * New function: dict_delete. - * - * Revision 1.10 1995/11/16 17:00:44 adam - * Changed stupid log. - * - * Revision 1.9 1995/10/27 13:58:09 adam - * Makes 'Database unavailable' diagnostic. - * - * Revision 1.8 1995/10/19 14:57:21 adam - * New feature: grep lookup saves length of longest prefix match. - * - * Revision 1.7 1995/10/17 18:01:22 adam - * Userfunc may return non-zero in which case the the grepping stops - * immediately. - * - * Revision 1.6 1995/10/09 16:18:32 adam - * Function dict_lookup_grep got extra client data parameter. - * - * Revision 1.5 1995/09/14 11:52:59 adam - * Grep handle function parameter info is const now. - * - * Revision 1.4 1995/01/24 16:01:02 adam - * Added -ansi to CFLAGS. - * Use new API of dfa module. - * - * Revision 1.3 1994/10/05 12:16:50 adam - * Pagesize is a resource now. - * - * Revision 1.2 1994/10/04 12:08:07 adam - * Some bug fixes and some optimizations. - * - * Revision 1.1 1994/10/03 17:23:04 adam - * First version of dictionary lookup with regular expressions and errors. - * - */ +/* $Id: lookgrep.c,v 1.25 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/lookup.c b/dict/lookup.c index f08de3c..465479d 100644 --- a/dict/lookup.c +++ b/dict/lookup.c @@ -1,41 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: lookup.c,v $ - * Revision 1.10 1999-05-15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.9 1999/02/02 14:50:25 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.8 1998/03/05 08:17:24 adam - * Added a few comments - no code changed. - * - * Revision 1.7 1996/02/02 13:43:51 adam - * The public functions simply use char instead of Dict_char to represent - * search strings. Dict_char is used internally only. - * - * Revision 1.6 1995/12/11 09:04:50 adam - * Bug fix: the lookup/scan/lookgrep didn't handle empty dictionary. - * - * Revision 1.5 1995/09/04 09:09:15 adam - * String arg in lookup is const. - * - * Revision 1.4 1994/10/05 12:16:51 adam - * Pagesize is a resource now. - * - * Revision 1.3 1994/09/26 10:17:25 adam - * Minor changes. - * - * Revision 1.2 1994/09/16 15:39:14 adam - * Initial code of lookup - not tested yet. - * - * Revision 1.1 1994/08/16 16:26:48 adam - * Added dict. - * - */ +/* $Id: lookup.c,v 1.11 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/lookupec.c b/dict/lookupec.c index 975e834..3fca01d 100644 --- a/dict/lookupec.c +++ b/dict/lookupec.c @@ -1,42 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: lookupec.c,v $ - * Revision 1.9 1999-05-26 07:49:13 adam - * C++ compilation. - * - * Revision 1.8 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.7 1999/02/02 14:50:26 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.6 1996/02/02 13:43:51 adam - * The public functions simply use char instead of Dict_char to represent - * search strings. Dict_char is used internally only. - * - * Revision 1.5 1995/01/24 16:01:03 adam - * Added -ansi to CFLAGS. - * Use new API of dfa module. - * - * Revision 1.4 1994/10/05 12:16:51 adam - * Pagesize is a resource now. - * - * Revision 1.3 1994/09/26 16:31:06 adam - * Minor changes. - * - * Revision 1.2 1994/09/22 14:43:57 adam - * First functional version of lookup with error correction. A 'range' - * specified the maximum number of insertions+deletions+substitutions. - * - * Revision 1.1 1994/09/22 10:43:44 adam - * Two versions of depend. Type 1 is the tail-type compatible with - * all make programs. Type 2 is the GNU make with include facility. - * Type 2 is default. depend rule chooses current rule. - * - */ +/* $Id: lookupec.c,v 1.10 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/dict/open.c b/dict/open.c index a4f136a..4feca53 100644 --- a/dict/open.c +++ b/dict/open.c @@ -1,67 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: open.c,v $ - * Revision 1.18 2002-05-03 13:47:15 adam - * make checkergcc happy - * - * Revision 1.17 2000/12/05 09:59:10 adam - * Work on dict_delete_subtree. - * - * Revision 1.16 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.15 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.14 1999/03/09 13:07:06 adam - * Work on dict_compact routine. - * - * Revision 1.13 1999/02/02 14:50:27 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.12 1997/09/17 12:19:07 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.11 1996/10/29 14:00:05 adam - * Page size given by DICT_DEFAULT_PAGESIZE in dict.h. - * - * Revision 1.10 1996/05/24 14:46:04 adam - * Added dict_grep_cmap function to define user-mapping in grep lookups. - * - * Revision 1.9 1996/02/02 13:43:51 adam - * The public functions simply use char instead of Dict_char to represent - * search strings. Dict_char is used internally only. - * - * Revision 1.8 1995/12/07 11:48:56 adam - * Insert operation obeys DICT_type = 1 (slack in page). - * Function dict_open exists if page size or magic aren't right. - * - * Revision 1.7 1995/09/04 12:33:32 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.6 1994/10/05 12:16:52 adam - * Pagesize is a resource now. - * - * Revision 1.5 1994/09/01 17:49:39 adam - * Removed stupid line. Work on insertion in dictionary. Not finished yet. - * - * Revision 1.4 1994/09/01 17:44:10 adam - * depend include change. - * - * Revision 1.3 1994/08/18 12:40:58 adam - * Some development of dictionary. Not finished at all! - * - * Revision 1.2 1994/08/17 13:32:20 adam - * Use cache in dict - not in bfile. - * - * Revision 1.1 1994/08/16 16:26:49 adam - * Added dict. - * - */ +/* $Id: open.c,v 1.19 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/dict/scan.c b/dict/scan.c index db65ab9..ce56e64 100644 --- a/dict/scan.c +++ b/dict/scan.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: scan.c,v 1.14 2002-01-14 01:52:22 adam Exp $ - */ +/* $Id: scan.c,v 1.15 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/doc/introduction.xml b/doc/introduction.xml index 645c0aa..ab8c4d2 100644 --- a/doc/introduction.xml +++ b/doc/introduction.xml @@ -1,5 +1,5 @@ - + Introduction @@ -147,7 +147,6 @@ Protocol facilities: Init, Search, Retrieve, Delete, Browse and Sort. - FIXME - Itemupdate. (Remove delete until that time, confuses people) -H @@ -186,13 +185,6 @@ - - - Some variant support (not fully implemented yet). - FIXME - Test if complete enough - is it worth mentioning at all -H - - - @@ -213,12 +205,6 @@ - - - *Complete the support for variants. - FIXME - who cares -H - - diff --git a/include/bfile.h b/include/bfile.h index 018a8d6..93871e4 100644 --- a/include/bfile.h +++ b/include/bfile.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: bfile.h,v 1.20 2002-04-04 14:14:13 adam Exp $ - */ +/* $Id: bfile.h,v 1.21 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef BFILE_H #define BFILE_H diff --git a/include/bset.h b/include/bset.h index 8f5a89f..a4b2f07 100644 --- a/include/bset.h +++ b/include/bset.h @@ -1,20 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: bset.h,v $ - * Revision 1.3 1999-02-02 14:50:30 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.2 1997/09/05 15:29:59 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.1 1994/09/26 10:17:42 adam - * Dfa-module header files. - * - */ +/* $Id: bset.h,v 1.4 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef BSET_H #define BSET_H diff --git a/include/charmap.h b/include/charmap.h index 326f0d4..6001b7a 100644 --- a/include/charmap.h +++ b/include/charmap.h @@ -1,61 +1,26 @@ -/* - * Copyright (c) 1995-1999, Index Data. - * - * All rights reserved. - * - * Use and redistribution in source or binary form, with or without - * modification, of any or all of this software and documentation is - * permitted, provided that the following conditions are met: - * - * 1. This copyright and permission notice appear with all copies of the - * software and its documentation. Notices of copyright or attribution - * which appear at the beginning of any file must remain unchanged. - * - * 2. The names of Index Data or the individual authors may not be used to - * endorse or promote products derived from this software without specific - * prior written permission. - * - * 3. Source code or binary versions of this software and its - * documentation may be used freely in not-for-profit applications. For - * profit applications - such as providing for-pay database services, - * marketing a product based in whole or in part on this software or its - * documentation, or generally distributing this software or its - * documentation under a different license - requires a commercial - * license from Index Data. The software may be installed and used for - * evaluation purposes in conjunction with a commercial application for a - * trial period no longer than 60 days. - * - * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND, - * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY - * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL, - * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR - * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF - * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE - * OF THIS SOFTWARE. - * - * $Log: charmap.h,v $ - * Revision 1.7 2002-04-04 20:50:36 adam - * Multi register works with record paths and data1 profile path - * - * Revision 1.6 1999/11/30 13:48:03 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.5 1999/09/07 07:19:21 adam - * Work on character mapping. Implemented replace rules. - * - * Revision 1.4 1997/10/27 14:33:04 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - * Revision 1.3 1997/09/05 15:29:59 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - */ +/* $Id: charmap.h,v 1.8 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef CHARMAP_H #define CHARMAP_H diff --git a/include/dfa.h b/include/dfa.h index a0bb90f..5416c13 100644 --- a/include/dfa.h +++ b/include/dfa.h @@ -1,39 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dfa.h,v $ - * Revision 1.9 1999-02-02 14:50:31 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.8 1997/09/18 08:59:18 adam - * Extra generic handle for the character mapping routines. - * - * Revision 1.7 1997/09/05 15:29:59 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.6 1996/06/04 10:20:10 adam - * Added support for character mapping. - * - * Revision 1.5 1996/01/08 09:09:48 adam - * Function dfa_parse got 'const' string argument. - * - * Revision 1.4 1995/01/25 11:31:04 adam - * Simple error reporting when parsing regular expressions. - * - * Revision 1.3 1995/01/24 16:01:30 adam - * Added -ansi to CFLAGS. - * New functions and change of data structures. - * - * Revision 1.2 1994/09/26 16:31:23 adam - * Minor changes. xmalloc declares xcalloc now. - * - * Revision 1.1 1994/09/26 10:17:43 adam - * Dfa-module header files. - * - */ +/* $Id: dfa.h,v 1.10 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef DFA_H #define DFA_H diff --git a/include/dict.h b/include/dict.h index ed1e61f..73ae9de 100644 --- a/include/dict.h +++ b/include/dict.h @@ -1,113 +1,26 @@ -/* - * Copyright (C) 1994-2000, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dict.h,v $ - * Revision 1.31 2000-12-05 09:59:10 adam - * Work on dict_delete_subtree. - * - * Revision 1.30 1999/11/30 13:48:03 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.29 1999/05/15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.28 1999/03/09 13:07:06 adam - * Work on dict_compact routine. - * - * Revision 1.27 1999/02/02 14:50:32 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.26 1997/09/18 08:59:18 adam - * Extra generic handle for the character mapping routines. - * - * Revision 1.25 1997/09/17 12:19:09 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.24 1997/09/05 15:30:00 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.23 1996/10/29 13:45:33 adam - * Changed definition of DICT_DEFAULT_PAGESIZE. - * - * Revision 1.22 1996/06/04 10:20:10 adam - * Added support for character mapping. - * - * Revision 1.21 1996/05/24 14:46:07 adam - * Added dict_grep_cmap function to define user-mapping in grep lookups. - * - * Revision 1.20 1996/03/20 09:35:23 adam - * Function dict_lookup_grep got extra parameter, init_pos, which marks - * from which position in pattern approximate pattern matching should occur. - * - * Revision 1.19 1996/02/02 13:43:54 adam - * The public functions simply use char instead of Dict_char to represent - * search strings. Dict_char is used internally only. - * - * Revision 1.18 1996/02/01 20:41:06 adam - * Bug fix: insert didn't work on 8-bit characters due to unsigned char - * compares in dict_strcmp (strcmp) and signed Dict_char. Dict_char is - * unsigned now. - * - * Revision 1.17 1995/12/07 11:47:04 adam - * Default pagesize is 4k instead of 8k. - * - * Revision 1.16 1995/12/06 14:41:13 adam - * New function: dict_delete. - * - * Revision 1.15 1995/10/27 13:59:17 adam - * Function dict_look_grep got extra parameter max_pos that upon return - * hold length of longest prefix that matches pattern. - * - * Revision 1.14 1995/10/09 16:18:35 adam - * Function dict_lookup_grep got extra client data parameter. - * - * Revision 1.13 1995/10/06 09:03:51 adam - * First version of scan. - * - * Revision 1.12 1995/09/14 11:53:02 adam - * Grep handle function parameter info is const now. - * - * Revision 1.11 1995/09/04 09:09:51 adam - * String arg in dict lookup is const. - * Minor changes. - * - * Revision 1.10 1994/10/05 12:16:58 adam - * Pagesize is a resource now. - * - * Revision 1.9 1994/10/04 12:08:19 adam - * Minor changes. - * - * Revision 1.8 1994/10/03 17:23:11 adam - * First version of dictionary lookup with regular expressions and errors. - * - * Revision 1.7 1994/09/22 10:44:47 adam - * Don't remember what changed!! - * - * Revision 1.6 1994/09/16 15:39:21 adam - * Initial code of lookup - not tested yet. - * - * Revision 1.5 1994/09/06 13:05:29 adam - * Further development of insertion. Some special cases are - * not properly handled yet! assert(0) are put here. The - * binary search in each page definitely reduce usr CPU. - * - * Revision 1.4 1994/09/01 17:44:40 adam - * Work on insertion in dictionary. Not finished yet. - * - * Revision 1.3 1994/08/18 12:41:12 adam - * Some development of dictionary. Not finished at all! - * - * Revision 1.2 1994/08/17 13:32:33 adam - * Use cache in dict - not in bfile. - * - * Revision 1.1 1994/08/16 16:26:53 adam - * Added dict. - * - */ +/* $Id: dict.h,v 1.32 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef DICT_H #define DICT_H diff --git a/include/direntz.h b/include/direntz.h index fcca6f7..77ec607 100644 --- a/include/direntz.h +++ b/include/direntz.h @@ -1,30 +1,26 @@ -/* - * Copyright (c) 1997-1999, Index Data. - * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: direntz.h,v $ - * Revision 1.6 2002-04-04 20:50:36 adam - * Multi register works with record paths and data1 profile path - * - * Revision 1.5 2002/04/04 14:14:13 adam - * Multiple registers (alpha early) - * - * Revision 1.4 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.3 1999/02/02 14:50:33 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.2 1997/09/17 12:19:09 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.1 1997/09/09 13:38:03 adam - * Partial port to WIN95/NT. - * - * - */ +/* $Id: direntz.h,v 1.7 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifdef WIN32 diff --git a/include/isam.h b/include/isam.h index 9ecc319..0e4488a 100644 --- a/include/isam.h +++ b/include/isam.h @@ -1,54 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isam.h,v $ - * Revision 1.14 1999-02-02 14:50:34 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.13 1997/09/17 12:19:09 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.12 1997/09/05 15:30:00 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.11 1996/10/29 13:43:44 adam - * Removed definition of SYSNO. - * - * Revision 1.10 1995/09/06 16:10:57 adam - * More work on boolean sets. - * - * Revision 1.9 1994/09/28 16:58:26 quinn - * Small mod. - * - * Revision 1.8 1994/09/28 12:56:09 quinn - * Added access functions (ISPT) - * - * Revision 1.7 1994/09/28 11:56:13 quinn - * Removed const from input to is_merge - * - * Revision 1.6 1994/09/28 11:29:28 quinn - * Added cmp parameter. - * - * Revision 1.5 1994/09/27 20:03:36 quinn - * Seems relatively bug-free. - * - * Revision 1.4 1994/09/26 17:05:54 quinn - * Trivial. - * - * Revision 1.3 1994/09/26 16:08:42 quinn - * Most of the functionality in place. - * - * Revision 1.2 1994/09/14 13:10:35 quinn - * Small changes - * - * Revision 1.1 1994/09/12 08:02:07 quinn - * Not functional yet - * - */ +/* $Id: isam.h,v 1.15 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ISAM_H #define ISAM_H diff --git a/include/isamb.h b/include/isamb.h index 67ff11b..359fd16 100644 --- a/include/isamb.h +++ b/include/isamb.h @@ -1,8 +1,26 @@ -/* - * Copyright (C) 2000-2002, Index Data - * All rights reserved. - * $Id: isamb.h,v 1.4 2002-07-15 11:50:45 adam Exp $ - */ +/* $Id: isamb.h,v 1.5 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ISAMB_H #define ISAMB_H diff --git a/include/isamc.h b/include/isamc.h index 6b80198..f7c248c 100644 --- a/include/isamc.h +++ b/include/isamc.h @@ -1,42 +1,26 @@ -/* - * Copyright (c) 1995-1997, Index Data. - * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isamc.h,v $ - * Revision 1.9 1999-07-14 10:59:26 adam - * Changed functions isc_getmethod, isams_getmethod. - * Improved fatal error handling (such as missing EXPLAIN schema). - * - * Revision 1.8 1999/06/30 09:08:23 adam - * Added coder to reset. - * - * Revision 1.7 1998/03/13 15:30:50 adam - * New functions isc_block_used and isc_block_size. Fixed 'leak' - * in isc_alloc_block. - * - * Revision 1.6 1997/09/17 12:19:10 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.5 1997/09/05 15:30:00 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.4 1996/11/08 11:08:01 adam - * New internal release. - * - * Revision 1.3 1996/11/01 13:35:03 adam - * New element, max_blocks_mem, that control how many blocks of max size - * to store in memory during isc_merge. - * - * Revision 1.2 1996/10/29 16:44:42 adam - * Added isc_type, isc_block macros. - * - * Revision 1.1 1996/10/29 13:40:37 adam - * First work. - * - */ +/* $Id: isamc.h,v 1.10 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ISAMC_H #define ISAMC_H diff --git a/include/isamd.h b/include/isamd.h index 158d553..f699448 100644 --- a/include/isamd.h +++ b/include/isamd.h @@ -1,19 +1,26 @@ -/* - * Copyright (c) 1995-2002, Index Data. - * See the file LICENSE for details. - * - * Isam-D, Heikki's second Isam. - * The first block of an isam entry contains deltas to the - * (possibly long) sequence of keys. Thus small changes consist - * only of adding deltas to a small list, and affect only one - * block. Occasionally the block gets full, and needs to be - * merged with the rest. - * - * Heikki Levanto - * - * Detailed log at the end of the file - * - */ +/* $Id$ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ISAMD_H #define ISAMD_H diff --git a/include/isamg.h b/include/isamg.h index eeb04e0..7f5cddb 100644 --- a/include/isamg.h +++ b/include/isamg.h @@ -1,14 +1,26 @@ -/* - * Copyright (c) 1995-2000, Index Data. - * See the file LICENSE for details. - * - * ISAM-G - Generic interface to all our ISAM types - * - * Heikki Levanto - * - * Detailed log at the end of the file - * - */ +/* $Id: isamg.h,v 1.2 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ISAMG_H #define ISAMG_H @@ -102,7 +114,10 @@ YAZ_END_CDECL /* * $Log: isamg.h,v $ - * Revision 1.1 2001-01-16 19:05:11 heikki + * Revision 1.2 2002-08-02 19:26:55 adam + * Towards GPL + * + * Revision 1.1 2001/01/16 19:05:11 heikki * Started to add isamg * * diff --git a/include/isams.h b/include/isams.h index bcde9d8..242b165 100644 --- a/include/isams.h +++ b/include/isams.h @@ -1,10 +1,26 @@ -/* - * Copyright (c) 1995-1999, Index Data. - * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: isams.h,v 1.2 1999-07-14 10:59:26 adam Exp $ - */ +/* $Id: isams.h,v 1.3 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ISAMS_H #define ISAMS_H diff --git a/include/mfile.h b/include/mfile.h index 81fd99e..31c7905 100644 --- a/include/mfile.h +++ b/include/mfile.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: mfile.h,v 1.17 2002-04-04 14:14:13 adam Exp $ - */ +/* $Id: mfile.h,v 1.18 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef MFILE_H #define MFILE_H diff --git a/include/passwddb.h b/include/passwddb.h index 357bfe4..13d469a 100644 --- a/include/passwddb.h +++ b/include/passwddb.h @@ -1,16 +1,26 @@ -/* - * Copyright (C) 1998, Index Data ApS - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: passwddb.h,v $ - * Revision 1.3 1999-05-26 07:49:13 adam - * C++ compilation. - * - * Revision 1.2 1998/06/25 09:55:47 adam - * Minor changes - fixex headers. - * - */ +/* $Id: passwddb.h,v 1.4 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef PASSWDDB_H #define PASSWDDB_H diff --git a/include/recctrl.h b/include/recctrl.h index d992dbc..71680b3 100644 --- a/include/recctrl.h +++ b/include/recctrl.h @@ -1,135 +1,26 @@ -/* - * Copyright (C) 1994-1998, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: recctrl.h,v $ - * Revision 1.37 2002-07-25 13:06:43 adam - * Character set negotiation updates - * - * Revision 1.36 2002/07/02 20:20:09 adam - * idzebra:{filename,score,size,localnumber} tags for XML - * - * Revision 1.35 2002/04/13 18:16:42 adam - * More XPATH work; common sequence numbers for extract keys - * - * Revision 1.34 2000/03/20 19:08:36 adam - * Added remote record import using Z39.50 extended services and Segment - * Requests. - * - * Revision 1.33 2000/02/25 13:24:49 adam - * Fixed bug regarding pointer conversion that showed up on OSF V5. - * - * Revision 1.32 1999/11/30 13:48:03 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.31 1999/09/07 07:19:21 adam - * Work on character mapping. Implemented replace rules. - * - * Revision 1.30 1999/05/21 12:00:17 adam - * Better diagnostics for extraction process. - * - * Revision 1.29 1999/05/20 12:57:18 adam - * Implemented TCL filter. Updated recctrl system. - * - * Revision 1.28 1999/03/02 16:15:42 quinn - * Added "tagsysno" and "tagrank" directives to zebra.cfg. - * - * Revision 1.27 1998/10/16 08:14:28 adam - * Updated record control system. - * - * Revision 1.26 1998/05/20 10:12:12 adam - * Implemented automatic EXPLAIN database maintenance. - * Modified Zebra to work with ASN.1 compiled version of YAZ. - * - * Revision 1.25 1998/03/11 11:19:04 adam - * Changed the way sequence numbers are generated. - * - * Revision 1.24 1998/03/05 08:38:46 adam - * New member recordSize in recRetrieveCtrl. - * - * Revision 1.23 1998/02/10 12:03:05 adam - * Implemented Sort. - * - * Revision 1.22 1997/10/27 14:33:04 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - * Revision 1.21 1997/09/18 08:59:19 adam - * Extra generic handle for the character mapping routines. - * - * Revision 1.20 1997/09/17 12:19:10 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.19 1997/09/05 15:30:02 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.18 1997/09/04 13:56:15 adam - * Added new filter grs.marc. where refers to - * abstract syntax. New method tellf in extract/retrieve control - * block. - * - * Revision 1.17 1997/04/30 08:56:04 quinn - * null - * - * Revision 1.16 1996/10/11 10:56:25 adam - * New module recctrl. Used to manage records (extract/retrieval). - * All record types are accessed by means of definitions in recctrl.h. - * - * Revision 1.15 1996/06/06 12:08:16 quinn - * Added showRecord Group entry - * - * Revision 1.14 1996/05/09 07:28:49 quinn - * Work towards phrases and multiple registers - * - * Revision 1.13 1996/05/01 13:44:05 adam - * Added seek function to the recExtractCtrl and recRetrieveCtrl control - * structures. Added end-of-file indicator function and start offset to - * recExtractCtrl. - * - * Revision 1.12 1996/01/17 15:01:25 adam - * Prototype changed for reader functions in extract/retrieve. File - * is identified by 'void *' instead of 'int'. - * - * Revision 1.11 1995/12/04 14:20:54 adam - * Extra arg to recType_byName. - * - * Revision 1.10 1995/10/16 14:03:06 quinn - * Changes to support element set names and espec1 - * - * Revision 1.9 1995/10/06 14:37:53 adam - * New result set method: r_score. - * Local no (sysno) and score is transferred to retrieveCtrl. - * - * Revision 1.8 1995/10/02 15:43:35 adam - * Extract uses file descriptors instead of FILE pointers. - * - * Revision 1.7 1995/10/02 15:18:09 adam - * Minor changes. - * - * Revision 1.6 1995/10/02 15:05:26 quinn - * Added a few fields. - * - * Revision 1.5 1995/10/02 14:55:52 quinn - * *** empty log message *** - * - * Revision 1.4 1995/09/27 16:17:29 adam - * More work on retrieve. - * - * Revision 1.3 1995/09/27 12:21:25 adam - * New function: recType_byName. - * - * Revision 1.2 1995/09/15 14:45:03 adam - * Retrieve control. - * - * Revision 1.1 1995/09/14 07:48:13 adam - * Record control management. - * - */ +/* $Id: recctrl.h,v 1.38 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RECCTRL_H #define RECCTRL_H diff --git a/include/res.h b/include/res.h index fce25f9..9eb90de 100644 --- a/include/res.h +++ b/include/res.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: res.h,v 1.11 2002-04-04 14:14:13 adam Exp $ - */ +/* $Id: res.h,v 1.12 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RES_H #define RES_H diff --git a/include/rsbetween.h b/include/rsbetween.h index 0390987..540a224 100644 --- a/include/rsbetween.h +++ b/include/rsbetween.h @@ -1,14 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * - * $Id: rsbetween.h,v 1.4 2002-08-01 08:53:35 adam Exp $ - * - * Result set that returns anything in between two things, - * typically start-tag, stuff, end-tag. - * - */ +/* $Id: rsbetween.h,v 1.5 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_BETWEEN_H #define RSET_BETWEEN_H diff --git a/include/rsbool.h b/include/rsbool.h index fc806a3..6bcf80a 100644 --- a/include/rsbool.h +++ b/include/rsbool.h @@ -1,38 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rsbool.h,v $ - * Revision 1.7 1999-02-02 14:50:37 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.6 1998/03/05 08:37:44 adam - * New result set model. - * - * Revision 1.5 1997/09/05 15:30:02 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.4 1995/12/11 09:07:53 adam - * New rset member 'flag', that holds various flags about a result set - - * currently 'volatile' (set is register dependent) and 'ranked' (set is - * ranked). - * New set types sand/sor/snot. They handle and/or/not for ranked and - * semi-ranked result sets. - * - * Revision 1.3 1995/09/07 13:58:08 adam - * New parameter: result-set file descriptor (RSFD) to support multiple - * positions within the same result-set. - * Boolean operators: and, or, not implemented. - * - * Revision 1.2 1995/09/06 16:10:57 adam - * More work on boolean sets. - * - * Revision 1.1 1995/09/06 13:27:37 adam - * New set type: bool. Not finished yet. - * - */ +/* $Id: rsbool.h,v 1.8 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_BOOL_H #define RSET_BOOL_H diff --git a/include/rset.h b/include/rset.h index c604a86..5830b4e 100644 --- a/include/rset.h +++ b/include/rset.h @@ -1,76 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rset.h,v $ - * Revision 1.18 2002-07-25 13:06:43 adam - * Character set negotiation updates - * - * Revision 1.17 2002/03/20 20:24:29 adam - * Hits per term. Returned in SearchResult-1 - * - * Revision 1.16 1999/02/02 14:50:38 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.15 1998/03/05 08:37:44 adam - * New result set model. - * - * Revision 1.14 1998/02/10 11:56:46 adam - * Implemented rset_dup. - * - * Revision 1.13 1997/12/18 10:54:24 adam - * New method result set method rs_hits that returns the number of - * hits in result-set (if known). The ranked result set returns real - * number of hits but only when not combined with other operands. - * - * Revision 1.12 1997/09/05 15:30:03 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.11 1995/12/11 09:07:53 adam - * New rset member 'flag', that holds various flags about a result set - - * currently 'volatile' (set is register dependent) and 'ranked' (set is - * ranked). - * New set types sand/sor/snot. They handle and/or/not for ranked and - * semi-ranked result sets. - * - * Revision 1.10 1995/10/12 12:40:36 adam - * Private info (buf) moved from struct rset_control to struct rset. - * Member control in rset is statically set in rset_create. - * - * Revision 1.9 1995/10/10 14:00:01 adam - * Function rset_open changed its wflag parameter to general flags. - * - * Revision 1.8 1995/10/06 14:37:53 adam - * New result set method: r_score. - * Local no (sysno) and score is transferred to retrieveCtrl. - * - * Revision 1.7 1995/09/07 13:58:08 adam - * New parameter: result-set file descriptor (RSFD) to support multiple - * positions within the same result-set. - * Boolean operators: and, or, not implemented. - * - * Revision 1.6 1995/09/06 16:10:58 adam - * More work on boolean sets. - * - * Revision 1.5 1995/09/04 15:20:13 adam - * More work on temp sets. is_open member removed. - * - * Revision 1.4 1995/09/04 09:09:52 adam - * String arg in dict lookup is const. - * Minor changes. - * - * Revision 1.3 1994/11/22 13:15:27 quinn - * Simple - * - * Revision 1.2 1994/11/04 13:21:21 quinn - * Working. - * - * Revision 1.1 1994/11/03 14:13:22 quinn - * Result set manipulation - * - */ +/* $Id: rset.h,v 1.19 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_H #define RSET_H diff --git a/include/rsisam.h b/include/rsisam.h index 956cb23..01880d7 100644 --- a/include/rsisam.h +++ b/include/rsisam.h @@ -1,27 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rsisam.h,v $ - * Revision 1.5 1999-02-02 14:50:39 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1998/03/05 08:37:44 adam - * New result set model. - * - * Revision 1.3 1997/09/05 15:30:04 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.2 1995/09/04 09:09:53 adam - * String arg in dict lookup is const. - * Minor changes. - * - * Revision 1.1 1994/11/04 13:21:23 quinn - * Working. - * - */ +/* $Id: rsisam.h,v 1.6 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_ISAM_H #define RSET_ISAM_H diff --git a/include/rsisamb.h b/include/rsisamb.h index 01f2dd3..043e430 100644 --- a/include/rsisamb.h +++ b/include/rsisamb.h @@ -1,9 +1,26 @@ -/* - * Copyright (C) 2001-2002, Index Data - * All rights reserved. - * - * $Id: rsisamb.h,v 1.1 2002-04-16 22:31:42 adam Exp $ - */ +/* $Id: rsisamb.h,v 1.2 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_ISAMB_H #define RSET_ISAMB_H diff --git a/include/rsisamc.h b/include/rsisamc.h index d443c15..04a2621 100644 --- a/include/rsisamc.h +++ b/include/rsisamc.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1996-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: rsisamc.h,v 1.6 2002-03-20 20:24:29 adam Exp $ - */ +/* $Id: rsisamc.h,v 1.7 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_ISAMC_H #define RSET_ISAMC_H diff --git a/include/rsisamd.h b/include/rsisamd.h index 990aaed..097d6ed 100644 --- a/include/rsisamd.h +++ b/include/rsisamd.h @@ -1,11 +1,27 @@ -/* - * Copyright (C) 1996-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss, - * - * $Id: rsisamd.h,v 1.2 2002-07-12 18:12:22 heikki Exp $ +/* $Id: rsisamd.h,v 1.3 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. */ + + #ifndef RSET_ISAMD_H #define RSET_ISAMD_H diff --git a/include/rsisams.h b/include/rsisams.h index 53385a4..6fa58c9 100644 --- a/include/rsisams.h +++ b/include/rsisams.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1996-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: rsisams.h,v 1.1 1999-05-12 15:24:25 adam Exp $ - */ +/* $Id: rsisams.h,v 1.2 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_ISAMS_H #define RSET_ISAMS_H diff --git a/include/rsm_or.h b/include/rsm_or.h index 2722f4a..bdf2de5 100644 --- a/include/rsm_or.h +++ b/include/rsm_or.h @@ -1,27 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rsm_or.h,v $ - * Revision 1.5 1999-02-02 14:50:41 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1998/03/05 08:37:44 adam - * New result set model. - * - * Revision 1.3 1997/09/05 15:30:04 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.2 1996/12/23 15:29:54 adam - * More work on truncation algorithm. - * - * Revision 1.1 1996/12/20 11:06:45 adam - * Implemented multi-or result set. - * - * - */ +/* $Id: rsm_or.h,v 1.6 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_M_OR_H #define RSET_M_OR_H diff --git a/include/rsnull.h b/include/rsnull.h index 14548fe..6970455 100644 --- a/include/rsnull.h +++ b/include/rsnull.h @@ -1,23 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rsnull.h,v $ - * Revision 1.4 1999-02-02 14:50:42 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.3 1998/03/05 08:37:44 adam - * New result set model. - * - * Revision 1.2 1997/09/05 15:30:05 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.1 1995/09/06 10:36:16 adam - * Null set implemented. - * - */ +/* $Id: rsnull.h,v 1.5 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_NULL_H #define RSET_NULL_H diff --git a/include/rstemp.h b/include/rstemp.h index 4f62164..be4795d 100644 --- a/include/rstemp.h +++ b/include/rstemp.h @@ -1,33 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rstemp.h,v $ - * Revision 1.7 2002-03-20 20:24:29 adam - * Hits per term. Returned in SearchResult-1 - * - * Revision 1.6 1999/02/02 14:50:43 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.5 1998/03/05 08:37:44 adam - * New result set model. - * - * Revision 1.4 1997/09/17 12:19:11 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.3 1997/09/05 15:30:05 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.2 1995/09/04 15:20:13 adam - * More work on temp sets. is_open member removed. - * - * Revision 1.1 1994/11/04 13:21:23 quinn - * Working. - * - */ +/* $Id: rstemp.h,v 1.8 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RSET_TEMP_H #define RSET_TEMP_H diff --git a/include/set.h b/include/set.h index 270bc4a..a2ad0c8 100644 --- a/include/set.h +++ b/include/set.h @@ -1,20 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: set.h,v $ - * Revision 1.3 1999-02-02 14:50:44 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.2 1997/09/05 15:30:05 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.1 1994/09/26 10:17:44 adam - * Dfa-module header files. - * - */ +/* $Id: set.h,v 1.4 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef SET_H #define SET_H diff --git a/include/sortidx.h b/include/sortidx.h index bdfb477..eb79426 100644 --- a/include/sortidx.h +++ b/include/sortidx.h @@ -1,16 +1,26 @@ -/* - * Copyright (C) 1994-1998, Index Data ApS - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: sortidx.h,v $ - * Revision 1.2 1998-06-25 09:55:49 adam - * Minor changes - fixex headers. - * - * Revision 1.1 1998/02/10 12:03:05 adam - * Implemented Sort. - * - */ +/* $Id: sortidx.h,v 1.3 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef SORTIDX_H #define SORTIDX_H diff --git a/include/str.h b/include/str.h index 360c7b9..786b8f9 100644 --- a/include/str.h +++ b/include/str.h @@ -1,23 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: str.h,v $ - * Revision 1.4 1999-02-02 14:50:45 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.3 1997/09/05 15:30:06 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.2 1994/10/20 17:36:06 quinn - * Minimal - * - * Revision 1.1 1994/10/20 13:46:36 quinn - * String-management system - * - */ +/* $Id: str.h,v 1.5 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef STR_H #define STR_H diff --git a/include/zebra-lock.h b/include/zebra-lock.h index 7aa47f9..dd6133c 100644 --- a/include/zebra-lock.h +++ b/include/zebra-lock.h @@ -1,3 +1,26 @@ +/* $Id: zebra-lock.h,v 1.7 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ZEBRA_LOCK_H #define ZEBRA_LOCK_H diff --git a/include/zebramap.h b/include/zebramap.h index 9cf43fa..f8e1614 100644 --- a/include/zebramap.h +++ b/include/zebramap.h @@ -1,55 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: zebramap.h,v $ - * Revision 1.13 2002-04-04 20:50:36 adam - * Multi register works with record paths and data1 profile path - * - * Revision 1.12 2001/11/14 22:06:27 adam - * Rank-weight may be controlled via query. - * - * Revision 1.11 2001/01/22 10:42:56 adam - * Added numerical sort. - * - * Revision 1.10 1999/11/30 13:48:03 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.9 1999/09/07 07:19:21 adam - * Work on character mapping. Implemented replace rules. - * - * Revision 1.8 1999/02/12 13:29:21 adam - * Implemented position-flag for registers. - * - * Revision 1.7 1999/02/02 14:50:46 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.6 1998/06/23 15:33:33 adam - * Added feature to specify sort criteria in query (type 7 specifies - * sort flags). - * - * Revision 1.5 1998/03/05 08:39:26 adam - * Minor changes to zebramap data structures. Changed query - * mapping rules. - * - * Revision 1.4 1998/02/10 12:03:05 adam - * Implemented Sort. - * - * Revision 1.3 1997/11/18 10:05:08 adam - * Changed character map facility so that admin can specify character - * mapping files for each register type, w, p, etc. - * - * Revision 1.2 1997/10/29 12:02:47 adam - * Added missing prototype. - * - * Revision 1.1 1997/10/27 14:33:04 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - */ +/* $Id: zebramap.h,v 1.14 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ZEBRAMAP_H #define ZEBRAMAP_H diff --git a/include/zebrautl.h b/include/zebrautl.h index e33b8ec..dd5ae6a 100644 --- a/include/zebrautl.h +++ b/include/zebrautl.h @@ -1,34 +1,26 @@ -/* - * Copyright (C) 1995-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: zebrautl.h,v $ - * Revision 1.6 1999-11-30 13:48:03 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.5 1999/02/02 14:50:47 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1997/10/27 14:33:04 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - * Revision 1.3 1997/09/17 12:19:11 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.2 1997/09/05 15:30:06 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.1 1996/10/29 13:46:12 adam - * Removed obsolete headers alexpath, alexutil. Created zebrautl.h as - * a replacement. - * - */ +/* $Id: zebrautl.h,v 1.7 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ZEBRA_UTIL_H #define ZEBRA_UTIL_H diff --git a/include/zebraver.h b/include/zebraver.h index 2680419..0956f91 100644 --- a/include/zebraver.h +++ b/include/zebraver.h @@ -1,14 +1,31 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: zebraver.h,v 1.21 2002-07-25 13:06:43 adam Exp $ - */ +/* $Id: zebraver.h,v 1.22 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ZEBRAVER #define ZEBRAVER "1.3.0" #endif #ifndef ZEBRADATE -#define ZEBRADATE "$Date: 2002-07-25 13:06:43 $" +#define ZEBRADATE "$Date: 2002-08-02 19:26:55 $" #endif diff --git a/index/apitest.c b/index/apitest.c index 9bfe1af..787a6ac 100644 --- a/index/apitest.c +++ b/index/apitest.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1995-2000, Index Data - * All rights reserved. - * - * $Header: /home/cvsroot/idis/index/Attic/apitest.c,v 1.11 2002-04-04 14:14:13 adam Exp $ - */ +/* $Id: apitest.c,v 1.12 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/index/attribute.c b/index/attribute.c index efdb9ad..11914bd 100644 --- a/index/attribute.c +++ b/index/attribute.c @@ -1,53 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: attribute.c,v $ - * Revision 1.13 2002-04-04 14:14:13 adam - * Multiple registers (alpha early) - * - * Revision 1.12 2000/03/15 15:00:30 adam - * First work on threaded version. - * - * Revision 1.11 1999/11/30 13:48:03 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.10 1999/02/02 14:50:49 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.9 1998/05/20 10:12:14 adam - * Implemented automatic EXPLAIN database maintenance. - * Modified Zebra to work with ASN.1 compiled version of YAZ. - * - * Revision 1.8 1998/03/05 08:45:11 adam - * New result set model and modular ranking system. Moved towards - * descent server API. System information stored as "SGML" records. - * - * Revision 1.7 1997/10/29 12:05:01 adam - * Server produces diagnostic "Unsupported Attribute Set" when appropriate. - * - * Revision 1.6 1997/09/17 12:19:11 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.5 1997/09/05 15:30:08 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.4 1996/10/29 14:06:48 adam - * Include zebrautl.h instead of alexutil.h. - * - * Revision 1.3 1996/05/09 07:28:54 quinn - * Work towards phrases and multiple registers - * - * Revision 1.2 1995/11/15 19:13:07 adam - * Work on record management. - * - * - * This interface is used by other modules (the Z-server in particular) - * to normalize the attributes given in queries. - */ +/* $Id: attribute.c,v 1.14 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/index/compact.c b/index/compact.c index be32707..edc6eda 100644 --- a/index/compact.c +++ b/index/compact.c @@ -1,16 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: compact.c,v $ - * Revision 1.2 1999-05-15 14:36:37 adam - * Updated dictionary. Implemented "compression" of dictionary. - * - * Revision 1.1 1999/03/09 10:16:35 adam - * Work on compaction of dictionary/isamc. - * - */ +/* $Id: compact.c,v 1.3 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/index/dir.c b/index/dir.c index fecb46e..db679d0 100644 --- a/index/dir.c +++ b/index/dir.c @@ -1,78 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: dir.c,v $ - * Revision 1.22 2002-04-04 20:50:36 adam - * Multi register works with record paths and data1 profile path - * - * Revision 1.21 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.20 1999/02/02 14:50:50 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.19 1998/11/03 10:16:11 adam - * Uses stat and not lstat so that file traversal follows symbolic links. - * - * Revision 1.18 1997/09/25 14:55:33 adam - * Windows port uses stat and not lstat. - * - * Revision 1.17 1997/09/09 13:38:06 adam - * Partial port to WIN95/NT. - * - * Revision 1.16 1996/10/29 14:06:45 adam - * Include zebrautl.h instead of alexutil.h. - * - * Revision 1.15 1996/06/04 10:18:58 adam - * Minor changes - removed include of ctype.h. - * - * Revision 1.14 1996/04/09 06:49:18 adam - * Traversal of directories doesn't follow symbolic links. - * - * Revision 1.13 1996/03/21 14:50:08 adam - * File update uses modify-time instead of change-time. - * - * Revision 1.12 1996/02/05 12:29:55 adam - * Logging reduced a bit. - * The remaining running time is estimated during register merge. - * - * Revision 1.11 1995/11/20 16:59:44 adam - * New update method: the 'old' keys are saved for each records. - * - * Revision 1.10 1995/11/20 11:56:22 adam - * Work on new traversal. - * - * Revision 1.9 1995/10/30 13:42:12 adam - * Added errno.h - * - * Revision 1.8 1995/10/10 13:59:23 adam - * Function rset_open changed its wflag parameter to general flags. - * - * Revision 1.7 1995/09/28 09:19:40 adam - * xfree/xmalloc used everywhere. - * Extract/retrieve method seems to work for text records. - * - * Revision 1.6 1995/09/08 14:52:26 adam - * Minor changes. Dictionary is lower case now. - * - * Revision 1.5 1995/09/06 16:11:16 adam - * Option: only one word key per file. - * - * Revision 1.4 1995/09/04 12:33:41 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.3 1995/09/01 14:06:35 adam - * Split of work into more files. - * - * Revision 1.2 1995/09/01 10:57:07 adam - * Minor changes. - * - * Revision 1.1 1995/09/01 10:34:51 adam - * Added dir.c - * - */ +/* $Id: dir.c,v 1.23 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/index/dirs.c b/index/dirs.c index 1b4cf8e..67ddca9 100644 --- a/index/dirs.c +++ b/index/dirs.c @@ -1,65 +1,26 @@ -/* - * Copyright (C) 1994-2001, Index Data - * All rights reserved. - * - * $Log: dirs.c,v $ - * Revision 1.17 2001-03-29 14:07:14 adam - * Fixed nasty bug for fileUpdate. - * - * Revision 1.16 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.15 1999/02/02 14:50:51 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.14 1998/01/12 15:04:07 adam - * The test option (-s) only uses read-lock (and not write lock). - * - * Revision 1.13 1997/09/09 13:38:06 adam - * Partial port to WIN95/NT. - * - * Revision 1.12 1996/11/08 11:10:13 adam - * Buffers used during file match got bigger. - * Compressed ISAM support everywhere. - * Bug fixes regarding masking characters in queries. - * Redesigned Regexp-2 queries. - * - * Revision 1.11 1996/10/29 14:06:47 adam - * Include zebrautl.h instead of alexutil.h. - * - * Revision 1.10 1996/06/04 10:18:58 adam - * Minor changes - removed include of ctype.h. - * - * Revision 1.9 1996/04/23 12:39:07 adam - * Bug fix: In function dirs_del dict_delete is used to remove a file - * rather than a bogus dict_insert. - * - * Revision 1.8 1996/04/12 07:02:21 adam - * File update of single files. - * - * Revision 1.7 1996/03/21 14:50:09 adam - * File update uses modify-time instead of change-time. - * - * Revision 1.6 1996/02/02 13:44:43 adam - * The public dictionary functions simply use char instead of Dict_char - * to represent search strings. Dict_char is used internally only. - * - * Revision 1.5 1996/01/17 14:54:44 adam - * Function dirs_rmdir uses dict_delete. - * - * Revision 1.4 1995/11/30 08:34:27 adam - * Started work on commit facility. - * Changed a few malloc/free to xmalloc/xfree. - * - * Revision 1.3 1995/11/20 16:59:45 adam - * New update method: the 'old' keys are saved for each records. - * - * Revision 1.2 1995/11/20 11:56:23 adam - * Work on new traversal. - * - * Revision 1.1 1995/11/17 15:54:42 adam - * Started work on virtual directory structure. - */ +/* $Id: dirs.c,v 1.18 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/index/extract.c b/index/extract.c index a14b7f5..baaa341 100644 --- a/index/extract.c +++ b/index/extract.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: extract.c,v 1.119 2002-05-07 11:05:19 adam Exp $ - */ +/* $Id: extract.c,v 1.120 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #ifdef WIN32 diff --git a/index/index.h b/index/index.h index 3e532ff..a805d26 100644 --- a/index/index.h +++ b/index/index.h @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1995-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * $Id: index.h,v 1.84 2002-07-25 13:06:43 adam Exp $ - */ +/* $Id: index.h,v 1.85 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef INDEX_H #define INDEX_H diff --git a/index/invstat.c b/index/invstat.c index 69973eb..a72f8ac 100644 --- a/index/invstat.c +++ b/index/invstat.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * log at eof - * - */ +/* $Id: invstat.c,v 1.33 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include @@ -383,7 +399,10 @@ void zebra_register_statistics (ZebraHandle zh, int dumpdict) /* * * $Log: invstat.c,v $ - * Revision 1.32 2002-07-12 18:12:22 heikki + * Revision 1.33 2002-08-02 19:26:55 adam + * Towards GPL + * + * Revision 1.32 2002/07/12 18:12:22 heikki * Isam-D now stores small entries directly in the dictionary. * Needs more tuning and cleaning... * diff --git a/index/kcompare.c b/index/kcompare.c index 936929f..44d9c05 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -1,11 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * log at the end - * - * $Id - */ +/* $Id: kcompare.c,v 1.40 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include @@ -297,7 +312,10 @@ int key_SU_decode (int *ch, const unsigned char *out) /* * $Log: kcompare.c,v $ - * Revision 1.39 2002-04-12 14:55:22 adam + * Revision 1.40 2002-08-02 19:26:55 adam + * Towards GPL + * + * Revision 1.39 2002/04/12 14:55:22 adam * key_print_it * * Revision 1.38 2002/04/05 08:46:26 adam diff --git a/index/kdump.c b/index/kdump.c index 3157512..70662b9 100644 --- a/index/kdump.c +++ b/index/kdump.c @@ -1,80 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: kdump.c,v $ - * Revision 1.21 2002-04-04 20:50:37 adam - * Multi register works with record paths and data1 profile path - * - * Revision 1.20 2002/04/04 14:14:13 adam - * Multiple registers (alpha early) - * - * Revision 1.19 2000/12/05 10:01:44 adam - * Fixed bug regarding user-defined attribute sets. - * - * Revision 1.18 1999/09/07 07:19:21 adam - * Work on character mapping. Implemented replace rules. - * - * Revision 1.17 1999/02/02 14:50:55 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.16 1998/05/20 10:12:17 adam - * Implemented automatic EXPLAIN database maintenance. - * Modified Zebra to work with ASN.1 compiled version of YAZ. - * - * Revision 1.15 1998/03/05 08:45:12 adam - * New result set model and modular ranking system. Moved towards - * descent server API. System information stored as "SGML" records. - * - * Revision 1.14 1997/10/27 14:33:04 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - * Revision 1.13 1997/09/09 13:38:07 adam - * Partial port to WIN95/NT. - * - * Revision 1.12 1997/09/05 09:52:32 adam - * Extra argument added to function chr_read_maptab (tab path). - * - * Revision 1.11 1996/10/29 14:06:49 adam - * Include zebrautl.h instead of alexutil.h. - * - * Revision 1.10 1996/06/04 14:56:12 quinn - * Fix - * - * Revision 1.9 1996/06/04 14:18:53 quinn - * Charmap work - * - * Revision 1.8 1996/06/04 10:18:59 adam - * Minor changes - removed include of ctype.h. - * - * Revision 1.7 1995/10/10 12:24:38 adam - * Temporary sort files are compressed. - * - * Revision 1.6 1995/09/29 14:01:42 adam - * Bug fixes. - * - * Revision 1.5 1995/09/11 13:09:35 adam - * More work on relevance feedback. - * - * Revision 1.4 1995/09/08 14:52:27 adam - * Minor changes. Dictionary is lower case now. - * - * Revision 1.3 1995/09/06 16:11:17 adam - * Option: only one word key per file. - * - * Revision 1.2 1995/09/04 12:33:42 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.1 1995/09/04 09:10:36 adam - * More work on index add/del/update. - * Merge sort implemented. - * Initial work on z39 server. - * - */ +/* $Id: kdump.c,v 1.22 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/index/kinput.c b/index/kinput.c index 9b7b8b2..491c2e9 100644 --- a/index/kinput.c +++ b/index/kinput.c @@ -1,15 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * - * $Id: kinput.c,v 1.51 2002-07-12 18:12:22 heikki Exp $ - * - * Bugs - * - Allocates a lot of memory for the merge process, but never releases it. - * Doesn't matter, as the program terminates soon after. - - */ +/* $Id: kinput.c,v 1.52 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #ifdef WIN32 diff --git a/index/lockidx.c b/index/lockidx.c index 4904de4..994f495 100644 --- a/index/lockidx.c +++ b/index/lockidx.c @@ -1,82 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: lockidx.c,v $ - * Revision 1.21 2002-02-20 17:30:01 adam - * Work on new API. Locking system re-implemented - * - * Revision 1.20 2000/10/16 20:16:00 adam - * Fixed problem with close of lock file for WIN32. - * - * Revision 1.19 2000/09/05 14:04:05 adam - * Updates for prefix 'yaz_' for YAZ log functions. - * - * Revision 1.18 2000/02/24 11:00:07 adam - * Fixed bug: indexer would run forever when lock dir was non-existant. - * - * Revision 1.17 1999/12/08 15:03:11 adam - * Implemented bf_reset. - * - * Revision 1.16 1999/02/02 14:50:57 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.15 1998/02/17 10:31:33 adam - * Fixed bug in zebraIndexUnlock. On NT, the lock files wasn't removed. - * - * Revision 1.14 1998/01/12 15:04:08 adam - * The test option (-s) only uses read-lock (and not write lock). - * - * Revision 1.13 1997/09/29 09:08:36 adam - * Revised locking system to be thread safe for the server. - * - * Revision 1.12 1997/09/25 14:54:43 adam - * WIN32 files lock support. - * - * Revision 1.11 1997/09/17 12:19:15 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.10 1997/09/09 13:38:07 adam - * Partial port to WIN95/NT. - * - * Revision 1.9 1997/09/04 13:58:04 adam - * Added O_BINARY for open calls. - * - * Revision 1.8 1997/02/12 20:39:46 adam - * Implemented options -f that limits the log to the first - * records. - * Changed some log messages also. - * - * Revision 1.7 1996/10/29 14:08:13 adam - * Uses resource lockDir instead of lockPath. - * - * Revision 1.6 1996/03/26 16:01:13 adam - * New setting lockPath: directory of various lock files. - * - * Revision 1.5 1995/12/13 08:46:09 adam - * Locking uses F_WRLCK and F_RDLCK again! - * - * Revision 1.4 1995/12/12 16:00:57 adam - * System call sync(2) used after update/commit. - * Locking (based on fcntl) uses F_EXLCK and F_SHLCK instead of F_WRLCK - * and F_RDLCK. - * - * Revision 1.3 1995/12/11 11:43:29 adam - * Locking based on fcntl instead of flock. - * Setting commitEnable removed. Command line option -n can be used to - * prevent commit if commit setting is defined in the configuration file. - * - * Revision 1.2 1995/12/08 16:22:54 adam - * Work on update while servers are running. Three lock files introduced. - * The servers reload their registers when necessary, but they don't - * reestablish result sets yet. - * - * Revision 1.1 1995/12/07 17:38:47 adam - * Work locking mechanisms for concurrent updates/commit. - * - */ +/* $Id: lockidx.c,v 1.22 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #ifdef WIN32 diff --git a/index/locksrv.c b/index/locksrv.c index e19bc42..ac79e27 100644 --- a/index/locksrv.c +++ b/index/locksrv.c @@ -1,65 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: locksrv.c,v $ - * Revision 1.16 2001-10-29 22:16:38 adam - * Server unlocks both "cmt" and "org" lock in zebra_server_unlock. - * - * Revision 1.15 2000/12/01 17:59:08 adam - * Fixed bug regarding online updates on WIN32. - * When zebra.cfg is not available the server will not abort. - * - * Revision 1.14 2000/03/15 15:00:30 adam - * First work on threaded version. - * - * Revision 1.13 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.12 1999/02/02 14:50:58 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.11 1998/03/05 08:45:12 adam - * New result set model and modular ranking system. Moved towards - * descent server API. System information stored as "SGML" records. - * - * Revision 1.10 1997/09/29 09:08:36 adam - * Revised locking system to be thread safe for the server. - * - * Revision 1.9 1997/09/25 14:54:43 adam - * WIN32 files lock support. - * - * Revision 1.8 1997/09/17 12:19:15 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.7 1997/09/04 13:58:04 adam - * Added O_BINARY for open calls. - * - * Revision 1.6 1996/10/29 14:06:52 adam - * Include zebrautl.h instead of alexutil.h. - * - * Revision 1.5 1996/05/15 11:58:18 adam - * Changed some log messages. - * - * Revision 1.4 1996/04/10 16:01:27 quinn - * Fixed order of path/filename. - * - * Revision 1.3 1995/12/11 11:43:29 adam - * Locking based on fcntl instead of flock. - * Setting commitEnable removed. Command line option -n can be used to - * prevent commit if commit setting is defined in the configuration file. - * - * Revision 1.2 1995/12/08 16:22:55 adam - * Work on update while servers are running. Three lock files introduced. - * The servers reload their registers when necessary, but they don't - * reestablish result sets yet. - * - * Revision 1.1 1995/12/07 17:38:47 adam - * Work locking mechanisms for concurrent updates/commit. - * - */ +/* $Id: locksrv.c,v 1.17 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #ifdef WIN32 diff --git a/index/lockutil.c b/index/lockutil.c index 24d4d21..12821b3 100644 --- a/index/lockutil.c +++ b/index/lockutil.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: lockutil.c,v 1.16 2002-06-02 19:28:53 adam Exp $ - */ +/* $Id: lockutil.c,v 1.17 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/index/main.c b/index/main.c index c32c419..8557655 100644 --- a/index/main.c +++ b/index/main.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: main.c,v 1.92 2002-07-11 13:03:01 heikki Exp $ - */ +/* $Id: main.c,v 1.93 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/index/rank1.c b/index/rank1.c index 48a4ada..f968e81 100644 --- a/index/rank1.c +++ b/index/rank1.c @@ -1,38 +1,26 @@ -/* - * Copyright (C) 1998-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rank1.c,v $ - * Revision 1.9 2002-04-11 11:39:59 heikki - * Removed to logf calls from tight inside loops - * - * Revision 1.8 2002/04/04 14:14:13 adam - * Multiple registers (alpha early) - * - * Revision 1.7 2001/11/14 22:06:27 adam - * Rank-weight may be controlled via query. - * - * Revision 1.6 2000/03/15 15:00:30 adam - * First work on threaded version. - * - * Revision 1.5 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.4 1999/02/02 14:51:01 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.3 1998/06/12 12:21:53 adam - * Fixed memory-leak. - * - * Revision 1.2 1998/03/05 13:03:29 adam - * Improved ranking. - * - * Revision 1.1 1998/03/05 08:45:12 adam - * New result set model and modular ranking system. Moved towards - * descent server API. System information stored as "SGML" records. - * - */ +/* $Id: rank1.c,v 1.10 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/index/recindex.c b/index/recindex.c index bc9a1b5..e60cb1a 100644 --- a/index/recindex.c +++ b/index/recindex.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: recindex.c,v 1.33 2002-07-15 11:50:01 adam Exp $ - */ +/* $Id: recindex.c,v 1.34 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* diff --git a/index/recindex.h b/index/recindex.h index 1c1321b..867468f 100644 --- a/index/recindex.h +++ b/index/recindex.h @@ -1,77 +1,26 @@ -/* - * Copyright (C) 1994-2000, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: recindex.h,v $ - * Revision 1.18 2000-04-05 09:49:35 adam - * On Unix, zebra/z'mbol uses automake. - * - * Revision 1.17 1999/07/06 12:28:04 adam - * Updated record index structure. Format includes version ID. Compression - * algorithm ID is stored for each record block. - * - * Revision 1.16 1999/06/25 13:48:02 adam - * Updated MSVC project files. - * Added BZIP2 record compression (not very well tested). - * - * Revision 1.15 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.14 1999/02/02 14:51:04 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.13 1998/03/05 08:45:12 adam - * New result set model and modular ranking system. Moved towards - * descent server API. System information stored as "SGML" records. - * - * Revision 1.12 1998/01/12 15:04:08 adam - * The test option (-s) only uses read-lock (and not write lock). - * - * Revision 1.11 1997/09/17 12:19:16 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.10 1996/10/29 14:06:53 adam - * Include zebrautl.h instead of alexutil.h. - * - * Revision 1.9 1996/05/01 13:46:36 adam - * First work on multiple records in one file. - * New option, -offset, to the "unread" command in the filter module. - * - * Revision 1.8 1995/12/06 12:41:25 adam - * New command 'stat' for the index program. - * Filenames can be read from stdin by specifying '-'. - * Bug fix/enhancement of the transformation from terms to regular - * expressons in the search engine. - * - * Revision 1.7 1995/11/28 09:09:45 adam - * Zebra config renamed. - * Use setting 'recordId' to identify record now. - * Bug fix in recindex.c: rec_release_blocks was invokeded even - * though the blocks were already released. - * File traversal properly deletes records when needed. - * - * Revision 1.6 1995/11/27 09:56:21 adam - * Record info elements better enumerated. Internal store of records. - * - * Revision 1.5 1995/11/25 10:24:07 adam - * More record fields - they are enumerated now. - * New options: flagStoreData flagStoreKey. - * - * Revision 1.4 1995/11/22 17:19:19 adam - * Record management uses the bfile system. - * - * Revision 1.3 1995/11/20 16:59:46 adam - * New update method: the 'old' keys are saved for each records. - * - * Revision 1.2 1995/11/15 19:13:08 adam - * Work on record management. - * - * Revision 1.1 1995/11/15 14:46:21 adam - * Started work on better record management system. - * - */ +/* $Id: recindex.h,v 1.19 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RECINDEX_H #define RECINDEX_H diff --git a/index/recindxp.h b/index/recindxp.h index 3c5dae6..b6b8a28 100644 --- a/index/recindxp.h +++ b/index/recindxp.h @@ -1,52 +1,26 @@ -/* - * Copyright (C) 1994-2000, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: recindxp.h,v $ - * Revision 1.11 2002-08-02 10:07:48 adam - * XPATH fixes - leaf attributes part of tag path - * - * Revision 1.10 2001/10/15 19:53:43 adam - * POSIX thread updates. First work on term sets. - * - * Revision 1.9 2000/12/05 10:01:44 adam - * Fixed bug regarding user-defined attribute sets. - * - * Revision 1.8 2000/04/05 09:49:35 adam - * On Unix, zebra/z'mbol uses automake. - * - * Revision 1.7 1999/07/06 12:28:04 adam - * Updated record index structure. Format includes version ID. Compression - * algorithm ID is stored for each record block. - * - * Revision 1.6 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.5 1999/02/02 14:51:05 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1998/03/05 08:45:12 adam - * New result set model and modular ranking system. Moved towards - * descent server API. System information stored as "SGML" records. - * - * Revision 1.3 1995/12/11 11:45:55 adam - * Removed commented code. - * - * Revision 1.2 1995/12/11 09:12:51 adam - * The rec_get function returns NULL if record doesn't exist - will - * happen in the server if the result set records have been deleted since - * the creation of the set (i.e. the search). - * The server saves a result temporarily if it is 'volatile', i.e. the - * set is register dependent. - * - * Revision 1.1 1995/12/06 12:41:25 adam - * New command 'stat' for the index program. - * Filenames can be read from stdin by specifying '-'. - * Bug fix/enhancement of the transformation from terms to regular - * expressons in the search engine. - * - */ +/* $Id: recindxp.h,v 1.12 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include "recindex.h" diff --git a/index/recstat.c b/index/recstat.c index 3015264..59e76ce 100644 --- a/index/recstat.c +++ b/index/recstat.c @@ -1,36 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: recstat.c,v $ - * Revision 1.7 1999-02-02 14:51:06 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.6 1998/01/12 15:04:08 adam - * The test option (-s) only uses read-lock (and not write lock). - * - * Revision 1.5 1997/09/17 12:19:17 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.4 1997/09/09 13:38:08 adam - * Partial port to WIN95/NT. - * - * Revision 1.3 1996/06/04 10:19:00 adam - * Minor changes - removed include of ctype.h. - * - * Revision 1.2 1996/05/14 14:04:34 adam - * In zebraidx, the 'stat' command is improved. Statistics about ISAM/DICT - * is collected. - * - * Revision 1.1 1995/12/06 12:41:26 adam - * New command 'stat' for the index program. - * Filenames can be read from stdin by specifying '-'. - * Bug fix/enhancement of the transformation from terms to regular - * expressons in the search engine. - * - */ +/* $Id: recstat.c,v 1.8 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/index/retrieve.c b/index/retrieve.c index cf0787c..0fc202a 100644 --- a/index/retrieve.c +++ b/index/retrieve.c @@ -1,69 +1,26 @@ -/* - * Copyright (C) 1995-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: retrieve.c,v $ - * Revision 1.19 2002-07-25 13:06:43 adam - * Character set negotiation updates - * - * Revision 1.18 2002/07/02 20:20:09 adam - * idzebra:{filename,score,size,localnumber} tags for XML - * - * Revision 1.17 2002/05/03 13:49:04 adam - * play with shellsort - * - * Revision 1.16 2002/04/04 20:50:37 adam - * Multi register works with record paths and data1 profile path - * - * Revision 1.15 2002/04/04 14:14:13 adam - * Multiple registers (alpha early) - * - * Revision 1.14 2001/01/22 11:41:41 adam - * Added support for raw retrieval (element set name "R"). - * - * Revision 1.13 2000/03/20 19:08:36 adam - * Added remote record import using Z39.50 extended services and Segment - * Requests. - * - * Revision 1.12 2000/03/15 15:00:30 adam - * First work on threaded version. - * - * Revision 1.11 1999/10/29 10:00:00 adam - * Fixed minor bug where database name wasn't set in zebra_record_fetch. - * - * Revision 1.10 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.9 1999/05/20 12:57:18 adam - * Implemented TCL filter. Updated recctrl system. - * - * Revision 1.8 1999/03/09 16:27:49 adam - * More work on SDRKit integration. - * - * Revision 1.7 1999/03/02 16:15:43 quinn - * Added "tagsysno" and "tagrank" directives to zebra.cfg. - * - * Revision 1.6 1999/02/18 15:01:25 adam - * Minor changes. - * - * Revision 1.5 1999/02/17 11:29:56 adam - * Fixed in record_fetch. Minor updates to API. - * - * Revision 1.4 1999/02/02 14:51:07 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.3 1998/10/28 10:54:40 adam - * SDRKit integration. - * - * Revision 1.2 1998/10/16 08:14:33 adam - * Updated record control system. - * - * Revision 1.1 1998/03/05 08:45:13 adam - * New result set model and modular ranking system. Moved towards - * descent server API. System information stored as "SGML" records. - * - */ +/* $Id: retrieve.c,v 1.20 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/index/sortidx.c b/index/sortidx.c index 4d17ad7..9524b97 100644 --- a/index/sortidx.c +++ b/index/sortidx.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1998-2002, Index Data ApS - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: sortidx.c,v 1.6 2002-02-18 11:46:58 adam Exp $ - */ +/* $Id: sortidx.c,v 1.7 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/index/symtab.c b/index/symtab.c index 2d60aeb..cd18868 100644 --- a/index/symtab.c +++ b/index/symtab.c @@ -1,29 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: symtab.c,v $ - * Revision 1.6 1999-05-26 07:49:13 adam - * C++ compilation. - * - * Revision 1.5 1999/02/02 14:51:08 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1997/09/09 13:38:09 adam - * Partial port to WIN95/NT. - * - * Revision 1.3 1996/10/29 14:06:54 adam - * Include zebrautl.h instead of alexutil.h. - * - * Revision 1.2 1995/09/28 09:19:44 adam - * xfree/xmalloc used everywhere. - * Extract/retrieve method seems to work for text records. - * - * Revision 1.1 1995/09/06 16:11:18 adam - * Option: only one word key per file. - * - */ +/* $Id: symtab.c,v 1.7 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/index/trav.c b/index/trav.c index c4768fe..1143d1e 100644 --- a/index/trav.c +++ b/index/trav.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: trav.c,v 1.39 2002-04-04 20:50:37 adam Exp $ - */ +/* $Id: trav.c,v 1.40 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/index/trunc.c b/index/trunc.c index ba3f18f..cd69643 100644 --- a/index/trunc.c +++ b/index/trunc.c @@ -1,11 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * - * $Id: trunc.c,v 1.26 2002-07-25 13:06:43 adam Exp $ - * - */ +/* $Id: trunc.c,v 1.27 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/index/zebraapi.c b/index/zebraapi.c index 093b950..9e48592 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1995-2002, Index Data - * All rights reserved. - * - * $Id: zebraapi.c,v 1.64 2002-07-29 20:04:24 adam Exp $ - */ +/* $Id: zebraapi.c,v 1.65 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/index/zebraapi.h b/index/zebraapi.h index b1463b8..e59018e 100644 --- a/index/zebraapi.h +++ b/index/zebraapi.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: zebraapi.h,v 1.18 2002-07-25 13:06:43 adam Exp $ - */ +/* $Id: zebraapi.h,v 1.19 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ZEBRAAPI_H #define ZEBRAAPI_H diff --git a/index/zinfo.c b/index/zinfo.c index bb8ae33..fb3f539 100644 --- a/index/zinfo.c +++ b/index/zinfo.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: zinfo.c,v 1.32 2002-07-11 13:15:57 heikki Exp $ - */ +/* $Id: zinfo.c,v 1.33 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/index/zinfo.h b/index/zinfo.h index b04d9e0..3e8714c 100644 --- a/index/zinfo.h +++ b/index/zinfo.h @@ -1,54 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: zinfo.h,v $ - * Revision 1.13 2002-05-07 11:05:19 adam - * data1 updates. Run number fix - * - * Revision 1.12 2002/02/20 17:30:01 adam - * Work on new API. Locking system re-implemented - * - * Revision 1.11 2001/10/15 19:53:43 adam - * POSIX thread updates. First work on term sets. - * - * Revision 1.10 2000/05/15 12:56:37 adam - * Record offset of size off_t. - * - * Revision 1.9 2000/03/20 19:08:36 adam - * Added remote record import using Z39.50 extended services and Segment - * Requests. - * - * Revision 1.8 1999/11/30 13:48:03 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.7 1999/05/26 07:49:13 adam - * C++ compilation. - * - * Revision 1.6 1999/02/02 14:51:12 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.5 1998/06/08 14:43:16 adam - * Added suport for EXPLAIN Proxy servers - added settings databasePath - * and explainDatabase to facilitate this. Increased maximum number - * of databases and attributes in one register. - * - * Revision 1.4 1998/05/20 10:12:21 adam - * Implemented automatic EXPLAIN database maintenance. - * Modified Zebra to work with ASN.1 compiled version of YAZ. - * - * Revision 1.3 1998/03/05 08:45:13 adam - * New result set model and modular ranking system. Moved towards - * descent server API. System information stored as "SGML" records. - * - * Revision 1.2 1996/05/22 08:22:00 adam - * Added public ZebDatabaseInfo structure. - * - * Revision 1.1 1996/05/13 14:23:07 adam - * Work on compaction of set/use bytes in dictionary. - * - */ +/* $Id: zinfo.h,v 1.14 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ZINFO_H #define ZINFO_H diff --git a/index/zrpn.c b/index/zrpn.c index c801aeb..6f084f1 100644 --- a/index/zrpn.c +++ b/index/zrpn.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1995-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: zrpn.c,v 1.119 2002-08-02 10:07:48 adam Exp $ - */ +/* $Id: zrpn.c,v 1.120 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #ifdef WIN32 diff --git a/index/zserver.c b/index/zserver.c index 6b34587..dfaf1fe 100644 --- a/index/zserver.c +++ b/index/zserver.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1995-2002, Index Data - * All rights reserved. - * - * $Id: zserver.c,v 1.89 2002-07-25 13:06:43 adam Exp $ - */ +/* $Id: zserver.c,v 1.90 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/index/zserver.h b/index/zserver.h index ad43cab..6fc2eea 100644 --- a/index/zserver.h +++ b/index/zserver.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: zserver.h,v 1.56 2002-07-25 13:06:43 adam Exp $ - */ +/* $Id: zserver.h,v 1.57 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/index/zsets.c b/index/zsets.c index d3fb047..6db021b 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: zsets.c,v 1.37 2002-07-25 13:06:43 adam Exp $ - */ +/* $Id: zsets.c,v 1.38 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #ifdef WIN32 diff --git a/isam/isam.c b/isam/isam.c index 018edd1..0d61f24 100644 --- a/isam/isam.c +++ b/isam/isam.c @@ -1,88 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isam.c,v $ - * Revision 1.26 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.25 1999/02/02 14:51:16 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.24 1997/10/27 14:25:39 adam - * Fixed memory leaks. - * - * Revision 1.23 1997/09/17 12:19:20 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.22 1996/10/29 13:56:53 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.21 1996/03/29 14:11:47 quinn - * Change to is_merge - * - * Revision 1.20 1996/03/19 13:14:57 quinn - * Moved an xfree() - * - * Revision 1.19 1996/02/10 12:20:56 quinn - * *** empty log message *** - * - * Revision 1.18 1996/02/06 10:19:56 quinn - * Attempt at fixing bug. Not all blocks were read before they were unlinked - * prior to a remap operation. - * - * Revision 1.17 1995/12/06 15:48:44 quinn - * Fixed update-problem. - * - * Revision 1.16 1995/12/06 14:48:26 quinn - * Fixed some strange bugs. - * - * Revision 1.15 1995/12/06 09:59:45 quinn - * Fixed memory-consumption bug in memory.c - * Added more blocksizes to the default ISAM configuration. - * - * Revision 1.14 1995/11/24 17:26:19 quinn - * Mostly about making some ISAM stuff in the config file optional. - * - * Revision 1.13 1995/10/17 18:03:15 adam - * Commented out qsort in is_merge. - * - * Revision 1.12 1995/09/06 16:11:41 adam - * Keysize parameter to is_open (if non-zero). - * - * Revision 1.11 1995/09/04 12:33:46 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.10 1994/09/28 16:58:32 quinn - * Small mod. - * - * Revision 1.9 1994/09/28 12:56:15 quinn - * Added access functions (ISPT) - * - * Revision 1.8 1994/09/28 12:32:17 quinn - * Trivial - * - * Revision 1.7 1994/09/28 11:56:25 quinn - * Added sort of input to is_merge - * - * Revision 1.6 1994/09/28 11:29:33 quinn - * Added cmp parameter. - * - * Revision 1.5 1994/09/27 20:03:50 quinn - * Seems relatively bug-free. - * - * Revision 1.4 1994/09/26 17:11:29 quinn - * Trivial - * - * Revision 1.3 1994/09/26 17:06:35 quinn - * Back again... - * - * Revision 1.1 1994/09/12 08:02:13 quinn - * Not functional yet - * - */ +/* $Id: isam.c,v 1.27 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/isam/issh.c b/isam/issh.c index fc83458..7d77fce 100644 --- a/isam/issh.c +++ b/isam/issh.c @@ -1,6 +1,26 @@ -/* - * Excersizer-application for the isam subsystem. Don't play with it. - */ +/* $Id: issh.c,v 1.6 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/isam/isutil.c b/isam/isutil.c index 4713a23..215bee8 100644 --- a/isam/isutil.c +++ b/isam/isutil.c @@ -1,22 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isutil.c,v $ - * Revision 1.4 1999-02-02 14:51:17 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.3 1996/10/29 13:56:55 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.2 1995/09/04 12:33:46 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.1 1994/09/12 08:02:13 quinn - * Not functional yet - * - */ +/* $Id: isutil.c,v 1.5 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* * Small utilities needed by the isam system. Some or all of these diff --git a/isam/isutil.h b/isam/isutil.h index 9b16540..e2772cc 100644 --- a/isam/isutil.h +++ b/isam/isutil.h @@ -1,19 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isutil.h,v $ - * Revision 1.3 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.2 1999/02/02 14:51:18 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.1 1994/09/12 08:02:14 quinn - * Not functional yet - * - */ +/* $Id: isutil.h,v 1.4 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* * Small utilities needed by the isam system. Some or all of these diff --git a/isam/keyops.h b/isam/keyops.h index 8da0176..7a384cb 100644 --- a/isam/keyops.h +++ b/isam/keyops.h @@ -1,16 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: keyops.h,v $ - * Revision 1.2 1999-02-02 14:51:19 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.1 1994/09/26 16:07:55 quinn - * Most of the functionality in place. - * - */ +/* $Id: keyops.h,v 1.3 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef KEYOPS_H #define KEYOPS_H diff --git a/isam/memory.c b/isam/memory.c index d6e3a62..800d74e 100644 --- a/isam/memory.c +++ b/isam/memory.c @@ -1,63 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: memory.c,v $ - * Revision 1.17 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.16 1999/02/02 14:51:20 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.15 1997/09/09 13:38:11 adam - * Partial port to WIN95/NT. - * - * Revision 1.14 1996/10/29 13:56:56 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.13 1996/03/20 13:29:16 quinn - * Bug-fix - * - * Revision 1.12 1996/03/11 14:52:23 quinn - * Fixed update bug. Repeated insertion in the same area sometimes caused - * problems. - * - * Revision 1.11 1996/02/10 12:20:58 quinn - * *** empty log message *** - * - * Revision 1.10 1995/12/12 14:12:47 quinn - * *** empty log message *** - * - * Revision 1.9 1995/12/06 15:48:46 quinn - * Fixed update-problem. - * - * Revision 1.8 1995/12/06 14:48:27 quinn - * Fixed some strange bugs. - * - * Revision 1.7 1995/12/06 09:59:46 quinn - * Fixed memory-consumption bug in memory.c - * Added more blocksizes to the default ISAM configuration. - * - * Revision 1.6 1995/09/04 12:33:47 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.5 1994/09/28 16:58:33 quinn - * Small mod. - * - * Revision 1.4 1994/09/27 20:03:52 quinn - * Seems relatively bug-free. - * - * Revision 1.3 1994/09/26 17:11:30 quinn - * Trivial - * - * Revision 1.2 1994/09/26 17:06:35 quinn - * Back again... - * - * Revision 1.1 1994/09/26 16:07:56 quinn - * Most of the functionality in place. - * - */ +/* $Id: memory.c,v 1.18 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* * This module accesses and rearranges the records of the tables. diff --git a/isam/memory.h b/isam/memory.h index 4a69110..77bc660 100644 --- a/isam/memory.h +++ b/isam/memory.h @@ -1,36 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: memory.h,v $ - * Revision 1.7 1999-02-02 14:51:21 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.6 1997/09/05 15:30:10 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.5 1996/03/11 14:52:25 quinn - * Fixed update bug. Repeated insertion in the same area sometimes caused - * problems. - * - * Revision 1.4 1995/12/06 15:48:47 quinn - * Fixed update-problem. - * - * Revision 1.3 1994/09/28 16:58:33 quinn - * Small mod. - * - * Revision 1.2 1994/09/27 20:03:52 quinn - * Seems relatively bug-free. - * - * Revision 1.1 1994/09/26 17:12:32 quinn - * Back again - * - * Revision 1.1 1994/09/26 16:07:57 quinn - * Most of the functionality in place. - * - */ +/* $Id: memory.h,v 1.8 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef MEMORY_H #define MEMORY_H diff --git a/isam/physical.c b/isam/physical.c index 65bfe19..48b04c5 100644 --- a/isam/physical.c +++ b/isam/physical.c @@ -1,62 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: physical.c,v $ - * Revision 1.17 1999-11-30 13:48:04 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.16 1999/05/26 07:49:14 adam - * C++ compilation. - * - * Revision 1.15 1999/02/02 14:51:22 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.14 1997/09/09 13:38:12 adam - * Partial port to WIN95/NT. - * - * Revision 1.13 1996/10/29 13:56:57 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.12 1996/03/20 16:17:11 quinn - * Bug hunting - * - * Revision 1.11 1996/03/20 13:29:17 quinn - * Bug-fix - * - * Revision 1.10 1996/03/19 19:22:44 quinn - * Fixed update-bug - * - * Revision 1.9 1996/02/06 10:19:57 quinn - * Attempt at fixing bug. Not all blocks were read before they were unlinked - * prior to a remap operation. - * - * Revision 1.8 1996/01/29 09:47:11 quinn - * Fixed mean little bug in the read-table code. - * - * Revision 1.7 1995/12/06 14:48:27 quinn - * Fixed some strange bugs. - * - * Revision 1.6 1995/09/04 12:33:47 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.5 1994/09/28 11:29:33 quinn - * Added cmp parameter. - * - * Revision 1.4 1994/09/27 20:03:53 quinn - * Seems relatively bug-free. - * - * Revision 1.3 1994/09/26 17:11:31 quinn - * Trivial - * - * Revision 1.2 1994/09/26 17:06:36 quinn - * Back again... - * - * Revision 1.1 1994/09/26 16:07:57 quinn - * Most of the functionality in place. - * - */ +/* $Id: physical.c,v 1.18 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* * This module handles the representation of tables in the bfiles. diff --git a/isam/physical.h b/isam/physical.h index 7cd111f..02f2f49 100644 --- a/isam/physical.h +++ b/isam/physical.h @@ -1,26 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: physical.h,v $ - * Revision 1.5 1999-02-02 14:51:23 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1997/09/05 15:30:10 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.3 1994/09/26 17:11:32 quinn - * Trivial - * - * Revision 1.2 1994/09/26 17:06:37 quinn - * Back again... - * - * Revision 1.1 1994/09/26 16:07:59 quinn - * Most of the functionality in place. - * - */ +/* $Id: physical.h,v 1.6 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef PHYSICAL_H #define PHYSICAL_H diff --git a/isam/rootblk.c b/isam/rootblk.c index 43274af..592fecc 100644 --- a/isam/rootblk.c +++ b/isam/rootblk.c @@ -1,19 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rootblk.c,v $ - * Revision 1.3 1999-02-02 14:51:24 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.2 1995/09/04 12:33:47 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.1 1994/09/26 16:08:00 quinn - * Most of the functionality in place. - * - */ +/* $Id: rootblk.c,v 1.4 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* * Read and write the blocktype header. diff --git a/isam/rootblk.h b/isam/rootblk.h index 44937d8..c1440d3 100644 --- a/isam/rootblk.h +++ b/isam/rootblk.h @@ -1,19 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rootblk.h,v $ - * Revision 1.3 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.2 1999/02/02 14:51:25 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.1 1994/09/26 16:08:00 quinn - * Most of the functionality in place. - * - */ +/* $Id: rootblk.h,v 1.4 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef ROOTBLK_H #define ROOTBLK_H diff --git a/isamb/isamb.c b/isamb/isamb.c index 1e0a7dd..be62d09 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -1,9 +1,26 @@ -/* - * Copyright (c) 2000-2002, Index Data. - * See the file LICENSE for details. - * - * $Id: isamb.c,v 1.18 2002-07-15 11:50:45 adam Exp $ - */ +/* $Id: isamb.c,v 1.19 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/isamc/isamc-p.h b/isamc/isamc-p.h index 27c2454..995bd91 100644 --- a/isamc/isamc-p.h +++ b/isamc/isamc-p.h @@ -1,33 +1,26 @@ -/* - * Copyright (c) 1995-1996, Index Data. - * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isamc-p.h,v $ - * Revision 1.7 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.6 1998/03/18 09:23:55 adam - * Blocks are stored in chunks on free list - up to factor 2 in speed. - * Fixed bug that could occur in block category rearrangemen. - * - * Revision 1.5 1998/03/16 10:37:24 adam - * Added more statistics. - * - * Revision 1.4 1996/11/08 11:15:28 adam - * Number of keys in chain are stored in first block and the function - * to retrieve this information, isc_pp_num is implemented. - * - * Revision 1.3 1996/11/04 14:08:55 adam - * Optimized free block usage. - * - * Revision 1.2 1996/11/01 08:59:13 adam - * First version of isc_merge that supports update/delete. - * - * Revision 1.1 1996/10/29 13:40:47 adam - * First work. - * - */ +/* $Id: isamc-p.h,v 1.8 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/isamc/isamc.c b/isamc/isamc.c index d8938a2..bc81c16 100644 --- a/isamc/isamc.c +++ b/isamc/isamc.c @@ -1,85 +1,26 @@ -/* - * Copyright (c) 1995-1998, Index Data. - * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isamc.c,v $ - * Revision 1.21 2002-06-19 10:29:18 adam - * align block sizes for isam sys. Better plot for test - * - * Revision 1.20 1999/11/30 13:48:04 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.19 1999/07/14 10:59:27 adam - * Changed functions isc_getmethod, isams_getmethod. - * Improved fatal error handling (such as missing EXPLAIN schema). - * - * Revision 1.18 1999/06/30 09:08:23 adam - * Added coder to reset. - * - * Revision 1.17 1999/05/26 07:49:14 adam - * C++ compilation. - * - * Revision 1.16 1998/05/27 14:32:03 adam - * Changed default block category layout. - * - * Revision 1.15 1998/05/20 10:12:25 adam - * Implemented automatic EXPLAIN database maintenance. - * Modified Zebra to work with ASN.1 compiled version of YAZ. - * - * Revision 1.14 1998/03/19 10:04:35 adam - * Minor changes. - * - * Revision 1.13 1998/03/18 09:23:55 adam - * Blocks are stored in chunks on free list - up to factor 2 in speed. - * Fixed bug that could occur in block category rearrangemen. - * - * Revision 1.12 1998/03/16 10:37:24 adam - * Added more statistics. - * - * Revision 1.11 1998/03/13 15:30:50 adam - * New functions isc_block_used and isc_block_size. Fixed 'leak' - * in isc_alloc_block. - * - * Revision 1.10 1998/03/11 11:18:18 adam - * Changed the isc_merge to take into account the mfill (minimum-fill). - * - * Revision 1.9 1998/03/06 13:54:02 adam - * Fixed two nasty bugs in isc_merge. - * - * Revision 1.8 1997/09/17 12:19:20 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.7 1997/02/12 20:42:43 adam - * Bug fix: during isc_merge operations, some pages weren't marked dirty - * even though they should be. At this point the merge operation marks - * a page dirty if the previous page changed at all. A better approach is - * to mark it dirty if the last key written changed in previous page. - * - * Revision 1.6 1996/11/08 11:15:29 adam - * Number of keys in chain are stored in first block and the function - * to retrieve this information, isc_pp_num is implemented. - * - * Revision 1.5 1996/11/04 14:08:57 adam - * Optimized free block usage. - * - * Revision 1.4 1996/11/01 13:36:46 adam - * New element, max_blocks_mem, that control how many blocks of max size - * to store in memory during isc_merge. - * Function isc_merge now ignores delete/update of identical keys and - * the proper blocks are then non-dirty and not written in flush_blocks. - * - * Revision 1.3 1996/11/01 08:59:14 adam - * First version of isc_merge that supports update/delete. - * - * Revision 1.2 1996/10/29 16:44:56 adam - * Work on isc_merge. - * - * Revision 1.1 1996/10/29 13:40:48 adam - * First work. - * - */ +/* $Id: isamc.c,v 1.22 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* * TODO: diff --git a/isamc/isamd-p.h b/isamc/isamd-p.h index 1fa1dbd..95b8d46 100644 --- a/isamc/isamd-p.h +++ b/isamc/isamd-p.h @@ -1,10 +1,26 @@ -/* $Id: isamd-p.h,v 1.10 2002-04-29 18:10:24 adam Exp $ - * Copyright (c) 1995-1996, Index Data. - * See the file LICENSE for details. - * Heikki Levanto - * - * log at the end - */ +/* $Id: isamd-p.h,v 1.11 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include @@ -125,7 +141,10 @@ int singleton_encode(struct it_key *k); /* * $Log: isamd-p.h,v $ - * Revision 1.10 2002-04-29 18:10:24 adam + * Revision 1.11 2002-08-02 19:26:56 adam + * Towards GPL + * + * Revision 1.10 2002/04/29 18:10:24 adam * Newline at end of file * * Revision 1.9 1999/10/05 09:57:40 heikki diff --git a/isamc/isamd.c b/isamc/isamd.c index 46b22ba..8fb7dca 100644 --- a/isamc/isamd.c +++ b/isamc/isamd.c @@ -1,15 +1,26 @@ -/* - * Copyright (c) 1995-1998, Index Data. - * See the file LICENSE for details. - * $Id: isamd.c,v 1.22 2002-07-12 18:12:21 heikki Exp $ - * - * Isamd - isam with diffs - * Programmed by: Heikki Levanto - * - * Todo - * - Statistics are missing and/or completely wrong - * - Lots of code stolen from isamc, not all needed any more - */ +/* $Id: isamd.c,v 1.23 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include @@ -870,7 +881,10 @@ void isamd_pp_dump (ISAMD is, ISAMD_P ipos) /* * $Log: isamd.c,v $ - * Revision 1.22 2002-07-12 18:12:21 heikki + * Revision 1.23 2002-08-02 19:26:56 adam + * Towards GPL + * + * Revision 1.22 2002/07/12 18:12:21 heikki * Isam-D now stores small entries directly in the dictionary. * Needs more tuning and cleaning... * diff --git a/isamc/merge-d.c b/isamc/merge-d.c index f1494ee..d73a459 100644 --- a/isamc/merge-d.c +++ b/isamc/merge-d.c @@ -1,97 +1,26 @@ -/* - * Copyright (c) 1996-1998, Index Data. - * See the file LICENSE for details. - * Heikki Levanto - * - * $Id: merge-d.c,v 1.27 2002-07-12 18:12:21 heikki Exp $ - * - * bugs - * sinleton-bit has to be in the high end, not low, so as not to confuse - * ordinary small numbers, like in the next pointer.. - * - * missing - * - * optimize - * - study and optimize block sizes (later) - * - find a way to decide the size of an empty diffblock (after merge) - * - On allocating more blocks (in append and merge), check the order of - * blocks, and if needed, swap them. - * - Write a routine to save/load indexes into a block, save only as many - * bytes as needed (size, diff, diffindexes) - * - * - * caveat - * There is a confusion about the block addresses. cat or type is the category, - * pos or block is the block number. pp structures keep these two separate, - * and combine when saving the pp. The next pointer in the pp structure is - * also a combined address, but needs to be combined every time it is needed, - * and separated when the partss are needed... This is done with the isamd_ - * _block, _type, and _addr macros. The _addr takes block and type as args, - * in that order. This conflicts with the order these are often mentioned in - * the debug log calls, and other places, leading to small mistakes here - * and there. - * - * Needs cleaning! The way diff blocks are handled in append and reading is - * quite different, and likely to give maintenance problems. - * - * log levels (set isamddebug=x in zebra.cfg (or what ever cfg file you use) ) - * 0 = no logging. Default - * 1 = no logging here. isamd logs overall statistics - * 2 = Each call to isamd_append with start address and no more - * 3 = Start and type of append, start of merge, and result of append - * 4 = Block allocations - * 5 = Block-level operations (read/write) - * 6 = Details about diff blocks etc. - * 7 = Log each record as it passes the system (once) - * 8 = Log raw and (de)coded data - * 9 = Anything else that may be useful - * .. = Anything needed to hunt a specific bug - * (note that all tests in the code are like debug>3, which means 4 or above!) - * - * Design for the new and improved isamd - * Key points: - * - The first block is only diffs, no straight data - * - Additional blocks are straight data - * - When a diff block gets filled up, a data block is created by - * merging the diffs with the data - * - * Structure - * - Isamd_pp: buffer for diffs and for data - * keep both pos, type, and combined address - * routine to set the address - * - diffbuf: lengths as short ints, or bytes for small blocks - * - keys are of key_struct, not just a number of bytes. - * - * Routines - * - isamd_append - * - create_new_block if needed - * - append_diffs - * - load_diffs - * - get diffend, start encoding - * - while input data - * - encode it - * - if no room, then realloc block in larger size - * - if still no room, merge and exit - * - append in the block - * - * - merge - * - just as before, except that merges also input data directly - * - writes into new data blocks - * - * - * - isamd.c: load firstpp, load datablock - * save firstpp, save datablock - * - Readlength, writelength - handling right size of len fields - * - isamd_read_main_item: take also a merge input structure, and merge it too - * - prefilter: cache two inputs, and check if they cancel. - * - single-item optimization - * - * questions: Should we realloc firstblocks in a different size as the main - * blocks. Makes a sideways seek, which is bound to be slowe. But saves some - * update time. Compromise: alloc the first one in the size of the datablock, - * but increase if necessary. Large blocks get a large diff, ok. Small ones - * may get an extra seek in read, but save merges. - */ +/* $Id: merge-d.c,v 1.28 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #define NEW_ISAM_D 1 /* not yet ready to delete the old one! */ @@ -1174,7 +1103,10 @@ int isamd_append (ISAMD is, char *dictentry, int dictlen, ISAMD_I data) /* * $Log: merge-d.c,v $ - * Revision 1.27 2002-07-12 18:12:21 heikki + * Revision 1.28 2002-08-02 19:26:56 adam + * Towards GPL + * + * Revision 1.27 2002/07/12 18:12:21 heikki * Isam-D now stores small entries directly in the dictionary. * Needs more tuning and cleaning... * diff --git a/isamc/merge.c b/isamc/merge.c index 3092129..0900684 100644 --- a/isamc/merge.c +++ b/isamc/merge.c @@ -1,9 +1,26 @@ -/* - * Copyright (c) 1996-1998, Index Data. - * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * - */ +/* $Id: merge.c,v 1.21 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include @@ -463,7 +480,10 @@ ISAMC_P isc_merge (ISAMC is, ISAMC_P ipos, ISAMC_I data) /* * $Log: merge.c,v $ - * Revision 1.20 1999-11-30 13:48:04 adam + * Revision 1.21 2002-08-02 19:26:56 adam + * Towards GPL + * + * Revision 1.20 1999/11/30 13:48:04 adam * Improved installation. Updated for inclusion of YAZ header files. * * Revision 1.19 1999/07/14 12:12:07 heikki diff --git a/isamg/isamg.c b/isamg/isamg.c index a4e13ed..ae25349 100644 --- a/isamg/isamg.c +++ b/isamg/isamg.c @@ -1,13 +1,26 @@ -/* $Id: */ - * Copyright (c) 1995-1996, Index Data. - * See the file LICENSE for details. - * - * ISAM-G the general encapsulation of all our ISAM types - * - * Heikki Levanto - * - * log at the end - */ +/* $Id: isamg.c,v 1.2 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include @@ -136,9 +149,12 @@ int isamg_close (ISAMG is){ /* * $Log: isamg.c,v $ - * Revision 1.1 2001-01-16 19:05:45 heikki + * Revision 1.2 2002-08-02 19:26:56 adam + * Towards GPL + * + * Revision 1.1 2001/01/16 19:05:45 heikki * Started to work on isamg * * * - */ \ No newline at end of file + */ diff --git a/isams/isams.c b/isams/isams.c index cbe85f7..f3583cc 100644 --- a/isams/isams.c +++ b/isams/isams.c @@ -1,32 +1,26 @@ -/* - * Copyright (c) 1995-2001, Index Data. - * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isams.c,v $ - * Revision 1.2 2001-10-26 20:22:31 adam - * Less LOG_LOG messages. - * - * Revision 1.1 1999/11/30 14:02:45 adam - * Moved isams. - * - * Revision 1.5 1999/07/14 10:59:27 adam - * Changed functions isc_getmethod, isams_getmethod. - * Improved fatal error handling (such as missing EXPLAIN schema). - * - * Revision 1.4 1999/05/26 07:49:14 adam - * C++ compilation. - * - * Revision 1.3 1999/05/20 12:57:18 adam - * Implemented TCL filter. Updated recctrl system. - * - * Revision 1.2 1999/05/15 14:35:48 adam - * Minor changes. - * - * Revision 1.1 1999/05/12 13:08:06 adam - * First version of ISAMS. - * - */ +/* $Id: isams.c,v 1.3 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/recctrl/grsread.h b/recctrl/grsread.h index c68d103..c7c4ad1 100644 --- a/recctrl/grsread.h +++ b/recctrl/grsread.h @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: grsread.h,v 1.9 2002-05-13 14:13:43 adam Exp $ - */ +/* $Id: grsread.h,v 1.10 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef GRSREAD_H #define GRSREAD_H diff --git a/recctrl/marcread.c b/recctrl/marcread.c index b3f5190..49a27fc 100644 --- a/recctrl/marcread.c +++ b/recctrl/marcread.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1997-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: marcread.c,v 1.16 2002-07-05 12:43:30 adam Exp $ - */ +/* $Id: marcread.c,v 1.17 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/recctrl/recctrl.c b/recctrl/recctrl.c index 9530959..4c3a605 100644 --- a/recctrl/recctrl.c +++ b/recctrl/recctrl.c @@ -1,43 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: recctrl.c,v $ - * Revision 1.5 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.4 1999/05/20 12:57:18 adam - * Implemented TCL filter. Updated recctrl system. - * - * Revision 1.3 1998/10/16 08:14:36 adam - * Updated record control system. - * - * Revision 1.2 1996/10/29 14:03:16 adam - * Include zebrautl.h instead of alexutil.h. - * - * Revision 1.1 1996/10/11 10:57:24 adam - * New module recctrl. Used to manage records (extract/retrieval). - * - * Revision 1.5 1996/06/04 10:18:59 adam - * Minor changes - removed include of ctype.h. - * - * Revision 1.4 1995/12/04 17:59:24 adam - * More work on regular expression conversion. - * - * Revision 1.3 1995/12/04 14:22:30 adam - * Extra arg to recType_byName. - * Started work on new regular expression parsed input to - * structured records. - * - * Revision 1.2 1995/11/15 14:46:19 adam - * Started work on better record management system. - * - * Revision 1.1 1995/09/27 12:22:28 adam - * More work on extract in record control. - * Field name is not in isam keys but in prefix in dictionary words. - * - */ +/* $Id: recctrl.c,v 1.6 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/recctrl/recgrs.c b/recctrl/recgrs.c index 6ed00bd..c41906f 100644 --- a/recctrl/recgrs.c +++ b/recctrl/recgrs.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: recgrs.c,v 1.58 2002-08-02 10:07:48 adam Exp $ - */ +/* $Id: recgrs.c,v 1.59 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/recctrl/recgrs.h b/recctrl/recgrs.h index e45691a..4fda9f1 100644 --- a/recctrl/recgrs.h +++ b/recctrl/recgrs.h @@ -1,29 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: recgrs.h,v $ - * Revision 1.4 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.3 1999/02/02 14:51:29 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.2 1997/04/30 08:56:08 quinn - * null - * - * Revision 1.1 1996/10/11 10:57:26 adam - * New module recctrl. Used to manage records (extract/retrieval). - * - * Revision 1.1 1995/11/01 13:58:28 quinn - * Moving data1 to yaz/retrieval - * - * Revision 1.1 1995/09/15 14:41:47 quinn - * GRS1 work - * - * - */ +/* $Id: recgrs.h,v 1.5 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RECGRS_H #define RECGRS_H diff --git a/recctrl/rectext.c b/recctrl/rectext.c index f102e7c..9995716 100644 --- a/recctrl/rectext.c +++ b/recctrl/rectext.c @@ -1,80 +1,26 @@ -/* - * Copyright (C) 1994-2001, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rectext.c,v $ - * Revision 1.14 2001-01-22 11:41:41 adam - * Added support for raw retrieval (element set name "R"). - * - * Revision 1.13 1999/09/07 07:19:21 adam - * Work on character mapping. Implemented replace rules. - * - * Revision 1.12 1999/05/26 07:49:14 adam - * C++ compilation. - * - * Revision 1.11 1999/05/21 12:00:17 adam - * Better diagnostics for extraction process. - * - * Revision 1.10 1999/05/20 12:57:18 adam - * Implemented TCL filter. Updated recctrl system. - * - * Revision 1.9 1998/10/16 08:14:38 adam - * Updated record control system. - * - * Revision 1.8 1998/05/20 10:12:27 adam - * Implemented automatic EXPLAIN database maintenance. - * Modified Zebra to work with ASN.1 compiled version of YAZ. - * - * Revision 1.7 1998/03/11 11:19:05 adam - * Changed the way sequence numbers are generated. - * - * Revision 1.6 1998/02/10 12:03:06 adam - * Implemented Sort. - * - * Revision 1.5 1997/10/27 14:33:06 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - * Revision 1.4 1996/11/04 14:09:16 adam - * Minor changes. - * - * Revision 1.3 1996/11/01 09:00:33 adam - * This simple "text" format now supports element specs B and M. - * - * Revision 1.2 1996/10/29 14:02:45 adam - * Uses buffered read to speed up things. - * - * Revision 1.1 1996/10/11 10:57:28 adam - * New module recctrl. Used to manage records (extract/retrieval). - * - * Revision 1.7 1996/01/17 14:57:55 adam - * Prototype changed for reader functions in extract/retrieve. File - * is identified by 'void *' instead of 'int. - * - * Revision 1.6 1995/10/10 13:59:24 adam - * Function rset_open changed its wflag parameter to general flags. - * - * Revision 1.5 1995/10/02 16:24:39 adam - * Use attribute actually used in search requests. - * - * Revision 1.4 1995/10/02 15:42:55 adam - * Extract uses file descriptors instead of FILE pointers. - * - * Revision 1.3 1995/09/28 09:19:45 adam - * xfree/xmalloc used everywhere. - * Extract/retrieve method seems to work for text records. - * - * Revision 1.2 1995/09/15 14:45:21 adam - * Retrieve control. - * Work on truncation. - * - * Revision 1.1 1995/09/14 07:48:25 adam - * Record control management. - * - */ +/* $Id: rectext.c,v 1.15 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/recctrl/rectext.h b/recctrl/rectext.h index 2ba91c3..59cbffd 100644 --- a/recctrl/rectext.h +++ b/recctrl/rectext.h @@ -1,25 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rectext.h,v $ - * Revision 1.4 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.3 1999/02/02 14:51:30 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.2 1997/04/30 08:56:08 quinn - * null - * - * Revision 1.1 1996/10/11 10:57:29 adam - * New module recctrl. Used to manage records (extract/retrieval). - * - * Revision 1.1 1995/09/14 07:48:14 adam - * Record control management. - * - */ +/* $Id: rectext.h,v 1.5 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef RECTEXT_H #define RECTEXT_H diff --git a/recctrl/regxread.c b/recctrl/regxread.c index 0bf186c..78b4449 100644 --- a/recctrl/regxread.c +++ b/recctrl/regxread.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: regxread.c,v 1.43 2002-07-05 12:43:30 adam Exp $ - */ +/* $Id: regxread.c,v 1.44 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/recctrl/sgmlread.c b/recctrl/sgmlread.c index 1bcce37..c22cd51 100644 --- a/recctrl/sgmlread.c +++ b/recctrl/sgmlread.c @@ -1,42 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: sgmlread.c,v $ - * Revision 1.10 1999-11-30 13:48:04 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.9 1999/07/14 10:56:16 adam - * Filter handles multiple records in one file. - * - * Revision 1.8 1999/06/25 13:47:25 adam - * Minor change that prevents MSVC warning. - * - * Revision 1.7 1999/05/21 12:00:17 adam - * Better diagnostics for extraction process. - * - * Revision 1.6 1999/05/20 12:57:18 adam - * Implemented TCL filter. Updated recctrl system. - * - * Revision 1.5 1999/02/02 14:51:31 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1997/09/17 12:19:22 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.3 1997/09/04 13:54:41 adam - * Added MARC filter - type grs.marc. where syntax refers - * to abstract syntax. New method tellf in retrieve/extract method. - * - * Revision 1.2 1997/04/30 08:56:08 quinn - * null - * - * Revision 1.1 1996/10/11 10:57:32 adam - * New module recctrl. Used to manage records (extract/retrieval). - * - */ +/* $Id: sgmlread.c,v 1.11 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/recctrl/xmlread.c b/recctrl/xmlread.c index b413e17..54e0296 100644 --- a/recctrl/xmlread.c +++ b/recctrl/xmlread.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: xmlread.c,v 1.1 2002-05-13 14:13:43 adam Exp $ - */ +/* $Id: xmlread.c,v 1.2 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #if YAZ_HAVE_EXPAT diff --git a/rset/rsbetween.c b/rset/rsbetween.c index 4222c30..517aa7a 100644 --- a/rset/rsbetween.c +++ b/rset/rsbetween.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Heikki Levanto - * - * $Id: rsbetween.c,v 1.6 2002-08-01 08:53:35 adam Exp $ - */ +/* $Id: rsbetween.c,v 1.7 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/rset/rsbool.c b/rset/rsbool.c index 9d51655..53997d0 100644 --- a/rset/rsbool.c +++ b/rset/rsbool.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: rsbool.c,v 1.18 2002-04-18 19:48:28 adam Exp $ - */ +/* $Id: rsbool.c,v 1.19 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/rset/rset.c b/rset/rset.c index 29c8060..66164da 100644 --- a/rset/rset.c +++ b/rset/rset.c @@ -1,65 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rset.c,v $ - * Revision 1.16 2002-07-25 13:06:44 adam - * Character set negotiation updates - * - * Revision 1.15 2002/03/20 20:24:30 adam - * Hits per term. Returned in SearchResult-1 - * - * Revision 1.14 1999/05/26 07:49:14 adam - * C++ compilation. - * - * Revision 1.13 1999/02/02 14:51:33 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.12 1998/04/26 10:56:57 adam - * Added include of string.h. - * - * Revision 1.11 1998/03/05 08:36:28 adam - * New result set model. - * - * Revision 1.10 1998/02/10 11:56:46 adam - * Implemented rset_dup. - * - * Revision 1.9 1996/10/29 13:55:21 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.8 1995/12/11 09:15:23 adam - * New set types: sand/sor/snot - ranked versions of and/or/not in - * ranked/semi-ranked result sets. - * Note: the snot not finished yet. - * New rset member: flag. - * Bug fix: r_delete in rsrel.c did free bad memory block. - * - * Revision 1.7 1995/10/12 12:41:56 adam - * Private info (buf) moved from struct rset_control to struct rset. - * Bug fixes in relevance. - * - * Revision 1.6 1995/09/08 14:52:41 adam - * Work on relevance feedback. - * - * Revision 1.5 1995/09/07 13:58:43 adam - * New parameter: result-set file descriptor (RSFD) to support multiple - * positions within the same result-set. - * Boolean operators: and, or, not implemented. - * - * Revision 1.4 1995/09/06 16:11:56 adam - * More work on boolean sets. - * - * Revision 1.3 1995/09/04 15:20:39 adam - * More work on temp sets. is_open member removed. - * - * Revision 1.2 1995/09/04 12:33:56 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.1 1994/11/04 13:21:28 quinn - * Working. - * - */ +/* $Id: rset.c,v 1.17 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/rset/rsisam.c b/rset/rsisam.c index bbb3859..278573f 100644 --- a/rset/rsisam.c +++ b/rset/rsisam.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: rsisam.c,v 1.22 2002-04-05 08:46:26 adam Exp $ - */ +/* $Id: rsisam.c,v 1.23 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/rset/rsisamb.c b/rset/rsisamb.c index 7466c4a..ee534f8 100644 --- a/rset/rsisamb.c +++ b/rset/rsisamb.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: rsisamb.c,v 1.1 2002-04-16 22:31:42 adam Exp $ - */ +/* $Id: rsisamb.c,v 1.2 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/rset/rsisamc.c b/rset/rsisamc.c index 110bbcd..541b7da 100644 --- a/rset/rsisamc.c +++ b/rset/rsisamc.c @@ -1,9 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * - * $Id: rsisamc.c,v 1.11 2002-04-05 08:46:26 adam Exp $ - */ +/* $Id: rsisamc.c,v 1.12 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/rset/rsisamd.c b/rset/rsisamd.c index b0e06ca..b655b94 100644 --- a/rset/rsisamd.c +++ b/rset/rsisamd.c @@ -1,21 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rsisamd.c,v $ - * Revision 1.3 2002-07-12 18:12:22 heikki - * Isam-D now stores small entries directly in the dictionary. - * Needs more tuning and cleaning... - * - * Revision 1.2 2002/04/05 08:46:26 adam - * Zebra with full functionality - * - * Revision 1.1 2001/01/16 19:17:18 heikki - * Added rsisamd.c - * - * - */ +/* $Id: rsisamd.c,v 1.4 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/rset/rsisams.c b/rset/rsisams.c index 471babf..e6d4ffe 100644 --- a/rset/rsisams.c +++ b/rset/rsisams.c @@ -1,16 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rsisams.c,v $ - * Revision 1.2 1999-05-26 07:49:14 adam - * C++ compilation. - * - * Revision 1.1 1999/05/12 15:24:25 adam - * First version of ISAMS. - * - */ +/* $Id: rsisams.c,v 1.3 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/rset/rsm_or.c b/rset/rsm_or.c index 05f7fe1..a3a858b 100644 --- a/rset/rsm_or.c +++ b/rset/rsm_or.c @@ -1,11 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: rsm_or.c,v 1.12 2002-04-05 08:46:26 adam Exp $ - * - */ +/* $Id: rsm_or.c,v 1.13 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/rset/rsnull.c b/rset/rsnull.c index c54f364..d49d406 100644 --- a/rset/rsnull.c +++ b/rset/rsnull.c @@ -1,62 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: rsnull.c,v $ - * Revision 1.14 2002-07-25 13:06:44 adam - * Character set negotiation updates - * - * Revision 1.13 2002/03/21 10:25:42 adam - * use lockDir. Fixes for searchResult for null/sort sets - * - * Revision 1.12 1999/05/26 07:49:14 adam - * C++ compilation. - * - * Revision 1.11 1999/02/02 14:51:36 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.10 1998/03/05 08:36:28 adam - * New result set model. - * - * Revision 1.9 1997/12/18 10:54:25 adam - * New method result set method rs_hits that returns the number of - * hits in result-set (if known). The ranked result set returns real - * number of hits but only when not combined with other operands. - * - * Revision 1.8 1996/10/29 13:55:24 adam - * Include of zebrautl.h instead of alexutil.h. - * - * Revision 1.7 1995/12/11 09:15:25 adam - * New set types: sand/sor/snot - ranked versions of and/or/not in - * ranked/semi-ranked result sets. - * Note: the snot not finished yet. - * New rset member: flag. - * Bug fix: r_delete in rsrel.c did free bad memory block. - * - * Revision 1.6 1995/10/12 12:41:57 adam - * Private info (buf) moved from struct rset_control to struct rset. - * Bug fixes in relevance. - * - * Revision 1.5 1995/10/10 14:00:04 adam - * Function rset_open changed its wflag parameter to general flags. - * - * Revision 1.4 1995/10/06 14:38:06 adam - * New result set method: r_score. - * Local no (sysno) and score is transferred to retrieveCtrl. - * - * Revision 1.3 1995/09/08 14:52:42 adam - * Work on relevance feedback. - * - * Revision 1.2 1995/09/07 13:58:43 adam - * New parameter: result-set file descriptor (RSFD) to support multiple - * positions within the same result-set. - * Boolean operators: and, or, not implemented. - * - * Revision 1.1 1995/09/06 10:35:44 adam - * Null set implemented. - * - */ +/* $Id: rsnull.c,v 1.15 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/rset/rstemp.c b/rset/rstemp.c index 173af35..e32822b 100644 --- a/rset/rstemp.c +++ b/rset/rstemp.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: rstemp.c,v 1.32 2002-05-03 13:46:33 adam Exp $ - */ +/* $Id: rstemp.c,v 1.33 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/test/api/t1.c b/test/api/t1.c index c276d4d..353a533 100644 --- a/test/api/t1.c +++ b/test/api/t1.c @@ -1,6 +1,26 @@ -/* - * $Id: t1.c,v 1.1 2002-02-20 17:30:02 adam Exp $ - */ +/* $Id: t1.c,v 1.2 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/test/api/t2.c b/test/api/t2.c index 4e0d6bc..e9c3efb 100644 --- a/test/api/t2.c +++ b/test/api/t2.c @@ -1,6 +1,26 @@ -/* - * $Id: t2.c,v 1.2 2002-02-20 23:07:54 adam Exp $ - */ +/* $Id: t2.c,v 1.3 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/util/charmap.c b/util/charmap.c index a80bbff..011cb39 100644 --- a/util/charmap.c +++ b/util/charmap.c @@ -1,11 +1,26 @@ -/* - * Copyright (C) 1996-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: charmap.c,v 1.24 2002-07-26 14:43:09 adam Exp $ - * - */ +/* $Id: charmap.c,v 1.25 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + /* * Support module to handle character-conversions into and out of the diff --git a/util/dirent.c b/util/dirent.c index d0e7ef4..36e1f0c 100644 --- a/util/dirent.c +++ b/util/dirent.c @@ -1,11 +1,26 @@ -/* - * Copyright (C) 1997-2002, Index Data - * All rights reserved. - * - * $Id: dirent.c,v 1.5 2002-04-04 20:50:37 adam Exp $ - * - * This utility implements a opendir/readdir/close on Windows. - */ +/* $Id: dirent.c,v 1.6 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/util/passtest.c b/util/passtest.c index 14191db..0e92527 100644 --- a/util/passtest.c +++ b/util/passtest.c @@ -1,3 +1,26 @@ +/* $Id: passtest.c,v 1.4 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/util/passwddb.c b/util/passwddb.c index b3d6936..3db6189 100644 --- a/util/passwddb.c +++ b/util/passwddb.c @@ -1,25 +1,26 @@ -/* - * Copyright (C) 1998-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: passwddb.c,v $ - * Revision 1.6 1999-11-30 13:48:04 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.5 1999/05/26 07:49:14 adam - * C++ compilation. - * - * Revision 1.4 1999/02/02 14:51:39 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.3 1998/06/25 19:16:32 adam - * Minor changes to Visual C++ project. - * - * Revision 1.2 1998/06/25 09:55:51 adam - * Minor changes - fixex headers. - * - */ +/* $Id: passwddb.c,v 1.7 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifdef WIN32 #else #include diff --git a/util/res-test.c b/util/res-test.c index 7ad63d8..e345a73 100644 --- a/util/res-test.c +++ b/util/res-test.c @@ -1,31 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: res-test.c,v $ - * Revision 1.7 1999-02-02 14:51:41 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.6 1996/10/29 13:48:16 adam - * Updated to use zebrautl.h instead of alexutil.h. - * - * Revision 1.5 1995/09/04 12:34:05 adam - * Various cleanup. YAZ util used instead. - * - * Revision 1.4 1994/10/04 17:47:11 adam - * Function options now returns arg with error option. - * - * Revision 1.3 1994/08/18 11:02:27 adam - * Implementation of res_write. - * - * Revision 1.2 1994/08/18 10:02:01 adam - * Module alexpath moved from res.c to alexpath.c. Minor changes in res-test.c - * - * Revision 1.1 1994/08/18 09:43:51 adam - * Development of resource manager. Only missing is res_write. - * - */ +/* $Id: res-test.c,v 1.8 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include diff --git a/util/res.c b/util/res.c index f9e6689..affe022 100644 --- a/util/res.c +++ b/util/res.c @@ -1,10 +1,26 @@ -/* - * Copyright (C) 1994-2002, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Id: res.c,v 1.30 2002-04-04 20:50:37 adam Exp $ - */ +/* $Id: res.c,v 1.31 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include #include diff --git a/util/zebra-lock.c b/util/zebra-lock.c index 7ed078e..14cc1d1 100644 --- a/util/zebra-lock.c +++ b/util/zebra-lock.c @@ -1,3 +1,26 @@ +/* $Id: zebra-lock.c,v 1.7 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/util/zebramap.c b/util/zebramap.c index 223c2f3..e12b445 100644 --- a/util/zebramap.c +++ b/util/zebramap.c @@ -1,94 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: zebramap.c,v $ - * Revision 1.26 2002-08-01 08:53:35 adam - * Work on xpath-like queries - * - * Revision 1.25 2002/04/05 12:54:29 adam - * Using yaz_fclose - * - * Revision 1.24 2002/04/04 20:50:37 adam - * Multi register works with record paths and data1 profile path - * - * Revision 1.23 2001/11/15 08:41:24 adam - * Fix for weight (bug introduced by previous commit). - * - * Revision 1.22 2001/11/14 22:06:27 adam - * Rank-weight may be controlled via query. - * - * Revision 1.21 2001/01/22 10:42:56 adam - * Added numerical sort. - * - * Revision 1.20 2000/03/02 14:35:19 adam - * Added structure year and date. - * - * Revision 1.19 1999/11/30 13:48:04 adam - * Improved installation. Updated for inclusion of YAZ header files. - * - * Revision 1.18 1999/10/15 08:27:46 adam - * Fixed replace handler. 8-bit fix. - * - * Revision 1.17 1999/09/08 12:13:21 adam - * Fixed minor bug "replace"-mappings. Removed some logging messages. - * - * Revision 1.16 1999/09/07 07:19:21 adam - * Work on character mapping. Implemented replace rules. - * - * Revision 1.15 1999/05/26 07:49:14 adam - * C++ compilation. - * - * Revision 1.14 1999/02/19 10:37:40 adam - * Minor fix. - * - * Revision 1.13 1999/02/18 15:01:04 adam - * Structure=key uses register type 0. - * - * Revision 1.12 1999/02/12 13:29:25 adam - * Implemented position-flag for registers. - * - * Revision 1.11 1998/10/13 20:09:19 adam - * Changed call to readconf_line. - * - * Revision 1.10 1998/06/23 15:33:37 adam - * Added feature to specify sort criteria in query (type 7 specifies - * sort flags). - * - * Revision 1.9 1998/04/02 14:35:30 adam - * First version of Zebra that works with compiled ASN.1. - * - * Revision 1.8 1998/03/05 08:42:44 adam - * Minor changes to zebramap data structures. Query mapping rules changed. - * - * Revision 1.7 1998/02/10 12:03:07 adam - * Implemented Sort. - * - * Revision 1.6 1998/01/29 13:36:01 adam - * Structure word-list, free-form-text and document-text all - * trigger ranked search. - * - * Revision 1.5 1997/11/19 10:22:14 adam - * Bug fix (introduced by previous commit). - * - * Revision 1.4 1997/11/18 10:05:08 adam - * Changed character map facility so that admin can specify character - * mapping files for each register type, w, p, etc. - * - * Revision 1.3 1997/11/17 15:35:26 adam - * Bug fix. Relation=relevance wasn't observed. - * - * Revision 1.2 1997/10/31 12:39:30 adam - * Changed log message. - * - * Revision 1.1 1997/10/27 14:33:06 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - */ +/* $Id: zebramap.c,v 1.27 2002-08-02 19:26:57 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include #include diff --git a/zebra.spec b/zebra.spec index a225fe0..4f028fd 100644 --- a/zebra.spec +++ b/zebra.spec @@ -1,8 +1,8 @@ Name: zebra -Version: 1.2.0 +Version: 1.3.0 Release: 1 Requires: yaz -Copyright: Distributable +Copyright: GPL Group: Applications/Databases Vendor: Index Data ApS Source: zebra-%{version}.tar.gz @@ -13,9 +13,7 @@ Summary: Zebra: a fielded free-text engine with a Z39.50 frontend. %description Zebra is a fielded free-text indexing and retrieval engine with a Z39.50 -front-end. You can use any compatible, commercial or freeware Z39.50 client to -access data stored in Zebra. Zebra may be used free-of-charge in non-profit -applications by non-commercial organisations. +front-end. %prep %setup -- 1.7.10.4