* (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>
#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;
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]);
}