aboutsummaryrefslogtreecommitdiff
path: root/mpio_tool
diff options
context:
space:
mode:
Diffstat (limited to 'mpio_tool')
-rw-r--r--mpio_tool/Makefile.am5
-rw-r--r--mpio_tool/Makefile.in20
-rw-r--r--mpio_tool/mpio_tool.c133
3 files changed, 6 insertions, 152 deletions
diff --git a/mpio_tool/Makefile.am b/mpio_tool/Makefile.am
index d57d84a..79b7707 100644
--- a/mpio_tool/Makefile.am
+++ b/mpio_tool/Makefile.am
@@ -1,9 +1,6 @@
INCLUDES=-I..
-bin_PROGRAMS=mpio_tool mpiosh
-
-mpio_tool_SOURCES=mpio_tool.c
-mpio_tool_LDADD=../libmpio/libmpio.la
+bin_PROGRAMS=mpiosh
mpiosh_SOURCES=mpiosh.c
mpiosh_LDADD=../libmpio/libmpio.la -lreadline -lncurses
diff --git a/mpio_tool/Makefile.in b/mpio_tool/Makefile.in
index e291f08..b303041 100644
--- a/mpio_tool/Makefile.in
+++ b/mpio_tool/Makefile.in
@@ -81,10 +81,7 @@ VERSION = @VERSION@
INCLUDES = -I..
-bin_PROGRAMS = mpio_tool mpiosh
-
-mpio_tool_SOURCES = mpio_tool.c
-mpio_tool_LDADD = ../libmpio/libmpio.la
+bin_PROGRAMS = mpiosh
mpiosh_SOURCES = mpiosh.c
mpiosh_LDADD = ../libmpio/libmpio.la -lreadline -lncurses
@@ -92,7 +89,7 @@ mpiosh_LDADD = ../libmpio/libmpio.la -lreadline -lncurses
noinst_HEADERS = mpiosh.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
-bin_PROGRAMS = mpio_tool$(EXEEXT) mpiosh$(EXEEXT)
+bin_PROGRAMS = mpiosh$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS)
@@ -100,9 +97,6 @@ DEFS = @DEFS@ -I. -I$(srcdir)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-mpio_tool_OBJECTS = mpio_tool.$(OBJEXT)
-mpio_tool_DEPENDENCIES = ../libmpio/libmpio.la
-mpio_tool_LDFLAGS =
mpiosh_OBJECTS = mpiosh.$(OBJEXT)
mpiosh_DEPENDENCIES = ../libmpio/libmpio.la
mpiosh_LDFLAGS =
@@ -120,9 +114,9 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
-DEP_FILES = .deps/mpio_tool.P .deps/mpiosh.P
-SOURCES = $(mpio_tool_SOURCES) $(mpiosh_SOURCES)
-OBJECTS = $(mpio_tool_OBJECTS) $(mpiosh_OBJECTS)
+DEP_FILES = .deps/mpiosh.P
+SOURCES = $(mpiosh_SOURCES)
+OBJECTS = $(mpiosh_OBJECTS)
all: all-redirect
.SUFFIXES:
@@ -198,10 +192,6 @@ distclean-libtool:
maintainer-clean-libtool:
-mpio_tool$(EXEEXT): $(mpio_tool_OBJECTS) $(mpio_tool_DEPENDENCIES)
- @rm -f mpio_tool$(EXEEXT)
- $(LINK) $(mpio_tool_LDFLAGS) $(mpio_tool_OBJECTS) $(mpio_tool_LDADD) $(LIBS)
-
mpiosh$(EXEEXT): $(mpiosh_OBJECTS) $(mpiosh_DEPENDENCIES)
@rm -f mpiosh$(EXEEXT)
$(LINK) $(mpiosh_LDFLAGS) $(mpiosh_OBJECTS) $(mpiosh_LDADD) $(LIBS)
diff --git a/mpio_tool/mpio_tool.c b/mpio_tool/mpio_tool.c
deleted file mode 100644
index c76bfa0..0000000
--- a/mpio_tool/mpio_tool.c
+++ /dev/null
@@ -1,133 +0,0 @@
-/* -*- linux-c -*- */
-
-/*
- *
- * $Id: mpio_tool.c,v 1.1 2002/08/28 16:10:51 salmoon Exp $
- *
- * Test tool for USB MPIO-*
- *
- * Markus Germeier (mager@tzi.de)
- *
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <string.h>
-
-#include "libmpio/mpio.h"
-#include "libmpio/debug.h"
-
-#define FOOBAR (64*1024*1024)
-
-BYTE buffer[FOOBAR];
-BYTE *p, *q;
-
-mpio_t *test;
-
-BYTE callback(int, int);
-
-BYTE callback(int part, int total)
-{
- UNUSED(part);
- UNUSED(total);
-
-/* printf("a: %d\n", a); */
- return 0;
-
-}
-
-
-
-int
-main(int argc, char *argv[]) {
- int debug=1;
- int size;
- int free, mem;
-
- WORD year;
- BYTE month, day, hour, minute;
- DWORD fsize;
- BYTE fname[100];
-
- size=0;
-
- if (argc == 2) {
- debug=atoi(argv[1]);
- }
-
-
- test = mpio_init();
-
- if (!test) {
- printf ("Error initializing MPIO library\n");
- exit(1);
- }
-
- /* do stuff */
-
- mem=mpio_memory_free(test, MPIO_INTERNAL_MEM, &free);
- printf("\nInternal Memory (size: %dKB / avail: %dKB):\n", mem/1000, free);
- p=mpio_directory_open(test, MPIO_INTERNAL_MEM);
- while (p!=NULL) {
-
- mpio_dentry_get(test, p,
- fname, 100,
- &year, &month, &day,
- &hour, &minute, &fsize);
-
- printf ("%02d.%02d.%04d %02d:%02d %9d - %s\n",
- day, month, year, hour, minute, fsize, fname);
-
- p=mpio_dentry_next(test, p);
- }
-
- if ((mem=mpio_memory_free(test, MPIO_EXTERNAL_MEM, &free))!=0) {
-
- printf("\nExternal Memory (size: %dKB / avail: %dKB):\n", mem/1000, free);
- p=mpio_directory_open(test, MPIO_EXTERNAL_MEM);
- while (p!=NULL) {
-
- mpio_dentry_get(test, p,
- fname, 100,
- &year, &month, &day,
- &hour, &minute, &fsize);
-
- printf ("%02d.%02d.%04d %02d:%02d %9d - %s\n",
- day, month, year, hour, minute, fsize, fname);
-
- p=mpio_dentry_next(test, p);
- }
- }else {
- printf("\nNo external Memory available!\n");
- }
-
-
-/* mpio_file_get(test, MPIO_EXTERNAL_MEM, "Alanis_Morissette_01_21_Things_simplemp3s.mp3", callback); */
-
-
- mpio_close(test);
-
- exit(0);
-}
-
-