Posted: Thu Apr 24, 2003 9:45 pm Post subject: [Asterisk-Dev] Some select(2) usage Linux-specific
A couple of calls to select(2) are assuming a Linux-specific side-
effect of the passed timeval being updated with how much time was
left in before a timeout would occur.
This patch makes this work (at the expense of two more system calls)
on many other systems.
Posted: Fri Apr 25, 2003 2:29 pm Post subject: [Asterisk-Dev] Some select(2) usage Linux-specific
How about doing a macro called ast_select which resolves to select() on
linux and an inline function to do this sort of select on non-linux
systems?
Mark
On Thu, 24 Apr 2003, Thorsten Lockert wrote:
Quote:
A couple of calls to select(2) are assuming a Linux-specific side-
effect of the passed timeval being updated with how much time was
left in before a timeout would occur.
This patch makes this work (at the expense of two more system calls)
on many other systems.
Posted: Fri Apr 25, 2003 3:12 pm Post subject: [Asterisk-Dev] Some select(2) usage Linux-specific
Is there much point, given that it is used all of two times in this
manner...?
Thorsten
--
Thorsten Lockert | tholo@sigmasoft.com | Universe, n.:
2121 N. Lakeshore Dr. | tholo@openbsd.org | The problem.
Chapel Hill, NC 27514 | |
-----Original Message-----
From: asterisk-dev-admin@lists.digium.com
[mailto:asterisk-dev-admin@lists.digium.com] On Behalf Of Mark Spencer
Sent: Friday, April 25, 2003 10:30
To: asterisk-dev@lists.digium.com
Subject: Re: [Asterisk-Dev] Some select(2) usage Linux-specific
How about doing a macro called ast_select which resolves to select() on
linux and an inline function to do this sort of select on non-linux
systems?
Mark
On Thu, 24 Apr 2003, Thorsten Lockert wrote:
Quote:
A couple of calls to select(2) are assuming a Linux-specific side-
effect of the passed timeval being updated with how much time was
left in before a timeout would occur.
This patch makes this work (at the expense of two more system calls)
on many other systems.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum