Results 91 comments of Andrew Mackenzie

Ok, thanks I didn't see anything either way about macos, and when I saw homebrew I assumed macos.

Thank for the report. Everything seem to have fallen apart on multiple projects over last two days. Unfortunately, I have just started a week's vacation away from the computer. If...

It's compiling fine for me on my local machine (and nightly CI) at my first attempt. (macos 12.4). It seems to be not finding the headers ('libproc.h' file not found),...

I can have a look tonight. Can you share details on the OS version you are running it on?

I have taken your code to add a test and play around. I have pushed to this branch while I do so `origin/listpidinfo_fix` There is not much docs available on...

Also, the number of threads is different, so there are obviously deeper differences in these two APIs ``` /Users/andrew/.cargo/bin/cargo test --color=always --package libproc --lib libproc::proc_pid::test::listpidinfo_listthreads_test --no-fail-fast -- --format=json --exact -Z...

I haven't found a way to get the equivalent of the gettid() (mentioned in docs in previous comment) id returned as gettid() is only available on Linux.

I'll take a look to see how it's currently converted to String. Would be a breaking API change for current users though....so maybe need a variant of the method....

For MacOS (Darwin): The source here: https://opensource.apple.com/source/Libc/Libc-594.9.4/darwin/libproc.c is not exactly "replete with comments" about the type of string it writes into the buffer. It calls `__proc_info(2, pid, PROC_PIDPATHINFO, (uint64_t)0, buffer,...

I've just read two complete books on Mac OS X & iOS internals that covers BSD layer, Darwin, XNU, libSystem, libproc and the syscall wrappers - and annoyingly UTF and...