]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/sendmail/include/sm/fdset.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / sendmail / include / sm / fdset.h
1 /*
2  * Copyright (c) 2001, 2002 Proofpoint, 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  *      $Id: fdset.h,v 1.6 2013-11-22 20:51:31 ca Exp $
10  */
11
12 #ifndef SM_FDSET_H
13 # define SM_FDSET_H
14
15 /*
16 **  Note: SM_FD_OK_SELECT(fd) requires that ValidSocket(fd) has been checked
17 **      before.
18 */
19
20 #define SM_FD_SET(fd, pfdset)   FD_SET(fd, pfdset)
21 #define SM_FD_ISSET(fd, pfdset) FD_ISSET(fd, pfdset)
22 #define SM_FD_SETSIZE           FD_SETSIZE
23 #define SM_FD_OK_SELECT(fd)     (SM_FD_SETSIZE <= 0 || (fd) < SM_FD_SETSIZE)
24
25 #endif /* SM_FDSET_H */