190792Sgshapiro/*
2261194Sgshapiro * Copyright (c) 2001, 2002 Proofpoint, Inc. and its suppliers.
390792Sgshapiro *      All rights reserved.
490792Sgshapiro *
590792Sgshapiro * By using this file, you agree to the terms and conditions set
690792Sgshapiro * forth in the LICENSE file which can be found at the top level of
790792Sgshapiro * the sendmail distribution.
890792Sgshapiro *
9266527Sgshapiro *	$Id: fdset.h,v 1.6 2013-11-22 20:51:31 ca Exp $
1090792Sgshapiro */
1190792Sgshapiro
1290792Sgshapiro#ifndef	SM_FDSET_H
1390792Sgshapiro# define SM_FDSET_H
1490792Sgshapiro
15110560Sgshapiro/*
16110560Sgshapiro**  Note: SM_FD_OK_SELECT(fd) requires that ValidSocket(fd) has been checked
17110560Sgshapiro**	before.
18110560Sgshapiro*/
19110560Sgshapiro
20285229Sgshapiro#define SM_FD_SET(fd, pfdset)	FD_SET(fd, pfdset)
21285229Sgshapiro#define SM_FD_ISSET(fd, pfdset)	FD_ISSET(fd, pfdset)
22285229Sgshapiro#define SM_FD_SETSIZE		FD_SETSIZE
23285229Sgshapiro#define SM_FD_OK_SELECT(fd)	(SM_FD_SETSIZE <= 0 || (fd) < SM_FD_SETSIZE)
2490792Sgshapiro
2590792Sgshapiro#endif /* SM_FDSET_H */
26