fi
-#----------------------------------------------------------------------------
-# Check for /proc filesystem
-#----------------------------------------------------------------------------
-AC_CHECK_FILES(/proc/self/fd /proc/self/exe /proc/self/maps,
- [ AC_DEFINE([HAVE_PROC], 1, [can use /proc filesystem]) ],
- [])
-
-
#----------------------------------------------------------------------------
# Checks for C header files.
#----------------------------------------------------------------------------
#endif // HAVE_MREMAP
-#if HAVE_PROC
+#if defined(VGO_linux)
/*-----------------------------------------------------------------*/
/*--- ---*/
return !css_overflowed;
}
-#endif // HAVE_PROC
+#endif // defined(VGO_linux)
#endif // defined(VGO_linux) || defined(VGO_darwin)
// when it tries to open /proc/<pid>/cmdline for itself.
// p: setup file descriptors
//--------------------------------------------------------------
-#if !HAVE_PROC
+#if !defined(VGO_linux)
// client shouldn't be using /proc!
VG_(cl_cmdline_fd) = -1;
#else
}
PRE_MEM_RASCIIZ( "open(filename)", ARG1 );
-#if HAVE_PROC
+#if defined(VGO_linux)
/* Handle the case where the open is of /proc/self/cmdline or
/proc/<pid>/cmdline, and just give it a copy of the fd for the
fake file we cooked up at startup (in m_main). Also, seek the
return;
}
}
-#endif // HAVE_PROC
+#endif // defined(VGO_linux)
/* Otherwise handle normally */
*flags |= SfMayBlock;
PRE_MEM_WRITE( "readlink(buf)", ARG2,ARG3 );
{
-#if HAVE_PROC
+#if defined(VGO_linux)
/*
* Handle the case where readlink is looking at /proc/self/exe or
* /proc/<pid>/exe.
SET_STATUS_from_SysRes( VG_(do_syscall3)(saved, (UWord)name,
ARG2, ARG3));
} else
-#endif // HAVE_PROC
+#endif // defined(VGO_linux)
{
/* Normal case */
SET_STATUS_from_SysRes( VG_(do_syscall3)(saved, ARG1, ARG2, ARG3));