* Sebastian Hammer, Adam Dickmeiss
*
* $Log: grepper.c,v $
- * Revision 1.8 1999-02-02 14:50:07 adam
+ * 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
}
else if (ret == 'v')
{
- log_init (log_mask_str(arg), prog, NULL);
+ yaz_log_init (yaz_log_mask_str(arg), prog, NULL);
}
else if (ret == 's')
{
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dictext.c,v $
- * Revision 1.7 1999-02-02 14:50:18 adam
+ * 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
}
else if (ret == 'v')
{
- log_init (log_mask_str(arg), prog, NULL);
+ yaz_log_init (yaz_log_mask_str(arg), prog, NULL);
}
else if (ret == 'h')
{
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dicttest.c,v $
- * Revision 1.23 2000-07-07 12:49:20 adam
+ * 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
}
else if (ret == 'v')
{
- log_init (log_mask_str(arg), prog, NULL);
+ yaz_log_init (yaz_log_mask_str(arg), prog, NULL);
}
else
{
nmem_init ();
- log_init_file("apitest.log");
+ yaz_log_init_file("apitest.log");
odr_input = odr_createmem (ODR_DECODE);
odr_output = odr_createmem (ODR_ENCODE);
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: extract.c,v $
- * Revision 1.103 2000-05-18 12:01:36 adam
+ * Revision 1.104 2000-09-05 14:04:05 adam
+ * Updates for prefix 'yaz_' for YAZ log functions.
+ *
+ * Revision 1.103 2000/05/18 12:01:36 adam
* System call times(2) used again. More 64-bit fixes.
*
* Revision 1.102 2000/05/15 15:32:33 adam
static void recordLogPreamble (int level, const char *msg, void *info)
{
struct recordLogInfo *p = (struct recordLogInfo *) info;
- FILE *outf = log_file ();
+ FILE *outf = yaz_log_file ();
if (level & LOG_LOG)
return ;
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: lockidx.c,v $
- * Revision 1.18 2000-02-24 11:00:07 adam
+ * 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
{
char path[1024];
- zebra_lock_destroy (server_lock_main);
- server_lock_main = 0;
zebra_lock_prefix (common_resource, path);
strcat (path, FNAME_MAIN_LOCK);
if (unlink (path) && errno != ENOENT)
logf (LOG_WARN|LOG_ERRNO, "unlink %s failed", path);
+ zebra_lock_destroy (server_lock_main);
+ server_lock_main = 0;
}
int zebraIndexLock (BFiles bfs, int commitNow, const char *rval)
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: main.c,v $
- * Revision 1.76 2000-03-20 19:08:36 adam
+ * Revision 1.77 2000-09-05 14:04:05 adam
+ * Updates for prefix 'yaz_' for YAZ log functions.
+ *
+ * Revision 1.76 2000/03/20 19:08:36 adam
* Added remote record import using Z39.50 extended services and Segment
* Requests.
*
#endif
}
else if (ret == 'v')
- log_init_level (log_mask_str(arg));
+ yaz_log_init_level (yaz_log_mask_str(arg));
else if (ret == 'l')
- log_init_file (arg);
+ yaz_log_init_file (arg);
else if (ret == 'm')
mem_max = 1024*1024*atoi(arg);
else if (ret == 'd')
* All rights reserved.
*
* $Log: zserver.c,v $
- * Revision 1.79 2000-05-09 10:56:50 adam
+ * Revision 1.80 2000-09-05 14:04:05 adam
+ * Updates for prefix 'yaz_' for YAZ log functions.
+ *
+ * Revision 1.79 2000/05/09 10:56:50 adam
* Added call to xmalloc/nmem debugging functions.
*
* Revision 1.78 2000/04/05 09:49:35 adam
odr_errmsg(odr_geterror(rr->decode)),
odr_offset(rr->decode));
yaz_log(LOG_LOG, "PDU dump:");
- odr_dumpBER(log_file(),
+ odr_dumpBER(yaz_log_file(),
r->u.single_ASN1_type->buf,
r->u.single_ASN1_type->len);
}
odr_errmsg(odr_geterror(rr->decode)),
odr_offset(rr->decode));
yaz_log(LOG_LOG, "PDU dump:");
- odr_dumpBER(log_file(),
+ odr_dumpBER(yaz_log_file(),
r->u.single_ASN1_type->buf,
r->u.single_ASN1_type->len);
}