* Re: [newlib-cygwin] Redefine locale info in struct _reent for per-thread locales [not found] <20160706134145.119102.qmail@sourceware.org> @ 2016-07-06 15:23 ` Eric Blake 2016-07-06 16:24 ` Corinna Vinschen 0 siblings, 1 reply; 2+ messages in thread From: Eric Blake @ 2016-07-06 15:23 UTC (permalink / raw) To: cygwin-developers [-- Attachment #1.1: Type: text/plain, Size: 1372 bytes --] 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 #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 604 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [newlib-cygwin] Redefine locale info in struct _reent for per-thread locales 2016-07-06 15:23 ` [newlib-cygwin] Redefine locale info in struct _reent for per-thread locales Eric Blake @ 2016-07-06 16:24 ` Corinna Vinschen 0 siblings, 0 replies; 2+ messages in thread From: Corinna Vinschen @ 2016-07-06 16:24 UTC (permalink / raw) To: cygwin-developers [-- Attachment #1: Type: text/plain, Size: 917 bytes --] On Jul 6 09:22, Eric Blake wrote: > 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/ Fixed. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-06 16:24 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20160706134145.119102.qmail@sourceware.org> 2016-07-06 15:23 ` [newlib-cygwin] Redefine locale info in struct _reent for per-thread locales Eric Blake 2016-07-06 16:24 ` Corinna Vinschen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).