This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: Should glibc provide a builtin C.UTF-8 locale?


On 02/13/2015 04:23 AM, Andreas Schwab wrote:
> "Carlos O'Donell" <carlos@redhat.com> writes:
> 
>> glibc/catgets/open_catalog.c:
>> 216     (struct catalog_obj *) __mmap (NULL, st.st_size, PROT_READ,
>> 217                                    MAP_FILE|MAP_COPY, fd, 0);
> 
> That's for X/Open style msg files, which nobody is using.  You need to
> look at intl/loadmsgcat.c.

Thanks.

Similar mmap there:

 850   /* Now we are ready to load the file.  If mmap() is available we try
 851      this first.  If not available or it failed we try to load it.  */
 852   data = (struct mo_file_header *) mmap (NULL, size, PROT_READ,
 853                                          MAP_PRIVATE, fd, 0);

c.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]