United States-English |
|
|
HP-UX Reference > Ggetpid(2)HP-UX 11i Version 3: February 2007 |
|
NAMEgetpid(), getpgid(), getpgrp(), getpgrp2(), getppid() — get process, process group and parent process ID. SYNOPSIS#include <unistd.h> pid_t getpgid (pid_t pid); pid_t getpgrp(void); pid_t getpgrp2(pid_t pid); pid_t getpid(void); pid_t getppid(void); DESCRIPTIONThese functions return process, process group and parent process IDs, as follows:
Security RestrictionsThe getpgrp2 system call is subject to compartmental restrictions. See compartments(5) for more information about compartmentalization on systems that support that feature. Compartmental restrictions can be overridden if the process possesses the COMMALLOWED privilege (PRIV_COMMALLOWED). Processes owned by the superuser may not have this privilege. Processes owned by any user may have this privilege, depending on system configuration. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUEThe functions return the following values:
ERRORSIf getpgid() or getpgrp2() fails, errno is set to one of the following values:
|
Printable version | ||
|