openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libpam/1.3.1-r0/Linux-PAM-1.3.1/libpam/pam_modutil_priv.c
static int change_uid(uid_t uid, uid_t* save)
{
    uid_t tmp = setfsuid(uid);
    if (save)
        *save = tmp;
    return (uid_t)setfsuid(uid) == uid ? 0 : -1;
}
/*
 * Two setfsuid() calls in a row are necessary to check
 * whether setfsuid() succeeded or not.
 */
Two setfsuid() calls in a row are necessary to check
whether setfsuid() succeeded or not.
Two setfsuid () calls in a row are necessary to check whether setfsuid () succeeded or not .
static int change_uid(uid_t uid, uid_t* save)
{
    uid_t tmp = setfsuid(uid);
    if (save)
        *save = tmp;
    return (uid_t)setfsuid(uid) == uid ? 0 : -1;
}
static int change_uid ( uid_t uid , uid_t * save ) { uid_t tmp = setfsuid ( uid ) ; if ( save ) * save = tmp ; return ( uid_t ) setfsuid ( uid ) == uid ? 0 : -1 ; }
Two setfsuid() calls in a row are necessary to check
 whether setfsuid() succeeded or not.
Two setfsuid () calls in a row are necessary to check whether setfsuid () succeeded or not .