Commit Graph

15764 Commits

Author SHA1 Message Date
Ulrich Drepper 148e12ed12 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
	* stdlib/Makefile: Add rules to build and run tst-makecontext2.
	* stdlib/tst-makecontext2.c: New test.
2008-01-09 19:35:21 +00:00
Ulrich Drepper 71edcafa97 * libio/stdio.h (vscanf): Fix definition for loser compilers. 2008-01-08 01:19:15 +00:00
Ulrich Drepper 4e3be9d651 (vscanf): Fix definition for loser compilers. 2008-01-08 01:18:40 +00:00
Jakub Jelinek 0fbfe2f7d8 [BZ #5112]
* nscd/connections.c (restart): Fix condition.
2008-01-05  Jakub Jelinek  <jakub@redhat.com>

	[BZ #5112]
	* nscd/connections.c (restart): Fix condition.
2008-01-05 09:08:03 +00:00
Ulrich Drepper 8726a12e05 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
__ctype_toupper_loc): Add __THROW.
2008-01-03 19:51:01 +00:00
Ulrich Drepper ad586879b1 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
recognition of interface family.
2008-01-03 00:25:03 +00:00
Ulrich Drepper f4a1363eb3 * posix/getconf.c: Update copyright year.
* nss/getent.c: Likewise.
	* iconv/iconvconfig.c: Likewise.
	* iconv/iconv_prog.c: Likewise.
	* elf/ldconfig.c: Likewise.
	* catgets/gencat.c: Likewise.
	* csu/version.c: Likewise.
	* elf/ldd.bash.in: Likewise.
	* elf/sprof.c (print_version): Likewise.
	* locale/programs/locale.c: Likewise.
	* locale/programs/localedef.c: Likewise.
	* nscd/nscd.c (print_version): Likewise.
	* debug/xtrace.sh: Likewise.
	* malloc/memusage.sh: Likewise.
	* malloc/mtrace.pl: Likewise.
	* debug/catchsegv.sh: Likewise.
2008-01-02 19:26:03 +00:00
Ulrich Drepper 0dc6c5e4d6 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
second lookup.
2007-12-26 23:54:44 +00:00
Ulrich Drepper 80af8b826c * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2007-12-23 19:32:44 +00:00
Ulrich Drepper ee269826ab (intel_02_known): New entry 0x3f. 2007-12-23 19:32:28 +00:00
Roland McGrath 4bcecfb753 * inet/ether_line.c (ether_line): Remove unused variable.
2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* login/forkpty.c (forkpty): Add const qualifier to parameters termp
	and winp.
	* login/openpty.c (openpty): Likewise.
	* login/pty.h (openpty, forkpty): Likewise.
	* manual/terminal.texi (openpty, forkpty): Likewise.
2007-12-17 21:22:17 +00:00
Roland McGrath e42976314d 2007-12-17 Roland McGrath <roland@redhat.com>
* inet/ether_line.c (ether_line): Remove unused variable.
2007-12-17 21:22:02 +00:00
Ulrich Drepper 4cd4c5d6a2 * malloc/malloc.c (public_cALLOc): For arena other than
main_arena, count all bytes inside the mprotect_size range of the
	heap as uninitialized.
2007-12-17 18:44:04 +00:00
Ulrich Drepper d9961b6a4f * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
executable stacks.
2007-12-17 00:00:57 +00:00
Ulrich Drepper be8c1500c7 * malloc/tst-trim1.c: New file.
* malloc/Makefile (tests): Add tst-trim1.
2007-12-16 22:57:57 +00:00
Ulrich Drepper 68631c8eb9 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
mTRIm for all of them.
	(mTRIm): Additionally iterate over all free blocks and use madvise
	to free memory for all those blocks which contain at least one
	memory page.

	* malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2007-12-16 22:53:08 +00:00
Ulrich Drepper 52386be756 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
Return long.
	(__vdso_clock_gettime): Likewise.
2007-12-15 01:12:13 +00:00
Ulrich Drepper 78b767a0a6 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
First cast argument to long
	* sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
	return long.
2007-12-14 23:38:23 +00:00
Ulrich Drepper b8cca206e2 * sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
parameter.  Passed it as permission to mmap.
	* allocatestack.c (allocate_stack): Pass prot as second parameter
	to ARCH_RETRY_MMAP.
2007-12-14 16:33:44 +00:00
Ulrich Drepper bc3e1c1273 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
* locale/nl_langinfo_l.c: Real implementation, copied from
	nl_langinfo.c.
	* include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2007-12-14 03:54:07 +00:00
Ulrich Drepper 3eb0e1c6d6 ..
* tst-basic7.c: Allocate memory for the stack.
2007-12-12 18:41:10 +00:00
Ulrich Drepper 77751669d7 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
that would inhibit utf8-optimization of a regexp containing line-
	or buffer-anchors, e.g., `^', `$'.
2007-12-12 18:28:58 +00:00
Ulrich Drepper f63e506341 * time/bug-getdate1.c (do_test): Don't use century values which
aren't valid on 32-bit systems.
2007-12-12 18:23:00 +00:00
Ulrich Drepper a78814a99a [BZ #5477]
2007-12-12  Jakub Jelinek  <jakub@redhat.com>
	* sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
	(memmove): Rename to __memmove_g, with __asm__ ("memmove").
	* sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
	__strcat_g, __strncat_g): Add __asm__.

2007-12-12  Ulrich Drepper  <drepper@redhat.com>

	[BZ #5477]
	* io/fchmodat.c: Fix typo in stub_warning use.
	Patch by Petr Salinger.
2007-12-12 18:03:27 +00:00
Ulrich Drepper 58d1179512 [BZ #5463, BZ #5464]
* iconvdata/hp-thai8.c: New file.
	* iconvdata/Makefile: Add rules for hp-thai8.c.
	* iconvdata/tst-tables.sh: Add entry for HP-THAI8.
	* iconvdata/gconv-modules: Likewise.

	[BZ #5464]
	* iconvdata/hp-greek8.c: New file.
	* iconvdata/Makefile: Add rules for hp-greek8.c.
	* iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
	* iconvdata/gconv-modules: Likewise.

	[BZ #5463]
	* iconvdata/hp-turkish8.c: New file.
	* iconvdata/Makefile: Add rules for hp-turkish8.c.
	* iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
	* iconvdata/gconv-modules: Likewise.
2007-12-12 08:07:33 +00:00
Ulrich Drepper 189dce4f6a [BZ #5465]
2007-12-12  Ulrich Drepper  <drepper@redhat.com>
	[BZ #5465]
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
	(__pthread_cond_timedwait): Don't use VDSO.
2007-12-12 08:06:15 +00:00
Ulrich Drepper cbf5760e62 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
(shrink_heap): ... this new function.
	(heap_trim): Call shrink_heap instead of grow_heap.
2007-12-12 00:11:49 +00:00
Ulrich Drepper 17edb30c62 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
case don't call alloc_perturb.
2007-12-11 23:46:43 +00:00
Ulrich Drepper 65bc770f4e * charmaps/UTF-8: Add Unicode 5.1 entries. 2007-12-11 06:54:26 +00:00
Ulrich Drepper ae18718f58 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
possible.
	* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
	* sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2007-12-10 23:51:42 +00:00
Ulrich Drepper b4354cf420 [BZ #5424, BZ #5428, BZ #5451]
2007-12-08  Ulrich Drepper  <drepper@redhat.com>
	[BZ #5424]
	* stdio-common/vfprintf.c: Do not overflow when adding to done.
	* stdio-common/Makefile (tests): Add bug22.
	* stdio-common/bug22.c: New file.

	[BZ #5451]
	* time/getdate.c: Fix filling in default values.
	* time/bug-getdate1.c: New file.
	* time/Makefile: Add rules to build and run bug-getdate1.

	* iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
	* iconvdata/ebcdic-es.c: Likewise.
	* iconvdata/ebcdic-es-a.c: Likewise.
	* iconvdata/ebcdic-uk.c: Likewise.
	* iconvdata/iso8859-16.c: Likewise.
	* iconvdata/viscii.c: Likewise.
	* iconvdata/iso8859-9e.c: Likewise.
	* iconvdata/Makefile: Adjust appropriately.

	[BZ #5428]
	* wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
	__need_wint_t.

	* iconvdata/gconv-modules: Likewise.
2007-12-10 01:43:40 +00:00
Ulrich Drepper 87520cccf6 [BZ #5427]
* iconvdata/hp-roman9.c: New file.
	* iconvdata/Makefile: Add rules for hp-roman9.c.
	* iconvdata/tst-tables.sh: Add HP-ROMAN9.

	* iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
	* iconvdata/Makefile: Adjust appropriately.

	keyword for gcc's braced-groups.
2007-12-08 01:38:23 +00:00
Ulrich Drepper 26e21e7554 [BZ #5441, BZ #5452, BZ #5454]
2007-12-07  Ulrich Drepper  <drepper@redhat.com>
	[BZ #5441]
	* stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
	structure, it's allocated with alloca.
	* stdio-common/Makefile (tests): Add bug21.
	* stdio-common/bug21.c: New file.

2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>

	[BZ #5452]
	* sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
	  keyword for gcc's braced-groups.

2007-12-07  Ulrich Drepper  <drepper@redhat.com>

	[BZ #5454]
	* inet/ether_line.c: Strip hostname of whitespaces.
	* inet/Makefile (tests): Add tst-ether_line.
	* inet/tst-ether_line.c: New file.
2007-12-07 16:50:11 +00:00
Ulrich Drepper c9d65f0fbd * locales/si_LK (mon): Fix February and November spelling.
Patch by Danishka Navin <snavin@redhat.com>.
2007-12-05 06:52:49 +00:00
Ulrich Drepper 191ec77f9b * sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
Store 2 before returning ETIMEDOUT.
2007-12-05 02:31:48 +00:00
Ulrich Drepper da0ff4ae5b [BZ #5439]
* sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2007-12-03 06:17:25 +00:00
Ulrich Drepper 51bd20d93a [BZ #5435]
* sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2007-12-03 04:57:30 +00:00
Ulrich Drepper d90d025691 * stdlib/tst-setcontext.c: Catch the case where the links gets
messed up and we do not reach main again.
2007-12-03 04:12:05 +00:00
Ulrich Drepper 9e80c1231e * po/ca.po: Update from translation team. 2007-12-03 00:04:09 +00:00
Ulrich Drepper 6701afc727 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K. 2007-11-26 22:53:40 +00:00
Ulrich Drepper a912a4f843 Define __need_FILE also for __USE_XOPEN2K.
* wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2007-11-26 22:50:59 +00:00
Ulrich Drepper 79fb2e026b Define REG_ENOSYS also for Unix98.
* posix/regex.h (REG_ENOSYS): Likewise.
2007-11-26 13:07:53 +00:00
Ulrich Drepper ae4287f8b2 Declare fsync also for Unix98.
2007-11-26  Ulrich Drepper  <drepper@redhat.com>

	* posix/unistd.h: Declare fsync also for Unix98.
2007-11-26 12:53:17 +00:00
Ulrich Drepper 10a4c1e9c6 memory allocation failed. 2007-11-25 21:35:54 +00:00
Ulrich Drepper e8667ddc01 Clear array before use.
* nscd/hstcache.c (cache_addhst): Likewise.
	* nscd/grpcache.c (cache_addgr): Likewise.
	* nscd/servicescache.c (cache_addserv): Likewise.
	* nscd/pwdcache.c (cache_addpw): Likewise.
	* nscd/initgrcache.c (addinitgroupsX): Likewise.
2007-11-25 21:29:30 +00:00
Ulrich Drepper 30294ea449 * nscd/nscd.h (MAX_STACK_USE): Define.
* nscd/mem.c (MAX_STACK_USE): Remove definition here.
	(gc): Initialize stack_used based on allocation in prune_cache.
	* nscd/cache.c (prune_cache): Use heap for mark array if necessary.
	Clear array bfore use.

	* nscd/aicache.c (addhstaiX): Update statistics counter in case
	memory allocate failed.
2007-11-25 21:08:01 +00:00
Ulrich Drepper 609bb0712d * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
and creat system calls.
2007-11-24 03:23:39 +00:00
Ulrich Drepper 715db78bd4 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
* nscd/mem.c (gc): Don't allocate arrays on the stack if they can
	Return zero in case the thread library is not NPTL.
2007-11-24 03:12:25 +00:00
Ulrich Drepper c012be6f99 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
Store 2 before returning ETIMEDOUT.
	* sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
	* sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
	(__lll_lock_wait_private): Optimize.
	(__lll_lock_wait): Likewise.
2007-11-24 01:16:53 +00:00
Ulrich Drepper 37143323d8 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
strncat): Define as macros to avoid compile errors.
2007-11-23 15:21:46 +00:00