1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * Copyright (c) 2001, 2002 Sendmail, Inc. and its suppliers. 3*7c478bd9Sstevel@tonic-gate * All rights reserved. 4*7c478bd9Sstevel@tonic-gate * 5*7c478bd9Sstevel@tonic-gate * By using this file, you agree to the terms and conditions set 6*7c478bd9Sstevel@tonic-gate * forth in the LICENSE file which can be found at the top level of 7*7c478bd9Sstevel@tonic-gate * the sendmail distribution. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * $Id: fdset.h,v 1.3.10.2 2002/12/10 04:02:25 ca Exp $ 10*7c478bd9Sstevel@tonic-gate */ 11*7c478bd9Sstevel@tonic-gate 12*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 13*7c478bd9Sstevel@tonic-gate 14*7c478bd9Sstevel@tonic-gate #ifndef SM_FDSET_H 15*7c478bd9Sstevel@tonic-gate # define SM_FDSET_H 16*7c478bd9Sstevel@tonic-gate 17*7c478bd9Sstevel@tonic-gate /* 18*7c478bd9Sstevel@tonic-gate ** Note: SM_FD_OK_SELECT(fd) requires that ValidSocket(fd) has been checked 19*7c478bd9Sstevel@tonic-gate ** before. 20*7c478bd9Sstevel@tonic-gate */ 21*7c478bd9Sstevel@tonic-gate 22*7c478bd9Sstevel@tonic-gate # define SM_FD_SET(fd, pfdset) FD_SET(fd, pfdset) 23*7c478bd9Sstevel@tonic-gate # define SM_FD_ISSET(fd, pfdset) FD_ISSET(fd, pfdset) 24*7c478bd9Sstevel@tonic-gate # define SM_FD_SETSIZE FD_SETSIZE 25*7c478bd9Sstevel@tonic-gate # define SM_FD_OK_SELECT(fd) (FD_SETSIZE <= 0 || (fd) < FD_SETSIZE) 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gate #endif /* SM_FDSET_H */ 28