|
From: <sv...@va...> - 2009-08-25 17:35:14
|
Author: bart
Date: 2009-08-25 18:34:58 +0100 (Tue, 25 Aug 2009)
New Revision: 10867
Log:
Renamed the function VG_(have_proc_filesystem)() into
VG_(is_procfs_mounted)(). The old name was derived from the name
of the preprocessor macro HAVE_PROC while the new name is a more
accurate description of what this function does.
Modified:
trunk/coregrind/m_libcfile.c
trunk/coregrind/m_main.c
trunk/coregrind/m_syswrap/syswrap-generic.c
trunk/coregrind/pub_core_libcfile.h
Modified: trunk/coregrind/m_libcfile.c
===================================================================
--- trunk/coregrind/m_libcfile.c 2009-08-24 06:41:40 UTC (rev 10866)
+++ trunk/coregrind/m_libcfile.c 2009-08-25 17:34:58 UTC (rev 10867)
@@ -1086,7 +1086,7 @@
/* ---------------------------------------------------------------------
proc filesystem
------------------------------------------------------------------ */
-Bool VG_(have_proc_filesystem)(void)
+Bool VG_(is_procfs_mounted)(void)
{
static int have_proc_fs = -1;
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2009-08-24 06:41:40 UTC (rev 10866)
+++ trunk/coregrind/m_main.c 2009-08-25 17:34:58 UTC (rev 10867)
@@ -1802,7 +1802,7 @@
// when it tries to open /proc/<pid>/cmdline for itself.
// p: setup file descriptors
//--------------------------------------------------------------
- if (! VG_(have_proc_filesystem)()) {
+ if (! VG_(is_procfs_mounted)()) {
// client shouldn't be using /proc!
VG_(cl_cmdline_fd) = -1;
} else {
Modified: trunk/coregrind/m_syswrap/syswrap-generic.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-generic.c 2009-08-24 06:41:40 UTC (rev 10866)
+++ trunk/coregrind/m_syswrap/syswrap-generic.c 2009-08-25 17:34:58 UTC (rev 10867)
@@ -3526,7 +3526,7 @@
}
PRE_MEM_RASCIIZ( "open(filename)", ARG1 );
- if (VG_(have_proc_filesystem)())
+ if (VG_(is_procfs_mounted)())
{
/* 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
@@ -3680,7 +3680,7 @@
HChar name[25];
Char* arg1s = (Char*) ARG1;
VG_(sprintf)(name, "/proc/%d/exe", VG_(getpid)());
- if (VG_(have_proc_filesystem()) && ML_(safe_to_deref)(arg1s, 1) &&
+ if (VG_(is_procfs_mounted()) && ML_(safe_to_deref)(arg1s, 1) &&
(VG_STREQ(arg1s, name) || VG_STREQ(arg1s, "/proc/self/exe"))
)
{
Modified: trunk/coregrind/pub_core_libcfile.h
===================================================================
--- trunk/coregrind/pub_core_libcfile.h 2009-08-24 06:41:40 UTC (rev 10866)
+++ trunk/coregrind/pub_core_libcfile.h 2009-08-25 17:34:58 UTC (rev 10867)
@@ -100,7 +100,7 @@
/* Whether or not the proc filesystem has been mounted at the /proc
mountpoint. */
-extern Bool VG_(have_proc_filesystem)(void);
+extern Bool VG_(is_procfs_mounted)(void);
#endif // __PUB_CORE_LIBCFILE_H
|