openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/login-utils/su-common.c
static int is_not_root(void)
{
    const uid_t ruid = getuid();
    const uid_t euid = geteuid();

    /* if we're really root and aren't running setuid */
    return (uid_t)0 == ruid && ruid == euid ? 0 : 1;
}
/*
 * Returns 1 if the current user is not root
 */
Returns 1 if the current user is not root
Returns 1 if the current user is not root
static int is_not_root(void)
{
    const uid_t ruid = getuid();
    const uid_t euid = geteuid();
    return (uid_t)0 == ruid && ruid == euid ? 0 : 1;
}
static int is_not_root ( void ) { const uid_t ruid = getuid ( ) ; const uid_t euid = geteuid ( ) ; return ( uid_t ) 0 == ruid && ruid == euid ? 0 : 1 ; }
Returns 1 if the current user is not root
Returns 1 if the current user is not root
/* if we're really root and aren't running setuid */