list-system-processes

list-system-processes is a built-in function in `C source code'.

(list-system-processes)

Return a list of numerical process IDs of all running processes.
If this functionality is unsupported, return nil.

See `process-attributes' for getting attributes of a process given its ID.