/*
* Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
* All rights reserved.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <errno.h>
#include "local.h"
#include "glue.h"
/*
** SM_FWALK -- apply a function to all found-open file pointers
**
** Parameters:
** function -- a function vector to be applied
** timeout -- time to complete actions (milliseconds)
**
** Returns:
** The (binary) OR'd result of each function call
*/
int
int *timeout;
{
register int n, ret;
register struct sm_glue *g;
int fptimeout;
ret = 0;
{
{
{
if (*timeout == SM_TIME_DEFAULT)
else
if (fptimeout == SM_TIME_IMMEDIATE)
continue; /* skip it */
}
}
}
return ret;
}