aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh13
-rw-r--r--mpio_tool/mpiosh.c28
-rw-r--r--mpio_tool/mpiosh.h5
3 files changed, 44 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..8a743e1
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+# autogen.sh
+#
+# Andreas Buesching <crunchy@tzi.de>
+# $ID$
+
+aclocal && autoconf && automake -a
+
+./configure $@
+
+
+# end of autogen.sh
diff --git a/mpio_tool/mpiosh.c b/mpio_tool/mpiosh.c
index 82709e5..7e94818 100644
--- a/mpio_tool/mpiosh.c
+++ b/mpio_tool/mpiosh.c
@@ -2,7 +2,7 @@
/*
*
- * $Id: mpiosh.c,v 1.1 2002/08/28 16:10:51 salmoon Exp $
+ * $Id: mpiosh.c,v 1.2 2002/09/01 16:07:10 crunchy Exp $
*
* Author: Andreas Büsching <crunchy@tzi.de>
*
@@ -25,8 +25,10 @@
*
* */
+#include <dirent.h>
#include <signal.h>
#include <stdio.h>
+#include <sys/types.h>
#include <readline/readline.h>
#include <readline/history.h>
@@ -56,6 +58,8 @@ static mpiosh_cmd_t commands[] = {
{ "free", mpiosh_cmd_free, NO },
{ "format", mpiosh_cmd_format, NO },
{ "switch", mpiosh_cmd_switch, YES },
+ { "ldir", mpiosh_cmd_ldir, YES },
+ { "lcd", mpiosh_cmd_lcd, YES },
{ NULL, NULL, NO }
};
@@ -609,6 +613,28 @@ mpiosh_cmd_switch(char *args[])
UNUSED(args);
}
+void
+mpiosh_cmd_ldir(char *args[])
+{
+ char dir_buf[NAME_MAX];
+ DIR * dir;
+ dirent ** dentry;
+
+ getcwd(dir_buf, NAME_MAX);
+ dir = opendir(dir_buf);
+
+ if (dir) {
+ int count = scandir(dir, &dentry, alphasort, NULL);
+
+ }
+
+}
+
+void
+mpiosh_cmd_lcd(char *args[])
+{
+}
+
int
main(int argc, char *argv[]) {
char * line;
diff --git a/mpio_tool/mpiosh.h b/mpio_tool/mpiosh.h
index 18e2feb..96ec8a9 100644
--- a/mpio_tool/mpiosh.h
+++ b/mpio_tool/mpiosh.h
@@ -2,7 +2,7 @@
*
* Author: Andreas Büsching <crunchy@tzi.de>
*
- * $Id: mpiosh.h,v 1.1 2002/08/28 16:10:52 salmoon Exp $
+ * $Id: mpiosh.h,v 1.2 2002/09/01 16:07:10 crunchy Exp $
*
* Copyright (C) 2002 Andreas Büsching <crunchy@tzi.de>
*
@@ -79,6 +79,9 @@ void mpiosh_cmd_free(char *args[]);
void mpiosh_cmd_format(char *args[]);
void mpiosh_cmd_switch(char *args[]);
+void mpiosh_cmd_ldir(char *args[]);
+void mpiosh_cmd_lcd(char *args[]);
+
/* progress callbacks */
BYTE mpiosh_callback_get(int read, int total);
BYTE mpiosh_callback_put(int read, int total);