Commit Graph

13350 Commits

Author SHA1 Message Date
Ulrich Drepper
1c99f950d1 * 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.
2005-03-06 07:27:56 +00:00
Ulrich Drepper
3cc4a09733 * 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.
2005-03-06 04:51:37 +00:00
Ulrich Drepper
103f1eb02d * include/bits/unistd.h: New file.
* include/bits/socket2.h: New file.
2005-03-06 00:28:34 +00:00
Ulrich Drepper
93aed66714 * 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>
2005-03-06 00:26:34 +00:00
Ulrich Drepper
171129215c (ELF_MACHINE_NO_RELA): Define unconditionally to defined RTLD_BOOTSTRAP. 2005-03-06 00:08:34 +00:00
Roland McGrath
2103c260f9 * 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).
2005-03-06 00:08:10 +00:00
Roland McGrath
3ff37e899a * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
$(inst_slibdir) in AS_NEEDED directive.
2005-03-05 19:28:17 +00:00
Roland McGrath
c440fa7584 2005-03-05 Jakub Jelinek <jakub@redhat.com>
* Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
	$(inst_slibdir) in AS_NEEDED directive.
2005-03-05 19:24:32 +00:00
Ulrich Drepper
05510ae659 * posix/bits/unistd.h (pread, pread64): Don't swap function arguments. 2005-03-03 17:08:56 +00:00
Ulrich Drepper
680d780a4b * elf/testobj2.c (p): New function. 2005-03-03 16:00:35 +00:00
Ulrich Drepper
2e2b6e2618 [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.
2005-03-03 08:28:23 +00:00
Ulrich Drepper
fab0abb446 (tests): Add tst-global1. Add rules to build and run unload3 test. 2005-03-03 08:24:29 +00:00
Roland McGrath
04c8bd46a5 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.
2005-03-02 20:11:55 +00:00
Roland McGrath
95ca9dd3fc * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
of __bos.
	* socket/bits/socket2.h (recv, recvfrom): Likewise.
2005-03-01 21:33:48 +00:00
Roland McGrath
25e3dd28e4 [BZ #765]
bz tag
	[BZ #765]
2005-03-01 20:57:40 +00:00
Roland McGrath
f8286ce613 [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].
2005-03-01 20:55:00 +00:00
Roland McGrath
a28b6b0a55 2005-03-01 Alfred M. Szmidt <ams@gnu.org>
* malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
	USE_TLS && !USE___THREAD].
2005-03-01 20:30:29 +00:00
Ulrich Drepper
9db670f07a * csu/Makefile: Use printf instead of echo for some shells. 2005-03-01 01:45:27 +00:00
Ulrich Drepper
a0e3c9e2e8 * 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.
2005-03-01 01:20:39 +00:00
Roland McGrath
87816274f4 [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]
2005-03-01 00:43:16 +00:00
Roland McGrath
1104e1f381 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.
2005-03-01 00:42:55 +00:00
Ulrich Drepper
8b8b797292 (__getcwd_chk): Always fail if the buffer is too small. 2005-03-01 00:42:41 +00:00
Ulrich Drepper
61062f5630 * 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.
2005-03-01 00:35:23 +00:00
Ulrich Drepper
cffa6970f9 * po/tr.po: Update from translation team. 2005-02-28 07:12:37 +00:00
Ulrich Drepper
9adc097760 * elf/dl-addr.c: Cleanups. Move declaration next to first use. 2005-02-26 08:50:16 +00:00
Ulrich Drepper
bfeabc7928 * 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.
2005-02-26 08:33:13 +00:00
Ulrich Drepper
3706bc2a52 * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
to debug output.
2005-02-26 06:11:53 +00:00
Ulrich Drepper
21e2d3a4eb (_dl_debug_bindings): Add namespace information to debug output. 2005-02-26 06:11:21 +00:00
Roland McGrath
3053ff11b6 * 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.
2005-02-26 01:34:15 +00:00
Roland McGrath
28ddcea013 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.
2005-02-26 01:33:57 +00:00
Andreas Jaeger
8ecc24b0e0 [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.
2005-02-25 15:18:35 +00:00
Andreas Jaeger
6740397ba7 [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.
2005-02-25 15:18:13 +00:00
Ulrich Drepper
ec1af1d8ce Run tst-tls9-static again. 2005-02-24 02:56:13 +00:00
Ulrich Drepper
132a823f05 * elf/Makefile: Run tst-tls9-static again. 2005-02-24 02:16:26 +00:00
Ulrich Drepper
c366c93475 * Makerules (libc.so): Add AS_NEEDED line for dynamic linker. 2005-02-24 02:13:19 +00:00
Ulrich Drepper
d3f5f87569 (libc.so): Add AS_NEEDED line for dynamic linker. 2005-02-24 02:09:38 +00:00
Roland McGrath
611eb94689 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
2005-02-23 22:27:38 +00:00
Ulrich Drepper
094d3c54ae * 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.
2005-02-23 06:19:23 +00:00
Ulrich Drepper
f9ab9ba9ab * 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.
2005-02-23 02:46:08 +00:00
Ulrich Drepper
53e5696b30 Test for exec function. 2005-02-23 02:42:55 +00:00
Roland McGrath
b17ebefa45 * include/signal.h: Revert last change.
(__sigemptyset): Use __builtin_memset instead of memset.
2005-02-22 23:19:11 +00:00
Roland McGrath
bd02f5fc17 2005-02-22 Roland McGrath <roland@redhat.com>
* include/signal.h: Revert last change.
	(__sigemptyset): Use __builtin_memset instead of memset.
2005-02-22 23:18:11 +00:00
Ulrich Drepper
262b5730c0 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
non-cancelable I/O functions.
2005-02-22 23:11:01 +00:00
Ulrich Drepper
d2dc7d8473 * 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.
2005-02-22 22:58:32 +00:00
Ulrich Drepper
804bb90a5a Include sys/uio.h. (__readall, __readvall, writeall): New prototypes. 2005-02-22 22:51:26 +00:00
Roland McGrath
a2274a0838 * 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.
2005-02-22 22:51:17 +00:00
Roland McGrath
61a4f6fb43 2005-02-22 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
	__backtrace_* decls.
2005-02-22 22:50:56 +00:00
Ulrich Drepper
c5e573031f * posix/execvp.c (execvp): Fix invalid free. 2005-02-22 15:37:35 +00:00
Ulrich Drepper
79164473b2 (execvp): Fix invalid free. 2005-02-22 15:36:13 +00:00
Andreas Schwab
8b3d4e0b04 Fix typo.
* posix/execvp.c: Likewise.
2005-02-22 14:40:13 +00:00