]> mj.ucw.cz Git - libucw.git/blobdiff - debug/sorter/radix-asio-test.c
Doc: Described ff-binary.
[libucw.git] / debug / sorter / radix-asio-test.c
index 7858985d19790a8a9403156ec53d2005dfc9bc9b..168f6ff6b4f0b982a3cb2ce434ee2c6bd5989aae 100644 (file)
@@ -4,10 +4,10 @@
  *  (c) 2007 Martin Mares <mj@ucw.cz>
  */
 
-#include "lib/lib.h"
-#include "lib/conf.h"
-#include "lib/lfs.h"
-#include "lib/asio.h"
+#include "ucw/lib.h"
+#include "ucw/conf.h"
+#include "ucw/lfs.h"
+#include "ucw/asio.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -59,7 +59,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 % bufsize));
   P_INIT;
@@ -85,7 +85,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]);
     }