to be compatible with select prototype on hp.
This commit is contained in:
1 parent
80dbdf6814
commit
7b03f77e30
2 files changed
+18
-2
No files matched your search
+9
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user