From: Bart Van Assche Date: Tue, 25 Aug 2009 17:34:58 +0000 (+0000) Subject: Renamed the function VG_(have_proc_filesystem)() into X-Git-Tag: svn/VALGRIND_3_6_0~530 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=772166c14638a3fea673ac490ae9d58aac1a5132;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10867 --- diff --git a/coregrind/m_libcfile.c b/coregrind/m_libcfile.c index 61d35a545a..f30c0d8157 100644 --- a/coregrind/m_libcfile.c +++ b/coregrind/m_libcfile.c @@ -1086,7 +1086,7 @@ Char *VG_(dirname)(const Char *path) /* --------------------------------------------------------------------- proc filesystem ------------------------------------------------------------------ */ -Bool VG_(have_proc_filesystem)(void) +Bool VG_(is_procfs_mounted)(void) { static int have_proc_fs = -1; diff --git a/coregrind/m_main.c b/coregrind/m_main.c index f12b056f72..c3cd1e491f 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1802,7 +1802,7 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp ) // when it tries to open /proc//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 { diff --git a/coregrind/m_syswrap/syswrap-generic.c b/coregrind/m_syswrap/syswrap-generic.c index 1063802ae8..25f056b2ed 100644 --- a/coregrind/m_syswrap/syswrap-generic.c +++ b/coregrind/m_syswrap/syswrap-generic.c @@ -3526,7 +3526,7 @@ PRE(sys_open) } 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//cmdline, and just give it a copy of the fd for the @@ -3680,7 +3680,7 @@ PRE(sys_readlink) 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")) ) { diff --git a/coregrind/pub_core_libcfile.h b/coregrind/pub_core_libcfile.h index cc66e2311a..36b8f045a2 100644 --- a/coregrind/pub_core_libcfile.h +++ b/coregrind/pub_core_libcfile.h @@ -100,7 +100,7 @@ extern Bool VG_(record_startup_wd) ( void ); /* 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