Commit Graph

9573 Commits

Author SHA1 Message Date
Roland McGrath
22aa06a562 [BZ #1392]
* posix/sys/wait.h [!__GNUC__ || __cplusplus] (__WAIT_INT): Use const.
2005-09-29  Alfred M. Szmidt  <ams@gnu.org>

	* elf/rtld.c [! DL_ARGV_NOT_RELRO] (_dl_argc, _dl_skip_args):
	Don't use attribute_relro.

2005-09-29  Roland McGrath  <roland@redhat.com>

	[BZ #1392]
2005-09-29 22:03:45 +00:00
Roland McGrath
37b5b6ae76 [BZ #1392]
2005-09-29  Roland McGrath  <roland@redhat.com>
	[BZ #1392]
	* posix/sys/wait.h (__WAIT_INT): Rewrite using an initializer,
	in case __typeof yields a const-qualified type.
2005-09-29 20:44:48 +00:00
Ulrich Drepper
1812d50bc9 * dirent/dirent.h: Declare fdopendir.
* dirent/Versions: Export fdopendir for GLIBC_2.4.
	* dirent/Makefile (routines): Add fdopendir.
	(tests): Add tst-fdopendir.
	* dirent/tst-fdopendir.c: New file.
	* include/dirent.h: Declare __alloc_dir.
	* sysdeps/generic/fdopendir.c: New file.
	* sysdeps/unix/fdopendir.c: New file.
	* sysdeps/unix/opendir.c: Split off back part of opendir into new
	function __alloc_dir.
2005-09-28 21:19:53 +00:00
Roland McGrath
bb8f6637b4 [BZ #1384]
2005-09-26  Steven Munroe  <sjmunroe@us.ibm.com>
	[BZ #1384]
	* sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn,
	ynf results.
2005-09-28 20:05:25 +00:00
Ulrich Drepper
2c05d33f90 [BZ #1302]
2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
            Ulrich Drepper  <drepper@redhat.com>

	[BZ #1302]
	Change bitset word type from unsigned int to unsigned long int,
	as this has better performance on typical 64-bit hosts.  Change
	bitset type name to bitset_t.
	* posix/regcomp.c (build_equiv_class, build_charclass):
	(build_range_exp, build_collating_symbol):
	Prefer bitset_t to re_bitset_ptr_t in prototypes, when the actual
	argument is a bitset.  This is merely a style issue, but it makes
	it clearer that an entire array is expected.
	(re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps,
	lower_subexp): Adjust for new bitset_t definition.
	(lower_subexp, parse_bracket_exp, built_charclass_op): Likewise.
	* posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain,
	bitset_not, bitset_merge, bitset_set_all, bitset_mask): Likewise.
	* posix/regexec.c (check_dst_limits_calc_pos_1,
	check_subexp_matching_top, build_trtable, group_nodes_into_DFAstates):
	Likewise.
	* posix/regcomp.c (utf8_sb_map): Don't assume initializer
	== 0xffffffff.
	* posix/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
	All uses changed.
	(BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
	(bitset_word_t): New type, replacing 'unsigned int' for bitset uses.
	All uses changed.
	(BITSET_WORD_MAX): New macro.
	(bitset_set, bitset_clear, bitset_contain, bitset_empty,
	(bitset_set_all, bitset_copy):  Adjust for bitset_t change.
	(bitset_empty, bitset_copy):
	Prefer sizeof (bitset_t) to multiplying it out ourselves.
	(bitset_not_merge): Remove; unused.
	(bitset_contain): Return bool, not unsigned int with one bit on.
	All callers changed.
	* posix/regexec.c (build_trtable): Don't assume bitset_t has no
	stricter alignment than re_node_set; do this by defining a new
	internal type struct dests_alloc and using it to allocate memory.
2005-09-28 17:33:18 +00:00
Ulrich Drepper
1873e3cd1a [BZ #1230]
2005-09-27  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1230]
	* stdlib/strtod_l.c (STRNCASECMP): Always use C locale object.
	(TOLOWER_C): Define.  Use it when recognizing inf and nan.
	* stdlib/Makefile (tests): Add bug-strtod2.
	* stdlib/bug-strtod2.c: New file.
2005-09-28 06:09:24 +00:00
Ulrich Drepper
eb793d1e84 * dlfcn/bug-atexit1.c: New file.
* dlfcn/bug-atexit1-lib.c: New file.
	* dlfcn/bug-atexit2.c: New file.
	* dlfcn/bug-atexit2-lib.c: New file.
2005-09-28 05:31:16 +00:00
Ulrich Drepper
7237d70417 [BZ #1158]
* stdlib/cxa_atexit.c (__new_exitfn): Rewrite to preserve order in
	which the functions were registered.
	* dlfcn/Makefile: Add rules to build and run bug-atexit1 and
	bug-atexit2.
	* dlfcn/bug-atext1.c: New file.
	* dlfcn/bug-atext1-lib.c: New file.
	* dlfcn/bug-atext2.c: New file.
	* dlfcn/bug-atext2-lib.c: New file.
2005-09-28 00:14:50 +00:00
Roland McGrath
e6f8907b08 [BZ #1361]
[BZ #1361]
2005-09-27 21:46:57 +00:00
Roland McGrath
8010dc0b15 * argp/argp-fmtstream.h [HAVE_CONFIG_H]: Do not #include <config.h>.
* argp/argp-eexst.c, argp/argp-fmtstream.c, argp/argp-fs-xinl.c,
	argp/argp-xinl.c: Fix up whitespace.
2005-09-27 21:45:51 +00:00
Ulrich Drepper
cae6ebb2c9 [BZ #1078]
2005-09-27  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1078]
	* libio/fileops.c (_IO_new_file_xsputn): Determine amount of
	available space in non-line-buffered buffer correctly.
	* libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
	* stdio-common/Makefile (tests): Add tst-fwrite.
	* stdio-common/tst-fwrite.c: New file.
2005-09-27 19:40:49 +00:00
Ulrich Drepper
7dac9f3d90 [BZ #838]
* malloc/arena.c (ptmalloc_lock_all): If global lock already taken
	by the same thread, just bump the counter.
	(ptmalloc_unlock_all): If counter for recursive locks hasn't reached
	zero, don't do anything else.
	* malloc/Makefile (tests): Add tst-mallocfork.
	* malloc/tst-mallocfork.c: New file.
2005-09-27 05:45:26 +00:00
Ulrich Drepper
2e79fa3ebc [BZ #808] 2005-09-27 01:56:38 +00:00
Ulrich Drepper
4b04154dcd [BZ #786]
* malloc/malloc.c (_int_realloc): Make error message clearer.
2005-09-27 01:55:24 +00:00
Ulrich Drepper
b5d839c996 [BZ #713]
2005-09-26  Ulrich Drepper  <drepper@redhat.com>
	[BZ #713]
	* libio/iofgets.c: Treat N==1 correctly.
	* libio/iofgets_u.c: Likewise.
	* libio/iofgetws.c: Likewise.
	* libio/iofgetws_u.c: Likewise.
	* stdio-common/Makefile (tests): Add tst-fgets.
	* stdio-common/tst-fgets.c: New file.
2005-09-27 00:00:42 +00:00
Ulrich Drepper
9a5933834b [BZ #652]
2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
	[BZ #652]
	* posix/getconf.c: Add new option -a to print the names of
	the current system configuration variables to stdout.
	Based on patch from Josh Aas <josha@sgi.com>.
2005-09-26 23:02:01 +00:00
Ulrich Drepper
419bcf40d7 [BZ #644]
* sysdeps/posix/getaddrinfo.c (fls): New function.
	(gaih_inet): Don't use ffs, use fls.  Convert address to native byte
	order first.
	* posix/Makefile (tests): Add tst-rfc3484.
	* posix/tst-rfc3484.c: New file.
2005-09-26 21:17:54 +00:00
Roland McGrath
43b0572f8a typo
* sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop if
2005-09-26 19:58:50 +00:00
Ulrich Drepper
4e62e2581c * libio/oldiofclose.c (_IO_old_fclose): Likewise. 2005-09-26 17:02:19 +00:00
Ulrich Drepper
407a551539 [BZ #627]
* libio/iofclose.c (_IO_new_fclose): Unlock the internal lock
	before destroying it as part of the _IO_FINISH call.
2005-09-26 16:56:27 +00:00
Ulrich Drepper
207cce4c47 [BZ #524]
* sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop of
	number of bits is multiple of 8.
	Patch by Fredrik Tolf <fredrik@dolda2000.com>.
2005-09-26 16:12:12 +00:00
Ulrich Drepper
7f71c55ddf [BZ #516]
* elf/dl-load.c: Report failed loading due to ELF class mismatch
	with better words.
2005-09-26 15:58:00 +00:00
Ulrich Drepper
76de2021b9 [BZ #162]
2005-09-26  Ulrich Drepper  <drepper@redhat.com>
	[BZ #162]
	* manual/llio.texi (Waiting for I/O): Correct description of read
	conditions reported by select.
2005-09-26 14:49:32 +00:00
Ulrich Drepper
9c5a790487 * inet/getnetgrent_r.c (innetgr): Call endfct even if result != 0.
Return 1 only if result == 1.  Patch by Benoit Capelle.
2005-09-25 22:55:11 +00:00
Ulrich Drepper
c1e3681907 [BZ #278]
* manual/stdio.texi (Hook Functions): Correct type of position
	parameter of seeker and fix fallout of the change in the text.

	* wcsmbs/tst-mbrtowc2.c: New file.
	* wcsmbs/Makefile (tests): Add tst-mbrtowc2.
2005-09-25 18:26:41 +00:00
Ulrich Drepper
2cf8a390dd [BZ #714]
2005-09-25  Ulrich Drepper  <drepper@redhat.com>
	[BZ #714]
	* iconv/loop.c [!STORE_REST] (SINGLE): Correctly record number of
	left-over bytes and store them correctly.
	* iconvdata/tst-iconv6.c: New file.
	* iconvdata/Makefile (tests): Add tst-iconv6.
2005-09-25 17:12:25 +00:00
Roland McGrath
537599773a * sysdeps/unix/sysv/i386/signal.S: Removed, saved in ports repository.
* sysdeps/unix/sysv/i386/sigreturn.S: Likewise.
2005-09-25 00:44:39 +00:00
Ulrich Drepper
3404cbf814 [BZ #545]
* locale/iso-639.def: More updates from the current spec.
2005-09-24 17:59:10 +00:00
Ulrich Drepper
c093ea4f4c * locale/programs/ld-address.c (address_finish): Produce better
error messages for invalid lang_ab use.
2005-09-24 16:37:16 +00:00
Ulrich Drepper
d29f5cc776 * locale/iso-639.def: Add a few updates from current spec. 2005-09-24 16:18:50 +00:00
Ulrich Drepper
b6f6ee932c [BZ #704]
* locale/iso-4217.def: Replace MGF with MGA.
2005-09-23 19:09:00 +00:00
Ulrich Drepper
294bda1b5a [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>
2005-09-23 18:48:38 +00:00
Ulrich Drepper
32053042d4 [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.
2005-09-23 16:36:09 +00:00
Ulrich Drepper
997470b3e1 [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>.
2005-09-23 06:11:29 +00:00
Ulrich Drepper
8f7aee9228 [BZ #1035]
* locale/iso-4217.def: Replace TRL entry with TRY for new Turkish Lira.
2005-09-22 17:31:29 +00:00
Ulrich Drepper
2024f7d4eb [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.
2005-09-22 14:36:18 +00:00
Roland McGrath
5eac47606b * elf/dl-tsd.c (__libc_dl_error_tsd): Use attribute_tls_model_ie for
static __thread variable.
	From Alexandre Oliva <aoliva@redhat.com>
2005-09-22 07:29:50 +00:00
Roland McGrath
f7ffeb91cd * Makefile ($(objpfx)c++-types-check.out): Use $<, not $^, in command.
Reported by Alexandre Oliva <aoliva@redhat.com>.
2005-09-22 07:07:42 +00:00
Roland McGrath
a8d131a717 * nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen. 2005-09-20 20:15:15 +00:00
Roland McGrath
3dead50099 [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.
2005-09-20 07:46:34 +00:00
Richard Henderson
ab209d3a5c [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.
2005-09-20 05:35:42 +00:00
Ulrich Drepper
bf95d205bd [BZ #1010]
* sysdeps/unix/sockatmark.c (sockatmark): Use SIOCATMARK correctly.
2005-09-17 23:37:14 +00:00
Ulrich Drepper
2009127c64 [BZ #1053]
* debug/xtrace.sh: Add missing escape character in -? match.
	Patch by Peter Breitenlohner <peb@mppmu.mpg.de>.
2005-09-17 17:31:56 +00:00
Ulrich Drepper
ff1ed56300 [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.
2005-09-17 17:24:20 +00:00
Andreas Jaeger
da32adea56 * timezone/zdump.c: Include ctype.h.
2005-09-17  Andreas Jaeger  <aj@suse.de>

	* timezone/zdump.c: Include ctype.h.
2005-09-17 17:19:31 +00:00
Andreas Jaeger
1dbcf766bb [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.
2005-09-16 13:12:49 +00:00
Andreas Jaeger
2c923c369e [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.
2005-09-16 12:20:49 +00:00
Ulrich Drepper
141f0a9cbe * sysdeps/posix/spawni.c (__spawni): Automatically recognize some
more cases when we can use vfork.
2005-09-13 18:45:58 +00:00
Roland McGrath
2ac057a069 [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.
2005-09-13 17:46:15 +00:00
Roland McGrath
ad41c28e66 [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>.
2005-09-12 19:56:29 +00:00