[jboss-cvs] JBoss Messaging SVN: r3708 - in projects/jaio/trunk/jaio/native: src and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 12 10:16:45 EST 2008
Author: clebert.suconic at jboss.com
Date: 2008-02-12 10:16:45 -0500 (Tue, 12 Feb 2008)
New Revision: 3708
Added:
projects/jaio/trunk/jaio/native/src/DataManager.cpp
projects/jaio/trunk/jaio/native/src/DataManager.h
projects/jaio/trunk/jaio/native/src/DataManager.lo
projects/jaio/trunk/jaio/native/src/LockClass.h
projects/jaio/trunk/jaio/native/tests/
projects/jaio/trunk/jaio/native/tests/.deps/
projects/jaio/trunk/jaio/native/tests/.deps/Test1.Po
projects/jaio/trunk/jaio/native/tests/Makefile
projects/jaio/trunk/jaio/native/tests/Makefile.am
projects/jaio/trunk/jaio/native/tests/Makefile.in
projects/jaio/trunk/jaio/native/tests/Test1.c
Removed:
projects/jaio/trunk/jaio/native/src/PageObserver.cpp
Modified:
projects/jaio/trunk/jaio/native/Makefile.am
projects/jaio/trunk/jaio/native/configure.ac
projects/jaio/trunk/jaio/native/src/AIOController.cpp
projects/jaio/trunk/jaio/native/src/AIOController.h
projects/jaio/trunk/jaio/native/src/BufferAdapter.h
projects/jaio/trunk/jaio/native/src/FileOutput.cpp
projects/jaio/trunk/jaio/native/src/FileOutput.h
projects/jaio/trunk/jaio/native/src/JNIBufferAdapter.cpp
projects/jaio/trunk/jaio/native/src/JNIBufferAdapter.h
projects/jaio/trunk/jaio/native/src/LibAIOController.cpp
projects/jaio/trunk/jaio/native/src/Makefile.am
projects/jaio/trunk/jaio/native/src/PageManager.cpp
projects/jaio/trunk/jaio/native/src/PageManager.h
projects/jaio/trunk/jaio/native/src/org_jboss_jaio_libaioimpl_LibAIOController.h
Log:
Implementing paging locks
Modified: projects/jaio/trunk/jaio/native/Makefile.am
===================================================================
--- projects/jaio/trunk/jaio/native/Makefile.am 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/Makefile.am 2008-02-12 15:16:45 UTC (rev 3708)
@@ -1 +1 @@
-SUBDIRS = src
+SUBDIRS = src tests
Modified: projects/jaio/trunk/jaio/native/configure.ac
===================================================================
--- projects/jaio/trunk/jaio/native/configure.ac 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/configure.ac 2008-02-12 15:16:45 UTC (rev 3708)
@@ -39,5 +39,5 @@
AC_FUNC_MALLOC
AC_CHECK_FUNCS([gettimeofday memset strstr])
-AC_CONFIG_FILES([Makefile ./src/Makefile])
+AC_CONFIG_FILES([Makefile ./src/Makefile ./tests/Makefile])
AC_OUTPUT
Modified: projects/jaio/trunk/jaio/native/src/AIOController.cpp
===================================================================
--- projects/jaio/trunk/jaio/native/src/AIOController.cpp 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/AIOController.cpp 2008-02-12 15:16:45 UTC (rev 3708)
@@ -1,11 +1,18 @@
#include "AIOController.h"
#include "PageManager.h"
-AIOController::AIOController(int fileHandle) : fileOutput(fileHandle), manager(10 * 1024, &fileOutput)
+AIOController::AIOController(int fileHandle) : fileOutput(fileHandle)
{
-
+ manager = (DataManager *)&fileOutput;
+ usingPaging = false;
}
+AIOController::AIOController(int fileHandle, int pageSize) : fileOutput(fileHandle)
+{
+ manager = new PageManager(pageSize, &fileOutput);
+ usingPaging = true;
+}
+
AIOController::~AIOController()
{
}
Modified: projects/jaio/trunk/jaio/native/src/AIOController.h
===================================================================
--- projects/jaio/trunk/jaio/native/src/AIOController.h 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/AIOController.h 2008-02-12 15:16:45 UTC (rev 3708)
@@ -2,8 +2,8 @@
#define AIOCONTROLLER_H_
#include <jni.h>
-#include "PageManager.h"
#include "FileOutput.h"
+#include "DataManager.h"
class AIOController
{
@@ -15,7 +15,14 @@
int fileHandle;
JNIEnv * env;
FileOutput fileOutput;
- PageManager manager;
+
+ // It could be Paging or Direct File output
+ DataManager * manager;
+
+
+ bool usingPaging;
+
+ AIOController(int fileHandle, int pageSize);
AIOController(int fileHandle);
virtual ~AIOController();
};
Modified: projects/jaio/trunk/jaio/native/src/BufferAdapter.h
===================================================================
--- projects/jaio/trunk/jaio/native/src/BufferAdapter.h 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/BufferAdapter.h 2008-02-12 15:16:45 UTC (rev 3708)
@@ -14,9 +14,10 @@
}
+ virtual void addref() = 0;
+ virtual void deleteRef() = 0;
virtual void encode(const int& size, void *) = 0;
virtual void done() = 0;
virtual int blockSize() = 0;
- virtual void killYourself() = 0;
};
#endif /*BUFFERADAPTER_H_*/
Added: projects/jaio/trunk/jaio/native/src/DataManager.cpp
===================================================================
--- projects/jaio/trunk/jaio/native/src/DataManager.cpp (rev 0)
+++ projects/jaio/trunk/jaio/native/src/DataManager.cpp 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,9 @@
+#include "DataManager.h"
+
+DataManager::DataManager()
+{
+}
+
+DataManager::~DataManager()
+{
+}
Property changes on: projects/jaio/trunk/jaio/native/src/DataManager.cpp
___________________________________________________________________
Name: svn:keywords
+ "Id LastChangedDate Author Revision"
Added: projects/jaio/trunk/jaio/native/src/DataManager.h
===================================================================
--- projects/jaio/trunk/jaio/native/src/DataManager.h (rev 0)
+++ projects/jaio/trunk/jaio/native/src/DataManager.h 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,15 @@
+#ifndef DATAMANAGER_H_
+#define DATAMANAGER_H_
+
+#include "BufferAdapter.h"
+
+class DataManager
+{
+public:
+ DataManager();
+ virtual ~DataManager();
+ virtual void addData(BufferAdapter * adapter) = 0;
+ virtual void flushMemory() = 0;
+};
+
+#endif /*DATAMANAGER_H_*/
Added: projects/jaio/trunk/jaio/native/src/DataManager.lo
===================================================================
--- projects/jaio/trunk/jaio/native/src/DataManager.lo (rev 0)
+++ projects/jaio/trunk/jaio/native/src/DataManager.lo 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,12 @@
+# DataManager.lo - a libtool object file
+# Generated by ltmain.sh - GNU libtool 1.5.24 (1.1220.2.455 2007/06/24 02:13:29)
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object='.libs/DataManager.o'
+
+# Name of the non-PIC object.
+non_pic_object=none
+
Modified: projects/jaio/trunk/jaio/native/src/FileOutput.cpp
===================================================================
--- projects/jaio/trunk/jaio/native/src/FileOutput.cpp 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/FileOutput.cpp 2008-02-12 15:16:45 UTC (rev 3708)
@@ -2,6 +2,7 @@
#include <list>
#include <iostream>
#include <memory.h>
+#include <fcntl.h>
FileOutput::FileOutput(int _fileHandle)
{
@@ -14,14 +15,27 @@
void FileOutput::completePage(long size, void * page, std::list<BufferAdapter *> * adapters)
{
- std::cout << (char *)page;
+ ::write(fileHandle, page, size);
for (std::list<BufferAdapter *>::iterator iter = adapters->begin(); iter != adapters->end(); iter++)
{
std::cout << "Element read\n\n";
(*iter)->done();
- (*iter)->killYourself();
+ (*iter)->deleteRef();
}
free (page);
delete adapters;
}
+
+
+// Used only when Paging is disabled (as the user have this option to opt out for Paging)
+void FileOutput::addData(BufferAdapter * adapter)
+{
+ int size = adapter->blockSize();
+ void * buffer = malloc(size);
+ ::write(fileHandle, buffer, size);
+ adapter->encode(size, buffer);
+ adapter->done();
+ adapter->deleteRef();
+ free(buffer);
+}
Modified: projects/jaio/trunk/jaio/native/src/FileOutput.h
===================================================================
--- projects/jaio/trunk/jaio/native/src/FileOutput.h 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/FileOutput.h 2008-02-12 15:16:45 UTC (rev 3708)
@@ -2,8 +2,9 @@
#define FILEOUTPUT_H_
#include "PageObserver.h"
+#include "DataManager.h"
-class FileOutput : public PageObserver
+class FileOutput : public PageObserver, DataManager
{
private:
int fileHandle;
@@ -11,6 +12,13 @@
FileOutput(int fileHandle);
virtual ~FileOutput();
void completePage(long size, void *, std::list<BufferAdapter *> *);
+ void addData(BufferAdapter * adapter);
+
+ // Nothing to be done on FileOutput
+ void flushMemory()
+ {
+
+ }
};
Modified: projects/jaio/trunk/jaio/native/src/JNIBufferAdapter.cpp
===================================================================
--- projects/jaio/trunk/jaio/native/src/JNIBufferAdapter.cpp 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/JNIBufferAdapter.cpp 2008-02-12 15:16:45 UTC (rev 3708)
@@ -2,7 +2,7 @@
#include "JNIBufferAdapter.h"
#include <iostream>
-JNIBufferAdapter::JNIBufferAdapter(AIOController * _controller, jobject _obj) : BufferAdapter()
+JNIBufferAdapter::JNIBufferAdapter(AIOController * _controller, jobject _obj) : BufferAdapter(), refs(1)
{
controller = _controller;
obj = controller->env->NewGlobalRef(_obj);
@@ -21,7 +21,7 @@
}
void JNIBufferAdapter::done()
{
- std::cout << "Calling done " << controller->done;
+ std::cout << "Calling done " << controller->done << "\n";
controller->env->CallVoidMethod(obj,controller->done);
return;
}
Modified: projects/jaio/trunk/jaio/native/src/JNIBufferAdapter.h
===================================================================
--- projects/jaio/trunk/jaio/native/src/JNIBufferAdapter.h 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/JNIBufferAdapter.h 2008-02-12 15:16:45 UTC (rev 3708)
@@ -3,22 +3,31 @@
#include "BufferAdapter.h"
#include "AIOController.h"
+#include <iostream>
class JNIBufferAdapter : public BufferAdapter
{
private:
AIOController * controller;
jobject obj;
+ int refs;
public:
JNIBufferAdapter(AIOController * _controller, jobject _ob);
virtual ~JNIBufferAdapter();
void encode(const int& size, void *);
void done();
int blockSize();
+ void addref()
+ {
+ refs++;
+ }
- virtual void killYourself()
+ void deleteRef()
{
- delete this;
+ if (--refs <= 0)
+ {
+ delete this;
+ }
}
Modified: projects/jaio/trunk/jaio/native/src/LibAIOController.cpp
===================================================================
--- projects/jaio/trunk/jaio/native/src/LibAIOController.cpp 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/LibAIOController.cpp 2008-02-12 15:16:45 UTC (rev 3708)
@@ -15,7 +15,12 @@
//using namespace jbm;
-JNIEXPORT jlong JNICALL Java_org_jboss_jaio_libaioimpl_LibAIOController_init
+/*
+ * Class: org_jboss_jaio_libaioimpl_LibAIOController
+ * Method: init
+ * Signature: (Ljava/lang/String;Ljava/lang/Class;)J
+ */
+JNIEXPORT jlong JNICALL Java_org_jboss_jaio_libaioimpl_LibAIOController_init__Ljava_lang_String_2Ljava_lang_Class_2
(JNIEnv * env, jclass, jstring jstrFileName, jclass clazz)
{
std::string fileName = convertJavaString(env, jstrFileName);
@@ -49,18 +54,57 @@
return (jlong)controller;
}
+/*
+ * Class: org_jboss_jaio_libaioimpl_LibAIOController
+ * Method: init
+ * Signature: (Ljava/lang/String;ILjava/lang/Class;)J
+ */
+JNIEXPORT jlong JNICALL Java_org_jboss_jaio_libaioimpl_LibAIOController_init__Ljava_lang_String_2ILjava_lang_Class_2
+ (JNIEnv * env, jclass, jstring jstrFileName, jint pageSize, jclass clazz)
+{
+ std::string fileName = convertJavaString(env, jstrFileName);
+
+ int handle = open(fileName.data(), O_WRONLY | O_CREAT, 0666);
+ if (handle < 0)
+ {
+ throwException(env, "java/lang/RuntimeException", "Can't open file");
+ return 0;
+ }
+
+ AIOController * controller = new AIOController(handle, pageSize);
+ controller->done = env->GetMethodID(clazz,"done","()V");
+ if (!controller->done) return 0;
+
+ controller->encode = env->GetMethodID(clazz,"encode","(Ljava/nio/ByteBuffer;)V");
+ if (!controller->done) return 0;
+
+ controller->decode = env->GetMethodID(clazz,"decode","(ILjava/nio/ByteBuffer;)V");
+ if (!controller->done) return 0;
+
+ controller->encodeSize = env->GetMethodID(clazz,"encodeSize","()I");
+ if (!controller->done) return 0;
+
+
+ controller->fileHandle = handle;
+
+ controller->env = env;
+
+ return (jlong)controller;
+}
+
+
JNIEXPORT void JNICALL Java_org_jboss_jaio_libaioimpl_LibAIOController_append
(JNIEnv *, jclass, jlong controllerAddress, jobject obj)
{
AIOController * controller = (AIOController *) controllerAddress;
JNIBufferAdapter * adapter = new JNIBufferAdapter(controller, obj);
- controller->manager.addData(adapter);
+ controller->manager->addData(adapter);
}
JNIEXPORT void JNICALL Java_org_jboss_jaio_libaioimpl_LibAIOController_flushMemory
(JNIEnv *, jclass, jlong controllerAddress)
{
AIOController * controller = (AIOController *) controllerAddress;
- controller->manager.flush();
+ controller->manager->flushMemory();
}
Added: projects/jaio/trunk/jaio/native/src/LockClass.h
===================================================================
--- projects/jaio/trunk/jaio/native/src/LockClass.h (rev 0)
+++ projects/jaio/trunk/jaio/native/src/LockClass.h 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,22 @@
+#ifndef LOCKCLASS_H_
+#define LOCKCLASS_H_
+
+#include <pthread.h>
+
+class LockClass
+{
+protected:
+ pthread_mutex_t* _m;
+public:
+ inline LockClass(pthread_mutex_t* m) : _m(m)
+ {
+ ::pthread_mutex_lock(_m);
+ }
+ inline ~LockClass()
+ {
+ ::pthread_mutex_unlock(_m);
+ }
+};
+
+
+#endif /*LOCKCLASS_H_*/
Modified: projects/jaio/trunk/jaio/native/src/Makefile.am
===================================================================
--- projects/jaio/trunk/jaio/native/src/Makefile.am 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/Makefile.am 2008-02-12 15:16:45 UTC (rev 3708)
@@ -1,7 +1,11 @@
#AM_CXXFLAGS = $(JVM_CXXFLAGS)
lib_LTLIBRARIES = libJaio.la
-libJaio_la_SOURCES = LibAIOController.cpp AIOController.cpp JavaUtilities.h PageManager.cpp AIOController.h JNIBufferAdapter.cpp PageManager.h BufferAdapter.h JNIBufferAdapter.h PageObserver.cpp JavaUtilities.cpp org_jboss_jaio_libaioimpl_LibAIOController.h PageObserver.h FileOutput.h FileOutput.cpp
+libJaio_la_SOURCES = LibAIOController.cpp AIOController.cpp JavaUtilities.h PageManager.cpp AIOController.h \
+ JNIBufferAdapter.cpp PageManager.h BufferAdapter.h JNIBufferAdapter.h \
+ JavaUtilities.cpp org_jboss_jaio_libaioimpl_LibAIOController.h \
+ PageObserver.h FileOutput.h FileOutput.cpp \
+ DataManager.cpp DataManager.h
#libJaio_la_SOURCES = LibAIOController.cpp AIOController.cpp
\ No newline at end of file
Modified: projects/jaio/trunk/jaio/native/src/PageManager.cpp
===================================================================
--- projects/jaio/trunk/jaio/native/src/PageManager.cpp 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/PageManager.cpp 2008-02-12 15:16:45 UTC (rev 3708)
@@ -1,38 +1,81 @@
-#include "memory.h"
#include "BufferAdapter.h"
#include "PageManager.h"
+#include "pthread.h"
+#include "LockClass.h"
+#include <sstream>
PageManager::PageManager(int _pageSize, PageObserver * _observer)
{
pageSize = _pageSize;
observer = _observer;
initMemory();
+ ::pthread_mutex_init(&pageMutex,0);
}
PageManager::~PageManager()
{
+ ::pthread_mutex_destroy(&pageMutex);
+ free(memoryArea);
+ for (std::list<BufferAdapter *>::iterator iter = list->begin(); iter != list->end(); iter ++)
+ {
+ (*iter)->deleteRef();
+ }
+ delete list;
}
void PageManager::addData(BufferAdapter * adapter)
{
- list->push_back(adapter);
- int size = adapter->blockSize();
+ long size = adapter->blockSize();
- adapter->encode (size, memoryArea + pagePosition);
+ LockClass lock(&pageMutex);
- pagePosition += size;
+ if (pagePosition + size > pageSize)
+ {
+ char * mem = (char *)malloc(size);
+ memset(mem, 0, size);
+ adapter->encode(size, mem);
+ long local = 0;
+
+ while (size - local > 0)
+ {
+ adapter->addref();
+ long toBeCompleted = pageSize - pagePosition;
+ long minValue = size-local > toBeCompleted ? toBeCompleted : size-local;
+ memcpy(memoryArea + pagePosition, mem + local, minValue);
+ pagePosition += toBeCompleted;
+ list->push_back(adapter);
+ if (pagePosition >= pageSize)
+ {
+ flushMemory();
+ local+=toBeCompleted;
+ }
+ }
+
+ adapter->deleteRef();
+
+ delete mem;
+ }
+ else
+ {
+ list->push_back(adapter);
+
+ adapter->encode (size, memoryArea + pagePosition);
+
+ pagePosition += size;
+ }
}
void PageManager::initMemory()
{
memoryArea = (char *)malloc(pageSize);
+ memset(memoryArea, 0, pageSize);
list = new std::list<BufferAdapter *>();
pagePosition = 0;
}
-void PageManager::flush()
+void PageManager::flushMemory()
{
observer->completePage(pagePosition, memoryArea, list);
initMemory();
Modified: projects/jaio/trunk/jaio/native/src/PageManager.h
===================================================================
--- projects/jaio/trunk/jaio/native/src/PageManager.h 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/PageManager.h 2008-02-12 15:16:45 UTC (rev 3708)
@@ -3,11 +3,13 @@
#include "BufferAdapter.h"
#include "PageObserver.h"
+#include "DataManager.h"
+#include "pthread.h"
#include <list>
-class PageManager
+class PageManager : public DataManager
{
private:
int pageSize;
@@ -17,13 +19,15 @@
PageObserver * observer;
+ pthread_mutex_t pageMutex;
+
void initMemory();
public:
PageManager(int pageSize, PageObserver * observer);
virtual ~PageManager();
void addData(BufferAdapter* adapter);
- void flush();
+ void flushMemory();
};
#endif /*PAGEMANAGER_H_*/
Deleted: projects/jaio/trunk/jaio/native/src/PageObserver.cpp
===================================================================
--- projects/jaio/trunk/jaio/native/src/PageObserver.cpp 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/PageObserver.cpp 2008-02-12 15:16:45 UTC (rev 3708)
@@ -1,2 +0,0 @@
-#include "PageObserver.h"
-
Modified: projects/jaio/trunk/jaio/native/src/org_jboss_jaio_libaioimpl_LibAIOController.h
===================================================================
--- projects/jaio/trunk/jaio/native/src/org_jboss_jaio_libaioimpl_LibAIOController.h 2008-02-12 15:04:46 UTC (rev 3707)
+++ projects/jaio/trunk/jaio/native/src/org_jboss_jaio_libaioimpl_LibAIOController.h 2008-02-12 15:16:45 UTC (rev 3708)
@@ -12,11 +12,19 @@
* Method: init
* Signature: (Ljava/lang/String;Ljava/lang/Class;)J
*/
-JNIEXPORT jlong JNICALL Java_org_jboss_jaio_libaioimpl_LibAIOController_init
+JNIEXPORT jlong JNICALL Java_org_jboss_jaio_libaioimpl_LibAIOController_init__Ljava_lang_String_2Ljava_lang_Class_2
(JNIEnv *, jclass, jstring, jclass);
/*
* Class: org_jboss_jaio_libaioimpl_LibAIOController
+ * Method: init
+ * Signature: (Ljava/lang/String;ILjava/lang/Class;)J
+ */
+JNIEXPORT jlong JNICALL Java_org_jboss_jaio_libaioimpl_LibAIOController_init__Ljava_lang_String_2ILjava_lang_Class_2
+ (JNIEnv *, jclass, jstring, jint, jclass);
+
+/*
+ * Class: org_jboss_jaio_libaioimpl_LibAIOController
* Method: append
* Signature: (JLorg/jboss/jaio/api/AIOPackage;)V
*/
Added: projects/jaio/trunk/jaio/native/tests/.deps/Test1.Po
===================================================================
--- projects/jaio/trunk/jaio/native/tests/.deps/Test1.Po (rev 0)
+++ projects/jaio/trunk/jaio/native/tests/.deps/Test1.Po 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,46 @@
+Test1.o Test1.o: Test1.c /usr/include/stdio.h /usr/include/features.h \
+ /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
+ /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
+ /usr/lib/gcc/i486-linux-gnu/4.1.3/include/stddef.h \
+ /usr/include/bits/types.h /usr/include/bits/typesizes.h \
+ /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc/i486-linux-gnu/4.1.3/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
+ /usr/include/bits/stdio.h
+
+/usr/include/stdio.h:
+
+/usr/include/features.h:
+
+/usr/include/sys/cdefs.h:
+
+/usr/include/bits/wordsize.h:
+
+/usr/include/gnu/stubs.h:
+
+/usr/include/gnu/stubs-32.h:
+
+/usr/lib/gcc/i486-linux-gnu/4.1.3/include/stddef.h:
+
+/usr/include/bits/types.h:
+
+/usr/include/bits/typesizes.h:
+
+/usr/include/libio.h:
+
+/usr/include/_G_config.h:
+
+/usr/include/wchar.h:
+
+/usr/include/bits/wchar.h:
+
+/usr/include/gconv.h:
+
+/usr/lib/gcc/i486-linux-gnu/4.1.3/include/stdarg.h:
+
+/usr/include/bits/stdio_lim.h:
+
+/usr/include/bits/sys_errlist.h:
+
+/usr/include/bits/stdio.h:
Added: projects/jaio/trunk/jaio/native/tests/Makefile
===================================================================
--- projects/jaio/trunk/jaio/native/tests/Makefile (rev 0)
+++ projects/jaio/trunk/jaio/native/tests/Makefile 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,505 @@
+# Makefile.in generated by automake 1.10 from Makefile.am.
+# ./tests/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+pkgdatadir = $(datadir)/jboss-profiler-jvmti
+pkglibdir = $(libdir)/jboss-profiler-jvmti
+pkgincludedir = $(includedir)/jboss-profiler-jvmti
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = i686-pc-linux-gnu
+host_triplet = i686-pc-linux-gnu
+check_PROGRAMS = Test1$(EXEEXT)
+TESTS = Test1$(EXEEXT)
+subdir = ./tests
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+Test1_SOURCES = Test1.c
+Test1_OBJECTS = Test1.$(OBJEXT)
+Test1_LDADD = $(LDADD)
+DEFAULT_INCLUDES = -I. -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = Test1.c
+DIST_SOURCES = Test1.c
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /extra/clebert/workspaces/jaio/native/native/build-aux/missing --run aclocal-1.10
+AMTAR = ${SHELL} /extra/clebert/workspaces/jaio/native/native/build-aux/missing --run tar
+AR = ar
+AUTOCONF = ${SHELL} /extra/clebert/workspaces/jaio/native/native/build-aux/missing --run autoconf
+AUTOHEADER = ${SHELL} /extra/clebert/workspaces/jaio/native/native/build-aux/missing --run autoheader
+AUTOMAKE = ${SHELL} /extra/clebert/workspaces/jaio/native/native/build-aux/missing --run automake-1.10
+AWK = gawk
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CPP = gcc -E
+CPPFLAGS = -I/usr/share/jdk1.5.0_13/include -I/usr/share/jdk1.5.0_13/include/linux
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+ECHO = echo
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+EGREP = /bin/grep -E
+EXEEXT =
+F77 =
+FFLAGS =
+GREP = /bin/grep
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LDFLAGS =
+LIBOBJS =
+LIBS =
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LN_S = ln -s
+LTLIBOBJS =
+MAKEINFO = ${SHELL} /extra/clebert/workspaces/jaio/native/native/build-aux/missing --run makeinfo
+MKDIR_P = /bin/mkdir -p
+OBJEXT = o
+PACKAGE = jboss-profiler-jvmti
+PACKAGE_BUGREPORT = clebert.suconic at jboss.org
+PACKAGE_NAME = jboss-profiler-jvmti
+PACKAGE_STRING = jboss-profiler-jvmti 1.0.Alpha
+PACKAGE_TARNAME = jboss-profiler-jvmti
+PACKAGE_VERSION = 1.0.Alpha
+PATH_SEPARATOR = :
+RANLIB = ranlib
+SED = /bin/sed
+SET_MAKE =
+SHELL = /bin/bash
+STRIP = strip
+VERSION = 1.0.Alpha
+abs_builddir = /extra/clebert/workspaces/jaio/native/native/tests
+abs_srcdir = /extra/clebert/workspaces/jaio/native/native/tests
+abs_top_builddir = /extra/clebert/workspaces/jaio/native/native
+abs_top_srcdir = /extra/clebert/workspaces/jaio/native/native
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_F77 =
+am__include = include
+am__leading_dot = .
+am__quote =
+am__tar = ${AMTAR} chof - "$$tardir"
+am__untar = ${AMTAR} xf -
+bindir = ${exec_prefix}/bin
+build = i686-pc-linux-gnu
+build_alias =
+build_cpu = i686
+build_os = linux-gnu
+build_vendor = pc
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = i686-pc-linux-gnu
+host_alias =
+host_cpu = i686
+host_os = linux-gnu
+host_vendor = pc
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = $(SHELL) /extra/clebert/workspaces/jaio/native/native/build-aux/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = /bin/mkdir -p
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias =
+top_builddir = ..
+top_srcdir = ..
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ./tests/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu ./tests/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+clean-checkPROGRAMS:
+ @list='$(check_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+Test1$(EXEEXT): $(Test1_OBJECTS) $(Test1_DEPENDENCIES)
+ @rm -f Test1$(EXEEXT)
+ $(LINK) $(Test1_OBJECTS) $(Test1_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+include ./$(DEPDIR)/Test1.Po
+
+.c.o:
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+# source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(COMPILE) -c $<
+
+.c.obj:
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+# source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+# source='$<' object='$@' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+check-TESTS: $(TESTS)
+ @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
+ srcdir=$(srcdir); export srcdir; \
+ list=' $(TESTS) '; \
+ if test -n "$$list"; then \
+ for tst in $$list; do \
+ if test -f ./$$tst; then dir=./; \
+ elif test -f $$tst; then dir=; \
+ else dir="$(srcdir)/"; fi; \
+ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xpass=`expr $$xpass + 1`; \
+ failed=`expr $$failed + 1`; \
+ echo "XPASS: $$tst"; \
+ ;; \
+ *) \
+ echo "PASS: $$tst"; \
+ ;; \
+ esac; \
+ elif test $$? -ne 77; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xfail=`expr $$xfail + 1`; \
+ echo "XFAIL: $$tst"; \
+ ;; \
+ *) \
+ failed=`expr $$failed + 1`; \
+ echo "FAIL: $$tst"; \
+ ;; \
+ esac; \
+ else \
+ skip=`expr $$skip + 1`; \
+ echo "SKIP: $$tst"; \
+ fi; \
+ done; \
+ if test "$$failed" -eq 0; then \
+ if test "$$xfail" -eq 0; then \
+ banner="All $$all tests passed"; \
+ else \
+ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
+ fi; \
+ else \
+ if test "$$xpass" -eq 0; then \
+ banner="$$failed of $$all tests failed"; \
+ else \
+ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
+ fi; \
+ fi; \
+ dashes="$$banner"; \
+ skipped=""; \
+ if test "$$skip" -ne 0; then \
+ skipped="($$skip tests were not run)"; \
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$skipped"; \
+ fi; \
+ report=""; \
+ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+ report="Please report to $(PACKAGE_BUGREPORT)"; \
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$report"; \
+ fi; \
+ dashes=`echo "$$dashes" | sed s/./=/g`; \
+ echo "$$dashes"; \
+ echo "$$banner"; \
+ test -z "$$skipped" || echo "$$skipped"; \
+ test -z "$$report" || echo "$$report"; \
+ echo "$$dashes"; \
+ test "$$failed" -eq 0; \
+ else :; fi
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
+ clean-checkPROGRAMS clean-generic clean-libtool ctags \
+ distclean distclean-compile distclean-generic \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags uninstall uninstall-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
Added: projects/jaio/trunk/jaio/native/tests/Makefile.am
===================================================================
--- projects/jaio/trunk/jaio/native/tests/Makefile.am (rev 0)
+++ projects/jaio/trunk/jaio/native/tests/Makefile.am 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,2 @@
+check_PROGRAMS=Test1
+TESTS=Test1
Added: projects/jaio/trunk/jaio/native/tests/Makefile.in
===================================================================
--- projects/jaio/trunk/jaio/native/tests/Makefile.in (rev 0)
+++ projects/jaio/trunk/jaio/native/tests/Makefile.in 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,505 @@
+# Makefile.in generated by automake 1.10 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+check_PROGRAMS = Test1$(EXEEXT)
+TESTS = Test1$(EXEEXT)
+subdir = ./tests
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+Test1_SOURCES = Test1.c
+Test1_OBJECTS = Test1.$(OBJEXT)
+Test1_LDADD = $(LDADD)
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
+depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = Test1.c
+DIST_SOURCES = Test1.c
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ./tests/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu ./tests/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+clean-checkPROGRAMS:
+ @list='$(check_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+Test1$(EXEEXT): $(Test1_OBJECTS) $(Test1_DEPENDENCIES)
+ @rm -f Test1$(EXEEXT)
+ $(LINK) $(Test1_OBJECTS) $(Test1_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Test1.Po at am__quote@
+
+.c.o:
+ at am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ at am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+ at am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+ at am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+ at am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ at am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+check-TESTS: $(TESTS)
+ @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
+ srcdir=$(srcdir); export srcdir; \
+ list=' $(TESTS) '; \
+ if test -n "$$list"; then \
+ for tst in $$list; do \
+ if test -f ./$$tst; then dir=./; \
+ elif test -f $$tst; then dir=; \
+ else dir="$(srcdir)/"; fi; \
+ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xpass=`expr $$xpass + 1`; \
+ failed=`expr $$failed + 1`; \
+ echo "XPASS: $$tst"; \
+ ;; \
+ *) \
+ echo "PASS: $$tst"; \
+ ;; \
+ esac; \
+ elif test $$? -ne 77; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xfail=`expr $$xfail + 1`; \
+ echo "XFAIL: $$tst"; \
+ ;; \
+ *) \
+ failed=`expr $$failed + 1`; \
+ echo "FAIL: $$tst"; \
+ ;; \
+ esac; \
+ else \
+ skip=`expr $$skip + 1`; \
+ echo "SKIP: $$tst"; \
+ fi; \
+ done; \
+ if test "$$failed" -eq 0; then \
+ if test "$$xfail" -eq 0; then \
+ banner="All $$all tests passed"; \
+ else \
+ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
+ fi; \
+ else \
+ if test "$$xpass" -eq 0; then \
+ banner="$$failed of $$all tests failed"; \
+ else \
+ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
+ fi; \
+ fi; \
+ dashes="$$banner"; \
+ skipped=""; \
+ if test "$$skip" -ne 0; then \
+ skipped="($$skip tests were not run)"; \
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$skipped"; \
+ fi; \
+ report=""; \
+ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+ report="Please report to $(PACKAGE_BUGREPORT)"; \
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$report"; \
+ fi; \
+ dashes=`echo "$$dashes" | sed s/./=/g`; \
+ echo "$$dashes"; \
+ echo "$$banner"; \
+ test -z "$$skipped" || echo "$$skipped"; \
+ test -z "$$report" || echo "$$report"; \
+ echo "$$dashes"; \
+ test "$$failed" -eq 0; \
+ else :; fi
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
+ clean-checkPROGRAMS clean-generic clean-libtool ctags \
+ distclean distclean-compile distclean-generic \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags uninstall uninstall-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
Added: projects/jaio/trunk/jaio/native/tests/Test1.c
===================================================================
--- projects/jaio/trunk/jaio/native/tests/Test1.c (rev 0)
+++ projects/jaio/trunk/jaio/native/tests/Test1.c 2008-02-12 15:16:45 UTC (rev 3708)
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+
+int main(void)
+{
+ fprintf (stderr,"Hello\n");
+ return 0;
+}
Property changes on: projects/jaio/trunk/jaio/native/tests/Test1.c
___________________________________________________________________
Name: svn:keywords
+ "Id LastChangedDate Author Revision"
More information about the jboss-cvs-commits
mailing list