#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#ifndef REDSTORM
-#include <getopt.h>
-#else
#include <unistd.h>
-#endif
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <sys/uio.h>
#include <sys/queue.h>
#include <dirent.h>
+#include <getopt.h>
+#if defined(SYSIO_LABEL_NAMES)
#include "sysio.h"
+#endif
+#include "xtio.h"
#include "mount.h"
#include "test.h"
/*
* Clean up.
*/
- _sysio_shutdown();
+ _test_sysio_shutdown();
return 0;
}
{
char *buf;
- if (chdir(path) != 0) {
+ if (SYSIO_INTERFACE_NAME(chdir)(path) != 0) {
perror(path);
return -1;
}
- buf = getcwd(NULL, 0);
+ buf = SYSIO_INTERFACE_NAME(getcwd)(NULL, 0);
if (!buf) {
perror(path);
return -1;