]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD: update comment about __sysctlbyname and kern.proc.pathname
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 25 Jan 2023 07:31:09 +0000 (08:31 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 25 Jan 2023 07:31:09 +0000 (08:31 +0100)
coregrind/m_syswrap/syswrap-freebsd.c

index 401a7ba8eed6973cef729b4ff4cb85fdc40e2d1e..13d3b6bf257f5f524e3fd585ecef88f13932ece5 100644 (file)
@@ -6468,8 +6468,9 @@ PRE(sys___sysctlbyname)
       SET_STATUS_Success(0);
    }
 
-   // @todo PJF kern.proc.pathname
-   // how is that done? jusr a pid or -1 in the string?
+   // kern.proc.pathname doesn't seem to be handled
+   // makes sense as the pid is variable and using
+   // a MIB is easier than generating a string
 
    // read number of ints specified in ARG2 from mem pointed to by ARG1
    PRE_MEM_READ("__sysctlbyname(name)", (Addr)ARG1, ARG2 * sizeof(int));