This is the mail archive of the cygwin-developers mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |