aboutsummaryrefslogtreecommitdiff
path: root/locale/programs
AgeCommit message (Collapse)AuthorFilesLines
2013-06-25Fix missing libc-internal.h include.Richard Henderson1-0/+1
* locale/programs/locarchive.c: Include <libc-internal.h>
2013-06-24[BZ #10283] localedef: align fixed maps to SHMLBAMike Frysinger1-16/+45
Many Linux arches require fixed mmaps to be aligned higher than pagesize, so use the SHMLBA define as it represents this quantity exactly. This fixes spurious errors seen on those arches like: cannot map archive header: Invalid argument URL: http://sourceware.org/bugzilla/show_bug.cgi?id=10283 Reported-by: CHIKAMA Masaki <masaki.chikama@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-06-06Fix leading whitespaces.Ondrej Bilka2-2/+2
2013-05-25localedef: include file name in error messagesMike Frysinger1-2/+2
When mkstemp fails, the error message the user gets back is: cannot create temporary file: No such file or directory That isn't terribly useful in figuring out why, so include the full filename we tried to create in the error output. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold22-0/+23
2013-05-10Use *stat64 instead of *stat in installed programsFlorian Weimer2-14/+14
This ensures reliable operation on file systems with inode numbers which do not fit into 32 bits.
2013-03-20BZ#14812: Add missing N_ markers in localedef.Roland McGrath1-5/+6
2013-02-18unify xmalloc prototypes & friendsMike Frysinger3-15/+3
These prototypes are duplicated in many places. Add a dedicated header for holding prototypes for program-specific functions to avoid that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-02-07Remove lots of inline keywords.Roland McGrath1-1/+1
2013-01-03Fix "localedef --posix" descriptionAllan McRae1-1/+1
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers38-41/+38
2013-01-01Update copyright years.David S. Miller2-4/+4
* catgets/gencat.c: Update copyright year. * csu/version.c: Likewise. * debug/catchsegv.sh: Likewise. * debug/pcprofiledump.c: Likewise. * debug/xtrace.sh: Likewise. * elf/ldconfig.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/pldd.c: Likewise. * elf/sotruss.ksh: Likewise. * elf/sprof.c: Likewise. * iconv/iconv_prog.c: Likewise. * iconv/iconvconfig.c: Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * login/programs/pt_chown.c: Likewise. * malloc/memusage.sh: Likewise. * malloc/memusagestat.c: Likewise. * malloc/mtrace.pl: Likewise. * nscd/nscd.c: Likewise. * nss/getent.c: Likewise. * nss/makedb.c: Likewise. * posix/getconf.c: Likewise.
2012-11-09Support --with-pkgversion and --with-bugurl.Joseph Myers2-8/+17
2012-03-10Replace FSF snail mail address with URL in gperf input.Paul Eggert4-28/+34
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert34-68/+34
2012-01-31Remove PARAMS macros.Marek Polacek1-4/+0
2012-01-30Remove miscellaneous __STDC__ conditionals.Joseph Myers1-5/+1
2012-01-26Remove __STDC__ conditionals from non-installed headers.Joseph Myers1-6/+2
2012-01-10Add noreturn attributeMarek Polacek1-1/+1
2012-01-08Optimize xmalloc, xcalloc, xrealloc, and xstrdupUlrich Drepper4-13/+16
Add alloc_size attribute and apply consistently the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
2012-01-01Update copyright yearUlrich Drepper2-4/+4
2011-10-08Clean up locarchive mmap reservation code.Roland McGrath1-42/+32
2011-06-10Quash some new warnings from GCC 4.6.Roland McGrath3-8/+1
2011-05-29Fix typo in last patch to locarchive.cUlrich Drepper1-1/+1
2011-05-28Handle failure of _nl_explode_name in all casesUlrich Drepper1-2/+11
2011-05-09Use appropriate type for return value checkingUlrich Drepper1-1/+1
2011-04-22Remove doubled words.Jim Meyering1-2/+2
2011-01-17Update copyright year.Ulrich Drepper2-4/+4
2010-08-12Properly quote output of localeAndreas Schwab1-7/+30
2010-03-24ocale-archive differs between 32 and 64 bit platformsChris Demetriou2-1/+4
2010-03-15Update copyright year.Ulrich Drepper2-9/+9
2009-10-30Add missing declarations.Andreas Schwab1-0/+2
2009-09-28Fix locale program error handlingUlrich Drepper1-1/+4
If an unknown name is passed to locale, report it and fail.
2009-09-07Fix endless loop in localedef.Ulrich Drepper1-28/+31
localedef got into an endless loop in case order_start was used for the unnamed_section twice and the first use didn't actually result into any definition.
2009-07-20Check generated locale for non-ASCII 8-bit characters with case conversion.Ulrich Drepper1-1/+26
If a locale does not have 8-bit characters with case conversion which are different from the ASCII conversion (±0x20) then we can perform some optimizations. These will follow later.
2009-04-27* locale/programs/locarchive.c (create_archive): Add MAP_PRIVATEcvs/fedora-glibc-20090427T1419Ulrich Drepper1-11/+32
to MAP_ANON in PROT_NONE mmap64 call. (open_archive): Likewise. (file_data_available_p): Use mmap64 instead of mremap. (enlarge_archive): Likewise. Update head if ah->addr changed. Attempt to reserve address space after mmap64 region.
2009-04-24* locale/programs/locarchive.c (enlarge_archive): Conserve addressUlrich Drepper1-9/+20
space when temporarily mapping the whole content of the old file.
2009-04-24[BZ #10100]Ulrich Drepper1-15/+12
2009-04-24 Ulrich Drepper <drepper@redhat.com> [BZ #10100] * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is not zero.
2009-04-24* locale/locarchive.h (struct locarhandle): Rename len field toUlrich Drepper1-14/+101
mmaped and add new reserved field. * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define. (create_archive): Reserve address space and then map file into it. (open_archive): Likewise. (file_data_available_p): New function. (compare_from_file): New function. (close_archive): Adjust to member name changes. (add_locale): Before comparing locale data, check it is mapped. Otherwise fall back to reading from the file.
2009-04-18* locale/programs/locarchive.c (open_archive): Map the entire fileUlrich Drepper1-9/+31
and not just the administrative data. (add_locale): When we find a hash sum match compare the content to be sure.
2009-02-06* debug/xtrace.sh: Unify translatable messages.Ulrich Drepper1-4/+22
* elf/ldd.bash.in: Likewise. * elf/sprof.c: Likewise. * locale/programs/locale.c: Likewise. * malloc/memusage.sh: Likewise. * nss/getent.c: Likewise. 2009-02-06 Joseph Myers <joseph@codesourcery.com> * debug/pcprofiledump.c (print_version, argp_program_version_hook): New function. * elf/ldconfig.c (more_help): New function. (argp): Use it. * elf/sln.c (usage): New function. (main): Support --help and --version. * malloc/memusagestat.c (print_version): New function. (argp_program_version_hook): New variable. * nscd/nscd.c (more_help): New function. (argp): Use it. * posix/getconf.c (main): Send --version output to stdout. Support --help. * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS arguments. All callers changed. (print_version): New function. (parseargs): Support --help and --version. * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers changed. (print_version): New function. (main): Use getopt_long. Support --help and --version. * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and --version. 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2009-01-02* posix/getconf.c: Update copyright year.Ulrich Drepper2-4/+4
* nss/getent.c: Likewise. * iconv/iconvconfig.c: Likewise. * iconv/iconv_prog.c: Likewise. * elf/ldconfig.c: Likewise. * catgets/gencat.c: Likewise. * csu/version.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/sprof.c (print_version): Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * nscd/nscd.c (print_version): Likewise. * debug/xtrace.sh: Likewise. * malloc/memusage.sh: Likewise. * malloc/mtrace.pl: Likewise. * debug/catchsegv.sh: Likewise.
2008-12-05(DEFINE_LANGUAGE_CODE2): Define.Ulrich Drepper1-1/+3
2008-05-27Remove useless more "if" tests before "free".Ulrich Drepper1-8/+4
* include/inline-hashtab.h (htab_delete): Likewise. * libio/freopen.c (freopen): Likewise. * libio/freopen64.c (freopen64): Likewise. * locale/programs/ld-collate.c (collate_read): Likewise. * misc/fstab.c (libc_freeres_fn): Likewise. * posix/glob.c (globfree): Likewise.
2008-04-08(collate_read): Ignore script lines as well when ignoring the whole category.Ulrich Drepper1-1/+9
2008-03-29[BZ #5979]Ulrich Drepper2-4/+4
* sunrpc/auth_unix.c: Unify printed strings. * sunrpc/clnt_tcp.c: Likewise. * sunrpc/clnt_udp.c: Likewise. * sunrpc/clnt_unix.c: Likewise. * sunrpc/svc_tcp.c: Likewise. * sunrpc/svc_udp.c: Likewise. * sunrpc/svc_unix.c: Likewise. * sunrpc/xdr.c: Likewise. * sunrpc/xdr_array.c: Likewise. * sunrpc/xdr_rec.c: Likewise. * sunrpc/xdr_ref.c: Likewise. * locale/programs/ld-time.c (time_finish): Unify messages. * locale/programs/locfile.c (handle_copy): Fix typo. * nscd/nscd.c (options): Fix typo.
2008-03-19Remove useless "if" before "free".Ulrich Drepper2-10/+5
2008-01-02* posix/getconf.c: Update copyright year.Ulrich Drepper2-4/+4
* nss/getent.c: Likewise. * iconv/iconvconfig.c: Likewise. * iconv/iconv_prog.c: Likewise. * elf/ldconfig.c: Likewise. * catgets/gencat.c: Likewise. * csu/version.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/sprof.c (print_version): Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * nscd/nscd.c (print_version): Likewise. * debug/xtrace.sh: Likewise. * malloc/memusage.sh: Likewise. * malloc/mtrace.pl: Likewise. * debug/catchsegv.sh: Likewise.
2007-11-22* locale/programs/ld-collate.c (collate_read): Fix loop to matchUlrich Drepper1-0/+2
macro name.
2007-10-13* locale/programs/repertoire.c (repertoire_read): Always freeUlrich Drepper1-2/+1
memory for repertoire file name [Coverity CID 270].