]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Renamed the function VG_(have_proc_filesystem)() into
authorBart Van Assche <bvanassche@acm.org>
Tue, 25 Aug 2009 17:34:58 +0000 (17:34 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 25 Aug 2009 17:34:58 +0000 (17:34 +0000)
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

coregrind/m_libcfile.c
coregrind/m_main.c
coregrind/m_syswrap/syswrap-generic.c
coregrind/pub_core_libcfile.h

index 61d35a545af83f364d85ef93d73b382ba3dc19be..f30c0d8157034831b902f73c33aaa3a5a0a8efdf 100644 (file)
@@ -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;
 
index f12b056f72d20922a727d4b02ad1a83a2910ef9f..c3cd1e491f16386e01bd4b7f503b14a7254356f7 100644 (file)
@@ -1802,7 +1802,7 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp )
    // 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 {
index 1063802ae84afc7a7326f38627f3cb7384a8fc59..25f056b2ed2c57f2896e3b922929fd10eb5f5a6a 100644 (file)
@@ -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/<pid>/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"))
          )
       {
index cc66e2311a13de6c5c33c82c0f42251f07f5247d..36b8f045a29f21eca2086b6ead4a8232c1083b95 100644 (file)
@@ -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