Process Environment Manager Accessing User and Group Ids
RTEMS POSIX API User's Guide
3.3.1: Accessing User and Group Ids
The user Id associated with the current thread may be obtain
using the getuid() service. Similarly, the group Id
may be obtained using the getgid() service.