Deleted Added
full compact
libmilter.h (71345) libmilter.h (77349)
1/*
1/*
2 * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 1999-2001 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** LIBMILTER.H -- include file for mail filter library functions
12*/
13
14#ifndef _LIBMILTER_H
15# define _LIBMILTER_H 1
16#ifdef _DEFINE
17# define EXTERN
18# define INIT(x) = x
19# ifndef lint
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** LIBMILTER.H -- include file for mail filter library functions
12*/
13
14#ifndef _LIBMILTER_H
15# define _LIBMILTER_H 1
16#ifdef _DEFINE
17# define EXTERN
18# define INIT(x) = x
19# ifndef lint
20static char MilterlId[] = "@(#)$Id: libmilter.h,v 8.3.6.10 2000/11/20 21:15:36 ca Exp $";
20static char MilterlId[] = "@(#)$Id: libmilter.h,v 8.3.6.14 2001/05/27 14:31:12 ca Exp $";
21# endif /* ! lint */
22#else /* _DEFINE */
23# define EXTERN extern
24# define INIT(x)
25#endif /* _DEFINE */
26
27
28#define NOT_SENDMAIL 1

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

53
54#include <sys/time.h>
55
56/* version info */
57#define MILTER_PRODUCT_NAME "libmilter"
58#define MILTER_VERSION 100
59
60/* some defaults */
21# endif /* ! lint */
22#else /* _DEFINE */
23# define EXTERN extern
24# define INIT(x)
25#endif /* _DEFINE */
26
27
28#define NOT_SENDMAIL 1

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

53
54#include <sys/time.h>
55
56/* version info */
57#define MILTER_PRODUCT_NAME "libmilter"
58#define MILTER_VERSION 100
59
60/* some defaults */
61#define MI_TIMEOUT 1800 /* default timeout for read/write */
61#define MI_TIMEOUT 7210 /* default timeout for read/write */
62#define MI_CHK_TIME 5 /* checking whether to terminate */
63
64#if SOMAXCONN > 20
65# define MI_SOMAXCONN SOMAXCONN
66#else /* SOMAXCONN */
67# define MI_SOMAXCONN 20
68#endif /* SOMAXCONN */
69
70/* maximum number of repeated failures in mi_listener() */
71#define MAX_FAILS_M 16 /* malloc() */
72#define MAX_FAILS_T 16 /* thread creation */
62#define MI_CHK_TIME 5 /* checking whether to terminate */
63
64#if SOMAXCONN > 20
65# define MI_SOMAXCONN SOMAXCONN
66#else /* SOMAXCONN */
67# define MI_SOMAXCONN 20
68#endif /* SOMAXCONN */
69
70/* maximum number of repeated failures in mi_listener() */
71#define MAX_FAILS_M 16 /* malloc() */
72#define MAX_FAILS_T 16 /* thread creation */
73#define MAX_FAILS_A 16 /* accept() */
73
74/* internal "commands", i.e., error codes */
75#define SMFIC_TIMEOUT ((char) 1) /* timeout */
76#define SMFIC_SELECT ((char) 2) /* select error */
77#define SMFIC_MALLOC ((char) 3) /* malloc error */
78#define SMFIC_RECVERR ((char) 4) /* recv() error */
79#define SMFIC_EOF ((char) 5) /* eof */
80#define SMFIC_UNKNERR ((char) 6) /* unknown error */

--- 35 unchanged lines hidden ---
74
75/* internal "commands", i.e., error codes */
76#define SMFIC_TIMEOUT ((char) 1) /* timeout */
77#define SMFIC_SELECT ((char) 2) /* select error */
78#define SMFIC_MALLOC ((char) 3) /* malloc error */
79#define SMFIC_RECVERR ((char) 4) /* recv() error */
80#define SMFIC_EOF ((char) 5) /* eof */
81#define SMFIC_UNKNERR ((char) 6) /* unknown error */

--- 35 unchanged lines hidden ---