Lines Matching +full:1 +full:- +full:sd
2 * Copyright (c) 1999-2003, 2006 Proofpoint, Inc. and its suppliers.
11 ** LIBMILTER.H -- include file for mail filter library functions
15 # define _LIBMILTER_H 1
22 SM_IDSTR(MilterlId, "@(#)$Id: libmilter.h,v 8.78 2013-11-22 20:51:36 ca Exp $")
31 #define NOT_SENDMAIL 1
54 ** There is a 1-1 correlation between a sendmail SMTP server process,
57 ** only with a single SMTP session per MTA - libmilter connection.
124 # define ValidSocket(sd) ((sd) >= 0) argument
125 # define INVALID_SOCKET (-1)
144 # define SM_CONF_POLL 1
176 # define MI_MS(timeout) (((timeout)->tv_sec * 1000) + (((timeout)->tv_usec) / 1000))
181 # define FD_RD_INIT(sd, rds, excs) \ argument
182 (rds).fd = (sd); \
186 # define FD_WR_INIT(sd, wrs) \ argument
187 (wrs).fd = (sd); \
191 # define FD_IS_RD_EXC(sd, rds, excs) \ argument
194 # define FD_IS_WR_RDY(sd, wrs) \ argument
197 # define FD_IS_RD_RDY(sd, rds, excs) \ argument
200 # define FD_WR_READY(sd, wrs, timeout) \ argument
201 poll(&(wrs), 1, MI_MS(timeout))
203 # define FD_RD_READY(sd, rds, excs, timeout) \ argument
204 poll(&(rds), 1, MI_MS(timeout))
214 # define FD_RD_INIT(sd, rds, excs) \ argument
216 FD_SET((unsigned int) (sd), &(rds)); \
218 FD_SET((unsigned int) (sd), &(excs))
220 # define FD_WR_INIT(sd, wrs) \ argument
222 FD_SET((unsigned int) (sd), &(wrs))
224 # define FD_IS_RD_EXC(sd, rds, excs) FD_ISSET(sd, &(excs)) argument
225 # define FD_IS_WR_RDY(sd, wrs) FD_ISSET((sd), &(wrs)) argument
226 # define FD_IS_RD_RDY(sd, rds, excs) FD_ISSET((sd), &(rds)) argument
228 # define FD_WR_READY(sd, wrs, timeout) \ argument
229 select((sd) + 1, NULL, &(wrs), NULL, (timeout))
230 # define FD_RD_READY(sd, rds, excs, timeout) \ argument
231 select((sd) + 1, &(rds), NULL, &(excs), (timeout))
256 #define SMFIC_TIMEOUT ((char) 1) /* timeout */
277 #define MILTER_STOP 1