Determines the privilege state of a process.
#include <sys/types.h> #include <sys/errno.h>
int suser (ep) char *ep;
ep | Points to a character variable where the EPERM value is stored on failure. |
The suser kernel service checks whether a process has any effective privilege (that is, whether the process's uid field equals 0).
The suser kernel service can be called from the process environment only.
This kernel service is part of Base Operating System (BOS) Runtime.
Security Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.