Greetings to all,
I have two problems:
One :
I have a lab with slackware, red hat and debian machines running. The
select call implementation in linux says the following in the man page
(red-hat):
"Some code calls select with all three sets empty, n zero,
and a non-null timeout as a fairly portable way to sleep
with subsecond precision.
On Linux, timeout is modified to reflect the amount of
time not slept; most other implementations do not do this.
This causes problems both when Linux code which reads
timeout is ported to other operating systems, and when
code is ported to Linux that reuses a struct timeval for
multiple selects in a loop without reinitializing it.
Consider timeout to be undefined after select returns. "
I want to use select call as a microsecond granularity timer. But this
part of the man page confuses me. Please help.
Two :
If I have to implement my own version of the select according to the
BSD specs, is there any place available for me to get the
relevent documentation?
TIA
Ramki
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]