[newlib-cygwin] Redefine locale info in struct _reent for per-thread locales
Eric Blake
eblake@redhat.com
Wed Jul 6 15:23:00 GMT 2016
On 07/06/2016 07:41 AM, Corinna Vinschen wrote:
> https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a68ca43b9014ae45feb3162a5f066524e2b38e1a
>
> commit a68ca43b9014ae45feb3162a5f066524e2b38e1a
> Author: Corinna Vinschen <corinna@vinschen.de>
> Date: Wed Jul 6 15:41:35 2016 +0200
>
> Redefine locale info in struct _reent for per-thread locales
> +++ b/newlib/libc/include/sys/reent.h
> @@ -37,6 +37,11 @@ typedef __uint32_t __ULong;
>
> struct _reent;
>
> +/* TODO: This structure type isn't defined yet. It's supposed to be used
> + by locale-specific functions in case a pre-thread locale per SUSv4 has
s/pre/per/
> + been specified. */
> +struct _thr_locale_t;
> +
> /*
> * If _REENT_SMALL is defined, we make struct _reent as small as possible,
> * by having nearly everything possible allocated at first use.
> @@ -384,8 +389,9 @@ struct _reent
>
> int __sdidinit; /* 1 means stdio has been init'd */
>
> - int _current_category; /* unused */
> - _CONST char *_current_locale; /* unused */
> + /* TODO */
> + int _unspecified_locale_info; /* unused, reserved for locale stuff */
> + struct _thr_locale_t *_locale;/* per-thread locale */
Looks like a good useful start.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20160706/b3c81a04/attachment.sig>
More information about the Cygwin-developers
mailing list