1 |
+ |
#ifndef lint |
2 |
+ |
static const char RCSid[] = "$Id$"; |
3 |
+ |
#endif |
4 |
+ |
|
5 |
+ |
|
6 |
|
/* |
7 |
|
========================================================================= |
8 |
|
N-way out-of-core merge sort for records with 3D keys. Recursively |
19 |
|
*/ |
20 |
|
|
21 |
|
|
22 |
+ |
#if !defined(_WIN32) && !defined(_WIN64) || defined(PMAP_OOC) |
23 |
+ |
/* No Windoze support for now */ |
24 |
|
|
25 |
|
#include "oocsort.h" |
26 |
|
#include "oocmorton.h" |
31 |
|
#include <sys/wait.h> |
32 |
|
|
33 |
|
|
27 |
– |
|
34 |
|
/* Priority queue node */ |
35 |
|
typedef struct { |
36 |
|
OOC_MortonIdx pri; /* Record's priority (sort key) */ |
332 |
|
exit(0); |
333 |
|
} |
334 |
|
else if (pid < 0) { |
335 |
< |
fprintf(stderr, "OOC_Sort: failed to fork subprocess\n"); |
335 |
> |
perror("OOC_Sort: failed to fork subprocess"); |
336 |
|
return -1; |
337 |
|
} |
338 |
|
|
577 |
|
|
578 |
|
return stat; |
579 |
|
} |
580 |
+ |
|
581 |
+ |
#endif /* NIX / PMAP_OOC */ |