-/* $Id: tstbfile2.c,v 1.3 2006-11-08 22:05:43 adam Exp $
- Copyright (C) 1995-2006
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ Copyright (C) 2004-2013 Index Data
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
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
return;
YAZ_CHECK(max_block * block_size < 4 * 1000000); /* 4M */
-
+
r = mkdir("register", 0777);
YAZ_CHECK(r == 0 || (r == -1 && errno == EEXIST));
{
zint bno = 0;
int step = max_block / 50;
-
+
while (bno < max_block)
{
memset(buf, ' ', block_size);
int main(int argc, char **argv)
{
YAZ_CHECK_INIT(argc, argv);
+ YAZ_CHECK_LOG();
tst();
YAZ_CHECK_TERM;
}