]> mj.ucw.cz Git - libucw.git/blobdiff - debug/sorter/radix-asio-test.c
ucw docs: more hash functions
[libucw.git] / debug / sorter / radix-asio-test.c
index f288c3be43a851bb44240f7aaab473774296ce14..168f6ff6b4f0b982a3cb2ce434ee2c6bd5989aae 100644 (file)
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
 
 #ifdef COPY
   msg(L_INFO, "Creating input file");
 
 #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;
   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);
   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]);
     }
       if (fd[i] < 0)
        die("Cannot create %s: %m", name[i]);
     }