]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
* locales/iso14651_t1_common: Add rules for sorting Malayalam.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
40e2fc8b
UD
12009-02-10 Ulrich Drepper <drepper@redhat.com>
2
3 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4 defined, allow additional data to be added using the optional
5 MORE_ELF_HEADER_DATA macro.
6 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
7 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
8
6c03cd11
UD
92009-02-08 Ulrich Drepper <drepper@redhat.com>
10
11 * include/atomic.h: Define catomic_and if not already defined.
12 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
13 * sysdeps/i386/i486/bits/atomic.h: Likewise.
14
bc16e0c4
UD
152009-02-07 Ulrich Drepper <drepper@redhat.com>
16
78ac92ad
UD
17 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
18 Change all callers.
6dd6a580 19 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 20 All _int_* functions are now static.
6dd6a580 21
78ac92ad
UD
22 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
23 * malloc/arena.c: Likewise.
24 * include/malloc.h: Remove now unnecessary declarations of the _int_*
25 functions.
26
7dddb4bd
UD
27 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
28 easily.
29
bfacf1af
UD
30 * malloc/malloc.c: Add branch prediction for use of the hooks.
31
bc16e0c4
UD
32 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
33
26b62243
UD
342009-02-06 Ulrich Drepper <drepper@redhat.com>
35
36 [BZ #7095]
37 * bits/confname.h: Add SUSv7 macros for getconf environments.
38 * bits/environments.h: Likewise.
39 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
40 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
41 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
42 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
43 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
44 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
45 * posix/getconf.c: Likewise.
46 * posix/sysconf.c: Likewise.
47 * sysdeps/posix/sysconf.c: Likewise.
48 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
49 environments.
50
3fe4c5b3
UD
512009-01-16 Petr Baudis <pasky@suse.cz>
52
53 [BZ #9753]
54 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
55 even if we currently have zero nscount.
56
cbbcaf23
UD
572009-02-06 Ulrich Drepper <drepper@redhat.com>
58
1a9dd4e4
UD
59 [BZ #9781]
60 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
61 the input line is too long.
62
51f8846e
UD
63 * po/Makefile (libc.pot): Add f_print as function taking c-format
64 parameter.
65
cbbcaf23
UD
66 * debug/xtrace.sh: Unify translatable messages.
67 * elf/ldd.bash.in: Likewise.
68 * elf/sprof.c: Likewise.
69 * locale/programs/locale.c: Likewise.
70 * malloc/memusage.sh: Likewise.
71 * nss/getent.c: Likewise.
72
732009-02-06 Joseph Myers <joseph@codesourcery.com>
74
75 * debug/pcprofiledump.c (print_version,
76 argp_program_version_hook): New function.
77 * elf/ldconfig.c (more_help): New function.
78 (argp): Use it.
79 * elf/sln.c (usage): New function.
80 (main): Support --help and --version.
81 * malloc/memusagestat.c (print_version): New function.
82 (argp_program_version_hook): New variable.
83 * nscd/nscd.c (more_help): New function.
84 (argp): Use it.
85 * posix/getconf.c (main): Send --version output to stdout.
86 Support --help.
87 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
88 arguments. All callers changed.
89 (print_version): New function.
90 (parseargs): Support --help and --version.
91 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
92 changed.
93 (print_version): New function.
94 (main): Use getopt_long. Support --help and --version.
95 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
96 --version.
97
88a3b8f9
UD
982009-02-06 Ulrich Drepper <drepper@redhat.com>
99
e2e390fa
UD
100 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
101 (update_data): Fix handling of wrapping back
c3ab42a8
UD
102 to the beginning of the buffer.
103
88a3b8f9
UD
104 [BZ #9823]
105 * stdio-common/psignal.c (psignal): Fix test for empty string.
106
62f63c47
UD
1072009-02-05 Ulrich Drepper <drepper@redhat.com>
108
4f7408c7
UD
109 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
110 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
111 move _null_auth to .rodata.
112
970aa10f
UD
113 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
114 value of 24.
115
52de761a
UD
116 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
117
62f63c47
UD
118 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
119 today than when the original code was written. Use larger
120 buffers. This also makes it unnecessary to have stat information,
121 if this causes extra efforts.
122 (__opendir): In case O_DIRECTORY works, don't call fstat just for
123 __alloc_dir.
124
0899b889
UD
1252009-02-03 Andrew Stubbs <ams@codesourcery.com>
126
127 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
128 is set.
129 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
130 * sysdeps/sh/sh4/__longjmp.S: Likewise.
131 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
132 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
133 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
134 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
135
22cc3f75
UD
1362009-02-04 Ulrich Drepper <drepper@redhat.com>
137
138 * po/ru.po: Update from translation team.
139
a71433e7
UD
1402008-11-17 Nathan Sidwell <nathan@codesourcery.com>
141
142 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
143 Add _tid slot to maintain consistency with kernel.
144
82f2e9c6 1452009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 146
82f2e9c6
UD
147 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
148 incomplete characters at end of input buffer.
149 * libio/Makefile (tests): Add tst-fgetwc.
150 * libio/tst-fgetwc.c: New file.
151 * libio/tst-fgetwc.input: New file.
3a2e9947 152
ba022c06
UD
1532009-02-02 Andrew Stubbs <ams@codesourcery.com>
154
155 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
156
1b14353e
UD
1572009-02-02 Ulrich Drepper <drepper@redhat.com>
158
159 [BZ #9793]
160 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
161 *OUTBUFSTART unless the whole output fit into the buffer.
162 * iconv/Makefile (tests): Add tst-iconv4.
163 * iconv/tst-iconv4.c: New file.
164
ebc22416
UD
1652009-02-01 Ulrich Drepper <drepper@redhat.com>
166
167 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
168 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
169
7c8a6732
UD
1702009-01-29 Andrew Stubbs <ams@codesourcery.com>
171
172 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
173 newer linker scripts.
174
43149780
UD
1752009-01-30 Ulrich Drepper <drepper@redhat.com>
176
177 [BZ #7040]
178 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
179 inotify_rm_watch should have type int.
180
bd4ace0b
UD
1812009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
182
183 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
184 Make aligned_restore_vmx a local symbol.
185 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
186 Likewise.
187
430902da
AJ
1882009-01-30 Andreas Jaeger <aj@suse.de>
189
190 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
191 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
192 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
193 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
194 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
195 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
196 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
197
b7219e53
UD
1982009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
199
200 [BZ #9726]
201 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
202 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
203
2042009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
205
206 [BZ #9726]
207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
208 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
210 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
211
a3bd2846
UD
2122009-01-11 Thomas Schwinge <tschwinge@gnu.org>
213
214 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
215 memcpy instead of memcmp.
216 (_dl_setup_pointer_guard): Likewise.
217
1fdd89a7
UD
2182009-01-30 Ulrich Drepper <drepper@redhat.com>
219
220 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
221 manipulated brk, use malloc_printerr.
222 * misc/sbrk.c (__sbrk): Better error handling for nonsense
223 requests.
224
8585cb74
UD
2252009-01-30 Jakub Jelinek <jakub@redhat.com>
226
227 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
228 rindex): For C++ add inlines so that they can be recognized as
229 builtins.
230 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
231
d8387c7b
UD
2322009-01-29 Ulrich Drepper <drepper@redhat.com>
233 Jakub Jelinek <jakub@redhat.com>
234
cdf77dd8
UD
235 * string/string.h: Define correct C++ prototypes for gcc 4.4.
236 * wcsmbs/wchar.h: Likewise.
d8387c7b 237
647925b2
UD
2382009-01-29 Ulrich Drepper <drepper@redhat.com>
239
240 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
241 (stackinfo_sub_sp): Define.
242
5627534a
UD
2432009-01-28 Ulrich Drepper <drepper@redhat.com>
244
fd537e53
UD
245 [BZ #9750]
246 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
247 * include/alloca.h (alloca_account): Define.
248 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
249 (stackinfo_sub_sp): Define.
250
00f5df0e
UD
251 * nscd/connections.c (nscd_init): If database file access fails
252 check whether this is due to permission problems and bail in that
253 case.
31d322a2 254
5627534a
UD
255 [BZ #9741]
256 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
257 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
258
a7bd183f
UD
2592009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
260
261 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
262 Add "t" to clobber list.
263 (INTERNAL_SYSCALL_NCS): Likewise.
264
1dd75769
UD
2652009-01-28 Ulrich Drepper <drepper@redhat.com>
266
267 * nss/getent.c (print_networks): Don't print comma between aliases.
268
25e84177
UD
2692009-01-23 Ulrich Drepper <drepper@redhat.com>
270
271 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
272
273 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
274 the hash table.
275 * misc/Makefile (tests): Add bug-hsearch1.
276 * misc/bug-hsearch1.c: New file.
277
0699a0ca
RM
2782009-01-22 Roland McGrath <roland@redhat.com>
279
280 * Makeconfig (%.v.i): Strip trailing # comments,
281 not only whole-line comments.
282
965cb60a
UD
2832009-01-10 Ulrich Drepper <drepper@redhat.com>
284
285 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
286 one parameter. If non-NULL use it to initialize return value.
287 (_dl_setup_pointer_guard): New function.
288 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
289 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
290 * elf/rtld.c (security_init): Pass _dl_random to
291 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
292 pointer_chk_guard.
293 * elf/dl-sysdep.c (_dl_random): New variable.
294 (_dl_sysdep_start): Handle AT_RANDOM.
295 (_dl_show_auxv): Likewise.
296 * elf/dl-support.c (_dl_random): New variable.
297 (_dl_aux_init): Handle AT_RANDOM.
298 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
299 to _dl_setup_stack_chk_guard.
300
301 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
302
8be96dd1
RM
3032009-01-10 Roland McGrath <roland@redhat.com>
304
305 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
306
157cd5ac
UD
3072009-01-08 Ulrich Drepper <drepper@redhat.com>
308
9b1c750e
UD
309 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
310
157cd5ac
UD
311 [BZ #9706]
312 * nss/nss_files/files-parse.c (strtou32): New function.
313 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
314 across 32-bit and 64-bit platforms.
315 (INT_FIELD_MAYBE_NULL): Likewise.
316
960af8c2
JJ
3172009-01-08 Jakub Jelinek <jakub@redhat.com>
318
319 [BZ #9720]
320 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
321 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
322 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
323 Likewise.
324
76c7f2cd
UD
3252009-01-05 Paolo Bonzini <bonzini@gnu.org>
326
16c124f7 327 [BZ #697]
76c7f2cd
UD
328 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
329 being NULL also if there are no backreferences.
330 * posix/rxspencer/tests: Add testcases.
331
bdb56bac
UD
3322009-01-04 Paolo Bonzini <bonzini@gnu.org>
333
16c124f7 334 [BZ #9697]
bdb56bac
UD
335 * posix/bug-regex17.c: Add testcases.
336 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
337 handling.
338
0480c901
UD
3392009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
340
341 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
342 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
343 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
344 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
345 for elf subdir.
346 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
347 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
348 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
349 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
350 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
351 * sysdeps/unix/sysv/linux/s390/Versions: New file.
352
b3918c7d
UD
3532008-12-31 Paolo Bonzini <bonzini@gnu.org>
354
355 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
356 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
357 re_string_skip_chars, re_string_reconstruct): Likewise.
358 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
359
df9293cb
UD
3602008-12-31 Rafael Avila de Espindola <espindola@google.com>
361
362 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
363 adjust the buffer alignment.
364
c90c1e1c
RM
3652009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
366
367 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
368 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
369 net/route.h.
370
371 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
372 flavor to description only when flavor is not NULL.
373
374 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
375 mutex after SIGIO/SIGURG lookup loop.
376
5aff6fdf
RM
3772009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
378
379 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
380
b2bcd249
UD
3812009-01-03 Ulrich Drepper <drepper@redhat.com>
382
383 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
384 handling.
385
d36ad871
UD
3862009-01-02 Ulrich Drepper <drepper@redhat.com>
387
ebb2788e
UD
388 * sysdeps/unix/sysv/linux/kernel-features.h
389 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
390
72098116
UD
391 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
392 if no output is written.
393
623d0bf5
UD
394 * version.h: Bump to 2.10 development.
395
d36ad871
UD
396 * posix/getconf.c: Update copyright year.
397 * nss/getent.c: Likewise.
398 * iconv/iconvconfig.c: Likewise.
399 * iconv/iconv_prog.c: Likewise.
400 * elf/ldconfig.c: Likewise.
401 * catgets/gencat.c: Likewise.
402 * csu/version.c: Likewise.
403 * elf/ldd.bash.in: Likewise.
404 * elf/sprof.c (print_version): Likewise.
405 * locale/programs/locale.c: Likewise.
406 * locale/programs/localedef.c: Likewise.
407 * nscd/nscd.c (print_version): Likewise.
408 * debug/xtrace.sh: Likewise.
409 * malloc/memusage.sh: Likewise.
410 * malloc/mtrace.pl: Likewise.
411 * debug/catchsegv.sh: Likewise.
412
25df09ab
UD
4132008-12-29 Mike Frysinger <vapier@gentoo.org>
414
415 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
416 script.
417
16b7dc27
UD
4182008-12-29 Ulrich Drepper <drepper@redhat.com>
419
bfbbc63f
UD
420 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
421 gethostbyname4_r function call succeeded, just leave the loop.
422
0f2ae55c
UD
423 [BZ #9694]
424 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
425 very end.
5703f472
UD
426 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
427 * wctype/Makefile (tests): Add bug-wctypeh.
428 * wctype/bug-wctypeh.c: New file.
0f2ae55c 429
50e481ce
UD
430 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
431 LOCALDOMAIN is defined.
432 * nscd/nscd_getai.c (__nscd_getai): Likewise.
433
217d45cd
UD
434 * sysdeps/x86_64/bits/select.h: New file.
435
16b7dc27
UD
436 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
437
bf93cd3b
UD
4382008-12-21 Bruno Haible <bruno@clisp.org>
439
440 [BZ #9677]
441 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
442 if no output is written.
443
49159e12
UD
4442008-12-13 Klaus Dittrich <kladit@arcor.de>
445
446 * login/utmp_file.c (pututline_file): Replace call to dup2 with
447 libc internal symbol __dup2 to avoid access through the PLT.
448
d4f0720b
UD
4492008-12-08 Ulrich Drepper <drepper@redhat.com>
450
135460f4
UD
451 [BZ #6545]
452 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
453 available only for __USE_GNU.
454
ed0da352
UD
455 * inet/Makefile (tests): Add tst-getni2.
456 * inet/tst-getni2.c: New file.
457
d4f0720b
UD
458 [BZ #7080]
459 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
460 NULL when NI_NAMEREQD is set.
461 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
462 * inet/Makefile (tests): Add tst-getni1.
463 * inet/tst-getni1.c: New file.
464
cd72adeb
UD
4652008-12-03 Petr Baudis <pasky@suse.cz>
466
467 [BZ #7067]
468 * nscd/connections.c (invalidate_cache): Use prune_run_lock
469 instead of prune_lock.
470 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
471 * nscd/nscd.h (database_dyn): Add prune_run_cache.
472
e87946cc
UD
4732008-12-07 Ulrich Drepper <drepper@redhat.com>
474
200da00a
UD
475 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
476 use.
477
478 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
479 handling.
480
905ef0da
UD
481 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
482 after reading name server list.
483
71053765 484 [BZ #7058]
e87946cc
UD
485 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
486 handling for host name aliases.
487
d43b8bdd
JJ
4882008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
489
490 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
491 instead of doing things manually.
492
4932008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
494
495 * posix/regex_internal.h (build_wcs_upper_buffer):
496 Return type is reg_error_t.
497
25a34eb7
UD
4982008-12-05 Ulrich Drepper <drepper@redhat.com>
499
f3721ab2
UD
500 * posix/globtest.sh: Use mktemp to create temporary file and
501 directory.
502
25a34eb7
UD
503 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
504 sets correctly.
505 (__CPU_CLR_S): Likewise.
506 (__CPU_ISSET_S): Likewise.
507
8680179f
UD
5082008-12-05 Joseph Myers <joseph@codesourcery.com>
509 Ulrich Drepper <drepper@redhat.com>
510
511 * scripts/firstversion.awk: Use custom comparison function to compare
512 version numbers.
513 * scripts/versions.awk: Use sort invocation which can handle
514 multi-digit sub-version numbers.
515
72d50908
UD
5162008-12-04 Ulrich Drepper <drepper@redhat.com>
517
518 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
519 * locale/iso-639.def: Add Chhattisgarhi entry.
520
f93fc0b7
UD
5212008-12-02 Ulrich Drepper <drepper@redhat.com>
522
da5ac135
UD
523 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
524 ESRCH return value.
525 (_nss_dns_gethostbyname4_r): Likewise.
526 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
527 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
528 gethostbyname4_r, we don't have a separate IPv6 status, so copy
529 the no_data variable.
530
6f5c3117
UD
531 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
532 information at the correct index.
533
f93fc0b7
UD
534 * socket/sys/socket.h: Declare accept4.
535 * socket/accept4.c: New file.
536 * sysdeps/unix/sysv/linux/accept4.c: New file.
537 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
538 * socket/Makefile (routines): Add accept4.
539 * socket/Versions: Export accept4 with version GLIBC_2.10.
540 * socket/paccept.c: Removed.
541 * sysdeps/unix/sysv/linux/paccept.c: Removed.
542 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
543 * Versions.def: Define GLIBC_2.10 for libc.
544 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
545
546 * nscd/connections.c: Use accept4.
547
548 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
549
1fa7ae05
UD
5502008-12-01 Ulrich Drepper <drepper@redhat.com>
551
9744268c
UD
552 * resolv/res_send.c (send_dg): Create sockets with non-blocking
553 flag already set.
554
1fa7ae05
UD
555 * stdlib/setenv.c (unsetenv): Don't search environment if it does
556 not exist.
30c06371
UD
557 * stdlib/Makefile (tests): Add tst-unsetenv1.
558 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 559
37a6a271
UD
5602008-11-29 Ulrich Drepper <drepper@redhat.com>
561
562 * login/utmp_file.c (file_writable): New variable.
563 (setutent_file): Don't try to open file for writing.
564 (pututline_file): Before writing, make descriptor writable if
565 necessary.
566
ca4dc0fe
UD
5672008-11-26 Ulrich Drepper <drepper@redhat.com>
568
be4607eb
UD
569 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
570 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 571
01a74645
RM
5722008-11-26 Roland McGrath <roland@redhat.com>
573
24fd0a5b
RM
574 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
575 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
576
577 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
578 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
579 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
580
01a74645
RM
581 * elf/elf.h (NT_386_IOPERM): New macro.
582 (NT_PPC_VSX): New macro.
583
c0439b95
RM
5842008-11-25 Roland McGrath <roland@redhat.com>
585
586 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
587 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
588 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
589 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
590 Subdirectories moved to ports repository.
591 * configure.in (base_machine): Remove alpha case.
592
d3dc523b
RM
5932008-11-25 Thomas Schwinge <tschwinge@gnu.org>
594
595 * sysdeps/mach/strerror_l.c: New file.
596
edba7a54
UD
5972008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
598
599 [BZ #6411]
600 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
601 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
602 magic numbers.
603 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
604 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
605 (relax_fenv_state): Same as above.
606 (FPSCR_29): Reserve bit in ISA 2.05.
607 (FPSCR_NI): Provide define for compat.
608 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
609 magic numbers.
610 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
611 magic numbers.
612 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
613 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
614 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
615 access to hwcap to account for hwcap size increase to uint64_t.
616 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
617 Likewise.
618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
619 (*setcontext): Likewise.
620 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
621 New file.
622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
623 New file.
624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
625 (*setcontext): dynamically select mtfsf insn based on
626 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
627 increase to uint64_t.
628 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
629 (*swapcontext): dynamically select mtfsf insn based on
630 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
631 increase to uint64_t.
632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
633 New file.
634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
635 New file.
636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
637 (*setcontext): dynamically select mtfsf insn based on
638 PPC_FEATURE_HAS_DFP.
639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
640 (*swapcontext): dynamically select mtfsf insn based on
641 PPC_FEATURE_HAS_DFP.
642
ec297962
UD
6432008-11-13 Ulrich Drepper <drepper@redhat.com>
644
b5449f8a 645 * version.h: Bump for 2.9 release.
f52bb4d7 646 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 647
ec297962
UD
648 [BZ #7029]
649 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
650 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
651 all the rounding.
652
3cac8b75
UD
6532008-11-11 Ulrich Drepper <drepper@redhat.com>
654
0e54a725 655 [BZ #7009]
3cac8b75
UD
656 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
657 unknown request types for now.
658
58a4b51a
RM
6592008-11-11 Roland McGrath <roland@redhat.com>
660
661 * sysdeps/x86_64/configure: New file.
662
663 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
664 * configure: Regenerated.
665
01bd5e96
JJ
6662008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
667
668 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
669 correct instruction to remove the stack frame.
670
a9069550
JJ
6712008-11-03 Michael Matz <matz@suse.de>
672
673 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
674 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
675
4b23f9bd
JJ
6762008-11-07 Jakub Jelinek <jakub@redhat.com>
677
09f66a4f
JJ
678 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
679 Remove.
680
4b23f9bd
JJ
681 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
682 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
683 of the thread variable instead of void *.
684 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
685 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
686 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
687 __libc_tsd_define arguments.
688 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
689 __libc_tsd_address arguments. Remove union hack.
690 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
691 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
692 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
693 Adjust __libc_tsd_{set,get} arguments.
694 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
695 __libc_tsd_define arguments.
696 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
697 arguments.
698 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
699 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
700 (LOCALE): Adjust __libc_tsd_define arguments.
701 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
702 arguments.
703 (LOCALE): Adjust __libc_tsd_define arguments.
704 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
705 arguments.
706 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
707 arguments.
708
486bdb88
UD
7092008-11-02 Ulrich Drepper <drepper@redhat.com>
710
711 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
712 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
713
64647f9a
UD
7142008-11-01 Ulrich Drepper <drepper@redhat.com>
715
716 [BZ #6966]
717 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
718
acd44dbc
UD
7192008-10-24 Joseph Myers <joseph@codesourcery.com>
720 Ulrich Drepper <drepper@redhat.com>
721
722 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
723 definition for GCC 3.1 and later.
64647f9a 724
41e25904
UD
7252008-10-31 Jakub Jelinek <jakub@redhat.com>
726
727 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
728 refetch dtv, as it might have changed.
729 * elf/Makefile: Add rules to build and run tst-tls18.
730 * elf/tst-tls18.c: New test.
731 * elf/tst-tlsmod18a.c: New file.
732
e148a644 7332008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 734
da9c2314 735 [BZ #6875]
e148a644
UD
736 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
737
7382008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 739
6daf1a2f
UD
740 [BZ #6867]
741 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
742
6f576bf6
UD
743 [BZ #6919]
744 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
745 Fix length of copy operation.
746
45a8beb5
UD
7472008-10-02 Pierre Habouzit <madcoder@debian.org>
748
749 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
750 and fix its calling convention.
751
ad12e635
UD
7522008-10-07 Andreas Schwab <schwab@suse.de>
753
754 [BZ #6942]
755 * resolv/res_send.c (send_vc): Fix last change.
756 (send_dg): Align here as well.
757
3cf44918
UD
7582008-10-31 Ulrich Drepper <drepper@redhat.com>
759
dbb6ab3e
UD
760 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
761 return value in case rlimit is RLIM_INFINITY.
762
763 [BZ #6947]
764 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
765 for UL_SETFSIZE.
1828d6b0
UD
766 * resource/Makefile (tests): Add bug-ulimit1.
767 * resource/bug-ulimit1.c: New file.
dbb6ab3e 768
a5ff533e
UD
769 [BZ #6974]
770 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
771 without dot. Properly terminate the string with a null byte.
772 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
773
4bed549a
UD
774 [BZ #6980]
775 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
776 negative sizees.
777 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
778 negative __size.
779
3cf44918
UD
780 [BZ #6995]
781 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
782
21b07d8b
UD
7832008-10-30 Ulrich Drepper <drepper@redhat.com>
784
332c4465
UD
785 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
786 abort if there is no initgroups_dyn function.
787
21b07d8b
UD
788 * resolv/res_send.c (send_dg): On timeout, only return nonzero
789 result if any of the queries really provided an answer.
790
4caa3fb7
UD
7912008-10-28 Ulrich Drepper <drepper@redhat.com>
792
793 * po/lt.po: Update from translation team.
794
a22c3a0d
UD
7952008-10-26 Ulrich Drepper <drepper@redhat.com>
796
797 * po/id.po: Update from translation team.
798
49685151
UD
7992008-10-24 Ulrich Drepper <drepper@redhat.com>
800
801 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 802 Fix tests for existence of second reply.
49685151 803
8d9d5d35
UD
8042008-10-23 Ulrich Drepper <drepper@redhat.com>
805
806 * po/id.po: New file.
807 Contributed by the Indonesian translation team.
808
208bc836
UD
8092008-10-22 Dmitry V. Levin <ldv@altlinux.org>
810
811 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
812 initialization.
813
60a23f5a
UD
8142008-10-17 Jakub Jelinek <jakub@redhat.com>
815
816 * elf/Makefile: Add rules to build and run tst-tls17.
817 * elf/tst-tls17.c: New test.
818 * elf/tst-tlsmod17a.c: New file.
819 * elf/tst-tlsmod17b.c: Likewise.
820
292eb817
UD
8212008-10-17 Ulrich Drepper <drepper@redhat.com>
822
823 * stdlib/divmod_1.c: Use correct type for dummy variable.
824 * stdlib/mod_1.c: Likewise.
825
5df2a427
UD
8262008-10-16 Ulrich Drepper <drepper@redhat.com>
827
828 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
829
472e5e08
JJ
8302008-10-16 Jakub Jelinek <jakub@redhat.com>
831
832 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
833 __nonnull order for C++.
834 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
835 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
836
86900abd
RM
8372008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
838
839 * stdlib/longlong.h: Update from GCC.
840
19c10a47
JJ
8412008-10-09 Jakub Jelinek <jakub@redhat.com>
842 David S. Miller <davem@davemloft.net>
843
844 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
845 make sure any registers used with 64-bit 'branch-on-register'
846 instructions have their top 32-bits clear.
847 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
848 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
849
2fdde3b9
UD
8502008-09-18 Andreas Schwab <schwab@suse.de>
851
852 [BZ #6942]
853 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 854 Properly handle partial reads.
2fdde3b9 855
6ba25fcb
RM
8562008-10-01 Mark Shinwell <shinwell@codesourcery.com>
857
858 * elf/elf.h (STO_MIPS_PLT): New.
859 (R_MIPS_COPY): New.
860 (R_MIPS_JUMP_SLOT): New.
861 (R_MIPS_NUM): Redefine to 128.
862 (DT_MIPS_PLTGOT): New.
863 (DT_MIPS_RWPLT): New.
864 (DT_MIPS_NUM): Redefine to 0x35.
865
97898201
UD
8662008-10-01 Ulrich Drepper <drepper@redhat.com>
867
868 * timezone/africa: Update from tzdata2008f.
869 * timezone/asia: Likewise.
870 * timezone/australasia: Likewise.
871 * timezone/europe: Likewise.
872 * timezone/leapseconds: Likewise.
873 * timezone/northamerica: Likewise.
874 * timezone/southamerica: Likewise.
875 * timezone/zone.tab: Likewise.
876
3452ded5
UD
8772008-09-30 Ulrich Drepper <drepper@redhat.com>
878
879 * nscd/connections.c: Disable use of paccept for now.
880
54ad9327
UD
8812008-09-29 Ulrich Drepper <drepper@redhat.com>
882
8ec2550e
UD
883 * socket/Versions: Remove paccept export for GLIBC_2.9.
884 * socket/Makefile (routines): Remove paccept.
885 * socket/sys/socket.h: Remove paccept declaration.
886
54ad9327
UD
887 * po/sv.po: Update from translation team.
888
1c5eba39
UD
8892008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
890
891 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
892 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
893
0a26fc4d
UD
8942008-09-16 Ulrich Drepper <drepper@redhat.com>
895
896 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
897 Patch by Olivier Fourdan <ofourdan@redhat.com>.
898
2bcaff08
UD
8992008-09-15 Ulrich Drepper <drepper@redhat.com>
900
901 * sunrpc/rpc/svc.h: Declare svcfd_create.
902 Patch by Michael Solberg <msolberg@redhat.com>.
903
caa60cb9 9042008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 905 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
906
907 * malloc/malloc.c (public_vALLOc): Try other arenas in case
908 _int_valloc fails.
909 (public_pVALLOc): Likewise.
910
6c161112
AJ
9112008-09-02 Andreas Jaeger <aj@suse.de>
912
913 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
914 commit.
915
0cb269d7
RM
9162008-08-26 Aurelien Jarno <aurelien@aurel32.net>
917
452034cc 918 [BZ #6860]
2bcaff08 919 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 920
13074b5b
RM
9212008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
922
923 * Makefile (check-data): Check data directory in add-ons.
924 * elf/Makefile (check-data): Likewise.
925
58801a0e
RM
9262008-08-18 Roland McGrath <roland@redhat.com>
927
928 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
929 * configure: Regenerated.
930 * config.make.in (cflags-cpu): New substituted variable.
931 (with-cpu): Variable removed.
932 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
933
7df49c5d
UD
9342008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
935
936 [BZ #6845]
937 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
938 __signbitl definition and __LONG_DOUBLE_128__ guard from:
939 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
940 redundant. Functions which call floating point assembler operations
941 should go into a sysdeps powerpc/fpu directory.
942
965805e8
UD
9432008-08-15 Ulrich Drepper <drepper@redhat.com>
944
945 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
946 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
947
9cf73ab0
UD
9482008-08-14 Ulrich Drepper <drepper@redhat.com>
949
62a1ffc6
UD
950 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
951
9cf73ab0
UD
952 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
953 change related to AT_EXECFN. We cannot use that string.
954 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
955 _dl_execfn member.
956 * elf/dl-support.c: Remove _dl_execfn variable.
957 (_dl_aux_init): Remove handling of AT_EXECFN.
958 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
959 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
960
1bfa05cf
UD
9612008-08-13 Ulrich Drepper <drepper@redhat.com>
962
7b3ba2c4
UD
963 [BZ #6544]
964 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
965 byte gets added to writes and seeks from the end use the length of
966 the buffer and not the currently terminating NUL byte.
967
1bfa05cf
UD
968 [BZ #6634]
969 * login/utmp_file.c (getutent_r_file): Take additional parameter.
970 Set to true if locking failed.
971 (getutid_r_file): Adjust caller.
972 (pututline_file): Likewise. Return NULL in this case.
973 Patch mostly by halesh.s@gmail.com.
974
c5671698
UD
9752008-08-12 Ulrich Drepper <drepper@redhat.com>
976
977 [BZ #6589]
978 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
979 Define.
980 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
981
4497384e
UD
9822008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
983
984 [BZ #6839]
985 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
986 macro since it is now available in elf/dynamic-link.h.
987
675d7111
RM
9882008-08-12 Roland McGrath <roland@frob.com>
989
990 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
991 in case used outside of libc.
992 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
993
8b254432
UD
9942008-08-11 Ulrich Drepper <drepper@redhat.com>
995
996 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
997 directly instead of going through dn_comp.
998
ac84eeca
RM
9992008-08-11 Aurelien Jarno <aurel32@debian.org>
1000
1001 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1002 Fix asm constraints.
1003
f081b451
UD
10042008-08-07 Ulrich Drepper <drepper@redhat.com>
1005
1006 [BZ #6790]
1007 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1008 (IPV6_PMTUDISC_PROBE): Likewise.
1009
30a4429e
UD
10102008-08-07 Pete Eberlein <eberlein@us.ibm.com>
1011
1012 [BZ #6791]
1013 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1014
1642331d 10152008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 1016 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
1017
1018 [BZ #6817]
1019 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1020 Added the members 'vsx' and 'arch_2_06'.
1021 (_dl_powerpc_platforms): Add the member 'power7'.
1022 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1023 to reflect the changes required by VSX and ISA 2.06.
1024 Modify _DL_PLATFORMS_COUNT to reflect the addition of
1025 'power7'.
1026 Defined PPC_PLATFORM_POWER7.
1027 (_dl_string_platform): Add support for POWER7.
1028 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1029 capability and ISA 2.06.
1030
48b94661
UD
10312008-08-07 Ulrich Drepper <drepper@redhat.com>
1032
1033 [BZ #6824]
1034 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1035 macro to detect use of 128 bit long double.
1036 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1037
9523fd28
UD
10382008-08-05 Ulrich Drepper <drepper@redhat.com>
1039
9c0cb150
UD
1040 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1041
46aea5cb 1042 [BZ #5794]
9523fd28
UD
1043 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1044 parameters.
1045 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1046 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1047
c400c931
UD
10482008-08-03 Ulrich Drepper <drepper@redhat.com>
1049
1050 * nscd/connections.c (main_loop_poll): Pass a buffer which is
1051 guaranteed to be large enough to read inotify event. Ignore
1052 EAGAIN error. Better error message. Add branch predicition.
1053 (main_loop_epoll): Likewise.
1054
3f39adac
RM
10552008-08-02 Roland McGrath <roland@frob.com>
1056
1057 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1058 Add memory clobbers.
1059
3501542f
UD
10602008-08-02 Ulrich Drepper <drepper@redhat.com>
1061
48b22986
UD
1062 * manual/arith.texi: Avoid @strong{Note:}.
1063 * manual/creature.texi: Likewise.
1064 * manual/filesys.texi: Likewise.
1065 * manual/math.texi: Likewise.
1066 * manual/memory.texi: Likewise.
1067 * manual/resource.texi: Likewise.
1068 * manual/syslog.texi: Likewise.
1069 * manual/time.texi: Likewise.
1070
3501542f
UD
1071 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1072 to prevent warning.
1073
17756df3
UD
10742008-08-01 Ulrich Drepper <drepper@redhat.com>
1075
ebcc1f4d
UD
1076 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1077 new epoll_create1 interface.
1078 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1079 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1080 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1081
144bfa86
UD
1082 * include/arpa/nameser.h (NS_GET16): Use const pointer.
1083 (NS_GET32): Likewise.
1084
7e1b29c6
UD
1085 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1086 syscalls, too.
1087
42fa1f67
UD
1088 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1089 use the AT_EXECFN value if it is no absolute path.
1090 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1091 __ASSUME_AT_EXECFN.
1092
cd5743fd
UD
1093 * Versions.def: Add GLIBC_2.9 to libresolv.
1094 * include/resolv.h: Remove hidden proto declarations for __ns_*
1095 functions. Add them for __dn_count_labels and __p_secstodate.
1096 * include/arpa/nameser.h: Add a number of hidden proto declarations.
1097 Define ns_msg_getflags macro here.
1098 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1099 and __p_secstodate.
1100 * resolv/Versions: Export functions from <arpa/nameser.h> from
1101 libresolv in version GLIBC_2.9.
1102 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
1103 hidden definitions.
1104 * resolv/ns_netint.c: Likewise.
1105 * resolv/ns_parse.c: Likewise.
1106 * resolv/ns_print.c: Likewise.
1107 * resolv/ns_samedomain.c: Likewise.
1108 * resolv/ns_ttl.c: Likewise.
1109 * resolv/arpa/nameser_compat.h: Likewise.
1110 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
1111 function calls.
1112 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1113 instead of ns_get16.
1114 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1115 __ns_get32 instead of ns_get16 and ns_get32 respectively.
1116 (gaih_getanswer_slice): Likewise.
1117 * resolv/Makefile (libresolv-routines): Add ns_date.
1118 * resolv/ns_date.c: New file.
1119
17756df3
UD
1120 * elf/Makefile (check-localplt.out): Also check libresolv and
1121 libcrypt.
1122
46bc5d43
UD
11232008-07-31 Ulrich Drepper <drepper@redhat.com>
1124
1125 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1126 __ASSUME_O_CLOEXEC.
1127
a707cff6
UD
11282008-07-30 Ulrich Drepper <drepper@redhat.com>
1129
3c227386
UD
1130 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1131 buffer passed to NSS functions.
1132
9523fd28 1133 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
1134
1135 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1136 Define.
1137
a707cff6
UD
1138 * misc/syslog.c (openlog_internal): Fix compile problem.
1139
0424d007
RM
11402008-07-28 Roland McGrath <roland@redhat.com>
1141
1142 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1143
b7da31a1
UD
11442008-07-28 Ulrich Drepper <drepper@redhat.com>
1145
300ea0ad
UD
1146 * io/ftw.c (add_object): Remove inline to avoid warning.
1147
d6173baa
UD
1148 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1149
b7da31a1
UD
1150 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1151 Use it instead of locally defined resplen2 variable.
1152 (res_nsend): Adjust for __libc_res_nsend interface change.
1153 (send_vc): Initialize *resplen2 if necessary. Read length of
1154 package into an appropriately aligned variable. Store converted length
1155 in new variable and use it appropriately.
1156 Add branch prediction help.
1157 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1158 and pass it on to __libc_res_nsend. Adjust all callers.
1159 (__libc_res_nsearch): Likewise.
1160 (__libc_res_nqeurydomain): Likewise.
1161 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1162 change.
1163 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1164 Define resplen2 variable and pass it to __libc_res_nsearch and then
1165 to gaih_getanswer.
1166 (getanswer_r): In case of incorrect DNS data don't overread buffer.
1167 Add branch prediction.
1168 (gaih_getanswer_slice): Likewise. Check for invalid data types.
1169 (gaih_getanswer): Don't decode second slice if first one failed due
1170 to a too small buffer. Don't let not found status of second
1171 decoder shadow results of the first.
1172 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1173 and __libc_res_nquery interface changes
1174 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1175 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1176 __libc_res_nsearch, and __libc_res_nsend.
1177 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1178 change.
1179 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1180 __libc_res_nsearch interface changes.
1181
11ed3eae
UD
11822008-07-27 Ulrich Drepper <drepper@redhat.com>
1183
372aece0
UD
1184 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1185
e038616f
UD
1186 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1187 file descriptors with close-on-exec set.
1188 (exec_comm_child): Fix the case where the write end of the pipe is
1189 STDOUT_FILENO already. In case it is, clear close-on-exec.
1190
d6e0c2a6
UD
1191 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1192 * io/pipe2.c: Likewise.
1193 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1194 instead of __ASSUME_PACCEPT.
1195 * include/unistd.h: Declare __have_pipe2.
1196 * libio/iopopen.c: Implement "e" flag.
1197 * libio/Makefile (tests): Add tst-popen1.
1198 * libio/tst-popen1.c: New file.
1199
11ed3eae
UD
1200 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1201 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1202
7438a80d
UD
12032008-07-26 Ulrich Drepper <drepper@redhat.com>
1204
c4a710b6
UD
1205 [BZ #6771]
1206 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1207 success call of _IO_SEEKOFF or calls which failed because the
1208 descriptor is for a pipe.
1209
31f3b159
UD
1210 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1211 magic number.
1212
c0216dfc
UD
1213 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1214
72112b0c
UD
1215 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
1216 F_SETFD use if we know fopen set the flag.
1217
7438a80d
UD
1218 * login/utmp_file.c (setutent_file): Minor optimization in case
1219 O_CLOEXEC is available.
1220
7b91359b
UD
12212008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
1222
1223 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1224 * elf/Makefile: Use pie-ccflag variable.
1225 * nscd/Makefile: Likewise.
1226 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1227
4057dc45
UD
12282008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1229
e7135e24 1230 [BZ #6724]
4057dc45
UD
1231 * Versions.def: Add GLIBC_2.9 version tag for libutil.
1232 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1233 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
1234 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1235 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
1236 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1237 utmp32, utmpx32 and login32.
1238 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1239 versions of struct utmp functions to libc and libutil.
1240 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1241 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1242 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1243 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1244 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1245 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1246 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1247 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1248 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1249 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1250 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1251 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1252 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1253 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1254 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1255 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1256 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1257 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1258 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1259 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1260 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1261 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1262
ff0bf753
UD
12632008-07-26 Ulrich Drepper <drepper@redhat.com>
1264
619cc2f6
UD
1265 * scripts/gen-as-const.awk: Generate more widely usable code by
1266 using 64-bit arithmetic.
1267
1311b164 1268 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 1269 the same treatment as narrow output code in last patch.
1311b164 1270
ff0bf753
UD
1271 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1272
3f414923 1273 [BZ #6763]
ff0bf753
UD
1274 * elf/dl-load.c (local_strdup): Remove inline.
1275 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1276 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1277 part of the object.
1278
1279 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1280
8ccf22f9
UD
12812008-07-25 Ulrich Drepper <drepper@redhat.com>
1282
bdd24a30
UD
1283 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1284 the new syscalls, too.
b5c0b5e4 1285
b41f1d14
UD
1286 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1287 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1288
3703468e
UD
1289 [BZ #6698]
1290 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1291 parameter for end of buffer. If temporary copy is too large use
1292 malloc.
1293 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1294 interface change.
1295 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
1296 string rewrite when allocating buffer.
1297
bb0277bf
UD
1298 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1299 syscalls, too.
1300
9dd84772
UD
1301 * nscd/connections.c (nscd_init): Clean up fcntl call.
1302
c418b1ba
UD
1303 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1304 SOCK_NONBLOCK if possible.
1305
b206d8b1
UD
1306 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1307 SOCK_CLOEXEC if available.
1308
8ccf22f9
UD
1309 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1310 __libc_clntudp_bufcreate_internal.
1311 * include/sys/socket.h: Declare __have_sock_cloexec.
1312 * socket/Makefile (aux): Add have_sock_cloexec.
1313 * socket/have_sock_cloexec.c: New file.
1314 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1315 __libc_clntudp_bufcreate.
1316 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1317 which takes an additional parameter. Create socket with non-blocking
1318 mode and close-on-exec flag set, if wanted.
1319 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1320 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1321 instead of clntudp_create. The socket has already the close-on-exec
1322 flag set if SOCK_CLOEXEC is defined.
1323
579cdf5a
UD
13242008-07-24 Ulrich Drepper <drepper@redhat.com>
1325
3ff2c948
UD
1326 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1327 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1328 appropriate.
1329 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1330 non-blocking mode by using socket, paccept, and inotify_init1.
1331
bdcebfc4
UD
1332 * Versions.def (glibc): Add GLIBC_2.9.
1333 * io/Makefile (routines): Add dup3 and pipe2.
1334 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1335 * io/dup3.c: New file.
1336 * io/pipe2.c: New file.
1337 * posix/unistd.h: Declare dup3 and pipe2.
1338 * socket/Makefile (routines): Add paccept.
1339 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1340 * socket/paccept.c: New file.
1341 * socket/sys/socket.h: Declare paccept.
1342 * sysdeps/unix/syscalls.list: Add entry for dup3.
1343 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1344 epoll_create2 and inotify_init1.
1345 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1346 * sysdeps/unix/sysv/linux/paccept.c: New file.
1347 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1348 possible.
1349 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1350 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1351 inotify_init1, and pipe2 entries.
1352 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1353 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1354 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1355 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1356 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1357 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1358 SOCK_NONBLOCK.
1359 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1360 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1361 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1362 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1363 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1364 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1365 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1366 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1367 EPOLL_NONBLOCK. Declare epoll_create2.
1368 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1369 EFD_NONBLOCK.
1370 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1371 IN_NONBLOCK. Declare inotify_init1.
1372 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1373 SFD_NONBLOCK.
1374 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1375 TFD_NONBLOCK.
1376
0e077a7e
UD
1377 * elf/elf.h: Define AT_EXECFN.
1378 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1379 LD_ORIGIN_PATH.
1380 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1381 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
1382 if __ASSUME_AT_EXECFN is defined.
1383 (_dl_aux_init): Handle AT_EXECFN.
1384 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1385 for 2.6.27 and up.
1386 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1387 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1388 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1389 _dl_execfn if available and avoid compatibility code if
1390 __ASSUME_AT_EXECFN is defined.
1391
579cdf5a
UD
1392 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1393 _dl_discover_osversion only for older kernels.
1394
7385c04c
RM
13952008-07-22 Roland McGrath <roland@frob.com>
1396
1397 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1398
8a26088d
RM
13992008-07-21 Roland McGrath <roland@frob.com>
1400
1401 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1402 returned too much data out of line.
1403
9f558b80
UD
14042008-07-20 Ulrich Drepper <drepper@redhat.com>
1405
2e79213a
UD
1406 * locale/setlocale.c (setname): Remove inline to avoid compiler
1407 warning.
1408
579cdf5a 1409 [BZ #6712]
9f558b80
UD
1410 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1411
9667f97d
UD
14122008-07-15 Ulrich Drepper <drepper@redhat.com>
1413
2486b496
UD
1414 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1415 doesn't manage to write anything, fail.
1416
9667f97d
UD
1417 * malloc/hooks.c (__malloc_check_init): Remove printf.
1418
6d4c073b
RM
14192008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1420
1421 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1422
b7432416
UD
14232008-07-12 Ulrich Drepper <drepper@redhat.com>
1424
1425 * nscd/connections.c (main_loop_poll): Fix handling of read errors
1426 from inotify.
1427 (main_loop_epoll): Likewise.
1428
44abc397
UD
14292008-07-09 Ulrich Drepper <drepper@redhat.com>
1430
835113c6
UD
1431 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1432
fdc769f6
UD
1433 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1434 if DEBUG is defined.
1435
44abc397
UD
1436 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1437 query. Adjust buffer size computation for padding.
1438
38dc8fad
UD
14392008-07-08 Ulrich Drepper <drepper@redhat.com>
1440
75684bd7
UD
1441 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1442 * stdio-common/tst-setvbuf1.c: New file.
1443 * stdio-common/tst-setvbuf1.expect: New file.
1444
38dc8fad
UD
1445 [BZ #6719]
1446 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1447 when selecting fully-buffered stream.
1448 Patch by Wang Xin <wxinee@gmail.com>.
1449
107f4ac2
RM
14502008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1451
1452 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1453 (__open_2): New function.
1454 (__open64_2): New alias to __open_2.
1455 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1456 (__openat_2): New function.
1457 (__openat64_2): New alias to __openat_2.
1458
45ec3e79
UD
14592008-07-06 Ulrich Drepper <drepper@redhat.com>
1460
1461 [BZ #6723]
1462 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1463
0a583b54
RM
14642008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1465
1466 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1467 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1468 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1469 __hurd_dfail.
1470 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1471 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1472 * sysdeps/mach/hurd/send.c (__send): Likewise.
1473 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1474 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1475
d5a0160b
RM
14762008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1477
1478 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1479 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1480 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1481 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1482 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1483 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1484
80922a99
UD
14852008-06-27 Ulrich Drepper <drepper@redhat.com>
1486
1487 [BZ #6657]
1488 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1489 of %EY.
1490 Patch by Petr Baudis.
1491
34ca2ff7
UD
14922008-06-26 Ulrich Drepper <drepper@redhat.com>
1493
5ee0f5e2 1494 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
1495 Patch by Peter Jones <pjones@redhat.com>.
1496
104426b6
UD
14972008-06-25 Ulrich Drepper <drepper@redhat.com>
1498
1499 [BZ #6654]
1500 * stdlib/canonicalize.c (__realpath): readlink can write too much
1501 into the buffer on platforms without PATH_MAX.
1502
7166d23f
UD
15032008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1504
4cb8e687 1505 [BZ #6653]
7166d23f
UD
1506 * posix/tst-regex.c (main): Rename to...
1507 (do_test): ... this. Remove cmdline option processing.
1508 (TIMEOUT): Define.
1509 (TEST_FUNCTION): Define.
1510 (CMDLINE_OPTIONS): Define.
1511
974069d8
UD
15122008-06-25 Ulrich Drepper <drepper@redhat.com>
1513
1514 [BZ #5210]
1515 * configure.in: Add -Werror to -fstack-protector test to catch
1516 unsupported architectures.
1517 Patch by Gilles Esponasse <g.esp@free.fr>.
1518
cefa2dd3
UD
15192008-06-17 Joseph Myers <joseph@codesourcery.com>
1520
1521 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1522 getcontext returns ENOSYS.
1523
c00d1128
UD
15242008-06-18 Ulrich Drepper <drepper@redhat.com>
1525
1526 * nscd/connections.c (main_loop_poll): Fix test for read error.
1527 (main_loop_epoll): Likewise.
1528
a0edbb48
UD
15292008-06-13 Ulrich Drepper <drepper@redhat.com>
1530
d0a1ae94
UD
1531 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1532 better place so it is not called when nscd is used.
1533
a0edbb48
UD
1534 * nscd/connections.c: Also recognize and handle changes to the
1535 resolver configuration file.
1536
46f70b3c
UD
15372008-06-12 Ulrich Drepper <drepper@redhat.com>
1538
5bcc6c0f
UD
1539 * time/strftime.c: Pass reference to tzset_called around to handle
1540 recursive calls.
1541
1542 [BZ #6612]
1543 * time/strftime.c (__strftime_internal): Call tzset() only
1544 when printing timezone-dependent values.
1545 Based on a patch by Petr Baudis <pasky@suse.cz>.
1546
f854efd7
UD
1547 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1548 unconditionally use second gaih_getanswer_slice result.
1549
46f70b3c
UD
1550 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1551 (getaddrinfo): RES must always be non-NULL.
1552
9ea8bfec
UD
15532008-06-12 Jakub Jelinek <jakub@redhat.com>
1554
1555 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1556 cr[34] registers.
1557 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1558 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1559 Likewise.
1560 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1561 register.
1562
5a337776
UD
15632008-06-12 Ulrich Drepper <drepper@redhat.com>
1564
5228ba2f
UD
1565 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1566 fields.
1567 * nscd/connections.c (inotify_fd): New variable.
1568 (nscd_init): Try to open an inotify descriptor.
1569 If successful, watch files for databases using inotify instead of
1570 having prune threads stat the files.
1571 (nscd_run_prune): Recognize clear_cache flag being set and call
1572 prune_cache appropriately.
1573 (main_loop_poll): Add inotify descriptor to wait set and handle the
1574 reported changes.
1575 (main_loop_epoll): Likewise.
1576 * nscd/cache.c (prune_cache): Don't stat files for databases if
1577 inotify is used.
1578 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1579 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1580
5a337776
UD
1581 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1582 fixed-size portion of the record.
1583 * nscd/servicescache.c (cache_addserv): Likewise.
1584 * nscd/pwdcache.c (cache_addpw): Likewise.
1585 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1586
9ad58cc3
UD
15872008-06-11 Ulrich Drepper <drepper@redhat.com>
1588
1589 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1590 out we don't use uninitialized memory.
1591
1592 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1593 the client.
1594
c1283552
UD
15952008-06-10 Ulrich Drepper <drepper@redhat.com>
1596
1597 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1598 ignore T_DNAME messages.
1599 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1600
eef8a803
JJ
16012008-06-05 Jakub Jelinek <jakub@redhat.com>
1602
1603 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1604 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1605
ee78670e
JJ
16062008-06-03 Jakub Jelinek <jakub@redhat.com>
1607
1608 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1609 instead of portstr to nscd_getserv_r. Patch by
1610 Roman Kagan <rkagan@mail.ru>.
1611
62605cbf
UD
16122008-05-26 Jim Meyering <meyering@redhat.com>
1613
10966640 1614 Remove more useless "if" tests before "free".
62605cbf
UD
1615 * include/inline-hashtab.h (htab_delete): Likewise.
1616 * libio/freopen.c (freopen): Likewise.
1617 * libio/freopen64.c (freopen64): Likewise.
1618 * locale/programs/ld-collate.c (collate_read): Likewise.
1619 * misc/fstab.c (libc_freeres_fn): Likewise.
1620 * posix/glob.c (globfree): Likewise.
1621
f63abf58
UD
16222008-05-24 Ulrich Drepper <drepper@redhat.com>
1623
1624 * string/Makefile (strop-tests): Add memmem.
1625 * string/test-memmem.c: New file.
1626 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1627 (test_init): Size buf1 according to BUF1PAGES.
1628
ad8a5511
JJ
16292008-05-24 Jakub Jelinek <jakub@redhat.com>
1630
1631 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1632 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1633 (CFLAGS-scanf17.c): New.
1634 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1635 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
1636 * stdio-common/scanf16.c: New file.
1637 * stdio-common/scanf17.c: New file.
ad8a5511 1638
e2003883
UD
16392008-05-24 Ulrich Drepper <drepper@redhat.com>
1640
1641 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 1642 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
1643 use the one answer insted of failing.
1644
acbb9873
UD
16452008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1646
1647 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1648 being executed on PowerPC as the expected result exceeds IBM
1649 long double 128 __LDBL_MAX__.
1650
e85f1d6a
RM
16512008-05-21 Roland McGrath <roland@redhat.com>
1652
1653 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1654
1655 * Makefile (check-data): Use $(abi-name) before other guesses.
1656 Look in $(add-ons) dirs before scripts/data/.
1657 * elf/Makefile (check-data): Likewise.
1658
1659 * scripts/soversions.awk: Grok ABI line.
1660 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1661 Emit definition for abi-name variable.
1662
d8e763c6
UD
16632008-05-21 Ulrich Drepper <drepper@redhat.com>
1664
e92799fc 1665 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 1666 if [__USE_BSD].
e92799fc 1667
d8e763c6
UD
1668 * iconvdata/Depend: Add localedata.
1669
009ef333
RM
16702008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1671
1672 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1673
86746abb
JJ
16742008-05-08 David S. Miller <davem@davemloft.net>
1675
1676 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1677 HIDDEN_JUMPTARGET.
1678 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1679 (__SYSCALL_CLOBBERS): Remove %g* registers.
1680 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1681 (__SYSCALL_CLOBBERS): Likewise.
1682 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 1683 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 1684
5e6f34c2
JJ
16852008-05-21 Jakub Jelinek <jakub@redhat.com>
1686
1687 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1688 (CALL_ERRNO_LOCATION): Define.
1689 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1690 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1691 (CALL_ERRNO_LOCATION): Define.
1692 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1693 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1694 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1695
4beb4532
UD
16962008-05-20 Ulrich Drepper <drepper@redhat.com>
1697
1698 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1699 variable.
1700
ed8f38ba
JJ
17012008-05-20 Jakub Jelinek <jakub@redhat.com>
1702
1703 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1704 (FIRST_FRAME_POINTER): Define.
1705
17062008-05-09 David S. Miller <davem@davemloft.net>
1707
1708 * sysdeps/sparc/sparc64/backtrace.c: New file.
1709
c1b8190a
JJ
17102008-05-14 David S. Miller <davem@davemloft.net>
1711
1712 * sysdeps/sparc/machine-gmon.h: New file.
1713 * sysdeps/sparc/sparc-mcount.S: Likewise.
1714 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1715 sysdep_routines in gmon directory.
1716
84aacd93
JJ
17172008-05-19 Jakub Jelinek <jakub@redhat.com>
1718
1719 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1720
5908f779
UD
17212008-05-19 Ulrich Drepper <drepper@redhat.com>
1722
1723 * resolv/res_query.c (__libc_res_nquery): In case one of two
1724 answer was too short don't try to read that answer's header.
1725
1726 * resolv/res_send.c (send_dg): In case of timeout and there are
1727 two queries and one has been answered, return value indicating
1728 success.
1729
528741cb
UD
17302008-05-18 Ulrich Drepper <drepper@redhat.com>
1731
1732 * nscd/cache.c (cache_add): Take additional parameter specifying
1733 whether this is in response of a cache refill. Check alignment
1734 of package data. Revamp waking of pruning thread.
1735 (prune_cache): Small optimization.
1736 * nscd/nscd.h: Adjust cache_add prototypes.
1737 * nscd/aicache.c: Adjust cache_add calls.
1738 * nscd/grpcache.c: Likewise.
1739 * nscd/hstcache.c: Likewise.
1740 * nscd/initgrcache.c: Likewise.
1741 * nscd/pwdcache.c: Likewise.
1742 * nscd/servicescache.c: Likewise.
1743 * nscd/connections.c (restart): Really disable cache use before
1744 exec attempt. If it fails, reenable cache.
1745 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1746 time to max to be able to notice concurrent cache additions. Unlock
1747 prune_lock while performing gc. Afterwards compute wakeup time with
1748 current wakeup_time value in mind.
1749
343996c4
UD
17502008-05-17 Ulrich Drepper <drepper@redhat.com>
1751
5811d72b
UD
1752 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1753
fa526148
UD
1754 * nscd/mem.c (gc): Correctly determine highest used array element
1755 in mark.
1756
77d40f10
UD
1757 * nscd/mem.c (markrange): Add assert to check entries are all
1758 aligned. Small cleanup in bitmap use.
1759
8884028c
UD
1760 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1761 blockoff of type nscd_ssize_t.
1762 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1763 (mempoll_alloc): Record block offset and not address.
1764
b2159575
UD
1765 * nscd/mem.c (gc): Fix test for stack overuse.
1766
5c9629d2
UD
1767 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1768 more asserts.
1769
66d90496
UD
1770 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1771 entry is available, believe it.
1772
343996c4
UD
1773 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1774 no answers return NSS_STATUS_NOTFOUND.
1775 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1776 buffer does not have any content.
1777
91c8a74b
UD
17782008-05-16 Ulrich Drepper <drepper@redhat.com>
1779
74e13385
UD
1780 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1781
91c8a74b
UD
1782 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1783 lookup, don't assign canon unconditionally.
1784
0caca71a
UD
17852008-05-14 Ulrich Drepper <drepper@redhat.com>
1786
1787 * string/Makefile (distribute): Add str-two-way.h.
1788
17892008-03-29 Eric Blake <ebb9@byu.net>
1790
1791 Rewrite string searches to O(n) rather than O(n^2).
1792 * string/str-two-way.h: New file. For linear fixed-allocation
1793 string searching.
1794 * string/memmem.c: New implementation.
1795 * string/strstr.c: New implementation.
1796 * string/strcasestr.c: New implementation.
1797
b194db79
UD
17982008-04-11 Paolo Bonzini <bonzini@gnu.org>
1799
1800 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1801 opr.ctx_type.
1802 (calc_first): Initialize constraint field.
1803 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1804 Use search_duplicated_node to avoid loops. Fix grammar.
1805 (duplicate_node): Merge constraint field for all node types.
1806 (calc_eclosure_iter): Look at constraint field for all node types.
1807 * posix/regex_internal.c (create_cd_newstate): Don't look at
1808 create_cd_newstate.
1809
c8d49f05
UD
18102008-05-14 Ulrich Drepper <drepper@redhat.com>
1811
215a8745
UD
1812 [BZ #6428]
1813 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1814
2f9a1be8
UD
1815 [BZ #6442]
1816 * string/endian.h: Add macros for fixed-size endian conversion.
1817 * bits/byteswap.h: Allow inclusion from <endian.h>.
1818 * sysdeps/i386/bits/byteswap.h: Likewise.
1819 * sysdeps/ia64/bits/byteswap.h: Likewise.
1820 * sysdeps/s390/bits/byteswap.h: Likewise.
1821 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1822 * string/Makefile (tests): Add tst-endian.
1823 * string/tst-endian.c: New file.
1824
c8d49f05
UD
1825 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1826 Patch by Reuben Thomas.
1827
a754f018
UD
18282008-05-14 Joseph Myers <joseph@codesourcery.com>
1829
1830 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1831
372bfcac
UD
18322008-05-14 Ulrich Drepper <drepper@redhat.com>
1833
a754f018
UD
1834 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1835
5deca9bb
UD
1836 [BZ #6461]
1837 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1838 Add missing braces.
1839 (BODY for __gconv_transform_internal_ascii): Likewise.
1840
af77c9b7 1841 [BZ #6472]
5fab5544
UD
1842 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1843 to be treated like link-local addresses.
5846c4e2
UD
1844 (match_prefix): Don't treat IPv4 loopback address special when
1845 converting to v4 mapped addressed.
5fab5544 1846
0caca71a 1847 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 1848 if necessary.
b194db79
UD
1849 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1850 * posix/tst-rfc3484-2.c: Likewise.
1851 * posix/tst-rfc3484-3.c: Likewise.
1f039824 1852
18a74157
UD
1853 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1854 and SCTP.
372bfcac
UD
1855
1856 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1857
1858 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1859
1860 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1861
f05ac8f5
UD
18622008-05-13 Ulrich Drepper <drepper@redhat.com>
1863
1864 * po/lt.po: New file. From Lituanian translation team.
1865
c9ff0187
UD
18662008-01-30 Alexandre Oliva <aoliva@redhat.com>
1867
1868 Introduce TLS descriptors for i386 and x86_64.
1869 * include/inline-hashtab.h: New file, copied from 2005's
1870 libiberty, with fix for memory leak imported afterwards by
1871 Glauber de Oliveira Costa.
1872 * elf/tlsdeschtab.h: New file.
1873 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1874 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1875 (CHECK_STATIC_TLS): Move to...
1876 * elf/dynamic-link.h: ... this file.
1877 (TRY_STATIC_TLS): New macro.
1878 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1879 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1880 R_386_TLS_DESC): Define.
1881 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1882 binutils.
1883 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1884 R_X86_64_TLSDESC): Define.
1885 (R_386_NUM, R_X86_64_NUM): Adjust.
1886 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1887 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1888 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1889 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1890 release tlsdesc_table.
1891 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1892 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1893 (elf_machine_rel): Handle R_386_TLS_DESC.
1894 (elf_machine_rela): Likewise.
1895 (elf_machine_lazy_rel): Likewise.
1896 (elf_machine_lazy_rela): Likewise.
1897 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1898 * sysdeps/i386/dl-tlsdesc.S: New file.
1899 * sysdeps/i386/dl-tlsdesc.h: New file.
1900 * sysdeps/i386/tlsdesc.c: New file.
1901 * sysdeps/i386/tlsdesc.sym: New file.
1902 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1903 tlsdesc_table.
1904 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1905 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1906 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1907 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1908 release tlsdesc_table.
1909 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1910 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1911 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1912 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1913 (elf_machine_rela): Likewise.
1914 (elf_machine_lazy_rel): Likewise.
1915 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1916 (__tls_get_addr): Do not declare for non-shared compiles.
1917 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1918 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1919 * sysdeps/x86_64/tlsdesc.c: New file.
1920 * sysdeps/x86_64/tlsdesc.sym: New file.
1921 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1922 tlsdesc_table for both 32- and 64-bit structs.
1923
a3636e8b
UD
19242008-05-11 Ulrich Drepper <drepper@redhat.com>
1925
1926 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1927 its own function. This reduces the frame setup costs and more.
1928
a7eb802f
UD
19292008-02-11 Joseph Myers <joseph@codesourcery.com>
1930
1931 [BZ #3406]
1932 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1933 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1934
3490f01d
UD
19352008-05-11 Ulrich Drepper <drepper@redhat.com>
1936
3d7eeebe
UD
1937 * io/openat.c (__openat_2): Also pass fd to __openat.
1938 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1939 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1940
3490f01d
UD
1941 * string/tester.c (test_memcmp): Add a few more tests.
1942 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1943
7e71e55f
UD
19442008-05-10 Ulrich Drepper <drepper@redhat.com>
1945
1946 * nscd/cache.c (cache_add): Before returning with failure and this
1947 is the first use of the record, mark it as unusable.
1948 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1949 reporting a failure.
1950 * nscd/grpcache.c: Likewise
1951 * nscd/hstcache.c: Likewise.
1952 * nscd/initgrcache.c: Likewise.
1953 * nscd/pwdcache.c: Likewise.
343996c4 1954 * nscd/servicescache.c: Likewise.
7e71e55f 1955
7396d0a9
RM
19562008-05-10 Roland McGrath <roland@redhat.com>
1957
1958 [BZ #6505]
1959 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1960
c5ee217f
UD
19612008-05-08 David S. Miller <davem@davemloft.net>
1962
b29899ae
UD
1963 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1964
c5ee217f
UD
1965 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1966 (__ieee754_y0l): Likewise.
1967 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1968 (__ieee754_y1l): Likewise.
1969 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1970 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1971 frexpl and ldexpl. math_private.h provides them and the latter
1972 is not even used.
1973 (__log1pl): Use __frexpl.
1974
1eb946b9
UD
19752008-05-10 Ulrich Drepper <drepper@redhat.com>
1976
1977 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1978 prototypes.
1979 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1980 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1981 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1982 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1983 af==AF_UNSPEC.
1984 (_nss_nis_gethostbyname4_r): New function.
1985 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1986 Change to also handle af==AF_UNSPEC.
1987 (get_tablename): New function. Use it to avoid duplication.
1988 (_nss_nisplus_gethostbyname4_r): New function.
1989 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1990 available.
1991 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1992 * nss/nss.h: Define struct gaih_addrtuple.
1993 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1994 af==AF_UNSPEC.
1995 (_nss_files_gethostbyname4_r): New function.
1996 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1997 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1998 calls.
1999 * resolv/res_query.c (__libc_res_nquery): Take two additional
2000 parameters for second answer buffer. Handle type=T_UNSPEC to mean
2001 look up IPv4 and IPv6.
2002 Change all callers.
2003 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2004 for an additional query and answer buffer. Pass to send_vc and
2005 send_dg.
2006 (send_vc): Send possibly two requests and receive two answers.
2007 (send_dg): Likewise.
2008 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2009 __libc_res_nquery.
2010 (_nss_dns_gethostbyname4_r): New function.
2011 (gaih_getanswer_slice): Likewise.
2012 (gaih_getanswer): Likewise.
2013 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2014 __libc_res_nquery call.
2015 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2016 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2017 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2018 available.
2019
b7fb703a
JJ
20202008-05-05 David S. Miller <davem@davemloft.net>
2021
2022 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2023 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2024
2256e43d
RM
20252007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2026
2027 Fix termios bit macros.
2028 Move *DLY definitions where they belong, in termios.h.
2029 Add *[0-3] definitions.
2030 Fixes confusion between VT and FF.
8bb52dbf
RM
2031 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2032 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2033 are already defined to avoid collision with termios.h.
2256e43d
RM
2034 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2035 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2036 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2037 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2038 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2039 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2040 VTDLY, VT0, VT1): New macros.
2041 [__USE_GNU] (OLCUC): Change value of macro.
2042 [__USE_XOPEN] (OFILL): New macro.
2043 [__USE_BSD] (CRTSCTS): Change value.
2044 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2045 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2046 (B7200, B14400, B28800, B76800): New macros.
2047
4ce349e5
JJ
20482008-05-01 David S. Miller <davem@davemloft.net>
2049
a86a7a39
JJ
2050 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2051 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2052 (gen-as-const-headers): Add it.
2053 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2054 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2055 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2056 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 2057
4ce349e5
JJ
2058 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2059 six system call parameters.
2060 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2061
89a8963d
UD
20622008-04-30 Ulrich Drepper <drepper@redhat.com>
2063
2064 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2065 RUSAGE_LWP.
2066 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2067 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2068
b5ec5fce
JJ
20692008-04-30 Jakub Jelinek <jakub@redhat.com>
2070
2071 * stdlib/tst-setcontext.c: Include unistd.h.
2072
d4e92d9e
JJ
20732008-04-25 David S. Miller <davem@davemloft.net>
2074
2075 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2076 Pass "union semun" properly in to sys_ipc, it must be passed
2077 by value, not by reference.
2078
7eb5e6c9
UD
20792008-04-22 Jakub Jelinek <jakub@redhat.com>
2080
2081 * nscd/Makefile (nscd-cflags): Set back to -fpie.
2082 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2083 * nscd/connections.c (mem_in_flight): Likewise.
2084
2085 * nscd/nscd.h (dbs): Make hidden.
2086
2087 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2088 Avoid returning -1, return 0 instead.
2089
0073dd2d
UD
20902008-04-19 Ulrich Drepper <drepper@redhat.com>
2091
2092 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2093
c52137d3
UD
20942008-04-15 Ulrich Drepper <drepper@redhat.com>
2095
2096 [BZ #5209]
2097 * sysdeps/unix/sysv/linux/times.c: New file.
2098
2099 [BZ #5381]
2100 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2101 mem_in_flight_list variables. Add new parameter to mempool_alloc
2102 prototype.
2103 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
2104 appropriate mem_in_flight element.
2105 (gc): Take allocations which have not yet been committed to the
2106 database into account.
2107 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2108 Reset mem_in_flight before returning.
2109 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2110 cue it up in mem_in_flight_list.
2111 * nscd/aicache.c: Adjust mempool_alloc call.
2112 * nscd/grpcache.c: Likewise.
2113 * nscd/hstcache.c: Likewise.
2114 * nscd/initgrcache.c: Likewise.
2115 * nscd/pwdcache.c: Likewise.
2116 * nscd/servicescache.c: Likewise.
2117 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2118 of -fpie.
2119
2120 * nscd/connections.c (handle_request): Provide better error message
2121 in case SELinux forbids the service.
2122
2123 * version.h (VERSION): Bump to 2.8.90.
2124
39546e34
JJ
21252008-04-17 Jakub Jelinek <jakub@redhat.com>
2126
2127 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2128
cf3a8c7f
UD
21292008-04-11 Ulrich Drepper <drepper@redhat.com>
2130
9e113ecd
UD
2131 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2132 Also use for 32-bit.
3b6d574e
UD
2133 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2134 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
2135 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2136 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2137
3781ec29
UD
2138 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2139
246ec411
UD
2140 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2141 __fe_nomask_env.
3cc56f92
UD
2142 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
2143 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
2144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2146
2147 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2148
2149 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2150 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2151 function from fegetexcept and make old name weak alias.
2152 * include/fenv.h: Declare __fegetexcept.
2153 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2154 fegetexcept.
2155 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2156 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2157 to fetestexcept.
2158 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2159 instead of frexpl to avoid local PLT.
2160 * math/s_significandl.c (__significandl): Use __ilogbl instead of
2161 ilogbl to avoid local PLT.
2162 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2163 instead of ldexpl to avoid local PLT.
2164 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2165 __roundl not roundl to avoid local PLT.
2166 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2167 local PLTs. Use __sincosl instead of separate sinl and cosl
2168 calls.
2169 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2170
2dc4a2fd
UD
2171 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2172 version for ppc64 to 2.4.21 since without it makecontext will fail.
2173
fe3350ee
UD
2174 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2175 to the ABI in use.
2176 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2177 .__tls_get_addr.
2178 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 2179
c1e6b459
UD
21802007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
2181
7763d4f1 2182 [BZ #4997]
c1e6b459
UD
2183 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2184 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2185 mantissa.
2186 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2187 Likewise. Also account for when x is an odd number between 2^52
2188 and 2^53-1.
2189 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2190 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2191 * math/libm-test.inc (lround_test, llround_test): Added test cases to
2192 detect aforementioned erroneous conditions.
2193
22dca1ea
UD
21942008-04-11 Jakub Jelinek <jakub@redhat.com>
2195
2196 * configure.in: Check for -fno-section-anchors in addition to
2197 -fno-toplevel-reorder.
2198
5d59f4a5
UD
21992008-04-11 Ulrich Drepper <drepper@redhat.com>
2200
2201 * include/features.h (__GLIBC_MINOR__): Bump to 8.
2202
2203 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2204 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2205 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2206 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2207 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2208 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2209
91e32540
UD
22102008-04-11 Jakub Jelinek <jakub@redhat.com>
2211
2212 [BZ #5443]
2213 * time/era.c: Transform __libc_setlocale_lock into rwlock.
2214 * time/alt_digit.c: Likewise.
2215 * wcsmbs/wcsmbsload.c: Likewise.
2216
fd490ac8
UD
22172008-04-10 Ulrich Drepper <drepper@redhat.com>
2218
1db5b6f4
UD
2219 * version.h (VERSION): Bump to 2.8.
2220
fd490ac8
UD
2221 * timzeone/asia: Update from tzdata2008b.
2222 * timezone/backward: Likewise.
2223 * timezone/europe: Likewise.
2224 * timezone/northamerica: Likewise.
2225 * timezone/southamerica: Likewise.
2226 * timezone/iso3166.tab: Likewise.
2227 * timezone/leapseconds: Likewise.
2228 * timezone/zone.tab: Likewise.
2229 * timezone/private.h: Update from tzcode2008a.
2230 * timezone/zdump.c: Likewise.
2231 * timezone/zic.c: Likewise.
2232
153cf972
UD
22332008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
2234
2235 [BZ #5741]
2236 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2237 Define additonal Data Cache Block instruction macros.
2238 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2239 Replace dcbst with dcbf and sync with sync/isync.
2240
d2207f32
UD
22412008-02-21 Alan Modra <amodra@bigpond.net.au>
2242
2243 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2244 Always set ELF_RTYPE_CLASS_PLT.
2245 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2246
13d83320
UD
22472008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
2248
2249 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2250 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2251 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2252 For ISA 2.01 and later replace mftb with mfspr 268.
2253
5f7aead5
UD
22542008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
2255
2256 [BZ #5768]
2257 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2258 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2259
22602008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
2261
2262 [BZ #5768]
2263 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2264 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2265 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2266 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2267
117df5d9
JJ
22682008-04-10 Jakub Jelinek <jakub@redhat.com>
2269
2270 * stdlib/tst-makecontext.c (othervar): New variable.
2271 (cf): Test sign extending the argument to long.
2272
3b32d8a2
UD
22732008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
2274
2275 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2276 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2277 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2278 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2279 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2280 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2281 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2282
9fb11d4c
UD
22832008-02-22 Alan Modra <amodra@bigpond.net.au>
2284
2285 * elf/Makefile (tests): Substitute tests-vis-yes here.
2286 (tests-vis-yes): Delete.
2287 (modules-name, modules-vis-yes): Similarly.
2288
facd1d8e
UD
22892008-02-12 Pete Eberlein <eberlein@us.ibm.com>
2290
2291 [BZ #4407]
2292 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2293 Preserve sign in signgamp when x is zero.
2294
aece054b
UD
22952007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
2296
2297 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2298 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2299 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2300 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2301 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2302 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2303
6c30d38f
UD
23042008-04-09 Ulrich Drepper <drepper@redhat.com>
2305
21208604 2306 [BZ #4314]
13d83320
UD
2307 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2308 buffers.
21208604 2309
2f611ada 2310 [BZ #5209]
d1235fdf
UD
2311 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2312 a reserved error value.
2f611ada 2313
6c30d38f
UD
2314 * stdlib/tst-makecontext.c: Change parameter to cf to negative
2315 value to check for correct sign extension.
2316
2317 [BZ #5436]
2318 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2319 Copy 64-bit parameter values even though this is not required in
2320 the standard.
2321
2322 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2323 PC save.
2324
de1bbf68
UD
23252008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
2326
2327 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2328 PC save.
2329
9aef35a5
UD
23302008-04-09 Jakub Jelinek <jakub@redhat.com>
2331
2332 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2333
a7925a24
UD
23342008-04-09 Ulrich Drepper <drepper@redhat.com>
2335
2336 [BZ #5998]
2337 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2338 in line-buffered stream failed.
2339 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2340
7b61ef24
UD
23412008-04-08 Ulrich Drepper <drepper@redhat.com>
2342
c2a684a4
UD
2343 [BZ #6024]
2344 * scripts/abi-versions.awk: If the version specified by
2345 --enable-oldest-abi is older than the first version for this
2346 architecture, use the default version.
2347
7b61ef24
UD
2348 * locale/programs/ld-collate.c (collate_read): Ignore script lines
2349 as well when ignoring the whole category.
2350
f6d749f0
UD
23512008-04-07 Ulrich Drepper <drepper@redhat.com>
2352
2353 [BZ #6042]
2354 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2355 ETHERTYPE_* definitions.
2356 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2357
1e99aede
JJ
23582008-04-07 Jakub Jelinek <jakub@redhat.com>
2359
2360 * stdlib/mbtowc.c (__no_r_state): Remove.
2361 (mbtowc): New static state variable. Use it instead of
2362 __no_r_state.
2363 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2364 (__wctomb_state): New hidden variable.
2365 (wctomb): Use __wctomb_state instead of __no_r_state.
2366 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2367 (__wctomb_state): New extern decl.
2368 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2369
fcf90e0a
UD
23702008-04-07 Ulrich Drepper <drepper@redhat.com>
2371
2372 [BZ #5475]
2373 * resolv/res_init.c: Handle scope IDs in resolv.conf.
2374
ae39e102
JJ
23752008-04-07 Jakub Jelinek <jakub@redhat.com>
2376
2377 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2378
2503dd30
UD
23792008-04-06 Ulrich Drepper <drepper@redhat.com>
2380
2381 * po/nl.po: Update from translation team.
2382
3eb9c809
UD
23832008-03-31 Ulrich Drepper <drepper@redhat.com>
2384
2385 [BZ #6007]
2386 * string/strfry.c: Handle empty strings again.
2387
9a69db29
UD
23882008-03-30 Ulrich Drepper <drepper@redhat.com>
2389
2390 [BZ #5443]
2391 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2392 before looking for translation.
2393 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2394 * locale/freelocale.c: Likewise.
2395 * locale/newlocale.c: Likewise.
2396 * locale/setlocale.c: Likewise.
2397 Based partially on a patch by ryo@np.css.fujitsu.com.
2398
2ecc7d93
UD
23992008-03-30 Jakub Jelinek <jakub@redhat.com>
2400
2401 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2402 acquiring wrlock. Do conv_tab allocation while holding lock.
2403 * intl/Makefile: Add rules to build and run tst-gettext6.
2404 * intl/tst-gettext6.c: New test.
2405 * intl/tst-gettext6.sh: New file.
2406
221e5230
UD
24072008-03-30 Ulrich Drepper <drepper@redhat.com>
2408
faa091c6
UD
2409 * po/nl.po: Update from translation team.
2410
221e5230
UD
2411 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2412 provided through st_blksize, try the default size before giving up.
2413
1c272665
UD
24142008-03-29 Ulrich Drepper <drepper@redhat.com>
2415
43f6bec1
UD
2416 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2417
e8a32126
UD
2418 [BZ #5939]
2419 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2420
1e489af9
UD
2421 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2422 error message. POSIX today does not require the messages to be in
2423 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
2424
1d20f7f8
UD
2425 [BZ #5979]
2426 * sunrpc/auth_unix.c: Unify printed strings.
2427 * sunrpc/clnt_tcp.c: Likewise.
2428 * sunrpc/clnt_udp.c: Likewise.
2429 * sunrpc/clnt_unix.c: Likewise.
2430 * sunrpc/svc_tcp.c: Likewise.
2431 * sunrpc/svc_udp.c: Likewise.
2432 * sunrpc/svc_unix.c: Likewise.
2433 * sunrpc/xdr.c: Likewise.
2434 * sunrpc/xdr_array.c: Likewise.
2435 * sunrpc/xdr_rec.c: Likewise.
2436 * sunrpc/xdr_ref.c: Likewise.
2437 * locale/programs/ld-time.c (time_finish): Unify messages.
2438 * locale/programs/locfile.c (handle_copy): Fix typo.
2439 * nscd/nscd.c (options): Fix typo.
2440
1c272665
UD
2441 [BZ #5995]
2442 * stdlib/strtod_l.c: Use correct sign for result in one more
2443 underflow case.
2444 Patch by Eric Blake <ebb9@byu.net>.
2445
48cc060e
UD
24462008-03-27 Jakub Jelinek <jakub@redhat.com>
2447
2448 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2449 and creat system calls.
2450 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2451 call.
2452 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2453 system calls.
2454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2455 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2456 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2457
f96853be
UD
24582008-03-27 Ulrich Drepper <drepper@redhat.com>
2459
2460 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2461 <linux/limits.h> has defined it.
2462 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2463 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2464 headers.
2465 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2466 it instead of ARG_MAX.
2467
fde15fdc
UD
24682008-03-25 Jakub Jelinek <jakub@redhat.com>
2469
2470 * posix/gai.conf: Fix comment for scope nullbits.
2471 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2472 default to 128 bits for v4 mapped addresses.
2473
87b9b50f
UD
24742008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2475
2476 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2477 ptrace call to get the ieee_instruction_pointer from the kernel.
2478 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2479 ptrace call to set the ieee_instructtion_pointer.
2480 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2481 Add comment that ieee_instruction_pointer is always 0.
2482
af0498dc
UD
24832008-03-09 Andreas Jaeger <aj@suse.de>
2484
2485 [BZ #5857]
2486 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2487 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2488 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2489
2490 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2491 (rint_test): Likewise.
2492
0ab7632d
UD
24932008-03-24 Ulrich Drepper <drepper@redhat.com>
2494
0facd3df
UD
2495 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2496 call.
2497 (__nisfind_server): Similar for open readColdStartFile call.
2498 Patch partially by Jim Meyering.
2499 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2500 around internal_setent call.
2501
7e570c55
UD
2502 * po/vi.po: New Vietnamese translation.
2503
e093c247
UD
2504 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2505 ADJ_OFFSET_SS_READ.
2506
0ab7632d
UD
2507 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2508 remove CLONE_STOPPED.
2509
0726cdf7
UD
25102008-02-10 Jim Meyering <meyering@redhat.com>
2511
2512 Remove useless "if" before "free":
2513 * elf/ldconfig.c (parse_conf_include): Likewise.
2514 * gmon/gmon.c (weak_alias): Likewise.
2515 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2516 * inet/rcmd.c (__validuser2_sa): Likewise.
2517 * intl/bindtextdom.c (set_binding_values): Likewise.
2518 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2519 * libio/genops.c (save_for_backup): Likewise.
2520 * libio/wgenops.c (save_for_wbackup): Likewise.
2521 * locale/programs/ld-collate.c (collate_read): Likewise.
2522 * locale/programs/linereader.c (get_string): Likewise.
2523 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2524 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2525 * resolv/res_debug.c (do_section): Likewise.
2526 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2527 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2528 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2529 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2530 * time/tzset.c (tzset_internal): Likewise.
2531
354b7527
JJ
25322008-03-18 Jakub Jelinek <jakub@redhat.com>
2533
2534 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2535 of ASSEMBLER.
2536
ca668b29
UD
25372008-03-11 Ulrich Drepper <drepper@redhat.com>
2538
2539 [BZ #5903]
2540 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2541 not stream for output file. Open output file here.
2542 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2543 and output file name.
2544 (process_fd): Likewise.
2545 (process_file): Likewise.
2546 (main): Adjust callers of changed functions.
2547 * iconv/iconv_prog.h: Adjust prototype.
2548
f3dc3415
AJ
25492008-03-09 Andreas Jaeger <aj@suse.de>
2550
2551 [BZ #5753]
2552 * sysdeps/ia64/ieee754.h: Use protected namespace
2553 __BIG_ENDIAN/__LITTLE_ENDIAN.
2554 * sysdeps/ieee754/ieee754.h: Likewise.
2555 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2556
a8fd84d4
RM
25572008-03-08 Roland McGrath <roland@frob.com>
2558
2b965f1b
RM
2559 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2560 ignore a signal that came from a machine exception, treat it as a
2561 fatal core-dump signal instead.
2562 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2563
a8fd84d4
RM
2564 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2565 Clear DF bit in thread state's eflags.
2566 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2567
368a8dec
UD
25682008-03-08 Ulrich Drepper <drepper@redhat.com>
2569
b3278554
UD
2570 [BZ #5774]
2571 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 2572 of NAN(...) sequence.
b3278554
UD
2573 * stdlib/Makefile (tests): Add tst-strtod6.
2574 * stdlib/tst-strtod6.c: New file.
2575
2576 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2577
2127a186
UD
2578 [BZ #5762]
2579 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2580 putting offending option character in quotes. Clean up error
2581 messages.
2582 * po/be.po: Adjust msgstr in translation file.
2583 * po/bg.po: Likewise.
2584 * po/ca.po: Likewise.
2585 * po/cs.po: Likewise.
2586 * po/da.po: Likewise.
2587 * po/de.po: Likewise.
2588 * po/es.po: Likewise.
2589 * po/fr.po: Likewise.
2590 * po/hr.po: Likewise.
2591 * po/ko.po: Likewise.
2592 * po/nl.po: Likewise.
2593 * po/rw.po: Likewise.
2594 * po/sk.po: Likewise.
2595 * po/sv.po: Likewise.
2596 * po/tr.po: Likewise.
2597 * po/zh_CN.po: Likewise.
2598 * po/zh_TW.po: Likewise.
2599
725c0c87
UD
2600 [BZ #5760]
2601 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2602 Patch by Roland Bless <roland@bless.de>.
2603
368a8dec
UD
2604 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2605 .o file.
2606 * elf/Makefile (routines): Add dl-sysdep.
2607 (elide-routines.os): Likewise.
2608
78c2bf0e
UD
26092008-03-07 Ulrich Drepper <drepper@redhat.com>
2610
7c22c7ec
UD
2611 [BZ #5786]
2612 * elf/dl-sysdep.c: Undefine ROUND after use.
2613 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2614 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2615 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2616 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2617 to ...
2618 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2619 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2620 if necessary.
2621 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2622
93025f93
UD
2623 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2624 _dl_tls_get_addr_soft element.
2625 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2626 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2627 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2628 GLRO.
2629 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2630 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2631 of internal_function.
2632
72f10127
UD
2633 * stdlib/Makefile (aux): Add tens_in_limb.
2634 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2635 * stdlib/tens_in_limb.c: ...here. New file.
2636
443db178
UD
2637 [BZ #5778]
2638 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2639 __statfs_chown_restricted.
2640 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2641 for _PC_CHOWN_RESTRICTED.
2642 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2643 Implement __statfs_chown_restricted.
2644 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2645 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
2646 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2647 defined to zero.
443db178 2648
78c2bf0e
UD
2649 * sysdeps/x86_64/rtld-memset.c: New file.
2650
443db178 26512008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
2652
2653 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2654
2655 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2656 Barcelona machine. Make default fall through branch of
2657 __x86_64_preferred_memory_instruction check as the integer code path.
2658
26592007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2660
2661 * sysdeps/x86_64/cacheinfo.c
2662 (__x86_64_preferred_memory_instruction): New variable.
2663 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2664
2665 * sysdeps/x86_64/memset.S: Rewrite.
2666
dff37515
UD
26672008-03-04 Jakub Jelinek <jakub@redhat.com>
2668
2669 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2670 __obstack_printf_chk): New prototypes.
2671 (__vasprintf_chk, __vdprintf_chk,
2672 __obstack_vprintf_chk): Likewise.
2673 Add libc_hidden_proto.
2674 * libio/obprintf.c
2675 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2676 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2677 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2678 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2679 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2680 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2681 __obstack_vprintf_chk): New prototypes.
2682 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2683 obstack_vprintf): New inlines.
2684 * debug/dprintf_chk.c: New file.
2685 * debug/vdprintf_chk.c: New file.
2686 * debug/asprintf_chk.c: New file.
2687 * debug/vasprintf_chk.c: New file.
2688 * debug/obprintf_chk.c: New file.
2689 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2690 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2691 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2692 @@GLIBC_2.8.
2693 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2694 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2695 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2696 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2697 libc_hidden_proto.
2698 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2699 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2700 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2701 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2702 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2703 @@GLIBC_2.8.
2704 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2705 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2706 obstack_vprintf_chk.
2707 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2708 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2709 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2710 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2711 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2712 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2713
d835f136
UD
27142008-03-04 Ulrich Drepper <drepper@redhat.com>
2715
a4bb445a
UD
2716 [BZ #5779]
2717 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2718 Patch by Roy Marples <roy@marples.name>.
2719
c958a6a4
UD
2720 [BZ #5736]
2721 * malloc/malloc.c: Fix typo in comment.
2722
d835f136
UD
2723 [BZ #5627]
2724 * locale/iso-639.def: Add Shuswap.
2725
65b4743a
UD
27262008-02-25 Jakub Jelinek <jakub@redhat.com>
2727
2728 [BZ #5790]
2729 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2730 overwrite *h_errnop/*errnop values from getanswer_r in case of
2731 failure.
2732
3868fb6e
UD
27332008-03-03 Ulrich Drepper <drepper@redhat.com>
2734
27c377dd
UD
2735 [BZ #5818]
2736 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2737 (verify_persistent_db): Remove one unnecessary test and add a new one
2738 for bad configuration.
2739 (nscd_init): Improve error reported when persistent database cannot
2740 be reused.
2741 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2742 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2743 .suggested_module and .max_db_size and case config file says the
2744 values are zero.
2745 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2746
0f749099
UD
2747 [BZ #5854]
2748 * nis/ypclnt.c (yp_order): Fix handling of return value of
2749 do_ypcall_tr call.
2750 Patch by Jeff Moyer <jmoyer@redhat.com>.
2751
3868fb6e
UD
2752 * po/fr.po: Update from translation team.
2753
268dbf25
AJ
27542008-02-22 Andreas Jaeger <aj@suse.de>,
2755 Carlos O'Donell <carlos@systemhalted.org>
2756
2757 [BZ #5012]
2758 * FAQ.in: Describe why glibc needs to be compiled with
2759 optimization.
2760
73b82641
RM
27612008-02-19 Roland McGrath <roland@redhat.com>
2762
2763 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2764
c9136393
UD
27652008-02-15 Ulrich Drepper <drepper@redhat.com>
2766
2767 [BZ #5737]
2768 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2769 __USE_MISC is defined.
2770
2e3e9ff1
UD
27712008-02-10 Ulrich Drepper <drepper@redhat.com>
2772
2773 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2774 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2775 sys/timerfd.h.
2776 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2777 timerfd_gettime, timerfd_settime.
2778 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2779 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2780
85202a2b
RM
27812008-02-08 Roland McGrath <roland@redhat.com>
2782
2783 * elf/elf.h (NT_PPC_SPE): New macro.
2784
708ef8a4
RM
27852008-02-06 Roland McGrath <roland@redhat.com>
2786
2787 * Makerules ($(common-objpfx)sysd-rules):
2788 Depend on $(sysdep-makeconfigs).
2789
363a641b
RM
27902008-01-31 Roland McGrath <roland@redhat.com>
2791
67fbfa5c
RM
2792 [BZ #5442]
2793 * configure.in: Use -print-file-name if it yields a directory,
2794 for each of include and include-fixed.
2795 * configure: Regenerated.
2796
363a641b
RM
2797 * Makeconfig (sysd-rules-targets): New variable.
2798 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2799 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2800
0f0f9610
RM
28012008-01-30 Roland McGrath <roland@redhat.com>
2802
7bd00dbf
RM
2803 * manual/libc.texinfo: Update back-cover text.
2804
0f0f9610
RM
2805 * elf/elf.h (NT_386_TLS): New macro.
2806
16cd816f
RM
28072008-01-29 Roland McGrath <roland@redhat.com>
2808
2809 * Makeconfig (sysd-rules-patterns): New variable.
2810 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2811 (check-inhibit-asm): New canned sequence, replaces ...
2812 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2813 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2814 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2815 (CFLAGS-rtld): Variable removed.
2816
f641ffcc
RM
28172008-01-24 Roland McGrath <roland@redhat.com>
2818
2819 * configure.in: Let configure fragments set base_os.
2820 * configure: Regenerated.
2821
b7e26885
UD
28222008-01-22 Ulrich Drepper <drepper@redhat.com>
2823
2824 * po/ko.po: Update from translation team.
2825
b4b166af
UD
28262008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2827
2828 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2829
f66def9d
AJ
28302008-01-12 Andreas Jaeger <aj@suse.de>
2831
2832 [BZ #5040]
2833 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2834 Add EPOLLRDHUP.
2835
d3bc5e77
RM
28362008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2837
2838 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2839 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2840 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2841
4c533566
UD
28422007-10-23 Alexandre Oliva <aoliva@redhat.com>
2843
2844 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2845 * elf/dl-close.c (_dl_close): Check for it.
2846 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2847 (_dl_allocate_static_tls): Likewise.
2848 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2849 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2850 to it.
2851 * elf/tst-tls16.c: New file.
2852 * elf/tst-tlsmod16a.c: New file.
2853 * elf/tst-tlsmod16b.c: New file.
2854 * elf/Makefile: Add rules to build and run tst-tls16.
2855
a53d3f82
UD
28562008-01-16 Ulrich Drepper <drepper@redhat.com>
2857
a0f6c236
UD
2858 [BZ #5628]
2859 * bits/shm.h: Fix comment describing shmid_ds.
2860 * sysdeps/gnu/bits/shm.h: Likewise.
2861 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2862 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2863 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2864 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2865 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2866 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2867 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2868 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2869 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2870
a53d3f82
UD
2871 [BZ #5607]
2872 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2873 prototypes.
2874 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2875 additional suffixes.
2876 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2877 Add optional functions mq_timedreceive and mq_timedsend.
2878 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2879 * conform/data/pthread.h-data: Fix prototype of
2880 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2881 * conform/data/semaphore.h-data: Allow time.h definitions.
2882 * conform/data/signal.h-data: Likewise.
2883 * conform/data/stdio.h-data: getw and putw are not required in v6.
2884 * conform/data/stdlib.h-data: Change setstate prototype.
2885 * conform/data/string.h-data: Fix strerror_r prototype.
2886 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2887 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2888 Fix readlink prototype.
2889 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2890 in6addr_loopback.
2891 * inet/netinet/in.h: Cleanup namespace.
2892 * posix/regex.h: Likewise.
2893 * resolv/netdb.h: Likewise.
2894 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2895 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2896 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
2897 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2898 of names of in in6_addr.
2899 (default_precedence): Likewise.
2900 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2901 NULL definition.
a53d3f82 2902
ebca8f73
UD
29032008-01-15 Ulrich Drepper <drepper@redhat.com>
2904
fbe90cd5
UD
2905 * conform/data/fmtmsg.h-data: Add missing allows.
2906 * conform/data/ftw.h-data: Likewise.
2907 * conform/data/inttypes.h-data: Likewise.
2908 * conform/data/math.h-data: Likewise.
2909 * conform/data/signal.h-data: Likewise.
2910 * conform/data/net/if.h-data: Likewise.
2911 * conform/data/netinet/in.h-data: Likewise.
2912 * conform/data/sys/socket.h-data: Likewise.
2913
ebca8f73
UD
2914 [BZ #5614]
2915 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2916 (__strtok_r): Simplify.
2917 * string/tester.c (test_strtok_r): Add test case for futile search
2918 with single-character seach string.
2919
7c33ca8b
UD
29202008-01-12 Ulrich Drepper <drepper@redhat.com>
2921
2922 * po/ko.po: Update from translation team.
2923
b8cc0848
AJ
29242008-01-11 Andreas Jaeger <aj@suse.de>
2925
2926 [BZ #5600]
2927 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2928 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2929 kernel header.
2930
49029a66
UD
29312008-01-10 Ulrich Drepper <drepper@redhat.com>
2932
2933 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2934 native interface lookup in all the relevant places.
2935
99f05798
UD
29362008-01-10 Jakub Jelinek <jakub@redhat.com>
2937 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
2938
2939 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2940 field. Use sockaddr_in6 for source_addr.
2941 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2942 (match_prefix): Likewise.
2943 (get_label): Likewise.
2944 (get_precedence): Likewise.
2945 (rfc3484_sort): Change to use indirect access to results array.
2946 Adjust to use of sockaddr_in6. Replace service_order test with
2947 simple index comparison.
2948 (getaddrinfo): Define order array. Initialize it. Don't initialize
2949 service_order field. Adjust qsort_t calls. Access sorted result
2950 array indirectly through order array.
2951 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2952 * posix/tst-rfc3484-2.c: Likewise.
2953 * posix/tst-rfc3484-3.c: Likewise.
2954
b3443701
UD
29552008-01-09 Ulrich Drepper <drepper@redhat.com>
2956
f6bacb8e
UD
2957 [BZ #5541]
2958 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2959 pollfd structures.
2960 Patch by André Cruz.
2961
aa693c68
UD
2962 [BZ #5545]
2963 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2964 (clnt_spcreateerror): Likewise.
2965
b3443701
UD
2966 [BZ #5553]
2967 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2968 (public_mEMALIGn): Likewise.
2969 Patch mostly by Daniel Jacobowitz.
2970
148e12ed
UD
29712008-01-09 Jakub Jelinek <jakub@redhat.com>
2972
2973 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2974 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2975 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2976 * stdlib/tst-makecontext2.c: New test.
2977
78c2bf0e 29782008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
2979
2980 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2981 defined.
2982 (REINIT_PARAMS): Likewise. Undefine before end of file.
2983 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2984 transliteration hooks and REINIT_PARAMS afterwards.
2985 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2986 status.
2987 (REINIT_PARAMS): Define.
2988 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2989 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2990 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2991 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2992 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2993 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2994 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2995 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2996 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2997 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2998 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2999 * iconvdata/tst-iconv7.c: New test.
3000
71edcafa
UD
30012008-01-07 Ulrich Drepper <drepper@redhat.com>
3002
3003 * libio/stdio.h (vscanf): Fix definition for loser compilers.
3004
0fbfe2f7
JJ
30052008-01-05 Jakub Jelinek <jakub@redhat.com>
3006
3007 [BZ #5112]
3008 * nscd/connections.c (restart): Fix condition.
3009
8726a12e
UD
30102008-01-03 Jakub Jelinek <jakub@redhat.com>
3011
3012 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3013 __ctype_toupper_loc): Add __THROW.
3014
f4a1363e
UD
30152008-01-02 Ulrich Drepper <drepper@redhat.com>
3016
ad586879
UD
3017 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3018 recognition of interface family.
3019
f4a1363e
UD
3020 * posix/getconf.c: Update copyright year.
3021 * nss/getent.c: Likewise.
3022 * iconv/iconvconfig.c: Likewise.
3023 * iconv/iconv_prog.c: Likewise.
3024 * elf/ldconfig.c: Likewise.
3025 * catgets/gencat.c: Likewise.
3026 * csu/version.c: Likewise.
3027 * elf/ldd.bash.in: Likewise.
3028 * elf/sprof.c (print_version): Likewise.
3029 * locale/programs/locale.c: Likewise.
3030 * locale/programs/localedef.c: Likewise.
3031 * nscd/nscd.c (print_version): Likewise.
3032 * debug/xtrace.sh: Likewise.
3033 * malloc/memusage.sh: Likewise.
3034 * malloc/mtrace.pl: Likewise.
3035 * debug/catchsegv.sh: Likewise.
3036
0dc6c5e4
UD
30372007-12-26 Ulrich Drepper <drepper@redhat.com>
3038
3039 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3040 second lookup.
3041
80af8b82
UD
30422007-12-23 Ulrich Drepper <drepper@redhat.com>
3043
3044 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3045 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3046
4bcecfb7
RM
30472007-12-17 Roland McGrath <roland@redhat.com>
3048
3049 * inet/ether_line.c (ether_line): Remove unused variable.
3050
30512007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
3052
3053 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3054 and winp.
3055 * login/openpty.c (openpty): Likewise.
3056 * login/pty.h (openpty, forkpty): Likewise.
3057 * manual/terminal.texi (openpty, forkpty): Likewise.
3058
4cd4c5d6
UD
30592007-12-17 Ulrich Drepper <drepper@redhat.com>
3060
78c2bf0e 3061 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
3062 main_arena, count all bytes inside the mprotect_size range of the
3063 heap as uninitialized.
3064
68631c8e
UD
30652007-12-16 Ulrich Drepper <drepper@redhat.com>
3066
d9961b6a
UD
3067 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3068 executable stacks.
3069
68631c8e
UD
3070 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3071 mTRIm for all of them.
3072 (mTRIm): Additionally iterate over all free blocks and use madvise
3073 to free memory for all those blocks which contain at least one
3074 memory page.
be8c1500
UD
3075 * malloc/tst-trim1.c: New file.
3076 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
3077
3078 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3079
78b767a0
UD
30802007-12-14 Ulrich Drepper <drepper@redhat.com>
3081
3082 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3083 First cast argument to long
52386be7
UD
3084 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3085 Return long.
3086 (__vdso_clock_gettime): Likewise.
78b767a0
UD
3087 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3088 return long.
3089
bc3e1c12
UD
30902007-12-13 Ulrich Drepper <drepper@redhat.com>
3091
3092 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3093 * locale/nl_langinfo_l.c: Real implementation, copied from
3094 nl_langinfo.c.
3095 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3096
77751669
UD
30972007-12-01 Jim Meyering <meyering@redhat.com>
3098
3099 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3100 that would inhibit utf8-optimization of a regexp containing line-
3101 or buffer-anchors, e.g., `^', `$'.
3102
f63e5063
UD
31032007-12-12 Ulrich Drepper <drepper@redhat.com>
3104
3105 * time/bug-getdate1.c (do_test): Don't use century values which
3106 aren't valid on 32-bit systems.
3107
a78814a9
UD
31082007-12-12 Jakub Jelinek <jakub@redhat.com>
3109
3110 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3111 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3112 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3113 __strcat_g, __strncat_g): Add __asm__.
3114
31152007-12-12 Ulrich Drepper <drepper@redhat.com>
3116
3117 [BZ #5477]
3118 * io/fchmodat.c: Fix typo in stub_warning use.
3119 Patch by Petr Salinger.
3120
17edb30c
UD
31212007-12-11 Ulrich Drepper <drepper@redhat.com>
3122
58d11795
UD
3123 * iconvdata/hp-thai8.c: New file.
3124 * iconvdata/Makefile: Add rules for hp-thai8.c.
3125 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3126 * iconvdata/gconv-modules: Likewise.
3127
3128 [BZ #5464]
3129 * iconvdata/hp-greek8.c: New file.
3130 * iconvdata/Makefile: Add rules for hp-greek8.c.
3131 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3132 * iconvdata/gconv-modules: Likewise.
3133
3134 [BZ #5463]
3135 * iconvdata/hp-turkish8.c: New file.
3136 * iconvdata/Makefile: Add rules for hp-turkish8.c.
3137 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3138 * iconvdata/gconv-modules: Likewise.
3139
cbf5760e
UD
3140 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3141 (shrink_heap): ... this new function.
3142 (heap_trim): Call shrink_heap instead of grow_heap.
3143
17edb30c
UD
3144 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3145 case don't call alloc_perturb.
3146
ae18718f
UD
31472007-12-10 Ulrich Drepper <drepper@redhat.com>
3148
3149 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3150 possible.
3151 * sysdeps/unix/sysv/linux/kernel-features.h
3152 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3153 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3154
b4354cf4
UD
31552007-12-08 Ulrich Drepper <drepper@redhat.com>
3156
3157 [BZ #5424]
3158 * stdio-common/vfprintf.c: Do not overflow when adding to done.
3159 * stdio-common/Makefile (tests): Add bug22.
3160 * stdio-common/bug22.c: New file.
3161
3162 [BZ #5451]
3163 * time/getdate.c: Fix filling in default values.
3164 * time/bug-getdate1.c: New file.
3165 * time/Makefile: Add rules to build and run bug-getdate1.
3166
3167 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3168 * iconvdata/ebcdic-es.c: Likewise.
3169 * iconvdata/ebcdic-es-a.c: Likewise.
3170 * iconvdata/ebcdic-uk.c: Likewise.
3171 * iconvdata/iso8859-16.c: Likewise.
3172 * iconvdata/viscii.c: Likewise.
3173 * iconvdata/iso8859-9e.c: Likewise.
3174 * iconvdata/Makefile: Adjust appropriately.
3175
3176 [BZ #5428]
3177 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3178 __need_wint_t.
3179
26e21e75
UD
31802007-12-07 Ulrich Drepper <drepper@redhat.com>
3181
87520ccc
UD
3182 [BZ #5427]
3183 * iconvdata/hp-roman9.c: New file.
3184 * iconvdata/Makefile: Add rules for hp-roman9.c.
3185 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 3186 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
3187
3188 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3189 * iconvdata/Makefile: Adjust appropriately.
3190
26e21e75
UD
3191 [BZ #5441]
3192 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3193 structure, it's allocated with alloca.
3194 * stdio-common/Makefile (tests): Add bug21.
3195 * stdio-common/bug21.c: New file.
3196
31972007-12-06 Aurelien Jarno <aurelien@aurel32.net>
3198
3199 [BZ #5452]
3200 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 3201 keyword for gcc's braced-groups.
26e21e75
UD
3202
32032007-12-07 Ulrich Drepper <drepper@redhat.com>
3204
3205 [BZ #5454]
3206 * inet/ether_line.c: Strip hostname of whitespaces.
3207 * inet/Makefile (tests): Add tst-ether_line.
3208 * inet/tst-ether_line.c: New file.
3209
9e80c123
UD
32102007-12-03 Ulrich Drepper <drepper@redhat.com>
3211
da0ff4ae
UD
3212 [BZ #5439]
3213 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3214
51bd20d9
UD
3215 [BZ #5435]
3216 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3217
d90d0256
UD
3218 * stdlib/tst-setcontext.c: Catch the case where the links gets
3219 messed up and we do not reach main again.
3220
9e80c123
UD
3221 * po/ca.po: Update from translation team.
3222
ae4287f8
UD
32232007-11-26 Ulrich Drepper <drepper@redhat.com>
3224
6701afc7 3225 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 3226 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 3227 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 3228
30294ea4
UD
32292007-11-25 Ulrich Drepper <drepper@redhat.com>
3230
3231 * nscd/nscd.h (MAX_STACK_USE): Define.
3232 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3233 (gc): Initialize stack_used based on allocation in prune_cache.
3234 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 3235 Clear array before use.
30294ea4
UD
3236
3237 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 3238 memory allocation failed.
e8667ddc
UD
3239 * nscd/hstcache.c (cache_addhst): Likewise.
3240 * nscd/grpcache.c (cache_addgr): Likewise.
3241 * nscd/servicescache.c (cache_addserv): Likewise.
3242 * nscd/pwdcache.c (cache_addpw): Likewise.
3243 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 3244
715db78b
UD
32452007-11-23 Ulrich Drepper <drepper@redhat.com>
3246
609bb071
UD
3247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3248 and creat system calls.
3249
715db78b
UD
3250 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3251
ea2c47b6
UD
32522007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
3253
3254 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3255 Add netiucv/iucv.h.
3256 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3257 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3258 protocol.
3259 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3260 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3261 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3262
dcdcf4b9
UD
32632007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
3264
37143323
UD
3265 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3266 strncat): Define as macros to avoid compile errors.
3267
dcdcf4b9
UD
3268 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
3269 creat entries.
3270
3a632674
UD
32712007-11-22 Ulrich Drepper <drepper@redhat.com>
3272
7ea8eb02
UD
3273 [BZ #5382]
3274 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3275 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 3276 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 3277 overflow it.
70d5b6ef 3278 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
3279
3280 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 3281 Return zero in case the thread library is not NPTL.
7ea8eb02 3282
5c3a3dba
UD
3283 [BZ #5375]
3284 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3285 initializing interface list.
3286
85883123
UD
3287 [BZ #5378]
3288 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3289 use result of nss_getgrgid_r if nothing was found. For other
3290 error return with a failure.
3291 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3292
3a632674
UD
3293 * locale/programs/ld-collate.c (collate_read): Fix loop to match
3294 macro name.
3295
b73f9135
UD
32962007-11-19 Ulrich Drepper <drepper@redhat.com>
3297
ee72b971
UD
3298 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3299 (get_scope): For IPv4 scope, use scopes table.
3300 (fini): Free scopes table if necessary.
3301 (free_scopelist): New function.
3302 (scopecmp): New function.
3303 (gaiconf_init): Also handle scopev4 entries.
3304 * posix/tst-rfc3484.c (do_test): Initialize scopes.
3305 * posix/tst-rfc3484-2.c (do_test): Likewise.
3306 * posix/gai.conf: Document scopev4 defaults.
3307 * posix/Makefile (tests): Add tst-rfc3484-3.
3308 * posix/tst-rfc3484-3.c: New file.
3309
f4a79765
UD
3310 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3311 Teredo tunnels.
b73f9135
UD
3312 * posix/gai.conf: Update for current default tables.
3313
429bd64d
UD
33142007-11-19 Ulrich Drepper <drepper@redhat.com>
3315
3316 * po/tr.po: Update from translation team.
3317
3c9af259
RM
33182007-11-18 Roland McGrath <roland@frob.com>
3319
76cf9889
RM
3320 * manual/arith.texi (Remainder Functions): Spelling fix.
3321 From Shaun Silk <genix@mysoul.com.au>.
3322
3c9af259
RM
3323 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3324
238346ab
UD
33252007-11-17 Ulrich Drepper <drepper@redhat.com>
3326
5879ad50
UD
3327 * po/zh_CN.po: Update from translation team.
3328
238346ab
UD
3329 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3330 Add sys/signalfd.h and sys/eventfd.h.
3331
b80b9c77
UD
33322007-11-15 Bruno Haible <bruno@clisp.org>
3333
3334 [BZ #5346]
3335 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3336 union.
3337 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3338 (DCIGETTEXT): Change the allocation of the 'search' variable so that
3339 it needs only fixed stack space. Delay the initialization of
3340 msgid_len until it is needed.
3341
2da2501c
AJ
33422007-11-15 Andreas Jaeger <aj@suse.de>
3343
3344 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3345 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3346
68a6dcf5
UD
33472007-11-15 Ulrich Drepper <drepper@redhat.com>
3348
3349 * po/ko.po: Update from translation team.
3350
43850227
UD
33512007-11-14 Ulrich Drepper <drepper@redhat.com>
3352
1e2692c9
UD
3353 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3354 significantly. The device type is also part of the ifinfomsg data.
3355
84e6cc7c 3356 * po/sv.po: Update from translation team.
cbd52634 3357 * po/nl.po: Likewise.
84e6cc7c 3358
f9e2261b
UD
3359 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3360 to wake up in 24 hours.
3361
43850227
UD
3362 * nscd/gai.c (__ioctl): Define. Include check_native.c.
3363
5742e960
UD
33642007-11-13 Ulrich Drepper <drepper@redhat.com>
3365
1a821d82
UD
3366 * po/cs.po: Update from translation team.
3367 * po/pl.po: Likewise.
3368
773e79b3
UD
3369 * include/ifaddrs.h: Remove in6ai_temporary.
3370 (struct in6addrinfo): Add index element.
3371 Declare __check_native.
3372 * inet/Makefile (aux): Add check_native.
3373 * sysdeps/unix/sysv/linux/check_native.c: New file.
3374 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3375 IFA_F_TEMPORARY. Pass back ifa_index.
3376 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3377 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
3378 call __check_native if necessary.
3379 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
3380 to sort addresses. Pass information about the results.
3381 * posix/tst-rfc3484.c: Adjust for addition of index field and change
3382 of rfc3484_sort interface.
3383 * posix/tst-rfc3484-2.c: Likewise.
3384
e458144c
UD
3385 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
3386 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3387 for _quicksort.
3388 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3389 (qsort_r): Renamed from qsort. Take additional parameter and pass it
3390 on as third parameter to compare function and _quicksort.
3391 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3392 to the compare function.
3393 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3394 * Versions.def: Add GLIBC_2.8 for libc.
3395
bd63f380
UD
3396 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3397 * posix/tst-rfc3484-2.c: Likewise.
3398
5742e960
UD
3399 * include/kernel-features.h: Moved to...
3400 * sysdeps/mach/hurd/kernel-features.h: ...here.
3401
a6ac7fdb
RM
34022007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3403
3404 * sysdeps/i386/i586/memcpy_chk.S: New file.
3405 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3406 * sysdeps/i386/i586/memset_chk.S: Likewise.
3407
6f3914d5
UD
34082007-11-12 Ulrich Drepper <drepper@redhat.com>
3409
3410 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3411 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3412 list of interfaces. Also store prefix length.
3413 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3414 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3415 prefix if source and destination address are in the same subnet.
3416 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
3417 Always look for matching record in in6ai list.
3418 Correct source_addr_len value for IPv6->IPv4 converted records.
3419
78cf5f6a
RM
34202007-11-11 Roland McGrath <roland@frob.com>
3421
3422 * include/kernel-features.h: New file.
3423
7f745396
UD
34242007-11-10 Ulrich Drepper <drepper@redhat.com>
3425
01e7fdbb
UD
3426 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3427 complications for 64-bit platforms.
3428
7f745396
UD
3429 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3430 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
3431 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3432 open64_2.
3433 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3434 entries.
3435 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3436 * sysdeps/wordsize-64/alphasort.c: New file.
3437 * sysdeps/wordsize-64/alphasort64.c: New file.
3438 * sysdeps/wordsize-64/fseeko.c: New file.
3439 * sysdeps/wordsize-64/fseeko64.c: New file.
3440 * sysdeps/wordsize-64/ftello.c: New file.
3441 * sysdeps/wordsize-64/ftello64.c: New file.
3442 * sysdeps/wordsize-64/ftw.c: New file.
3443 * sysdeps/wordsize-64/ftw64.c: New file.
3444 * sysdeps/wordsize-64/iofgetpos.c: New file.
3445 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3446 * sysdeps/wordsize-64/iofopen.c: New file.
3447 * sysdeps/wordsize-64/iofopen64.c: New file.
3448 * sysdeps/wordsize-64/iofsetpos.c: New file.
3449 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3450 * sysdeps/wordsize-64/lockf.c: New file.
3451 * sysdeps/wordsize-64/lockf64.c: New file.
3452 * sysdeps/wordsize-64/mkostemp.c: New file.
3453 * sysdeps/wordsize-64/mkostemp64.c: New file.
3454 * sysdeps/wordsize-64/mkstemp.c: New file.
3455 * sysdeps/wordsize-64/mkstemp64.c: New file.
3456 * sysdeps/wordsize-64/scandir.c: New file.
3457 * sysdeps/wordsize-64/scandir64.c: New file.
3458 * sysdeps/wordsize-64/tmpfile.c: New file.
3459 * sysdeps/wordsize-64/tmpfile64.c: New file.
3460 * sysdeps/wordsize-64/versionsort.c: New file.
3461 * sysdeps/wordsize-64/versionsort64.c: New file.
3462 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3463 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3464 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3465 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3466 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3467 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3468 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3469 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3470 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3471 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3472 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3473 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3474
3475 * crypt/sha256-crypt.c: Fix a comment.
3476 * crypt/sha512-crypt.c: Likewise.
3477
f6ed654c
UD
34782007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3479
3480 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3481
f2a8406a
UD
34822007-11-07 Ulrich Drepper <drepper@redhat.com>
3483
3484 [BZ #5277]
3485 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3486 because output buffer is too small break, don't loop.
3487 * iconvdata/Makefile (tests): Add bug-iconv6.
3488 * iconvdata/bug-iconv6.c: New file.
3489
7fe4e0e8
UD
34902007-11-06 Ulrich Drepper <drepper@redhat.com>
3491
9ca230d6
UD
3492 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3493 with size_t type.
3494 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3495 size_t. Add casts where needed.
3496
7fe4e0e8
UD
3497 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3498 old headers, don't call avc_has_perm if we don't have the
3499 permission information.
3500
b92e3780
UD
35012007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3502
3503 * elf/rtld.c (dl_main): Use the page size to find the map start.
3504
ffb1b882
UD
35052007-11-05 Ulrich Drepper <drepper@redhat.com>
3506
94a749f6
UD
3507 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3508 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3509
ffb1b882
UD
3510 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3511 when the lookup call failed.
3512
3513 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3514 Add prune_cond and wakeup_time.
3515 (CACHE_PRUNE_INTERNAL): Define.
3516 Update declarations of prune_cache and setup_thread.
3517 * nscd/connections.c (dbs): Update initializers.
3518 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3519 (nscd_init): Default number of threads is now 4.
3520 (invalidate_cache): Take lock before calling prune_cache.
3521 (handle_request): If SELinux forbids the request, say so.
3522 (readylist_cond): Use static initializer.
3523 (nscd_run_prune): New function. Used only by pruning threads.
3524 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3525 here.
3526 (fd_ready): Update nscd_run reference.
3527 (start_threads): No need to initialize readylist_cond.
3528 Start pruning threads separately.
3529 * nscd/nscd_setup_thread.c: Change return value type to int and always
3530 return 0.
3531 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3532 to int and return nonzero value if we can use the TID address hack.
3533 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3534 the database is later than the new entry's timeout, update the
3535 wakeup time and wake the cleanup thread.
3536 (prune_cache): Return seconds the next entry in the database is still
3537 valid. Remove locking for pruning here.
3538 * nscd/nscd.conf: Document default number of threads.
3539
4c48ef06
UD
35402007-10-31 Ulrich Drepper <drepper@redhat.com>
3541
41ff2a49
UD
3542 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3543 stack is properly aligned for the target function.
3544 Correct unwind info.
ffb1b882 3545
4c48ef06
UD
3546 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3547 when using auditing libraries.
3548
384ca551
UD
35492007-10-29 Ulrich Drepper <drepper@redhat.com>
3550
31e2791c
UD
3551 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3552 _nss_dns_getnetbyaddr2_r.
3553 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3554 extra parameter to getanswer_r.
3555 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3556 _nss_dns_getnetbyaddr2_r.
3557
384ca551
UD
3558 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3559 gethstbynm3_r.
3560 * nscd/gethstbynm2_r.c: Remove.
3561 * nscd/gethstbynm3_r.c: New file.
3562 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3563 __gethostbyaddr_r.
3564 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3565 __gethostbyaddr_r compatibility wrapper.
3566 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3567 determining timeout of entry.
3568 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3569 __gethostbyaddr2_r.
3570 (addhstbyX): Pass reference to variable for TTL to lookup and
3571 cache_addhst.
3572 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3573 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3574 and __nss_next2. Remove __nss_services_lookup.
3575 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3576 Add compat wrapper.
3577 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3578 __nss_next2.
3579 * nss/getXXent_r.c: Likewise.
3580 * nss/getnssent_r.c: Likewise.
3581 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3582 does not exist in module, try the optional second name.
3583 (__nss_next2): New function.
3584 (__nss_next): Now wrapper around __nss_next2.
3585 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3586 Declare __nss_next2.
3587 Adjust definition of db_lookup_function type.
3588 * nss/service-lookup.c: Define NO_COMPAT.
3589 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3590 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3591 * inet/ether_ntoh.c: Likewise.
3592 * sunrpc/netname.c: Likewise.
3593 * sunrpc/publickey.c: Likewise.
3594 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3595 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3596 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3597 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3598 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3599
3600 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3601
5e37840c 3602 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 3603
88197030
UD
36042007-10-28 Ulrich Drepper <drepper@redhat.com>
3605
f160a450
UD
3606 [BZ #5204]
3607 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3608 * crypt/sha512c-test.c: Likewise.
3609
4c6b2202
UD
3610 [BZ #5225]
3611 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3612 to keep track of end of %[ format string element.
22c915ac
UD
3613 * stdio-common/Makefile (tests): Add bug20.
3614 * stdio-common/bug20.c: New file.
4c6b2202 3615
88197030
UD
3616 [BZ #5222]
3617 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3618 path elements in counting mode.
3619
05d69147
UD
36202007-10-27 Andreas Jaeger <aj@suse.de>
3621
94833f11
UD
3622 [BZ #5040]
3623 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3624
05d69147
UD
3625 [BZ #3112]
3626 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3627 (__cleanup): Free shared library when exiting.
3628 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3629 (__cleanup): Free shared library when exiting.
3630
e6b29af8
UD
36312006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3632
3633 [BZ #2549]
3634 * math/libm-test.inc (check_float_internal): Support
3635 denormalized return.
3636
ad3371fb
UD
36372007-10-23 Andreas Jaeger <aj@suse.de>
3638
3639 [BZ #5208]
3640 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3641 __LONG_LONG_PAIR to handle little endian byte order.
3642 Suggested by abhishekrai@google.com
3643
666aa020
UD
36442007-10-27 Ulrich Drepper <drepper@redhat.com>
3645
3646 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3647
8ad343b3
UD
36482007-10-26 Ulrich Drepper <drepper@redhat.com>
3649
3650 * nscd/cache.c (prune_cache): Move test for modified file outside
3651 of locking.
3652
9251c568
AJ
36532007-10-21 Andreas Jaeger <aj@suse.de>
3654
3655 * manual/texinfo.tex: Update to latest version.
3656
3657 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3658
3659 * manual/arith.texi (Status bit operations): Fix formatting.
3660
3661 * manual/errno.texi (Error Messages): Fix formatting.
3662
3663 * manual/sysinfo.texi (System Parameters): Fix formatting.
3664
3665 * manual/libc.texinfo: Update VERSION and UPDATED.
3666
260b2e06
RM
36672007-10-19 Roland McGrath <roland@redhat.com>
3668
3669 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3670
46ae8850
JJ
36712007-10-06 David S. Miller <davem@davemloft.net>
3672
3673 * configure.in: Add sparcv9v2 and sparc64v2.
3674 * scripts/config.sub: Likewise.
3675 * configure: Regenerate.
3676 * elf/elf.h (HWCAP_SPARC_N2): New.
3677 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3678 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3679 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3680 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3681 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3682 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3683 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3684
6fbfbd80
UD
36852007-10-18 Ulrich Drepper <drepper@redhat.com>
3686
3687 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3688 even if the poll result indicates there is data to read.
3689 Patch by Jeff Moyer <jmoyer@redhat.com>.
3690
39cfc9fa
RM
36912007-10-18 Roland McGrath <roland@redhat.com>
3692
3693 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 3694
39cfc9fa 36952007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
3696
3697 * version.h (VERSION): Set to 2.7.90.
3698
ed13ccf1
JJ
36992007-10-17 Jakub Jelinek <jakub@redhat.com>
3700
3701 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3702 weak_alias.
3703
ee9fd869
RM
37042007-10-17 Roland McGrath <roland@frob.com>
3705
3706 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3707 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3708
1aa5e4d7
UD
37092007-10-17 Ulrich Drepper <drepper@redhat.com>
3710
50c9fbbf 3711 * version.h (VERSION): Bump to 2.7.
777bc4bf 3712 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 3713
58423c7d
UD
3714 [BZ #5186]
3715 * time/tzset.c (__tz_convert): Don't force testing for a change of
3716 TZ if not called from localtime. But then also see whether the
3717 file changed, in case __use_tzfile is set.
3718
1aa5e4d7
UD
3719 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3720 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3721 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3722 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3723 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3724 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3725 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3726 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3727
fc4837e5
UD
37282007-10-17 Jakub Jelinek <jakub@redhat.com>
3729
3730 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3731 and admin selects to be able to replace the gai.conf file, lock
3732 data structures around the qsort call.
3733
62eaf7c8
UD
37342007-10-17 Ulrich Drepper <drepper@redhat.com>
3735
406f28db
UD
3736 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3737 new memset.
ac1cb5da 3738 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
3739 too high for the improvements. Implement bzero unconditionally for
3740 use in libc.
ac1cb5da
UD
3741
37422007-10-17 Ulrich Drepper <drepper@redhat.com>
3743 Jakub Jelinek <jakub@redhat.com>
3744
62eaf7c8
UD
3745 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3746 even when time_t is 32-bit.
3747 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3748 timezone data read by __tzfile_default. Ensure __tzname[0] is
3749 always set after the search.
3750
6a649d25
UD
37512007-10-16 Ulrich Drepper <drepper@redhat.com>
3752
3753 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3754 unreachable code on 32-bit machines.
3755
800d6f9e
UD
37562007-10-16 Jakub Jelinek <jakub@redhat.com>
3757
3758 [BZ #5184]
3759 * time/strftime_l.c: Include stdbool.h.
3760 (my_strftime): New wrapper, old function renamed to...
3761 (__strftime_internal): ... new function. Add tzset_called
3762 argument, pass it down to recursive calls, don't call tzset ()
3763 if already true, set to true after call to tzset ().
62eaf7c8 3764
69819d92
UD
37652007-10-16 Ulrich Drepper <drepper@redhat.com>
3766
3767 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3768 into account when copying TZ string.
3769
62eaf7c8
UD
37702007-10-16 Jakub Jelinek <jakub@redhat.com>
3771
3772 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3773 num_transition rather than num_transitions - 1.
3774
0308ad66
JJ
37752007-10-16 Jakub Jelinek <jakub@redhat.com>
3776
8d137b60
JJ
3777 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3778 PIC indirect jump.
3779
0308ad66
JJ
3780 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3781 a local label rather than HIDDEN_JUMPTARGET.
3782
e2b393bc
UD
37832007-10-15 Ulrich Drepper <drepper@redhat.com>
3784
3785 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3786 (init_cacheinfo): Initialize it.
3787 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3788 Always define bzero.
3789 Remove non-glibc code.
3790 * sysdeps/x86_64/bzero.S: Make an empty file.
3791
37922007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3793
3794 * sysdeps/x86_64/cacheinfo.c
3795 (__x86_64_preferred_memory_instruction): New.
3796 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3797
3798 * sysdeps/x86_64/memset.S: Rewrite.
3799
0fbfcb7b
RM
38002007-10-15 Roland McGrath <roland@redhat.com>
3801
3802 * po/libc.pot: Regenerated.
3803
2884dad4
UD
38042007-10-15 Ulrich Drepper <drepper@redhat.com>
3805
e2b393bc 3806 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
3807 pointers.
3808
2884dad4
UD
3809 [BZ #3425]
3810 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3811 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3812 address record to T_A/T_AAAA requests.
3813
89dc9d4c
UD
38142007-10-14 Ulrich Drepper <drepper@redhat.com>
3815
8d97ac13
UD
3816 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3817
1b6aa63f
UD
3818 * posix/glob.c: Add some branch prediction throughout.
3819
895a08c0
UD
3820 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3821 read from nscd.
3822
6f55ed88
UD
3823 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3824 service_order.
8d62c8ab
UD
3825 (rfc3484_sort): Make sure that even if qsort doesn't support
3826 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 3827 (getaddrinfo): Initialize service_order.
a94673e6
UD
3828 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3829 service_order field to sorting structure.
dfcf64ce 3830 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 3831
fa76dde2
UD
3832 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3833 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3834 __tzset_parse_tz and updating of daylight, timezone, tzname into
3835 update_vars.
3836 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3837 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3838 happens in __tz_compute.
3839 * time/tzfile.c (__tzfile_read): Also read TZ string.
3840 (find_transition): Fold into __tzfile_compute.
3841 (__tzfile_compute): For times beyond the last transition try to
3842 use the TZ string.
3843 * timezone/tst-timezone.c: Information in daylight and tzname does
3844 change for Asia/Tokyo timezone with more concrete information.
3845 Remove the test.
3846
3847 * include/stdio.h: Add libc_hidden_proto for ftello.
3848 * libio/ftello.c: Add libc_hidden_def.
3849
89dc9d4c
UD
3850 [BZ #1140]
3851 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3852 on the specified time and not the last entries in the file. Move
3853 code to determine tzname[] to...
3854 (find_transition): ...here. Add ugly guess for times before the
3855 first transition.
3856
f7140274
UD
38572007-10-13 Ulrich Drepper <drepper@redhat.com>
3858
cfca0aa3
UD
3859 [BZ #3195]
3860 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3861 no entry.
3862 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3863 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3864 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3865 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3866
43d3e6bd
UD
3867 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3868 read mechanism when there are no group members and avoid no-op
3869 read syscall in this case.
3870
f7140274
UD
3871 [BZ #3242]
3872 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3873 (__readall): If reading failed due to EAGAIN error wait a bit
3874 and possibly try again.
3875 (__readvall): Likewise.
3876
656f02ce
UD
38772007-10-13 Bruno Haible <bruno@clisp.org>
3878
3879 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3880 when we cannot recode the message.
3881
0ea49677
UD
38822007-10-13 Ulrich Drepper <drepper@redhat.com>
3883
3884 [BZ #4359]
3885 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
3886 write-only streams. For read/write streams, check whether we
3887 performed a read operation already.
7e39d802
UD
3888 * libio/Makefile (tests): Add tst-ext2.
3889 * libio/tst-ext2.c: New file.
0ea49677 3890
78a9b2dc
UD
38912007-10-12 Ulrich Drepper <drepper@redhat.com>
3892
fab1a490
UD
3893 * locale/programs/repertoire.c (repertoire_read): Always free
3894 memory for repertoire file name [Coverity CID 270].
3895
78a9b2dc
UD
3896 * elf/cache.c (save_aux_cache): Free memory allocated for
3897 temporary file name [Coverity CID 267].
3898
29d49a1a
JJ
38992007-10-12 Jakub Jelinek <jakub@redhat.com>
3900
3901 * misc/Makefile (headers): Add bits/error.h.
3902
d074d36d
UD
39032007-10-12 Ulrich Drepper <drepper@redhat.com>
3904
b7d1c5fa
UD
3905 * posix/fnmatch_loop.c: Take rule index returned as part of
3906 findidx return value into account when accessing weights.
3907 * posix/regcomp.c: Likewise.
3908 * posix/regexec.c: Likewise.
3909
d074d36d
UD
3910 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3911 (skip_to): Fix problems with parameter of elifdef/elifndef.
3912
26a51060
UD
39132007-10-11 Ulrich Drepper <drepper@redhat.com>
3914
3915 * iconv/gconv_simple.c: Add some branch prediction.
3916
6dd3748b
UD
39172007-10-12 Jakub Jelinek <jakub@redhat.com>
3918
3919 * locale/programs/ld-collate.c (collate_read): If ignore_content
3920 and nowtok is tok_define, eat any tok_eol tokens.
3921
d0b5557d
JJ
39222007-10-11 Jakub Jelinek <jakub@redhat.com>
3923
3924 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3925 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3926
3927 * inet/netinet/in.h: Don't include bits/socket.h.
3928 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3929 macro.
3930 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3931
3a054d7a
UD
39322007-10-10 Ulrich Drepper <drepper@redhat.com>
3933
3934 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3935 and tok_elifndef.
3936 * locale/programs/locfile-kw.gperf: Likewise.
3937 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3938
c06b7169
UD
39392007-10-10 Jakub Jelinek <jakub@redhat.com>
3940
3941 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3942 (__find_specwc): Change into __extern_always_inline function.
3943 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3944 (__parse_one_specmb): Remove ps argument.
3945 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3946 Adjust __find_specmb and __parse_one_specmb callers.
3947 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3948 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3949 Removed.
3950 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3951 caller.
3952
5a01ab7b
UD
39532007-10-09 Ulrich Drepper <drepper@redhat.com>
3954
3955 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3956 with some Pentium Ds.
3957
e3f8e049
UD
39582007-10-08 Ulrich Drepper <drepper@redhat.com>
3959
3960 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3961 __read not read.
3962 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3963 __write not write.
3964
a1a363d2
UD
39652007-10-07 Ulrich Drepper <drepper@redhat.com>
3966
a1160714
UD
3967 [BZ #181]
3968 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
3969 * locale/programs/ld-time.c (time_finish): Default for
3970 first_workday is Monday.
a1160714 3971
bb27a6eb
UD
3972 [BZ #2633]
3973 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3974
c8d48fae
UD
3975 [BZ #5103]
3976 * posix/glob.c (glob): Recognize patterns starting \/.
3977 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3978 (main): Add test for pattern starting \/.
3979
a1a363d2
UD
3980 * misc/error.h: Use __const instead of const.
3981 * misc/bits/error.h: Likewise.
3982
39832007-10-07 Andreas Jaeger <aj@suse.de>
3984
3985 * include/bits/error.h: New file.
3986
3987 * misc/bits/error.h (error_at_line): Fix prototype.
3988
71894681
UD
39892007-10-06 Ulrich Drepper <drepper@redhat.com>
3990
a6fa5328
UD
3991 [BZ #3924]
3992 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3993 more little bugs in creating the stack frame when pltexit has to
3994 be called.
3995
8c7661bc 3996 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 3997 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 3998
c039eedd
UD
3999 [BZ #4407]
4000 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4001 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4002 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4003 * math/libm-test.inc: Add test for this case.
4004
71894681
UD
4005 [BZ #5010]
4006 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4007 (svc_register): Initialize sc_mapped. Set to TRUE if call to
4008 map service succeeded.
4009 (svc_is_mapped): New function.
4010 (svc_unregister): Use it before trying to unmap service.
4011
34c2c092
UD
40122007-10-05 Ulrich Drepper <drepper@redhat.com>
4013
d10737e4
UD
4014 * timezone/zic.c: Update from tzcode2007h.
4015
4016 [BZ #5063]
4017 * timezone/africa: Update from tzdata2007h.
4018 * timezone/antarctica: Likewise.
4019 * timezone/asia: Likewise.
4020 * timezone/australasia: Likewise.
4021 * timezone/europe: Likewise.
4022 * timezone/leapseconds: Likewise.
4023 * timezone/northamerica: Likewise.
4024 * timezone/southamerica: Likewise.
4025 * timzeone/zone.tab: Likewise.
4026
0304f168
UD
4027 [BZ #5104]
4028 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4029
a83b5649
UD
4030 [BZ #5113]
4031 * string/bits/string2.h (__strdup): Cast parameters to calloc to
4032 avoid warning with -Wconversion.
4033 (__strndup): Likewise.
c039eedd 4034 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 4035
3e6ce4d7
UD
4036 [BZ #5112]
4037 * nscd/connections.c (restart): Don't resync if database is
4038 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4039
8e351378
UD
4040 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4041 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
4042
4043 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4044 evetnfd_read, eventfd_write.
4045 * sysdeps/unix/sysv/linux/eventfd.c: New file.
4046 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4047 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4048 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 4049 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
4050 eventfd_write for GLIBC_2.7.
4051
34c2c092
UD
4052 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4053 * sysdeps/unix/sysv/linux/signalfd.c: New file.
4054 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4055 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4056
6789aaaa 40572007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
4058
4059 * stdlib/msort.c: Include stdint.h.
4060 (struct msort_param): New type.
4061 (msort_with_tmp): Use struct msort_param pointer for unchanging
4062 parameters. Add optimized handling for several common sizes
4063 and indirect sorting mode.
4064 (qsort): Adjust msort_with_tmp callers. For big S use indirect
4065 sorting.
4066 Suggested by Belazougui Djamel .
4067
4068 * stdlib/Makefile (tests): Add tst-qsort2.
4069 * stdlib/tst-qsort2.c: New test.
4070
b80bfc8b
UD
40712007-10-04 Ulrich Drepper <drepper@redhat.com>
4072
174420d2
UD
4073 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4074 for dup2 in case another thread races with the current one. Retry
4075 in this case.
4076
b80bfc8b
UD
4077 * misc/error.h: Remove support for use outside of libc. We have to
4078 include <features.h> now. Include <bits/error.h> if possible.
4079 * misc/bits/error.h: New file.
4080
6789aaaa 40812007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 4082
e5dd2178
UD
4083 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4084 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4085 __extern_always_inline functions unconditionally, drop macros.
4086
ac97dec1
UD
4087 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4088 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4089 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4090
ee868c89
UD
4091 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4092 add __artificial__ attribute.
4093
80e069e0
UD
40942007-10-02 Ulrich Drepper <drepper@redhat.com>
4095
6e682cf5
UD
4096 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4097 backward to forward direction.
4098
90241a20
UD
4099 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4100
80e069e0
UD
4101 [BZ #645]
4102 * locale/programs/ld-collate.c (collate_finish): Compare against last
4103 used section which is known to have rules defined.
4104 (collate_read): After order_start, correctly record order of sections
4105 and queue sections up.
4106
035ef8d7
UD
41072007-10-01 Ulrich Drepper <drepper@redhat.com>
4108
95bddc0c
UD
4109 [BZ #5071]
4110 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4111 the same number of pages.
4112 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4113
c8caf089
UD
4114 * locale/programs/ld-collate.c (collate_read): After initial copy
4115 statement, continue in state 0.
4116
035ef8d7
UD
4117 * include/stdio_ext.h (__fsetlocking): Define as macro.
4118
592a95ee
UD
41192007-09-30 Ulrich Drepper <drepper@redhat.com>
4120
56ebeb41
UD
4121 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4122 of section order.
4123
592a95ee
UD
4124 * po/pt_BR.po: Fix typo.
4125
6c522e21
UD
41262007-09-29 Ulrich Drepper <drepper@redhat.com>
4127
8ad5c3cd
UD
4128 * iconvdata/Makefile (modules): Add ISO8859-9E.
4129 (distribute): Add iso8859-9e.c.
4130 (gen-8bit-gap-modules): Add iso8859-9e.
4131 * iconvdata/iso8859-9e.c: New file.
4132 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4133 * iconvdata/TESTS: Likewise.
4134 * iconvdata/tst-tables.sh: Likewise.
4135
4136 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4137
6c522e21
UD
4138 * locale/iso-639.def: Add several new entries.
4139
385b4cf4
UD
41402007-09-24 Jakub Jelinek <jakub@redhat.com>
4141
4142 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4143 void * pointers instead of struct link_map **.
4144 (_dl_scope_free): Change argument type to void *.
4145 * include/link.h (struct link_map): Change type of l_reldeps
4146 to struct link_map_reldeps, move l_reldepsact into that
4147 struct too.
4148 * elf/dl-deps.c: Include atomic.h.
4149 (_dl_map_object_deps): Only change l->l_initfini when it is
4150 fully populated, use _dl_scope_free for freeing it. Optimize
4151 removal of libs from reldeps by using l_reserved flag, when
4152 some removal is needed, allocate a new list instead of
4153 reallocating and free the old with _dl_scope_free. Adjust
4154 for l_reldeps and l_reldepsact changes.
4155 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
4156 searching in l_initfini and l_reldeps without holding dl_load_lock.
4157 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4158 l_reldepsact changes.
4159 * elf/dl-close.c (_dl_close_worker): Likewise.
4160 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4161
90bf831b
UD
41622007-09-28 Ulrich Drepper <drepper@redhat.com>
4163
4164 * iconvdata/Makefile (modules): Add KOI8-RU.
4165 (distribute): Add koi8-ru.c.
4166 (gen-8bit-gap-modules): Add koi8-ru.
4167 * iconvdata/koi8-ru.c: New file.
4168 * iconvdata/gconv-modules: Add entries for KOI8-RU.
4169 * iconvdata/TESTS: Likewise.
4170 * iconvdata/tst-tables.sh: Likewise.
4171
4172 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4173
d6cd6bf4
UD
41742007-09-26 Jakub Jelinek <jakub@redhat.com>
4175
4176 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4177 with __warning__/__error__ attributes.
4178 (__warnattr): Define.
4179 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4180 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4181 __warnattr.
4182 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4183 of __*_chk if compile time detectable overflow is found.
4184 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4185 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4186 with __warnattr.
4187 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4188 instead of __*_chk if compile time detectable overflow is found.
4189 (__gets_alias): Rename to...
4190 (__gets_warn): ... this. Add __warnattr.
4191 (gets): Call __gets_warn instead of __gets_alias.
4192 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4193 aliases with __warnattr.
4194 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4195 time detectable overflow is found.
4196 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4197 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4198 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4199 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4200 __getdomainname_chk_warn): New aliases with __warnattr.
4201 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4202 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4203 __*_chk_warn instead of __*_chk if compile time detectable overflow
4204 is found.
4205 (__getgroups_chk): Rename argument to __listlen from listlen.
4206 (__getwd_alias): Rename to...
4207 (__getwd_warn): ... this. Add __warnattr.
4208 (getwd): Call __getwd_warn instead of __getwd_alias.
4209 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4210 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4211 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4212 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4213 __wcsnrtombs_chk_warn): New aliases with __warnattr.
4214 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4215 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4216 compile time detectable overflow is found.
4217 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
4218 to use __*_chk or not.
4219 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4220 in comparisons which function should be called and in __*_chk*
4221 arguments. Call __*_chk_warn instead of __*_chk if compile time
4222 detectable overflow is found.
4223 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4224 __*_chk argument.
4225 * debug/tst-chk1.c (do_test): Add a few more tests.
4226
408cfca0
UD
42272007-09-24 Ulrich Drepper <drepper@redhat.com>
4228
4229 [BZ #5058]
4230 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4231 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4232 (_nl_unload_domain): Finalize conversions_lock.
4233 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4234 handling table of known conversions.
4235
e6eec9ce
JJ
42362007-09-24 Jakub Jelinek <jakub@redhat.com>
4237
4238 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4239 close_not_cancel_no_status instead of close.
4240
a532a41d
UD
42412007-09-13 Aurelien Jarno <aurelien@aurel32.net>
4242
682268ef 4243 [BZ #5028]
408cfca0 4244 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
4245 nrules != 0 for multibyte chars.
4246
dec9ed9e
UD
42472007-09-23 Ulrich Drepper <drepper@redhat.com>
4248
91633816
UD
4249 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4250 Provide better error message in case the type is unknown.
4251
9cc198f6
UD
4252 [BZ #4963]
4253 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4254 * string/stratcliff.c: Make usable to test wide char functions.
4255 * wcsmbs/wcsatcliff.c: New file.
4256 * wcsmbs/Makefiel (tests): Add wcsatcliff.
4257
27f3d446
UD
4258 [BZ #4972]
4259 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4260 (distribute): Add mac-centraleurope.c.
4261 (gen-8bit-gap-modules): Add mac-centraleurope.
4262 * iconvdata/mac-centraleurope.c: New file.
4263 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4264 * iconvdata/TESTS: Likewise.
4265 * iconvdata/tst-tables.sh: Likewise.
4266
dec9ed9e
UD
4267 [BZ #5043]
4268 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4269
0435403c
UD
42702007-09-21 Ulrich Drepper <drepper@redhat.com>
4271
4272 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4273 from __x86_64_core_cache_size_half.
4274 (init_cacheinfo): Compute shared cache size for AMD processors with
4275 shared L3 correctly.
4276 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4277 name change.
4278 Patch in large parts by Evandro Menezes.
4279
c3266dc0
UD
42802007-09-19 Ulrich Drepper <drepper@redhat.com>
4281
715899d1
UD
4282 * elf/dl-lookup.c (add_dependency): Handle failing memory
4283 allocation for dependency list. Remove unnecessary check.
4284
e1db0493
UD
4285 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4286 open/close when determining source addresses.
4287
c3266dc0
UD
4288 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4289 sha512-crypt, and sha512.
4290 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4291 (distribute): Add sha256.h and sha512.h.
4292 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4293 and call the appropriate code.
4294 * crypt/sha256-crypt.c: New file.
4295 * crypt/sha256.c: New file.
4296 * crypt/sha256.h: New file.
4297 * crypt/sha256c-test.c: New file.
4298 * crypt/sha256test.c: New file.
4299 * crypt/sha512-crypt.c: New file.
4300 * crypt/sha512.c: New file.
4301 * crypt/sha512.h: New file.
4302 * crypt/sha512c-test.c: New file.
4303 * crypt/sha512test.c: New file.
4304
ddf51ecb
JJ
43052007-09-19 Jakub Jelinek <jakub@redhat.com>
4306
4307 * misc/bits/syslog.h (syslog): Remove extraneous argument from
4308 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4309 __syslog_chk.
4310
b90395e6
UD
43112007-09-18 Jakub Jelinek <jakub@redhat.com>
4312
76c0bea7
JJ
4313 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4314 %as in fscanf format strings.
4315
00680568
JJ
4316 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4317 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
4318 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4319 Likewise.
4320 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4321 Likewise.
00680568 4322
b90395e6
UD
4323 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4324 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4325 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4326 * elf/dl-sym.c (do_sym): Likewise.
4327 * include/link.h (struct link_map): Add l_serial field.
4328 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4329 * elf/dl-lookup.c (add_dependency): Add flags argument.
4330 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4331 flags, use THREAD_GSCOPE_RESET_FLAG before and
4332 THREAD_GSCOPE_SET_FLAG after
4333 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4334 Don't dereference map until it has been found on some list.
4335 If map->l_serial changed, return -1.
4336
874aa523
UD
43372007-09-17 Jakub Jelinek <jakub@redhat.com>
4338
4339 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4340 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4341 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4342 libc_hidden_proto.
4343 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4344 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4345 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4346 add libc_hidden_proto.
4347 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4348 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4349 conformance requested.
4350 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4351 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4352 conformance requested.
4353 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4354 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4355 conformance requested.
4356 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4357 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4358 ISO C99 or POSIX conformance requested.
4359 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4360 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4361 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4362 and __isoc99_vsscanf@@GLIBC_2.7.
4363 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4364 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4365 (tests): Add scanf14.
4366 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4367 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4368 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4369 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4370 CFLAGS-isoc99_scanf.c): Add $(exceptions).
4371 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4372 from using internal headers.
4373 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4374 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4375 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4376 and __isoc99_vswscanf@@GLIBC_2.7.
4377 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4378 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4379 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4380 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4381 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4382 * stdio-common/isoc99_scanf.c: New file.
4383 * stdio-common/isoc99_vsscanf.c: New file.
4384 * stdio-common/isoc99_vscanf.c: New file.
4385 * stdio-common/isoc99_vfscanf.c: New file.
4386 * stdio-common/isoc99_fscanf.c: New file.
4387 * stdio-common/isoc99_sscanf.c: New file.
4388 * wcsmbs/isoc99_fwscanf.c: New file.
4389 * wcsmbs/isoc99_vswscanf.c: New file.
4390 * wcsmbs/isoc99_swscanf.c: New file.
4391 * wcsmbs/isoc99_wscanf.c: New file.
4392 * wcsmbs/isoc99_vwscanf.c: New file.
4393 * wcsmbs/isoc99_vfwscanf.c: New file.
4394 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4395 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4396 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4397 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4398 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4399 * stdio-common/scanf14.c: New test.
4400 * stdio-common/scanf15.c: New test.
4401 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4402 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4403 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4404 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4405 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4406 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4407 __nldbl___isoc99_scanf@@GLIBC_2.7,
4408 __nldbl___isoc99_fscanf@@GLIBC_2.7,
4409 __nldbl___isoc99_sscanf@@GLIBC_2.7,
4410 __nldbl___isoc99_vscanf@@GLIBC_2.7,
4411 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4412 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4413 __nldbl___isoc99_wscanf@@GLIBC_2.7,
4414 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4415 __nldbl___isoc99_swscanf@@GLIBC_2.7,
4416 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4417 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4418 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4419 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4420 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4421 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4422 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4423 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4424 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4425 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4426 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4427 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4428 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4429 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4430 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4431 functions.
4432 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4433 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4434 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4435 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4436 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4437 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4438 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4439 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4440 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4441 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4442 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4443 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4444
4445 * stdio-common/Makefile (tests): Add scanf13.
4446 (scanf13-ENV): New.
4447 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4448 m modifier followed by l.
4449 (STRING_ARG): Add width argument.
4450 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4451 <case L_('C')>: Handle %mlc and %mC.
4452 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4453 arguments.
4454 * stdio-common/scanf13.c: New test.
4455
4456 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4457 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4458
883f7943
UD
44592007-09-18 Ulrich Drepper <drepper@redhat.com>
4460
4461 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 4462 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
4463 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4464 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4465 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4466 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4467 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4468 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4469 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4470 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4471 as cancellation points.
4472
3524efe0
UD
44732003-11-01 Daniel Jacobowitz <dan@debian.org>
4474
4475 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4476 parse more than three parts of the version number.
4477
267c54dc
UD
44782007-09-15 Ulrich Drepper <drepper@redhat.com>
4479
4480 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4481 modifier. Patch by Jakub Jelinek.
4482
5e17d6b7
UD
44832007-08-26 Jakub Jelinek <jakub@redhat.com>
4484
4485 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4486 call_fallocate in misc subdir.
4487 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4488 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4489 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4490 instead of __fallocate64.
4491 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4492
3a50811c
UD
44932007-09-15 Jakub Jelinek <jakub@redhat.com>
4494
4495 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4496 * rt/Makefile (headers): Add bits/mqueue2.h.
4497 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4498 optimizing with GCC and __va_arg_pack_len is defined.
4499 * rt/bits/mqueue2.h: New file.
4500 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4501 (mq_open): New strong_alias.
4502 (__mq_open_2): New function.
4503 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4504 (mq_open): New strong_alias.
4505 (__mq_open_2): New function.
4506 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4507 * Versions.def (librt): Add GLIBC_2.7 version.
4508 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4509 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4510
4511 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4512 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4513 is defined rather than when not C++.
4514 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4515 __openat64_alias): New redirects.
4516 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4517 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4518 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4519 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4520 functions instead of function-like macros.
4521
9bdfff60
UD
45222007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4523
4524 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4525 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4526 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4527
ab905672
UD
45282007-09-15 Mike Frysinger <vapier@gentoo.org>
4529
4530 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4531 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4532
9bd68902
RM
45332007-09-14 Mike Frysinger <vapier@gentoo.org>
4534
4535 * inet/tst-network.c: Increment ERRORS for failing tests.
4536
de1c3ebb
UD
45372007-09-07 Jakub Jelinek <jakub@redhat.com>
4538
4539 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4540 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4541 implement as __extern_always_inline function.
4542 (vsyslog): Define as __extern_always_inline function unconditionally.
4543 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4544 When __va_arg_pack is defined, implement as __extern_always_inline
4545 functions.
4546 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4547 __extern_always_inline functions unconditionally.
4548 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4549 bits/stdio2.h will be included.
4550 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4551 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4552 implement as __extern_always_inline functions.
4553 (vswprintf, vwprintf, vfwprintf): Define as
4554 __extern_always_inline functions unconditionally.
4555 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4556
45572007-09-03 Jakub Jelinek <jakub@redhat.com>
4558
4559 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4560 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4561 attribute.
4562 * include/features.h (__USE_EXTERN_INLINES): Define only when
4563 __extern_inline is defined.
4564 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4565 is defined instead of when not __cplusplus.
4566 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4567 is defined instead of when not __cplusplus.
4568 * socket/sys/socket.h: Include bits/socket2.h when
4569 __extern_always_inline is defined instead of when not __cplusplus.
4570 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4571 is defined instead of when not __cplusplus.
4572 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4573 is defined instead of when not __cplusplus.
4574 * string/string.h: Include bits/string3.h when __extern_always_inline
4575 is defined instead of when not __cplusplus.
4576 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4577 is defined instead of when not __cplusplus.
4578 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4579 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4580 is not defined.
4581 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4582 defined __extern_always_inline instead of !defined __cplusplus.
4583 * libio/bits/stdio-ldbl.h: Likewise.
4584 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4585 * misc/bits/syslog.h (syslog): Don't define for C++.
4586 (vsyslog): Use __extern_always_inline function for C++ instead of
4587 a macro.
4588 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4589 whenever that macro is defined.
4590 (vprintf): Don't provide the inline for C++.
4591 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4592 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4593 define the macros for C++.
4594 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4595 __extern_always_inline functions for C++.
4596 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4597 stat64, lstat64, fstat64, fstatat64): Don't define if not
4598 __USE_EXTERN_INLINES.
4599 * wcsmbs/bits/wchar2.h: Fix #error message.
4600 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4601 (vswprintf, vwprintf, vfwprintf): Define using
4602 __extern_always_inline functions for C++.
4603 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4604 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4605 strncpy, strcat, strncat): Define as __extern_always_inline
4606 functions instead of macros for C++.
4607 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4608 defined __extern_inline.
4609 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4610 to __extern_inline whenever that macro is defined.
4611 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4612 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4613 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4614 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4615 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4616 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4617 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4618 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4619 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4620 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4621 prototypes. Only provide __extern_inline routines if
4622 __USE_EXTERN_INLINES.
4623 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4624 tests.
4625 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4626 For now avoid some *printf tests in C++. Skip all testing
4627 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4628 is not.
4629 * debug/tst-chk4.cc: New file.
4630 * debug/tst-chk5.cc: New file.
4631 * debug/tst-chk6.cc: New file.
4632 * debug/tst-lfschk4.cc: New file.
4633 * debug/tst-lfschk5.cc: New file.
4634 * debug/tst-lfschk6.cc: New file.
4635 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4636 prototypes in C++.
4637 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4638 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4639 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4640
b53eef9c
UD
46412007-09-13 Ulrich Drepper <drepper@redhat.com>
4642
4643 * po/cs.po: Update from translation team.
4644
af385590
RM
46452007-09-11 Roland McGrath <roland@redhat.com>
4646
4647 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4648 compiling.
4649
af2f25a1
RM
46502007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4651
4652 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4653
94733ae0
RM
46542007-09-05 Roland McGrath <roland@redhat.com>
4655
4656 * manual/signal.texi (Signaling Another Process): Typo fix.
4657 From Karl Berry <karl@freefriends.org>.
4658
de4d8563
UD
46592007-08-29 Ulrich Drepper <drepper@redhat.com>
4660
4661 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4662 zero if not defined.
4663 (make_request): Recognize optimistic addresses and treat them like
4664 deprecated addresses.
4665 Reported by Neil Horman <nhorman@redhat.com>.
4666
0adfcc05
UD
46672007-08-28 Ulrich Drepper <drepper@redhat.com>
4668
f3c54060
UD
4669 * nscd/connections.c (send_ro_fd): Also transfer file size.
4670 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4671 file size don't call fstat.
4672
0adfcc05
UD
4673 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4674 ahead and map the file. This should always be correct and we can
4675 catch problems later.
4676
3586b2b6
UD
46772007-08-28 Jakub Jelinek <jakub@redhat.com>
4678
4679 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4680 prototypes.
4681 (__fread_alias, __fread_unlocked_alias): New aliases.
4682 (fread): New extern inline.
4683 (fread_unlocked): Likewise. Undef macro before definition of
4684 the inline function.
4685 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4686 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4687 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4688 and __fread_unlocked_chk@@GLIBC_2.7.
4689 * debug/fread_chk.c: New file.
4690 * debug/fread_u_chk.c: New file.
4691 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4692
3704aa0b
RM
46932007-08-27 Jakub Jelinek <jakub@redhat.com>
4694
4695 * sysdeps/unix/sysv/linux/syscalls.list
4696 (personality): Change caller to EXTRA.
4697
80e7d6a6
UD
46982007-08-25 Ulrich Drepper <drepper@redhat.com>
4699
278bfa00
UD
4700 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4701 to keep gcc quiet.
4702 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4703
a45d733c
UD
4704 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4705 NDEBUG is defined.
4706
5dfeae0e
UD
4707 * Makerules: Use -p option with mkdir.
4708
8f1fe057
UD
4709 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4710 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
4711 (_xdr_directory_obj): Likewise.
4712 (xdr_entry_obj): Likewise.
4713 (xdr_group_obj): Likewise.
4714 (xdr_link_obj): Likewise.
4715 (xdr_table_obj): Likewise.
4716 (_xdr_nis_result): Likewise.
4717 (_xdr_ns_request): Likewise.
4718 (_xdr_ib_request): Likewise.
4719 (_xdr_nis_taglist): Likewise.
4720 (xdr_cback_data): Likewise.
8f1fe057 4721 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
4722 (xdr_ypresp_maplist): Likewise.
4723
01339a67
UD
4724 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4725
3fa10468
UD
4726 * posix/regex_internal.h: Prevent some declarations and definitions
4727 to be seen when used in tests.
4728
ec1e04de
UD
4729 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4730 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4731
7a344d1d
UD
4732 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4733
f8f6ff5d
UD
4734 * config.make.in (datarootdir): Add to shut up configure.
4735
76fca9f1
UD
4736 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4737 associativity for fully-associative caches.
4738
80e7d6a6
UD
4739 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4740 requests. Fill on more associativity values for L2.
4741 Patch mostly by Evandro Menezes.
4742
cb5ba304
UD
47432007-08-24 Ulrich Drepper <drepper@redhat.com>
4744
d250df8c
UD
4745 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4746 (_libc_vdso_platform_setup): Avoid using exported variable by using
4747 alias.
4748
88f61aaf
UD
4749 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4750
cb5ba304 4751 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 4752 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
4753 defined.
4754
62e1b1f5
UD
47552007-08-23 Ulrich Drepper <drepper@redhat.com>
4756
44b2e581
UD
4757 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4758 align stack for call if pltexit is to be used.
4759
73e3ff07
UD
4760 [BZ #3924]
4761 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4762 align for function call in case pltexit has to be called later.
4763
62e1b1f5
UD
4764 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4765 implicit atomic operation when storing function pointer.
4766 (_dl_runtime_profile): Likewise.
4767
0008163a
UD
47682007-08-17 Jakub Jelinek <jakub@redhat.com>
4769
4770 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4771 NIS_NOTFOUND.
4772
55ea8790
UD
47732007-08-21 Ulrich Drepper <drepper@redhat.com>
4774
2e0e1a05
UD
4775 [BZ #4566]
4776 * string/strtok.c: Fix typo in comment.
4777
682e4437
UD
4778 [BZ #4582]
4779 * debug/segfault.c: Fix typos in comments.
4780
7d55c9eb
UD
4781 [BZ #4588]
4782 * stdio-common/tempnam.c: Fix comment, it is not checked that
4783 TMPDIR points to a writable directory.
4784
0f8f993c
UD
4785 [BZ #4726]
4786 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4787 memory allocated for the name server address.
4788
1465dd0f
UD
4789 [BZ #4946]
4790 * nscd/connections.c (handle_request): Using sendfile always
4791 requires that mmap is used for the database.
4792 Patch by Petr Baudis <pasky@suse.cz>.
4793
c44d3bdf
UD
4794 [BZ #4905]
4795 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4796 suddenly has two or more addresses, ignore it and remove the old
4797 entry.
4798
1ce7d80d
UD
4799 [BZ #4814]
4800 * resolv/res_hconf.c: Prepare for compiling outside libc.
4801 * nscd/res_hconf.c: New file.
4802 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4803 the new file.
4804 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4805 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4806
a30d41c1
UD
4807 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4808
45dc3ad7
UD
4809 [BZ #4925]
4810 * debug/pcprofiledump.c: Turn on internationalization by calling
4811 setlocale. Patch mostly by Benno Schulenberg.
4812
55ea8790
UD
4813 [BZ #4936]
4814 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4815 the state.
4816 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4817 * iconvdata/bug-iconv5.c: New file.
4818
0b82ff74
UD
48192007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4820
55ea8790 4821 [BZ #4896]
0b82ff74
UD
4822 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4823 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4824 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4825 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4826 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4827 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4828 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4829 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4830
ee16a55a
UD
48312007-08-21 Ulrich Drepper <drepper@redhat.com>
4832
4833 [BZ #4937]
4834 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4835 lookup loop. Suggested by John Reiser.
4836
b211fe0f
JJ
48372007-08-21 Jakub Jelinek <jakub@redhat.com>
4838
4839 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4840
fb84593c
UD
48412007-08-20 Ulrich Drepper <drepper@redhat.com>
4842
4843 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4844 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4845 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4846 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4847 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4848 to...
4849 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4850
b83fb35c
UD
48512007-08-18 Ulrich Drepper <drepper@redhat.com>
4852
4853 * po/nl.po: Update from translation team.
4854
20806a70
AJ
48552007-08-16 Andreas Jaeger <aj@suse.de>
4856
4857 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 4858 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 4859
42282d57
JJ
48602007-08-17 Jakub Jelinek <jakub@redhat.com>
4861
4862 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4863
8a501135
JJ
48642007-08-16 Jakub Jelinek <jakub@redhat.com>
4865
cb84d1e4
JJ
4866 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4867 to check for undefined symbols.
4868
91ddd9c4
JJ
4869 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4870 If the syscall fails, set errno to the actual returned error number
4871 rather than EINVAL.
4872 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4873 arguments are incorrect, set errno to EINVAL, if the syscall
4874 fails, set errno to the actual returned error number.
4875
18915760
JJ
4876 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4877 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4878
8a501135
JJ
4879 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4880 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4881 file.
4882 (ASI_PNF, ASI_BLK_P): Don't define.
4883 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4884 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4885 file.
4886 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4887 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4888 file.
4889
e4720b0e
JJ
48902007-08-15 Jakub Jelinek <jakub@redhat.com>
4891
4892 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4893 FE_UNDERFLOW on Niagara CPUs.
4894
4895 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4896 exceptions.
4897
702a9414
JJ
48982007-08-14 Jakub Jelinek <jakub@redhat.com>
4899
467d1345
JJ
4900 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4901 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4902 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4903 flush should be used or not inside of the function.
4904 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4905
4906 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4907 __thread_start): Use HIDDEN_JUMPTARGET.
4908 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4909 __thread_start): Likewise.
4910 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4911
702a9414
JJ
4912 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4913 Add libc_hidden_proto.
4914 (STRTOF): Add libc_hidden_proto.
4915 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4916 (strtold_l, wcstold_l): Use them as second argument for
4917 long_double_symbol.
4918
c6c8f0ec
UD
49192007-08-14 Ulrich Drepper <drepper@redhat.com>
4920
4921 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4922
5e88abf9
UD
49232007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4924
4925 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4926
fc4819b0
UD
49272007-08-14 Ulrich Drepper <drepper@redhat.com>
4928
4929 * po/bg.po: New file. From the translation team.
4930
22502ea2
UD
49312007-08-13 Jakub Jelinek <jakub@redhat.com>
4932
4933 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4934 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4935 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4936 when each feature was introduced.
4937
4938 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4939 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4940 (CHECK_HASH): New macro.
4941 (PREPARE_VERSION): Use it.
4942
4943 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4944 prototype if not __ASSUME_PSELECT.
4945 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4946 prototype if not __ASSUME_PPOLL.
4947
4948 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4949
4950 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4951 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4952 is defined.
4953
9c6f6953
UD
49542007-08-13 Ulrich Drepper <drepper@redhat.com>
4955
4956 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4957 (_libc_vdso_platform_setup): If vDSO is not available point
4958 __vdso_gettimeofday to the vsyscall.
4959 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4960 __vdso_gettimeofday instead of vsyscall.
4961
f8de5057
UD
49622007-08-13 Jakub Jelinek <jakub@redhat.com>
4963
4964 * nscd/servicescache.c: Include kernel-features.h.
4965 * nscd/gai.c: Likewise.
4966 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4967 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4968 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4969 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4970 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4971 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4972 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4973 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4974 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4975
3c87d79d
UD
49762007-08-12 Ulrich Drepper <drepper@redhat.com>
4977
ea37207a
UD
4978 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4979 and _dl_get_origin defines anymore.
4980
4eb375fe
UD
4981 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4982 Build fix for systems which might lack POSIX timer support.
4983
3c87d79d
UD
4984 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4985 (_libc_vdso_platform_setup): Mangle function pointers before storing
4986 them.
4987 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4988 Demangle vdso pointer before use.
4989 (INTERNAL_VSYSCALL): Likewise.
4990
4991 * elf/cache.c (primes): Mark as const.
4992 Noted by Roland McGrath.
4993
27d9ffda
UD
49942007-08-01 Andreas Jaeger <aj@suse.de>
4995 Jakub Jelinek <jakub@redhat.com>
4996
4997 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4998 (options): Add option.
4999 (parse_opt): Handle option.
5000 (manual_link): Adjust process_file caller. Call implicit_soname.
5001 (search_dir): Formatting. Use and populate auxiliary cache.
5002 (main): Load and save auxiliary cache.
5003 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
5004 stat64 from fstat64 to caller.
5005 (implicit_soname): New function.
5006 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5007 leave *soname as NULL.
5008 * elf/cache.c: Include libgen.h.
5009 (print_entry, print_cache, compare, save_cache, add_to_cache):
5010 Formatting and cleanups.
5011 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5012 aux_cache_file): New structures.
5013 (AUX_CACHEMAGIC): Define.
5014 (primes): New array.
5015 (aux_hash_size, aux_hash): New variables.
5016 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5017 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5018 load_aux_cache, save_aux_cache): New functions.
5019 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5020 (init_aux_cache, search_aux_cache, add_to_aux_cache,
5021 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5022 (process_file): Adjust prototype.
5023
8d944b0f
UD
50242007-08-12 Jakub Jelinek <jakub@redhat.com>
5025
5026 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5027 with __need_size_t.
5028
75fb247e
UD
50292007-08-12 Ulrich Drepper <drepper@redhat.com>
5030
fb86328a
UD
5031 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5032 r_found_version structure as second parameter.
5033 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5034 (_dl_vdso_vsym): Change type of second parameter accordingly.
5035 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5036 (_libc_vdso_platform_setup): Adjust.
974a1f0f 5037 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
5038 (_libc_vdso_platform_setup): Likewise.
5039
75fb247e
UD
5040 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5041 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5042 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5043 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5044 * csu/libc-start.c: Pretty printing.
5045 Use VDSO_SETUP if defined.
5046 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5047 and let generic code call into _libc_vdso_platform_setup.
5048 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5049 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5050 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5051 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5052 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5053 for GLIBC_PRIVATE.
5054 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5055 (sysdep_rountines): Add dl-vdso.
5056
5057 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5058 of routines.
5059
5060 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5061 attribute_hidden to __vdso_gettimeofday prototype.
5062
9229b83e
RM
50632007-08-12 Roland McGrath <roland@redhat.com>
5064
5065 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5066 From: Karl Berry <karl@freefriends.org>.
5067
4503061f
UD
50682007-08-11 Ulrich Drepper <drepper@redhat.com>
5069
5070 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5071 an atime update for the files we read.
5072
d7e23b02
UD
50732007-08-10 Ulrich Drepper <drepper@redhat.com>
5074
7cf89e95
UD
5075 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5076
9d169bb3 5077 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
5078 instead of mkstemp.
5079
5080 * misc/Makefile (routines): Add mkostemp and mkostemp64.
5081 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5082 * misc/mkostemp.c: New file.
5083 * misc/mkostemp64.c: New file.
5084 * stdlib/stdlib.h: Declare the new functions.
5085 * sysdeps/posix/tempname.c: Add new parameter which is added to
5086 the flags for open. Remove __GT_BIGFILE handling.
5087 * stdio-common/tempname.c: Likewise.
5088 * include/stdio.h: Adjust __gen_tempname prototype.
5089 Renumber __GT_* constants.
5090 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5091 * misc/mkdtemp.c: Likewise.
5092 * misc/mkstemp.c: Likewise.
5093 * misc/mkstemp64.c: Likewise.
5094 * misc/mktemp.c: Likewise.
5095 * stdio-common/tempnam.c: Likewise.
5096 * stdio-common/tmpfile.c: Likewise.
5097 * stdio-common/tmpfile64.c: Likewise.
5098 * stdio-common/tmpnam.c: Likewise.
5099 * stdio-common/tmpnam_r.c: Likewise.
5100
22532966
RM
51012007-08-10 Roland McGrath <roland@frob.com>
5102
5103 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5104 New macros.
5105 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5106 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5107
673876e6
UD
51082007-08-10 Ulrich Drepper <drepper@redhat.com>
5109
aa132749
UD
5110 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5111 possible.
5112 * nss/nss_files/files-alias.c (internal_setent): Likewise.
5113 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5114 * nss/nss_files/files-have_o_cloexec.c: New file.
5115
22532966 5116 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
5117 available.
5118
1e286653
JJ
51192007-08-10 Jakub Jelinek <jakub@redhat.com>
5120
5121 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5122 ___new_wcstold_l): New weak aliases.
5123 (strtold_l, wcstold_l): Use them as second argument for
5124 long_double_symbol.
5125
f07f72f3
UD
51262007-08-09 Ulrich Drepper <drepper@redhat.com>
5127
6479496a
UD
5128 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5129 register in test for error.
5130
c4adefbd
UD
5131 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5132 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5133
f07f72f3
UD
5134 * po/sv.po: Update from translation team.
5135
eef38c28
RM
51362007-08-06 Roland McGrath <roland@redhat.com>
5137
773e305e
RM
5138 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5139 Remove __strto*_l inlines.
5140 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5141 * stdlib/strtod.c: Add libc_hidden_def.
5142 * stdlib/strtod_l.c: Likewise.
5143 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5144 for __new_strtold and __new_wcstold.
5145 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5146 __STRTOF, STRTOF.
5147 * stdlib/strtol.c: Add libc_hidden_def.
5148 * stdlib/strtol_l.c: Likewise.
5149 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5150 strtoq.
5151
5152 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5153
5154 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5155 * scripts/data/localplt-generic.data: ... here.
5156 * elf/Makefile (check-data): Get generic file if no other.
5157 ($(objpfx)check-localplt.out): Make target unconditional.
5158
eef38c28
RM
5159 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5160 Use ElfW(Nhdr).
5161
742df3a4
UD
51622007-08-05 Ulrich Drepper <drepper@redhat.com>
5163
5164 * po/zh_CN.po: Updated translation from translation team.
5165
0470fa46
JJ
51662007-08-05 Jakub Jelinek <jakub@redhat.com>
5167
5168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5169 Don't use CGOTSETUP and CGOTRESTORE macros.
5170
b5075bdc
RM
51712007-08-04 Roland McGrath <roland@redhat.com>
5172
5173 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5174
9accc268
JJ
51752007-08-04 Jakub Jelinek <jakub@redhat.com>
5176
5177 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5178 __extension__ around the whole statement expression.
5179
220ae3ef
UD
51802007-08-04 Ulrich Drepper <drepper@redhat.com>
5181
c8ccd8e3
UD
5182 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5183 elements during initialization.
5184
220ae3ef
UD
5185 * po/pl.po: Updated translation from translation team.
5186 * po/tr.po: Likewise.
11960f7f 5187 * po/nl.po: Likewise.
220ae3ef 5188
2fb20667
UD
51892007-08-03 Ulrich Drepper <drepper@redhat.com>
5190
5191 * rt/aio.h: Add __nonnull attributes.
5192
ce31a3b1
UD
51932007-08-03 Jakub Jelinek <jakub@redhat.com>
5194
64f6281c
UD
5195 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5196 * stdlib/Makefile (tests): Add tst-strtod5.
5197 (tst-strtod5-ENV): New.
5198 * stdlib/tst-strtod5.c: New file.
5199
ce31a3b1
UD
5200 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5201 failed.
5202 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5203 on failure.
5204
5205 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5206 allocated.
5207
754980e4
JJ
52082007-08-03 Jakub Jelinek <jakub@redhat.com>
5209
5210 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5211 numbers.
5212
497af0cb
UD
52132007-08-02 Ulrich Drepper <drepper@redhat.com>
5214
cbf0489b
UD
5215 * io/Makefile (aux): Add have_o_cloexec.
5216 * include/fcntl.h: Declare __have_o_cloexec.
5217 * io/have_o_cloexec.c: New file.
5218 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5219 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5220 fcntl call if not necessary.
5221 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5222 of local variable.
5223
fa39685d
UD
5224 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5225 Avoid memset, add explicit initialization.
5226 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5227 to the end and change into zero-sized array.
5228 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
5229
5230 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5231 inline functions.
5232 * include/stdlib.h: Add __strto*_internal prototypes here.
5233 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5234 inline functions.
5235 * include/wchar.h: Add __wcsto*_internal prototypes.
5236 * sysdeps/generic/inttypes.h: No need to protect the declaration
5237 of the __strto*_internal and __wcsto*_internal members here.
5238
497af0cb
UD
5239 * rt/mqueue.h: Change const to __const and add nonnull attributes.
5240
d17a8cf0
RM
52412007-08-02 Roland McGrath <roland@redhat.com>
5242
5243 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5244 $(inst_bindir)/getconf if possible.
5245
5246 * posix/Makefile ($(objpfx)getconf.speclist): New target.
5247 (generated): Add it.
5248 ($(inst_libexecdir)/getconf): Use it.
5249
0abf17de
UD
52502007-08-01 Ulrich Drepper <drepper@redhat.com>
5251
5252 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5253 /proc is faster and sufficient. /sys is still needed for
5254 __get_nprocs_conf.
5255
5e0923ab
UD
52562007-08-01 Jakub Jelinek <jakub@redhat.com>
5257
5258 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5259 syscall as __fallocate64.
5260 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5261 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5262
1475e201
UD
52632007-07-30 Jakub Jelinek <jakub@redhat.com>
5264
5265 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5266 value.
5267
5268 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5269 if off_t is different rank from size_t.
5270
5271 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5272 uw_frame_state_for): Avoid type punning warnings.
5273 * sysdeps/generic/unwind-dw2-fde-glibc.c
5274 (_Unwind_IteratePhdrCallback): Likewise.
5275 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5276 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5277 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5278 pointers.
5279
e076bece
UD
52802007-07-31 Ulrich Drepper <drepper@redhat.com>
5281
9506149a
UD
5282 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5283 total processors using sysfs.
5284 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 5285
bbeaaa84
JJ
52862007-07-31 Jakub Jelinek <jakub@redhat.com>
5287
09881398
JJ
5288 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5289 syscall arguments count.
5290
bbeaaa84
JJ
5291 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5292
087ef75f
RM
52932007-07-30 Roland McGrath <roland@redhat.com>
5294
5295 * manual/libc.texinfo: Update copyrights, formatting magic, and
5296 @dircategory. From Karl Berry <karl@freefriends.org>.
5297
44f08a6e
UD
52982007-07-29 Ulrich Drepper <drepper@redhat.com>
5299
eafaae72
UD
5300 [BZ #4860]
5301 * io/Makefile (headers): Add bits/fcntl2.h.
5302
c5705565
UD
5303 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5304 using gcc builtin.
5305 (__CPU_EQUAL_S): Likewise.
5306
44f08a6e
UD
5307 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5308 (tests): Add tst-cpuset.
5309 * posix/sched_cpualloc.c: New file.
5310 * posix/sched_cpufree.c: New file.
5311 * posix/tst-cpuset.c: New file.
5312 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5313 GLIBC_2.7.
5314 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5315 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5316 macros. Define CPU_*_S macros.
5317
8f5e1400
UD
53182007-07-28 Ulrich Drepper <drepper@redhat.com>
5319
5b74caf6
UD
5320 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5321 entry.
5322
a26d01bb 5323 [BZ #4858]
8f5e1400
UD
5324 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5325 #.0g and value rounded to 1.0.
5326 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5327
085a4412
UD
53282007-07-26 Jakub Jelinek <jakub@redhat.com>
5329
cedb4109
UD
5330 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5331 for int_frac_digits and frac_digits.
5332
5333 * login/logout.c (logout): Avoid aliasing violation.
5334 * login/logwtmp.c (logwtmp): Likewise.
5335
5336 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5337
9d9febc7
UD
5338 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5339 to avoid warning.
5340 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5341 warning.
5342 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5343 warning.
5344 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5345 to avoid warnings.
5346
701666b7
UD
5347 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5348 void **.
5349 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5350
5351 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5352 char * to avoid warning.
5353 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5354
5355 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5356
5357 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5358 allocate_arrays): Cast second argument to charmap_find_symbol
5359 to char * to avoid warnings.
5360
5361 * locale/programs/repertoire.c (repertoire_new_char): Change
5362 from_nr, to_nr and cnt to unsigned long, adjust printf format
5363 string.
5364
5365 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5366 Cast second argument to new_element to char * to avoid warnings.
5367
5368 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5369
5370 * intl/gettextP.h (struct loaded_domain): Change plural to const
5371 struct expression *.
5372 * intl/plural-eval.c (plural_eval): Change first argument to
5373 const struct expression *.
5374 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5375 argument to const struct expression **.
5376 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5377 prototypes.
5378 * intl/loadmsgcat (_nl_unload_domain): Cast away const
5379 in call to __gettext_free_exp.
5380
5381 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5382 unitialized wstring/wpattern var warnings.
5383
5384 * posix/runtests.c (struct a_test): Make data field const char *.
5385
5386 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5387 vars if not LDBL_MANT_DIG >= 106.
5388
5389 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5390
5391 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5392 __find_specmb to avoid warning.
5393
5394 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5395
5396 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5397 to avoid warnings.
5398
5399 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5400 initializer.
5401
5402 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5403 tv var when it will be actually used.
5404
5405 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5406 to avoid warnings.
5407
085a4412
UD
5408 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5409 char array resp. pointer.
5410 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5411 char array.
5412 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5413 to const unsigned char **.
5414 (ucs4_to_cns11643): Change second argument to unsigned char *.
5415 * iconvdata/euc-tw.c (BODY): Change endp type to
5416 const unsigned char *.
5417 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5418 to unsigned char *.
5419 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5420 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5421 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5422 types to unsigned char pointers/arrays instead of char.
5423 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5424 to unsigned char *.
5425 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5426 * iconvdata/jis0212.h: Include assert.h.
5427 (ucs4_to_jisx0212): Change second argument to unsigned char *.
5428 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5429 of trying to handle that.
5430 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5431 shut up a warning.
5432 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5433 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5434 two dimensional const unsigned char arrays.
5435 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5436 Initialize endp to inptr to shut up a warning.
5437
fa69dc9c
UD
54382007-07-20 Jakub Jelinek <jakub@redhat.com>
5439
ae1ad762
UD
5440 [BZ #4772]
5441 * time/strptime_l.c (__strptime_internal): Silently ignore
5442 strftime modifiers and field width in recursive calls.
5443
fa69dc9c
UD
5444 * include/time.h (enum ptime_locale_status): Remove.
5445 (__strptime_internal): Remove decided and era_cnt arguments,
5446 add statep argument.
5447 * time/strptime_l.c (__strptime_internal): Remove decided
5448 and era_cnt arguments, add statep argument. Don't recompute
5449 any fields in recursive calls, only update caller's tm
5450 and state, if recursive call fails, don't change tm nor
5451 any state.
5452 (get_alt_number): Adjust.
5453 (recursive): Adjust caller.
5454 (strptime): Likewise.
5455 * time/strptime.c (strptime): Likewise.
5456
7b503bcc
UD
54572007-07-19 Jakub Jelinek <jakub@redhat.com>
5458
5459 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5460 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5461 if from and to charsets are the same.
5462 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5463 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5464 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5465
54662007-07-17 Jakub Jelinek <jakub@redhat.com>
5467
5468 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5469 Don't define wint_t when __need_mbstate_t unless it
5470 is necessary.
5471 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5472 in the typedef if possible.
5473 * wctype/wctype.h (wint_t): Define by including
5474 wchar.h with __need_wint_t instead of including stddef.h
5475 with __need_wint_t and as fallback definining it ourselves.
5476 * iconv/gconv.h (__need_wint_t): Define before including
5477 wchar.h.
5478 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5479 or _GLIBCPP_USE_WCHAR_T.
5480 (__need_wchar_t): Don't define
5481 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5482 (__need_wint_t): Don't define before including stddef.h,
5483 define before including wchar.h only if _LIBC or
5484 _GLIBCPP_USE_WCHAR_T.
5485 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5486 * sysdeps/mach/hurd/_G_config.h: Likewise.
5487 * sysdeps/generic/_G_config.h: Likewise.
5488 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5489 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5490 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5491 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5492
a95a608f
UD
54932007-07-28 Ulrich Drepper <drepper@redhat.com>
5494
5495 * sysdeps/posix/posix_fallocate64.c: Undefine
5496 __posix_fallocate64_l64 before alias handling.
5497 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5498 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5499 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5500 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5501
5502 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5503
55042007-07-23 Jakub Jelinek <jakub@redhat.com>
5505
5506 * locale/programs/ld-collate.c (atwc): New variable.
5507 (add_to_tablewc): New toplevel function, moved from collate_output.
5508 (collate_output): Remove add_to_tablewc nested function.
5509
5510 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5511 (name_insert): New function.
5512 (write_output): Remove hash_table and hash_size vars and name_insert
5513 nested function.
5514
80d4c3b0
RM
55152007-07-24 Roland McGrath <roland@redhat.com>
5516
5517 * Makerules (install-others-programs-nosubdir): New target.
5518 (install-no-libc.a-nosubdir): Depend on it.
5519
5520 * iconv/Makefile (install-others-programs): Set this instead of
5521 install-others.
5522 * login/Makefile (install-others-programs): Likewise.
5523 * posix/Makefile (install-others-programs): Likewise.
5524
5525 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5526 dependencies.
5527
c1bf9f14
UD
55282007-07-23 Ulrich Drepper <drepper@redhat.com>
5529
5530 * io/Makefile (tests): Add tst-posix_fallocate.
5531 * io/tst-posix_fallocate.c: New file.
5532
5533 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5534 __ASSUME_FALLOCATE.
5535
2320270c
RM
55362007-07-22 Roland McGrath <roland@frob.com>
5537
3dadfa7e
RM
5538 * hurd/getdport.c: Add missing copyright year update.
5539
2320270c
RM
5540 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5541 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5542
cc783763
UD
55432007-07-22 Ulrich Drepper <drepper@redhat.com>
5544
c942388d
UD
5545 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5546
cc783763
UD
5547 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5548 O_CLOEXEC is needed.
5549 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5550 Avoid additional fcntl to set O_CLOEXEC if not needed.
5551 * nis/nss_compat/compat-initgroups.c: Likewise.
5552 * nis/nss_compat/compat-pwd.c: Likewise.
5553 * nis/nss_compat/compat-spwd.c: Likewise.
5554
610903b0
RM
55552007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5556
3dadfa7e 5557 [BZ #3665]
5c3d7832
RM
5558 * manual/errno.texi: Change ECANCELED value to 119.
5559
3dadfa7e 5560 [BZ #4610]
610903b0
RM
5561 * mach/lock-intern.h: Include <sys/cdefs.h>.
5562
3dadfa7e 5563 [BZ #4178]
610903b0
RM
5564 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5565 reading A.
5566
3dadfa7e
RM
5567 [BZ #4126]
5568 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5569 to __sigsuspend.
610903b0
RM
5570
5571 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5572
55732006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5574
5575 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5576 `__ASSEMBLER__'.
5577 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5578
acf79996
UD
55792007-07-21 Ulrich Drepper <drepper@redhat.com>
5580
dde0763a
UD
5581 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5582 descriptor received from nscd.
5583
acf79996
UD
5584 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5585
5586 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5587 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5588 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5589 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5590 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5591 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5592
00d26929
JJ
55932007-07-20 Jakub Jelinek <jakub@redhat.com>
5594
403445d7
JJ
5595 [BZ #4816]
5596 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5597
00d26929
JJ
5598 [BZ #4813]
5599 * login/forkpty.c (forkpty): Close master and slave fds on
5600 fork failure. Patch by
5601 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5602
087722b8
UD
56032007-07-18 Jakub Jelinek <jakub@redhat.com>
5604
5605 * include/features.h (__USE_ISOC95): New define.
5606 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5607 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5608 for -std=iso9899:199409.
5609 * CONFORMANCE: Remove comments about unsupported AMD1.
5610
b042b023
UD
56112007-07-17 Jakub Jelinek <jakub@redhat.com>
5612
5613 * sysdeps/ia64/sched_cpucount.c: New file.
5614 * sysdeps/powerpc/sched_cpucount.c: New file.
5615
8381e467
UD
5616 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5617 __BEGIN_DECLS/__END_DECLS around the prototype.
5618 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5619 pointer to const cpu_set_t.
5620
50e16f85
UD
5621 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5622 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5623 __need_size_t and include stddef.h.
5624 * sysvipc/sys/msg.h: Likewise.
5625 * posix/sched.h: Likewise.
5626 * hurd/hurd/signal.h (__need_size_t): Define.
5627
5628 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5629 neither does signal.h in pedantic ISO C namespaces. stdio.h
5630 no longer defines wint_t or wchar_t.
5631
b257c726
UD
5632 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5633 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5634 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5635 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5636 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5637 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5638 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5639 * debug/printf_chk.c (__printf_chk): Likewise.
5640 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5641 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5642
5643 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5644 Define.
5645
d5078b9f
UD
5646 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5647 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5648
1c3e748e
UD
56492007-07-16 Jakub Jelinek <jakub@redhat.com>
5650
5651 [BZ #4792]
5652 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5653 * malloc/malloc.h (realloc): Likewise.
5654
4e425301
UD
5655 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5656 if one of proc_file_chain streams has that fileno.
5657 * stdio-common/Makefile (tests): Add tst-popen2.
5658 * stdio-common/tst-popen2.c: New test.
5659
2e2efe65
RM
56602007-07-14 Jakub Jelinek <jakub@redhat.com>
5661
5662 * elf/ldconfig.c: Allow GPLv2 or any later version.
5663 * elf/readlib.c: Likewise.
5664 * elf/chroot_canon.c: Likewise.
5665 * elf/cache.c: Likewise.
5666 * nscd/mem.c: Likewise.
5667 * nscd/getpwuid_r.c: Likewise.
5668 * nscd/grpcache.c: Likewise.
5669 * nscd/aicache.c: Likewise.
5670 * nscd/getsrvbynm_r.c: Likewise.
5671 * nscd/nscd.c: Likewise.
5672 * nscd/servicescache.c: Likewise.
5673 * nscd/getsrvbypt_r.c: Likewise.
5674 * nscd/initgrcache.c: Likewise.
5675 * nscd/gethstbyad_r.c: Likewise.
5676 * nscd/gethstbynm2_r.c: Likewise.
5677 * nscd/getgrnam_r.c: Likewise.
5678 * nscd/nscd_setup_thread.c: Likewise.
5679 * nscd/getpwnam_r.c: Likewise.
5680 * nscd/gai.c: Likewise.
5681 * nscd/connections.c: Likewise.
5682 * nscd/dbg_log.c: Likewise.
5683 * nscd/cache.c: Likewise.
5684 * nscd/hstcache.c: Likewise.
5685 * nscd/nscd_conf.c: Likewise.
5686 * nscd/getgrgid_r.c: Likewise.
5687 * nscd/pwdcache.c: Likewise.
5688 * catgets/gencat.c: Likewise.
5689 * locale/programs/linereader.h: Likewise.
5690 * locale/programs/locarchive.c: Likewise.
5691 * locale/programs/ld-paper.c: Likewise.
5692 * locale/programs/locfile-kw.h: Likewise.
5693 * locale/programs/ld-address.c: Likewise.
5694 * locale/programs/xmalloc.c: Likewise.
5695 * locale/programs/ld-time.c: Likewise.
5696 * locale/programs/localedef.c: Likewise.
5697 * locale/programs/simple-hash.c: Likewise.
5698 * locale/programs/xstrdup.c: Likewise.
5699 * locale/programs/ld-numeric.c: Likewise.
5700 * locale/programs/locfile-kw.gperf: Likewise.
5701 * locale/programs/ld-collate.c: Likewise.
5702 * locale/programs/charmap-kw.gperf: Likewise.
5703 * locale/programs/charmap.h: Likewise.
5704 * locale/programs/charmap-kw.h: Likewise.
5705 * locale/programs/config.h: Likewise.
5706 * locale/programs/locfile.c: Likewise.
5707 * locale/programs/ld-ctype.c: Likewise.
5708 * locale/programs/charmap.c: Likewise.
5709 * locale/programs/ld-messages.c: Likewise.
5710 * locale/programs/repertoire.h: Likewise.
5711 * locale/programs/locale.c: Likewise.
5712 * locale/programs/ld-name.c: Likewise.
5713 * locale/programs/linereader.c: Likewise.
5714 * locale/programs/locfile.h: Likewise.
5715 * locale/programs/3level.h: Likewise.
5716 * locale/programs/ld-monetary.c: Likewise.
5717 * locale/programs/ld-measurement.c: Likewise.
5718 * locale/programs/charmap-dir.c: Likewise.
5719 * locale/programs/ld-identification.c: Likewise.
5720 * locale/programs/localedef.h: Likewise.
5721 * locale/programs/charmap-dir.h: Likewise.
5722 * locale/programs/repertoire.c: Likewise.
5723 * locale/programs/simple-hash.h: Likewise.
5724 * locale/programs/ld-telephone.c: Likewise.
5725 * locale/programs/locale-spec.c: Likewise.
5726 * locale/programs/locfile-token.h: Likewise.
5727 * posix/getconf.c: Likewise.
5728 * iconv/dummy-repertoire.c: Likewise.
5729 * iconv/iconv_charmap.c: Likewise.
5730 * iconv/iconvconfig.c: Likewise.
5731 * iconv/iconv_prog.c: Likewise.
5732 * malloc/memusagestat.c: Likewise.
5733 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5734
84c23a3d
RM
57352007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5736
5737 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5738 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5739 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5740 check for the first argument.
5741
1c298d08
UD
57422007-07-12 Jakub Jelinek <jakub@redhat.com>
5743
5744 [BZ #4775]
5745 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5746 (__tgmath_real_type): Fix if expr is const int or other const
5747 qualified integral type.
5748 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5749 expressions and handle const qualified arguments.
5750 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5751 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5752 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5753 statement expressions.
5754 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5755 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5756 (__TGMATH_UNARY_IMAG): Define.
5757 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5758 * math/Makefile (tests): Add test-tgmath2.
5759 (CFLAGS-test-tgmath2.c): Add.
5760 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5761 count_cfloat, count_cldouble): New variables.
5762 (NCCALLS): Define.
5763 (main): Check number of complex calls as well.
5764 (F(compile_test)): Add complex tests and tests with const qualified
5765 arguments.
5766 (y, z, ccount): Define.
5767 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5768 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5769 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5770 F(cproj)): New functions.
5771 * math/test-tgmath2.c: New test.
5772
57732007-07-11 Jakub Jelinek <jakub@redhat.com>
5774
5775 [BZ #4776]
5776 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5777 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5778 instead output ".".
5779 * dlfcn/Makefile (distribute): Add glreflib3.c.
5780 (module-names): Add glreflib3.
5781 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5782 glreflib1.so.
5783 (LDFLAGS_glreflib3.so): New.
5784 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5785 glreflib1.so.
5786 * dlfcn/glreflib3.c: New file.
5787
5788 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5789 returned -1, return NULL.
5790 * intl/explodename.c (_nl_explode_name): Return -1 if
5791 _nl_normalize_codeset failed.
5792
a88f47a7
UD
57932007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5794
5795 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5796 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5797 and avoid branch misspredicts for > 31 bytes memset case.
5798 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5799 Remove toc ref to __cache_line_size.
5800
5801 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5802 to get ISA-V2.0 branch hints.
5803 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5804 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5805 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5806 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5807 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5808 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5809 Remove toc ref to __cache_line_size.
5810
5811 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5812 Include math_ldbl_opt.h.
5813
f98c2d06
UD
58142007-07-10 Ulrich Drepper <drepper@redhat.com>
5815
5816 [BZ #4773]
5817 * time/strptime_l.c (__strptime_internal): Implement greedy
5818 matching of weekday and month names.
5819
cec5991f
RM
58202007-07-09 Roland McGrath <roland@redhat.com>
5821
5822 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5823 (ELF_NOTE_ABI): Use it.
5824 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5825
8c1dcd26
UD
58262007-07-09 Ulrich Drepper <drepper@redhat.com>
5827
5828 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5829 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5830
c2c7bd3f
UD
58312007-07-07 Ulrich Drepper <drepper@redhat.com>
5832
5833 [BZ #4745]
0923a2c8
UD
5834 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5835 in loop to look for conversion specifier to avoid testing of
5836 wrong errno value.
5837 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 5838 * stdio-common/bug18.c: New file.
0923a2c8
UD
5839 * stdio-common/bug18a.c: New file.
5840 * stdio-common/bug19.c: New file.
5841 * stdio-common/bug19a.c: New file.
c2c7bd3f 5842
4facf4af
RM
58432007-07-05 Mike Frysinger <vapier@gentoo.org>
5844
5845 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5846 running awk script.
5847
1311e86e
UD
58482007-07-01 Jakub Jelinek <jakub@redhat.com>
5849
5850 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5851 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5852 Return NULL if mmap failed instead of asserting it does not.
5853 (calloc): Check for integer overflow.
5854
5855 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5856 than LONG_MAX / 10.
5857
57c9179c
UD
58582007-07-03 Jakub Jelinek <jakub@redhat.com>
5859
5860 [BZ #4702]
5861 * nis/nss-default.c: Include errno.h.
5862 (init): Preserve errno.
5863
d0b283a8
UD
58642007-07-02 Ulrich Drepper <drepper@redhat.com>
5865
5866 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5867
34e0bbaf
UD
58682007-06-30 Ulrich Drepper <drepper@redhat.com>
5869
5870 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5871
58722007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5873
5874 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5875
34e0bbaf 58762007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
5877
5878 * sysdeps/s390/dl-procinfo.c: New file.
5879 * sysdeps/s390/dl-procinfo.h: New file.
5880 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5881
0e508a6e
UD
58822007-06-29 Jakub Jelinek <jakub@redhat.com>
5883
5884 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5885 in PT_NOTE segments with multiple notes.
5886 * elf/readelflib.c (process_elf_file): Likewise.
5887
e22c61fb
UD
58882007-06-22 Ulrich Drepper <drepper@redhat.com>
5889
5890 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5891 ISO C compliant.
5892
e4eb675d
UD
58932007-06-19 Ulrich Drepper <drepper@redhat.com>
5894
5895 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5896
58972007-06-13 Jakub Jelinek <jakub@redhat.com>
5898
5899 * include/link.h: Don't include rtld-lowlevel.h.
5900 (struct link_map): Remove l_scope_lock.
5901 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5902 (_dl_scope_free_list): New field (variable) in _rtld_global.
5903 (DL_LOOKUP_SCOPE_LOCK): Remove.
5904 (_dl_scope_free): New prototype.
5905 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5906 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5907 (_dl_profile_fixup): Likewise.
5908 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5909 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5910 THREAD_GSCOPE_RESET_FLAG around it.
5911 * elf/dl-close.c (_dl_close_worker): Don't use
5912 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5913 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5914 scopes were queued or if l_scope_mem has been abandoned.
5915 * elf/dl-open.c (_dl_scope_free): New function.
5916 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5917 * elf/dl-support.c (_dl_scope_free_list): New variable.
5918 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5919 Remove DL_LOOKUP_SCOPE_LOCK handling.
5920 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5921 handling.
5922 * elf/dl-object.c (_dl_new_object): Don't use
5923 __rtld_mrlock_initialize.
5924
9be09e06
UD
59252007-06-19 Ulrich Drepper <drepper@redhat.com>
5926
5927 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5928 to fill in holes
5929 (rtld_global_ro): Likewise.
5930
59312007-06-18 Jakub Jelinek <jakub@redhat.com>
5932
5933 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5934 Move PT_LOAD checking to...
5935 (_dl_addr_inside_object): ... here, new function.
5936 * elf/dl-sym.c (do_sym): If not l_contiguous,
5937 call _dl_addr_inside_object.
5938 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5939 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5940 * elf/dl-open.c (dl_open_worker): Likewise.
5941 (_dl_addr_inside_object): New function if IS_IN_rtld.
5942 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5943 holes are present or are PROT_NONE protected.
5944 * include/link.h (struct link_map): Add l_contiguous field.
5945 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5946
ae1ad3ae 59472007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
5948 Tomas Janousek <tjanouse@redhat.com>
5949 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
5950
5951 [BZ #4647]
5952 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5953 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5954 socket.
5955 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5956 unused member a bitmap.
5957 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5958 servers are configured.
5959
3abee0b7
UD
59602007-06-18 Jakub Jelinek <jakub@redhat.com>
5961
5962 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5963
89074592
UD
59642007-06-17 Andreas Schwab <schwab@suse.de>
5965
5966 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5967
b26e274d
AJ
59682007-06-16 Andreas Jaeger <aj@suse.de>
5969
5970 [BZ #4125]
5971 * sysdeps/unix/sysv/linux/sys/ptrace.h
5972 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5973 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 5974 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
5975 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5976 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5977 Define.
5978 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5979 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5980 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5981 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5982
e0d4a4e5
UD
59832007-06-16 Ulrich Drepper <drepper@redhat.com>
5984
5985 [BZ #4599]
5986 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5987 determining whether there are IPv4/IPv6 addresses, ignore loopback
5988 addresses.
5989
ae8e81f5
JJ
59902007-06-14 Uros Bizjak <ubizjak@gmail.com>
5991
5992 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5993 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5994 as the return type. Change type of "r" variable to CMPtype.
5995 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5996 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5997 * soft-fp/gedf2.c (__gedf2): Likewise.
5998 * soft-fp/gesf2.c (__gesf2): Likewise.
5999 * soft-fp/getf2.c (__getf2): Likewise.
6000 * soft-fp/ledf2.c (__ledf2): Likewise.
6001 * soft-fp/lesf2.c (__lesf2): Likewise.
6002 * soft-fp/letf2.c (__letf2): Likewise.
6003 * soft-fp/unorddf2 (__unorddf2): Likewise.
6004 * soft-fp/unordsf2 (__unordsf2): Likewise.
6005 * soft-fp/unordtf2 (__unordtf2): Likewise.
6006
90cd2413
UD
60072007-06-09 Ulrich Drepper <drepper@redhat.com>
6008
6009 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6010 make sure gcc doesn't mess around with this.
6011
3c457089
UD
60122007-06-08 Ulrich Drepper <drepper@redhat.com>
6013
6014 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6015
e8b6b64d
UD
60162007-06-08 Jakub Jelinek <jakub@redhat.com>
6017
6018 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6019 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6020 at most once per _dl_close_worker.
6021
36dffb22
UD
60222007-06-08 Ulrich Drepper <drepper@redhat.com>
6023
755db8c5
UD
6024 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6025 __sched_cpucount as const.
6026 * posix/sched_cpucount.c: Adjust.
6027
36dffb22
UD
6028 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6029 instruction for counting bits.
6030 * sysdeps/x86_64/sched_cpucount.c: New file.
6031
26f56c1c
UD
60322007-06-07 Ulrich Drepper <drepper@redhat.com>
6033
6034 * configure.in: Avoid variable named BASH.
e967d385 6035 * config.make.in: Likewise.
26f56c1c 6036 Patch in part by Mike Frysinger.
835abc5c 6037
26f56c1c 60382007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
6039
6040 [BZ #4586]
835abc5c
UD
6041 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6042 pseudo-zeros as zero.
6043 * sysdeps/x86_64/ldbl2mpn.c: New file.
6044 * sysdeps/ia64/ldbl2mpn.c: New file.
6045
7e3706ea
UD
60462007-06-04 Jakub Jelinek <jakub@redhat.com>
6047
6048 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6049 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6050 Remove unreachable code at the end.
6051
60522007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
6053
6054 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6055 ldbl-128ibm in comment.
6056 (fpclassifyl): Correct classification of denormals.
6057 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6058 return value for MIN denormal. Rewrite using long double math too
6059 correctly handle denormals and canonicalize the results.
6060
60612007-06-05 Jakub Jelinek <jakub@redhat.com>
6062
6063 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6064 (__mpn_construct_long_double): Fix conversion where result ought
6065 to be smaller than __LDBL_MIN__, or the low double should be
6066 denormal. Fix decision where to negate low double - honor round
6067 to even rules.
6068 * stdio-common/tst-sprintf2.c: Include string.h.
6069 (COMPARE_LDBL): Define.
6070 (TEST): Also test whether a string hexadecimal float representation
6071 can be parsed back to the number.
6072 (main): Add a couple of further tests.
6073
43b76828
UD
60742007-06-04 Jakub Jelinek <jakub@redhat.com>
6075
6076 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6077 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6078 is non-zero, but smaller than 2 * __DBL_MIN__.
6079 * stdio-common/tst-sprintf2.c: New test.
6080 * stdio-common/Makefile (tests): Add tst-sprintf2.
6081
6082 * math/test-misc.c (main): Don't run last batch of tests with
6083 IBM long double format.
6084
04067002
UD
60852007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6086
6087 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6088 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6089 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6090 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6091 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6092 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6093 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6094 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6095 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6096 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6098 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6099 New file.
6100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6101 New file.
6102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6103 New file.
6104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6105 New file.
6106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6107 New file.
6108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6110 New file.
6111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6112 New file.
6113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6114 New file.
6115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6116 New file.
6117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6118 New file.
6119
61202007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6121
6122 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6123 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6124 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6125 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6126 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6127 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6128 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6129 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6130
61312007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
6132
6133 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6134 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6135 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6136 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6137 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6138 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6139 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6140 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6141
61422007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
6143
6144 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6145 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6146 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6147 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6148
61492007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
6150
6151 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6152 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6153
61542006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
6155
6156 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6157 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6158 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6159 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6160
61612006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
6162
6163 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6164 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6165
61662006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
6167
6168 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6169 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6170
6171 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6172 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6173 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6174 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6175
61762006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
6177
6178 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6179 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6180 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6181 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6182
61832006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
6184
6185 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6186 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6187 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6188 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6189 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6190 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6191
61922006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6193
6194 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6195 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6196 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6197 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6198
61992006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6200
6201 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6202 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6203 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6204 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6205 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6206 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6207 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6208 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6209 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6210 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6211 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6212 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6213 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6214 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6215 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6216 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6217
62182006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6219
6220 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6221 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6222
62232007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
6224
6225 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6226 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6227
62282007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6229
6230 * sysdeps/powerpc/powerpc32/970/Implies: New file.
6231 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6232 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6233 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6234 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6235 * sysdeps/powerpc/powerpc64/970/Implies: New file.
6236 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6237 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6238 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6239 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6240
62412007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
6242
6243 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6244
62452007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
6246
6247 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6248 branch miss-predicts. Ensure that cache line crossing does not impact
6249 dispatch grouping.
6250
62512006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
6252
6253 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6254 "../../powerpc32/power4/memcopy.h".
6255 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6256 "../../powerpc32/power4/wordcopy.c".
6257
62582006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
6259
6260 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6261 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6262 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6263 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6264 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6265 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6266
62672006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
6268
6269 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6270
62712006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6272
6273 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6274 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6275 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6276 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6277 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6278 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6279 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6280 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6281
62822006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
6283
6284 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6285
62862006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6287
6288 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6289 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6290 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6291 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6292 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6293 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6294 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6295
5b55e1d3
RM
62962007-05-29 Roland McGrath <roland@redhat.com>
6297
6298 * po/Makefile (po-sed-cmd): New variable.
6299 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6300
5da4373c
UD
63012007-05-29 Ulrich Drepper <drepper@redhat.com>
6302
4b5e7304
UD
6303 * crypt/md5-crypt.c: Fix comment.
6304
5da4373c
UD
6305 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6306 of crashing. When this is the case or if the reply is malformed,
6307 don't try to close the new file descriptor since it does not
6308 exist.
6309 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6310
40f57573
UD
63112007-05-28 Jakub Jelinek <jakub@redhat.com>
6312
6313 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6314 if __NR_utimensat is not defined.
6315
6df7ffad
UD
63162007-05-26 Ulrich Drepper <drepper@redhat.com>
6317
6318 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6319
47ad95ab
UD
63202007-05-25 Jakub Jelinek <jakub@redhat.com>
6321
6322 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6323 (open): Fix comment typos. Don't call __open_2 if flags
6324 is a compile time constant without O_CREAT.
6325 (__open64_2): Add nonnull attribute.
6326 (open64): Fix comment typos. Don't call __open64_2 if flags
6327 is a compile time constant without O_CREAT.
6328 (__openat_2): Add nonnull attribute, fix nonnull attribute
6329 on redirect.
6330 (openat): Fix comment typos. Don't call __openat_2 if flags
6331 is a compile time constant without O_CREAT.
6332 (__openat64_2): Add nonnull attribute, fix nonnull attribute
6333 on redirect.
6334 (openat64): Fix comment typos. Don't call __openat64_2 if flags
6335 is a compile time constant without O_CREAT.
6336
ddfd0535
UD
63372007-05-24 Ulrich Drepper <drepper@redhat.com>
6338
6339 * Makerules (sysd-rules): Define PTW for ptw-* files.
6340 * Versions: Define GLIBC_2.7 for libc.
6341 * include/stdio.h: Declare __fortify_fail.
6342 * debug/fortify_fail.c: New file.
6343 * debug/Makefile (routines): Add fortify_fail.
6344 * debug/chk_fail.c: Use __fortify_fail.
6345 * debug/stack_chk_fail.c: Likewise.
6346 * io/Versions: Export __open_2, __open64_2, __openat_2, and
6347 __openat64_2 for GLIBC_2.7.
6348 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6349 * io/open.c: Define *_2 variant of function which checks for O_CREAT
6350 and fails if necessary.
6351 * io/open64.c: Likewise.
6352 * io/openat.c: Likewise.
6353 * io/openat64.c: Likewise.
6354 * sysdeps/unix/sysv/linux/open64.c: Likewise.
6355 * sysdeps/unix/sysv/linux/openat.c: Likewise.
6356 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6357 * io/bits/fcntl2.h: New file.
6358 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6359 __openat64_2.
6360 * include/bits/fcntl2.h: New file.
6361 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6362 Add open_2.
6363 * sysdeps/unix/sysv/linux/open_2.c: New file.
6364
bfe6f5fa
UD
63652007-05-21 Ulrich Drepper <drepper@redhat.com>
6366
6d59823c
UD
6367 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6368 as second parameter to handle_intel.
6369
e2b1e343
UD
6370 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6371 the entry.
6372
bfe6f5fa
UD
6373 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6374 handling to ...
6375 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
6376 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6377 cacheinfo.
6378 * sysdeps/x86_64/memcpy.S: Complete rewrite.
6379 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6380 Patch by Evandro Menezes <evandro.menezes@amd.com>.
6381
6382 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6383
1f4843fb
UD
63842007-05-21 Jakub Jelinek <jakub@redhat.com>
6385
2c2c003a
UD
6386 [BZ #4525]
6387 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6388 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6389 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6390
6391 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6392
af269dd9
UD
6393 [BZ #4514]
6394 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6395 reinitialize workend at the start of each do_positional format spec
6396 loop, free workstart before do_positional loops.
6397 (printf_unknown): Fix size of work_buffer.
6398 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6399
1f4843fb
UD
6400 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6401 (public_sET_STATe): If ms->version < 3, put all chunks into
6402 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6403 chunks.
6404
6405 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6406 * malloc/hooks.c: Likewise.
6407 * malloc/arena.c: Likewise.
6408 * malloc/malloc.c (do_check_malloc_state): Don't assert
6409 n_mmaps is not greater than n_mmaps_max. This removes the need
6410 for the previous change.
6411
6412 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6413 2007-05-07 commit.
6414
12e8bbff
UD
64152007-05-19 Ulrich Drepper <drepper@redhat.com>
6416
6417 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6418 Define for kernel >= 2.6.22.
69e5cbf5 6419
12e8bbff 64202007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 6421
df94b641
UD
6422 * elf/dl-close.c (_dl_close_worker): When removing object from
6423 global scope, wait for all lookups to finish afterwards.
6424 * elf/dl-open.c (add_to_global): When global scope array must
6425 grow, allocate a new one and free old array only after all
6426 lookups finish.
6427 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6428 (_dl_lookup_symbol_x): Likewise.
6429 * elf/dl-support.c: Define _dl_wait_lookup_done.
6430 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6431 _dl_wait_lookup_done.
6432
2acd01ac
UD
6433 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6434 not overlapping with arena.
6435
129abdd3
UD
6436 * malloc/mcheck.c (reallochook): If size==0, free the block.
6437
eb4b098a
UD
6438 * rt/tst-shm.c: Use fstat64 instead of fstat.
6439
69e5cbf5
UD
6440 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6441 __NR_sync_file_range is not defined.
6442
a2ccc760
UD
64432007-05-17 Ulrich Drepper <drepper@redhat.com>
6444
bec51a30
UD
6445 Dummy files to prevent stub versions from being used.
6446 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6447 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6448 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6449 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6450
a2ccc760
UD
6451 * version.h (VERSION): Set to 2.6.90.
6452
1a31b586
UD
64532007-05-14 Ulrich Drepper <drepper@redhat.com>
6454
a2ccc760
UD
6455 * version.h (VERSION): Define to 2.6.
6456 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 6457
1d47e92f
UD
6458 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6459
6460 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6461 sizes.
366ad8fd 6462
1a31b586 64632007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 6464
366ad8fd
UD
6465 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6466 number of mmaps. n_mmaps_max is the target.
6467 * malloc/hooks.c: Likewise.
6468 * malloc/arena.c: Likewise.
6469
11ed6713
AJ
64702007-05-12 Andreas Jaeger <aj@suse.de>
6471
6472 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6473 getpid.
6474
d65ef3dd
UD
64752007-05-11 Ulrich Drepper <drepper@redhat.com>
6476
2e81d449
UD
6477 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6478 adding new variables.
6479
d65ef3dd 6480 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 6481 optimize. Completely extend global scope array before making the
d65ef3dd
UD
6482 new entries visible.
6483
c27d2078
UD
64842007-05-10 Ulrich Drepper <drepper@redhat.com>
6485
341c566f
UD
6486 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6487 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6488 tst-getcpu.
6489
6490 * include/link.h: Move l_version and l_nversion members around to
6491 fill gaps.
6492
a53fa282
UD
6493 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6494
3771196d
UD
6495 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6496 (__sched_setaffinity_new): If syscall was successful and
6497 RESET_VGETCPU_CACHE is defined, use it before returning.
6498 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6499
f9bf102d
UD
6500 * io/sys/stat.h: Make sure struct timespec is defined for
6501 __USE_ATFILE.
6502
c27d2078
UD
6503 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6504 UTIME_OMIT.
6505 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6506 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6507 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6508 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6509 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6510 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6511 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6512 * io/sys/stat.h: Declare utimensat, futimens.
6513 * io/utimensat.c: New file.
6514 * io/futimens.c: New file.
6515 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6516 * sysdeps/unix/sysv/linux/futimens.c: New file.
6517 * io/Makefile (routines): Add utimensat, futimens.
6518 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6519 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6520 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6521 available.
6522
6523 * include/sys/cdefs.h: Redefine __nonnull so that test for
6524 incorrect parameters in the libc code itself are not omitted.
6525
cf6b0980
JJ
65262007-05-09 Jakub Jelinek <jakub@redhat.com>
6527
c1dfd7e6
JJ
6528 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6529 exception in addition to inexact when asked to raise only FE_INEXACT.
6530
cf6b0980
JJ
6531 [BZ #3427]
6532 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6533 in *envp.
6534
df7b6fea
UD
65352007-05-07 Ulrich Drepper <drepper@redhat.com>
6536
6537 [BZ #4403]
6538 * string/strfry.c (strfry): Make result more random.
6539
37f40235
RH
65402007-05-07 Richard Henderson <rth@redhat.com>
6541
6542 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6543 if __NO_LONG_DOUBLE_MATH.
6544 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 6545 available in the compiler, add .arch directive to the assembly.
37f40235
RH
6546
65472007-05-07 Jakub Jelinek <jakub@redhat.com>
6548
6549 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6550 compat_symbol to GLIBC_2_1.
6551 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6552 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6553 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6554 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6555 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6556 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6557 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6558 libc, not libm.
6559 (__isnanl): New compat_symbol.
6560
c7fd3362
JJ
65612007-05-07 Ulrich Drepper <drepper@redhat.com>
6562 Jakub Jelinek <jakub@redhat.com>
6563
6564 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6565 (new_heap): Initialize mprotect_size.
6566 (grow_heap): When growing, only mprotect from mprotect_size till
6567 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6568 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6569
4a59e9ad 65702007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 6571 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
6572
6573 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6574 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6575 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6576 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6577 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6578 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6579 Call __fe_mask_env() if all FP exceptions disabled.
6580 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6581 from old FPSCR to new fenv to propagate DFP rounding modes.
6582 Call __fe_mask_env() if FP exceptions previously enabled.
6583 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6584 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6585 transitioning from all exceptions disabled to any exception enabled
6586 or visa versa.
6587 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6588 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6589 when transitioning from all exceptions disabled to any exception
6590 enabled or visa versa.
6591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6596 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6597
aa75f64c
UD
65982007-05-06 Ulrich Drepper <drepper@redhat.com>
6599
15eca720 6600 [BZ #4465]
aa75f64c
UD
6601 * posix/unistd.h: Remove __THROW from fdatasync.
6602
711deb05
UD
66032007-05-06 Mike Frysinger <vapier@gentoo.org>
6604
15eca720 6605 [BZ #4465]
711deb05
UD
6606 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6607
ffecd39b
UD
66082007-05-06 Ulrich Drepper <drepper@redhat.com>
6609
49a8eb75
UD
6610 * stdio-common/vfprintf.c (process_string_arg): Optimize
6611 ridiculous precision in wide char code printing multi-byte string.
6612 Reported by Jim Meyering <jim@meyering.net>.
6613
ffecd39b
UD
6614 [BZ #4131]
6615 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6616 boundaries to work around systems with overlapping binary loading.
6617 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6618
b16dba4c
UD
66192007-05-04 Ulrich Drepper <drepper@redhat.com>
6620
30b323ab
UD
6621 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6622 __mbsnrtowcs after last change.
6623
b16dba4c
UD
6624 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6625 (get_ident): Likewise.
6626
37002cbc
JJ
66272007-05-03 Jakub Jelinek <jakub@redhat.com>
6628
6629 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6630 with setting the sticky bit.
6631 * math/test-misc.c (main): Add more truncation tests.
6632
66332007-04-14 Uros Bizjak <ubizjak@gmail.com>
6634
6635 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6636 double in the function declaration.
6637 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6638 double in the function declaration.
6639 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6640 float in the function declaration.
6641 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6642 float in the function declaration.
6643
6644 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6645 denormal operands. Do not generate FP_EX_DENORM exception.
6646 (FP_UNPACK_RAW_EP): Ditto.
6647 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6648 undefined _FP_UNPACK_RAW_E.
6649 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6650 undefined _FP_UNPACK_RAW_EP.
6651 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6652 undefined _FP_PACK_RAW_E.
6653 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6654 undefined _FP_PACK_RAW_EP.
6655
d9ac82d0
UD
6656 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6657 _FP_FRAC_COPY_2.
6658 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6659 _FP_FRAC_COPY_4.
37002cbc
JJ
6660
66612007-04-16 Uros Bizjak <ubizjak@gmail.com>
6662 Jakub Jelinek <jakub@redhat.com>
6663
6664 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6665 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6666 this case.
6667 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6668
002f0b0b
JJ
66692007-05-03 Jakub Jelinek <jakub@redhat.com>
6670
6671 * math/test-misc.c (main): Add tests for rounding long double
6672 values close to smallest double denormalized value to double.
6673
66742007-04-30 Joseph Myers <joseph@codesourcery.com>
6675
6676 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6677 condition for truncating to 0. Set sticky bit for such
6678 truncation.
6679
57433ede
UD
66802007-05-02 Jakub Jelinek <jakub@redhat.com>
6681
6682 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6683 fixed length array for ignore.
6684
c01c2455
UD
66852007-04-30 Ulrich Drepper <drepper@redhat.com>
6686
6687 [BZ #4438]
6688 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6689 stack for large precisions.
1cb04337
UD
6690 * stdio-common/test-vfprintf.c (main): Add test for large
6691 precision.
c01c2455 6692
37f02b1d
UD
66932007-04-30 Jakub Jelinek <jakub@redhat.com>
6694
b866373d
UD
6695 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6696 for exponent 0.
6697 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6698
37f02b1d
UD
6699 [BZ #4439]
6700 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6701 account in the size check.
6702 * resolv/tst-inet_ntop.c: New test.
6703 * resolv/Makefile (tests): Add tst-inet_ntop.
6704
7ecfbd38
UD
67052007-04-30 Ulrich Drepper <drepper@redhat.com>
6706 Jakub Jelinek <jakub@redhat.com>
6707
6708 [BZ #4349]
6709 * malloc/malloc.c: Keep separate list for first blocks on the bin
6710 lists with a given size. This helps skipping over list elements
6711 we know won't fit in two places.
6712 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6713
e53f0f51
UD
67142007-04-28 Ulrich Drepper <drepper@redhat.com>
6715
6716 [BZ #4102]
6717 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6718 label to Teredo tunnel addresses 2001://32.
6719
109f51f2
UD
67202007-04-27 Ulrich Drepper <drepper@redhat.com>
6721
762422d1
UD
6722 * locale/programs/ld-collate.c (collate_read): Allow order_start
6723 after copy.
6724
61d5a67f
UD
6725 * locale/programs/ld-collate.c (collate_read): Fix printing of
6726 error message.
6727
6728 [BZ #3213]
6729 * locale/C-translit.h.in: Add entry for U2044.
6730
109f51f2
UD
6731 [BZ #4342]
6732 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6733 hexa-decimal floats without exponent.
6734 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6735
ec08f13d
UD
67362007-04-25 Ulrich Drepper <drepper@redhat.com>
6737
6738 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6739 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6740 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6741 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6742 GLIBC_2.6.
bce20b9a
UD
6743 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6744 Add sched_getcpu.
ec08f13d 6745
41967e1c
JJ
67462007-04-25 Jakub Jelinek <jakub@redhat.com>
6747
6748 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6749 of 0 after the out_fail label.
6750
ba508da3
UD
67512007-04-25 Ulrich Drepper <drepper@redhat.com>
6752
6753 [BZ #4406]
109f51f2 6754 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
6755 * iconv/iconv_open.c (iconv_open): Adjust comment.
6756
9c8d03d9
JJ
67572007-04-25 Jakub Jelinek <jakub@redhat.com>
6758
6759 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6760 version.
6761
2f1687b9
UD
67622007-04-23 Jakub Jelinek <jakub@redhat.com>
6763
6764 [BZ #4381]
6765 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6766 alignment of buffer and tmp_buffer.
6767 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6768 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6769 alignment of buffer.
6770 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6771 bigger than INT_MAX.
6772 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6773 h_errnop arguments. Fail if buflen is too small.
6774 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6775
b64a9db8
JJ
67762007-04-23 Jakub Jelinek <jakub@redhat.com>
6777
6778 [BZ #4405]
6779 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6780 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6781
4d3144c9
RM
67822007-04-22 Roland McGrath <roland@redhat.com>
6783
6784 * elf/elf.h (NT_PRXFPREG): New macro.
6785
767b40bf
AJ
67862007-04-19 Andreas Jaeger <aj@suse.de>
6787
6788 [BZ #3905]
6789 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6790 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6791 Added.
6792
2592d1ec
UD
67932007-04-19 Ulrich Drepper <drepper@redhat.com>
6794
6795 * include/sys/mman.h: Mark madvise hidden.
d07d044e 6796 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 6797
7ab174ed
UD
67982007-04-06 Jakub Jelinek <jakub@redhat.com>
6799
6800 * nis/nis_domain_of.c (__nis_domain_of): New function.
6801 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6802 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6803 * nis/nis_call.c (rec_dirsearch): Likewise.
6804 (first_shoot): Likewise. Remove search_parent_first argument.
6805 (struct nis_server_cache): Rename search_parent_first field
6806 to search_parent.
6807 (nis_server_cache_search, nis_server_cache_add): Rename
6808 search_parent_first argument to search_parent.
6809 (__nisfind_server): Likewise. If search_parent, call
6810 __nis_domain_of.
6811
b17c265f
UD
68122007-04-18 Ulrich Drepper <drepper@redhat.com>
6813
6814 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6815
b7674b11
UD
68162007-04-17 Ulrich Drepper <drepper@redhat.com>
6817
6818 [BZ #4368]
6819 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6820
faf3ad69
UD
68212007-04-16 Ulrich Drepper <drepper@redhat.com>
6822
6823 [BZ #4364]
6824 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6825
c14f245c
UD
68262007-04-15 Jakub Jelinek <jakub@redhat.com>
6827
6828 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6829 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6830 current number of locales in SUPPORTED.
6831 (create_archive): Initialize serial.
6832 (enlarge_archive): Preserve aliases rather than duplicating
6833 their locrecs.
6834
d40e67f5
UD
68352007-04-13 Jakub Jelinek <jakub@redhat.com>
6836
993a5d66
UD
6837 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6838 after _IO_un_link, not before it.
6839
d40e67f5
UD
6840 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6841 special case handling when wcp == wstartp + 1. Fix a comment typo.
6842 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6843
0fca3153
UD
68442007-03-30 Jakub Jelinek <jakub@redhat.com>
6845
6846 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6847 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6848 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6849 Remove __THROW.
6850 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6851 _IO_file_xsgetn_maybe_mmap): Likewise.
6852 * libio/oldfileops.c (old_do_write): Likewise.
6853 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6854 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6855 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6856 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6857 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6858 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6859 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6860 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6861 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6862 _IO_file_underflow, _IO_file_underflow_mmap,
6863 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6864 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6865 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6866 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6867 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6868 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6869 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6870 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6871 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6872 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6873 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6874 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6875 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6876 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6877 _IO_adjust_column_internal, _IO_default_uflow_internal,
6878 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6879 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6880 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6881 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6882 _IO_file_close_it_internal, _IO_file_underflow_internal,
6883 _IO_file_overflow_internal, _IO_file_attach_internal,
6884 _IO_file_fopen_internal, _IO_file_sync_internal,
6885 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6886 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6887 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6888 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6889 _IO_seekpos_unlocked): Likewise.
6890 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6891 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6892
07358add
JJ
68932007-04-16 Jakub Jelinek <jakub@redhat.com>
6894
6895 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6896 argument in xmalloc size computation.
6897
7a82b74f
UD
68982007-04-01 Jakub Jelinek <jakub@redhat.com>
6899
6900 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6901 math_opt_barrier and math_force_eval macros.
6902
3e336a87
UD
69032007-03-27 Jakub Jelinek <jakub@redhat.com>
6904
6905 [BZ #3306]
6906 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6907 * sysdeps/i386/fpu/math_private.h: New file.
6908 * sysdeps/x86_64/fpu/math_private.h: New file.
6909 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6910 math_force_eval macros. Use "+m" constraint on asm rather than
6911 "=m" and "m".
6912 * math/s_nextafter.c (__nextafter): Likewise.
6913 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6914 Likewise.
6915 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6916 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6917 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6918 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6919 math_opt_barrier and math_force_eval macros.
6920 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6921 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6922 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6923 (__nexttoward): Use math_opt_barrier and
6924 math_force_eval macros. Use "+m" constraint on asm rather than
6925 "=m" and "m". Only use asm to force double result if
6926 FLT_EVAL_METHOD is 2.
6927 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6928 (__nexttowardf): Use math_opt_barrier and
6929 math_force_eval macros. Use "+m" constraint on asm rather than
6930 "=m" and "m". Only use asm to force double result if
6931 FLT_EVAL_METHOD is not 0.
6932 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6933 (__nexttowardf): Use math_opt_barrier and
6934 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6935 x to float using asm.
6936 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6937 (__nldbl_nexttowardf): Use math_opt_barrier and
6938 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6939 x to float using asm.
6940 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6941 (__nexttowardf): Use math_opt_barrier and math_force_eval
6942 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6943 * math/bug-nextafter.c (zero, inf): New variables.
6944 (main): Add new tests.
6945 * math/bug-nexttoward.c (zero, inf): New variables.
6946 (main): Add new tests.
6947
a8c79c40
UD
69482007-03-22 Jakub Jelinek <jakub@redhat.com>
6949
6950 [BZ #3427]
6951 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6952 exceptions both in SW and MXCSR.
6953 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6954 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6955 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6956 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6957 in MXCSR if SSE is available.
6958 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6959 and ldsodefs.h.
6960 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6961 Fix comment typo.
6962 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6963 Return 0 rather than 1.
6964 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6965 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6966 * math/test-fenv.c (feholdexcept_tests): New function.
6967 (main): Call it.
6968
69692007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6970
6971 [BZ #3427]
6972 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6973 in SW.
6974
30a3aa75
JJ
69752007-04-13 Jakub Jelinek <jakub@redhat.com>
6976
6977 [BZ #4344]
6978 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6979 Reported by David Anderson <davea42@earthlink.net>.
6980
75587bfe
UD
69812007-04-07 Ulrich Drepper <drepper@redhat.com>
6982
6983 * posix/sys/wait.h: Remove unnecessary forward declaration.
6984
88fa1769
JJ
69852007-04-05 Jakub Jelinek <jakub@redhat.com>
6986
6987 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6988 with obj->do_servers after first_shoot.
6989
eab1bdfb
UD
69902007-04-03 Ulrich Drepper <drepper@redhat.com>
6991
6992 * posix/Makefile (routines): Add sched_cpucount.
6993 (tests): Add tst-cpucount.
6994 * posix/sched_cpucount.c: New file.
6995 * posix/tst-cpucount.c: New file.
6996 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
6997 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6998 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6999 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 7000
9700b039
UD
70012007-03-27 Jakub Jelinek <jakub@redhat.com>
7002
7003 * posix/fnmatch.c (STRUCT): Define.
7004 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7005 * posix/fnmatch_loop.c (struct STRUCT): New type.
7006 (FCT): Add ends argument. If ends != NULL and normal * is
7007 seen in the pattern, store current pattern and string pointers
7008 and return. Adjust recursive calls.
7009 (EXT): Adjust FCT callers.
7010 (STRUCT): Undef at the end of the file.
7011 * posix/Makefile (tests): Add tst-fnmatch2.
7012 * posix/tst-fnmatch2.c: New test.
7013
d64e9790
JJ
70142007-04-01 Jakub Jelinek <jakub@redhat.com>
7015
933dfe7b
JJ
7016 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7017 and 1 on failure.
7018
d64e9790
JJ
7019 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7020 Change last argument to unsigned int.
7021
e1f0c5bc
UD
70222007-03-23 Jakub Jelinek <jakub@redhat.com>
7023
7024 * scripts/check-local-headers.sh: Filter out sys/capability.h.
7025
70262007-03-22 Jakub Jelinek <jakub@redhat.com>
7027
7028 * config.h.in (HAVE_LIBCAP): Add.
7029 * nscd/selinux.h: Include sys/capability.h rather than non-existent
7030 sys/capabilities.h.
7031 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7032 free_caps. Cast away const from 4th cap_set_flag argument.
7033
4e87573f
UD
70342007-03-26 Ulrich Drepper <drepper@redhat.com>
7035
7036 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7037 GLIBC_2.6.
7038 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7039 Add sync_file_range.
7040 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7041
fa6e3bc3
UD
70422007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
7043
7044 * sysdeps/powerpc/bits/atomic.h
7045 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7046 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7047 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7048 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7049 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7050 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7051 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7052 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7053 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7054 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7055 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7056 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7057 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7058 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7059 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7060 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7061 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7062 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7063 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7064 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7065
70662007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
7067
7068 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7069 (__cache_line_size): Define the variable here. Add
7070 attribute_hidden, remove weak_extern.
7071 (__libc_start_main): Set __cache_line_size
7072 unconditionally.
7073 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7074 (__cache_line_size): Define the variable here. Add
7075 attribute_hidden, remove weak_extern.
7076 (DL_PLATFORM_AUXV): Set __cache_line_size
7077 unconditionally.
7078 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7079 weak_extern, add attribute_hidden.
7080 (__elf_machine_runtime_setup): Assume __cache_line_size is always
7081 defined in ld.so.
7082 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7083 definition.
7084 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7085
0479e581
JJ
70862007-03-26 Jakub Jelinek <jakub@redhat.com>
7087
7088 [BZ #4276]
7089 * timezone/africa: Update from tzdata2007d.
7090 * timezone/asia: Likewise.
7091 * timezone/australasia: Likewise.
7092 * timezone/backward: Likewise.
7093 * timezone/europe: Likewise.
7094 * timezone/iso3166.tab: Likewise.
7095 * timezone/leapseconds: Likewise.
7096 * timezone/northamerica: Likewise.
7097 * timezone/southamerica: Likewise.
7098 * timezone/zone.tab: Likewise.
7099
7100 * timezone/private.h: Update from tzcode2007d.
7101 * timezone/zdump.c: Likewise.
7102 * timezone/zic.c: Likewise.
7103
697d37b1
JJ
71042007-03-21 Jakub Jelinek <jakub@redhat.com>
7105
7106 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7107 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7108 variables.
7109 (nis_server_cache_search, nis_server_cache_add): New functions.
7110 (__nisfind_server): Use them. Add dbp and flags argument, if
7111 call __nisbind_create.
7112 (__nisbind_create): Add server_used and current_ep arguments,
7113 only call __nis_findfastest if server_used is ~0.
7114 (__do_niscall2, __prepare_niscall): Adjust callers.
7115 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7116 ckey_cache_euid, ckey_cache_lock): New variables.
7117 (get_ckey): New function.
7118 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7119 __pmap_getnisport. Save __pmap_getnisport result in
7120 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
7121 key.
7122 * nis/nis_lookup.c (nis_lookup): Likewise.
7123 * nis/nis_table.c (nis_list): Likewise.
7124 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7125 prototypes.
7126
7127 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7128 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7129 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7130 _nss_nisplus_getservbyport_r): Likewise.
7131 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7132 _nss_nisplus_getnetbyaddr_r): Likewise.
7133 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7134 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7135 _nss_nisplus_getntohost_r): Likewise.
7136 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7137 _nss_nisplus_getrpcbynumber_r): Likewise.
7138
06029c20
JJ
71392007-03-20 Jakub Jelinek <jakub@redhat.com>
7140
371f84a4
JJ
7141 * configure.in (libc_cv_gnu89_inline): Only do compile test.
7142 * configure: Rebuilt.
7143
06029c20
JJ
7144 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7145 bit-fields.
7146 * soft-fp/extended.h (_FP_UNION_E): Likewise.
7147
71482006-06-07 Joseph Myers <joseph@codesourcery.com>
7149
7150 [BZ #2831]
7151 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7152 bit-fields.
7153
addc8335
UD
71542007-03-18 Jakub Jelinek <jakub@redhat.com>
7155
7156 * nscd/gai.c: Include alloca.h.
7157 (__libc_use_alloca): Define.
7158
b037a293
UD
71592007-03-16 Jakub Jelinek <jakub@redhat.com>
7160
965cba04
UD
7161 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7162 smaller scopes.
7163 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7164 (DL_DST_REQUIRED): Adjust user.
7165
7166 * include/dlfcn.h (struct link_map): New forward decl.
7167
7168 * inet/getnameinfo.c: Include stddef.h.
7169 (getnameinfo): Use offsetof.
7170
7171 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7172
7173 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7174
7175 * string/strerror_l.c: Include stdlib.h.
7176
b037a293
UD
7177 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7178 * config.make.in (gnu89-inline-CFLAGS): New variable.
7179 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7180 -std=gnu99.
7181 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7182 * argp/argp.h: Use it.
7183 * bits/mathinline.h: Likewise.
7184 * bits/sigset.h: Likewise.
7185 * bits/string.h: Likewise.
7186 * ctype/ctype.h: Likewise.
7187 * hurd/hurd.h: Likewise.
7188 * hurd/hurd/fd.h: Likewise.
7189 * hurd/hurd/port.h: Likewise.
7190 * hurd/hurd/signal.h: Likewise.
7191 * hurd/hurd/threadvar.h: Likewise.
7192 * hurd/hurd/userlink.h: Likewise.
7193 * io/sys/stat.h: Likewise.
7194 * libio/bits/stdio.h: Likewise.
7195 * libio/bits/stdio2.h: Likewise.
7196 * mach/lock-intern.h: Likewise.
7197 * mach/mach/mig_support.h: Likewise.
7198 * math/bits/cmathcalls.h: Likewise.
7199 * posix/bits/unistd.h: Likewise.
7200 * socket/bits/socket2.h: Likewise.
7201 * stdlib/bits/stdlib.h: Likewise.
7202 * stdlib/stdlib.h: Likewise.
7203 * string/argz.h: Likewise.
7204 * string/bits/string2.h: Likewise.
7205 * string/bits/string3.h: Likewise.
7206 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7207 * sysdeps/generic/inttypes.h: Likewise.
7208 * sysdeps/generic/machine-lock.h: Likewise.
7209 * sysdeps/generic/machine-sp.h: Likewise.
7210 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7211 * sysdeps/i386/i486/bits/string.h: Likewise.
7212 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7213 * sysdeps/mach/alpha/machine-lock.h: Likewise.
7214 * sysdeps/mach/alpha/machine-sp.h: Likewise.
7215 * sysdeps/mach/i386/machine-lock.h: Likewise.
7216 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7217 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7218 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7219 * sysdeps/s390/bits/string.h: Likewise.
7220 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7221 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7222 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7223 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7224 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7225 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7226 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7227 * wcsmbs/bits/wchar2.h: Likewise.
7228 * wcsmbs/wchar.h: Likewise.
7229 * stdlib/gmp.h: Likewise. Include <features.h> to get
7230 __extern_inline definition.
7231
6b2665f5
UD
72322007-03-15 Jakub Jelinek <jakub@redhat.com>
7233
b037a293
UD
7234 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7235 NULL.
7236
6b2665f5
UD
7237 [BZ #3919]
7238 * math/libm-test.inc (log_test): Test -Inf and NaN.
7239 (log10_test, log1p_test, log2_test): Test -Inf.
7240 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7241 FE_INVALID when argument is qNaN.
7242 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7243 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7244 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7245 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7246 andb $1, %ah with testb $1, %ah, don't test for parity, instead
7247 testb $4, %ah and jump if non-zero.
7248 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7249 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7250
44969f17
UD
7251 [BZ #4101]
7252 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7253 ancestors with the same depths.
7254 Patch by Niels Moeller <nisse@lysator.liu.se>.
7255 (filter_doc): Don't crash if argp is NULL.
7256 * argp/Makefile (tests): Add tst-argp2.
7257 * argp/tst-argp2.c: New test.
7258
05eb8975
UD
7259 [BZ #4130]
7260 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7261 open_not_cancel_2.
7262 (updwtmp_file): Likewise.
7263
6cb988fa
UD
7264 [BZ #4181]
7265 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7266 (inet6_opt_append): Don't check extlen is big enough if extbuf
7267 is NULL.
7268 (inet6_opt_finish): Likewise.
7269 * inet/Makefile (tests): Add test-inet6_opt.
7270 * inet/test-inet6_opt.c: New test.
7271
7272 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7273 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7274 NLMSG_ERR. Instead use a page sized buffer.
7275 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7276 buffer.
7277
aea1d19e
RH
72782007-03-14 Richard Henderson <rth@redhat.com>
7279
b6df547c
RH
7280 * sysdeps/alpha/fpu/s_llround.c: New file.
7281 * sysdeps/alpha/fpu/s_llroundf.c: New file.
7282 * sysdeps/alpha/fpu/s_lround.c: New file.
7283 * sysdeps/alpha/fpu/s_lroundf.c: New file.
7284 * sysdeps/alpha/fpu/s_round.c: New file.
7285 * sysdeps/alpha/fpu/s_roundf.c: New file.
7286 * sysdeps/alpha/fpu/s_trunc.c: New file.
7287 * sysdeps/alpha/fpu/s_truncf.c: New file.
7288
aea1d19e
RH
7289 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7290 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7291 * sysdeps/alpha/fpu/s_floor.c: Likewise.
7292 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7293 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7294 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7295
7296 * sysdeps/alpha/fpu/s_fmax.S: New file.
7297 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7298 * sysdeps/alpha/fpu/s_fmin.S: New file.
7299 * sysdeps/alpha/fpu/s_fminf.S: New file.
7300 * sysdeps/alpha/fpu/s_isnan.c: New file.
7301 * sysdeps/alpha/fpu/s_isnanf.c: New file.
7302 * sysdeps/alpha/fpu/s_llrint.c: New file.
7303 * sysdeps/alpha/fpu/s_llrintf.c: New file.
7304 * sysdeps/alpha/fpu/s_lrint.c: New file.
7305 * sysdeps/alpha/fpu/s_lrintf.c: New file.
7306 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7307 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7308
7309 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7310 (__fdimf, fdimf, __fdim, fdim): Remove.
7311 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7312 (__isnanf, __isnan, __isnanl): New.
7313
9e43b50d
RH
73142007-03-13 Richard Henderson <rth@redhat.com>
7315
7316 * sysdeps/ieee754/ldbl-128/Makefile: New file.
7317
62789da3
RH
73182007-03-13 Richard Henderson <rth@redhat.com>
7319
7320 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7321 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7322 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7323 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7324 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7325 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7326
47dbe62b
RH
73272007-03-13 Richard Henderson <rth@redhat.com>
7328
37f40235 7329 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
7330 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7331 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7332 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7333 Move to dl-auxv.h; initialize instead of extern weak.
7334 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7335 weak symbol.
7336 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7337 Extern instead of initialized.
7338
b8097bed
RH
73392007-03-13 Richard Henderson <rth@redhat.com>
7340
7341 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7342 __sigsuspend_nocancel.
7343
6bf4a686
UD
73442007-03-06 Ulrich Drepper <drepper@redhat.com>
7345
7346 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7347 172.16/12 address range.
7348
0b3b1a0c
UD
73492007-03-02 Jakub Jelinek <jakub@redhat.com>
7350
7351 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7352 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7353 message.
7354
8f3edfee
UD
73552007-03-01 Jakub Jelinek <jakub@redhat.com>
7356
c1c5e654 7357 [BZ #4069]
8f3edfee
UD
7358 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7359 earlier.
7360 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7361
7362 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7363 for x qNaN and y either +-inf or non-integer value.
7364 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7365 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7366 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7367
245a1481
UD
73682007-02-10 Mike Frysinger <vapier@gentoo.org>
7369
7370 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7371 from sysdep_headers.
7372
c217692b
UD
73732007-02-28 Jakub Jelinek <jakub@redhat.com>
7374
7375 * time/tzfile.c (find_transition): Instead of a linear search try to
7376 guess the transition index, use a linear search if the result is at
7377 most 10 transitions away from the guess or binary search otherwise.
7378
fe64626c
JJ
73792007-02-27 Jakub Jelinek <jakub@redhat.com>
7380
7381 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7382 memory reallocation.
7383
0f7769f7
UD
73842007-02-21 Ulrich Drepper <drepper@redhat.com>
7385
621c133d
UD
7386 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7387 and fix some typos.
7388 Optimize use of TOLOWER.
9cf147d8 7389
cdfd61e1
UD
7390 [BZ #3325]
7391 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7392 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7393 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7394
8889e7aa
UD
7395 [BZ #3458]
7396 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7397 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7398
63a2f305
UD
7399 [BZ #4076]
7400 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7401 (open_dir_stream): Likewise.
7402 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 7403 * io/bug-ftw5.c: New file.
63a2f305 7404
c8703f88
UD
7405 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7406 * nscd/servicescache.c (cache_addserv): Likewise.
7407
7408 * nscd/grpcache.c (cache_addgr): In case a record changed on
7409 refresh, adjust key_copy.
7410
61705e06
UD
7411 [BZ #4074]
7412 * nscd/pwdcache.c (cache_addpw): In case a record changed on
7413 refresh, adjust key_copy.
7414
0f7769f7
UD
7415 [BZ #4070]
7416 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 7417 special cases.
8889e7aa 7418 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 7419
3979024a
UD
74202007-02-19 Ulrich Drepper <drepper@redhat.com>
7421
4c02bf1a
UD
7422 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7423 optimization.
7424
3979024a
UD
7425 * stdio-common/vfscanf.c: Small cleanups throughout.
7426
821d3e70
UD
74272007-02-18 Ulrich Drepper <drepper@redhat.com>
7428
2484468b
UD
7429 [BZ #3325]
7430 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7431 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7432 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7433 Patch by Jared Casper <jaredcasper@gmail.com>.
7434
858ee15d
UD
7435 * sysdeps/unix/closedir.c: Outside libc don't use locking.
7436 * sysdeps/unix/opendir.c: Likewise.
7437 * sysdeps/unix/readdir.c: Likewise.
7438
ecb72bd5
UD
7439 [BZ #2211]
7440 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7441 point numbers.
7442 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7443
ac2ca022
UD
7444 * stdio-common/vfscanf.c: Fix problems in width accounting.
7445 * stdio-common/tst-sscanf.c (double_tests): New tests.
7446 (main): Hook them up.
7447
e9bb5246 7448 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 7449 More simplifications of floating-point reader.
e9bb5246 7450
821d3e70
UD
7451 * stdio-common/Makefile (tests): Add tst-swscanf.
7452 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7453 testing.
7454 * stdio-common/tst-swscanf.c: New file.
7455
07fb5185
UD
74562007-02-17 Ulrich Drepper <drepper@redhat.com>
7457
9138cc0b
UD
7458 [BZ #2633]
7459 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7460 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7461 Remove using for __jmp_buf_tag.
7462 * locale/locale.h (struct lconv): Also define in std namespace.
7463 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7464
6818d837
UD
7465 [BZ #3842]
7466 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7467 using __libc_enable_secure.
7468
15c4b5a4
UD
7469 [BZ #3818]
7470 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7471
5e9e9c14
UD
7472 [BZ #3745]
7473 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7474 of names for ellipsises.
7475
07fb5185
UD
7476 [BZ #3348]
7477 * malloc/memusage.sh: Cleanups.
7478 * debug/xtrace.sh: Quoting and trap changes.
7479
8c6d1043
UD
74802007-02-16 Ulrich Drepper <drepper@redhat.com>
7481
07fb5185
UD
7482 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7483
93e66914 7484 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
7485 * locale/iso-4217.def: Define RSD, remove CSD.
7486
ad0b348c
UD
7487 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7488 and 64-bit operations.
7489
7490 [BZ #4040]
7491 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7492 16-bit operations.
7493
8c6d1043
UD
7494 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7495 of writev.
7496
987f54c6
UD
74972007-02-15 Ulrich Drepper <drepper@redhat.com>
7498
b3715c05
UD
7499 [BZ #3991]
7500 * assert/assert.h (assert): Simplify.
7501 (assert_perror): Likewise.
7502 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7503
6eea8e0d
UD
7504 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7505 reqdata.
7506
987f54c6
UD
7507 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7508 change: don't pass NULL in place of an integer.
7509
3dc08a7e
UD
75102007-02-02 Bruno Haible <bruno@clisp.org>
7511
06c17c78
UD
7512 [BZ #3954]
7513 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7514 Add mapping for U+327E.
7515 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7516 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7517 mapping of 0xD9 0xE8.
7518 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7519 mapping of U+327E.
7520 Reported by Jungshik Shin <jungshik@google.com>.
7521
7522 [BZ #3955]
3dc08a7e
UD
7523 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7524 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7525 Reported by Jungshik Shin <jungshik@google.com>.
7526
a810e68c
UD
75272007-02-14 Ulrich Drepper <drepper@redhat.com>
7528
7529 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7530 byte variants.
7531
7532 [BZ #4040]
7533 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7534 byte variants. Patch mostly be tom@tommay.net.
7535
05f135ba
UD
75362007-02-14 Jakub Jelinek <jakub@redhat.com>
7537
7538 [BZ #3996]
7539 * posix/glob.c (attribute_hidden): Define if not defined.
7540 (glob): Unescape dirname, filename or username when needed and not
7541 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7542 is NULL. Handle unescaped [ in pattern without closing ].
7543 Don't pass GLOB_CHECK down to recursive glob for directories.
7544 (__glob_pattern_type): New function.
7545 (__glob_pattern_p): Implement using __glob_pattern_type.
7546 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7547 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7548 Remove unreachable code.
7549 * posix/globtest.sh: Add a couple of new tests.
7550
2f699967
UD
75512007-02-13 Ulrich Drepper <drepper@redhat.com>
7552
7553 * po/ru.po: Update from translation team.
7554
3a7cd5b4
JJ
75552007-02-12 Jakub Jelinek <jakub@redhat.com>
7556
7557 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7558 to the list of i486+ CPUs.
7559 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7560
2f978feb
UD
75612007-02-12 Ulrich Drepper <drepper@redhat.com>
7562
7563 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7564 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7565 references.
7566
2bbb7d5b
UD
75672007-02-09 Ulrich Drepper <drepper@redhat.com>
7568
5ed61e0f
UD
7569 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7570
2bbb7d5b
UD
7571 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7572 * resolv/res_mkquery.c: Define __res_nopt.
7573 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7574 try adding EDNS0 record.
7575 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7576 EDNS0 record was send make sure we don't try it again.
7577 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7578 * include/resolv.h: Declare __res_nopt.
7579
00458b5b
UD
75802007-02-08 Jakub Jelinek <jakub@redhat.com>
7581
7582 [BZ #3944]
7583 * time/strptime_l.c (__strptime_internal): Set have_mon for
7584 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7585 have been computed from tm_yday and tm_year. Don't crash
7586 in day_of_the_week or day_of_the_year if not have_mon
7587 and tm_mon contains bogus value.
7588 * time/Makefile (tests): Add tst-strptime3.
7589 * time/tst-strptime3.c: New test.
7590
784aacea
UD
75912007-02-05 Jakub Jelinek <jakub@redhat.com>
7592
7593 [BZ #3957]
7594 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7595 bit for RE_HAT_LISTS_NOT_NEWLINE.
7596 (build_charclass_op): Remove bogus comment.
7597 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7598 * posix/bug-regex27.c: New test.
7599 * posix/bug-regex28.c: New test.
7600
bf7a2463
UD
76012007-02-03 Ulrich Drepper <drepper@redhat.com>
7602
7603 * po/sv.po: Update from translation team.
7604
f2ccf983
UD
76052007-02-02 Ulrich Drepper <drepper@redhat.com>
7606
7607 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7608
73f50d5a
UD
76092007-02-02 Jakub Jelinek <jakub@redhat.com>
7610
7611 * include/locale.h (__uselocale): Add libc_hidden_proto.
7612 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7613
f6bf9e59
JJ
7614 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7615 gettimeofday.
7616
4a44ce79
UD
76172007-02-01 Ulrich Drepper <drepper@redhat.com>
7618
7619 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7620 returning.
7621 (PTR_DEMANGLE): Real definition now that it's not the same as
7622 PRT_MANGLE anymore.
7623 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7624
7625 * string/strerror_l.c: New file.
7626 * string/Makefile (routines): Add strerror_l.
7627 * string/string.h: Declare strerror_l.
7628 * string/Versions: Export strerror_l for GLIBC_2.6.
7629
58a2d52e
UD
76302007-01-31 Ulrich Drepper <drepper@redhat.com>
7631
7632 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7633 as parameter. Construct request record. Try sending request
7634 before the first poll use, it usually succeeds. Adjust all
7635 callers.
7636 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 7637 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 7638
1a77d37f
JJ
76392007-01-31 Jakub Jelinek <jakub@redhat.com>
7640
7641 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7642 from return value.
7643 * nscd/nscd_helper.c: Include string.h.
7644 (__nscd_cache_search): Remove const qualifier from return value.
7645 On strict alignment architectures check hash entry and data head
7646 alignment.
7647 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7648 mmapped data during GC cycle contains garbage. If
7649 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7650 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7651 dropped to 0.
7652 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7653 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7654 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7655 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7656 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7657
ee314200
UD
76582007-01-30 Ulrich Drepper <drepper@redhat.com>
7659
7660 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7661
14c8bf3b
UD
76622007-01-26 Ulrich Drepper <drepper@redhat.com>
7663
7664 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7665 names not numbers in cfi_*.
7666
d2708e67
AJ
76672007-01-26 Andreas Jaeger <aj@suse.de>
7668
7669 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 7670 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
7671 Correct values of PER_HPUX and PER_OSF4.
7672
7fbc8784
UD
76732007-01-24 Ulrich Drepper <drepper@redhat.com>
7674
8aaf53ee 7675 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
7676 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7677 * malloc/mtrace.c: Revert last change.
7678 * posix/wordexp.c: Likewise.
7679
9d6cde3d
UD
76802007-01-24 Jakub Jelinek <jakub@redhat.com>
7681
7682 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7683 and __geode__ to the list of i486+ CPUs.
7684 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7685
c1f0486a
UD
76862007-01-23 Ulrich Drepper <drepper@redhat.com>
7687
7688 * stdio-common/_itoa.c: Include <limits.h>.
7689 * stdio-common/_itowa.c: Likewise.
7690
6cae3957
UD
76912007-01-22 Ulrich Drepper <drepper@redhat.com>
7692
765bbb24
UD
7693 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7694 platforms.
7695 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7696 64-bit platforms.
7697 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7698 possible.
7699 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7700 if possible.
7701
6cae3957
UD
7702 [BZ #3902]
7703 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7704 * stdio-common/Makefile (tests): Add bug17.
7705 * stdio-common/bug17.c: New file.
7706
ddaafd04
UD
77072007-01-19 Ulrich Drepper <drepper@redhat.com>
7708
7709 * iconvdata/brf.c: New file.
439201de
UD
7710 * iconvdata/testdata/BRF: New file.
7711 * iconvdata/testdata/BRF..UTF8: New file.
7712 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
7713 * iconvdata/Makefile: Add rules to build BRF.
7714 * iconvdata/TESTS: Add BRF entry.
7715 * iconvdata/gconv-modules: Likewise.
7716 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 7717
9e6e344e
UD
77182007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7719
7720 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7721 type `long long int', not `long int'.
7722 (wcstoq): Likewise.
7723
299f7b0f
UD
77242007-01-18 Ulrich Drepper <drepper@redhat.com>
7725
7726 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7727 of values on 64-bit platforms which are too large.
7728
cd8127cc
JJ
77292007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7730 Joe Kerian <jkerian@us.us.ibm.com>
7731
7732 [BZ #2749]
7733 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7734 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7735 (__copysignl): Use signbit() for comparison.
7736 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7737 SET_LDOUBLE_WORDS64.
7738
7739 [BZ #2423, #2749]
7740 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7741 (__ceill): Remove calls to fegetround(), fesetround().
7742 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7743 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7744 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7745
b3acfdf7
JJ
77462007-01-17 Jakub Jelinek <jakub@redhat.com>
7747
4a2e03c6
JJ
7748 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7749
b3acfdf7
JJ
7750 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7751
1476bce6
UD
77522007-01-17 Ulrich Drepper <drepper@redhat.com>
7753
7754 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7755 demangle pointer.
7756 * csu/libc-start.c: Likewise.
7757
d78bce1c
UD
77582007-01-16 Ulrich Drepper <drepper@redhat.com>
7759
7760 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7761 really work anyway.
7762
1bd79025
UD
77632007-01-15 Ulrich Drepper <drepper@redhat.com>
7764
000b027e
UD
7765 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7766 users.
7767 (handle_request): Remove unnecessary tests.
7768
1bd79025
UD
7769 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7770
d68f5d2c
JJ
77712007-01-15 Jakub Jelinek <jakub@redhat.com>
7772
7773 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7774 workbits in semi-raw fraction.
7775
7776 * math/test-misc.c: Add new tests.
7777
77782007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7779
7780 * math/basic-test.c: Include test-skeleton.c.
7781 (TEST_TRUNC): Define.
7782 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7783 (main): Rename to ...
7784 (do_test): ...this. Run new tests.
7785 (TEST_FUNCTION): Define.
7786
77872006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7788 Joe Kerian <jkerian@us.us.ibm.com>
7789
7790 [BZ #2749]
7791 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7792 handling for high words.
7793 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7794 and overflow for infinity.
7795
4e35ef2c
UD
77962007-01-15 Ulrich Drepper <drepper@redhat.com>
7797
2a1dea97
UD
7798 * nscd/connections.c (handle_request): Add a __builtin_expect.
7799
9691d83c
UD
7800 * nscd/connections.c (serv2db): Change type into structure which
7801 also says whether this is a request for data. Renamed to
7802 servinfo. All users changed.
7803 (handle_request): Much simpler test whether we should search the cache.
7804
49ee6d79
UD
7805 * nscd/connections.c (handle_request): Fix thinko in selinux test
7806 invocation.
7807
4e35ef2c
UD
7808 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7809 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7810 it before getting dl_load_lock and then relock.
7811 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7812 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7813 case we unlocked the scope.
7814 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7815 _dl_lookup_symbol_x in case we locked the scope.
7816 (_dl_profile_fixup): Likewise.
7817 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7818 set DL_LOOKUP_SCOPE_LOCK.
7819
23691ab2
UD
78202007-01-13 Ulrich Drepper <drepper@redhat.com>
7821
fb453d08
UD
7822 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7823 CFLAGS-getsrvbynpt_r.c.
7824 * nscd/getsrvbynm_r.c: New file.
7825 * nscd/getsrvbypt_r.c: New file.
7826 * nscd/nscd_getserv_r.c: New file.
7827 * nscd/servicescache.c: New file.
7828 * nscd/Makefile (routines): Add nscd_getserv_r.
7829 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7830 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7831 CFLAGS-getsrvbypt_r.c.
7832 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7833 table. Add entries for services database.
7834 * nscd/connections.c (serv2str): Mark as const. Add entries for
7835 services database.
7836 (dbs): Add .reset_res and servdb initialization.
7837 (serv2db): Add entries for services database.
7838 (verify_persistent_db): Accept dbnr == servdb.
7839 (invalidate_cache): Rewrite database name recognition to use a table.
7840 Call res_init() if .reset_res is set for database.
7841 (handle_request): Add code to handle services database.
7842 * nscd/gai.c: Don't define __getservbyname_r.
7843 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7844 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7845 (serv_response_header): Define.
7846 (struct datahead): Add serv_response_header member.
7847 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7848 using table.
7849 * nscd/nscd.conf: Add entries for services database.
7850 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7851 Declare serv_iov_disabled.
7852 Declare addservbyname, readdservbyname, addservbyport, and
7853 readdservbyport.
7854 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7855 (find_db): Fix error message.
7856 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7857 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7858 * nscd/selinux.c (perms): Add entries for services database.
7859 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7860 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7861
7862 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7863 * nscd/hstcache.c: Likewise.
7864 * nscd/pwdcache.c: Likewise.
7865
b21fa963
UD
7866 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7867 computation of keylen.
7868
23691ab2
UD
7869 * include/string.h: Only redefine strndupa if this is really for
7870 libc code.
7871
8980796b
UD
78722007-01-12 Ulrich Drepper <drepper@redhat.com>
7873
4a4a65f2
UD
7874 * nscd/nscd_gethst_r.c: Minor cleanups.
7875
43397eaf
UD
7876 * nscd/connections.c (handle_request): Check selinux permissions
7877 for all non-admin commands.
7878
038a1a9f
UD
7879 * sysdeps/i386/i486/bits/atomic.h: Define
7880 atomic_compare_and_exchange_val_acq,
7881 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7882 using __sync_* built-ins for gcc >= 4.1.
7883 * sysdeps/x86_64/bits/atomic.h: Likewise.
7884
8980796b
UD
7885 [BZ #3840]
7886 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7887 and .oS.d files.
7888
32c075e1
JJ
78892007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7890
7891 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7892 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7893 (do_test): Check errno and exit(0) if ENOSYS.
7894
78952007-01-11 Jakub Jelinek <jakub@redhat.com>
7896
7897 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7898 thousands separators.
7899 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7900 * stdlib/tst-strtod4.c: New test.
7901
7902 [BZ #3855]
7903 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7904 hexadecimal digit should accept just the initial 0.
7905 * stdlib/tst-strtod2.c (tests): New variable.
7906 (do_test): Run several tests rather than just one.
7907
11bf311e 79082007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 7909
11bf311e
UD
7910 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7911 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 7912
11bf311e 79132007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 7914
11bf311e
UD
7915 * io/fts.c: Make sure fts_cur is always valid after return from
7916 fts_read.
7917 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 7918
11bf311e 79192006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 7920
11bf311e
UD
7921 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7922 (R_MIPS_NUM): Bump by 1.
32c075e1 7923
11bf311e 79242007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 7925
11bf311e
UD
7926 * posix/execvp.c: Include alloca.h.
7927 (allocate_scripts_argv): Renamed to...
7928 (scripts_argv): ... this. Don't allocate buffer here nor count
7929 arguments.
7930 (execvp): Use alloca if possible.
7931 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7932 * posix/tst-vfork3.c: New test.
32c075e1
JJ
7933
79342007-01-03 Ulrich Drepper <drepper@redhat.com>
7935
7936 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 7937 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 7938
11bf311e 79392007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 7940
11bf311e
UD
7941 * posix/getconf.c: Update copyright year.
7942 * nss/getent.c: Likewise.
7943 * iconv/iconvconfig.c: Likewise.
7944 * iconv/iconv_prog.c: Likewise.
7945 * elf/ldconfig.c: Likewise.
7946 * catgets/gencat.c: Likewise.
7947 * csu/version.c: Likewise.
7948 * elf/ldd.bash.in: Likewise.
7949 * elf/sprof.c (print_version): Likewise.
7950 * locale/programs/locale.c: Likewise.
7951 * locale/programs/localedef.c: Likewise.
7952 * nscd/nscd.c (print_version): Likewise.
7953 * debug/xtrace.sh: Likewise.
7954 * malloc/memusage.sh: Likewise.
7955 * malloc/mtrace.pl: Likewise.
7956 * debug/catchsegv.sh: Likewise.
64a0aa0f 7957
11bf311e 79582006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 7959
11bf311e
UD
7960 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7961 attempts.
48576885 7962
11bf311e 79632006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 7964
11bf311e 7965 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 7966
33c6de58
UD
79672006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7968
7969 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7970 blacklist the group till after we look it up.
7971
fc242bef
UD
79722006-12-21 Ulrich Drepper <drepper@redhat.com>
7973
7974 * include/atomic.h (atomic_forced_read): New macro.
7975
11bf311e
UD
79762006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7977
7978 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7979
a12dcecc
UD
79802006-12-19 Jakub Jelinek <jakub@redhat.com>
7981
11bf311e
UD
7982 * nss/getXXbyYY_r.c: Include atomic.h.
7983 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7984 add atomic_write_barrier () in between.
7985
a12dcecc
UD
7986 * stdlib/Makefile (tests): Add tst-makecontext.
7987 * stdlib/tst-makecontext.c: New test.
7988
7989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7990 (__makecontext): Don't realign uc_mcontext.uc_regs.
7991
11bf311e 79922006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 7993
11bf311e
UD
7994 * elf/dl-support.c: Include dl-procinfo.h.
7995 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7996 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7997 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7998 Define.
7999 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8000 hardcoded constants.
8001 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8002 PPC_PLATFORM_* macros for array designators.
594d423a 8003
11bf311e 80042006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 8005
11bf311e
UD
8006 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8007 names to the beginning.
8008 (_dl_powerpc_platforms): Add "power6x".
8009 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8010 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8011 (_DL_PLATFORMS_COUNT): Increase.
8012 (_dl_string_platform): Handle power6x case.
8013 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8014 PPC_FEATURE_POWER6_EXT): Define.
8015 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 8016
5bcba0ed
UD
80172006-12-18 Jakub Jelinek <jakub@redhat.com>
8018
8019 [BZ #3747]
8020 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 8021 [-2^31 .. 2^31) range.
5bcba0ed
UD
8022 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8023 targets.
8024 * stdlib/tst-rand48-2.c: New test.
8025 * stdlib/Makefile (tests): Add tst-rand48-2.
8026
9e1444fc
UD
80272006-12-14 Jakub Jelinek <jakub@redhat.com>
8028
8029 * misc/tst-pselect.c (do_test): Fix sigblock argument.
8030
36775704
UD
80312006-12-14 Ulrich Drepper <drepper@redhat.com>
8032
8033 * misc/tst-pselect.c (do_test): Make sure the helper process is
8034 terminating when the test is aborted.
8035
1e88bd0f
UD
80362006-12-13 Ulrich Drepper <drepper@redhat.com>
8037
11bf311e
UD
8038 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8039 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8040 Handle relatime mount option.
8041
1e88bd0f
UD
8042 [BZ #2337]
8043 * libio/Makefile (tests): Add tst-setvbuf1.
8044 * libio/tst-setvbuf1.c: New file.
8045
80462006-12-08 Jakub Jelinek <jakub@redhat.com>
8047
8048 [BZ #2337]
8049 * libio/genops.c (__uflow): Fix a typo.
8050 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8051 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
8052 the narrow buffer size.
8053
80542006-11-24 Jakub Jelinek <jakub@redhat.com>
8055
8056 [BZ #2337]
8057 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8058 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8059 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8060 in _flags.
8061 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8062 _IO_wstr_finish): Likewise.
8063 * libio/wmemstream.c (open_wmemstream): Likewise.
8064 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8065 even for wide streams.
8066
11bf311e 80672006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 8068
11bf311e
UD
8069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8070 kernel-features.h.
8071
80722006-12-11 Ulrich Drepper <drepper@redhat.com>
8073
8074 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8075 separators also if no non-zero digits found.
8076 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 8077
d117c1ce
UD
80782006-12-09 Ulrich Drepper <drepper@redhat.com>
8079
f85fb97b
UD
8080 [BZ #3632]
8081 * include/features.h: Fix comment about default value for
8082 _POSIX_C_SOURCE.
8083
11bf311e
UD
8084 [BZ #3664]
8085 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8086 empty parsed strings.
8087 * stdlib/Makefile (tests): Add tst-strtod2.
8088 * stdlib/tst-strtod2.c: New file.
8089
8090 [BZ #3673]
8091 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8092 computation.
8093 * stdlib/Makefile (tests): Add tst-atof2.
8094 * stdlib/tst-atof2.c: New file.
8095
8096 [BZ #3674]
8097 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8098 correctly if removing trailing zero of hex-float.
8099 * stdlib/Makefile (tests): Add tst-atof1.
8100 * stdlib/tst-atof1.c: New file.
8101
a822d9f4
UD
81022006-12-09 Jakub Jelinek <jakub@redhat.com>
8103
11bf311e
UD
8104 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8105 Start searching for next comma at p rather than rest.
8106 * misc/Makefile (tests): Add tst-mntent2.
8107 * misc/tst-mntent2.c: New test.
8108
a822d9f4
UD
8109 * misc/getusershell.c (initshells): Check for integer overflows.
8110 Make strings buffer one bigger as fgets always succeeds when second
8111 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 8112 / as shell.
f0d5e1f6 8113
11bf311e 81142006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 8115
11bf311e
UD
8116 * malloc/memusage.c: Handle realloc with new size of zero and
8117 non-NULL pointer correctly.
8118 (me): Really write first record twice.
8119 (struct entry): Make format bi-arch safe.
8120 (dest): Write out more realloc statistics.
8121 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 8122
11bf311e 81232006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 8124
11bf311e 8125 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 8126
f0d5e1f6
UD
81272006-12-04 Jakub Jelinek <jakub@redhat.com>
8128
8129 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8130 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8131 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8132 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8133 ENOTTY.
8134 * io/Makefile: Add rules to build and run tst-ttyname_r test.
8135 * io/tst-ttyname_r.c: New test.
8136
11bf311e 81372006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 8138
11bf311e 8139 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 8140
11bf311e 81412006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 8142
11bf311e
UD
8143 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8144 jump table entries.
8145
81462006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
8147
8148 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8149 `clone' function to ensure proper unwinding stop of gdb.
8150 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8151
81522006-12-01 Ulrich Drepper <drepper@redhat.com>
8153
8154 * nscd/nscd.init: Remove obsolete and commented-out -S option
8155 handling.
8156
81572006-11-23 Jakub Jelinek <jakub@redhat.com>
8158
8159 [BZ #3514]
8160 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8161
8162 [BZ #3515]
8163 * manual/string.texi (strtok): Remove duplicate paragraph.
8164
81652006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8166
8167 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8168 libgcc not supporting `rflags' unwinding (register # >= 17).
8169
81702006-11-30 Jakub Jelinek <jakub@redhat.com>
8171
8172 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8173 succeeded.
8174
81752006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
8176 Jakub Jelinek <jakub@redhat.com>
8177 Jan Kratochvil <jan.kratochvil@redhat.com>
8178
8179 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8180 unwind information.
8181 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8182 'restore_rt' even in the 'signal' directory.
8183 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 8184
b1a758f3
UD
81852006-11-27 Jakub Jelinek <jakub@redhat.com>
8186
8187 [BZ #3559]
8188 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
8189 malloc crashed. Don't allocate memory unnecessarily in each
8190 loop.
b1a758f3 8191
11bf311e 81922006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 8193
11bf311e 8194 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 8195
11bf311e 81962006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 8197
11bf311e 8198 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 8199
11bf311e 82002006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 8201
11bf311e
UD
8202 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8203 __sysconf only after having tried to call getgroups32.
36c0a636 8204
11bf311e 82052006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 8206
11bf311e
UD
8207 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8208 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 8209
11bf311e 82102006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 8211
11bf311e
UD
8212 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8213 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8214 (signmask): Add .size directive.
8215 (othermask): Add .type directive.
bef8927a 8216
11bf311e 82172006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 8218
11bf311e 8219 * po/nl.po: Update from translation team.
854d1124 8220
11bf311e 8221 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 8222
11bf311e 82232006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 8224
11bf311e
UD
8225 * nss/nss_files/files-alias.c (get_next_alias): Set line back
8226 to first_unused after parsing :include: file.
5c2af134 8227
32c075e1 82282006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 8229
11bf311e
UD
8230 * timezone/africa: Update from tzdata2006o.
8231 * timezone/antarctica: Likewise.
8232 * timezone/asia: Likewise.
8233 * timezone/australasia: Likewise.
8234 * timezone/backward: Likewise.
8235 * timezone/europe: Likewise.
8236 * timezone/iso3166.tab: Likewise.
8237 * timezone/northamerica: Likewise.
8238 * timezone/southamerica: Likewise.
8239 * timezone/zone.tab: Likewise.
8240
8241 * time/tzfile.c (__tzfile_read): Extend to handle new file format
8242 on machines with 64-bit time_t.
8243
8244 * timezone/checktab.awk: Update from tzcode2006o.
8245 * timezone/ialloc.c: Likewise.
8246 * timezone/private.h: Likewise.
8247 * timezone/scheck.c: Likewise.
8248 * timezone/tzfile.h: Likewise.
8249 * timezone/tzselect.ksh: Likewise.
8250 * timezone/zdump.c: Likewise.
8251 * timezone/zic.c: Likewise.
8252
8253 [BZ #3483]
8254 * elf/ldconfig.c (main): Call setlocale and textdomain.
8255 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8256
8257 [BZ #3480]
8258 * manual/argp.texi: Fix typos.
8259 * manual/charset.texi: Likewise.
8260 * manual/errno.texi: Likewise.
8261 * manual/filesys.texi: Likewise.
8262 * manual/lang.texi: Likewise.
8263 * manual/maint.texi: Likewise.
8264 * manual/memory.texi: Likewise.
8265 * manual/message.texi: Likewise.
8266 * manual/resource.texi: Likewise.
8267 * manual/search.texi: Likewise.
8268 * manual/signal.texi: Likewise.
8269 * manual/startup.texi: Likewise.
8270 * manual/stdio.texi: Likewise.
8271 * manual/sysinfo.texi: Likewise.
8272 * manual/syslog.texi: Likewise.
8273 * manual/time.texi: Likewise.
8274 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8275
8276 [BZ #3465]
8277 * sunrpc/clnt_raw.c: Minimal message improvements.
8278 * sunrpc/pm_getmaps.c: Likewise.
8279 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8280 * nis/nis_print_group_entry.c: Likewise.
8281 * locale/programs/repertoire.c: Likewise.
8282 * locale/programs/charmap.c: Likewise.
8283 * malloc/memusage.sh: Likewise.
8284 * elf/dl-deps.c: Likewise.
8285 * locale/programs/ld-collate.c: Likewise.
8286 * libio/vswprintf.c: Likewise.
8287 * malloc/memusagestat.c: Likewise.
8288 * sunrpc/auth_unix.c: Likewise.
8289 * sunrpc/rpc_main.c: Likewise.
8290 * nscd/cache.c: Likewise.
8291 * locale/programs/repertoire.c: Unify output messages.
8292 * locale/programs/charmap.c: Likewise.
8293 * locale/programs/ld-ctype.c: Likewise.
8294 * locale/programs/ld-monetary.c: Likewise.
8295 * locale/programs/ld-numeric.c: Likewise.
8296 * locale/programs/ld-time.c: Likewise.
8297 * elf/ldconfig.c: Likewise.
8298 * nscd/selinux.c: Likewise.
8299 * elf/cache.c: Likewise.
8300 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8301
5c2af134
UD
8302 [BZ #3451]
8303 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8304 change atomic.
8305 (ceil): Likewise.
8306
11bf311e
UD
83072006-11-10 Jakub Jelinek <jakub@redhat.com>
8308
8309 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8310 if N is one bigger than return value.
8311 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8312 and l1 last arguments, if buf is defined, verify the return value
8313 equals to strlen (buf) and verify no byte beyond passed length
8314 is modified.
8315
83162006-11-10 Ulrich Drepper <drepper@redhat.com>
8317
8318 * po/sv.po: Update from translation team.
8319
37afcf79
UD
83202006-11-09 Ulrich Drepper <drepper@redhat.com>
8321
8322 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8323 noinline attribute.
8324
83252006-11-10 Jakub Jelinek <jakub@redhat.com>
8326
8327 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8328 noinline attribute.
8329
11bf311e
UD
8330 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8331 Use __new_sys_siglist instead of _sys_siglist_internal as
8332 second macro argument.
8333 (_old_sys_siglist): Use declare_symbol_alias macro instead of
8334 strong_alias.
2692deea 8335
11bf311e
UD
83362006-11-09 Ulrich Drepper <drepper@redhat.com>
8337
8338 [BZ #3493]
8339 * posix/unistd.h (sysconf): Remove const attribute.
8340
8341 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8342 temporary or deprecated addresses.
8343 Patch by Sridhar Samudrala <sri@us.ibm.com>.
8344
8345 * string/Makefile (tests): Add tst-strxfrm2.
8346 * string/tst-strxfrm2.c: New file.
8347
83482006-10-09 Jakub Jelinek <jakub@redhat.com>
8349
8350 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8351 rather than r->r_brk.
2692deea
UD
8352
83532006-11-08 Jakub Jelinek <jakub@redhat.com>
8354
11bf311e
UD
8355 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8356 optimization even if needed > n.
8357
2692deea
UD
8358 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8359 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8360 return false, otherwise return true.
8361 (cache_rpath): Return decompose_rpath return value.
8362
11bf311e
UD
83632006-11-07 Jakub Jelinek <jakub@redhat.com>
8364
8365 * include/libc-symbols.h (declare_symbol): Rename to...
8366 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
8367 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8368 .size directive.
8369 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8370 changes.
8371 * sysdeps/gnu/siglist.c: Likewise.
8372
83732006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
8374
8375 * sysdeps/powerpc/fpu/bits/mathinline.h
8376 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8377 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
8378
83792006-11-05 Ulrich Drepper <drepper@redhat.com>
8380
8381 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8382 Update handling of cache descriptor 0x49 for new models.
8383 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8384 Likewise.
8385
9666e36c
UD
83862006-11-02 Jakub Jelinek <jakub@redhat.com>
8387
8388 * malloc/memusage.c (dest): Reset not_me back to false after
8389 printing statistics.
8390
11bf311e
UD
83912006-11-02 Ulrich Drepper <drepper@redhat.com>
8392
8393 * configure.in: Work around ld --help change and avoid -z relro
8394 test completely if the architecture doesn't care about security.
8395
83962006-11-01 Ulrich Drepper <drepper@redhat.com>
8397
8398 * po/sv.po: Update from translation team.
8399
84002006-10-31 Ulrich Drepper <drepper@redhat.com>
8401
8402 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8403 generate compatibility version.
8404
84052006-10-29 Ulrich Drepper <drepper@redhat.com>
8406
8407 * configure.in: Relax -z relro requirement a bit.
8408
8409 * po/sv.po: Update from translation team.
8410
84112006-10-29 Jakub Jelinek <jakub@redhat.com>
8412
8413 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8414 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8415 * elf/dl-close.c (_dl_close_worker): Likewise.
8416 * elf/dl-open.c (_dl_open_worker): Likewise.
8417 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8418
b2369ca3
UD
84192006-10-27 Ulrich Drepper <drepper@redhat.com>
8420
11bf311e
UD
8421 * configure.in: Require assembler support for visibility, compiler
8422 support for visibility and aliases, linker support for various -z
8423 options.
8424 * Makeconfig: Remove conditional code which now is unnecessary.
8425 * config.h.in: Likewise.
8426 * config.make.in: Likewise.
8427 * dlfcn/Makefile: Likewise.
8428 * elf/Makefile: Likewise.
8429 * elf/dl-load.c: Likewise.
8430 * elf/rtld.c: Likewise.
8431 * include/libc-symbols.h: Likewise.
8432 * include/stdio.h: Likewise.
8433 * io/Makefile: Likewise.
8434 * io/fstat.c: Likewise.
8435 * io/fstat64.c: Likewise.
8436 * io/fstatat.c: Likewise.
8437 * io/fstatat64.c: Likewise.
8438 * io/lstat.c: Likewise.
8439 * io/lstat64.c: Likewise.
8440 * io/mknod.c: Likewise.
8441 * io/mknodat.c: Likewise.
8442 * io/stat.c: Likewise.
8443 * io/stat64.c: Likewise.
8444 * libio/stdio.c: Likewise.
8445 * nscd/Makefile: Likewise.
8446 * stdlib/Makefile: Likewise.
8447 * stdlib/atexit.c: Likewise.
8448 * sysdeps/generic/ldsodefs.h: Likewise.
8449 * sysdeps/i386/dl-machine.h: Likewise.
8450 * sysdeps/i386/sysdep.h: Likewise.
8451 * sysdeps/i386/i686/memcmp.S: Likewise.
8452 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8453 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8454 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8455
8456 * Makerules: USE_TLS support is now default.
8457 * tls.make.c: Likewise.
8458 * csu/Versions: Likewise.
8459 * csu/libc-start.c: Likewise.
8460 * csu/libc-tls.c: Likewise.
8461 * csu/version.c: Likewise.
8462 * dlfcn/dlinfo.c: Likewise.
8463 * elf/dl-addr.c: Likewise.
8464 * elf/dl-cache.c: Likewise.
8465 * elf/dl-close.c: Likewise.
8466 * elf/dl-iteratephdr.c: Likewise.
8467 * elf/dl-load.c: Likewise.
8468 * elf/dl-lookup.c: Likewise.
8469 * elf/dl-object.c: Likewise.
8470 * elf/dl-open.c: Likewise.
8471 * elf/dl-reloc.c: Likewise.
8472 * elf/dl-support.c: Likewise.
8473 * elf/dl-sym.c: Likewise.
8474 * elf/dl-sysdep.c: Likewise.
8475 * elf/dl-tls.c: Likewise.
8476 * elf/ldconfig.c: Likewise.
8477 * elf/rtld.c: Likewise.
8478 * elf/tst-tls-dlinfo.c: Likewise.
8479 * elf/tst-tls1.c: Likewise.
8480 * elf/tst-tls10.h: Likewise.
8481 * elf/tst-tls14.c: Likewise.
8482 * elf/tst-tls2.c: Likewise.
8483 * elf/tst-tls3.c: Likewise.
8484 * elf/tst-tls4.c: Likewise.
8485 * elf/tst-tls5.c: Likewise.
8486 * elf/tst-tls6.c: Likewise.
8487 * elf/tst-tls7.c: Likewise.
8488 * elf/tst-tls8.c: Likewise.
8489 * elf/tst-tls9.c: Likewise.
8490 * elf/tst-tlsmod1.c: Likewise.
8491 * elf/tst-tlsmod13.c: Likewise.
8492 * elf/tst-tlsmod13a.c: Likewise.
8493 * elf/tst-tlsmod14a.c: Likewise.
8494 * elf/tst-tlsmod2.c: Likewise.
8495 * elf/tst-tlsmod3.c: Likewise.
8496 * elf/tst-tlsmod4.c: Likewise.
8497 * elf/tst-tlsmod5.c: Likewise.
8498 * elf/tst-tlsmod6.c: Likewise.
8499 * include/errno.h: Likewise.
8500 * include/link.h: Likewise.
8501 * include/tls.h: Likewise.
8502 * locale/global-locale.c: Likewise.
8503 * locale/localeinfo.h: Likewise.
8504 * malloc/arena.c: Likewise.
8505 * malloc/hooks.c: Likewise.
8506 * malloc/malloc.c: Likewise.
8507 * resolv/Versions: Likewise.
8508 * sysdeps/alpha/dl-machine.h: Likewise.
8509 * sysdeps/alpha/libc-tls.c: Likewise.
8510 * sysdeps/generic/ldsodefs.h: Likewise.
8511 * sysdeps/generic/tls.h: Likewise.
8512 * sysdeps/i386/dl-machine.h: Likewise.
8513 * sysdeps/ia64/dl-machine.h: Likewise.
8514 * sysdeps/ia64/libc-tls.c: Likewise.
8515 * sysdeps/mach/hurd/fork.c: Likewise.
8516 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8517 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8518 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8519 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8520 * sysdeps/s390/libc-tls.c: Likewise.
8521 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8522 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8523 * sysdeps/sh/dl-machine.h: Likewise.
8524 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8525 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8526 * sysdeps/x86_64/dl-machine.h: Likewise.
8527
131c4428
UD
8528 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8529 split out locking and parameter checking.
8530 (_dl_close): Call _dl_close_worker after locking and checking.
8531 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8532 _dl_close.
ffd0e1b7
UD
8533 * elf/Makefile: Add rules to build and run tst-thrlock.
8534 * elf/tst-thrlock.c: New file.
131c4428 8535
11bf311e
UD
8536 [BZ #3426]
8537 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8538 reality.
8539
b2369ca3
UD
8540 [BZ #3429]
8541 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 8542 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
8543 the asserts inside the lock region.
8544 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8545
11bf311e
UD
85462006-10-27 Jakub Jelinek <jakub@redhat.com>
8547
8548 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8549 argument.
8550 (_dl_lookup_symbol_x): Adjust caller.
8551
8552 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8553 _ns_global_scope.
8554 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8555
8556 * elf/dl-libc.c: Revert l_scope name changes.
8557 * elf/dl-load.c: Likewise.
8558 * elf/dl-object.c: Likewise.
8559 * elf/rtld.c: Likewise.
8560 * elf/dl-close.c (_dl_close): Likewise.
8561 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8562 always use __rtld_mrlock_{change,done}. Always free old scope list
8563 here if not l_scope_mem.
8564 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8565 change. Never free scope list here. Just __rtld_mrlock_lock before
8566 the lookup and __rtld_mrlock_unlock it after the lookup.
8567 * elf/dl-sym.c: Likewise.
8568 * include/link.h (struct r_scoperec): Remove.
8569 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8570 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8571
85722006-10-25 Ulrich Drepper <drepper@redhat.com>
8573
8574 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8575
85762006-10-18 Ulrich Drepper <drepper@redhat.com>
8577
8578 * configure.in: Disable building profile libraries by default.
8579
609cf614
UD
85802006-10-17 Jakub Jelinek <jakub@redhat.com>
8581
8582 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8583 as signed longs, check for x_base + pos overflow.
8584 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8585 * sunrpc/tst-xdrmem2.c: New test.
8586
11bf311e
UD
85872006-10-18 Ulrich Drepper <drepper@redhat.com>
8588
8589 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8590 _dl_lookup_symbol_x code.
8591
85922006-10-17 Jakub Jelinek <jakub@redhat.com>
8593
8594 * elf/dl-runtime.c: Include sysdep-cancel.h.
8595 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8596 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8597 instead of catomic_* macros.
8598 * elf/dl-sym.c: Include sysdep-cancel.h.
8599 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8600 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8601 * elf/dl-close.c: Include sysdep-cancel.h.
8602 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8603 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8604 * elf/dl-open.c: Include sysdep-cancel.h.
8605 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8606 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8607
86082006-10-17 Jakub Jelinek <jakub@redhat.com>
8609
8610 [BZ #3313]
8611 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8612 fastbin rather than end of fastbin array.
8613
86142006-10-18 Ulrich Drepper <drepper@redhat.com>
8615
8616 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8617 body macro.
8618 * sysdeps/x86_64/bits/atomic.h
8619 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8620 (catomic_decrement): Use correct body macro.
8621
86222006-10-17 Jakub Jelinek <jakub@redhat.com>
8623
8624 * include/atomic.h: Add a unique prefix to all local variables
8625 in macros.
8626 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8627
4a85a8ee
UD
86282006-10-16 Ulrich Drepper <drepper@redhat.com>
8629
8630 [BZ #3369]
8631 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8632 and 7.
8633
11bf311e
UD
86342006-10-14 Ulrich Drepper <drepper@redhat.com>
8635
8636 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8637
ff8d96be
UD
86382006-10-13 Ulrich Drepper <drepper@redhat.com>
8639
11bf311e
UD
8640 [BZ #3313]
8641 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8642 determine highest fast bin to consolidate, always look into all of
8643 them.
8644 (do_check_malloc_state): Only require for empty bins for large
8645 sizes in main arena.
8646
8647 * libio/stdio.h: Add more __wur attributes.
8648
ff8d96be
UD
8649 * elf/dl-minimal.c (realloc): Optimize last patch.
8650
90a0991a
UD
86512006-10-12 Richard Sandiford <richard@codesourcery.com>
8652
8653 [BZ #3352]
8654 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8655 and use memcpy() if it does.
ff8d96be 8656
11bf311e
UD
86572006-11-12 Andreas Jaeger <aj@suse.de>
8658
8659 [BZ #2510]
8660 * manual/search.texi (Hash Search Function): Clarify.
8661 (Array Search Function): Clarify.
8662
86632006-11-12 Joseph Myers <joseph@codesourcery.com>
8664
8665 [BZ #2830]
8666 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8667 shifting.
8668 * math/atest-exp2.c (read_mpn_hex): Likewise.
8669 * math/atest-sincos.c (main): Likewise.
8670
37fb7595
UD
86712006-10-11 Ulrich Drepper <drepper@redhat.com>
8672
11bf311e
UD
8673 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8674 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8675 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8676 version GLIBC_2.6.
8677 * Versions.def: Add GLIBC_2.6 for libc.
8678
46c38bd7
UD
8679 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8680
11bf311e
UD
8681 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8682
86832006-10-11 Jakub Jelinek <jakub@redhat.com>
8684
8685 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8686
8687 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8688
8689 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8690 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8691
86922006-10-11 Ulrich Drepper <drepper@redhat.com>
8693
8694 * include/atomic.c: Define catomic_* operations.
8695 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8696 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8697 * malloc/memusage.c: Likewise.
8698 * gmon/mcount.c: Likewise.
8699 * elf/dl-close.c: Likewise.
8700 * elf/dl-open.c: Likewise.
8701 * elf/dl-profile.c: Likewise.
8702 * elf/dl-sym.c: Likewise.
8703 * elf/dl-runtime.c: Likewise.
8704 * elf/dl-fptr.c: Likewise.
8705 * resolv/res_libc.c: Likewise.
8706
2a6ee549
UD
87072006-10-10 Ulrich Drepper <drepper@redhat.com>
8708
8709 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8710 components which lack them.
8711
8712 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8713 at least one entry consisting of the parameter concatenated with
8714 the domain.
8715
11bf311e 87162006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 8717
11bf311e
UD
8718 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8719 * sysdeps/mach/hurd/futimes.c: Likewise.
8720 * sysdeps/mach/hurd/lutimes.c: Likewise.
8721
87222006-10-09 Ulrich Drepper <drepper@redhat.com>
8723 Jakub Jelinek <jakub@redhat.com>
8724
8725 Implement reference counting of scope records.
8726 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8727 from the list in objects which remain. Always allocate new scope
8728 record.
8729 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8730 don't resize, allocate a new one.
8731 * elf/dl-runtime.c: Update reference counters before using a scope
8732 array.
8733 * elf/dl-sym.c: Likewise.
8734 * elf/dl-libc.c: Adjust for l_scope name change.
8735 * elf/dl-load.c: Likewise.
8736 * elf/dl-object.c: Likewise.
8737 * elf/rtld.c: Likewise.
8738 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8739 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8740 Add l_scoperec_lock.
8741 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8742 * sysdeps/generic/rtld-lowlevel.h: New file.
8743
8744 * include/atomic.h: Rename atomic_and to atomic_and_val and
8745 atomic_or to atomic_or_val. Define new macros atomic_and and
8746 atomic_or which do not return values.
8747 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8748 Various cleanups.
8749 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8750
8751 * po/sv.po: Update from translation team.
8752
87532006-10-07 Ulrich Drepper <drepper@redhat.com>
8754
8755 * Versions.def: Add GLIBC_2.6 to libpthread.
8756
8757 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8758 (versioned_symbol): Likewise.
8759 (compat_symbol): Likewise.
8760
8761 * po/tr.po: Update from translation team.
feb87ad1 8762
4df92d57
UD
87632006-10-06 Ulrich Drepper <drepper@redhat.com>
8764
11bf311e
UD
8765 * nis/Banner: Removed. It's been integral part forever and the
8766 author info is incomplete anyway.
8767 * libio/Banner: Likewise.
8768
4df92d57
UD
8769 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8770 code, make sure the nis_freeresult call doesn't crash and that the
8771 result is reported correctly.
8772
68361572
UD
87732006-09-27 Jakub Jelinek <jakub@redhat.com>
8774
8775 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8776 when callback is NULL.
8777
8778 * nis/Versions (libnss_nisplus): Add
8779 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8780 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8781 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8782 _nss_create_tablename): Rename to...
8783 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8784 ... these. No longer static.
8785 (internal_setgrent): Adjust users.
8786 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8787 Don't use locking around _nss_grp_create_tablename call.
8788 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8789
11bf311e
UD
87902006-10-06 Ulrich Drepper <drepper@redhat.com>
8791
8792 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8793
3a4e0609
UD
87942006-10-06 Andreas Jaeger <aj@suse.de>
8795
8796 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8797
87982006-10-06 Ulrich Drepper <drepper@redhat.com>
8799
8800 * po/pl.po: Update from translation team.
8801
8802 * nscd/nscd.c (main): Fix typo in message.
8803 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8804
97e57dee
UD
88052006-10-02 Jakub Jelinek <jakub@redhat.com>
8806
8807 [BZ #3291]
8808 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8809 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8810 (__sigprocmask): Define.
8811
768027a4
UD
88122006-10-02 Ulrich Drepper <drepper@redhat.com>
8813
8814 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8815 used.
8816
0b25a49a
UD
88172006-10-02 Jakub Jelinek <jakub@redhat.com>
8818
8819 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8820 in oldtotal and newtotal calculation.
8821 * nscd/nscd-client.h (struct mapped_database): Add datasize
8822 field.
8823 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8824 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8825 increased.
8826 (__nscd_cache_search): Add checks to make sure we never reference
8827 data beyond the current mapping.
8828
a1286745
UD
88292006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8830
d4ed7561
UD
8831 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8832 variables const to avoid compiler warnings.
8833
a1286745
UD
8834 * io/fts.c (fts_close): Remove redundant checks.
8835 (fts_build): Likewise.
8836 (fts_palloc): Likewise.
8837
8838 * manual/message.texi (Advanced gettext functions,
8839 Using gettextized software): Fix typos.
8840
f01e4069
UD
88412006-09-30 Ulrich Drepper <drepper@redhat.com>
8842
8843 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8844 explain why there are no leaks.
8845
154619b5
UD
88462006-09-29 Ulrich Drepper <drepper@redhat.com>
8847
690c3947
UD
8848 * libio/wmemstream.c: Include <wchar.h>.
8849 * libio/bug-wmemstream1.c: Likewise.
8850 * libio/tst-wmemstream1.c: Likewise.
8851 * libio/tst-wmemstream2.c: Likewise.
8852
88cc61e8
UD
8853 * version.h (RELEASE): Bump to 2.5.
8854 * README: Regenerated.
8855
a70c18b0
UD
8856 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8857
154619b5
UD
8858 [BZ #3273]
8859 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8860 found no group members.
8861 Patch by Petr Baudis.
8862
88632006-09-29 Jakub Jelinek <jakub@redhat.com>
8864
8865 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8866 assert bootstrap_map.l_tls_modid is zero.
8867 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8868 if USE___THREAD.
8869
1c31aa79
UD
88702006-09-27 Ulrich Drepper <drepper@redhat.com>
8871
8872 * libio/stdio.h: Move open_wmemstream prototype to ...
8873 * wcsmbs/wchar.h: ... here.
8874
f1122ec3
UD
88752006-09-25 Jakub Jelinek <jakub@redhat.com>
8876
8877 [BZ #3252]
8878 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8879 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8880 __{,l}chown to handle the rest.
8881 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8882 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8883 __{,l}chown to handle the rest.
8884 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8885 i386/fchownat.c.
8886 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8887 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8888
8889 [BZ #3253]
8890 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8891 time, rather allocate increasingly bigger arrays of pointers, if
8892 possible with alloca, if too large with malloc.
8893
88942006-09-24 Jakub Jelinek <jakub@redhat.com>
8895
8896 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8897
8898 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8899
457b559e
UD
89002006-09-24 Ulrich Drepper <drepper@redhat.com>
8901
8902 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8903 home addresses.
8904 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8905 IFA_F_HOMEADDRESS flag for interfaces.
8906 * include/ifaddrs.h (struct in6addrinfo): Define
8907 in6ai_homeaddress.
8908
4a132246
UD
89092006-09-21 Jakub Jelinek <jakub@redhat.com>
8910
8911 [BZ #3225]
8912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8913 PTR_DEMANGLE3): Define.
8914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8915 PTR_DEMANGLE3): Likewise.
8916 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8917 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8918 Likewise.
8919 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8920
c69136ae
UD
89212006-09-20 Jakub Jelinek <jakub@redhat.com>
8922
8923 * po/libc.pot: Regenerated.
8924 * po/be.po: Updated.
8925 * po/ca.po: Likewise.
8926 * po/cs.po: Likewise.
8927 * po/da.po: Likewise.
8928 * po/de.po: Likewise.
8929 * po/el.po: Likewise.
8930 * po/en_GB.po: Likewise.
8931 * po/es.po: Likewise.
8932 * po/fi.po: Likewise.
8933 * po/fr.po: Likewise.
8934 * po/gl.po: Likewise.
8935 * po/hr.po: Likewise.
8936 * po/hu.po: Likewise.
8937 * po/ja.po: Likewise.
8938 * po/ko.po: Likewise.
8939 * po/nb.po: Likewise.
8940 * po/nl.po: Likewise.
8941 * po/pl.po: Likewise.
8942 * po/pt_BR.po: Likewise.
8943 * po/ru.po: Likewise.
8944 * po/rw.po: Likewise.
8945 * po/sk.po: Likewise.
8946 * po/sv.po: Likewise.
8947 * po/tr.po: Likewise.
8948 * po/zh_CN.po: Likewise.
8949 * po/zh_TW.po: Likewise.
8950
8951 [BZ #3137]
8952 * iconv/iconv_prog.c (main): Fix spelling in error message.
8953 * iconv/iconvconfig.c (main): Likewise.
8954 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8955 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8956 * locale/programs/localedef.c (main): Likewise.
8957 * locale/programs/repertoire.c (repertoire_read): Likewise.
8958 * timezone/zdump.c (main): Likewise.
8959 * nscd/connections.c (handle_request): Fix spelling in log message.
8960 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8961
83b3108c
UD
89622006-09-20 Ulrich Drepper <drepper@redhat.com>
8963
8964 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8965 interfaces.
8966
89210b4c
AJ
89672006-09-20 Andreas Jaeger <aj@suse.de>
8968
8969 * math/libm-test.inc (lrint_test_upward): Fix typo.
8970
6624dbc0
UD
89712006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8972
8973 [BZ #2592]
8974 * math/libm-test.inc (lrint_test_tonearest): New function.
8975 (lrint_test_towardzero): New function.
8976 (lrint_test_downward): New function.
8977 (lrint_test_upward): New function.
8978 (main): Run these new tests.
8979 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8980 of values near to 0.
8981 (two52): Use double not long double.
8982 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8983 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8984 (two23): Use float not double.
8985 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8986 (two23): Use float not double.
8987 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8988 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8989 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8990 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8991
60cb50c7
UD
89922006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8993
8994 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8995 Cast sp to unsigned long to avoid compiler warning.
8996 Use __makecontext_ret function instead of a trampoline on the stack.
8997 (__makecontext_ret): New function.
8998 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8999
33315ced
UD
90002006-09-19 Jakub Jelinek <jakub@redhat.com>
9001
9002 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9003 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9004 bits.
9005
1ee2ff20
UD
90062006-09-19 Ulrich Drepper <drepper@redhat.com>
9007
9008 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9009 sure no reference to the unloaded map's search list remains in the
9010 dependency's scope.
9011
90122006-09-16 Jakub Jelinek <jakub@redhat.com>
9013
9014 * elf/Makefile: Add rules to build and run unload7 test.
9015 * elf/unload7.c: New test.
9016 * elf/unload7mod1.c: New file.
9017 * elf/unload7mod2.c: New file.
9018
0466106e
UD
90192006-09-18 Jakub Jelinek <jakub@redhat.com>
9020
9021 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9022 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9023 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9024 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9025 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9026 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9027 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9028 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9029 PTRACE_GETEVENTMSG): Likewise.
9030 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9031 values.
9032
9c316a45
UD
90332006-09-17 Mike Frysinger <vapier@gentoo.org>
9034
0466106e
UD
9035 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9036 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9037 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9038 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
9039
90402006-09-16 Jakub Jelinek <jakub@redhat.com>
9041
9042 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9043 write '\0' to the fd.
9044 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9045 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9046 Change regs to unsigned long pointer from unsigned int, fix fscr
9047 offset.
9048
fb146a76
UD
90492006-09-14 Jakub Jelinek <jakub@redhat.com>
9050
9051 * io/Makefile (CFLAGS-fstatat.c): Set.
9052 (CFLAGS-fstatat64.c): Likewise.
9053 (CFLAGS-mknodat.c): Likewise.
9054
9055 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9056 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9057 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9058 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9059
4cd3633d
UD
90602006-09-14 Jakub Jelinek <jakub@redhat.com>
9061 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 9062
4cd3633d
UD
9063 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9064 names to the beginning. Rename "cell" to "cellbe".
9065 (_dl_powerpc_platforms): New.
9066 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9067 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9068 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9069 (_DL_HWCAP_PLATFORM): Define to new mask.
9070 (_dl_platform_string, _dl_string_platform): New functions.
9071 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9072 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9073
30aa5785
UD
90742006-09-12 Jakub Jelinek <jakub@redhat.com>
9075
9076 [BZ #2526]
9077 * README.libm: Fix a thinko in sqrt algorithm description.
9078
9079 [BZ #3143]
9080 * manual/string.texi (argz_delete): Fix prototype.
9081 Patch by <alpt@freaknet.org>.
9082
90832006-08-26 Joseph Myers <joseph@codesourcery.com>
9084
9085 [BZ #3138]
9086 * io/test-lfs.c (do_prepare): Give name_len type size_t.
9087 * io/tst-fcntl.c (do_prepare): Likewise.
9088 * posix/tst-exec.c (do_prepare): Likewise.
9089 * posix/tst-preadwrite.c (do_prepare): Likewise.
9090 * posix/tst-spawn.c (do_prepare): Likewise.
9091 * posix/tst-truncate.c (do_prepare): Likewise.
9092 * rt/tst-aio.c (do_prepare): Likewise.
9093 * rt/tst-aio64.c (do_prepare): Likewise.
9094 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9095 size_t.
9096
d26d01d1
UD
90972006-09-09 Ulrich Drepper <drepper@redhat.com>
9098
41aba3d7
UD
9099 [BZ #2821]
9100 * time/mktime.c (guess_time_tm): Fix overflow detection.
9101 * time/Makefile (tests): Add bug-mktime1.
9102 * time/bug-mktime1.c: New file.
9103
eaa51b47 9104 [BZ #3189, #3188]
d26d01d1 9105 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 9106 (mremap): Likewise.
d26d01d1 9107
ba40cc15
UD
91082006-09-07 Jakub Jelinek <jakub@redhat.com>
9109
2b6a801e
UD
9110 [BZ #1006]
9111 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9112 Ensure relocation doesn't clobber any bits outside of the
9113 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9114 R_SPARC_HI22 and R_SPARC_H44.
9115
469615bd
UD
9116 [BZ #2775]
9117 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9118 (long) (MINSIZE + nb - old_size) is positive.
9119
9120 * malloc/arena.c (grow_heap): When growing bail even if new_size
9121 is negative.
9122
ba40cc15
UD
9123 [BZ #3155]
9124 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9125 stack below r1.
9126
243b9ac1
UD
91272006-09-06 Jakub Jelinek <jakub@redhat.com>
9128
ba40cc15
UD
9129 * posix/regex_internal.c (re_string_reconstruct): Handle
9130 offset < pstr->valid_raw_len && pstr->offsets_needed case.
9131 Ensure no bytes read before raw_mbs array. Pass a saved copy of
9132 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9133 re_string_context_at.
9134 * posix/Makefile: Add rules to build and run bug-regex26 test.
9135 * posix/bug-regex26.c: New test.
9136
243b9ac1
UD
9137 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9138 rather than col_sym_free. Move seqp declaration earlier.
9139
9140 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9141
d052233c
UD
91422006-09-05 Jakub Jelinek <jakub@redhat.com>
9143
9144 * nscd/initgrcache.c (addinitgroupsX): Move any_success
9145 decl before first goto out.
9146
71213dc2
UD
91472006-09-04 Jakub Jelinek <jakub@redhat.com>
9148
9149 * Makerules (shlib.lds): If have-hash-style, put .hash section
9150 at the end of the RO segment.
9151
91522006-09-04 Ulrich Drepper <drepper@redhat.com>
9153
9154 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9155 style hash table format is used.
9156
03eeff83
UD
91572006-09-04 Jakub Jelinek <jakub@redhat.com>
9158
9159 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9160 randomization rather than before.
9161 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9162
b80770b2
UD
91632006-08-31 Jakub Jelinek <jakub@redhat.com>
9164
ba40cc15 9165 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
9166
9167 * malloc/malloc.c (_int_malloc): Use full list insert and not
9168 shortcut which assumes the list is empty for large requests
9169 too.
9170
9171 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9172
99ea5991
UD
91732006-08-30 Jakub Jelinek <jakub@redhat.com>
9174
9175 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9176 and offout arguments to the prototype.
9177 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9178 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9179 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9180 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9181 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9182 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9183 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9184 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9185
4004a0a5
UD
91862006-08-28 Ulrich Drepper <drepper@redhat.com>
9187
950398e1
UD
9188 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9189
4004a0a5
UD
9190 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9191 dlopen parameters.
9192
6e310111
UD
91932006-08-28 Jakub Jelinek <jakub@redhat.com>
9194
9195 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9196 only if herrno is NETDB_INTERNAL. Handle errors other than
9197 ERANGE outside of the loops, handle TRY_AGAIN.
9198
9199 * locale/programs/ld-ctype.c (translit_flatten): Issue error
9200 if other's ctype category was missing.
9201 * locale/programs/ld-collate.c (collate_read): Return if
9202 copy_locale's collate category is missing.
9203
07014fca
UD
92042006-08-27 Ulrich Drepper <drepper@redhat.com>
9205
9206 [BZ #2684]
9207 * malloc/malloc.c (public_rEALLOc): Try harder by using other
9208 arenas if allocation failed.
9209 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9210
71663747
UD
92112006-08-26 Ulrich Drepper <drepper@redhat.com>
9212
41999a1a
UD
9213 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9214 waste bins[0..1].
9215 (malloc_state): Reduce bins size by 2.
9216 (_int_malloc): Fix test for large enough buffer for early termination.
9217 When no unsorted block matches perfectly and an exiting block has
9218 to be split, use full list insert and not shortcut which assumes
9219 the list is empty.
9220
71663747
UD
9221 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9222 failure.
9223
93b53ca2
UD
92242006-08-24 Ulrich Drepper <drepper@redhat.com>
9225
f5a82772
UD
9226 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9227 do anything.
9228
2ac9ca73
UD
9229 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9230 symbol require exact match (these are PLTs).
9231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9232 (_dl_ppc64_addr_sym_match): Likewise.
9233
93b53ca2
UD
9234 [BZ #2683]
9235 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9236 If symbol has a value use it.
9237 * elf/tst-dladdr1.c: New file.
9238 * elf/Makefile: Add rules to build and run tst-addr1.
9239
7463d5cb
UD
92402006-08-24 Jakub Jelinek <jakub@redhat.com>
9241
9242 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9243 keeps failing and heap growth or new heap creation isn't
9244 successful either.
9245 * malloc/tst-malloc.c (main): Add new tests.
9246
542a6f62
UD
92472006-08-24 Ulrich Drepper <drepper@redhat.com>
9248
9249 [BZ #2734]
9250 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9251 as in the x86-64 code to use bswap.
9252
aa2c6b6d
UD
92532006-05-21 Joseph S. Myers <joseph@codesourcery.com>
9254
24982798 9255 [BZ #2680]
aa2c6b6d
UD
9256 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9257 __USE_UNIX98.
9258 * posix/bits/unistd.h: Likewise.
9259
59776aef
UD
92602006-05-15 Mike Frysinger <vapier@gentoo.org>
9261
9262 [BZ #2751]
9263 * string/strchr.c: Add cast to avoid warning.
9264
e404fb16
UD
92652006-08-21 Ulrich Drepper <drepper@redhat.com>
9266
9267 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 9268 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
9269 limit is needed to avoid the exploding of the address space
9270 requirement for secondary heaps.
9271 * malloc/arena.c (HEAP_MAX_SIZE): Define using
9272 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9273
376e973a
UD
92742006-07-30 Joseph S. Myers <joseph@codesourcery.com>
9275
9276 [BZ #3018]
9277 * Makerules (depfiles): Handle extra-test-objs the same as
9278 extra-objs.
9279 (common-mostlyclean): Likewise.
9280 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9281 instead.
9282 * elf/Makefile (extra-objs): Likewise.
9283 * stdlib/Makefile (extra-objs): Likewise.
9284
240c62a7
UD
92852006-08-14 Eric Blake <ebb9@byu.net>
9286
9287 [BZ #3044]
9288 * misc/error.h: Assume C89 or better.
9289 * misc/error.c: Likewise.
9290
3997b7c4
UD
92912006-08-21 Ulrich Drepper <drepper@redhat.com>
9292
9293 [BZ #3040]
9294 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9295 __ASSUME_ATFCTS is defined.
9296
8a6537b0
UD
92972006-08-19 Ulrich Drepper <drepper@redhat.com>
9298
72320021
UD
9299 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9300 to sort in each call.
9301
ed3691ba
UD
9302 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9303 is empty simply return and use next service.
9304 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9305
8a6537b0
UD
9306 * locale/programs/charmap.c (charmap_read): Add new parameter. It
9307 tells us when not finding a charmap file is an error.
9308 * locale/programs/charmap.h: Adjust charmap_read prototype.
9309 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9310 cannot find a charmap.
9311 * locale/programs/localedef.c (main): Adjust charmap_read call.
9312
ad2a3c07
UD
93132006-08-15 Jakub Jelinek <jakub@redhat.com>
9314
9315 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9316 sysdeps/posix/pause.c implementation instead.
9317
93182006-08-09 Jakub Jelinek <jakub@redhat.com>
9319
9320 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9321 to EPERM.
9322
f17efcb4
UD
93232006-08-13 Andreas Schwab <schwab@suse.de>
9324
9325 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9326 Don't clobber caller's LRSAVE.
9327 (_dl_prof_resolve): Likewise.
9328
107b8a92
UD
93292006-08-14 Ulrich Drepper <drepper@redhat.com>
9330
9331 [BZ #1996]
9332 * libio/memstream.c (open_memstream): Allocate initial buffer with
9333 calloc.
9334 * libio/wmemstream.c (open_wmemstream): Likewise.
9335 * libio/strops.c: Pretty printing.
9336 (_IO_str_overflow): Clear uninitialized part of the new buffer.
9337 (enlarge_userbuf): New function.
9338 (_IO_str_seekoff): Call it if seek position is larger than current
9339 buffer.
9340 * libio/wstrops.c: Likewise.
9341 * libio/vasprintf.c: Add comment as to why we do not have to use
9342 calloc instead of malloc to allocate initial buffer.
9343 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9344 * libio/bug-memstream1.c: New file.
9345 * libio/bug-wmemstream1.c: New file.
9346
fa3ac53f
UD
93472006-08-13 Ulrich Drepper <drepper@redhat.com>
9348
89993734
UD
9349 * libio/wstrops.c: Remove dead macro definitions and comments.
9350 * libio/strops.c: Likewise.
9351
fa3ac53f
UD
9352 [BZ #2764]
9353 * login/utmpname.c (__utmpname): Remove unnecessary test.
9354
f99ed760
UD
93552006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
9356
9357 [BZ #2832]
9358 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9359 0s from integers.
9360
93612006-08-13 Ulrich Drepper <drepper@redhat.com>
9362
9363 [BZ #2987]
9364 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9365 for CPU clocks.
9366 * sysdeps/unix/clock_settime.c: Add support for platform-specific
9367 setting of CPU clocks.
9368
4c3f81d0
UD
93692006-06-23 Paul Eggert <eggert@cs.ucla.edu>
9370
9371 [BZ #2841]
9372 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9373 since C99 requires the result to promote to 'int' when uint_least8_t
9374 and uint_least16_t promote to 'int'.
9375
cd8e60ce
UD
93762006-08-12 Ulrich Drepper <drepper@redhat.com>
9377
9a5c46e8
UD
9378 [BZ #3013]
9379 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9380 lenght of one output field, correct bitmask creation.
9381 * locale/programs/ld-time.c: Add alignment.
9382
cd8e60ce
UD
9383 [BZ #2997]
9384 * misc/error.c: Add space between program name and message if file
9385 name is missing.
9386
9a528884
UD
93872006-08-03 Eric Blake <ebb9@byu.net>
9388
9389 [BZ #2998]
9390 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9391
1d05c2fb
UD
93922006-08-09 Ulrich Drepper <drepper@redhat.com>
9393
0c1c6c6c
UD
9394 * malloc/memusagestat.c: Silence warnings.
9395
1d05c2fb
UD
9396 * malloc/malloc.c: Dynamically size mmap treshold if the program
9397 frees mmaped blocks.
9398 Patch by Valerie Henson and Arjan van de Ven.
9399
2d1e6277
UD
94002006-08-08 Jakub Jelinek <jakub@redhat.com>
9401
be7ffd91
UD
9402 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9403 __USE_GNU.
9404
2d1e6277
UD
9405 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9406 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9407 (DEF): Don't put the var into .gnu.linkonce.r.* section.
9408 Only provide var definitions in strtol_l (or for *ull*
9409 in strtoll_l).
9410
9411 * stdio-common/bug16.c (tests): New array.
9412 (do_tests): Allow the first hexadecimal digit
9413 to be 1, 2, 4 or 8. Do 3 additional tests.
9414
9415 * sysdeps/s390/fpu/libm-test-ulps: Update.
9416
9417 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9418 fchownat syscall if available.
9419 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9420 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9421 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9422
d0ccde25
UD
94232006-08-07 Ulrich Drepper <drepper@redhat.com>
9424
9425 * nis/nis_xdr.c: Avoid some function calls.
9426
13a0293d 94272006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 9428 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
9429
9430 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9431 short cut if only one name component is stripped away.
9432
bd1ebae0
UD
94332006-08-07 Ulrich Drepper <drepper@redhat.com>
9434
9435 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 9436 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
9437 (first_shoot): Add search_parent_first parameter. Only if it is set
9438 search parent server first.
9439 If directory for table found through cold start cache is not the same
9440 as referenced in the cache, don't use it.
9441 (__nisfind_server): Take additional parameter. Pass it on to
9442 first_shoot.
9443 (__prepare_niscall): Adjust __nisfind_server call.
9444 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9445 * nis/nis_table.c: Adjust __nisfind_server call.
9446 * nis/nis_lookup.c: Likewise.
9447 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9448
f1762c0c
UD
94492006-08-03 Ulrich Drepper <drepper@redhat.com>
9450
fe710250
UD
9451 [BZ #2182]
9452 * math/s_cacosh.c: Return values from positive branch.
9453 * math/s_cacoshf.c: Likewise.
9454 * math/s_cacoshl.c: Likewise.
9455
a5852807
UD
9456 [BZ #2883]
9457 * sysvipc/sys/msg.h: Change return value to ssize_t.
9458 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
9459 * sysvipc/msgrcv.c: Likewise.
9460 * include/sys/msg.h: Likewise.
39571a13 9461
6c215a8d
UD
9462 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9463 test introduced in patch for bz #661.
39571a13 9464 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 9465 element for NEWGROUPS.
6c215a8d 9466
9c06eb66
UD
9467 [BZ #2908]
9468 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9469 'f', use '1' as leading digit not '\1'.
9470 * stdio-common/Makefile (tests): Add bug16.
9471 * stdio-common/bug16.c: New file.
9472
9473 [BZ #2914]
9474 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9475 and don't try to open it. The patch introducing the macro
9476 contained a bug and used the same file name as the new file
9477 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9478 this out completely.
9479
9480 [BZ #2926]
9481 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9482 Patch by Jerry James <Jerry.James@usu.edu>.
9483
f1762c0c
UD
9484 * rt/Makefile (tests): Add tst-clock2.
9485 * rt/tst-clock2.c: New file.
9486
9487 [BZ #2978]
9488 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9489 function and its parameters and pass it to new thread.
9490 (__gai_notify): Add support for alternative waiting for completion.
9491 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9492 waiting for completion.
9493 * resolv/getaddrinfo_a.c: Likewise.
9494 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9495 waiting for completion is used.
9496 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9497 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9498 * resolv/gai_error.c: Likewise.
9499 * resolv/gai_sigqueue.c: Likewise.
9500
83ae6b40
RM
95012006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9502
0e4e62fe 9503 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 9504 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 9505
82ee37c5
UD
95062006-06-23 Joseph Myers <joseph@codesourcery.com>
9507
9508 [BZ #2980]
f1762c0c 9509 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
9510
95112006-08-02 Ulrich Drepper <drepper@redhat.com>
9512
9513 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9514 walk them instead of the symbol table.
9515
7bb1b2c9
UD
95162006-08-01 Ulrich Drepper <drepper@redhat.com>
9517
f13bfdd0 9518 [BZ #2098]
fbbc73b3
UD
9519 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9520 status of NSS calls, not the number of returned entries.
9521
a4518922
UD
9522 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9523 request_key, keyctl.
7bb1b2c9 9524
b06e7e9a
UD
95252006-07-31 Ulrich Drepper <drepper@redhat.com>
9526
9527 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9528
f1227969
UD
95292006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9530
9531 * elf/tst-auditmod1.c: Fix typo in #error.
9532
82ae2712
UD
95332006-07-31 Ulrich Drepper <drepper@redhat.com>
9534
f1227969
UD
9535 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9536
82ae2712
UD
9537 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9538
a1260d92
UD
95392006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9540
9541 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 9542 that the directory is empty even on non-POSIX filesystems.
a1260d92 9543
d2de41fe
UD
95442006-07-31 Ulrich Drepper <drepper@redhat.com>
9545
13669f2c
UD
9546 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9547
d2de41fe
UD
9548 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9549 the backend NSS module. If backend setgrent call failed, don't have
9550 internal_setgrent fail. Just remember this until it is needed.
9551 * nis/nss_compat/compat-pwd.c: Likewise.
9552 * nis/nss_compat/compat-spwd.c: Likewise.
9553
b894c2ea
RM
95542006-07-30 Roland McGrath <roland@redhat.com>
9555
9556 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9557 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9558 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9559 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9560
9561 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9562 (nanosleep_not_cancel): New macro.
9563 (sigsuspend_not_cancel): new macro.
9564 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9565 (do_sigsuspend): Define as inline.
9566 (__sigsuspend): Always use do_sigsuspend.
9567 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9568 * include/signal.h: Declare __sigsuspend_nocancel.
9569 * sysdeps/posix/pause.c
9570 [! NO_CANCELLATION] (__pause_nocancel): New function.
9571
9572 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9573 * include/time.h (__nanosleep_nocancel): Likewise.
9574
c10d32c8
UD
95752006-07-30 Ulrich Drepper <drepper@redhat.com>
9576
9577 * locale/programs/localedef.c (add_to_readlist): Rename local
9578 variables to avoid confusion.
9579
9580 * locale/programs/charmap.c (charmap_read): Emit error message if
9581 charmap couldn't be found or read.
9582
6822f056
UD
95832006-07-28 Ulrich Drepper <drepper@redhat.com>
9584
d5ba53f9
UD
9585 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9586 __ASSUME_FUTEX_LOCK_PI.
9587 * include/time.h: Declare __nanosleep_nocancel.
9588 * include/unistd.h: Declare __pause_nocancel.
9589
6822f056
UD
9590 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9591 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9592 get the __stack_chk_fail_local definition when it's needed.
9593
3a975ff5
UD
95942006-07-26 Ulrich Drepper <drepper@redhat.com>
9595
6de1f625
UD
9596 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9597 * dlfcn/bug-atexit3.c: New file.
9598 * dlfcn/bug-atexit3-lib.cc: New file.
9599
3a975ff5
UD
9600 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9601 used when the namespace is not the base namespace.
9602
a92b1166
UD
96032006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9604
9605 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9606 (__new_exitfn): Bump it in every successful call.
9607 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9608 more exit handlers, call them right away.
9609 * stdlib/exit.h: Declare __new_exitfn_called.
9610
a08336fb
UD
96112006-07-25 Ulrich Drepper <drepper@redhat.com>
9612
bd3754dc
UD
9613 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9614 calling registered handler.
9615
a08336fb
UD
9616 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9617 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9618 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9619 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9620 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9621 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9622 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9623 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9624
871b9158
UD
96252006-07-10 Ulrich Drepper <drepper@redhat.com>
9626
9627 * elf/dl-lookup.c (dl_new_hash): New functions.
9628 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9629 value here. Compute new-style hash value. Pass new hash value
9630 and reference to variable with the old value to do_lookup_x.
9631 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9632 old-style hash table.
9633 (_dl_debug_bindings): Pass new hash value and reference to variable
9634 with the old value to do_lookup_x.
9635 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9636 new-style hash value and change old-style hash value parameter to
9637 be a reference. Reoganize functions to determine whether
9638 new-style hash table is available. Only fall back on old-style
9639 table. If old-style hash value is needed, compute it here.
9640 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9641 entry.
9642 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9643 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9644 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9645 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9646 * Makeconfig: If linker supports --hash-style option add it to all
9647 linker command lines to build DSOs.
9648 * config.make.in: Define have-hash-style.
9649 * configure.in: Test whether linker supports --hash-style option.
9650
9651 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9652 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9653
a1f0de82
UD
96542006-06-27 Ulrich Drepper <drepper@redhat.com>
9655
361a3706
UD
9656 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9657 auditing.
9658
a1f0de82
UD
9659 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9660 RPATH of main map twice.
9661
4259230f
UD
96622006-06-22 Ulrich Drepper <drepper@redhat.com>
9663
9664 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9665 look further, return original strings.
9666 (_nl_find_msg): Do not return found translation if the conversion
9667 failed. Either signal the string is unusable or that something went
9668 wrong and the original should be used.
9669
96702006-06-21 Ulrich Drepper <drepper@redhat.com>
9671
9672 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9673
f9b7a98b
UD
96742006-06-14 Jakub Jelinek <jakub@redhat.com>
9675
9676 [BZ #2766]
9677 * misc/insremque.c (insque): Handle prev == NULL.
9678 * misc/Makefile (tests): Add tst-insremque.
9679 * misc/tst-insremque.c: New test.
9680
ac55a25b
UD
96812006-06-17 Ulrich Drepper <drepper@redhat.com>
9682
9683 [BZ #2792]
9684 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9685 conflict with DL_DST_REQUIRED.
9686
02f366b3
UD
96872006-06-16 Ulrich Drepper <drepper@redhat.com>
9688
9689 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9690 match what Solaris does.
9691
9009e8f8
UD
96922006-06-04 Ulrich Drepper <drepper@redhat.com>
9693
1b8373f4
UD
9694 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9695 local_setegid instead of seteuid and setegid.
9696 * sysdeps/generic/local-setxid.h: New file.
9697 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9698
7231452e
UD
9699 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9700
9009e8f8 9701 * string/Makefile (tests): Add bug-envz1.
02f366b3 9702 * string/bug-envz1.c: New file.
9009e8f8 9703
33e63e79
UD
97042006-06-02 Jakub Jelinek <jakub@redhat.com>
9705
9706 * posix/regex_internal.c (re_string_skip_chars): If no character has
9707 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9708 to the byte which couldn't be converted.
9709 (re_string_reconstruct): Don't clear valid_raw_len before calling
9710 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9711 tip_context using re_string_context_at.
9712 * posix/Makefile: Add rules to build and run bug-regex25 test.
9713 * posix/bug-regex25.c: New test.
9714
fdc02996
UD
97152006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9716
9717 [BZ #2703]
9718 * string/envz.c (envz_strip): Correct erroneously reversed src
9719 and dest parameters to memmove() invocation.
9720
902c4291
UD
97212006-05-30 Jakub Jelinek <jakub@redhat.com>
9722
9723 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9724 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9725 to make sure the database has been already invalidated.
9726 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9727 after the cache has been invalidated. Use pthread_mutex_lock rather
9728 than pthread_mutex_trylock if fd != -1.
9729 * nscd/connections.c (invalidate_cache): Add fd argument, write
9730 response to fd if not calling prune_cache, pass fd to prune_cache.
9731 (handle_request): Adjust invalidate_cache caller.
9732 (nscd_run): Pass -1 as fd to prune_cache.
9733
ecc68568
UD
97342006-05-30 Ulrich Drepper <drepper@redhat.com>
9735
9736 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9737 the correct place.
9738
9636a217
UD
97392006-05-29 Ulrich Drepper <drepper@redhat.com>
9740
9741 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9742 * nscd/cache.c (prune_cache): Take prunelock before starting the
9743 work. Just return in case it is already taken.
cabfcde1 9744 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 9745
6bcb494a
UD
97462006-05-25 Ulrich Drepper <drepper@redhat.com>
9747
672d5a63 9748 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 9749 copying. No need to allocate new array for group members. Just
672d5a63
UD
9750 move the pointers and update the size.
9751
1663b44f
UD
9752 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9753 Avoid memory leak in case realloc fails. Simplification for
9754 better code generation.
9755
9756 Avoid deprecation warning because of libc_hidden_proto for
9757 inet6_option_alloc.
9758 * inet/inet6_option.c (option_alloc): Renamed from
9759 inet6_option_alloc. Made static.
9636a217 9760 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
9761 (inet6_option_append): Call option_alloc.
9762 * include/netinet/in.h: Remove libc_hidden_proto for
9763 inet6_option_alloc.
9764
6bcb494a
UD
9765 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9766 for cleanup when cb!=NULL [Coverity CID 233].
9767
aec6b246
UD
97682006-05-24 Ulrich Drepper <drepper@redhat.com>
9769
07bfff20
UD
9770 [BZ #2693]
9771 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9772 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9773 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9774 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9775 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9776 and inet6_rth_getaddr.
9777 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9778 array.
9779 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9780 Mark inet6_option_* interfaces as deprecated.
9781 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9782 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9783 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9784 inet6_rth_segments, and inet6_rth_getaddr.
9785 * inet/inet6_opt.c: New file.
9786 * inet/inet6_rth.c: New file.
9787
9788 * inet/netinet/icmp6.h: Pretty printing.
9789
aec6b246
UD
9790 [BZ #2683]
9791 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9792
2d571cd1
UD
97932006-05-23 Ulrich Drepper <drepper@redhat.com>
9794
062e719b
UD
9795 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9796 doing it all here. When server does not know the answer do not
9797 fail immediate, try parent first.
9798
2d571cd1
UD
9799 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9800 overflow test.
9801
a17fa610
UD
98022006-05-20 Ulrich Drepper <drepper@redhat.com>
9803
9804 * nis/nis_call.c (__prepare_niscall): New function. Split out
9805 from __do_niscall.
9806 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9807 and exported.
9808 (__follow_path): New function. Split out from nis_list.
9809 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9810 _xdr_nis_result.
9811 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9812 _xdr_nis_result.
9813 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9814 and __follow_path.
9815 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9816 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9817 from libnsl for version GLIBC_PRIVATE.
9818 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9819 Remove entry parameter from _nss_nisplus_parse_pwent and
9820 _nss_nisplus_parse_grent.
9821 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9822 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9823 again. Rewrite getpwent handling to not use nis_first_entry and
9824 nis_next_entry. Roll out own niscall handling.
9825 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9826
9827 * sunrpc/xdr_rec.c: Fix typo in comment.
9828
429bb183
UD
98292006-05-19 Ulrich Drepper <drepper@redhat.com>
9830
1d4f062a
UD
9831 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9832 handling.
9833
101cc598
UD
9834 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9835 to allocate memory for my_pollfd. Better initialization of
9836 cb_is_running. Use TEMP_FAILURE_RETRY.
9837
f50fa10c
UD
9838 * malloc/memusage.sh (memusageso): Add quotes.
9839 (memusagestat): Likewise.
9840 * debug/xtrace.sh (pcprofileso): Likewise.
9841 (pcprofiledump): Likewise.
9842 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9843 replacement.
9844 * malloc/Makefile ($(objpfx)memusage): Likewise.
9845
882bfe73
UD
9846 * nis/nis_callback.c (__nis_create_callback): Calls to
9847 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9848 asprintf call fails.
9849
429bb183
UD
9850 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9851 no uninitialized memory is passed to sendto.
9852
f90de831
UD
98532006-05-18 Ulrich Drepper <drepper@redhat.com>
9854
9855 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9856 of snprintf+strdup. Handle OOM.
9857 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9858 cb->serv together. Remove now obsolete free calls.
9859 (__nis_destroy_callback): Remove now obsolete free call.
9860
a17fa610 98612006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
9862
9863 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9864 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9865 and ULA respectively). Set precedence for IPv4 address to 10 as
9866 defined in RFC3484 for preferring IPv6.
9867 * posix/gai.conf: Update to match the new default tables.
9868
758b9d7e
UD
98692006-05-18 Jakub Jelinek <jakub@redhat.com>
9870
9871 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9872 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9873 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9874 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9875
9876 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9877 Removed.
9878 (init_nss_interface): Remove initialization of these variables.
9879
98802006-05-18 Ulrich Drepper <drepper@redhat.com>
9881
9882 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9883 nis_free_directory forward to avoid duplication.
9884
388c779e
UD
98852006-05-17 Ulrich Drepper <drepper@redhat.com>
9886
5f1724bf
UD
9887 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9888 rec_dirsearch returning NULL.
9889 (first_shoot): Handle __nis_finddirectory returning NULL.
9890 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9891
388c779e
UD
9892 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9893 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9894
360d5cf4
UD
98952006-05-17 Jakub Jelinek <jakub@redhat.com>
9896
9897 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9898 pid changed.
9899
88dbff8c
UD
99002006-05-15 Ulrich Drepper <drepper@redhat.com>
9901
6f8a7dff
UD
9902 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9903
9904 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9905 * nscd/nscd_getgr_r.c: Likewise.
9906
9907 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9908
9909 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9910 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9911
9912 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9913
9914 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9915
360d5cf4 9916 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
9917
9918 * include/rpc/auth.h: Mark xdr_des_block_internal and
9919 xdr_opaque_auth_internal as hidden.
9920
9921 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9922 hidden.
9923
360d5cf4 9924 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 9925
02264020
UD
9926 * misc/getusershell.c (okshells): Don't use static initializers,
9927 do it dynamically.
9928
fd5ea238
UD
9929 * stdlib/fmtmsg.c (keywords): Change type of len element to
9930 uint32_t to not waste space on 64bit machines.
9931
9446614c
UD
9932 * locale/setlocale.c: Change _nl_category_names into a string.
9933 Add new _nl_category_name_idxs. Change all users.
9934 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9935 Declare _nl_category_name_idxs.
9936 * locale/findlocale.c: Adjust for _nl_category_names change.
9937 * locale/loadlocale.c: Likewise.
9938 * locale/newlocale.c: Likewise.
9939 * intl/dcigettext.c: Likewise.
9940
88dbff8c
UD
9941 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9942 (add_alias2): ...here. New function.
9943 (__gconv_read_conf): Simplify builtin alias handling.
9944 (builtin_aliases): Convert to string to avoid relocations.
9945 * iconv/gconv_builtin.h: Add comment about correct formatting.
9946
4442d58f
UD
99472006-05-15 Jakub Jelinek <jakub@redhat.com>
9948
9949 * resolv/res_debug.c (loc_ntoa): Make error const.
9950
99512006-05-14 Andreas Schwab <schwab@suse.de>
9952
9953 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9954
99552006-05-12 Jakub Jelinek <jakub@redhat.com>
9956
9957 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9958 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9959 sizeof (cpu_set_t).
9960
a51752b6
UD
99612006-05-11 Ulrich Drepper <drepper@redhat.com>
9962
5d3fd1f6
UD
9963 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9964
08cfb839
UD
9965 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9966
4b481a15
UD
9967 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9968 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9969
9970 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9971 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9972
9973 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9974 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9975 xdr_cback_data.
9976
9977 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9978 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9979 xdr_ypupdate_args.
9980
9981 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9982 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9983
9984 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9985 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9986
9987 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9988 * include/rpcsvc/nis_callback.h: New file.
9989
9990 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9991 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9992
9993 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9994 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9995
9996 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9997 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9998
9999 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10000 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10001
b1ad49c6
UD
10002 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10003 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10004 xdr_ypdelete_args.
10005
cd5f7829
UD
10006 * nis/nis_xdr.h: Mark all functions as hidden. Remove
10007 __BEGIN_DECLS and __END_DECLS, the header is not installed.
10008
a51752b6
UD
10009 * nis/nis_error.c: Remove table of strings. Use position
10010 independent mechanism.
10011 * nis/nis_error.h: New file.
10012
3d237e42
UD
100132006-05-11 Jakub Jelinek <jakub@redhat.com>
10014
10015 * locale/programs/ld-time.c (time_finish): If wide era name or
10016 format aren't provided, set both wname and wformat to L"".
10017
d6c159fe
UD
100182006-05-10 Ulrich Drepper <drepper@redhat.com>
10019
0088b04e
UD
10020 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10021 results if the call was succesful.
10022
d6c159fe
UD
10023 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10024
10025 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10026 as hidden.
10027
5c5acdf0
UD
100282006-05-10 Jakub Jelinek <jakub@redhat.com>
10029
10030 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10031
16d620db
UD
100322006-05-10 Ulrich Drepper <drepper@redhat.com>
10033
10034 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10035 caller makes sure this is not the case.
10036 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
10037
e7c8359e
UD
100382006-05-09 Ulrich Drepper <drepper@redhat.com>
10039
ecf359c6
UD
10040 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10041 calls.
10042
400cc70a
UD
10043 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10044 [Coverity CID 229, 230]
10045
10046 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10047 DGETTEXT calls.
10048 (hol_help): Likewise. [Coverity CID 226, 227]
10049
10050 * string/argz-replace.c (__argz_replace): Unconditionally call
10051 free on SRC. [Coverity CID 225]
10052
10053 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10054 the return value of __nis_default_owner and __nis_default_group,
10055 it has been especially allocated. [Coverity CID 224]
10056
51e59260
UD
10057 * nis/nis_defaults.c (searchXYX): New functions. Used by both
10058 searchgroup and searchowner. Significantly simplified.
10059 (__nis_default_owner): Remove duplication. Do not locally copy the
10060 string before duplicating it.
10061 (__nis_default_group): Likewise.
10062
10063 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10064 we must clear the variable before calling __nisfind_server.
10065
10066 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10067 nis_getnames. [Coverity CID 223]
10068
10069 * locale/programs/locfile.c (locfile_read): Use alloca instead of
10070 xmalloc to allocate local repertoire name. [Coverity CID 222]
10071
10072 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10073 allocate memory for the input to add_bytes. [Coverity CID 221]
10074
e7c8359e 10075 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 10076 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
10077
10078 * posix/getconf.c (print_all): Free confstr data after printing.
10079 [Coverity CID 218]
10080
10081 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10082 list allocation fails. [Coverity CID 215]
10083
10084 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10085 [Coverity CID 213]
10086
10087 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10088 string is NULL. [Coverity CID 212]
10089 * argp/Makefile: Add rules to build and run bug-argp1.
10090 * argp/bug-argp1.c: New file.
10091
10092 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10093 end of string.
10094 * stdlib/canonicalize.c (__realpath): Likewise.
10095
10096 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10097 pointer. [Coverity CID 206]
10098
10099 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10100 in statically linked code.
10101 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10102 statically built code, be prepared to have no link map.
10103 [Coverity CID 205]
10104
10105 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10106 dgettext calls. [Coverity CID 204]
10107
10108 * argp/argp-help.c (struct uparams): Remove valid member. Change
10109 the one user.
10110 (uparam_names): Reduce size. Avoid relative relocations.
10111 Moved to read-only segment.
10112 (fill_in_uparams): Update for new layout.
10113
10114 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10115 assumed to always be != NULL. [Coverity CID 202]
10116
10117 * argp/argp-help.c (hol_entry_help): Remove some dead code
10118 [Coverity CID 200].
10119
10120 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10121 away a few more unconditional yperr2nss calls.
10122 (_nss_nis_getservbyname_r): Likewise.
10123
acf82eaf
UD
101242006-05-06 Ulrich Drepper <drepper@redhat.com>
10125
4461cf48
UD
10126 * sysdeps/generic/ldsodefs.h: Remove support for non-core
10127 architectures.
10128
b74a8c7f
UD
10129 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10130 that unused memory passed to sendto is nevertheless initialized.
10131
acb98cb5
UD
10132 [BZ #2499]
10133 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10134 possibly unaligned memory accesses.
10135
bce16467
UD
10136 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10137 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10138 and __putlong respectively. Correct buffer overflow check for
10139 NS_NOTIFY_OP.
10140
10141 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10142
8e45b1ac
UD
10143 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10144 (send_dg): Rewrite error handling to be more compact and avoid
10145 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
10146
697e1628
UD
10147 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10148
10149 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10150 instead of ns_get16.
10151 (res_queriesmatch): Likewise. Minor optimization.
10152
acf82eaf
UD
10153 [BZ #2499]
10154 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10155 __libc_res_nsend might reallocate the buffer for the answer. In
10156 this case we have to reload the HP pointer.
10157
7bfee654
UD
101582006-05-05 Ulrich Drepper <drepper@redhat.com>
10159
694b49ca
UD
10160 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
10161 some branch prediction hints.
10162
7bfee654
UD
10163 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10164 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10165 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10166 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10167 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10168 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10169 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10170 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10171
308bb2d5
UD
101722006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
10173
10174 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10175 by a GOT relocation to make Scrt1.o position independent.
10176 * sysdeps/s390/s390-64/elf/start.S: Likewise.
10177
10178 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10179 six system call parameters.
10180 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10181
cdb9c321
UD
101822006-05-05 Ulrich Drepper <drepper@redhat.com>
10183
10184 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10185 malloc&bzero.
10186
10187 * sunrpc/svc_udp.c (BZERO): Remove definition.
10188 (CALLOC): Define.
10189 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10190
10191 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
10192 (des_SPtrans): Use uint32_t type.
10193 (des_skb): Likewise.
10194
10195 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10196
fff04b32
UD
101972006-05-05 Jakub Jelinek <jakub@redhat.com>
10198
10199 [BZ #2509]
10200 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10201 on 32-bit arches.
10202
102032006-05-05 Ulrich Drepper <drepper@redhat.com>
10204
10205 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 10206 place where the iso639 array might be accessed beyond the limits.
fff04b32 10207
077a30bc 102082006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 10209
f2d5cf50
UD
10210 * nis/nis_table.c (nis_list): Avoid clearing res twice before
10211 filling it for the first time.
10212
3e4370cf
UD
10213 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10214 Adjust all callers.
10215 Free res object content before returning.
10216
5e65a53d
UD
10217 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10218
48be3114
UD
10219 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10220 client->cl_auth.
10221
ca4fce0e
UD
10222 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10223 cleanup for initial thread, just the free call on TVP.
10224
077a30bc 10225 * nscd/gai.c (__getline): Define.
3b7a95fb 10226
5d37289a 10227
3f87d901 10228See ChangeLog.16 for earlier changes.