The getpgrp function returns the process group ID of the calling process. The getpgrp function is always successful, and no return value is reserved to indicate an error. This function requires that long (32-bit) UID/GID support be enabled. See 32-Bit UID and GID Macro (Integrity servers, Alpha) for more information.