diff options
author | Luke Leighton <lkcl@samba.org> | 1999-12-01 02:15:14 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-12-01 02:15:14 +0000 |
commit | 6ddfc68e0496dc41f8c9a022a0b04a2066b43c9d (patch) | |
tree | 2f8a0996fe269f79e86d6336e4520d3278b442ed /source3/lib/system.c | |
parent | 7e42174792298c8815acd1ebf34c357aff0de7c3 (diff) | |
download | samba-6ddfc68e0496dc41f8c9a022a0b04a2066b43c9d.tar.gz samba-6ddfc68e0496dc41f8c9a022a0b04a2066b43c9d.tar.bz2 samba-6ddfc68e0496dc41f8c9a022a0b04a2066b43c9d.zip |
sys_select added one more argument (read, write selectors).
(This used to be commit e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a)
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r-- | source3/lib/system.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index 5a5f853bda..f9de800bd3 100644 --- a/source3/lib/system.c +++ b/source3/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); |