NLS/strerror efficiency
Gabor Kovesdan
gabor at FreeBSD.org
Sat Jan 23 19:43:37 UTC 2010
El 2010. 01. 23. 20:38, Kostik Belousov escribió:
> Wouldn't this cause the locale for error strings to be fixated at the
> time of the first strerror/gai_strerror call ?
>
> Current code, despite it inefficiency, allow dynamic change of locale
> that is reflected in strerror() output, I believe.
>
That's a good point. Imho, it should be cached in another static
variable just like in my patch, where I should store it in another
member of the struct.
--
Gabor Kovesdan
FreeBSD Volunteer
EMAIL: gabor at FreeBSD.org .:|:. gabor at kovesdan.org
WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
More information about the freebsd-current
mailing list