Bug fix when acquiring thread-creation lock.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1900 ba6dc0ae-232f-0410-883f-9ebac64fc565
Introduce libdlLock for dlopen/dlclose wrappers.

While dlopen is loading a shared library, if a constructor for a static
object calls fork(), the process could deadlock because the dlopen()
wrapper had acquired the wrapperExecLock while the fork() wrapper
wants toe acquire the same lock with writer permissions. The fix is to
create an extra lock specifically for dlopen/dlclose. See comments in
miscwrappers.cpp for more details.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1901 ba6dc0ae-232f-0410-883f-9ebac64fc565
Updated dlopen test.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1902 ba6dc0ae-232f-0410-883f-9ebac64fc565
Improved epoll_wait wrapper.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1906 ba6dc0ae-232f-0410-883f-9ebac64fc565
Use CXX to compile test/dlopen2.cpp.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1908 ba6dc0ae-232f-0410-883f-9ebac64fc565
Force enum value always output as int type

 - The compiler will complain `warning: passing
   'dmtcp::WorkerState::eWorkerState' chooses 'int' over
   'long unsigned int'` in Android build...
[Patch Supplied by Kito Cheng.]

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1909 ba6dc0ae-232f-0410-883f-9ebac64fc565
Type mismatch fixed in shareddata.cpp

Change the induction variable to int type instead of size_t in
shareddata.cpp since size_t always >= 0
[Patch Supplied by Kito Cheng.]

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1910 ba6dc0ae-232f-0410-883f-9ebac64fc565
Use LIBDL_FILENAME in util_exec.cpp instead of string literal

[Patch Supplied by Kito Cheng.]

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1911 ba6dc0ae-232f-0410-883f-9ebac64fc565
Add a specilized version of JAssert::Print for const char*

- Some iostream family implmetation will crash when input
  a NULL const char pointer such as bionic+stlport
[Patch supplied by Kito Cheng.]

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1912 ba6dc0ae-232f-0410-883f-9ebac64fc565
Add virtual destructor for ~ConnectionList

 - The gcc will complain `class dmtcp::ConnectionList' has virtual
   functions and accessible non-virtual destructor` if compile with
   -Wextra or -Wnon-virtual-dtor flag.
[Patch supplied by Kito Cheng.]

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1913 ba6dc0ae-232f-0410-883f-9ebac64fc565
Drop maybe uninitialized warning

[Patch supplied by Kito Cheng.]

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1914 ba6dc0ae-232f-0410-883f-9ebac64fc565
Deleting bunch of empty directories.


git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1917 ba6dc0ae-232f-0410-883f-9ebac64fc565