getuid, getgid - get user or group ID of the caller
integer function getuid() integer function getgid()
These functions return the real user or group ID of the user of the process.
libfui.a
getuid(2)