Commit Graph

11027 Commits

Author SHA1 Message Date
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 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 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
Ulrich Drepper dcdcf4b9c9 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
creat entries.
2007-11-23 15:20:57 +00:00
Ulrich Drepper ea2c47b6be * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
Add netiucv/iucv.h.
	* sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
	* sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
	protocol.
	* sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
	* sysdeps/unix/sysv/linux/s390/opensock.c: New file.
	* sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2007-11-23 15:19:41 +00:00
Ulrich Drepper 70d5b6ef41 Partially based on a patch by Petr Baudis <pasky@suse.cz>. 2007-11-23 06:39:08 +00:00
Ulrich Drepper 7ea8eb02b0 [BZ #5382]
* nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
	* nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
	* nscd/mem.c (gc): Don't allocate arrays on stack if it can
	overflow it.

	* sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
	Return zero in case thread library is not NPTL.
2007-11-23 06:37:58 +00:00
Ulrich Drepper 5c3a3dba22 [BZ #5375]
* resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
	initializing interface list.
2007-11-23 03:03:59 +00:00
Ulrich Drepper 8588312396 [BZ #5378]
* nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
	use result of nss_getgrgid_r if nothing was found.  For other
	error return with a failure.
	Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2007-11-23 02:36:37 +00:00
Ulrich Drepper 3a63267450 * locale/programs/ld-collate.c (collate_read): Fix loop to match
macro name.
2007-11-22 22:21:08 +00:00
Ulrich Drepper ee72b97189 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
(get_scope): For IPv4 scope, use scopes table.
	(fini): Free scopes table if necessary.
	(free_scopelist): New function.
	(scopecmp): New function.
	(gaiconf_init): Also handle scopev4 entries.
	* posix/tst-rfc3484.c (do_test): Initialize scopes.
	* posix/tst-rfc3484-2.c (do_test): Likewise.
	* posix/gai.conf: Document scopev4 defaults.
	* posix/Makefile (tests): Add tst-rfc3484-3.
	* posix/tst-rfc3484-3.c: New file.
2007-11-20 00:41:22 +00:00
Ulrich Drepper f4a7976578 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
Teredo tunnels.
2007-11-19 17:31:40 +00:00
Ulrich Drepper b73f9135aa * posix/gai.conf: Update for current default tables.
2007-11-19  Ulrich Drepper  <drepper@redhat.com>
2007-11-19 17:31:04 +00:00
Ulrich Drepper 429bd64df3 * po/tr.po: Update from translation team. 2007-11-19 10:10:46 +00:00
Roland McGrath 76cf98894f * manual/arith.texi (Remainder Functions): Spelling fix.
From Shaun Silk <genix@mysoul.com.au>.
2007-11-19 01:00:59 +00:00
Roland McGrath 3c9af2594f * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value. 2007-11-18 22:51:20 +00:00
Ulrich Drepper 5879ad50b9 * po/zh_CN.po: Update from translation team. 2007-11-18 05:43:03 +00:00
Ulrich Drepper 238346abad * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
Add sys/signalfd.h and sys/eventfd.h.
2007-11-17 08:49:48 +00:00
Ulrich Drepper b80b9c77ac [BZ #5346]
2007-11-15  Bruno Haible  <bruno@clisp.org>
	[BZ #5346]
	* intl/dcigettext.c (struct known_translation_t): Turn msgid into a
	union.
	(transcmp): Use the appropriate part of s1->msgid and s2->msgid.
	(DCIGETTEXT): Change the allocation of the 'search' variable so that
	it needs only fixed stack space. Delay the initialization of
	msgid_len until it is needed.
2007-11-17 07:37:47 +00:00
Andreas Jaeger 2da2501c3d Update.
2007-11-15  Andreas Jaeger  <aj@suse.de>

	* sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
	Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2007-11-15 19:06:20 +00:00
Ulrich Drepper 68a6dcf5da * po/ko.po: Update from translation team. 2007-11-15 16:42:36 +00:00
Ulrich Drepper 1e2692c922 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
significantly.  The device type is also part of the ifinfomsg data.
2007-11-15 00:03:41 +00:00
Ulrich Drepper cbd52634e4 * po/nl.po: Likewise. 2007-11-14 20:46:56 +00:00
Ulrich Drepper 84e6cc7c0d * po/sv.po: Update from translation team. 2007-11-14 20:45:46 +00:00
Ulrich Drepper f9e2261b7e * nscd/cache.c (prune_cache): If cache is empty, instruct caller
to wake up in 24 hours.
2007-11-14 15:26:10 +00:00
Ulrich Drepper 43850227c9 * nscd/gai.c (__ioctl): Define. Include check_native.c. 2007-11-14 15:14:05 +00:00
Ulrich Drepper 1a821d824f * po/cs.po: Update from translation team.
* po/pl.po: Likewise.
2007-11-14 07:01:23 +00:00
Ulrich Drepper 773e79b316 * include/ifaddrs.h: Remove in6ai_temporary.
(struct in6addrinfo): Add index element.
	Declare __check_native.
	* inet/Makefile (aux): Add check_native.
	* sysdeps/unix/sysv/linux/check_native.c: New file.
	* sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
	IFA_F_TEMPORARY.  Pass back ifa_index.
	* sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
	(rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
	call __check_native if necessary.
	(getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
	to sort addresses.  Pass information about the results.
	* posix/tst-rfc3484.c: Adjust for addition of index field and change
	of rfc3484_sort interface.
	* posix/tst-rfc3484-2.c: Likewise.
2007-11-14 06:58:35 +00:00
Ulrich Drepper e458144c99 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
* include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
	for _quicksort.
	* stdlib/msort.c (qsort): Now a wrapper around qsort_r.
	(qsort_r): Renamed from qsort.  Take additional parameter and pass it
	on as third parameter to compare function and _quicksort.
	* stdlib/qsort.c (_quicksort): Take additional parameter and pass on
	to the compare function.
	* stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
	* Versions.def: Add GLIBC_2.8 for libc.
2007-11-13 17:21:43 +00:00
Ulrich Drepper bd63f380d8 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
* posix/tst-rfc3484-2.c: Likewise.
2007-11-13 17:06:28 +00:00
Ulrich Drepper 5742e960d5 * include/kernel-features.h: Moved to...
* sysdeps/mach/hurd/kernel-features.h: ...here.
2007-11-13 16:28:48 +00:00
Roland McGrath a6ac7fdbe5 * sysdeps/i386/i586/memcpy_chk.S: New file.
* sysdeps/i386/i586/mempcpy_chk.S: Likewise.
	* sysdeps/i386/i586/memset_chk.S: Likewise.
2007-11-13 01:56:21 +00:00
Ulrich Drepper 6f3914d5a3 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
* sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
	list of interfaces.  Also store prefix length.
	* sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
	(rfc3484_sort): In rule 9, for IPv4 addresses count only matching
	prefix if source and destination address are in the same subnet.
	(getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
	Always look for matching record in in6ai list.
	Correct source_addr_len value for IPv6->IPv4 converted records.
2007-11-12 23:55:58 +00:00
Roland McGrath 78cf5f6ac9 * include/kernel-features.h: New file. 2007-11-12 00:10:56 +00:00
Ulrich Drepper 01e7fdbb74 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
complications for 64-bit platforms.
2007-11-10 19:40:16 +00:00
Ulrich Drepper 7f745396c4 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
* sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
	* sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
	open64_2.
	* sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
	entries.
	* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
	* sysdeps/wordsize-64/alphasort.c: New file.
	* sysdeps/wordsize-64/alphasort64.c: New file.
	* sysdeps/wordsize-64/fseeko.c: New file.
	* sysdeps/wordsize-64/fseeko64.c: New file.
	* sysdeps/wordsize-64/ftello.c: New file.
	* sysdeps/wordsize-64/ftello64.c: New file.
	* sysdeps/wordsize-64/ftw.c: New file.
	* sysdeps/wordsize-64/ftw64.c: New file.
	* sysdeps/wordsize-64/iofgetpos.c: New file.
	* sysdeps/wordsize-64/iofgetpos64.c: New file.
	* sysdeps/wordsize-64/iofopen.c: New file.
	* sysdeps/wordsize-64/iofopen64.c: New file.
	* sysdeps/wordsize-64/iofsetpos.c: New file.
	* sysdeps/wordsize-64/iofsetpos64.c: New file.
	* sysdeps/wordsize-64/lockf.c: New file.
	* sysdeps/wordsize-64/lockf64.c: New file.
	* sysdeps/wordsize-64/mkostemp.c: New file.
	* sysdeps/wordsize-64/mkostemp64.c: New file.
	* sysdeps/wordsize-64/mkstemp.c: New file.
	* sysdeps/wordsize-64/mkstemp64.c: New file.
	* sysdeps/wordsize-64/scandir.c: New file.
	* sysdeps/wordsize-64/scandir64.c: New file.
	* sysdeps/wordsize-64/tmpfile.c: New file.
	* sysdeps/wordsize-64/tmpfile64.c: New file.
	* sysdeps/wordsize-64/versionsort.c: New file.
	* sysdeps/wordsize-64/versionsort64.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
	* sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.

	* crypt/sha256-crypt.c: Fix a comment.
	* crypt/sha512-crypt.c: Likewise.
2007-11-10 19:36:06 +00:00
Ulrich Drepper f6ed654cab * sysdeps/x86_64/memset.S: Add sfence after movnti. 2007-11-08 01:07:04 +00:00