aboutsummaryrefslogtreecommitdiff
path: root/contrib/sendmail/include/sm/fdset.h
blob: 10f1217793700f7c33383b3689c331059535fc9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2001, 2002 Proofpoint, Inc. and its suppliers.
 *      All rights reserved.
 *
 * By using this file, you agree to the terms and conditions set
 * forth in the LICENSE file which can be found at the top level of
 * the sendmail distribution.
 *
 *	$Id: fdset.h,v 1.6 2013-11-22 20:51:31 ca Exp $
 */

#ifndef	SM_FDSET_H
# define SM_FDSET_H

/*
**  Note: SM_FD_OK_SELECT(fd) requires that ValidSocket(fd) has been checked
**	before.
*/

#define SM_FD_CLR(fd, pfdset)	FD_CLR(fd, pfdset)
#define SM_FD_SET(fd, pfdset)	FD_SET(fd, pfdset)
#define SM_FD_ISSET(fd, pfdset)	FD_ISSET(fd, pfdset)
#define SM_FD_SETSIZE		FD_SETSIZE
#define SM_FD_OK_SELECT(fd)	(SM_FD_SETSIZE <= 0 || (fd) < SM_FD_SETSIZE)

#endif /* SM_FDSET_H */