netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=e1874496fdcdfe192e311b54ef5663de3753a149

commit e1874496fdcdfe192e311b54ef5663de3753a149
Author: Alastair Poole <nets...@gmail.com>
Date:   Sun Jul 26 22:48:52 2020 +0100

    process: macos process address space...
    
    This comment's origin could be disputable it's from libtop.c
    from macOS top command. There is very little external documentation
    for these things. As time goes on it gets worse....
---
 src/bin/system/process.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/system/process.c b/src/bin/system/process.c
index 7a33be7..f13ab9d 100644
--- a/src/bin/system/process.c
+++ b/src/bin/system/process.c
@@ -546,7 +546,9 @@ _cmd_get(Proc_Info *p, int pid)
    args = malloc(argmax);
    if (!args) return;
 
-   /*
+   /* See libtop.c (top) for the origin of this comment, which is necessary as
+    * there is little other documentation...thanks Apple.
+    *
     * Make a sysctl() call to get the raw argument space of the process.
     * The layout is documented in start.s, which is part of the Csu
     * project.  In summary, it looks like:

-- 


Reply via email to