getpgidpidt
getpgidpidt is a name used in some software projects for a utility function that retrieves multiple identifiers associated with a process in a single call. In typical designs, it returns a small structure containing the process ID (PID), the process group ID (PGID), and the thread ID (TID) of a target process, usually the calling process when no pid is specified. The name is not part of the standard C library, and there is no universal standard for its interface; implementations vary between projects.
A common design pattern for getpgidpidt is to define a simple data structure to hold the identifiers
Platform considerations are important. getpid and getpgid are standard on POSIX systems, but obtaining a thread
Usage notes: such a function is most useful when code that needs to report or verify all