Commit Graph

14999 Commits

Author SHA1 Message Date
Jakub Jelinek
2dec9fc459 /tmp/T 2007-07-12 14:35:54 +00:00
Jakub Jelinek
107116b1c4 /tmp/T 2007-07-12 14:31:37 +00:00
Jakub Jelinek
d21c82bee0 /tmp/T 2007-07-12 14:30:34 +00:00
Jakub Jelinek
c2e08530c8 2006-12-19 Jakub Jelinek <jakub@redhat.com>
* stdlib/Makefile (tests): Add tst-makecontext.
	* stdlib/tst-makecontext.c: New test.

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
	(__makecontext): Don't realign uc_mcontext.uc_regs.

2006-12-13  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
	kernel-features.h.
2007-07-10 14:44:15 +00:00
Jakub Jelinek
5e03785111 * stdlib/tst-makecontext.c: Include errno.h. Change main()
to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
	(do_test): Check errno and exit(0) if ENOSYS.
2007-01-12 18:24:52 +00:00
Jakub Jelinek
85b113535d * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
thousands separators.
	* stdlib/Makefile: Add rules to build and run tst-strtod4.
	* stdlib/tst-strtod4.c: New test.

	[BZ #3855]
	* stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
	hexadecimal digit should accept just the initial 0.
	* stdlib/tst-strtod2.c (tests): New variable.
	(do_test): Run several tests rather than just one.
2007-01-12 18:23:27 +00:00
Jakub Jelinek
47e2225161 * shlib-versions: Fix sparc64 linux target specification. 2007-01-12 18:14:34 +00:00
Jakub Jelinek
e8cb3d7981 * stdlib/Makefile (tst-strtod3-ENV): Define.
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
	separators also if no non-zero digits found.
	* stdlib/Makefile (tests): Add tst-strtod3.

	[BZ #3664]
	* stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
	empty parsed strings.
	* stdlib/Makefile (tests): Add tst-strtod2.
	* stdlib/tst-strtod2.c: New file.

	[BZ #3673]
	* stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
	computation.
	* stdlib/Makefile (tests): Add tst-atof2.
	* stdlib/tst-atof2.c: New file.

	[BZ #3674]
	* stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
	correctly if removing trailing zero of hex-float.
	* stdlib/Makefile (tests): Add tst-atof1.
	* stdlib/tst-atof1.c: New file.
2007-01-12 18:07:19 +00:00
Jakub Jelinek
2d54f6629e * string/Makefile (tst-strxfrm2-ENV): Define.
* string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
	if N is one bigger than return value.
	* string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
	and l1 last arguments, if buf is defined, verify the return value
	equals to strlen (buf) and verify no byte beyond passed length
	is modified.

	* string/Makefile (tests): Add tst-strxfrm2.
	* string/tst-strxfrm2.c: New file.

	* string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
	optimization even if needed > n.
2007-01-12 18:02:24 +00:00
Jakub Jelinek
cf7056af7b * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
blacklist the group till after we look it up.
2007-01-12 17:59:51 +00:00
Jakub Jelinek
3a055f2781 * include/atomic.h (atomic_forced_read): New macro.
* sysdeps/unix/sysv/linux/pthread_kill.c (pthread_kill): Make sure
	tid isn't reread from pd->tid in between ESRCH test and the syscall.
2007-01-12 17:58:08 +00:00
Jakub Jelinek
0af68ba501 * stdlib/Makefile (tests): Add tst-makecontext.
* stdlib/tst-makecontext.c: New test.

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
	(__makecontext): Don't realign uc_mcontext.uc_regs.

	* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
	kernel-features.h.
2007-01-12 17:55:39 +00:00
Jakub Jelinek
3ea4b76557 * nss/getXXbyYY_r.c: Include atomic.h.
(INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
	add atomic_write_barrier () in between.
2007-01-12 17:53:27 +00:00
Jakub Jelinek
0bba79a9a4 [BZ #3747]
* stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
	[-231 .. 231) range.
	* stdlib/tst-rand48.c (main): Fix expected values for 64-bit
	targets.
	* stdlib/tst-rand48-2.c: New test.
	* stdlib/Makefile (tests): Add tst-rand48-2.
2007-01-12 17:52:07 +00:00
Jakub Jelinek
b1d424b6b0 * misc/tst-pselect.c (do_test): Fix sigblock argument.
* misc/tst-pselect.c (do_test): Make sure the helper process is
	terminating when the test is aborted.
2007-01-12 17:49:04 +00:00
Jakub Jelinek
6d122c1de8 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
(ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
	* sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
	(__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
	ENOTTY.
	* io/Makefile: Add rules to build and run tst-ttyname_r test.
	* io/tst-ttyname_r.c: New test.
2007-01-12 17:27:52 +00:00
Jakub Jelinek
e852261281 [BZ #2337]
* libio/Makefile (tests): Add tst-setvbuf1.
	* libio/tst-setvbuf1.c: New file.

	[BZ #2337]
	* libio/genops.c (__uflow): Fix a typo.
	* libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
	nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
	the narrow buffer size.

	[BZ #2337]
	* libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
	* libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
	_IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
	in _flags.
	* libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
	_IO_wstr_finish): Likewise.
	* libio/wmemstream.c (open_wmemstream): Likewise.
	* libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
	even for wide streams.
2007-01-12 17:25:38 +00:00
Jakub Jelinek
4570029c28 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
Start searching for next comma at p rather than rest.
	* misc/Makefile (tests): Add tst-mntent2.
	* misc/tst-mntent2.c: New test.
2007-01-12 17:20:09 +00:00
Jakub Jelinek
b6c657f557 [BZ #3632]
* include/features.h: Fix comment about default value for
	_POSIX_C_SOURCE.
2007-01-12 17:16:43 +00:00
Jakub Jelinek
f1985efa52 * misc/getusershell.c (initshells): Check for integer overflows.
Make strings buffer one bigger as fgets always succeeds when second
	argument is 1.  Don't use calloc for shells array.  Disallow
	/ as shell.
2007-01-12 17:11:28 +00:00
Jakub Jelinek
9a725509fd * nis/nis_subr.c (nis_getnames): Revert last change.
* nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.

	* nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
	* sysdeps/generic/unsecvars.h: Add NIS_PATH.
2007-01-12 17:05:59 +00:00
Jakub Jelinek
564d69540b * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
(ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
	* sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
	(__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
	ENOTTY.
	* io/Makefile: Add rules to build and run tst-ttyname_r test.
	* io/tst-ttyname_r.c: New test.
2007-01-12 17:04:39 +00:00
Jakub Jelinek
ca26b47f56 * elf/dl-support.c: Include dl-procinfo.h.
* sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
	PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
	PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
	Define.
	(_dl_string_platform): Use PPC_PLATFORM_* macros instead of
	hardcoded constants.
	* sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
	PPC_PLATFORM_* macros for array designators.

	* sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
	names to the beginning.
	(_dl_powerpc_platforms): Add "power6x".
	* sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
	(HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
	(_DL_PLATFORMS_COUNT): Increase.
	(_dl_string_platform): Handle power6x case.
	* sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
	PPC_FEATURE_POWER6_EXT): Define.
	(PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
2007-01-12 17:02:00 +00:00
Jakub Jelinek
dcfbf36aae [BZ #3559]
* sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
	malloc crashed.
2007-01-12 16:59:03 +00:00
Jakub Jelinek
c8fe889a43 * nss/nss_files/files-alias.c (get_next_alias): Set line back
to first_unused after parsing :include: file.
2007-01-12 15:56:58 +00:00
Jakub Jelinek
bae790d6ab * po/nl.po: Update from translation team.
* po/sv.po: Update from translation team.

	* po/sv.po: Update from translation team.

	* po/sv.po: Update from translation team.

	* po/sv.po: Update from translation team.

	* po/tr.po: Update from translation team.

	* po/pl.po: Update from translation team.
2007-01-12 15:55:12 +00:00
Jakub Jelinek
54f6949314 [BZ #3451]
* sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
	change atomic.
	(ceil): Likewise.
2007-01-12 15:31:04 +00:00
Jakub Jelinek
eef3503f0c * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
noinline attribute.

	* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
	noinline attribute.

	* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
	Update handling of cache descriptor 0x49 for new models.
	* sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
	Likewise.
2007-01-12 15:29:13 +00:00
Jakub Jelinek
2ac9474752 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
	return false, otherwise return true.
	(cache_rpath): Return decompose_rpath return value.
2007-01-12 15:28:03 +00:00
Jakub Jelinek
572213a41b * locales/mai_IN: New file.
Provided by Rajesh Ranjan <rajeshkajha@yahoo.com>.

	* SUPPORTED: Add mai_IN/UTF-8.
2007-01-12 15:26:50 +00:00
Jakub Jelinek
081f0508f2 * malloc/memusage.c (dest): Reset not_me back to false after
printing statistics.
2007-01-12 15:25:43 +00:00
Jakub Jelinek
a714d78077 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
split out locking and parameter checking.
	(_dl_close): Call _dl_close_worker after locking and checking.
	* elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
	_dl_close.
	* elf/Makefile: Add rules to build and run tst-thrlock.
	* elf/tst-thrlock.c:  New file.

	[BZ #3429]
	* elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
	we are sure we do not need it anymore for _dl_close.  Also move
	the asserts inside the lock region.
	Patch mostly by Suzuki <suzuki@in.ibm.com>.
2007-01-12 15:21:33 +00:00
Jakub Jelinek
ddbd39834f * nptl_db/db_info.c [TLS_DTV_AT_TP]: Fixed size init for dtvp
to sizeof a pointer, instead of sizeof the union.
2007-01-12 15:18:15 +00:00
Jakub Jelinek
9ea3b0192f * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
as signed longs, check for x_base + pos overflow.
	* sunrpc/Makefile (tests): Add tst-xdrmem2.
	* sunrpc/tst-xdrmem2.c: New test.
2007-01-12 15:09:57 +00:00
Jakub Jelinek
9b004c59dd [BZ #3369]
* sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
	and 7.
2007-01-12 15:07:32 +00:00
Jakub Jelinek
5e409799bd * elf/dl-minimal.c (realloc): Optimize last patch.
[BZ #3352]
	* elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
	and use memcpy() if it does.
2007-01-12 15:02:01 +00:00
Jakub Jelinek
97a8040dde [BZ #3320]
* locales/es_ES (LC_TIME): Add week, first_weekday, and first_workday.
2007-01-12 14:59:44 +00:00
Jakub Jelinek
472246d5c8 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset. 2007-01-12 14:58:41 +00:00
Jakub Jelinek
d1c129764c * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
components which lack them.

	* nis/nis_subr.c (nis_getnames): Make sure that we always return
	at least one entry consisting of the parameter concatenated with
	the domain.
2007-01-12 14:57:15 +00:00
Jakub Jelinek
f40372e632 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
rather than r->r_brk.
2007-01-12 14:54:57 +00:00
Jakub Jelinek
00e3dec802 * nis/nis_table.c (nis_list): If __follow_path fails in the new
code, make sure the nis_freeresult call doesn't crash and that the
	result is reported correctly.

	* nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
	when callback is NULL.

	* nis/Versions (libnss_nisplus): Add
	_nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
	* nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
	* nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
	_nss_create_tablename): Rename to...
	(grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
	... these.  No longer static.
	(internal_setgrent): Adjust users.
	(_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
	Don't use locking around _nss_grp_create_tablename call.
	* nis/nss_nisplus/nisplus-initgroups.c: New file.
2007-01-12 14:37:24 +00:00
Ulrich Drepper
d6220e9ee3 Include errno.h. Change main() to do_test(). Define TEST_FUNCTION. Include test-skeleton.c. (do_test): Check errno and exit(0) if ENOSYS. 2007-01-11 21:51:00 +00:00
Ulrich Drepper
43b9d65740 [BZ #3855]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
	hexadecimal digit should accept just the initial 0.
	* stdlib/tst-strtod2.c (tests): New variable.
	(do_test): Run several tests rather than just one.

2007-01-11  Jakub Jelinek  <jakub@redhat.com>
2007-01-11 17:28:58 +00:00
Ulrich Drepper
66193697e0 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Cleanups. Define
FUTEX_CMP_REQUEUE and lll_futex_requeue.
2007-01-11 05:05:17 +00:00
Ulrich Drepper
929340bf57 Cleanups. Define FUTEX_CMP_REQUEUE and lll_futex_requeue. 2007-01-11 04:58:18 +00:00
Jakub Jelinek
1c7c7e9095 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
* sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2007-01-11  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/soft-fp/sfp-machine.h: Remove.
	* sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2007-01-10 23:28:46 +00:00
Jakub Jelinek
14a31e359e * shlib-versions: Fix sparc64 linux target specification.
2006-12-28  David S. Miller  <davem@davemloft.net>

	* shlib-versions: Fix sparc64 linux target specification.
2007-01-10 23:24:02 +00:00
Ulrich Drepper
a744da9059 * io/fts.c: Make sure fts_cur is always valid after return from
fts_read.
	Patch by Miloslav Trmac <mitr@redhat.com>.
2007-01-10 19:41:26 +00:00
Ulrich Drepper
0f841e93f1 Make sure fts_cur is always valid after return from fts_read. 2007-01-10 18:38:19 +00:00
Jakub Jelinek
e013caa79f * elf/elf.h (R_MIPS_GLOB_DAT): Define.
(R_MIPS_NUM): Bump by 1.
2006-10-27  Richard Sandiford  <richard@codesourcery.com>

	* elf/elf.h (R_MIPS_GLOB_DAT): Define.
	(R_MIPS_NUM): Bump by 1.
2007-01-08 13:09:54 +00:00