Deleted Added
full compact
mci.c (111367) mci.c (111826)
1/*
1/*
2 * Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 1998-2003 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1995-1997 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#include <sendmail.h>
15
3 * All rights reserved.
4 * Copyright (c) 1995-1997 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1988, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#include <sendmail.h>
15
16SM_RCSID("@(#)$Id: mci.c,v 8.205.2.2 2002/11/26 19:15:19 gshapiro Exp $")
16SM_RCSID("@(#)$Id: mci.c,v 8.205.2.3 2003/01/07 03:56:19 ca Exp $")
17
18#if NETINET || NETINET6
19# include <arpa/inet.h>
20#endif /* NETINET || NETINET6 */
21
22#include <dirent.h>
23
24static int mci_generate_persistent_path __P((const char *, char *,

--- 1214 unchanged lines hidden (view full) ---

1239 "", LOCK_SH|LOCK_NB);
1240 (void) sm_io_close(fp, SM_TIME_DEFAULT);
1241 FileName = NULL;
1242
1243 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, "%c%-39s %12s ",
1244 locked ? '*' : ' ', hostname,
1245 pintvl(curtime() - mcib.mci_lastuse, true));
1246 if (mcib.mci_rstatus != NULL)
17
18#if NETINET || NETINET6
19# include <arpa/inet.h>
20#endif /* NETINET || NETINET6 */
21
22#include <dirent.h>
23
24static int mci_generate_persistent_path __P((const char *, char *,

--- 1214 unchanged lines hidden (view full) ---

1239 "", LOCK_SH|LOCK_NB);
1240 (void) sm_io_close(fp, SM_TIME_DEFAULT);
1241 FileName = NULL;
1242
1243 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, "%c%-39s %12s ",
1244 locked ? '*' : ' ', hostname,
1245 pintvl(curtime() - mcib.mci_lastuse, true));
1246 if (mcib.mci_rstatus != NULL)
1247 {
1248 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, "%.*s\n", width,
1249 mcib.mci_rstatus);
1247 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, "%.*s\n", width,
1248 mcib.mci_rstatus);
1250 }
1251 else if (mcib.mci_exitstat == EX_TEMPFAIL && mcib.mci_errno != 0)
1252 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,
1253 "Deferred: %.*s\n", width - 10,
1254 sm_errstring(mcib.mci_errno));
1255 else if (mcib.mci_exitstat != 0)
1256 {
1257 char *exmsg = sm_sysexmsg(mcib.mci_exitstat);
1258

--- 231 unchanged lines hidden ---
1249 else if (mcib.mci_exitstat == EX_TEMPFAIL && mcib.mci_errno != 0)
1250 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,
1251 "Deferred: %.*s\n", width - 10,
1252 sm_errstring(mcib.mci_errno));
1253 else if (mcib.mci_exitstat != 0)
1254 {
1255 char *exmsg = sm_sysexmsg(mcib.mci_exitstat);
1256

--- 231 unchanged lines hidden ---