OSSP CVS Repository

ossp - Difference in ossp-pkg/pth/pth_util.c versions 1.20 and 1.21
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/pth/pth_util.c 1.20 -> 1.21

--- pth_util.c   2002/01/27 11:03:41     1.20
+++ pth_util.c   2002/01/27 13:15:28     1.21
@@ -91,6 +91,15 @@
     return d;
 }
 
+/* check whether a file-descriptor is valid */
+#if cpp
+#if !defined(FD_SETSIZE)
+#define FD_SETSIZE 1024
+#endif
+#define pth_util_fd_valid(fd) \
+    ((fd) >= 0 && (fd) <= (FD_SETSIZE-1))
+#endif
+
 /* merge input fd set into output fds */
 intern void pth_util_fds_merge(int nfd,
                                fd_set *ifds1, fd_set *ofds1,

CVSTrac 2.0.1