platform/upstream/glibc.git
19 years ago* elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
Ulrich Drepper [Sat, 19 Mar 2005 07:51:35 +0000 (07:51 +0000)]
* elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,

it has been incremented before.

19 years ago* elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
Ulrich Drepper [Sat, 19 Mar 2005 07:22:23 +0000 (07:22 +0000)]
* elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate

function _dl_sort_fini.
(_dl_sort_fini): New function.
* sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
* elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
destructors to call them in the right order.

19 years ago* sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
Ulrich Drepper [Sat, 19 Mar 2005 02:49:03 +0000 (02:49 +0000)]
* sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.

(La_ppc64_retval): Correct size of lrc_fp.
* sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
Fix up ABI problems and complete function.

19 years ago[BZ #779]
Ulrich Drepper [Sat, 19 Mar 2005 00:28:51 +0000 (00:28 +0000)]
[BZ #779]

2005-03-10  Jakub Jelinek  <jakub@redhat.com>
* math/test-misc.c (main): Add some more tests.

2005-03-17  Jakub Jelinek  <jakub@redhat.com>

* posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
__wcrtomb.  Check return values of other __wcrtomb calls.
* posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
Change mbclen type to size_t.
(build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
Handle mb chars whose upper case doesn't have multibyte representation
in locale's charset.

2005-03-15  Jakub Jelinek  <jakub@redhat.com>

* malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
#ifndef _LIBC.

[BZ #779]
* malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
initialized.

2005-03-10  Jakub Jelinek  <jakub@redhat.com>

* misc/sys/cdefs.h (__always_inline): Define.
* posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
Use __always_inline instead of __inline.
* socket/bits/socket2.h (recv, recvfrom): Likewise.
* libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
* string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
__memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
__strcat_ichk, __strncat_ichk): Use __always_inline instead of
__inline__ __attribute__ ((__always_inline__)).

2005-03-09  Jakub Jelinek  <jakub@redhat.com>

* debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
(do_test): Add new tests for recv, recvfrom, getcwd, getwd and
readlink.  Add some more tests for read, pread, pread64, fgets and
fgets_unlocked.

* posix/bits/unistd.h (read, pread, pread64, readlink,
getcwd, getwd): Change macros into extern inline functions.
(__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
__getcwd_alias, __getwd_alias): New prototypes.
* socket/bits/socket2.h (recv, recvfrom): Change macros into
extern inline functions.
(__recv_alias, __recvfrom_alias): New prototypes.
* libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
into extern inline functions.
(__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.

* debug/pread_chk.c (__pread_chk): Fix order of arguments passed
to __pread.
* debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
to __pread64.

19 years ago(read, pread, pread64, readlink, getcwd, getwd): Change macros into extern inline...
Ulrich Drepper [Sat, 19 Mar 2005 00:06:22 +0000 (00:06 +0000)]
(read, pread, pread64, readlink, getcwd, getwd): Change macros into extern inline functions. (__read_alias, __pread_alias, __pread64_alias, __readlink_alias, __getcwd_alias, __getwd_alias): New prototypes.

19 years ago* configure.in: Use %function instead of @function.
Roland McGrath [Fri, 18 Mar 2005 22:23:24 +0000 (22:23 +0000)]
* configure.in: Use %function instead of @function.

* configure: Regenerated.

19 years ago2005-03-18 Daniel Jacobowitz <dan@codesourcery.com>
Roland McGrath [Fri, 18 Mar 2005 22:23:14 +0000 (22:23 +0000)]
2005-03-18  Daniel Jacobowitz  <dan@codesourcery.com>

* configure.in: Use %function instead of @function.
* configure: Regenerated.

19 years ago* locales/pa_IN (am_pm): Fix character names.
Ulrich Drepper [Fri, 18 Mar 2005 19:19:37 +0000 (19:19 +0000)]
* locales/pa_IN (am_pm): Fix character names.

2005-03-18  Ulrich Drepper  <drepper@redhat.com>

* SUPPORTED (SUPPORTED-LOCALES): Add af_ZA.UTF-8.

19 years ago* include/link.h (struct link_map): Remove l_opencount. Add l_removed.
Ulrich Drepper [Fri, 18 Mar 2005 11:11:42 +0000 (11:11 +0000)]
* include/link.h (struct link_map): Remove l_opencount.  Add l_removed.

Change type of l_idx to int.
* elf/dl-close.c: Basically rewrite.  Do not use l_opencount to
determine whether a DSO has to be unloaded.  Instead compute this
in this function.
* elf/dl-deps.c: No need to manipulate l_opencount anymore.
* elf/dl-lookup.c: Likewise.
* elf/rtld.c: Likewise
* elf/dl-open.c: Likewise.  Use l_init_called to determine whether
object was just loaded.
* elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
* elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
is about to be unloaded as a match.
(_dl_map_object): Likewise.
* elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
to be unloaded.
* elf/circleload1.c: Don't use l_opencount anymore.
* elf/neededtest.c: Likewise.
* elf/neededtest2.c: Likewise.
* elf/neededtest3.c: Likewise.
* elf/neededtest4.c: Likewise.
* elf/unload.c: Likewise.
* elf/unload2.c: Likewise.
* elf/loadtest.c: Likewise.

* elf/rtld.c: Preloading errors are now never fatal.

2005-03-08  Jakub Jelinek  <jakub@redhat.com>

* elf/Makefile: Add rules to build and run unload5 test.
* elf/unload5.c: New file.

2005-03-08  Jakub Jelinek  <jakub@redhat.com>

* elf/Makefile: Add rules to build and run unload4 test.
* elf/unload4.c: New file.
* elf/unload4mod1.c: New file.
* elf/unload4mod2.c: New file.
* elf/unload4mod3.c: New file.
* elf/unload4mod4.c: New file.

19 years agoTest cases for correct unloading.
Ulrich Drepper [Fri, 18 Mar 2005 10:54:53 +0000 (10:54 +0000)]
Test cases for correct unloading.

19 years ago* include/libc-symbols.h (__hidden_proto): Remove bogus declaration
Roland McGrath [Thu, 17 Mar 2005 21:06:39 +0000 (21:06 +0000)]
* include/libc-symbols.h (__hidden_proto): Remove bogus declaration

of internal.
(__hidden_def1, __hidden_dot_def1): Remove.
(__hidden_def2, __hidden_def3): Remove.
(__hidden_ver1): New.
(hidden_ver, hidden_def, hidden_weak): Use it.
(hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
version of the macro.

* include/wchar.h (__wcscoll): Remove.
* wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
* string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.

19 years ago* nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
Roland McGrath [Thu, 17 Mar 2005 09:43:50 +0000 (09:43 +0000)]
* nscd/aicache.c (addhstaiX): Tweak type to avoid warning.

19 years ago* elf/elf.h: Define MIPS TLS relocations.
Roland McGrath [Wed, 16 Mar 2005 23:26:12 +0000 (23:26 +0000)]
* elf/elf.h: Define MIPS TLS relocations.

19 years ago2005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
Roland McGrath [Wed, 16 Mar 2005 23:25:56 +0000 (23:25 +0000)]
2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>

* elf/elf.h: Define MIPS TLS relocations.

19 years ago* elf/circleload1.c (main): Pretty printing.
Ulrich Drepper [Wed, 16 Mar 2005 08:44:45 +0000 (08:44 +0000)]
* elf/circleload1.c (main): Pretty printing.

19 years ago(main): Pretty printing.
Ulrich Drepper [Wed, 16 Mar 2005 08:43:59 +0000 (08:43 +0000)]
(main): Pretty printing.

19 years ago* sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
Roland McGrath [Tue, 15 Mar 2005 22:57:31 +0000 (22:57 +0000)]
* sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.

Patch by Dan Kegel <dank@kegel.com>.

* elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
Add inline keyword.
* sysdeps/alpha/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
attribute.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.  Change
static inline into auto inline.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
* sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
Likewise.
* sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
Likewise.

2005-03-15  Jakub Jelinek  <jakub@redhat.com>

19 years ago[BZ #789]
Roland McGrath [Tue, 15 Mar 2005 22:31:32 +0000 (22:31 +0000)]
[BZ #789]

2005-03-15  Jakub Jelinek  <jakub@redhat.com>
[BZ #789]
* sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
Remove memory clobber.

* sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
thread-safe.  Subtract GLRO(dl_hp_timing_overhead) from Diff.

19 years ago* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
Roland McGrath [Tue, 15 Mar 2005 22:14:29 +0000 (22:14 +0000)]
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include

asm/types.h.

19 years ago* sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
Roland McGrath [Sun, 13 Mar 2005 09:56:29 +0000 (09:56 +0000)]
* sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and

MAP_NONBLOCK.
* sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
Correct MAP_GROWSDOWN value.

19 years ago* elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
Roland McGrath [Sun, 13 Mar 2005 09:09:05 +0000 (09:09 +0000)]
* elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps

version if there is one.  Only #error if macros are then undefined.
* sysdeps/generic/tls-macros.h: New file.

19 years ago* sysdeps/hppa/configure.in: Remove old Makefile leftovers.
Roland McGrath [Sun, 13 Mar 2005 03:28:56 +0000 (03:28 +0000)]
* sysdeps/hppa/configure.in: Remove old Makefile leftovers.

* sysdeps/hppa/configure: Regenerated.

19 years ago* sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
Roland McGrath [Tue, 8 Mar 2005 20:44:53 +0000 (20:44 +0000)]
* sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so

array types match exactly in C alias decls.

19 years ago2005-03-08 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 8 Mar 2005 20:44:46 +0000 (20:44 +0000)]
2005-03-08  Roland McGrath  <roland@redhat.com>

* sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
array types match exactly in C alias decls.

19 years ago* malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
Ulrich Drepper [Tue, 8 Mar 2005 00:50:21 +0000 (00:50 +0000)]
* malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call

mallopt appropriately.
* malloc/malloc.h: Define M_PERTURB.
* malloc/malloc.c (perturb_byte): New variable.
(alloc_perturb, free_perturb): New macros.
(_int_malloc): Before returning, overwrite the memory if this is
requested.
(_int_free): Overwrite freed memory if requested.
(mALLOPt): Handle M_PERTURB.
* test-skeleton.c: Add call to mallopt with M_PERTURB command.

19 years ago(ptmalloc_init): Recognize MALLOC_PERTURB_ and call mallopt appropriately.
Ulrich Drepper [Tue, 8 Mar 2005 00:44:05 +0000 (00:44 +0000)]
(ptmalloc_init): Recognize MALLOC_PERTURB_ and call mallopt appropriately.

19 years ago[BZ #777]
Roland McGrath [Mon, 7 Mar 2005 22:46:40 +0000 (22:46 +0000)]
[BZ #777]

bz tags
[BZ #777]
[BZ #777]

19 years ago* elf/dl-close.c (_dl_close): Decrement l_opencount before
Ulrich Drepper [Mon, 7 Mar 2005 08:06:09 +0000 (08:06 +0000)]
* elf/dl-close.c (_dl_close): Decrement l_opencount before

printing debug message.
* elf/dl-open.c (dl_open_worker): Always print the new opencount
in debug messages.

19 years ago* elf/dl-close.c (_dl_close): Unify debug message format.
Ulrich Drepper [Mon, 7 Mar 2005 07:57:43 +0000 (07:57 +0000)]
* elf/dl-close.c (_dl_close): Unify debug message format.

19 years ago* elf/dl-close.c (_dl_close): Print debug message just before
Ulrich Drepper [Mon, 7 Mar 2005 07:04:35 +0000 (07:04 +0000)]
* elf/dl-close.c (_dl_close): Print debug message just before

destroying a link map.

19 years ago* elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
Ulrich Drepper [Mon, 7 Mar 2005 06:50:48 +0000 (06:50 +0000)]
* elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.

* elf/dl-version.c (match_symbol): Likewise.

19 years ago* elf/dl-version.c (match_symbol): Add namespace info to debug output.
Ulrich Drepper [Mon, 7 Mar 2005 06:45:42 +0000 (06:45 +0000)]
* elf/dl-version.c (match_symbol): Add namespace info to debug output.

19 years ago* posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
Ulrich Drepper [Mon, 7 Mar 2005 00:02:03 +0000 (00:02 +0000)]
* posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.

19 years ago* debug/recv_chk.c (__recv_chk): Always fail if request could
Ulrich Drepper [Sun, 6 Mar 2005 21:25:22 +0000 (21:25 +0000)]
* debug/recv_chk.c (__recv_chk): Always fail if request could

overflow the buffer.
* debug/recvfrom_chk.c (__recvfrom_chk): Likewise.

19 years ago* socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
Ulrich Drepper [Sun, 6 Mar 2005 21:21:31 +0000 (21:21 +0000)]
* socket/bits/socket2.h (recv): Avoid calls to the _chk variant if

we know the call succeeds.
(recvfrom): Likewise.

19 years ago(recv): Avoid calls to the _chk variant if we know the call succeeds. (recvfrom)...
Ulrich Drepper [Sun, 6 Mar 2005 20:56:52 +0000 (20:56 +0000)]
(recv): Avoid calls to the _chk variant if we know the call succeeds. (recvfrom): Likewise.

19 years agotypo
Roland McGrath [Sun, 6 Mar 2005 20:10:08 +0000 (20:10 +0000)]
typo

* sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use

19 years ago* posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
Ulrich Drepper [Sun, 6 Mar 2005 07:27:56 +0000 (07:27 +0000)]
* posix/regexec.c (check_node_accept_bytes): Correct cast to avoid

warning.
* posix/regex_internal.c (re_string_reconstruct): Add cast to
avoid warning.
(build_wcs_upper_buffer): Change type of bug to plain char.
* locale/weightwc.h (findidx): Add casts to avoid warnings.
* time/mktime.c (ranged_convert): Initialize tm to make the
compiler happy.
* wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
* wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
* wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
* wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
* wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
* wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
* posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
dynamically sized array.
(build_wcs_upper_buffer): Likewise.

19 years ago* wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
Ulrich Drepper [Sun, 6 Mar 2005 04:51:37 +0000 (04:51 +0000)]
* wcsmbs/wctob.c (wctob): Make buf array of unsigned char.

* sysdeps/generic/strchrnul.c: Add cast to avoid warning.
* libio/iofwide.c: Add casts to avoid warnings.
* stdio-common/printf-prs.c (parse_printf_format): Introduce new
variable f to avoid warnings.
* sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
Fix a few casts to avoid warnings.
* iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
to avoid warning.

19 years ago* include/bits/unistd.h: New file.
Ulrich Drepper [Sun, 6 Mar 2005 00:28:34 +0000 (00:28 +0000)]
* include/bits/unistd.h: New file.

* include/bits/socket2.h: New file.

19 years ago* sunrpc/key_call.c: Remove doors support.
Ulrich Drepper [Sun, 6 Mar 2005 00:26:34 +0000 (00:26 +0000)]
* sunrpc/key_call.c: Remove doors support.

* sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
* configure.in: Remove test for doors support which never existed.
* config.make.in: Remove have_doors entry.

* configure.in: Make sure at least gcc 3.4 is used.  Undo last change.
* config.make.in: Undo last change.

* sysdeps/i386/Makefile ((CFLAGS-initfini.s): Unconditionally use
-mtune.

* sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
unconditionally to (defined RTLD_BOOTSTRAP).
* sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.

2005-03-05  Jakub Jelinek  <jakub@redhat.com>

19 years ago(ELF_MACHINE_NO_RELA): Define unconditionally to defined RTLD_BOOTSTRAP.
Ulrich Drepper [Sun, 6 Mar 2005 00:08:34 +0000 (00:08 +0000)]
(ELF_MACHINE_NO_RELA): Define unconditionally to defined RTLD_BOOTSTRAP.

19 years ago* sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
Roland McGrath [Sun, 6 Mar 2005 00:08:10 +0000 (00:08 +0000)]
* sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.

(_dl_out_of_memory): Use rtld_hidden_proto.
* elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
(_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
* elf/dl-open.c (_dl_open): Likewise.
* elf/dl-deps.c (_dl_map_object_deps): Likewise.

* sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.

* elf/dl-addr.c (_dl_addr): Add a cast.

* elf/unload3mod4.c: Declare foo.
* elf/testobj2.c: Include <stdio.h>.

* sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
value constant, and use it in the defn.
* sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
Use actual size for compat array decls.

* config.make.in (cc-mtune): New substituted variable.
* configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
done only if libc_mtune_example is defined.
* configure: Regenerated.
* sysdeps/i386/configure.in (libc_mtune_example): Set it.
* sysdeps/i386/configure: Regenerated.
* sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).

19 years ago* Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
Roland McGrath [Sat, 5 Mar 2005 19:28:17 +0000 (19:28 +0000)]
* Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of

$(inst_slibdir) in AS_NEEDED directive.

19 years ago2005-03-05 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Sat, 5 Mar 2005 19:24:32 +0000 (19:24 +0000)]
2005-03-05  Jakub Jelinek  <jakub@redhat.com>

* Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
$(inst_slibdir) in AS_NEEDED directive.

19 years ago* posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
Ulrich Drepper [Thu, 3 Mar 2005 17:08:56 +0000 (17:08 +0000)]
* posix/bits/unistd.h (pread, pread64): Don't swap function arguments.

19 years ago* elf/testobj2.c (p): New function.
Ulrich Drepper [Thu, 3 Mar 2005 16:00:35 +0000 (16:00 +0000)]
* elf/testobj2.c (p): New function.

19 years ago[BZ #776] cvs/fedora-glibc-20050303T1335
Ulrich Drepper [Thu, 3 Mar 2005 08:28:23 +0000 (08:28 +0000)]
[BZ #776]

2005-03-01  H.J. Lu  <hongjiu.lu@intel.com>
[BZ #776]
* iconv/iconvconfig.c: Fix comment for the output file.
(write_output): Clear padding in header.

2005-03-03  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
loader is closed.  Fixes unload3.
* elf/tst-global1.c: New file.
* elf/Makefile (tests): Add tst-global1.

2005-03-03  Jakub Jelinek  <jakub@redhat.com>

* elf/Makefile: Add rules to build and run unload3 test.
* elf/unload3.c: New test.
* elf/unload3mod1.c: New file.
* elf/unload3mod2.c: New file.
* elf/unload3mod3.c: New file.
* elf/unload3mod4.c: New file.

19 years ago(tests): Add tst-global1. Add rules to build and run unload3 test.
Ulrich Drepper [Thu, 3 Mar 2005 08:24:29 +0000 (08:24 +0000)]
(tests): Add tst-global1. Add rules to build and run unload3 test.

19 years ago2005-02-21 Alan Modra <amodra@bigpond.net.au>
Roland McGrath [Wed, 2 Mar 2005 20:11:55 +0000 (20:11 +0000)]
2005-02-21  Alan Modra <amodra@bigpond.net.au>

* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
use __uint128_t.

19 years ago* posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead cvs/fedora-glibc-20050302T1820
Roland McGrath [Tue, 1 Mar 2005 21:33:48 +0000 (21:33 +0000)]
* posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead

of __bos.
* socket/bits/socket2.h (recv, recvfrom): Likewise.

19 years ago[BZ #765]
Roland McGrath [Tue, 1 Mar 2005 20:57:40 +0000 (20:57 +0000)]
[BZ #765]

bz tag
[BZ #765]

19 years ago[BZ #721]
Roland McGrath [Tue, 1 Mar 2005 20:55:00 +0000 (20:55 +0000)]
[BZ #721]

2005-03-01  Roland McGrath  <roland@redhat.com>
[BZ #721]
* sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
of [RESOLVE_MAP].

2005-03-01  Alfred M. Szmidt  <ams@gnu.org>

* elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
Add missing initializer.

* malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
USE_TLS && !USE___THREAD].

19 years ago2005-03-01 Alfred M. Szmidt <ams@gnu.org>
Roland McGrath [Tue, 1 Mar 2005 20:30:29 +0000 (20:30 +0000)]
2005-03-01  Alfred M. Szmidt  <ams@gnu.org>

* malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
USE_TLS && !USE___THREAD].

19 years ago* csu/Makefile: Use printf instead of echo for some shells.
Ulrich Drepper [Tue, 1 Mar 2005 01:45:27 +0000 (01:45 +0000)]
* csu/Makefile: Use printf instead of echo for some shells.

19 years ago* debug/read_chk.c (__read_chk): Always fail if the buffer is too
Ulrich Drepper [Tue, 1 Mar 2005 01:20:39 +0000 (01:20 +0000)]
* debug/read_chk.c (__read_chk): Always fail if the buffer is too

small.
* debug/readlink_chk.c (__readlink_chk): Likewise.
* debug/pread64_chk.c (__pread64_chk): Likewise.
* debug/pread_chk.c (__pread_chk): Likewise.

19 years ago[BZ #719, BZ #767, BZ #768, BZ #769]
Roland McGrath [Tue, 1 Mar 2005 00:43:16 +0000 (00:43 +0000)]
[BZ #719, BZ #767, BZ #768, BZ #769]

2005-02-28  Roland McGrath  <roland@redhat.com>
* debug/warning-nop.c (__nop): Rename to nop, make it static.
(__warndecl): Use alias attribute directly, instead of strong_alias
macro.  Add attribute_hidden.

[BZ #719]
[BZ #719]
[BZ #769]
[BZ #719]
[BZ #719]
[BZ #719]
[BZ #768]
[BZ #768]
[BZ #767]

19 years ago2005-02-28 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 1 Mar 2005 00:42:55 +0000 (00:42 +0000)]
2005-02-28  Roland McGrath  <roland@redhat.com>

* debug/warning-nop.c (__nop): Rename to nop, make it static.
(__warndecl): Use alias attribute directly, instead of strong_alias
macro.  Add attribute_hidden.

19 years ago(__getcwd_chk): Always fail if the buffer is too small.
Ulrich Drepper [Tue, 1 Mar 2005 00:42:41 +0000 (00:42 +0000)]
(__getcwd_chk): Always fail if the buffer is too small.

19 years ago* posix/bits/unistd.h: Avoid calling __*_chk variants if we can
Ulrich Drepper [Tue, 1 Mar 2005 00:35:23 +0000 (00:35 +0000)]
* posix/bits/unistd.h: Avoid calling __*_chk variants if we can

determine the call will never trigger a failure.

* sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
* sysdeps/x86_64/memset_chk.S: Likewise.

2005-02-24  Roland McGrath  <roland@redhat.com>

* debug/Versions (libc: GLIBC_2.4): Remove
__memset_zero_constant_len_parameter.
* sysdeps/generic/memset_chk.c: Remove alias and warning.
* misc/sys/cdefs.h (__warndecl): New macro.
* debug/warning-nop.c: New file.
* string/bits/string3.h (memset): Call __warn_memset_zero_len with no
arguments, instead of calling __memset_zero_constant_len_parameter.
Use __warndecl for __warn_memset_zero_len.
* debug/Makefile (routines): Add $(static-only-routines).
(static-only-routines): New variable.

19 years ago* po/tr.po: Update from translation team.
Ulrich Drepper [Mon, 28 Feb 2005 07:12:37 +0000 (07:12 +0000)]
* po/tr.po: Update from translation team.

19 years ago* elf/dl-addr.c: Cleanups. Move declaration next to first use.
Ulrich Drepper [Sat, 26 Feb 2005 08:50:16 +0000 (08:50 +0000)]
* elf/dl-addr.c: Cleanups.  Move declaration next to first use.

19 years ago* dlfcn/dlerror.c (check_free): New function. Extract common code
Ulrich Drepper [Sat, 26 Feb 2005 08:33:13 +0000 (08:33 +0000)]
* dlfcn/dlerror.c (check_free): New function.  Extract common code

from fini and free_key_mem.  Check whether this is libdl in the
base namespace.

19 years ago* elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
Ulrich Drepper [Sat, 26 Feb 2005 06:11:53 +0000 (06:11 +0000)]
* elf/dl-lookup.c (_dl_debug_bindings): Add namespace information

to debug output.

19 years ago(_dl_debug_bindings): Add namespace information to debug output.
Ulrich Drepper [Sat, 26 Feb 2005 06:11:21 +0000 (06:11 +0000)]
(_dl_debug_bindings): Add namespace information to debug output.

19 years ago* alloca_cutoff.c: Correct license text. cvs/fedora-glibc-2_3-20050226T0141
Roland McGrath [Sat, 26 Feb 2005 01:34:15 +0000 (01:34 +0000)]
* alloca_cutoff.c: Correct license text.

* tst-unload.c: Likewise.
* sysdeps/pthread/allocalim.h: Likewise.
* sysdeps/pthread/pt-initfini.c: Likewise.
* sysdeps/pthread/bits/libc-lock.h: Likewise.
* sysdeps/pthread/bits/sigthread.h: Likewise.
* sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.

19 years ago2005-02-25 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 26 Feb 2005 01:33:57 +0000 (01:33 +0000)]
2005-02-25  Roland McGrath  <roland@redhat.com>

* alloca_cutoff.c: Correct license text.
* tst-unload.c: Likewise.
* sysdeps/pthread/allocalim.h: Likewise.
* sysdeps/pthread/pt-initfini.c: Likewise.
* sysdeps/pthread/bits/libc-lock.h: Likewise.
* sysdeps/pthread/bits/sigthread.h: Likewise.
* sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise.
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.

19 years ago[BZ #758]
Andreas Jaeger [Fri, 25 Feb 2005 15:18:35 +0000 (15:18 +0000)]
[BZ #758]

Update.
2004-11-11  Richard Sandiford  <rsandifo@redhat.com>

[BZ #758]
* sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
* sysdeps/unix/sysv/linux/mips/configure: Regenerate.
* sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
standard __NR prefix.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
* sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
the output file is compatible with both pre-2.6 and 2.6 kernel headers.
Extract separate syscall lists for each ABI.

19 years ago[BZ #758]
Andreas Jaeger [Fri, 25 Feb 2005 15:18:13 +0000 (15:18 +0000)]
[BZ #758]

2004-11-11  Richard Sandiford  <rsandifo@redhat.com>
[BZ #758]
* sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
* sysdeps/unix/sysv/linux/mips/configure: Regenerate.
* sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
standard __NR prefix.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
* sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
the output file is compatible with both pre-2.6 and 2.6 kernel headers.
Extract separate syscall lists for each ABI.

19 years agoRun tst-tls9-static again.
Ulrich Drepper [Thu, 24 Feb 2005 02:56:13 +0000 (02:56 +0000)]
Run tst-tls9-static again.

19 years ago* elf/Makefile: Run tst-tls9-static again.
Ulrich Drepper [Thu, 24 Feb 2005 02:16:26 +0000 (02:16 +0000)]
* elf/Makefile: Run tst-tls9-static again.

19 years ago* Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
Ulrich Drepper [Thu, 24 Feb 2005 02:13:19 +0000 (02:13 +0000)]
* Makerules (libc.so): Add AS_NEEDED line for dynamic linker.

19 years ago(libc.so): Add AS_NEEDED line for dynamic linker.
Ulrich Drepper [Thu, 24 Feb 2005 02:09:38 +0000 (02:09 +0000)]
(libc.so): Add AS_NEEDED line for dynamic linker.

19 years agotypos
Roland McGrath [Wed, 23 Feb 2005 22:27:38 +0000 (22:27 +0000)]
typos

(__libc_setup_tls): Initialize length of DTV based on array length.
* elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are

19 years ago* sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
Ulrich Drepper [Wed, 23 Feb 2005 06:19:23 +0000 (06:19 +0000)]
* sysdeps/generic/libc-tls.c (static_dtv): Size the same as the

slotinfo array.
(__libc_setup_tls_): Initializer length of DTV based on array length.
* elf/dl-load.c: Revert last change.
* sysdeps/generic/dl-tls.c: Revert last change.

19 years ago* posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
Ulrich Drepper [Wed, 23 Feb 2005 02:46:08 +0000 (02:46 +0000)]
* posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,

tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
* posix/tst-execl1.c: New file.
* posix/tst-execl2.c: New file.
* posix/tst-execle1.c: New file.
* posix/tst-execle2.c: New file.
* posix/tst-execlp1.c: New file.
* posix/tst-execlp2.c: New file.
* posix/tst-execv1.c: New file.
* posix/tst-execv2.c: New file.
* posix/tst-execve1.c: New file.
* posix/tst-execve2.c: New file.
* posix/tst-execvp1.c: New file.
* posix/tst-execvp2.c: New file.

19 years agoTest for exec function.
Ulrich Drepper [Wed, 23 Feb 2005 02:42:55 +0000 (02:42 +0000)]
Test for exec function.

19 years ago* include/signal.h: Revert last change.
Roland McGrath [Tue, 22 Feb 2005 23:19:11 +0000 (23:19 +0000)]
* include/signal.h: Revert last change.

(__sigemptyset): Use __builtin_memset instead of memset.

19 years ago2005-02-22 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 22 Feb 2005 23:18:11 +0000 (23:18 +0000)]
2005-02-22  Roland McGrath  <roland@redhat.com>

* include/signal.h: Revert last change.
(__sigemptyset): Use __builtin_memset instead of memset.

19 years ago* sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
Ulrich Drepper [Tue, 22 Feb 2005 23:11:01 +0000 (23:11 +0000)]
* sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use

non-cancelable I/O functions.

19 years ago* nscd/nscd-client.h: Include sys/uio.h.
Ulrich Drepper [Tue, 22 Feb 2005 22:58:32 +0000 (22:58 +0000)]
* nscd/nscd-client.h: Include sys/uio.h.

(__readall, __readvall, writeall): New prototypes.
* nscd/connections.c (writeall): New function.
(handle_request): Use it.
* nscd/aicache.c (addhstaiX): Likewise.
* nscd/initgrcache.c (addinitgroupsX): Likewise.
* nscd/hstcache.c (cache_addhst): Likewise.
* nscd/grpcache.c (cache_addgr): Likewise.
* nscd/pwdcache.c (cache_addpw): Likewise.
* nscd/nscd_helper.c (__readall, __readvall): New functions.
* nscd/nscd_getai.c (__nscd_getai): Use them.
* nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
* nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
* nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
* nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.

19 years agoInclude sys/uio.h. (__readall, __readvall, writeall): New prototypes.
Ulrich Drepper [Tue, 22 Feb 2005 22:51:26 +0000 (22:51 +0000)]
Include sys/uio.h. (__readall, __readvall, writeall): New prototypes.

19 years ago* include/sys/socket.h: Declare __recv.
Roland McGrath [Tue, 22 Feb 2005 22:51:17 +0000 (22:51 +0000)]
* include/sys/socket.h: Declare __recv.

* sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
* sysdeps/mach/hurd/recv.c: Likewise.

* sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
__backtrace_* decls.

* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
(INTERNAL_SYSCALL_ERROR_P): Evalute VAL.  Parenthesize ERR.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.

* include/signal.h: Include <string.h> for memset decl.

19 years ago2005-02-22 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 22 Feb 2005 22:50:56 +0000 (22:50 +0000)]
2005-02-22  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
__backtrace_* decls.

19 years ago* posix/execvp.c (execvp): Fix invalid free.
Ulrich Drepper [Tue, 22 Feb 2005 15:37:35 +0000 (15:37 +0000)]
* posix/execvp.c (execvp): Fix invalid free.

19 years ago(execvp): Fix invalid free.
Ulrich Drepper [Tue, 22 Feb 2005 15:36:13 +0000 (15:36 +0000)]
(execvp): Fix invalid free.

19 years agoFix typo.
Andreas Schwab [Tue, 22 Feb 2005 14:40:13 +0000 (14:40 +0000)]
Fix typo.

* posix/execvp.c: Likewise.

19 years ago* malloc/Makefile (CFLAGS-mcheck-init.c): Add.
Ulrich Drepper [Tue, 22 Feb 2005 09:53:18 +0000 (09:53 +0000)]
* malloc/Makefile (CFLAGS-mcheck-init.c): Add.

* sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
librpcsvc.a objects.

19 years ago* iconvdata/ibm930.h: Correct Yen mapping.
Ulrich Drepper [Tue, 22 Feb 2005 07:12:35 +0000 (07:12 +0000)]
* iconvdata/ibm930.h: Correct Yen mapping.

* iconvdata/ibm939.h: Likewise.
* iconvdata/testdata/IBM930..UTF8: Adjust test data.
* iconvdata/testdata/IBM939..UTF8: Likewise.
Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.

* iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
(distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
ibm1158.c, and ibm1158.h.
* iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
* iconvdata/gconv-modules: Likewise.
* iconvdata/ibm1025.c: New file.
* iconvdata/ibm1025.h: New file.
* iconvdata/ibm1122.c: New file.
* iconvdata/ibm1122.h: New file.
* iconvdata/ibm1137.c: New file.
* iconvdata/ibm1137.h: New file.
* iconvdata/ibm1153.c: New file.
* iconvdata/ibm1153.h: New file.
* iconvdata/ibm1154.c: New file.
* iconvdata/ibm1154.h: New file.
* iconvdata/ibm1155.c: New file.
* iconvdata/ibm1155.h: New file.
* iconvdata/ibm1156.c: New file.
* iconvdata/ibm1156.h: New file.
* iconvdata/ibm1157.c: New file.
* iconvdata/ibm1157.h: New file.
* iconvdata/ibm1158.c: New file.
* iconvdata/ibm1158.h: New file.
* iconvdata/testdata/IBM1025: New file.
* iconvdata/testdata/IBM1025..UTF8: New file.
* iconvdata/testdata/IBM1122: New file.
* iconvdata/testdata/IBM1122..UTF8: New file.
* iconvdata/testdata/IBM1137: New file.
* iconvdata/testdata/IBM1137..UTF8: New file.
* iconvdata/testdata/IBM1153: New file.
* iconvdata/testdata/IBM1153..UTF8: New file.
* iconvdata/testdata/IBM1154: New file.
* iconvdata/testdata/IBM1154..UTF8: New file.
* iconvdata/testdata/IBM1155: New file.
* iconvdata/testdata/IBM1155..UTF8: New file.
* iconvdata/testdata/IBM1156: New file.
* iconvdata/testdata/IBM1156..UTF8: New file.
* iconvdata/testdata/IBM1157: New file.
* iconvdata/testdata/IBM1157..UTF8: New file.
* iconvdata/testdata/IBM1158: New file.
* iconvdata/testdata/IBM1158..UTF8: New file.
Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.

19 years ago* posix/regcomp.c (lower_subexp): Do not optimize empty
Ulrich Drepper [Tue, 22 Feb 2005 05:07:20 +0000 (05:07 +0000)]
* posix/regcomp.c (lower_subexp): Do not optimize empty

subexpressions even with REG_NOSUB.
* posix/rxspencer/tests: Add a previously failing testcase.

19 years ago2005-02-21 Alan Modra <amodra@bigpond.net.au>
Ulrich Drepper [Tue, 22 Feb 2005 03:51:38 +0000 (03:51 +0000)]
2005-02-21  Alan Modra <amodra@bigpond.net.au>

* elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
array index is within bounds.

* elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
linked code.
* sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
* elf/Makefile: Remove rules to build and run tst-tls9-static.

19 years ago* elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
Ulrich Drepper [Tue, 22 Feb 2005 01:58:38 +0000 (01:58 +0000)]
* elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using

THREAD_DTV multiple times, this minimally reduces code size on
some archs.

19 years ago* iconvme.h: New file, extracted from toutf8.c but improved.
Ulrich Drepper [Tue, 22 Feb 2005 01:25:57 +0000 (01:25 +0000)]
* iconvme.h: New file, extracted from toutf8.c but improved.

* iconvme.c: New file.
* toutf8.c: Include stringprep.h first, to make the compiler check
that stringprep.h is standalone.  Improve comments.  Replace
#include of errno.h and sys/param.h with iconvme.h.  Don't define
ICONV_CONST.
(stringprep_convert): Rewrite to use iconvme.h.

19 years ago* nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
Ulrich Drepper [Mon, 21 Feb 2005 23:43:21 +0000 (23:43 +0000)]
* nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to

NETDB_INTERNAL if buffer is too small.

* nscd/hstcache.c (INCR): Remove.
(addhstbyX): Double buflen in each iteration rather than add INCR.
* nscd/grpcache.c: Likewise.
* nscd/pwdcache.c: Likewise.

19 years ago* sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
Ulrich Drepper [Mon, 21 Feb 2005 23:14:10 +0000 (23:14 +0000)]
* sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory

map if requested.
* debug/chk_fail.c: Request backtrace and memory map dump.

* Versions.def: Add GLIBC_2.4 for libc.
* debug/fgets_chk.c: New file.
* debug/fgets_u_chk.c: New file.
* debug/getcwd_chk.c: New file.
* debug/getwd_chk.c: New file.
* debug/readlink_chk.c: New file.
* debug/read_chk.c: New file.
* debug/pread_chk.c: New file.
* debug/pread64_chk.c: New file.
* debug/recv_chk.c: New file.
* debug/recvfrom_chk.c: New file.
* debug/Versions: Add all new functions with version GLIBC_2.4.
* debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
* debug/tst-chk1.c: Add more tests.
* libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
* include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
* posix/unistd.h: Include <bits/unistd.h> for fortification.
* posix/bits/unistd.h: New file.
* posix/Makefile (headers): Add bits/unistd.h.
* socket/sys/socket.h: Include <bits/socket2.h> for fortification.
* socket/bits/socket2.h: New file.
* socket/Makefile (headers): Add bits/socket2.h.

* string/bits/string3.h: Extend memset macro to check for zero 3rd
parameter and use __memset_zero_constant_len_parameter in that case.
* sysdeps/generic/memset_chk.c: Add
__memset_zero_constant_len_parameter alias and linker warning.
* debug/Versions: Add __memset_zero_constant_len_parameter to libc
with version GLIBC_2.4.

* sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
in __STD_TYPE definition.

2005-02-21  Jakub Jelinek  <jakub@redhat.com>

* malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
the error message rather than program name.

2005-02-21  Ulrich Drepper  <drepper@redhat.com>

19 years ago* posix/unistd.h: symlink and readlink are unconditionally
Ulrich Drepper [Mon, 21 Feb 2005 10:22:58 +0000 (10:22 +0000)]
* posix/unistd.h: symlink and readlink are unconditionally

available in the 2001 spec.

19 years agosymlink and readlink are unconditionally available in the 2001 spec.
Ulrich Drepper [Mon, 21 Feb 2005 10:22:29 +0000 (10:22 +0000)]
symlink and readlink are unconditionally available in the 2001 spec.

19 years ago[BZ #284, BZ #721]
Roland McGrath [Thu, 17 Feb 2005 01:19:55 +0000 (01:19 +0000)]
[BZ #284, BZ #721]

* intl/dcigettext.c (_nl_find_msg): Add a cast.
* nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
* nis/nis_clone_obj.c (nis_clone_object): Likewise.
* nis/nis_clone_res.c (nis_clone_result): Likewise.

* resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
for END_OF_MESSAGE and CP.

* resolv/res_send.c (send_dg): Add else branch for case impossible
unless `poll' is buggy.

* crypt/crypt_util.c (__setkey_r): Add a cast.

* locale/programs/linereader.c (get_toplvl_escape): Use size_t for
NBYTES, and unsigned char * for BYTES.

* locale/programs/charmap.c (charmap_new_char): Use size_t and
unsighed char * for NBYTES, BYTES parameters.

* sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
and cast it.
* sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.

* sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.

* sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.

* sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
(authdes_marshal): Don't use unsigned int for LEN.
* sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
(xdr_u_hyper): Likewise.
(xdr_u_short): Don't use u_long for L.
* sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.

* inet/rexec.c (rexec_af): Use socklen_t.
* sunrpc/key_call.c (getkeyserv_handle): Likewise.
* sunrpc/rtime.c (rtime): Likewise.
* resolv/res_send.c (send_vc, send_dg): Likewise.
* nis/nis_callback.c (__nis_create_callback): Likewise.

* sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.

* sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.

* libio/libio.h (_IO_BE): Add parenthesis around EXPR.

* intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
(_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
(libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
* intl/bindtextdom.c (INTUSE): Macro removed.
(_nl_default_dirname): Use libc_hidden_proto.
(set_binding_values): Don't use INTUSE.
* include/libintl.h (_libc_intl_domainname_internal): Decl removed.
(_libc_intl_domainname): Use libc_hidden_proto.
* posix/regex_internal.h (gettext): Remove INTUSE on it.
* locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
rather than INTDEF.
* include/libintl.h (_): Don't use *_internal name.

* ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
not uint32_t.
* locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.

* iconv/gconv_open.c (__gconv_open): Remove useless cast.

[BZ #721]
* sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
of [RESOLVE_MAP].
* sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
* sysdeps/powerpc/powerpc32/dl-machine.h
(elf_machine_rel, elf_machine_rel_relative): Removed.
* sysdeps/powerpc/powerpc64/dl-machine.h
(elf_machine_rel, elf_machine_rel_relative): Removed.

2005-02-03  Alexandre Oliva  <aoliva@redhat.com>

[BZ #721]
* elf/dynamic-link.h: Don't declare nested auto functions that are
not going to be defined.

2004-07-23  Jakub Jelinek  <jakub@redhat.com>

[BZ #284]
* include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.

2005-02-16  Roland McGrath  <roland@redhat.com>

19 years ago[BZ #592, BZ #602, BZ #671, BZ #723, BZ #725, BZ #726, BZ #727, BZ #729, BZ #730...
Roland McGrath [Wed, 16 Feb 2005 11:37:28 +0000 (11:37 +0000)]
[BZ #592, BZ #602, BZ #671, BZ #723, BZ #725, BZ #726, BZ #727, BZ #729, BZ #730, BZ #731, BZ #732, BZ #733, BZ #734, BZ #735, BZ #736, BZ #737, BZ #738, BZ #741, BZ #742, BZ #743, BZ #744, BZ #745]

Add bugzilla tags
[BZ #738]
[BZ #741]
[BZ #741]
[BZ #742]
[BZ #743]
[BZ #737]
[BZ #731]
[BZ #736]
* timezone/europe: Likewise.
[BZ #736]
[BZ #671]
[BZ #735]
[BZ #745]
[BZ #734]
[BZ #731]
[BZ #733]
[BZ #732]
[BZ #732]
[BZ #602]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #592]
[BZ #729]
[BZ #730]
[BZ #727]
[BZ #726]
[BZ #744]
[BZ #723]
[BZ #725]

19 years ago* sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
Roland McGrath [Wed, 16 Feb 2005 09:39:23 +0000 (09:39 +0000)]
* sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn

inside [! SHARED] where it's used.