]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Fix up termios.h for XPG7.
[thirdparty/glibc.git] / ChangeLog
1 2010-01-11 Ulrich Drepper <drepper@redhat.com>
2
3 * termios/termios.h: Define pid_t for XPG7.
4
5 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
6 * conform/data/tgmath.h-data: Likewise.
7
8 * conform/data/time.h-data: Fix POSIX tests.
9
10 * conform/data/wchar.h-data: Fix up XPG7 tests.
11
12 * include/features.h: Fix __USE_ISOC95 handling.
13
14 * conform/data/wordexp.h-data: Fix typo in last change.
15
16 * conform/data/unistd.h-data: Fix up older POSIX tests.
17
18 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
19 * posix/unistd.h: Likewise.
20
21 * posix/unistd.h: Include environments.h also for XPG6 and up.
22 Define intptr_t for XPG6 and up.
23 Fix up for XPG7.
24 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
25
26 * conform/data/sys/types.h-data: Fix up for XPG7.
27
28 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
29 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
30 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
31 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
32 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
33 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
34 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
35 * sysdeps/unix/sysv/bits/stat.h: Likewise.
36 * sysdeps/mach/hurd/bits/stat.h: Likewise.
37
38 * bits/confname.h: Fix typo in last change.
39
40 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
41
42 2010-01-10 Ulrich Drepper <drepper@redhat.com>
43
44 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
45 and SA_RESETHAND now available in Base.
46 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
47 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
48 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
49 * conform/data/signal.h-data: Update for XPG7.
50
51 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
52
53 * string/strings.h: Don't declare obsolete functions for XPG7.
54 Declare ffs only for XSI.
55 * conform/data/strings.h-data: Update for XPG7.
56
57 2010-01-10 Jakub Jelinek <jakub@redhat.com>
58
59 [BZ #11125]
60 * libio/stdio.h: Define va_list, off_t, and ssize_t.
61
62 * posix/glob.h: Define size_t.
63
64 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
65
66 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
67
68 2010-01-10 Ulrich Drepper <drepper@redhat.com>
69
70 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
71 be self-contained.
72
73 * conform/data/stdio.h-data: Expect off_t and ssize_t.
74
75 2010-01-09 Ulrich Drepper <drepper@redhat.com>
76
77 * libio/stdio.h: Define va_list also for XPG7.
78
79 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
80 * conform/data/ctype.h-data: Likewise.
81 * conform/data/dirent.h-data: Likewise.
82 * conform/data/errno.h-data: Likewise.
83 * conform/data/fcntl.h-data: Likewise.
84 * conform/data/fmtmsg.h-data: Likewise.
85 * conform/data/fnmatch.h-data: Likewise.
86 * conform/data/ftw.h-data: Likewise.
87 * conform/data/glob.h-data: Likewise.
88 * conform/data/grp.h-data: Likewise.
89 * conform/data/iconv.h-data: Likewise.
90 * conform/data/langinfo.h-data: Likewise.
91 * conform/data/libgen.h-data: Likewise.
92 * conform/data/limits.h-data: Likewise.
93 * conform/data/locale.h-data: Likewise.
94 * conform/data/math.h-data: Likewise.
95 * conform/data/monetary.h-data: Likewise.
96 * conform/data/mqueue.h-data: Likewise.
97 * conform/data/ndbm.h-data: Likewise.
98 * conform/data/netdb.h-data: Likewise.
99 * conform/data/pthread.h-data: Likewise.
100 * conform/data/pwd.h-data: Likewise.
101 * conform/data/regex.h-data: Likewise.
102 * conform/data/sched.h-data: Likewise.
103 * conform/data/search.h-data: Likewise.
104 * conform/data/semaphore.h-data: Likewise.
105 * conform/data/setjmp.h-data: Likewise.
106 * conform/data/signal.h-data: Likewise.
107 * conform/data/spawn.h-data: Likewise.
108 * conform/data/stdio.h-data: Likewise.
109 * conform/data/stdlib.h-data: Likewise.
110 * conform/data/string.h-data: Likewise.
111 * conform/data/strings.h-data: Likewise.
112 * conform/data/sys/ipc.h-data: Likewise.
113 * conform/data/sys/msg.h-data: Likewise.
114 * conform/data/sys/resource.h-data: Likewise.
115 * conform/data/sys/sem.h-data: Likewise.
116 * conform/data/sys/shm.h-data: Likewise.
117 * conform/data/sys/socket.h-data: Likewise.
118 * conform/data/sys/stat.h-data: Likewise.
119 * conform/data/sys/time.h-data: Likewise.
120 * conform/data/sys/types.h-data: Likewise.
121 * conform/data/sys/uio.h-data: Likewise.
122 * conform/data/sys/wait.h-data: Likewise.
123 * conform/data/syslog.h-data: Likewise.
124 * conform/data/tar.h-data: Likewise.
125 * conform/data/termios.h-data: Likewise.
126 * conform/data/time.h-data: Likewise.
127 * conform/data/ulimit.h-data: Likewise.
128 * conform/data/unistd.h-data: Likewise.
129 * conform/data/utmpx.h-data: Likewise.
130 * conform/data/wchar.h-data: Likewise.
131 * conform/data/wctype.h-data: Likewise.
132 * conform/data/wordexp.h-data: Likewise.
133
134 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
135 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
136 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
137 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
138 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
139 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
140 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
141 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
142 * sysdeps/unix/sysv/bits/stat.h: Likewise.
143 * sysdeps/mach/hurd/bits/stat.h: Likewise.
144
145 * stdlib/stdlib.h: Define wait-related bits for XPG7.
146 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
147 Declare mkstemp and getsubopt for XPG7.
148 Declare posix_openpt for XPG6 XSI.
149
150 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
151 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
152
153 * string/string.h: Declare strdup for XPG7.
154
155 2010-01-08 Ulrich Drepper <drepper@redhat.com>
156
157 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
158 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
159
160 * dirent/dirent.h: Really fix feature selection.
161
162 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
163 Fix all users.
164 * locale/C-address.c: Fix all users.
165 * locale/C-collate.c: Likewise.
166 * locale/C-ctype.c: Likewise.
167 * locale/C-identification.c: Likewise.
168 * locale/C-measurement.c: Likewise.
169 * locale/C-messages.c: Likewise.
170 * locale/C-monetary.c: Likewise.
171 * locale/C-name.c: Likewise.
172 * locale/C-numeric.c: Likewise.
173 * locale/C-paper.c: Likewise.
174 * locale/C-telephone.c: Likewise.
175 * locale/C-time.c: Likewise.
176 * locale/findlocale.c: Likewise.
177 * locale/global-locale.c: Likewise.
178 * locale/loadarchive.c: Likewise.
179 * locale/loadlocale.c: Likewise.
180 * locale/nl_langinfo_l.c: Likewise.
181 * locale/setlocale.c: Likewise.
182 * locale/xlocale.c: Likewise.
183 * locale/xlocale.h: Likewise.
184 * stdio-common/vfscanf.c: Likewise.
185 * stdlib/strfmon_l.c: Likewise.
186 * stdlib/strtod_l.c: Likewise.
187 * stdlib/strtol_l.c: Likewise.
188 * string/strcoll_l.c: Likewise.
189 * string/strxfrm_l.c: Likewise.
190 * time/alt_digit.c: Likewise.
191 * time/asctime.c: Likewise.
192 * time/era.c: Likewise.
193 * time/lc-time-cleanup.c: Likewise.
194 * time/strftime_l.c: Likewise.
195 * time/strptime_l.c: Likewise.
196 * wcsmbs/wcsmbsload.c: Likewise.
197 * wcsmbs/wcsmbsload.h: Likewise.
198
199 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
200 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
201 for XPG7.
202 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
203 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
204 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
205 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
206 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
207 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
208
209 2010-01-07 Roland McGrath <roland@redhat.com>
210
211 * elf/elf.h (PN_XNUM): New macro.
212
213 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
214 literal 2.
215
216 2010-01-06 Ulrich Drepper <drepper@redhat.com>
217
218 * dirent/dirent.h: Fix typo in feature selection macro use.
219
220 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
221
222 [BZ #11115]
223 * stdlib/tst-makecontext3.c: New file.
224 * stdlib/Makefile (tests): Add new test.
225
226 * stdlib/tst-setcontext.c (check_called): Fix a typo.
227
228 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
229
230 * configure.in: Enable multi-arch by default if the assembler
231 supports gnu_indirect_function symbol type and the architecture
232 supports it.
233
234 2009-12-23 Ulrich Drepper <drepper@redhat.com>
235
236 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
237 is defined.
238
239 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
240
241 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
242 MACH_PORT_NULL when id != cttyid.
243
244 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
245
246 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
247 __mach_port_deallocate on rootdevid.
248
249 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
250
251 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
252 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
253 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
254 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
255
256 2009-12-21 Ulrich Drepper <drepper@redhat.com>
257
258 [BZ #10992]
259 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
260 Patch by Eric Blake <ebb9@byu.net>.
261
262 2009-12-15 Ulrich Drepper <drepper@redhat.com>
263
264 [BZ #11093]
265 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
266 POLLWRBAND also for POSIX 2008.
267 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
268 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
269
270 * include/link.h (struct link_map): Move l_used into its own word.
271 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
272 still zero.
273 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
274 never really used.
275
276 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
277
278 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
279 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
280 check processor feature.
281 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
282 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
283 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
284 (index_SSE2): Likewise.
285
286 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
287
288 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
289 if __ASSEMBLER__ is defined.
290 (bit_SSSE3): New. Defined for __ASSEMBLER__.
291 (bit_SSE4_2): Likewise.
292 (index_SSSE3): Likewise.
293 (index_SSE4_2): Likewise.
294 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
295 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
296 check processor feature.
297 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
298 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
299 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
300 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
301 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
302 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
303 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
304
305 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
306
307 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
308
309 2009-12-01 Mike Frysinger <vapier@gentoo.org>
310
311 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
312
313 2009-12-11 Ulrich Drepper <drepper@redhat.com>
314
315 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
316 O_DSYNC to match 2.6.33+ kernels.
317 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
318 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
319 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
320 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
321 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
322 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
323
324 2009-12-10 Ulrich Drepper <drepper@redhat.com>
325
326 [BZ #11000]
327 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
328 *herrnop before returning.
329 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
330 Likewise.
331 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
332 TRYAGAIN errors separately.
333 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
334 *name4_r after functions.
335
336 2009-12-09 Ulrich Drepper <drepper@redhat.com>
337
338 [BZ #11046]
339 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
340 version check.
341
342 2009-11-05 Bruno Haible <bruno@clisp.org>
343
344 [BZ #11056]
345 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
346 argv argument as non-NULL.
347 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
348
349 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
350
351 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
352 recvmmsg.
353 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
354 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
355
356 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
357
358 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
359 registers.
360 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
361 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
362 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
363
364 2009-11-30 Ulrich Drepper <drepper@redhat.com>
365
366 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
367 SCHED_RESET_ON_FORK.
368
369 2009-11-26 Ulrich Drepper <drepper@redhat.com>
370
371 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
372 only used on truly ancient kernel if configuration requires a more
373 recent kernel.
374
375 2009-11-24 Ulrich Drepper <drepper@redhat.com>
376
377 [BZ #3662]
378 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
379 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
380
381 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
382 pass it on to __ptsname_internal.
383 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
384 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
385 All the code from __ptsname_r but take additional parameter. Use that
386 instead of pointer to local stat64 variable.
387 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
388 variable.
389 * include/stdlib.h: Declare __ptsname_internal.
390
391 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
392 before the exec.
393 * sysdeps/unix/sysv/linux/grantpt.c: New file.
394 * login/programs/pt_chown.c (main): Don't print message on errors
395 when doing real work.
396
397 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
398 once.
399
400 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
401 irel relocations split out from...
402 (__libc_csu_init): ...here.
403 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
404
405 2009-11-23 Andreas Schwab <schwab@redhat.com>
406
407 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
408 for timestamps also if __USE_XOPEN2K8.
409 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
410 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
411 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
412 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
413
414 2009-11-22 Ulrich Drepper <drepper@redhat.com>
415
416 * nscd/connections.c (restart): Try harder to re-exec.
417
418 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
419
420 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
421 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
422 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
423 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
424 some placeholders. Redirect ntp_gettime to ntp_gettimex.
425 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
426
427 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
428 Define.
429 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
430
431 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
432
433 [BZ #10162]
434 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
435 than software pipeline. Properly recover from shorter read.
436
437 2009-11-19 Ulrich Drepper <drepper@redhat.com>
438
439 [BZ #10958]
440 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
441 initialized before using it.
442 (_IO_putwc_unlocked): Likewise.
443
444 [BZ #10918]
445 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
446 in cast to not throw away const-ness of parameters.
447 (__CPU_EQUAL_S): Likewise.
448 (__CPU_OP_S): Likewise.
449
450 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
451 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
452 this gratuitous change and we have to keep compatibility.
453 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
454 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
455 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
456 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
457 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
458 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
459
460 2009-11-17 Ulrich Drepper <drepper@redhat.com>
461
462 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
463 of parameters of sync_file_range.
464 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
465 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
466 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
467 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
468 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
469 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
470
471 2009-11-16 Jakub Jelinek <jakub@redhat.com>
472
473 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
474 Implement using sync_file_range2 syscall if __NR_sync_file_range2
475 is defined.
476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
477 file.
478
479 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
480
481 * posix/bug-regex30.c: New file.
482 * posix/Makefile: Add rules to build and run bug-regex30.
483 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
484 character lead bytes when there is a range in a COMPLEX_BRACKET.
485 Reported by Oleg Bylatov.
486
487 2009-11-17 Ulrich Drepper <drepper@redhat.com>
488
489 [BZ #10969]
490 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
491 * locale/tst-duplocale.c: New file.
492 * locale/Makefile (tests): Add tst-duplocale.
493
494 [BZ #10968]
495 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
496 Patch by Bruno Haible <bruno@clisp.org>.
497 * locale/tst-locname.c: New file.
498 * locale/Makefile (tests): Add tst-locname.
499
500 [BZ #10972]
501 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
502 constants from recent kernels.
503 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
504 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
505 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
506 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
507 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
508 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
509
510 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
511
512 [BZ #10162]
513 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
514 software pipeline.
515
516 2009-11-09 Mike Frysinger <vapier@gentoo.org>
517
518 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
519 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
520 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
521
522 2009-11-06 Mike Frysinger <vapier@gentoo.org>
523
524 * posix/bug-regex29.c: Include stdio.h.
525
526 2009-11-14 Ulrich Drepper <drepper@redhat.com>
527
528 [BZ #10939]
529 * Versions.def: Define GLIBC_2.12 for libc.
530 * manual/errno.texi: Add ERFKILL entry.
531 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
532 for 2.12.
533 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
534 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
535
536 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
537 F_GETOWN_EX definitions according to corrected kernel definitions.
538 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
539 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
540 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
541 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
542 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
543 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
544
545 2009-11-12 Ulrich Drepper <drepper@redhat.com>
546
547 * version.h: Bump for 2.12 development.
548
549 2009-11-10 Andreas Schwab <schwab@redhat.com>
550
551 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
552 out of buffer space.
553 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
554 map_v4v6_hostent running out of space.
555
556 2009-11-10 Ulrich Drepper <drepper@redhat.com>
557
558 * string/bits/string3.h (memset): If the second parameter is constant
559 and zero there is likely no transposition.
560 Patch by Caolan McNamara <caolanm@redhat.com.
561
562 2009-11-04 Philippe De Muyter <phdm@macqel.be>
563
564 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
565 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
566
567 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
568
569 * malloc/memusagestat.c (main): Fix spelling in an error message.
570
571 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
572
573 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
574 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
575
576 2009-11-03 Andreas Schwab <schwab@redhat.com>
577
578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
579 readahead.
580
581 2009-11-03 Jakub Jelinek <jakub@redhat.com>
582
583 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
584 relocate opd entry when resolving prelink conflicts.
585
586 2009-11-04 Jakub Jelinek <jakub@redhat.com>
587
588 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
589 when -D_FILE_OFFSET_BITS=64.
590
591 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
592 of last two arguments when -D_FILE_OFFSET_BITS=64.
593 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
594 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
595 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
596 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
597 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
598 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
599
600 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
601
602 [BZ #4457]
603 * sysdeps/generic/libgcc_s.h: New file.
604 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
605
606 2009-11-01 Ulrich Drepper <drepper@redhat.com>
607
608 * malloc/hooks.c (free_check): Restore locking and call _int_free
609 appropriately.
610
611 2009-10-30 Ulrich Drepper <drepper@redhat.com>
612
613 * version.h (VERSION): Bump for 2.11 release.
614 * include/features.h (__GLIBC_MINOR__): Bump to 11.
615
616 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
617
618 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
619
620 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
621 to avoid warning.
622 * stdlib/tst-strtoll.c (tests): Likewise.
623
624 [BZ #9986]
625 * time/strftime_l.c (__strftime_internal): Allow %OC.
626
627 * misc/mkostemps.c: New file.
628 * misc/mkostemps64.c: New file.
629
630 2009-10-30 Andreas Schwab <schwab@redhat.com>
631
632 * locale/programs/locale-spec.c: Include <error.h> and
633 <libintl.h>.
634
635 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
636
637 2009-10-28 Roland McGrath <roland@redhat.com>
638
639 * Makefile (dist-prepare): New target.
640 (tag-for-dist): Target removed.
641 (glibc-%.tar): Pattern rule removed.
642 (%.tar): New pattern rule, does simple use of git archive.
643 (dist-version): Remove variable definition.
644 (dist): Just depend on that. Add .tar.xz dependency.
645 If dist-version variable not set on command line, depend on
646 dist-prepare, re-invoke with dist-version set via git describe.
647
648 * Makerules (%.xz): New pattern rule.
649
650 2009-10-28 Alan Modra <amodra@bigpond.net.au>
651
652 * elf/ifuncdep2.c: Include ifunc-sel.h.
653 (global): Delete.
654 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
655 * elf/ifuncmain1.c (global): Delete.
656 * elf/ifuncmain1vis.c: Likewise.
657 * elf/ifuncmain2.c: Likewise.
658 * elf/ifuncmain5.c: Likewise.
659 * elf/ifuncmod3.c: Likewise.
660 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
661 (foo_ifunc): Use ifunc_one.
662 * elf/ifuncmain7.c: Likewise.
663 * elf/ifuncmod1.c: Include ifunc-sel.h.
664 (global): Define protected var.
665 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
666 * elf/ifuncmod5.c: Likewise.
667 * sysdeps/generic/elf/ifunc-sel.h: New file.
668 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
669
670 2009-07-30 Alan Modra <amodra@bigpond.net.au>
671
672 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
673 (R_PPC_REL16*): Correct comments.
674 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
675 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
676 R_PPC64_REL16_HA): Define.
677 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
678 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
679 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
680 Delete unused "reloc" param.
681 (__process_machine_rela): Handle R_PPC_IRELATIVE.
682 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
683 Delete "reloc" param.
684 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
685 R_PPC_IRELATIVE.
686 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
687 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
688 relocations.
689
690 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
691
692 [BZ #10315]
693 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
694 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
695 UDP_ENCAP_L2TPINUDP.
696
697 [BZ #10349]
698 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
699 parameter, specifying length of prefix.
700 * stdio-common/tempname.c: Likewise.
701 * include/stdio.h: Adjust prototypes.
702 * libio/oldtmpfile.c: Adjust caller.
703 * misc/mkdtemp.c: Likewise.
704 * misc/mkostemp.c: Likewise.
705 * misc/mkostemp64.c: Likewise.
706 * misc/mkstemp.c: Likewise.
707 * misc/mkstemp64.c: Likewise.
708 * misc/mktemp.c: Likewise.
709 * stdio-common/tempnam.c: Likewise.
710 * stdio-common/tmpfile.c: Likewise.
711 * stdio-common/tmpnam.c: Likewise.
712 * stdio-common/tmpnam_r.c: Likewise.
713 * misc/mkstemps.c: New file.
714 * misc/mkstemps64.c: New file.
715 * stdlib/stdlib.h: Add prototypes.
716 * misc/Makefile (routines): Add mkstemps and mkstemps64.
717 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
718
719 2009-10-29 Ulrich Drepper <drepper@redhat.com>
720
721 * locale/iso-639.def: Add sml entry.
722
723 [BZ #10391]
724 * resolv/res_send.c (send_dg): Initialize resplen.
725
726 [BZ #10446]
727 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
728 definition to the kernel's.
729 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
730
731 2009-08-18 Anders Johansson <ajohansson@novell.com>
732
733 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
734 offsets and record sizes in assert()s and response sending.
735 * nscd/grpcache.c: Likewise.
736 * nscd/hstcache.c: Likewise.
737 * nscd/initgrcache.c: Likewise.
738 * nscd/pwdcache.c: Likewise.
739
740 2009-10-29 Ulrich Drepper <drepper@redhat.com>
741
742 [BZ #10540]
743 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
744 /etc/hosts does not exist set errnop and herrnop appropriately.
745 Patch by Steve Langasek <vorlon@debian.org>.
746
747 [BZ #10553]
748 * malloc/malloc.c (malloc_info): Fix typos in format strings.
749 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
750
751 [BZ #10564]
752 * login/utmp_file.c (TIMEOUT): Increase to 10.
753
754 [BZ #10609]
755 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
756 for file names in case the syscall is not available.
757 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
758 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
759 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
760 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
761 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
762 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
763 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
764 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
765 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
766 * sysdeps/unix/sysv/linux/openat.c: Likewise.
767 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
768 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
769 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
770 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
771 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
772 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
773 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
774
775 [BZ #10643]
776 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
777 creation filed, remove the request from the 'requests' list and signal
778 the caller that the request is finished.
779
780 [BZ #10692]
781 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
782 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
783
784 [BZ #10713]
785 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
786 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
787
788 [BZ #10780]
789 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
790 overflows the int return type.
791
792 [BZ #10717]
793 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
794 have to compute maxsize_total, we have to update the variables, and
795 the also_total handling must happen after the repair.
796
797 [BZ #10742]
798 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
799 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
800
801 2009-10-27 Andreas Schwab <schwab@redhat.com>
802
803 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
804 errno is always set when returning unsuccessfully.
805
806 2009-10-29 Andreas Schwab <schwab@redhat.com>
807
808 * malloc/memusage.c (update_data): Fix index wraparound handling
809 so that buffer_cnt is actually reset.
810
811 2009-10-29 Ulrich Drepper <drepper@redhat.com>
812
813 [BZ #10784]
814 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
815 of the directory we look at into the static buffer if there is one
816 at the start of the loop.
817
818 [BZ #10789]
819 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
820 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
821
822 [BZ #10840]
823 * sysdeps/unix/sysv/linux/kernel-features.h: Define
824 __ASSUME_F_GETOWN_EX.
825 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
826 if possible.
827 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
828
829 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
830 and f_owner_ex.
831 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
832 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
833 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
834 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
835 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
836 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
837
838 [BZ #10847]
839 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
840 getutmpx symbol.
841
842 [BZ #10823]
843 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
844 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
845
846 2009-10-24 Joseph Myers <joseph@codesourcery.com>
847
848 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
849
850 2009-10-27 Jakub Jelinek <jakub@redhat.com>
851
852 [BZ #10817]
853 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
854 Reported by Ray Chason.
855
856 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
857
858 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
859 strend-sse4.
860 * sysdeps/x86_64/multiarch/strchr.S: New file.
861 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
862 * sysdeps/x86_64/multiarch/strrchr.S: New file.
863
864 2009-10-21 Andreas Schwab <schwab@redhat.com>
865
866 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
867
868 2009-10-19 Andreas Schwab <schwab@redhat.com>
869
870 * include/math.h: Add hidden protos for __exp/__expf/__expl.
871 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
872 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
873 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
874 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
875 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
876 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
877 __ieee751_expl to handle overflow.
878
879 2009-10-14 David S. Miller <davem@davemloft.net>
880
881 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
882 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
883
884 2009-10-13 Andreas Schwab <schwab@redhat.com>
885
886 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
887 !USE_MULTIARCH.
888
889 2009-10-08 Ulrich Drepper <drepper@redhat.com>
890
891 [BZ #10730]
892 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
893 Patch in part by Steve Ward <planet36@gmail.com>.
894
895 [BZ #10731]
896 * stdlib/rand_r.c: Fix typo.
897
898 * po/cs.po: Update from translation team.
899
900 2009-10-06 Andreas Schwab <schwab@redhat.com>
901
902 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
903 returning if RTLD_NOLOAD.
904
905 2009-10-06 Roland McGrath <roland@redhat.com>
906
907 * sysdeps/x86_64/multiarch/strstr-c.c
908 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
909
910 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
911 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
912
913 * sysdeps/x86_64/multiarch/init-arch.h
914 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
915 (HAS_CPU_FEATURE): New macro.
916 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
917 * sysdeps/x86_64/multiarch/init-arch.c
918 (__get_cpu_features): #undef it before definition.
919
920 2009-10-05 Andreas Schwab <schwab@redhat.com>
921
922 * locale/C-time.c: Revert week-1stday back to 19971130 and set
923 first_weekday to 1 and first_workday to 2.
924
925 2009-10-01 Ulrich Drepper <drepper@redhat.com>
926
927 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
928 F_GETOWN_EX.
929 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
930 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
931 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
932 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
933 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
934 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
935
936 2009-09-28 Andreas Schwab <schwab@redhat.com>
937
938 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
939 * stdio-common/vfprintf.c: Likewise.
940
941 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
942
943 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
944 (mkdirat): Call __directory_name_split_at instead of
945 __directory_name_split.
946
947 2009-09-28 Ulrich Drepper <drepper@redhat.com>
948
949 * locale/programs/locale-spec.c (locale_special): If nothing matches
950 fail with an appropriate message.
951
952 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
953
954 * configure.in: Exclude binutils 2.X. Support binutils 2.100
955 and XX.
956
957 2009-09-25 Andreas Schwab <schwab@redhat.com>
958
959 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
960 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
961
962 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
963
964 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
965
966 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
967
968 * iconvdata/iso646.c (gconv_init): Correctly initialize the
969 character size elements in step data.
970
971 2009-09-20 Ulrich Drepper <drepper@redhat.com>
972
973 * po/hu.po: Update from translation team.
974 * po/vi.po: Likewise.
975
976 2009-09-19 Roland McGrath <roland@redhat.com>
977
978 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
979
980 2009-09-15 Roland McGrath <roland@redhat.com>
981
982 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
983 * nptl/sysdeps/pthread/configure: Regenerated.
984 * nptl/sysdeps/x86_64/configure: Regenerated.
985 * sysdeps/unix/sysv/linux/configure: Regenerated.
986 * sysdeps/x86_64/elf/configure: Regenerated.
987
988 * Makefile (autoconf-it): Set execute bit only on top-level configure.
989
990 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
991 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
992 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
993 * configure: Regenerated.
994
995 2009-09-09 Ulrich Drepper <drepper@redhat.com>
996
997 * posix/getconf.c (main): Handle -- on command line.
998
999 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1000
1001 * configure.in: Support binutils 2.100 and 3.0.
1002
1003 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1004
1005 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1006 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1007 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1008 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1009
1010 2009-09-07 Ulrich Drepper <drepper@redhat.com>
1011
1012 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1013 unnamed_section_defined field.
1014 (collate_read): Test and set unnamed_section_defined.
1015
1016 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1017 _POSIX2_LINE_MAX.
1018
1019 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1020
1021 * configure.in: Support binutils 2.20.
1022
1023 2009-09-03 Ulrich Drepper <drepper@redhat.com>
1024
1025 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1026 __strstr_ia32): Add attribute_hidden.
1027
1028 2009-09-01 Andreas Schwab <schwab@redhat.com>
1029
1030 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1031 parsing of group entry.
1032
1033 2009-09-02 Andreas Schwab <schwab@redhat.com>
1034
1035 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1036 external buffer. Always discard readahead in internal buffer.
1037 * libio/Makefile (tests): Add bug-wsetpos.
1038 * libio/bug-wsetpos.c: New file.
1039
1040 2009-09-02 Jakub Jelinek <jakub@redhat.com>
1041
1042 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1043 Add attribute_hidden.
1044 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1045 __strcasestr_sse2): Likewise.
1046 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1047 (__fma_fma): Make static.
1048 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1049 (__fmaf_fma): Make static.
1050
1051 2009-08-31 Andreas Schwab <schwab@redhat.com>
1052
1053 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1054 reformulate in-buffer optimisation check to match code in
1055 _IO_new_file_seekoff.
1056
1057 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1058
1059 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1060 to srwi in 32-bit memcpy for power6.
1061
1062 2009-09-01 Andreas Schwab <schwab@redhat.com>
1063
1064 * include/stdio.h: Declare hidden proto for fflush.
1065 * libio/iofflush.c: Add hidden weak alias for fflush.
1066
1067 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1068
1069 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1070 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1071
1072 2009-08-31 Andreas Schwab <schwab@redhat.com>
1073
1074 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1075
1076 2009-08-31 Ulrich Drepper <drepper@redhat.com>
1077
1078 [BZ #10560]
1079 * malloc/malloc.c: Add local assert definition to avoid problems with
1080 memory allocation in the real one.
1081
1082 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1083
1084 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1085 Removed.
1086 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1087 turn off SSSE3 on Atom.
1088
1089 2009-08-28 Ulrich Drepper <drepper@redhat.com>
1090
1091 * stdlib/tst-strtol.c (tests): More tests.
1092 * stdlib/tst-strtoll.c (tests): Likewise.
1093
1094 2009-08-26 Ulrich Drepper <drepper@redhat.com>
1095
1096 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1097
1098 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1099
1100 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1101
1102 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1103 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1104
1105 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1106
1107 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1108
1109 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1110
1111 2009-08-25 Joseph Myers <joseph@codesourcery.com>
1112
1113 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1114
1115 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1116
1117 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1118 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1119
1120 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1121
1122 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1123 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1124
1125 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1126 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1127
1128 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1129 leftover YMM_SIZE definition.
1130
1131 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1132
1133 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1134 union.
1135 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1136 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1137 Redefine.
1138 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1139
1140 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1141 and SET_FLOAT_WORD definitions.
1142
1143 2009-08-24 Roland McGrath <roland@redhat.com>
1144
1145 * sysdeps/unix/syscall-template.S: New file.
1146 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1147 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1148 (compile-syscall): Pass mkdep and -g options as normal.
1149 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1150 (common-generated): Don't add them here.
1151
1152 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1153
1154 * math/s_fdim.c: In case of overflows set errno.
1155 * math/s_fdimf.c: Likewise.
1156 * math/s_fdiml.c: Likewise.
1157
1158 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1159 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1160 are using the inline optimizations.
1161
1162 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1163 (__signbitf): Likewise.
1164
1165 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1166
1167 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1168 terminated.
1169 * posix/Makefile (tests): Add bug-regex29.
1170 * posix/bug-regex29.c: New file.
1171
1172 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1173 older POSIX versions are selected.
1174
1175 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1176 as well.
1177 * stdio-common/printf_fphex.c: Likewise.
1178 * stdio-common/tstdiomisc.c: Add more tests.
1179
1180 * locale/locale.h: Include xlocale.h and the thread-local locale
1181 declarations for XPG7, not XPG6.
1182
1183 2009-08-21 Andreas Schwab <schwab@redhat.com>
1184
1185 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1186 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1189 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1190 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1191
1192 2009-08-20 Roland McGrath <roland@redhat.com>
1193
1194 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1195 Use l_addr instead of l_map_start (dli_fbase).
1196 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1197 address when there is no proximate symbol.
1198 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1199 Likewise.
1200
1201 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1202
1203 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1204
1205 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1206
1207 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1208 Also handle SIGINT. In that case only do the cleanup and then
1209 re-raise the signal.
1210 (main): Install handler for SIGINT.
1211
1212 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1213
1214 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1215 clobber list.
1216
1217 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1218
1219 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1220 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1221 tst-auditmod7b.c.
1222 (tests): Add tst-audit6 tst-audit7.
1223 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1224 tst-auditmod7a tst-auditmod7b.
1225 ($(objpfx)tst-audit6): New.
1226 ($(objpfx)tst-audit6.out): Likewise.
1227 ($(objpfx)tst-audit7): Likewise.
1228 ($(objpfx)tst-audit7.out): Likewise.
1229 (tst-audit6-ENV): Likewise.
1230 (tst-audit7-ENV): Likewise.
1231 (CFLAGS-tst-auditmod6b.c): Likewise.
1232 (CFLAGS-tst-auditmod6c.c): Likewise.
1233 (CFLAGS-tst-auditmod7b.c): Likewise.
1234 * elf/tst-audit6.c: New file.
1235 * elf/tst-audit7.c: New file.
1236 * elf/tst-auditmod6a.c: New file.
1237 * elf/tst-auditmod6b.c: New file.
1238 * elf/tst-auditmod6c.c: New file.
1239 * elf/tst-auditmod7a.c: New file.
1240 * elf/tst-auditmod7b.c: New file.
1241 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1242 saving and restoring SSE/AVX registers to ...
1243 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1244
1245 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1246
1247 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1248 only if SHARED is defined.
1249 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1250
1251 2009-08-03 Jim Meyering <meyering@redhat.com>
1252
1253 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1254
1255 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1256
1257 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1258 section as the other functions for this architecture.
1259 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1260
1261 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1262
1263 * sysdeps/x86_64/strcmp.S: Add support to compile with
1264 USE_SSSE3. In this case palignr is used.
1265 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1266 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1267 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1268 Add strcmp-ssse3 and strncmp-ssse3.
1269 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1270 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1271
1272 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1273 warning through fake initialization.
1274
1275 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1276
1277 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1278
1279 2009-08-07 Andreas Schwab <schwab@redhat.com>
1280
1281 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1282 unique symbols.
1283
1284 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1285
1286 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1287 EBX from EAX = 1. Handle EAX = 11.
1288
1289 2009-08-07 Andreas Schwab <schwab@redhat.com>
1290
1291 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1292 inside ''.
1293
1294 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1295
1296 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1297 hidden IFUNC functions.
1298 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1299
1300 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1301
1302 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1303 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1304 strcasestr-c.
1305 (CFLAGS-strcspn-c.c): Define.
1306 (CFLAGS-strpbrk-c.c): Define.
1307 (CFLAGS-strspn-c.c): Define.
1308 (CFLAGS-strstr.c): Define.
1309 (CFLAGS-strcasestr.c): Define.
1310 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1311 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1312 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1313 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1314 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1315 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1316 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1317 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1318 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1319 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1320 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1321 -16L instead of 0xfffffffffffffff0L.
1322 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1323
1324 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1325
1326 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1327
1328 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1329
1330 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1331 another rewrite. Much smaller and faster.
1332 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1333
1334 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1335 ss_flags from the correct location.
1336
1337 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1338
1339 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1340 * sysdeps/i386/i686/cacheinfo.c: New file.
1341 * sysdeps/i386/i686/multiarch/Makefile: New file.
1342 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1343 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1344 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1345 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1346 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1347 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1348 (__cpuid_count): New. Provide the default.
1349 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1350 (__x86_64_preferred_memory_instruction): Define only if
1351 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1352 (intel_check_word): Use __cpuid.
1353 (handle_intel): Likewise.
1354 (handle_amd): Likewise.
1355 (__cache_sysconf): Likewise.
1356 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1357 (__cache_sysconf): Likewise.
1358 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1359 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1360 (get_common_indeces): Use __cpuid.
1361 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1362 if ENABLE_SSSE3_ON_ATOM is not defined.
1363 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1364 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1365 popcnt instead of popcntq.
1366
1367 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1368
1369 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1370
1371 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1372
1373 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1374 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1375 which always causes a compile error.
1376
1377 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1378
1379 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1380 comes from...
1381 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1382 which always causes a compile error.
1383
1384 * debug/Makefile (tests): Add tst-longjmp_chk2.
1385 * debug/tst-longjmp_chk2.c: New file.
1386
1387 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1388 Remove incorrect use of BP_SYM.
1389 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1390 here now since it is more complex than just a simple check.
1391
1392 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1393 we make no more progress.
1394
1395 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1396
1397 * math/s_fma.c: Don't define alias if __fma is a macro.
1398 * math/s_fmaf.c: Likewise.
1399 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1400 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1401 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1402
1403 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1404 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1405 New macro HAS_FMA.
1406 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1407 function.
1408 * include/libc-symbols.h (libm_ifunc): Define.
1409 * sysdeps/x86_64/multiarch/Versions: New file.
1410
1411 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1412
1413 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1414
1415 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1416
1417 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1418
1419 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1420 call that registers used in calling conventions need to be preserved.
1421 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1422 to preserve register content if necessary.
1423 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1424 (_dl_x86_64_restore_sse): New function.
1425 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1426 is allowed to modify xmm/ymm registers.
1427
1428 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1429 application's perspective.
1430 * stdio-common/scanf17.c: Likewise.
1431
1432 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1433
1434 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1435 size to memsz.
1436 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1437 here.
1438 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1439 two steps to catch bugs.
1440
1441 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1442
1443 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1444 determines which files are used in runtime lookups and only checks
1445 those for SSE use.
1446 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1447 testing.
1448 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1449 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1450 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1451 take a while.
1452
1453 * elf/dl-open.c: Move _dl_scope_free to...
1454 * elf/dl-scope.c: ...here. New file.
1455 * elf/Makefile (dl-routines): Add scope.
1456
1457 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1458 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1459 RES_USE_DNSSEC.
1460 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1461 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1462 all the places we handled RES_USE_EDNS0 only before.
1463 Patch by Adam Tkac <atkac@redhat.com>.
1464
1465 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1466
1467 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1468 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1469 Update size when reallocating.
1470
1471 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1472
1473 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1474 functions used in ld.so modify xmm/ymm registers.
1475 * sysdeps/x86_64/Makefile: Hook new test up.
1476 * sysdeps/x86_64/rtld-memchr.c: New file.
1477 * sysdeps/x86_64/rtld-memcmp.c: New file.
1478 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1479 * sysdeps/x86_64/rtld-strchr.S: New file.
1480 * sysdeps/x86_64/rtld-strlen.S: New file.
1481 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1482 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1483
1484 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1485
1486 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1487 strncmp-c.
1488 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1489 (exit): Likewise.
1490 (Byte1): Likewise.
1491 (Byte2): Likewise.
1492 (Byte3): Likewise.
1493 (Byte4): Likewise.
1494 (Byte5): Likewise.
1495 (Byte6): Likewise.
1496 (next_8_bytes): Likewise.
1497 (Byte0): Remove commented out codes.
1498 (unaligned_table): Align jump table at 8 bytes.
1499 Add _sse4_2 to all labels. Always include "../strcmp.S".
1500 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1501 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1502 * sysdeps/x86_64/strncmp.S: New file.
1503
1504 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1505
1506 [BZ #10422]
1507 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1508 kernels, dropped when eventfd2 support was added.
1509 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1510 kernels, dropped when signalfd4 support was added.
1511 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1512 added, name them.
1513
1514 [BZ #10452]
1515 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1516 replies up.
1517
1518 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1519
1520 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1521
1522 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1523 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1524
1525 [BZ #10448]
1526 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1527 callback we must touch the status to avoid using stale value.
1528
1529 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1530 compiled in.
1531
1532 2009-07-24 Ulrich Drepper <drepper@redhat.com>
1533
1534 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1535 /lib/modules/* headers anymore. We have sane headers in the standard
1536 place now.
1537
1538 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1539
1540 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1541 "etf3enh" and "highgprs" added.
1542 (_dl_s390_platforms): "z10" added.
1543 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1544 Increased for the new entries.
1545 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1546 HWCAP_S390_HIGH_GPRS added.
1547
1548 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1549 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1550 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1551 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1552 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1553
1554 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1555
1556 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1557 avoid additional cpuid instructions. Most of the information is
1558 stored somewhere.
1559
1560 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1561 cache descriptors.
1562 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1563
1564 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1565 SSSE3 bit for Atoms.
1566 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1567 here anymore.
1568
1569 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1570 structure before copying it to avoid warning.
1571 * posix/tst-rfc3484-2.c (do_test): Likewise.
1572 * posix/tst-rfc3484-3.c (do_test): Likewise.
1573
1574 [BZ #10416]
1575 * include/unistd.h: Make header file suitable for C++ test cases.
1576 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1577
1578 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1579 stack alignment in the exit code.
1580
1581 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1582 potentially be zero.
1583
1584 * elf/tst-unique1.c: Extend test to check for unloading DSO with
1585 unique symbol definition.
1586 Patch by Jakub Jelinek.
1587 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1588 make sure the object with the definition cannot be unloaded. Adjust
1589 a few types.
1590 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1591 the unique symbol hash table should not be const.
1592
1593 2009-07-21 Ulrich Drepper <drepper@redhat.com>
1594
1595 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
1596 unnecesary variables. Comment fixes.
1597
1598 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1599
1600 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1601 Use NONASCII_CASE information provided by the locale to determine
1602 whether optimized string load function can be used. Minor cleanups.
1603
1604 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
1605
1606 * string/strcasestr.c (STRCASESTR): New macro.
1607 (__strcasestr): Renamed to ..
1608 (STRCASESTR): ...this.
1609 * string/strstr.c (STRSTR): New macro.
1610 (strstr): Renamed to ..
1611 (STRSTR): ...this.
1612 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1613 strstr-c strcasestr-c
1614 (CFLAGS-strstr.c): New.
1615 (CFLAGS-strcasestr.c): Likewise.
1616 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1617 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1618 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1619 * sysdeps/x86_64/multiarch/strstr.c: New file.
1620
1621 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1622
1623 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1624 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1625 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1626 _NL_CTYPE_NONASCII_CASE.
1627 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1628 field.
1629 (ctype_finish): Check whether there are any 8-bit characters outside
1630 the range ASCII has or whether the mapping isn't the same as for
1631 ASCII (±0x20). Set nonascii_case appropriately.
1632 (ctype_output): Add output handler for nonascii_case.
1633
1634 2009-07-17 Ulrich Drepper <drepper@redhat.com>
1635
1636 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1637 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1638
1639 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1640
1641 [BZ #10360]
1642 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1643 0xffff in the EDNS0 record.
1644
1645 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1646
1647 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1648 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1649 is written before the list head update.
1650 Patch by Andreas Schwab <aschwab@redhat.com>.
1651
1652 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1653 Jakub Jelinek <jakub@redhat.com>
1654
1655 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1656 corruption thread-safe.
1657
1658 2009-07-13 Jakub Jelinek <jakub@redhat.com>
1659
1660 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1661 overrides atomic_compare_and_exchange_val_rel, define to
1662 atomic_compare_and_exchange_val_rel by default, otherwise default
1663 to catomic_compare_and_exchange_val_acq.
1664 (catomic_compare_and_exchange_bool_rel): If arch overrides
1665 atomic_compare_and_exchange_bool_rel, define to
1666 atomic_compare_and_exchange_bool_rel by default.
1667 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1668 Use catomic_compare_and_exchange_val_rel instead of
1669 catomic_compare_and_exchange_val_acq.
1670
1671 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1672
1673 * sysdeps/generic/ldsodefs.h: Add prototype for
1674 _dl_higher_prime_number.
1675 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1676
1677 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1678 restoring of ymm registers a bit.
1679
1680 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1681
1682 * sysdeps/x86_64/memcmp.S: New file.
1683
1684 2009-07-15 Ulrich Drepper <drepper@redhat.com>
1685
1686 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1687 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1688 pointers in writable memory.
1689
1690 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1691
1692 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1693 * config.make.in: Add config-cflags-avx entry.
1694 * configure.in: Substitute libc_cv_cc_avx.
1695 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1696 * elf/tst-audit4.c: New file.
1697 * elf/tst-audit5.c: New file.
1698 * elf/tst-auditmod4a.c: New file.
1699 * elf/tst-auditmod4b.c: New file.
1700 * elf/tst-auditmod5a.c: New file.
1701 * elf/tst-auditmod5b.c: New file.
1702 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1703 link-defines.sym.
1704 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1705 (La_x86_64_vector): Likewise.
1706 (La_x86_64_regs): Append lr_vector.
1707 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1708 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1709 saving and restoring SSE registers to ...
1710 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1711 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1712 <link-defines.h>.
1713 (_dl_runtime_profile): Use LR_SIZE to allocate space for
1714 La_x86_64_regs. Allocate extra space and jump to memory at
1715 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1716 (save_and_restore_vector_sse): New.
1717 (save_and_restore_vector_avx): Likewise.
1718 (check_avx): Likewise.
1719 (save_and_restore_vector): Likewise.
1720 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1721 HAVE_AVX_SUPPORT.
1722 * sysdeps/x86_64/link-defines.sym: New file.
1723
1724 2009-07-10 Ulrich Drepper <drepper@redhat.com>
1725
1726 * elf/do-lookup.h: Removed after folding content into...
1727 * elf/dl-lookup.c: ...here.
1728
1729 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1730
1731 2009-07-09 Ulrich Drepper <drepper@redhat.com>
1732
1733 * configure.in: Check for gnu_unique_symbol symbol type.
1734 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1735 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1736 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
1737 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1738 change.
1739 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1740 unique symbol table.
1741 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1742 for first namespace.
1743 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1744 unique symbol hash table.
1745 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1746 * elf/tst-unique1.c: New file.
1747 * elf/tst-unique1mod1.c: New file.
1748 * elf/tst-unique1mod2.c: New file.
1749 * elf/tst-unique2.c: New file.
1750 * elf/tst-unique2mod1.c: New file.
1751 * elf/tst-unique2mod2.c: New file.
1752
1753 2009-07-07 Ulrich Drepper <drepper@redhat.com>
1754
1755 * elf/elf.h (STB_GNU_UNIQUE): Define.
1756
1757 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
1758 from...
1759 * include/inline-hashtab.h: ...here.
1760 (htab_expand): Adjust for renamed function. Correct memory handling.
1761
1762 2009-07-06 Ulrich Drepper <drepper@redhat.com>
1763
1764 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1765
1766 2009-07-03 Andreas Schwab <aschwab@redhat.com>
1767
1768 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1769 (PPC_FEATURE_HAS_VSX): Likewise.
1770
1771 2009-07-03 Ulrich Drepper <drepper@redhat.com>
1772
1773 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1774 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1775
1776 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1777 aligned to 16 byte boundaries.
1778 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1779 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1780 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1781
1782 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
1783
1784 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1785 * config.make.in (config-cflags-sse4): New variable.
1786 * configure.in: Substitute libc_cv_cc_sse4.
1787 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1788 HAVE_SSE4_SUPPORT.
1789 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1790 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1791 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1792 * sysdeps/x86_64/multiarch/strcspn.S: New file.
1793 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1794 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1795 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1796 * sysdeps/x86_64/multiarch/strspn.S: New file.
1797
1798 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
1799
1800 * elf/Makefile (distribute): Remove tst-audit.sh. Add
1801 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1802 (tests): Add tst-audit3 for x86_64.
1803 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1804 ($(objpfx)tst-audit3): Define.
1805 ($(objpfx)tst-audit3.out): Define.
1806 (tst-audit3-ENV): Define.
1807 * elf/tst-audit3.c: New file.
1808 * elf/tst-auditmod3a.c: New file.
1809 * elf/tst-auditmod3b.c: New file.
1810 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1811 and restore xmm6.
1812
1813 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
1814 (__stpncpy): Renamed to ...
1815 (STPNCPY): This.
1816 (stpncpy): Create alias only if STPNCPY is not defined.
1817 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
1818 defined.
1819 (strncpy): Renamed to ...
1820 (STRNCPY): This.
1821 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1822 stpncpy-c strncpy-c for string.
1823 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1824 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1825 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1826 * sysdeps/x86_64/multiarch/strcpy.S: New file.
1827 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1828 * sysdeps/x86_64/multiarch/strncpy.S: New file.
1829
1830 2009-07-02 Ulrich Drepper <drepper@redhat.com>
1831
1832 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1833 adding to fast bin list.
1834
1835 2009-07-01 Ulrich Drepper <drepper@redhat.com>
1836
1837 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1838 inet_makeaddr. This worked only with class-based networks.
1839 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1840 Likewise.
1841
1842 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1843 recognize all types.
1844 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1845 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
1846 be in host byte order.
1847
1848 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1849
1850 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1851 (MODEL_OFFSET): Define.
1852 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1853 family and model.
1854 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1855 out common code into new function get_common_indeces. Determine
1856 extended family and model for Intel processors.
1857
1858 2009-06-26 Ulrich Drepper <drepper@redhat.com>
1859
1860 * resolv/resolv.h: Define RES_SNGLKUPREOP.
1861 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1862 option.
1863 * resolv/res_send.c (reopen): New function. Broken out of...
1864 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
1865 fallback mechanism. If single-request fails switch to
1866 single-request-reopen mode which opens a new socket for the second
1867 request.
1868
1869 2009-06-25 Andreas Schwab <aschwab@redhat.com>
1870
1871 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1872 (CHECK_SP): Use it.
1873
1874 2009-06-24 Andreas Schwab <aschwab@redhat.com>
1875
1876 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1877 for saved registers.
1878 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1879 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1880 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1881
1882 2009-06-23 Andreas Schwab <aschwab@redhat.com>
1883
1884 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1885
1886 2009-06-22 Ulrich Drepper <drepper@redhat.com>
1887
1888 * po/id.po: Update from translation team.
1889
1890 * po/bg.po: Update from translation team.
1891
1892 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
1893
1894 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
1895 defined.
1896 (strncmp): Renamed to STRNCMP.
1897 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1898 strncmp-c for string.
1899 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1900 * sysdeps/x86_64/multiarch/strcmp.S: New file.
1901 * sysdeps/x86_64/multiarch/strncmp.S: New file.
1902 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1903
1904 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
1905
1906 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1907 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1908 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1909 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1910 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1911 ifuncmain7static.c.
1912 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1913 ifuncmain7static, and ifuncmain7picstatic.
1914 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1915 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1916 $(objpfx)ifuncmain7pie.out.
1917 (modules-names): Add ifuncmod5 ifuncmod6
1918 (ifuncmod5.so-no-z-defs): Define.
1919 (ifuncmod6.so-no-z-defs): Define.
1920 (CFLAGS-ifuncmain5pic.c): Define.
1921 (CFLAGS-ifuncmain5picstatic.c): Define.
1922 (CFLAGS-ifuncmain5staticpic.c): Define.
1923 (CFLAGS-ifuncdep5pic.c): Define.
1924 (CFLAGS-ifuncmain7pic.c): Define.
1925 (CFLAGS-ifuncmain7picstatic.c): Define.
1926 (CFLAGS-ifuncmain1staticpie.c): Define.
1927 (CFLAGS-ifuncmain5pie.c): Define.
1928 (CFLAGS-ifuncmain6pie.c): Define.
1929 (CFLAGS-ifuncmain7pie.c): Define.
1930 ($(objpfx)ifuncmain1staticpie.out): Define.
1931 ($(objpfx)ifuncmain1staticpie): Define.
1932 ($(objpfx)ifuncmain5pie.out): Define.
1933 ($(objpfx)ifuncmain5pie): Define.
1934 ($(objpfx)ifuncmain6pie.out): Define.
1935 ($(objpfx)ifuncmain6pie): Define.
1936 ($(objpfx)ifuncmain5): Define.
1937 ($(objpfx)ifuncmain5pic): Define.
1938 ($(objpfx)ifuncmain5static): Define.
1939 ($(objpfx)ifuncmain5staticpic): Define.
1940 ($(objpfx)ifuncmain5picstatic): Define.
1941 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1942 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1943 ifuncmain6pie.out.
1944 * elf/b/elf/ifuncmain1staticpie.c: New file.
1945 * elf/ifuncdep5.c: New file.
1946 * elf/ifuncdep5pic.c: New file.
1947 * elf/ifuncmain5.c: New file.
1948 * elf/ifuncmain5pic.c: New file.
1949 * elf/ifuncmain5picstatic.c: New file.
1950 * elf/ifuncmain5pie.c: New file.
1951 * elf/ifuncmain5static.c: New file.
1952 * elf/ifuncmain5staticpic.c: New file.
1953 * elf/ifuncmain6pie.c: New file.
1954 * elf/ifuncmain7.c: New file.
1955 * elf/ifuncmain7pic.c: New file.
1956 * elf/ifuncmain7picstatic.c: New file.
1957 * elf/ifuncmain7pie.c: New file.
1958 * elf/ifuncmain7static.c: New file.
1959 * elf/ifuncmod5.c: New file.
1960 * elf/ifuncmod6.c: New file.
1961
1962 2009-06-20 Ulrich Drepper <drepper@redhat.com>
1963
1964 [BZ #10085]
1965 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1966 (nss_endgrent): New variable.
1967 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1968 fields. Change type of files to bool and adjust all users.
1969 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1970 (internal_endgrent): Call nss_endgrent if necessary.
1971 (add_group): New function. Broken out of...
1972 (check_and_add_group): ...here.
1973 (getgrent_next_nss): Remove test that any callback is available.
1974 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1975 callback. If there is no blacklist we can trust the results returned
1976 by the initgroups_dyn callback. In case there is a callback and we
1977 find a group entry for the group ID but it doesn't contain the
1978 correct member, switch to the slow mode and use getgrent_r.
1979 (internal_getgrent_r): When we see a +: entry, determine whether
1980 there is any callback and which we can use the initgroups_dyn
1981 callback.
1982
1983 2009-06-18 Ulrich Drepper <drepper@redhat.com>
1984
1985 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1986 (_int_free): Likewise.
1987
1988 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1989 AF_IEEE802154.
1990 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1991 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1992 and ARPHRD_IEEE802154_PHY.
1993
1994 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1995 relative to generic Linux version.
1996
1997 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1998
1999 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2000 ($(objpfx)ifuncmain1vispie): Likewise.
2001
2002 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2003
2004 * login/Makefile: Build pt_chown as PIE.
2005
2006 2009-06-15 Andreas Schwab <aschwab@redhat.com>
2007
2008 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2009 a format string.
2010 * elf/sln.c (usage): Likewise.
2011 * malloc/memusage.sh (do_help): Likewise.
2012 * nss/getent.c (more_help): Likewise.
2013 * posix/getconf.c (main): Likewise.
2014 * sunrpc/rpcinfo.c (usage): Likewise.
2015 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2016
2017 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2018
2019 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2020 those needed.
2021 * login/Makefile: If necessary link pt_chown with -lcap.
2022 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2023 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2024
2025 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2026
2027 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2028 comparisons.
2029 * string/test-memchr.c (do_random_tests): Test very large lengths
2030 as well.
2031
2032 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2033
2034 * Makeconfig (+link-pie): Define.
2035 (+prectorS): Define.
2036 (+postctorS): Define.
2037 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2038 * nscd/Makefile ($(objpfx)nscd): Likewise.
2039
2040 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2041
2042 [BZ #10107]
2043 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2044 with cmplwi.
2045 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2046
2047 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2048
2049 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2050 into ...
2051 * sysdeps/unix/grantpt.c: ...here.
2052
2053 2009-06-15 Ulrich Drepper <drepper@redhat.com>
2054
2055 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2056 chmod if it is necessary.
2057
2058 [BZ #10166]
2059 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2060 when the slave device is in devpts or devfs.
2061
2062 [BZ #10183]
2063 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2064
2065 [BZ #10195]
2066 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2067 of nd_opt_home_agent_info_preference to uint16_t.
2068 Patch by Arnaud Ebalard <arno@natisbad.org>.
2069
2070 [BZ #10207]
2071 * nss/getent.c: Add support for printing gshadow data.
2072
2073 [BZ #10203]
2074 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2075 not just the currently used one and those which follow.
2076 Patch by Joe Landers <jlanders@vmware.com>.
2077
2078 [BZ #10196]
2079 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2080 * libio/Makefile: Run tst-fgetwc with necessary envvar.
2081 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2082
2083 [BZ #10217]
2084 * stdlib/abort.c: Define variable __abort_msg.
2085 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2086 * include/stdlib.h: Declare __abort_msg.
2087 * assert/assert-perr.c: Don't free buffer for message immediately.
2088 Store atomically in __abort_msg and free old buffer if necessary.
2089 * assert/assert.c: Likewise.
2090 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2091 store pointer in __abort_msg, and possibly free old string.
2092 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2093
2094 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2095
2096 [BZ #10211]
2097 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2098 handle leap seconds if they are available.
2099 Patch by Akinori Hattori <hattya@gentoo.org>.
2100
2101 * timezone/tzselect.ksh: Update from tzcode2009i.
2102 * timezone/zdump.c: Likewise.
2103 * timezone/zic.c: Likewise.
2104
2105 * timezone/africa: Update from tzdata2009i.
2106 * timezone/antarctica: Likewise.
2107 * timezone/asia: Likewise.
2108 * timezone/australasia: Likewise.
2109 * timezone/backward: Likewise.
2110 * timezone/etcetera: Likewise.
2111 * timezone/europe: Likewise.
2112 * timezone/factory: Likewise.
2113 * timezone/iso3166.tab: Likewise.
2114 * timezone/leapseconds: Likewise.
2115 * timezone/northamerica: Likewise.
2116 * timezone/pacificnew: Likewise.
2117 * timezone/solar87: Likewise.
2118 * timezone/solar88: Likewise.
2119 * timezone/solar89: Likewise.
2120 * timezone/southamerica: Likewise.
2121 * timezone/systemv: Likewise.
2122 * timezone/yearistype: Likewise.
2123 * timezone/zone.tab: Likewise.
2124
2125 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2126
2127 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2128 STT_GNU_IFUNC symbol or in 8 into type_class.
2129
2130 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2131 instead of Elf64_Addr.
2132
2133 2009-06-14 Ulrich Drepper <drepper@redhat.com>
2134
2135 * po/sv.po: Update from translation team.
2136
2137 [BZ #10229]
2138 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2139 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2140 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2141 the C version.
2142
2143 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2144
2145 * Versions.def: Add GLIBC_2.11 for libpthread.
2146
2147 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2148
2149 * resolv/res_send.c (send_dg): Remember we switched to
2150 single-request mode.
2151
2152 2009-06-09 Ulrich Drepper <drepper@redhat.com>
2153
2154 * dlfcn/dlfcn.h: Remove comma at end of enum.
2155 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2156
2157 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2158 parsing mode string.
2159
2160 2009-06-05 Ulrich Drepper <drepper@redhat.com>
2161
2162 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2163
2164 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2165
2166 * sysdeps/x86_64/multiarch/strlen.S: New file.
2167 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2168 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2169 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2170 content.
2171
2172 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2173 is defined.
2174
2175 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2176
2177 * sysdeps/x86_64/strlen.S: Minor optimizations.
2178
2179 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2180
2181 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2182 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2183 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2184 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2185 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2186 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2187 ifuncmain3.c, ifuncmod3.c,.
2188 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2189 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2190 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2191 ifuncmain4picstatic.
2192 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2193 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2194 ifuncmain3, ifuncmain4.
2195 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2196 $(objpfx)ifuncmain1vispie.out.
2197 (modules-names): Add ifuncmod1 ifuncmod3.
2198 (generated): Add ifuncmain1pie ifuncmain1pie.out
2199 ifuncmain1vispie ifuncmain1vispie.out.
2200 Define rules to build and run the tests.
2201 * elf/ifuncdep1.c: New file.
2202 * elf/ifuncdep1pic.c: New file.
2203 * elf/ifuncdep2.c: New file.
2204 * elf/ifuncdep2pic.c: New file.
2205 * elf/ifuncmain1.c: New file.
2206 * elf/ifuncmain1pic.c: New file.
2207 * elf/ifuncmain1picstatic.c: New file.
2208 * elf/ifuncmain1pie.c: New file.
2209 * elf/ifuncmain1static.c: New file.
2210 * elf/ifuncmain1staticpic.c: New file.
2211 * elf/ifuncmain1vis.c: New file..
2212 * elf/ifuncmain1vispic.c: New file..
2213 * elf/ifuncmain1vispie.c: New file.
2214 * elf/ifuncmain2.c: New file.
2215 * elf/ifuncmain2pic.c: New file.
2216 * elf/ifuncmain2picstatic.c: New file.
2217 * elf/ifuncmain2static.c: New file.
2218 * elf/ifuncmain3.c: New file.
2219 * elf/ifuncmain4.c: New file.
2220 * elf/ifuncmain4picstatic.c: New file.
2221 * elf/ifuncmain4static.c: New file.
2222 * elf/ifuncmod1.c: New file.
2223 * elf/ifuncmod3.c: New file.
2224
2225 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2226
2227 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2228
2229 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2230
2231 [BZ #10221]
2232 * posix/Makefile (routines): Add execvpe.
2233 * posix/Versions: Export execvpe for GLIBC_2.11.
2234 * posix/execvp.c: Now only a wrapper. Move code to...
2235 * posix/execvpe.c: ...here. New file.
2236 * posix/unistd.h: Declare execvpe.
2237
2238 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2239
2240 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2241 for STT_GNU_IFUNC handling for efficiency.
2242 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2243
2244 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2245 _exit.
2246 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2247
2248 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2249
2250 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2251 for !SHARED.
2252
2253 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2254
2255 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2256 is not defined.
2257 (__rela_iplt_start): New declaration.
2258 (__rela_iplt_end): Likewise.
2259 (__rel_iplt_start): Likewise.
2260 (__rel_iplt_end): Likewise.
2261 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2262 * elf/elf.h (R_386_IRELATIVE): New macro.
2263 (R_X86_64_IRELATIVE): New macro.
2264 (R_386_NUM): Updated.
2265 (R_X86_64_NUM): Likewise.
2266 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2267 (libc_ifunc_hidden_def): New macro.
2268 * sysdeps/generic/dl-irel.h: New file.
2269 * sysdeps/i386/dl-irel.h: New file.
2270 * sysdeps/x86_64/dl-irel.h: New file.
2271 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2272 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2273 Handle R_386_IRELATIVE.
2274 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2275 (elf_machine_lazy_rela): Likewise.
2276 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2277 R_X86_64_IRELATIVE.
2278 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2279
2280 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2281
2282 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2283 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2284 are no differences. If an architecture has bits in CPUID index 1
2285 meaning different things the values for the COMMON_CPUID_INDEX_1
2286 index must not be set.
2287 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2288 (HAS_POPCOUNT): ...this. New macro.
2289 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2290 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2291 to set the value for Intel and AMD architectures.
2292 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2293 INTEL_CPUID_INDEX_1.
2294 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2295 change.
2296
2297 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2298
2299 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2300 and $build.
2301
2302 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2303
2304 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2305 (__expm1l): Set errno to ERANGE on overflow.
2306 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2307 (__tanl): Set errno to EDOM for ±Inf.
2308 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2309 (__cosl): Set errno to EDOM for ±Inf.
2310 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2311 (__sinl): Set errno to EDOM for ±Inf.
2312
2313 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2314 defined, use it.
2315 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2316 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2317 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2318
2319 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2320
2321 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2322 code accessing it.
2323 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2324
2325 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2326
2327 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2328 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2329 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2330 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2331
2332 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2333 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2334 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2335 defined.
2336 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2337 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2338
2339 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2340
2341 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2342 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2343 is, either do nothing at all if __ASSUME_ACCEPT4, or
2344 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2345 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2346 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2347 define.
2348 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2349 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2350 internal_accept4 in socket directory.
2351
2352 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2353
2354 * sysdeps/ia64/configure.in: New file.
2355
2356 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2357
2358 [BZ #10162]
2359 * sysdeps/ia64/memchr.S: Use speculative load.
2360
2361 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2362 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2363 use it.
2364
2365 * sysdeps/i386/__longjmp.S: Add .text.
2366 * sysdeps/x86_64/__longjmp.S: Likewise.
2367
2368 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2369
2370 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2371 __ASSUME_ACCEPT4 for IA-64.
2372
2373 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2374
2375 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2376
2377 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2378 (SOCKOP_accept4): Define.
2379
2380 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2381
2382 Sun approved the change of the license.
2383 * sunrpc/auth_des.c: Replace license text.
2384 * sunrpc/auth_none.c: Likewise.
2385 * sunrpc/auth_unix.c: Likewise.
2386 * sunrpc/authdes_prot.c: Likewise.
2387 * sunrpc/authuxprot.c: Likewise.
2388 * sunrpc/bindrsvprt.c: Likewise.
2389 * sunrpc/clnt_gen.c: Likewise.
2390 * sunrpc/clnt_perr.c: Likewise.
2391 * sunrpc/clnt_raw.c: Likewise.
2392 * sunrpc/clnt_simp.c: Likewise.
2393 * sunrpc/clnt_tcp.c: Likewise.
2394 * sunrpc/clnt_udp.c: Likewise.
2395 * sunrpc/clnt_unix.c: Likewise.
2396 * sunrpc/des_crypt.c: Likewise.
2397 * sunrpc/des_soft.c: Likewise.
2398 * sunrpc/get_myaddr.c: Likewise.
2399 * sunrpc/getrpcport.c: Likewise.
2400 * sunrpc/key_call.c: Likewise.
2401 * sunrpc/key_prot.c: Likewise.
2402 * sunrpc/openchild.c: Likewise.
2403 * sunrpc/pm_getmaps.c: Likewise.
2404 * sunrpc/pm_getport.c: Likewise.
2405 * sunrpc/pmap_clnt.c: Likewise.
2406 * sunrpc/pmap_prot.c: Likewise.
2407 * sunrpc/pmap_prot2.c: Likewise.
2408 * sunrpc/pmap_rmt.c: Likewise.
2409 * sunrpc/rpc/auth.h: Likewise.
2410 * sunrpc/rpc/auth_unix.h: Likewise.
2411 * sunrpc/rpc/clnt.h: Likewise.
2412 * sunrpc/rpc/des_crypt.h: Likewise.
2413 * sunrpc/rpc/key_prot.h: Likewise.
2414 * sunrpc/rpc/netdb.h: Likewise.
2415 * sunrpc/rpc/pmap_clnt.h: Likewise.
2416 * sunrpc/rpc/pmap_prot.h: Likewise.
2417 * sunrpc/rpc/pmap_rmt.h: Likewise.
2418 * sunrpc/rpc/rpc.h: Likewise.
2419 * sunrpc/rpc/rpc_des.h: Likewise.
2420 * sunrpc/rpc/rpc_msg.h: Likewise.
2421 * sunrpc/rpc/svc.h: Likewise.
2422 * sunrpc/rpc/svc_auth.h: Likewise.
2423 * sunrpc/rpc/types.h: Likewise.
2424 * sunrpc/rpc/xdr.h: Likewise.
2425 * sunrpc/rpc_clntout.c: Likewise.
2426 * sunrpc/rpc_cmsg.c: Likewise.
2427 * sunrpc/rpc_common.c: Likewise.
2428 * sunrpc/rpc_cout.c: Likewise.
2429 * sunrpc/rpc_dtable.c: Likewise.
2430 * sunrpc/rpc_hout.c: Likewise.
2431 * sunrpc/rpc_main.c: Likewise.
2432 * sunrpc/rpc_parse.c: Likewise.
2433 * sunrpc/rpc_parse.h: Likewise.
2434 * sunrpc/rpc_prot.c: Likewise.
2435 * sunrpc/rpc_sample.c: Likewise.
2436 * sunrpc/rpc_scan.c: Likewise.
2437 * sunrpc/rpc_scan.h: Likewise.
2438 * sunrpc/rpc_svcout.c: Likewise.
2439 * sunrpc/rpc_tblout.c: Likewise.
2440 * sunrpc/rpc_util.c: Likewise.
2441 * sunrpc/rpc_util.h: Likewise.
2442 * sunrpc/rpcinfo.c: Likewise.
2443 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2444 * sunrpc/rpcsvc/key_prot.x: Likewise.
2445 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2446 * sunrpc/rpcsvc/mount.x: Likewise.
2447 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2448 * sunrpc/rpcsvc/rex.x: Likewise.
2449 * sunrpc/rpcsvc/rstat.x: Likewise.
2450 * sunrpc/rpcsvc/rusers.x: Likewise.
2451 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2452 * sunrpc/rpcsvc/spray.x: Likewise.
2453 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2454 * sunrpc/rtime.c: Likewise.
2455 * sunrpc/svc.c: Likewise.
2456 * sunrpc/svc_auth.c: Likewise.
2457 * sunrpc/svc_authux.c: Likewise.
2458 * sunrpc/svc_raw.c: Likewise.
2459 * sunrpc/svc_run.c: Likewise.
2460 * sunrpc/svc_simple.c: Likewise.
2461 * sunrpc/svc_tcp.c: Likewise.
2462 * sunrpc/svc_udp.c: Likewise.
2463 * sunrpc/svc_unix.c: Likewise.
2464 * sunrpc/svcauth_des.c: Likewise.
2465 * sunrpc/xcrypt.c: Likewise.
2466 * sunrpc/xdr.c: Likewise.
2467 * sunrpc/xdr_array.c: Likewise.
2468 * sunrpc/xdr_float.c: Likewise.
2469 * sunrpc/xdr_mem.c: Likewise.
2470 * sunrpc/xdr_rec.c: Likewise.
2471 * sunrpc/xdr_ref.c: Likewise.
2472 * sunrpc/xdr_sizeof.c: Likewise.
2473 * sunrpc/xdr_stdio.c: Likewise.
2474
2475 * po/da.po: Update from translation team.
2476
2477 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2478
2479 * sysdeps/sh/____longjmp_chk.S: New file.
2480 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2481 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2482
2483 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2484 Ulrich Drepper <drepper@redhat.com>
2485
2486 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2487 (__nscd_cache_search): Assume each entry in the
2488 hash chain needs one hashentry and half of datahead. Use
2489 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2490
2491 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2492
2493 * posix/sys/wait.h: Fix typos. Pretty printing.
2494 * stdlib/stdlib.h: Likewise. Correct comments.
2495
2496 [BZ #10159]
2497 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2498
2499 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2500 patch.
2501
2502 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2503
2504 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2505 Use it if we absolutely cannot reach any more correct list elements
2506 because that many do not fit into the currently mapped database.
2507
2508 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2509
2510 * nscd/nscd_helper.c: Include stddef.h.
2511 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2512 in a couple of places. Return NULL if trail is not less than
2513 datasize, don't consider dataheads with length smaller than
2514 offsetof (struct datahead, data) + datalen.
2515 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2516 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2517 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2518 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2519 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2520 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2521 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2522
2523 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2524 Rename ...
2525 (fallocate64): ... to this.
2526 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2527 Rename ...
2528 (fallocate64): ... to this.
2529 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2530 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2531 fallocate64@@GLIBC_2.10.
2532 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2533 fallocate64@@GLIBC_2.11.
2534 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2536 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2537 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2538
2539 * nscd/selinux.c (nscd_avc_destroy): Removed.
2540 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2541 * nscd/nscd.c (termination_handler): Don't call
2542 nscd_avc_destroy.
2543
2544 2009-05-12 Jakub Jelinek <jakub@redhat.com>
2545
2546 * include/atomic.h: Formatting.
2547 (catomic_compare_and_exchange_val_acq): Don't define if already
2548 defined by bits/atomic.h.
2549
2550 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2551
2552 * math/libm-test.inc (expm1_test): Add test for range error.
2553
2554 * Versions.def: Add GLIBC_2.11 for libc.
2555 * debug/Makefile (routines): Add longjmp_chk.
2556 Add rules to build and run tst-longjmp_chk.
2557 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2558 * debug/longjmp_chk.c: New file.
2559 * debug/tst-longjmp_chk.c: New file.
2560 * include/bits/setjmp2.: New file.
2561 * include/stdio.h: Mark __fortify_fail as internal_function.
2562 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2563 * setjmp/bits/setjmp2.h: New file.
2564 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2565 of the aliases.
2566 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2567 defined.
2568 * sysdeps/i386/____longjmp_chk.S: New file.
2569 * sysdeps/x86_64/____longjmp_chk.S: New file.
2570 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2571 * sysdeps/x86_64/__longjmp.S: Likewise.
2572
2573 * version.h: Bump for 2.11 development.
2574
2575 * elf/check-execstack.c: New file.
2576 * elf/Makefile: Add rules to build and run check-execstack.
2577
2578 2009-05-10 Ulrich Drepper <drepper@redhat.com>
2579
2580 * version.h (VERSION): Bump to 2.10.1.
2581
2582 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2583 compatibility functions.
2584 * nss/getXXent_r.c: Likewise.
2585 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2586 * gshadow/getsgnam_r.c: Likewise.
2587 * gshadow/Version: Remove duplicate entries.
2588
2589 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2590 for recent processor.
2591 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2592 Likewise.
2593
2594 2009-05-09 Ulrich Drepper <drepper@redhat.com>
2595
2596 * version.h (VERSION): Bump for 2.10 release.
2597 * include/features.h (__GLIBC_MINOR__): Bump to 10.
2598
2599 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
2600 same place we add ASFLAGS-config.
2601
2602 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2603
2604 [BZ #10128]
2605 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2606 or FORMERR and the other NOERROR, don't raise an error.
2607
2608 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
2609
2610 [BZ #10118]
2611 * Makeconfig (+asflags): New variable based upon ASFLAG or
2612 asflags-cpu.
2613 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2614 * config.make.in (asflags-cpu): Add variable based upon
2615 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2616 the assembler.
2617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2618 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2619 recognizes power6 instruction set due to passing -mcpu=power6 from
2620 --with-cpu=power6 when compiling .S files.
2621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2622 Likewise.
2623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2624 Likewise.
2625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2626 Likewise.
2627
2628 2009-05-09 Jakub Jelinek <jakub@redhat.com>
2629
2630 * string/stratcliff.c (do_test): Test for zero length
2631 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2632 at the end of the page.
2633
2634 2009-05-08 Ulrich Drepper <drepper@redhat.com>
2635
2636 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2637
2638 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2639 count is zero.
2640
2641 * po/da.po: Update from translation team.
2642
2643 2009-05-05 Jakub Jelinek <jakub@redhat.com>
2644
2645 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2646 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2647
2648 2009-05-05 Ulrich Drepper <drepper@redhat.com>
2649
2650 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2651 and READ_IMPLIES_EXEC.
2652
2653 2009-05-04 Ulrich Drepper <drepper@redhat.com>
2654
2655 * po/da.po: Update from translation team.
2656
2657 2009-04-29 Jakub Jelinek <jakub@redhat.com>
2658
2659 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2660 comment change.
2661
2662 2009-04-27 Jakub Jelinek <jakub@redhat.com>
2663
2664 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2665 to MAP_ANON in PROT_NONE mmap64 call.
2666 (open_archive): Likewise.
2667 (file_data_available_p): Use mmap64 instead of mremap.
2668 (enlarge_archive): Likewise. Update head if ah->addr changed.
2669 Attempt to reserve address space after mmap64 region.
2670
2671 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2672
2673 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2674 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2675 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2676
2677 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2678 atanh should set ERANGE.
2679
2680 [BZ #10087]
2681 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2682 result of lookup to make call to implement STT_GNU_IFUNC.
2683 (_dl_profile_fixup): Likewise.
2684 Patch by H.J. Lu <hjl.tools@gmail.com>.
2685
2686 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2687 warning.
2688
2689 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2690 from definition.
2691
2692 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2693 label if it is not used.
2694
2695 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2696 of gmon_hist_hdr and gmon_hdr structures and use them.
2697 * elf/sprof.c: Likewise.
2698
2699 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2700 warning.
2701
2702 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2703
2704 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2705 to avoid cast.
2706
2707 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2708 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2709 to avoid warnings.
2710 (iruserok_af): Use ss_family instead of casts.
2711
2712 * gmon/gmon.c (write_hist): Define real-type variant of
2713 gmon_hist_hdr structure and use it.
2714 (write_gmon): Likewise for gmon_hdr.
2715
2716 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2717 function if we are not going to define it.
2718 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2719
2720 * inet/inet6_option.c (option_alloc): Add temporary variable to
2721 avoid warning.
2722
2723 * libio/strfile.h (struct _IO_streambuf): Use correct type and
2724 name of VTable element.
2725 * libio/iovsprintf.c: Avoid casts to avoid warnings.
2726 * libio/iovsscanf.c: Likewise.
2727 * libio/vasprintf.c: Likewise.
2728 * libio/vsnprintf.c: Likewise.
2729 * stdio-common/isoc99_vsscanf.c: Likewise.
2730 * stdlib/strfmon_l.c: Likewise.
2731 * debug/vasprintf_chk.c: Likewise.
2732 * debug/vsnprintf_chk.c: Likewise.
2733 * debug/vsprintf_chk.c: Likewise.
2734
2735 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2736 function pointers.
2737
2738 2009-04-26 Jakub Jelinek <jakub@redhat.com>
2739
2740 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2741
2742 2009-04-25 Ulrich Drepper <drepper@redhat.com>
2743
2744 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2745
2746 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2747 * sysdeps/i386/fpu/s_tanf.S: Likewise.
2748 * sysdeps/i386/fpu/s_tanl.S: Likewise.
2749 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2750 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2751 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2752 * math/libm-test.inc: Add tests for errno after tan calls with
2753 ±Inf.
2754
2755 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2756 errno value vor pow(+-0,neg).
2757 * math/libm-test.inc (pow_test): Add tests for errno value for
2758 pole errors.
2759
2760 * math/w_fmod.c: Also handle x=±Inf as error.
2761 * math/w_fmodf.c: Likewise.
2762 * math/w_fmodl.c: Likewise.
2763 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2764 x=±Inf or y=0.
2765
2766 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
2767 * sysdeps/i386/fpu/s_cosf.S: Likewise.
2768 * sysdeps/i386/fpu/s_cosl.S: Likewise.
2769 * sysdeps/i386/fpu/s_sin.S: Likewise.
2770 * sysdeps/i386/fpu/s_sinf.S: Likewise.
2771 * sysdeps/i386/fpu/s_sinl.S: Likewise.
2772 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2773 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2774 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2775 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2776 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2777 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2778 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2779 * math/libm-test.inc: Add tests for errno after sin/cos calls with
2780 ±Inf.
2781
2782 * stdlib/strtod_l.c (round_and_return): We have to set errno to
2783 ERANGE for underflows.
2784 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2785
2786 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2787 the 2001 revision.
2788
2789 * libio/tst-widetext.input: Remove surrogates.
2790
2791 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2792
2793 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2794 for lgamma should set errno to ERANGE, not EDOM.
2795 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2796
2797 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2798
2799 [BZ #10093]
2800 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2801 UTF-16 surrogates.
2802
2803 * locale/programs/locarchive.c (enlarge_archive): Conserve address
2804 space when temporarily mapping the whole content of the old file.
2805
2806 [BZ #10100]
2807 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2808 not zero.
2809
2810 2009-04-24 Jakub Jelinek <jakub@redhat.com>
2811
2812 * iconvdata/sjis.c (BODY): Don't advance inptr before
2813 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2814 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2815 two byte chars.
2816
2817 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2818
2819 * locale/locarchive.h (struct locarhandle): Rename len field to
2820 mmaped and add new reserved field.
2821 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2822 (create_archive): Reserve address space and then map file into it.
2823 (open_archive): Likewise.
2824 (file_data_available_p): New function.
2825 (compare_from_file): New function.
2826 (close_archive): Adjust to member name changes.
2827 (add_locale): Before comparing locale data, check it is mapped.
2828 Otherwise fall back to reading from the file.
2829
2830 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
2831
2832 * stdio-common/psiginfo.c: Include <errno.h>.
2833
2834 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2835
2836 [BZ #9920]
2837 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2838 to get consistency between 32 and 64 bit architectures.
2839
2840 [BZ #10052]
2841 * sysdeps/unix/make-syscalls.sh: Add rule to create target
2842 directory for dummy syscall rules.
2843 Patch by Chris Steinbroner <hesh@pobox.com>.
2844
2845 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
2846
2847 [BZ #10092]
2848 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2849 MNT_EXPIRE.
2850
2851 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2852
2853 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
2854 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2855
2856 2009-04-23 Jakub Jelinek <jakub@redhat.com>
2857
2858 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
2859 data from vector to temporary buffer and call PWRITEV after it
2860 instead of vice versa.
2861 * sysdeps/posix/preadv.c: Fix up comment.
2862 * misc/preadv.c: Likewise.
2863 * misc/preadv64.c: Likewise.
2864 * misc/pwritev.c: Likewise.
2865 * misc/pwritev64.c: Likewise.
2866 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2867
2868 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2869
2870 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2871
2872 * shadow/Makefile (tests): Add tst-shadow.
2873 * shadow/tst-shadow.c: New file.
2874
2875 [BZ #9955]
2876 * gshadow/Makefile: New file.
2877 * gshadow/Versions: New file.
2878 * gshadow/fgetsgent.c: New file.
2879 * gshadow/fgetsgent_r.c: New file.
2880 * gshadow/getsgent.c: New file.
2881 * gshadow/getsgent_r.c: New file.
2882 * gshadow/getsgnam.c: New file.
2883 * gshadow/getsgnam_r.c: New file.
2884 * gshadow/gshadow.h: New file.
2885 * gshadow/putsgent.c: New file.
2886 * gshadow/sgetsgent.c: New file.
2887 * gshadow/sgetsgent_r.c: New file.
2888 * gshadow/tst-gshadow.c: New file.
2889 * include/gshadow.h: New file.
2890 * Makeconfig (all-subdirs): Add gshadow.
2891 * Makefile (installed-headers): Add gshadow/gshadow.h.
2892 * nss/Makefile (databases): Add sgrp.
2893 * nss/Versions: Add gshadow functions as private exports.
2894 * nss/nsswitch.conf: Add gshadow entry.
2895 * nss/sgrp-lookup.c: New file.
2896 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
2897 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2898 * nss/nss_files/files-sgrp.c: New file.
2899 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2900 * sysdeps/unix/sysv/linux/paths.h: Likewise.
2901
2902 2009-04-22 Ulrich Drepper <drepper@redhat.com>
2903
2904 * stdio-common/printf.h: Add missing const to register_printf_modifier.
2905 * stdio-common/reg-modifier.c: Likewise.
2906
2907 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
2908
2909 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2910 is no FPU.
2911
2912 2009-04-20 Ulrich Drepper <drepper@redhat.com>
2913
2914 [BZ #10086]
2915 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2916 headers up to 2.6.30.
2917
2918 * po/ca.po: Update from translation team.
2919
2920 2009-04-19 Ulrich Drepper <drepper@redhat.com>
2921
2922 [BZ #10069]
2923 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2924 an object that uses static TLS if the TLS modid is higher than the
2925 reserve we always allocate. At least for multi-threaded code.
2926
2927 2009-04-18 Ulrich Drepper <drepper@redhat.com>
2928
2929 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2930 Numerically stable check for valid width.
2931
2932 * locale/programs/locarchive.c (open_archive): Map the entire file
2933 and not just the administrative data.
2934 (add_locale): When we find a hash sum match compare the content
2935 to be sure.
2936
2937 * malloc/malloc.c (malloc_info): Output address space information.
2938
2939 2009-04-17 Ulrich Drepper <drepper@redhat.com>
2940
2941 * malloc/malloc.c (malloc_info): Also output system memory information.
2942
2943 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2944 architectures have preadv/pwritev in 2.6.30.
2945
2946 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2947 * sysdeps/posix/readv.c: Likewise.
2948 Reported by Markus Armbruster <armbru@redhat.com>.
2949
2950 * malloc/hooks.c (top_check): Force hook value into register.
2951
2952 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2953
2954 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2955 calls to _dl_relocate_object.
2956
2957 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2958
2959 [BZ #9957]
2960 * malloc/malloc.c (force_reg): Define.
2961 (sYSMALLOc): Load hook variable into variable
2962 before test and force into register.
2963 (sYSTRIm): Likewise.
2964 (public_mALLOc): Force hook value into register.
2965 (public_fREe): Likewise.
2966 (public_rEALLOc): Likewise.
2967 (public_mEMALIGn): Likewise.
2968 (public_vALLOc): Likewise.
2969 (public_pVALLOc): Likewise.
2970 (public_cALLOc): Likewise.
2971 (__posix_memalign): Likewise.
2972 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2973 before test and force into register.
2974 * malloc/hooks.c (top_check): Likewise.
2975 (public_sET_STATe): Pretty printing.
2976
2977 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2978 in case we only receive one reply in single-request mode.
2979
2980 2009-04-16 Jakub Jelinek <jakub@redhat.com>
2981
2982 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2983 are dlopened in statically linked program even for __LM_ID_CALLER.
2984
2985 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2986
2987 * resolv/res_send.c (send_dg): Don't switch into single-request
2988 mode if we already are in it.
2989
2990 2009-04-15 Ulrich Drepper <drepper@redhat.com>
2991
2992 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2993 are always at least 4 bytes in the returned line.
2994
2995 2009-04-15 Jakub Jelinek <jakub@redhat.com>
2996
2997 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2998 __libc_use_alloca (8192), if the stack is too small use 512 bytes
2999 instead of 8K. Stop searching in /proc/stat after hitting first
3000 line not starting with cpu.
3001 (next_line): Truncate too long
3002 lines at buffer size * 3/4 instead of pretending there were line
3003 breaks inside of large lines.
3004
3005 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3006
3007 * sysdeps/x86_64/mp_clz_tab.c: New file.
3008
3009 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
3010 Ulrich Drepper <drepper@redhat.com>
3011
3012 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3013 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3014 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3015
3016 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
3017
3018 * sysdeps/sh/libc-tls.c: New file.
3019
3020 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3021
3022 2009-04-14 Roland McGrath <roland@redhat.com>
3023
3024 * elf/elf.h: Add various missing ARM constants, to match binutils.
3025
3026 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3027
3028 Optimizations from GMP.
3029 * sysdeps/x86_64/add_n.S: New file.
3030 * sysdeps/x86_64/addmul_1.S: New file.
3031 * sysdeps/x86_64/lshift.S: New file.
3032 * sysdeps/x86_64/mul_1.S: New file.
3033 * sysdeps/x86_64/rshift.S: New file.
3034 * sysdeps/x86_64/sub_n.S: New file.
3035 * sysdeps/x86_64/submul_1.S: New file.
3036
3037 2009-04-14 Jakub Jelinek <jakub@redhat.com>
3038
3039 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3040 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3041 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3042 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3043
3044 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3045
3046 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3047 preadv/pwritev.
3048
3049 2009-04-13 Ulrich Drepper <drepper@redhat.com>
3050
3051 * sysdeps/x86-64/strrchr.S: New file.
3052
3053 2009-04-10 Ulrich Drepper <drepper@redhat.com>
3054
3055 * stdio-common/printf.h (struct printf_info): Add user element.
3056 New types printf_arginfo_size_function, printf_va_arg_function.
3057 Declare register_printf_specifier, register_printf_modifier,
3058 register_printf_type.
3059 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3060 (union printf_arg): Add pa_user element.
3061 Adjust __printf_arginfo_table type.
3062 Add __printf_va_arg_table, __printf_modifier_table,
3063 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3064 declarations.
3065 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3066 If registered arginfo call failed try normal specifier.
3067 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3068 function.
3069 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3070 * stdio-common/Versions: Export register_printf_modifier,
3071 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3072 * stdio-common/reg-modifier.c: New file.
3073 * stdio-common/reg-type.c: New file.
3074 * stdio-common/reg-printf.c (__register_printf_specifier): New
3075 function. Mostly the old __register_printf_function function but
3076 uses locking and type of third parameter changed.
3077 (__register_printf_function): Implement using
3078 __register_printf_specifier.
3079 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3080 calls to arginfo functions. Allocate enough memory for user-defined
3081 types. Call new va_arg functions to get user-defined types.
3082 Try installed handlers even for existing format specifiers first.
3083
3084 2009-04-09 Ulrich Drepper <drepper@redhat.com>
3085
3086 * sysdeps/x86_64/rawmemchr.S: New file.
3087
3088 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3089 Simplified code and possible copy problem fixed.
3090
3091 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3092 function if it is not defined. Add some necessary casts.
3093 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3094
3095 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3096 have preadv/pwritev in 2.6.30.
3097
3098 2009-04-08 Ulrich Drepper <drepper@redhat.com>
3099
3100 * malloc/malloc.c (malloc_info): New function.
3101 * malloc/malloc.h: Declare it.
3102 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3103
3104 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3105 to avoid PLT slot.
3106
3107 * malloc/malloc.c (_int_realloc): Add parameter with old block
3108 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3109 Adjust all callers.
3110 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3111
3112 2009-04-07 Ulrich Drepper <drepper@redhat.com>
3113
3114 * sysdeps/x86_64/strchrnul.S: New file.
3115
3116 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3117 depending libcrypt on -lfreebl3.
3118
3119 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3120 preadv/pwritev in 2.6.30.
3121
3122 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3123 instead of __strcasecmp.
3124
3125 * string/stratcliff.c (do_test): Add memchr tests..
3126 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3127 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3128 first read quad word.
3129
3130 2009-04-06 Ulrich Drepper <drepper@redhat.com>
3131
3132 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3133 * string/tst-svc.input: Add new test case.
3134 * string/tst-svc.expect: Adjust.
3135 * string/Makefile: Don't ignore tst-svc error.
3136
3137 * sysdeps/x86_64/memchr.S: New file.
3138
3139 * resolv/resolv.h (RES_SNGLKUP): Define.
3140 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3141 * resolv/res_send.c (send_dg): If we sent two requests at once and
3142 only get one reply before timeout switch to mode where we send the
3143 second request only after the first answer has been received.
3144
3145 2009-04-05 Ulrich Drepper <drepper@redhat.com>
3146
3147 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3148 * sysdeps/x86_64/strchr.S: Likewise.
3149
3150 2009-04-03 Ulrich Drepper <drepper@redhat.com>
3151
3152 * configure.in: We need to test for the compiler earlier.
3153
3154 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3155 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3156 GLIBC_2.10.
3157 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3158 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3159 and pwritev.
3160 * misc/preadv.c: New file.
3161 * misc/preadv64.c: New file.
3162 * misc/pwritev.c: New file.
3163 * misc/pwritev64.c: New file.
3164 * sysdeps/posx/preadv.c: New file.
3165 * sysdeps/posx/preadv64.c: New file.
3166 * sysdeps/posx/pwritev.c: New file.
3167 * sysdeps/posx/pwritev64.c: New file.
3168 * sysdeps/unix/sysv/linux/preadv.c: New file.
3169 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3170 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3171 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3172 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3173 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3174
3175 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3176 compatibility code.
3177 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3178
3179 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3180 __ASSUME_COMPLETE_READV_WRITEV.
3181 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3182 with modern kernels.
3183 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3184
3185 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3186 to free a possible malloced buffer in case of cancellation.
3187 * sysdeps/posix/writev.c: Likewise for write.
3188
3189 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3190
3191 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3192
3193 * configure.in: Recognize --enable-nss-crypt.
3194 * config.make.in: Add nss-crypt entry.
3195 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3196 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3197 and include path for NSS directory to compiler for md5-crypt,
3198 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3199 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3200 function implementation, use NSS. Introduce wrappers around the
3201 hash function calls. Little code size optimization.
3202 * crypt/sha256-crypt.c: Likewise.
3203 * crypt/sha512-crypt.c: Likewise.
3204 * scripts/check-local-headers.sh: Ignore nss3 directory.
3205
3206 * configure.in: Rename pic_default to libc_cv_pic_default.
3207 * config.make.in: Likewise.
3208
3209 2009-04-01 Roland McGrath <roland@redhat.com>
3210
3211 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3212 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3213 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3214 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3215 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3216 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3217 (R_SPARC_NUM): Update.
3218 From Dave Miller <davem@davemloft.net>.
3219
3220 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3221
3222 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3223
3224 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3225
3226 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3227 those which are used.
3228 * elf/dl-addr.c: Likewise.
3229 * elf/dl-caller.c: Likewise.
3230 * elf/dl-fini.c: Likewise.
3231 * elf/dl-iteratephdr.c: Likewise.
3232 * elf/dl-libc.c: Likewise.
3233 * elf/dl-load.c: Likewise.
3234 * elf/dl-support.c: Likewise.
3235 * elf/dl-sym.c: Likewise.
3236 * elf/rtld.c: Likewise.
3237 * sysdeps/generic/ldsodefs.h: Likewise.
3238
3239 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3240 * elf/dl-minimal.c: Likewise.
3241 * elf/dl-misc.c: Likewise.
3242 * elf/rtld.c: Likewise.
3243 * sysdeps/generic/ldsodefs.h: Likewise.
3244
3245 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3246
3247 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3248 Avoid reuse of complex expression.
3249
3250 * po/fr.po: Update from translation team.
3251
3252 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3253
3254 * include/dirent.h: Yet more changes to match sort function type
3255 change.
3256 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3257 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3258 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3259
3260 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3261
3262 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3263
3264 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3265
3266 * nscd/connections.c (restart): Try to preserve the process name
3267 by reading the /proc/self/exe symlink and using the return name.
3268 Patch by Jeff Bastian <jbastian@redhat.com>.
3269
3270 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3271
3272 [BZ #9733]
3273 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3274 if we are not loading a new audit library.
3275 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3276 Only use profiling trampoline for auditing if we are not relocating
3277 an audit library.
3278 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3279 * elf/rtld.c: Likewise.
3280 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3281
3282 * elf/rtld.c (dl_main): Extend help message for --audit option.
3283
3284 [BZ #9759]
3285 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3286 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3287 * dirent/alphasort.c: Adjust implementation to type change.
3288 * dirent/alphasort64.c: Likewise.
3289 * dirent/scandir.c: Likewise.
3290 * dirent/versionsort.c: Likewise.
3291 * dirent/versionsort64.c: Likewise.
3292 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3293 declaration.
3294 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3295 declaration.
3296
3297 [BZ #9880]
3298 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3299 correctly. Set segleft member in output as required.
3300 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3301 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3302
3303 [BZ #9881]
3304 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3305 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3306 * inet/Makefile (tests): Add tst-inet6_rth.
3307 * inet/tst-inet6_rth.c: New file.
3308
3309 [BZ #5807]
3310 * string/strlen.c (strlen): Fix omission in the expression to test
3311 for NUL bytes.
3312
3313 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3314
3315 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3316
3317 * elf/dl-runtime.c (reloc_offset): Define.
3318 (reloc_index): Define.
3319 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3320 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3321 computing index from reloc_offset.
3322 (_dl_call_pltexit): Likewise.
3323 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3324 the relocation index to _dl_fixup.
3325 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3326 _dl_call_pltexit.
3327 * sysdeps/x86_64/dl-runtime.c: New file.
3328
3329 [BZ #9893]
3330 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3331 alignment of La_x86_64_regs. Store xmm parameters.
3332 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3333
3334 [BZ #9913]
3335 * string/strverscmp.c (__strverscmp): Fix case of different digits
3336 in fractional part of string.
3337 Patch by Jingyu Liu <jyliu@fortinet.com>.
3338 * string/Makefile (tests): Add tst-svc2.
3339 * string/tst-svc2.c: New file.
3340
3341 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3342
3343 * locale/iso-639.def: Add Min Nan.
3344
3345 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3346
3347 [BZ #9948]
3348 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3349
3350 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3351
3352 * elf/dl-sysdep.c (auxvars): Compress data structure.
3353
3354 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3355 STT_GNU_IFUNC handling.
3356 (elf_machine_rela): Likewise.
3357
3358 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3359
3360 * config.h.in (USE_MULTIARCH): Define.
3361 * configure.in: Handle --enable-multi-arch.
3362 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3363 (_dl_fixup_profile): Likewise.
3364 * elf/do-lookup.c (dl_lookup_x): Likewise.
3365 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3366 * elf/elf.h (STT_GNU_IFUNC): Define.
3367 * include/libc-symbols.h (libc_ifunc): Define.
3368 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3369 framework in init-arch.h to get CPUID values.
3370 * sysdeps/x86_64/multiarch/Makefile: New file.
3371 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3372 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3373 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3374
3375 * config.make.in (experimental-malloc): Define.
3376 * configure.in: Handle --enable-experimental-malloc.
3377 * malloc/Makefile: Handle experimental-malloc flag.
3378 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3379 * malloc/arena.c: Likewise.
3380 * malloc/hooks.c: Likewise.
3381 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3382
3383 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3384
3385 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3386 prediction. A few size optimizations.
3387
3388 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3389
3390 * time/tzset.c: Optimize a bit for size.
3391
3392 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3393
3394 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3395 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3396
3397 * elf/sprof.c: Avoid warning about multi-line comment.
3398
3399 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3400
3401 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3402 DST name.
3403 * time/tst-posixtz.c: Add tests for quoted timezone names.
3404
3405 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3406
3407 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3408 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3409 200809L instead of 200112L.
3410 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3411 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3412
3413 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3414 instead of __quick_exit_funcs to __run_exit_handlers.
3415 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3416 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3417 (__cxa_at_quick_exit): Remove attribute_hidden.
3418 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3419 to __run_exit_handlers.
3420 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3421 attribute_hidden.
3422
3423 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3424
3425 * po/id.po: Update from translation team.
3426
3427 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3428
3429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3430 .machine push; .machine "power6" and .machine pop around mtfsf
3431 insns outside of _ARCH_PWR6 define.
3432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3434 Likewise.
3435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3436 Likewise.
3437 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3438 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3439 relax_fenv_state): Likewise.
3440
3441 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3442
3443 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3444 cxa_at_quick_exit.
3445 (static-only-routines): Add at_quick_exit.
3446 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3447 GLIBC_2.10.
3448 * stdlib/quick_exit.c: New file.
3449 * stdlib/at_quick_exit.c: New file.
3450 * stdlib/cxa_at_quick_exit.c: New file.
3451 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3452 it appropriately.
3453 (__internal_atexit): New function.
3454 (__new_exitfn): Now takes parameter to point to the list to use.
3455 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3456 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3457 (exit): ...here. Just call __run_exit_handlers appropriately.
3458 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3459 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3460 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3461 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3462
3463 * po/id.po: Update from translation team.
3464
3465 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3466
3467 * po/ru.po: Update from translation team.
3468
3469 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3470
3471 * po/nl.po: Update from translation team.
3472
3473 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3474
3475 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3476 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3477 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3478 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3479 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3480 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3481 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3482
3483 * po/pl.po: Update from translation team.
3484
3485 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3486
3487 [BZ #7083]
3488 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3489 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3490 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3491 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3492 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3493 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3494 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3495 for GLIBC_2.10.
3496 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3497 Add fallocate and fallocate64.
3498
3499 * io/fcntl.h: Pretty printing.
3500
3501 2009-03-02 Richard Guenther <rguenther@suse.de>
3502
3503 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3504 attribute also for non-C99 inline semantics variant.
3505
3506 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3507
3508 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3509 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3510 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3511 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3513 Likewise.
3514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3515 Likewise.
3516
3517 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3518
3519 * po/cs.po: Update from translation team.
3520
3521 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3522
3523 * po/bg.po: Update from translation team.
3524 * po/sv.po: Likewise.
3525 * po/fi.po: Likewise.
3526 * po/vi.po: Likewise.
3527
3528 2009-02-27 Roland McGrath <roland@redhat.com>
3529
3530 * Makeconfig (%.v.i): Depend on Makeconfig.
3531 Exclude % lines from initial #-comment removal.
3532
3533 2009-02-27 Ulrich Drepper <drepper@redhat.com>
3534
3535 * po/ko.po: Update from translation team.
3536
3537 2009-02-26 Roland McGrath <roland@redhat.com>
3538
3539 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3540 avoids unused warning.
3541
3542 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
3543 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3544
3545 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3546 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3547 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3548 and asm/user.h. Include asm/ptrace.h.
3549 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3550 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3551 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3552 Undefine.
3553 (start_thread): Don't undefine.
3554 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3555 Define.
3556
3557 2009-02-26 Ulrich Drepper <drepper@redhat.com>
3558
3559 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3560 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3561 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3562 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3563 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3564 200112L to 200809L.
3565 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3566 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3567 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3568 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3569 _SC_THREAD_ROBUST_PRIO_PROTECT.
3570 * posix/unistd.h: fexecve is in POSIX 2008.
3571 * time/time.h: strftime_l is in POSIX 2008.
3572 * io/sys/stat.h: futimens is in POSIX 2008.
3573 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3574 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3575 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3576 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3577 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3578 open_memstream, and vdprintf are in POSIX 2008.
3579
3580 2009-02-25 Ulrich Drepper <drepper@redhat.com>
3581
3582 * include/features.h: Define macros for XPG7/POSIX 2008.
3583 * ctype/ctype.h: The *_l functions are in POSIX 2008.
3584 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3585 POSIX 2008.
3586 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3587 * locale/xlocale.h: Define locale_t type.
3588 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3589 in POSIX 2008. Don't define locale_t here.
3590 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3591 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3592 UTIME_OMIT only with __USE_ATFILE.
3593 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3594 * stdio-common/psiginfo.c: New file.
3595 * stdio-common/psiginfo-data.h: New file.
3596 * stdio-common/psiginfo-define.h: New file.
3597 * stdio-common/Makefile (routines): Add psiginfo.
3598 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3599 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3600 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3601 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3602 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3603 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3604 * io/sys/stat.h: Move mknodat definition into same conditional as
3605 mknod.
3606 * time/sys/time.h: futimesat is not among the functions accepted
3607 into the POSIX standard.
3608
3609 * include/features.h: If no feature selection given and we select
3610 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3611 * posix/Versions: Export __posix_getopt.
3612 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3613 Use it to alternatively initialize __posixly_correct.
3614 (_getopt_internal_r): Take addition parameter. Pass on to
3615 _getopt_initialize.
3616 (_getopt_internal): Take addition parameter. Pass on to
3617 _getopt_internal_r.
3618 (getopt): Pass additional zero to _getopt_internal.
3619 (__posix_getopt): New function.
3620 * posix/getopt.h: Add redirection for getopt.
3621 * posix/getopt1.c (getopt_long): Pass additional zero to
3622 _getopt_internal.
3623 (getopt_long_only): Likewise.
3624 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3625 (_getopt_long_only_r): Likewise.
3626 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3627 _getopt_internal_r.
3628
3629 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3630
3631 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3632 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3633 * sysdeps/posix/sysconf.c (__sysconf): Handle
3634 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3635 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3636
3637 2009-02-24 Roland McGrath <roland@redhat.com>
3638
3639 [BZ #9895]
3640 * README.template: Reworded not to use substituted version number.
3641 Renamed to ...
3642 * README: ... here (no longer generated).
3643 * Makefile (README): Target removed.
3644
3645 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3646
3647 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3648 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3649 instead.
3650
3651 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3652
3653 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3654
3655 2009-02-22 Ulrich Drepper <drepper@redhat.com>
3656
3657 * po/bg.po: Update from translation team.
3658
3659 2009-02-16 Jakub Jelinek <jakub@redhat.com>
3660
3661 * stdlib/monetary.h: Uglify function parameter names.
3662 * sunrpc/rpc/pmap_clnt.h: Likewise.
3663 * sunrpc/rpc/svc.h: Likewise.
3664 * sunrpc/rpc/xdr.h: Likewise.
3665 * sunrpc/rpc/clnt.h: Likewise.
3666 * resolv/netdb.h: Likewise.
3667 * resolv/arpa/nameser.h: Likewise.
3668 * resolv/resolv.h: Likewise.
3669 * argp/argp.h: Likewise.
3670 * locale/langinfo.h: Likewise.
3671 * io/sys/stat.h: Likewise.
3672 * posix/spawn.h: Likewise.
3673 * nis/rpcsvc/nislib.h: Likewise.
3674 * malloc/obstack.h: Likewise.
3675 * sysdeps/ia64/bits/link.h: Likewise.
3676 * sysdeps/i386/bits/link.h: Likewise.
3677 * sysdeps/s390/bits/link.h: Likewise.
3678 * sysdeps/powerpc/bits/link.h: Likewise.
3679 * sysdeps/x86_64/bits/link.h: Likewise.
3680 * sysdeps/sparc/bits/link.h: Likewise.
3681 * sysdeps/sh/bits/link.h: Likewise.
3682 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3683 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3684 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3685 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3686
3687 2008-12-01 Fredrik Unger <fred@tree.se>
3688
3689 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3690 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3691 _FP_UNPACK_RAW_2, fix up first argument.
3692
3693 2009-02-15 Ulrich Drepper <drepper@redhat.com>
3694
3695 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3696 (GET_NPROCS_PARSER): Change parameters and use next_line.
3697 (__get_nprocs): Rewrite to not use stdio routines.
3698 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3699 Change parameters and use next_line.
3700
3701 2009-02-13 Ulrich Drepper <drepper@redhat.com>
3702
3703 [BZ #5381]
3704 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3705 Change mempool_alloc prototype.
3706 * nscd/mem.c (gc): Don't handle mem_in_flight.
3707 (mempool_alloc): Third parameter now only indicates whether this is the
3708 first call (to allocate data) or not. If it is, get db rdlock.
3709 Release it on error. Don't handle mem_in_flight.
3710 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3711 Adjust third parameter of mempool_alloc calls.
3712 Nothing to do here in case mempool_alloc fails.
3713 Avoid local variable shadowing parameter. No need to get db rdlock
3714 before calling cache_add.
3715 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
3716 no mem_in_flight array anymore.
3717 * nscd/connections.c: Remove definition and handling of mem_in_flight.
3718 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3719 mempool_alloc calls. Mark he parameter as const. Nothing to do here
3720 in case mempool_alloc fails. No need to get db rdlock before calling
3721 cache_add.
3722 * nscd/hstcache.c (cache_addhst): Likewise.
3723 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3724 * nscd/servicescache.c (cache_addserv): Likewise.
3725 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
3726
3727 2009-02-11 Ulrich Drepper <drepper@redhat.com>
3728
3729 * po/lt.po: Update from translation team.
3730
3731 2009-02-10 Ulrich Drepper <drepper@redhat.com>
3732
3733 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3734 defined, allow additional data to be added using the optional
3735 MORE_ELF_HEADER_DATA macro.
3736 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3737 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3738
3739 2009-02-08 Ulrich Drepper <drepper@redhat.com>
3740
3741 * include/atomic.h: Define catomic_and if not already defined.
3742 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3743 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3744
3745 2009-02-07 Ulrich Drepper <drepper@redhat.com>
3746
3747 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3748 Change all callers.
3749 (_int_realloc): Likewise. Third argument is now padded size
3750 All _int_* functions are now static.
3751
3752 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3753 * malloc/arena.c: Likewise.
3754 * include/malloc.h: Remove now unnecessary declarations of the _int_*
3755 functions.
3756
3757 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3758 easily.
3759
3760 * malloc/malloc.c: Add branch prediction for use of the hooks.
3761
3762 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3763
3764 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3765
3766 [BZ #7095]
3767 * bits/confname.h: Add SUSv7 macros for getconf environments.
3768 * bits/environments.h: Likewise.
3769 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3770 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3771 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3772 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3773 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3774 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3775 * posix/getconf.c: Likewise.
3776 * posix/sysconf.c: Likewise.
3777 * sysdeps/posix/sysconf.c: Likewise.
3778 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3779 environments.
3780
3781 2009-01-16 Petr Baudis <pasky@suse.cz>
3782
3783 [BZ #9753]
3784 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3785 even if we currently have zero nscount.
3786
3787 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3788
3789 [BZ #9781]
3790 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3791 the input line is too long.
3792
3793 * po/Makefile (libc.pot): Add f_print as function taking c-format
3794 parameter.
3795
3796 * debug/xtrace.sh: Unify translatable messages.
3797 * elf/ldd.bash.in: Likewise.
3798 * elf/sprof.c: Likewise.
3799 * locale/programs/locale.c: Likewise.
3800 * malloc/memusage.sh: Likewise.
3801 * nss/getent.c: Likewise.
3802
3803 2009-02-06 Joseph Myers <joseph@codesourcery.com>
3804
3805 * debug/pcprofiledump.c (print_version,
3806 argp_program_version_hook): New function.
3807 * elf/ldconfig.c (more_help): New function.
3808 (argp): Use it.
3809 * elf/sln.c (usage): New function.
3810 (main): Support --help and --version.
3811 * malloc/memusagestat.c (print_version): New function.
3812 (argp_program_version_hook): New variable.
3813 * nscd/nscd.c (more_help): New function.
3814 (argp): Use it.
3815 * posix/getconf.c (main): Send --version output to stdout.
3816 Support --help.
3817 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3818 arguments. All callers changed.
3819 (print_version): New function.
3820 (parseargs): Support --help and --version.
3821 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
3822 changed.
3823 (print_version): New function.
3824 (main): Use getopt_long. Support --help and --version.
3825 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3826 --version.
3827
3828 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3829
3830 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3831 (update_data): Fix handling of wrapping back
3832 to the beginning of the buffer.
3833
3834 [BZ #9823]
3835 * stdio-common/psignal.c (psignal): Fix test for empty string.
3836
3837 2009-02-05 Ulrich Drepper <drepper@redhat.com>
3838
3839 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3840 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
3841 move _null_auth to .rodata.
3842
3843 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3844 value of 24.
3845
3846 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3847
3848 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3849 today than when the original code was written. Use larger
3850 buffers. This also makes it unnecessary to have stat information,
3851 if this causes extra efforts.
3852 (__opendir): In case O_DIRECTORY works, don't call fstat just for
3853 __alloc_dir.
3854
3855 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
3856
3857 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3858 is set.
3859 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3860 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3861 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3862 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3863 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3864 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3865
3866 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3867
3868 * po/ru.po: Update from translation team.
3869
3870 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
3871
3872 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3873 Add _tid slot to maintain consistency with kernel.
3874
3875 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3876
3877 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3878 incomplete characters at end of input buffer.
3879 * libio/Makefile (tests): Add tst-fgetwc.
3880 * libio/tst-fgetwc.c: New file.
3881 * libio/tst-fgetwc.input: New file.
3882
3883 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
3884
3885 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3886
3887 2009-02-02 Ulrich Drepper <drepper@redhat.com>
3888
3889 [BZ #9793]
3890 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3891 *OUTBUFSTART unless the whole output fit into the buffer.
3892 * iconv/Makefile (tests): Add tst-iconv4.
3893 * iconv/tst-iconv4.c: New file.
3894
3895 2009-02-01 Ulrich Drepper <drepper@redhat.com>
3896
3897 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3898 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3899
3900 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
3901
3902 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3903 newer linker scripts.
3904
3905 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3906
3907 [BZ #7040]
3908 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3909 inotify_rm_watch should have type int.
3910
3911 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
3912
3913 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3914 Make aligned_restore_vmx a local symbol.
3915 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3916 Likewise.
3917
3918 2009-01-30 Andreas Jaeger <aj@suse.de>
3919
3920 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3921 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3922 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3923 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3924 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3925 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3926 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3927
3928 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3929
3930 [BZ #9726]
3931 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3932 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3933
3934 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3935
3936 [BZ #9726]
3937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3938 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3940 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3941
3942 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3943
3944 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3945 memcpy instead of memcmp.
3946 (_dl_setup_pointer_guard): Likewise.
3947
3948 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3949
3950 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3951 manipulated brk, use malloc_printerr.
3952 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3953 requests.
3954
3955 2009-01-30 Jakub Jelinek <jakub@redhat.com>
3956
3957 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3958 rindex): For C++ add inlines so that they can be recognized as
3959 builtins.
3960 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3961
3962 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3963 Jakub Jelinek <jakub@redhat.com>
3964
3965 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3966 * wcsmbs/wchar.h: Likewise.
3967
3968 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3969
3970 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3971 (stackinfo_sub_sp): Define.
3972
3973 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3974
3975 [BZ #9750]
3976 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3977 * include/alloca.h (alloca_account): Define.
3978 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3979 (stackinfo_sub_sp): Define.
3980
3981 * nscd/connections.c (nscd_init): If database file access fails
3982 check whether this is due to permission problems and bail in that
3983 case.
3984
3985 [BZ #9741]
3986 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3987 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3988
3989 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3990
3991 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3992 Add "t" to clobber list.
3993 (INTERNAL_SYSCALL_NCS): Likewise.
3994
3995 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3996
3997 * nss/getent.c (print_networks): Don't print comma between aliases.
3998
3999 2009-01-23 Ulrich Drepper <drepper@redhat.com>
4000
4001 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4002
4003 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4004 the hash table.
4005 * misc/Makefile (tests): Add bug-hsearch1.
4006 * misc/bug-hsearch1.c: New file.
4007
4008 2009-01-22 Roland McGrath <roland@redhat.com>
4009
4010 * Makeconfig (%.v.i): Strip trailing # comments,
4011 not only whole-line comments.
4012
4013 2009-01-10 Ulrich Drepper <drepper@redhat.com>
4014
4015 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4016 one parameter. If non-NULL use it to initialize return value.
4017 (_dl_setup_pointer_guard): New function.
4018 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4019 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4020 * elf/rtld.c (security_init): Pass _dl_random to
4021 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4022 pointer_chk_guard.
4023 * elf/dl-sysdep.c (_dl_random): New variable.
4024 (_dl_sysdep_start): Handle AT_RANDOM.
4025 (_dl_show_auxv): Likewise.
4026 * elf/dl-support.c (_dl_random): New variable.
4027 (_dl_aux_init): Handle AT_RANDOM.
4028 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4029 to _dl_setup_stack_chk_guard.
4030
4031 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4032
4033 2009-01-10 Roland McGrath <roland@redhat.com>
4034
4035 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4036
4037 2009-01-08 Ulrich Drepper <drepper@redhat.com>
4038
4039 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4040
4041 [BZ #9706]
4042 * nss/nss_files/files-parse.c (strtou32): New function.
4043 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4044 across 32-bit and 64-bit platforms.
4045 (INT_FIELD_MAYBE_NULL): Likewise.
4046
4047 2009-01-08 Jakub Jelinek <jakub@redhat.com>
4048
4049 [BZ #9720]
4050 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4051 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4052 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4053 Likewise.
4054
4055 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
4056
4057 [BZ #697]
4058 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4059 being NULL also if there are no backreferences.
4060 * posix/rxspencer/tests: Add testcases.
4061
4062 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4063
4064 [BZ #9697]
4065 * posix/bug-regex17.c: Add testcases.
4066 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4067 handling.
4068
4069 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4070
4071 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4072 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4073 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4074 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4075 for elf subdir.
4076 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4077 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4078 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4079 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4080 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4081 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4082
4083 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
4084
4085 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4086 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4087 re_string_skip_chars, re_string_reconstruct): Likewise.
4088 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4089
4090 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
4091
4092 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4093 adjust the buffer alignment.
4094
4095 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4096
4097 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4098 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4099 net/route.h.
4100
4101 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4102 flavor to description only when flavor is not NULL.
4103
4104 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4105 mutex after SIGIO/SIGURG lookup loop.
4106
4107 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4108
4109 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4110
4111 2009-01-03 Ulrich Drepper <drepper@redhat.com>
4112
4113 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4114 handling.
4115
4116 2009-01-02 Ulrich Drepper <drepper@redhat.com>
4117
4118 * sysdeps/unix/sysv/linux/kernel-features.h
4119 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4120
4121 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4122 if no output is written.
4123
4124 * version.h: Bump to 2.10 development.
4125
4126 * posix/getconf.c: Update copyright year.
4127 * nss/getent.c: Likewise.
4128 * iconv/iconvconfig.c: Likewise.
4129 * iconv/iconv_prog.c: Likewise.
4130 * elf/ldconfig.c: Likewise.
4131 * catgets/gencat.c: Likewise.
4132 * csu/version.c: Likewise.
4133 * elf/ldd.bash.in: Likewise.
4134 * elf/sprof.c (print_version): Likewise.
4135 * locale/programs/locale.c: Likewise.
4136 * locale/programs/localedef.c: Likewise.
4137 * nscd/nscd.c (print_version): Likewise.
4138 * debug/xtrace.sh: Likewise.
4139 * malloc/memusage.sh: Likewise.
4140 * malloc/mtrace.pl: Likewise.
4141 * debug/catchsegv.sh: Likewise.
4142
4143 2008-12-29 Mike Frysinger <vapier@gentoo.org>
4144
4145 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4146 script.
4147
4148 2008-12-29 Ulrich Drepper <drepper@redhat.com>
4149
4150 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4151 gethostbyname4_r function call succeeded, just leave the loop.
4152
4153 [BZ #9694]
4154 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4155 very end.
4156 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4157 * wctype/Makefile (tests): Add bug-wctypeh.
4158 * wctype/bug-wctypeh.c: New file.
4159
4160 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4161 LOCALDOMAIN is defined.
4162 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4163
4164 * sysdeps/x86_64/bits/select.h: New file.
4165
4166 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4167
4168 2008-12-21 Bruno Haible <bruno@clisp.org>
4169
4170 [BZ #9677]
4171 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4172 if no output is written.
4173
4174 2008-12-13 Klaus Dittrich <kladit@arcor.de>
4175
4176 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4177 libc internal symbol __dup2 to avoid access through the PLT.
4178
4179 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4180
4181 [BZ #6545]
4182 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4183 available only for __USE_GNU.
4184
4185 * inet/Makefile (tests): Add tst-getni2.
4186 * inet/tst-getni2.c: New file.
4187
4188 [BZ #7080]
4189 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4190 NULL when NI_NAMEREQD is set.
4191 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4192 * inet/Makefile (tests): Add tst-getni1.
4193 * inet/tst-getni1.c: New file.
4194
4195 2008-12-03 Petr Baudis <pasky@suse.cz>
4196
4197 [BZ #7067]
4198 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4199 instead of prune_lock.
4200 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4201 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4202
4203 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4204
4205 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4206 use.
4207
4208 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4209 handling.
4210
4211 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4212 after reading name server list.
4213
4214 [BZ #7058]
4215 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4216 handling for host name aliases.
4217
4218 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4219
4220 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4221 instead of doing things manually.
4222
4223 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4224
4225 * posix/regex_internal.h (build_wcs_upper_buffer):
4226 Return type is reg_error_t.
4227
4228 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4229
4230 * posix/globtest.sh: Use mktemp to create temporary file and
4231 directory.
4232
4233 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4234 sets correctly.
4235 (__CPU_CLR_S): Likewise.
4236 (__CPU_ISSET_S): Likewise.
4237
4238 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4239 Ulrich Drepper <drepper@redhat.com>
4240
4241 * scripts/firstversion.awk: Use custom comparison function to compare
4242 version numbers.
4243 * scripts/versions.awk: Use sort invocation which can handle
4244 multi-digit sub-version numbers.
4245
4246 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4247
4248 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4249 * locale/iso-639.def: Add Chhattisgarhi entry.
4250
4251 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4252
4253 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4254 ESRCH return value.
4255 (_nss_dns_gethostbyname4_r): Likewise.
4256 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4257 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4258 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4259 the no_data variable.
4260
4261 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4262 information at the correct index.
4263
4264 * socket/sys/socket.h: Declare accept4.
4265 * socket/accept4.c: New file.
4266 * sysdeps/unix/sysv/linux/accept4.c: New file.
4267 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4268 * socket/Makefile (routines): Add accept4.
4269 * socket/Versions: Export accept4 with version GLIBC_2.10.
4270 * socket/paccept.c: Removed.
4271 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4272 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4273 * Versions.def: Define GLIBC_2.10 for libc.
4274 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4275
4276 * nscd/connections.c: Use accept4.
4277
4278 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4279
4280 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4281
4282 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4283 flag already set.
4284
4285 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4286 not exist.
4287 * stdlib/Makefile (tests): Add tst-unsetenv1.
4288 * stdlib/tst-unsetenv1.c: New file.
4289
4290 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4291
4292 * login/utmp_file.c (file_writable): New variable.
4293 (setutent_file): Don't try to open file for writing.
4294 (pututline_file): Before writing, make descriptor writable if
4295 necessary.
4296
4297 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4298
4299 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4300 to IPv4 or IPv6 if an interface has been found.
4301
4302 2008-11-26 Roland McGrath <roland@redhat.com>
4303
4304 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4305 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4306
4307 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4308 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4309 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4310
4311 * elf/elf.h (NT_386_IOPERM): New macro.
4312 (NT_PPC_VSX): New macro.
4313
4314 2008-11-25 Roland McGrath <roland@redhat.com>
4315
4316 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4317 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4318 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4319 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4320 Subdirectories moved to ports repository.
4321 * configure.in (base_machine): Remove alpha case.
4322
4323 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4324
4325 * sysdeps/mach/strerror_l.c: New file.
4326
4327 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4328
4329 [BZ #6411]
4330 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4331 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4332 magic numbers.
4333 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4334 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4335 (relax_fenv_state): Same as above.
4336 (FPSCR_29): Reserve bit in ISA 2.05.
4337 (FPSCR_NI): Provide define for compat.
4338 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4339 magic numbers.
4340 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4341 magic numbers.
4342 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4343 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4344 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4345 access to hwcap to account for hwcap size increase to uint64_t.
4346 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4347 Likewise.
4348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4349 (*setcontext): Likewise.
4350 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4351 New file.
4352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4353 New file.
4354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4355 (*setcontext): dynamically select mtfsf insn based on
4356 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4357 increase to uint64_t.
4358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4359 (*swapcontext): dynamically select mtfsf insn based on
4360 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4361 increase to uint64_t.
4362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4363 New file.
4364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4365 New file.
4366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4367 (*setcontext): dynamically select mtfsf insn based on
4368 PPC_FEATURE_HAS_DFP.
4369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4370 (*swapcontext): dynamically select mtfsf insn based on
4371 PPC_FEATURE_HAS_DFP.
4372
4373 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4374
4375 * version.h: Bump for 2.9 release.
4376 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4377
4378 [BZ #7029]
4379 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4380 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4381 all the rounding.
4382
4383 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4384
4385 [BZ #7009]
4386 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4387 unknown request types for now.
4388
4389 2008-11-11 Roland McGrath <roland@redhat.com>
4390
4391 * sysdeps/x86_64/configure: New file.
4392
4393 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4394 * configure: Regenerated.
4395
4396 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4397
4398 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4399 correct instruction to remove the stack frame.
4400
4401 2008-11-03 Michael Matz <matz@suse.de>
4402
4403 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4404 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4405
4406 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4407
4408 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4409 Remove.
4410
4411 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4412 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4413 of the thread variable instead of void *.
4414 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4415 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4416 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4417 __libc_tsd_define arguments.
4418 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4419 __libc_tsd_address arguments. Remove union hack.
4420 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4421 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4422 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4423 Adjust __libc_tsd_{set,get} arguments.
4424 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4425 __libc_tsd_define arguments.
4426 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4427 arguments.
4428 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4429 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4430 (LOCALE): Adjust __libc_tsd_define arguments.
4431 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4432 arguments.
4433 (LOCALE): Adjust __libc_tsd_define arguments.
4434 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4435 arguments.
4436 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4437 arguments.
4438
4439 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4440
4441 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4442 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4443
4444 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4445
4446 [BZ #6966]
4447 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4448
4449 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4450 Ulrich Drepper <drepper@redhat.com>
4451
4452 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4453 definition for GCC 3.1 and later.
4454
4455 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4456
4457 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4458 refetch dtv, as it might have changed.
4459 * elf/Makefile: Add rules to build and run tst-tls18.
4460 * elf/tst-tls18.c: New test.
4461 * elf/tst-tlsmod18a.c: New file.
4462
4463 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4464
4465 [BZ #6875]
4466 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4467
4468 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4469
4470 [BZ #6867]
4471 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4472
4473 [BZ #6919]
4474 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4475 Fix length of copy operation.
4476
4477 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4478
4479 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4480 and fix its calling convention.
4481
4482 2008-10-07 Andreas Schwab <schwab@suse.de>
4483
4484 [BZ #6942]
4485 * resolv/res_send.c (send_vc): Fix last change.
4486 (send_dg): Align here as well.
4487
4488 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4489
4490 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4491 return value in case rlimit is RLIM_INFINITY.
4492
4493 [BZ #6947]
4494 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4495 for UL_SETFSIZE.
4496 * resource/Makefile (tests): Add bug-ulimit1.
4497 * resource/bug-ulimit1.c: New file.
4498
4499 [BZ #6974]
4500 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4501 without dot. Properly terminate the string with a null byte.
4502 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4503
4504 [BZ #6980]
4505 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4506 negative sizees.
4507 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4508 negative __size.
4509
4510 [BZ #6995]
4511 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4512
4513 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4514
4515 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4516 abort if there is no initgroups_dyn function.
4517
4518 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4519 result if any of the queries really provided an answer.
4520
4521 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4522
4523 * po/lt.po: Update from translation team.
4524
4525 2008-10-26 Ulrich Drepper <drepper@redhat.com>
4526
4527 * po/id.po: Update from translation team.
4528
4529 2008-10-24 Ulrich Drepper <drepper@redhat.com>
4530
4531 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4532 Fix tests for existence of second reply.
4533
4534 2008-10-23 Ulrich Drepper <drepper@redhat.com>
4535
4536 * po/id.po: New file.
4537 Contributed by the Indonesian translation team.
4538
4539 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4540
4541 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4542 initialization.
4543
4544 2008-10-17 Jakub Jelinek <jakub@redhat.com>
4545
4546 * elf/Makefile: Add rules to build and run tst-tls17.
4547 * elf/tst-tls17.c: New test.
4548 * elf/tst-tlsmod17a.c: New file.
4549 * elf/tst-tlsmod17b.c: Likewise.
4550
4551 2008-10-17 Ulrich Drepper <drepper@redhat.com>
4552
4553 * stdlib/divmod_1.c: Use correct type for dummy variable.
4554 * stdlib/mod_1.c: Likewise.
4555
4556 2008-10-16 Ulrich Drepper <drepper@redhat.com>
4557
4558 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4559
4560 2008-10-16 Jakub Jelinek <jakub@redhat.com>
4561
4562 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4563 __nonnull order for C++.
4564 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4565 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4566
4567 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4568
4569 * stdlib/longlong.h: Update from GCC.
4570
4571 2008-10-09 Jakub Jelinek <jakub@redhat.com>
4572 David S. Miller <davem@davemloft.net>
4573
4574 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4575 make sure any registers used with 64-bit 'branch-on-register'
4576 instructions have their top 32-bits clear.
4577 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4578 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4579
4580 2008-09-18 Andreas Schwab <schwab@suse.de>
4581
4582 [BZ #6942]
4583 * resolv/res_send.c (send_vc): Fix use of unaligned address.
4584 Properly handle partial reads.
4585
4586 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
4587
4588 * elf/elf.h (STO_MIPS_PLT): New.
4589 (R_MIPS_COPY): New.
4590 (R_MIPS_JUMP_SLOT): New.
4591 (R_MIPS_NUM): Redefine to 128.
4592 (DT_MIPS_PLTGOT): New.
4593 (DT_MIPS_RWPLT): New.
4594 (DT_MIPS_NUM): Redefine to 0x35.
4595
4596 2008-10-01 Ulrich Drepper <drepper@redhat.com>
4597
4598 * timezone/africa: Update from tzdata2008f.
4599 * timezone/asia: Likewise.
4600 * timezone/australasia: Likewise.
4601 * timezone/europe: Likewise.
4602 * timezone/leapseconds: Likewise.
4603 * timezone/northamerica: Likewise.
4604 * timezone/southamerica: Likewise.
4605 * timezone/zone.tab: Likewise.
4606
4607 2008-09-30 Ulrich Drepper <drepper@redhat.com>
4608
4609 * nscd/connections.c: Disable use of paccept for now.
4610
4611 2008-09-29 Ulrich Drepper <drepper@redhat.com>
4612
4613 * socket/Versions: Remove paccept export for GLIBC_2.9.
4614 * socket/Makefile (routines): Remove paccept.
4615 * socket/sys/socket.h: Remove paccept declaration.
4616
4617 * po/sv.po: Update from translation team.
4618
4619 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4620
4621 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4622 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4623
4624 2008-09-16 Ulrich Drepper <drepper@redhat.com>
4625
4626 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4627 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4628
4629 2008-09-15 Ulrich Drepper <drepper@redhat.com>
4630
4631 * sunrpc/rpc/svc.h: Declare svcfd_create.
4632 Patch by Michael Solberg <msolberg@redhat.com>.
4633
4634 2008-09-12 Flavio Leitner <fleitner@redhat.com>
4635 Ulrich Drepper <drepper@redhat.com>
4636
4637 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4638 _int_valloc fails.
4639 (public_pVALLOc): Likewise.
4640
4641 2008-09-02 Andreas Jaeger <aj@suse.de>
4642
4643 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4644 commit.
4645
4646 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4647
4648 [BZ #6860]
4649 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4650
4651 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4652
4653 * Makefile (check-data): Check data directory in add-ons.
4654 * elf/Makefile (check-data): Likewise.
4655
4656 2008-08-18 Roland McGrath <roland@redhat.com>
4657
4658 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4659 * configure: Regenerated.
4660 * config.make.in (cflags-cpu): New substituted variable.
4661 (with-cpu): Variable removed.
4662 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4663
4664 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4665
4666 [BZ #6845]
4667 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4668 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4669 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4670 redundant. Functions which call floating point assembler operations
4671 should go into a sysdeps powerpc/fpu directory.
4672
4673 2008-08-15 Ulrich Drepper <drepper@redhat.com>
4674
4675 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4676 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4677
4678 2008-08-14 Ulrich Drepper <drepper@redhat.com>
4679
4680 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4681
4682 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4683 change related to AT_EXECFN. We cannot use that string.
4684 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4685 _dl_execfn member.
4686 * elf/dl-support.c: Remove _dl_execfn variable.
4687 (_dl_aux_init): Remove handling of AT_EXECFN.
4688 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4689 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4690
4691 2008-08-13 Ulrich Drepper <drepper@redhat.com>
4692
4693 [BZ #6544]
4694 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4695 byte gets added to writes and seeks from the end use the length of
4696 the buffer and not the currently terminating NUL byte.
4697
4698 [BZ #6634]
4699 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4700 Set to true if locking failed.
4701 (getutid_r_file): Adjust caller.
4702 (pututline_file): Likewise. Return NULL in this case.
4703 Patch mostly by halesh.s@gmail.com.
4704
4705 2008-08-12 Ulrich Drepper <drepper@redhat.com>
4706
4707 [BZ #6589]
4708 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4709 Define.
4710 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4711
4712 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
4713
4714 [BZ #6839]
4715 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4716 macro since it is now available in elf/dynamic-link.h.
4717
4718 2008-08-12 Roland McGrath <roland@frob.com>
4719
4720 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4721 in case used outside of libc.
4722 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4723
4724 2008-08-11 Ulrich Drepper <drepper@redhat.com>
4725
4726 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4727 directly instead of going through dn_comp.
4728
4729 2008-08-11 Aurelien Jarno <aurel32@debian.org>
4730
4731 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4732 Fix asm constraints.
4733
4734 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4735
4736 [BZ #6790]
4737 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4738 (IPV6_PMTUDISC_PROBE): Likewise.
4739
4740 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
4741
4742 [BZ #6791]
4743 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4744
4745 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
4746 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4747
4748 [BZ #6817]
4749 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4750 Added the members 'vsx' and 'arch_2_06'.
4751 (_dl_powerpc_platforms): Add the member 'power7'.
4752 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4753 to reflect the changes required by VSX and ISA 2.06.
4754 Modify _DL_PLATFORMS_COUNT to reflect the addition of
4755 'power7'.
4756 Defined PPC_PLATFORM_POWER7.
4757 (_dl_string_platform): Add support for POWER7.
4758 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4759 capability and ISA 2.06.
4760
4761 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4762
4763 [BZ #6824]
4764 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4765 macro to detect use of 128 bit long double.
4766 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4767
4768 2008-08-05 Ulrich Drepper <drepper@redhat.com>
4769
4770 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4771
4772 [BZ #5794]
4773 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4774 parameters.
4775 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4776 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4777
4778 2008-08-03 Ulrich Drepper <drepper@redhat.com>
4779
4780 * nscd/connections.c (main_loop_poll): Pass a buffer which is
4781 guaranteed to be large enough to read inotify event. Ignore
4782 EAGAIN error. Better error message. Add branch predicition.
4783 (main_loop_epoll): Likewise.
4784
4785 2008-08-02 Roland McGrath <roland@frob.com>
4786
4787 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4788 Add memory clobbers.
4789
4790 2008-08-02 Ulrich Drepper <drepper@redhat.com>
4791
4792 * manual/arith.texi: Avoid @strong{Note:}.
4793 * manual/creature.texi: Likewise.
4794 * manual/filesys.texi: Likewise.
4795 * manual/math.texi: Likewise.
4796 * manual/memory.texi: Likewise.
4797 * manual/resource.texi: Likewise.
4798 * manual/syslog.texi: Likewise.
4799 * manual/time.texi: Likewise.
4800
4801 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4802 to prevent warning.
4803
4804 2008-08-01 Ulrich Drepper <drepper@redhat.com>
4805
4806 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4807 new epoll_create1 interface.
4808 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4809 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4810 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4811
4812 * include/arpa/nameser.h (NS_GET16): Use const pointer.
4813 (NS_GET32): Likewise.
4814
4815 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4816 syscalls, too.
4817
4818 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4819 use the AT_EXECFN value if it is no absolute path.
4820 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4821 __ASSUME_AT_EXECFN.
4822
4823 * Versions.def: Add GLIBC_2.9 to libresolv.
4824 * include/resolv.h: Remove hidden proto declarations for __ns_*
4825 functions. Add them for __dn_count_labels and __p_secstodate.
4826 * include/arpa/nameser.h: Add a number of hidden proto declarations.
4827 Define ns_msg_getflags macro here.
4828 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4829 and __p_secstodate.
4830 * resolv/Versions: Export functions from <arpa/nameser.h> from
4831 libresolv in version GLIBC_2.9.
4832 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
4833 hidden definitions.
4834 * resolv/ns_netint.c: Likewise.
4835 * resolv/ns_parse.c: Likewise.
4836 * resolv/ns_print.c: Likewise.
4837 * resolv/ns_samedomain.c: Likewise.
4838 * resolv/ns_ttl.c: Likewise.
4839 * resolv/arpa/nameser_compat.h: Likewise.
4840 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
4841 function calls.
4842 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4843 instead of ns_get16.
4844 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4845 __ns_get32 instead of ns_get16 and ns_get32 respectively.
4846 (gaih_getanswer_slice): Likewise.
4847 * resolv/Makefile (libresolv-routines): Add ns_date.
4848 * resolv/ns_date.c: New file.
4849
4850 * elf/Makefile (check-localplt.out): Also check libresolv and
4851 libcrypt.
4852
4853 2008-07-31 Ulrich Drepper <drepper@redhat.com>
4854
4855 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4856 __ASSUME_O_CLOEXEC.
4857
4858 2008-07-30 Ulrich Drepper <drepper@redhat.com>
4859
4860 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4861 buffer passed to NSS functions.
4862
4863 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4864
4865 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4866 Define.
4867
4868 * misc/syslog.c (openlog_internal): Fix compile problem.
4869
4870 2008-07-28 Roland McGrath <roland@redhat.com>
4871
4872 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4873
4874 2008-07-28 Ulrich Drepper <drepper@redhat.com>
4875
4876 * io/ftw.c (add_object): Remove inline to avoid warning.
4877
4878 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4879
4880 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4881 Use it instead of locally defined resplen2 variable.
4882 (res_nsend): Adjust for __libc_res_nsend interface change.
4883 (send_vc): Initialize *resplen2 if necessary. Read length of
4884 package into an appropriately aligned variable. Store converted length
4885 in new variable and use it appropriately.
4886 Add branch prediction help.
4887 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4888 and pass it on to __libc_res_nsend. Adjust all callers.
4889 (__libc_res_nsearch): Likewise.
4890 (__libc_res_nqeurydomain): Likewise.
4891 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4892 change.
4893 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4894 Define resplen2 variable and pass it to __libc_res_nsearch and then
4895 to gaih_getanswer.
4896 (getanswer_r): In case of incorrect DNS data don't overread buffer.
4897 Add branch prediction.
4898 (gaih_getanswer_slice): Likewise. Check for invalid data types.
4899 (gaih_getanswer): Don't decode second slice if first one failed due
4900 to a too small buffer. Don't let not found status of second
4901 decoder shadow results of the first.
4902 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4903 and __libc_res_nquery interface changes
4904 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4905 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4906 __libc_res_nsearch, and __libc_res_nsend.
4907 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4908 change.
4909 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4910 __libc_res_nsearch interface changes.
4911
4912 2008-07-27 Ulrich Drepper <drepper@redhat.com>
4913
4914 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4915
4916 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4917 file descriptors with close-on-exec set.
4918 (exec_comm_child): Fix the case where the write end of the pipe is
4919 STDOUT_FILENO already. In case it is, clear close-on-exec.
4920
4921 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4922 * io/pipe2.c: Likewise.
4923 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4924 instead of __ASSUME_PACCEPT.
4925 * include/unistd.h: Declare __have_pipe2.
4926 * libio/iopopen.c: Implement "e" flag.
4927 * libio/Makefile (tests): Add tst-popen1.
4928 * libio/tst-popen1.c: New file.
4929
4930 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4931 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4932
4933 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4934
4935 [BZ #6771]
4936 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4937 success call of _IO_SEEKOFF or calls which failed because the
4938 descriptor is for a pipe.
4939
4940 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4941 magic number.
4942
4943 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4944
4945 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4946 F_SETFD use if we know fopen set the flag.
4947
4948 * login/utmp_file.c (setutent_file): Minor optimization in case
4949 O_CLOEXEC is available.
4950
4951 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4952
4953 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4954 * elf/Makefile: Use pie-ccflag variable.
4955 * nscd/Makefile: Likewise.
4956 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4957
4958 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4959
4960 [BZ #6724]
4961 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4962 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4963 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4964 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4965 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4966 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4967 utmp32, utmpx32 and login32.
4968 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4969 versions of struct utmp functions to libc and libutil.
4970 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4971 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4972 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4973 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4974 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4975 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4976 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4977 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4978 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4979 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4980 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4981 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4982 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4983 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4984 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4985 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4986 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4987 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4988 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4989 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4990 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4991 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4992
4993 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4994
4995 * scripts/gen-as-const.awk: Generate more widely usable code by
4996 using 64-bit arithmetic.
4997
4998 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4999 the same treatment as narrow output code in last patch.
5000
5001 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5002
5003 [BZ #6763]
5004 * elf/dl-load.c (local_strdup): Remove inline.
5005 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5006 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5007 part of the object.
5008
5009 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5010
5011 2008-07-25 Ulrich Drepper <drepper@redhat.com>
5012
5013 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5014 the new syscalls, too.
5015
5016 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5017 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5018
5019 [BZ #6698]
5020 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5021 parameter for end of buffer. If temporary copy is too large use
5022 malloc.
5023 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5024 interface change.
5025 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5026 string rewrite when allocating buffer.
5027
5028 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5029 syscalls, too.
5030
5031 * nscd/connections.c (nscd_init): Clean up fcntl call.
5032
5033 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5034 SOCK_NONBLOCK if possible.
5035
5036 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5037 SOCK_CLOEXEC if available.
5038
5039 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5040 __libc_clntudp_bufcreate_internal.
5041 * include/sys/socket.h: Declare __have_sock_cloexec.
5042 * socket/Makefile (aux): Add have_sock_cloexec.
5043 * socket/have_sock_cloexec.c: New file.
5044 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5045 __libc_clntudp_bufcreate.
5046 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5047 which takes an additional parameter. Create socket with non-blocking
5048 mode and close-on-exec flag set, if wanted.
5049 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5050 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5051 instead of clntudp_create. The socket has already the close-on-exec
5052 flag set if SOCK_CLOEXEC is defined.
5053
5054 2008-07-24 Ulrich Drepper <drepper@redhat.com>
5055
5056 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5057 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5058 appropriate.
5059 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5060 non-blocking mode by using socket, paccept, and inotify_init1.
5061
5062 * Versions.def (glibc): Add GLIBC_2.9.
5063 * io/Makefile (routines): Add dup3 and pipe2.
5064 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5065 * io/dup3.c: New file.
5066 * io/pipe2.c: New file.
5067 * posix/unistd.h: Declare dup3 and pipe2.
5068 * socket/Makefile (routines): Add paccept.
5069 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5070 * socket/paccept.c: New file.
5071 * socket/sys/socket.h: Declare paccept.
5072 * sysdeps/unix/syscalls.list: Add entry for dup3.
5073 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5074 epoll_create2 and inotify_init1.
5075 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5076 * sysdeps/unix/sysv/linux/paccept.c: New file.
5077 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5078 possible.
5079 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5080 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5081 inotify_init1, and pipe2 entries.
5082 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5083 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5084 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5085 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5086 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5087 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5088 SOCK_NONBLOCK.
5089 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5090 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5091 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5092 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5093 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5094 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5095 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5096 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5097 EPOLL_NONBLOCK. Declare epoll_create2.
5098 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5099 EFD_NONBLOCK.
5100 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5101 IN_NONBLOCK. Declare inotify_init1.
5102 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5103 SFD_NONBLOCK.
5104 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5105 TFD_NONBLOCK.
5106
5107 * elf/elf.h: Define AT_EXECFN.
5108 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5109 LD_ORIGIN_PATH.
5110 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5111 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5112 if __ASSUME_AT_EXECFN is defined.
5113 (_dl_aux_init): Handle AT_EXECFN.
5114 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5115 for 2.6.27 and up.
5116 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5117 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5118 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5119 _dl_execfn if available and avoid compatibility code if
5120 __ASSUME_AT_EXECFN is defined.
5121
5122 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5123 _dl_discover_osversion only for older kernels.
5124
5125 2008-07-22 Roland McGrath <roland@frob.com>
5126
5127 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5128
5129 2008-07-21 Roland McGrath <roland@frob.com>
5130
5131 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5132 returned too much data out of line.
5133
5134 2008-07-20 Ulrich Drepper <drepper@redhat.com>
5135
5136 * locale/setlocale.c (setname): Remove inline to avoid compiler
5137 warning.
5138
5139 [BZ #6712]
5140 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5141
5142 2008-07-15 Ulrich Drepper <drepper@redhat.com>
5143
5144 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5145 doesn't manage to write anything, fail.
5146
5147 * malloc/hooks.c (__malloc_check_init): Remove printf.
5148
5149 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5150
5151 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5152
5153 2008-07-12 Ulrich Drepper <drepper@redhat.com>
5154
5155 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5156 from inotify.
5157 (main_loop_epoll): Likewise.
5158
5159 2008-07-09 Ulrich Drepper <drepper@redhat.com>
5160
5161 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5162
5163 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5164 if DEBUG is defined.
5165
5166 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5167 query. Adjust buffer size computation for padding.
5168
5169 2008-07-08 Ulrich Drepper <drepper@redhat.com>
5170
5171 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5172 * stdio-common/tst-setvbuf1.c: New file.
5173 * stdio-common/tst-setvbuf1.expect: New file.
5174
5175 [BZ #6719]
5176 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5177 when selecting fully-buffered stream.
5178 Patch by Wang Xin <wxinee@gmail.com>.
5179
5180 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5181
5182 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5183 (__open_2): New function.
5184 (__open64_2): New alias to __open_2.
5185 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5186 (__openat_2): New function.
5187 (__openat64_2): New alias to __openat_2.
5188
5189 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5190
5191 [BZ #6723]
5192 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5193
5194 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5195
5196 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5197 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5198 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5199 __hurd_dfail.
5200 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5201 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5202 * sysdeps/mach/hurd/send.c (__send): Likewise.
5203 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5204 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5205
5206 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5207
5208 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5209 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5210 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5211 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5212 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5213 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5214
5215 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5216
5217 [BZ #6657]
5218 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5219 of %EY.
5220 Patch by Petr Baudis.
5221
5222 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5223
5224 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5225 Patch by Peter Jones <pjones@redhat.com>.
5226
5227 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5228
5229 [BZ #6654]
5230 * stdlib/canonicalize.c (__realpath): readlink can write too much
5231 into the buffer on platforms without PATH_MAX.
5232
5233 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5234
5235 [BZ #6653]
5236 * posix/tst-regex.c (main): Rename to...
5237 (do_test): ... this. Remove cmdline option processing.
5238 (TIMEOUT): Define.
5239 (TEST_FUNCTION): Define.
5240 (CMDLINE_OPTIONS): Define.
5241
5242 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5243
5244 [BZ #5210]
5245 * configure.in: Add -Werror to -fstack-protector test to catch
5246 unsupported architectures.
5247 Patch by Gilles Esponasse <g.esp@free.fr>.
5248
5249 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5250
5251 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5252 getcontext returns ENOSYS.
5253
5254 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5255
5256 * nscd/connections.c (main_loop_poll): Fix test for read error.
5257 (main_loop_epoll): Likewise.
5258
5259 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5260
5261 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5262 better place so it is not called when nscd is used.
5263
5264 * nscd/connections.c: Also recognize and handle changes to the
5265 resolver configuration file.
5266
5267 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5268
5269 * time/strftime.c: Pass reference to tzset_called around to handle
5270 recursive calls.
5271
5272 [BZ #6612]
5273 * time/strftime.c (__strftime_internal): Call tzset() only
5274 when printing timezone-dependent values.
5275 Based on a patch by Petr Baudis <pasky@suse.cz>.
5276
5277 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5278 unconditionally use second gaih_getanswer_slice result.
5279
5280 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5281 (getaddrinfo): RES must always be non-NULL.
5282
5283 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5284
5285 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5286 cr[34] registers.
5287 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5288 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5289 Likewise.
5290 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5291 register.
5292
5293 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5294
5295 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5296 fields.
5297 * nscd/connections.c (inotify_fd): New variable.
5298 (nscd_init): Try to open an inotify descriptor.
5299 If successful, watch files for databases using inotify instead of
5300 having prune threads stat the files.
5301 (nscd_run_prune): Recognize clear_cache flag being set and call
5302 prune_cache appropriately.
5303 (main_loop_poll): Add inotify descriptor to wait set and handle the
5304 reported changes.
5305 (main_loop_epoll): Likewise.
5306 * nscd/cache.c (prune_cache): Don't stat files for databases if
5307 inotify is used.
5308 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5309 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5310
5311 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5312 fixed-size portion of the record.
5313 * nscd/servicescache.c (cache_addserv): Likewise.
5314 * nscd/pwdcache.c (cache_addpw): Likewise.
5315 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5316
5317 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5318
5319 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5320 out we don't use uninitialized memory.
5321
5322 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5323 the client.
5324
5325 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5326
5327 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5328 ignore T_DNAME messages.
5329 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5330
5331 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5332
5333 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5334 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5335
5336 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5337
5338 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5339 instead of portstr to nscd_getserv_r. Patch by
5340 Roman Kagan <rkagan@mail.ru>.
5341
5342 2008-05-26 Jim Meyering <meyering@redhat.com>
5343
5344 Remove more useless "if" tests before "free".
5345 * include/inline-hashtab.h (htab_delete): Likewise.
5346 * libio/freopen.c (freopen): Likewise.
5347 * libio/freopen64.c (freopen64): Likewise.
5348 * locale/programs/ld-collate.c (collate_read): Likewise.
5349 * misc/fstab.c (libc_freeres_fn): Likewise.
5350 * posix/glob.c (globfree): Likewise.
5351
5352 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5353
5354 * string/Makefile (strop-tests): Add memmem.
5355 * string/test-memmem.c: New file.
5356 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5357 (test_init): Size buf1 according to BUF1PAGES.
5358
5359 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5360
5361 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5362 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5363 (CFLAGS-scanf17.c): New.
5364 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5365 * stdio-common/scanf15.c (main): Likewise.
5366 * stdio-common/scanf16.c: New file.
5367 * stdio-common/scanf17.c: New file.
5368
5369 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5370
5371 * resolv/res_send.c (send_dg): If we already have one of two
5372 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5373 use the one answer insted of failing.
5374
5375 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5376
5377 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5378 being executed on PowerPC as the expected result exceeds IBM
5379 long double 128 __LDBL_MAX__.
5380
5381 2008-05-21 Roland McGrath <roland@redhat.com>
5382
5383 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5384
5385 * Makefile (check-data): Use $(abi-name) before other guesses.
5386 Look in $(add-ons) dirs before scripts/data/.
5387 * elf/Makefile (check-data): Likewise.
5388
5389 * scripts/soversions.awk: Grok ABI line.
5390 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5391 Emit definition for abi-name variable.
5392
5393 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5394
5395 * string/endian.h: Define new fixed-size hto* and *toh macros only
5396 if [__USE_BSD].
5397
5398 * iconvdata/Depend: Add localedata.
5399
5400 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5401
5402 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5403
5404 2008-05-08 David S. Miller <davem@davemloft.net>
5405
5406 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5407 HIDDEN_JUMPTARGET.
5408 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5409 (__SYSCALL_CLOBBERS): Remove %g* registers.
5410 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5411 (__SYSCALL_CLOBBERS): Likewise.
5412 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5413 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5414
5415 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5416
5417 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5418 (CALL_ERRNO_LOCATION): Define.
5419 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5420 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5421 (CALL_ERRNO_LOCATION): Define.
5422 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5423 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5424 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5425
5426 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5427
5428 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5429 variable.
5430
5431 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5432
5433 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5434 (FIRST_FRAME_POINTER): Define.
5435
5436 2008-05-09 David S. Miller <davem@davemloft.net>
5437
5438 * sysdeps/sparc/sparc64/backtrace.c: New file.
5439
5440 2008-05-14 David S. Miller <davem@davemloft.net>
5441
5442 * sysdeps/sparc/machine-gmon.h: New file.
5443 * sysdeps/sparc/sparc-mcount.S: Likewise.
5444 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5445 sysdep_routines in gmon directory.
5446
5447 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5448
5449 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5450
5451 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5452
5453 * resolv/res_query.c (__libc_res_nquery): In case one of two
5454 answer was too short don't try to read that answer's header.
5455
5456 * resolv/res_send.c (send_dg): In case of timeout and there are
5457 two queries and one has been answered, return value indicating
5458 success.
5459
5460 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5461
5462 * nscd/cache.c (cache_add): Take additional parameter specifying
5463 whether this is in response of a cache refill. Check alignment
5464 of package data. Revamp waking of pruning thread.
5465 (prune_cache): Small optimization.
5466 * nscd/nscd.h: Adjust cache_add prototypes.
5467 * nscd/aicache.c: Adjust cache_add calls.
5468 * nscd/grpcache.c: Likewise.
5469 * nscd/hstcache.c: Likewise.
5470 * nscd/initgrcache.c: Likewise.
5471 * nscd/pwdcache.c: Likewise.
5472 * nscd/servicescache.c: Likewise.
5473 * nscd/connections.c (restart): Really disable cache use before
5474 exec attempt. If it fails, reenable cache.
5475 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5476 time to max to be able to notice concurrent cache additions. Unlock
5477 prune_lock while performing gc. Afterwards compute wakeup time with
5478 current wakeup_time value in mind.
5479
5480 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5481
5482 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5483
5484 * nscd/mem.c (gc): Correctly determine highest used array element
5485 in mark.
5486
5487 * nscd/mem.c (markrange): Add assert to check entries are all
5488 aligned. Small cleanup in bitmap use.
5489
5490 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5491 blockoff of type nscd_ssize_t.
5492 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5493 (mempoll_alloc): Record block offset and not address.
5494
5495 * nscd/mem.c (gc): Fix test for stack overuse.
5496
5497 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5498 more asserts.
5499
5500 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5501 entry is available, believe it.
5502
5503 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5504 no answers return NSS_STATUS_NOTFOUND.
5505 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5506 buffer does not have any content.
5507
5508 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5509
5510 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5511
5512 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5513 lookup, don't assign canon unconditionally.
5514
5515 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5516
5517 * string/Makefile (distribute): Add str-two-way.h.
5518
5519 2008-03-29 Eric Blake <ebb9@byu.net>
5520
5521 Rewrite string searches to O(n) rather than O(n^2).
5522 * string/str-two-way.h: New file. For linear fixed-allocation
5523 string searching.
5524 * string/memmem.c: New implementation.
5525 * string/strstr.c: New implementation.
5526 * string/strcasestr.c: New implementation.
5527
5528 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
5529
5530 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5531 opr.ctx_type.
5532 (calc_first): Initialize constraint field.
5533 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5534 Use search_duplicated_node to avoid loops. Fix grammar.
5535 (duplicate_node): Merge constraint field for all node types.
5536 (calc_eclosure_iter): Look at constraint field for all node types.
5537 * posix/regex_internal.c (create_cd_newstate): Don't look at
5538 create_cd_newstate.
5539
5540 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5541
5542 [BZ #6428]
5543 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5544
5545 [BZ #6442]
5546 * string/endian.h: Add macros for fixed-size endian conversion.
5547 * bits/byteswap.h: Allow inclusion from <endian.h>.
5548 * sysdeps/i386/bits/byteswap.h: Likewise.
5549 * sysdeps/ia64/bits/byteswap.h: Likewise.
5550 * sysdeps/s390/bits/byteswap.h: Likewise.
5551 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5552 * string/Makefile (tests): Add tst-endian.
5553 * string/tst-endian.c: New file.
5554
5555 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5556 Patch by Reuben Thomas.
5557
5558 2008-05-14 Joseph Myers <joseph@codesourcery.com>
5559
5560 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5561
5562 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5563
5564 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5565
5566 [BZ #6461]
5567 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5568 Add missing braces.
5569 (BODY for __gconv_transform_internal_ascii): Likewise.
5570
5571 [BZ #6472]
5572 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5573 to be treated like link-local addresses.
5574 (match_prefix): Don't treat IPv4 loopback address special when
5575 converting to v4 mapped addressed.
5576
5577 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5578 if necessary.
5579 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5580 * posix/tst-rfc3484-2.c: Likewise.
5581 * posix/tst-rfc3484-3.c: Likewise.
5582
5583 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5584 and SCTP.
5585
5586 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5587
5588 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5589
5590 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5591
5592 2008-05-13 Ulrich Drepper <drepper@redhat.com>
5593
5594 * po/lt.po: New file. From Lituanian translation team.
5595
5596 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
5597
5598 Introduce TLS descriptors for i386 and x86_64.
5599 * include/inline-hashtab.h: New file, copied from 2005's
5600 libiberty, with fix for memory leak imported afterwards by
5601 Glauber de Oliveira Costa.
5602 * elf/tlsdeschtab.h: New file.
5603 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5604 (_dl_allocate_static_tls): ... here. Rearrange failure path.
5605 (CHECK_STATIC_TLS): Move to...
5606 * elf/dynamic-link.h: ... this file.
5607 (TRY_STATIC_TLS): New macro.
5608 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5609 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5610 R_386_TLS_DESC): Define.
5611 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5612 binutils.
5613 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5614 R_X86_64_TLSDESC): Define.
5615 (R_386_NUM, R_X86_64_NUM): Adjust.
5616 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5617 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5618 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5619 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5620 release tlsdesc_table.
5621 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5622 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5623 (elf_machine_rel): Handle R_386_TLS_DESC.
5624 (elf_machine_rela): Likewise.
5625 (elf_machine_lazy_rel): Likewise.
5626 (elf_machine_lazy_rela): Likewise.
5627 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5628 * sysdeps/i386/dl-tlsdesc.S: New file.
5629 * sysdeps/i386/dl-tlsdesc.h: New file.
5630 * sysdeps/i386/tlsdesc.c: New file.
5631 * sysdeps/i386/tlsdesc.sym: New file.
5632 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5633 tlsdesc_table.
5634 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5635 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5636 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5637 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5638 release tlsdesc_table.
5639 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5640 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5641 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5642 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5643 (elf_machine_rela): Likewise.
5644 (elf_machine_lazy_rel): Likewise.
5645 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5646 (__tls_get_addr): Do not declare for non-shared compiles.
5647 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5648 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5649 * sysdeps/x86_64/tlsdesc.c: New file.
5650 * sysdeps/x86_64/tlsdesc.sym: New file.
5651 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5652 tlsdesc_table for both 32- and 64-bit structs.
5653
5654 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5655
5656 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5657 its own function. This reduces the frame setup costs and more.
5658
5659 2008-02-11 Joseph Myers <joseph@codesourcery.com>
5660
5661 [BZ #3406]
5662 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5663 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5664
5665 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5666
5667 * io/openat.c (__openat_2): Also pass fd to __openat.
5668 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5669 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5670
5671 * string/tester.c (test_memcmp): Add a few more tests.
5672 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5673
5674 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5675
5676 * nscd/cache.c (cache_add): Before returning with failure and this
5677 is the first use of the record, mark it as unusable.
5678 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5679 reporting a failure.
5680 * nscd/grpcache.c: Likewise
5681 * nscd/hstcache.c: Likewise.
5682 * nscd/initgrcache.c: Likewise.
5683 * nscd/pwdcache.c: Likewise.
5684 * nscd/servicescache.c: Likewise.
5685
5686 2008-05-10 Roland McGrath <roland@redhat.com>
5687
5688 [BZ #6505]
5689 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5690
5691 2008-05-08 David S. Miller <davem@davemloft.net>
5692
5693 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5694
5695 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5696 (__ieee754_y0l): Likewise.
5697 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5698 (__ieee754_y1l): Likewise.
5699 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5700 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5701 frexpl and ldexpl. math_private.h provides them and the latter
5702 is not even used.
5703 (__log1pl): Use __frexpl.
5704
5705 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5706
5707 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5708 prototypes.
5709 * include/arpa/nameser_compat.h: Define T_UNSPEC.
5710 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5711 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5712 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5713 af==AF_UNSPEC.
5714 (_nss_nis_gethostbyname4_r): New function.
5715 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5716 Change to also handle af==AF_UNSPEC.
5717 (get_tablename): New function. Use it to avoid duplication.
5718 (_nss_nisplus_gethostbyname4_r): New function.
5719 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5720 available.
5721 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5722 * nss/nss.h: Define struct gaih_addrtuple.
5723 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5724 af==AF_UNSPEC.
5725 (_nss_files_gethostbyname4_r): New function.
5726 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5727 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5728 calls.
5729 * resolv/res_query.c (__libc_res_nquery): Take two additional
5730 parameters for second answer buffer. Handle type=T_UNSPEC to mean
5731 look up IPv4 and IPv6.
5732 Change all callers.
5733 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5734 for an additional query and answer buffer. Pass to send_vc and
5735 send_dg.
5736 (send_vc): Send possibly two requests and receive two answers.
5737 (send_dg): Likewise.
5738 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5739 __libc_res_nquery.
5740 (_nss_dns_gethostbyname4_r): New function.
5741 (gaih_getanswer_slice): Likewise.
5742 (gaih_getanswer): Likewise.
5743 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5744 __libc_res_nquery call.
5745 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5746 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5747 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5748 available.
5749
5750 2008-05-05 David S. Miller <davem@davemloft.net>
5751
5752 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5753 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5754
5755 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5756
5757 Fix termios bit macros.
5758 Move *DLY definitions where they belong, in termios.h.
5759 Add *[0-3] definitions.
5760 Fixes confusion between VT and FF.
5761 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5762 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5763 are already defined to avoid collision with termios.h.
5764 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5765 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5766 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5767 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5768 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5769 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5770 VTDLY, VT0, VT1): New macros.
5771 [__USE_GNU] (OLCUC): Change value of macro.
5772 [__USE_XOPEN] (OFILL): New macro.
5773 [__USE_BSD] (CRTSCTS): Change value.
5774 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5775 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5776 (B7200, B14400, B28800, B76800): New macros.
5777
5778 2008-05-01 David S. Miller <davem@davemloft.net>
5779
5780 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5781 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5782 (gen-as-const-headers): Add it.
5783 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5784 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5785 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5786 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5787
5788 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5789 six system call parameters.
5790 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5791
5792 2008-04-30 Ulrich Drepper <drepper@redhat.com>
5793
5794 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5795 RUSAGE_LWP.
5796 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5797 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5798
5799 2008-04-30 Jakub Jelinek <jakub@redhat.com>
5800
5801 * stdlib/tst-setcontext.c: Include unistd.h.
5802
5803 2008-04-25 David S. Miller <davem@davemloft.net>
5804
5805 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5806 Pass "union semun" properly in to sys_ipc, it must be passed
5807 by value, not by reference.
5808
5809 2008-04-22 Jakub Jelinek <jakub@redhat.com>
5810
5811 * nscd/Makefile (nscd-cflags): Set back to -fpie.
5812 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5813 * nscd/connections.c (mem_in_flight): Likewise.
5814
5815 * nscd/nscd.h (dbs): Make hidden.
5816
5817 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5818 Avoid returning -1, return 0 instead.
5819
5820 2008-04-19 Ulrich Drepper <drepper@redhat.com>
5821
5822 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5823
5824 2008-04-15 Ulrich Drepper <drepper@redhat.com>
5825
5826 [BZ #5209]
5827 * sysdeps/unix/sysv/linux/times.c: New file.
5828
5829 [BZ #5381]
5830 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5831 mem_in_flight_list variables. Add new parameter to mempool_alloc
5832 prototype.
5833 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
5834 appropriate mem_in_flight element.
5835 (gc): Take allocations which have not yet been committed to the
5836 database into account.
5837 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5838 Reset mem_in_flight before returning.
5839 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5840 cue it up in mem_in_flight_list.
5841 * nscd/aicache.c: Adjust mempool_alloc call.
5842 * nscd/grpcache.c: Likewise.
5843 * nscd/hstcache.c: Likewise.
5844 * nscd/initgrcache.c: Likewise.
5845 * nscd/pwdcache.c: Likewise.
5846 * nscd/servicescache.c: Likewise.
5847 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5848 of -fpie.
5849
5850 * nscd/connections.c (handle_request): Provide better error message
5851 in case SELinux forbids the service.
5852
5853 * version.h (VERSION): Bump to 2.8.90.
5854
5855 2008-04-17 Jakub Jelinek <jakub@redhat.com>
5856
5857 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5858
5859 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5860
5861 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5862 Also use for 32-bit.
5863 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5864 __nextafter instead of nextafter to avoid local PLT.
5865 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5866 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5867
5868 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5869
5870 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5871 __fe_nomask_env.
5872 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
5873 <fenv_libc.h> instead of <fenv.h>.
5874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5876
5877 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5878
5879 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5880 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5881 function from fegetexcept and make old name weak alias.
5882 * include/fenv.h: Declare __fegetexcept.
5883 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5884 fegetexcept.
5885 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5886 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5887 to fetestexcept.
5888 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5889 instead of frexpl to avoid local PLT.
5890 * math/s_significandl.c (__significandl): Use __ilogbl instead of
5891 ilogbl to avoid local PLT.
5892 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5893 instead of ldexpl to avoid local PLT.
5894 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5895 __roundl not roundl to avoid local PLT.
5896 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5897 local PLTs. Use __sincosl instead of separate sinl and cosl
5898 calls.
5899 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5900
5901 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5902 version for ppc64 to 2.4.21 since without it makecontext will fail.
5903
5904 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5905 to the ABI in use.
5906 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5907 .__tls_get_addr.
5908 [__powerpc64__] (TLS_GD): Likewise.
5909
5910 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
5911
5912 [BZ #4997]
5913 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5914 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5915 mantissa.
5916 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5917 Likewise. Also account for when x is an odd number between 2^52
5918 and 2^53-1.
5919 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5920 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5921 * math/libm-test.inc (lround_test, llround_test): Added test cases to
5922 detect aforementioned erroneous conditions.
5923
5924 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5925
5926 * configure.in: Check for -fno-section-anchors in addition to
5927 -fno-toplevel-reorder.
5928
5929 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5930
5931 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5932
5933 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5934 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5935 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5936 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5937 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5938 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5939
5940 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5941
5942 [BZ #5443]
5943 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5944 * time/alt_digit.c: Likewise.
5945 * wcsmbs/wcsmbsload.c: Likewise.
5946
5947 2008-04-10 Ulrich Drepper <drepper@redhat.com>
5948
5949 * version.h (VERSION): Bump to 2.8.
5950
5951 * timzeone/asia: Update from tzdata2008b.
5952 * timezone/backward: Likewise.
5953 * timezone/europe: Likewise.
5954 * timezone/northamerica: Likewise.
5955 * timezone/southamerica: Likewise.
5956 * timezone/iso3166.tab: Likewise.
5957 * timezone/leapseconds: Likewise.
5958 * timezone/zone.tab: Likewise.
5959 * timezone/private.h: Update from tzcode2008a.
5960 * timezone/zdump.c: Likewise.
5961 * timezone/zic.c: Likewise.
5962
5963 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5964
5965 [BZ #5741]
5966 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5967 Define additonal Data Cache Block instruction macros.
5968 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5969 Replace dcbst with dcbf and sync with sync/isync.
5970
5971 2008-02-21 Alan Modra <amodra@bigpond.net.au>
5972
5973 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5974 Always set ELF_RTYPE_CLASS_PLT.
5975 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5976
5977 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5978
5979 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5980 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5981 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5982 For ISA 2.01 and later replace mftb with mfspr 268.
5983
5984 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5985
5986 [BZ #5768]
5987 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5988 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5989
5990 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
5991
5992 [BZ #5768]
5993 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5994 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5995 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5996 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5997
5998 2008-04-10 Jakub Jelinek <jakub@redhat.com>
5999
6000 * stdlib/tst-makecontext.c (othervar): New variable.
6001 (cf): Test sign extending the argument to long.
6002
6003 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6004
6005 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6006 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6007 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6008 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6009 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6010 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6011 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6012
6013 2008-02-22 Alan Modra <amodra@bigpond.net.au>
6014
6015 * elf/Makefile (tests): Substitute tests-vis-yes here.
6016 (tests-vis-yes): Delete.
6017 (modules-name, modules-vis-yes): Similarly.
6018
6019 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6020
6021 [BZ #4407]
6022 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6023 Preserve sign in signgamp when x is zero.
6024
6025 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6026
6027 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6028 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6029 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6030 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6031 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6032 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6033
6034 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6035
6036 [BZ #4314]
6037 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6038 buffers.
6039
6040 [BZ #5209]
6041 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6042 a reserved error value.
6043
6044 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6045 value to check for correct sign extension.
6046
6047 [BZ #5436]
6048 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6049 Copy 64-bit parameter values even though this is not required in
6050 the standard.
6051
6052 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6053 PC save.
6054
6055 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6056
6057 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6058 PC save.
6059
6060 2008-04-09 Jakub Jelinek <jakub@redhat.com>
6061
6062 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6063
6064 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6065
6066 [BZ #5998]
6067 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6068 in line-buffered stream failed.
6069 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6070
6071 2008-04-08 Ulrich Drepper <drepper@redhat.com>
6072
6073 [BZ #6024]
6074 * scripts/abi-versions.awk: If the version specified by
6075 --enable-oldest-abi is older than the first version for this
6076 architecture, use the default version.
6077
6078 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6079 as well when ignoring the whole category.
6080
6081 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6082
6083 [BZ #6042]
6084 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6085 ETHERTYPE_* definitions.
6086 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6087
6088 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6089
6090 * stdlib/mbtowc.c (__no_r_state): Remove.
6091 (mbtowc): New static state variable. Use it instead of
6092 __no_r_state.
6093 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6094 (__wctomb_state): New hidden variable.
6095 (wctomb): Use __wctomb_state instead of __no_r_state.
6096 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6097 (__wctomb_state): New extern decl.
6098 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6099
6100 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6101
6102 [BZ #5475]
6103 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6104
6105 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6106
6107 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6108
6109 2008-04-06 Ulrich Drepper <drepper@redhat.com>
6110
6111 * po/nl.po: Update from translation team.
6112
6113 2008-03-31 Ulrich Drepper <drepper@redhat.com>
6114
6115 [BZ #6007]
6116 * string/strfry.c: Handle empty strings again.
6117
6118 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6119
6120 [BZ #5443]
6121 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6122 before looking for translation.
6123 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6124 * locale/freelocale.c: Likewise.
6125 * locale/newlocale.c: Likewise.
6126 * locale/setlocale.c: Likewise.
6127 Based partially on a patch by ryo@np.css.fujitsu.com.
6128
6129 2008-03-30 Jakub Jelinek <jakub@redhat.com>
6130
6131 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6132 acquiring wrlock. Do conv_tab allocation while holding lock.
6133 * intl/Makefile: Add rules to build and run tst-gettext6.
6134 * intl/tst-gettext6.c: New test.
6135 * intl/tst-gettext6.sh: New file.
6136
6137 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6138
6139 * po/nl.po: Update from translation team.
6140
6141 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6142 provided through st_blksize, try the default size before giving up.
6143
6144 2008-03-29 Ulrich Drepper <drepper@redhat.com>
6145
6146 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6147
6148 [BZ #5939]
6149 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6150
6151 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6152 error message. POSIX today does not require the messages to be in
6153 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6154
6155 [BZ #5979]
6156 * sunrpc/auth_unix.c: Unify printed strings.
6157 * sunrpc/clnt_tcp.c: Likewise.
6158 * sunrpc/clnt_udp.c: Likewise.
6159 * sunrpc/clnt_unix.c: Likewise.
6160 * sunrpc/svc_tcp.c: Likewise.
6161 * sunrpc/svc_udp.c: Likewise.
6162 * sunrpc/svc_unix.c: Likewise.
6163 * sunrpc/xdr.c: Likewise.
6164 * sunrpc/xdr_array.c: Likewise.
6165 * sunrpc/xdr_rec.c: Likewise.
6166 * sunrpc/xdr_ref.c: Likewise.
6167 * locale/programs/ld-time.c (time_finish): Unify messages.
6168 * locale/programs/locfile.c (handle_copy): Fix typo.
6169 * nscd/nscd.c (options): Fix typo.
6170
6171 [BZ #5995]
6172 * stdlib/strtod_l.c: Use correct sign for result in one more
6173 underflow case.
6174 Patch by Eric Blake <ebb9@byu.net>.
6175
6176 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6177
6178 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6179 and creat system calls.
6180 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6181 call.
6182 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6183 system calls.
6184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6185 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6186 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6187
6188 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6189
6190 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6191 <linux/limits.h> has defined it.
6192 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6193 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6194 headers.
6195 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6196 it instead of ARG_MAX.
6197
6198 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6199
6200 * posix/gai.conf: Fix comment for scope nullbits.
6201 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6202 default to 128 bits for v4 mapped addresses.
6203
6204 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6205
6206 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6207 ptrace call to get the ieee_instruction_pointer from the kernel.
6208 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6209 ptrace call to set the ieee_instructtion_pointer.
6210 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6211 Add comment that ieee_instruction_pointer is always 0.
6212
6213 2008-03-09 Andreas Jaeger <aj@suse.de>
6214
6215 [BZ #5857]
6216 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6217 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6218 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6219
6220 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6221 (rint_test): Likewise.
6222
6223 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6224
6225 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6226 call.
6227 (__nisfind_server): Similar for open readColdStartFile call.
6228 Patch partially by Jim Meyering.
6229 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6230 around internal_setent call.
6231
6232 * po/vi.po: New Vietnamese translation.
6233
6234 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6235 ADJ_OFFSET_SS_READ.
6236
6237 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6238 remove CLONE_STOPPED.
6239
6240 2008-02-10 Jim Meyering <meyering@redhat.com>
6241
6242 Remove useless "if" before "free":
6243 * elf/ldconfig.c (parse_conf_include): Likewise.
6244 * gmon/gmon.c (weak_alias): Likewise.
6245 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6246 * inet/rcmd.c (__validuser2_sa): Likewise.
6247 * intl/bindtextdom.c (set_binding_values): Likewise.
6248 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6249 * libio/genops.c (save_for_backup): Likewise.
6250 * libio/wgenops.c (save_for_wbackup): Likewise.
6251 * locale/programs/ld-collate.c (collate_read): Likewise.
6252 * locale/programs/linereader.c (get_string): Likewise.
6253 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6254 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6255 * resolv/res_debug.c (do_section): Likewise.
6256 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6257 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6258 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6259 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6260 * time/tzset.c (tzset_internal): Likewise.
6261
6262 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6263
6264 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6265 of ASSEMBLER.
6266
6267 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6268
6269 [BZ #5903]
6270 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6271 not stream for output file. Open output file here.
6272 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6273 and output file name.
6274 (process_fd): Likewise.
6275 (process_file): Likewise.
6276 (main): Adjust callers of changed functions.
6277 * iconv/iconv_prog.h: Adjust prototype.
6278
6279 2008-03-09 Andreas Jaeger <aj@suse.de>
6280
6281 [BZ #5753]
6282 * sysdeps/ia64/ieee754.h: Use protected namespace
6283 __BIG_ENDIAN/__LITTLE_ENDIAN.
6284 * sysdeps/ieee754/ieee754.h: Likewise.
6285 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6286
6287 2008-03-08 Roland McGrath <roland@frob.com>
6288
6289 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6290 ignore a signal that came from a machine exception, treat it as a
6291 fatal core-dump signal instead.
6292 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6293
6294 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6295 Clear DF bit in thread state's eflags.
6296 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6297
6298 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6299
6300 [BZ #5774]
6301 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6302 of NAN(...) sequence.
6303 * stdlib/Makefile (tests): Add tst-strtod6.
6304 * stdlib/tst-strtod6.c: New file.
6305
6306 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6307
6308 [BZ #5762]
6309 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6310 putting offending option character in quotes. Clean up error
6311 messages.
6312 * po/be.po: Adjust msgstr in translation file.
6313 * po/bg.po: Likewise.
6314 * po/ca.po: Likewise.
6315 * po/cs.po: Likewise.
6316 * po/da.po: Likewise.
6317 * po/de.po: Likewise.
6318 * po/es.po: Likewise.
6319 * po/fr.po: Likewise.
6320 * po/hr.po: Likewise.
6321 * po/ko.po: Likewise.
6322 * po/nl.po: Likewise.
6323 * po/rw.po: Likewise.
6324 * po/sk.po: Likewise.
6325 * po/sv.po: Likewise.
6326 * po/tr.po: Likewise.
6327 * po/zh_CN.po: Likewise.
6328 * po/zh_TW.po: Likewise.
6329
6330 [BZ #5760]
6331 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6332 Patch by Roland Bless <roland@bless.de>.
6333
6334 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6335 .o file.
6336 * elf/Makefile (routines): Add dl-sysdep.
6337 (elide-routines.os): Likewise.
6338
6339 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6340
6341 [BZ #5786]
6342 * elf/dl-sysdep.c: Undefine ROUND after use.
6343 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6344 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6345 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6346 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6347 to ...
6348 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6349 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6350 if necessary.
6351 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6352
6353 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6354 _dl_tls_get_addr_soft element.
6355 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6356 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6357 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6358 GLRO.
6359 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6360 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6361 of internal_function.
6362
6363 * stdlib/Makefile (aux): Add tens_in_limb.
6364 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6365 * stdlib/tens_in_limb.c: ...here. New file.
6366
6367 [BZ #5778]
6368 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6369 __statfs_chown_restricted.
6370 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6371 for _PC_CHOWN_RESTRICTED.
6372 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6373 Implement __statfs_chown_restricted.
6374 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6375 _POSIX_CHOWN_RESTRICTED value to zero.
6376 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6377 defined to zero.
6378
6379 * sysdeps/x86_64/rtld-memset.c: New file.
6380
6381 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6382
6383 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6384
6385 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6386 Barcelona machine. Make default fall through branch of
6387 __x86_64_preferred_memory_instruction check as the integer code path.
6388
6389 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6390
6391 * sysdeps/x86_64/cacheinfo.c
6392 (__x86_64_preferred_memory_instruction): New variable.
6393 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6394
6395 * sysdeps/x86_64/memset.S: Rewrite.
6396
6397 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6398
6399 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6400 __obstack_printf_chk): New prototypes.
6401 (__vasprintf_chk, __vdprintf_chk,
6402 __obstack_vprintf_chk): Likewise.
6403 Add libc_hidden_proto.
6404 * libio/obprintf.c
6405 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6406 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6407 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6408 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6409 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6410 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6411 __obstack_vprintf_chk): New prototypes.
6412 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6413 obstack_vprintf): New inlines.
6414 * debug/dprintf_chk.c: New file.
6415 * debug/vdprintf_chk.c: New file.
6416 * debug/asprintf_chk.c: New file.
6417 * debug/vasprintf_chk.c: New file.
6418 * debug/obprintf_chk.c: New file.
6419 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6420 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6421 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6422 @@GLIBC_2.8.
6423 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6424 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6425 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6426 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6427 libc_hidden_proto.
6428 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6429 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6430 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6431 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6432 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6433 @@GLIBC_2.8.
6434 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6435 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6436 obstack_vprintf_chk.
6437 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6438 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6439 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6440 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6441 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6442 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6443
6444 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6445
6446 [BZ #5779]
6447 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6448 Patch by Roy Marples <roy@marples.name>.
6449
6450 [BZ #5736]
6451 * malloc/malloc.c: Fix typo in comment.
6452
6453 [BZ #5627]
6454 * locale/iso-639.def: Add Shuswap.
6455
6456 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6457
6458 [BZ #5790]
6459 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6460 overwrite *h_errnop/*errnop values from getanswer_r in case of
6461 failure.
6462
6463 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6464
6465 [BZ #5818]
6466 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6467 (verify_persistent_db): Remove one unnecessary test and add a new one
6468 for bad configuration.
6469 (nscd_init): Improve error reported when persistent database cannot
6470 be reused.
6471 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6472 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6473 .suggested_module and .max_db_size and case config file says the
6474 values are zero.
6475 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6476
6477 [BZ #5854]
6478 * nis/ypclnt.c (yp_order): Fix handling of return value of
6479 do_ypcall_tr call.
6480 Patch by Jeff Moyer <jmoyer@redhat.com>.
6481
6482 * po/fr.po: Update from translation team.
6483
6484 2008-02-22 Andreas Jaeger <aj@suse.de>,
6485 Carlos O'Donell <carlos@systemhalted.org>
6486
6487 [BZ #5012]
6488 * FAQ.in: Describe why glibc needs to be compiled with
6489 optimization.
6490
6491 2008-02-19 Roland McGrath <roland@redhat.com>
6492
6493 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6494
6495 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6496
6497 [BZ #5737]
6498 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6499 __USE_MISC is defined.
6500
6501 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6502
6503 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6504 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6505 sys/timerfd.h.
6506 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6507 timerfd_gettime, timerfd_settime.
6508 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6509 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6510
6511 2008-02-08 Roland McGrath <roland@redhat.com>
6512
6513 * elf/elf.h (NT_PPC_SPE): New macro.
6514
6515 2008-02-06 Roland McGrath <roland@redhat.com>
6516
6517 * Makerules ($(common-objpfx)sysd-rules):
6518 Depend on $(sysdep-makeconfigs).
6519
6520 2008-01-31 Roland McGrath <roland@redhat.com>
6521
6522 [BZ #5442]
6523 * configure.in: Use -print-file-name if it yields a directory,
6524 for each of include and include-fixed.
6525 * configure: Regenerated.
6526
6527 * Makeconfig (sysd-rules-targets): New variable.
6528 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6529 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6530
6531 2008-01-30 Roland McGrath <roland@redhat.com>
6532
6533 * manual/libc.texinfo: Update back-cover text.
6534
6535 * elf/elf.h (NT_386_TLS): New macro.
6536
6537 2008-01-29 Roland McGrath <roland@redhat.com>
6538
6539 * Makeconfig (sysd-rules-patterns): New variable.
6540 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6541 (check-inhibit-asm): New canned sequence, replaces ...
6542 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6543 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6544 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6545 (CFLAGS-rtld): Variable removed.
6546
6547 2008-01-24 Roland McGrath <roland@redhat.com>
6548
6549 * configure.in: Let configure fragments set base_os.
6550 * configure: Regenerated.
6551
6552 2008-01-22 Ulrich Drepper <drepper@redhat.com>
6553
6554 * po/ko.po: Update from translation team.
6555
6556 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6557
6558 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6559
6560 2008-01-12 Andreas Jaeger <aj@suse.de>
6561
6562 [BZ #5040]
6563 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6564 Add EPOLLRDHUP.
6565
6566 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6567
6568 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6569 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6570 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6571
6572 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
6573
6574 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6575 * elf/dl-close.c (_dl_close): Check for it.
6576 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6577 (_dl_allocate_static_tls): Likewise.
6578 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6579 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6580 to it.
6581 * elf/tst-tls16.c: New file.
6582 * elf/tst-tlsmod16a.c: New file.
6583 * elf/tst-tlsmod16b.c: New file.
6584 * elf/Makefile: Add rules to build and run tst-tls16.
6585
6586 2008-01-16 Ulrich Drepper <drepper@redhat.com>
6587
6588 [BZ #5628]
6589 * bits/shm.h: Fix comment describing shmid_ds.
6590 * sysdeps/gnu/bits/shm.h: Likewise.
6591 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6592 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6593 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6594 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6595 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6596 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6597 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6598 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6599 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6600
6601 [BZ #5607]
6602 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6603 prototypes.
6604 * conform/data/limits.h-data: Adjust limits changed in v6 and add
6605 additional suffixes.
6606 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6607 Add optional functions mq_timedreceive and mq_timedsend.
6608 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6609 * conform/data/pthread.h-data: Fix prototype of
6610 pthread_condattr_setclock. pthread_sigmask is not required in v6.
6611 * conform/data/semaphore.h-data: Allow time.h definitions.
6612 * conform/data/signal.h-data: Likewise.
6613 * conform/data/stdio.h-data: getw and putw are not required in v6.
6614 * conform/data/stdlib.h-data: Change setstate prototype.
6615 * conform/data/string.h-data: Fix strerror_r prototype.
6616 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6617 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6618 Fix readlink prototype.
6619 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6620 in6addr_loopback.
6621 * inet/netinet/in.h: Cleanup namespace.
6622 * posix/regex.h: Likewise.
6623 * resolv/netdb.h: Likewise.
6624 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6625 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6626 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6627 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6628 of names of in in6_addr.
6629 (default_precedence): Likewise.
6630 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6631 NULL definition.
6632
6633 2008-01-15 Ulrich Drepper <drepper@redhat.com>
6634
6635 * conform/data/fmtmsg.h-data: Add missing allows.
6636 * conform/data/ftw.h-data: Likewise.
6637 * conform/data/inttypes.h-data: Likewise.
6638 * conform/data/math.h-data: Likewise.
6639 * conform/data/signal.h-data: Likewise.
6640 * conform/data/net/if.h-data: Likewise.
6641 * conform/data/netinet/in.h-data: Likewise.
6642 * conform/data/sys/socket.h-data: Likewise.
6643
6644 [BZ #5614]
6645 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6646 (__strtok_r): Simplify.
6647 * string/tester.c (test_strtok_r): Add test case for futile search
6648 with single-character seach string.
6649
6650 2008-01-12 Ulrich Drepper <drepper@redhat.com>
6651
6652 * po/ko.po: Update from translation team.
6653
6654 2008-01-11 Andreas Jaeger <aj@suse.de>
6655
6656 [BZ #5600]
6657 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6658 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6659 kernel header.
6660
6661 2008-01-10 Ulrich Drepper <drepper@redhat.com>
6662
6663 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6664 native interface lookup in all the relevant places.
6665
6666 2008-01-10 Jakub Jelinek <jakub@redhat.com>
6667 Ulrich Drepper <drepper@redhat.com>
6668
6669 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6670 field. Use sockaddr_in6 for source_addr.
6671 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6672 (match_prefix): Likewise.
6673 (get_label): Likewise.
6674 (get_precedence): Likewise.
6675 (rfc3484_sort): Change to use indirect access to results array.
6676 Adjust to use of sockaddr_in6. Replace service_order test with
6677 simple index comparison.
6678 (getaddrinfo): Define order array. Initialize it. Don't initialize
6679 service_order field. Adjust qsort_t calls. Access sorted result
6680 array indirectly through order array.
6681 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6682 * posix/tst-rfc3484-2.c: Likewise.
6683 * posix/tst-rfc3484-3.c: Likewise.
6684
6685 2008-01-09 Ulrich Drepper <drepper@redhat.com>
6686
6687 [BZ #5541]
6688 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6689 pollfd structures.
6690 Patch by André Cruz.
6691
6692 [BZ #5545]
6693 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6694 (clnt_spcreateerror): Likewise.
6695
6696 [BZ #5553]
6697 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6698 (public_mEMALIGn): Likewise.
6699 Patch mostly by Daniel Jacobowitz.
6700
6701 2008-01-09 Jakub Jelinek <jakub@redhat.com>
6702
6703 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6704 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6705 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6706 * stdlib/tst-makecontext2.c: New test.
6707
6708 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6709
6710 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6711 defined.
6712 (REINIT_PARAMS): Likewise. Undefine before end of file.
6713 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6714 transliteration hooks and REINIT_PARAMS afterwards.
6715 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6716 status.
6717 (REINIT_PARAMS): Define.
6718 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6719 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6720 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6721 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6722 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6723 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6724 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6725 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6726 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6727 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6728 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6729 * iconvdata/tst-iconv7.c: New test.
6730
6731 2008-01-07 Ulrich Drepper <drepper@redhat.com>
6732
6733 * libio/stdio.h (vscanf): Fix definition for loser compilers.
6734
6735 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6736
6737 [BZ #5112]
6738 * nscd/connections.c (restart): Fix condition.
6739
6740 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6741
6742 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6743 __ctype_toupper_loc): Add __THROW.
6744
6745 2008-01-02 Ulrich Drepper <drepper@redhat.com>
6746
6747 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6748 recognition of interface family.
6749
6750 * posix/getconf.c: Update copyright year.
6751 * nss/getent.c: Likewise.
6752 * iconv/iconvconfig.c: Likewise.
6753 * iconv/iconv_prog.c: Likewise.
6754 * elf/ldconfig.c: Likewise.
6755 * catgets/gencat.c: Likewise.
6756 * csu/version.c: Likewise.
6757 * elf/ldd.bash.in: Likewise.
6758 * elf/sprof.c (print_version): Likewise.
6759 * locale/programs/locale.c: Likewise.
6760 * locale/programs/localedef.c: Likewise.
6761 * nscd/nscd.c (print_version): Likewise.
6762 * debug/xtrace.sh: Likewise.
6763 * malloc/memusage.sh: Likewise.
6764 * malloc/mtrace.pl: Likewise.
6765 * debug/catchsegv.sh: Likewise.
6766
6767 2007-12-26 Ulrich Drepper <drepper@redhat.com>
6768
6769 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6770 second lookup.
6771
6772 2007-12-23 Ulrich Drepper <drepper@redhat.com>
6773
6774 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6775 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6776
6777 2007-12-17 Roland McGrath <roland@redhat.com>
6778
6779 * inet/ether_line.c (ether_line): Remove unused variable.
6780
6781 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
6782
6783 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6784 and winp.
6785 * login/openpty.c (openpty): Likewise.
6786 * login/pty.h (openpty, forkpty): Likewise.
6787 * manual/terminal.texi (openpty, forkpty): Likewise.
6788
6789 2007-12-17 Ulrich Drepper <drepper@redhat.com>
6790
6791 * malloc/malloc.c (public_cALLOc): For arenas other than
6792 main_arena, count all bytes inside the mprotect_size range of the
6793 heap as uninitialized.
6794
6795 2007-12-16 Ulrich Drepper <drepper@redhat.com>
6796
6797 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6798 executable stacks.
6799
6800 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6801 mTRIm for all of them.
6802 (mTRIm): Additionally iterate over all free blocks and use madvise
6803 to free memory for all those blocks which contain at least one
6804 memory page.
6805 * malloc/tst-trim1.c: New file.
6806 * malloc/Makefile (tests): Add tst-trim1.
6807
6808 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6809
6810 2007-12-14 Ulrich Drepper <drepper@redhat.com>
6811
6812 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6813 First cast argument to long
6814 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6815 Return long.
6816 (__vdso_clock_gettime): Likewise.
6817 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6818 return long.
6819
6820 2007-12-13 Ulrich Drepper <drepper@redhat.com>
6821
6822 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6823 * locale/nl_langinfo_l.c: Real implementation, copied from
6824 nl_langinfo.c.
6825 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6826
6827 2007-12-01 Jim Meyering <meyering@redhat.com>
6828
6829 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6830 that would inhibit utf8-optimization of a regexp containing line-
6831 or buffer-anchors, e.g., `^', `$'.
6832
6833 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6834
6835 * time/bug-getdate1.c (do_test): Don't use century values which
6836 aren't valid on 32-bit systems.
6837
6838 2007-12-12 Jakub Jelinek <jakub@redhat.com>
6839
6840 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6841 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6842 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6843 __strcat_g, __strncat_g): Add __asm__.
6844
6845 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6846
6847 [BZ #5477]
6848 * io/fchmodat.c: Fix typo in stub_warning use.
6849 Patch by Petr Salinger.
6850
6851 2007-12-11 Ulrich Drepper <drepper@redhat.com>
6852
6853 * iconvdata/hp-thai8.c: New file.
6854 * iconvdata/Makefile: Add rules for hp-thai8.c.
6855 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6856 * iconvdata/gconv-modules: Likewise.
6857
6858 [BZ #5464]
6859 * iconvdata/hp-greek8.c: New file.
6860 * iconvdata/Makefile: Add rules for hp-greek8.c.
6861 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6862 * iconvdata/gconv-modules: Likewise.
6863
6864 [BZ #5463]
6865 * iconvdata/hp-turkish8.c: New file.
6866 * iconvdata/Makefile: Add rules for hp-turkish8.c.
6867 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6868 * iconvdata/gconv-modules: Likewise.
6869
6870 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6871 (shrink_heap): ... this new function.
6872 (heap_trim): Call shrink_heap instead of grow_heap.
6873
6874 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6875 case don't call alloc_perturb.
6876
6877 2007-12-10 Ulrich Drepper <drepper@redhat.com>
6878
6879 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6880 possible.
6881 * sysdeps/unix/sysv/linux/kernel-features.h
6882 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6883 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6884
6885 2007-12-08 Ulrich Drepper <drepper@redhat.com>
6886
6887 [BZ #5424]
6888 * stdio-common/vfprintf.c: Do not overflow when adding to done.
6889 * stdio-common/Makefile (tests): Add bug22.
6890 * stdio-common/bug22.c: New file.
6891
6892 [BZ #5451]
6893 * time/getdate.c: Fix filling in default values.
6894 * time/bug-getdate1.c: New file.
6895 * time/Makefile: Add rules to build and run bug-getdate1.
6896
6897 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6898 * iconvdata/ebcdic-es.c: Likewise.
6899 * iconvdata/ebcdic-es-a.c: Likewise.
6900 * iconvdata/ebcdic-uk.c: Likewise.
6901 * iconvdata/iso8859-16.c: Likewise.
6902 * iconvdata/viscii.c: Likewise.
6903 * iconvdata/iso8859-9e.c: Likewise.
6904 * iconvdata/Makefile: Adjust appropriately.
6905
6906 [BZ #5428]
6907 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6908 __need_wint_t.
6909
6910 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6911
6912 [BZ #5427]
6913 * iconvdata/hp-roman9.c: New file.
6914 * iconvdata/Makefile: Add rules for hp-roman9.c.
6915 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6916 * iconvdata/gconv-modules: Likewise.
6917
6918 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6919 * iconvdata/Makefile: Adjust appropriately.
6920
6921 [BZ #5441]
6922 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6923 structure, it's allocated with alloca.
6924 * stdio-common/Makefile (tests): Add bug21.
6925 * stdio-common/bug21.c: New file.
6926
6927 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6928
6929 [BZ #5452]
6930 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6931 keyword for gcc's braced-groups.
6932
6933 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6934
6935 [BZ #5454]
6936 * inet/ether_line.c: Strip hostname of whitespaces.
6937 * inet/Makefile (tests): Add tst-ether_line.
6938 * inet/tst-ether_line.c: New file.
6939
6940 2007-12-03 Ulrich Drepper <drepper@redhat.com>
6941
6942 [BZ #5439]
6943 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6944
6945 [BZ #5435]
6946 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6947
6948 * stdlib/tst-setcontext.c: Catch the case where the links gets
6949 messed up and we do not reach main again.
6950
6951 * po/ca.po: Update from translation team.
6952
6953 2007-11-26 Ulrich Drepper <drepper@redhat.com>
6954
6955 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6956 * posix/regex.h (REG_ENOSYS): Likewise.
6957 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6958
6959 2007-11-25 Ulrich Drepper <drepper@redhat.com>
6960
6961 * nscd/nscd.h (MAX_STACK_USE): Define.
6962 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6963 (gc): Initialize stack_used based on allocation in prune_cache.
6964 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6965 Clear array before use.
6966
6967 * nscd/aicache.c (addhstaiX): Update statistics counter in case
6968 memory allocation failed.
6969 * nscd/hstcache.c (cache_addhst): Likewise.
6970 * nscd/grpcache.c (cache_addgr): Likewise.
6971 * nscd/servicescache.c (cache_addserv): Likewise.
6972 * nscd/pwdcache.c (cache_addpw): Likewise.
6973 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6974
6975 2007-11-23 Ulrich Drepper <drepper@redhat.com>
6976
6977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6978 and creat system calls.
6979
6980 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6981
6982 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6983
6984 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6985 Add netiucv/iucv.h.
6986 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6987 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6988 protocol.
6989 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6990 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6991 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6992
6993 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
6994
6995 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6996 strncat): Define as macros to avoid compile errors.
6997
6998 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
6999 creat entries.
7000
7001 2007-11-22 Ulrich Drepper <drepper@redhat.com>
7002
7003 [BZ #5382]
7004 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7005 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7006 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7007 overflow it.
7008 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7009
7010 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7011 Return zero in case the thread library is not NPTL.
7012
7013 [BZ #5375]
7014 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7015 initializing interface list.
7016
7017 [BZ #5378]
7018 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7019 use result of nss_getgrgid_r if nothing was found. For other
7020 error return with a failure.
7021 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7022
7023 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7024 macro name.
7025
7026 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7027
7028 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7029 (get_scope): For IPv4 scope, use scopes table.
7030 (fini): Free scopes table if necessary.
7031 (free_scopelist): New function.
7032 (scopecmp): New function.
7033 (gaiconf_init): Also handle scopev4 entries.
7034 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7035 * posix/tst-rfc3484-2.c (do_test): Likewise.
7036 * posix/gai.conf: Document scopev4 defaults.
7037 * posix/Makefile (tests): Add tst-rfc3484-3.
7038 * posix/tst-rfc3484-3.c: New file.
7039
7040 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7041 Teredo tunnels.
7042 * posix/gai.conf: Update for current default tables.
7043
7044 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7045
7046 * po/tr.po: Update from translation team.
7047
7048 2007-11-18 Roland McGrath <roland@frob.com>
7049
7050 * manual/arith.texi (Remainder Functions): Spelling fix.
7051 From Shaun Silk <genix@mysoul.com.au>.
7052
7053 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7054
7055 2007-11-17 Ulrich Drepper <drepper@redhat.com>
7056
7057 * po/zh_CN.po: Update from translation team.
7058
7059 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7060 Add sys/signalfd.h and sys/eventfd.h.
7061
7062 2007-11-15 Bruno Haible <bruno@clisp.org>
7063
7064 [BZ #5346]
7065 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7066 union.
7067 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7068 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7069 it needs only fixed stack space. Delay the initialization of
7070 msgid_len until it is needed.
7071
7072 2007-11-15 Andreas Jaeger <aj@suse.de>
7073
7074 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7075 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7076
7077 2007-11-15 Ulrich Drepper <drepper@redhat.com>
7078
7079 * po/ko.po: Update from translation team.
7080
7081 2007-11-14 Ulrich Drepper <drepper@redhat.com>
7082
7083 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7084 significantly. The device type is also part of the ifinfomsg data.
7085
7086 * po/sv.po: Update from translation team.
7087 * po/nl.po: Likewise.
7088
7089 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7090 to wake up in 24 hours.
7091
7092 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7093
7094 2007-11-13 Ulrich Drepper <drepper@redhat.com>
7095
7096 * po/cs.po: Update from translation team.
7097 * po/pl.po: Likewise.
7098
7099 * include/ifaddrs.h: Remove in6ai_temporary.
7100 (struct in6addrinfo): Add index element.
7101 Declare __check_native.
7102 * inet/Makefile (aux): Add check_native.
7103 * sysdeps/unix/sysv/linux/check_native.c: New file.
7104 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7105 IFA_F_TEMPORARY. Pass back ifa_index.
7106 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7107 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7108 call __check_native if necessary.
7109 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7110 to sort addresses. Pass information about the results.
7111 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7112 of rfc3484_sort interface.
7113 * posix/tst-rfc3484-2.c: Likewise.
7114
7115 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7116 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7117 for _quicksort.
7118 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7119 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7120 on as third parameter to compare function and _quicksort.
7121 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7122 to the compare function.
7123 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7124 * Versions.def: Add GLIBC_2.8 for libc.
7125
7126 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7127 * posix/tst-rfc3484-2.c: Likewise.
7128
7129 * include/kernel-features.h: Moved to...
7130 * sysdeps/mach/hurd/kernel-features.h: ...here.
7131
7132 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7133
7134 * sysdeps/i386/i586/memcpy_chk.S: New file.
7135 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7136 * sysdeps/i386/i586/memset_chk.S: Likewise.
7137
7138 2007-11-12 Ulrich Drepper <drepper@redhat.com>
7139
7140 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7141 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7142 list of interfaces. Also store prefix length.
7143 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7144 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7145 prefix if source and destination address are in the same subnet.
7146 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7147 Always look for matching record in in6ai list.
7148 Correct source_addr_len value for IPv6->IPv4 converted records.
7149
7150 2007-11-11 Roland McGrath <roland@frob.com>
7151
7152 * include/kernel-features.h: New file.
7153
7154 2007-11-10 Ulrich Drepper <drepper@redhat.com>
7155
7156 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7157 complications for 64-bit platforms.
7158
7159 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7160 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7161 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7162 open64_2.
7163 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7164 entries.
7165 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7166 * sysdeps/wordsize-64/alphasort.c: New file.
7167 * sysdeps/wordsize-64/alphasort64.c: New file.
7168 * sysdeps/wordsize-64/fseeko.c: New file.
7169 * sysdeps/wordsize-64/fseeko64.c: New file.
7170 * sysdeps/wordsize-64/ftello.c: New file.
7171 * sysdeps/wordsize-64/ftello64.c: New file.
7172 * sysdeps/wordsize-64/ftw.c: New file.
7173 * sysdeps/wordsize-64/ftw64.c: New file.
7174 * sysdeps/wordsize-64/iofgetpos.c: New file.
7175 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7176 * sysdeps/wordsize-64/iofopen.c: New file.
7177 * sysdeps/wordsize-64/iofopen64.c: New file.
7178 * sysdeps/wordsize-64/iofsetpos.c: New file.
7179 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7180 * sysdeps/wordsize-64/lockf.c: New file.
7181 * sysdeps/wordsize-64/lockf64.c: New file.
7182 * sysdeps/wordsize-64/mkostemp.c: New file.
7183 * sysdeps/wordsize-64/mkostemp64.c: New file.
7184 * sysdeps/wordsize-64/mkstemp.c: New file.
7185 * sysdeps/wordsize-64/mkstemp64.c: New file.
7186 * sysdeps/wordsize-64/scandir.c: New file.
7187 * sysdeps/wordsize-64/scandir64.c: New file.
7188 * sysdeps/wordsize-64/tmpfile.c: New file.
7189 * sysdeps/wordsize-64/tmpfile64.c: New file.
7190 * sysdeps/wordsize-64/versionsort.c: New file.
7191 * sysdeps/wordsize-64/versionsort64.c: New file.
7192 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7193 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7194 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7195 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7196 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7197 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7198 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7199 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7200 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7201 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7202 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7203 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7204
7205 * crypt/sha256-crypt.c: Fix a comment.
7206 * crypt/sha512-crypt.c: Likewise.
7207
7208 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7209
7210 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7211
7212 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7213
7214 [BZ #5277]
7215 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7216 because output buffer is too small break, don't loop.
7217 * iconvdata/Makefile (tests): Add bug-iconv6.
7218 * iconvdata/bug-iconv6.c: New file.
7219
7220 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7221
7222 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7223 with size_t type.
7224 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7225 size_t. Add casts where needed.
7226
7227 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7228 old headers, don't call avc_has_perm if we don't have the
7229 permission information.
7230
7231 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7232
7233 * elf/rtld.c (dl_main): Use the page size to find the map start.
7234
7235 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7236
7237 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7238 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7239
7240 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7241 when the lookup call failed.
7242
7243 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7244 Add prune_cond and wakeup_time.
7245 (CACHE_PRUNE_INTERNAL): Define.
7246 Update declarations of prune_cache and setup_thread.
7247 * nscd/connections.c (dbs): Update initializers.
7248 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7249 (nscd_init): Default number of threads is now 4.
7250 (invalidate_cache): Take lock before calling prune_cache.
7251 (handle_request): If SELinux forbids the request, say so.
7252 (readylist_cond): Use static initializer.
7253 (nscd_run_prune): New function. Used only by pruning threads.
7254 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7255 here.
7256 (fd_ready): Update nscd_run reference.
7257 (start_threads): No need to initialize readylist_cond.
7258 Start pruning threads separately.
7259 * nscd/nscd_setup_thread.c: Change return value type to int and always
7260 return 0.
7261 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7262 to int and return nonzero value if we can use the TID address hack.
7263 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7264 the database is later than the new entry's timeout, update the
7265 wakeup time and wake the cleanup thread.
7266 (prune_cache): Return seconds the next entry in the database is still
7267 valid. Remove locking for pruning here.
7268 * nscd/nscd.conf: Document default number of threads.
7269
7270 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7271
7272 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7273 stack is properly aligned for the target function.
7274 Correct unwind info.
7275
7276 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7277 when using auditing libraries.
7278
7279 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7280
7281 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7282 _nss_dns_getnetbyaddr2_r.
7283 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7284 extra parameter to getanswer_r.
7285 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7286 _nss_dns_getnetbyaddr2_r.
7287
7288 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7289 gethstbynm3_r.
7290 * nscd/gethstbynm2_r.c: Remove.
7291 * nscd/gethstbynm3_r.c: New file.
7292 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7293 __gethostbyaddr_r.
7294 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7295 __gethostbyaddr_r compatibility wrapper.
7296 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7297 determining timeout of entry.
7298 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7299 __gethostbyaddr2_r.
7300 (addhstbyX): Pass reference to variable for TTL to lookup and
7301 cache_addhst.
7302 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7303 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7304 and __nss_next2. Remove __nss_services_lookup.
7305 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7306 Add compat wrapper.
7307 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7308 __nss_next2.
7309 * nss/getXXent_r.c: Likewise.
7310 * nss/getnssent_r.c: Likewise.
7311 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7312 does not exist in module, try the optional second name.
7313 (__nss_next2): New function.
7314 (__nss_next): Now wrapper around __nss_next2.
7315 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7316 Declare __nss_next2.
7317 Adjust definition of db_lookup_function type.
7318 * nss/service-lookup.c: Define NO_COMPAT.
7319 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7320 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7321 * inet/ether_ntoh.c: Likewise.
7322 * sunrpc/netname.c: Likewise.
7323 * sunrpc/publickey.c: Likewise.
7324 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7325 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7326 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7327 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7328 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7329
7330 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7331
7332 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7333
7334 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7335
7336 [BZ #5204]
7337 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7338 * crypt/sha512c-test.c: Likewise.
7339
7340 [BZ #5225]
7341 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7342 to keep track of end of %[ format string element.
7343 * stdio-common/Makefile (tests): Add bug20.
7344 * stdio-common/bug20.c: New file.
7345
7346 [BZ #5222]
7347 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7348 path elements in counting mode.
7349
7350 2007-10-27 Andreas Jaeger <aj@suse.de>
7351
7352 [BZ #5040]
7353 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7354
7355 [BZ #3112]
7356 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7357 (__cleanup): Free shared library when exiting.
7358 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7359 (__cleanup): Free shared library when exiting.
7360
7361 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7362
7363 [BZ #2549]
7364 * math/libm-test.inc (check_float_internal): Support
7365 denormalized return.
7366
7367 2007-10-23 Andreas Jaeger <aj@suse.de>
7368
7369 [BZ #5208]
7370 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7371 __LONG_LONG_PAIR to handle little endian byte order.
7372 Suggested by abhishekrai@google.com
7373
7374 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7375
7376 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7377
7378 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7379
7380 * nscd/cache.c (prune_cache): Move test for modified file outside
7381 of locking.
7382
7383 2007-10-21 Andreas Jaeger <aj@suse.de>
7384
7385 * manual/texinfo.tex: Update to latest version.
7386
7387 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7388
7389 * manual/arith.texi (Status bit operations): Fix formatting.
7390
7391 * manual/errno.texi (Error Messages): Fix formatting.
7392
7393 * manual/sysinfo.texi (System Parameters): Fix formatting.
7394
7395 * manual/libc.texinfo: Update VERSION and UPDATED.
7396
7397 2007-10-19 Roland McGrath <roland@redhat.com>
7398
7399 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7400
7401 2007-10-06 David S. Miller <davem@davemloft.net>
7402
7403 * configure.in: Add sparcv9v2 and sparc64v2.
7404 * scripts/config.sub: Likewise.
7405 * configure: Regenerate.
7406 * elf/elf.h (HWCAP_SPARC_N2): New.
7407 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7408 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7409 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7410 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7411 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7412 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7413 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7414
7415 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7416
7417 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7418 even if the poll result indicates there is data to read.
7419 Patch by Jeff Moyer <jmoyer@redhat.com>.
7420
7421 2007-10-18 Roland McGrath <roland@redhat.com>
7422
7423 * elf/elf.h (NT_PPC_VMX): New macro.
7424
7425 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7426
7427 * version.h (VERSION): Set to 2.7.90.
7428
7429 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7430
7431 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7432 weak_alias.
7433
7434 2007-10-17 Roland McGrath <roland@frob.com>
7435
7436 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7437 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7438
7439 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7440
7441 * version.h (VERSION): Bump to 2.7.
7442 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7443
7444 [BZ #5186]
7445 * time/tzset.c (__tz_convert): Don't force testing for a change of
7446 TZ if not called from localtime. But then also see whether the
7447 file changed, in case __use_tzfile is set.
7448
7449 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7450 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7451 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7452 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7453 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7454 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7455 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7456 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7457
7458 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7459
7460 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7461 and admin selects to be able to replace the gai.conf file, lock
7462 data structures around the qsort call.
7463
7464 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7465
7466 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7467 new memset.
7468 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7469 too high for the improvements. Implement bzero unconditionally for
7470 use in libc.
7471
7472 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7473 Jakub Jelinek <jakub@redhat.com>
7474
7475 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7476 even when time_t is 32-bit.
7477 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7478 timezone data read by __tzfile_default. Ensure __tzname[0] is
7479 always set after the search.
7480
7481 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7482
7483 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7484 unreachable code on 32-bit machines.
7485
7486 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7487
7488 [BZ #5184]
7489 * time/strftime_l.c: Include stdbool.h.
7490 (my_strftime): New wrapper, old function renamed to...
7491 (__strftime_internal): ... new function. Add tzset_called
7492 argument, pass it down to recursive calls, don't call tzset ()
7493 if already true, set to true after call to tzset ().
7494
7495 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7496
7497 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7498 into account when copying TZ string.
7499
7500 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7501
7502 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7503 num_transition rather than num_transitions - 1.
7504
7505 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7506
7507 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7508 PIC indirect jump.
7509
7510 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7511 a local label rather than HIDDEN_JUMPTARGET.
7512
7513 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7514
7515 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7516 (init_cacheinfo): Initialize it.
7517 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7518 Always define bzero.
7519 Remove non-glibc code.
7520 * sysdeps/x86_64/bzero.S: Make an empty file.
7521
7522 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7523
7524 * sysdeps/x86_64/cacheinfo.c
7525 (__x86_64_preferred_memory_instruction): New.
7526 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7527
7528 * sysdeps/x86_64/memset.S: Rewrite.
7529
7530 2007-10-15 Roland McGrath <roland@redhat.com>
7531
7532 * po/libc.pot: Regenerated.
7533
7534 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7535
7536 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7537 pointers.
7538
7539 [BZ #3425]
7540 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7541 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7542 address record to T_A/T_AAAA requests.
7543
7544 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7545
7546 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7547
7548 * posix/glob.c: Add some branch prediction throughout.
7549
7550 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7551 read from nscd.
7552
7553 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7554 service_order.
7555 (rfc3484_sort): Make sure that even if qsort doesn't support
7556 stable sorting out sorting here is stable by comparing service_order.
7557 (getaddrinfo): Initialize service_order.
7558 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7559 service_order field to sorting structure.
7560 * posix/tst-rfc3484-2.c (do_test): Likewise.
7561
7562 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7563 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7564 __tzset_parse_tz and updating of daylight, timezone, tzname into
7565 update_vars.
7566 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7567 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7568 happens in __tz_compute.
7569 * time/tzfile.c (__tzfile_read): Also read TZ string.
7570 (find_transition): Fold into __tzfile_compute.
7571 (__tzfile_compute): For times beyond the last transition try to
7572 use the TZ string.
7573 * timezone/tst-timezone.c: Information in daylight and tzname does
7574 change for Asia/Tokyo timezone with more concrete information.
7575 Remove the test.
7576
7577 * include/stdio.h: Add libc_hidden_proto for ftello.
7578 * libio/ftello.c: Add libc_hidden_def.
7579
7580 [BZ #1140]
7581 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7582 on the specified time and not the last entries in the file. Move
7583 code to determine tzname[] to...
7584 (find_transition): ...here. Add ugly guess for times before the
7585 first transition.
7586
7587 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7588
7589 [BZ #3195]
7590 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7591 no entry.
7592 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7593 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7594 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7595 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7596
7597 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7598 read mechanism when there are no group members and avoid no-op
7599 read syscall in this case.
7600
7601 [BZ #3242]
7602 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7603 (__readall): If reading failed due to EAGAIN error wait a bit
7604 and possibly try again.
7605 (__readvall): Likewise.
7606
7607 2007-10-13 Bruno Haible <bruno@clisp.org>
7608
7609 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7610 when we cannot recode the message.
7611
7612 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7613
7614 [BZ #4359]
7615 * libio/__freading.c (__freading): Don't return true for
7616 write-only streams. For read/write streams, check whether we
7617 performed a read operation already.
7618 * libio/Makefile (tests): Add tst-ext2.
7619 * libio/tst-ext2.c: New file.
7620
7621 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7622
7623 * locale/programs/repertoire.c (repertoire_read): Always free
7624 memory for repertoire file name [Coverity CID 270].
7625
7626 * elf/cache.c (save_aux_cache): Free memory allocated for
7627 temporary file name [Coverity CID 267].
7628
7629 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7630
7631 * misc/Makefile (headers): Add bits/error.h.
7632
7633 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7634
7635 * posix/fnmatch_loop.c: Take rule index returned as part of
7636 findidx return value into account when accessing weights.
7637 * posix/regcomp.c: Likewise.
7638 * posix/regexec.c: Likewise.
7639
7640 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7641 (skip_to): Fix problems with parameter of elifdef/elifndef.
7642
7643 2007-10-11 Ulrich Drepper <drepper@redhat.com>
7644
7645 * iconv/gconv_simple.c: Add some branch prediction.
7646
7647 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7648
7649 * locale/programs/ld-collate.c (collate_read): If ignore_content
7650 and nowtok is tok_define, eat any tok_eol tokens.
7651
7652 2007-10-11 Jakub Jelinek <jakub@redhat.com>
7653
7654 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7655 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7656
7657 * inet/netinet/in.h: Don't include bits/socket.h.
7658 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7659 macro.
7660 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7661
7662 2007-10-10 Ulrich Drepper <drepper@redhat.com>
7663
7664 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7665 and tok_elifndef.
7666 * locale/programs/locfile-kw.gperf: Likewise.
7667 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7668
7669 2007-10-10 Jakub Jelinek <jakub@redhat.com>
7670
7671 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7672 (__find_specwc): Change into __extern_always_inline function.
7673 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7674 (__parse_one_specmb): Remove ps argument.
7675 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7676 Adjust __find_specmb and __parse_one_specmb callers.
7677 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7678 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7679 Removed.
7680 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7681 caller.
7682
7683 2007-10-09 Ulrich Drepper <drepper@redhat.com>
7684
7685 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7686 with some Pentium Ds.
7687
7688 2007-10-08 Ulrich Drepper <drepper@redhat.com>
7689
7690 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7691 __read not read.
7692 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7693 __write not write.
7694
7695 2007-10-07 Ulrich Drepper <drepper@redhat.com>
7696
7697 [BZ #181]
7698 * locale/C-time.c: Set week_1stday data to 19971201.
7699 * locale/programs/ld-time.c (time_finish): Default for
7700 first_workday is Monday.
7701
7702 [BZ #2633]
7703 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7704
7705 [BZ #5103]
7706 * posix/glob.c (glob): Recognize patterns starting \/.
7707 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7708 (main): Add test for pattern starting \/.
7709
7710 * misc/error.h: Use __const instead of const.
7711 * misc/bits/error.h: Likewise.
7712
7713 2007-10-07 Andreas Jaeger <aj@suse.de>
7714
7715 * include/bits/error.h: New file.
7716
7717 * misc/bits/error.h (error_at_line): Fix prototype.
7718
7719 2007-10-06 Ulrich Drepper <drepper@redhat.com>
7720
7721 [BZ #3924]
7722 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7723 more little bugs in creating the stack frame when pltexit has to
7724 be called.
7725
7726 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7727 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7728
7729 [BZ #4407]
7730 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7731 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7732 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7733 * math/libm-test.inc: Add test for this case.
7734
7735 [BZ #5010]
7736 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7737 (svc_register): Initialize sc_mapped. Set to TRUE if call to
7738 map service succeeded.
7739 (svc_is_mapped): New function.
7740 (svc_unregister): Use it before trying to unmap service.
7741
7742 2007-10-05 Ulrich Drepper <drepper@redhat.com>
7743
7744 * timezone/zic.c: Update from tzcode2007h.
7745
7746 [BZ #5063]
7747 * timezone/africa: Update from tzdata2007h.
7748 * timezone/antarctica: Likewise.
7749 * timezone/asia: Likewise.
7750 * timezone/australasia: Likewise.
7751 * timezone/europe: Likewise.
7752 * timezone/leapseconds: Likewise.
7753 * timezone/northamerica: Likewise.
7754 * timezone/southamerica: Likewise.
7755 * timzeone/zone.tab: Likewise.
7756
7757 [BZ #5104]
7758 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7759
7760 [BZ #5113]
7761 * string/bits/string2.h (__strdup): Cast parameters to calloc to
7762 avoid warning with -Wconversion.
7763 (__strndup): Likewise.
7764 Half the patch by Christian Iseli <christian.iseli@licr.org>.
7765
7766 [BZ #5112]
7767 * nscd/connections.c (restart): Don't resync if database is
7768 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7769
7770 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7771 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
7772
7773 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7774 evetnfd_read, eventfd_write.
7775 * sysdeps/unix/sysv/linux/eventfd.c: New file.
7776 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7777 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7778 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7779 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7780 eventfd_write for GLIBC_2.7.
7781
7782 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7783 * sysdeps/unix/sysv/linux/signalfd.c: New file.
7784 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7785 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7786
7787 2007-10-04 Jakub Jelinek <jakub@redhat.com>
7788
7789 * stdlib/msort.c: Include stdint.h.
7790 (struct msort_param): New type.
7791 (msort_with_tmp): Use struct msort_param pointer for unchanging
7792 parameters. Add optimized handling for several common sizes
7793 and indirect sorting mode.
7794 (qsort): Adjust msort_with_tmp callers. For big S use indirect
7795 sorting.
7796 Suggested by Belazougui Djamel .
7797
7798 * stdlib/Makefile (tests): Add tst-qsort2.
7799 * stdlib/tst-qsort2.c: New test.
7800
7801 2007-10-04 Ulrich Drepper <drepper@redhat.com>
7802
7803 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7804 for dup2 in case another thread races with the current one. Retry
7805 in this case.
7806
7807 * misc/error.h: Remove support for use outside of libc. We have to
7808 include <features.h> now. Include <bits/error.h> if possible.
7809 * misc/bits/error.h: New file.
7810
7811 2007-10-03 Jakub Jelinek <jakub@redhat.com>
7812
7813 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7814 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7815 __extern_always_inline functions unconditionally, drop macros.
7816
7817 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7818 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7819 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7820
7821 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7822 add __artificial__ attribute.
7823
7824 2007-10-02 Ulrich Drepper <drepper@redhat.com>
7825
7826 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7827 backward to forward direction.
7828
7829 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7830
7831 [BZ #645]
7832 * locale/programs/ld-collate.c (collate_finish): Compare against last
7833 used section which is known to have rules defined.
7834 (collate_read): After order_start, correctly record order of sections
7835 and queue sections up.
7836
7837 2007-10-01 Ulrich Drepper <drepper@redhat.com>
7838
7839 [BZ #5071]
7840 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7841 the same number of pages.
7842 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7843
7844 * locale/programs/ld-collate.c (collate_read): After initial copy
7845 statement, continue in state 0.
7846
7847 * include/stdio_ext.h (__fsetlocking): Define as macro.
7848
7849 2007-09-30 Ulrich Drepper <drepper@redhat.com>
7850
7851 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7852 of section order.
7853
7854 * po/pt_BR.po: Fix typo.
7855
7856 2007-09-29 Ulrich Drepper <drepper@redhat.com>
7857
7858 * iconvdata/Makefile (modules): Add ISO8859-9E.
7859 (distribute): Add iso8859-9e.c.
7860 (gen-8bit-gap-modules): Add iso8859-9e.
7861 * iconvdata/iso8859-9e.c: New file.
7862 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7863 * iconvdata/TESTS: Likewise.
7864 * iconvdata/tst-tables.sh: Likewise.
7865
7866 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7867
7868 * locale/iso-639.def: Add several new entries.
7869
7870 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7871
7872 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7873 void * pointers instead of struct link_map **.
7874 (_dl_scope_free): Change argument type to void *.
7875 * include/link.h (struct link_map): Change type of l_reldeps
7876 to struct link_map_reldeps, move l_reldepsact into that
7877 struct too.
7878 * elf/dl-deps.c: Include atomic.h.
7879 (_dl_map_object_deps): Only change l->l_initfini when it is
7880 fully populated, use _dl_scope_free for freeing it. Optimize
7881 removal of libs from reldeps by using l_reserved flag, when
7882 some removal is needed, allocate a new list instead of
7883 reallocating and free the old with _dl_scope_free. Adjust
7884 for l_reldeps and l_reldepsact changes.
7885 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
7886 searching in l_initfini and l_reldeps without holding dl_load_lock.
7887 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7888 l_reldepsact changes.
7889 * elf/dl-close.c (_dl_close_worker): Likewise.
7890 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7891
7892 2007-09-28 Ulrich Drepper <drepper@redhat.com>
7893
7894 * iconvdata/Makefile (modules): Add KOI8-RU.
7895 (distribute): Add koi8-ru.c.
7896 (gen-8bit-gap-modules): Add koi8-ru.
7897 * iconvdata/koi8-ru.c: New file.
7898 * iconvdata/gconv-modules: Add entries for KOI8-RU.
7899 * iconvdata/TESTS: Likewise.
7900 * iconvdata/tst-tables.sh: Likewise.
7901
7902 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7903
7904 2007-09-26 Jakub Jelinek <jakub@redhat.com>
7905
7906 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7907 with __warning__/__error__ attributes.
7908 (__warnattr): Define.
7909 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7910 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7911 __warnattr.
7912 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7913 of __*_chk if compile time detectable overflow is found.
7914 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7915 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7916 with __warnattr.
7917 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7918 instead of __*_chk if compile time detectable overflow is found.
7919 (__gets_alias): Rename to...
7920 (__gets_warn): ... this. Add __warnattr.
7921 (gets): Call __gets_warn instead of __gets_alias.
7922 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7923 aliases with __warnattr.
7924 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7925 time detectable overflow is found.
7926 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7927 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7928 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7929 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7930 __getdomainname_chk_warn): New aliases with __warnattr.
7931 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7932 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7933 __*_chk_warn instead of __*_chk if compile time detectable overflow
7934 is found.
7935 (__getgroups_chk): Rename argument to __listlen from listlen.
7936 (__getwd_alias): Rename to...
7937 (__getwd_warn): ... this. Add __warnattr.
7938 (getwd): Call __getwd_warn instead of __getwd_alias.
7939 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7940 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7941 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7942 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7943 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7944 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7945 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7946 compile time detectable overflow is found.
7947 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7948 to use __*_chk or not.
7949 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7950 in comparisons which function should be called and in __*_chk*
7951 arguments. Call __*_chk_warn instead of __*_chk if compile time
7952 detectable overflow is found.
7953 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7954 __*_chk argument.
7955 * debug/tst-chk1.c (do_test): Add a few more tests.
7956
7957 2007-09-24 Ulrich Drepper <drepper@redhat.com>
7958
7959 [BZ #5058]
7960 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7961 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7962 (_nl_unload_domain): Finalize conversions_lock.
7963 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7964 handling table of known conversions.
7965
7966 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7967
7968 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7969 close_not_cancel_no_status instead of close.
7970
7971 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7972
7973 [BZ #5028]
7974 * posix/regcomp.c (lookup_collation_sequence_value): Check that
7975 nrules != 0 for multibyte chars.
7976
7977 2007-09-23 Ulrich Drepper <drepper@redhat.com>
7978
7979 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7980 Provide better error message in case the type is unknown.
7981
7982 [BZ #4963]
7983 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7984 * string/stratcliff.c: Make usable to test wide char functions.
7985 * wcsmbs/wcsatcliff.c: New file.
7986 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7987
7988 [BZ #4972]
7989 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7990 (distribute): Add mac-centraleurope.c.
7991 (gen-8bit-gap-modules): Add mac-centraleurope.
7992 * iconvdata/mac-centraleurope.c: New file.
7993 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7994 * iconvdata/TESTS: Likewise.
7995 * iconvdata/tst-tables.sh: Likewise.
7996
7997 [BZ #5043]
7998 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7999
8000 2007-09-21 Ulrich Drepper <drepper@redhat.com>
8001
8002 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8003 from __x86_64_core_cache_size_half.
8004 (init_cacheinfo): Compute shared cache size for AMD processors with
8005 shared L3 correctly.
8006 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8007 name change.
8008 Patch in large parts by Evandro Menezes.
8009
8010 2007-09-19 Ulrich Drepper <drepper@redhat.com>
8011
8012 * elf/dl-lookup.c (add_dependency): Handle failing memory
8013 allocation for dependency list. Remove unnecessary check.
8014
8015 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8016 open/close when determining source addresses.
8017
8018 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8019 sha512-crypt, and sha512.
8020 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8021 (distribute): Add sha256.h and sha512.h.
8022 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8023 and call the appropriate code.
8024 * crypt/sha256-crypt.c: New file.
8025 * crypt/sha256.c: New file.
8026 * crypt/sha256.h: New file.
8027 * crypt/sha256c-test.c: New file.
8028 * crypt/sha256test.c: New file.
8029 * crypt/sha512-crypt.c: New file.
8030 * crypt/sha512.c: New file.
8031 * crypt/sha512.h: New file.
8032 * crypt/sha512c-test.c: New file.
8033 * crypt/sha512test.c: New file.
8034
8035 2007-09-19 Jakub Jelinek <jakub@redhat.com>
8036
8037 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8038 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8039 __syslog_chk.
8040
8041 2007-09-18 Jakub Jelinek <jakub@redhat.com>
8042
8043 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8044 %as in fscanf format strings.
8045
8046 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8047 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8048 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8049 Likewise.
8050 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8051 Likewise.
8052
8053 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8054 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8055 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8056 * elf/dl-sym.c (do_sym): Likewise.
8057 * include/link.h (struct link_map): Add l_serial field.
8058 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8059 * elf/dl-lookup.c (add_dependency): Add flags argument.
8060 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8061 flags, use THREAD_GSCOPE_RESET_FLAG before and
8062 THREAD_GSCOPE_SET_FLAG after
8063 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8064 Don't dereference map until it has been found on some list.
8065 If map->l_serial changed, return -1.
8066
8067 2007-09-17 Jakub Jelinek <jakub@redhat.com>
8068
8069 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8070 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8071 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8072 libc_hidden_proto.
8073 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8074 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8075 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8076 add libc_hidden_proto.
8077 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8078 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8079 conformance requested.
8080 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8081 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8082 conformance requested.
8083 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8084 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8085 conformance requested.
8086 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8087 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8088 ISO C99 or POSIX conformance requested.
8089 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8090 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8091 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8092 and __isoc99_vsscanf@@GLIBC_2.7.
8093 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8094 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8095 (tests): Add scanf14.
8096 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8097 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8098 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8099 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8100 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8101 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8102 from using internal headers.
8103 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8104 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8105 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8106 and __isoc99_vswscanf@@GLIBC_2.7.
8107 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8108 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8109 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8110 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8111 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8112 * stdio-common/isoc99_scanf.c: New file.
8113 * stdio-common/isoc99_vsscanf.c: New file.
8114 * stdio-common/isoc99_vscanf.c: New file.
8115 * stdio-common/isoc99_vfscanf.c: New file.
8116 * stdio-common/isoc99_fscanf.c: New file.
8117 * stdio-common/isoc99_sscanf.c: New file.
8118 * wcsmbs/isoc99_fwscanf.c: New file.
8119 * wcsmbs/isoc99_vswscanf.c: New file.
8120 * wcsmbs/isoc99_swscanf.c: New file.
8121 * wcsmbs/isoc99_wscanf.c: New file.
8122 * wcsmbs/isoc99_vwscanf.c: New file.
8123 * wcsmbs/isoc99_vfwscanf.c: New file.
8124 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8125 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8126 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8127 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8128 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8129 * stdio-common/scanf14.c: New test.
8130 * stdio-common/scanf15.c: New test.
8131 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8132 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8133 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8134 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8135 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8136 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8137 __nldbl___isoc99_scanf@@GLIBC_2.7,
8138 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8139 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8140 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8141 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8142 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8143 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8144 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8145 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8146 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8147 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8148 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8149 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8150 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8151 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8152 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8153 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8154 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8155 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8156 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8157 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8158 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8159 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8160 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8161 functions.
8162 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8163 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8164 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8165 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8166 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8167 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8168 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8169 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8170 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8171 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8172 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8173 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8174
8175 * stdio-common/Makefile (tests): Add scanf13.
8176 (scanf13-ENV): New.
8177 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8178 m modifier followed by l.
8179 (STRING_ARG): Add width argument.
8180 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8181 <case L_('C')>: Handle %mlc and %mC.
8182 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8183 arguments.
8184 * stdio-common/scanf13.c: New test.
8185
8186 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8187 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8188
8189 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8190
8191 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8192 type and __THROW marker of splice, vmsplice, and tee.
8193 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8194 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8195 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8196 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8197 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8198 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8199 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8200 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8201 as cancellation points.
8202
8203 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8204
8205 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8206 parse more than three parts of the version number.
8207
8208 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8209
8210 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8211 modifier. Patch by Jakub Jelinek.
8212
8213 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8214
8215 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8216 call_fallocate in misc subdir.
8217 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8218 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8219 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8220 instead of __fallocate64.
8221 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8222
8223 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8224
8225 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8226 * rt/Makefile (headers): Add bits/mqueue2.h.
8227 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8228 optimizing with GCC and __va_arg_pack_len is defined.
8229 * rt/bits/mqueue2.h: New file.
8230 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8231 (mq_open): New strong_alias.
8232 (__mq_open_2): New function.
8233 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8234 (mq_open): New strong_alias.
8235 (__mq_open_2): New function.
8236 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8237 * Versions.def (librt): Add GLIBC_2.7 version.
8238 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8239 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8240
8241 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8242 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8243 is defined rather than when not C++.
8244 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8245 __openat64_alias): New redirects.
8246 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8247 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8248 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8249 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8250 functions instead of function-like macros.
8251
8252 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8253
8254 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8255 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8256 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8257
8258 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8259
8260 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8261 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8262
8263 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8264
8265 * inet/tst-network.c: Increment ERRORS for failing tests.
8266
8267 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8268
8269 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8270 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8271 implement as __extern_always_inline function.
8272 (vsyslog): Define as __extern_always_inline function unconditionally.
8273 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8274 When __va_arg_pack is defined, implement as __extern_always_inline
8275 functions.
8276 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8277 __extern_always_inline functions unconditionally.
8278 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8279 bits/stdio2.h will be included.
8280 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8281 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8282 implement as __extern_always_inline functions.
8283 (vswprintf, vwprintf, vfwprintf): Define as
8284 __extern_always_inline functions unconditionally.
8285 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8286
8287 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8288
8289 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8290 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8291 attribute.
8292 * include/features.h (__USE_EXTERN_INLINES): Define only when
8293 __extern_inline is defined.
8294 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8295 is defined instead of when not __cplusplus.
8296 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8297 is defined instead of when not __cplusplus.
8298 * socket/sys/socket.h: Include bits/socket2.h when
8299 __extern_always_inline is defined instead of when not __cplusplus.
8300 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8301 is defined instead of when not __cplusplus.
8302 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8303 is defined instead of when not __cplusplus.
8304 * string/string.h: Include bits/string3.h when __extern_always_inline
8305 is defined instead of when not __cplusplus.
8306 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8307 is defined instead of when not __cplusplus.
8308 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8309 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8310 is not defined.
8311 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8312 defined __extern_always_inline instead of !defined __cplusplus.
8313 * libio/bits/stdio-ldbl.h: Likewise.
8314 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8315 * misc/bits/syslog.h (syslog): Don't define for C++.
8316 (vsyslog): Use __extern_always_inline function for C++ instead of
8317 a macro.
8318 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8319 whenever that macro is defined.
8320 (vprintf): Don't provide the inline for C++.
8321 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8322 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8323 define the macros for C++.
8324 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8325 __extern_always_inline functions for C++.
8326 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8327 stat64, lstat64, fstat64, fstatat64): Don't define if not
8328 __USE_EXTERN_INLINES.
8329 * wcsmbs/bits/wchar2.h: Fix #error message.
8330 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8331 (vswprintf, vwprintf, vfwprintf): Define using
8332 __extern_always_inline functions for C++.
8333 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8334 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8335 strncpy, strcat, strncat): Define as __extern_always_inline
8336 functions instead of macros for C++.
8337 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8338 defined __extern_inline.
8339 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8340 to __extern_inline whenever that macro is defined.
8341 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8342 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8343 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8344 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8345 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8346 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8347 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8348 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8349 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8350 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8351 prototypes. Only provide __extern_inline routines if
8352 __USE_EXTERN_INLINES.
8353 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8354 tests.
8355 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8356 For now avoid some *printf tests in C++. Skip all testing
8357 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8358 is not.
8359 * debug/tst-chk4.cc: New file.
8360 * debug/tst-chk5.cc: New file.
8361 * debug/tst-chk6.cc: New file.
8362 * debug/tst-lfschk4.cc: New file.
8363 * debug/tst-lfschk5.cc: New file.
8364 * debug/tst-lfschk6.cc: New file.
8365 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8366 prototypes in C++.
8367 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8368 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8369 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8370
8371 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8372
8373 * po/cs.po: Update from translation team.
8374
8375 2007-09-11 Roland McGrath <roland@redhat.com>
8376
8377 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8378 compiling.
8379
8380 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8381
8382 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8383
8384 2007-09-05 Roland McGrath <roland@redhat.com>
8385
8386 * manual/signal.texi (Signaling Another Process): Typo fix.
8387 From Karl Berry <karl@freefriends.org>.
8388
8389 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8390
8391 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8392 zero if not defined.
8393 (make_request): Recognize optimistic addresses and treat them like
8394 deprecated addresses.
8395 Reported by Neil Horman <nhorman@redhat.com>.
8396
8397 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8398
8399 * nscd/connections.c (send_ro_fd): Also transfer file size.
8400 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8401 file size don't call fstat.
8402
8403 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8404 ahead and map the file. This should always be correct and we can
8405 catch problems later.
8406
8407 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8408
8409 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8410 prototypes.
8411 (__fread_alias, __fread_unlocked_alias): New aliases.
8412 (fread): New extern inline.
8413 (fread_unlocked): Likewise. Undef macro before definition of
8414 the inline function.
8415 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8416 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8417 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8418 and __fread_unlocked_chk@@GLIBC_2.7.
8419 * debug/fread_chk.c: New file.
8420 * debug/fread_u_chk.c: New file.
8421 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8422
8423 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8424
8425 * sysdeps/unix/sysv/linux/syscalls.list
8426 (personality): Change caller to EXTRA.
8427
8428 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8429
8430 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8431 to keep gcc quiet.
8432 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8433
8434 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8435 NDEBUG is defined.
8436
8437 * Makerules: Use -p option with mkdir.
8438
8439 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8440 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8441 (_xdr_directory_obj): Likewise.
8442 (xdr_entry_obj): Likewise.
8443 (xdr_group_obj): Likewise.
8444 (xdr_link_obj): Likewise.
8445 (xdr_table_obj): Likewise.
8446 (_xdr_nis_result): Likewise.
8447 (_xdr_ns_request): Likewise.
8448 (_xdr_ib_request): Likewise.
8449 (_xdr_nis_taglist): Likewise.
8450 (xdr_cback_data): Likewise.
8451 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8452 (xdr_ypresp_maplist): Likewise.
8453
8454 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8455
8456 * posix/regex_internal.h: Prevent some declarations and definitions
8457 to be seen when used in tests.
8458
8459 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8460 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8461
8462 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8463
8464 * config.make.in (datarootdir): Add to shut up configure.
8465
8466 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8467 associativity for fully-associative caches.
8468
8469 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8470 requests. Fill on more associativity values for L2.
8471 Patch mostly by Evandro Menezes.
8472
8473 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8474
8475 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8476 (_libc_vdso_platform_setup): Avoid using exported variable by using
8477 alias.
8478
8479 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8480
8481 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8482 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8483 defined.
8484
8485 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8486
8487 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8488 align stack for call if pltexit is to be used.
8489
8490 [BZ #3924]
8491 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8492 align for function call in case pltexit has to be called later.
8493
8494 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8495 implicit atomic operation when storing function pointer.
8496 (_dl_runtime_profile): Likewise.
8497
8498 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8499
8500 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8501 NIS_NOTFOUND.
8502
8503 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8504
8505 [BZ #4566]
8506 * string/strtok.c: Fix typo in comment.
8507
8508 [BZ #4582]
8509 * debug/segfault.c: Fix typos in comments.
8510
8511 [BZ #4588]
8512 * stdio-common/tempnam.c: Fix comment, it is not checked that
8513 TMPDIR points to a writable directory.
8514
8515 [BZ #4726]
8516 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8517 memory allocated for the name server address.
8518
8519 [BZ #4946]
8520 * nscd/connections.c (handle_request): Using sendfile always
8521 requires that mmap is used for the database.
8522 Patch by Petr Baudis <pasky@suse.cz>.
8523
8524 [BZ #4905]
8525 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8526 suddenly has two or more addresses, ignore it and remove the old
8527 entry.
8528
8529 [BZ #4814]
8530 * resolv/res_hconf.c: Prepare for compiling outside libc.
8531 * nscd/res_hconf.c: New file.
8532 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8533 the new file.
8534 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8535 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8536
8537 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8538
8539 [BZ #4925]
8540 * debug/pcprofiledump.c: Turn on internationalization by calling
8541 setlocale. Patch mostly by Benno Schulenberg.
8542
8543 [BZ #4936]
8544 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8545 the state.
8546 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8547 * iconvdata/bug-iconv5.c: New file.
8548
8549 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8550
8551 [BZ #4896]
8552 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8553 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8554 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8555 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8556 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8557 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8558 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8559 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8560
8561 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8562
8563 [BZ #4937]
8564 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8565 lookup loop. Suggested by John Reiser.
8566
8567 2007-08-21 Jakub Jelinek <jakub@redhat.com>
8568
8569 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8570
8571 2007-08-20 Ulrich Drepper <drepper@redhat.com>
8572
8573 * csu/libc-start.c: Don't handle VDSO_SETUP here.
8574 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8575 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8576 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
8577 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8578 to...
8579 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
8580
8581 2007-08-18 Ulrich Drepper <drepper@redhat.com>
8582
8583 * po/nl.po: Update from translation team.
8584
8585 2007-08-16 Andreas Jaeger <aj@suse.de>
8586
8587 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8588 Reported by Peter Festner <peter.festner@ewetel.net>.
8589
8590 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8591
8592 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8593
8594 2007-08-16 Jakub Jelinek <jakub@redhat.com>
8595
8596 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8597 to check for undefined symbols.
8598
8599 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8600 If the syscall fails, set errno to the actual returned error number
8601 rather than EINVAL.
8602 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8603 arguments are incorrect, set errno to EINVAL, if the syscall
8604 fails, set errno to the actual returned error number.
8605
8606 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8607 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8608
8609 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8610 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
8611 file.
8612 (ASI_PNF, ASI_BLK_P): Don't define.
8613 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8614 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8615 file.
8616 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8617 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8618 file.
8619
8620 2007-08-15 Jakub Jelinek <jakub@redhat.com>
8621
8622 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8623 FE_UNDERFLOW on Niagara CPUs.
8624
8625 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8626 exceptions.
8627
8628 2007-08-14 Jakub Jelinek <jakub@redhat.com>
8629
8630 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8631 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8632 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8633 flush should be used or not inside of the function.
8634 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8635
8636 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8637 __thread_start): Use HIDDEN_JUMPTARGET.
8638 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8639 __thread_start): Likewise.
8640 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8641
8642 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8643 Add libc_hidden_proto.
8644 (STRTOF): Add libc_hidden_proto.
8645 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8646 (strtold_l, wcstold_l): Use them as second argument for
8647 long_double_symbol.
8648
8649 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8650
8651 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8652
8653 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8654
8655 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8656
8657 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8658
8659 * po/bg.po: New file. From the translation team.
8660
8661 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8662
8663 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8664 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8665 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8666 when each feature was introduced.
8667
8668 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8669 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8670 (CHECK_HASH): New macro.
8671 (PREPARE_VERSION): Use it.
8672
8673 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8674 prototype if not __ASSUME_PSELECT.
8675 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8676 prototype if not __ASSUME_PPOLL.
8677
8678 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8679
8680 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8681 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8682 is defined.
8683
8684 2007-08-13 Ulrich Drepper <drepper@redhat.com>
8685
8686 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8687 (_libc_vdso_platform_setup): If vDSO is not available point
8688 __vdso_gettimeofday to the vsyscall.
8689 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8690 __vdso_gettimeofday instead of vsyscall.
8691
8692 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8693
8694 * nscd/servicescache.c: Include kernel-features.h.
8695 * nscd/gai.c: Likewise.
8696 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8697 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8698 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8699 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8700 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8701 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8702 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8703 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8704 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8705
8706 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8707
8708 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8709 and _dl_get_origin defines anymore.
8710
8711 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8712 Build fix for systems which might lack POSIX timer support.
8713
8714 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8715 (_libc_vdso_platform_setup): Mangle function pointers before storing
8716 them.
8717 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8718 Demangle vdso pointer before use.
8719 (INTERNAL_VSYSCALL): Likewise.
8720
8721 * elf/cache.c (primes): Mark as const.
8722 Noted by Roland McGrath.
8723
8724 2007-08-01 Andreas Jaeger <aj@suse.de>
8725 Jakub Jelinek <jakub@redhat.com>
8726
8727 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8728 (options): Add option.
8729 (parse_opt): Handle option.
8730 (manual_link): Adjust process_file caller. Call implicit_soname.
8731 (search_dir): Formatting. Use and populate auxiliary cache.
8732 (main): Load and save auxiliary cache.
8733 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
8734 stat64 from fstat64 to caller.
8735 (implicit_soname): New function.
8736 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8737 leave *soname as NULL.
8738 * elf/cache.c: Include libgen.h.
8739 (print_entry, print_cache, compare, save_cache, add_to_cache):
8740 Formatting and cleanups.
8741 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8742 aux_cache_file): New structures.
8743 (AUX_CACHEMAGIC): Define.
8744 (primes): New array.
8745 (aux_hash_size, aux_hash): New variables.
8746 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8747 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8748 load_aux_cache, save_aux_cache): New functions.
8749 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8750 (init_aux_cache, search_aux_cache, add_to_aux_cache,
8751 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8752 (process_file): Adjust prototype.
8753
8754 2007-08-12 Jakub Jelinek <jakub@redhat.com>
8755
8756 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8757 with __need_size_t.
8758
8759 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8760
8761 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8762 r_found_version structure as second parameter.
8763 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8764 (_dl_vdso_vsym): Change type of second parameter accordingly.
8765 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8766 (_libc_vdso_platform_setup): Adjust.
8767 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8768 (_libc_vdso_platform_setup): Likewise.
8769
8770 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8771 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8772 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8773 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8774 * csu/libc-start.c: Pretty printing.
8775 Use VDSO_SETUP if defined.
8776 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8777 and let generic code call into _libc_vdso_platform_setup.
8778 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8779 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8780 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8781 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8782 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8783 for GLIBC_PRIVATE.
8784 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8785 (sysdep_rountines): Add dl-vdso.
8786
8787 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8788 of routines.
8789
8790 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8791 attribute_hidden to __vdso_gettimeofday prototype.
8792
8793 2007-08-12 Roland McGrath <roland@redhat.com>
8794
8795 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8796 From: Karl Berry <karl@freefriends.org>.
8797
8798 2007-08-11 Ulrich Drepper <drepper@redhat.com>
8799
8800 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8801 an atime update for the files we read.
8802
8803 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8804
8805 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8806
8807 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
8808 instead of mkstemp.
8809
8810 * misc/Makefile (routines): Add mkostemp and mkostemp64.
8811 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8812 * misc/mkostemp.c: New file.
8813 * misc/mkostemp64.c: New file.
8814 * stdlib/stdlib.h: Declare the new functions.
8815 * sysdeps/posix/tempname.c: Add new parameter which is added to
8816 the flags for open. Remove __GT_BIGFILE handling.
8817 * stdio-common/tempname.c: Likewise.
8818 * include/stdio.h: Adjust __gen_tempname prototype.
8819 Renumber __GT_* constants.
8820 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8821 * misc/mkdtemp.c: Likewise.
8822 * misc/mkstemp.c: Likewise.
8823 * misc/mkstemp64.c: Likewise.
8824 * misc/mktemp.c: Likewise.
8825 * stdio-common/tempnam.c: Likewise.
8826 * stdio-common/tmpfile.c: Likewise.
8827 * stdio-common/tmpfile64.c: Likewise.
8828 * stdio-common/tmpnam.c: Likewise.
8829 * stdio-common/tmpnam_r.c: Likewise.
8830
8831 2007-08-10 Roland McGrath <roland@frob.com>
8832
8833 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8834 New macros.
8835 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8836 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8837
8838 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8839
8840 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8841 possible.
8842 * nss/nss_files/files-alias.c (internal_setent): Likewise.
8843 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8844 * nss/nss_files/files-have_o_cloexec.c: New file.
8845
8846 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8847 available.
8848
8849 2007-08-10 Jakub Jelinek <jakub@redhat.com>
8850
8851 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8852 ___new_wcstold_l): New weak aliases.
8853 (strtold_l, wcstold_l): Use them as second argument for
8854 long_double_symbol.
8855
8856 2007-08-09 Ulrich Drepper <drepper@redhat.com>
8857
8858 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8859 register in test for error.
8860
8861 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8862 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8863
8864 * po/sv.po: Update from translation team.
8865
8866 2007-08-06 Roland McGrath <roland@redhat.com>
8867
8868 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8869 Remove __strto*_l inlines.
8870 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8871 * stdlib/strtod.c: Add libc_hidden_def.
8872 * stdlib/strtod_l.c: Likewise.
8873 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8874 for __new_strtold and __new_wcstold.
8875 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8876 __STRTOF, STRTOF.
8877 * stdlib/strtol.c: Add libc_hidden_def.
8878 * stdlib/strtol_l.c: Likewise.
8879 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8880 strtoq.
8881
8882 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8883
8884 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8885 * scripts/data/localplt-generic.data: ... here.
8886 * elf/Makefile (check-data): Get generic file if no other.
8887 ($(objpfx)check-localplt.out): Make target unconditional.
8888
8889 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8890 Use ElfW(Nhdr).
8891
8892 2007-08-05 Ulrich Drepper <drepper@redhat.com>
8893
8894 * po/zh_CN.po: Updated translation from translation team.
8895
8896 2007-08-05 Jakub Jelinek <jakub@redhat.com>
8897
8898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8899 Don't use CGOTSETUP and CGOTRESTORE macros.
8900
8901 2007-08-04 Roland McGrath <roland@redhat.com>
8902
8903 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8904
8905 2007-08-04 Jakub Jelinek <jakub@redhat.com>
8906
8907 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8908 __extension__ around the whole statement expression.
8909
8910 2007-08-04 Ulrich Drepper <drepper@redhat.com>
8911
8912 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8913 elements during initialization.
8914
8915 * po/pl.po: Updated translation from translation team.
8916 * po/tr.po: Likewise.
8917 * po/nl.po: Likewise.
8918
8919 2007-08-03 Ulrich Drepper <drepper@redhat.com>
8920
8921 * rt/aio.h: Add __nonnull attributes.
8922
8923 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8924
8925 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8926 * stdlib/Makefile (tests): Add tst-strtod5.
8927 (tst-strtod5-ENV): New.
8928 * stdlib/tst-strtod5.c: New file.
8929
8930 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8931 failed.
8932 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8933 on failure.
8934
8935 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8936 allocated.
8937
8938 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8939
8940 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8941 numbers.
8942
8943 2007-08-02 Ulrich Drepper <drepper@redhat.com>
8944
8945 * io/Makefile (aux): Add have_o_cloexec.
8946 * include/fcntl.h: Declare __have_o_cloexec.
8947 * io/have_o_cloexec.c: New file.
8948 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8949 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8950 fcntl call if not necessary.
8951 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8952 of local variable.
8953
8954 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8955 Avoid memset, add explicit initialization.
8956 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8957 to the end and change into zero-sized array.
8958 Move lock member to fill a hole on 64-bit platforms.
8959
8960 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8961 inline functions.
8962 * include/stdlib.h: Add __strto*_internal prototypes here.
8963 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8964 inline functions.
8965 * include/wchar.h: Add __wcsto*_internal prototypes.
8966 * sysdeps/generic/inttypes.h: No need to protect the declaration
8967 of the __strto*_internal and __wcsto*_internal members here.
8968
8969 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8970
8971 2007-08-02 Roland McGrath <roland@redhat.com>
8972
8973 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8974 $(inst_bindir)/getconf if possible.
8975
8976 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8977 (generated): Add it.
8978 ($(inst_libexecdir)/getconf): Use it.
8979
8980 2007-08-01 Ulrich Drepper <drepper@redhat.com>
8981
8982 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8983 /proc is faster and sufficient. /sys is still needed for
8984 __get_nprocs_conf.
8985
8986 2007-08-01 Jakub Jelinek <jakub@redhat.com>
8987
8988 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8989 syscall as __fallocate64.
8990 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8991 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8992
8993 2007-07-30 Jakub Jelinek <jakub@redhat.com>
8994
8995 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8996 value.
8997
8998 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8999 if off_t is different rank from size_t.
9000
9001 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9002 uw_frame_state_for): Avoid type punning warnings.
9003 * sysdeps/generic/unwind-dw2-fde-glibc.c
9004 (_Unwind_IteratePhdrCallback): Likewise.
9005 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9006 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9007 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9008 pointers.
9009
9010 2007-07-31 Ulrich Drepper <drepper@redhat.com>
9011
9012 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9013 total processors using sysfs.
9014 (__get_nprocs): Use sysfs to determine which processors are online.
9015
9016 2007-07-31 Jakub Jelinek <jakub@redhat.com>
9017
9018 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9019 syscall arguments count.
9020
9021 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9022
9023 2007-07-30 Roland McGrath <roland@redhat.com>
9024
9025 * manual/libc.texinfo: Update copyrights, formatting magic, and
9026 @dircategory. From Karl Berry <karl@freefriends.org>.
9027
9028 2007-07-29 Ulrich Drepper <drepper@redhat.com>
9029
9030 [BZ #4860]
9031 * io/Makefile (headers): Add bits/fcntl2.h.
9032
9033 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9034 using gcc builtin.
9035 (__CPU_EQUAL_S): Likewise.
9036
9037 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9038 (tests): Add tst-cpuset.
9039 * posix/sched_cpualloc.c: New file.
9040 * posix/sched_cpufree.c: New file.
9041 * posix/tst-cpuset.c: New file.
9042 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9043 GLIBC_2.7.
9044 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9045 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9046 macros. Define CPU_*_S macros.
9047
9048 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9049
9050 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9051 entry.
9052
9053 [BZ #4858]
9054 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9055 #.0g and value rounded to 1.0.
9056 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9057
9058 2007-07-26 Jakub Jelinek <jakub@redhat.com>
9059
9060 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9061 for int_frac_digits and frac_digits.
9062
9063 * login/logout.c (logout): Avoid aliasing violation.
9064 * login/logwtmp.c (logwtmp): Likewise.
9065
9066 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9067
9068 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9069 to avoid warning.
9070 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9071 warning.
9072 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9073 warning.
9074 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9075 to avoid warnings.
9076
9077 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9078 void **.
9079 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9080
9081 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9082 char * to avoid warning.
9083 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9084
9085 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9086
9087 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9088 allocate_arrays): Cast second argument to charmap_find_symbol
9089 to char * to avoid warnings.
9090
9091 * locale/programs/repertoire.c (repertoire_new_char): Change
9092 from_nr, to_nr and cnt to unsigned long, adjust printf format
9093 string.
9094
9095 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9096 Cast second argument to new_element to char * to avoid warnings.
9097
9098 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9099
9100 * intl/gettextP.h (struct loaded_domain): Change plural to const
9101 struct expression *.
9102 * intl/plural-eval.c (plural_eval): Change first argument to
9103 const struct expression *.
9104 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9105 argument to const struct expression **.
9106 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9107 prototypes.
9108 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9109 in call to __gettext_free_exp.
9110
9111 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9112 unitialized wstring/wpattern var warnings.
9113
9114 * posix/runtests.c (struct a_test): Make data field const char *.
9115
9116 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9117 vars if not LDBL_MANT_DIG >= 106.
9118
9119 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9120
9121 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9122 __find_specmb to avoid warning.
9123
9124 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9125
9126 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9127 to avoid warnings.
9128
9129 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9130 initializer.
9131
9132 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9133 tv var when it will be actually used.
9134
9135 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9136 to avoid warnings.
9137
9138 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9139 char array resp. pointer.
9140 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9141 char array.
9142 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9143 to const unsigned char **.
9144 (ucs4_to_cns11643): Change second argument to unsigned char *.
9145 * iconvdata/euc-tw.c (BODY): Change endp type to
9146 const unsigned char *.
9147 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9148 to unsigned char *.
9149 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9150 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9151 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9152 types to unsigned char pointers/arrays instead of char.
9153 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9154 to unsigned char *.
9155 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9156 * iconvdata/jis0212.h: Include assert.h.
9157 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9158 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9159 of trying to handle that.
9160 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9161 shut up a warning.
9162 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9163 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9164 two dimensional const unsigned char arrays.
9165 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9166 Initialize endp to inptr to shut up a warning.
9167
9168 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9169
9170 [BZ #4772]
9171 * time/strptime_l.c (__strptime_internal): Silently ignore
9172 strftime modifiers and field width in recursive calls.
9173
9174 * include/time.h (enum ptime_locale_status): Remove.
9175 (__strptime_internal): Remove decided and era_cnt arguments,
9176 add statep argument.
9177 * time/strptime_l.c (__strptime_internal): Remove decided
9178 and era_cnt arguments, add statep argument. Don't recompute
9179 any fields in recursive calls, only update caller's tm
9180 and state, if recursive call fails, don't change tm nor
9181 any state.
9182 (get_alt_number): Adjust.
9183 (recursive): Adjust caller.
9184 (strptime): Likewise.
9185 * time/strptime.c (strptime): Likewise.
9186
9187 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9188
9189 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9190 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9191 if from and to charsets are the same.
9192 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9193 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9194 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9195
9196 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9197
9198 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9199 Don't define wint_t when __need_mbstate_t unless it
9200 is necessary.
9201 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9202 in the typedef if possible.
9203 * wctype/wctype.h (wint_t): Define by including
9204 wchar.h with __need_wint_t instead of including stddef.h
9205 with __need_wint_t and as fallback definining it ourselves.
9206 * iconv/gconv.h (__need_wint_t): Define before including
9207 wchar.h.
9208 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9209 or _GLIBCPP_USE_WCHAR_T.
9210 (__need_wchar_t): Don't define
9211 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9212 (__need_wint_t): Don't define before including stddef.h,
9213 define before including wchar.h only if _LIBC or
9214 _GLIBCPP_USE_WCHAR_T.
9215 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9216 * sysdeps/mach/hurd/_G_config.h: Likewise.
9217 * sysdeps/generic/_G_config.h: Likewise.
9218 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9219 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9220 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9221 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9222
9223 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9224
9225 * sysdeps/posix/posix_fallocate64.c: Undefine
9226 __posix_fallocate64_l64 before alias handling.
9227 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9228 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9229 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9230 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9231
9232 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9233
9234 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9235
9236 * locale/programs/ld-collate.c (atwc): New variable.
9237 (add_to_tablewc): New toplevel function, moved from collate_output.
9238 (collate_output): Remove add_to_tablewc nested function.
9239
9240 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9241 (name_insert): New function.
9242 (write_output): Remove hash_table and hash_size vars and name_insert
9243 nested function.
9244
9245 2007-07-24 Roland McGrath <roland@redhat.com>
9246
9247 * Makerules (install-others-programs-nosubdir): New target.
9248 (install-no-libc.a-nosubdir): Depend on it.
9249
9250 * iconv/Makefile (install-others-programs): Set this instead of
9251 install-others.
9252 * login/Makefile (install-others-programs): Likewise.
9253 * posix/Makefile (install-others-programs): Likewise.
9254
9255 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9256 dependencies.
9257
9258 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9259
9260 * io/Makefile (tests): Add tst-posix_fallocate.
9261 * io/tst-posix_fallocate.c: New file.
9262
9263 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9264 __ASSUME_FALLOCATE.
9265
9266 2007-07-22 Roland McGrath <roland@frob.com>
9267
9268 * hurd/getdport.c: Add missing copyright year update.
9269
9270 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9271 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9272
9273 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9274
9275 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9276
9277 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9278 O_CLOEXEC is needed.
9279 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9280 Avoid additional fcntl to set O_CLOEXEC if not needed.
9281 * nis/nss_compat/compat-initgroups.c: Likewise.
9282 * nis/nss_compat/compat-pwd.c: Likewise.
9283 * nis/nss_compat/compat-spwd.c: Likewise.
9284
9285 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9286
9287 [BZ #3665]
9288 * manual/errno.texi: Change ECANCELED value to 119.
9289
9290 [BZ #4610]
9291 * mach/lock-intern.h: Include <sys/cdefs.h>.
9292
9293 [BZ #4178]
9294 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9295 reading A.
9296
9297 [BZ #4126]
9298 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9299 to __sigsuspend.
9300
9301 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9302
9303 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9304
9305 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9306 `__ASSEMBLER__'.
9307 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9308
9309 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9310
9311 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9312 descriptor received from nscd.
9313
9314 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9315
9316 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9317 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9318 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9319 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9320 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9321 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9322
9323 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9324
9325 [BZ #4816]
9326 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9327
9328 [BZ #4813]
9329 * login/forkpty.c (forkpty): Close master and slave fds on
9330 fork failure. Patch by
9331 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9332
9333 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9334
9335 * include/features.h (__USE_ISOC95): New define.
9336 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9337 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9338 for -std=iso9899:199409.
9339 * CONFORMANCE: Remove comments about unsupported AMD1.
9340
9341 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9342
9343 * sysdeps/ia64/sched_cpucount.c: New file.
9344 * sysdeps/powerpc/sched_cpucount.c: New file.
9345
9346 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9347 __BEGIN_DECLS/__END_DECLS around the prototype.
9348 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9349 pointer to const cpu_set_t.
9350
9351 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9352 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9353 __need_size_t and include stddef.h.
9354 * sysvipc/sys/msg.h: Likewise.
9355 * posix/sched.h: Likewise.
9356 * hurd/hurd/signal.h (__need_size_t): Define.
9357
9358 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9359 neither does signal.h in pedantic ISO C namespaces. stdio.h
9360 no longer defines wint_t or wchar_t.
9361
9362 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9363 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9364 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9365 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9366 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9367 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9368 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9369 * debug/printf_chk.c (__printf_chk): Likewise.
9370 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9371 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9372
9373 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9374 Define.
9375
9376 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9377 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9378
9379 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9380
9381 [BZ #4792]
9382 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9383 * malloc/malloc.h (realloc): Likewise.
9384
9385 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9386 if one of proc_file_chain streams has that fileno.
9387 * stdio-common/Makefile (tests): Add tst-popen2.
9388 * stdio-common/tst-popen2.c: New test.
9389
9390 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9391
9392 * elf/ldconfig.c: Allow GPLv2 or any later version.
9393 * elf/readlib.c: Likewise.
9394 * elf/chroot_canon.c: Likewise.
9395 * elf/cache.c: Likewise.
9396 * nscd/mem.c: Likewise.
9397 * nscd/getpwuid_r.c: Likewise.
9398 * nscd/grpcache.c: Likewise.
9399 * nscd/aicache.c: Likewise.
9400 * nscd/getsrvbynm_r.c: Likewise.
9401 * nscd/nscd.c: Likewise.
9402 * nscd/servicescache.c: Likewise.
9403 * nscd/getsrvbypt_r.c: Likewise.
9404 * nscd/initgrcache.c: Likewise.
9405 * nscd/gethstbyad_r.c: Likewise.
9406 * nscd/gethstbynm2_r.c: Likewise.
9407 * nscd/getgrnam_r.c: Likewise.
9408 * nscd/nscd_setup_thread.c: Likewise.
9409 * nscd/getpwnam_r.c: Likewise.
9410 * nscd/gai.c: Likewise.
9411 * nscd/connections.c: Likewise.
9412 * nscd/dbg_log.c: Likewise.
9413 * nscd/cache.c: Likewise.
9414 * nscd/hstcache.c: Likewise.
9415 * nscd/nscd_conf.c: Likewise.
9416 * nscd/getgrgid_r.c: Likewise.
9417 * nscd/pwdcache.c: Likewise.
9418 * catgets/gencat.c: Likewise.
9419 * locale/programs/linereader.h: Likewise.
9420 * locale/programs/locarchive.c: Likewise.
9421 * locale/programs/ld-paper.c: Likewise.
9422 * locale/programs/locfile-kw.h: Likewise.
9423 * locale/programs/ld-address.c: Likewise.
9424 * locale/programs/xmalloc.c: Likewise.
9425 * locale/programs/ld-time.c: Likewise.
9426 * locale/programs/localedef.c: Likewise.
9427 * locale/programs/simple-hash.c: Likewise.
9428 * locale/programs/xstrdup.c: Likewise.
9429 * locale/programs/ld-numeric.c: Likewise.
9430 * locale/programs/locfile-kw.gperf: Likewise.
9431 * locale/programs/ld-collate.c: Likewise.
9432 * locale/programs/charmap-kw.gperf: Likewise.
9433 * locale/programs/charmap.h: Likewise.
9434 * locale/programs/charmap-kw.h: Likewise.
9435 * locale/programs/config.h: Likewise.
9436 * locale/programs/locfile.c: Likewise.
9437 * locale/programs/ld-ctype.c: Likewise.
9438 * locale/programs/charmap.c: Likewise.
9439 * locale/programs/ld-messages.c: Likewise.
9440 * locale/programs/repertoire.h: Likewise.
9441 * locale/programs/locale.c: Likewise.
9442 * locale/programs/ld-name.c: Likewise.
9443 * locale/programs/linereader.c: Likewise.
9444 * locale/programs/locfile.h: Likewise.
9445 * locale/programs/3level.h: Likewise.
9446 * locale/programs/ld-monetary.c: Likewise.
9447 * locale/programs/ld-measurement.c: Likewise.
9448 * locale/programs/charmap-dir.c: Likewise.
9449 * locale/programs/ld-identification.c: Likewise.
9450 * locale/programs/localedef.h: Likewise.
9451 * locale/programs/charmap-dir.h: Likewise.
9452 * locale/programs/repertoire.c: Likewise.
9453 * locale/programs/simple-hash.h: Likewise.
9454 * locale/programs/ld-telephone.c: Likewise.
9455 * locale/programs/locale-spec.c: Likewise.
9456 * locale/programs/locfile-token.h: Likewise.
9457 * posix/getconf.c: Likewise.
9458 * iconv/dummy-repertoire.c: Likewise.
9459 * iconv/iconv_charmap.c: Likewise.
9460 * iconv/iconvconfig.c: Likewise.
9461 * iconv/iconv_prog.c: Likewise.
9462 * malloc/memusagestat.c: Likewise.
9463 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9464
9465 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9466
9467 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9468 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9469 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9470 check for the first argument.
9471
9472 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9473
9474 [BZ #4775]
9475 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9476 (__tgmath_real_type): Fix if expr is const int or other const
9477 qualified integral type.
9478 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9479 expressions and handle const qualified arguments.
9480 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9481 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9482 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9483 statement expressions.
9484 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9485 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9486 (__TGMATH_UNARY_IMAG): Define.
9487 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9488 * math/Makefile (tests): Add test-tgmath2.
9489 (CFLAGS-test-tgmath2.c): Add.
9490 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9491 count_cfloat, count_cldouble): New variables.
9492 (NCCALLS): Define.
9493 (main): Check number of complex calls as well.
9494 (F(compile_test)): Add complex tests and tests with const qualified
9495 arguments.
9496 (y, z, ccount): Define.
9497 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9498 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9499 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9500 F(cproj)): New functions.
9501 * math/test-tgmath2.c: New test.
9502
9503 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9504
9505 [BZ #4776]
9506 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9507 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9508 instead output ".".
9509 * dlfcn/Makefile (distribute): Add glreflib3.c.
9510 (module-names): Add glreflib3.
9511 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9512 glreflib1.so.
9513 (LDFLAGS_glreflib3.so): New.
9514 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9515 glreflib1.so.
9516 * dlfcn/glreflib3.c: New file.
9517
9518 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9519 returned -1, return NULL.
9520 * intl/explodename.c (_nl_explode_name): Return -1 if
9521 _nl_normalize_codeset failed.
9522
9523 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9524
9525 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9526 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9527 and avoid branch misspredicts for > 31 bytes memset case.
9528 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9529 Remove toc ref to __cache_line_size.
9530
9531 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9532 to get ISA-V2.0 branch hints.
9533 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9534 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9535 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9536 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9537 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9538 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9539 Remove toc ref to __cache_line_size.
9540
9541 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9542 Include math_ldbl_opt.h.
9543
9544 2007-07-10 Ulrich Drepper <drepper@redhat.com>
9545
9546 [BZ #4773]
9547 * time/strptime_l.c (__strptime_internal): Implement greedy
9548 matching of weekday and month names.
9549
9550 2007-07-09 Roland McGrath <roland@redhat.com>
9551
9552 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9553 (ELF_NOTE_ABI): Use it.
9554 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9555
9556 2007-07-09 Ulrich Drepper <drepper@redhat.com>
9557
9558 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9559 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9560
9561 2007-07-07 Ulrich Drepper <drepper@redhat.com>
9562
9563 [BZ #4745]
9564 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9565 in loop to look for conversion specifier to avoid testing of
9566 wrong errno value.
9567 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9568 * stdio-common/bug18.c: New file.
9569 * stdio-common/bug18a.c: New file.
9570 * stdio-common/bug19.c: New file.
9571 * stdio-common/bug19a.c: New file.
9572
9573 2007-07-05 Mike Frysinger <vapier@gentoo.org>
9574
9575 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9576 running awk script.
9577
9578 2007-07-01 Jakub Jelinek <jakub@redhat.com>
9579
9580 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9581 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
9582 Return NULL if mmap failed instead of asserting it does not.
9583 (calloc): Check for integer overflow.
9584
9585 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9586 than LONG_MAX / 10.
9587
9588 2007-07-03 Jakub Jelinek <jakub@redhat.com>
9589
9590 [BZ #4702]
9591 * nis/nss-default.c: Include errno.h.
9592 (init): Preserve errno.
9593
9594 2007-07-02 Ulrich Drepper <drepper@redhat.com>
9595
9596 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9597
9598 2007-06-30 Ulrich Drepper <drepper@redhat.com>
9599
9600 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9601
9602 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9603
9604 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9605
9606 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9607
9608 * sysdeps/s390/dl-procinfo.c: New file.
9609 * sysdeps/s390/dl-procinfo.h: New file.
9610 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9611
9612 2007-06-29 Jakub Jelinek <jakub@redhat.com>
9613
9614 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9615 in PT_NOTE segments with multiple notes.
9616 * elf/readelflib.c (process_elf_file): Likewise.
9617
9618 2007-06-22 Ulrich Drepper <drepper@redhat.com>
9619
9620 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9621 ISO C compliant.
9622
9623 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9624
9625 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9626
9627 2007-06-13 Jakub Jelinek <jakub@redhat.com>
9628
9629 * include/link.h: Don't include rtld-lowlevel.h.
9630 (struct link_map): Remove l_scope_lock.
9631 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9632 (_dl_scope_free_list): New field (variable) in _rtld_global.
9633 (DL_LOOKUP_SCOPE_LOCK): Remove.
9634 (_dl_scope_free): New prototype.
9635 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9636 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9637 (_dl_profile_fixup): Likewise.
9638 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9639 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9640 THREAD_GSCOPE_RESET_FLAG around it.
9641 * elf/dl-close.c (_dl_close_worker): Don't use
9642 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9643 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9644 scopes were queued or if l_scope_mem has been abandoned.
9645 * elf/dl-open.c (_dl_scope_free): New function.
9646 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9647 * elf/dl-support.c (_dl_scope_free_list): New variable.
9648 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9649 Remove DL_LOOKUP_SCOPE_LOCK handling.
9650 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9651 handling.
9652 * elf/dl-object.c (_dl_new_object): Don't use
9653 __rtld_mrlock_initialize.
9654
9655 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9656
9657 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9658 to fill in holes
9659 (rtld_global_ro): Likewise.
9660
9661 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9662
9663 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9664 Move PT_LOAD checking to...
9665 (_dl_addr_inside_object): ... here, new function.
9666 * elf/dl-sym.c (do_sym): If not l_contiguous,
9667 call _dl_addr_inside_object.
9668 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9669 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9670 * elf/dl-open.c (dl_open_worker): Likewise.
9671 (_dl_addr_inside_object): New function if IS_IN_rtld.
9672 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9673 holes are present or are PROT_NONE protected.
9674 * include/link.h (struct link_map): Add l_contiguous field.
9675 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9676
9677 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9678 Tomas Janousek <tjanouse@redhat.com>
9679 Ulrich Drepper <drepper@redhat.com>
9680
9681 [BZ #4647]
9682 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9683 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9684 socket.
9685 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9686 unused member a bitmap.
9687 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9688 servers are configured.
9689
9690 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9691
9692 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9693
9694 2007-06-17 Andreas Schwab <schwab@suse.de>
9695
9696 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9697
9698 2007-06-16 Andreas Jaeger <aj@suse.de>
9699
9700 [BZ #4125]
9701 * sysdeps/unix/sysv/linux/sys/ptrace.h
9702 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9703 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9704 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9705 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9706 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9707 Define.
9708 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9709 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9710 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9711 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9712
9713 2007-06-16 Ulrich Drepper <drepper@redhat.com>
9714
9715 [BZ #4599]
9716 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9717 determining whether there are IPv4/IPv6 addresses, ignore loopback
9718 addresses.
9719
9720 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9721
9722 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9723 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9724 as the return type. Change type of "r" variable to CMPtype.
9725 * soft-fp/eqsf2.c (__eqsf2): Likewise.
9726 * soft-fp/eqtf2.c (__eqtf2): Likewise.
9727 * soft-fp/gedf2.c (__gedf2): Likewise.
9728 * soft-fp/gesf2.c (__gesf2): Likewise.
9729 * soft-fp/getf2.c (__getf2): Likewise.
9730 * soft-fp/ledf2.c (__ledf2): Likewise.
9731 * soft-fp/lesf2.c (__lesf2): Likewise.
9732 * soft-fp/letf2.c (__letf2): Likewise.
9733 * soft-fp/unorddf2 (__unorddf2): Likewise.
9734 * soft-fp/unordsf2 (__unordsf2): Likewise.
9735 * soft-fp/unordtf2 (__unordtf2): Likewise.
9736
9737 2007-06-09 Ulrich Drepper <drepper@redhat.com>
9738
9739 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9740 make sure gcc doesn't mess around with this.
9741
9742 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9743
9744 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9745
9746 2007-06-08 Jakub Jelinek <jakub@redhat.com>
9747
9748 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9749 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9750 at most once per _dl_close_worker.
9751
9752 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9753
9754 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9755 __sched_cpucount as const.
9756 * posix/sched_cpucount.c: Adjust.
9757
9758 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9759 instruction for counting bits.
9760 * sysdeps/x86_64/sched_cpucount.c: New file.
9761
9762 2007-06-07 Ulrich Drepper <drepper@redhat.com>
9763
9764 * configure.in: Avoid variable named BASH.
9765 * config.make.in: Likewise.
9766 Patch in part by Mike Frysinger.
9767
9768 2007-06-06 Jakub Jelinek <jakub@redhat.com>
9769
9770 [BZ #4586]
9771 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9772 pseudo-zeros as zero.
9773 * sysdeps/x86_64/ldbl2mpn.c: New file.
9774 * sysdeps/ia64/ldbl2mpn.c: New file.
9775
9776 2007-06-04 Jakub Jelinek <jakub@redhat.com>
9777
9778 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9779 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9780 Remove unreachable code at the end.
9781
9782 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9783
9784 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9785 ldbl-128ibm in comment.
9786 (fpclassifyl): Correct classification of denormals.
9787 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9788 return value for MIN denormal. Rewrite using long double math too
9789 correctly handle denormals and canonicalize the results.
9790
9791 2007-06-05 Jakub Jelinek <jakub@redhat.com>
9792
9793 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9794 (__mpn_construct_long_double): Fix conversion where result ought
9795 to be smaller than __LDBL_MIN__, or the low double should be
9796 denormal. Fix decision where to negate low double - honor round
9797 to even rules.
9798 * stdio-common/tst-sprintf2.c: Include string.h.
9799 (COMPARE_LDBL): Define.
9800 (TEST): Also test whether a string hexadecimal float representation
9801 can be parsed back to the number.
9802 (main): Add a couple of further tests.
9803
9804 2007-06-04 Jakub Jelinek <jakub@redhat.com>
9805
9806 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9807 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9808 is non-zero, but smaller than 2 * __DBL_MIN__.
9809 * stdio-common/tst-sprintf2.c: New test.
9810 * stdio-common/Makefile (tests): Add tst-sprintf2.
9811
9812 * math/test-misc.c (main): Don't run last batch of tests with
9813 IBM long double format.
9814
9815 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9816
9817 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9818 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9819 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9820 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9821 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9822 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9823 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9824 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9825 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9826 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9829 New file.
9830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9831 New file.
9832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9833 New file.
9834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9835 New file.
9836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9837 New file.
9838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9840 New file.
9841 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9842 New file.
9843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9844 New file.
9845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9846 New file.
9847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9848 New file.
9849
9850 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9851
9852 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9853 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9854 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9855 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9856 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9857 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9858 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9859 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9860
9861 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
9862
9863 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9864 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9865 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9866 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9867 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9868 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9869 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9870 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9871
9872 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9873
9874 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9875 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9876 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9877 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9878
9879 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
9880
9881 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9882 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9883
9884 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
9885
9886 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9887 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9888 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9889 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9890
9891 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
9892
9893 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9894 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9895
9896 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9897
9898 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9899 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9900
9901 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9902 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9903 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9904 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9905
9906 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
9907
9908 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9909 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9910 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9911 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9912
9913 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
9914
9915 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9916 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9917 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9918 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9919 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9920 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9921
9922 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9923
9924 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9925 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9926 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9927 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9928
9929 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9930
9931 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9932 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9933 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9934 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9935 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9936 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9937 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9938 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9939 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9940 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9941 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9942 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9943 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9944 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9945 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9946 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9947
9948 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9949
9950 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9951 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9952
9953 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9954
9955 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9956 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9957
9958 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9959
9960 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9961 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9962 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9963 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9964 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9965 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9966 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9967 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9968 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9969 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9970
9971 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9972
9973 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9974
9975 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9976
9977 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9978 branch miss-predicts. Ensure that cache line crossing does not impact
9979 dispatch grouping.
9980
9981 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9982
9983 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9984 "../../powerpc32/power4/memcopy.h".
9985 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9986 "../../powerpc32/power4/wordcopy.c".
9987
9988 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9989
9990 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9991 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9992 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9993 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9994 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9995 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9996
9997 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
9998
9999 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10000
10001 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10002
10003 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10004 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10005 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10006 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10007 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10008 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10009 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10010 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10011
10012 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10013
10014 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10015
10016 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10017
10018 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10019 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10020 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10021 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10022 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10023 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10024 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10025
10026 2007-05-29 Roland McGrath <roland@redhat.com>
10027
10028 * po/Makefile (po-sed-cmd): New variable.
10029 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10030
10031 2007-05-29 Ulrich Drepper <drepper@redhat.com>
10032
10033 * crypt/md5-crypt.c: Fix comment.
10034
10035 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10036 of crashing. When this is the case or if the reply is malformed,
10037 don't try to close the new file descriptor since it does not
10038 exist.
10039 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10040
10041 2007-05-28 Jakub Jelinek <jakub@redhat.com>
10042
10043 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10044 if __NR_utimensat is not defined.
10045
10046 2007-05-26 Ulrich Drepper <drepper@redhat.com>
10047
10048 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10049
10050 2007-05-25 Jakub Jelinek <jakub@redhat.com>
10051
10052 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10053 (open): Fix comment typos. Don't call __open_2 if flags
10054 is a compile time constant without O_CREAT.
10055 (__open64_2): Add nonnull attribute.
10056 (open64): Fix comment typos. Don't call __open64_2 if flags
10057 is a compile time constant without O_CREAT.
10058 (__openat_2): Add nonnull attribute, fix nonnull attribute
10059 on redirect.
10060 (openat): Fix comment typos. Don't call __openat_2 if flags
10061 is a compile time constant without O_CREAT.
10062 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10063 on redirect.
10064 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10065 is a compile time constant without O_CREAT.
10066
10067 2007-05-24 Ulrich Drepper <drepper@redhat.com>
10068
10069 * Makerules (sysd-rules): Define PTW for ptw-* files.
10070 * Versions: Define GLIBC_2.7 for libc.
10071 * include/stdio.h: Declare __fortify_fail.
10072 * debug/fortify_fail.c: New file.
10073 * debug/Makefile (routines): Add fortify_fail.
10074 * debug/chk_fail.c: Use __fortify_fail.
10075 * debug/stack_chk_fail.c: Likewise.
10076 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10077 __openat64_2 for GLIBC_2.7.
10078 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10079 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10080 and fails if necessary.
10081 * io/open64.c: Likewise.
10082 * io/openat.c: Likewise.
10083 * io/openat64.c: Likewise.
10084 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10085 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10086 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10087 * io/bits/fcntl2.h: New file.
10088 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10089 __openat64_2.
10090 * include/bits/fcntl2.h: New file.
10091 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10092 Add open_2.
10093 * sysdeps/unix/sysv/linux/open_2.c: New file.
10094
10095 2007-05-21 Ulrich Drepper <drepper@redhat.com>
10096
10097 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10098 as second parameter to handle_intel.
10099
10100 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10101 the entry.
10102
10103 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10104 handling to ...
10105 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10106 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10107 cacheinfo.
10108 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10109 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10110 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10111
10112 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10113
10114 2007-05-21 Jakub Jelinek <jakub@redhat.com>
10115
10116 [BZ #4525]
10117 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10118 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10119 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10120
10121 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10122
10123 [BZ #4514]
10124 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10125 reinitialize workend at the start of each do_positional format spec
10126 loop, free workstart before do_positional loops.
10127 (printf_unknown): Fix size of work_buffer.
10128 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10129
10130 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10131 (public_sET_STATe): If ms->version < 3, put all chunks into
10132 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10133 chunks.
10134
10135 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10136 * malloc/hooks.c: Likewise.
10137 * malloc/arena.c: Likewise.
10138 * malloc/malloc.c (do_check_malloc_state): Don't assert
10139 n_mmaps is not greater than n_mmaps_max. This removes the need
10140 for the previous change.
10141
10142 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10143 2007-05-07 commit.
10144
10145 2007-05-19 Ulrich Drepper <drepper@redhat.com>
10146
10147 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10148 Define for kernel >= 2.6.22.
10149
10150 2007-05-18 Ulrich Drepper <drepper@redhat.com>
10151
10152 * elf/dl-close.c (_dl_close_worker): When removing object from
10153 global scope, wait for all lookups to finish afterwards.
10154 * elf/dl-open.c (add_to_global): When global scope array must
10155 grow, allocate a new one and free old array only after all
10156 lookups finish.
10157 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10158 (_dl_lookup_symbol_x): Likewise.
10159 * elf/dl-support.c: Define _dl_wait_lookup_done.
10160 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10161 _dl_wait_lookup_done.
10162
10163 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10164 not overlapping with arena.
10165
10166 * malloc/mcheck.c (reallochook): If size==0, free the block.
10167
10168 * rt/tst-shm.c: Use fstat64 instead of fstat.
10169
10170 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10171 __NR_sync_file_range is not defined.
10172
10173 2007-05-17 Ulrich Drepper <drepper@redhat.com>
10174
10175 Dummy files to prevent stub versions from being used.
10176 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10177 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10178 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10179 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10180
10181 * version.h (VERSION): Set to 2.6.90.
10182
10183 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10184
10185 * version.h (VERSION): Define to 2.6.
10186 * include/features.h (__GLIBC_MINOR__): Define to 6.
10187
10188 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10189
10190 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10191 sizes.
10192
10193 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10194
10195 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10196 number of mmaps. n_mmaps_max is the target.
10197 * malloc/hooks.c: Likewise.
10198 * malloc/arena.c: Likewise.
10199
10200 2007-05-12 Andreas Jaeger <aj@suse.de>
10201
10202 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10203 getpid.
10204
10205 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10206
10207 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10208 adding new variables.
10209
10210 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10211 optimize. Completely extend global scope array before making the
10212 new entries visible.
10213
10214 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10215
10216 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10217 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10218 tst-getcpu.
10219
10220 * include/link.h: Move l_version and l_nversion members around to
10221 fill gaps.
10222
10223 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10224
10225 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10226 (__sched_setaffinity_new): If syscall was successful and
10227 RESET_VGETCPU_CACHE is defined, use it before returning.
10228 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10229
10230 * io/sys/stat.h: Make sure struct timespec is defined for
10231 __USE_ATFILE.
10232
10233 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10234 UTIME_OMIT.
10235 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10236 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10237 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10238 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10239 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10240 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10241 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10242 * io/sys/stat.h: Declare utimensat, futimens.
10243 * io/utimensat.c: New file.
10244 * io/futimens.c: New file.
10245 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10246 * sysdeps/unix/sysv/linux/futimens.c: New file.
10247 * io/Makefile (routines): Add utimensat, futimens.
10248 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10249 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10250 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10251 available.
10252
10253 * include/sys/cdefs.h: Redefine __nonnull so that test for
10254 incorrect parameters in the libc code itself are not omitted.
10255
10256 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10257
10258 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10259 exception in addition to inexact when asked to raise only FE_INEXACT.
10260
10261 [BZ #3427]
10262 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10263 in *envp.
10264
10265 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10266
10267 [BZ #4403]
10268 * string/strfry.c (strfry): Make result more random.
10269
10270 2007-05-07 Richard Henderson <rth@redhat.com>
10271
10272 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10273 if __NO_LONG_DOUBLE_MATH.
10274 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10275 available in the compiler, add .arch directive to the assembly.
10276
10277 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10278
10279 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10280 compat_symbol to GLIBC_2_1.
10281 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10282 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10283 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10284 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10285 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10286 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10287 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10288 libc, not libm.
10289 (__isnanl): New compat_symbol.
10290
10291 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10292 Jakub Jelinek <jakub@redhat.com>
10293
10294 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10295 (new_heap): Initialize mprotect_size.
10296 (grow_heap): When growing, only mprotect from mprotect_size till
10297 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10298 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10299
10300 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10301 Peter Bergner <bergner@us.ibm.com>
10302
10303 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10304 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10305 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10306 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10307 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10308 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10309 Call __fe_mask_env() if all FP exceptions disabled.
10310 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10311 from old FPSCR to new fenv to propagate DFP rounding modes.
10312 Call __fe_mask_env() if FP exceptions previously enabled.
10313 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10314 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10315 transitioning from all exceptions disabled to any exception enabled
10316 or visa versa.
10317 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10318 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10319 when transitioning from all exceptions disabled to any exception
10320 enabled or visa versa.
10321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10327
10328 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10329
10330 [BZ #4465]
10331 * posix/unistd.h: Remove __THROW from fdatasync.
10332
10333 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10334
10335 [BZ #4465]
10336 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10337
10338 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10339
10340 * stdio-common/vfprintf.c (process_string_arg): Optimize
10341 ridiculous precision in wide char code printing multi-byte string.
10342 Reported by Jim Meyering <jim@meyering.net>.
10343
10344 [BZ #4131]
10345 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10346 boundaries to work around systems with overlapping binary loading.
10347 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10348
10349 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10350
10351 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10352 __mbsnrtowcs after last change.
10353
10354 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10355 (get_ident): Likewise.
10356
10357 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10358
10359 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10360 with setting the sticky bit.
10361 * math/test-misc.c (main): Add more truncation tests.
10362
10363 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10364
10365 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10366 double in the function declaration.
10367 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10368 double in the function declaration.
10369 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10370 float in the function declaration.
10371 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10372 float in the function declaration.
10373
10374 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10375 denormal operands. Do not generate FP_EX_DENORM exception.
10376 (FP_UNPACK_RAW_EP): Ditto.
10377 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10378 undefined _FP_UNPACK_RAW_E.
10379 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10380 undefined _FP_UNPACK_RAW_EP.
10381 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10382 undefined _FP_PACK_RAW_E.
10383 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10384 undefined _FP_PACK_RAW_EP.
10385
10386 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10387 _FP_FRAC_COPY_2.
10388 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10389 _FP_FRAC_COPY_4.
10390
10391 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10392 Jakub Jelinek <jakub@redhat.com>
10393
10394 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10395 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10396 this case.
10397 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10398
10399 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10400
10401 * math/test-misc.c (main): Add tests for rounding long double
10402 values close to smallest double denormalized value to double.
10403
10404 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10405
10406 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10407 condition for truncating to 0. Set sticky bit for such
10408 truncation.
10409
10410 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10411
10412 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10413 fixed length array for ignore.
10414
10415 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10416
10417 [BZ #4438]
10418 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10419 stack for large precisions.
10420 * stdio-common/test-vfprintf.c (main): Add test for large
10421 precision.
10422
10423 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10424
10425 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10426 for exponent 0.
10427 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10428
10429 [BZ #4439]
10430 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10431 account in the size check.
10432 * resolv/tst-inet_ntop.c: New test.
10433 * resolv/Makefile (tests): Add tst-inet_ntop.
10434
10435 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10436 Jakub Jelinek <jakub@redhat.com>
10437
10438 [BZ #4349]
10439 * malloc/malloc.c: Keep separate list for first blocks on the bin
10440 lists with a given size. This helps skipping over list elements
10441 we know won't fit in two places.
10442 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10443
10444 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10445
10446 [BZ #4102]
10447 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10448 label to Teredo tunnel addresses 2001://32.
10449
10450 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10451
10452 * locale/programs/ld-collate.c (collate_read): Allow order_start
10453 after copy.
10454
10455 * locale/programs/ld-collate.c (collate_read): Fix printing of
10456 error message.
10457
10458 [BZ #3213]
10459 * locale/C-translit.h.in: Add entry for U2044.
10460
10461 [BZ #4342]
10462 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10463 hexa-decimal floats without exponent.
10464 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10465
10466 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10467
10468 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10469 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10470 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10471 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10472 GLIBC_2.6.
10473 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10474 Add sched_getcpu.
10475
10476 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10477
10478 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10479 of 0 after the out_fail label.
10480
10481 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10482
10483 [BZ #4406]
10484 * iconv/gconv_charset.h (strip): Allow ':'.
10485 * iconv/iconv_open.c (iconv_open): Adjust comment.
10486
10487 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10488
10489 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10490 version.
10491
10492 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10493
10494 [BZ #4381]
10495 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10496 alignment of buffer and tmp_buffer.
10497 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10498 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10499 alignment of buffer.
10500 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10501 bigger than INT_MAX.
10502 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10503 h_errnop arguments. Fail if buflen is too small.
10504 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10505
10506 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10507
10508 [BZ #4405]
10509 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10510 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10511
10512 2007-04-22 Roland McGrath <roland@redhat.com>
10513
10514 * elf/elf.h (NT_PRXFPREG): New macro.
10515
10516 2007-04-19 Andreas Jaeger <aj@suse.de>
10517
10518 [BZ #3905]
10519 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10520 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10521 Added.
10522
10523 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10524
10525 * include/sys/mman.h: Mark madvise hidden.
10526 * misc/madvise.c: Add libc_hidden_def.
10527
10528 2007-04-06 Jakub Jelinek <jakub@redhat.com>
10529
10530 * nis/nis_domain_of.c (__nis_domain_of): New function.
10531 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10532 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10533 * nis/nis_call.c (rec_dirsearch): Likewise.
10534 (first_shoot): Likewise. Remove search_parent_first argument.
10535 (struct nis_server_cache): Rename search_parent_first field
10536 to search_parent.
10537 (nis_server_cache_search, nis_server_cache_add): Rename
10538 search_parent_first argument to search_parent.
10539 (__nisfind_server): Likewise. If search_parent, call
10540 __nis_domain_of.
10541
10542 2007-04-18 Ulrich Drepper <drepper@redhat.com>
10543
10544 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10545
10546 2007-04-17 Ulrich Drepper <drepper@redhat.com>
10547
10548 [BZ #4368]
10549 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10550
10551 2007-04-16 Ulrich Drepper <drepper@redhat.com>
10552
10553 [BZ #4364]
10554 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10555
10556 2007-04-15 Jakub Jelinek <jakub@redhat.com>
10557
10558 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10559 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10560 current number of locales in SUPPORTED.
10561 (create_archive): Initialize serial.
10562 (enlarge_archive): Preserve aliases rather than duplicating
10563 their locrecs.
10564
10565 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10566
10567 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10568 after _IO_un_link, not before it.
10569
10570 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10571 special case handling when wcp == wstartp + 1. Fix a comment typo.
10572 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10573
10574 2007-03-30 Jakub Jelinek <jakub@redhat.com>
10575
10576 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10577 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10578 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10579 Remove __THROW.
10580 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10581 _IO_file_xsgetn_maybe_mmap): Likewise.
10582 * libio/oldfileops.c (old_do_write): Likewise.
10583 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10584 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10585 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10586 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10587 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10588 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10589 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10590 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10591 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10592 _IO_file_underflow, _IO_file_underflow_mmap,
10593 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10594 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10595 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10596 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10597 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10598 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10599 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10600 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10601 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10602 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10603 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10604 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10605 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10606 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10607 _IO_adjust_column_internal, _IO_default_uflow_internal,
10608 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10609 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10610 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10611 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10612 _IO_file_close_it_internal, _IO_file_underflow_internal,
10613 _IO_file_overflow_internal, _IO_file_attach_internal,
10614 _IO_file_fopen_internal, _IO_file_sync_internal,
10615 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10616 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10617 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10618 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10619 _IO_seekpos_unlocked): Likewise.
10620 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10621 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10622
10623 2007-04-16 Jakub Jelinek <jakub@redhat.com>
10624
10625 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10626 argument in xmalloc size computation.
10627
10628 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10629
10630 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10631 math_opt_barrier and math_force_eval macros.
10632
10633 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10634
10635 [BZ #3306]
10636 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10637 * sysdeps/i386/fpu/math_private.h: New file.
10638 * sysdeps/x86_64/fpu/math_private.h: New file.
10639 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10640 math_force_eval macros. Use "+m" constraint on asm rather than
10641 "=m" and "m".
10642 * math/s_nextafter.c (__nextafter): Likewise.
10643 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10644 Likewise.
10645 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10646 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10647 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10648 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10649 math_opt_barrier and math_force_eval macros.
10650 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10651 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10652 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10653 (__nexttoward): Use math_opt_barrier and
10654 math_force_eval macros. Use "+m" constraint on asm rather than
10655 "=m" and "m". Only use asm to force double result if
10656 FLT_EVAL_METHOD is 2.
10657 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10658 (__nexttowardf): Use math_opt_barrier and
10659 math_force_eval macros. Use "+m" constraint on asm rather than
10660 "=m" and "m". Only use asm to force double result if
10661 FLT_EVAL_METHOD is not 0.
10662 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10663 (__nexttowardf): Use math_opt_barrier and
10664 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10665 x to float using asm.
10666 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10667 (__nldbl_nexttowardf): Use math_opt_barrier and
10668 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10669 x to float using asm.
10670 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10671 (__nexttowardf): Use math_opt_barrier and math_force_eval
10672 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10673 * math/bug-nextafter.c (zero, inf): New variables.
10674 (main): Add new tests.
10675 * math/bug-nexttoward.c (zero, inf): New variables.
10676 (main): Add new tests.
10677
10678 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10679
10680 [BZ #3427]
10681 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10682 exceptions both in SW and MXCSR.
10683 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10684 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10685 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10686 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10687 in MXCSR if SSE is available.
10688 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10689 and ldsodefs.h.
10690 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10691 Fix comment typo.
10692 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10693 Return 0 rather than 1.
10694 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10695 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10696 * math/test-fenv.c (feholdexcept_tests): New function.
10697 (main): Call it.
10698
10699 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10700
10701 [BZ #3427]
10702 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10703 in SW.
10704
10705 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10706
10707 [BZ #4344]
10708 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10709 Reported by David Anderson <davea42@earthlink.net>.
10710
10711 2007-04-07 Ulrich Drepper <drepper@redhat.com>
10712
10713 * posix/sys/wait.h: Remove unnecessary forward declaration.
10714
10715 2007-04-05 Jakub Jelinek <jakub@redhat.com>
10716
10717 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10718 with obj->do_servers after first_shoot.
10719
10720 2007-04-03 Ulrich Drepper <drepper@redhat.com>
10721
10722 * posix/Makefile (routines): Add sched_cpucount.
10723 (tests): Add tst-cpucount.
10724 * posix/sched_cpucount.c: New file.
10725 * posix/tst-cpucount.c: New file.
10726 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10727 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
10728 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10729 * posix/sched.h: Define CPU_COUNT.
10730
10731 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10732
10733 * posix/fnmatch.c (STRUCT): Define.
10734 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10735 * posix/fnmatch_loop.c (struct STRUCT): New type.
10736 (FCT): Add ends argument. If ends != NULL and normal * is
10737 seen in the pattern, store current pattern and string pointers
10738 and return. Adjust recursive calls.
10739 (EXT): Adjust FCT callers.
10740 (STRUCT): Undef at the end of the file.
10741 * posix/Makefile (tests): Add tst-fnmatch2.
10742 * posix/tst-fnmatch2.c: New test.
10743
10744 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10745
10746 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10747 and 1 on failure.
10748
10749 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10750 Change last argument to unsigned int.
10751
10752 2007-03-23 Jakub Jelinek <jakub@redhat.com>
10753
10754 * scripts/check-local-headers.sh: Filter out sys/capability.h.
10755
10756 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10757
10758 * config.h.in (HAVE_LIBCAP): Add.
10759 * nscd/selinux.h: Include sys/capability.h rather than non-existent
10760 sys/capabilities.h.
10761 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10762 free_caps. Cast away const from 4th cap_set_flag argument.
10763
10764 2007-03-26 Ulrich Drepper <drepper@redhat.com>
10765
10766 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10767 GLIBC_2.6.
10768 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10769 Add sync_file_range.
10770 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10771
10772 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
10773
10774 * sysdeps/powerpc/bits/atomic.h
10775 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10776 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10777 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10778 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10779 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10780 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10781 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10782 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10783 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10784 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10785 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10786 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10787 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10788 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10789 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10790 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10791 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10792 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10793 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10794 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10795
10796 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10797
10798 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10799 (__cache_line_size): Define the variable here. Add
10800 attribute_hidden, remove weak_extern.
10801 (__libc_start_main): Set __cache_line_size
10802 unconditionally.
10803 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10804 (__cache_line_size): Define the variable here. Add
10805 attribute_hidden, remove weak_extern.
10806 (DL_PLATFORM_AUXV): Set __cache_line_size
10807 unconditionally.
10808 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10809 weak_extern, add attribute_hidden.
10810 (__elf_machine_runtime_setup): Assume __cache_line_size is always
10811 defined in ld.so.
10812 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10813 definition.
10814 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10815
10816 2007-03-26 Jakub Jelinek <jakub@redhat.com>
10817
10818 [BZ #4276]
10819 * timezone/africa: Update from tzdata2007d.
10820 * timezone/asia: Likewise.
10821 * timezone/australasia: Likewise.
10822 * timezone/backward: Likewise.
10823 * timezone/europe: Likewise.
10824 * timezone/iso3166.tab: Likewise.
10825 * timezone/leapseconds: Likewise.
10826 * timezone/northamerica: Likewise.
10827 * timezone/southamerica: Likewise.
10828 * timezone/zone.tab: Likewise.
10829
10830 * timezone/private.h: Update from tzcode2007d.
10831 * timezone/zdump.c: Likewise.
10832 * timezone/zic.c: Likewise.
10833
10834 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10835
10836 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10837 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10838 variables.
10839 (nis_server_cache_search, nis_server_cache_add): New functions.
10840 (__nisfind_server): Use them. Add dbp and flags argument, if
10841 call __nisbind_create.
10842 (__nisbind_create): Add server_used and current_ep arguments,
10843 only call __nis_findfastest if server_used is ~0.
10844 (__do_niscall2, __prepare_niscall): Adjust callers.
10845 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10846 ckey_cache_euid, ckey_cache_lock): New variables.
10847 (get_ckey): New function.
10848 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10849 __pmap_getnisport. Save __pmap_getnisport result in
10850 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
10851 key.
10852 * nis/nis_lookup.c (nis_lookup): Likewise.
10853 * nis/nis_table.c (nis_list): Likewise.
10854 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10855 prototypes.
10856
10857 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10858 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10859 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10860 _nss_nisplus_getservbyport_r): Likewise.
10861 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10862 _nss_nisplus_getnetbyaddr_r): Likewise.
10863 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10864 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10865 _nss_nisplus_getntohost_r): Likewise.
10866 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10867 _nss_nisplus_getrpcbynumber_r): Likewise.
10868
10869 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10870
10871 * configure.in (libc_cv_gnu89_inline): Only do compile test.
10872 * configure: Rebuilt.
10873
10874 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10875 bit-fields.
10876 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10877
10878 2006-06-07 Joseph Myers <joseph@codesourcery.com>
10879
10880 [BZ #2831]
10881 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10882 bit-fields.
10883
10884 2007-03-18 Jakub Jelinek <jakub@redhat.com>
10885
10886 * nscd/gai.c: Include alloca.h.
10887 (__libc_use_alloca): Define.
10888
10889 2007-03-16 Jakub Jelinek <jakub@redhat.com>
10890
10891 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10892 smaller scopes.
10893 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10894 (DL_DST_REQUIRED): Adjust user.
10895
10896 * include/dlfcn.h (struct link_map): New forward decl.
10897
10898 * inet/getnameinfo.c: Include stddef.h.
10899 (getnameinfo): Use offsetof.
10900
10901 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10902
10903 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10904
10905 * string/strerror_l.c: Include stdlib.h.
10906
10907 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10908 * config.make.in (gnu89-inline-CFLAGS): New variable.
10909 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10910 -std=gnu99.
10911 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10912 * argp/argp.h: Use it.
10913 * bits/mathinline.h: Likewise.
10914 * bits/sigset.h: Likewise.
10915 * bits/string.h: Likewise.
10916 * ctype/ctype.h: Likewise.
10917 * hurd/hurd.h: Likewise.
10918 * hurd/hurd/fd.h: Likewise.
10919 * hurd/hurd/port.h: Likewise.
10920 * hurd/hurd/signal.h: Likewise.
10921 * hurd/hurd/threadvar.h: Likewise.
10922 * hurd/hurd/userlink.h: Likewise.
10923 * io/sys/stat.h: Likewise.
10924 * libio/bits/stdio.h: Likewise.
10925 * libio/bits/stdio2.h: Likewise.
10926 * mach/lock-intern.h: Likewise.
10927 * mach/mach/mig_support.h: Likewise.
10928 * math/bits/cmathcalls.h: Likewise.
10929 * posix/bits/unistd.h: Likewise.
10930 * socket/bits/socket2.h: Likewise.
10931 * stdlib/bits/stdlib.h: Likewise.
10932 * stdlib/stdlib.h: Likewise.
10933 * string/argz.h: Likewise.
10934 * string/bits/string2.h: Likewise.
10935 * string/bits/string3.h: Likewise.
10936 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10937 * sysdeps/generic/inttypes.h: Likewise.
10938 * sysdeps/generic/machine-lock.h: Likewise.
10939 * sysdeps/generic/machine-sp.h: Likewise.
10940 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10941 * sysdeps/i386/i486/bits/string.h: Likewise.
10942 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10943 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10944 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10945 * sysdeps/mach/i386/machine-lock.h: Likewise.
10946 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10947 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10948 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10949 * sysdeps/s390/bits/string.h: Likewise.
10950 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10951 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10952 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10953 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10954 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10955 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10956 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10957 * wcsmbs/bits/wchar2.h: Likewise.
10958 * wcsmbs/wchar.h: Likewise.
10959 * stdlib/gmp.h: Likewise. Include <features.h> to get
10960 __extern_inline definition.
10961
10962 2007-03-15 Jakub Jelinek <jakub@redhat.com>
10963
10964 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10965 NULL.
10966
10967 [BZ #3919]
10968 * math/libm-test.inc (log_test): Test -Inf and NaN.
10969 (log10_test, log1p_test, log2_test): Test -Inf.
10970 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10971 FE_INVALID when argument is qNaN.
10972 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10973 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10974 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10975 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10976 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10977 testb $4, %ah and jump if non-zero.
10978 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10979 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10980
10981 [BZ #4101]
10982 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10983 ancestors with the same depths.
10984 Patch by Niels Moeller <nisse@lysator.liu.se>.
10985 (filter_doc): Don't crash if argp is NULL.
10986 * argp/Makefile (tests): Add tst-argp2.
10987 * argp/tst-argp2.c: New test.
10988
10989 [BZ #4130]
10990 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10991 open_not_cancel_2.
10992 (updwtmp_file): Likewise.
10993
10994 [BZ #4181]
10995 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10996 (inet6_opt_append): Don't check extlen is big enough if extbuf
10997 is NULL.
10998 (inet6_opt_finish): Likewise.
10999 * inet/Makefile (tests): Add test-inet6_opt.
11000 * inet/test-inet6_opt.c: New test.
11001
11002 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11003 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11004 NLMSG_ERR. Instead use a page sized buffer.
11005 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11006 buffer.
11007
11008 2007-03-14 Richard Henderson <rth@redhat.com>
11009
11010 * sysdeps/alpha/fpu/s_llround.c: New file.
11011 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11012 * sysdeps/alpha/fpu/s_lround.c: New file.
11013 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11014 * sysdeps/alpha/fpu/s_round.c: New file.
11015 * sysdeps/alpha/fpu/s_roundf.c: New file.
11016 * sysdeps/alpha/fpu/s_trunc.c: New file.
11017 * sysdeps/alpha/fpu/s_truncf.c: New file.
11018
11019 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11020 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11021 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11022 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11023 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11024 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11025
11026 * sysdeps/alpha/fpu/s_fmax.S: New file.
11027 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11028 * sysdeps/alpha/fpu/s_fmin.S: New file.
11029 * sysdeps/alpha/fpu/s_fminf.S: New file.
11030 * sysdeps/alpha/fpu/s_isnan.c: New file.
11031 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11032 * sysdeps/alpha/fpu/s_llrint.c: New file.
11033 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11034 * sysdeps/alpha/fpu/s_lrint.c: New file.
11035 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11036 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11037 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11038
11039 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11040 (__fdimf, fdimf, __fdim, fdim): Remove.
11041 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11042 (__isnanf, __isnan, __isnanl): New.
11043
11044 2007-03-13 Richard Henderson <rth@redhat.com>
11045
11046 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11047
11048 2007-03-13 Richard Henderson <rth@redhat.com>
11049
11050 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11051 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11052 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11053 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11054 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11055 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11056
11057 2007-03-13 Richard Henderson <rth@redhat.com>
11058
11059 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11060 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11061 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11062 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11063 Move to dl-auxv.h; initialize instead of extern weak.
11064 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11065 weak symbol.
11066 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11067 Extern instead of initialized.
11068
11069 2007-03-13 Richard Henderson <rth@redhat.com>
11070
11071 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11072 __sigsuspend_nocancel.
11073
11074 2007-03-06 Ulrich Drepper <drepper@redhat.com>
11075
11076 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11077 172.16/12 address range.
11078
11079 2007-03-02 Jakub Jelinek <jakub@redhat.com>
11080
11081 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11082 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11083 message.
11084
11085 2007-03-01 Jakub Jelinek <jakub@redhat.com>
11086
11087 [BZ #4069]
11088 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11089 earlier.
11090 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11091
11092 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11093 for x qNaN and y either +-inf or non-integer value.
11094 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11095 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11096 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11097
11098 2007-02-10 Mike Frysinger <vapier@gentoo.org>
11099
11100 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11101 from sysdep_headers.
11102
11103 2007-02-28 Jakub Jelinek <jakub@redhat.com>
11104
11105 * time/tzfile.c (find_transition): Instead of a linear search try to
11106 guess the transition index, use a linear search if the result is at
11107 most 10 transitions away from the guess or binary search otherwise.
11108
11109 2007-02-27 Jakub Jelinek <jakub@redhat.com>
11110
11111 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11112 memory reallocation.
11113
11114 2007-02-21 Ulrich Drepper <drepper@redhat.com>
11115
11116 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11117 and fix some typos.
11118 Optimize use of TOLOWER.
11119
11120 [BZ #3325]
11121 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11122 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11123 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11124
11125 [BZ #3458]
11126 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11127 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11128
11129 [BZ #4076]
11130 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11131 (open_dir_stream): Likewise.
11132 * io/Makefile (tests): Add bug-ftw5.
11133 * io/bug-ftw5.c: New file.
11134
11135 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11136 * nscd/servicescache.c (cache_addserv): Likewise.
11137
11138 * nscd/grpcache.c (cache_addgr): In case a record changed on
11139 refresh, adjust key_copy.
11140
11141 [BZ #4074]
11142 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11143 refresh, adjust key_copy.
11144
11145 [BZ #4070]
11146 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11147 special cases.
11148 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11149
11150 2007-02-19 Ulrich Drepper <drepper@redhat.com>
11151
11152 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11153 optimization.
11154
11155 * stdio-common/vfscanf.c: Small cleanups throughout.
11156
11157 2007-02-18 Ulrich Drepper <drepper@redhat.com>
11158
11159 [BZ #3325]
11160 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11161 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11162 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11163 Patch by Jared Casper <jaredcasper@gmail.com>.
11164
11165 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11166 * sysdeps/unix/opendir.c: Likewise.
11167 * sysdeps/unix/readdir.c: Likewise.
11168
11169 [BZ #2211]
11170 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11171 point numbers.
11172 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11173
11174 * stdio-common/vfscanf.c: Fix problems in width accounting.
11175 * stdio-common/tst-sscanf.c (double_tests): New tests.
11176 (main): Hook them up.
11177
11178 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11179 More simplifications of floating-point reader.
11180
11181 * stdio-common/Makefile (tests): Add tst-swscanf.
11182 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11183 testing.
11184 * stdio-common/tst-swscanf.c: New file.
11185
11186 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11187
11188 [BZ #2633]
11189 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11190 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11191 Remove using for __jmp_buf_tag.
11192 * locale/locale.h (struct lconv): Also define in std namespace.
11193 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11194
11195 [BZ #3842]
11196 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11197 using __libc_enable_secure.
11198
11199 [BZ #3818]
11200 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11201
11202 [BZ #3745]
11203 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11204 of names for ellipsises.
11205
11206 [BZ #3348]
11207 * malloc/memusage.sh: Cleanups.
11208 * debug/xtrace.sh: Quoting and trap changes.
11209
11210 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11211
11212 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11213
11214 * locale/iso-3166.def: Update entry for Serbia.
11215 * locale/iso-4217.def: Define RSD, remove CSD.
11216
11217 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11218 and 64-bit operations.
11219
11220 [BZ #4040]
11221 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11222 16-bit operations.
11223
11224 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11225 of writev.
11226
11227 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11228
11229 [BZ #3991]
11230 * assert/assert.h (assert): Simplify.
11231 (assert_perror): Likewise.
11232 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11233
11234 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11235 reqdata.
11236
11237 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11238 change: don't pass NULL in place of an integer.
11239
11240 2007-02-02 Bruno Haible <bruno@clisp.org>
11241
11242 [BZ #3954]
11243 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11244 Add mapping for U+327E.
11245 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11246 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11247 mapping of 0xD9 0xE8.
11248 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11249 mapping of U+327E.
11250 Reported by Jungshik Shin <jungshik@google.com>.
11251
11252 [BZ #3955]
11253 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11254 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11255 Reported by Jungshik Shin <jungshik@google.com>.
11256
11257 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11258
11259 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11260 byte variants.
11261
11262 [BZ #4040]
11263 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11264 byte variants. Patch mostly be tom@tommay.net.
11265
11266 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11267
11268 [BZ #3996]
11269 * posix/glob.c (attribute_hidden): Define if not defined.
11270 (glob): Unescape dirname, filename or username when needed and not
11271 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11272 is NULL. Handle unescaped [ in pattern without closing ].
11273 Don't pass GLOB_CHECK down to recursive glob for directories.
11274 (__glob_pattern_type): New function.
11275 (__glob_pattern_p): Implement using __glob_pattern_type.
11276 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11277 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11278 Remove unreachable code.
11279 * posix/globtest.sh: Add a couple of new tests.
11280
11281 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11282
11283 * po/ru.po: Update from translation team.
11284
11285 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11286
11287 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11288 to the list of i486+ CPUs.
11289 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11290
11291 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11292
11293 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11294 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11295 references.
11296
11297 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11298
11299 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11300
11301 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11302 * resolv/res_mkquery.c: Define __res_nopt.
11303 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11304 try adding EDNS0 record.
11305 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11306 EDNS0 record was send make sure we don't try it again.
11307 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11308 * include/resolv.h: Declare __res_nopt.
11309
11310 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11311
11312 [BZ #3944]
11313 * time/strptime_l.c (__strptime_internal): Set have_mon for
11314 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11315 have been computed from tm_yday and tm_year. Don't crash
11316 in day_of_the_week or day_of_the_year if not have_mon
11317 and tm_mon contains bogus value.
11318 * time/Makefile (tests): Add tst-strptime3.
11319 * time/tst-strptime3.c: New test.
11320
11321 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11322
11323 [BZ #3957]
11324 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11325 bit for RE_HAT_LISTS_NOT_NEWLINE.
11326 (build_charclass_op): Remove bogus comment.
11327 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11328 * posix/bug-regex27.c: New test.
11329 * posix/bug-regex28.c: New test.
11330
11331 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11332
11333 * po/sv.po: Update from translation team.
11334
11335 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11336
11337 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11338
11339 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11340
11341 * include/locale.h (__uselocale): Add libc_hidden_proto.
11342 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11343
11344 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11345 gettimeofday.
11346
11347 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11348
11349 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11350 returning.
11351 (PTR_DEMANGLE): Real definition now that it's not the same as
11352 PRT_MANGLE anymore.
11353 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11354
11355 * string/strerror_l.c: New file.
11356 * string/Makefile (routines): Add strerror_l.
11357 * string/string.h: Declare strerror_l.
11358 * string/Versions: Export strerror_l for GLIBC_2.6.
11359
11360 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11361
11362 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11363 as parameter. Construct request record. Try sending request
11364 before the first poll use, it usually succeeds. Adjust all
11365 callers.
11366 * nscd/nscd-client.h: Define MAXKEYLEN.
11367 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11368
11369 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11370
11371 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11372 from return value.
11373 * nscd/nscd_helper.c: Include string.h.
11374 (__nscd_cache_search): Remove const qualifier from return value.
11375 On strict alignment architectures check hash entry and data head
11376 alignment.
11377 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11378 mmapped data during GC cycle contains garbage. If
11379 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11380 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11381 dropped to 0.
11382 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11383 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11384 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11385 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11386 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11387
11388 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11389
11390 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11391
11392 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11393
11394 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11395 names not numbers in cfi_*.
11396
11397 2007-01-26 Andreas Jaeger <aj@suse.de>
11398
11399 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11400 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11401 Correct values of PER_HPUX and PER_OSF4.
11402
11403 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11404
11405 * elf/dl-minimal.c: Undefine _itoa first.
11406 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11407 * malloc/mtrace.c: Revert last change.
11408 * posix/wordexp.c: Likewise.
11409
11410 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11411
11412 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11413 and __geode__ to the list of i486+ CPUs.
11414 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11415
11416 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11417
11418 * stdio-common/_itoa.c: Include <limits.h>.
11419 * stdio-common/_itowa.c: Likewise.
11420
11421 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11422
11423 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11424 platforms.
11425 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11426 64-bit platforms.
11427 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11428 possible.
11429 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11430 if possible.
11431
11432 [BZ #3902]
11433 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11434 * stdio-common/Makefile (tests): Add bug17.
11435 * stdio-common/bug17.c: New file.
11436
11437 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11438
11439 * iconvdata/brf.c: New file.
11440 * iconvdata/testdata/BRF: New file.
11441 * iconvdata/testdata/BRF..UTF8: New file.
11442 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11443 * iconvdata/Makefile: Add rules to build BRF.
11444 * iconvdata/TESTS: Add BRF entry.
11445 * iconvdata/gconv-modules: Likewise.
11446 * iconvdata/tst-tables.sh: Likewise.
11447
11448 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11449
11450 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11451 type `long long int', not `long int'.
11452 (wcstoq): Likewise.
11453
11454 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11455
11456 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11457 of values on 64-bit platforms which are too large.
11458
11459 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11460 Joe Kerian <jkerian@us.us.ibm.com>
11461
11462 [BZ #2749]
11463 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11464 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11465 (__copysignl): Use signbit() for comparison.
11466 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11467 SET_LDOUBLE_WORDS64.
11468
11469 [BZ #2423, #2749]
11470 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11471 (__ceill): Remove calls to fegetround(), fesetround().
11472 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11473 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11474 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11475
11476 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11477
11478 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11479
11480 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11481
11482 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11483
11484 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11485 demangle pointer.
11486 * csu/libc-start.c: Likewise.
11487
11488 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11489
11490 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11491 really work anyway.
11492
11493 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11494
11495 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11496 users.
11497 (handle_request): Remove unnecessary tests.
11498
11499 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11500
11501 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11502
11503 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11504 workbits in semi-raw fraction.
11505
11506 * math/test-misc.c: Add new tests.
11507
11508 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11509
11510 * math/basic-test.c: Include test-skeleton.c.
11511 (TEST_TRUNC): Define.
11512 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11513 (main): Rename to ...
11514 (do_test): ...this. Run new tests.
11515 (TEST_FUNCTION): Define.
11516
11517 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11518 Joe Kerian <jkerian@us.us.ibm.com>
11519
11520 [BZ #2749]
11521 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11522 handling for high words.
11523 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11524 and overflow for infinity.
11525
11526 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11527
11528 * nscd/connections.c (handle_request): Add a __builtin_expect.
11529
11530 * nscd/connections.c (serv2db): Change type into structure which
11531 also says whether this is a request for data. Renamed to
11532 servinfo. All users changed.
11533 (handle_request): Much simpler test whether we should search the cache.
11534
11535 * nscd/connections.c (handle_request): Fix thinko in selinux test
11536 invocation.
11537
11538 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11539 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11540 it before getting dl_load_lock and then relock.
11541 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11542 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11543 case we unlocked the scope.
11544 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11545 _dl_lookup_symbol_x in case we locked the scope.
11546 (_dl_profile_fixup): Likewise.
11547 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11548 set DL_LOOKUP_SCOPE_LOCK.
11549
11550 2007-01-13 Ulrich Drepper <drepper@redhat.com>
11551
11552 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11553 CFLAGS-getsrvbynpt_r.c.
11554 * nscd/getsrvbynm_r.c: New file.
11555 * nscd/getsrvbypt_r.c: New file.
11556 * nscd/nscd_getserv_r.c: New file.
11557 * nscd/servicescache.c: New file.
11558 * nscd/Makefile (routines): Add nscd_getserv_r.
11559 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11560 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11561 CFLAGS-getsrvbypt_r.c.
11562 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11563 table. Add entries for services database.
11564 * nscd/connections.c (serv2str): Mark as const. Add entries for
11565 services database.
11566 (dbs): Add .reset_res and servdb initialization.
11567 (serv2db): Add entries for services database.
11568 (verify_persistent_db): Accept dbnr == servdb.
11569 (invalidate_cache): Rewrite database name recognition to use a table.
11570 Call res_init() if .reset_res is set for database.
11571 (handle_request): Add code to handle services database.
11572 * nscd/gai.c: Don't define __getservbyname_r.
11573 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11574 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11575 (serv_response_header): Define.
11576 (struct datahead): Add serv_response_header member.
11577 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11578 using table.
11579 * nscd/nscd.conf: Add entries for services database.
11580 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11581 Declare serv_iov_disabled.
11582 Declare addservbyname, readdservbyname, addservbyport, and
11583 readdservbyport.
11584 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
11585 (find_db): Fix error message.
11586 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11587 __nscd_getservbyname_r, and __nscd_getservbyport_r.
11588 * nscd/selinux.c (perms): Add entries for services database.
11589 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11590 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11591
11592 * nscd/grpcache.c: Remove obsolete code. Cleanups.
11593 * nscd/hstcache.c: Likewise.
11594 * nscd/pwdcache.c: Likewise.
11595
11596 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11597 computation of keylen.
11598
11599 * include/string.h: Only redefine strndupa if this is really for
11600 libc code.
11601
11602 2007-01-12 Ulrich Drepper <drepper@redhat.com>
11603
11604 * nscd/nscd_gethst_r.c: Minor cleanups.
11605
11606 * nscd/connections.c (handle_request): Check selinux permissions
11607 for all non-admin commands.
11608
11609 * sysdeps/i386/i486/bits/atomic.h: Define
11610 atomic_compare_and_exchange_val_acq,
11611 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11612 using __sync_* built-ins for gcc >= 4.1.
11613 * sysdeps/x86_64/bits/atomic.h: Likewise.
11614
11615 [BZ #3840]
11616 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11617 and .oS.d files.
11618
11619 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11620
11621 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11622 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11623 (do_test): Check errno and exit(0) if ENOSYS.
11624
11625 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11626
11627 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11628 thousands separators.
11629 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11630 * stdlib/tst-strtod4.c: New test.
11631
11632 [BZ #3855]
11633 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11634 hexadecimal digit should accept just the initial 0.
11635 * stdlib/tst-strtod2.c (tests): New variable.
11636 (do_test): Run several tests rather than just one.
11637
11638 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11639
11640 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11641 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11642
11643 2007-01-10 Ulrich Drepper <drepper@redhat.com>
11644
11645 * io/fts.c: Make sure fts_cur is always valid after return from
11646 fts_read.
11647 Patch by Miloslav Trmac <mitr@redhat.com>.
11648
11649 2006-10-27 Richard Sandiford <richard@codesourcery.com>
11650
11651 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11652 (R_MIPS_NUM): Bump by 1.
11653
11654 2007-01-03 Jakub Jelinek <jakub@redhat.com>
11655
11656 * posix/execvp.c: Include alloca.h.
11657 (allocate_scripts_argv): Renamed to...
11658 (scripts_argv): ... this. Don't allocate buffer here nor count
11659 arguments.
11660 (execvp): Use alloca if possible.
11661 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11662 * posix/tst-vfork3.c: New test.
11663
11664 2007-01-03 Ulrich Drepper <drepper@redhat.com>
11665
11666 * string/Makefile (tst-strxfrm2-ENV): Define.
11667 * stdlib/Makefile (tst-strtod3-ENV): Define.
11668
11669 2007-01-02 Ulrich Drepper <drepper@redhat.com>
11670
11671 * posix/getconf.c: Update copyright year.
11672 * nss/getent.c: Likewise.
11673 * iconv/iconvconfig.c: Likewise.
11674 * iconv/iconv_prog.c: Likewise.
11675 * elf/ldconfig.c: Likewise.
11676 * catgets/gencat.c: Likewise.
11677 * csu/version.c: Likewise.
11678 * elf/ldd.bash.in: Likewise.
11679 * elf/sprof.c (print_version): Likewise.
11680 * locale/programs/locale.c: Likewise.
11681 * locale/programs/localedef.c: Likewise.
11682 * nscd/nscd.c (print_version): Likewise.
11683 * debug/xtrace.sh: Likewise.
11684 * malloc/memusage.sh: Likewise.
11685 * malloc/mtrace.pl: Likewise.
11686 * debug/catchsegv.sh: Likewise.
11687
11688 2006-12-24 Ulrich Drepper <drepper@redhat.com>
11689
11690 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11691 attempts.
11692
11693 2006-12-23 Ulrich Drepper <drepper@redhat.com>
11694
11695 * posix/wordexp.c: Remove some unnecessary tests.
11696
11697 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11698
11699 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11700 blacklist the group till after we look it up.
11701
11702 2006-12-21 Ulrich Drepper <drepper@redhat.com>
11703
11704 * include/atomic.h (atomic_forced_read): New macro.
11705
11706 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11707
11708 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11709
11710 2006-12-19 Jakub Jelinek <jakub@redhat.com>
11711
11712 * nss/getXXbyYY_r.c: Include atomic.h.
11713 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11714 add atomic_write_barrier () in between.
11715
11716 * stdlib/Makefile (tests): Add tst-makecontext.
11717 * stdlib/tst-makecontext.c: New test.
11718
11719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11720 (__makecontext): Don't realign uc_mcontext.uc_regs.
11721
11722 2006-11-28 Jakub Jelinek <jakub@redhat.com>
11723
11724 * elf/dl-support.c: Include dl-procinfo.h.
11725 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11726 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11727 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11728 Define.
11729 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11730 hardcoded constants.
11731 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11732 PPC_PLATFORM_* macros for array designators.
11733
11734 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
11735
11736 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11737 names to the beginning.
11738 (_dl_powerpc_platforms): Add "power6x".
11739 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11740 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11741 (_DL_PLATFORMS_COUNT): Increase.
11742 (_dl_string_platform): Handle power6x case.
11743 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11744 PPC_FEATURE_POWER6_EXT): Define.
11745 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11746
11747 2006-12-18 Jakub Jelinek <jakub@redhat.com>
11748
11749 [BZ #3747]
11750 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11751 [-2^31 .. 2^31) range.
11752 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11753 targets.
11754 * stdlib/tst-rand48-2.c: New test.
11755 * stdlib/Makefile (tests): Add tst-rand48-2.
11756
11757 2006-12-14 Jakub Jelinek <jakub@redhat.com>
11758
11759 * misc/tst-pselect.c (do_test): Fix sigblock argument.
11760
11761 2006-12-14 Ulrich Drepper <drepper@redhat.com>
11762
11763 * misc/tst-pselect.c (do_test): Make sure the helper process is
11764 terminating when the test is aborted.
11765
11766 2006-12-13 Ulrich Drepper <drepper@redhat.com>
11767
11768 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11769 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11770 Handle relatime mount option.
11771
11772 [BZ #2337]
11773 * libio/Makefile (tests): Add tst-setvbuf1.
11774 * libio/tst-setvbuf1.c: New file.
11775
11776 2006-12-08 Jakub Jelinek <jakub@redhat.com>
11777
11778 [BZ #2337]
11779 * libio/genops.c (__uflow): Fix a typo.
11780 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11781 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
11782 the narrow buffer size.
11783
11784 2006-11-24 Jakub Jelinek <jakub@redhat.com>
11785
11786 [BZ #2337]
11787 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11788 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11789 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11790 in _flags.
11791 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11792 _IO_wstr_finish): Likewise.
11793 * libio/wmemstream.c (open_wmemstream): Likewise.
11794 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11795 even for wide streams.
11796
11797 2006-12-13 Jakub Jelinek <jakub@redhat.com>
11798
11799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11800 kernel-features.h.
11801
11802 2006-12-11 Ulrich Drepper <drepper@redhat.com>
11803
11804 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11805 separators also if no non-zero digits found.
11806 * stdlib/Makefile (tests): Add tst-strtod3.
11807
11808 2006-12-09 Ulrich Drepper <drepper@redhat.com>
11809
11810 [BZ #3632]
11811 * include/features.h: Fix comment about default value for
11812 _POSIX_C_SOURCE.
11813
11814 [BZ #3664]
11815 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11816 empty parsed strings.
11817 * stdlib/Makefile (tests): Add tst-strtod2.
11818 * stdlib/tst-strtod2.c: New file.
11819
11820 [BZ #3673]
11821 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11822 computation.
11823 * stdlib/Makefile (tests): Add tst-atof2.
11824 * stdlib/tst-atof2.c: New file.
11825
11826 [BZ #3674]
11827 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11828 correctly if removing trailing zero of hex-float.
11829 * stdlib/Makefile (tests): Add tst-atof1.
11830 * stdlib/tst-atof1.c: New file.
11831
11832 2006-12-09 Jakub Jelinek <jakub@redhat.com>
11833
11834 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11835 Start searching for next comma at p rather than rest.
11836 * misc/Makefile (tests): Add tst-mntent2.
11837 * misc/tst-mntent2.c: New test.
11838
11839 * misc/getusershell.c (initshells): Check for integer overflows.
11840 Make strings buffer one bigger as fgets always succeeds when second
11841 argument is 1. Don't use calloc for shells array. Disallow
11842 / as shell.
11843
11844 2006-12-08 Ulrich Drepper <drepper@redhat.com>
11845
11846 * malloc/memusage.c: Handle realloc with new size of zero and
11847 non-NULL pointer correctly.
11848 (me): Really write first record twice.
11849 (struct entry): Make format bi-arch safe.
11850 (dest): Write out more realloc statistics.
11851 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11852
11853 2006-12-05 Jakub Jelinek <jakub@redhat.com>
11854
11855 * nis/nis_subr.c (nis_getnames): Revert last change.
11856
11857 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11858
11859 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11860 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11861 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11862 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11863 ENOTTY.
11864 * io/Makefile: Add rules to build and run tst-ttyname_r test.
11865 * io/tst-ttyname_r.c: New test.
11866
11867 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11868
11869 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11870
11871 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
11872
11873 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11874 jump table entries.
11875
11876 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
11877
11878 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11879 `clone' function to ensure proper unwinding stop of gdb.
11880 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11881
11882 2006-12-01 Ulrich Drepper <drepper@redhat.com>
11883
11884 * nscd/nscd.init: Remove obsolete and commented-out -S option
11885 handling.
11886
11887 2006-11-23 Jakub Jelinek <jakub@redhat.com>
11888
11889 [BZ #3514]
11890 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11891
11892 [BZ #3515]
11893 * manual/string.texi (strtok): Remove duplicate paragraph.
11894
11895 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11896
11897 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11898 libgcc not supporting `rflags' unwinding (register # >= 17).
11899
11900 2006-11-30 Jakub Jelinek <jakub@redhat.com>
11901
11902 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11903 succeeded.
11904
11905 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
11906 Jakub Jelinek <jakub@redhat.com>
11907 Jan Kratochvil <jan.kratochvil@redhat.com>
11908
11909 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11910 unwind information.
11911 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11912 'restore_rt' even in the 'signal' directory.
11913 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11914
11915 2006-11-27 Jakub Jelinek <jakub@redhat.com>
11916
11917 [BZ #3559]
11918 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11919 malloc crashed. Don't allocate memory unnecessarily in each
11920 loop.
11921
11922 2006-10-21 Jakub Jelinek <jakub@redhat.com>
11923
11924 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11925
11926 2006-11-20 Ulrich Drepper <drepper@redhat.com>
11927
11928 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11929
11930 2006-11-18 Bruno Haible <bruno@clisp.org>
11931
11932 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11933 __sysconf only after having tried to call getgroups32.
11934
11935 2006-11-19 Ulrich Drepper <drepper@redhat.com>
11936
11937 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11938 addresses for IPv4 queries if they can be mapped.
11939
11940 2006-11-16 Jakub Jelinek <jakub@redhat.com>
11941
11942 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11943 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11944 (signmask): Add .size directive.
11945 (othermask): Add .type directive.
11946
11947 2006-11-14 Ulrich Drepper <drepper@redhat.com>
11948
11949 * po/nl.po: Update from translation team.
11950
11951 * timezone/zdump.c: Redo fix for BZ #3137.
11952
11953 2006-11-14 Jakub Jelinek <jakub@redhat.com>
11954
11955 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11956 to first_unused after parsing :include: file.
11957
11958 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11959
11960 * timezone/africa: Update from tzdata2006o.
11961 * timezone/antarctica: Likewise.
11962 * timezone/asia: Likewise.
11963 * timezone/australasia: Likewise.
11964 * timezone/backward: Likewise.
11965 * timezone/europe: Likewise.
11966 * timezone/iso3166.tab: Likewise.
11967 * timezone/northamerica: Likewise.
11968 * timezone/southamerica: Likewise.
11969 * timezone/zone.tab: Likewise.
11970
11971 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11972 on machines with 64-bit time_t.
11973
11974 * timezone/checktab.awk: Update from tzcode2006o.
11975 * timezone/ialloc.c: Likewise.
11976 * timezone/private.h: Likewise.
11977 * timezone/scheck.c: Likewise.
11978 * timezone/tzfile.h: Likewise.
11979 * timezone/tzselect.ksh: Likewise.
11980 * timezone/zdump.c: Likewise.
11981 * timezone/zic.c: Likewise.
11982
11983 [BZ #3483]
11984 * elf/ldconfig.c (main): Call setlocale and textdomain.
11985 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11986
11987 [BZ #3480]
11988 * manual/argp.texi: Fix typos.
11989 * manual/charset.texi: Likewise.
11990 * manual/errno.texi: Likewise.
11991 * manual/filesys.texi: Likewise.
11992 * manual/lang.texi: Likewise.
11993 * manual/maint.texi: Likewise.
11994 * manual/memory.texi: Likewise.
11995 * manual/message.texi: Likewise.
11996 * manual/resource.texi: Likewise.
11997 * manual/search.texi: Likewise.
11998 * manual/signal.texi: Likewise.
11999 * manual/startup.texi: Likewise.
12000 * manual/stdio.texi: Likewise.
12001 * manual/sysinfo.texi: Likewise.
12002 * manual/syslog.texi: Likewise.
12003 * manual/time.texi: Likewise.
12004 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12005
12006 [BZ #3465]
12007 * sunrpc/clnt_raw.c: Minimal message improvements.
12008 * sunrpc/pm_getmaps.c: Likewise.
12009 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12010 * nis/nis_print_group_entry.c: Likewise.
12011 * locale/programs/repertoire.c: Likewise.
12012 * locale/programs/charmap.c: Likewise.
12013 * malloc/memusage.sh: Likewise.
12014 * elf/dl-deps.c: Likewise.
12015 * locale/programs/ld-collate.c: Likewise.
12016 * libio/vswprintf.c: Likewise.
12017 * malloc/memusagestat.c: Likewise.
12018 * sunrpc/auth_unix.c: Likewise.
12019 * sunrpc/rpc_main.c: Likewise.
12020 * nscd/cache.c: Likewise.
12021 * locale/programs/repertoire.c: Unify output messages.
12022 * locale/programs/charmap.c: Likewise.
12023 * locale/programs/ld-ctype.c: Likewise.
12024 * locale/programs/ld-monetary.c: Likewise.
12025 * locale/programs/ld-numeric.c: Likewise.
12026 * locale/programs/ld-time.c: Likewise.
12027 * elf/ldconfig.c: Likewise.
12028 * nscd/selinux.c: Likewise.
12029 * elf/cache.c: Likewise.
12030 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12031
12032 [BZ #3451]
12033 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12034 change atomic.
12035 (ceil): Likewise.
12036
12037 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12038
12039 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12040 if N is one bigger than return value.
12041 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12042 and l1 last arguments, if buf is defined, verify the return value
12043 equals to strlen (buf) and verify no byte beyond passed length
12044 is modified.
12045
12046 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12047
12048 * po/sv.po: Update from translation team.
12049
12050 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12051
12052 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12053 noinline attribute.
12054
12055 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12056
12057 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12058 noinline attribute.
12059
12060 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12061 Use __new_sys_siglist instead of _sys_siglist_internal as
12062 second macro argument.
12063 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12064 strong_alias.
12065
12066 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12067
12068 [BZ #3493]
12069 * posix/unistd.h (sysconf): Remove const attribute.
12070
12071 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12072 temporary or deprecated addresses.
12073 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12074
12075 * string/Makefile (tests): Add tst-strxfrm2.
12076 * string/tst-strxfrm2.c: New file.
12077
12078 2006-10-09 Jakub Jelinek <jakub@redhat.com>
12079
12080 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12081 rather than r->r_brk.
12082
12083 2006-11-08 Jakub Jelinek <jakub@redhat.com>
12084
12085 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12086 optimization even if needed > n.
12087
12088 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12089 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12090 return false, otherwise return true.
12091 (cache_rpath): Return decompose_rpath return value.
12092
12093 2006-11-07 Jakub Jelinek <jakub@redhat.com>
12094
12095 * include/libc-symbols.h (declare_symbol): Rename to...
12096 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12097 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12098 .size directive.
12099 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12100 changes.
12101 * sysdeps/gnu/siglist.c: Likewise.
12102
12103 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12104
12105 * sysdeps/powerpc/fpu/bits/mathinline.h
12106 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12107 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12108
12109 2006-11-05 Ulrich Drepper <drepper@redhat.com>
12110
12111 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12112 Update handling of cache descriptor 0x49 for new models.
12113 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12114 Likewise.
12115
12116 2006-11-02 Jakub Jelinek <jakub@redhat.com>
12117
12118 * malloc/memusage.c (dest): Reset not_me back to false after
12119 printing statistics.
12120
12121 2006-11-02 Ulrich Drepper <drepper@redhat.com>
12122
12123 * configure.in: Work around ld --help change and avoid -z relro
12124 test completely if the architecture doesn't care about security.
12125
12126 2006-11-01 Ulrich Drepper <drepper@redhat.com>
12127
12128 * po/sv.po: Update from translation team.
12129
12130 2006-10-31 Ulrich Drepper <drepper@redhat.com>
12131
12132 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12133 generate compatibility version.
12134
12135 2006-10-29 Ulrich Drepper <drepper@redhat.com>
12136
12137 * configure.in: Relax -z relro requirement a bit.
12138
12139 * po/sv.po: Update from translation team.
12140
12141 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12142
12143 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12144 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12145 * elf/dl-close.c (_dl_close_worker): Likewise.
12146 * elf/dl-open.c (_dl_open_worker): Likewise.
12147 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12148
12149 2006-10-27 Ulrich Drepper <drepper@redhat.com>
12150
12151 * configure.in: Require assembler support for visibility, compiler
12152 support for visibility and aliases, linker support for various -z
12153 options.
12154 * Makeconfig: Remove conditional code which now is unnecessary.
12155 * config.h.in: Likewise.
12156 * config.make.in: Likewise.
12157 * dlfcn/Makefile: Likewise.
12158 * elf/Makefile: Likewise.
12159 * elf/dl-load.c: Likewise.
12160 * elf/rtld.c: Likewise.
12161 * include/libc-symbols.h: Likewise.
12162 * include/stdio.h: Likewise.
12163 * io/Makefile: Likewise.
12164 * io/fstat.c: Likewise.
12165 * io/fstat64.c: Likewise.
12166 * io/fstatat.c: Likewise.
12167 * io/fstatat64.c: Likewise.
12168 * io/lstat.c: Likewise.
12169 * io/lstat64.c: Likewise.
12170 * io/mknod.c: Likewise.
12171 * io/mknodat.c: Likewise.
12172 * io/stat.c: Likewise.
12173 * io/stat64.c: Likewise.
12174 * libio/stdio.c: Likewise.
12175 * nscd/Makefile: Likewise.
12176 * stdlib/Makefile: Likewise.
12177 * stdlib/atexit.c: Likewise.
12178 * sysdeps/generic/ldsodefs.h: Likewise.
12179 * sysdeps/i386/dl-machine.h: Likewise.
12180 * sysdeps/i386/sysdep.h: Likewise.
12181 * sysdeps/i386/i686/memcmp.S: Likewise.
12182 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12183 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12184 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12185
12186 * Makerules: USE_TLS support is now default.
12187 * tls.make.c: Likewise.
12188 * csu/Versions: Likewise.
12189 * csu/libc-start.c: Likewise.
12190 * csu/libc-tls.c: Likewise.
12191 * csu/version.c: Likewise.
12192 * dlfcn/dlinfo.c: Likewise.
12193 * elf/dl-addr.c: Likewise.
12194 * elf/dl-cache.c: Likewise.
12195 * elf/dl-close.c: Likewise.
12196 * elf/dl-iteratephdr.c: Likewise.
12197 * elf/dl-load.c: Likewise.
12198 * elf/dl-lookup.c: Likewise.
12199 * elf/dl-object.c: Likewise.
12200 * elf/dl-open.c: Likewise.
12201 * elf/dl-reloc.c: Likewise.
12202 * elf/dl-support.c: Likewise.
12203 * elf/dl-sym.c: Likewise.
12204 * elf/dl-sysdep.c: Likewise.
12205 * elf/dl-tls.c: Likewise.
12206 * elf/ldconfig.c: Likewise.
12207 * elf/rtld.c: Likewise.
12208 * elf/tst-tls-dlinfo.c: Likewise.
12209 * elf/tst-tls1.c: Likewise.
12210 * elf/tst-tls10.h: Likewise.
12211 * elf/tst-tls14.c: Likewise.
12212 * elf/tst-tls2.c: Likewise.
12213 * elf/tst-tls3.c: Likewise.
12214 * elf/tst-tls4.c: Likewise.
12215 * elf/tst-tls5.c: Likewise.
12216 * elf/tst-tls6.c: Likewise.
12217 * elf/tst-tls7.c: Likewise.
12218 * elf/tst-tls8.c: Likewise.
12219 * elf/tst-tls9.c: Likewise.
12220 * elf/tst-tlsmod1.c: Likewise.
12221 * elf/tst-tlsmod13.c: Likewise.
12222 * elf/tst-tlsmod13a.c: Likewise.
12223 * elf/tst-tlsmod14a.c: Likewise.
12224 * elf/tst-tlsmod2.c: Likewise.
12225 * elf/tst-tlsmod3.c: Likewise.
12226 * elf/tst-tlsmod4.c: Likewise.
12227 * elf/tst-tlsmod5.c: Likewise.
12228 * elf/tst-tlsmod6.c: Likewise.
12229 * include/errno.h: Likewise.
12230 * include/link.h: Likewise.
12231 * include/tls.h: Likewise.
12232 * locale/global-locale.c: Likewise.
12233 * locale/localeinfo.h: Likewise.
12234 * malloc/arena.c: Likewise.
12235 * malloc/hooks.c: Likewise.
12236 * malloc/malloc.c: Likewise.
12237 * resolv/Versions: Likewise.
12238 * sysdeps/alpha/dl-machine.h: Likewise.
12239 * sysdeps/alpha/libc-tls.c: Likewise.
12240 * sysdeps/generic/ldsodefs.h: Likewise.
12241 * sysdeps/generic/tls.h: Likewise.
12242 * sysdeps/i386/dl-machine.h: Likewise.
12243 * sysdeps/ia64/dl-machine.h: Likewise.
12244 * sysdeps/ia64/libc-tls.c: Likewise.
12245 * sysdeps/mach/hurd/fork.c: Likewise.
12246 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12247 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12248 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12249 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12250 * sysdeps/s390/libc-tls.c: Likewise.
12251 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12252 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12253 * sysdeps/sh/dl-machine.h: Likewise.
12254 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12255 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12256 * sysdeps/x86_64/dl-machine.h: Likewise.
12257
12258 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12259 split out locking and parameter checking.
12260 (_dl_close): Call _dl_close_worker after locking and checking.
12261 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12262 _dl_close.
12263 * elf/Makefile: Add rules to build and run tst-thrlock.
12264 * elf/tst-thrlock.c: New file.
12265
12266 [BZ #3426]
12267 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12268 reality.
12269
12270 [BZ #3429]
12271 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12272 we are sure we do not need it anymore for _dl_close. Also move
12273 the asserts inside the lock region.
12274 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12275
12276 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12277
12278 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12279 argument.
12280 (_dl_lookup_symbol_x): Adjust caller.
12281
12282 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12283 _ns_global_scope.
12284 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12285
12286 * elf/dl-libc.c: Revert l_scope name changes.
12287 * elf/dl-load.c: Likewise.
12288 * elf/dl-object.c: Likewise.
12289 * elf/rtld.c: Likewise.
12290 * elf/dl-close.c (_dl_close): Likewise.
12291 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12292 always use __rtld_mrlock_{change,done}. Always free old scope list
12293 here if not l_scope_mem.
12294 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12295 change. Never free scope list here. Just __rtld_mrlock_lock before
12296 the lookup and __rtld_mrlock_unlock it after the lookup.
12297 * elf/dl-sym.c: Likewise.
12298 * include/link.h (struct r_scoperec): Remove.
12299 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12300 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12301
12302 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12303
12304 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12305
12306 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12307
12308 * configure.in: Disable building profile libraries by default.
12309
12310 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12311
12312 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12313 as signed longs, check for x_base + pos overflow.
12314 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12315 * sunrpc/tst-xdrmem2.c: New test.
12316
12317 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12318
12319 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12320 _dl_lookup_symbol_x code.
12321
12322 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12323
12324 * elf/dl-runtime.c: Include sysdep-cancel.h.
12325 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12326 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12327 instead of catomic_* macros.
12328 * elf/dl-sym.c: Include sysdep-cancel.h.
12329 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12330 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12331 * elf/dl-close.c: Include sysdep-cancel.h.
12332 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12333 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12334 * elf/dl-open.c: Include sysdep-cancel.h.
12335 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12336 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12337
12338 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12339
12340 [BZ #3313]
12341 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12342 fastbin rather than end of fastbin array.
12343
12344 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12345
12346 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12347 body macro.
12348 * sysdeps/x86_64/bits/atomic.h
12349 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12350 (catomic_decrement): Use correct body macro.
12351
12352 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12353
12354 * include/atomic.h: Add a unique prefix to all local variables
12355 in macros.
12356 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12357
12358 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12359
12360 [BZ #3369]
12361 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12362 and 7.
12363
12364 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12365
12366 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12367
12368 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12369
12370 [BZ #3313]
12371 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12372 determine highest fast bin to consolidate, always look into all of
12373 them.
12374 (do_check_malloc_state): Only require for empty bins for large
12375 sizes in main arena.
12376
12377 * libio/stdio.h: Add more __wur attributes.
12378
12379 * elf/dl-minimal.c (realloc): Optimize last patch.
12380
12381 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12382
12383 [BZ #3352]
12384 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12385 and use memcpy() if it does.
12386
12387 2006-11-12 Andreas Jaeger <aj@suse.de>
12388
12389 [BZ #2510]
12390 * manual/search.texi (Hash Search Function): Clarify.
12391 (Array Search Function): Clarify.
12392
12393 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12394
12395 [BZ #2830]
12396 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12397 shifting.
12398 * math/atest-exp2.c (read_mpn_hex): Likewise.
12399 * math/atest-sincos.c (main): Likewise.
12400
12401 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12402
12403 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12404 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12405 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12406 version GLIBC_2.6.
12407 * Versions.def: Add GLIBC_2.6 for libc.
12408
12409 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12410
12411 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12412
12413 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12414
12415 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12416
12417 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12418
12419 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12420 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12421
12422 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12423
12424 * include/atomic.c: Define catomic_* operations.
12425 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12426 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12427 * malloc/memusage.c: Likewise.
12428 * gmon/mcount.c: Likewise.
12429 * elf/dl-close.c: Likewise.
12430 * elf/dl-open.c: Likewise.
12431 * elf/dl-profile.c: Likewise.
12432 * elf/dl-sym.c: Likewise.
12433 * elf/dl-runtime.c: Likewise.
12434 * elf/dl-fptr.c: Likewise.
12435 * resolv/res_libc.c: Likewise.
12436
12437 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12438
12439 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12440 components which lack them.
12441
12442 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12443 at least one entry consisting of the parameter concatenated with
12444 the domain.
12445
12446 2006-10-10 Roland McGrath <roland@frob.com>
12447
12448 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12449 * sysdeps/mach/hurd/futimes.c: Likewise.
12450 * sysdeps/mach/hurd/lutimes.c: Likewise.
12451
12452 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12453 Jakub Jelinek <jakub@redhat.com>
12454
12455 Implement reference counting of scope records.
12456 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12457 from the list in objects which remain. Always allocate new scope
12458 record.
12459 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12460 don't resize, allocate a new one.
12461 * elf/dl-runtime.c: Update reference counters before using a scope
12462 array.
12463 * elf/dl-sym.c: Likewise.
12464 * elf/dl-libc.c: Adjust for l_scope name change.
12465 * elf/dl-load.c: Likewise.
12466 * elf/dl-object.c: Likewise.
12467 * elf/rtld.c: Likewise.
12468 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12469 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12470 Add l_scoperec_lock.
12471 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12472 * sysdeps/generic/rtld-lowlevel.h: New file.
12473
12474 * include/atomic.h: Rename atomic_and to atomic_and_val and
12475 atomic_or to atomic_or_val. Define new macros atomic_and and
12476 atomic_or which do not return values.
12477 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12478 Various cleanups.
12479 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12480
12481 * po/sv.po: Update from translation team.
12482
12483 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12484
12485 * Versions.def: Add GLIBC_2.6 to libpthread.
12486
12487 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12488 (versioned_symbol): Likewise.
12489 (compat_symbol): Likewise.
12490
12491 * po/tr.po: Update from translation team.
12492
12493 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12494
12495 * nis/Banner: Removed. It's been integral part forever and the
12496 author info is incomplete anyway.
12497 * libio/Banner: Likewise.
12498
12499 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12500 code, make sure the nis_freeresult call doesn't crash and that the
12501 result is reported correctly.
12502
12503 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12504
12505 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12506 when callback is NULL.
12507
12508 * nis/Versions (libnss_nisplus): Add
12509 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12510 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12511 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12512 _nss_create_tablename): Rename to...
12513 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12514 ... these. No longer static.
12515 (internal_setgrent): Adjust users.
12516 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12517 Don't use locking around _nss_grp_create_tablename call.
12518 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12519
12520 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12521
12522 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12523
12524 2006-10-06 Andreas Jaeger <aj@suse.de>
12525
12526 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12527
12528 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12529
12530 * po/pl.po: Update from translation team.
12531
12532 * nscd/nscd.c (main): Fix typo in message.
12533 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12534
12535 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12536
12537 [BZ #3291]
12538 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12539 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12540 (__sigprocmask): Define.
12541
12542 2006-10-02 Ulrich Drepper <drepper@redhat.com>
12543
12544 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12545 used.
12546
12547 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12548
12549 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12550 in oldtotal and newtotal calculation.
12551 * nscd/nscd-client.h (struct mapped_database): Add datasize
12552 field.
12553 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12554 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12555 increased.
12556 (__nscd_cache_search): Add checks to make sure we never reference
12557 data beyond the current mapping.
12558
12559 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12560
12561 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12562 variables const to avoid compiler warnings.
12563
12564 * io/fts.c (fts_close): Remove redundant checks.
12565 (fts_build): Likewise.
12566 (fts_palloc): Likewise.
12567
12568 * manual/message.texi (Advanced gettext functions,
12569 Using gettextized software): Fix typos.
12570
12571 2006-09-30 Ulrich Drepper <drepper@redhat.com>
12572
12573 * posix/glob.c (glob_in_dir): Add some comments and asserts to
12574 explain why there are no leaks.
12575
12576 2006-09-29 Ulrich Drepper <drepper@redhat.com>
12577
12578 * libio/wmemstream.c: Include <wchar.h>.
12579 * libio/bug-wmemstream1.c: Likewise.
12580 * libio/tst-wmemstream1.c: Likewise.
12581 * libio/tst-wmemstream2.c: Likewise.
12582
12583 * version.h (RELEASE): Bump to 2.5.
12584 * README: Regenerated.
12585
12586 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12587
12588 [BZ #3273]
12589 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12590 found no group members.
12591 Patch by Petr Baudis.
12592
12593 2006-09-29 Jakub Jelinek <jakub@redhat.com>
12594
12595 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12596 assert bootstrap_map.l_tls_modid is zero.
12597 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12598 if USE___THREAD.
12599
12600 2006-09-27 Ulrich Drepper <drepper@redhat.com>
12601
12602 * libio/stdio.h: Move open_wmemstream prototype to ...
12603 * wcsmbs/wchar.h: ... here.
12604
12605 2006-09-25 Jakub Jelinek <jakub@redhat.com>
12606
12607 [BZ #3252]
12608 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12609 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12610 __{,l}chown to handle the rest.
12611 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12612 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12613 __{,l}chown to handle the rest.
12614 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12615 i386/fchownat.c.
12616 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12617 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12618
12619 [BZ #3253]
12620 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12621 time, rather allocate increasingly bigger arrays of pointers, if
12622 possible with alloca, if too large with malloc.
12623
12624 2006-09-24 Jakub Jelinek <jakub@redhat.com>
12625
12626 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12627
12628 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12629
12630 2006-09-24 Ulrich Drepper <drepper@redhat.com>
12631
12632 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12633 home addresses.
12634 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12635 IFA_F_HOMEADDRESS flag for interfaces.
12636 * include/ifaddrs.h (struct in6addrinfo): Define
12637 in6ai_homeaddress.
12638
12639 2006-09-21 Jakub Jelinek <jakub@redhat.com>
12640
12641 [BZ #3225]
12642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12643 PTR_DEMANGLE3): Define.
12644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12645 PTR_DEMANGLE3): Likewise.
12646 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12647 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12648 Likewise.
12649 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12650
12651 2006-09-20 Jakub Jelinek <jakub@redhat.com>
12652
12653 * po/libc.pot: Regenerated.
12654 * po/be.po: Updated.
12655 * po/ca.po: Likewise.
12656 * po/cs.po: Likewise.
12657 * po/da.po: Likewise.
12658 * po/de.po: Likewise.
12659 * po/el.po: Likewise.
12660 * po/en_GB.po: Likewise.
12661 * po/es.po: Likewise.
12662 * po/fi.po: Likewise.
12663 * po/fr.po: Likewise.
12664 * po/gl.po: Likewise.
12665 * po/hr.po: Likewise.
12666 * po/hu.po: Likewise.
12667 * po/ja.po: Likewise.
12668 * po/ko.po: Likewise.
12669 * po/nb.po: Likewise.
12670 * po/nl.po: Likewise.
12671 * po/pl.po: Likewise.
12672 * po/pt_BR.po: Likewise.
12673 * po/ru.po: Likewise.
12674 * po/rw.po: Likewise.
12675 * po/sk.po: Likewise.
12676 * po/sv.po: Likewise.
12677 * po/tr.po: Likewise.
12678 * po/zh_CN.po: Likewise.
12679 * po/zh_TW.po: Likewise.
12680
12681 [BZ #3137]
12682 * iconv/iconv_prog.c (main): Fix spelling in error message.
12683 * iconv/iconvconfig.c (main): Likewise.
12684 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12685 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12686 * locale/programs/localedef.c (main): Likewise.
12687 * locale/programs/repertoire.c (repertoire_read): Likewise.
12688 * timezone/zdump.c (main): Likewise.
12689 * nscd/connections.c (handle_request): Fix spelling in log message.
12690 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12691
12692 2006-09-20 Ulrich Drepper <drepper@redhat.com>
12693
12694 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12695 interfaces.
12696
12697 2006-09-20 Andreas Jaeger <aj@suse.de>
12698
12699 * math/libm-test.inc (lrint_test_upward): Fix typo.
12700
12701 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12702
12703 [BZ #2592]
12704 * math/libm-test.inc (lrint_test_tonearest): New function.
12705 (lrint_test_towardzero): New function.
12706 (lrint_test_downward): New function.
12707 (lrint_test_upward): New function.
12708 (main): Run these new tests.
12709 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12710 of values near to 0.
12711 (two52): Use double not long double.
12712 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12713 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12714 (two23): Use float not double.
12715 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12716 (two23): Use float not double.
12717 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12718 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12719 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12720 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12721
12722 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12723
12724 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12725 Cast sp to unsigned long to avoid compiler warning.
12726 Use __makecontext_ret function instead of a trampoline on the stack.
12727 (__makecontext_ret): New function.
12728 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12729
12730 2006-09-19 Jakub Jelinek <jakub@redhat.com>
12731
12732 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12733 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12734 bits.
12735
12736 2006-09-19 Ulrich Drepper <drepper@redhat.com>
12737
12738 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12739 sure no reference to the unloaded map's search list remains in the
12740 dependency's scope.
12741
12742 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12743
12744 * elf/Makefile: Add rules to build and run unload7 test.
12745 * elf/unload7.c: New test.
12746 * elf/unload7mod1.c: New file.
12747 * elf/unload7mod2.c: New file.
12748
12749 2006-09-18 Jakub Jelinek <jakub@redhat.com>
12750
12751 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12752 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12753 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12754 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12755 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12756 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12757 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12758 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12759 PTRACE_GETEVENTMSG): Likewise.
12760 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12761 values.
12762
12763 2006-09-17 Mike Frysinger <vapier@gentoo.org>
12764
12765 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12766 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12767 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12768 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12769
12770 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12771
12772 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12773 write '\0' to the fd.
12774 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12775 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12776 Change regs to unsigned long pointer from unsigned int, fix fscr
12777 offset.
12778
12779 2006-09-14 Jakub Jelinek <jakub@redhat.com>
12780
12781 * io/Makefile (CFLAGS-fstatat.c): Set.
12782 (CFLAGS-fstatat64.c): Likewise.
12783 (CFLAGS-mknodat.c): Likewise.
12784
12785 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12786 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12787 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12788 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12789
12790 2006-09-14 Jakub Jelinek <jakub@redhat.com>
12791 Steven Munroe <sjmunroe@us.ibm.com>
12792
12793 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12794 names to the beginning. Rename "cell" to "cellbe".
12795 (_dl_powerpc_platforms): New.
12796 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12797 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12798 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12799 (_DL_HWCAP_PLATFORM): Define to new mask.
12800 (_dl_platform_string, _dl_string_platform): New functions.
12801 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12802 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12803
12804 2006-09-12 Jakub Jelinek <jakub@redhat.com>
12805
12806 [BZ #2526]
12807 * README.libm: Fix a thinko in sqrt algorithm description.
12808
12809 [BZ #3143]
12810 * manual/string.texi (argz_delete): Fix prototype.
12811 Patch by <alpt@freaknet.org>.
12812
12813 2006-08-26 Joseph Myers <joseph@codesourcery.com>
12814
12815 [BZ #3138]
12816 * io/test-lfs.c (do_prepare): Give name_len type size_t.
12817 * io/tst-fcntl.c (do_prepare): Likewise.
12818 * posix/tst-exec.c (do_prepare): Likewise.
12819 * posix/tst-preadwrite.c (do_prepare): Likewise.
12820 * posix/tst-spawn.c (do_prepare): Likewise.
12821 * posix/tst-truncate.c (do_prepare): Likewise.
12822 * rt/tst-aio.c (do_prepare): Likewise.
12823 * rt/tst-aio64.c (do_prepare): Likewise.
12824 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12825 size_t.
12826
12827 2006-09-09 Ulrich Drepper <drepper@redhat.com>
12828
12829 [BZ #2821]
12830 * time/mktime.c (guess_time_tm): Fix overflow detection.
12831 * time/Makefile (tests): Add bug-mktime1.
12832 * time/bug-mktime1.c: New file.
12833
12834 [BZ #3189, #3188]
12835 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12836 (mremap): Likewise.
12837
12838 2006-09-07 Jakub Jelinek <jakub@redhat.com>
12839
12840 [BZ #1006]
12841 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12842 Ensure relocation doesn't clobber any bits outside of the
12843 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12844 R_SPARC_HI22 and R_SPARC_H44.
12845
12846 [BZ #2775]
12847 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12848 (long) (MINSIZE + nb - old_size) is positive.
12849
12850 * malloc/arena.c (grow_heap): When growing bail even if new_size
12851 is negative.
12852
12853 [BZ #3155]
12854 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12855 stack below r1.
12856
12857 2006-09-06 Jakub Jelinek <jakub@redhat.com>
12858
12859 * posix/regex_internal.c (re_string_reconstruct): Handle
12860 offset < pstr->valid_raw_len && pstr->offsets_needed case.
12861 Ensure no bytes read before raw_mbs array. Pass a saved copy of
12862 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12863 re_string_context_at.
12864 * posix/Makefile: Add rules to build and run bug-regex26 test.
12865 * posix/bug-regex26.c: New test.
12866
12867 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12868 rather than col_sym_free. Move seqp declaration earlier.
12869
12870 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12871
12872 2006-09-05 Jakub Jelinek <jakub@redhat.com>
12873
12874 * nscd/initgrcache.c (addinitgroupsX): Move any_success
12875 decl before first goto out.
12876
12877 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12878
12879 * Makerules (shlib.lds): If have-hash-style, put .hash section
12880 at the end of the RO segment.
12881
12882 2006-09-04 Ulrich Drepper <drepper@redhat.com>
12883
12884 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12885 style hash table format is used.
12886
12887 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12888
12889 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12890 randomization rather than before.
12891 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12892
12893 2006-08-31 Jakub Jelinek <jakub@redhat.com>
12894
12895 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12896
12897 * malloc/malloc.c (_int_malloc): Use full list insert and not
12898 shortcut which assumes the list is empty for large requests
12899 too.
12900
12901 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12902
12903 2006-08-30 Jakub Jelinek <jakub@redhat.com>
12904
12905 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12906 and offout arguments to the prototype.
12907 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12908 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12909 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12910 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12911 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12912 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12913 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12914 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12915
12916 2006-08-28 Ulrich Drepper <drepper@redhat.com>
12917
12918 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12919
12920 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12921 dlopen parameters.
12922
12923 2006-08-28 Jakub Jelinek <jakub@redhat.com>
12924
12925 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12926 only if herrno is NETDB_INTERNAL. Handle errors other than
12927 ERANGE outside of the loops, handle TRY_AGAIN.
12928
12929 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12930 if other's ctype category was missing.
12931 * locale/programs/ld-collate.c (collate_read): Return if
12932 copy_locale's collate category is missing.
12933
12934 2006-08-27 Ulrich Drepper <drepper@redhat.com>
12935
12936 [BZ #2684]
12937 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12938 arenas if allocation failed.
12939 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12940
12941 2006-08-26 Ulrich Drepper <drepper@redhat.com>
12942
12943 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12944 waste bins[0..1].
12945 (malloc_state): Reduce bins size by 2.
12946 (_int_malloc): Fix test for large enough buffer for early termination.
12947 When no unsorted block matches perfectly and an exiting block has
12948 to be split, use full list insert and not shortcut which assumes
12949 the list is empty.
12950
12951 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12952 failure.
12953
12954 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12955
12956 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12957 do anything.
12958
12959 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12960 symbol require exact match (these are PLTs).
12961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12962 (_dl_ppc64_addr_sym_match): Likewise.
12963
12964 [BZ #2683]
12965 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12966 If symbol has a value use it.
12967 * elf/tst-dladdr1.c: New file.
12968 * elf/Makefile: Add rules to build and run tst-addr1.
12969
12970 2006-08-24 Jakub Jelinek <jakub@redhat.com>
12971
12972 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12973 keeps failing and heap growth or new heap creation isn't
12974 successful either.
12975 * malloc/tst-malloc.c (main): Add new tests.
12976
12977 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12978
12979 [BZ #2734]
12980 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12981 as in the x86-64 code to use bswap.
12982
12983 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12984
12985 [BZ #2680]
12986 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12987 __USE_UNIX98.
12988 * posix/bits/unistd.h: Likewise.
12989
12990 2006-05-15 Mike Frysinger <vapier@gentoo.org>
12991
12992 [BZ #2751]
12993 * string/strchr.c: Add cast to avoid warning.
12994
12995 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12996
12997 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12998 platforms define as 512K. For 64-bit platforms as 32MB. The lower
12999 limit is needed to avoid the exploding of the address space
13000 requirement for secondary heaps.
13001 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13002 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13003
13004 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13005
13006 [BZ #3018]
13007 * Makerules (depfiles): Handle extra-test-objs the same as
13008 extra-objs.
13009 (common-mostlyclean): Likewise.
13010 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13011 instead.
13012 * elf/Makefile (extra-objs): Likewise.
13013 * stdlib/Makefile (extra-objs): Likewise.
13014
13015 2006-08-14 Eric Blake <ebb9@byu.net>
13016
13017 [BZ #3044]
13018 * misc/error.h: Assume C89 or better.
13019 * misc/error.c: Likewise.
13020
13021 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13022
13023 [BZ #3040]
13024 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13025 __ASSUME_ATFCTS is defined.
13026
13027 2006-08-19 Ulrich Drepper <drepper@redhat.com>
13028
13029 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13030 to sort in each call.
13031
13032 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13033 is empty simply return and use next service.
13034 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13035
13036 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13037 tells us when not finding a charmap file is an error.
13038 * locale/programs/charmap.h: Adjust charmap_read prototype.
13039 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13040 cannot find a charmap.
13041 * locale/programs/localedef.c (main): Adjust charmap_read call.
13042
13043 2006-08-15 Jakub Jelinek <jakub@redhat.com>
13044
13045 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13046 sysdeps/posix/pause.c implementation instead.
13047
13048 2006-08-09 Jakub Jelinek <jakub@redhat.com>
13049
13050 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13051 to EPERM.
13052
13053 2006-08-13 Andreas Schwab <schwab@suse.de>
13054
13055 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13056 Don't clobber caller's LRSAVE.
13057 (_dl_prof_resolve): Likewise.
13058
13059 2006-08-14 Ulrich Drepper <drepper@redhat.com>
13060
13061 [BZ #1996]
13062 * libio/memstream.c (open_memstream): Allocate initial buffer with
13063 calloc.
13064 * libio/wmemstream.c (open_wmemstream): Likewise.
13065 * libio/strops.c: Pretty printing.
13066 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13067 (enlarge_userbuf): New function.
13068 (_IO_str_seekoff): Call it if seek position is larger than current
13069 buffer.
13070 * libio/wstrops.c: Likewise.
13071 * libio/vasprintf.c: Add comment as to why we do not have to use
13072 calloc instead of malloc to allocate initial buffer.
13073 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13074 * libio/bug-memstream1.c: New file.
13075 * libio/bug-wmemstream1.c: New file.
13076
13077 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13078
13079 * libio/wstrops.c: Remove dead macro definitions and comments.
13080 * libio/strops.c: Likewise.
13081
13082 [BZ #2764]
13083 * login/utmpname.c (__utmpname): Remove unnecessary test.
13084
13085 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13086
13087 [BZ #2832]
13088 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13089 0s from integers.
13090
13091 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13092
13093 [BZ #2987]
13094 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13095 for CPU clocks.
13096 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13097 setting of CPU clocks.
13098
13099 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13100
13101 [BZ #2841]
13102 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13103 since C99 requires the result to promote to 'int' when uint_least8_t
13104 and uint_least16_t promote to 'int'.
13105
13106 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13107
13108 [BZ #3013]
13109 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13110 lenght of one output field, correct bitmask creation.
13111 * locale/programs/ld-time.c: Add alignment.
13112
13113 [BZ #2997]
13114 * misc/error.c: Add space between program name and message if file
13115 name is missing.
13116
13117 2006-08-03 Eric Blake <ebb9@byu.net>
13118
13119 [BZ #2998]
13120 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13121
13122 2006-08-09 Ulrich Drepper <drepper@redhat.com>
13123
13124 * malloc/memusagestat.c: Silence warnings.
13125
13126 * malloc/malloc.c: Dynamically size mmap treshold if the program
13127 frees mmaped blocks.
13128 Patch by Valerie Henson and Arjan van de Ven.
13129
13130 2006-08-08 Jakub Jelinek <jakub@redhat.com>
13131
13132 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13133 __USE_GNU.
13134
13135 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13136 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13137 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13138 Only provide var definitions in strtol_l (or for *ull*
13139 in strtoll_l).
13140
13141 * stdio-common/bug16.c (tests): New array.
13142 (do_tests): Allow the first hexadecimal digit
13143 to be 1, 2, 4 or 8. Do 3 additional tests.
13144
13145 * sysdeps/s390/fpu/libm-test-ulps: Update.
13146
13147 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13148 fchownat syscall if available.
13149 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13150 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13151 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13152
13153 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13154
13155 * nis/nis_xdr.c: Avoid some function calls.
13156
13157 2006-08-07 Jakub Jelinek <jakub@redhat.com>
13158 Ulrich Drepper <drepper@redhat.com>
13159
13160 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13161 short cut if only one name component is stripped away.
13162
13163 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13164
13165 * nis/nis_call.c: Minor cleanups throughout.
13166 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13167 (first_shoot): Add search_parent_first parameter. Only if it is set
13168 search parent server first.
13169 If directory for table found through cold start cache is not the same
13170 as referenced in the cache, don't use it.
13171 (__nisfind_server): Take additional parameter. Pass it on to
13172 first_shoot.
13173 (__prepare_niscall): Adjust __nisfind_server call.
13174 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13175 * nis/nis_table.c: Adjust __nisfind_server call.
13176 * nis/nis_lookup.c: Likewise.
13177 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13178
13179 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13180
13181 [BZ #2182]
13182 * math/s_cacosh.c: Return values from positive branch.
13183 * math/s_cacoshf.c: Likewise.
13184 * math/s_cacoshl.c: Likewise.
13185
13186 [BZ #2883]
13187 * sysvipc/sys/msg.h: Change return value to ssize_t.
13188 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13189 * sysvipc/msgrcv.c: Likewise.
13190 * include/sys/msg.h: Likewise.
13191
13192 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13193 test introduced in patch for bz #661.
13194 (getgrouplist): Simplify code a bit. Don't allocate one additional
13195 element for NEWGROUPS.
13196
13197 [BZ #2908]
13198 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13199 'f', use '1' as leading digit not '\1'.
13200 * stdio-common/Makefile (tests): Add bug16.
13201 * stdio-common/bug16.c: New file.
13202
13203 [BZ #2914]
13204 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13205 and don't try to open it. The patch introducing the macro
13206 contained a bug and used the same file name as the new file
13207 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13208 this out completely.
13209
13210 [BZ #2926]
13211 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13212 Patch by Jerry James <Jerry.James@usu.edu>.
13213
13214 * rt/Makefile (tests): Add tst-clock2.
13215 * rt/tst-clock2.c: New file.
13216
13217 [BZ #2978]
13218 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13219 function and its parameters and pass it to new thread.
13220 (__gai_notify): Add support for alternative waiting for completion.
13221 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13222 waiting for completion.
13223 * resolv/getaddrinfo_a.c: Likewise.
13224 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13225 waiting for completion is used.
13226 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13227 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13228 * resolv/gai_error.c: Likewise.
13229 * resolv/gai_sigqueue.c: Likewise.
13230
13231 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13232
13233 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13234 errno to EBADF and return MACH_PORT_NULL.
13235
13236 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13237
13238 [BZ #2980]
13239 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13240
13241 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13242
13243 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13244 walk them instead of the symbol table.
13245
13246 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13247
13248 [BZ #2098]
13249 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13250 status of NSS calls, not the number of returned entries.
13251
13252 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13253 request_key, keyctl.
13254
13255 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13256
13257 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13258
13259 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13260
13261 * elf/tst-auditmod1.c: Fix typo in #error.
13262
13263 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13264
13265 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13266
13267 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13268
13269 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13270
13271 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13272 that the directory is empty even on non-POSIX filesystems.
13273
13274 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13275
13276 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13277
13278 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13279 the backend NSS module. If backend setgrent call failed, don't have
13280 internal_setgrent fail. Just remember this until it is needed.
13281 * nis/nss_compat/compat-pwd.c: Likewise.
13282 * nis/nss_compat/compat-spwd.c: Likewise.
13283
13284 2006-07-30 Roland McGrath <roland@redhat.com>
13285
13286 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13287 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13288 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13289 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13290
13291 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13292 (nanosleep_not_cancel): New macro.
13293 (sigsuspend_not_cancel): new macro.
13294 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13295 (do_sigsuspend): Define as inline.
13296 (__sigsuspend): Always use do_sigsuspend.
13297 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13298 * include/signal.h: Declare __sigsuspend_nocancel.
13299 * sysdeps/posix/pause.c
13300 [! NO_CANCELLATION] (__pause_nocancel): New function.
13301
13302 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13303 * include/time.h (__nanosleep_nocancel): Likewise.
13304
13305 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13306
13307 * locale/programs/localedef.c (add_to_readlist): Rename local
13308 variables to avoid confusion.
13309
13310 * locale/programs/charmap.c (charmap_read): Emit error message if
13311 charmap couldn't be found or read.
13312
13313 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13314
13315 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13316 __ASSUME_FUTEX_LOCK_PI.
13317 * include/time.h: Declare __nanosleep_nocancel.
13318 * include/unistd.h: Declare __pause_nocancel.
13319
13320 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13321 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13322 get the __stack_chk_fail_local definition when it's needed.
13323
13324 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13325
13326 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13327 * dlfcn/bug-atexit3.c: New file.
13328 * dlfcn/bug-atexit3-lib.cc: New file.
13329
13330 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13331 used when the namespace is not the base namespace.
13332
13333 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13334
13335 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13336 (__new_exitfn): Bump it in every successful call.
13337 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13338 more exit handlers, call them right away.
13339 * stdlib/exit.h: Declare __new_exitfn_called.
13340
13341 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13342
13343 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13344 calling registered handler.
13345
13346 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13347 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13348 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13349 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13350 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13351 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13352 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13353 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13354
13355 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13356
13357 * elf/dl-lookup.c (dl_new_hash): New functions.
13358 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13359 value here. Compute new-style hash value. Pass new hash value
13360 and reference to variable with the old value to do_lookup_x.
13361 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13362 old-style hash table.
13363 (_dl_debug_bindings): Pass new hash value and reference to variable
13364 with the old value to do_lookup_x.
13365 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13366 new-style hash value and change old-style hash value parameter to
13367 be a reference. Reoganize functions to determine whether
13368 new-style hash table is available. Only fall back on old-style
13369 table. If old-style hash value is needed, compute it here.
13370 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13371 entry.
13372 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13373 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13374 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13375 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13376 * Makeconfig: If linker supports --hash-style option add it to all
13377 linker command lines to build DSOs.
13378 * config.make.in: Define have-hash-style.
13379 * configure.in: Test whether linker supports --hash-style option.
13380
13381 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13382 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13383
13384 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13385
13386 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13387 auditing.
13388
13389 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13390 RPATH of main map twice.
13391
13392 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13393
13394 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13395 look further, return original strings.
13396 (_nl_find_msg): Do not return found translation if the conversion
13397 failed. Either signal the string is unusable or that something went
13398 wrong and the original should be used.
13399
13400 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13401
13402 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13403
13404 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13405
13406 [BZ #2766]
13407 * misc/insremque.c (insque): Handle prev == NULL.
13408 * misc/Makefile (tests): Add tst-insremque.
13409 * misc/tst-insremque.c: New test.
13410
13411 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13412
13413 [BZ #2792]
13414 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13415 conflict with DL_DST_REQUIRED.
13416
13417 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13418
13419 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13420 match what Solaris does.
13421
13422 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13423
13424 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13425 local_setegid instead of seteuid and setegid.
13426 * sysdeps/generic/local-setxid.h: New file.
13427 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13428
13429 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13430
13431 * string/Makefile (tests): Add bug-envz1.
13432 * string/bug-envz1.c: New file.
13433
13434 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13435
13436 * posix/regex_internal.c (re_string_skip_chars): If no character has
13437 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13438 to the byte which couldn't be converted.
13439 (re_string_reconstruct): Don't clear valid_raw_len before calling
13440 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13441 tip_context using re_string_context_at.
13442 * posix/Makefile: Add rules to build and run bug-regex25 test.
13443 * posix/bug-regex25.c: New test.
13444
13445 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13446
13447 [BZ #2703]
13448 * string/envz.c (envz_strip): Correct erroneously reversed src
13449 and dest parameters to memmove() invocation.
13450
13451 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13452
13453 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13454 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13455 to make sure the database has been already invalidated.
13456 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13457 after the cache has been invalidated. Use pthread_mutex_lock rather
13458 than pthread_mutex_trylock if fd != -1.
13459 * nscd/connections.c (invalidate_cache): Add fd argument, write
13460 response to fd if not calling prune_cache, pass fd to prune_cache.
13461 (handle_request): Adjust invalidate_cache caller.
13462 (nscd_run): Pass -1 as fd to prune_cache.
13463
13464 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13465
13466 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13467 the correct place.
13468
13469 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13470
13471 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13472 * nscd/cache.c (prune_cache): Take prunelock before starting the
13473 work. Just return in case it is already taken.
13474 * nscd/connections.c (dbs): Initialize .prunelock.
13475
13476 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13477
13478 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13479 copying. No need to allocate new array for group members. Just
13480 move the pointers and update the size.
13481
13482 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13483 Avoid memory leak in case realloc fails. Simplification for
13484 better code generation.
13485
13486 Avoid deprecation warning because of libc_hidden_proto for
13487 inet6_option_alloc.
13488 * inet/inet6_option.c (option_alloc): Renamed from
13489 inet6_option_alloc. Made static.
13490 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13491 (inet6_option_append): Call option_alloc.
13492 * include/netinet/in.h: Remove libc_hidden_proto for
13493 inet6_option_alloc.
13494
13495 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13496 for cleanup when cb!=NULL [Coverity CID 233].
13497
13498 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13499
13500 [BZ #2693]
13501 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13502 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13503 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13504 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13505 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13506 and inet6_rth_getaddr.
13507 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13508 array.
13509 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13510 Mark inet6_option_* interfaces as deprecated.
13511 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13512 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13513 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13514 inet6_rth_segments, and inet6_rth_getaddr.
13515 * inet/inet6_opt.c: New file.
13516 * inet/inet6_rth.c: New file.
13517
13518 * inet/netinet/icmp6.h: Pretty printing.
13519
13520 [BZ #2683]
13521 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13522
13523 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13524
13525 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13526 doing it all here. When server does not know the answer do not
13527 fail immediate, try parent first.
13528
13529 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13530 overflow test.
13531
13532 2006-05-20 Ulrich Drepper <drepper@redhat.com>
13533
13534 * nis/nis_call.c (__prepare_niscall): New function. Split out
13535 from __do_niscall.
13536 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13537 and exported.
13538 (__follow_path): New function. Split out from nis_list.
13539 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13540 _xdr_nis_result.
13541 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13542 _xdr_nis_result.
13543 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13544 and __follow_path.
13545 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13546 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13547 from libnsl for version GLIBC_PRIVATE.
13548 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13549 Remove entry parameter from _nss_nisplus_parse_pwent and
13550 _nss_nisplus_parse_grent.
13551 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13552 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13553 again. Rewrite getpwent handling to not use nis_first_entry and
13554 nis_next_entry. Roll out own niscall handling.
13555 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13556
13557 * sunrpc/xdr_rec.c: Fix typo in comment.
13558
13559 2006-05-19 Ulrich Drepper <drepper@redhat.com>
13560
13561 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13562 handling.
13563
13564 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13565 to allocate memory for my_pollfd. Better initialization of
13566 cb_is_running. Use TEMP_FAILURE_RETRY.
13567
13568 * malloc/memusage.sh (memusageso): Add quotes.
13569 (memusagestat): Likewise.
13570 * debug/xtrace.sh (pcprofileso): Likewise.
13571 (pcprofiledump): Likewise.
13572 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13573 replacement.
13574 * malloc/Makefile ($(objpfx)memusage): Likewise.
13575
13576 * nis/nis_callback.c (__nis_create_callback): Calls to
13577 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
13578 asprintf call fails.
13579
13580 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13581 no uninitialized memory is passed to sendto.
13582
13583 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13584
13585 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13586 of snprintf+strdup. Handle OOM.
13587 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13588 cb->serv together. Remove now obsolete free calls.
13589 (__nis_destroy_callback): Remove now obsolete free call.
13590
13591 2006-05-18 David Woodhouse <dwmw2@redhat.com>
13592
13593 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13594 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13595 and ULA respectively). Set precedence for IPv4 address to 10 as
13596 defined in RFC3484 for preferring IPv6.
13597 * posix/gai.conf: Update to match the new default tables.
13598
13599 2006-05-18 Jakub Jelinek <jakub@redhat.com>
13600
13601 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13602 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13603 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13604 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13605
13606 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13607 Removed.
13608 (init_nss_interface): Remove initialization of these variables.
13609
13610 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13611
13612 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13613 nis_free_directory forward to avoid duplication.
13614
13615 2006-05-17 Ulrich Drepper <drepper@redhat.com>
13616
13617 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13618 rec_dirsearch returning NULL.
13619 (first_shoot): Handle __nis_finddirectory returning NULL.
13620 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13621
13622 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13623 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13624
13625 2006-05-17 Jakub Jelinek <jakub@redhat.com>
13626
13627 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13628 pid changed.
13629
13630 2006-05-15 Ulrich Drepper <drepper@redhat.com>
13631
13632 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13633
13634 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13635 * nscd/nscd_getgr_r.c: Likewise.
13636
13637 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13638
13639 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13640 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13641
13642 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13643
13644 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13645
13646 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13647
13648 * include/rpc/auth.h: Mark xdr_des_block_internal and
13649 xdr_opaque_auth_internal as hidden.
13650
13651 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13652 hidden.
13653
13654 * include/rpc/xdr.h: Mark all _internal functions as hidden.
13655
13656 * misc/getusershell.c (okshells): Don't use static initializers,
13657 do it dynamically.
13658
13659 * stdlib/fmtmsg.c (keywords): Change type of len element to
13660 uint32_t to not waste space on 64bit machines.
13661
13662 * locale/setlocale.c: Change _nl_category_names into a string.
13663 Add new _nl_category_name_idxs. Change all users.
13664 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13665 Declare _nl_category_name_idxs.
13666 * locale/findlocale.c: Adjust for _nl_category_names change.
13667 * locale/loadlocale.c: Likewise.
13668 * locale/newlocale.c: Likewise.
13669 * intl/dcigettext.c: Likewise.
13670
13671 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13672 (add_alias2): ...here. New function.
13673 (__gconv_read_conf): Simplify builtin alias handling.
13674 (builtin_aliases): Convert to string to avoid relocations.
13675 * iconv/gconv_builtin.h: Add comment about correct formatting.
13676
13677 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13678
13679 * resolv/res_debug.c (loc_ntoa): Make error const.
13680
13681 2006-05-14 Andreas Schwab <schwab@suse.de>
13682
13683 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13684
13685 2006-05-12 Jakub Jelinek <jakub@redhat.com>
13686
13687 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13688 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13689 sizeof (cpu_set_t).
13690
13691 2006-05-11 Ulrich Drepper <drepper@redhat.com>
13692
13693 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13694
13695 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13696
13697 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13698 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13699
13700 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13701 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13702
13703 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13704 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13705 xdr_cback_data.
13706
13707 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13708 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13709 xdr_ypupdate_args.
13710
13711 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13712 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13713
13714 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13715 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13716
13717 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13718 * include/rpcsvc/nis_callback.h: New file.
13719
13720 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13721 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13722
13723 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13724 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13725
13726 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13727 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13728
13729 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13730 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13731
13732 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13733 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13734 xdr_ypdelete_args.
13735
13736 * nis/nis_xdr.h: Mark all functions as hidden. Remove
13737 __BEGIN_DECLS and __END_DECLS, the header is not installed.
13738
13739 * nis/nis_error.c: Remove table of strings. Use position
13740 independent mechanism.
13741 * nis/nis_error.h: New file.
13742
13743 2006-05-11 Jakub Jelinek <jakub@redhat.com>
13744
13745 * locale/programs/ld-time.c (time_finish): If wide era name or
13746 format aren't provided, set both wname and wformat to L"".
13747
13748 2006-05-10 Ulrich Drepper <drepper@redhat.com>
13749
13750 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13751 results if the call was succesful.
13752
13753 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13754
13755 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13756 as hidden.
13757
13758 2006-05-10 Jakub Jelinek <jakub@redhat.com>
13759
13760 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13761
13762 2006-05-10 Ulrich Drepper <drepper@redhat.com>
13763
13764 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13765 caller makes sure this is not the case.
13766 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
13767
13768 2006-05-09 Ulrich Drepper <drepper@redhat.com>
13769
13770 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13771 calls.
13772
13773 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13774 [Coverity CID 229, 230]
13775
13776 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13777 DGETTEXT calls.
13778 (hol_help): Likewise. [Coverity CID 226, 227]
13779
13780 * string/argz-replace.c (__argz_replace): Unconditionally call
13781 free on SRC. [Coverity CID 225]
13782
13783 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13784 the return value of __nis_default_owner and __nis_default_group,
13785 it has been especially allocated. [Coverity CID 224]
13786
13787 * nis/nis_defaults.c (searchXYX): New functions. Used by both
13788 searchgroup and searchowner. Significantly simplified.
13789 (__nis_default_owner): Remove duplication. Do not locally copy the
13790 string before duplicating it.
13791 (__nis_default_group): Likewise.
13792
13793 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13794 we must clear the variable before calling __nisfind_server.
13795
13796 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13797 nis_getnames. [Coverity CID 223]
13798
13799 * locale/programs/locfile.c (locfile_read): Use alloca instead of
13800 xmalloc to allocate local repertoire name. [Coverity CID 222]
13801
13802 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13803 allocate memory for the input to add_bytes. [Coverity CID 221]
13804
13805 * posix/wordexp.c (w_addword): Free word if realloc fails and it
13806 was allocated here. [Coverity CID 219, 220]
13807
13808 * posix/getconf.c (print_all): Free confstr data after printing.
13809 [Coverity CID 218]
13810
13811 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13812 list allocation fails. [Coverity CID 215]
13813
13814 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13815 [Coverity CID 213]
13816
13817 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13818 string is NULL. [Coverity CID 212]
13819 * argp/Makefile: Add rules to build and run bug-argp1.
13820 * argp/bug-argp1.c: New file.
13821
13822 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13823 end of string.
13824 * stdlib/canonicalize.c (__realpath): Likewise.
13825
13826 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13827 pointer. [Coverity CID 206]
13828
13829 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13830 in statically linked code.
13831 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13832 statically built code, be prepared to have no link map.
13833 [Coverity CID 205]
13834
13835 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13836 dgettext calls. [Coverity CID 204]
13837
13838 * argp/argp-help.c (struct uparams): Remove valid member. Change
13839 the one user.
13840 (uparam_names): Reduce size. Avoid relative relocations.
13841 Moved to read-only segment.
13842 (fill_in_uparams): Update for new layout.
13843
13844 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13845 assumed to always be != NULL. [Coverity CID 202]
13846
13847 * argp/argp-help.c (hol_entry_help): Remove some dead code
13848 [Coverity CID 200].
13849
13850 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13851 away a few more unconditional yperr2nss calls.
13852 (_nss_nis_getservbyname_r): Likewise.
13853
13854 2006-05-06 Ulrich Drepper <drepper@redhat.com>
13855
13856 * sysdeps/generic/ldsodefs.h: Remove support for non-core
13857 architectures.
13858
13859 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13860 that unused memory passed to sendto is nevertheless initialized.
13861
13862 [BZ #2499]
13863 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13864 possibly unaligned memory accesses.
13865
13866 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13867 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13868 and __putlong respectively. Correct buffer overflow check for
13869 NS_NOTIFY_OP.
13870
13871 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13872
13873 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13874 (send_dg): Rewrite error handling to be more compact and avoid
13875 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
13876
13877 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13878
13879 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13880 instead of ns_get16.
13881 (res_queriesmatch): Likewise. Minor optimization.
13882
13883 [BZ #2499]
13884 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13885 __libc_res_nsend might reallocate the buffer for the answer. In
13886 this case we have to reload the HP pointer.
13887
13888 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13889
13890 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
13891 some branch prediction hints.
13892
13893 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13894 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13895 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13896 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13897 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13898 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13899 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13900 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13901
13902 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
13903
13904 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13905 by a GOT relocation to make Scrt1.o position independent.
13906 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13907
13908 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13909 six system call parameters.
13910 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13911
13912 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13913
13914 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13915 malloc&bzero.
13916
13917 * sunrpc/svc_udp.c (BZERO): Remove definition.
13918 (CALLOC): Define.
13919 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13920
13921 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
13922 (des_SPtrans): Use uint32_t type.
13923 (des_skb): Likewise.
13924
13925 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13926
13927 2006-05-05 Jakub Jelinek <jakub@redhat.com>
13928
13929 [BZ #2509]
13930 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13931 on 32-bit arches.
13932
13933 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13934
13935 * locale/programs/ld-address.c (address_finish): Fix one more
13936 place where the iso639 array might be accessed beyond the limits.
13937
13938 2006-05-04 Ulrich Drepper <drepper@redhat.com>
13939
13940 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13941 filling it for the first time.
13942
13943 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13944 Adjust all callers.
13945 Free res object content before returning.
13946
13947 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13948
13949 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13950 client->cl_auth.
13951
13952 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13953 cleanup for initial thread, just the free call on TVP.
13954
13955 * nscd/gai.c (__getline): Define.
13956
13957
13958 See ChangeLog.16 for earlier changes.