Mac Developer Library

Developer

proc.h Reference

Options
Deployment Target:

On This Page

proc.h Reference

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable

Objective-C

@import Kernel;

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

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

    Declaration

    Objective-C

    pid_t proc_pgrpid ( proc_t );

    Parameters

    p

    Process whose pgrpid to grab.

    Return Value

    pgrpid for "p".

    Import Statement

    Objective-C

    #include <proc.h>;

    Availability

    Available in OS X v10.6 and later.

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

    Declaration

    Objective-C

    pid_t proc_selfpgrpid ( void );

    Return Value

    pgrpid of current process.

    Import Statement

    Objective-C

    #include <proc.h>;

    Availability

    Available in OS X v10.6 and later.