Marcus Meissner wrote:
Hi,
glibc 2.3.current CVS is throwing a huge stone in our direction, it no longer allows overload of __errno_location.
To visualize this problem I have added this testcase. ... sched_yield(); /* will not change errno */
BTW sched_yield() is allowed to be a no-op; would nanosleep() or something like that be a better choice? - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
On Wed, 22 Jan 2003, Dan Kegel wrote:
Marcus Meissner wrote:
Hi,
glibc 2.3.current CVS is throwing a huge stone in our direction, it no longer allows overload of __errno_location.
To visualize this problem I have added this testcase. ... sched_yield(); /* will not change errno */
BTW sched_yield() is allowed to be a no-op; would nanosleep() or something like that be a better choice?
Even better, can we achieve the same effect with a Win32 function? Maybe Sleep(10) (milliseconds) or something like it? It seems like it should be possible to write this without any platform dependent code. -- Francois Gouget fgouget(a)free.fr http://fgouget.free.fr/ The software said it requires Win95 or better, so I installed Linux.
On Wed, Jan 22, 2003 at 12:49:50PM -0800, Francois Gouget wrote:
On Wed, 22 Jan 2003, Dan Kegel wrote:
Marcus Meissner wrote:
Hi,
glibc 2.3.current CVS is throwing a huge stone in our direction, it no longer allows overload of __errno_location.
To visualize this problem I have added this testcase. ... sched_yield(); /* will not change errno */
BTW sched_yield() is allowed to be a no-op; would nanosleep() or something like that be a better choice?
Even better, can we achieve the same effect with a Win32 function? Maybe Sleep(10) (milliseconds) or something like it? It seems like it should be possible to write this without any platform dependent code.
The problem is to avoid functions that might change 'errno'. Almost all could do that, we want to avoid that. nanosleep() might be ok. Ciao, Marcus
participants (3)
-
Dan Kegel -
Francois Gouget -
Marcus Meissner