PATCH: kernel / errno testing

Marcus Meissner marcus at jet.franken.de
Wed Jan 22 15:02:38 CST 2003


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



More information about the wine-devel mailing list