-/* $Id: kdump.c,v 1.23 2003-05-24 22:35:11 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
- Index Data Aps
+/* $Id: kdump.c,v 1.31 2006-05-10 08:13:21 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
02111-1307, USA.
*/
-
#include <stdio.h>
#include <string.h>
#include <assert.h>
+#include <stdlib.h>
#ifdef WIN32
#include <io.h>
-#else
+#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <assert.h>
char *prog;
+int main(int argc, char **argv)
+{
+ exit(0);
+}
+#if 0
+/* old kdumper.. must be updated to use new codec .. */
int key_file_decode (FILE *f)
{
int c, d;
return 1;
}
+
int main (int argc, char **argv)
{
int ret;
}
else if (ret == 'c')
{
- if (!(res = res_open (arg, 0)))
+ if (!(res = res_open (arg, 0, 0)))
{
- logf(LOG_FATAL, "Failed to open resource file %s", arg);
+ yaz_log(YLOG_FATAL, "Failed to open resource file %s", arg);
exit (1);
}
}
else
{
- logf (LOG_FATAL, "Unknown option '-%s'", arg);
+ yaz_log (YLOG_FATAL, "Unknown option '-%s'", arg);
exit (1);
}
}
exit (1);
}
if (!res)
- res = res_open ("zebra.cfg", 0);
+ res = res_open ("zebra.cfg", 0, 0);
zm = zebra_maps_open (res, 0);
if (!(inf = fopen (key_fname, "r")))
{
- logf (LOG_FATAL|LOG_ERRNO, "fopen %s", key_fname);
+ yaz_log (YLOG_FATAL|YLOG_ERRNO, "fopen %s", key_fname);
exit (1);
}
printf ("t rg op sysno seqno txt\n");
zebra_maps_close (zm);
if (fclose (inf))
{
- logf (LOG_FATAL|LOG_ERRNO, "fclose %s", key_fname);
+ yaz_log (YLOG_FATAL|YLOG_ERRNO, "fclose %s", key_fname);
exit (1);
}
-
exit (0);
}
+#endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+