In 10.6, KERN_PROCARGS2 is available: https://gist.github.com/770696
This way is used from ps, procfs on MacFUSE, etc.
Related Contents:
- Can’t compile C program on a Mac after upgrade to Mojave
- Can’t compile a C program on a Mac after upgrading to Catalina 10.15
- sem_init on OS X
- clock_gettime alternative in Mac OS X
- How do you do non-blocking console I/O on Linux in C?
- How to convert ASCII character to CGKeyCode?
- Programmatically retrieving the absolute path of an OS X command-line app
- Creating static Mac OS X C build
- How can I run a C program on Mac OS X using Terminal?
- Regarding ‘main(int argc, char *argv[])’ [duplicate]
- GCC left shift overflow
- argv[argc] ==?
- Is a Linux executable “compatible” with OS X?
- How to get network adapter stats in linux/Mac OSX?
- When can argv[0] have null?
- Swift: How to call a C function loaded from a dylib
- Using fflush(stdin)
- srand() — why call it only once?
- Why does printf not flush after the call unless a newline is in the format string?
- Why is it safer to use sizeof(*pointer) in malloc
- What does the scanf function return?
- Parsing command-line arguments in C
- Objective-C : BOOL vs bool
- String literals: pointer vs. char array
- What does this GCC error “… relocation truncated to fit…” mean?
- What is the equivalent to Posix popen() in the Win32 API?
- How can I compare strings in C using a `switch` statement?
- Looping over arrays with inline assembly
- Concatenating Variable Names in C?
- Tools to get a pictorial function call graph of code [closed]
- How to Detect the Number of Physical Processors / Cores on Windows, Mac and Linux
- Why can I change a local const variable through pointer casts but not a global one in C?
- How to link to the C math library with CMake?
- How to return a value from pthread threads in C?
- The difference of int8_t, int_least8_t and int_fast8_t?
- How do I print uint32_t and uint16_t variables’ value?
- How to convert char to integer in C? [duplicate]
- How do you get a directory listing in C?
- cat function calling read() infinite times
- what does it mean to convert int to void* or vice versa?
- What does the FD_CLOEXEC fcntl() flag do?
- Using intptr_t instead of void*?
- unexpected output in C (recursion)
- What’s the difference between a file descriptor and a file pointer?
- Cache size estimation on your system?
- x86_64 ASM – maximum bytes for an instruction?
- Centering strings with printf()
- How can I pass the index of a for loop as the argument for pthread_create
- Trouble reading a line using fscanf()
- Why use the Bitwise-Shift operator for values in a C enum definition?