Fix for Second step of Torque support
1. Some code reorganisation
2. Mutexes are considered but not yet enabled. Need to analyse if we need them there. 
Probably all these code will run under dmtcp thread thus no race condition.
3. Add one more way to determine PBS_HOME. In some Torque configurations for some
reasons $PBS_HOME is not declared.



git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1477 ba6dc0ae-232f-0410-883f-9ebac64fc565
Small fix to previous commit



git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1478 ba6dc0ae-232f-0410-883f-9ebac64fc565
Fix for 32-bit builds

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1479 ba6dc0ae-232f-0410-883f-9ebac64fc565
Fix for previous commit.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1480 ba6dc0ae-232f-0410-883f-9ebac64fc565
- dmtcp_restart.cpp:  fixing a bug that manifests with gcc compiler on ARM
- added additional conditionalizations for ARM in dmtcp/src.  These are
    preparatory for the modification of mtcp to work with ARM.
- autotest.py:  print port number of coordinator in verbose mode
- minor polishing


git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1483 ba6dc0ae-232f-0410-883f-9ebac64fc565
More sophisticated libtorque library serch.
Previously we use only pbs-config for that purpose. But nodes can miss this tool
So most stable way to do that is search /proc/self/maps for libtorque. We wrap only
tm_spawn() and don't touch other functions. So libtorque will be there in maps file.



git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1484 ba6dc0ae-232f-0410-883f-9ebac64fc565
Third step of TORQUE PBS support in DMTCP

1. dmtcp_discover_rm utlity is added. It detects presense of resource manager and discovers newly allocated resources.
2. Build system is changed to consider dmtcp_discovery_rm
3. dmtcp_coordinator is changed to issue new dmtcp_restart_script.sh which is changed as follows:
3.1. Use of dmtcp_discover_rm is added. This utility is called and if it detects Resource Manager then worker_ckpts variable
is changed to contain new resources.
3.2. Use of canonical name for local host detection is added. 



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

Fix node localhost detection logic in dmtcp_restart_script.sh



git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1486 ba6dc0ae-232f-0410-883f-9ebac64fc565
- Merging port of DMTCP to ARM from 1.2 branch into trunk


git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1493 ba6dc0ae-232f-0410-883f-9ebac64fc565
Fix logic for Sys V Shared Memory.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1494 ba6dc0ae-232f-0410-883f-9ebac64fc565
Create DMTCP_MODULE_{ENABLE,DISABLE}_CKPT macro for Modules.

Dmtcp modules should now use these macros instead of using the
dmtcp_module_{enable,disable}_ckpt() functions.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1500 ba6dc0ae-232f-0410-883f-9ebac64fc565
Added _real_fcntl()

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1501 ba6dc0ae-232f-0410-883f-9ebac64fc565
Minor fixes for mtcp/mtcp.c

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1502 ba6dc0ae-232f-0410-883f-9ebac64fc565
Replace Original/Current with Virtual/Real Pid/Tid.

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

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

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1505 ba6dc0ae-232f-0410-883f-9ebac64fc565
Fix for previous checking (r1505)

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1506 ba6dc0ae-232f-0410-883f-9ebac64fc565
Assign a virtual pid to each process

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1507 ba6dc0ae-232f-0410-883f-9ebac64fc565
Move ProcessInfo out of PID_VIRTUALIZATION

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

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