- * Copyright (C) 1994, Index Data.
- * All rights reserved. See the file LICENSE for details.
+ * Copyright (C) 1995, Index Data.
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
Compilation and installation
-The primary output of the source here is the libyaz.a library, which
-contains support functions for implementing the server or client role
-of Z39.50/SR. Currently, the library is placed in a directory 'lib'
-which is one level *above* the distribution directory (yaz). This was
-initially done because the library is often used along with several
-other packages, and it was useful to gather the different libraries in
-a common place. If you don't like it, changing the 'LIBDIR' macro in
-the toplevel makefile should be sufficient. Obscurely, the header
-files are located in the include-directory *under* the yaz/ directory.
-
-The toplevel makefile also contains directions on how to enable Peter
+The primary output of the source here is the lib/libyaz.a library,
+which contains support functions for implementing the server or client
+role of Z39.50/SR.
+
+The toplevel makefile contains directions on how to enable Peter
Furniss' XTIMOSI package. The package can be downloaded from
ftp://pluto.ulcc.ac.uk/ulcc/thinosi/... (or something close to that).
If you place the xtimosi directory on the same level as the yaz
The directories:
-doc - Documentation. Check this out if you'd like to use the code.
+doc - Documentation.
util - Various little utility functions. Logging, memory debugging,
- primitive ISO2709 presentation for the client, etc.
+ primitive ISO 2709 presentation for the client, etc.
odr - Open Data Representation. This module implements the BER
- encoding rules. Documentation is found in the files odr.man
+ encoding rules. Documentation is found in the files odr-use.man
and odr.txt.
asn - This module implements the Z39.50/SR protocol. The best way
to find out how it works is to look in the sample
- client/server code in server/seshigh.c or yazlib/tst.c.
+ client/server code in server/seshigh.c or yazlib/tst.c. The
+ interface is still wholly described by the file proto.h
+ which defines structure and type definitions for each of the
+ types introduced in the protocol specification.
yazlib - This module primarily implements the transport transparency
stack (COMSTACK). The comstack implements a generic interface
TCP/IP, and uses Peter Furniss' XTIMOSI package over RFC1006.
Look for documentation in the file comstack.man.
-server - This is the implementation of the server frontend. It
- It provides event-handling and server managament functions,
- and calls the backend primitives (best documentation of these
- is in the file include/backend.h).
-
rfc1006 - Xtimosi requires an implementation of the OSI transport
with an XTI-based API. Some systems (HP and DEC, notably)
provide this. For others, we provide an implementation of the
typically use). This module is not neeeded if you don't use
xtimosi.
+server - This is the implementation of the server frontend. It
+ provides event-handling and server managament functions,
+ and calls the backend primitives (best documentation of these
+ is in the file include/backend.h). See server.txt.
+
include - The various header files.
makelib - This is a simple utility that gathers the libraries from the
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: diagbib1.c,v $
- * Revision 1.1 1995-03-15 13:46:09 adam
+ * Revision 1.2 1995-05-16 08:50:21 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/15 13:46:09 adam
* New function diagbib1_str.
*
*/
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: proto.c,v $
- * Revision 1.20 1995-05-15 11:55:25 quinn
+ * Revision 1.21 1995-05-16 08:50:24 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.20 1995/05/15 11:55:25 quinn
* Smallish.
*
* Revision 1.19 1995/04/11 11:58:35 quinn
int z_NSRAuthentication(ODR o, Z_NSRAuthentication **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
odr_visiblestring(o, &(*p)->user, 0) &&
odr_visiblestring(o, &(*p)->password, 0) &&
int z_IdPass(ODR o, Z_IdPass **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
odr_implicit(o, odr_visiblestring, &(*p)->groupId, ODR_CONTEXT, 0, 0) &&
odr_implicit(o, odr_visiblestring, &(*p)->userId, ODR_CONTEXT, 1, 0) &&
odr_constructed_end(o))
return 1;
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
int z_Operand(ODR o, Z_Operand **p, int opt)
if (odr_choice(o, arm, &(*p)->u, &(*p)->which))
return 1;
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
int z_RPNStructure(ODR o, Z_RPNStructure **p, int opt);
int z_Complex(ODR o, Z_Complex **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
z_RPNStructure(o, &(*p)->s1, 0) &&
z_RPNStructure(o, &(*p)->s2, 0) &&
if (odr_choice(o, arm, &(*p)->u, &(*p)->which))
return 1;
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
int z_RPNQuery(ODR o, Z_RPNQuery **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
odr_oid(o, &(*p)->attributeSetId, 0) &&
z_RPNStructure(o, &(*p)->RPNStructure, 0) &&
if (odr_choice(o, arm, &(*p)->u, &(*p)->which))
return 1;
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
int z_SearchRequest(ODR o, Z_SearchRequest **p, int opt)
Z_SearchRequest *pp;
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
pp = *p;
return
z_ReferenceId(o, &pp->referenceId, 1) &&
int z_DiagRec(ODR o, Z_DiagRec **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
odr_oid(o, &(*p)->diagnosticSetId, 1) && /* SHOULD NOT BE OPT */
odr_integer(o, &(*p)->condition, 0) &&
};
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
odr_implicit(o, z_DatabaseName, &(*p)->databaseName, ODR_CONTEXT,
0, 1) &&
if (odr_choice(o, arm, &(*p)->u, &(*p)->which))
return 1;
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
/* ------------------------ SCAN SERVICE -------------------- */
&(*p)->num_attributes))
return 1;
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
/*
if (!odr_constructed_begin(o, p, ODR_CONTEXT, 4))
{
o->t_class = -1;
- return opt;
+ return opt && odr_ok(o);
}
if (!odr_constructed_begin(o, p, ODR_CONTEXT, 1))
return 0;
else if (!*p)
{
o->t_class = -1;
- return opt;
+ return opt && odr_ok(o);
}
if (odr_sequence_of(o, z_AttributesPlusTerm, &(*p)->terms,
int z_OccurrenceByAttributes(ODR o, Z_OccurrenceByAttributes **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
odr_explicit(o, z_AttributeList, &(*p)->attributes, ODR_CONTEXT, 1, 1)&&
odr_explicit(o, odr_integer, &(*p)->global, ODR_CONTEXT, 2, 1) &&
int z_TermInfo(ODR o, Z_TermInfo **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
(willow_scan ?
odr_implicit(o, z_Term, &(*p)->term, ODR_CONTEXT, 1, 0) :
if (odr_choice(o, arm, &(*p)->u, &(*p)->which))
return 1;
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
int z_Entries(ODR o, Z_Entries **p, int opt)
if (odr_choice(o, arm, &(*p)->u, &(*p)->which))
return 1;
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
int z_ScanRequest(ODR o, Z_ScanRequest **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
willow_scan = 0;
return
z_ReferenceId(o, &(*p)->referenceId, 1) &&
int z_ScanResponse(ODR o, Z_ScanResponse **p, int opt)
{
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
return
z_ReferenceId(o, &(*p)->referenceId, 1) &&
odr_implicit(o, odr_integer, &(*p)->stepSize, ODR_CONTEXT, 3, 1) &&
Z_SearchResponse *pp;
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
pp = *p;
return
z_ReferenceId(o, &pp->referenceId, 1) &&
Z_PresentRequest *pp;
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
pp = *p;
return
z_ReferenceId(o, &pp->referenceId, 1) &&
Z_PresentResponse *pp;
if (!odr_sequence_begin(o, p, sizeof(**p)))
- return opt;
+ return opt && odr_ok(o);
pp = *p;
return
z_ReferenceId(o, &pp->referenceId, 1) &&
{
if (o->direction == ODR_DECODE)
*p = 0;
- return opt && !o->error;
+ return opt && odr_ok(o);
}
return 1;
}
/*
- * Copyright (C) 1994, Index Data.
+ * Copyright (c) 1995, Index Data.
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: header.c,v $
- * Revision 1.2 1995-05-15 11:55:15 quinn
+ * Revision 1.3 1995-05-16 08:50:16 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.2 1995/05/15 11:55:15 quinn
* Documentation & other details.
*
* Revision 1.1 1995/03/10 18:22:18 quinn
+/*
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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.
+ *
+ */
+
#ifndef BACKEND_H
#define BACKEND_H
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: comstack.h,v $
- * Revision 1.3 1995-04-20 15:12:44 quinn
+ * Revision 1.4 1995-05-16 08:50:29 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.3 1995/04/20 15:12:44 quinn
* Cosmetic
*
* Revision 1.2 1995/04/17 11:28:17 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: diagbib1.h,v $
- * Revision 1.1 1995-03-30 09:39:40 quinn
+ * Revision 1.2 1995-05-16 08:50:30 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/30 09:39:40 quinn
* Moved .h files to include directory
*
* Revision 1.1 1995/03/15 13:46:09 adam
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: dmalloc.h,v $
- * Revision 1.1 1995-03-30 09:39:40 quinn
+ * Revision 1.2 1995-05-16 08:50:30 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/30 09:39:40 quinn
* Moved .h files to include directory
*
* Revision 1.1 1995/03/27 08:35:18 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: log.h,v $
- * Revision 1.1 1995-03-30 09:39:41 quinn
+ * Revision 1.2 1995-05-16 08:50:31 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/30 09:39:41 quinn
* Moved .h files to include directory
*
* Revision 1.4 1994/09/28 13:07:22 adam
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: marcdisp.h,v $
- * Revision 1.1 1995-04-10 10:28:28 quinn
+ * Revision 1.2 1995-05-16 08:50:32 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/04/10 10:28:28 quinn
* Added copy of CCL.
*
*/
-
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: odr.h,v $
- * Revision 1.3 1995-05-15 11:55:54 quinn
+ * Revision 1.4 1995-05-16 08:50:33 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.3 1995/05/15 11:55:54 quinn
* Work on asynchronous activity.
*
* Revision 1.2 1995/04/18 08:14:37 quinn
/*
* write a single character at the current position - grow buffer if
* necessary.
- * (no, we're not usually this anal about our macros, but this one is
+ * (no, we're not usually this anal about our macros, but this baby is
* next to unreadable without some indentation :)
*/
#define odr_putc(o, c) \
) \
#define odr_tell(o) ((o)->ecb.pos)
-#define odr_ok(o) (!(o)->ecb.error)
+#define odr_ok(o) (!(o)->error)
#define ODR_MAXNAME 256
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: odr_use.h,v $
- * Revision 1.1 1995-03-30 09:39:41 quinn
+ * Revision 1.2 1995-05-16 08:50:34 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/30 09:39:41 quinn
* Moved .h files to include directory
*
* Revision 1.2 1995/02/09 15:51:50 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: oid.h,v $
- * Revision 1.1 1995-03-30 09:39:41 quinn
+ * Revision 1.2 1995-05-16 08:50:35 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/30 09:39:41 quinn
* Moved .h files to include directory
*
* Revision 1.1 1995/03/27 08:32:13 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: options.h,v $
- * Revision 1.1 1995-03-30 09:39:42 quinn
+ * Revision 1.2 1995-05-16 08:50:36 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/30 09:39:42 quinn
* Moved .h files to include directory
*
* Revision 1.1 1995/03/27 08:35:19 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: proto.h,v $
- * Revision 1.6 1995-05-15 11:55:55 quinn
+ * Revision 1.7 1995-05-16 08:50:37 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.6 1995/05/15 11:55:55 quinn
* Work on asynchronous activity.
*
* Revision 1.5 1995/04/17 11:28:18 quinn
+/*
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: statserv.h,v $
+ * Revision 1.3 1995-05-16 08:50:38 quinn
+ * License, documentation, and memory fixes
+ *
+ *
+ */
+
#ifndef STATSERVER_H
#define STATSERVER_H
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: tcpip.h,v $
- * Revision 1.1 1995-03-30 09:39:43 quinn
+ * Revision 1.2 1995-05-16 08:50:39 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/30 09:39:43 quinn
* Moved .h files to include directory
*
* Revision 1.3 1995/03/27 08:36:11 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: xmosi.h,v $
- * Revision 1.1 1995-03-30 09:39:43 quinn
+ * Revision 1.2 1995-05-16 08:50:39 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/30 09:39:43 quinn
* Moved .h files to include directory
*
* Revision 1.3 1995/03/27 08:36:16 quinn
+/*
+ * Copyright (c) 1995, Index Data.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation, in whole or in part, for any purpose, is hereby granted,
+ * provided that:
+ *
+ * 1. This copyright and permission notice appear in 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 name 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.
+ *
+ * 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: yaz-ccl.h,v $
+ * Revision 1.3 1995-05-16 08:50:40 quinn
+ * License, documentation, and memory fixes
+ *
+ *
+ */
#ifndef YAZ_CCL_H
#define YAZ_CCL_H
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ber_any.c,v $
- * Revision 1.9 1995-04-18 08:15:12 quinn
+ * Revision 1.10 1995-05-16 08:50:42 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.9 1995/04/18 08:15:12 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ber_bit.c,v $
- * Revision 1.4 1995-04-18 08:15:13 quinn
+ * Revision 1.5 1995-05-16 08:50:43 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.4 1995/04/18 08:15:13 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ber_bool.c,v $
- * Revision 1.5 1995-04-18 08:15:14 quinn
+ * Revision 1.6 1995-05-16 08:50:43 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.5 1995/04/18 08:15:14 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ber_int.c,v $
- * Revision 1.6 1995-04-18 08:15:14 quinn
+ * Revision 1.7 1995-05-16 08:50:44 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.6 1995/04/18 08:15:14 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
+/*
+ * Copyright (C) 1995, Index Data.
+ * See the file LICENSE for details.
+ * Sebastian Hammer, Adam Dickmeiss
+ *
+ * $Log: ber_len.c,v $
+ * Revision 1.4 1995-05-16 08:50:45 quinn
+ * License, documentation, and memory fixes
+ *
+ *
+ */
+
#include <stdio.h>
#include <odr.h>
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ber_null.c,v $
- * Revision 1.4 1995-04-18 08:15:16 quinn
+ * Revision 1.5 1995-05-16 08:50:46 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.4 1995/04/18 08:15:16 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ber_oct.c,v $
- * Revision 1.7 1995-04-18 08:15:17 quinn
+ * Revision 1.8 1995-05-16 08:50:47 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.7 1995/04/18 08:15:17 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ber_oid.c,v $
- * Revision 1.6 1995-04-18 08:15:18 quinn
+ * Revision 1.7 1995-05-16 08:50:47 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.6 1995/04/18 08:15:18 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ber_tag.c,v $
- * Revision 1.10 1995-04-18 08:15:18 quinn
+ * Revision 1.11 1995-05-16 08:50:48 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.10 1995/04/18 08:15:18 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr.c,v $
- * Revision 1.11 1995-05-15 11:56:08 quinn
+ * Revision 1.12 1995-05-16 08:50:49 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.11 1995/05/15 11:56:08 quinn
* More work on memory management.
*
* Revision 1.10 1995/04/18 08:15:20 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_any.c,v $
- * Revision 1.3 1995-03-17 10:17:46 quinn
+ * Revision 1.4 1995-05-16 08:50:50 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.3 1995/03/17 10:17:46 quinn
* Added memory management.
*
* Revision 1.2 1995/03/08 12:12:18 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_bit.c,v $
- * Revision 1.7 1995-03-17 10:17:48 quinn
+ * Revision 1.8 1995-05-16 08:50:51 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.7 1995/03/17 10:17:48 quinn
* Added memory management.
*
* Revision 1.6 1995/03/08 12:12:19 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_bool.c,v $
- * Revision 1.5 1995-03-17 10:17:49 quinn
+ * Revision 1.6 1995-05-16 08:50:52 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.5 1995/03/17 10:17:49 quinn
* Added memory management.
*
* Revision 1.4 1995/03/08 12:12:20 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_choice.c,v $
- * Revision 1.5 1995-03-18 12:16:31 quinn
+ * Revision 1.6 1995-05-16 08:50:53 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.5 1995/03/18 12:16:31 quinn
* Minor changes.
*
* Revision 1.4 1995/03/14 16:59:38 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_cons.c,v $
- * Revision 1.10 1995-04-18 08:15:21 quinn
+ * Revision 1.11 1995-05-16 08:50:53 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.10 1995/04/18 08:15:21 quinn
* Added dynamic memory allocation on encoding (whew). Code is now somewhat
* neater. We'll make the same change for decoding one day.
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_int.c,v $
- * Revision 1.6 1995-03-17 10:17:51 quinn
+ * Revision 1.7 1995-05-16 08:50:54 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.6 1995/03/17 10:17:51 quinn
* Added memory management.
*
* Revision 1.5 1995/03/08 12:12:25 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_mem.c,v $
- * Revision 1.4 1995-05-15 11:56:09 quinn
+ * Revision 1.5 1995-05-16 08:50:55 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.4 1995/05/15 11:56:09 quinn
* More work on memory management.
*
* Revision 1.3 1995/04/18 08:15:21 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_null.c,v $
- * Revision 1.4 1995-03-08 12:12:26 quinn
+ * Revision 1.5 1995-05-16 08:50:56 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.4 1995/03/08 12:12:26 quinn
* Added better error checking.
*
* Revision 1.3 1995/02/10 18:57:25 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_oct.c,v $
- * Revision 1.8 1995-03-17 10:17:54 quinn
+ * Revision 1.9 1995-05-16 08:50:56 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.8 1995/03/17 10:17:54 quinn
* Added memory management.
*
* Revision 1.7 1995/03/08 12:12:27 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_oid.c,v $
- * Revision 1.8 1995-03-17 10:17:55 quinn
+ * Revision 1.9 1995-05-16 08:50:57 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.8 1995/03/17 10:17:55 quinn
* Added memory management.
*
* Revision 1.7 1995/03/08 12:12:29 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_priv.c,v $
- * Revision 1.2 1995-03-07 09:23:20 quinn
+ * Revision 1.3 1995-05-16 08:50:58 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.2 1995/03/07 09:23:20 quinn
* Installing top-level API and documentation.
*
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_seq.c,v $
- * Revision 1.9 1995-03-17 10:17:57 quinn
+ * Revision 1.10 1995-05-16 08:50:59 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.9 1995/03/17 10:17:57 quinn
* Added memory management.
*
* Revision 1.8 1995/03/15 11:18:05 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_tag.c,v $
- * Revision 1.2 1995-03-08 12:12:31 quinn
+ * Revision 1.3 1995-05-16 08:51:00 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.2 1995/03/08 12:12:31 quinn
* Added better error checking.
*
* Revision 1.1 1995/02/02 16:21:54 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_use.c,v $
- * Revision 1.2 1995-02-09 15:51:50 quinn
+ * Revision 1.3 1995-05-16 08:51:00 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.2 1995/02/09 15:51:50 quinn
* Works better now.
*
* Revision 1.1 1995/02/03 17:04:39 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: eventl.c,v $
- * Revision 1.7 1995-03-27 15:02:01 quinn
+ * Revision 1.8 1995-05-16 08:51:01 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.7 1995/03/27 15:02:01 quinn
* Added some includes for better portability
*
* Revision 1.6 1995/03/27 08:34:21 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data I/S
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: eventl.h,v $
- * Revision 1.5 1995-05-15 11:56:37 quinn
+ * Revision 1.6 1995-05-16 08:51:02 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.5 1995/05/15 11:56:37 quinn
* Asynchronous facilities. Restructuring of seshigh code.
*
* Revision 1.4 1995/03/27 08:34:23 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: seshigh.c,v $
- * Revision 1.23 1995-05-15 13:25:10 quinn
+ * Revision 1.24 1995-05-16 08:51:04 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.23 1995/05/15 13:25:10 quinn
* Fixed memory bug.
*
* Revision 1.22 1995/05/15 11:56:39 quinn
#include <oid.h>
#include <log.h>
#include <statserv.h>
+#include "../version.h"
#include <backend.h>
char filename[256];
FILE *f;
+ strcpy(filename, control_block->apdufile);
if (!(new->print = odr_createmem(ODR_PRINT)))
return 0;
if (*control_block->apdufile != '-')
}
req->response = odr_getbuf(assoc->encode, &req->len_response,
&req->size_response);
+ odr_setbuf(assoc->encode, 0, 0, 0); /* don't free if we have to quit */
odr_reset(assoc->encode);
+ if (assoc->print && !z_APDU(assoc->print, &res, 0))
+ {
+ logf(LOG_WARN, "ODR print error: %s",
+ odr_errlist[odr_geterror(assoc->print)]);
+ odr_reset(assoc->print);
+ }
/* change this when we make the backend reentrant */
assert(req == request_head(&assoc->incoming));
req->state = REQUEST_IDLE;
resp.result = &result;
resp.implementationId = "YAZ";
resp.implementationName = "Index Data/YAZ Generic Frontend Server";
- resp.implementationVersion = "$Revision: 1.23 $";
+ resp.implementationVersion = YAZ_VERSION;
resp.userInformationField = 0;
return &apdu;
}
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (C) 1995, Index Data I/S
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: session.h,v $
- * Revision 1.6 1995-05-15 11:56:41 quinn
+ * Revision 1.7 1995-05-16 08:51:08 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.6 1995/05/15 11:56:41 quinn
* Asynchronous facilities. Restructuring of seshigh code.
*
* Revision 1.5 1995/04/20 15:13:01 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: statserv.c,v $
- * Revision 1.17 1995-05-15 11:56:42 quinn
+ * Revision 1.18 1995-05-16 08:51:09 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.17 1995/05/15 11:56:42 quinn
* Asynchronous facilities. Restructuring of seshigh code.
*
* Revision 1.16 1995/04/10 10:23:40 quinn
me = argv[0];
while ((ret = options("a:szSl:v:", argv, argc, &arg)) != -2)
+ {
+ if (!arg)
+ arg = "";
switch (ret)
{
case 0:
case 'a':
strcpy(control_block.apdufile, arg); break;
default:
- fprintf(stderr, "Usage: %s [ -v <loglevel> -l <logfile> -zsS <listener-addr> ... ]\n", me);
+ fprintf(stderr, "Usage: %s [ -a <apdufile> -v <loglevel> -l <logfile> -zsS <listener-addr> ... ]\n", me);
exit(1);
}
+ }
if (control_block.dynamic)
signal(SIGCHLD, catchchld);
if (!listeners && *control_block.default_listen)
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dmalloc.c,v $
- * Revision 1.4 1995-05-15 13:25:13 quinn
+ * Revision 1.5 1995-05-16 08:51:10 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.4 1995/05/15 13:25:13 quinn
* Fixed memory bug.
*
* Revision 1.3 1995/05/15 11:56:55 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: log.c,v $
- * Revision 1.4 1995-05-15 11:56:55 quinn
+ * Revision 1.5 1995-05-16 08:51:11 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.4 1995/05/15 11:56:55 quinn
* Debuggng & adjustments.
*
* Revision 1.3 1995/04/10 10:23:51 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: marcdisp.c,v $
- * Revision 1.1 1995-04-10 10:28:46 quinn
+ * Revision 1.2 1995-05-16 08:51:12 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/04/10 10:28:46 quinn
* Added copy of CCL and MARC display
*
*/
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: marcdump.c,v $
- * Revision 1.2 1995-05-15 11:56:56 quinn
+ * Revision 1.3 1995-05-16 08:51:12 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.2 1995/05/15 11:56:56 quinn
* Debuggng & adjustments.
*
* Revision 1.1 1995/04/10 10:28:47 quinn
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: options.c,v $
- * Revision 1.1 1995-03-27 08:35:18 quinn
+ * Revision 1.2 1995-05-16 08:51:13 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/03/27 08:35:18 quinn
* Created util library
* Added memory debugging module. Imported options-manager
*
/*
- * Copyright (C) 1994, Index Data I/S
- * All rights reserved.
+ * Copyright (c) 1995, Index Data
+ * See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: query.c,v $
- * Revision 1.1 1995-04-10 10:28:47 quinn
+ * Revision 1.2 1995-05-16 08:51:14 quinn
+ * License, documentation, and memory fixes
+ *
+ * Revision 1.1 1995/04/10 10:28:47 quinn
* Added copy of CCL and MARC display
*
*