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
FILE: Duplicate detection during scanForPreExisting only.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1878 ba6dc0ae-232f-0410-883f-9ebac64fc565
Sockets: Bug fix related to a typo.

A 'break' statement was left inside a for loop which prevented it from
iterating over the rest of the elements.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1879 ba6dc0ae-232f-0410-883f-9ebac64fc565
FILE: Do not create new connection if not in RUNNING state.

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1880 ba6dc0ae-232f-0410-883f-9ebac64fc565
Change __libc_do_syscall from thumb to arm mode for more compatibility

(Patch supplied by Kito Cheng)

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1881 ba6dc0ae-232f-0410-883f-9ebac64fc565
Fix typo in libc-do-syscall-arm-eabi.S

(Patch supplied by Kito Cheng)

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1882 ba6dc0ae-232f-0410-883f-9ebac64fc565
MTCP: Fix the mtcp_memcmp

It should not just call strncmp since they have different behavior.

(Patch supplied by Kito Cheng)

git-svn-id: https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk@1883 ba6dc0ae-232f-0410-883f-9ebac64fc565
NULL pointer check in deallocate

(Patch supplied by Kito Cheng)

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