Ulrich Drepper [Sat, 24 Sep 2005 16:37:16 +0000 (16:37 +0000)]
* locale/programs/ld-address.c (address_finish): Produce better
error messages for invalid lang_ab use.
Ulrich Drepper [Sat, 24 Sep 2005 16:18:50 +0000 (16:18 +0000)]
* locale/iso-639.def: Add a few updates from current spec.
Ulrich Drepper [Sat, 24 Sep 2005 16:09:57 +0000 (16:09 +0000)]
[BZ #520]
* SUPPORTED (SUPPORTED-LOCALES): Add ky_KG.
[BZ #520]
* locales/ky_KG: New file.
Ulrich Drepper [Sat, 24 Sep 2005 15:54:49 +0000 (15:54 +0000)]
[BZ #495]
* locales/st_ZA: Updates and corrections.
Patch by Dwayne Bailey <dwayne@translate.org.za>.
Ulrich Drepper [Sat, 24 Sep 2005 15:52:35 +0000 (15:52 +0000)]
[BZ #493]
* locales/xh_ZA: Updates and corrections.
Patch by Dwayne Bailey <dwayne@translate.org.za>.
Ulrich Drepper [Sat, 24 Sep 2005 15:28:59 +0000 (15:28 +0000)]
[BZ #488]
* locales/zu_ZA: Updates and corrections.
Patch by Dwayne Bailey <dwayne@translate.org.za>.
Ulrich Drepper [Sat, 24 Sep 2005 15:12:44 +0000 (15:12 +0000)]
[BZ #484]
* locales/af_ZA: Updates and corrections.
Patch by Dwayne Bailey <dwayne@translate.org.za>.
Ulrich Drepper [Sat, 24 Sep 2005 15:03:19 +0000 (15:03 +0000)]
[BZ #1347]
2005-09-24 Ulrich Drepper <drepper@redhat.com>
* SUPPORTED (SUPPORTED-LOCALES): Add be_BY@latin.
[BZ #1347]
* locales/be_BY@latin: New file.
Ulrich Drepper [Fri, 23 Sep 2005 19:09:00 +0000 (19:09 +0000)]
[BZ #704]
* locale/iso-4217.def: Replace MGF with MGA.
Ulrich Drepper [Fri, 23 Sep 2005 18:48:38 +0000 (18:48 +0000)]
[BZ #395]
* iconvdata/jis0208.c (__jisx0208_from_ucs4_lat1): Reduce size of
array.
* iconvdata/jis0208.h (ucs4_to_jisx0208): Adjust access.
2004-08-13 GOTO Masanori <gotom@debian.or.jp>
[BZ #395]
* iconvdata/jis0208.c: Remove 0x005C mapping from
__jisx0208_from_ucs4_lat1.
Reported by Fumitoshi UKAI <ukai@debian.or.jp>
2005-09-23 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Fri, 23 Sep 2005 16:36:09 +0000 (16:36 +0000)]
[BZ #394]
2005-09-23 Ulrich Drepper <drepper@redhat.com>
[BZ #394]
* libio/fmemopen.c (fmemopen_write): Return 0 instead of -1 if
nothing can be written.
* libio/iofopncook.c (_IO_cookie_write): If something went wrong,
set error bit.
Ulrich Drepper [Fri, 23 Sep 2005 06:11:29 +0000 (06:11 +0000)]
[BZ #281]
* posix/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
* posix/regcomp.c: Remove unnecessary uses of
unsigned RE_TRANSLATE_TYPE.
* posix/regex_internal.h: Likewise.
* posix/regex_internal.c: Likewise.
* posix/regexexec.c: Likewise.
Based on a patch by Stepan Kasal <kasal@ucw.cz>.
Ulrich Drepper [Thu, 22 Sep 2005 17:31:29 +0000 (17:31 +0000)]
[BZ #1035]
* locale/iso-4217.def: Replace TRL entry with TRY for new Turkish Lira.
Ulrich Drepper [Thu, 22 Sep 2005 14:36:18 +0000 (14:36 +0000)]
[BZ #1363]
2005-09-22 Ulrich Drepper <drepper@redhat.com>
[BZ #1363]
* nscd/nscd_getpw_r.c (nscd_getpw_r): Remove incorrectly C&Ped
free call in code handling detection of GC runs.
Ulrich Drepper [Thu, 22 Sep 2005 14:35:11 +0000 (14:35 +0000)]
(nscd_getpw_r): Remove incorrectly C&Ped free call in code handling detection of GC runs.
Roland McGrath [Thu, 22 Sep 2005 07:29:50 +0000 (07:29 +0000)]
* elf/dl-tsd.c (__libc_dl_error_tsd): Use attribute_tls_model_ie for
static __thread variable.
From Alexandre Oliva <aoliva@redhat.com>
Roland McGrath [Thu, 22 Sep 2005 07:07:42 +0000 (07:07 +0000)]
* Makefile ($(objpfx)c++-types-check.out): Use $<, not $^, in command.
Reported by Alexandre Oliva <aoliva@redhat.com>.
Roland McGrath [Tue, 20 Sep 2005 20:15:15 +0000 (20:15 +0000)]
* nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen.
Roland McGrath [Tue, 20 Sep 2005 07:46:34 +0000 (07:46 +0000)]
[BZ #1346]
2005-09-20 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/lddlibc4.c (main): Use execv, not execl.
[BZ #1346]
* elf/dl-load.c (_dl_map_object_from_fd) [HAVE_Z_RELRO]: Do relro
magic on __stack_prot only if [SHARED]. Skip mprotect if __stack_prot
lies outside the page-rounded-down relro region.
Roland McGrath [Tue, 20 Sep 2005 07:46:12 +0000 (07:46 +0000)]
[BZ #1346]
2005-09-20 Roland McGrath <roland@redhat.com>
[BZ #1346]
* elf/dl-load.c (_dl_map_object_from_fd) [HAVE_Z_RELRO]: Do relro
magic on __stack_prot only if [SHARED]. Skip mprotect if __stack_prot
lies outside the page-rounded-down relro region.
Richard Henderson [Tue, 20 Sep 2005 05:35:42 +0000 (05:35 +0000)]
[BZ #1358] * sysdeps/unix/alpha/sysdep.h (inline_syscall1): Copy argument(s) to a temporary first. (inline_syscall2, inline_syscall3, inline_syscall4): Likewise. (inline_syscall5, inline_syscall6): Likewise.
2005-09-19 Richard Henderson <rth@redhat.com>
[BZ #1358]
* sysdeps/unix/alpha/sysdep.h (inline_syscall1): Copy argument(s)
to a temporary first.
(inline_syscall2, inline_syscall3, inline_syscall4): Likewise.
(inline_syscall5, inline_syscall6): Likewise.
* sysdeps/alpha/ldiv.S (lldiv): Add alias.
Richard Henderson [Tue, 20 Sep 2005 05:35:13 +0000 (05:35 +0000)]
* sysdeps/alpha/ldiv.S (lldiv): Add alias.
Ulrich Drepper [Sat, 17 Sep 2005 23:37:14 +0000 (23:37 +0000)]
[BZ #1010]
* sysdeps/unix/sockatmark.c (sockatmark): Use SIOCATMARK correctly.
Ulrich Drepper [Sat, 17 Sep 2005 17:31:56 +0000 (17:31 +0000)]
[BZ #1053]
* debug/xtrace.sh: Add missing escape character in -? match.
Patch by Peter Breitenlohner <peb@mppmu.mpg.de>.
Ulrich Drepper [Sat, 17 Sep 2005 17:24:20 +0000 (17:24 +0000)]
[BZ #1051]
2005-09-17 Ulrich Drepper <drepper@redhat.com>
[BZ #1051]
* wctype/wctype.h: Remove stray __END_NAMESPACE_C99.
* stdlib/stdlib.h: Use __END_NAMESPACE_STD instead of
__END_NAMESPACE_C99 in one place.
* scripts/begin-end-check.pl: New file.
Patch by Ralph Loader <suckfish@ihug.co.nz>.
* Makefile: Add rules to run scripts/begin-end-check.pl.
Andreas Jaeger [Sat, 17 Sep 2005 17:19:31 +0000 (17:19 +0000)]
* timezone/zdump.c: Include ctype.h.
2005-09-17 Andreas Jaeger <aj@suse.de>
* timezone/zdump.c: Include ctype.h.
Ulrich Drepper [Sat, 17 Sep 2005 17:15:50 +0000 (17:15 +0000)]
Add rules to run scripts/begin-end-check.pl.
Ulrich Drepper [Sat, 17 Sep 2005 15:42:47 +0000 (15:42 +0000)]
Use __END_NAMESPACE_STD instead of __END_NAMESPACE_C99 in one place.
Andreas Jaeger [Fri, 16 Sep 2005 13:12:49 +0000 (13:12 +0000)]
[BZ #1047]
* sysdeps/unix/sysv/linux/mips/getpagesize.c: New file.
2005-09-16 Andreas Jaeger <aj@suse.de>
[BZ #1047]
* sysdeps/unix/sysv/linux/mips/getpagesize.c: New file.
Andreas Jaeger [Fri, 16 Sep 2005 12:20:49 +0000 (12:20 +0000)]
[BZ #933]
2005-09-16 Maciej W. Rozycki <macro@linux-mips.org>
[BZ #933]
* sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
the syscall immediately before invocation.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
* sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
macros to handle GP.
* sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
Likewise. Update inaccurate comments.
2005-09-16 Maciej W. Rozycki <macro@linux-mips.org>
[BZ #933]
* sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
the syscall immediately before invocation.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
* sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
macros to handle GP.
* sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
Likewise. Update inaccurate comments.
Ulrich Drepper [Tue, 13 Sep 2005 18:45:58 +0000 (18:45 +0000)]
* sysdeps/posix/spawni.c (__spawni): Automatically recognize some
more cases when we can use vfork.
Ulrich Drepper [Tue, 13 Sep 2005 18:41:48 +0000 (18:41 +0000)]
(__spawni): Automatically recognize some more cases when we can use vfork.
Roland McGrath [Tue, 13 Sep 2005 17:46:15 +0000 (17:46 +0000)]
[BZ #1261]
2005-08-29 Thomas Schwinge <schwinge@nic-nac-project.de>
[BZ #1261]
* manual/memory.texi (Hooks for Malloc): Correct prototype of
my_init_hook and definition of my_free_hook.
Roland McGrath [Mon, 12 Sep 2005 19:56:29 +0000 (19:56 +0000)]
[BZ #1331]
2005-09-12 Roland McGrath <roland@redhat.com>
[BZ #1331]
* malloc/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
macro argument.
Reported by Matej Vela <vela@debian.org>.
Roland McGrath [Mon, 12 Sep 2005 19:56:23 +0000 (19:56 +0000)]
[BZ #1331]
2005-09-12 Roland McGrath <roland@redhat.com>
[BZ #1331]
* malloc/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
macro argument.
Reported by Matej Vela <vela@debian.org>.
Ulrich Drepper [Mon, 12 Sep 2005 14:02:35 +0000 (14:02 +0000)]
* malloc/malloc.c (struct malloc_chunk): Fix comment typo.
(public_cALLOc): For mmapped chunks and perturb_byte != 0,
don't clear SIZE_SZ bytes more than should be cleared.
Ulrich Drepper [Sat, 10 Sep 2005 03:20:33 +0000 (03:20 +0000)]
* inet/getnetgrent_r.c: Include assert.
(setup): Remove FUNC_NAME and ALL arguments, assume they are always
"setnetgrent" and 1.
(endnetgrent_hook): New function.
(internal_endnetgrent): Use it.
(__internal_setnetgrent_reuse): Use it. Adjust setup caller.
If status is NSS_STATUS_SUCCESS, yet action is continue, call
endnetgrent hook.
(internal_getnetgrent_r): Use __nss_lookup_function rather than
setup. Recompute getfct pointer after successful
__internal_setnetgrent_reuse. Don't use __nss_next.
(innetgr): Use __nss_lookup_function instead of __nss_lookup.
Adjust setup caller.
* nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Always clear
data_size and cursor. Add libnss_files_hidden_proto and
libnss_files_hidden_def.
(_nss_files_setnetgrent): Call _nss_files_endnetgrent on failure.
* nis/nss_nis/nis-netgrp.c (internal_endnetgrent): Always clear
data_size and cursor.
(_nss_nis_setnetgrent): Don't call internal_endnetgrent.
(_nss_nis_getnetgrent_r): Remove result->cursor == NULL handling.
* nis/nss_nisplus/nisplus-netgrp.c (internal_endnetgrent): Always clear
data_size and position.
(_nss_nisplus_setnetgrent): Don't call internal_endnetgrent.
2005-09-09 Ulrich Drepper <drepper@redhat.com>
* nss/getent.c (netgroup_keys): Call endnetgrent.
(main): Call mtrace.
* nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): We don't
need locking for the stream. Use feof_unlocked.
2005-09-09 Jakub Jelinek <jakub@redhat.com>
Ulrich Drepper [Fri, 9 Sep 2005 16:58:19 +0000 (16:58 +0000)]
[BZ #1318]
2005-09-09 Jakub Jelinek <jakub@redhat.com>
[BZ #1318]
* locale/loadarchive.c (_nl_load_locale_from_archive): Free
normalized_codeset even if p was already normalized.
Reported by Jaroslav Snajdr <jsnajdr@kerio.com>.
Ulrich Drepper [Fri, 9 Sep 2005 16:56:52 +0000 (16:56 +0000)]
(_nl_load_locale_from_archive): Free normalized_codeset even if p was already normalized.
Roland McGrath [Thu, 8 Sep 2005 22:37:21 +0000 (22:37 +0000)]
* sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Decode DSOCAPS
properly, first byte is bit number in mask. Skip disabled caps.
Roland McGrath [Thu, 8 Sep 2005 22:36:54 +0000 (22:36 +0000)]
2005-09-08 Roland McGrath <roland@redhat.com>
* sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Decode DSOCAPS
properly, first byte is bit number in mask. Skip disabled caps.
Ulrich Drepper [Thu, 8 Sep 2005 17:41:56 +0000 (17:41 +0000)]
* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/unix/sysv/linux/ia64/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/unix/sysv/linux/sparc/lowlevellock.h (FUTEX_WAKE_OP,
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.
* sysdeps/pthread/pthread_cond_signal.c (__pthread_cond_signal): Use
lll_futex_wake_unlock.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(__pthread_cond_signal): Use FUTEX_WAKE_OP.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(__pthread_cond_signal): Use FUTEX_WAKE_OP.
Ulrich Drepper [Thu, 8 Sep 2005 17:39:07 +0000 (17:39 +0000)]
(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define. (lll_futex_wake_unlock): Define.
Roland McGrath [Thu, 8 Sep 2005 08:09:16 +0000 (08:09 +0000)]
[BZ #1033, BZ #1061]
2005-07-11 Derek R. Price <derek@ximbiot.com>
[BZ #1061]
* sysdeps/generic/glob.c (glob): Only a 0 return from
getlogin_r means success, according to POSIX 1003.2.
2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
[BZ #1033]
* time/mktime.c: Import from gnulib.
The following macros are now consistent with other gnulib code.
This does not change mktime's behavior.
(TYPE_IS_INTEGER): New macro.
(time_t_is_integer): Use it.
(TYPE_TWOS_COMPLEMENT): New macro.
(twos_complement_arithmetic): Use it.
(TYPE_ONES_COMPLEMENT): New macro.
(TYPE_MINIMUM, TYPE_MAXIMUM): Now supports signed-magnitude.
mktime doesn't use this, but the code now matches other gnulib code.
(ranged_convert): Pacify GCC 4.0 in a different way, which
generates a few bytes less code.
(ranged_convert, __mktime_internal): When calling a function via a
pointer P, use P () rather than (*P) (), as we now assume C89 or
better.
Roland McGrath [Thu, 8 Sep 2005 08:09:03 +0000 (08:09 +0000)]
[BZ #1061]
2005-07-11 Derek R. Price <derek@ximbiot.com>
[BZ #1061]
* sysdeps/generic/glob.c (glob): Only a 0 return from
getlogin_r means success, according to POSIX 1003.2.
Ulrich Drepper [Wed, 7 Sep 2005 19:55:12 +0000 (19:55 +0000)]
* timezone/test-tz.c: Update to match tzdata2005m.
* timezone/tst-timezone.c: Likewise.
Ulrich Drepper [Wed, 7 Sep 2005 16:15:23 +0000 (16:15 +0000)]
(update_cur_sifted_state): Likewise.
(re_search_internal): Likewise.
(prune_impossible_nodes): Likewise.
(acquire_init_state_context): Likewise.
(proceed_next_node): Likewise.
(set_regs): Likewise.
(free_fail_stack_return): Likewise.
(check_subexp_limits): Likewise.
(sub_epsilon_src_nodes): Likewise.
(add_epsilon_src_nodes): Likewise.
(merge_state_array): Likewise.
(update_regs): Likewise.
(build_trtable): Likewise.
(sift_states_backward): Mark MCTX parameter as const.
(build_sifted_states): Likewise.
(update_cur_sifted_state): Likewise.
(sift_states_mkref): Likewise.
(check_dst_limits_calc_pos_1): Likewise.
* posix/regex_internal.h (re_match_context_t): Make dfa a const
pointer.
Ulrich Drepper [Wed, 7 Sep 2005 15:26:18 +0000 (15:26 +0000)]
(transit_state_bkref): Make DFA a const pointer.
(get_subexp): Likewise.
(check_arrival): Likewise.
(check_arrival_expand_ecl): Mark DFA parameter as const.
(check_arrival_expand_ecl_sub): Likewise.
(check_arrival_expand_ecl): Mark eclosure as const.
Ulrich Drepper [Wed, 7 Sep 2005 07:16:24 +0000 (07:16 +0000)]
* posix/regexec.c (find_recover_state): Remove unnecessary
initialization.
Ulrich Drepper [Wed, 7 Sep 2005 07:03:41 +0000 (07:03 +0000)]
* timezone/africa: Update from tzdata2005m.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/backward: Likewise.
* timezone/europe: Likewise.
* timezone/northamerica: Likewise.
* timezone/southamerica: Likewise.
* timezone/zone.tab: Likewise.
* timezone/zdump.c: Update from tzcode2005m.
Ulrich Drepper [Wed, 7 Sep 2005 05:41:42 +0000 (05:41 +0000)]
* posix/regexec.c (merge_state_with_log): Define dfa as const pointer.
(transit_state_sb): Likewise.
(transit_state_mb): Likewise.
(sift_states_iter_mb): Likewise.
(check_arrival_add_next_nodes): Likewise.
(check_node_accept_bytes): Change first parameter to pointer-to-const.
[_LIBC] (re_search_2_stub): Use mempcpy.
Ulrich Drepper [Wed, 7 Sep 2005 01:15:33 +0000 (01:15 +0000)]
* posix/regex_internal.c (re_string_reconstruct): Avoid calling
mbrtowc for very simple UTF-8 case.
2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
* posix/regex_internal.c (build_wcs_upper_buffer): Fix portability
bugs in int versus size_t comparisons.
2005-09-06 Ulrich Drepper <drepper@redhat.com>
* posix/regex_internal.c (re_acquire_state): Make DFA pointer arg
a pointer-to-const.
(re_acquire_state_context): Likewise.
* posix/regex_internal.h: Adjust prototypes.
2005-08-31 Jim Meyering <jim@meyering.net>
* posix/regcomp.c (search_duplicated_node): Make first pointer arg
a pointer-to-const.
* posix/regex_internal.c (create_ci_newstate, create_cd_newstate,
register_state): Likewise.
* posix/regexec.c (search_cur_bkref_entry, check_dst_limits):
(check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
(group_nodes_into_DFAstates): Likewise.
* posix/regexec.c (re_search_internal): Simplify update of
rm_so and rm_eo by replacing "if (A == B) A += C - B;"
with the equivalent of "if (A == B) A = C;".
2005-09-06 Ulrich Drepper <drepper@redhat.com>
* posix/regcomp.c (re_compile_internal): Change third parameter type
to size_t.
(init_dfa): Likewise. Make sure that arithmetic on pat_len doesn't
overflow.
* posix/regex_internal.h (struct re_dfa_t): Change type of nodes_alloc
and nodes_len to size_t.
* posix/regex_internal.c (re_dfa_add_node): Use size_t as type for
new_nodes_alloc. Check for overflow.
2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
* posix/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
(optimize_subexps, lower_subexp):
Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
since the signed shift might overflow. Use 1u<<31 instead.
* posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
Likewise.
* posix/regexec.c (check_dst_limits_calc_pos_1): Likewise.
(check_subexp_matching_top): Likewise.
* posix/regcomp.c (optimize_subexps, lower_subexp):
Use CHAR_BIT rather than 8, for clarity.
* posix/regexec.c (check_dst_limits_calc_pos_1):
(check_subexp_matching_top): Likewise.
* posix/regcomp.c (init_dfa): Make table_size unsigned, so that we
don't have to worry about portability issues when shifting it left.
Remove no-longer-needed test for table_size > 0.
* posix/regcomp.c (parse_sub_exp): Do not shift more bits than there
are in a word, as the resulting behavior is undefined.
* posix/regexec.c (check_dst_limits_calc_pos_1): Likewise;
in one case, a <= should have been an <, and in another case the
whole test was missing.
* posix/regex_internal.h (BYTE_BITS): Remove. All uses changed to
the standard name CHAR_BIT.
Ulrich Drepper [Tue, 6 Sep 2005 21:15:13 +0000 (21:15 +0000)]
* posix/regex_internal.h (re_sub_match_top_t): Remove unused member
next_last_offset.
(struct re_dfa_t): Remove unused member states_alloc.
* posix/regcomp.c (init_dfa): Don't initialize unused members.
2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
* posix/regexec.c (set_regs): Don't alloca with an unbounded size.
alloca modernization/simplification for regex.
* posix/regex.c: Remove portability cruft for alloca. This no longer
needs to be at the start of the file, and can be moved into
regex_internal.h and simplified.
* posix/regex_internal.h: Include <alloca.h>.
(__libc_use_alloca) [!defined _LIBC]: New macro.
* posix/regexec.c (build_trtable): Remove "#ifdef _LIBC",
since the code now works outside glibc.
2005-09-06 Ulrich Drepper <drepper@redhat.com>
* include/regex.h: Remove use of _RE_ARGS.
2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
* posix/regexec.c (find_recover_state): Change "err" to "*err".
2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
* posix/regcomp.c (regerror): Pointer args are 'restrict',
as per POSIX.
* posix/regex.h (regerror): Likewise.
* manual/pattern.texi (POSIX Regexp Compilation): Likewise.
Similarly for regcomp and regexec. Also, first 2 args of regexec
and 2nd arg of regerror are const.
* posix/regex.c: Do not include <sys/types.h>, as POSIX no longer
requires this. (The code never needed it.)
2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
* posix/regexec.c (sift_states_bkref): re_node_set_insert returns
int, not reg_errcode_t.
* posix/regex_internal.c (calc_state_hash): Put 'inline' before type,
since some broken compilers warn about it otherwise.
* posix/regcomp.c (create_initial_state): Remove duplicate decl.
2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
* posix/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
C89 or better. All uses removed.
2005-09-06 Ulrich Drepper <drepper@redhat.com>
* posix/regex.c: Prevent using C++ compilers.
2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
* posix/regcomp.c (duplicate_node): Return new index, not an error
code, and let the caller return REG_ESPACE if out of space. This
removes an uninitialied-variable warning with GCC 4.0.1, and also
avoids taking the address of a local variable. All callers
changed.
2005-09-06 Ulrich Drepper <drepper@redhat.com>
* include/time.h (__strptime_internal): Rename parameter to avoid
bogus compiler warning.
2005-08-19 Jim Meyering <jim@meyering.net>
* posix/regexec.c (proceed_next_node): Redo local variables to
avoid GCC shadowing warnings.
2005-09-06 Ulrich Drepper <drepper@redhat.com>
* posix/regex_internal.c (re_acquire_state): Minor code rearrangement.
(re_acquire_state_context): Likewise.
2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
* posix/regex_internal.c (re_string_realloc_buffers):
(re_node_set_insert, re_node_set_insert_last, re_dfa_add_node):
Rename local variables to avoid GCC shadowing warnings.
2005-07-08 Eric Blake <ebb9@byu.net>
Paul Eggert <eggert@cs.ucla.edu>
* posix/regcomp.c (init_dfa): Store __btowc value in wint_t, not
wchar_t. Remove now-unnecessary cast.
(build_range_exp): Likewise.
Ulrich Drepper [Tue, 6 Sep 2005 05:38:04 +0000 (05:38 +0000)]
* sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Remove the
exponent bias from the increment value for scaling by 2^60.
Ulrich Drepper [Tue, 6 Sep 2005 01:20:31 +0000 (01:20 +0000)]
.
Ulrich Drepper [Tue, 6 Sep 2005 01:18:13 +0000 (01:18 +0000)]
* configure.in: Compile source test file with -fPIC for -shared.
2005-09-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
Fix typo in register name.
Ulrich Drepper [Mon, 5 Sep 2005 05:01:36 +0000 (05:01 +0000)]
* iconv/skeleton.c: Eliminate DEFINE_DIRECTION_OBJECTS macro use,
it wasn't used. Remove use of from_object and to_object variable,
replace with some constants. Adjust users.
Ulrich Drepper [Sun, 4 Sep 2005 20:49:31 +0000 (20:49 +0000)]
* sysdeps/i386/bits/string.h: Removed.
Ulrich Drepper [Sun, 4 Sep 2005 20:10:35 +0000 (20:10 +0000)]
* stdio-common/Makefile (tests): Add tst-put-error.
* stdio-common/tst-put-error.c: New file.
* libio/fileops.c (_IO_new_file_xsputn): If overflow fails and no more
data would have to be written signal error.
* libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
* libio/fileops.c (_IO_new_file_overflow): Use NULL not 0.
Ulrich Drepper [Fri, 2 Sep 2005 07:34:55 +0000 (07:34 +0000)]
* elf/dl-load.c (_dl_map_object_from_fd): No need to change
protection of memory used for the last segment.
Ulrich Drepper [Fri, 2 Sep 2005 07:33:58 +0000 (07:33 +0000)]
(_dl_map_object_from_fd): No need to change protection of memory used for the last segment.
Roland McGrath [Fri, 2 Sep 2005 05:07:56 +0000 (05:07 +0000)]
* sysdeps/mach/hurd/nfs/nfs.h: Move to ...
* sysdeps/generic/nfs/nfs.h: ... here.
Richard Sandiford <richard@codesourcery.com>
Roland McGrath [Fri, 2 Sep 2005 05:07:50 +0000 (05:07 +0000)]
2005-08-22 Robert Millan <robertmh@gnu.org>
* sysdeps/mach/hurd/nfs/nfs.h: Move to ...
* sysdeps/generic/nfs/nfs.h: ... here.
Ulrich Drepper [Thu, 1 Sep 2005 15:16:13 +0000 (15:16 +0000)]
* libio/stdio.h: Remove __wur from ungetc, sscanf, and vsscanf.
Add __wur to feof{,_unlocked}, ferror{,_unlocked},
fileno{,_unlocked}, and popen.
Ulrich Drepper [Tue, 30 Aug 2005 22:48:53 +0000 (22:48 +0000)]
* sysdeps/ieee754/flt-32/e_hypotf.c [!__STDC__]: Fix function name.
2005-08-01 Bob Wilson <bob.wilson@acm.org>
Richard Sandiford <richard@codesourcery.com>
* sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Add missing
exponent bias to the value for 2^126.
2005-08-30 Jakub Jelinek <jakub@redhat.com>
Alan Modra <amodra@bigpond.net.au>
* elf/dl-addr.c (_dl_addr): Use DL_ADDR_SYM_MATCH macro.
* sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): Define.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h: New file.
Ulrich Drepper [Wed, 24 Aug 2005 06:37:27 +0000 (06:37 +0000)]
* nscd/nscd.c (main): Use error while process isn't running in the
background, not dbg_log.
* nscd/nscd_conf.c (nscd_parse_file): Likewise.
Mark messages with _(). Unify testing for database name.
* sysdeps/unix/sysv/linux/Versions: Export inotify_* syscalls.
Ulrich Drepper [Wed, 24 Aug 2005 01:12:37 +0000 (01:12 +0000)]
* sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
Use __sigfillset. Document that sigfillset does the right thing wrt
to SIGSETXID.
Ulrich Drepper [Tue, 23 Aug 2005 23:21:53 +0000 (23:21 +0000)]
* nscd/connection.c (DEFAULT_DATASIZE_PER_BUCKET): Move to nscd.h.
(dbs): Initialize max_db_size fields.
(nscd_init): When mapping the database, use max_db_size as the
mapping size even if it is bigger than the file size.
* nscd/mem.c (mempool_alloc): When resizing the file make sure the
limit in max_db_size is not exceeded. Don't use mremap, just
posix_fallocate is enough (according to Linus). Use posix_fallocate
correctly.
* nscd/nscd.conf: Add max-db-size parameters.
* nscd/nscd.h (struct database_dyn): Add max_db_size field.
Define DEFAULT_MAX_DB_SIZE and DEFAULT_DATASIZE_PER_BUCKET.
Temporarily define TEMP_FAILURE_RETRY_VAL here.
* nscd/nscd_conf.c (nscd_parse_file): Parse max-db-size parameter
and add sanity checks for it.
* nscd/aicache.c (addhstaiX): Use send with MSG_NOSIGNAL not write to
send reply.
* nscd/connection.c (writeall): Likewise.
(handle_request): Likewise.
* nscd/grpcache.c (cache_addgr): Likewise.
* nscd/hstcache.c (cache_addhst): Likewise.
* nscd/initgrcache.c (addinitgroupsX): Likewise.
* nscd/nscd.c (parse_opt): Likewise.
* nscd/nscd_stat.c (send_stats): Likewise.
(receive_print_stats): Likewise.
* nscd/pwdcache.c (cache_addpw): Likewise.
Ulrich Drepper [Tue, 23 Aug 2005 14:33:08 +0000 (14:33 +0000)]
* sysdeps/unix/sysv/linux/Versions: Export Inotify_* syscalls.
Ulrich Drepper [Mon, 22 Aug 2005 15:13:39 +0000 (15:13 +0000)]
* stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t).
Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine.
* wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise.
* debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply
len by sizeof (wchar_t).
* debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise.
* debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise.
Fix type of SRC argument. Pass &SRC rather than SRC to
__mbsrtowcs.
* debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC
to __wcsrtombs.
* debug/tst-chk1.c: Include assert.h.
(do_test): Change enough array from VLA into a fixed size array.
Assert that MB_CUR_MAX is <= sizeof (enough). Use FAIL () macro
instead of print error details. Add several new tests.
Kill some unused variable warnings.
Ulrich Drepper [Mon, 22 Aug 2005 04:04:55 +0000 (04:04 +0000)]
* resolv/res_send.c (Aerror): Fix printing IP address.
Ulrich Drepper [Sun, 21 Aug 2005 23:08:30 +0000 (23:08 +0000)]
* resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.
Ulrich Drepper [Sat, 20 Aug 2005 01:22:05 +0000 (01:22 +0000)]
* sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.
2005-08-17 Robert Love <rml@novell.com>
* sysdeps/unix/sysv/linux/sys/inotify.h: Add IN_MOVE_SELF event.
2005-08-19 Bruno Haible <bruno@clisp.org>
* intl/localealias.c (read_alias_file): In case of failure, close the
file descriptor and sort the array before returning.
2005-08-19 Ulrich Drepper <drepper@redhat.com>
* malloc/Makefile: Link libmemusage.so with ld.so.
* malloc/memusage.c: Use atomic operations for all counter and size
computations. Handle thread stacks.
* sysdeps/generic/memusage.h: Define memusage_cntr_t and
memusage_size_t.
* sysdeps/i386/i686/memusage.h: New file.
* include/atomic.h: Define atomic_max and atomic_min.
* debug/tst-chk1.c: Add tests for mbstowcs and wcstombs.
Ulrich Drepper [Sat, 20 Aug 2005 01:02:04 +0000 (01:02 +0000)]
Add tests for mbstowcs and wcstombs.
Roland McGrath [Fri, 19 Aug 2005 19:07:25 +0000 (19:07 +0000)]
[BZ #1075, BZ #1112]
bz tags
[BZ #1075]
[BZ #1112]
Roland McGrath [Thu, 18 Aug 2005 06:42:31 +0000 (06:42 +0000)]
[BZ #1207]
2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
[BZ #1207]
* posix/regex.h: Remove spurious space-before-tab. From gnulib.
Roland McGrath [Thu, 18 Aug 2005 06:42:25 +0000 (06:42 +0000)]
[BZ #1207]
2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
[BZ #1207]
* posix/regex.h: Remove spurious space-before-tab. From gnulib.
Ulrich Drepper [Wed, 17 Aug 2005 06:17:34 +0000 (06:17 +0000)]
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
sys/inotify.h.
* sysdeps/unix/sysv/linux/sys/inotify.h: New file.
* sysdeps/unix/sysv/linux/syscalls.list: Add inotify syscalls.
Ulrich Drepper [Tue, 16 Aug 2005 22:47:26 +0000 (22:47 +0000)]
* nscd/cache.c (prune_cache): Add more debug output. Only for
debug level 3 and higher and very verbose.
Ulrich Drepper [Tue, 16 Aug 2005 18:10:03 +0000 (18:10 +0000)]
* nscd/cache.c (prune_cache): Use stat64 not stat.
* nscd/connections.c (nscd_init): Likewise.
Ulrich Drepper [Tue, 16 Aug 2005 16:05:37 +0000 (16:05 +0000)]
[BZ #1188]
2005-08-10 Sergio Gelato <Sergio.Gelato@astro.su.se>
[BZ #1188]
* nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
from (len > 0) to (len >= 0).
2005-08-16 Ulrich Drepper <drepper@redhat.com>
* nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
Reported by Thomas Schwinge.
2005-08-15 Jakub Jelinek <jakub@redhat.com>
* nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.
2005-08-16 Ulrich Drepper <drepper@redhat.com>
* nss/getent.c (more_help): Use open_memstream instead of handling
memory allocation ourselves.
2005-08-16 Jay Fenlason <fenlason@redhat.com>
* nss/getent.c (parse_options): change the -s option to support
{database}:{search} to override /etc/resolv.conf for only the
specified database.
Ulrich Drepper [Tue, 9 Aug 2005 06:16:47 +0000 (06:16 +0000)]
* nscd/connections.c (main_loop_epoll): Pass NULL as event
argument for epoll_ctl(EPOLL_CTL_DEL) calls.
Ulrich Drepper [Tue, 9 Aug 2005 05:46:16 +0000 (05:46 +0000)]
* nscd/nscd_stat.c (receive_print_stats): Really print values of
thread number, paranoia, and restart interval the server is using.
Ulrich Drepper [Tue, 9 Aug 2005 01:27:20 +0000 (01:27 +0000)]
* argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
* include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
* debug/vfprintf_chk.c: Add libc_hidden_def.
Ulrich Drepper [Tue, 9 Aug 2005 01:24:11 +0000 (01:24 +0000)]
Add libc_hidden_def.
Roland McGrath [Tue, 9 Aug 2005 00:58:13 +0000 (00:58 +0000)]
* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
(__argp_failure): Likewise.
Roland McGrath [Tue, 9 Aug 2005 00:58:08 +0000 (00:58 +0000)]
2005-08-08 Roland McGrath <roland@redhat.com>
* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
(__argp_failure): Likewise.
Ulrich Drepper [Mon, 8 Aug 2005 21:04:02 +0000 (21:04 +0000)]
* nscd/cache.c (cache_add): Commit hash table and header to disk.
Ulrich Drepper [Mon, 8 Aug 2005 20:58:35 +0000 (20:58 +0000)]
(cache_add): Comment hash table and header to disk.
Roland McGrath [Mon, 8 Aug 2005 20:53:35 +0000 (20:53 +0000)]
* mach/shortcut.awk: Ignore `weak_alias' lines.
Reported by Alfred M. Szmidt <ams@gnu.org>.
Reported by Alfred M. Szmidt <ams@gnu.org>.
Roland McGrath [Mon, 8 Aug 2005 20:52:23 +0000 (20:52 +0000)]
2005-08-05 Roland McGrath <roland@redhat.com>
* mach/shortcut.awk: Ignore `weak_alias' lines.
Reported by Alfred M. Szmidt <ams@gnu.org>.
Ulrich Drepper [Mon, 8 Aug 2005 20:42:33 +0000 (20:42 +0000)]
* nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.
* nscd/connections.c (nscd_init): Likewise.
Ulrich Drepper [Mon, 8 Aug 2005 20:06:29 +0000 (20:06 +0000)]
* stdio-common/fxprintf.c: Include libioP.h.
Ulrich Drepper [Mon, 8 Aug 2005 19:04:11 +0000 (19:04 +0000)]
* posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,
getdomainname): Add __NTH.
* stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs):
Likewise.
(realpath): Likewise. Use __const instead of const. Add __restrict
keywords.
* socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf.
* wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset,
wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb,
mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH.
* string/bits/string3.h (__memset_ichk): Likewise.
(__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk,
__stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk,
__strncat_ichk): Likewise. Use __const instead of const.
(__stpncpy_chk): Use __const instead of const.
(__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT.
2005-08-08 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek <jakub@redhat.com>
* nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move
definitions to...
* nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here.
* nscd/connections.c (usekey): New enum.
(check_use, verify_persistent_db): New functions.
(nscd_init): If persistent database is corrupted, unlink it and
recreate rather than falling back to non-persistent database.
Call verify_persistent_db. Avoid overflows in total computation.
2005-08-08 Ulrich Drepper <drepper@redhat.com>
* iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code
better readable. Avoid passing var to loop function, it's not
necessary at all.
Ulrich Drepper [Sun, 7 Aug 2005 07:55:10 +0000 (07:55 +0000)]
* elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO
definition.
Ulrich Drepper [Sat, 6 Aug 2005 06:02:23 +0000 (06:02 +0000)]
* timezone/checktab.awk: Update from tzcode2005k.
* timezone/private.h: Likewise.
* timezone/scheck.c: Likewise.
* timezone/tzselect.ksh: Likewise.
* timezone/zdump.c: Likewise.
* timezone/zic.c: Likewise.
* timezone/africa: Update from tzdata2005k.
* timezone/antarctica: Likewise.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/europe: Likewise.
* timezone/iso3166.tab: Likewise.
* timezone/leapseconds: Likewise.
* timezone/northamerica: Likewise.
* timezone/solar87: Likewise.
* timezone/solar88: Likewise.
* timezone/solar89: Likewise.
* timezone/southamerica: Likewise.
* timezone/zone.tab: Likewise.
Ulrich Drepper [Sat, 6 Aug 2005 05:40:57 +0000 (05:40 +0000)]
Update from tzcode2005k.
Roland McGrath [Fri, 5 Aug 2005 21:16:35 +0000 (21:16 +0000)]
* sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
Roland McGrath [Thu, 4 Aug 2005 21:35:51 +0000 (21:35 +0000)]
[BZ #1137]
2005-08-03 Dwayne Grant McConnell <dgm69@us.ibm.com>
* sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
Use +=, not =, to append. Remove duplicate flags.
* sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
Likewise. Fix comments.
[BZ #1137]
Roland McGrath [Wed, 3 Aug 2005 07:44:12 +0000 (07:44 +0000)]
[BZ #413, BZ #448]
bz tag
[BZ #448]
[BZ #413]