- Remove compiler warning: moved definition of MTCP_SYS_GET_SET_THREAD_AREA
    from mtcp_sys.h to mtcp.c
- Minor polishing


git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1779 ba6dc0ae-232f-0410-883f-9ebac64fc565
Bunch of fixes detected by coverity.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1780 ba6dc0ae-232f-0410-883f-9ebac64fc565
MTCP: Properly dup() stdin/out fds for gzip child.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1781 ba6dc0ae-232f-0410-883f-9ebac64fc565
Added wrappers for dup/dup2/dup3.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1782 ba6dc0ae-232f-0410-883f-9ebac64fc565
Root process pids added to SharedData

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1783 ba6dc0ae-232f-0410-883f-9ebac64fc565
Construct UniquePid from ckpt filename.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1784 ba6dc0ae-232f-0410-883f-9ebac64fc565
Add wrappers for openat/opendir/closedir.

They will be needed by the Connection plugin.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1785 ba6dc0ae-232f-0410-883f-9ebac64fc565
Implement Connection plugin as a true plugin

- The checkpoint image is just a memory dump of the process. All the
information required to recreate child processes and file descriptors is
now part of the process memory. This information used to be part of
"DMTCP-header" in the checkpoint image. Now this is part of the memory
dump.

- During restart, the child process are forked off only after the
process's memory has been restored. Once the child processes have been
forked, each process restores/recreates the file descriptors including
socket connections for which it was ckpt-leader. The file descriptors
are then passed to non-leader processes over UNIX domain sockets.

- Socketpair aren't properly restored at this time. Instead, they are
restored as AF_INET sockets.

- make check-screen is current failing due to a bug related to
packet-mode detection for pseudo-terminals.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1786 ba6dc0ae-232f-0410-883f-9ebac64fc565
--enable-fast-restart for mmap based restart.

Restarting a checkpoint image, created without any sort of compression,
can be done via mmap making restarts faster for large images.

This removes the previous --enable-fast-ckpt-restart option.

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

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1788 ba6dc0ae-232f-0410-883f-9ebac64fc565
Sockets use NameService for peer discovery.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1789 ba6dc0ae-232f-0410-883f-9ebac64fc565
Disentangle Connection plugin from dmtcphijack.

- ConnectionIdentifier moved to connection plugin.
- Removed --external-socket-handling and --enable-condor-support
  configure flags.

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