Commit Graph

9644 Commits

Author SHA1 Message Date
Roland McGrath
df979dc433 [BZ #1534]
2005-10-24  Roland McGrath  <roland@redhat.com>
	[BZ #1534]
	* include/string.h: Use libc_hidden_proto for strnlen,
	not libc_hidden_builtin_proto.
2005-10-24 19:31:20 +00:00
Ulrich Drepper
dc06a18052 * rt/mqueue.h: Cleanups. 2005-10-23 20:51:32 +00:00
Roland McGrath
2ba7a64cb9 [BZ #1254]
2005-10-22  Roland McGrath  <roland@redhat.com>
	[BZ #1254]
	* sysdeps/mach/hurd/getpeername.c (__getpeername): Fix last change.
	From Samuel Thibault <samuel.thibault@ens-lyon.org>.
2005-10-23 00:46:40 +00:00
Roland McGrath
d8f5ccdde7 [BZ #1252, BZ #1498]
2005-10-17  Thomas Schwinge  <tschwinge@gnu.org>
	[BZ #1252]
	* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Don't use ?: as lvalue.
	* sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.

	[BZ #1498]
2005-10-23 00:43:23 +00:00
Ulrich Drepper
6738b11d46 * iconvdata/ibm1364.h (__ucs4_to_ibm1364sb): Fix one mapping.
* iconvdata/ibm1388.h (__ucs4_to_ibm1388sb): Likewise.
	* iconvdata/testdata/IBM1364: Add missing valid input.
	* iconvdata/testdata/IBM1388: Likewise.
	* iconvdata/testdata/IBM1364..UTF8: Adjust appropriately.
	* iconvdata/testdata/IBM1388..UTF8: Likewise.
	Patch by Masahide Washizawa <washi@jp.ibm.com>.
2005-10-21 04:28:06 +00:00
Ulrich Drepper
addbcc6d36 * sysdeps/alpha/remqu.S: Return the correct result when the same
dividend and divisor are provided, and they're negative numbers.
	* sysdeps/alpha/divqu.S: Likewise.
2005-10-20 05:25:40 +00:00
Ulrich Drepper
336476cbea * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):
Define.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h (TESTS):
	Likewise.
2005-10-20 00:09:39 +00:00
Ulrich Drepper
3b8d12b876 ..
2005-10-19  Ulrich Drepper  <drepper@redhat.com>

	* iconvdata/Makefile (modules): Add IBM1364, IBM1371, IBM1388, IBM1390,
	and IBM1399.
	(distribute): Add ibm1364.c, ibm1364.h, ibm1371.c, ibm1371.h,
	ibm1388.c, ibm1388.h, ibm1390.c, ibm1390.h, ibm1399.c, and ibm1399.h.
	* iconvdata/TESTS: Add entries for IBM1364, IBM1371, IBM1388, IBM1390,
	and IBM1399.
	* iconvdata/gconv-modules: Likewise.
	* iconvdata/ibm1364.c: New file.
	* iconvdata/ibm1364.h: New file.
	* iconvdata/ibm1371.c: New file.
	* iconvdata/ibm1371.h: New file.
	* iconvdata/ibm1388.c: New file.
	* iconvdata/ibm1388.h: New file.
	* iconvdata/ibm1390.c: New file.
	* iconvdata/ibm1390.h: New file.
	* iconvdata/ibm1399.c: New file.
	* iconvdata/ibm1399.h: New file.
	* iconvdata/testdata/IBM1364: New file.
	* iconvdata/testdata/IBM1364..UTF8: New file.
	* iconvdata/testdata/IBM1371: New file.
	* iconvdata/testdata/IBM1371..UTF8: New file.
	* iconvdata/testdata/IBM1388: New file.
	* iconvdata/testdata/IBM1388..UTF8: New file
	* iconvdata/testdata/IBM1390: New file.
	* iconvdata/testdata/IBM1390..UTF8: New file.
	* iconvdata/testdata/IBM1399: New file.
	* iconvdata/testdata/IBM1399..UTF8: New file.
	Original patch by Masahide Washizawa <washi@jp.ibm.com>.
2005-10-19 23:58:35 +00:00
Roland McGrath
eeffb22a40 [BZ #721]
2005-10-17  Roland McGrath  <roland@redhat.com>
	* elf/dl-load.c (MAP_COPY): When undefined, define to
	MAP_PRIVATE|MAP_DENYWRITE instead of just MAP_PRIVATE.
	(_dl_map_object_from_fd): Don't use MAP_DENYWRITE explicitly.

	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
2005-10-17 20:59:32 +00:00
Ulrich Drepper
4fa64d66fe * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_STSZ, TESTS):
Define.
	* sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h (SC_STSZ, TESTS):
	Likewise.
2005-10-17 17:01:06 +00:00
Ulrich Drepper
dd3af58b91 allow EACCES errors when opening /proc for now. 2005-10-17 16:07:28 +00:00
Ulrich Drepper
5d1d7adb5b * libio/oldfileops.c (_IO_old_file_xsputn): Fix last patch.
Return EOF not 0.

	* sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Also
	allow EACCES errors when opening /rpco for now.

	* wctype/wcfuncs.c: Don't use expensive wide char lookups in isw*
	functions if character is in ASCII range.
	* wctype/wcfuncs_l.c: Likewise.
2005-10-17 16:05:54 +00:00
Roland McGrath
ae0d550c3e * abi-tags (.*-.*-knetbsd.*-gnu.*): New match, with ABI value 4.
* elf/cache.c (print_entry): Match the kNetBSD ABI tag.
2005-10-17 02:44:01 +00:00
Roland McGrath
1b61c81b4b * sysdeps/generic/bits/mman.h
[__USE_GNU] (MREMAP_MAYMOVE, REMAP_FIXED): New macros.
2005-10-17 02:39:56 +00:00
Ulrich Drepper
76e95c8899 * sysdeps/unix/sysv/linux/sh/makecontext.S: New file.
* sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: New file.
	* sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: New file.
	* sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: New file.
	* sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: New file.
	* sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: New file.
	* sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: New file.
	* sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.h: New file.
	* sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.h: New file.
	* sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Removed.
	* sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: New file.
	* sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: New file.
2005-10-16 15:49:27 +00:00
Ulrich Drepper
f53d5aff8a [BZ #1228]
..
2005-09-13  Jakub Jelinek  <jakub@redhat.com>

	[BZ #1228]
	* include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Make sure these
	are defined for -D_GNU_SOURCE or -D_ISOC99_SOURCE even when not
	-std=c99.
2005-10-16 15:35:46 +00:00
Roland McGrath
fe60d146c7 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MREMAP_FIXED. 2005-10-16 11:38:59 +00:00
Roland McGrath
c45c24812b [BZ #1249, BZ #1252]
2005-08-05  Alfred M. Szmidt  <ams@gnu.org>
	[BZ #1252]
	* sysdeps/mach/hurd/setitimer.c (restart_itimer): Move static fn
	forward decl out of function body.
	* sysdeps/mach/hurd/profil.c: Likewise.

	[BZ #1249]
2005-10-16 10:32:31 +00:00
Roland McGrath
ce14289fcc [BZ #1350]
bz tag
	[BZ #1350]
2005-10-16 10:16:09 +00:00
Roland McGrath
0faa1cf58b [BZ #1254]
* sysdeps/mach/hurd/getpeername.c (__getpeername): Respect *LEN
	byte limit when setting ADDR->sa_family.
	Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2005-10-16 10:09:35 +00:00
Roland McGrath
cdb3f98a2e [BZ #1253]
* sysdeps/mach/hurd/dl-sysdep.h
	[SHARED] (DL_ARGV_NOT_RELRO): New macro.

	[BZ #1253]
2005-10-16 09:57:50 +00:00
Roland McGrath
133bf22efa [BZ #1253]
2005-10-16  Roland McGrath  <roland@frob.com>
	[BZ #1253]
	* sysdeps/mach/hurd/i386/init-first.c (init): Make cast kosher.
	(_hurd_stack_setup): Don't declare with arguments and ellipsis.
	Use __builtin_frame_address and __builtin_return_address.
	(_dl_init_first): Likewise.

	* sysdeps/mach/hurd/i386/init-first.c (_cthread_init_routine): Declare
	as weak extern.
	(init): Check for it being undefined.
2005-10-16 09:53:04 +00:00
Roland McGrath
fc8e9f0027 [BZ #1076, BZ #1250, BZ #1251]
BZ tags
2005-08-05  Roland McGrath  <roland@frob.com>
	[BZ #1251]
	[BZ #1250]
	[BZ #1076]
2005-10-16 09:46:24 +00:00
Roland McGrath
0f33b0174e [BZ #1394]
bz tag
	[BZ #1394]
2005-10-16 09:34:17 +00:00
Roland McGrath
aed48a2a23 2005-10-16 Daniel Jacobowitz <dan@codesourcery.com>
Roland McGrath  <roland@redhat.com>

	* Makerules [module-names] (extra-modules-build): New variable.
	($(extra-modules-build:%=$(objpfx)%.so)): New static pattern rule.
	Depend on libc.so and libc_nonshared.a.
	* dlfcn/Makefile ($(test-modules)): Remove static pattern rule.
	* elf/Makefile (modules-names-nobuild): New variable, add filtmod1.
	($(test-modules)): Remove static pattern rule.
2005-10-16 09:25:59 +00:00
Roland McGrath
809e3018b3 * include/dirent.h: Include <stdbool.h>.
* sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>.
	(fdopendir): Correct argument to _hurd_fd_get().
	* sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
2005-10-16 08:34:09 +00:00
Ulrich Drepper
9b0c3f38d3 [BZ #1224]
2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
	[BZ #1224]
	* posix/regcomp.c (init_word_char, duplicate_node_closure,
	fetch_token, peek_token_bracket, build_range_exp,
	build_collating_symbol): Remove forward decls; no longer needed
	now that we use prototypes.
2005-10-15 21:14:58 +00:00
Ulrich Drepper
684e5a2e89 [BZ #1221]
* posix/regex_internal.h: Remove last traces of
	RE_NO_INTERNAL_PROTOTYPES.
2005-10-15 20:59:51 +00:00
Ulrich Drepper
bc3a45cef8 [BZ #968]
* string/strxfrm_l.c (STRXFRM): Fix exit conditions of two loops.
2005-10-15 20:51:49 +00:00
Ulrich Drepper
b7cd532556 * sysdeps/unix/fdopendir.c (fdopendir): Make sure descriptor
allows reading.
2005-10-15 17:28:08 +00:00
Ulrich Drepper
ebb58ba3c2 * wcsmbs/tst-mbrtowc2.c: Use de_DE.UTF-8 instead of en_US.UTF-8.
* wcsmbs/Makefile: Define tst-mbrtowc2-ENV.
2005-10-15 15:38:52 +00:00
Ulrich Drepper
1ba81cea27 * posix/regexec.c: Finish prototyping of static functions.
* posix/regex_internal.c: Likewise.
2005-10-15 15:23:33 +00:00
Roland McGrath
63be256ac1 * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): New function, broken
out of ...
	(__opendir): ... here.  Call it.
	* sysdeps/mach/hurd/fdopendir.c: New file.
2005-10-15 02:23:56 +00:00
Ulrich Drepper
34b0ba2830 [BZ #865]
* math/tgmath.h: Correctly determine result type for
	__TGMATH_BINARY_REAL_ONLY,
	__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
	__TGMATH_TERNARY_REAL_ONLY, and __TGMATH_BINARY_REAL_IMAG.

2005-09-17  Andreas Jaeger  <aj@suse.de>

	[BZ #865]
	* math/test-tgmath-int.c: New file.
	* math/Makefile (tests): Add test-tgmath-int.

2005-10-14  Ulrich Drepper  <drepper@redhat.com>
2005-10-15 00:39:12 +00:00
Ulrich Drepper
504417ac97 [BZ #804]
* malloc/tst-mtrace.sh: Work around for bootstraping.
2005-10-14 23:42:04 +00:00
Ulrich Drepper
07b649c6f4 * locale/programs/ld-collate.c (collate_output): Fix counting of
elements.  Don't limit table size.  Use correct secondary hash
	function.
	* locale/localeinfo.h (LIMAGIC): Change value returned for LC_COLLATE.
	* posix/fnmatch_loop.c: Adjust for changed secondary hash function.
	* posix/regcomp.c: Likewise.

	* sysdeps/unix/sysv/linux/x86_64/ucontext_i.h (TESTS): Define.
2005-10-14 23:14:12 +00:00
Ulrich Drepper
daa226125c * time/asctime.c (asctime_internal): Use __snprintf instead of
snprintf to avoid PLT entry.
2005-10-14 21:17:04 +00:00
Ulrich Drepper
18b8e054cf * sysdeps/unix/opendir.c (__opendir): Pass extra argument to
__alloc_dir.
	(__alloc_dir): Only close descriptor on error if new parameter is true.
	* sysdeps/unix/fdopendir.c (fdopendir): Pass extra argument to
	__alloc_dir.  Don't close fd on error.
	* include/dirent.h (__alloc_dir): Adjust prototype.

	* include/sys/mman.h (__mremap): Add ellipsis.
	* malloc/memusage.c: Adjust mremap wrapper for optional additional
	parameter.
2005-10-14 21:11:09 +00:00
Ulrich Drepper
43f1b09e83 * stdlib/Makefile (tests): Add tst-ucontext-off.
* stdlib/tst-ucontext-off.c: New file.
	* sysdeps/unix/sysv/linux/x86_64/ucontext_i.h (TEST): Define.
	* sysdeps/unix/sysv/linux/i386/ucontext_i.h (TESTS): Likewise.
2005-10-14 17:50:36 +00:00
Ulrich Drepper
3394d6320b [BZ #1468]
* sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Fix values for
	oFPREGS, oSIGMASK, oFPREGSMEM, and oMXCSR.
	Patch by Nicholas Miell <nmiell@comcast.net>.
2005-10-14 17:20:58 +00:00
Ulrich Drepper
ce982312e8 [BZ #1460]
* time/asctime.c (asctime_internal): New function, derived from
	asctime_r.  Takes additional parameter which is the buffer length.
	Use snprintf instead sprintf, if it overflows, fail.
	(asctime_r): Call asctime_internal with 26 as buffer length.
	(asctime): Call asctime_internal with length of internal buffer.
	* time/Makefile (tests): Add bug-asctime_r.
	* time/bug-asctime_r.c: New file.
2005-10-14 15:17:40 +00:00
Ulrich Drepper
576c845148 [BZ #1459]
* time/asctime.c (__asctime_r): Check for tm_year computation to
	overflow and fail in this case.
	* time/Makefile (tests): Add bug-asctime.
	* time/bug-asctime.c: New file.
2005-10-14 14:10:20 +00:00
Ulrich Drepper
93c6cb8b8d [BZ #1458]
2005-10-14  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1458]
	* sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MREMAP_FIXED.
	* sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
	* misc/sys/mman.h: Add ellipsis after last parameter of mremap and
	adjust leading comment.
	* sysdeps/unix/sysv/linux/syscalls.list: Add pointer parameter to
	mremap syscall.
2005-10-14 13:42:37 +00:00
Ulrich Drepper
6cebdfd8f3 [BZ #1405]
* libio/iogetdelim.c (_IO_getdelim): Fix truncation of return
	value.  Avoid overflow in computation.
2005-10-14 06:25:55 +00:00
Ulrich Drepper
513bbb254d [BZ #1373]
2005-10-13  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1373]
	* argp/argp.h: Remove __NTH for __argp_usage inline function.
2005-10-14 05:54:47 +00:00
Ulrich Drepper
db26cb7576 [BZ #1248]
2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
	[BZ #1248]
	* posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
	bitset_mask, re_string_allocate, re_string_construct,
	re_string_reconstruct, re_string_destruct, re_string_elem_size_at,
	re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case,
	re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1,
	re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect,
	re_node_set_init_union, re_node_set_merge, re_node_set_insert,
	re_node_set_insert_last, re_node_set_compare, re_node_set_contains,
	re_node_set_remove_at, re_dfa_add_node, re_acquire_state,
	re_acquire_state_context): Remove unnecessary forward decls.
	(re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
	Put __attribute at function definition, now that the function decl
	has been removed.
	* posix/regex_internal.c (re_string_peek_byte_case,
	re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
	Likewise.
2005-10-13 21:10:24 +00:00
Ulrich Drepper
0fd8ae9c17 * posix/regcomp.c: Likewise. 2005-10-13 20:40:05 +00:00
Ulrich Drepper
e2f5526407 [BZ #1231]
2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
	[BZ #1231]
	* posix/regex_internal.c (re_string_skip_chars, register_state,
	calc_state_hash): Remove forward decls.
	* posix/regexec.c (acquire_init_state_context, check_halt_node_context,
	proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes,
	clean_state_log_if_needed): Likewise.

	* posix/regex.c: No need to use K&R definitions for static functions.
	* posix/regex_internal.c: Likewise.
2005-10-13 20:08:58 +00:00
Ulrich Drepper
72c7a71de4 [BZ #1466]
* sysdeps/generic/s_csqrt.c (__csqrt): For zero real part, return
	principal square root.
	* sysdeps/generic/s_csqrtf.c (__csqrtf): Likewise.
	* sysdeps/generic/s_csqrtl.c (__csqrtl): Likewise.
	* math/libm-test.inc (csqrt_test): Add test for returning
	principal value.
2005-10-13 19:08:37 +00:00
Ulrich Drepper
1676aaeffd * include/features.h: Define _POSIX_C_SOURCE to 200112 for
_XOPEN_SOURCE == 600.
2005-10-13 16:24:53 +00:00