]> mj.ucw.cz Git - libucw.git/blobdiff - debug/sorter/radix-file-test.c
ucw docs: Array sorter
[libucw.git] / debug / sorter / radix-file-test.c
index b776d1ea9fd01a7e4332060c22bb06bbb541ec3f..46d1bb4c94dbfe897a9ef4c9039e54ec6610fee2 100644 (file)
@@ -1,10 +1,12 @@
 /*
  *  An experiment with parallel reading and writing of files.
+ *
+ *  (c) 2007 Martin Mares <mj@ucw.cz>
  */
 
-#include "lib/lib.h"
-#include "lib/conf.h"
-#include "lib/lfs.h"
+#include "ucw/lib.h"
+#include "ucw/conf.h"
+#include "ucw/lfs.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -50,7 +52,7 @@ int main(int argc, char **argv)
 
 #ifdef COPY
   msg(L_INFO, "Creating input file");
-  int in_fd = sh_open("tmp/ft-in", O_RDWR | O_CREAT | O_TRUNC | DIRECT, 0666);
+  int in_fd = ucw_open("tmp/ft-in", O_RDWR | O_CREAT | O_TRUNC | DIRECT, 0666);
   ASSERT(in_fd >= 0);
   ASSERT(!(total_size % xbufsize));
   P_INIT;
@@ -71,7 +73,7 @@ int main(int argc, char **argv)
   for (uns i=0; i<files; i++)
     {
       sprintf(name[i], "tmp/ft-%d", i);
-      fd[i] = sh_open(name[i], O_RDWR | O_CREAT | O_TRUNC | DIRECT, 0666);
+      fd[i] = ucw_open(name[i], O_RDWR | O_CREAT | O_TRUNC | DIRECT, 0666);
       if (fd[i] < 0)
        die("Cannot create %s: %m", name[i]);
       buf[i] = big_alloc(bufsize);