From 5830ece5cdfd71cb7a7b537b5b58c9a9858a78a3 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Wed, 25 Jan 2023 08:31:09 +0100 Subject: [PATCH] FreeBSD: update comment about __sysctlbyname and kern.proc.pathname --- coregrind/m_syswrap/syswrap-freebsd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coregrind/m_syswrap/syswrap-freebsd.c b/coregrind/m_syswrap/syswrap-freebsd.c index 401a7ba8ee..13d3b6bf25 100644 --- a/coregrind/m_syswrap/syswrap-freebsd.c +++ b/coregrind/m_syswrap/syswrap-freebsd.c @@ -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)); -- 2.47.2