Arrrgh. Missed in previous commit.
This commit is contained in:
parent
e3bf53861b
commit
542d8c2cf2
1 changed files with 30 additions and 0 deletions
30
devel/pth/patches/patch-aj
Normal file
30
devel/pth/patches/patch-aj
Normal file
|
@ -0,0 +1,30 @@
|
|||
$NetBSD: patch-aj,v 1.1 2002/10/14 11:55:14 skrll Exp $
|
||||
|
||||
--- pth_util.c.orig Sun Jan 27 13:11:39 2002
|
||||
+++ pth_util.c
|
||||
@@ -181,3 +181,25 @@ intern int pth_util_fds_select(int nfd,
|
||||
return n;
|
||||
}
|
||||
|
||||
+/*
|
||||
+ * zero the first 'nfd' file descriptors in an fd_set.
|
||||
+ */
|
||||
+intern int pth_util_fd_zero(int nfd, fd_set *fds)
|
||||
+{
|
||||
+ int i;
|
||||
+ for (i=0; i<nfd; i++)
|
||||
+ FD_CLR(i, fds);
|
||||
+}
|
||||
+
|
||||
+/*
|
||||
+ * copy the first 'nfd' file descriptors from one fd_set to another.
|
||||
+ */
|
||||
+intern int pth_util_fd_copy(int nfd, fd_set* dfds, fd_set* sfds)
|
||||
+{
|
||||
+ int i;
|
||||
+ for (i=0; i < nfd; i++)
|
||||
+ if (FD_ISSET(i, sfds))
|
||||
+ FD_SET(i, dfds);
|
||||
+ else
|
||||
+ FD_CLR(i, dfds);
|
||||
+}
|
Loading…
Reference in a new issue