summaryrefslogtreecommitdiff
path: root/devel/pth
diff options
context:
space:
mode:
authorskrll <skrll>2002-10-14 11:55:14 +0000
committerskrll <skrll>2002-10-14 11:55:14 +0000
commitb09af13f0e3bba5dca5dfa1870846ce86ee63839 (patch)
tree3e21eab85a9f0518c318696e08f6d0386683c938 /devel/pth
parent16266e17d1e0c4279c51ca6b5d86c29508ad73d9 (diff)
downloadpkgsrc-b09af13f0e3bba5dca5dfa1870846ce86ee63839.tar.gz
Arrrgh. Missed in previous commit.
Diffstat (limited to 'devel/pth')
-rw-r--r--devel/pth/patches/patch-aj30
1 files changed, 30 insertions, 0 deletions
diff --git a/devel/pth/patches/patch-aj b/devel/pth/patches/patch-aj
new file mode 100644
index 00000000000..4fcfd1e8fe5
--- /dev/null
+++ b/devel/pth/patches/patch-aj
@@ -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);
++}