proc.h Reference

Declared in
proc.h

Overview

Included Headers

  • <sys/appleapiopts.h>

  • <sys/cdefs.h>

  • <sys/select.h>

  • <sys/queue.h>

  • <sys/lock.h>

  • <sys/param.h>

  • <sys/event.h>

  • <sys/kernel_types.h>

  • <mach/boolean.h>

Functions

See the Overview section above for header-level documentation.

proc_pgrpid

Get the process group id for the passed-in process.

pid_t proc_pgrpid(
   proc_t);
Parameters
p

Process whose pgrpid to grab.

Return Value

pgrpid for "p".

Availability
  • Available in OS X v10.6 and later.
Declared In
proc.h

proc_selfpgrpid

Get the process group id for the current process, as with proc_pgrpid().

pid_t proc_selfpgrpid(
   void);
Return Value

pgrpid of current process.

Availability
  • Available in OS X v10.6 and later.
Declared In
proc.h