4 * Return zero if the operation timed-out or erred-out, otherwise non-zero.
7 SWaitUntilReadyForReading(const int sfd
, const int tlen
)
30 result
= select(sfd
+ 1, SELECT_TYPE_ARG234
&ss
, NULL
, SELECT_TYPE_ARG234
&ss2
, &tv
);
34 } else if (result
< 0) {
46 tleft
= (int) (done
- now
);
53 } /* SWaitUntilReadyForReading */
59 * Return zero if the operation timed-out or erred-out, otherwise non-zero.
62 SWaitUntilReadyForWriting(const int sfd
, const int tlen
)
85 result
= select(sfd
+ 1, NULL
, SELECT_TYPE_ARG234
&ss
, SELECT_TYPE_ARG234
&ss2
, &tv
);
89 } else if (result
< 0) {
101 tleft
= (int) (done
- now
);
108 } /* SWaitUntilReadyForWriting */