IPC Event Plugin: Check Linux version for wrappers.

- Some of these system calls were introduced in newer Linux kernels. To avoid
  compilation issues, put kernel version check around wrappers and supporting
  code.


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


git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1859 ba6dc0ae-232f-0410-883f-9ebac64fc565
Header files used by plugins moved to dmtcp/include.

The dmtcp/include directory will act as the public interface for
plugins. The plugins should never access header files inside dmtcp/src.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1860 ba6dc0ae-232f-0410-883f-9ebac64fc565
PID Plugin: Rename pidvirt* to pid*.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1861 ba6dc0ae-232f-0410-883f-9ebac64fc565
Changes to VirtualIdTable template.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1862 ba6dc0ae-232f-0410-883f-9ebac64fc565
Added support for timer_* and clock_*.

- Including wrappers and supporting code.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1863 ba6dc0ae-232f-0410-883f-9ebac64fc565
Top level Makefile.in bug fixes.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1864 ba6dc0ae-232f-0410-883f-9ebac64fc565
Bug fixes for timer_create and timer_delete.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1865 ba6dc0ae-232f-0410-883f-9ebac64fc565
Several compiler warnings fixed.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1866 ba6dc0ae-232f-0410-883f-9ebac64fc565
CoordinatorAPI: Skip getnameinfo in postRestart.

As getnameinfo internally calls socket() etc. causing socket
connection-list to get modified.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1867 ba6dc0ae-232f-0410-883f-9ebac64fc565
IPC File Plugin: Bug fix for unlinked files on NFS.

NFS renames unlinked files to .nfsXXXX. The File plugin now detects
files unlinked on NFS and automatically saves a copy.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1868 ba6dc0ae-232f-0410-883f-9ebac64fc565
IPC SysV plugin: Restore virt->real mapping on restart.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1869 ba6dc0ae-232f-0410-883f-9ebac64fc565
SysV Plugin: Fix errors in virtual-real id lookup.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1870 ba6dc0ae-232f-0410-883f-9ebac64fc565
Socket: Disable socket wrappers inside getaddrinfo

getaddrinfo() internally calls socket() etc to resolve hostname/address.
The call to socket() is captured by our wrappers, but the call to
corresponding close() is internal to glibc causing stale connections
during checkpoint. This fix disables Connection creation inside
getaddrinfo().

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1871 ba6dc0ae-232f-0410-883f-9ebac64fc565
Pid Plugin: Call correct version of {shm,sem,msg}ctl in libc

Libc has two different versions (GLIBC_2.0 and GLIBC_2.2) of shmctl,
semctl, and msgctl. dlsym("shmctl") always returns the "older" symbol
whereas we need the newer symbol. This problem happens only on 32-bit
machines. In 64-bit glibc, there is only one version.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1872 ba6dc0ae-232f-0410-883f-9ebac64fc565
PTY: Open /dev/tty in refill phase.

If a process has called setsid(), it might not have a controlling
terminal available in the postRestart() phase and so we need to wait.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1873 ba6dc0ae-232f-0410-883f-9ebac64fc565
PTY: Added preRefill() phase to restore Slave ptys

Slave Ptys are restored in preRefill() phase, after which the /dev/tty
connections can be restored in the refill phase.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1874 ba6dc0ae-232f-0410-883f-9ebac64fc565
File: Fix bad interaction between JALLOC and FILE_SHM.

Rev 1856 enabled File plugin to checkpoint shared memory areas with
valid backing file. It also introduced a bug related to a bad
interaction between JALLOC arena and the shared memory area.

See comments in plugin/ipc/file/fileconnlist.cpp for more details.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1875 ba6dc0ae-232f-0410-883f-9ebac64fc565
FILE: Checkpoint a copy of shm related file automatically.

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

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