|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] libxen-3.0 (libxc rewrite)
> Nivedita Singhvi wrote:
>
> > Anthony Liguori wrote:
> >
> >> There's only one problem with this: thread-safety. I believe errno
> >> is commonly implemented in thread-local storage. We'd have to jump
> >> through major hoops to get our own proper errno.
> >
> >
> > Anthony - not sure what you are referring to here, because
> > the common use is to use the global errno made available
> > in libc. Is that not a proper errno?
>
> Some libraries implement their own psuedo-errno to store library
> specific errors. To the best of my knowledge, with the exception of
> system libraries (libc) errno is not used and not really supposed to be
> used.
>
> I could be wrong, but I can't think of any libraries that use it.
I think we can just use the regular errno as defined in errno.h (and
in the Posix standard).
The convention of using negative numbers in the kernel is
counterbalanced by another convention of using positive numbers
in user space. Shouldn't be too hard to fix I guess.
cheers,
S.
-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
|
|
|
|
|