* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zrpn.c,v $
- * Revision 1.65 1997-09-22 12:39:06 adam
+ * Revision 1.66 1997-09-25 14:58:03 adam
+ * Windows NT port.
+ *
+ * Revision 1.65 1997/09/22 12:39:06 adam
* Added get_pos method for the ranked result sets.
*
* Revision 1.64 1997/09/18 08:59:20 adam
*/
#include <stdio.h>
#include <assert.h>
+#ifdef WINDOWS
+#include <io.h>
+#else
#include <unistd.h>
+#endif
#include <ctype.h>
#include "zserver.h"
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zserver.c,v $
- * Revision 1.48 1997-09-17 12:19:19 adam
+ * Revision 1.49 1997-09-25 14:57:23 adam
+ * Windows NT port.
+ *
+ * Revision 1.48 1997/09/17 12:19:19 adam
* Zebra version corresponds to YAZ version 1.4.
* Changed Zebra server so that it doesn't depend on global common_resource.
*
*/
#include <stdio.h>
#include <assert.h>
+#ifdef WINDOWS
+#include <io.h>
+#include <process.h>
+#else
#include <unistd.h>
+#endif
#include <fcntl.h>
#include <data1.h>
#include <recctrl.h>
#include <dmalloc.h>
-#define USE_TIMES 1
#ifdef __linux__
#define USE_TIMES 1
#endif
+#ifndef USE_TIMES
+#define USE_TIMES 0
+#endif
+
#if USE_TIMES
#include <sys/times.h>
#endif
else
waitSec = 0;
}
+#ifdef WINDOWS
+#else
if (waitSec > 0)
sleep (waitSec);
+#endif
if (zi->registerState != -1)
zebraServerUnlock (zi->registerState);
}
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zsets.c,v $
- * Revision 1.11 1996-12-23 15:30:46 adam
+ * Revision 1.12 1997-09-25 14:57:36 adam
+ * Windows NT port.
+ *
+ * Revision 1.11 1996/12/23 15:30:46 adam
* Work on truncation.
* Bug fix: result sets weren't deleted after server shut down.
*
*/
#include <stdio.h>
#include <assert.h>
+#ifdef WINDOWS
+#include <io.h>
+#else
#include <unistd.h>
+#endif
#include "zserver.h"
#include <rstemp.h>