]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Prevent loader from loading itself
[thirdparty/glibc.git] / ChangeLog
1 2011-05-30 Ulrich Drepper <drepper@gmail.com>
2
3 * elf/rtld.c (dl_main): Don't allow the loader to load itself.
4
5 2011-05-29 Ulrich Drepper <drepper@gmail.com>
6
7 [BZ #12350]
8 * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
9 bit from old_res_options.
10 (gaih_inet): Likewise.
11
12 [BZ #11099]
13 * shadow/sgetspent_r.c (LINE_PARSER): Interpret nymeric field values
14 as signed.
15
16 * resolv/res_init.c (res_setoptions): Make the code more compact.
17
18 [BZ #11558]
19 * resolv/res_init.c (res_setoptions): Recognize use-vc option and
20 set RES_USEVC.
21
22 [BZ #11634]
23 * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
24
25 * malloc/malloc.h: Mark malloc hook variables as deprecated.
26
27 [BZ #11781]
28 * malloc/malloc.h: Declare malloc hook variables as volatile.
29
30 * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
31 in last patch.
32
33 [BZ #11799]
34 * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
35 SI_USER in the comment.
36 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
37 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
39
40 2011-05-28 Ulrich Drepper <drepper@gmail.com>
41
42 [BZ #12811]
43 * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44 grow the buffers more if it already has to be sufficient.
45 (build_wcs_upper_buffer): Likewise.
46 * posix/regexec.c (check_matching): Likewise.
47 (clean_state_log_if_needed): Likewise.
48 (extend_buffers): Don't enlarge buffers beyond size of the input
49 buffer.
50 Patches mostly by Emil Wojak <emil@wojak.eu>.
51 * posix/bug-regex32.c: New file.
52 * posix/Makefile (tests): Add bug-regex32.
53
54 * locale/findlocale.c (_nl_find_locale): Return right away if
55 _nl_explode_name failed.
56 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
57
58 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
59
60 * debug/xtrace.sh: Unify messages.
61 * malloc/memusage.sh: Likewise.
62
63 [BZ #12813]
64 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
65 time symbol from vDSO. Substitute with vsyscall if not available.
66 * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
67 __vdso_time.
68
69 * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
70 * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
71 * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
72 Add sendmmsg and internal_sendmmsg.
73 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
75 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
76
77 * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
78 * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
79 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
80
81 2011-05-27 Ulrich Drepper <drepper@gmail.com>
82
83 [BZ #12813]
84 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
85 Retrieve getcpu symbol from vDSO. Substitute with vsyscall if not
86 available.
87 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
88 __vdso_getcpu.
89
90 [BZ #12814]
91 * iconvdata/Makefile (tests): Add bug-iconv9.
92 * iconvdata/bug-iconv9.c: New file.
93
94 2011-05-27 Andreas Schwab <schwab@redhat.com>
95
96 [BZ #12814]
97 * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
98
99 2011-05-25 Jakub Jelinek <jakub@redhat.com>
100
101 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
102 (struct user_regs_struct): Change intcs field back to cs.
103
104 2011-05-25 Ulrich Drepper <drepper@gmail.com>
105
106 * po/ja.po: Update from translation team.
107
108 2011-05-23 Ulrich Drepper <drepper@gmail.com>
109
110 [BZ #12795]
111 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
112 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
113
114 2011-05-20 Andreas Schwab <schwab@redhat.com>
115
116 * stdlib/longlong.h: Update from GCC.
117
118 2011-05-23 Andreas Schwab <schwab@redhat.com>
119
120 * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
121 parameter name.
122 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
123 Add parameter name.
124 (__sysconf): Pass it down.
125
126 2011-05-22 Ulrich Drepper <drepper@gmail.com>
127
128 [BZ #12671]
129 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
130 some situations.
131 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
132 * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
133 add in in __libc_use_alloca calls. Adjust callers.
134 (glob): Use malloc in some situations.
135
136 * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
137 and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
138 pltexit.
139
140 2011-05-21 Ulrich Drepper <drepper@gmail.com>
141
142 * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
143 and CLOCK_BOOTTIME_ALARM.
144
145 [BZ #12782]
146 * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
147 is returned.
148
149 * string/_strerror.c (__strerror_r): Print negative errors as signed
150 numbers.
151
152 [BZ #12777]
153 * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
154 (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
155 * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
156
157 * configure.in: Fix typo in redirection and correct removal of test
158 files in two cases.
159
160 [BZ #12788]
161 * locale/setlocale.c (new_composite_name): Fix test to check for
162 identical name of all categories.
163
164 [BZ #12792]
165 * libio/filedoalloc.c (local_isatty): New function.
166 (_IO_file_doallocate): Use local_isatty.
167 * stdio-common/perror.c (perror): In case a new stream is used
168 forward the stream error.
169 * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
170 error flag.
171
172 2011-05-20 Ulrich Drepper <drepper@gmail.com>
173
174 [BZ #11869]
175 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
176 alloca.
177 * include/alloca.h (extend_alloca_account): Define.
178
179 [BZ #11857]
180 * posix/regex.h: Fix comments with documentation of user-accessible
181 fields after compilation and describe correct free'ing of pattern
182 after re_compile_pattern.
183 Patch by Reuben Thomas <rrt@sc3d.org>.
184
185 2011-05-18 Ryan S. Arnold <rsa@us.ibm.com>
186
187 * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
188 and -mno-altivec to prevent the compiler from using Altivec and/or
189 VSX instructions when the corresponding registers are not available.
190
191 2011-05-19 Andreas Schwab <schwab@redhat.com>
192
193 * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
194
195 2011-05-19 Ulrich Drepper <drepper@gmail.com>
196
197 * libio/freopen.c (freopen): Use __dup2, not dup2.
198 * libio/freopen64.c (freopen64): Likewise.
199
200 2011-05-17 H.J. Lu <hongjiu.lu@intel.com>
201
202 [BZ #12775]
203 * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
204 * math/Makefile (tests): Add test-powl.
205 (CFLAGS-test-powl.c): Define.
206 * math/test-powl.c: New file.
207
208 2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
209
210 * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
211
212 2011-05-17 Ulrich Drepper <drepper@gmail.com>
213
214 [BZ #11837]
215 * iconvdata/gb18030.c: Update to GB18020-2005.
216
217 2011-05-16 Ulrich Drepper <drepper@gmail.com>
218
219 * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
220 RE_SYNTAX_POSIX_AWK): Update to match recent development.
221 Patch by Aharon Robbins <arnold@skeeve.com>.
222
223 [BZ #11892]
224 * stdlib/putenv.c (putenv): Don't always create copy of the variable
225 on the stack.
226
227 [BZ #11895]
228 * misc/pselect.c (__pselect): Handle timeout value errors hidden
229 through underflows.
230
231 [BZ #12766]
232 * misc/error.c (error_at_line): Ensure file_name and old_file_name
233 point to strings before performing equality test for error_one_per_line
234 mode.
235
236 [BZ #11697]
237 * login/programs/pt_chown.c (do_pt_chown): Always call chown.
238
239 [BZ #11820]
240 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
241 (struct user_fpregs_struct): Avoid __uint*_t types.
242
243 [BZ #6420]
244 * malloc/mtrace.c (tr_where): Add additional parameter to point to
245 symbol info. Use it instead of calling _dl_addr locally.
246 (lock_and_info): New function.
247 (tr_freehook): Call lock_and_info and pass symbol info as additional
248 parameter to tr_where.
249 (tr_mallochook): Likewise.
250 (tr_reallochook): Likewise.
251 (tr_memalignhook): Likewise.
252
253 * malloc/mtrace.c: Remove support for USE_MTRACE_FILE. It is not
254 used and couldn't be at all thread-safe.
255
256 2011-05-15 Ulrich Drepper <drepper@gmail.com>
257
258 * libio/freopen.c (freopen): Don't close old file descriptor
259 before the new one is opened. Instead dup the new file descriptor
260 to the old one after the new stream is created.
261 * libio/freopen64.c (freopen64): Likewise.
262 * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
263 * libio/fileops.c (_IO_new_file_close_it): Handle new
264 _IO_FLAGS2_NOCLOSE flag.
265 (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
266 If _IO_file_open didn't set FD_CLOEXEC do it after the call.
267 * libio/oldfileops.c (_IO_old_file_close_it): Handle new
268 _IO_FLAGS2_NOCLOSE flag.
269 * include/unistd.h: Add hidden_proto for dup3.
270 Define __have_dup3.
271 * io/dup3.c: Define hidden symbol.
272 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
273
274 [BZ #7101]
275 * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
276 when an incomplete long option is used.
277 * posix/tst-getopt_long1.c: New file.
278 * posix/Makefile (tests): Add tst-getopt_long1.
279
280 [BZ #10138]
281 * scripts/config.guess: Update from autoconf-2.68.
282 * scripts/config.sub: Likewise.
283
284 [BZ #10157]
285 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
286 tests into ...
287 (has_cpuclock): ...this. New function.
288 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
289 macro here based on has_cpuclock code.
290
291 [BZ #10149]
292 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
293 First byte (not low byte) is now always NUL.
294 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
295
296 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
297 Use non-cancelable interfaces.
298
299 [BZ #9809]
300 * locale/iso-639.def: Add entry for Sorani.
301
302 [BZ #11901]
303 * include/stdlib.h: Move include protection to the right place.
304 Define abort_msg_s. Declare __abort_msg with it.
305 * stdlib/abort.c (__abort_msg): Adjust type.
306 * assert/assert.c (__assert_fail_base): New function. Majority
307 of code from __assert_fail. Allocate memory for __abort_msg with
308 mmap.
309 (__assert_fail): Now call __assert_fail_base.
310 * assert/assert-perr.c: Remove bulk of implementation. Use
311 __assert_fail_base.
312 * include/assert.hL Declare __assert_fail_base.
313 * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
314 mmap.
315 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
316
317 2011-05-14 Ulrich Drepper <drepper@gmail.com>
318
319 [BZ #11952]
320 [BZ #12453]
321 * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
322 until all modules are registered in the DTV.
323 * elf/Makefile: Add rules to build and run tst-tls19.
324 * elf/tst-tls19.c: New file.
325 * elf/tst-tls19mod1.c: New file.
326 * elf/tst-tls19mod2.c: New file.
327 * elf/tst-tls19mod3.c: New file.
328 Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
329
330 [BZ #12083]
331 * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
332 correctly.
333
334 [BZ #12601]
335 * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
336 two-byte sequence errors.
337 * iconvdata/Makefile (tests): Add bug-iconv8.
338 * iconvdata/bug-iconv8.c: New file.
339
340 [BZ #12626]
341 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
342 buf2 definition.
343
344 * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
345
346 [BZ #12432]
347 * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
348 (dummy_getcfa): New function.
349 (init): Get _Unwind_GetCFA address, use dummy if not found.
350 (backtrace_helper): In recursion check, also check whether CFA changes.
351 (__backtrace): Completely initialize arg.
352
353 * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
354 storing incomplete byte sequence in state object. Avoid testing for
355 guaranteed too small input if we know there is enough data available.
356
357 2011-05-11 Andreas Schwab <schwab@redhat.com>
358
359 * Makeconfig (+link-pie): Indent.
360 * Rules (binaries-pie): Define if $(have-fpie) and
361 $(build-shared).
362 (binaries-shared): Also filter out $(binaries-pie).
363 ($(addprefix $(objpfx),$(binaries-pie))): New rule.
364 * nscd/Makefile (others-pie): Add nscd.
365 (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
366 ($(objpfx)nscd): Remove command override.
367 * login/Makefile (others-pie): Add pt_chown.
368 ($(objpfx)pt_chown): Remove command override.
369 * elf/Makefile: Add PIE tests to tests and tests-pie variables and
370 remove command overrides.
371
372 2011-05-13 Ulrich Drepper <drepper@gmail.com>
373
374 * libio/tst_putwc.c: Fix error messages.
375
376 [BZ #12724]
377 * libio/fileops.c (_IO_new_file_close_it): Always flush when
378 currently writing and seek to current position when not.
379 * libio/Makefile (tests): Add bug-fclose1.
380 * libio/bug-fclose1.c: New file.
381
382 2011-05-12 Ulrich Drepper <drepper@gmail.com>
383
384 [BZ #12511]
385 * elf/dl-lookup.c (enter): Don't test for copy relocation here and
386 don't set DF_1_NODELETE here.
387 (do_lookup_x): When entering new entry test for copy relocation
388 and if necessary set DF_1_NODELETE flag.
389 * elf/tst-unique4.cc: New file.
390 * elf/tst-unique4.h: New file.
391 * elf/tst-unique4lib.cc: New file.
392 * elf/Makefile: Add rules to build and run tst-unique4.
393 Patch by Piotr Bury <pbury@goahead.com>.
394
395 2011-05-11 Ulrich Drepper <drepper@gmail.com>
396
397 [BZ #12052]
398 * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
399
400 [BZ #12625]
401 * misc/mntent_r.c (addmntent): Flush the stream after the output
402
403 [BZ #12393]
404 * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
405 (is_trusted_path_normalize): Skip initial colon. Append slash
406 to empty buffer. Duplicate is_trusted_path code but allow
407 constructed patch to be prefix.
408 (is_dst): Allow $ORIGIN followed by /.
409 (_dl_dst_substitute): Correct clearing of check_for_trusted.
410 Correct testing of result of is_trusted_path_normalize
411 (decompose_rpath): Fix warning.
412
413 2011-05-10 Ulrich Drepper <drepper@gmail.com>
414
415 [BZ #11257]
416 * grp/initgroups.c (internal_getgrouplist): When we found the service
417 list through the initgroups entry in nsswitch.conf do not always
418 continue on a successful lookup. Don't always use the
419 __nss_group_database value if it is set.
420 * nss/nsswitch.conf (initgroups): Change action for successful db
421 lookup to continue for compatibility.
422
423 2011-05-09 Ulrich Drepper <drepper@gmail.com>
424
425 [BZ #11532]
426 * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
427 and CP774 modules.
428 * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
429 and CP774 modules.
430 * iconvdata/tst-tables.sh: Likewise.
431 * iconvdata/cp770.c: New file.
432 * iconvdata/cp771.c: New file.
433 * iconvdata/cp772.c: New file.
434 * iconvdata/cp773.c: New file.
435 * iconvdata/cp774.c: New file.
436 * iconvdata/testdata/CP770: New file.
437 * iconvdata/testdata/CP770..UTF8: New file.
438 * iconvdata/testdata/CP771: New file.
439 * iconvdata/testdata/CP771..UTF8: New file.
440 * iconvdata/testdata/CP772: New file.
441 * iconvdata/testdata/CP772..UTF8: New file.
442 * iconvdata/testdata/CP773: New file.
443 * iconvdata/testdata/CP773..UTF8: New file.
444 * iconvdata/testdata/CP774: New file.
445 * iconvdata/testdata/CP774..UTF8: New file.
446
447 * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
448 END CHARMAP line.
449 * iconvdata/gen-8bit-gap.sh: Likewise.
450 * iconvdata/gen-8bit.sh: Likewise.
451
452 * locale/iso-639.def: Add ary entry.
453
454 [BZ #11258]
455 * locale/C-translit.h.in: Add U20A1 transliteration.
456
457 [BZ #12178]
458 * locale/iso-639.def: Add wae entry.
459 Patch by Kevin Bortis <bortis@translate-wae.ch>.
460
461 [BZ #12545]
462 * locale/programs/localedef.c (construct_output_path): Use ssize_t
463 for n.
464
465 [BZ #12711]
466 * locale/C-translit.h.in: Add entry for U20B9.
467 Patch by pravin.d.s@gmail.com.
468
469 2011-05-08 Ulrich Drepper <drepper@gmail.com>
470
471 [BZ #12713]
472 * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
473 ENAMETOOLONG use generic getcwd.
474 * sysdeps/posix/getcwd.c: Add support to use openat. Make usable
475 in rtld. Use *stat64.
476 * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
477 Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
478 * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
479 * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
480 * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
481 * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
482 * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
483 __fstatat64 macros.
484 * include/dirent.h: Add libc_hidden_proto for rewinddir.
485 * dirent/rewinddir.c: Add libc_hidden_def.
486 * sysdeps/mach/hurd/rewinddir.c: Likewise.
487 * sysdeps/unix/rewinddir.c: Likewise. Don't do locking outside libc.
488
489 * include/dirent.h (__alloc_dir): Add flags parameter.
490 * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
491 * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
492 __alloc_dir.
493 (__alloc_dir): Take new parameter. Don't call fcntl for invocations
494 from fdopendir if O_CLOEXEC is already set.
495
496 2011-03-15 Alan Modra <amodra@gmail.com>
497
498 * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
499 l_tls_firstbyte_offset non-zero. Save padding offset in
500 l_tls_firstbyte_offset for later use.
501 * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
502 freeing static tls block.
503
504 2011-03-05 Jonathan Nieder <jrnieder@gmail.com>
505
506 * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
507 where #ifdef was intended. The intent is to prevent ARG_MAX from
508 being defined by the kernel headers.
509
510 2011-05-07 Ulrich Drepper <drepper@gmail.com>
511
512 [BZ #12734]
513 * resolv/resolv.h: Define RES_NOTLDQUERY.
514 * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
515 no-tld-query and set RES_NOTLDQUERY.
516 * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
517 * resolv/res_query.c (__libc_res_nsearch): Backport changes from
518 modern BIND to search name as TLD unless forbidden.
519
520 2011-05-07 Petr Baudis <pasky@suse.cz>
521 Ulrich Drepper <drepper@gmail.com>
522
523 [BZ #12393]
524 * elf/dl-load.c (fillin_rpath): Move trusted path check...
525 (is_trusted_path): ...to here.
526 (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
527 (_dl_dst_substitute): Verify expanded $ORIGIN path elements
528 using is_trusted_path_normalize() in setuid scripts.
529
530 2011-05-06 Paul Pluzhnikov <ppluzhnikov@google.com>
531
532 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
533 __BEGIN/__END_DECLS.
534
535 2011-05-06 Ulrich Drepper <drepper@gmail.com>
536
537 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
538 NSS_STATUS_NOTFOUND if no record was found.
539
540 2011-05-05 Andreas Schwab <schwab@redhat.com>
541
542 * sunrpc/Makefile (headers): Add rpc/netdb.h.
543 (headers-not-in-tirpc): Remove rpc/netdb.h
544 * resolv/netdb.h: Revert last change.
545
546 2011-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
547
548 * Makeconfig (link-libc-static): Use --{start,end}-group to handle
549 circular dependency between libgcc.a and libc.a.
550
551 2011-05-05 Andreas Schwab <schwab@redhat.com>
552
553 * resolv/netdb.h: Don't include <rpc/netdb.h>.
554 * nis/Makefile: Don't install rpcsvc/*.
555 * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
556 instead of <rpc/types.h>.
557 (MAXHOSTNAMELEN): Define.
558
559 2011-05-03 Andreas Schwab <schwab@redhat.com>
560
561 * elf/ldconfig.c (add_dir): Don't crash on empty path.
562
563 2011-04-28 Maciej Babinski <mbabinski@google.com>
564
565 [BZ #12714]
566 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
567 gethostbyname4_r when IPv6 results are possible.
568
569 2011-05-02 Ulrich Drepper <drepper@gmail.com>
570
571 [BZ #12723]
572 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
573 _PC_PIPE_BUF handling.
574
575 2011-04-30 Bruno Haible <bruno@clisp.org>
576
577 [BZ #12717]
578 * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
579 * resolv/netdb.h (getnameinfo): Change type of flags parameter
580 to 'int'.
581 * inet/getnameinfo.c (getnameinfo): Likewise.
582
583 2011-04-29 Ulrich Drepper <drepper@gmail.com>
584
585 * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
586 to groups setting in database lookup.
587 * nss/nsswitch.conf: Add initgroups entry.
588
589 2011-04-22 Ulrich Drepper <drepper@gmail.com>
590
591 [BZ #12685]
592 * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
593 mode string.
594 Patch by Eric Blake <eblake@redhat.com>.
595
596 2011-04-20 H.J. Lu <hongjiu.lu@intel.com>
597
598 * sunrpc/Makefile (need-export-routines): Add svc_run.
599 (routines): Remove svc_run.
600 ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
601 * sunrpc/clnt_perr.c (clnt_perrno): Export.
602 * sunrpc/svc_run.c (svc_run): Likewise.
603 * sunrpc/svc_udp.c (svcudp_create): Likewise.
604
605 2011-04-21 Ulrich Drepper <drepper@gmail.com>
606
607 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
608 problem in reallocation in last patch.
609
610 2011-04-20 Ulrich Drepper <drepper@gmail.com>
611
612 * sunrpc/Makefile: Move inclusion of Rules.
613
614 2011-04-19 Ulrich Drepper <drepper@gmail.com>
615
616 * nss/nss_files/files-initgroups.c: New file.
617 * nss/Makefile (libnss_files-routines): Add files-initgroups.
618 * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
619 _nss_files_initgroups_dyn.
620
621 2011-03-31 Richard Sandiford <richard.sandiford@linaro.org>
622
623 * elf/elf.h (R_ARM_IRELATIVE): Define.
624
625 2011-04-19 Ulrich Drepper <drepper@gmail.com>
626
627 * po/ru.po: Update from translation team.
628
629 2011-04-17 Ulrich Drepper <drepper@gmail.com>
630
631 * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
632 dependencies.
633
634 2011-02-06 Mike Frysinger <vapier@gentoo.org>
635
636 [BZ #12653]
637 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
638 MEMCPY_CHK with USE_AS_BCOPY ifdef check.
639 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
640 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
641 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
642
643 2011-03-28 Andreas Schwab <schwab@linux-m68k.org>
644
645 * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
646 differing bytes.
647 * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
648 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
649 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
650
651 2011-04-17 Ulrich Drepper <drepper@gmail.com>
652
653 [BZ #12420]
654 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
655 storing it.
656 * stdlib/bug-getcontext.c: New file.
657 * stdlib/Makefile: Add rules to build and run bug-getcontext.
658
659 2011-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
660
661 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
662 instructions into .machine "z9-109".
663 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
664 * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
665
666 2011-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
667
668 * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
669 between environment variables and auxiliary vector.
670
671 2011-04-16 Ulrich Drepper <drepper@gmail.com>
672
673 * Makefile: Add rules to build linkobj/libc.so.
674 * include/libc-symbols.h: Define libc_hidden_nolink.
675 * include/rpc/auth.h: Mark functions which are to be hidden.
676 * include/rpc/auth_des.h: Likewise.
677 * include/rpc/auth_unix.h: Likewise.
678 * include/rpc/clnt.h: Likewise.
679 * include/rpc/des_crypt.h: Likewise.
680 * include/rpc/key_prot.h: Likewise.
681 * include/rpc/pmap_clnt.h: Likewise.
682 * include/rpc/pmap_prot.h: Likewise.
683 * include/rpc/pmap_rmt.h: Likewise.
684 * include/rpc/rpc_msg.h: Likewise.
685 * include/rpc/svc.h: Likewise.
686 * include/rpc/svc_auth.h: Likewise.
687 * include/rpc/xdr.h: Likewise.
688 * nis/Makefile: Link all DSOs against linkobj/libc.so.
689 * nss/Makefile: Likewise.
690 * sunrpc/Makefile: Don't install headers. Build library with normal
691 entry points. Don't build rpcinfo. Link RPC tests appropriately.
692 * sunrpc/auth_des.c: Hide exported symbols by default, export some
693 for the compat linking library. Remove use of INTDEF/INTUSE.
694 * sunrpc/auth_none.c: Likewise.
695 * sunrpc/auth_unix.c: Likewise.
696 * sunrpc/authdes_prot.c: Likewise.
697 * sunrpc/authuxprot.c: Likewise.
698 * sunrpc/clnt_gen.c: Likewise.
699 * sunrpc/clnt_perr.c: Likewise.
700 * sunrpc/clnt_raw.c: Likewise.
701 * sunrpc/clnt_simp.c: Likewise.
702 * sunrpc/clnt_tcp.c: Likewise.
703 * sunrpc/clnt_udp.c: Likewise.
704 * sunrpc/clnt_unix.c: Likewise.
705 * sunrpc/des_crypt.c: Likewise.
706 * sunrpc/des_soft.c: Likewise.
707 * sunrpc/get_myaddr.c: Likewise.
708 * sunrpc/key_call.c: Likewise.
709 * sunrpc/key_prot.c: Likewise.
710 * sunrpc/netname.c: Likewise.
711 * sunrpc/pm_getmaps.c: Likewise.
712 * sunrpc/pm_getport.c: Likewise.
713 * sunrpc/pmap_clnt.c: Likewise.
714 * sunrpc/pmap_prot.c: Likewise.
715 * sunrpc/pmap_prot2.c: Likewise.
716 * sunrpc/pmap_rmt.c: Likewise.
717 * sunrpc/publickey.c: Likewise.
718 * sunrpc/rpc_cmsg.c: Likewise.
719 * sunrpc/rpc_common.c: Likewise.
720 * sunrpc/rpc_dtable.c: Likewise.
721 * sunrpc/rpc_prot.c: Likewise.
722 * sunrpc/rpc_thread.c: Likewise.
723 * sunrpc/rtime.c: Likewise.
724 * sunrpc/svc.c: Likewise.
725 * sunrpc/svc_auth.c: Likewise.
726 * sunrpc/svc_authux.c: Likewise.
727 * sunrpc/svc_raw.c: Likewise.
728 * sunrpc/svc_run.c: Likewise.
729 * sunrpc/svc_simple.c: Likewise.
730 * sunrpc/svc_tcp.c: Likewise.
731 * sunrpc/svc_udp.c: Likewise.
732 * sunrpc/svc_unix.c: Likewise.
733 * sunrpc/svcauth_des.c: Likewise.
734 * sunrpc/xcrypt.c: Likewise.
735 * sunrpc/xdr.c: Likewise.
736 * sunrpc/xdr_array.c: Likewise.
737 * sunrpc/xdr_float.c: Likewise.
738 * sunrpc/xdr_intXX_t.c: Likewise.
739 * sunrpc/xdr_mem.c: Likewise.
740 * sunrpc/xdr_rec.c: Likewise.
741 * sunrpc/xdr_ref.c: Likewise.
742 * sunrpc/xdr_sizeof.c: Likewise.
743 * sunrpc/xdr_stdio.c: Likewise.
744
745 2011-04-10 Ulrich Drepper <drepper@gmail.com>
746
747 [BZ #12650]
748 * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
749 * sysdeps/ia64/dl-tls.h: Likewise.
750 * sysdeps/powerpc/dl-tls.h: Likewise.
751 * sysdeps/s390/dl-tls.h: Likewise.
752 * sysdeps/sh/dl-tls.h: Likewise.
753 * sysdeps/sparc/dl-tls.h: Likewise.
754 * sysdeps/x86_64/dl-tls.h: Likewise.
755 * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
756
757 2011-03-14 Andreas Schwab <schwab@redhat.com>
758
759 * elf/dl-load.c (_dl_dst_substitute): When skipping the first
760 rpath element also skip the following colon.
761 (expand_dynamic_string_token): Add is_path parameter and pass
762 down to DL_DST_REQUIRED and _dl_dst_substitute.
763 (decompose_rpath): Call expand_dynamic_string_token with
764 non-zero is_path. Ignore empty rpaths.
765 (_dl_map_object_from_fd): Call expand_dynamic_string_token
766 with zero is_path.
767
768 2011-04-08 Andreas Schwab <schwab@linux-m68k.org>
769
770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
771 Make cancelable.
772
773 2011-04-09 Ulrich Drepper <drepper@gmail.com>
774
775 [BZ #12655]
776 * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
777 Patch by Filipe David Manana <fdmanana@apache.org>.
778
779 2011-04-07 Andreas Schwab <schwab@redhat.com>
780
781 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
782 Maintain aligned stack.
783 (CHECK_RSP): Remove unused macro.
784
785 2011-04-03 Ulrich Drepper <drepper@gmail.com>
786
787 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
788 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
789
790 2011-04-02 Ulrich Drepper <drepper@gmail.com>
791
792 * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
793
794 * include/features.h: Mention __USE_XOPEN2K8 in comment.
795
796 2011-03-26 H.J. Lu <hongjiu.lu@intel.com>
797
798 [BZ #12518]
799 * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
800 * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
801 * sysdeps/x86_64/memmove.c: New file.
802 * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
803 (memcpy): Renamed to ...
804 (__new_memcpy): This.
805 (memcpy): Provide GLIBC_2_14 memcpy.
806 * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
807 (memcpy): Provide GLIBC_2_2_5 memcpy.
808
809 2011-04-01 Ulrich Drepper <drepper@gmail.com>
810
811 [BZ #12631]
812 * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
813
814 2011-03-30 Andreas Schwab <schwab@redhat.com>
815
816 * misc/syncfs.c: New file.
817 * misc/Makefile (routines): Add syncfs.
818 * posix/unistd.h: Declare syncfs.
819 * sysdeps/unix/syscalls.list: Add syncfs.
820
821 2011-04-01 Andreas Schwab <schwab@redhat.com>
822
823 * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
824 open_by_handle_at.
825 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
826 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
827 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
828 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
829 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
830 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
831 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
832
833 2011-04-01 Ulrich Drepper <drepper@gmail.com>
834
835 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
836 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
837 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
838 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
839 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
840 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
841 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
842
843 * io/Makefile: Compile fallocate.c, fallocate64.c, and
844 sync_file_range.c with -fexceptions.
845 * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
846 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
847 * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
848 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
849 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
850 * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
851 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
852 sync_file_range as cancellation point
853 * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file. This is
854 now a wrapper around __call_sync_file_range with cancellation handling.
855 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
856 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this. Change
857 function name to __call_sync_file_range.
858 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
859 Add call_sync_file_range.
860
861 2011-04-01 Andreas Schwab <schwab@redhat.com>
862
863 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
864 bits/timex.h.
865
866 2011-04-01 Ulrich Drepper <drepper@gmail.com>
867
868 * iconv/iconv.h: Fix typo in comment.
869 * io/fcntl.h: Likewise.
870 * libio/stdio.h: Likewise.
871 * posix/spawn.h: Likewise.
872 * posix/unistd.h: Likewise.
873 * stdlib/stdlib.h: Likewise.
874 * time/time.h: Likewise.
875 * wcsmbs/wchar.h: Likewise.
876
877 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
878 open_by_handle): Add.
879 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
880 and MAX_HANDLE_SZ. Declare name_to_handle_at and open_by_handle.
881 Augment a few comments.
882 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
883 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
884 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
885 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
886 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
887 * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
888 open_by_handle.
889
890 * io/fcntl.h (AT_EMPTY_PATH): Define.
891
892 2011-03-30 Ulrich Drepper <drepper@gmail.com>
893
894 * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
895 * sysdeps/unix/sysv/linux/bits/time.h: New file.
896 * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
897 to...
898 * sysdeps/unix/sysv/linux/bits/timex.h: ...here. New file.
899 * Versions.def: Add GLIBC_2.14.
900 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
901 Export.
902
903 2011-03-22 Ulrich Drepper <drepper@gmail.com>
904
905 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
906 round counter.
907 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
908
909 2011-03-20 H.J. Lu <hongjiu.lu@intel.com>
910
911 [BZ #12597]
912 * string/test-strncmp.c (do_page_test): New function.
913 (check2): Likewise.
914 (test_main): Call check2.
915 * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
916
917 2011-03-20 Ulrich Drepper <drepper@gmail.com>
918
919 [BZ #12587]
920 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
921 Handle cache information in CPU leaf 4.
922 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
923
924 2011-03-18 Ulrich Drepper <drepper@gmail.com>
925
926 [BZ #12583]
927 * posix/fnmatch.c (fnmatch): Check size of pattern in wide
928 character representation.
929 Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
930
931 2011-03-16 Ryan S. Arnold <rsa@us.ibm.com>
932
933 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
934 END(__isnan) to END(__isnanf) to match function entry point/label
935 EALIGN(__isnanf,...).
936
937 2011-03-10 Jakub Jelinek <jakub@redhat.com>
938
939 * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
940
941 2011-03-10 Ulrich Drepper <drepper@gmail.com>
942
943 [BZ #12510]
944 * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
945 copy from the symbol referenced in the relocation to initialize the
946 used variable.
947 Patch by Piotr Bury <pbury@goahead.com>.
948 * elf/Makefile: Add rules to build and tst-unique3.
949 * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
950 * elf/tst-unique3.cc: New file.
951 * elf/tst-unique3.h: New file.
952 * elf/tst-unique3lib.cc: New file.
953 * elf/tst-unique3lib2.cc: New file.
954
955 * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
956
957 2011-03-10 Mike Frysinger <vapier@gentoo.org>
958
959 * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
960 $LDFLAGS and -nostdlib -nostartfiles to linking step. Change main
961 to _start.
962
963 2011-03-06 Ulrich Drepper <drepper@gmail.com>
964
965 * elf/dl-load.c (_dl_map_object): If we are looking for the first
966 to-be-loaded object along a path to loader is ld.so.
967
968 2011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
969 Ulrich Drepper <drepper@gmail.com>
970
971 * sysdeps/x86_64/memset.S: After aligning destination, code
972 branches to different locations depending on the value of
973 misalignment, when multiarch is enabled. Fix this.
974
975 2011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
976
977 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
978 Set _x86_64_preferred_memory_instruction for AMD processsors.
979 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
980 Set bit_Prefer_SSE_for_memop for AMD processors.
981
982 2011-03-04 Ulrich Drepper <drepper@gmail.com>
983
984 * libio/fmemopen.c (fmemopen): Optimize a bit.
985
986 2011-03-03 Andreas Schwab <schwab@redhat.com>
987
988 * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
989
990 2011-03-03 Roland McGrath <roland@redhat.com>
991
992 * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
993
994 2011-02-28 Aurelien Jarno <aurelien@aurel32.net>
995
996 * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
997 __bzero_ultra1 instead of __memset_ultra1.
998
999 2011-02-23 Andreas Schwab <schwab@redhat.com>
1000 Ulrich Drepper <drepper@gmail.com>
1001
1002 [BZ #12509]
1003 * include/link.h (struct link_map): Add l_orig_initfini.
1004 * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
1005 returning unsuccessfully.
1006 * elf/dl-close.c (_dl_close_worker): If this is the last explicit
1007 close of a file loaded at startup, restore the original l_initfini
1008 list.
1009 * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
1010 list, store the pointer.
1011 * elf/Makefile ($(objpfx)noload-mem): New rule.
1012 (noload-ENV): Define.
1013 (tests): Add $(objpfx)noload-mem.
1014 * elf/noload.c: Include <memcheck.h>.
1015 (main): Call mtrace. Close all opened handles.
1016
1017 2011-02-17 Andreas Schwab <schwab@redhat.com>
1018
1019 [BZ #12454]
1020 * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
1021 dependencies are missing.
1022
1023 2011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1024
1025 Fix __if_freereq crash: Unlike the generic version which uses free,
1026 Hurd needs munmap.
1027 * sysdeps/mach/hurd/ifreq.h: New file.
1028
1029 2011-01-27 Petr Baudis <pasky@suse.cz>
1030 Ulrich Drepper <drepper@gmail.com>
1031
1032 [BZ 12445]#
1033 * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
1034 to extend_alloca().
1035 * stdio-common/bug23.c: New file.
1036 * stdio-common/Makefile (tests): Add bug23.
1037
1038 2010-09-28 Andreas Schwab <schwab@redhat.com>
1039 Ulrich Drepper <drepper@gmail.com>
1040
1041 [BZ #12489]
1042 * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
1043 before performing relro protection. At old place add assertion
1044 to make sure nothing changed.
1045
1046 2011-02-17 Nathan Sidwell <nathan@codesourcery.com>
1047 Glauber de Oliveira Costa <glommer@gmail.com>
1048
1049 * elf/elf.h: Add new ARM TLS relocs.
1050
1051 2011-02-16 Ryan S. Arnold <rsa@us.ibm.com>
1052
1053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1054 (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
1055 cast from r3.
1056 * sysdeps/wordsize-64/Makefile: New file. Add tst-writev to
1057 'tests' variable.
1058 * sysdeps/wordsize-64/tst-writev.c: New file.
1059
1060 2011-02-15 Ryan S. Arnold <rsa@us.ibm.com>
1061
1062 * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
1063 -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
1064 insns in _dl_start to prevent a TOC reference before relocs are
1065 resolved.
1066
1067 2011-02-15 Ulrich Drepper <drepper@gmail.com>
1068
1069 [BZ #12469]
1070 * Makeconfig: Remove RANLIB definition.
1071 * Makerules: Don't use RANLIB.
1072 * aclocal.m4: Remove ranlib test.
1073 * configure.in: No need to check for ranlib.
1074 * elf/rtld-Rules: Don't use RANLIB.
1075
1076 2011-02-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1077
1078 * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
1079 protection macro.
1080 * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
1081 inclusion protection macro.
1082
1083 * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
1084 SIGRTMIN and SIGRTMAX and print information in that case only when
1085 SIGRTMIN is defined.
1086
1087 2011-02-11 Jakub Jelinek <jakub@redhat.com>
1088
1089 * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
1090 arginfo fn returning -1.
1091
1092 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
1093 and thousands string is zero terminated.
1094
1095 2011-02-03 Andreas Schwab <schwab@redhat.com>
1096
1097 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
1098 sysdeps/unix/sysv/linux/bits/socket.h.
1099
1100 2011-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1101
1102 * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
1103 (__CPU_COUNT): Remove old macros.
1104 (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
1105 (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
1106 (__CPU_ALLOC, __CPU_FREE): Add macros.
1107 (__sched_cpualloc, __sched_cpufree): Add declarations.
1108
1109 2011-02-05 Ulrich Drepper <drepper@gmail.com>
1110
1111 * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
1112 (struct datahead): Reuse 32 bits of the alignment for a TTL field.
1113 * nscd/aicache.c (addhstaiX): Return timeout of added value.
1114 (readdhstai): Return value of addhstaiX call.
1115 * nscd/grpcache.c (cache_addgr): Return timeout of added value.
1116 (addgrbyX): Return value returned by cache_addgr.
1117 (readdgrbyname): Return value returned by addgrbyX.
1118 (readdgrbygid): Likewise.
1119 * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
1120 (addpwbyX): Return value returned by cache_addpw.
1121 (readdpwbyname): Return value returned by addhstbyX.
1122 (readdpwbyuid): Likewise.
1123 * nscd/servicescache.c (cache_addserv): Return timeout of added value.
1124 (addservbyX): Return value returned by cache_addserv.
1125 (readdservbyname): Return value returned by addservbyX:
1126 (readdservbyport): Likewise.
1127 * nscd/hstcache.c (cache_addhst): Return timeout of added value.
1128 (addhstbyX): Return value returned by cache_addhst.
1129 (readdhstbyname): Return value returned by addhstbyX.
1130 (readdhstbyaddr): Likewise.
1131 (readdhstbynamev6): Likewise.
1132 (readdhstbyaddrv6): Likewise.
1133 * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
1134 (readdinitgroups): Return value returned by addinitgroupsX.
1135 * nscd/cache.c (readdfcts): Change return value of functions to time_t.
1136 (prune_cache): Keep track of timeout value of re-added entries.
1137 * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
1138 * nscd/nscd.h: Adjust prototypes of readd* functions.
1139
1140 2011-02-04 Roland McGrath <roland@redhat.com>
1141
1142 * nis/nis_server.c (nis_servstate): Use the right name for 0.
1143 (nis_stats): Likewise.
1144 * nis/nis_modify.c (nis_modify): Likewise.
1145 * nis/nis_remove.c (nis_remove): Likewise.
1146 * nis/nis_add.c (nis_add): Likewise.
1147
1148 * elf/dl-object.c (_dl_new_object): Remove unused variable L.
1149
1150 * posix/fnmatch_loop.c: Add some consts.
1151
1152 * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
1153
1154 2011-02-02 H.J. Lu <hongjiu.lu@intel.com>
1155
1156 [BZ #12460]
1157 * config.make.in (config-cflags-novzeroupper): Define.
1158 * configure.in: Substitute libc_cv_cc_novzeroupper.
1159 * elf/Makefile (AVX-CFLAGS): Define.
1160 (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
1161 (CFLAGS-tst-auditmod4a.c): Likewise.
1162 (CFLAGS-tst-auditmod4b.c): Likewise.
1163 (CFLAGS-tst-auditmod6b.c): Likewise.
1164 (CFLAGS-tst-auditmod6c.c): Likewise.
1165 (CFLAGS-tst-auditmod7b.c): Likewise.
1166 * sysdeps/i386/configure.in: Check -mno-vzeroupper.
1167
1168 2011-02-02 Ulrich Drepper <drepper@gmail.com>
1169
1170 * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
1171 function to the callback.
1172 Patch partly by Jiri Olsa <jolsa@redhat.com>.
1173
1174 2011-02-02 Andreas Schwab <schwab@redhat.com>
1175
1176 * shadow/sgetspent.c: Check return value of __sgetspent_r instead
1177 of errno.
1178
1179 2011-01-19 Ulrich Drepper <drepper@gmail.com>
1180
1181 [BZ #11724]
1182 * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
1183 of constructors.
1184 * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
1185 of destructors.
1186 (_dl_fini): Don't call _dl_sort_fini if there is only one object.
1187
1188 [BZ #11724]
1189 * elf/Makefile: Add rules to build and run new test.
1190 * elf/tst-initorder.c: New file.
1191 * elf/tst-initorder.exp: New file.
1192 * elf/tst-initordera1.c: New file.
1193 * elf/tst-initordera2.c: New file.
1194 * elf/tst-initordera3.c: New file.
1195 * elf/tst-initordera4.c: New file.
1196 * elf/tst-initorderb1.c: New file.
1197 * elf/tst-initorderb2.c: New file.
1198 * elf/tst-order-a1.c: New file.
1199 * elf/tst-order-a2.c: New file.
1200 * elf/tst-order-a3.c: New file.
1201 * elf/tst-order-a4.c: New file.
1202 * elf/tst-order-b1.c: New file.
1203 * elf/tst-order-b2.c: New file.
1204 * elf/tst-order-main.c: New file.
1205 New test case by George Gensure <werkt0@gmail.com>.
1206
1207 2010-10-01 Andreas Schwab <schwab@redhat.com>
1208
1209 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
1210 decoding ACE if AI_CANONIDN.
1211
1212 2011-01-18 Ulrich Drepper <drepper@gmail.com>
1213
1214 * elf/Makefile: Build IFUNC tests unless multi-arch = no.
1215
1216 2011-01-17 Ulrich Drepper <drepper@gmail.com>
1217
1218 * version.h (RELEASE): Bump for 2.13 release.
1219 * include/features.h: (__GLIBC_MINOR__): Bump to 13.
1220
1221 * io/fcntl.h: Define AT_NO_AUTOMOUNT.
1222
1223 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
1224 MADV_NOHUGEPAGE.
1225 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1226 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1227 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1228 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1229 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1230 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1231
1232 * posix/getconf.c: Update copyright year.
1233 * catgets/gencat.c: Likewise.
1234 * csu/version.c: Likewise.
1235 * debug/catchsegv.sh: Likewise.
1236 * debug/xtrace.sh: Likewise.
1237 * elf/ldconfig.c: Likewise.
1238 * elf/ldd.bash.in: Likewise.
1239 * elf/sprof.c (print_version): Likewise.
1240 * iconv/iconv_prog.c: Likewise.
1241 * iconv/iconvconfig.c: Likewise.
1242 * locale/programs/locale.c: Likewise.
1243 * locale/programs/localedef.c: Likewise.
1244 * malloc/memusage.sh: Likewise.
1245 * malloc/mtrace.pl: Likewise.
1246 * nscd/nscd.c (print_version): Likewise.
1247 * nss/getent.c: Likewise.
1248
1249 * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
1250 PF_CAIF, and PF_ALG.
1251 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1252
1253 2011-01-16 Andreas Schwab <schwab@linux-m68k.org>
1254
1255 * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
1256 (modules-names): Use them.
1257 (ifunc-test-modules, ifunc-pie-tests): Define.
1258 (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
1259 tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
1260 (test-extras): Likewise.
1261 ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
1262 $(compile-command.c).
1263 ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
1264 (all-built-dso): Define.
1265 (check-textrel.out, check-execstack.out): Depend on it.
1266
1267 * configure.in: Don't override --enable-multi-arch.
1268
1269 2011-01-15 Ulrich Drepper <drepper@gmail.com>
1270
1271 [BZ #6812]
1272 * nscd/hstcache.c (tryagain): Define.
1273 (cache_addhst): Return tryagain not notfound for temporary errors.
1274 (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
1275 failed.
1276
1277 2011-01-14 Ulrich Drepper <drepper@gmail.com>
1278
1279 [BZ #10563]
1280 * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
1281 to make the syscall.
1282 * sysdeps/unix/sysv/linux/setgroups.c: New file.
1283
1284 [BZ #12378]
1285 * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
1286 and fall back to matching as normal character if the string ends before
1287 the matching ']' is found. This is what POSIX requires.
1288 * posix/testfnm.c: Adjust test result.
1289 * posix/globtest.sh: Adjust test result. Add new test.
1290 * posix/tst-fnmatch.input: Likewise.
1291 * posix/tst-fnmatch2.c: Add new test.
1292
1293 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1294
1295 * elf/Makefile (check-execstack): Revert last change. Depend on
1296 check-execstack.h.
1297 (check-execstack.h): New target.
1298 (generated): Add check-execstack.h.
1299 * elf/check-execstack.c: Include "check-execstack.h".
1300 (main): Revert last change.
1301 (handle_file): Return zero if GNU_STACK is absent and
1302 DEFAULT_STACK_PERMS doesn't include PF_X.
1303
1304 2011-01-13 Ulrich Drepper <drepper@gmail.com>
1305
1306 * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
1307 in child fails because the descriptor is already closed.
1308 * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
1309 * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
1310 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
1311
1312 [BZ #12397]
1313 * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
1314 syscall.
1315
1316 [BZ #10484]
1317 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
1318 temporary buffer used to handle multi lookups locally.
1319 * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
1320
1321 2011-01-12 Ulrich Drepper <drepper@gmail.com>
1322
1323 * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
1324 loader is ld.so.
1325
1326 2011-01-10 Paul Pluzhnikov <ppluzhnikov@google.com>
1327
1328 * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
1329 alignment for SSE2.
1330
1331 2011-01-12 Ulrich Drepper <drepper@gmail.com>
1332
1333 [BZ #12394]
1334 * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
1335 characters. When rounding increased number of integer digits recompute
1336 number of groups.
1337 * stdio-common/tst-grouping.c: New file.
1338 * stdio-common/Makefile: Add rules to build and run tst-grouping.
1339
1340 2011-01-09 Ulrich Drepper <drepper@gmail.com>
1341
1342 * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
1343 __FD_CLR, and __FS_ISSET. gcc generates better code on its own.
1344
1345 * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
1346 void.
1347 * bits/select.h: Likewise.
1348
1349 2011-01-08 Ulrich Drepper <drepper@gmail.com>
1350
1351 * po/ja.po: Update from translation team.
1352
1353 2011-01-04 David S. Miller <davem@sunset.davemloft.net>
1354
1355 [BZ #11155]
1356 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
1357 implementation just like for lxstat, fxstatat, et al.
1358
1359 2010-12-27 Jim Meyering <meyering@redhat.com>
1360
1361 [BZ #12348]
1362 * posix/regexec.c (build_trtable): Return failure indication upon
1363 calloc failure. Otherwise, re_search_internal could infloop on OOM.
1364
1365 2010-12-25 Ulrich Drepper <drepper@gmail.com>
1366
1367 [BZ #12201]
1368 * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
1369 * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
1370 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
1371 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
1372
1373 [BZ #12207]
1374 * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
1375
1376 [BZ #12204]
1377 * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
1378 * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
1379
1380 2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
1381
1382 * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
1383 * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
1384 script has SORT_BY_INIT_PRIORITY.
1385 * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
1386 NO_CTORS_DTORS_SECTIONS is defined.
1387 * elf/soinit.c: Likewise.
1388 * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
1389 NO_CTORS_DTORS_SECTIONS is defined.
1390 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1391 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1392 * sysdeps/sh/init-first.c: Likewise.
1393 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1394
1395 2010-12-24 Ulrich Drepper <drepper@gmail.com>
1396
1397 * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
1398 always use the slow path.
1399
1400 2010-12-15 Ryan S. Arnold <rsa@us.ibm.com>
1401
1402 * elf/Makefile: (check-execstack): Replace $(native-compile) with a
1403 similar rule which adds the sysdep directories to the header search in
1404 order to pick up the correct platform stackinfo.h.
1405 * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
1406 perform test if it is, otherwise return successfully without testing.
1407 * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
1408 DEFAULT_STACK_PERMS define in stackinfo.h.
1409 * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
1410 defined in stackinfo.h.
1411 * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
1412 DEFAULT_STACK_PERMS defined in stackinfo.h.
1413 * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
1414 * sysdeps/ia64/stackinfo.h: Likewise.
1415 * sysdeps/s390/stackinfo.h: Likewise.
1416 * sysdeps/sh/stackinfo.h: Likewise.
1417 * sysdeps/sparc/stackinfo.h: Likewise.
1418 * sysdeps/x86_64/stackinfo.h: Likewise.
1419 * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
1420 PF_X for powerpc64. Retain PF_X for powerpc32.
1421
1422 2010-12-19 Ulrich Drepper <drepper@gmail.com>
1423
1424 * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
1425 accurately.
1426 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
1427 GETDENTS_64BIT_ALIGNED.
1428
1429 2010-12-14 Ulrich Drepper <dreper@gmail.com>
1430
1431 * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
1432
1433 2010-12-10 Andreas Schwab <schwab@redhat.com>
1434
1435 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
1436 _GNU_SOURCE.
1437
1438 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
1439 * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
1440 Remove __restrict.
1441 (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
1442 (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
1443
1444 2010-12-09 Ulrich Drepper <drepper@gmail.com>
1445
1446 [BZ #11655]
1447 * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
1448 are initialized.
1449
1450 2010-12-09 Jakub Jelinek <jakub@redhat.com>
1451
1452 * string/bits/string3.h (memmove, bcopy): Remove __restrict.
1453
1454 2010-12-03 Ulrich Drepper <drepper@gmail.com>
1455
1456 * po/it.po: Update from translation team.
1457
1458 2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
1459
1460 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
1461 unused codes.
1462
1463 2010-11-30 Ulrich Drepper <drepper@gmail.com>
1464
1465 * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
1466
1467 2010-11-24 Andreas Schwab <schwab@redhat.com>
1468
1469 * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
1470 specially.
1471 (gaih_getanswer_slice): Likewise.
1472
1473 2010-10-20 Jakub Jelinek <jakub@redhat.com>
1474
1475 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
1476
1477 2010-05-31 Petr Baudis <pasky@suse.cz>
1478
1479 [BZ #11149]
1480 * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
1481 silently even in the chroot mode.
1482
1483 2010-11-22 Ulrich Drepper <drepper@gmail.com>
1484
1485 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
1486 last patch a bit. Pretty printing
1487
1488 2010-05-31 Petr Baudis <pasky@suse.cz>
1489
1490 [BZ #10085]
1491 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
1492 initialization of skip_initgroups_dyn.
1493
1494 2010-11-19 Ulrich Drepper <drepper@gmail.com>
1495
1496 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
1497 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1498
1499 2010-11-16 Ulrich Drepper <drepper@gmail.com>
1500
1501 * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
1502
1503 2010-11-11 Andreas Schwab <schwab@redhat.com>
1504
1505 * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
1506 * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
1507 (tst-fnmatch-ENV): Set MALLOC_TRACE.
1508 ($(objpfx)tst-fnmatch-mem): New rule.
1509 (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
1510 * posix/tst-fnmatch.c (main): Call mtrace.
1511
1512 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
1513
1514 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1515 Support Intel processor model 6 and model 0x2c.
1516
1517 2010-11-10 Luis Machado <luisgpm@br.ibm.com>
1518
1519 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
1520 signed comparison.
1521
1522 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
1523
1524 [BZ #12205]
1525 * string/test-strncasecmp.c (check_result): New function.
1526 (do_one_test): Use it.
1527 (check1): New function.
1528 (test_main): Use it.
1529 * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
1530 Support strcasecmp and strncasecmp.
1531
1532 2010-11-08 Ulrich Drepper <drepper@gmail.com>
1533
1534 [BZ #12194]
1535 * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
1536 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1537
1538 2010-11-07 H.J. Lu <hongjiu.lu@intel.com>
1539
1540 * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
1541 IFUNC support.
1542 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1543 memset-x86-64.
1544 * sysdeps/x86_64/multiarch/bzero.S: New file.
1545 * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
1546 * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
1547 * sysdeps/x86_64/multiarch/memset.S: New file.
1548 * sysdeps/x86_64/multiarch/memset_chk.S: New file.
1549 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1550 Set bit_Prefer_SSE_for_memop for Intel processors.
1551 * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
1552 Define.
1553 (index_Prefer_SSE_for_memop): Define.
1554 (HAS_PREFER_SSE_FOR_MEMOP): Define.
1555
1556 2010-11-04 Luis Machado <luisgpm@br.ibm.com>
1557
1558 * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
1559 * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
1560
1561 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
1562
1563 [BZ #12191]
1564 * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
1565 (__x86_64_raw_data_cache_size_half): Likewise.
1566 (__x86_64_raw_shared_cache_size): Likewise.
1567 (__x86_64_raw_shared_cache_size_half): Likewise.
1568
1569 * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
1570 (__x86_64_raw_data_cache_size_half): Likewise.
1571 (__x86_64_raw_shared_cache_size): Likewise.
1572 (__x86_64_raw_shared_cache_size_half): Likewise.
1573 (init_cacheinfo): Set __x86_64_raw_data_cache_size,
1574 __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
1575 and __x86_64_raw_shared_cache_size_half. Round
1576 __x86_64_data_cache_size_half, __x86_64_data_cache_size
1577 __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
1578 to multiple of 256 bytes.
1579
1580 2010-11-03 Ulrich Drepper <drepper@gmail.com>
1581
1582 [BZ #12167]
1583 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
1584 of inacessible symlinks. Verify result of symlink before returning it.
1585 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
1586 Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
1587
1588 2010-10-28 Erich Ritz <erichritz@gmail.com>
1589
1590 * math/math.h (isinf): Fix typo in comment.
1591
1592 2010-11-01 Ulrich Drepper <drepper@gmail.com>
1593
1594 * po/da.po: Update from translation team.
1595
1596 2010-10-26 Ulrich Drepper <drepper@gmail.com>
1597
1598 * elf/rtld.c (dl_main): Move assertion after the point where rtld map
1599 is added to the list.
1600
1601 2010-10-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1602 Ulrich Drepper <drepper@gmail.com>
1603
1604 * elf/dl-object.c (_dl_new_object): Don't append the new object to
1605 the global list here. Move code to...
1606 (_dl_add_to_namespace_list): ...here. New function.
1607 * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
1608 * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
1609 * elf/dl-load.c (lose): Don't remove the element from the list.
1610 (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
1611 (_dl_map_object): Likewise.
1612
1613 2010-10-25 Ulrich Drepper <drepper@gmail.com>
1614
1615 [BZ #12159]
1616 * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
1617 into all bytes of SSE register.
1618 Patch by Richard Li <richardpku@gmail.com>.
1619
1620 2010-10-24 Ulrich Drepper <drepper@gmail.com>
1621
1622 [BZ #12140]
1623 * malloc/malloc.c (_int_free): Fill correct number of bytes when
1624 perturbing.
1625
1626 2010-10-20 Michael B. Brutman <brutman@us.ibm.com>
1627
1628 * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
1629 * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
1630 * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
1631 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
1632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
1633 submachine.
1634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
1635
1636 2010-10-22 Andreas Schwab <schwab@redhat.com>
1637
1638 * include/dlfcn.h (__RTLD_SECURE): Define.
1639 * elf/dl-load.c (_dl_map_object): Remove preloaded parameter. Use
1640 mode & __RTLD_SECURE instead.
1641 (open_path): Rename preloaded parameter to secure.
1642 * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
1643 * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
1644 * elf/dl-deps.c (openaux): Likewise.
1645 * elf/rtld.c (struct map_args): Remove is_preloaded.
1646 (map_doit): Don't use it.
1647 (dl_main): Likewise.
1648 (do_preload): Use __RTLD_SECURE instead of is_preloaded.
1649 (dlmopen_doit): Add __RTLD_SECURE to mode bits.
1650
1651 2010-09-09 Andreas Schwab <schwab@redhat.com>
1652
1653 * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
1654 (sysd-rules-targets): Remove duplicates.
1655 * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
1656 rtld-%.$o dependency.
1657
1658 2010-10-18 Andreas Schwab <schwab@redhat.com>
1659
1660 * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
1661 _dl_map_object do it.
1662
1663 2010-10-19 Ulrich Drepper <drepper@gmail.com>
1664
1665 * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
1666 fast fma builtins, define the macros in the C99 standard.
1667 (FP_FAST_FMAF): Likewise.
1668 (FP_FAST_FMAL): Likewise.
1669 * sysdeps/x86_64/bits/mathdef.h: Likewise.
1670
1671 * bits/mathdef.h: Update copyright year.
1672 * sysdeps/powerpc/bits/mathdef.h: Likewise.
1673
1674 2010-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
1675
1676 * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
1677 builtins, define the macros in the C99 standard.
1678 (FP_FAST_FMAF): Likewise.
1679 (FP_FAST_FMAL): Likewise.
1680 * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
1681 multiply/add.
1682 (FP_FAST_FMAF): Likewise.
1683
1684 2010-10-15 Jakub Jelinek <jakub@redhat.com>
1685
1686 [BZ #3268]
1687 * math/libm-test.inc (fma_test): Some new testcases.
1688 * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
1689 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
1690 y and infinite z. Do multiplication by C already in long double.
1691 * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
1692 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
1693 y and infinite z. Do bitwise or of inexact bit into u.d.
1694 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
1695 * sysdeps/i386/fpu/s_fmaf.S: Removed.
1696 * sysdeps/i386/fpu/s_fma.S: Removed.
1697 * sysdeps/i386/fpu/s_fmal.S: Removed.
1698
1699 2010-10-16 Jakub Jelinek <jakub@redhat.com>
1700
1701 [BZ #3268]
1702 * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
1703 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
1704 computation is not scheduled after fetestexcept. Fix value
1705 of minimum denormal long double.
1706
1707 2010-10-14 Jakub Jelinek <jakub@redhat.com>
1708
1709 [BZ #3268]
1710 * math/libm-test.inc (fma_test): Add some more tests.
1711 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
1712 correctly.
1713
1714 2010-10-15 Andreas Schwab <schwab@redhat.com>
1715
1716 * scripts/data/localplt-s390-linux-gnu.data: New file.
1717 * scripts/data/localplt-s390x-linux-gnu.data: New file.
1718
1719 2010-10-13 Jakub Jelinek <jakub@redhat.com>
1720
1721 [BZ #3268]
1722 * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
1723 * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
1724 instead of dbl-64.
1725 * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
1726 inlines.
1727 * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
1728 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
1729 if one of x and y is very large and the other is subnormal.
1730 * sysdeps/s390/fpu/s_fmaf.c: New file.
1731 * sysdeps/s390/fpu/s_fma.c: New file.
1732 * sysdeps/powerpc/fpu/s_fmaf.S: New file.
1733 * sysdeps/powerpc/fpu/s_fma.S: New file.
1734 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
1735 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
1736 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
1737
1738 2010-10-12 Jakub Jelinek <jakub@redhat.com>
1739
1740 [BZ #3268]
1741 * math/libm-test.inc (fma_test): Add some more fmaf tests, add
1742 fma tests.
1743 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
1744 * sysdeps/ieee754/dbl-64/s_fma.c: New file.
1745 * sysdeps/i386/i686/multiarch/s_fma.c: Include
1746 sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
1747 * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
1748 * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
1749 * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
1750
1751 2010-10-12 Ulrich Drepper <drepper@redhat.com>
1752
1753 [BZ #12078]
1754 * posix/regcomp.c (parse_branch): One more memory leak plugged.
1755 * posix/bug-regex31.input: Add test case.
1756
1757 2010-10-11 Ulrich Drepper <drepper@gmail.com>
1758
1759 * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
1760 * posix/bug-regex31.input: New file.
1761
1762 [BZ #12078]
1763 * posix/regcomp.c (parse_branch): Free memory when allocation failed.
1764 (parse_sub_exp): Fix last change, use postorder.
1765
1766 * posix/bug-regex31.c: New file.
1767 * posix/Makefile: Add rules to build and run bug-regex31.
1768
1769 * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
1770
1771 [BZ #12078]
1772 * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
1773
1774 [BZ #12108]
1775 * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
1776 to have entries in sys_siglist.
1777
1778 [BZ #12093]
1779 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
1780 be NULL.
1781
1782 2010-10-07 Jakub Jelinek <jakub@redhat.com>
1783
1784 [BZ #3268]
1785 * math/libm-test.inc (fma_test): Add 2 fmaf tests.
1786 * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
1787 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
1788 sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
1789 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
1790 * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
1791 * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
1792 * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
1793 * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
1794 * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
1795 * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
1796 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
1797 * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
1798 * math/ftestexcept.c (fetestexcept): Likewise.
1799 * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
1800 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
1801 * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
1802 * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
1803 * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
1804 * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
1805 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1806
1807 2010-10-11 Ulrich Drepper <drepper@gmail.com>
1808
1809 [BZ #12107]
1810 * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
1811 newline.
1812
1813 2010-10-06 Ulrich Drepper <drepper@gmail.com>
1814
1815 * string/bug-strstr1.c: New file.
1816 * string/Makefile: Add rules to build and run bug-strstr1.
1817
1818 2010-10-05 Eric Blake <eblake@redhat.com>
1819
1820 [BZ #12092]
1821 * string/str-two-way.h (two_way_long_needle): Always clear memory
1822 when skipping input due to the shift table.
1823
1824 2010-10-03 Ulrich Drepper <drepper@gmail.com>
1825
1826 [BZ #12005]
1827 * malloc/mcheck.c: Handle large requests.
1828
1829 [BZ #12077]
1830 * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
1831 for strncmp and strncasecmp.
1832 * string/stratcliff.c: Add tests for strcmp and strncmp.
1833 * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
1834
1835 2010-09-28 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
1836
1837 * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
1838 __set_fpscr.
1839
1840 2010-09-30 Andreas Jaeger <aj@suse.de>
1841
1842 * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
1843 (CGROUP_SUPER_MAGIC): Define.
1844 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1845 Handle btrfs and cgroup file systems.
1846 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
1847 Likewise.
1848
1849 2010-09-27 Luis Machado <luisgpm@br.ibm.com>
1850
1851 * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
1852 * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
1853
1854 2010-09-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1855
1856 [BZ #12067]
1857 * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
1858 trying to locate the ELF header.
1859
1860 2010-09-27 Andreas Schwab <schwab@redhat.com>
1861
1862 [BZ #11611]
1863 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
1864 Mask out sign-bit copies when constructing f_fsid.
1865
1866 2010-09-24 Petr Baudis <pasky@suse.cz>
1867
1868 * debug/stack_chk_fail_local.c: Add missing licence exception.
1869 * debug/warning-nop.c: Likewise.
1870
1871 2010-09-15 Joseph Myers <joseph@codesourcery.com>
1872
1873 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
1874 implementing getdents64 using getdents syscall, set d_type if
1875 __ASSUME_GETDENTS32_D_TYPE.
1876
1877 2010-09-16 Andreas Schwab <schwab@redhat.com>
1878
1879 * elf/dl-close.c (free_slotinfo, free_mem): Move to...
1880 * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
1881
1882 2010-09-21 Ulrich Drepper <drepper@redhat.com>
1883
1884 [BZ #12037]
1885 * posix/unistd.h: Undo change of feature selection for ftruncate from
1886 2010-01-11.
1887
1888 2010-09-20 Ulrich Drepper <drepper@redhat.com>
1889
1890 * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
1891 detection.
1892
1893 2010-09-20 Andreas Schwab <schwab@redhat.com>
1894
1895 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
1896 fanotify_mark.
1897 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
1898
1899 2010-09-14 Andreas Schwab <schwab@redhat.com>
1900
1901 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
1902 variables after CHECK_SP call.
1903 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1904
1905 2010-09-13 Andreas Schwab <schwab@redhat.com>
1906 Ulrich Drepper <drepper@redhat.com>
1907
1908 * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
1909 re-relocationg ld.so.
1910 * elf/dl-support.c (_dl_non_dynamic_init): And here after the
1911 _dl_init_paths call.
1912 * elf/dl-load.c (_dl_init_paths). Don't set GLRO(dl_init_all_dirs)
1913 here anymore.
1914
1915 2010-09-14 Ulrich Drepper <drepper@redhat.com>
1916
1917 * resolv/res_init.c (__res_vinit): Count the default server we added.
1918
1919 2010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
1920 Ulrich Drepper <drepper@redhat.com>
1921
1922 [BZ #11968]
1923 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
1924 (____longjmp_chk): Use %ebx for saving value across system call.
1925 Add unwind info.
1926
1927 2010-09-06 Andreas Schwab <schwab@redhat.com>
1928
1929 * manual/Makefile: Don't mix pattern rules with normal rules.
1930
1931 2010-09-05 Andreas Schwab <schwab@linux-m68k.org>
1932
1933 * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
1934 operation.
1935 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
1936 * libio/iofopncook.c (_IO_cookie_init): Likewise.
1937 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
1938 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
1939 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1940 Likewise.
1941
1942 2010-09-04 Ulrich Drepper <drepper@redhat.com>
1943
1944 [BZ #11979]
1945 * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
1946 IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
1947
1948 2010-09-02 Ulrich Drepper <drepper@redhat.com>
1949
1950 * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
1951 * sysdeps/x86_64/addmul_1.S: Likewise.
1952 * sysdeps/x86_64/lshift.S: Likewise.
1953 * sysdeps/x86_64/mul_1.S: Likewise.
1954 * sysdeps/x86_64/rshift.S: Likewise.
1955 * sysdeps/x86_64/sub_n.S: Likewise.
1956 * sysdeps/x86_64/submul_1.S: Likewise.
1957
1958 2010-09-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1959
1960 This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
1961 Define __sched_param instead of SCHED_* and sched_param when
1962 <bits/sched.h> is included with __need_schedparam defined.
1963 * bits/sched.h [__need_schedparam]
1964 (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
1965 [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
1966 (__defined_schedparam): Define to 1.
1967 (__sched_param): New structure, identical to sched_param.
1968 (__need_schedparam): Undefine.
1969
1970 2010-08-31 Mike Frysinger <vapier@gentoo.org>
1971
1972 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
1973 (epoll_create1): Declare.
1974
1975 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
1976
1977 2010-08-31 Andreas Schwab <schwab@redhat.com>
1978
1979 [BZ #7066]
1980 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
1981 shifting retval into place.
1982
1983 2010-09-01 Ulrich Drepper <drepper@redhat.com>
1984
1985 * nis/rpcsvc/nis.h: Update copyright notice.
1986 * nis/rpcsvc/nis.x: Likewise.
1987 * nis/rpcsvc/nis_callback.h: Likewise.
1988 * nis/rpcsvc/nis_callback.x: Likewise.
1989 * nis/rpcsvc/nis_object.x: Likewise.
1990 * nis/rpcsvc/nis_tags.h: Likewise.
1991 * nis/rpcsvc/yp.h: Likewise.
1992 * nis/rpcsvc/yp.x: Likewise.
1993 * nis/rpcsvc/ypupd.h: Likewise.
1994 * nis/yp_xdr.c: Likewise.
1995 * nis/ypupdate_xdr.c: Likewise.
1996
1997 * sunrpc/pm_getport.c (__libc_rpc_getport): New function. This is
1998 mainly the body of pmap_getport. Add parameters to specify timeouts.
1999 (pmap_getport): Use __libc_rpc_getport.
2000 * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
2001 * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
2002 * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
2003
2004 2010-08-31 Andreas Schwab <schwab@linux-m68k.org>
2005
2006 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
2007 fanotify_mark.
2008
2009 2010-08-27 Roland McGrath <roland@redhat.com>
2010
2011 * sysdeps/i386/i686/multiarch/Makefile
2012 (CFLAGS-varshift.c): New variable.
2013
2014 2010-08-27 Ulrich Drepper <drepper@redhat.com>
2015
2016 * sysdeps/i386/i686/multiarch/varshift.S: File removed.
2017 * sysdeps/i386/i686/multiarch/varshift.c: New file.
2018
2019 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
2020
2021 * sysdeps/x86_64/strlen.S: Minimal code improvement.
2022
2023 2010-08-26 H.J. Lu <hongjiu.lu@intel.com>
2024
2025 * sysdeps/x86_64/strlen.S: Unroll the loop.
2026 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2027 strlen-sse2 strlen-sse2-bsf.
2028 * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
2029 __strlen_no_bsf if bit_Slow_BSF is set.
2030 (__strlen_sse42): Removed.
2031 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
2032 * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
2033
2034 2010-08-25 Roland McGrath <roland@redhat.com>
2035
2036 * sysdeps/x86_64/multiarch/varshift.S: File removed.
2037 * sysdeps/x86_64/multiarch/varshift.c: New file.
2038 * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
2039 * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
2040 * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
2041 * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2042
2043 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
2044
2045 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2046 strlen-sse2 strlen-sse2-bsf.
2047 * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
2048 __strlen_sse2_bsf if bit_Slow_BSF is unset.
2049 (__strlen_sse2): Removed.
2050 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
2051 * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
2052 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
2053 bit_Slow_BSF for Atom.
2054 * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
2055 (index_Slow_BSF): Define.
2056 (HAS_SLOW_BSF): Define.
2057
2058 2010-08-25 Ulrich Drepper <drepper@redhat.com>
2059
2060 [BZ #10851]
2061 * resolv/res_init.c (__res_vinit): When no server address at all
2062 is given default to loopback.
2063
2064 2010-08-24 Roland McGrath <roland@redhat.com>
2065
2066 * configure.in: Remove config-name.h generation.
2067 * configure: Regenerated.
2068 * config-name.in: File removed.
2069 * scripts/config-uname.sh: New file.
2070 * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
2071 ($(objdir)config-name.h): New target.
2072
2073 * sunrpc/rpc_parse.h: Avoid nested comment.
2074
2075 2010-08-24 Richard Henderson <rth@redhat.com>
2076 Ulrich Drepper <drepper@redhat.com>
2077 H.J. Lu <hongjiu.lu@intel.com>
2078
2079 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
2080 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
2081 * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
2082 Replace _mm_srli_si128 with __m128i_shift_right. Replace
2083 _mm_alignr_epi8 with _mm_loadu_si128.
2084 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2085 * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
2086 (__m128i_shift_right): Removed.
2087 * sysdeps/i386/i686/multiarch/varshift.h: New file.
2088 * sysdeps/i386/i686/multiarch/varshift.S: New file.
2089 * sysdeps/x86_64/multiarch/varshift.h: New file.
2090 * sysdeps/x86_64/multiarch/varshift.S: New file.
2091
2092 2010-08-21 Mike Frysinger <vapier@gentoo.org>
2093
2094 * configure.in: Move assembler checks to before sysdep dir checking.
2095
2096 2010-08-20 Petr Baudis <pasky@suse.cz>
2097
2098 * LICENSES: Sync the sunrpc license.
2099
2100 2010-08-19 Ulrich Drepper <drepper@redhat.com>
2101
2102 * sunrpc/auth_des.c: Update copyright notice once again.
2103 * sunrpc/auth_none.c: Likewise.
2104 * sunrpc/auth_unix.c: Likewise.
2105 * sunrpc/authdes_prot.c: Likewise.
2106 * sunrpc/authuxprot.c: Likewise.
2107 * sunrpc/bindrsvprt.c: Likewise.
2108 * sunrpc/clnt_gen.c: Likewise.
2109 * sunrpc/clnt_perr.c: Likewise.
2110 * sunrpc/clnt_raw.c: Likewise.
2111 * sunrpc/clnt_simp.c: Likewise.
2112 * sunrpc/clnt_tcp.c: Likewise.
2113 * sunrpc/clnt_udp.c: Likewise.
2114 * sunrpc/clnt_unix.c: Likewise.
2115 * sunrpc/des_crypt.c: Likewise.
2116 * sunrpc/des_soft.c: Likewise.
2117 * sunrpc/get_myaddr.c: Likewise.
2118 * sunrpc/getrpcport.c: Likewise.
2119 * sunrpc/key_call.c: Likewise.
2120 * sunrpc/key_prot.c: Likewise.
2121 * sunrpc/openchild.c: Likewise.
2122 * sunrpc/pm_getmaps.c: Likewise.
2123 * sunrpc/pm_getport.c: Likewise.
2124 * sunrpc/pmap_clnt.c: Likewise.
2125 * sunrpc/pmap_prot.c: Likewise.
2126 * sunrpc/pmap_prot2.c: Likewise.
2127 * sunrpc/pmap_rmt.c: Likewise.
2128 * sunrpc/rpc/auth.h: Likewise.
2129 * sunrpc/rpc/auth_unix.h: Likewise.
2130 * sunrpc/rpc/clnt.h: Likewise.
2131 * sunrpc/rpc/des_crypt.h: Likewise.
2132 * sunrpc/rpc/key_prot.h: Likewise.
2133 * sunrpc/rpc/netdb.h: Likewise.
2134 * sunrpc/rpc/pmap_clnt.h: Likewise.
2135 * sunrpc/rpc/pmap_prot.h: Likewise.
2136 * sunrpc/rpc/pmap_rmt.h: Likewise.
2137 * sunrpc/rpc/rpc.h: Likewise.
2138 * sunrpc/rpc/rpc_des.h: Likewise.
2139 * sunrpc/rpc/rpc_msg.h: Likewise.
2140 * sunrpc/rpc/svc.h: Likewise.
2141 * sunrpc/rpc/svc_auth.h: Likewise.
2142 * sunrpc/rpc/types.h: Likewise.
2143 * sunrpc/rpc/xdr.h: Likewise.
2144 * sunrpc/rpc_clntout.c: Likewise.
2145 * sunrpc/rpc_cmsg.c: Likewise.
2146 * sunrpc/rpc_common.c: Likewise.
2147 * sunrpc/rpc_cout.c: Likewise.
2148 * sunrpc/rpc_dtable.c: Likewise.
2149 * sunrpc/rpc_hout.c: Likewise.
2150 * sunrpc/rpc_main.c: Likewise.
2151 * sunrpc/rpc_parse.c: Likewise.
2152 * sunrpc/rpc_parse.h: Likewise.
2153 * sunrpc/rpc_prot.c: Likewise.
2154 * sunrpc/rpc_sample.c: Likewise.
2155 * sunrpc/rpc_scan.c: Likewise.
2156 * sunrpc/rpc_scan.h: Likewise.
2157 * sunrpc/rpc_svcout.c: Likewise.
2158 * sunrpc/rpc_tblout.c: Likewise.
2159 * sunrpc/rpc_util.c: Likewise.
2160 * sunrpc/rpc_util.h: Likewise.
2161 * sunrpc/rpcinfo.c: Likewise.
2162 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2163 * sunrpc/rpcsvc/key_prot.x: Likewise.
2164 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2165 * sunrpc/rpcsvc/mount.x: Likewise.
2166 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2167 * sunrpc/rpcsvc/nlm_prot.x: Likewise.
2168 * sunrpc/rpcsvc/rex.x: Likewise.
2169 * sunrpc/rpcsvc/rstat.x: Likewise.
2170 * sunrpc/rpcsvc/rusers.x: Likewise.
2171 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2172 * sunrpc/rpcsvc/spray.x: Likewise.
2173 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2174 * sunrpc/rtime.c: Likewise.
2175 * sunrpc/svc.c: Likewise.
2176 * sunrpc/svc_auth.c: Likewise.
2177 * sunrpc/svc_authux.c: Likewise.
2178 * sunrpc/svc_raw.c: Likewise.
2179 * sunrpc/svc_run.c: Likewise.
2180 * sunrpc/svc_simple.c: Likewise.
2181 * sunrpc/svc_tcp.c: Likewise.
2182 * sunrpc/svc_udp.c: Likewise.
2183 * sunrpc/svc_unix.c: Likewise.
2184 * sunrpc/svcauth_des.c: Likewise.
2185 * sunrpc/xcrypt.c: Likewise.
2186 * sunrpc/xdr.c: Likewise.
2187 * sunrpc/xdr_array.c: Likewise.
2188 * sunrpc/xdr_float.c: Likewise.
2189 * sunrpc/xdr_mem.c: Likewise.
2190 * sunrpc/xdr_rec.c: Likewise.
2191 * sunrpc/xdr_ref.c: Likewise.
2192 * sunrpc/xdr_sizeof.c: Likewise.
2193 * sunrpc/xdr_stdio.c: Likewise.
2194
2195 * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
2196 handling.
2197
2198 2010-08-19 Andreas Schwab <schwab@redhat.com>
2199
2200 * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
2201
2202 2010-08-19 Luis Machado <luisgpm@br.ibm.com>
2203
2204 * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
2205 * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
2206 * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
2207 * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
2208 * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
2209 * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
2210 * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
2211 * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
2212 * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
2213 * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
2214 * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
2215 * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
2216 * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
2217 * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
2218
2219 2010-07-26 Anton Blanchard <anton@samba.org>
2220
2221 * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
2222 * malloc/arena.c (heap_trim): Likewise.
2223
2224 2010-08-16 Ulrich Drepper <drepper@redhat.com>
2225
2226 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
2227 here. Not...
2228 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
2229 * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
2230
2231 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
2232
2233 * sysdeps/i386/elf/Makefile: New file.
2234
2235 2010-08-14 Andreas Schwab <schwab@linux-m68k.org>
2236
2237 * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
2238 from fanotify_init.
2239 * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2240 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
2241
2242 2010-08-15 Ulrich Drepper <drepper@redhat.com>
2243
2244 * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
2245 of strncasecmp_l.
2246 * sysdeps/multiarch/strcmp.S: Likewise.
2247
2248 2010-08-14 Ulrich Drepper <drepper@redhat.com>
2249
2250 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
2251 strncase_l-nonascii.
2252 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2253 Add strncase_l-ssse3.
2254 * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
2255 * sysdeps/x86_64/strcmp.S: Likewise.
2256 * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
2257 * sysdeps/x86_64/multiarch/strncase_l.S: New file.
2258 * sysdeps/x86_64/strncase.S: New file.
2259 * sysdeps/x86_64/strncase_l-nonascii.c: New file.
2260 * sysdeps/x86_64/strncase_l.S: New file.
2261 * string/Makefile (strop-tests): Add strncasecmp.
2262 * string/test-strncasecmp.c: New file.
2263
2264 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
2265 warning.
2266
2267 * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
2268 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
2269
2270 2010-08-14 Andreas Schwab <schwab@linux-m68k.org>
2271
2272 * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
2273
2274 2010-08-12 Ulrich Drepper <drepper@redhat.com>
2275
2276 * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
2277 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2278 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2279
2280 2010-05-01 Alan Modra <amodra@gmail.com>
2281
2282 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
2283 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
2284 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
2285 * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
2286 * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
2287 tidying. Don't tail-call __sigjmp_save for static lib.
2288 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
2289 save location.
2290 (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
2291 (CALL_MCOUNT): Add eh info, and nop after bl.
2292 (TAIL_CALL_SYSCALL_ERROR): New macro.
2293 (PSEUDO_RET): Use it.
2294 * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2295 Correct save location of integer regs and cr.
2296 (_dl_profile_resolve): Correct cr save location. Delete nops
2297 after bl when SHARED. Reduce cfi size a little by better
2298 placement of cfi directives.
2299 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
2300 make a stack frame. Instead use parm save area as a temp.
2301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
2302 make a stack frame. Use TAIL_CALL_SYSCALL_ERROR.
2303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2304 Don't make a stack frame for parent, use parm save area.
2305 Increase child stack frame to 112 bytes. Don't save unused reg,
2306 and adjust reg usage. Set up cfi on error recovery and
2307 epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
2308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2309 (__makecontext): Add dummy nop after jump to exit.
2310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
2311 Use correct parm save area and cr save, reduce stack frame.
2312 Correct cfi for possible PSEUDO_RET frame setup.
2313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
2314 Branch to local label emitted by PSEUDO_RET rather than
2315 __syscall_error.
2316
2317 2010-08-12 Andreas Schwab <schwab@redhat.com>
2318
2319 [BZ #11904]
2320 * locale/programs/locale.c (print_assignment): New function.
2321 (show_locale_vars): Use it.
2322
2323 2010-08-11 Ulrich Drepper <drepper@redhat.com>
2324
2325 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
2326 field.
2327 (struct statfs64): Likewise.
2328 (_STATFS_F_FLAGS): Define.
2329 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
2330 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2331 Don't define if __ASSUME_STATFS_F_FLAGS is defined.
2332 (ST_VALID): Define locally.
2333 (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
2334 __statvfs_getflags, use the provided value.
2335 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2336 __ASSUME_STATFS_F_FLAGS.
2337
2338 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
2339
2340 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2341 Add sys/fanotify.h.
2342 * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
2343 fanotify_mask for GLIBC_2.13.
2344 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
2345 fanotify_init and fanotify_mark.
2346 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
2347 * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
2348
2349 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
2350 Add prlimit.
2351 * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
2352 prlimit64 for GLIBC_2.13.
2353 * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
2354 prlimit64.
2355 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
2356 syscall.
2357 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
2358 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
2359 * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
2360 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
2361 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise. Also
2362 add prlimit alias.
2363 * sysdeps/unix/sysv/linux/prlimit.c: New file.
2364
2365 [BZ #11903]
2366 * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
2367 Patch by Evgeni Bikov <bikovevg@iitp.ru>.
2368
2369 * nss/Makefile: Add rules to build and run tst-nss-test1.
2370 * shlib-versions: Add entry for libnss_test1.
2371 * nss/nss_test1.c: New file.
2372 * nss/tst-nss-test1.c: New file.
2373
2374 * nss/nsswitch.c (__nss_database_custom): Define new variable.
2375 (__nss_configure_lookup): Set appropriate entry in
2376 __nss_configure_lookup to true.
2377 * nss/nsswitch.h: Define enum with indeces of databases in
2378 databases and __nss_database_custom arrays. Declare
2379 __nss_database_custom.
2380 * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
2381 to avoid using nscd when custom rules are installed.
2382 * nss/getXXbyYY_r.c: Likewise.
2383 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2384
2385 * nss/nss_files/files-parse.c: Whitespace fixes.
2386
2387 2010-08-09 Ulrich Drepper <drepper@redhat.com>
2388
2389 [BZ #11883]
2390 * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
2391 * posix/fnmatch_loop.c: Likewise.
2392
2393 2010-07-17 Andi Kleen <ak@linux.intel.com>
2394
2395 * sysdeps/i386/i386-mcount.S (__fentry__): Define.
2396 * sysdeps/x86_64/_mcount.S (__fentry__): Define.
2397 * stdlib/Versions (__fentry__): Add for GLIBC 2.13
2398 * Versions.def [GLIBC_2.13]: Add.
2399
2400 2010-08-06 Ulrich Drepper <drepper@redhat.com>
2401
2402 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2403 Also fail if tpwd after pwuid call is NULL.
2404
2405 2010-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
2406
2407 * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
2408 when converting to ms.
2409
2410 2010-06-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2411
2412 * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
2413 EOPNOTSUPP errors with ENOTTY.
2414 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
2415 EOPNOTSUPP errors with ENOTTY.
2416
2417 2010-07-31 Ulrich Drepper <drepper@redhat.com>
2418
2419 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2420 Add strcasecmp_l-ssse3.
2421 * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
2422 strcasecmp.
2423 * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
2424 * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
2425 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
2426
2427 2010-07-30 Ulrich Drepper <drepper@redhat.com>
2428
2429 * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
2430
2431 * string/Makefile (strop-tests): Add strcasecmp.
2432 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
2433 strcasecmp_l-nonascii.
2434 (gen-as-const-headers): Add locale-defines.sym.
2435 * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
2436 * sysdeps/x86_64/strcasecmp.S: New file.
2437 * sysdeps/x86_64/strcasecmp_l.S: New file.
2438 * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
2439 * sysdeps/x86_64/locale-defines.sym: New file.
2440 * string/test-strcasecmp.c: New file.
2441
2442 * string/test-strcasestr.c: Test both ends of the range of characters.
2443 * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
2444
2445 2010-07-29 Roland McGrath <roland@redhat.com>
2446
2447 [BZ #11856]
2448 * manual/locale.texi (Yes-or-No Questions): Fix example code.
2449
2450 2010-07-27 Ulrich Drepper <drepper@redhat.com>
2451
2452 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
2453 for ld.so.
2454
2455 2010-07-27 Andreas Schwab <schwab@redhat.com>
2456
2457 * manual/memory.texi (Malloc Tunable Parameters): Document
2458 M_PERTURB.
2459
2460 2010-07-26 Roland McGrath <roland@redhat.com>
2461
2462 [BZ #11840]
2463 * configure.in (-fgnu89-inline check): Set and substitute
2464 gnu89_inline, not libc_cv_gnu89_inline.
2465 * configure: Regenerated.
2466 * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
2467
2468 2010-07-26 Ulrich Drepper <drepper@redhat.com>
2469
2470 * string/test-strnlen.c: New file.
2471 * string/Makefile (strop-tests): Add strnlen.
2472 * string/tester.c (test_strnlen): Add a few more test cases.
2473 * string/tst-strlen.c: Better error reporting.
2474
2475 * sysdeps/x86_64/strnlen.S: New file.
2476
2477 2010-07-24 Ulrich Drepper <drepper@redhat.com>
2478
2479 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
2480 lower-latency instructions.
2481
2482 2010-07-23 Ulrich Drepper <drepper@redhat.com>
2483
2484 * string/test-strcasestr.c: New file.
2485 * string/test-strstr.c: New file.
2486 * string/Makefile (strop-tests): Add strstr and strcasestr.
2487 * string/str-two-way.h: Don't undefine MAX.
2488 * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
2489
2490 2010-07-21 Andreas Schwab <schwab@redhat.com>
2491
2492 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2493 strcasestr-nonascii.
2494 (CFLAGS-strcasestr-nonascii.c): Define.
2495 * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
2496 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
2497 Remove unused attribute.
2498
2499 2010-07-20 Roland McGrath <roland@redhat.com>
2500
2501 * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
2502 dl_hwcap_mask as well as dl_hwcap. Without this, dsocaps matching in
2503 ld.so.cache was broken. With it, there is no way to disable dsocaps
2504 like LD_HWCAP_MASK can disable hwcaps.
2505
2506 2010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
2507
2508 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
2509
2510 2010-07-16 Ulrich Drepper <drepper@redhat.com>
2511
2512 * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
2513 call in strcasestr.
2514 * sysdeps/x86_64/multiarch/strcasestr.c: Declare
2515 __strcasestr_sse42_nonascii.
2516 * sysdeps/x86_64/multiarch/Makefile: Add rules to build
2517 strcasestr-nonascii.c.
2518 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
2519
2520 2010-06-15 Luis Machado <luisgpm@br.ibm.com>
2521
2522 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
2523 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
2524 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
2525 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
2526
2527 2010-07-09 Ulrich Drepper <drepper@redhat.com>
2528
2529 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
2530 fcntl.
2531
2532 2010-07-06 Andreas Schwab <schwab@redhat.com>
2533
2534 [BZ #11577]
2535 * elf/dl-version.c (match_symbol): Don't pass NULL occation to
2536 dl_signal_cerror.
2537
2538 2010-07-06 Ulrich Drepper <drepper@redhat.com>
2539
2540 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
2541 _PC_PIPE_BUF using F_GETPIPE_SZ.
2542
2543 2010-07-05 Roland McGrath <roland@redhat.com>
2544
2545 * manual/arith.texi (Rounding Functions): Fix rint description
2546 implicit in round description.
2547
2548 2010-07-02 Ulrich Drepper <drepper@redhat.com>
2549
2550 * elf/Makefile: Fix linking for a few tests to make recent linker
2551 happy.
2552
2553 2010-06-30 Andreas Schwab <schwab@redhat.com>
2554
2555 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
2556 $(common-objpfx)libc_nonshared.a.
2557
2558 2010-06-21 Luis Machado <luisgpm@br.ibm.com>
2559
2560 * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
2561 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
2562 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
2563 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
2564 * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
2565 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
2566 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
2567 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
2568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
2569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
2570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
2571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
2572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
2573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
2574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
2575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
2576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
2577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
2578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
2579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
2580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
2581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
2582 * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
2583 * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
2584 * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
2585 * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
2586 * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
2587 * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
2588 * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
2589 * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
2590 * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
2591 * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
2592 * sysdeps/powerpc/powerpc32/power7/Implies: New file.
2593 * sysdeps/powerpc/powerpc64/power7/Implies: New file.
2594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
2595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
2596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
2597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
2598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
2599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
2600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
2601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
2602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
2603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
2604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
2605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
2606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
2607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
2608
2609 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
2610
2611 * debug/memmove_chk.c (__memmove_chk): Renamed to ...
2612 (MEMMOVE_CHK): ...this. Default to __memmove_chk.
2613 * string/memmove.c (memmove): Renamed to ...
2614 (MEMMOVE): ...this. Default to memmove.
2615 * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
2616 * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
2617 (END_CHK): Define.
2618 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2619 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
2620 mempcpy-ssse3-back memmove-ssse3-back.
2621 * sysdeps/x86_64/multiarch/bcopy.S: New file .
2622 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
2623 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
2624 * sysdeps/x86_64/multiarch/memcpy.S: New file.
2625 * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
2626 * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
2627 * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
2628 * sysdeps/x86_64/multiarch/memmove.c: New file.
2629 * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
2630 * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
2631 * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
2632 * sysdeps/x86_64/multiarch/mempcpy.S: New file.
2633 * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
2634 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
2635 Define.
2636 (index_Fast_Copy_Backward): Define.
2637 (HAS_ARCH_FEATURE): Define.
2638 (HAS_FAST_REP_STRING): Define.
2639 (HAS_FAST_COPY_BACKWARD): Define.
2640
2641 2010-06-21 Andreas Schwab <schwab@redhat.com>
2642
2643 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2644 Restore proper fallback handling.
2645
2646 2010-06-19 Ulrich Drepper <drepper@redhat.com>
2647
2648 [BZ #11701]
2649 * posix/group_member.c (__group_member): Correct checking loop.
2650
2651 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
2652 OOM in getpwuid_r correctly. Return error number when the caller
2653 should return, otherwise -1.
2654 (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
2655 call returning > 0 value.
2656 * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
2657
2658 2010-06-07 Andreas Schwab <schwab@redhat.com>
2659
2660 * dlfcn/Makefile: Remove explicit dependencies on libc.so and
2661 libc_nonshared.a from targets in modules-names.
2662
2663 2010-06-02 Kirill A. Shutemov <kirill@shutemov.name>
2664
2665 * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
2666 requires it.
2667
2668 2010-06-10 Luis Machado <luisgpm@br.ibm.com>
2669
2670 * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
2671 * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
2672 * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
2673 * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
2674
2675 2010-06-02 Andreas Schwab <schwab@redhat.com>
2676
2677 * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
2678
2679 2010-06-14 Ulrich Drepper <drepper@redhat.com>
2680
2681 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
2682 and F_GETPIPE_SZ.
2683 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2684 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2685 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2686 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2687 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2688 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
2689
2690 2010-06-14 Roland McGrath <roland@redhat.com>
2691
2692 * manual/libc.texinfo (@copying): Change to GFDL v1.3.
2693
2694 2010-06-07 Jakub Jelinek <jakub@redhat.com>
2695
2696 * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
2697 __REDIRECT followed by __THROW.
2698 * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
2699 * posix/getopt.h (getopt): Likewise.
2700
2701 2010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
2702
2703 * hurd/lookup-at.c (__file_name_lookup_at): Accept
2704 AT_SYMLINK_FOLLOW in AT_FLAGS. Fail with EINVAL if both
2705 AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
2706 in AT_FLAGS.
2707 * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
2708 * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
2709
2710 2010-05-28 Luis Machado <luisgpm@br.ibm.com>
2711
2712 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
2713
2714 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
2715
2716 [BZ #11640]
2717 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2718 Properly check family and model.
2719
2720 2010-05-26 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
2721
2722 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
2723
2724 2010-05-24 Luis Machado <luisgpm@br.ibm.com>
2725
2726 * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
2727
2728 2010-05-21 Ulrich Drepper <drepper@redhat.com>
2729
2730 * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
2731 symbol reference.
2732
2733 2010-05-19 Andreas Schwab <schwab@redhat.com>
2734
2735 * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
2736 symbol reference.
2737
2738 2010-05-21 Andreas Schwab <schwab@redhat.com>
2739
2740 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
2741 and internal_recvmmsg.
2742 * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
2743 * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
2744 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
2745 * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
2746
2747 * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
2748 * sunrpc/clnt_udp.c (clntudp_control): Likewise.
2749 * sunrpc/clnt_unix.c (clntunix_control): Likewise.
2750
2751 2010-05-20 Andreas Schwab <schwab@redhat.com>
2752
2753 * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
2754
2755 2010-05-17 Luis Machado <luisgpm@br.ibm.com>
2756
2757 POWER7 optimizations.
2758 * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
2759 * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
2760
2761 2010-05-19 Ulrich Drepper <drepper@redhat.com>
2762
2763 * version.h: Update for 2.13 development version.
2764
2765 2010-05-12 Andrew Stubbs <ams@codesourcery.com>
2766
2767 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
2768 exceptions. Return 0.
2769
2770 2010-05-07 Roland McGrath <roland@redhat.com>
2771
2772 * elf/ldconfig.c (main): Add a const.
2773
2774 2010-05-06 Ulrich Drepper <drepper@redhat.com>
2775
2776 * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
2777 (args_options): Add no-idn option.
2778 (ahosts_keys_int): Add idn_flags to ai_flags.
2779 (parse_option): Handle 'i' option to clear idn_flags.
2780
2781 * malloc/malloc.c (_int_free): Possible race in the most recently
2782 added check. Only act on the data if no current modification
2783 happened.
2784
2785 See ChangeLog.17 for earlier changes.