freebsd_amp_hwpstate/include/sm/fdset.h

26 lines
690 B
C
Raw Normal View History

2002-02-17 21:56:45 +00:00
/*
2014-01-26 20:46:55 +00:00
* Copyright (c) 2001, 2002 Proofpoint, Inc. and its suppliers.
2002-02-17 21:56:45 +00:00
* 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.
*
2014-05-22 03:45:17 +00:00
* $Id: fdset.h,v 1.6 2013-11-22 20:51:31 ca Exp $
2002-02-17 21:56:45 +00:00
*/
#ifndef SM_FDSET_H
# define SM_FDSET_H
2003-02-08 20:31:29 +00:00
/*
** Note: SM_FD_OK_SELECT(fd) requires that ValidSocket(fd) has been checked
** before.
*/
2014-12-12 04:10:50 +00:00
#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)
2002-02-17 21:56:45 +00:00
#endif /* SM_FDSET_H */