summaryrefslogtreecommitdiffstats
path: root/source/lib/system.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-01 02:15:14 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-01 02:15:14 +0000
commite4d92ff9dfc51735e6932748f66a7c20b2c1cb6a (patch)
treea8ec8fc10a8c63a3bc92235eae9d68f36865fb3a /source/lib/system.c
parent5b5719d6a08130db1062bfa24123cedcdc692bff (diff)
downloadsamba-e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a.tar.gz
samba-e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a.tar.xz
samba-e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a.zip
sys_select added one more argument (read, write selectors).
Diffstat (limited to 'source/lib/system.c')
-rw-r--r--source/lib/system.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/lib/system.c b/source/lib/system.c
index 5a5f853bda8..f9de800bd3d 100644
--- a/source/lib/system.c
+++ b/source/lib/system.c
@@ -60,7 +60,7 @@ static int pollfd(int fd)
return(r);
}
-int sys_select(int maxfd, fd_set *fds,struct timeval *tval)
+int sys_select(int maxfd, fd_set *fds, fd_set *w_fds, struct timeval *tval)
{
fd_set fds2;
int counter=0;
@@ -90,7 +90,7 @@ int sys_select(int maxfd, fd_set *fds,struct timeval *tval)
}
#else /* !NO_SELECT */
-int sys_select(int maxfd, fd_set *fds,struct timeval *tval)
+int sys_select(int maxfd, fd_set *r_fds, fd_set *w_fds, struct timeval *tval)
{
#ifdef USE_POLL
struct pollfd pfd[256];
@@ -131,7 +131,8 @@ int sys_select(int maxfd, fd_set *fds,struct timeval *tval)
do {
if (tval) memcpy((void *)&t2,(void *)tval,sizeof(t2));
errno = 0;
- selrtn = select(maxfd,SELECT_CAST fds,NULL,NULL,tval?&t2:NULL);
+ selrtn = select(maxfd,SELECT_CAST r_fds,SELECT_CAST w_fds,
+ NULL,tval?&t2:NULL);
} while (selrtn<0 && errno == EINTR);
return(selrtn);