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_delay.c
int pam_fail_delay(pam_handle_t* pamh, unsigned int usec)
{
    unsigned int largest;

    IF_NO_PAMH("pam_fail_delay", pamh, PAM_SYSTEM_ERR);

    D(("setting delay to %u", usec));

    if (pamh->fail_delay.set)
    {
        largest = pamh->fail_delay.delay;
    }
    else
    {
        pamh->fail_delay.set = PAM_TRUE;
        largest = 0;
    }

    D(("largest = %u", largest));

    if (largest < usec)
    {
        D(("resetting largest delay"));
        pamh->fail_delay.delay = usec;
    }

    return PAM_SUCCESS;
}
/* **********************************************************************
 * this function is known to both the module and the application, it
 * keeps a running score of the largest-requested delay so far, as
 * specified by either modules or an application.
 */
this function is known to both the module and the application, it
keeps a running score of the largest-requested delay so far, as
specified by either modules or an application.
this function is known to both the module and the application it keeps a running score of the largest - requested delay so far as specified by either modules or an application .
int pam_fail_delay(pam_handle_t* pamh, unsigned int usec)
{
    unsigned int largest;
    IF_NO_PAMH("pam_fail_delay", pamh, PAM_SYSTEM_ERR);
    D(("setting delay to %u", usec));
    if (pamh->fail_delay.set)
    {
        largest = pamh->fail_delay.delay;
    }
    else
    {
        pamh->fail_delay.set = PAM_TRUE;
        largest = 0;
    }
    D(("largest = %u", largest));
    if (largest < usec)
    {
        D(("resetting largest delay"));
        pamh->fail_delay.delay = usec;
    }
    return PAM_SUCCESS;
}
int pam_fail_delay ( pam_handle_t * pamh , unsigned int usec ) { unsigned int largest ; IF_NO_PAMH ( " " , pamh , PAM_SYSTEM_ERR ) ; D ( ( " " , usec ) ) ; if ( pamh -> fail_delay . set ) { largest = pamh -> fail_delay . delay ; } else { pamh -> fail_delay . set = PAM_TRUE ; largest = 0 ; } D ( ( " " , largest ) ) ; if ( largest < usec ) { D ( ( " " ) ) ; pamh -> fail_delay . delay = usec ; } return PAM_SUCCESS ; }
this function is known to both the module and the application, it
 keeps a running score of the largest-requested delay so far, as
 specified by either modules or an application.
this function is known to both the module and the application it keeps a running score of the largest - requested delay so far as specified by either modules or an application .