to be compatible with select prototype on hp.

This commit is contained in:
Johnny Tang
1995-02-28 00:57:23 +00:00
parent 80dbdf6814
commit 7b03f77e30
2 changed files with 18 additions and 2 deletions
+9 -2
View File
@@ -108,14 +108,21 @@ if(client_lock->recurse>0){
taskSuspend(0);
}
#endif
#if defined(__hpux)
status = select(
maxfd+1,
(int *)&pfdi->readMask,
(int *)&pfdi->writeMask,
(int *)NULL,
ptimeout);
#else
status = select(
maxfd+1,
&pfdi->readMask,
&pfdi->writeMask,
NULL,
ptimeout);
#endif
#if 0
printf("leaving select stat=%d errno=%d \n", status, MYERRNO);
#endif
+9
View File
@@ -707,12 +707,21 @@ struct timeval *ptimeout
# ifdef vxWorks
taskSafe();
# endif
# if defined (__hpux)
status = select(
pfdctx->maxfd,
(int *)&pfdctx->readch,
(int *)&pfdctx->writech,
(int *)&pfdctx->excpch,
ptimeout);
# else
status = select(
pfdctx->maxfd,
&pfdctx->readch,
&pfdctx->writech,
&pfdctx->excpch,
ptimeout);
# endif
# ifdef vxWorks
taskUnsafe();
# endif