Deleted Added
full compact
comm.c (66494) comm.c (71345)
1/*
2 * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 */
10
11#ifndef lint
1/*
2 * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 */
10
11#ifndef lint
12static char id[] = "@(#)$Id: comm.c,v 8.30.4.5 2000/08/14 09:04:47 gshapiro Exp $";
12static char id[] = "@(#)$Id: comm.c,v 8.30.4.6 2000/10/05 22:44:01 gshapiro Exp $";
13#endif /* ! lint */
14
15#if _FFR_MILTER
16#include "libmilter.h"
17
18#define FD_Z FD_ZERO(&readset); \
19 FD_SET((u_int) sd, &readset); \
20 FD_ZERO(&excset); \

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

50 fd_set readset, excset;
51 int ret;
52 int save_errno;
53 char *buf;
54 char data[MILTER_LEN_BYTES + 1];
55
56 *cmd = '\0';
57 *rlen = 0;
13#endif /* ! lint */
14
15#if _FFR_MILTER
16#include "libmilter.h"
17
18#define FD_Z FD_ZERO(&readset); \
19 FD_SET((u_int) sd, &readset); \
20 FD_ZERO(&excset); \

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

50 fd_set readset, excset;
51 int ret;
52 int save_errno;
53 char *buf;
54 char data[MILTER_LEN_BYTES + 1];
55
56 *cmd = '\0';
57 *rlen = 0;
58
58 if (sd >= FD_SETSIZE)
59 {
60 smi_log(SMI_LOG_ERR, "%s: fd %d is larger than FD_SETSIZE %d",
61 name, sd, FD_SETSIZE);
62 *cmd = SMFIC_SELECT;
63 return NULL;
64 }
59 if (sd >= FD_SETSIZE)
60 {
61 smi_log(SMI_LOG_ERR, "%s: fd %d is larger than FD_SETSIZE %d",
62 name, sd, FD_SETSIZE);
63 *cmd = SMFIC_SELECT;
64 return NULL;
65 }
66
65 FD_Z;
66 i = 0;
67 while ((ret = select(sd + 1, &readset, NULL, &excset, timeout)) >= 1)
68 {
69 if (FD_ISSET(sd, &excset))
70 {
71 *cmd = SMFIC_SELECT;
72 return NULL;

--- 193 unchanged lines hidden ---
67 FD_Z;
68 i = 0;
69 while ((ret = select(sd + 1, &readset, NULL, &excset, timeout)) >= 1)
70 {
71 if (FD_ISSET(sd, &excset))
72 {
73 *cmd = SMFIC_SELECT;
74 return NULL;

--- 193 unchanged lines hidden ---