summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/libmilter/libmilter.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.sbin/sendmail/libmilter/libmilter.h')
-rw-r--r--gnu/usr.sbin/sendmail/libmilter/libmilter.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/gnu/usr.sbin/sendmail/libmilter/libmilter.h b/gnu/usr.sbin/sendmail/libmilter/libmilter.h
index d826f972368..fe90c563e06 100644
--- a/gnu/usr.sbin/sendmail/libmilter/libmilter.h
+++ b/gnu/usr.sbin/sendmail/libmilter/libmilter.h
@@ -13,12 +13,13 @@
#ifndef _LIBMILTER_H
# define _LIBMILTER_H 1
+
+#include <sm/gen.h>
+
#ifdef _DEFINE
# define EXTERN
# define INIT(x) = x
-# ifndef lint
-static char MilterlId[] = "@(#)$Sendmail: libmilter.h,v 8.3.6.16 2001/06/07 23:21:35 geir Exp $";
-# endif /* ! lint */
+SM_IDSTR(MilterlId, "@(#)$Sendmail: libmilter.h,v 8.26 2001/07/20 02:48:37 gshapiro Exp $")
#else /* _DEFINE */
# define EXTERN extern
# define INIT(x)
@@ -31,11 +32,6 @@ static char MilterlId[] = "@(#)$Sendmail: libmilter.h,v 8.3.6.16 2001/06/07 23:2
#include "libmilter/milter.h"
-#ifndef __P
-# include "sendmail/cdefs.h"
-#endif /* ! __P */
-#include "sendmail/useful.h"
-
# define ValidSocket(sd) ((sd) >= 0)
# define INVALID_SOCKET -1
# define MI_SOCK_READ(s, b, l) (read(s, b, l))
@@ -61,16 +57,19 @@ typedef pthread_mutex_t smutex_t;
#define MI_TIMEOUT 7210 /* default timeout for read/write */
#define MI_CHK_TIME 5 /* checking whether to terminate */
-#if SOMAXCONN > 20
-# define MI_SOMAXCONN SOMAXCONN
-#else /* SOMAXCONN */
-# define MI_SOMAXCONN 20
-#endif /* SOMAXCONN */
+#ifndef MI_SOMAXCONN
+# if SOMAXCONN > 20
+# define MI_SOMAXCONN SOMAXCONN
+# else /* SOMAXCONN */
+# define MI_SOMAXCONN 20
+# endif /* SOMAXCONN */
+#endif /* ! MI_SOMAXCONN */
/* maximum number of repeated failures in mi_listener() */
#define MAX_FAILS_M 16 /* malloc() */
#define MAX_FAILS_T 16 /* thread creation */
#define MAX_FAILS_A 16 /* accept() */
+#define MAX_FAILS_S 16 /* select() */
/* internal "commands", i.e., error codes */
#define SMFIC_TIMEOUT ((char) 1) /* timeout */
@@ -84,6 +83,7 @@ typedef pthread_mutex_t smutex_t;
/* hack */
#define smi_log syslog
+#define sm_dprintf printf
#define milter_ret int
#define SMI_LOG_ERR LOG_ERR
#define SMI_LOG_FATAL LOG_ERR
@@ -106,6 +106,7 @@ extern int mi_control_startup __P((char *));
extern void mi_stop_milters __P((int));
extern void mi_clean_signals __P((void));
extern struct hostent *mi_gethostbyname __P((char *, int));
+extern int mi_inet_pton __P((int, const char *, void *));
extern void mi_closener __P((void));
/* communication functions */