]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Fix up sys/select.h test for XPG7.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
4bfc6ab9
UD
12010-01-12 Ulrich Drepper <drepper@redhat.com>
2
3 * conform/data/sys/select.h-data: Fix up for XPG7.
4
8500fa83
JJ
52010-01-12 Jakub Jelinek <jakub@redhat.com>
6
7 * posix/sys/wait.h: Don't define W* macros etc. if
8 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
9
7b4715c5
UD
102010-01-11 Ulrich Drepper <drepper@redhat.com>
11
e00a72ef
UD
12 * io/sys/stat.h: Declare fchmod for XPG7.
13 * conform/data/sys/stat.h-data: Fix up for XPG7.
14
f8c1b120
UD
15 * termios/termios.h: Define pid_t for XPG7.
16
91251b7f
UD
17 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
18 * conform/data/tgmath.h-data: Likewise.
19
75eb41b4
UD
20 * conform/data/time.h-data: Fix POSIX tests.
21
e531ede5
UD
22 * conform/data/wchar.h-data: Fix up XPG7 tests.
23
24 * include/features.h: Fix __USE_ISOC95 handling.
25
37c8e466
UD
26 * conform/data/wordexp.h-data: Fix typo in last change.
27
1bdfadb4
UD
28 * conform/data/unistd.h-data: Fix up older POSIX tests.
29
21487cc9
UD
30 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
31 * posix/unistd.h: Likewise.
32
7cdb5a32
UD
33 * posix/unistd.h: Include environments.h also for XPG6 and up.
34 Define intptr_t for XPG6 and up.
35 Fix up for XPG7.
36 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
37
38 * conform/data/sys/types.h-data: Fix up for XPG7.
39
64c1f3af
UD
40 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
41 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
42 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
43 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
44 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
45 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
46 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
47 * sysdeps/unix/sysv/bits/stat.h: Likewise.
48 * sysdeps/mach/hurd/bits/stat.h: Likewise.
49
7b4715c5
UD
50 * bits/confname.h: Fix typo in last change.
51
52 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
53
cd2f000c
UD
542010-01-10 Ulrich Drepper <drepper@redhat.com>
55
33780b6d
UD
56 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
57 and SA_RESETHAND now available in Base.
58 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
59 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
60 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
61 * conform/data/signal.h-data: Update for XPG7.
62
f9cfa295
UD
63 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
64
18598ff1
UD
65 * string/strings.h: Don't declare obsolete functions for XPG7.
66 Declare ffs only for XSI.
67 * conform/data/strings.h-data: Update for XPG7.
68
692010-01-10 Jakub Jelinek <jakub@redhat.com>
70
cd2f000c
UD
71 [BZ #11125]
72 * libio/stdio.h: Define va_list, off_t, and ssize_t.
73
df06f485
UD
74 * posix/glob.h: Define size_t.
75
99d46ae3
UD
76 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
77
33780b6d
UD
78 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
79
18598ff1
UD
802010-01-10 Ulrich Drepper <drepper@redhat.com>
81
b2660fb6
UD
82 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
83 be self-contained.
84
85 * conform/data/stdio.h-data: Expect off_t and ssize_t.
86
f095bb72
UD
872010-01-09 Ulrich Drepper <drepper@redhat.com>
88
cd2f000c
UD
89 * libio/stdio.h: Define va_list also for XPG7.
90
f095bb72
UD
91 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
92 * conform/data/ctype.h-data: Likewise.
93 * conform/data/dirent.h-data: Likewise.
94 * conform/data/errno.h-data: Likewise.
95 * conform/data/fcntl.h-data: Likewise.
96 * conform/data/fmtmsg.h-data: Likewise.
97 * conform/data/fnmatch.h-data: Likewise.
98 * conform/data/ftw.h-data: Likewise.
99 * conform/data/glob.h-data: Likewise.
100 * conform/data/grp.h-data: Likewise.
101 * conform/data/iconv.h-data: Likewise.
102 * conform/data/langinfo.h-data: Likewise.
103 * conform/data/libgen.h-data: Likewise.
104 * conform/data/limits.h-data: Likewise.
105 * conform/data/locale.h-data: Likewise.
106 * conform/data/math.h-data: Likewise.
107 * conform/data/monetary.h-data: Likewise.
108 * conform/data/mqueue.h-data: Likewise.
109 * conform/data/ndbm.h-data: Likewise.
110 * conform/data/netdb.h-data: Likewise.
111 * conform/data/pthread.h-data: Likewise.
112 * conform/data/pwd.h-data: Likewise.
113 * conform/data/regex.h-data: Likewise.
114 * conform/data/sched.h-data: Likewise.
115 * conform/data/search.h-data: Likewise.
116 * conform/data/semaphore.h-data: Likewise.
117 * conform/data/setjmp.h-data: Likewise.
118 * conform/data/signal.h-data: Likewise.
119 * conform/data/spawn.h-data: Likewise.
120 * conform/data/stdio.h-data: Likewise.
121 * conform/data/stdlib.h-data: Likewise.
122 * conform/data/string.h-data: Likewise.
123 * conform/data/strings.h-data: Likewise.
124 * conform/data/sys/ipc.h-data: Likewise.
125 * conform/data/sys/msg.h-data: Likewise.
126 * conform/data/sys/resource.h-data: Likewise.
127 * conform/data/sys/sem.h-data: Likewise.
128 * conform/data/sys/shm.h-data: Likewise.
129 * conform/data/sys/socket.h-data: Likewise.
130 * conform/data/sys/stat.h-data: Likewise.
131 * conform/data/sys/time.h-data: Likewise.
132 * conform/data/sys/types.h-data: Likewise.
133 * conform/data/sys/uio.h-data: Likewise.
134 * conform/data/sys/wait.h-data: Likewise.
135 * conform/data/syslog.h-data: Likewise.
136 * conform/data/tar.h-data: Likewise.
137 * conform/data/termios.h-data: Likewise.
138 * conform/data/time.h-data: Likewise.
139 * conform/data/ulimit.h-data: Likewise.
140 * conform/data/unistd.h-data: Likewise.
141 * conform/data/utmpx.h-data: Likewise.
142 * conform/data/wchar.h-data: Likewise.
143 * conform/data/wctype.h-data: Likewise.
144 * conform/data/wordexp.h-data: Likewise.
145
146 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
147 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
148 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
149 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
150 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
151 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
152 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
153 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
154 * sysdeps/unix/sysv/bits/stat.h: Likewise.
155 * sysdeps/mach/hurd/bits/stat.h: Likewise.
156
157 * stdlib/stdlib.h: Define wait-related bits for XPG7.
158 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
159 Declare mkstemp and getsubopt for XPG7.
160 Declare posix_openpt for XPG6 XSI.
161
162 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
163 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
164
165 * string/string.h: Declare strdup for XPG7.
166
1672010-01-08 Ulrich Drepper <drepper@redhat.com>
168
169 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
170 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
171
172 * dirent/dirent.h: Really fix feature selection.
173
174 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
175 Fix all users.
176 * locale/C-address.c: Fix all users.
177 * locale/C-collate.c: Likewise.
178 * locale/C-ctype.c: Likewise.
179 * locale/C-identification.c: Likewise.
180 * locale/C-measurement.c: Likewise.
181 * locale/C-messages.c: Likewise.
182 * locale/C-monetary.c: Likewise.
183 * locale/C-name.c: Likewise.
184 * locale/C-numeric.c: Likewise.
185 * locale/C-paper.c: Likewise.
186 * locale/C-telephone.c: Likewise.
187 * locale/C-time.c: Likewise.
188 * locale/findlocale.c: Likewise.
189 * locale/global-locale.c: Likewise.
190 * locale/loadarchive.c: Likewise.
191 * locale/loadlocale.c: Likewise.
192 * locale/nl_langinfo_l.c: Likewise.
193 * locale/setlocale.c: Likewise.
194 * locale/xlocale.c: Likewise.
195 * locale/xlocale.h: Likewise.
196 * stdio-common/vfscanf.c: Likewise.
197 * stdlib/strfmon_l.c: Likewise.
198 * stdlib/strtod_l.c: Likewise.
199 * stdlib/strtol_l.c: Likewise.
200 * string/strcoll_l.c: Likewise.
201 * string/strxfrm_l.c: Likewise.
202 * time/alt_digit.c: Likewise.
203 * time/asctime.c: Likewise.
204 * time/era.c: Likewise.
205 * time/lc-time-cleanup.c: Likewise.
206 * time/strftime_l.c: Likewise.
207 * time/strptime_l.c: Likewise.
208 * wcsmbs/wcsmbsload.c: Likewise.
209 * wcsmbs/wcsmbsload.h: Likewise.
210
211 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
212 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
213 for XPG7.
214 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
215 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
216 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
217 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
218 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
219 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
220
4472e1de
RM
2212010-01-07 Roland McGrath <roland@redhat.com>
222
d5ea695b
RM
223 * elf/elf.h (PN_XNUM): New macro.
224
4472e1de
RM
225 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
226 literal 2.
227
44dcc002
UD
2282010-01-06 Ulrich Drepper <drepper@redhat.com>
229
230 * dirent/dirent.h: Fix typo in feature selection macro use.
231
92505456
MR
2322009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
233
a87cd289 234 [BZ #11115]
92505456 235 * stdlib/tst-makecontext3.c: New file.
c10f8866 236 * stdlib/Makefile (tests): Add new test.
92505456
MR
237
238 * stdlib/tst-setcontext.c (check_called): Fix a typo.
239
6f89d2f3
L
2402009-12-17 H.J. Lu <hongjiu.lu@intel.com>
241
242 * configure.in: Enable multi-arch by default if the assembler
243 supports gnu_indirect_function symbol type and the architecture
244 supports it.
245
63de5ef7
UD
2462009-12-23 Ulrich Drepper <drepper@redhat.com>
247
248 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
249 is defined.
250
e87e2f48
ST
2512009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
252
253 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
254 MACH_PORT_NULL when id != cttyid.
255
e70ffcb0
ST
2562009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
257
258 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
259 __mach_port_deallocate on rootdevid.
260
caf512de
MS
2612009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
262
263 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
264 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
265 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
266 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
267
4286fa41
UD
2682009-12-21 Ulrich Drepper <drepper@redhat.com>
269
538fa939 270 [BZ #10992]
4286fa41 271 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
538fa939 272 Patch by Eric Blake <ebb9@byu.net>.
4286fa41 273
2af63968
UD
2742009-12-15 Ulrich Drepper <drepper@redhat.com>
275
f282f6b9
UD
276 [BZ #11093]
277 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
278 POLLWRBAND also for POSIX 2008.
279 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
280 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
281
2af63968
UD
282 * include/link.h (struct link_map): Move l_used into its own word.
283 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
284 still zero.
285 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
286 never really used.
287
2510d01d
L
2882009-12-13 H.J. Lu <hongjiu.lu@intel.com>
289
290 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
291 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
292 check processor feature.
293 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
294 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
295 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
296 (index_SSE2): Likewise.
297
51ddd2c0
L
2982009-12-09 H.J. Lu <hongjiu.lu@intel.com>
299
300 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
301 if __ASSEMBLER__ is defined.
302 (bit_SSSE3): New. Defined for __ASSEMBLER__.
303 (bit_SSE4_2): Likewise.
304 (index_SSSE3): Likewise.
305 (index_SSE4_2): Likewise.
306 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
307 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
308 check processor feature.
309 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
310 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
311 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
312 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
313 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
314 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
315 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
316
9b2f1d4b
KK
3172009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
318
319 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
320
ca1ccae5
MF
3212009-12-01 Mike Frysinger <vapier@gentoo.org>
322
323 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
324
2de59be0
UD
3252009-12-11 Ulrich Drepper <drepper@redhat.com>
326
327 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
328 O_DSYNC to match 2.6.33+ kernels.
329 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
330 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
331 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
332 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
333 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
334 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
335
a682a1bf
UD
3362009-12-10 Ulrich Drepper <drepper@redhat.com>
337
338 [BZ #11000]
339 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
340 *herrnop before returning.
341 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
342 Likewise.
343 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
344 TRYAGAIN errors separately.
345 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
346 *name4_r after functions.
347
633bbc1d
UD
3482009-12-09 Ulrich Drepper <drepper@redhat.com>
349
350 [BZ #11046]
351 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
352 version check.
353
4940d71b
BH
3542009-11-05 Bruno Haible <bruno@clisp.org>
355
356 [BZ #11056]
357 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
358 argv argument as non-NULL.
359 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
360
361-2009-12-08 Ulrich Drepper <drepper@redhat.com>
ee1a7fab
UD
362
363 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
364 recvmmsg.
365 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
366 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
367
406300d2
AK
3682009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
369
370 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
371 registers.
372 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
373 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
374 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
375
02a52de0
UD
3762009-11-30 Ulrich Drepper <drepper@redhat.com>
377
378 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
379 SCHED_RESET_ON_FORK.
380
e2c59de6
UD
3812009-11-26 Ulrich Drepper <drepper@redhat.com>
382
383 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
384 only used on truly ancient kernel if configuration requires a more
385 recent kernel.
386
1c3c269b
UD
3872009-11-24 Ulrich Drepper <drepper@redhat.com>
388
c53f6228
UD
389 [BZ #3662]
390 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
391 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
392
aa989023
UD
393 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
394 pass it on to __ptsname_internal.
395 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
396 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
397 All the code from __ptsname_r but take additional parameter. Use that
398 instead of pointer to local stat64 variable.
399 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
400 variable.
401 * include/stdlib.h: Declare __ptsname_internal.
402
139ee080
UD
403 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
404 before the exec.
405 * sysdeps/unix/sysv/linux/grantpt.c: New file.
406 * login/programs/pt_chown.c (main): Don't print message on errors
407 when doing real work.
408
21f2c223
UD
409 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
410 once.
411
1c3c269b
UD
412 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
413 irel relocations split out from...
414 (__libc_csu_init): ...here.
415 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
416
e3611aef
AS
4172009-11-23 Andreas Schwab <schwab@redhat.com>
418
419 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
420 for timestamps also if __USE_XOPEN2K8.
421 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
422 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
423 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
424 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
425
89b432d7
UD
4262009-11-22 Ulrich Drepper <drepper@redhat.com>
427
351fe947
UD
428 * nscd/connections.c (restart): Try harder to re-exec.
429
c5a8b997
UD
430 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
431
eb415739
UD
432 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
433 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
434 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
435 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
436 some placeholders. Redirect ntp_gettime to ntp_gettimex.
437 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
438
89b432d7
UD
439 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
440 Define.
441 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
442
66221417
L
4432009-11-18 H.J. Lu <hongjiu.lu@intel.com>
444
445 [BZ #10162]
446 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
447 than software pipeline. Properly recover from shorter read.
448
c6e7f16c
UD
4492009-11-19 Ulrich Drepper <drepper@redhat.com>
450
df1934da
UD
451 [BZ #10958]
452 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
453 initialized before using it.
454 (_IO_putwc_unlocked): Likewise.
455
03ebadd9
UD
456 [BZ #10918]
457 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
458 in cast to not throw away const-ness of parameters.
459 (__CPU_EQUAL_S): Likewise.
460 (__CPU_OP_S): Likewise.
461
c6e7f16c
UD
462 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
463 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
464 this gratuitous change and we have to keep compatibility.
465 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
466 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
467 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
468 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
469 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
470 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
471
424bea69
UD
4722009-11-17 Ulrich Drepper <drepper@redhat.com>
473
474 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
475 of parameters of sync_file_range.
476 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
477 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
478 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
479 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
480 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
481 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
482
8ad81b31
JJ
4832009-11-16 Jakub Jelinek <jakub@redhat.com>
484
485 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
486 Implement using sync_file_range2 syscall if __NR_sync_file_range2
487 is defined.
488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
489 file.
490
815d8147
PB
4912009-11-17 Paolo Bonzini <bonzini@gnu.org>
492
493 * posix/bug-regex30.c: New file.
494 * posix/Makefile: Add rules to build and run bug-regex30.
495 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
496 character lead bytes when there is a range in a COMPLEX_BRACKET.
497 Reported by Oleg Bylatov.
498
2866eeb1
UD
4992009-11-17 Ulrich Drepper <drepper@redhat.com>
500
74432447
UD
501 [BZ #10969]
502 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
503 * locale/tst-duplocale.c: New file.
504 * locale/Makefile (tests): Add tst-duplocale.
505
4fb9241e
UD
506 [BZ #10968]
507 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
508 Patch by Bruno Haible <bruno@clisp.org>.
509 * locale/tst-locname.c: New file.
510 * locale/Makefile (tests): Add tst-locname.
511
2866eeb1
UD
512 [BZ #10972]
513 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
514 constants from recent kernels.
515 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
516 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
517 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
518 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
519 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
520 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
521
65a1148b
L
5222009-11-09 H.J. Lu <hongjiu.lu@intel.com>
523
524 [BZ #10162]
525 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
526 software pipeline.
527
fabe43ab
MF
5282009-11-09 Mike Frysinger <vapier@gentoo.org>
529
530 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
531 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
532 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
533
2866eeb1 5342009-11-06 Mike Frysinger <vapier@gentoo.org>
5ec794b4
MF
535
536 * posix/bug-regex29.c: Include stdio.h.
537
89646810
UD
5382009-11-14 Ulrich Drepper <drepper@redhat.com>
539
0079dd23
UD
540 [BZ #10939]
541 * Versions.def: Define GLIBC_2.12 for libc.
542 * manual/errno.texi: Add ERFKILL entry.
543 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
544 for 2.12.
545 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
546 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
547
89646810
UD
548 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
549 F_GETOWN_EX definitions according to corrected kernel definitions.
550 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
551 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
552 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
553 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
554 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
555 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
556
24c0bf7a
UD
5572009-11-12 Ulrich Drepper <drepper@redhat.com>
558
559 * version.h: Bump for 2.12 development.
560
51e4196f
AS
5612009-11-10 Andreas Schwab <schwab@redhat.com>
562
563 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
564 out of buffer space.
565 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
566 map_v4v6_hostent running out of space.
567
6515a01f
CM
5682009-11-10 Ulrich Drepper <drepper@redhat.com>
569
570 * string/bits/string3.h (memset): If the second parameter is constant
571 and zero there is likely no transposition.
51e4196f 572 Patch by Caolan McNamara <caolanm@redhat.com.
6515a01f 573
868f7a40
PDM
5742009-11-04 Philippe De Muyter <phdm@macqel.be>
575
576 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
577 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
578
685cb083
HHPF
5792009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
580
581 * malloc/memusagestat.c (main): Fix spelling in an error message.
582
8608ae1f
L
5832009-11-01 H.J. Lu <hongjiu.lu@intel.com>
584
585 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
586 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
587
5b55d236
AS
5882009-11-03 Andreas Schwab <schwab@redhat.com>
589
590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
591 readahead.
592
872873d4
JJ
5932009-11-03 Jakub Jelinek <jakub@redhat.com>
594
595 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
596 relocate opd entry when resolving prelink conflicts.
597
34df851b
JJ
5982009-11-04 Jakub Jelinek <jakub@redhat.com>
599
600 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
601 when -D_FILE_OFFSET_BITS=64.
602
603 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
604 of last two arguments when -D_FILE_OFFSET_BITS=64.
605 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
606 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
607 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
608 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
609 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
610 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
611
13f6812f
AS
6122009-11-03 Andreas Schwab <schwab@linux-m68k.org>
613
614 [BZ #4457]
615 * sysdeps/generic/libgcc_s.h: New file.
616 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
617
cc49a5a8
UD
6182009-11-01 Ulrich Drepper <drepper@redhat.com>
619
620 * malloc/hooks.c (free_check): Restore locking and call _int_free
621 appropriately.
622
3a83202d
UD
6232009-10-30 Ulrich Drepper <drepper@redhat.com>
624
7f9cd6ed
UD
625 * version.h (VERSION): Bump for 2.11 release.
626 * include/features.h (__GLIBC_MINOR__): Bump to 11.
627
3005703b
UD
628 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
629
1c52a97a
UD
630 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
631
08c7ad97
UD
632 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
633 to avoid warning.
634 * stdlib/tst-strtoll.c (tests): Likewise.
635
3c2c4bf6
KS
636 [BZ #9986]
637 * time/strftime_l.c (__strftime_internal): Allow %OC.
638
3a83202d
UD
639 * misc/mkostemps.c: New file.
640 * misc/mkostemps64.c: New file.
641
de2cc809
AS
6422009-10-30 Andreas Schwab <schwab@redhat.com>
643
2c5c07f5
AS
644 * locale/programs/locale-spec.c: Include <error.h> and
645 <libintl.h>.
646
de2cc809
AS
647 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
648
6cfe8609
RM
6492009-10-28 Roland McGrath <roland@redhat.com>
650
651 * Makefile (dist-prepare): New target.
652 (tag-for-dist): Target removed.
653 (glibc-%.tar): Pattern rule removed.
654 (%.tar): New pattern rule, does simple use of git archive.
655 (dist-version): Remove variable definition.
656 (dist): Just depend on that. Add .tar.xz dependency.
657 If dist-version variable not set on command line, depend on
658 dist-prepare, re-invoke with dist-version set via git describe.
659
660 * Makerules (%.xz): New pattern rule.
661
31c759bf
AM
6622009-10-28 Alan Modra <amodra@bigpond.net.au>
663
664 * elf/ifuncdep2.c: Include ifunc-sel.h.
665 (global): Delete.
666 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
667 * elf/ifuncmain1.c (global): Delete.
668 * elf/ifuncmain1vis.c: Likewise.
669 * elf/ifuncmain2.c: Likewise.
670 * elf/ifuncmain5.c: Likewise.
671 * elf/ifuncmod3.c: Likewise.
672 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
673 (foo_ifunc): Use ifunc_one.
674 * elf/ifuncmain7.c: Likewise.
675 * elf/ifuncmod1.c: Include ifunc-sel.h.
676 (global): Define protected var.
677 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
678 * elf/ifuncmod5.c: Likewise.
679 * sysdeps/generic/elf/ifunc-sel.h: New file.
680 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
681
77799d9d
AM
6822009-07-30 Alan Modra <amodra@bigpond.net.au>
683
684 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
685 (R_PPC_REL16*): Correct comments.
686 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
687 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
688 R_PPC64_REL16_HA): Define.
689 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
690 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
691 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
692 Delete unused "reloc" param.
693 (__process_machine_rela): Handle R_PPC_IRELATIVE.
694 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
695 Delete "reloc" param.
696 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
697 R_PPC_IRELATIVE.
698 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
699 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
700 relocations.
701
702d2009-10-30 Ulrich Drepper <drepper@redhat.com>
7f3146e7 703
0d2f180d
UD
704 [BZ #10315]
705 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
706 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
707 UDP_ENCAP_L2TPINUDP.
708
7f3146e7
UD
709 [BZ #10349]
710 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
711 parameter, specifying length of prefix.
712 * stdio-common/tempname.c: Likewise.
713 * include/stdio.h: Adjust prototypes.
714 * libio/oldtmpfile.c: Adjust caller.
715 * misc/mkdtemp.c: Likewise.
716 * misc/mkostemp.c: Likewise.
717 * misc/mkostemp64.c: Likewise.
718 * misc/mkstemp.c: Likewise.
719 * misc/mkstemp64.c: Likewise.
720 * misc/mktemp.c: Likewise.
721 * stdio-common/tempnam.c: Likewise.
722 * stdio-common/tmpfile.c: Likewise.
723 * stdio-common/tmpnam.c: Likewise.
724 * stdio-common/tmpnam_r.c: Likewise.
725 * misc/mkstemps.c: New file.
726 * misc/mkstemps64.c: New file.
727 * stdlib/stdlib.h: Add prototypes.
728 * misc/Makefile (routines): Add mkstemps and mkstemps64.
729 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
730
204fcca2
UD
7312009-10-29 Ulrich Drepper <drepper@redhat.com>
732
471d4931
UD
733 * locale/iso-639.def: Add sml entry.
734
75ded9bc
UD
735 [BZ #10391]
736 * resolv/res_send.c (send_dg): Initialize resplen.
737
204fcca2
UD
738 [BZ #10446]
739 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
740 definition to the kernel's.
741 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
742
ea547a1a
AJ
7432009-08-18 Anders Johansson <ajohansson@novell.com>
744
745 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
746 offsets and record sizes in assert()s and response sending.
747 * nscd/grpcache.c: Likewise.
748 * nscd/hstcache.c: Likewise.
749 * nscd/initgrcache.c: Likewise.
750 * nscd/pwdcache.c: Likewise.
751
e0f471a1
UD
7522009-10-29 Ulrich Drepper <drepper@redhat.com>
753
5c53736b
SL
754 [BZ #10540]
755 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
756 /etc/hosts does not exist set errnop and herrnop appropriately.
757 Patch by Steve Langasek <vorlon@debian.org>.
758
ee6f3538
JS
759 [BZ #10553]
760 * malloc/malloc.c (malloc_info): Fix typos in format strings.
761 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
762
5debe363
UD
763 [BZ #10564]
764 * login/utmp_file.c (TIMEOUT): Increase to 10.
765
801720e6
UD
766 [BZ #10609]
767 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
768 for file names in case the syscall is not available.
769 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
770 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
771 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
772 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
773 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
774 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
775 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
776 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
777 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
778 * sysdeps/unix/sysv/linux/openat.c: Likewise.
779 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
780 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
781 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
782 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
783 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
784 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
785 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
786
584715c3
UD
787 [BZ #10643]
788 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
789 creation filed, remove the request from the 'requests' list and signal
790 the caller that the request is finished.
791
c240c3a5
JL
792 [BZ #10692]
793 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
794 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
795
1a9e411e
JL
796 [BZ #10713]
797 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
798 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
799
cc88b371
UD
800 [BZ #10780]
801 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
802 overflows the int return type.
803
67854c13
UD
804 [BZ #10717]
805 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
806 have to compute maxsize_total, we have to update the variables, and
807 the also_total handling must happen after the repair.
808
e0f471a1
UD
809 [BZ #10742]
810 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
811 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
812
d79eccd6
AS
8132009-10-27 Andreas Schwab <schwab@redhat.com>
814
815 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
816 errno is always set when returning unsuccessfully.
817
22bc5239
AS
8182009-10-29 Andreas Schwab <schwab@redhat.com>
819
820 * malloc/memusage.c (update_data): Fix index wraparound handling
821 so that buffer_cnt is actually reset.
822
3a85895f
PB
8232009-10-29 Ulrich Drepper <drepper@redhat.com>
824
d94760f9
UD
825 [BZ #10784]
826 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
827 of the directory we look at into the static buffer if there is one
828 at the start of the loop.
829
8d556281
PP
830 [BZ #10789]
831 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
d94760f9 832 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
8d556281 833
81c84bd9
UD
834 [BZ #10840]
835 * sysdeps/unix/sysv/linux/kernel-features.h: Define
836 __ASSUME_F_GETOWN_EX.
837 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
838 if possible.
839 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
840
d9e8f9ec
UD
841 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
842 and f_owner_ex.
843 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
844 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
845 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
846 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
847 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
848 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
849
92934e8b
UD
850 [BZ #10847]
851 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
852 getutmpx symbol.
853
854 [BZ #10823]
3a85895f
PB
855 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
856 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
857
3ad3a4d0
JM
8582009-10-24 Joseph Myers <joseph@codesourcery.com>
859
860 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
861
98363ded
JJ
8622009-10-27 Jakub Jelinek <jakub@redhat.com>
863
864 [BZ #10817]
865 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
866 Reported by Ray Chason.
867
001659f4
L
8682009-10-21 H.J. Lu <hongjiu.lu@intel.com>
869
870 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
871 strend-sse4.
872 * sysdeps/x86_64/multiarch/strchr.S: New file.
873 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
874 * sysdeps/x86_64/multiarch/strrchr.S: New file.
875
bc5e8462
AS
8762009-10-21 Andreas Schwab <schwab@redhat.com>
877
878 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
879
b7805d0b
AS
8802009-10-19 Andreas Schwab <schwab@redhat.com>
881
882 * include/math.h: Add hidden protos for __exp/__expf/__expl.
883 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
884 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
885 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
886 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
887 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
888 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
889 __ieee751_expl to handle overflow.
890
a0902db9
DM
8912009-10-14 David S. Miller <davem@davemloft.net>
892
893 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
894 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
895
4bb04b1f
AS
8962009-10-13 Andreas Schwab <schwab@redhat.com>
897
898 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
899 !USE_MULTIARCH.
900
b68053cf
UD
9012009-10-08 Ulrich Drepper <drepper@redhat.com>
902
1abedcda
UD
903 [BZ #10730]
904 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
905 Patch in part by Steve Ward <planet36@gmail.com>.
906
1219ddfe
UD
907 [BZ #10731]
908 * stdlib/rand_r.c: Fix typo.
909
b68053cf
UD
910 * po/cs.po: Update from translation team.
911
96961bf7
AS
9122009-10-06 Andreas Schwab <schwab@redhat.com>
913
914 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
915 returning if RTLD_NOLOAD.
916
9d6982d5
RM
9172009-10-06 Roland McGrath <roland@redhat.com>
918
b0f3a2e4
RM
919 * sysdeps/x86_64/multiarch/strstr-c.c
920 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
921
922 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
923 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
924
9d6982d5
RM
925 * sysdeps/x86_64/multiarch/init-arch.h
926 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
927 (HAS_CPU_FEATURE): New macro.
928 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
929 * sysdeps/x86_64/multiarch/init-arch.c
930 (__get_cpu_features): #undef it before definition.
931
930799d5
AS
9322009-10-05 Andreas Schwab <schwab@redhat.com>
933
934 * locale/C-time.c: Revert week-1stday back to 19971130 and set
935 first_weekday to 1 and first_workday to 2.
936
78aa3979
UD
9372009-10-01 Ulrich Drepper <drepper@redhat.com>
938
939 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
940 F_GETOWN_EX.
941 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
942 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
943 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
944 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
945 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
946 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
947
199eb0de
AS
9482009-09-28 Andreas Schwab <schwab@redhat.com>
949
950 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
951 * stdio-common/vfprintf.c: Likewise.
952
ff283531
ST
9532009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
954
955 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
f8d7c1ea
UD
956 (mkdirat): Call __directory_name_split_at instead of
957 __directory_name_split.
ff283531 958
9d076f21
UD
9592009-09-28 Ulrich Drepper <drepper@redhat.com>
960
961 * locale/programs/locale-spec.c (locale_special): If nothing matches
962 fail with an appropriate message.
963
f450806e
L
9642009-09-10 H.J. Lu <hongjiu.lu@intel.com>
965
966 * configure.in: Exclude binutils 2.X. Support binutils 2.100
967 and XX.
968
4fd89462
UD
9692009-09-25 Andreas Schwab <schwab@redhat.com>
970
971 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
972 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
973
0d180406
ST
9742009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
975
976 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
977
ae0f0dbd
AS
9782009-09-20 Andreas Schwab <schwab@linux-m68k.org>
979
980 * iconvdata/iso646.c (gconv_init): Correctly initialize the
981 character size elements in step data.
982
fc0c556c
UD
9832009-09-20 Ulrich Drepper <drepper@redhat.com>
984
985 * po/hu.po: Update from translation team.
986 * po/vi.po: Likewise.
987
487a6d77
RM
9882009-09-19 Roland McGrath <roland@redhat.com>
989
990 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
991
7967983f
RM
9922009-09-15 Roland McGrath <roland@redhat.com>
993
994 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
995 * nptl/sysdeps/pthread/configure: Regenerated.
996 * nptl/sysdeps/x86_64/configure: Regenerated.
997 * sysdeps/unix/sysv/linux/configure: Regenerated.
998 * sysdeps/x86_64/elf/configure: Regenerated.
999
1000 * Makefile (autoconf-it): Set execute bit only on top-level configure.
1001
1002 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1003 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1004 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1005 * configure: Regenerated.
1006
02bf610c
UD
10072009-09-09 Ulrich Drepper <drepper@redhat.com>
1008
1009 * posix/getconf.c (main): Handle -- on command line.
1010
0549ce8e
L
10112009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1012
1013 * configure.in: Support binutils 2.100 and 3.0.
1014
6dfeb524
JJ
10152009-09-08 Jakub Jelinek <jakub@redhat.com>
1016
1017 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1018 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1019 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1020 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1021
d76da20f
UD
10222009-09-07 Ulrich Drepper <drepper@redhat.com>
1023
7a7e49c0
UD
1024 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1025 unnamed_section_defined field.
1026 (collate_read): Test and set unnamed_section_defined.
1027
d76da20f
UD
1028 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1029 _POSIX2_LINE_MAX.
1030
4c14c8c3
L
10312009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1032
1033 * configure.in: Support binutils 2.20.
1034
04ef416a
UD
10352009-09-03 Ulrich Drepper <drepper@redhat.com>
1036
1037 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1038 __strstr_ia32): Add attribute_hidden.
1039
2eeb9a5d
AS
10402009-09-01 Andreas Schwab <schwab@redhat.com>
1041
1042 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1043 parsing of group entry.
1044
5d2e6976
AS
10452009-09-02 Andreas Schwab <schwab@redhat.com>
1046
1047 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1048 external buffer. Always discard readahead in internal buffer.
1049 * libio/Makefile (tests): Add bug-wsetpos.
1050 * libio/bug-wsetpos.c: New file.
1051
22bb992d
JJ
10522009-09-02 Jakub Jelinek <jakub@redhat.com>
1053
1054 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1055 Add attribute_hidden.
1056 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1057 __strcasestr_sse2): Likewise.
1058 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1059 (__fma_fma): Make static.
1060 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1061 (__fmaf_fma): Make static.
1062
d840539e
AS
10632009-08-31 Andreas Schwab <schwab@redhat.com>
1064
1065 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1066 reformulate in-buffer optimisation check to match code in
1067 _IO_new_file_seekoff.
1068
a050d2a5
JB
10692009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1070
1071 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1072 to srwi in 32-bit memcpy for power6.
1073
5182cbc5
AS
10742009-09-01 Andreas Schwab <schwab@redhat.com>
1075
1076 * include/stdio.h: Declare hidden proto for fflush.
1077 * libio/iofflush.c: Add hidden weak alias for fflush.
1078
24044103
JJ
10792009-09-01 Jakub Jelinek <jakub@redhat.com>
1080
1081 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1082 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
5182cbc5 1083
c2735e95
AS
10842009-08-31 Andreas Schwab <schwab@redhat.com>
1085
1086 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1087
b5c03e10
UD
10882009-08-31 Ulrich Drepper <drepper@redhat.com>
1089
1090 [BZ #10560]
1091 * malloc/malloc.c: Add local assert definition to avoid problems with
1092 memory allocation in the real one.
1093
5a4eb728
L
10942009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1095
1096 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1097 Removed.
1098 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1099 turn off SSSE3 on Atom.
1100
d444ac57
UD
11012009-08-28 Ulrich Drepper <drepper@redhat.com>
1102
1103 * stdlib/tst-strtol.c (tests): More tests.
1104 * stdlib/tst-strtoll.c (tests): Likewise.
1105
15e7f0a4
UD
11062009-08-26 Ulrich Drepper <drepper@redhat.com>
1107
2df4be8c
UD
1108 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1109
15e7f0a4
UD
1110 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1111
84057895
UD
11122009-08-25 Ulrich Drepper <drepper@redhat.com>
1113
deb13bcd
UD
1114 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1115 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1116
77a1e087
UD
1117 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1118
e6fd9b24
UD
1119 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1120
84057895
UD
1121 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1122
e9f145cb
JM
11232009-08-25 Joseph Myers <joseph@codesourcery.com>
1124
1125 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1126
84088310
UD
11272009-08-25 Ulrich Drepper <drepper@redhat.com>
1128
65b14bce
UD
1129 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1130 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1131
1132 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
5001998a 1133
7423a345
UD
1134 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1135 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1136
d5cb714b 1137 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
8392ff2d
UD
1138 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1139
84088310
UD
1140 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1141 leftover YMM_SIZE definition.
1142
9a1ea152
UD
11432009-08-24 Ulrich Drepper <drepper@redhat.com>
1144
cf00cc00
UD
1145 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1146 union.
1147 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1148 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1149 Redefine.
1150 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1151
9a1ea152
UD
1152 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1153 and SET_FLOAT_WORD definitions.
1154
036e46b6
RM
11552009-08-24 Roland McGrath <roland@redhat.com>
1156
1157 * sysdeps/unix/syscall-template.S: New file.
1158 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1159 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1160 (compile-syscall): Pass mkdep and -g options as normal.
1161 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1162 (common-generated): Don't add them here.
1163
ef72d5f1
UD
11642009-08-24 Ulrich Drepper <drepper@redhat.com>
1165
f0c281e0
UD
1166 * math/s_fdim.c: In case of overflows set errno.
1167 * math/s_fdimf.c: Likewise.
1168 * math/s_fdiml.c: Likewise.
1169
7b943af6
UD
1170 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1171 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1172 are using the inline optimizations.
1173
ef72d5f1
UD
1174 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1175 (__signbitf): Likewise.
1176
659a63fb
UD
11772009-08-23 Ulrich Drepper <drepper@redhat.com>
1178
52db8039
UD
1179 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1180 terminated.
8a7cea01
UD
1181 * posix/Makefile (tests): Add bug-regex29.
1182 * posix/bug-regex29.c: New file.
52db8039 1183
bdc7f5d7
UD
1184 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1185 older POSIX versions are selected.
c6b6723e 1186
003c9895
UD
1187 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1188 as well.
1189 * stdio-common/printf_fphex.c: Likewise.
1190 * stdio-common/tstdiomisc.c: Add more tests.
1191
659a63fb
UD
1192 * locale/locale.h: Include xlocale.h and the thread-local locale
1193 declarations for XPG7, not XPG6.
1194
15efafdf
AS
11952009-08-21 Andreas Schwab <schwab@redhat.com>
1196
1197 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1198 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1201 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1202 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1203
464dc022
RM
12042009-08-20 Roland McGrath <roland@redhat.com>
1205
1206 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1207 Use l_addr instead of l_map_start (dli_fbase).
1208 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1209 address when there is no proximate symbol.
1210 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1211 Likewise.
1212
677760a3
UD
12132009-08-16 Ulrich Drepper <drepper@redhat.com>
1214
1215 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1216
85fda49b
UD
12172009-08-14 Ulrich Drepper <drepper@redhat.com>
1218
1219 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1220 Also handle SIGINT. In that case only do the cleanup and then
1221 re-raise the signal.
1222 (main): Install handler for SIGINT.
1223
78fd882a
ST
12242009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1225
1226 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1227 clobber list.
1228
4e1e2f42
L
12292009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1232 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1233 tst-auditmod7b.c.
1234 (tests): Add tst-audit6 tst-audit7.
1235 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1236 tst-auditmod7a tst-auditmod7b.
1237 ($(objpfx)tst-audit6): New.
1238 ($(objpfx)tst-audit6.out): Likewise.
1239 ($(objpfx)tst-audit7): Likewise.
1240 ($(objpfx)tst-audit7.out): Likewise.
1241 (tst-audit6-ENV): Likewise.
1242 (tst-audit7-ENV): Likewise.
1243 (CFLAGS-tst-auditmod6b.c): Likewise.
1244 (CFLAGS-tst-auditmod6c.c): Likewise.
1245 (CFLAGS-tst-auditmod7b.c): Likewise.
1246 * elf/tst-audit6.c: New file.
1247 * elf/tst-audit7.c: New file.
1248 * elf/tst-auditmod6a.c: New file.
1249 * elf/tst-auditmod6b.c: New file.
1250 * elf/tst-auditmod6c.c: New file.
1251 * elf/tst-auditmod7a.c: New file.
1252 * elf/tst-auditmod7b.c: New file.
1253 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1254 saving and restoring SSE/AVX registers to ...
1255 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1256
fc1870e6
L
12572009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1258
1259 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1260 only if SHARED is defined.
1261 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1262
a3d4298d
JM
12632009-08-03 Jim Meyering <meyering@redhat.com>
1264
1265 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1266
8e436522
UD
12672009-08-08 Ulrich Drepper <drepper@redhat.com>
1268
1269 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1270 section as the other functions for this architecture.
1271 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1272
57b378ac
UD
12732009-08-07 Ulrich Drepper <drepper@redhat.com>
1274
0fda545d
UD
1275 * sysdeps/x86_64/strcmp.S: Add support to compile with
1276 USE_SSSE3. In this case palignr is used.
677760a3 1277 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
0fda545d
UD
1278 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1279 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1280 Add strcmp-ssse3 and strncmp-ssse3.
1281 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1282 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1283
57b378ac
UD
1284 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1285 warning through fake initialization.
1286
0eca608d
L
12872009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1288
1289 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1290
7bc513cf
AS
12912009-08-07 Andreas Schwab <schwab@redhat.com>
1292
1293 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1294 unique symbols.
1295
a546baa9
L
12962009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1297
1298 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1299 EBX from EAX = 1. Handle EAX = 11.
1300
77c84aeb
AS
13012009-08-07 Andreas Schwab <schwab@redhat.com>
1302
1303 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1304 inside ''.
1305
02cea471
L
13062009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1307
2c709c6f
UD
1308 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1309 hidden IFUNC functions.
1310 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1311
1312 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1313
02cea471
L
1314 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1315 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1316 strcasestr-c.
1317 (CFLAGS-strcspn-c.c): Define.
1318 (CFLAGS-strpbrk-c.c): Define.
1319 (CFLAGS-strspn-c.c): Define.
1320 (CFLAGS-strstr.c): Define.
1321 (CFLAGS-strcasestr.c): Define.
1322 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1323 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1324 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1325 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1326 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1327 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1328 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1329 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1330 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1331 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1332 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1333 -16L instead of 0xfffffffffffffff0L.
1334 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1335
51921047
UD
13362009-08-02 Ulrich Drepper <drepper@redhat.com>
1337
1338 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1339
66ae9e50
UD
13402009-07-31 Ulrich Drepper <drepper@redhat.com>
1341
e4143e7a
UD
1342 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1343 another rewrite. Much smaller and faster.
1344 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1345
66ae9e50
UD
1346 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1347 ss_flags from the correct location.
1348
6f6f1215
L
13492009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1350
1351 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1352 * sysdeps/i386/i686/cacheinfo.c: New file.
1353 * sysdeps/i386/i686/multiarch/Makefile: New file.
1354 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1355 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1356 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1357 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1358 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1359 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1360 (__cpuid_count): New. Provide the default.
1361 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1362 (__x86_64_preferred_memory_instruction): Define only if
1363 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1364 (intel_check_word): Use __cpuid.
1365 (handle_intel): Likewise.
1366 (handle_amd): Likewise.
1367 (__cache_sysconf): Likewise.
1368 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1369 (__cache_sysconf): Likewise.
1370 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1371 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1372 (get_common_indeces): Use __cpuid.
1373 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1374 if ENABLE_SSSE3_ON_ATOM is not defined.
1375 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1376 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1377 popcnt instead of popcntq.
1378
1877ea16
JJ
13792009-07-31 Jakub Jelinek <jakub@redhat.com>
1380
1381 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1382
2dec6007
UD
13832009-07-30 Ulrich Drepper <drepper@redhat.com>
1384
da97dfdc
UD
1385 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1386 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1387 which always causes a compile error.
1388
1389 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1390
98b1e6c8
UD
1391 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1392 comes from...
1393 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1394 which always causes a compile error.
1395
a9a04420
UD
1396 * debug/Makefile (tests): Add tst-longjmp_chk2.
1397 * debug/tst-longjmp_chk2.c: New file.
1398
5ead9ce5
UD
1399 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1400 Remove incorrect use of BP_SYM.
1401 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1402 here now since it is more complex than just a simple check.
1403
2dec6007
UD
1404 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1405 we make no more progress.
1406
649bf133
UD
14072009-07-29 Ulrich Drepper <drepper@redhat.com>
1408
78c4ef47
UD
1409 * math/s_fma.c: Don't define alias if __fma is a macro.
1410 * math/s_fmaf.c: Likewise.
1411 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1412 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1413 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1414
1415 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1416 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1417 New macro HAS_FMA.
1418 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1419 function.
1420 * include/libc-symbols.h (libm_ifunc): Define.
1421 * sysdeps/x86_64/multiarch/Versions: New file.
1422
586fa886 1423 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
649bf133 1424
09e0389e
L
14252009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1426
1427 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1428
b48a267b
UD
14292009-07-29 Ulrich Drepper <drepper@redhat.com>
1430
1431 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1432 call that registers used in calling conventions need to be preserved.
1433 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1434 to preserve register content if necessary.
1435 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1436 (_dl_x86_64_restore_sse): New function.
1437 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1438 is allowed to modify xmm/ymm registers.
1439
1440 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1441 application's perspective.
1442 * stdio-common/scanf17.c: Likewise.
1443
96553893
UD
14442009-07-28 Ulrich Drepper <drepper@redhat.com>
1445
1446 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1447 size to memsz.
1448 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1449 here.
1450 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1451 two steps to catch bugs.
1452
2d0671cb
AT
14532009-07-27 Ulrich Drepper <drepper@redhat.com>
1454
e83c1a8a
UD
1455 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1456 determines which files are used in runtime lookups and only checks
1457 those for SSE use.
1458 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1459 testing.
1460 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1461 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1462 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1463 take a while.
1464
1465 * elf/dl-open.c: Move _dl_scope_free to...
1466 * elf/dl-scope.c: ...here. New file.
1467 * elf/Makefile (dl-routines): Add scope.
1468
2d0671cb
AT
1469 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1470 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1471 RES_USE_DNSSEC.
1472 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1473 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1474 all the places we handled RES_USE_EDNS0 only before.
1475 Patch by Adam Tkac <atkac@redhat.com>.
1476
09cd1f57
JJ
14772009-07-27 Jakub Jelinek <jakub@redhat.com>
1478
1479 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1480 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1481 Update size when reallocating.
1482
16d2ea4c
UD
14832009-07-26 Ulrich Drepper <drepper@redhat.com>
1484
1485 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1486 functions used in ld.so modify xmm/ymm registers.
1487 * sysdeps/x86_64/Makefile: Hook new test up.
1488 * sysdeps/x86_64/rtld-memchr.c: New file.
1489 * sysdeps/x86_64/rtld-memcmp.c: New file.
1490 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1491 * sysdeps/x86_64/rtld-strchr.S: New file.
16d2ea4c
UD
1492 * sysdeps/x86_64/rtld-strlen.S: New file.
1493 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1494 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1495
dc8e5eb6
UD
14962009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1497
1498 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1499 strncmp-c.
1500 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1501 (exit): Likewise.
1502 (Byte1): Likewise.
1503 (Byte2): Likewise.
1504 (Byte3): Likewise.
1505 (Byte4): Likewise.
1506 (Byte5): Likewise.
1507 (Byte6): Likewise.
1508 (next_8_bytes): Likewise.
1509 (Byte0): Remove commented out codes.
1510 (unaligned_table): Align jump table at 8 bytes.
1511 Add _sse4_2 to all labels. Always include "../strcmp.S".
1512 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1513 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1514 * sysdeps/x86_64/strncmp.S: New file.
1515
889f847e
UD
15162009-07-26 Ulrich Drepper <drepper@redhat.com>
1517
aa7492d2
UD
1518 [BZ #10422]
1519 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1520 kernels, dropped when eventfd2 support was added.
1521 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1522 kernels, dropped when signalfd4 support was added.
1523 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1524 added, name them.
1525
e28b969b
UD
1526 [BZ #10452]
1527 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1528 replies up.
1529
889f847e
UD
1530 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1531
29e92fa5
UD
15322009-07-25 Ulrich Drepper <drepper@redhat.com>
1533
4e5b5821
L
1534 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1535 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1536
65731753
UD
1537 [BZ #10448]
1538 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1539 callback we must touch the status to avoid using stale value.
1540
29e92fa5
UD
1541 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1542 compiled in.
1543
da331e8e
UD
15442009-07-24 Ulrich Drepper <drepper@redhat.com>
1545
1546 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1547 /lib/modules/* headers anymore. We have sane headers in the standard
1548 place now.
1549
f957edde
AK
15502009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1551
1552 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1553 "etf3enh" and "highgprs" added.
1554 (_dl_s390_platforms): "z10" added.
1555 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1556 Increased for the new entries.
1557 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1558 HWCAP_S390_HIGH_GPRS added.
1559
1560 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1561 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1562 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1563 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1564 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1565
802fe9a1
UD
15662009-07-23 Ulrich Drepper <drepper@redhat.com>
1567
b2509a1e
UD
1568 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1569 avoid additional cpuid instructions. Most of the information is
1570 stored somewhere.
1571
3e9099b4
UD
1572 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1573 cache descriptors.
1574 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1575
d28797e4
UD
1576 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1577 SSSE3 bit for Atoms.
1578 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1579 here anymore.
1580
666a9871
UD
1581 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1582 structure before copying it to avoid warning.
1583 * posix/tst-rfc3484-2.c (do_test): Likewise.
1584 * posix/tst-rfc3484-3.c (do_test): Likewise.
1585
30a2dfd5
DS
1586 [BZ #10416]
1587 * include/unistd.h: Make header file suitable for C++ test cases.
1588 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1589
9b6bf8a3
UD
1590 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1591 stack alignment in the exit code.
1592
077e7700
UD
1593 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1594 potentially be zero.
1595
802fe9a1
UD
1596 * elf/tst-unique1.c: Extend test to check for unloading DSO with
1597 unique symbol definition.
1598 Patch by Jakub Jelinek.
1599 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1600 make sure the object with the definition cannot be unloaded. Adjust
1601 a few types.
1602 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1603 the unique symbol hash table should not be const.
1604
ae612b04
UD
16052009-07-21 Ulrich Drepper <drepper@redhat.com>
1606
1607 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
1608 unnecesary variables. Comment fixes.
1609
a8f895eb
UD
16102009-07-20 Ulrich Drepper <drepper@redhat.com>
1611
1612 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1613 Use NONASCII_CASE information provided by the locale to determine
1614 whether optimized string load function can be used. Minor cleanups.
1615
2b7a8664
L
16162009-07-20 H.J. Lu <hongjiu.lu@intel.com>
1617
1618 * string/strcasestr.c (STRCASESTR): New macro.
1619 (__strcasestr): Renamed to ..
1620 (STRCASESTR): ...this.
1621 * string/strstr.c (STRSTR): New macro.
1622 (strstr): Renamed to ..
1623 (STRSTR): ...this.
1624 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1625 strstr-c strcasestr-c
1626 (CFLAGS-strstr.c): New.
1627 (CFLAGS-strcasestr.c): Likewise.
1628 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1629 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1630 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1631 * sysdeps/x86_64/multiarch/strstr.c: New file.
1632
8a449450
UD
16332009-07-20 Ulrich Drepper <drepper@redhat.com>
1634
1635 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1636 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1637 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1638 _NL_CTYPE_NONASCII_CASE.
1639 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1640 field.
1641 (ctype_finish): Check whether there are any 8-bit characters outside
1642 the range ASCII has or whether the mapping isn't the same as for
1643 ASCII (±0x20). Set nonascii_case appropriately.
1644 (ctype_output): Add output handler for nonascii_case.
1645
63601ccd
UD
16462009-07-17 Ulrich Drepper <drepper@redhat.com>
1647
1648 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1649 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1650
1c0ab5bd
UD
16512009-07-16 Ulrich Drepper <drepper@redhat.com>
1652
1653 [BZ #10360]
1654 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1655 0xffff in the EDNS0 record.
1656
bec466d9 16572009-07-16 Ulrich Drepper <drepper@redhat.com>
50158f95
AS
1658
1659 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1660 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1661 is written before the list head update.
1662 Patch by Andreas Schwab <aschwab@redhat.com>.
1663
137028b4 16642009-07-16 Ulrich Drepper <drepper@redhat.com>
bec466d9
UD
1665 Jakub Jelinek <jakub@redhat.com>
1666
1667 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1668 corruption thread-safe.
1669
bea0ac1d
JJ
16702009-07-13 Jakub Jelinek <jakub@redhat.com>
1671
1672 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1673 overrides atomic_compare_and_exchange_val_rel, define to
1674 atomic_compare_and_exchange_val_rel by default, otherwise default
1675 to catomic_compare_and_exchange_val_acq.
1676 (catomic_compare_and_exchange_bool_rel): If arch overrides
1677 atomic_compare_and_exchange_bool_rel, define to
1678 atomic_compare_and_exchange_bool_rel by default.
1679 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1680 Use catomic_compare_and_exchange_val_rel instead of
1681 catomic_compare_and_exchange_val_acq.
1682
c8027cce
UD
16832009-07-16 Ulrich Drepper <drepper@redhat.com>
1684
55c4ce68
UD
1685 * sysdeps/generic/ldsodefs.h: Add prototype for
1686 _dl_higher_prime_number.
1687 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1688
c8027cce
UD
1689 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1690 restoring of ymm registers a bit.
1691
e26c9b84
L
16922009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1693
1694 * sysdeps/x86_64/memcmp.S: New file.
1695
d7bd7a8a 16962009-07-15 Ulrich Drepper <drepper@redhat.com>
59cbcac0 1697
d7bd7a8a
UD
1698 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1699 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1700 pointers in writable memory.
59cbcac0 1701
b0ecde3a
L
17022009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1703
1704 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1705 * config.make.in: Add config-cflags-avx entry.
1706 * configure.in: Substitute libc_cv_cc_avx.
1707 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1708 * elf/tst-audit4.c: New file.
1709 * elf/tst-audit5.c: New file.
1710 * elf/tst-auditmod4a.c: New file.
1711 * elf/tst-auditmod4b.c: New file.
1712 * elf/tst-auditmod5a.c: New file.
1713 * elf/tst-auditmod5b.c: New file.
1714 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1715 link-defines.sym.
1716 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1717 (La_x86_64_vector): Likewise.
1718 (La_x86_64_regs): Append lr_vector.
1719 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1720 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1721 saving and restoring SSE registers to ...
1722 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1723 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1724 <link-defines.h>.
1725 (_dl_runtime_profile): Use LR_SIZE to allocate space for
1726 La_x86_64_regs. Allocate extra space and jump to memory at
1727 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1728 (save_and_restore_vector_sse): New.
1729 (save_and_restore_vector_avx): Likewise.
1730 (check_avx): Likewise.
1731 (save_and_restore_vector): Likewise.
1732 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1733 HAVE_AVX_SUPPORT.
1734 * sysdeps/x86_64/link-defines.sym: New file.
1735
339717d5
UD
17362009-07-10 Ulrich Drepper <drepper@redhat.com>
1737
786b74f4
UD
1738 * elf/do-lookup.h: Removed after folding content into...
1739 * elf/dl-lookup.c: ...here.
1740
339717d5
UD
1741 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1742
415ac3df
UD
17432009-07-09 Ulrich Drepper <drepper@redhat.com>
1744
1745 * configure.in: Check for gnu_unique_symbol symbol type.
1746 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1747 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1748 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
1749 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1750 change.
1751 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1752 unique symbol table.
1753 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1754 for first namespace.
1755 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1756 unique symbol hash table.
1757 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1758 * elf/tst-unique1.c: New file.
1759 * elf/tst-unique1mod1.c: New file.
1760 * elf/tst-unique1mod2.c: New file.
1761 * elf/tst-unique2.c: New file.
1762 * elf/tst-unique2mod1.c: New file.
1763 * elf/tst-unique2mod2.c: New file.
1764
eba0994e
UD
17652009-07-07 Ulrich Drepper <drepper@redhat.com>
1766
b4f55afd
UD
1767 * elf/elf.h (STB_GNU_UNIQUE): Define.
1768
eba0994e
UD
1769 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
1770 from...
1771 * include/inline-hashtab.h: ...here.
1772 (htab_expand): Adjust for renamed function. Correct memory handling.
1773
a38862a5
UD
17742009-07-06 Ulrich Drepper <drepper@redhat.com>
1775
415ac3df 1776 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
a38862a5 1777
2123d581
AS
17782009-07-03 Andreas Schwab <aschwab@redhat.com>
1779
1780 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1781 (PPC_FEATURE_HAS_VSX): Likewise.
1782
d6485c98
UD
17832009-07-03 Ulrich Drepper <drepper@redhat.com>
1784
cea43295
UD
1785 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1786 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1787
d6485c98
UD
1788 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1789 aligned to 16 byte boundaries.
1790 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1791 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1792 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1793
06e51c8f
L
17942009-07-02 H.J. Lu <hongjiu.lu@intel.com>
1795
1796 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1797 * config.make.in (config-cflags-sse4): New variable.
1798 * configure.in: Substitute libc_cv_cc_sse4.
1799 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1800 HAVE_SSE4_SUPPORT.
1801 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1802 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1803 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1804 * sysdeps/x86_64/multiarch/strcspn.S: New file.
1805 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1806 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1807 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1808 * sysdeps/x86_64/multiarch/strspn.S: New file.
1809
ab6a873f
L
18102009-06-30 H.J. Lu <hongjiu.lu@intel.com>
1811
167d5ed5
L
1812 * elf/Makefile (distribute): Remove tst-audit.sh. Add
1813 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1814 (tests): Add tst-audit3 for x86_64.
1815 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1816 ($(objpfx)tst-audit3): Define.
1817 ($(objpfx)tst-audit3.out): Define.
1818 (tst-audit3-ENV): Define.
1819 * elf/tst-audit3.c: New file.
1820 * elf/tst-auditmod3a.c: New file.
1821 * elf/tst-auditmod3b.c: New file.
1822 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1823 and restore xmm6.
1824
ab6a873f
L
1825 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
1826 (__stpncpy): Renamed to ...
1827 (STPNCPY): This.
1828 (stpncpy): Create alias only if STPNCPY is not defined.
1829 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
1830 defined.
1831 (strncpy): Renamed to ...
1832 (STRNCPY): This.
1833 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1834 stpncpy-c strncpy-c for string.
1835 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1836 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1837 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1838 * sysdeps/x86_64/multiarch/strcpy.S: New file.
1839 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1840 * sysdeps/x86_64/multiarch/strncpy.S: New file.
1841
6cbbaa50
UD
18422009-07-02 Ulrich Drepper <drepper@redhat.com>
1843
1844 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1845 adding to fast bin list.
1846
29ba9812
UD
18472009-07-01 Ulrich Drepper <drepper@redhat.com>
1848
2fd0cd8b
UD
1849 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1850 inet_makeaddr. This worked only with class-based networks.
1851 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1852 Likewise.
1853
29ba9812 1854 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
5cd1f906 1855 recognize all types.
29ba9812 1856 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
5cd1f906
UD
1857 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
1858 be in host byte order.
29ba9812 1859
01812913
L
18602009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1861
1862 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1863 (MODEL_OFFSET): Define.
1864 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1865 family and model.
1866 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1867 out common code into new function get_common_indeces. Determine
1868 extended family and model for Intel processors.
1869
44d20bca
UD
18702009-06-26 Ulrich Drepper <drepper@redhat.com>
1871
1872 * resolv/resolv.h: Define RES_SNGLKUPREOP.
1873 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1874 option.
1875 * resolv/res_send.c (reopen): New function. Broken out of...
1876 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
1877 fallback mechanism. If single-request fails switch to
1878 single-request-reopen mode which opens a new socket for the second
1879 request.
1880
80a98966
AS
18812009-06-25 Andreas Schwab <aschwab@redhat.com>
1882
1883 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1884 (CHECK_SP): Use it.
54c99aab 1885
3f241d75
AS
18862009-06-24 Andreas Schwab <aschwab@redhat.com>
1887
1888 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1889 for saved registers.
1890 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1891 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1892 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1893
7a7c2c24
AS
18942009-06-23 Andreas Schwab <aschwab@redhat.com>
1895
1896 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1897
20a3ce85
UD
18982009-06-22 Ulrich Drepper <drepper@redhat.com>
1899
58d60030
UD
1900 * po/id.po: Update from translation team.
1901
20a3ce85
UD
1902 * po/bg.po: Update from translation team.
1903
772f4e6a
L
19042009-06-22 H.J. Lu <hongjiu.lu@intel.com>
1905
1906 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
1907 defined.
1908 (strncmp): Renamed to STRNCMP.
1909 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1910 strncmp-c for string.
1911 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1912 * sysdeps/x86_64/multiarch/strcmp.S: New file.
1913 * sysdeps/x86_64/multiarch/strncmp.S: New file.
1914 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1915
3c30afc8
L
19162009-06-19 H.J. Lu <hongjiu.lu@intel.com>
1917
1918 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1919 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1920 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1921 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1922 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1923 ifuncmain7static.c.
1924 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1925 ifuncmain7static, and ifuncmain7picstatic.
1926 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1927 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1928 $(objpfx)ifuncmain7pie.out.
1929 (modules-names): Add ifuncmod5 ifuncmod6
1930 (ifuncmod5.so-no-z-defs): Define.
1931 (ifuncmod6.so-no-z-defs): Define.
1932 (CFLAGS-ifuncmain5pic.c): Define.
1933 (CFLAGS-ifuncmain5picstatic.c): Define.
1934 (CFLAGS-ifuncmain5staticpic.c): Define.
1935 (CFLAGS-ifuncdep5pic.c): Define.
1936 (CFLAGS-ifuncmain7pic.c): Define.
1937 (CFLAGS-ifuncmain7picstatic.c): Define.
1938 (CFLAGS-ifuncmain1staticpie.c): Define.
1939 (CFLAGS-ifuncmain5pie.c): Define.
1940 (CFLAGS-ifuncmain6pie.c): Define.
1941 (CFLAGS-ifuncmain7pie.c): Define.
1942 ($(objpfx)ifuncmain1staticpie.out): Define.
1943 ($(objpfx)ifuncmain1staticpie): Define.
1944 ($(objpfx)ifuncmain5pie.out): Define.
1945 ($(objpfx)ifuncmain5pie): Define.
1946 ($(objpfx)ifuncmain6pie.out): Define.
1947 ($(objpfx)ifuncmain6pie): Define.
1948 ($(objpfx)ifuncmain5): Define.
1949 ($(objpfx)ifuncmain5pic): Define.
1950 ($(objpfx)ifuncmain5static): Define.
1951 ($(objpfx)ifuncmain5staticpic): Define.
1952 ($(objpfx)ifuncmain5picstatic): Define.
1953 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1954 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1955 ifuncmain6pie.out.
1956 * elf/b/elf/ifuncmain1staticpie.c: New file.
1957 * elf/ifuncdep5.c: New file.
1958 * elf/ifuncdep5pic.c: New file.
1959 * elf/ifuncmain5.c: New file.
1960 * elf/ifuncmain5pic.c: New file.
1961 * elf/ifuncmain5picstatic.c: New file.
1962 * elf/ifuncmain5pie.c: New file.
1963 * elf/ifuncmain5static.c: New file.
1964 * elf/ifuncmain5staticpic.c: New file.
1965 * elf/ifuncmain6pie.c: New file.
1966 * elf/ifuncmain7.c: New file.
1967 * elf/ifuncmain7pic.c: New file.
1968 * elf/ifuncmain7picstatic.c: New file.
1969 * elf/ifuncmain7pie.c: New file.
1970 * elf/ifuncmain7static.c: New file.
1971 * elf/ifuncmod5.c: New file.
1972 * elf/ifuncmod6.c: New file.
1973
ccab6d8f
UD
19742009-06-20 Ulrich Drepper <drepper@redhat.com>
1975
1976 [BZ #10085]
1977 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1978 (nss_endgrent): New variable.
1979 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1980 fields. Change type of files to bool and adjust all users.
1981 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1982 (internal_endgrent): Call nss_endgrent if necessary.
1983 (add_group): New function. Broken out of...
1984 (check_and_add_group): ...here.
1985 (getgrent_next_nss): Remove test that any callback is available.
1986 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1987 callback. If there is no blacklist we can trust the results returned
1988 by the initgroups_dyn callback. In case there is a callback and we
1989 find a group entry for the group ID but it doesn't contain the
1990 correct member, switch to the slow mode and use getgrent_r.
1991 (internal_getgrent_r): When we see a +: entry, determine whether
1992 there is any callback and which we can use the initgroups_dyn
1993 callback.
1994
d0a2af71
UD
19952009-06-18 Ulrich Drepper <drepper@redhat.com>
1996
f6887a0d
UD
1997 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1998 (_int_free): Likewise.
1999
d0a2af71
UD
2000 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2001 AF_IEEE802154.
2002 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2003 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2004 and ARPHRD_IEEE802154_PHY.
2005
2006 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2007 relative to generic Linux version.
2008
d8366b09
L
20092009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2010
2011 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2012 ($(objpfx)ifuncmain1vispie): Likewise.
2013
f051ddfe
UD
20142009-06-16 Ulrich Drepper <drepper@redhat.com>
2015
2016 * login/Makefile: Build pt_chown as PIE.
2017
f60ddf9b
AS
20182009-06-15 Andreas Schwab <aschwab@redhat.com>
2019
2020 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2021 a format string.
2022 * elf/sln.c (usage): Likewise.
2023 * malloc/memusage.sh (do_help): Likewise.
2024 * nss/getent.c (more_help): Likewise.
2025 * posix/getconf.c (main): Likewise.
2026 * sunrpc/rpcinfo.c (usage): Likewise.
2027 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2028
f793b624
UD
20292009-06-16 Ulrich Drepper <drepper@redhat.com>
2030
8a909c64
UD
2031 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2032 those needed.
f793b624 2033 * login/Makefile: If necessary link pt_chown with -lcap.
8a909c64
UD
2034 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2035 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
f793b624 2036
fab8238d
JJ
20372009-06-16 Jakub Jelinek <jakub@redhat.com>
2038
2039 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2040 comparisons.
2041 * string/test-memchr.c (do_random_tests): Test very large lengths
2042 as well.
2043
435aa54b
L
20442009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 * Makeconfig (+link-pie): Define.
2047 (+prectorS): Define.
2048 (+postctorS): Define.
2049 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2050 * nscd/Makefile ($(objpfx)nscd): Likewise.
2051
25bfbb9e
RA
20522009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2053
2054 [BZ #10107]
2055 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2056 with cmplwi.
2057 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2058
b34de9ea
UD
20592009-06-16 Ulrich Drepper <drepper@redhat.com>
2060
2061 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2062 into ...
2063 * sysdeps/unix/grantpt.c: ...here.
2064
a468a1d4
UD
20652009-06-15 Ulrich Drepper <drepper@redhat.com>
2066
837dea7c
UD
2067 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2068 chmod if it is necessary.
2069
292e3abe 2070 [BZ #10166]
eae3208e
UD
2071 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2072 when the slave device is in devpts or devfs.
292e3abe 2073
395a37e3
UD
2074 [BZ #10183]
2075 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2076
7ed520bd
AE
2077 [BZ #10195]
2078 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2079 of nd_opt_home_agent_info_preference to uint16_t.
2080 Patch by Arnaud Ebalard <arno@natisbad.org>.
2081
c518f9a4 2082 [BZ #10207]
f6887a0d 2083 * nss/getent.c: Add support for printing gshadow data.
c518f9a4 2084
233a182b
JL
2085 [BZ #10203]
2086 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2087 not just the currently used one and those which follow.
2088 Patch by Joe Landers <jlanders@vmware.com>.
2089
4155d926
BD
2090 [BZ #10196]
2091 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
eae3208e 2092 * libio/Makefile: Run tst-fgetwc with necessary envvar.
4155d926
BD
2093 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2094
48dcd0ba
UD
2095 [BZ #10217]
2096 * stdlib/abort.c: Define variable __abort_msg.
2097 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2098 * include/stdlib.h: Declare __abort_msg.
2099 * assert/assert-perr.c: Don't free buffer for message immediately.
2100 Store atomically in __abort_msg and free old buffer if necessary.
2101 * assert/assert.c: Likewise.
2102 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2103 store pointer in __abort_msg, and possibly free old string.
2104 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2105
6355c997
UD
2106 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2107
29143408
AH
2108 [BZ #10211]
2109 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2110 handle leap seconds if they are available.
2111 Patch by Akinori Hattori <hattya@gentoo.org>.
2112
5fb55a68
UD
2113 * timezone/tzselect.ksh: Update from tzcode2009i.
2114 * timezone/zdump.c: Likewise.
2115 * timezone/zic.c: Likewise.
2116
a468a1d4
UD
2117 * timezone/africa: Update from tzdata2009i.
2118 * timezone/antarctica: Likewise.
2119 * timezone/asia: Likewise.
2120 * timezone/australasia: Likewise.
2121 * timezone/backward: Likewise.
2122 * timezone/etcetera: Likewise.
2123 * timezone/europe: Likewise.
2124 * timezone/factory: Likewise.
2125 * timezone/iso3166.tab: Likewise.
2126 * timezone/leapseconds: Likewise.
2127 * timezone/northamerica: Likewise.
2128 * timezone/pacificnew: Likewise.
2129 * timezone/solar87: Likewise.
2130 * timezone/solar88: Likewise.
2131 * timezone/solar89: Likewise.
2132 * timezone/southamerica: Likewise.
2133 * timezone/systemv: Likewise.
2134 * timezone/yearistype: Likewise.
2135 * timezone/zone.tab: Likewise.
2136
02125962
JJ
21372009-06-15 Jakub Jelinek <jakub@redhat.com>
2138
2139 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2140 STT_GNU_IFUNC symbol or in 8 into type_class.
2141
2142 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2143 instead of Elf64_Addr.
2144
eb0b6cb6
UD
21452009-06-14 Ulrich Drepper <drepper@redhat.com>
2146
53c06891
UD
2147 * po/sv.po: Update from translation team.
2148
eb0b6cb6
UD
2149 [BZ #10229]
2150 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2151 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2152 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2153 the C version.
2154
bfdb73e1
UD
21552009-06-12 Ulrich Drepper <drepper@redhat.com>
2156
2157 * Versions.def: Add GLIBC_2.11 for libpthread.
2158
310647e9
UD
21592009-06-11 Ulrich Drepper <drepper@redhat.com>
2160
2161 * resolv/res_send.c (send_dg): Remember we switched to
2162 single-request mode.
2163
d360a0da
UD
21642009-06-09 Ulrich Drepper <drepper@redhat.com>
2165
88ea382f
D
2166 * dlfcn/dlfcn.h: Remove comma at end of enum.
2167 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2168
d360a0da
UD
2169 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2170 parsing mode string.
2171
443caceb
UD
21722009-06-05 Ulrich Drepper <drepper@redhat.com>
2173
b77c9323
UD
2174 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2175
2176 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2177
3ab2d57a
UD
2178 * sysdeps/x86_64/multiarch/strlen.S: New file.
2179 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2180 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2181 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2182 content.
2183
443caceb
UD
2184 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2185 is defined.
2186
747785f2
UD
21872009-06-04 Ulrich Drepper <drepper@redhat.com>
2188
2f3f7b9d 2189 * sysdeps/x86_64/strlen.S: Minor optimizations.
747785f2 2190
2f083d75
L
21912009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2192
2193 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2194 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2195 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2196 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2197 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2198 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2199 ifuncmain3.c, ifuncmod3.c,.
2200 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2201 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2202 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2203 ifuncmain4picstatic.
2204 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2205 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2206 ifuncmain3, ifuncmain4.
2207 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2208 $(objpfx)ifuncmain1vispie.out.
2209 (modules-names): Add ifuncmod1 ifuncmod3.
2210 (generated): Add ifuncmain1pie ifuncmain1pie.out
2211 ifuncmain1vispie ifuncmain1vispie.out.
2212 Define rules to build and run the tests.
2213 * elf/ifuncdep1.c: New file.
2214 * elf/ifuncdep1pic.c: New file.
2215 * elf/ifuncdep2.c: New file.
2216 * elf/ifuncdep2pic.c: New file.
2217 * elf/ifuncmain1.c: New file.
2218 * elf/ifuncmain1pic.c: New file.
2219 * elf/ifuncmain1picstatic.c: New file.
2220 * elf/ifuncmain1pie.c: New file.
2221 * elf/ifuncmain1static.c: New file.
2222 * elf/ifuncmain1staticpic.c: New file.
2223 * elf/ifuncmain1vis.c: New file..
2224 * elf/ifuncmain1vispic.c: New file..
2225 * elf/ifuncmain1vispie.c: New file.
2226 * elf/ifuncmain2.c: New file.
2227 * elf/ifuncmain2pic.c: New file.
2228 * elf/ifuncmain2picstatic.c: New file.
2229 * elf/ifuncmain2static.c: New file.
2230 * elf/ifuncmain3.c: New file.
2231 * elf/ifuncmain4.c: New file.
2232 * elf/ifuncmain4picstatic.c: New file.
2233 * elf/ifuncmain4static.c: New file.
2234 * elf/ifuncmod1.c: New file.
2235 * elf/ifuncmod3.c: New file.
2236
fbb04b35
UD
22372009-06-03 Ulrich Drepper <drepper@redhat.com>
2238
2239 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2240
3d5243d4
UD
22412009-06-02 Ulrich Drepper <drepper@redhat.com>
2242
2243 [BZ #10221]
2244 * posix/Makefile (routines): Add execvpe.
2245 * posix/Versions: Export execvpe for GLIBC_2.11.
2246 * posix/execvp.c: Now only a wrapper. Move code to...
2247 * posix/execvpe.c: ...here. New file.
2248 * posix/unistd.h: Declare execvpe.
2249
b7629ee3
UD
22502009-06-01 Ulrich Drepper <drepper@redhat.com>
2251
fd96f062
UD
2252 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2253 for STT_GNU_IFUNC handling for efficiency.
2254 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2255
b7629ee3
UD
2256 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2257 _exit.
2258 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2259
8ea23729
UD
22602009-05-31 Ulrich Drepper <drepper@redhat.com>
2261
2262 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2263 for !SHARED.
2264
74414708
UD
22652009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2266
2267 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2268 is not defined.
2269 (__rela_iplt_start): New declaration.
2270 (__rela_iplt_end): Likewise.
2271 (__rel_iplt_start): Likewise.
2272 (__rel_iplt_end): Likewise.
2273 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2274 * elf/elf.h (R_386_IRELATIVE): New macro.
2275 (R_X86_64_IRELATIVE): New macro.
2276 (R_386_NUM): Updated.
2277 (R_X86_64_NUM): Likewise.
2278 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2279 (libc_ifunc_hidden_def): New macro.
2280 * sysdeps/generic/dl-irel.h: New file.
2281 * sysdeps/i386/dl-irel.h: New file.
2282 * sysdeps/x86_64/dl-irel.h: New file.
2283 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2284 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2285 Handle R_386_IRELATIVE.
2286 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2287 (elf_machine_lazy_rela): Likewise.
2288 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2289 R_X86_64_IRELATIVE.
2290 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2291
963cb6fc
UD
22922009-05-31 Ulrich Drepper <drepper@redhat.com>
2293
2294 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2295 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2296 are no differences. If an architecture has bits in CPUID index 1
2297 meaning different things the values for the COMMON_CPUID_INDEX_1
2298 index must not be set.
2299 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2300 (HAS_POPCOUNT): ...this. New macro.
2301 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2302 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2303 to set the value for Intel and AMD architectures.
2304 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2305 INTEL_CPUID_INDEX_1.
2306 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2307 change.
2308
c16a054d
AS
23092009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2310
2311 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2312 and $build.
c16a054d 2313
7f3394bd
UD
23142009-05-29 Jakub Jelinek <jakub@redhat.com>
2315
2316 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2317 (__expm1l): Set errno to ERANGE on overflow.
2318 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2319 (__tanl): Set errno to EDOM for ±Inf.
2320 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2321 (__cosl): Set errno to EDOM for ±Inf.
2322 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2323 (__sinl): Set errno to EDOM for ±Inf.
2324
b8bb339f
UD
2325 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2326 defined, use it.
2327 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2328 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2329 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2330
1de0c161
UD
23312009-05-29 Ulrich Drepper <drepper@redhat.com>
2332
2333 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2334 code accessing it.
2335 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2336
0323b051
AS
23372009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2338
38ae768d
AS
2339 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2340 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2341 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2342 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2343
0323b051
AS
2344 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2345 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2346 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2347 defined.
2348 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2349 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2350
1e1dc4e8
JJ
23512009-05-22 Jakub Jelinek <jakub@redhat.com>
2352
2353 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2354 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2355 is, either do nothing at all if __ASSUME_ACCEPT4, or
2356 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2357 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2358 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2359 define.
2360 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2361 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2362 internal_accept4 in socket directory.
2363
10495c0b
UD
23642009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2365
2366 * sysdeps/ia64/configure.in: New file.
2367
fa64b7f7
UD
23682009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2369
2370 [BZ #10162]
2371 * sysdeps/ia64/memchr.S: Use speculative load.
2372
d2812fc6
L
2373 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2374 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2375 use it.
2376
e7535de7
L
2377 * sysdeps/i386/__longjmp.S: Add .text.
2378 * sysdeps/x86_64/__longjmp.S: Likewise.
2379
3533b1a6
UD
23802009-05-21 Ulrich Drepper <drepper@redhat.com>
2381
2382 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2383 __ASSUME_ACCEPT4 for IA-64.
2384
a2292378
JJ
23852009-05-21 Jakub Jelinek <jakub@redhat.com>
2386
d14eda93
JJ
2387 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2388
a2292378
JJ
2389 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2390 (SOCKOP_accept4): Define.
2391
d4ab2f2a
UD
23922009-05-20 Ulrich Drepper <drepper@redhat.com>
2393
ab09b221
UD
2394 Sun approved the change of the license.
2395 * sunrpc/auth_des.c: Replace license text.
2396 * sunrpc/auth_none.c: Likewise.
2397 * sunrpc/auth_unix.c: Likewise.
2398 * sunrpc/authdes_prot.c: Likewise.
2399 * sunrpc/authuxprot.c: Likewise.
2400 * sunrpc/bindrsvprt.c: Likewise.
2401 * sunrpc/clnt_gen.c: Likewise.
2402 * sunrpc/clnt_perr.c: Likewise.
2403 * sunrpc/clnt_raw.c: Likewise.
2404 * sunrpc/clnt_simp.c: Likewise.
2405 * sunrpc/clnt_tcp.c: Likewise.
2406 * sunrpc/clnt_udp.c: Likewise.
2407 * sunrpc/clnt_unix.c: Likewise.
2408 * sunrpc/des_crypt.c: Likewise.
2409 * sunrpc/des_soft.c: Likewise.
2410 * sunrpc/get_myaddr.c: Likewise.
2411 * sunrpc/getrpcport.c: Likewise.
2412 * sunrpc/key_call.c: Likewise.
2413 * sunrpc/key_prot.c: Likewise.
2414 * sunrpc/openchild.c: Likewise.
2415 * sunrpc/pm_getmaps.c: Likewise.
2416 * sunrpc/pm_getport.c: Likewise.
2417 * sunrpc/pmap_clnt.c: Likewise.
2418 * sunrpc/pmap_prot.c: Likewise.
2419 * sunrpc/pmap_prot2.c: Likewise.
2420 * sunrpc/pmap_rmt.c: Likewise.
2421 * sunrpc/rpc/auth.h: Likewise.
2422 * sunrpc/rpc/auth_unix.h: Likewise.
2423 * sunrpc/rpc/clnt.h: Likewise.
2424 * sunrpc/rpc/des_crypt.h: Likewise.
2425 * sunrpc/rpc/key_prot.h: Likewise.
2426 * sunrpc/rpc/netdb.h: Likewise.
2427 * sunrpc/rpc/pmap_clnt.h: Likewise.
2428 * sunrpc/rpc/pmap_prot.h: Likewise.
2429 * sunrpc/rpc/pmap_rmt.h: Likewise.
2430 * sunrpc/rpc/rpc.h: Likewise.
2431 * sunrpc/rpc/rpc_des.h: Likewise.
2432 * sunrpc/rpc/rpc_msg.h: Likewise.
2433 * sunrpc/rpc/svc.h: Likewise.
2434 * sunrpc/rpc/svc_auth.h: Likewise.
2435 * sunrpc/rpc/types.h: Likewise.
2436 * sunrpc/rpc/xdr.h: Likewise.
2437 * sunrpc/rpc_clntout.c: Likewise.
2438 * sunrpc/rpc_cmsg.c: Likewise.
2439 * sunrpc/rpc_common.c: Likewise.
2440 * sunrpc/rpc_cout.c: Likewise.
2441 * sunrpc/rpc_dtable.c: Likewise.
2442 * sunrpc/rpc_hout.c: Likewise.
2443 * sunrpc/rpc_main.c: Likewise.
2444 * sunrpc/rpc_parse.c: Likewise.
2445 * sunrpc/rpc_parse.h: Likewise.
2446 * sunrpc/rpc_prot.c: Likewise.
2447 * sunrpc/rpc_sample.c: Likewise.
2448 * sunrpc/rpc_scan.c: Likewise.
2449 * sunrpc/rpc_scan.h: Likewise.
2450 * sunrpc/rpc_svcout.c: Likewise.
2451 * sunrpc/rpc_tblout.c: Likewise.
2452 * sunrpc/rpc_util.c: Likewise.
2453 * sunrpc/rpc_util.h: Likewise.
2454 * sunrpc/rpcinfo.c: Likewise.
2455 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2456 * sunrpc/rpcsvc/key_prot.x: Likewise.
2457 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2458 * sunrpc/rpcsvc/mount.x: Likewise.
2459 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2460 * sunrpc/rpcsvc/rex.x: Likewise.
2461 * sunrpc/rpcsvc/rstat.x: Likewise.
2462 * sunrpc/rpcsvc/rusers.x: Likewise.
2463 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2464 * sunrpc/rpcsvc/spray.x: Likewise.
2465 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2466 * sunrpc/rtime.c: Likewise.
2467 * sunrpc/svc.c: Likewise.
2468 * sunrpc/svc_auth.c: Likewise.
2469 * sunrpc/svc_authux.c: Likewise.
2470 * sunrpc/svc_raw.c: Likewise.
2471 * sunrpc/svc_run.c: Likewise.
2472 * sunrpc/svc_simple.c: Likewise.
2473 * sunrpc/svc_tcp.c: Likewise.
2474 * sunrpc/svc_udp.c: Likewise.
2475 * sunrpc/svc_unix.c: Likewise.
2476 * sunrpc/svcauth_des.c: Likewise.
2477 * sunrpc/xcrypt.c: Likewise.
2478 * sunrpc/xdr.c: Likewise.
2479 * sunrpc/xdr_array.c: Likewise.
2480 * sunrpc/xdr_float.c: Likewise.
2481 * sunrpc/xdr_mem.c: Likewise.
2482 * sunrpc/xdr_rec.c: Likewise.
2483 * sunrpc/xdr_ref.c: Likewise.
2484 * sunrpc/xdr_sizeof.c: Likewise.
2485 * sunrpc/xdr_stdio.c: Likewise.
2486
d4ab2f2a
UD
2487 * po/da.po: Update from translation team.
2488
04733592
KK
24892009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2490
2491 * sysdeps/sh/____longjmp_chk.S: New file.
2492 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2493 * sysdeps/sh/sh4/__longjmp.S: Likewise.
a2292378 2494
5078fff6
JJ
24952009-05-18 Jakub Jelinek <jakub@redhat.com>
2496 Ulrich Drepper <drepper@redhat.com>
2497
2498 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2499 (__nscd_cache_search): Assume each entry in the
2500 hash chain needs one hashentry and half of datahead. Use
2501 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2502
95410b7b
UD
25032009-05-16 Ulrich Drepper <drepper@redhat.com>
2504
c457bc13
UD
2505 * posix/sys/wait.h: Fix typos. Pretty printing.
2506 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 2507
a64039b0
UD
2508 [BZ #10159]
2509 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2510
95410b7b
UD
2511 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2512 patch.
2513
831a4049
UD
25142009-05-15 Ulrich Drepper <drepper@redhat.com>
2515
831a4049
UD
2516 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2517 Use it if we absolutely cannot reach any more correct list elements
2518 because that many do not fit into the currently mapped database.
2519
6dd78596
UD
25202009-05-14 Jakub Jelinek <jakub@redhat.com>
2521
cfe1fc10
JJ
2522 * nscd/nscd_helper.c: Include stddef.h.
2523 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2524 in a couple of places. Return NULL if trail is not less than
2525 datasize, don't consider dataheads with length smaller than
2526 offsetof (struct datahead, data) + datalen.
2527 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2528 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2529 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2530 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2531 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2532 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2533 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2534
6dd78596
UD
2535 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2536 Rename ...
2537 (fallocate64): ... to this.
2538 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2539 Rename ...
2540 (fallocate64): ... to this.
2541 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2542 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2543 fallocate64@@GLIBC_2.10.
2544 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2545 fallocate64@@GLIBC_2.11.
2546 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2548 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2549 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2550
6dd78596
UD
2551 * nscd/selinux.c (nscd_avc_destroy): Removed.
2552 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2553 * nscd/nscd.c (termination_handler): Don't call
2554 nscd_avc_destroy.
2555
cfe1fc10
JJ
25562009-05-12 Jakub Jelinek <jakub@redhat.com>
2557
2558 * include/atomic.h: Formatting.
2559 (catomic_compare_and_exchange_val_acq): Don't define if already
2560 defined by bits/atomic.h.
2561
774f5a30
UD
25622009-05-15 Ulrich Drepper <drepper@redhat.com>
2563
bbc5d74d
UD
2564 * math/libm-test.inc (expm1_test): Add test for range error.
2565
b50f8e42
UD
2566 * Versions.def: Add GLIBC_2.11 for libc.
2567 * debug/Makefile (routines): Add longjmp_chk.
2568 Add rules to build and run tst-longjmp_chk.
2569 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2570 * debug/longjmp_chk.c: New file.
2571 * debug/tst-longjmp_chk.c: New file.
2572 * include/bits/setjmp2.: New file.
2573 * include/stdio.h: Mark __fortify_fail as internal_function.
2574 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2575 * setjmp/bits/setjmp2.h: New file.
2576 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2577 of the aliases.
2578 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2579 defined.
2580 * sysdeps/i386/____longjmp_chk.S: New file.
2581 * sysdeps/x86_64/____longjmp_chk.S: New file.
2582 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2583 * sysdeps/x86_64/__longjmp.S: Likewise.
2584
dc50b613
UD
2585 * version.h: Bump for 2.11 development.
2586
774f5a30
UD
2587 * elf/check-execstack.c: New file.
2588 * elf/Makefile: Add rules to build and run check-execstack.
2589
deb84c43
UD
25902009-05-10 Ulrich Drepper <drepper@redhat.com>
2591
2592 * version.h (VERSION): Bump to 2.10.1.
2593
2594 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2595 compatibility functions.
2596 * nss/getXXent_r.c: Likewise.
2597 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2598 * gshadow/getsgnam_r.c: Likewise.
2599 * gshadow/Version: Remove duplicate entries.
2600
2601 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2602 for recent processor.
2603 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2604 Likewise.
2605
deb318c2
UD
26062009-05-09 Ulrich Drepper <drepper@redhat.com>
2607
2608 * version.h (VERSION): Bump for 2.10 release.
2609 * include/features.h (__GLIBC_MINOR__): Bump to 10.
2610
eb29449a
UD
2611 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
2612 same place we add ASFLAGS-config.
2613
cf4f16cc
UD
26142009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2615
2616 [BZ #10128]
2617 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2618 or FORMERR and the other NOERROR, don't raise an error.
2619
23b6b466
UD
26202009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
2621
2622 [BZ #10118]
2623 * Makeconfig (+asflags): New variable based upon ASFLAG or
2624 asflags-cpu.
2625 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2626 * config.make.in (asflags-cpu): Add variable based upon
2627 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2628 the assembler.
2629 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2630 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2631 recognizes power6 instruction set due to passing -mcpu=power6 from
2632 --with-cpu=power6 when compiling .S files.
2633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2634 Likewise.
2635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2636 Likewise.
2637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2638 Likewise.
2639
15417de3
UD
26402009-05-09 Jakub Jelinek <jakub@redhat.com>
2641
2642 * string/stratcliff.c (do_test): Test for zero length
2643 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2644 at the end of the page.
2645
b5f7c4ca
UD
26462009-05-08 Ulrich Drepper <drepper@redhat.com>
2647
4300afc1
UD
2648 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2649
2221e33e
UD
2650 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2651 count is zero.
2652
b5f7c4ca
UD
2653 * po/da.po: Update from translation team.
2654
1765abb3
UD
26552009-05-05 Jakub Jelinek <jakub@redhat.com>
2656
2657 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2658 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 2659
b5f7c4ca
UD
26602009-05-05 Ulrich Drepper <drepper@redhat.com>
2661
2662 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2663 and READ_IMPLIES_EXEC.
2664
26652009-05-04 Ulrich Drepper <drepper@redhat.com>
2666
2667 * po/da.po: Update from translation team.
2668
667712b8
JJ
26692009-04-29 Jakub Jelinek <jakub@redhat.com>
2670
2671 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2672 comment change.
2673
6284c9f6
UD
26742009-04-27 Jakub Jelinek <jakub@redhat.com>
2675
2676 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2677 to MAP_ANON in PROT_NONE mmap64 call.
2678 (open_archive): Likewise.
2679 (file_data_available_p): Use mmap64 instead of mremap.
2680 (enlarge_archive): Likewise. Update head if ah->addr changed.
2681 Attempt to reserve address space after mmap64 region.
2682
4ec77f72
UD
26832009-04-26 Ulrich Drepper <drepper@redhat.com>
2684
f0e3c47f
UD
2685 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2686 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2687 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2688
49768bb9
UD
2689 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2690 atanh should set ERANGE.
2691
e49dc847
UD
2692 [BZ #10087]
2693 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2694 result of lookup to make call to implement STT_GNU_IFUNC.
2695 (_dl_profile_fixup): Likewise.
2696 Patch by H.J. Lu <hjl.tools@gmail.com>.
2697
1ac03a1e
UD
2698 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2699 warning.
2700
6cc8844f
UD
2701 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2702 from definition.
2703
2704 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2705 label if it is not used.
2706
2707 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2708 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 2709 * elf/sprof.c: Likewise.
6cc8844f
UD
2710
2711 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2712 warning.
2713
2714 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2715
2716 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2717 to avoid cast.
2718
2719 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2720 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2721 to avoid warnings.
2722 (iruserok_af): Use ss_family instead of casts.
2723
2724 * gmon/gmon.c (write_hist): Define real-type variant of
2725 gmon_hist_hdr structure and use it.
2726 (write_gmon): Likewise for gmon_hdr.
2727
2728 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2729 function if we are not going to define it.
2730 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2731
218555e9 2732 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
2733 avoid warning.
2734
2735 * libio/strfile.h (struct _IO_streambuf): Use correct type and
2736 name of VTable element.
2737 * libio/iovsprintf.c: Avoid casts to avoid warnings.
2738 * libio/iovsscanf.c: Likewise.
2739 * libio/vasprintf.c: Likewise.
2740 * libio/vsnprintf.c: Likewise.
2741 * stdio-common/isoc99_vsscanf.c: Likewise.
2742 * stdlib/strfmon_l.c: Likewise.
2743 * debug/vasprintf_chk.c: Likewise.
2744 * debug/vsnprintf_chk.c: Likewise.
2745 * debug/vsprintf_chk.c: Likewise.
2746
4ec77f72
UD
2747 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2748 function pointers.
2749
82a1a4da
UD
27502009-04-26 Jakub Jelinek <jakub@redhat.com>
2751
2752 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2753
db6edfb3
UD
27542009-04-25 Ulrich Drepper <drepper@redhat.com>
2755
27be9b92
UD
2756 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2757
337c2708
UD
2758 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2759 * sysdeps/i386/fpu/s_tanf.S: Likewise.
2760 * sysdeps/i386/fpu/s_tanl.S: Likewise.
2761 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2762 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2763 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2764 * math/libm-test.inc: Add tests for errno after tan calls with
2765 ±Inf.
2766
002a604f
UD
2767 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2768 errno value vor pow(+-0,neg).
2769 * math/libm-test.inc (pow_test): Add tests for errno value for
2770 pole errors.
2771
7095366d
UD
2772 * math/w_fmod.c: Also handle x=±Inf as error.
2773 * math/w_fmodf.c: Likewise.
2774 * math/w_fmodl.c: Likewise.
2775 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2776 x=±Inf or y=0.
2777
0c59a196
UD
2778 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
2779 * sysdeps/i386/fpu/s_cosf.S: Likewise.
2780 * sysdeps/i386/fpu/s_cosl.S: Likewise.
2781 * sysdeps/i386/fpu/s_sin.S: Likewise.
2782 * sysdeps/i386/fpu/s_sinf.S: Likewise.
2783 * sysdeps/i386/fpu/s_sinl.S: Likewise.
2784 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2785 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2786 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2787 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2788 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2789 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2790 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2791 * math/libm-test.inc: Add tests for errno after sin/cos calls with
2792 ±Inf.
2793
4bbf8999
UD
2794 * stdlib/strtod_l.c (round_and_return): We have to set errno to
2795 ERANGE for underflows.
2796 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2797
af9f1c48
UD
2798 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2799 the 2001 revision.
2800
13327042
UD
2801 * libio/tst-widetext.input: Remove surrogates.
2802
c163ee23
UD
2803 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2804
e971e76d 2805 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 2806 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
2807 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2808
c2d5bd5b
UD
28092009-04-24 Ulrich Drepper <drepper@redhat.com>
2810
9c32c895
UD
2811 [BZ #10093]
2812 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2813 UTF-16 surrogates.
2814
c9edc889
UD
2815 * locale/programs/locarchive.c (enlarge_archive): Conserve address
2816 space when temporarily mapping the whole content of the old file.
2817
c2d5bd5b
UD
2818 [BZ #10100]
2819 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2820 not zero.
2821
f397be12
UD
28222009-04-24 Jakub Jelinek <jakub@redhat.com>
2823
2824 * iconvdata/sjis.c (BODY): Don't advance inptr before
2825 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2826 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2827 two byte chars.
2828
705341a9
UD
28292009-04-24 Ulrich Drepper <drepper@redhat.com>
2830
2831 * locale/locarchive.h (struct locarhandle): Rename len field to
2832 mmaped and add new reserved field.
2833 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2834 (create_archive): Reserve address space and then map file into it.
2835 (open_archive): Likewise.
2836 (file_data_available_p): New function.
2837 (compare_from_file): New function.
2838 (close_archive): Adjust to member name changes.
2839 (add_locale): Before comparing locale data, check it is mapped.
2840 Otherwise fall back to reading from the file.
2841
57d2da1c
UD
28422009-04-23 H.J. Lu <hongjiu.lu@intel.com>
2843
2844 * stdio-common/psiginfo.c: Include <errno.h>.
2845
3d855f75
UD
28462009-04-23 Ulrich Drepper <drepper@redhat.com>
2847
fe12c798
UD
2848 [BZ #9920]
2849 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2850 to get consistency between 32 and 64 bit architectures.
2851
3d855f75
UD
2852 [BZ #10052]
2853 * sysdeps/unix/make-syscalls.sh: Add rule to create target
2854 directory for dummy syscall rules.
2855 Patch by Chris Steinbroner <hesh@pobox.com>.
2856
95bf537f
UD
28572009-04-23 Aurelien Jarno <aurelien@aurel32.net>
2858
2859 [BZ #10092]
2860 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2861 MNT_EXPIRE.
2862
7f8a28ef
UD
28632009-04-23 Ulrich Drepper <drepper@redhat.com>
2864
2865 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
2866 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2867
28682009-04-23 Jakub Jelinek <jakub@redhat.com>
2869
2870 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
2871 data from vector to temporary buffer and call PWRITEV after it
2872 instead of vice versa.
2873 * sysdeps/posix/preadv.c: Fix up comment.
2874 * misc/preadv.c: Likewise.
2875 * misc/preadv64.c: Likewise.
2876 * misc/pwritev.c: Likewise.
2877 * misc/pwritev64.c: Likewise.
2878 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2879
829fea46
UD
28802009-04-23 Ulrich Drepper <drepper@redhat.com>
2881
c7e74e59
UD
2882 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2883
3b055b47
UD
2884 * shadow/Makefile (tests): Add tst-shadow.
2885 * shadow/tst-shadow.c: New file.
2886
829fea46
UD
2887 [BZ #9955]
2888 * gshadow/Makefile: New file.
2889 * gshadow/Versions: New file.
2890 * gshadow/fgetsgent.c: New file.
2891 * gshadow/fgetsgent_r.c: New file.
2892 * gshadow/getsgent.c: New file.
2893 * gshadow/getsgent_r.c: New file.
2894 * gshadow/getsgnam.c: New file.
2895 * gshadow/getsgnam_r.c: New file.
2896 * gshadow/gshadow.h: New file.
2897 * gshadow/putsgent.c: New file.
2898 * gshadow/sgetsgent.c: New file.
2899 * gshadow/sgetsgent_r.c: New file.
2900 * gshadow/tst-gshadow.c: New file.
2901 * include/gshadow.h: New file.
2902 * Makeconfig (all-subdirs): Add gshadow.
2903 * Makefile (installed-headers): Add gshadow/gshadow.h.
2904 * nss/Makefile (databases): Add sgrp.
2905 * nss/Versions: Add gshadow functions as private exports.
2906 * nss/nsswitch.conf: Add gshadow entry.
2907 * nss/sgrp-lookup.c: New file.
2908 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
2909 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2910 * nss/nss_files/files-sgrp.c: New file.
2911 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2912 * sysdeps/unix/sysv/linux/paths.h: Likewise.
2913
debafa10
UD
29142009-04-22 Ulrich Drepper <drepper@redhat.com>
2915
2916 * stdio-common/printf.h: Add missing const to register_printf_modifier.
2917 * stdio-common/reg-modifier.c: Likewise.
2918
29192009-04-22 Andrew Stubbs <ams@codesourcery.com>
2920
2921 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2922 is no FPU.
2923
0e04c0b5
UD
29242009-04-20 Ulrich Drepper <drepper@redhat.com>
2925
d43f10e7 2926 [BZ #10086]
1c376f5b
UD
2927 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2928 headers up to 2.6.30.
2929
0e04c0b5
UD
2930 * po/ca.po: Update from translation team.
2931
a245eafd
UD
29322009-04-19 Ulrich Drepper <drepper@redhat.com>
2933
2934 [BZ #10069]
2935 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2936 an object that uses static TLS if the TLS modid is higher than the
2937 reserve we always allocate. At least for multi-threaded code.
2938
0588a9cb
UD
29392009-04-18 Ulrich Drepper <drepper@redhat.com>
2940
153aa31b
UD
2941 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2942 Numerically stable check for valid width.
2943
59a7162b
UD
2944 * locale/programs/locarchive.c (open_archive): Map the entire file
2945 and not just the administrative data.
2946 (add_locale): When we find a hash sum match compare the content
2947 to be sure.
2948
0588a9cb
UD
2949 * malloc/malloc.c (malloc_info): Output address space information.
2950
17a5b24e
UD
29512009-04-17 Ulrich Drepper <drepper@redhat.com>
2952
da2d2fb6
UD
2953 * malloc/malloc.c (malloc_info): Also output system memory information.
2954
11cad88c
UD
2955 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2956 architectures have preadv/pwritev in 2.6.30.
2957
571ac26f
UD
2958 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2959 * sysdeps/posix/readv.c: Likewise.
2960 Reported by Markus Armbruster <armbru@redhat.com>.
2961
17a5b24e
UD
2962 * malloc/hooks.c (top_check): Force hook value into register.
2963
57ec6442
RM
29642009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2965
2966 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2967 calls to _dl_relocate_object.
2968
df77455c
UD
29692009-04-16 Ulrich Drepper <drepper@redhat.com>
2970
2971 [BZ #9957]
2972 * malloc/malloc.c (force_reg): Define.
2973 (sYSMALLOc): Load hook variable into variable
2974 before test and force into register.
2975 (sYSTRIm): Likewise.
2976 (public_mALLOc): Force hook value into register.
2977 (public_fREe): Likewise.
2978 (public_rEALLOc): Likewise.
2979 (public_mEMALIGn): Likewise.
2980 (public_vALLOc): Likewise.
2981 (public_pVALLOc): Likewise.
2982 (public_cALLOc): Likewise.
2983 (__posix_memalign): Likewise.
2984 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2985 before test and force into register.
2986 * malloc/hooks.c (top_check): Likewise.
3b055b47 2987 (public_sET_STATe): Pretty printing.
df77455c
UD
2988
2989 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2990 in case we only receive one reply in single-request mode.
2991
733ca93a
JJ
29922009-04-16 Jakub Jelinek <jakub@redhat.com>
2993
2994 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2995 are dlopened in statically linked program even for __LM_ID_CALLER.
2996
d0e81f10
UD
29972009-04-16 Ulrich Drepper <drepper@redhat.com>
2998
2999 * resolv/res_send.c (send_dg): Don't switch into single-request
3000 mode if we already are in it.
3001
6a3d03ff
UD
30022009-04-15 Ulrich Drepper <drepper@redhat.com>
3003
3004 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3005 are always at least 4 bytes in the returned line.
3006
30072009-04-15 Jakub Jelinek <jakub@redhat.com>
3008
3009 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3010 __libc_use_alloca (8192), if the stack is too small use 512 bytes
3011 instead of 8K. Stop searching in /proc/stat after hitting first
3012 line not starting with cpu.
3013 (next_line): Truncate too long
3014 lines at buffer size * 3/4 instead of pretending there were line
3015 breaks inside of large lines.
3016
ae650a41
UD
30172009-04-14 Ulrich Drepper <drepper@redhat.com>
3018
3019 * sysdeps/x86_64/mp_clz_tab.c: New file.
3020
353f2107 30212009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
677760a3 3022 Ulrich Drepper <drepper@redhat.com>
353f2107
UD
3023
3024 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3025 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 3026 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 3027
fc0c5705
UD
30282009-03-25 Andrew Stubbs <ams@codesourcery.com>
3029
3030 * sysdeps/sh/libc-tls.c: New file.
3031
3032 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3033
237a8867
RM
30342009-04-14 Roland McGrath <roland@redhat.com>
3035
3036 * elf/elf.h: Add various missing ARM constants, to match binutils.
3037
893a5fd4
UD
30382009-04-14 Ulrich Drepper <drepper@redhat.com>
3039
3040 Optimizations from GMP.
3041 * sysdeps/x86_64/add_n.S: New file.
3042 * sysdeps/x86_64/addmul_1.S: New file.
3043 * sysdeps/x86_64/lshift.S: New file.
3044 * sysdeps/x86_64/mul_1.S: New file.
3045 * sysdeps/x86_64/rshift.S: New file.
3046 * sysdeps/x86_64/sub_n.S: New file.
3047 * sysdeps/x86_64/submul_1.S: New file.
3048
e42e88ab
JJ
30492009-04-14 Jakub Jelinek <jakub@redhat.com>
3050
3051 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3052 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3053 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3054 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3055
b8a3bd82
UD
30562009-04-14 Ulrich Drepper <drepper@redhat.com>
3057
3058 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3059 preadv/pwritev.
3060
84aa52d7
UD
30612009-04-13 Ulrich Drepper <drepper@redhat.com>
3062
3063 * sysdeps/x86-64/strrchr.S: New file.
3064
9d26efa9
UD
30652009-04-10 Ulrich Drepper <drepper@redhat.com>
3066
3067 * stdio-common/printf.h (struct printf_info): Add user element.
3068 New types printf_arginfo_size_function, printf_va_arg_function.
3069 Declare register_printf_specifier, register_printf_modifier,
3070 register_printf_type.
3071 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3072 (union printf_arg): Add pa_user element.
3073 Adjust __printf_arginfo_table type.
3074 Add __printf_va_arg_table, __printf_modifier_table,
3075 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3076 declarations.
3077 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3078 If registered arginfo call failed try normal specifier.
3079 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3080 function.
3081 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3082 * stdio-common/Versions: Export register_printf_modifier,
3083 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3084 * stdio-common/reg-modifier.c: New file.
3085 * stdio-common/reg-type.c: New file.
3086 * stdio-common/reg-printf.c (__register_printf_specifier): New
3087 function. Mostly the old __register_printf_function function but
3088 uses locking and type of third parameter changed.
3089 (__register_printf_function): Implement using
3090 __register_printf_specifier.
3091 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3092 calls to arginfo functions. Allocate enough memory for user-defined
3093 types. Call new va_arg functions to get user-defined types.
3094 Try installed handlers even for existing format specifiers first.
3095
28b2771a
UD
30962009-04-09 Ulrich Drepper <drepper@redhat.com>
3097
f140a0d5
UD
3098 * sysdeps/x86_64/rawmemchr.S: New file.
3099
e9b4d069 3100 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 3101 Simplified code and possible copy problem fixed.
e9b4d069 3102
f9fe75e9 3103 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 3104 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
3105 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3106
28b2771a
UD
3107 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3108 have preadv/pwritev in 2.6.30.
3109
4c8b8cc3
UD
31102009-04-08 Ulrich Drepper <drepper@redhat.com>
3111
bb066545
UD
3112 * malloc/malloc.c (malloc_info): New function.
3113 * malloc/malloc.h: Declare it.
3114 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3115
0f9c8b48
UD
3116 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3117 to avoid PLT slot.
3118
4c8b8cc3
UD
3119 * malloc/malloc.c (_int_realloc): Add parameter with old block
3120 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3121 Adjust all callers.
3122 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3123
ddba0f17
UD
31242009-04-07 Ulrich Drepper <drepper@redhat.com>
3125
cd57745b
UD
3126 * sysdeps/x86_64/strchrnul.S: New file.
3127
3db6c9a8 3128 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 3129 depending libcrypt on -lfreebl3.
3db6c9a8 3130
1a2ec17b
UD
3131 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3132 preadv/pwritev in 2.6.30.
3133
bb066545 3134 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 3135 instead of __strcasecmp.
c6807d38 3136
ddba0f17 3137 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 3138 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
3139 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3140 first read quad word.
3141
ae061910
UD
31422009-04-06 Ulrich Drepper <drepper@redhat.com>
3143
4bcb2658
UD
3144 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3145 * string/tst-svc.input: Add new test case.
3146 * string/tst-svc.expect: Adjust.
3147 * string/Makefile: Don't ignore tst-svc error.
3148
322e23db
UD
3149 * sysdeps/x86_64/memchr.S: New file.
3150
ae061910
UD
3151 * resolv/resolv.h (RES_SNGLKUP): Define.
3152 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3153 * resolv/res_send.c (send_dg): If we sent two requests at once and
3154 only get one reply before timeout switch to mode where we send the
3155 second request only after the first answer has been received.
3156
a152f366
UD
31572009-04-05 Ulrich Drepper <drepper@redhat.com>
3158
3159 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 3160 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 3161
2dbe6afe
UD
31622009-04-03 Ulrich Drepper <drepper@redhat.com>
3163
c0bac8b0
UD
3164 * configure.in: We need to test for the compiler earlier.
3165
e109c612
UD
3166 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3167 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3168 GLIBC_2.10.
3169 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3170 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3171 and pwritev.
3172 * misc/preadv.c: New file.
3173 * misc/preadv64.c: New file.
3174 * misc/pwritev.c: New file.
3175 * misc/pwritev64.c: New file.
3176 * sysdeps/posx/preadv.c: New file.
3177 * sysdeps/posx/preadv64.c: New file.
3178 * sysdeps/posx/pwritev.c: New file.
3179 * sysdeps/posx/pwritev64.c: New file.
3180 * sysdeps/unix/sysv/linux/preadv.c: New file.
3181 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3182 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3183 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3184 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3185 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3186
7166c77a
UD
3187 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3188 compatibility code.
3189 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3190
2dbe6afe
UD
3191 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3192 __ASSUME_COMPLETE_READV_WRITEV.
3193 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3194 with modern kernels.
3195 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3196
3197 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3198 to free a possible malloced buffer in case of cancellation.
3199 * sysdeps/posix/writev.c: Likewise for write.
3200
ff886b82
UD
32012009-04-02 Ulrich Drepper <drepper@redhat.com>
3202
a065c007
UD
3203 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3204
ff886b82
UD
3205 * configure.in: Recognize --enable-nss-crypt.
3206 * config.make.in: Add nss-crypt entry.
3207 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3208 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3209 and include path for NSS directory to compiler for md5-crypt,
3210 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3211 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3212 function implementation, use NSS. Introduce wrappers around the
3213 hash function calls. Little code size optimization.
3214 * crypt/sha256-crypt.c: Likewise.
3215 * crypt/sha512-crypt.c: Likewise.
3216 * scripts/check-local-headers.sh: Ignore nss3 directory.
3217
3218 * configure.in: Rename pic_default to libc_cv_pic_default.
3219 * config.make.in: Likewise.
3220
1800de36
RM
32212009-04-01 Roland McGrath <roland@redhat.com>
3222
3223 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3224 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3225 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3226 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3227 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3228 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3229 (R_SPARC_NUM): Update.
3230 From Dave Miller <davem@davemloft.net>.
3231
7166c77a 32322009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
3233
3234 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3235
20739e54
UD
32362009-03-31 Ulrich Drepper <drepper@redhat.com>
3237
22c83193
UD
3238 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3239 those which are used.
3240 * elf/dl-addr.c: Likewise.
3241 * elf/dl-caller.c: Likewise.
3242 * elf/dl-fini.c: Likewise.
3243 * elf/dl-iteratephdr.c: Likewise.
3244 * elf/dl-libc.c: Likewise.
3245 * elf/dl-load.c: Likewise.
3246 * elf/dl-support.c: Likewise.
3247 * elf/dl-sym.c: Likewise.
3248 * elf/rtld.c: Likewise.
3249 * sysdeps/generic/ldsodefs.h: Likewise.
3250
20739e54
UD
3251 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3252 * elf/dl-minimal.c: Likewise.
3253 * elf/dl-misc.c: Likewise.
3254 * elf/rtld.c: Likewise.
3255 * sysdeps/generic/ldsodefs.h: Likewise.
3256
db486995
UD
32572009-03-30 Ulrich Drepper <drepper@redhat.com>
3258
cb14424e
UD
3259 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3260 Avoid reuse of complex expression.
3261
db486995
UD
3262 * po/fr.po: Update from translation team.
3263
ae8d7b44
UD
32642009-03-16 Ulrich Drepper <drepper@redhat.com>
3265
3266 * include/dirent.h: Yet more changes to match sort function type
3267 change.
3268 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3269 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3270 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3271
8efb2f1c
UD
32722009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3273
3274 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3275
d9822dbe
UD
32762009-03-16 Ulrich Drepper <drepper@redhat.com>
3277
3278 * nscd/connections.c (restart): Try to preserve the process name
3279 by reading the /proc/self/exe symlink and using the return name.
3280 Patch by Jeff Bastian <jbastian@redhat.com>.
3281
71a5bd3e
UD
32822009-03-15 Ulrich Drepper <drepper@redhat.com>
3283
2ca285b0
UD
3284 [BZ #9733]
3285 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3286 if we are not loading a new audit library.
3287 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3288 Only use profiling trampoline for auditing if we are not relocating
3289 an audit library.
3290 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3291 * elf/rtld.c: Likewise.
3292 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3293
7e342603
UD
3294 * elf/rtld.c (dl_main): Extend help message for --audit option.
3295
eee6b143
UD
3296 [BZ #9759]
3297 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3298 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3299 * dirent/alphasort.c: Adjust implementation to type change.
3300 * dirent/alphasort64.c: Likewise.
3301 * dirent/scandir.c: Likewise.
3302 * dirent/versionsort.c: Likewise.
3303 * dirent/versionsort64.c: Likewise.
3304 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3305 declaration.
3306 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3307 declaration.
3308
cd2d01fa
UD
3309 [BZ #9880]
3310 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3311 correctly. Set segleft member in output as required.
3312 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3313 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3314
906dd40d
UD
3315 [BZ #9881]
3316 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3317 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3318 * inet/Makefile (tests): Add tst-inet6_rth.
3319 * inet/tst-inet6_rth.c: New file.
3320
71a5bd3e
UD
3321 [BZ #5807]
3322 * string/strlen.c (strlen): Fix omission in the expression to test
3323 for NUL bytes.
3324
878b72c5
UD
33252009-03-14 Ulrich Drepper <drepper@redhat.com>
3326
fad070ab
UD
3327 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3328
a42ad61b
UD
3329 * elf/dl-runtime.c (reloc_offset): Define.
3330 (reloc_index): Define.
3331 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3332 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3333 computing index from reloc_offset.
3334 (_dl_call_pltexit): Likewise.
3335 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3336 the relocation index to _dl_fixup.
3337 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3338 _dl_call_pltexit.
3339 * sysdeps/x86_64/dl-runtime.c: New file.
3340
1f7c90a7
UD
3341 [BZ #9893]
3342 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 3343 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
3344 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3345
45466462
UD
3346 [BZ #9913]
3347 * string/strverscmp.c (__strverscmp): Fix case of different digits
3348 in fractional part of string.
3349 Patch by Jingyu Liu <jyliu@fortinet.com>.
3350 * string/Makefile (tests): Add tst-svc2.
3351 * string/tst-svc2.c: New file.
3352
3353 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3354
878b72c5
UD
3355 * locale/iso-639.def: Add Min Nan.
3356
f53713a8
UD
33572009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3358
878b72c5 3359 [BZ #9948]
f53713a8
UD
3360 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3361
f81ce288
UD
33622009-03-14 Ulrich Drepper <drepper@redhat.com>
3363
f53713a8
UD
3364 * elf/dl-sysdep.c (auxvars): Compress data structure.
3365
f81ce288
UD
3366 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3367 STT_GNU_IFUNC handling.
3368 (elf_machine_rela): Likewise.
3369
425ce2ed
UD
33702009-03-13 Ulrich Drepper <drepper@redhat.com>
3371
3372 * config.h.in (USE_MULTIARCH): Define.
3373 * configure.in: Handle --enable-multi-arch.
3374 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3375 (_dl_fixup_profile): Likewise.
3376 * elf/do-lookup.c (dl_lookup_x): Likewise.
3377 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3378 * elf/elf.h (STT_GNU_IFUNC): Define.
3379 * include/libc-symbols.h (libc_ifunc): Define.
3380 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3381 framework in init-arch.h to get CPUID values.
3382 * sysdeps/x86_64/multiarch/Makefile: New file.
3383 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3384 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3385 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3386
3387 * config.make.in (experimental-malloc): Define.
3388 * configure.in: Handle --enable-experimental-malloc.
3389 * malloc/Makefile: Handle experimental-malloc flag.
3390 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3391 * malloc/arena.c: Likewise.
3392 * malloc/hooks.c: Likewise.
3393 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3394
e7f110cd
UD
33952009-03-11 Ulrich Drepper <drepper@redhat.com>
3396
3397 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3398 prediction. A few size optimizations.
3399
bd82a247
UD
34002009-03-10 Ulrich Drepper <drepper@redhat.com>
3401
3402 * time/tzset.c: Optimize a bit for size.
3403
a99e59d7
UD
34042009-03-10 Jakub Jelinek <jakub@redhat.com>
3405
3406 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3407 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3408
3409 * elf/sprof.c: Avoid warning about multi-line comment.
3410
686f8c9d
UD
34112009-03-10 Ulrich Drepper <drepper@redhat.com>
3412
3413 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3414 DST name.
3415 * time/tst-posixtz.c: Add tests for quoted timezone names.
3416
7db0cc42
UD
34172009-03-10 Jakub Jelinek <jakub@redhat.com>
3418
3419 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3420 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3421 200809L instead of 200112L.
3422 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3423 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3424
eec4b454
UD
3425 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3426 instead of __quick_exit_funcs to __run_exit_handlers.
3427 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3428 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3429 (__cxa_at_quick_exit): Remove attribute_hidden.
3430 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3431 to __run_exit_handlers.
3432 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3433 attribute_hidden.
3434
d7276cee
UD
34352009-03-10 Ulrich Drepper <drepper@redhat.com>
3436
3437 * po/id.po: Update from translation team.
3438
1454da21
UD
34392009-02-18 Jakub Jelinek <jakub@redhat.com>
3440
3441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3442 .machine push; .machine "power6" and .machine pop around mtfsf
3443 insns outside of _ARCH_PWR6 define.
3444 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3445 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3446 Likewise.
3447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3448 Likewise.
3449 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3450 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3451 relax_fenv_state): Likewise.
3452
130ca12e
UD
34532009-03-08 Ulrich Drepper <drepper@redhat.com>
3454
610e67ed
UD
3455 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3456 cxa_at_quick_exit.
3457 (static-only-routines): Add at_quick_exit.
3458 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3459 GLIBC_2.10.
3460 * stdlib/quick_exit.c: New file.
3461 * stdlib/at_quick_exit.c: New file.
3462 * stdlib/cxa_at_quick_exit.c: New file.
3463 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3464 it appropriately.
3465 (__internal_atexit): New function.
3466 (__new_exitfn): Now takes parameter to point to the list to use.
3467 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3468 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3469 (exit): ...here. Just call __run_exit_handlers appropriately.
3470 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3471 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3472 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3473 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3474
130ca12e
UD
3475 * po/id.po: Update from translation team.
3476
9a4f9d1f
UD
34772009-03-07 Ulrich Drepper <drepper@redhat.com>
3478
3479 * po/ru.po: Update from translation team.
3480
6d781c94
UD
34812009-03-04 Ulrich Drepper <drepper@redhat.com>
3482
3483 * po/nl.po: Update from translation team.
3484
e00c5ece
UD
34852009-03-03 Ulrich Drepper <drepper@redhat.com>
3486
99eb932f
UD
3487 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3488 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3489 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3490 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3491 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3492 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3493 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3494
e00c5ece
UD
3495 * po/pl.po: Update from translation team.
3496
749f5cc9
UD
34972009-03-02 Ulrich Drepper <drepper@redhat.com>
3498
1b994772 3499 [BZ #7083]
749f5cc9
UD
3500 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3501 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3502 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3503 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3504 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3505 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3506 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3507 for GLIBC_2.10.
3508 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3509 Add fallocate and fallocate64.
3510
3511 * io/fcntl.h: Pretty printing.
3512
6219e3cc
JJ
35132009-03-02 Richard Guenther <rguenther@suse.de>
3514
3515 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3516 attribute also for non-C99 inline semantics variant.
3517
134a9766
UD
35182009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3519
3520 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3521 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3522 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3523 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3525 Likewise.
3526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3527 Likewise.
3528
95bc1633
UD
35292009-03-02 Ulrich Drepper <drepper@redhat.com>
3530
3531 * po/cs.po: Update from translation team.
3532
43ea48a5
UD
35332009-02-28 Ulrich Drepper <drepper@redhat.com>
3534
3535 * po/bg.po: Update from translation team.
3536 * po/sv.po: Likewise.
f5faa3b6 3537 * po/fi.po: Likewise.
45572c23 3538 * po/vi.po: Likewise.
43ea48a5 3539
e965d514
RM
35402009-02-27 Roland McGrath <roland@redhat.com>
3541
3542 * Makeconfig (%.v.i): Depend on Makeconfig.
3543 Exclude % lines from initial #-comment removal.
3544
56a9651f
UD
35452009-02-27 Ulrich Drepper <drepper@redhat.com>
3546
3547 * po/ko.po: Update from translation team.
3548
682825ce
RM
35492009-02-26 Roland McGrath <roland@redhat.com>
3550
3551 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3552 avoids unused warning.
3553
a3c37506
UD
35542009-02-26 Andrew Stubbs <ams@codesourcery.com>
3555 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3556
3557 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3558 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3559 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3560 and asm/user.h. Include asm/ptrace.h.
3561 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3562 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3563 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3564 Undefine.
3565 (start_thread): Don't undefine.
3566 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3567 Define.
3568
f503060b
UD
35692009-02-26 Ulrich Drepper <drepper@redhat.com>
3570
6cbe890a
UD
3571 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3572 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3573 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3574 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3575 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3576 200112L to 200809L.
3577 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3578 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3579 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3580 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3581 _SC_THREAD_ROBUST_PRIO_PROTECT.
3582 * posix/unistd.h: fexecve is in POSIX 2008.
3583 * time/time.h: strftime_l is in POSIX 2008.
3584 * io/sys/stat.h: futimens is in POSIX 2008.
3585 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3586 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3587 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3588 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
3589 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3590 open_memstream, and vdprintf are in POSIX 2008.
3591
2e6d6bac
UD
35922009-02-25 Ulrich Drepper <drepper@redhat.com>
3593
3e6b0a28 3594 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
3595 * ctype/ctype.h: The *_l functions are in POSIX 2008.
3596 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3597 POSIX 2008.
1f04d005
UD
3598 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3599 * locale/xlocale.h: Define locale_t type.
3600 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3601 in POSIX 2008. Don't define locale_t here.
3602 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
3603 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3604 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
3605 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3606 * stdio-common/psiginfo.c: New file.
3607 * stdio-common/psiginfo-data.h: New file.
3608 * stdio-common/psiginfo-define.h: New file.
3609 * stdio-common/Makefile (routines): Add psiginfo.
3610 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
3611 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3612 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3613 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3614 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3615 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3616 * io/sys/stat.h: Move mknodat definition into same conditional as
3617 mknod.
3618 * time/sys/time.h: futimesat is not among the functions accepted
3619 into the POSIX standard.
3620
2e6d6bac
UD
3621 * include/features.h: If no feature selection given and we select
3622 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3623 * posix/Versions: Export __posix_getopt.
3624 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3625 Use it to alternatively initialize __posixly_correct.
3626 (_getopt_internal_r): Take addition parameter. Pass on to
3627 _getopt_initialize.
3628 (_getopt_internal): Take addition parameter. Pass on to
3629 _getopt_internal_r.
3630 (getopt): Pass additional zero to _getopt_internal.
3631 (__posix_getopt): New function.
3632 * posix/getopt.h: Add redirection for getopt.
3633 * posix/getopt1.c (getopt_long): Pass additional zero to
3634 _getopt_internal.
3635 (getopt_long_only): Likewise.
3636 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3637 (_getopt_long_only_r): Likewise.
3638 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3639 _getopt_internal_r.
3640
67108e40
UD
36412009-02-24 Ulrich Drepper <drepper@redhat.com>
3642
3643 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3644 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3645 * sysdeps/posix/sysconf.c (__sysconf): Handle
3646 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3647 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3648
1cccb96f
RM
36492009-02-24 Roland McGrath <roland@redhat.com>
3650
3651 [BZ #9895]
3652 * README.template: Reworded not to use substituted version number.
3653 Renamed to ...
3654 * README: ... here (no longer generated).
3655 * Makefile (README): Target removed.
3656
82780cbe
UD
36572009-02-24 Ulrich Drepper <drepper@redhat.com>
3658
5be0a688 3659 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 3660 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
3661 instead.
3662
8c4a5f42
UD
3663 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3664
82780cbe
UD
3665 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3666
77c571dd
UD
36672009-02-22 Ulrich Drepper <drepper@redhat.com>
3668
3669 * po/bg.po: Update from translation team.
3670
d82a27f8
JJ
36712009-02-16 Jakub Jelinek <jakub@redhat.com>
3672
3673 * stdlib/monetary.h: Uglify function parameter names.
3674 * sunrpc/rpc/pmap_clnt.h: Likewise.
3675 * sunrpc/rpc/svc.h: Likewise.
3676 * sunrpc/rpc/xdr.h: Likewise.
3677 * sunrpc/rpc/clnt.h: Likewise.
3678 * resolv/netdb.h: Likewise.
3679 * resolv/arpa/nameser.h: Likewise.
3680 * resolv/resolv.h: Likewise.
3681 * argp/argp.h: Likewise.
3682 * locale/langinfo.h: Likewise.
3683 * io/sys/stat.h: Likewise.
3684 * posix/spawn.h: Likewise.
3685 * nis/rpcsvc/nislib.h: Likewise.
3686 * malloc/obstack.h: Likewise.
3687 * sysdeps/ia64/bits/link.h: Likewise.
3688 * sysdeps/i386/bits/link.h: Likewise.
3689 * sysdeps/s390/bits/link.h: Likewise.
3690 * sysdeps/powerpc/bits/link.h: Likewise.
3691 * sysdeps/x86_64/bits/link.h: Likewise.
3692 * sysdeps/sparc/bits/link.h: Likewise.
3693 * sysdeps/sh/bits/link.h: Likewise.
3694 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3695 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3696 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3697 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3698
58a7457e
JJ
36992008-12-01 Fredrik Unger <fred@tree.se>
3700
3701 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3702 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3703 _FP_UNPACK_RAW_2, fix up first argument.
3704
f43b4be6
UD
37052009-02-15 Ulrich Drepper <drepper@redhat.com>
3706
3707 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3708 (GET_NPROCS_PARSER): Change parameters and use next_line.
3709 (__get_nprocs): Rewrite to not use stdio routines.
3710 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3711 Change parameters and use next_line.
3712
20e498bd
UD
37132009-02-13 Ulrich Drepper <drepper@redhat.com>
3714
3715 [BZ #5381]
3716 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3717 Change mempool_alloc prototype.
3718 * nscd/mem.c (gc): Don't handle mem_in_flight.
3719 (mempool_alloc): Third parameter now only indicates whether this is the
3720 first call (to allocate data) or not. If it is, get db rdlock.
3721 Release it on error. Don't handle mem_in_flight.
3722 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3723 Adjust third parameter of mempool_alloc calls.
3724 Nothing to do here in case mempool_alloc fails.
3725 Avoid local variable shadowing parameter. No need to get db rdlock
3726 before calling cache_add.
3727 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
3728 no mem_in_flight array anymore.
3729 * nscd/connections.c: Remove definition and handling of mem_in_flight.
3730 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3731 mempool_alloc calls. Mark he parameter as const. Nothing to do here
3732 in case mempool_alloc fails. No need to get db rdlock before calling
3733 cache_add.
3734 * nscd/hstcache.c (cache_addhst): Likewise.
3735 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3736 * nscd/servicescache.c (cache_addserv): Likewise.
3737 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
3738
d8111eac
UD
37392009-02-11 Ulrich Drepper <drepper@redhat.com>
3740
3741 * po/lt.po: Update from translation team.
3742
40e2fc8b
UD
37432009-02-10 Ulrich Drepper <drepper@redhat.com>
3744
3745 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3746 defined, allow additional data to be added using the optional
3747 MORE_ELF_HEADER_DATA macro.
3748 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3749 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3750
6c03cd11
UD
37512009-02-08 Ulrich Drepper <drepper@redhat.com>
3752
3753 * include/atomic.h: Define catomic_and if not already defined.
3754 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3755 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3756
bc16e0c4
UD
37572009-02-07 Ulrich Drepper <drepper@redhat.com>
3758
78ac92ad
UD
3759 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3760 Change all callers.
6dd6a580 3761 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 3762 All _int_* functions are now static.
6dd6a580 3763
78ac92ad
UD
3764 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3765 * malloc/arena.c: Likewise.
3766 * include/malloc.h: Remove now unnecessary declarations of the _int_*
3767 functions.
3768
7dddb4bd
UD
3769 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3770 easily.
3771
bfacf1af
UD
3772 * malloc/malloc.c: Add branch prediction for use of the hooks.
3773
bc16e0c4
UD
3774 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3775
26b62243
UD
37762009-02-06 Ulrich Drepper <drepper@redhat.com>
3777
3778 [BZ #7095]
3779 * bits/confname.h: Add SUSv7 macros for getconf environments.
3780 * bits/environments.h: Likewise.
3781 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3782 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3783 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3784 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3785 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3786 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3787 * posix/getconf.c: Likewise.
3788 * posix/sysconf.c: Likewise.
3789 * sysdeps/posix/sysconf.c: Likewise.
3790 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3791 environments.
3792
3fe4c5b3
UD
37932009-01-16 Petr Baudis <pasky@suse.cz>
3794
3795 [BZ #9753]
3796 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3797 even if we currently have zero nscount.
3798
cbbcaf23
UD
37992009-02-06 Ulrich Drepper <drepper@redhat.com>
3800
1a9dd4e4
UD
3801 [BZ #9781]
3802 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3803 the input line is too long.
3804
51f8846e
UD
3805 * po/Makefile (libc.pot): Add f_print as function taking c-format
3806 parameter.
3807
cbbcaf23
UD
3808 * debug/xtrace.sh: Unify translatable messages.
3809 * elf/ldd.bash.in: Likewise.
3810 * elf/sprof.c: Likewise.
3811 * locale/programs/locale.c: Likewise.
3812 * malloc/memusage.sh: Likewise.
3813 * nss/getent.c: Likewise.
3814
38152009-02-06 Joseph Myers <joseph@codesourcery.com>
3816
3817 * debug/pcprofiledump.c (print_version,
3818 argp_program_version_hook): New function.
3819 * elf/ldconfig.c (more_help): New function.
3820 (argp): Use it.
3821 * elf/sln.c (usage): New function.
3822 (main): Support --help and --version.
3823 * malloc/memusagestat.c (print_version): New function.
3824 (argp_program_version_hook): New variable.
3825 * nscd/nscd.c (more_help): New function.
3826 (argp): Use it.
3827 * posix/getconf.c (main): Send --version output to stdout.
3828 Support --help.
3829 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3830 arguments. All callers changed.
3831 (print_version): New function.
3832 (parseargs): Support --help and --version.
3833 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
3834 changed.
3835 (print_version): New function.
3836 (main): Use getopt_long. Support --help and --version.
3837 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3838 --version.
3839
88a3b8f9
UD
38402009-02-06 Ulrich Drepper <drepper@redhat.com>
3841
e2e390fa
UD
3842 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3843 (update_data): Fix handling of wrapping back
c3ab42a8
UD
3844 to the beginning of the buffer.
3845
88a3b8f9
UD
3846 [BZ #9823]
3847 * stdio-common/psignal.c (psignal): Fix test for empty string.
3848
62f63c47
UD
38492009-02-05 Ulrich Drepper <drepper@redhat.com>
3850
4f7408c7
UD
3851 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3852 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
3853 move _null_auth to .rodata.
3854
970aa10f
UD
3855 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3856 value of 24.
3857
52de761a
UD
3858 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3859
62f63c47
UD
3860 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3861 today than when the original code was written. Use larger
3862 buffers. This also makes it unnecessary to have stat information,
3863 if this causes extra efforts.
3864 (__opendir): In case O_DIRECTORY works, don't call fstat just for
3865 __alloc_dir.
3866
0899b889
UD
38672009-02-03 Andrew Stubbs <ams@codesourcery.com>
3868
3869 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3870 is set.
3871 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3872 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3873 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3874 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3875 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3876 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3877
22cc3f75
UD
38782009-02-04 Ulrich Drepper <drepper@redhat.com>
3879
3880 * po/ru.po: Update from translation team.
3881
a71433e7
UD
38822008-11-17 Nathan Sidwell <nathan@codesourcery.com>
3883
3884 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3885 Add _tid slot to maintain consistency with kernel.
3886
82f2e9c6 38872009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 3888
82f2e9c6
UD
3889 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3890 incomplete characters at end of input buffer.
3891 * libio/Makefile (tests): Add tst-fgetwc.
3892 * libio/tst-fgetwc.c: New file.
3893 * libio/tst-fgetwc.input: New file.
3a2e9947 3894
ba022c06
UD
38952009-02-02 Andrew Stubbs <ams@codesourcery.com>
3896
3897 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3898
1b14353e
UD
38992009-02-02 Ulrich Drepper <drepper@redhat.com>
3900
3901 [BZ #9793]
3902 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3903 *OUTBUFSTART unless the whole output fit into the buffer.
3904 * iconv/Makefile (tests): Add tst-iconv4.
3905 * iconv/tst-iconv4.c: New file.
3906
ebc22416
UD
39072009-02-01 Ulrich Drepper <drepper@redhat.com>
3908
3909 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3910 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3911
7c8a6732
UD
39122009-01-29 Andrew Stubbs <ams@codesourcery.com>
3913
3914 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3915 newer linker scripts.
3916
43149780
UD
39172009-01-30 Ulrich Drepper <drepper@redhat.com>
3918
3919 [BZ #7040]
3920 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3921 inotify_rm_watch should have type int.
3922
bd4ace0b
UD
39232009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
3924
3925 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3926 Make aligned_restore_vmx a local symbol.
3927 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3928 Likewise.
3929
430902da
AJ
39302009-01-30 Andreas Jaeger <aj@suse.de>
3931
3932 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3933 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3934 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3935 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3936 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3937 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3938 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3939
b7219e53
UD
39402009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3941
3942 [BZ #9726]
3943 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3944 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3945
39462009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3947
3948 [BZ #9726]
3949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3950 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3952 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3953
a3bd2846
UD
39542009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3955
3956 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3957 memcpy instead of memcmp.
3958 (_dl_setup_pointer_guard): Likewise.
3959
1fdd89a7
UD
39602009-01-30 Ulrich Drepper <drepper@redhat.com>
3961
3962 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3963 manipulated brk, use malloc_printerr.
3964 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3965 requests.
3966
8585cb74
UD
39672009-01-30 Jakub Jelinek <jakub@redhat.com>
3968
3969 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3970 rindex): For C++ add inlines so that they can be recognized as
3971 builtins.
3972 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3973
d8387c7b
UD
39742009-01-29 Ulrich Drepper <drepper@redhat.com>
3975 Jakub Jelinek <jakub@redhat.com>
3976
cdf77dd8
UD
3977 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3978 * wcsmbs/wchar.h: Likewise.
d8387c7b 3979
647925b2
UD
39802009-01-29 Ulrich Drepper <drepper@redhat.com>
3981
3982 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3983 (stackinfo_sub_sp): Define.
3984
5627534a
UD
39852009-01-28 Ulrich Drepper <drepper@redhat.com>
3986
fd537e53
UD
3987 [BZ #9750]
3988 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3989 * include/alloca.h (alloca_account): Define.
3990 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3991 (stackinfo_sub_sp): Define.
3992
00f5df0e
UD
3993 * nscd/connections.c (nscd_init): If database file access fails
3994 check whether this is due to permission problems and bail in that
3995 case.
31d322a2 3996
5627534a
UD
3997 [BZ #9741]
3998 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3999 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4000
a7bd183f
UD
40012009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4002
4003 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4004 Add "t" to clobber list.
4005 (INTERNAL_SYSCALL_NCS): Likewise.
4006
1dd75769
UD
40072009-01-28 Ulrich Drepper <drepper@redhat.com>
4008
4009 * nss/getent.c (print_networks): Don't print comma between aliases.
4010
25e84177
UD
40112009-01-23 Ulrich Drepper <drepper@redhat.com>
4012
4013 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4014
4015 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4016 the hash table.
4017 * misc/Makefile (tests): Add bug-hsearch1.
4018 * misc/bug-hsearch1.c: New file.
4019
0699a0ca
RM
40202009-01-22 Roland McGrath <roland@redhat.com>
4021
4022 * Makeconfig (%.v.i): Strip trailing # comments,
4023 not only whole-line comments.
4024
965cb60a
UD
40252009-01-10 Ulrich Drepper <drepper@redhat.com>
4026
4027 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4028 one parameter. If non-NULL use it to initialize return value.
4029 (_dl_setup_pointer_guard): New function.
4030 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4031 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4032 * elf/rtld.c (security_init): Pass _dl_random to
4033 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4034 pointer_chk_guard.
4035 * elf/dl-sysdep.c (_dl_random): New variable.
4036 (_dl_sysdep_start): Handle AT_RANDOM.
4037 (_dl_show_auxv): Likewise.
4038 * elf/dl-support.c (_dl_random): New variable.
4039 (_dl_aux_init): Handle AT_RANDOM.
4040 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4041 to _dl_setup_stack_chk_guard.
4042
4043 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4044
8be96dd1
RM
40452009-01-10 Roland McGrath <roland@redhat.com>
4046
4047 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4048
157cd5ac
UD
40492009-01-08 Ulrich Drepper <drepper@redhat.com>
4050
9b1c750e
UD
4051 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4052
157cd5ac
UD
4053 [BZ #9706]
4054 * nss/nss_files/files-parse.c (strtou32): New function.
4055 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4056 across 32-bit and 64-bit platforms.
4057 (INT_FIELD_MAYBE_NULL): Likewise.
4058
960af8c2
JJ
40592009-01-08 Jakub Jelinek <jakub@redhat.com>
4060
4061 [BZ #9720]
4062 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4063 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4064 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4065 Likewise.
4066
76c7f2cd
UD
40672009-01-05 Paolo Bonzini <bonzini@gnu.org>
4068
16c124f7 4069 [BZ #697]
76c7f2cd
UD
4070 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4071 being NULL also if there are no backreferences.
4072 * posix/rxspencer/tests: Add testcases.
4073
bdb56bac
UD
40742009-01-04 Paolo Bonzini <bonzini@gnu.org>
4075
16c124f7 4076 [BZ #9697]
bdb56bac
UD
4077 * posix/bug-regex17.c: Add testcases.
4078 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4079 handling.
4080
0480c901
UD
40812009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4082
4083 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4084 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4085 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4086 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4087 for elf subdir.
4088 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4089 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4090 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4091 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4092 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4093 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4094
b3918c7d
UD
40952008-12-31 Paolo Bonzini <bonzini@gnu.org>
4096
4097 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4098 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4099 re_string_skip_chars, re_string_reconstruct): Likewise.
4100 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4101
df9293cb
UD
41022008-12-31 Rafael Avila de Espindola <espindola@google.com>
4103
4104 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4105 adjust the buffer alignment.
4106
c90c1e1c
RM
41072009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4108
4109 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4110 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4111 net/route.h.
4112
4113 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4114 flavor to description only when flavor is not NULL.
4115
4116 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4117 mutex after SIGIO/SIGURG lookup loop.
4118
5aff6fdf
RM
41192009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4120
4121 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4122
b2bcd249
UD
41232009-01-03 Ulrich Drepper <drepper@redhat.com>
4124
4125 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4126 handling.
4127
d36ad871
UD
41282009-01-02 Ulrich Drepper <drepper@redhat.com>
4129
ebb2788e
UD
4130 * sysdeps/unix/sysv/linux/kernel-features.h
4131 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4132
72098116
UD
4133 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4134 if no output is written.
4135
623d0bf5
UD
4136 * version.h: Bump to 2.10 development.
4137
d36ad871
UD
4138 * posix/getconf.c: Update copyright year.
4139 * nss/getent.c: Likewise.
4140 * iconv/iconvconfig.c: Likewise.
4141 * iconv/iconv_prog.c: Likewise.
4142 * elf/ldconfig.c: Likewise.
4143 * catgets/gencat.c: Likewise.
4144 * csu/version.c: Likewise.
4145 * elf/ldd.bash.in: Likewise.
4146 * elf/sprof.c (print_version): Likewise.
4147 * locale/programs/locale.c: Likewise.
4148 * locale/programs/localedef.c: Likewise.
4149 * nscd/nscd.c (print_version): Likewise.
4150 * debug/xtrace.sh: Likewise.
4151 * malloc/memusage.sh: Likewise.
4152 * malloc/mtrace.pl: Likewise.
4153 * debug/catchsegv.sh: Likewise.
4154
25df09ab
UD
41552008-12-29 Mike Frysinger <vapier@gentoo.org>
4156
4157 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4158 script.
4159
16b7dc27
UD
41602008-12-29 Ulrich Drepper <drepper@redhat.com>
4161
bfbbc63f
UD
4162 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4163 gethostbyname4_r function call succeeded, just leave the loop.
4164
0f2ae55c
UD
4165 [BZ #9694]
4166 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4167 very end.
5703f472
UD
4168 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4169 * wctype/Makefile (tests): Add bug-wctypeh.
4170 * wctype/bug-wctypeh.c: New file.
0f2ae55c 4171
50e481ce
UD
4172 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4173 LOCALDOMAIN is defined.
4174 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4175
217d45cd
UD
4176 * sysdeps/x86_64/bits/select.h: New file.
4177
16b7dc27
UD
4178 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4179
bf93cd3b
UD
41802008-12-21 Bruno Haible <bruno@clisp.org>
4181
4182 [BZ #9677]
4183 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4184 if no output is written.
4185
49159e12
UD
41862008-12-13 Klaus Dittrich <kladit@arcor.de>
4187
4188 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4189 libc internal symbol __dup2 to avoid access through the PLT.
4190
d4f0720b
UD
41912008-12-08 Ulrich Drepper <drepper@redhat.com>
4192
135460f4
UD
4193 [BZ #6545]
4194 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4195 available only for __USE_GNU.
4196
ed0da352
UD
4197 * inet/Makefile (tests): Add tst-getni2.
4198 * inet/tst-getni2.c: New file.
4199
d4f0720b
UD
4200 [BZ #7080]
4201 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4202 NULL when NI_NAMEREQD is set.
4203 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4204 * inet/Makefile (tests): Add tst-getni1.
4205 * inet/tst-getni1.c: New file.
4206
cd72adeb
UD
42072008-12-03 Petr Baudis <pasky@suse.cz>
4208
4209 [BZ #7067]
4210 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4211 instead of prune_lock.
4212 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4213 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4214
e87946cc
UD
42152008-12-07 Ulrich Drepper <drepper@redhat.com>
4216
200da00a
UD
4217 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4218 use.
4219
4220 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4221 handling.
4222
905ef0da
UD
4223 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4224 after reading name server list.
4225
71053765 4226 [BZ #7058]
e87946cc
UD
4227 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4228 handling for host name aliases.
4229
d43b8bdd
JJ
42302008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4231
4232 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4233 instead of doing things manually.
4234
42352008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4236
4237 * posix/regex_internal.h (build_wcs_upper_buffer):
4238 Return type is reg_error_t.
4239
25a34eb7
UD
42402008-12-05 Ulrich Drepper <drepper@redhat.com>
4241
f3721ab2
UD
4242 * posix/globtest.sh: Use mktemp to create temporary file and
4243 directory.
4244
25a34eb7
UD
4245 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4246 sets correctly.
4247 (__CPU_CLR_S): Likewise.
4248 (__CPU_ISSET_S): Likewise.
4249
8680179f
UD
42502008-12-05 Joseph Myers <joseph@codesourcery.com>
4251 Ulrich Drepper <drepper@redhat.com>
4252
4253 * scripts/firstversion.awk: Use custom comparison function to compare
4254 version numbers.
4255 * scripts/versions.awk: Use sort invocation which can handle
4256 multi-digit sub-version numbers.
4257
72d50908
UD
42582008-12-04 Ulrich Drepper <drepper@redhat.com>
4259
4260 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4261 * locale/iso-639.def: Add Chhattisgarhi entry.
4262
f93fc0b7
UD
42632008-12-02 Ulrich Drepper <drepper@redhat.com>
4264
da5ac135
UD
4265 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4266 ESRCH return value.
4267 (_nss_dns_gethostbyname4_r): Likewise.
4268 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4269 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4270 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4271 the no_data variable.
4272
6f5c3117
UD
4273 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4274 information at the correct index.
4275
f93fc0b7
UD
4276 * socket/sys/socket.h: Declare accept4.
4277 * socket/accept4.c: New file.
4278 * sysdeps/unix/sysv/linux/accept4.c: New file.
4279 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4280 * socket/Makefile (routines): Add accept4.
4281 * socket/Versions: Export accept4 with version GLIBC_2.10.
4282 * socket/paccept.c: Removed.
4283 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4284 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4285 * Versions.def: Define GLIBC_2.10 for libc.
4286 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4287
4288 * nscd/connections.c: Use accept4.
4289
4290 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4291
1fa7ae05
UD
42922008-12-01 Ulrich Drepper <drepper@redhat.com>
4293
9744268c
UD
4294 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4295 flag already set.
4296
1fa7ae05
UD
4297 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4298 not exist.
30c06371
UD
4299 * stdlib/Makefile (tests): Add tst-unsetenv1.
4300 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 4301
37a6a271
UD
43022008-11-29 Ulrich Drepper <drepper@redhat.com>
4303
4304 * login/utmp_file.c (file_writable): New variable.
4305 (setutent_file): Don't try to open file for writing.
4306 (pututline_file): Before writing, make descriptor writable if
4307 necessary.
4308
ca4dc0fe
UD
43092008-11-26 Ulrich Drepper <drepper@redhat.com>
4310
be4607eb
UD
4311 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4312 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 4313
01a74645
RM
43142008-11-26 Roland McGrath <roland@redhat.com>
4315
24fd0a5b
RM
4316 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4317 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4318
4319 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4320 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4321 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4322
01a74645
RM
4323 * elf/elf.h (NT_386_IOPERM): New macro.
4324 (NT_PPC_VSX): New macro.
4325
c0439b95
RM
43262008-11-25 Roland McGrath <roland@redhat.com>
4327
4328 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4329 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4330 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4331 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4332 Subdirectories moved to ports repository.
4333 * configure.in (base_machine): Remove alpha case.
4334
d3dc523b
RM
43352008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4336
4337 * sysdeps/mach/strerror_l.c: New file.
4338
edba7a54
UD
43392008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4340
4341 [BZ #6411]
4342 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4343 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4344 magic numbers.
4345 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4346 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4347 (relax_fenv_state): Same as above.
4348 (FPSCR_29): Reserve bit in ISA 2.05.
4349 (FPSCR_NI): Provide define for compat.
4350 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4351 magic numbers.
4352 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4353 magic numbers.
4354 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4355 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4356 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4357 access to hwcap to account for hwcap size increase to uint64_t.
4358 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4359 Likewise.
4360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4361 (*setcontext): Likewise.
4362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4363 New file.
4364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4365 New file.
4366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4367 (*setcontext): dynamically select mtfsf insn based on
4368 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4369 increase to uint64_t.
4370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4371 (*swapcontext): dynamically select mtfsf insn based on
4372 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4373 increase to uint64_t.
4374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4375 New file.
4376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4377 New file.
4378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4379 (*setcontext): dynamically select mtfsf insn based on
4380 PPC_FEATURE_HAS_DFP.
4381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4382 (*swapcontext): dynamically select mtfsf insn based on
4383 PPC_FEATURE_HAS_DFP.
4384
ec297962
UD
43852008-11-13 Ulrich Drepper <drepper@redhat.com>
4386
b5449f8a 4387 * version.h: Bump for 2.9 release.
f52bb4d7 4388 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 4389
ec297962
UD
4390 [BZ #7029]
4391 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4392 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4393 all the rounding.
4394
3cac8b75
UD
43952008-11-11 Ulrich Drepper <drepper@redhat.com>
4396
0e54a725 4397 [BZ #7009]
3cac8b75
UD
4398 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4399 unknown request types for now.
4400
58a4b51a
RM
44012008-11-11 Roland McGrath <roland@redhat.com>
4402
4403 * sysdeps/x86_64/configure: New file.
4404
4405 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4406 * configure: Regenerated.
4407
01bd5e96
JJ
44082008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4409
4410 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4411 correct instruction to remove the stack frame.
4412
a9069550
JJ
44132008-11-03 Michael Matz <matz@suse.de>
4414
4415 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4416 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4417
4b23f9bd
JJ
44182008-11-07 Jakub Jelinek <jakub@redhat.com>
4419
09f66a4f
JJ
4420 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4421 Remove.
4422
4b23f9bd
JJ
4423 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4424 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4425 of the thread variable instead of void *.
4426 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4427 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4428 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4429 __libc_tsd_define arguments.
4430 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4431 __libc_tsd_address arguments. Remove union hack.
4432 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4433 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4434 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4435 Adjust __libc_tsd_{set,get} arguments.
4436 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4437 __libc_tsd_define arguments.
4438 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4439 arguments.
4440 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4441 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4442 (LOCALE): Adjust __libc_tsd_define arguments.
4443 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4444 arguments.
4445 (LOCALE): Adjust __libc_tsd_define arguments.
4446 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4447 arguments.
4448 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4449 arguments.
4450
486bdb88
UD
44512008-11-02 Ulrich Drepper <drepper@redhat.com>
4452
4453 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4454 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4455
64647f9a
UD
44562008-11-01 Ulrich Drepper <drepper@redhat.com>
4457
4458 [BZ #6966]
4459 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4460
acd44dbc
UD
44612008-10-24 Joseph Myers <joseph@codesourcery.com>
4462 Ulrich Drepper <drepper@redhat.com>
4463
4464 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4465 definition for GCC 3.1 and later.
64647f9a 4466
41e25904
UD
44672008-10-31 Jakub Jelinek <jakub@redhat.com>
4468
4469 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4470 refetch dtv, as it might have changed.
4471 * elf/Makefile: Add rules to build and run tst-tls18.
4472 * elf/tst-tls18.c: New test.
4473 * elf/tst-tlsmod18a.c: New file.
4474
e148a644 44752008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 4476
da9c2314 4477 [BZ #6875]
e148a644
UD
4478 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4479
44802008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 4481
6daf1a2f
UD
4482 [BZ #6867]
4483 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4484
6f576bf6
UD
4485 [BZ #6919]
4486 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4487 Fix length of copy operation.
4488
45a8beb5
UD
44892008-10-02 Pierre Habouzit <madcoder@debian.org>
4490
4491 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4492 and fix its calling convention.
4493
ad12e635
UD
44942008-10-07 Andreas Schwab <schwab@suse.de>
4495
4496 [BZ #6942]
4497 * resolv/res_send.c (send_vc): Fix last change.
4498 (send_dg): Align here as well.
4499
3cf44918
UD
45002008-10-31 Ulrich Drepper <drepper@redhat.com>
4501
dbb6ab3e
UD
4502 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4503 return value in case rlimit is RLIM_INFINITY.
4504
4505 [BZ #6947]
4506 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4507 for UL_SETFSIZE.
1828d6b0
UD
4508 * resource/Makefile (tests): Add bug-ulimit1.
4509 * resource/bug-ulimit1.c: New file.
dbb6ab3e 4510
a5ff533e
UD
4511 [BZ #6974]
4512 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4513 without dot. Properly terminate the string with a null byte.
4514 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4515
4bed549a
UD
4516 [BZ #6980]
4517 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4518 negative sizees.
4519 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4520 negative __size.
4521
3cf44918
UD
4522 [BZ #6995]
4523 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4524
21b07d8b
UD
45252008-10-30 Ulrich Drepper <drepper@redhat.com>
4526
332c4465
UD
4527 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4528 abort if there is no initgroups_dyn function.
4529
21b07d8b
UD
4530 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4531 result if any of the queries really provided an answer.
4532
4caa3fb7
UD
45332008-10-28 Ulrich Drepper <drepper@redhat.com>
4534
4535 * po/lt.po: Update from translation team.
4536
a22c3a0d
UD
45372008-10-26 Ulrich Drepper <drepper@redhat.com>
4538
4539 * po/id.po: Update from translation team.
4540
49685151
UD
45412008-10-24 Ulrich Drepper <drepper@redhat.com>
4542
4543 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 4544 Fix tests for existence of second reply.
49685151 4545
8d9d5d35
UD
45462008-10-23 Ulrich Drepper <drepper@redhat.com>
4547
4548 * po/id.po: New file.
4549 Contributed by the Indonesian translation team.
4550
208bc836
UD
45512008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4552
4553 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4554 initialization.
4555
60a23f5a
UD
45562008-10-17 Jakub Jelinek <jakub@redhat.com>
4557
4558 * elf/Makefile: Add rules to build and run tst-tls17.
4559 * elf/tst-tls17.c: New test.
4560 * elf/tst-tlsmod17a.c: New file.
4561 * elf/tst-tlsmod17b.c: Likewise.
4562
292eb817
UD
45632008-10-17 Ulrich Drepper <drepper@redhat.com>
4564
4565 * stdlib/divmod_1.c: Use correct type for dummy variable.
4566 * stdlib/mod_1.c: Likewise.
4567
5df2a427
UD
45682008-10-16 Ulrich Drepper <drepper@redhat.com>
4569
4570 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4571
472e5e08
JJ
45722008-10-16 Jakub Jelinek <jakub@redhat.com>
4573
4574 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4575 __nonnull order for C++.
4576 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4577 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4578
86900abd
RM
45792008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4580
4581 * stdlib/longlong.h: Update from GCC.
4582
19c10a47
JJ
45832008-10-09 Jakub Jelinek <jakub@redhat.com>
4584 David S. Miller <davem@davemloft.net>
4585
4586 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4587 make sure any registers used with 64-bit 'branch-on-register'
4588 instructions have their top 32-bits clear.
4589 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4590 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4591
2fdde3b9
UD
45922008-09-18 Andreas Schwab <schwab@suse.de>
4593
4594 [BZ #6942]
4595 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 4596 Properly handle partial reads.
2fdde3b9 4597
6ba25fcb
RM
45982008-10-01 Mark Shinwell <shinwell@codesourcery.com>
4599
4600 * elf/elf.h (STO_MIPS_PLT): New.
4601 (R_MIPS_COPY): New.
4602 (R_MIPS_JUMP_SLOT): New.
4603 (R_MIPS_NUM): Redefine to 128.
4604 (DT_MIPS_PLTGOT): New.
4605 (DT_MIPS_RWPLT): New.
4606 (DT_MIPS_NUM): Redefine to 0x35.
4607
97898201
UD
46082008-10-01 Ulrich Drepper <drepper@redhat.com>
4609
4610 * timezone/africa: Update from tzdata2008f.
4611 * timezone/asia: Likewise.
4612 * timezone/australasia: Likewise.
4613 * timezone/europe: Likewise.
4614 * timezone/leapseconds: Likewise.
4615 * timezone/northamerica: Likewise.
4616 * timezone/southamerica: Likewise.
4617 * timezone/zone.tab: Likewise.
4618
3452ded5
UD
46192008-09-30 Ulrich Drepper <drepper@redhat.com>
4620
4621 * nscd/connections.c: Disable use of paccept for now.
4622
54ad9327
UD
46232008-09-29 Ulrich Drepper <drepper@redhat.com>
4624
8ec2550e
UD
4625 * socket/Versions: Remove paccept export for GLIBC_2.9.
4626 * socket/Makefile (routines): Remove paccept.
4627 * socket/sys/socket.h: Remove paccept declaration.
4628
54ad9327
UD
4629 * po/sv.po: Update from translation team.
4630
1c5eba39
UD
46312008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4632
4633 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4634 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4635
0a26fc4d
UD
46362008-09-16 Ulrich Drepper <drepper@redhat.com>
4637
4638 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4639 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4640
2bcaff08
UD
46412008-09-15 Ulrich Drepper <drepper@redhat.com>
4642
4643 * sunrpc/rpc/svc.h: Declare svcfd_create.
4644 Patch by Michael Solberg <msolberg@redhat.com>.
4645
caa60cb9 46462008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 4647 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
4648
4649 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4650 _int_valloc fails.
4651 (public_pVALLOc): Likewise.
4652
6c161112
AJ
46532008-09-02 Andreas Jaeger <aj@suse.de>
4654
4655 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4656 commit.
4657
0cb269d7
RM
46582008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4659
452034cc 4660 [BZ #6860]
2bcaff08 4661 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 4662
13074b5b
RM
46632008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4664
4665 * Makefile (check-data): Check data directory in add-ons.
4666 * elf/Makefile (check-data): Likewise.
4667
58801a0e
RM
46682008-08-18 Roland McGrath <roland@redhat.com>
4669
4670 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4671 * configure: Regenerated.
4672 * config.make.in (cflags-cpu): New substituted variable.
4673 (with-cpu): Variable removed.
4674 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4675
7df49c5d
UD
46762008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4677
4678 [BZ #6845]
4679 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4680 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4681 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4682 redundant. Functions which call floating point assembler operations
4683 should go into a sysdeps powerpc/fpu directory.
4684
965805e8
UD
46852008-08-15 Ulrich Drepper <drepper@redhat.com>
4686
4687 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4688 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4689
9cf73ab0
UD
46902008-08-14 Ulrich Drepper <drepper@redhat.com>
4691
62a1ffc6
UD
4692 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4693
9cf73ab0
UD
4694 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4695 change related to AT_EXECFN. We cannot use that string.
4696 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4697 _dl_execfn member.
4698 * elf/dl-support.c: Remove _dl_execfn variable.
4699 (_dl_aux_init): Remove handling of AT_EXECFN.
4700 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4701 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4702
1bfa05cf
UD
47032008-08-13 Ulrich Drepper <drepper@redhat.com>
4704
7b3ba2c4
UD
4705 [BZ #6544]
4706 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4707 byte gets added to writes and seeks from the end use the length of
4708 the buffer and not the currently terminating NUL byte.
4709
1bfa05cf
UD
4710 [BZ #6634]
4711 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4712 Set to true if locking failed.
4713 (getutid_r_file): Adjust caller.
4714 (pututline_file): Likewise. Return NULL in this case.
4715 Patch mostly by halesh.s@gmail.com.
4716
c5671698
UD
47172008-08-12 Ulrich Drepper <drepper@redhat.com>
4718
4719 [BZ #6589]
4720 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4721 Define.
4722 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4723
4497384e
UD
47242008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
4725
4726 [BZ #6839]
4727 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4728 macro since it is now available in elf/dynamic-link.h.
4729
675d7111
RM
47302008-08-12 Roland McGrath <roland@frob.com>
4731
4732 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4733 in case used outside of libc.
4734 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4735
8b254432
UD
47362008-08-11 Ulrich Drepper <drepper@redhat.com>
4737
4738 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4739 directly instead of going through dn_comp.
4740
ac84eeca
RM
47412008-08-11 Aurelien Jarno <aurel32@debian.org>
4742
4743 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4744 Fix asm constraints.
4745
f081b451
UD
47462008-08-07 Ulrich Drepper <drepper@redhat.com>
4747
4748 [BZ #6790]
4749 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4750 (IPV6_PMTUDISC_PROBE): Likewise.
4751
30a4429e
UD
47522008-08-07 Pete Eberlein <eberlein@us.ibm.com>
4753
4754 [BZ #6791]
4755 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4756
1642331d 47572008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 4758 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
4759
4760 [BZ #6817]
4761 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4762 Added the members 'vsx' and 'arch_2_06'.
4763 (_dl_powerpc_platforms): Add the member 'power7'.
4764 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4765 to reflect the changes required by VSX and ISA 2.06.
4766 Modify _DL_PLATFORMS_COUNT to reflect the addition of
4767 'power7'.
4768 Defined PPC_PLATFORM_POWER7.
4769 (_dl_string_platform): Add support for POWER7.
4770 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4771 capability and ISA 2.06.
4772
48b94661
UD
47732008-08-07 Ulrich Drepper <drepper@redhat.com>
4774
4775 [BZ #6824]
4776 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4777 macro to detect use of 128 bit long double.
4778 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4779
9523fd28
UD
47802008-08-05 Ulrich Drepper <drepper@redhat.com>
4781
9c0cb150
UD
4782 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4783
46aea5cb 4784 [BZ #5794]
9523fd28
UD
4785 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4786 parameters.
4787 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4788 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4789
c400c931
UD
47902008-08-03 Ulrich Drepper <drepper@redhat.com>
4791
4792 * nscd/connections.c (main_loop_poll): Pass a buffer which is
4793 guaranteed to be large enough to read inotify event. Ignore
4794 EAGAIN error. Better error message. Add branch predicition.
4795 (main_loop_epoll): Likewise.
4796
3f39adac
RM
47972008-08-02 Roland McGrath <roland@frob.com>
4798
4799 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4800 Add memory clobbers.
4801
3501542f
UD
48022008-08-02 Ulrich Drepper <drepper@redhat.com>
4803
48b22986
UD
4804 * manual/arith.texi: Avoid @strong{Note:}.
4805 * manual/creature.texi: Likewise.
4806 * manual/filesys.texi: Likewise.
4807 * manual/math.texi: Likewise.
4808 * manual/memory.texi: Likewise.
4809 * manual/resource.texi: Likewise.
4810 * manual/syslog.texi: Likewise.
4811 * manual/time.texi: Likewise.
4812
3501542f
UD
4813 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4814 to prevent warning.
4815
17756df3
UD
48162008-08-01 Ulrich Drepper <drepper@redhat.com>
4817
ebcc1f4d
UD
4818 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4819 new epoll_create1 interface.
4820 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4821 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4822 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4823
144bfa86
UD
4824 * include/arpa/nameser.h (NS_GET16): Use const pointer.
4825 (NS_GET32): Likewise.
4826
7e1b29c6
UD
4827 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4828 syscalls, too.
4829
42fa1f67
UD
4830 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4831 use the AT_EXECFN value if it is no absolute path.
4832 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4833 __ASSUME_AT_EXECFN.
4834
cd5743fd
UD
4835 * Versions.def: Add GLIBC_2.9 to libresolv.
4836 * include/resolv.h: Remove hidden proto declarations for __ns_*
4837 functions. Add them for __dn_count_labels and __p_secstodate.
4838 * include/arpa/nameser.h: Add a number of hidden proto declarations.
4839 Define ns_msg_getflags macro here.
4840 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4841 and __p_secstodate.
4842 * resolv/Versions: Export functions from <arpa/nameser.h> from
4843 libresolv in version GLIBC_2.9.
4844 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
4845 hidden definitions.
4846 * resolv/ns_netint.c: Likewise.
4847 * resolv/ns_parse.c: Likewise.
4848 * resolv/ns_print.c: Likewise.
4849 * resolv/ns_samedomain.c: Likewise.
4850 * resolv/ns_ttl.c: Likewise.
4851 * resolv/arpa/nameser_compat.h: Likewise.
4852 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
4853 function calls.
4854 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4855 instead of ns_get16.
4856 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4857 __ns_get32 instead of ns_get16 and ns_get32 respectively.
4858 (gaih_getanswer_slice): Likewise.
4859 * resolv/Makefile (libresolv-routines): Add ns_date.
4860 * resolv/ns_date.c: New file.
4861
17756df3
UD
4862 * elf/Makefile (check-localplt.out): Also check libresolv and
4863 libcrypt.
4864
46bc5d43
UD
48652008-07-31 Ulrich Drepper <drepper@redhat.com>
4866
4867 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4868 __ASSUME_O_CLOEXEC.
4869
a707cff6
UD
48702008-07-30 Ulrich Drepper <drepper@redhat.com>
4871
3c227386
UD
4872 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4873 buffer passed to NSS functions.
4874
9523fd28 4875 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
4876
4877 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4878 Define.
4879
a707cff6
UD
4880 * misc/syslog.c (openlog_internal): Fix compile problem.
4881
0424d007
RM
48822008-07-28 Roland McGrath <roland@redhat.com>
4883
4884 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4885
b7da31a1
UD
48862008-07-28 Ulrich Drepper <drepper@redhat.com>
4887
300ea0ad
UD
4888 * io/ftw.c (add_object): Remove inline to avoid warning.
4889
d6173baa
UD
4890 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4891
b7da31a1
UD
4892 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4893 Use it instead of locally defined resplen2 variable.
4894 (res_nsend): Adjust for __libc_res_nsend interface change.
4895 (send_vc): Initialize *resplen2 if necessary. Read length of
4896 package into an appropriately aligned variable. Store converted length
4897 in new variable and use it appropriately.
4898 Add branch prediction help.
4899 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4900 and pass it on to __libc_res_nsend. Adjust all callers.
4901 (__libc_res_nsearch): Likewise.
4902 (__libc_res_nqeurydomain): Likewise.
4903 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4904 change.
4905 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4906 Define resplen2 variable and pass it to __libc_res_nsearch and then
4907 to gaih_getanswer.
4908 (getanswer_r): In case of incorrect DNS data don't overread buffer.
4909 Add branch prediction.
4910 (gaih_getanswer_slice): Likewise. Check for invalid data types.
4911 (gaih_getanswer): Don't decode second slice if first one failed due
4912 to a too small buffer. Don't let not found status of second
4913 decoder shadow results of the first.
4914 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4915 and __libc_res_nquery interface changes
4916 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4917 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4918 __libc_res_nsearch, and __libc_res_nsend.
4919 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4920 change.
4921 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4922 __libc_res_nsearch interface changes.
4923
11ed3eae
UD
49242008-07-27 Ulrich Drepper <drepper@redhat.com>
4925
372aece0
UD
4926 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4927
e038616f
UD
4928 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4929 file descriptors with close-on-exec set.
4930 (exec_comm_child): Fix the case where the write end of the pipe is
4931 STDOUT_FILENO already. In case it is, clear close-on-exec.
4932
d6e0c2a6
UD
4933 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4934 * io/pipe2.c: Likewise.
4935 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4936 instead of __ASSUME_PACCEPT.
4937 * include/unistd.h: Declare __have_pipe2.
4938 * libio/iopopen.c: Implement "e" flag.
4939 * libio/Makefile (tests): Add tst-popen1.
4940 * libio/tst-popen1.c: New file.
4941
11ed3eae
UD
4942 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4943 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4944
7438a80d
UD
49452008-07-26 Ulrich Drepper <drepper@redhat.com>
4946
c4a710b6
UD
4947 [BZ #6771]
4948 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4949 success call of _IO_SEEKOFF or calls which failed because the
4950 descriptor is for a pipe.
4951
31f3b159
UD
4952 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4953 magic number.
4954
c0216dfc
UD
4955 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4956
72112b0c
UD
4957 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4958 F_SETFD use if we know fopen set the flag.
4959
7438a80d
UD
4960 * login/utmp_file.c (setutent_file): Minor optimization in case
4961 O_CLOEXEC is available.
4962
7b91359b
UD
49632008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4964
4965 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4966 * elf/Makefile: Use pie-ccflag variable.
4967 * nscd/Makefile: Likewise.
4968 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4969
4057dc45
UD
49702008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4971
e7135e24 4972 [BZ #6724]
4057dc45
UD
4973 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4974 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4975 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4976 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4977 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4978 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4979 utmp32, utmpx32 and login32.
4980 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4981 versions of struct utmp functions to libc and libutil.
4982 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4983 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4984 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4985 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4986 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4987 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4988 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4989 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4990 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4991 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4992 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4993 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4994 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4995 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4996 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4997 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4998 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4999 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5000 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5001 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5002 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5003 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5004
ff0bf753
UD
50052008-07-26 Ulrich Drepper <drepper@redhat.com>
5006
619cc2f6
UD
5007 * scripts/gen-as-const.awk: Generate more widely usable code by
5008 using 64-bit arithmetic.
5009
1311b164 5010 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 5011 the same treatment as narrow output code in last patch.
1311b164 5012
ff0bf753
UD
5013 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5014
3f414923 5015 [BZ #6763]
ff0bf753
UD
5016 * elf/dl-load.c (local_strdup): Remove inline.
5017 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5018 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5019 part of the object.
5020
5021 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5022
8ccf22f9
UD
50232008-07-25 Ulrich Drepper <drepper@redhat.com>
5024
bdd24a30
UD
5025 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5026 the new syscalls, too.
b5c0b5e4 5027
b41f1d14
UD
5028 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5029 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5030
3703468e
UD
5031 [BZ #6698]
5032 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5033 parameter for end of buffer. If temporary copy is too large use
5034 malloc.
5035 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5036 interface change.
5037 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5038 string rewrite when allocating buffer.
5039
bb0277bf
UD
5040 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5041 syscalls, too.
5042
9dd84772
UD
5043 * nscd/connections.c (nscd_init): Clean up fcntl call.
5044
c418b1ba
UD
5045 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5046 SOCK_NONBLOCK if possible.
5047
b206d8b1
UD
5048 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5049 SOCK_CLOEXEC if available.
5050
8ccf22f9
UD
5051 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5052 __libc_clntudp_bufcreate_internal.
5053 * include/sys/socket.h: Declare __have_sock_cloexec.
5054 * socket/Makefile (aux): Add have_sock_cloexec.
5055 * socket/have_sock_cloexec.c: New file.
5056 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5057 __libc_clntudp_bufcreate.
5058 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5059 which takes an additional parameter. Create socket with non-blocking
5060 mode and close-on-exec flag set, if wanted.
5061 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5062 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5063 instead of clntudp_create. The socket has already the close-on-exec
5064 flag set if SOCK_CLOEXEC is defined.
5065
579cdf5a
UD
50662008-07-24 Ulrich Drepper <drepper@redhat.com>
5067
3ff2c948
UD
5068 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5069 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5070 appropriate.
5071 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5072 non-blocking mode by using socket, paccept, and inotify_init1.
5073
bdcebfc4
UD
5074 * Versions.def (glibc): Add GLIBC_2.9.
5075 * io/Makefile (routines): Add dup3 and pipe2.
5076 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5077 * io/dup3.c: New file.
5078 * io/pipe2.c: New file.
5079 * posix/unistd.h: Declare dup3 and pipe2.
5080 * socket/Makefile (routines): Add paccept.
5081 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5082 * socket/paccept.c: New file.
5083 * socket/sys/socket.h: Declare paccept.
5084 * sysdeps/unix/syscalls.list: Add entry for dup3.
5085 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5086 epoll_create2 and inotify_init1.
5087 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5088 * sysdeps/unix/sysv/linux/paccept.c: New file.
5089 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5090 possible.
5091 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5092 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5093 inotify_init1, and pipe2 entries.
5094 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5095 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5096 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5097 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5098 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5099 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5100 SOCK_NONBLOCK.
5101 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5102 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5103 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5104 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5105 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5106 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5107 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5108 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5109 EPOLL_NONBLOCK. Declare epoll_create2.
5110 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5111 EFD_NONBLOCK.
5112 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5113 IN_NONBLOCK. Declare inotify_init1.
5114 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5115 SFD_NONBLOCK.
5116 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5117 TFD_NONBLOCK.
5118
0e077a7e
UD
5119 * elf/elf.h: Define AT_EXECFN.
5120 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5121 LD_ORIGIN_PATH.
5122 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5123 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5124 if __ASSUME_AT_EXECFN is defined.
5125 (_dl_aux_init): Handle AT_EXECFN.
5126 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5127 for 2.6.27 and up.
5128 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5129 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5130 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5131 _dl_execfn if available and avoid compatibility code if
5132 __ASSUME_AT_EXECFN is defined.
5133
579cdf5a
UD
5134 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5135 _dl_discover_osversion only for older kernels.
5136
7385c04c
RM
51372008-07-22 Roland McGrath <roland@frob.com>
5138
5139 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5140
8a26088d
RM
51412008-07-21 Roland McGrath <roland@frob.com>
5142
5143 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5144 returned too much data out of line.
5145
9f558b80
UD
51462008-07-20 Ulrich Drepper <drepper@redhat.com>
5147
2e79213a
UD
5148 * locale/setlocale.c (setname): Remove inline to avoid compiler
5149 warning.
5150
579cdf5a 5151 [BZ #6712]
9f558b80
UD
5152 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5153
9667f97d
UD
51542008-07-15 Ulrich Drepper <drepper@redhat.com>
5155
2486b496
UD
5156 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5157 doesn't manage to write anything, fail.
5158
9667f97d
UD
5159 * malloc/hooks.c (__malloc_check_init): Remove printf.
5160
6d4c073b
RM
51612008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5162
5163 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5164
b7432416
UD
51652008-07-12 Ulrich Drepper <drepper@redhat.com>
5166
5167 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5168 from inotify.
5169 (main_loop_epoll): Likewise.
5170
44abc397
UD
51712008-07-09 Ulrich Drepper <drepper@redhat.com>
5172
835113c6
UD
5173 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5174
fdc769f6
UD
5175 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5176 if DEBUG is defined.
5177
44abc397
UD
5178 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5179 query. Adjust buffer size computation for padding.
5180
38dc8fad
UD
51812008-07-08 Ulrich Drepper <drepper@redhat.com>
5182
75684bd7
UD
5183 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5184 * stdio-common/tst-setvbuf1.c: New file.
5185 * stdio-common/tst-setvbuf1.expect: New file.
5186
38dc8fad
UD
5187 [BZ #6719]
5188 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5189 when selecting fully-buffered stream.
5190 Patch by Wang Xin <wxinee@gmail.com>.
5191
107f4ac2
RM
51922008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5193
5194 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5195 (__open_2): New function.
5196 (__open64_2): New alias to __open_2.
5197 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5198 (__openat_2): New function.
5199 (__openat64_2): New alias to __openat_2.
5200
45ec3e79
UD
52012008-07-06 Ulrich Drepper <drepper@redhat.com>
5202
5203 [BZ #6723]
5204 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5205
0a583b54
RM
52062008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5207
5208 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5209 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5210 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5211 __hurd_dfail.
5212 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5213 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5214 * sysdeps/mach/hurd/send.c (__send): Likewise.
5215 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5216 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5217
d5a0160b
RM
52182008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5219
5220 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5221 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5222 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5223 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5224 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5225 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5226
80922a99
UD
52272008-06-27 Ulrich Drepper <drepper@redhat.com>
5228
5229 [BZ #6657]
5230 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5231 of %EY.
5232 Patch by Petr Baudis.
5233
34ca2ff7
UD
52342008-06-26 Ulrich Drepper <drepper@redhat.com>
5235
5ee0f5e2 5236 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
5237 Patch by Peter Jones <pjones@redhat.com>.
5238
104426b6
UD
52392008-06-25 Ulrich Drepper <drepper@redhat.com>
5240
5241 [BZ #6654]
5242 * stdlib/canonicalize.c (__realpath): readlink can write too much
5243 into the buffer on platforms without PATH_MAX.
5244
7166d23f
UD
52452008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5246
4cb8e687 5247 [BZ #6653]
7166d23f
UD
5248 * posix/tst-regex.c (main): Rename to...
5249 (do_test): ... this. Remove cmdline option processing.
5250 (TIMEOUT): Define.
5251 (TEST_FUNCTION): Define.
5252 (CMDLINE_OPTIONS): Define.
5253
974069d8
UD
52542008-06-25 Ulrich Drepper <drepper@redhat.com>
5255
5256 [BZ #5210]
5257 * configure.in: Add -Werror to -fstack-protector test to catch
5258 unsupported architectures.
5259 Patch by Gilles Esponasse <g.esp@free.fr>.
5260
cefa2dd3
UD
52612008-06-17 Joseph Myers <joseph@codesourcery.com>
5262
5263 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5264 getcontext returns ENOSYS.
5265
c00d1128
UD
52662008-06-18 Ulrich Drepper <drepper@redhat.com>
5267
5268 * nscd/connections.c (main_loop_poll): Fix test for read error.
5269 (main_loop_epoll): Likewise.
5270
a0edbb48
UD
52712008-06-13 Ulrich Drepper <drepper@redhat.com>
5272
d0a1ae94
UD
5273 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5274 better place so it is not called when nscd is used.
5275
a0edbb48
UD
5276 * nscd/connections.c: Also recognize and handle changes to the
5277 resolver configuration file.
5278
46f70b3c
UD
52792008-06-12 Ulrich Drepper <drepper@redhat.com>
5280
5bcc6c0f
UD
5281 * time/strftime.c: Pass reference to tzset_called around to handle
5282 recursive calls.
5283
5284 [BZ #6612]
5285 * time/strftime.c (__strftime_internal): Call tzset() only
5286 when printing timezone-dependent values.
5287 Based on a patch by Petr Baudis <pasky@suse.cz>.
5288
f854efd7
UD
5289 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5290 unconditionally use second gaih_getanswer_slice result.
5291
46f70b3c
UD
5292 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5293 (getaddrinfo): RES must always be non-NULL.
5294
9ea8bfec
UD
52952008-06-12 Jakub Jelinek <jakub@redhat.com>
5296
5297 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5298 cr[34] registers.
5299 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5300 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5301 Likewise.
5302 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5303 register.
5304
5a337776
UD
53052008-06-12 Ulrich Drepper <drepper@redhat.com>
5306
5228ba2f
UD
5307 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5308 fields.
5309 * nscd/connections.c (inotify_fd): New variable.
5310 (nscd_init): Try to open an inotify descriptor.
5311 If successful, watch files for databases using inotify instead of
5312 having prune threads stat the files.
5313 (nscd_run_prune): Recognize clear_cache flag being set and call
5314 prune_cache appropriately.
5315 (main_loop_poll): Add inotify descriptor to wait set and handle the
5316 reported changes.
5317 (main_loop_epoll): Likewise.
5318 * nscd/cache.c (prune_cache): Don't stat files for databases if
5319 inotify is used.
5320 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5321 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5322
5a337776
UD
5323 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5324 fixed-size portion of the record.
5325 * nscd/servicescache.c (cache_addserv): Likewise.
5326 * nscd/pwdcache.c (cache_addpw): Likewise.
5327 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5328
9ad58cc3
UD
53292008-06-11 Ulrich Drepper <drepper@redhat.com>
5330
5331 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5332 out we don't use uninitialized memory.
5333
5334 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5335 the client.
5336
c1283552
UD
53372008-06-10 Ulrich Drepper <drepper@redhat.com>
5338
5339 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5340 ignore T_DNAME messages.
5341 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5342
eef8a803
JJ
53432008-06-05 Jakub Jelinek <jakub@redhat.com>
5344
5345 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5346 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5347
ee78670e
JJ
53482008-06-03 Jakub Jelinek <jakub@redhat.com>
5349
5350 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5351 instead of portstr to nscd_getserv_r. Patch by
5352 Roman Kagan <rkagan@mail.ru>.
5353
62605cbf
UD
53542008-05-26 Jim Meyering <meyering@redhat.com>
5355
10966640 5356 Remove more useless "if" tests before "free".
62605cbf
UD
5357 * include/inline-hashtab.h (htab_delete): Likewise.
5358 * libio/freopen.c (freopen): Likewise.
5359 * libio/freopen64.c (freopen64): Likewise.
5360 * locale/programs/ld-collate.c (collate_read): Likewise.
5361 * misc/fstab.c (libc_freeres_fn): Likewise.
5362 * posix/glob.c (globfree): Likewise.
5363
f63abf58
UD
53642008-05-24 Ulrich Drepper <drepper@redhat.com>
5365
5366 * string/Makefile (strop-tests): Add memmem.
5367 * string/test-memmem.c: New file.
5368 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5369 (test_init): Size buf1 according to BUF1PAGES.
5370
ad8a5511
JJ
53712008-05-24 Jakub Jelinek <jakub@redhat.com>
5372
5373 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5374 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5375 (CFLAGS-scanf17.c): New.
5376 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5377 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
5378 * stdio-common/scanf16.c: New file.
5379 * stdio-common/scanf17.c: New file.
ad8a5511 5380
e2003883
UD
53812008-05-24 Ulrich Drepper <drepper@redhat.com>
5382
5383 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 5384 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
5385 use the one answer insted of failing.
5386
acbb9873
UD
53872008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5388
5389 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5390 being executed on PowerPC as the expected result exceeds IBM
5391 long double 128 __LDBL_MAX__.
5392
e85f1d6a
RM
53932008-05-21 Roland McGrath <roland@redhat.com>
5394
5395 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5396
5397 * Makefile (check-data): Use $(abi-name) before other guesses.
5398 Look in $(add-ons) dirs before scripts/data/.
5399 * elf/Makefile (check-data): Likewise.
5400
5401 * scripts/soversions.awk: Grok ABI line.
5402 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5403 Emit definition for abi-name variable.
5404
d8e763c6
UD
54052008-05-21 Ulrich Drepper <drepper@redhat.com>
5406
e92799fc 5407 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 5408 if [__USE_BSD].
e92799fc 5409
d8e763c6
UD
5410 * iconvdata/Depend: Add localedata.
5411
009ef333
RM
54122008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5413
5414 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5415
86746abb
JJ
54162008-05-08 David S. Miller <davem@davemloft.net>
5417
5418 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5419 HIDDEN_JUMPTARGET.
5420 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5421 (__SYSCALL_CLOBBERS): Remove %g* registers.
5422 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5423 (__SYSCALL_CLOBBERS): Likewise.
5424 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 5425 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 5426
5e6f34c2
JJ
54272008-05-21 Jakub Jelinek <jakub@redhat.com>
5428
5429 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5430 (CALL_ERRNO_LOCATION): Define.
5431 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5432 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5433 (CALL_ERRNO_LOCATION): Define.
5434 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5435 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5436 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5437
4beb4532
UD
54382008-05-20 Ulrich Drepper <drepper@redhat.com>
5439
5440 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5441 variable.
5442
ed8f38ba
JJ
54432008-05-20 Jakub Jelinek <jakub@redhat.com>
5444
5445 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5446 (FIRST_FRAME_POINTER): Define.
5447
54482008-05-09 David S. Miller <davem@davemloft.net>
5449
5450 * sysdeps/sparc/sparc64/backtrace.c: New file.
5451
c1b8190a
JJ
54522008-05-14 David S. Miller <davem@davemloft.net>
5453
5454 * sysdeps/sparc/machine-gmon.h: New file.
5455 * sysdeps/sparc/sparc-mcount.S: Likewise.
5456 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5457 sysdep_routines in gmon directory.
5458
84aacd93
JJ
54592008-05-19 Jakub Jelinek <jakub@redhat.com>
5460
5461 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5462
5908f779
UD
54632008-05-19 Ulrich Drepper <drepper@redhat.com>
5464
5465 * resolv/res_query.c (__libc_res_nquery): In case one of two
5466 answer was too short don't try to read that answer's header.
5467
5468 * resolv/res_send.c (send_dg): In case of timeout and there are
5469 two queries and one has been answered, return value indicating
5470 success.
5471
528741cb
UD
54722008-05-18 Ulrich Drepper <drepper@redhat.com>
5473
5474 * nscd/cache.c (cache_add): Take additional parameter specifying
5475 whether this is in response of a cache refill. Check alignment
5476 of package data. Revamp waking of pruning thread.
5477 (prune_cache): Small optimization.
5478 * nscd/nscd.h: Adjust cache_add prototypes.
5479 * nscd/aicache.c: Adjust cache_add calls.
5480 * nscd/grpcache.c: Likewise.
5481 * nscd/hstcache.c: Likewise.
5482 * nscd/initgrcache.c: Likewise.
5483 * nscd/pwdcache.c: Likewise.
5484 * nscd/servicescache.c: Likewise.
5485 * nscd/connections.c (restart): Really disable cache use before
5486 exec attempt. If it fails, reenable cache.
5487 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5488 time to max to be able to notice concurrent cache additions. Unlock
5489 prune_lock while performing gc. Afterwards compute wakeup time with
5490 current wakeup_time value in mind.
5491
343996c4
UD
54922008-05-17 Ulrich Drepper <drepper@redhat.com>
5493
5811d72b
UD
5494 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5495
fa526148
UD
5496 * nscd/mem.c (gc): Correctly determine highest used array element
5497 in mark.
5498
77d40f10
UD
5499 * nscd/mem.c (markrange): Add assert to check entries are all
5500 aligned. Small cleanup in bitmap use.
5501
8884028c
UD
5502 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5503 blockoff of type nscd_ssize_t.
5504 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5505 (mempoll_alloc): Record block offset and not address.
5506
b2159575
UD
5507 * nscd/mem.c (gc): Fix test for stack overuse.
5508
5c9629d2
UD
5509 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5510 more asserts.
5511
66d90496
UD
5512 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5513 entry is available, believe it.
5514
343996c4
UD
5515 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5516 no answers return NSS_STATUS_NOTFOUND.
5517 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5518 buffer does not have any content.
5519
91c8a74b
UD
55202008-05-16 Ulrich Drepper <drepper@redhat.com>
5521
74e13385
UD
5522 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5523
91c8a74b
UD
5524 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5525 lookup, don't assign canon unconditionally.
5526
0caca71a
UD
55272008-05-14 Ulrich Drepper <drepper@redhat.com>
5528
5529 * string/Makefile (distribute): Add str-two-way.h.
5530
55312008-03-29 Eric Blake <ebb9@byu.net>
5532
5533 Rewrite string searches to O(n) rather than O(n^2).
5534 * string/str-two-way.h: New file. For linear fixed-allocation
5535 string searching.
5536 * string/memmem.c: New implementation.
5537 * string/strstr.c: New implementation.
5538 * string/strcasestr.c: New implementation.
5539
b194db79
UD
55402008-04-11 Paolo Bonzini <bonzini@gnu.org>
5541
5542 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5543 opr.ctx_type.
5544 (calc_first): Initialize constraint field.
5545 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5546 Use search_duplicated_node to avoid loops. Fix grammar.
5547 (duplicate_node): Merge constraint field for all node types.
5548 (calc_eclosure_iter): Look at constraint field for all node types.
5549 * posix/regex_internal.c (create_cd_newstate): Don't look at
5550 create_cd_newstate.
5551
c8d49f05
UD
55522008-05-14 Ulrich Drepper <drepper@redhat.com>
5553
215a8745
UD
5554 [BZ #6428]
5555 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5556
2f9a1be8
UD
5557 [BZ #6442]
5558 * string/endian.h: Add macros for fixed-size endian conversion.
5559 * bits/byteswap.h: Allow inclusion from <endian.h>.
5560 * sysdeps/i386/bits/byteswap.h: Likewise.
5561 * sysdeps/ia64/bits/byteswap.h: Likewise.
5562 * sysdeps/s390/bits/byteswap.h: Likewise.
5563 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5564 * string/Makefile (tests): Add tst-endian.
5565 * string/tst-endian.c: New file.
5566
c8d49f05
UD
5567 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5568 Patch by Reuben Thomas.
5569
a754f018
UD
55702008-05-14 Joseph Myers <joseph@codesourcery.com>
5571
5572 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5573
372bfcac
UD
55742008-05-14 Ulrich Drepper <drepper@redhat.com>
5575
a754f018
UD
5576 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5577
5deca9bb
UD
5578 [BZ #6461]
5579 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5580 Add missing braces.
5581 (BODY for __gconv_transform_internal_ascii): Likewise.
5582
af77c9b7 5583 [BZ #6472]
5fab5544
UD
5584 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5585 to be treated like link-local addresses.
5846c4e2
UD
5586 (match_prefix): Don't treat IPv4 loopback address special when
5587 converting to v4 mapped addressed.
5fab5544 5588
0caca71a 5589 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 5590 if necessary.
b194db79
UD
5591 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5592 * posix/tst-rfc3484-2.c: Likewise.
5593 * posix/tst-rfc3484-3.c: Likewise.
1f039824 5594
18a74157
UD
5595 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5596 and SCTP.
372bfcac
UD
5597
5598 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5599
5600 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5601
5602 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5603
f05ac8f5
UD
56042008-05-13 Ulrich Drepper <drepper@redhat.com>
5605
5606 * po/lt.po: New file. From Lituanian translation team.
5607
c9ff0187
UD
56082008-01-30 Alexandre Oliva <aoliva@redhat.com>
5609
5610 Introduce TLS descriptors for i386 and x86_64.
5611 * include/inline-hashtab.h: New file, copied from 2005's
5612 libiberty, with fix for memory leak imported afterwards by
5613 Glauber de Oliveira Costa.
5614 * elf/tlsdeschtab.h: New file.
5615 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5616 (_dl_allocate_static_tls): ... here. Rearrange failure path.
5617 (CHECK_STATIC_TLS): Move to...
5618 * elf/dynamic-link.h: ... this file.
5619 (TRY_STATIC_TLS): New macro.
5620 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5621 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5622 R_386_TLS_DESC): Define.
5623 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5624 binutils.
5625 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5626 R_X86_64_TLSDESC): Define.
5627 (R_386_NUM, R_X86_64_NUM): Adjust.
5628 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 5629 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
5630 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5631 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5632 release tlsdesc_table.
5633 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5634 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5635 (elf_machine_rel): Handle R_386_TLS_DESC.
5636 (elf_machine_rela): Likewise.
5637 (elf_machine_lazy_rel): Likewise.
5638 (elf_machine_lazy_rela): Likewise.
5639 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5640 * sysdeps/i386/dl-tlsdesc.S: New file.
5641 * sysdeps/i386/dl-tlsdesc.h: New file.
5642 * sysdeps/i386/tlsdesc.c: New file.
5643 * sysdeps/i386/tlsdesc.sym: New file.
5644 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5645 tlsdesc_table.
5646 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 5647 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
5648 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5649 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5650 release tlsdesc_table.
5651 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5652 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5653 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5654 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5655 (elf_machine_rela): Likewise.
5656 (elf_machine_lazy_rel): Likewise.
5657 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5658 (__tls_get_addr): Do not declare for non-shared compiles.
5659 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5660 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5661 * sysdeps/x86_64/tlsdesc.c: New file.
5662 * sysdeps/x86_64/tlsdesc.sym: New file.
5663 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5664 tlsdesc_table for both 32- and 64-bit structs.
5665
a3636e8b
UD
56662008-05-11 Ulrich Drepper <drepper@redhat.com>
5667
5668 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5669 its own function. This reduces the frame setup costs and more.
5670
a7eb802f
UD
56712008-02-11 Joseph Myers <joseph@codesourcery.com>
5672
5673 [BZ #3406]
5674 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5675 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5676
3490f01d
UD
56772008-05-11 Ulrich Drepper <drepper@redhat.com>
5678
3d7eeebe
UD
5679 * io/openat.c (__openat_2): Also pass fd to __openat.
5680 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5681 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5682
3490f01d
UD
5683 * string/tester.c (test_memcmp): Add a few more tests.
5684 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5685
7e71e55f
UD
56862008-05-10 Ulrich Drepper <drepper@redhat.com>
5687
5688 * nscd/cache.c (cache_add): Before returning with failure and this
5689 is the first use of the record, mark it as unusable.
5690 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5691 reporting a failure.
5692 * nscd/grpcache.c: Likewise
5693 * nscd/hstcache.c: Likewise.
5694 * nscd/initgrcache.c: Likewise.
5695 * nscd/pwdcache.c: Likewise.
343996c4 5696 * nscd/servicescache.c: Likewise.
7e71e55f 5697
7396d0a9
RM
56982008-05-10 Roland McGrath <roland@redhat.com>
5699
5700 [BZ #6505]
5701 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5702
c5ee217f
UD
57032008-05-08 David S. Miller <davem@davemloft.net>
5704
b29899ae
UD
5705 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5706
c5ee217f
UD
5707 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5708 (__ieee754_y0l): Likewise.
5709 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5710 (__ieee754_y1l): Likewise.
5711 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5712 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5713 frexpl and ldexpl. math_private.h provides them and the latter
5714 is not even used.
5715 (__log1pl): Use __frexpl.
5716
1eb946b9
UD
57172008-05-10 Ulrich Drepper <drepper@redhat.com>
5718
5719 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5720 prototypes.
5721 * include/arpa/nameser_compat.h: Define T_UNSPEC.
5722 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5723 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5724 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5725 af==AF_UNSPEC.
5726 (_nss_nis_gethostbyname4_r): New function.
5727 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5728 Change to also handle af==AF_UNSPEC.
5729 (get_tablename): New function. Use it to avoid duplication.
5730 (_nss_nisplus_gethostbyname4_r): New function.
5731 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5732 available.
5733 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5734 * nss/nss.h: Define struct gaih_addrtuple.
5735 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5736 af==AF_UNSPEC.
5737 (_nss_files_gethostbyname4_r): New function.
5738 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5739 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5740 calls.
5741 * resolv/res_query.c (__libc_res_nquery): Take two additional
5742 parameters for second answer buffer. Handle type=T_UNSPEC to mean
5743 look up IPv4 and IPv6.
5744 Change all callers.
5745 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5746 for an additional query and answer buffer. Pass to send_vc and
5747 send_dg.
5748 (send_vc): Send possibly two requests and receive two answers.
5749 (send_dg): Likewise.
5750 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5751 __libc_res_nquery.
5752 (_nss_dns_gethostbyname4_r): New function.
5753 (gaih_getanswer_slice): Likewise.
5754 (gaih_getanswer): Likewise.
5755 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5756 __libc_res_nquery call.
5757 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5758 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5759 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5760 available.
5761
b7fb703a
JJ
57622008-05-05 David S. Miller <davem@davemloft.net>
5763
5764 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5765 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5766
2256e43d
RM
57672007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5768
5769 Fix termios bit macros.
5770 Move *DLY definitions where they belong, in termios.h.
5771 Add *[0-3] definitions.
5772 Fixes confusion between VT and FF.
8bb52dbf
RM
5773 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5774 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5775 are already defined to avoid collision with termios.h.
2256e43d
RM
5776 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5777 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5778 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5779 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5780 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5781 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5782 VTDLY, VT0, VT1): New macros.
5783 [__USE_GNU] (OLCUC): Change value of macro.
5784 [__USE_XOPEN] (OFILL): New macro.
5785 [__USE_BSD] (CRTSCTS): Change value.
5786 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5787 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5788 (B7200, B14400, B28800, B76800): New macros.
5789
4ce349e5
JJ
57902008-05-01 David S. Miller <davem@davemloft.net>
5791
a86a7a39
JJ
5792 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5793 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5794 (gen-as-const-headers): Add it.
5795 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5796 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5797 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5798 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 5799
4ce349e5
JJ
5800 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5801 six system call parameters.
5802 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5803
89a8963d
UD
58042008-04-30 Ulrich Drepper <drepper@redhat.com>
5805
5806 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5807 RUSAGE_LWP.
5808 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5809 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5810
b5ec5fce
JJ
58112008-04-30 Jakub Jelinek <jakub@redhat.com>
5812
5813 * stdlib/tst-setcontext.c: Include unistd.h.
5814
d4e92d9e
JJ
58152008-04-25 David S. Miller <davem@davemloft.net>
5816
5817 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5818 Pass "union semun" properly in to sys_ipc, it must be passed
5819 by value, not by reference.
5820
7eb5e6c9
UD
58212008-04-22 Jakub Jelinek <jakub@redhat.com>
5822
5823 * nscd/Makefile (nscd-cflags): Set back to -fpie.
5824 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5825 * nscd/connections.c (mem_in_flight): Likewise.
5826
5827 * nscd/nscd.h (dbs): Make hidden.
5828
5829 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5830 Avoid returning -1, return 0 instead.
5831
0073dd2d
UD
58322008-04-19 Ulrich Drepper <drepper@redhat.com>
5833
5834 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5835
c52137d3
UD
58362008-04-15 Ulrich Drepper <drepper@redhat.com>
5837
5838 [BZ #5209]
5839 * sysdeps/unix/sysv/linux/times.c: New file.
5840
5841 [BZ #5381]
5842 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5843 mem_in_flight_list variables. Add new parameter to mempool_alloc
5844 prototype.
5845 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
5846 appropriate mem_in_flight element.
5847 (gc): Take allocations which have not yet been committed to the
5848 database into account.
5849 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5850 Reset mem_in_flight before returning.
5851 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5852 cue it up in mem_in_flight_list.
5853 * nscd/aicache.c: Adjust mempool_alloc call.
5854 * nscd/grpcache.c: Likewise.
5855 * nscd/hstcache.c: Likewise.
5856 * nscd/initgrcache.c: Likewise.
5857 * nscd/pwdcache.c: Likewise.
5858 * nscd/servicescache.c: Likewise.
5859 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5860 of -fpie.
5861
5862 * nscd/connections.c (handle_request): Provide better error message
5863 in case SELinux forbids the service.
5864
5865 * version.h (VERSION): Bump to 2.8.90.
5866
39546e34
JJ
58672008-04-17 Jakub Jelinek <jakub@redhat.com>
5868
5869 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5870
cf3a8c7f
UD
58712008-04-11 Ulrich Drepper <drepper@redhat.com>
5872
9e113ecd
UD
5873 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5874 Also use for 32-bit.
3b6d574e
UD
5875 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5876 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
5877 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5878 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5879
3781ec29
UD
5880 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5881
246ec411
UD
5882 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5883 __fe_nomask_env.
3cc56f92
UD
5884 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
5885 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
5886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5888
5889 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5890
5891 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5892 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5893 function from fegetexcept and make old name weak alias.
5894 * include/fenv.h: Declare __fegetexcept.
5895 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5896 fegetexcept.
5897 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5898 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5899 to fetestexcept.
5900 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5901 instead of frexpl to avoid local PLT.
5902 * math/s_significandl.c (__significandl): Use __ilogbl instead of
5903 ilogbl to avoid local PLT.
5904 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5905 instead of ldexpl to avoid local PLT.
5906 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5907 __roundl not roundl to avoid local PLT.
5908 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5909 local PLTs. Use __sincosl instead of separate sinl and cosl
5910 calls.
5911 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5912
2dc4a2fd
UD
5913 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5914 version for ppc64 to 2.4.21 since without it makecontext will fail.
5915
fe3350ee
UD
5916 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5917 to the ABI in use.
5918 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5919 .__tls_get_addr.
5920 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 5921
c1e6b459
UD
59222007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
5923
7763d4f1 5924 [BZ #4997]
c1e6b459
UD
5925 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5926 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5927 mantissa.
5928 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5929 Likewise. Also account for when x is an odd number between 2^52
5930 and 2^53-1.
5931 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5932 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5933 * math/libm-test.inc (lround_test, llround_test): Added test cases to
5934 detect aforementioned erroneous conditions.
5935
22dca1ea
UD
59362008-04-11 Jakub Jelinek <jakub@redhat.com>
5937
5938 * configure.in: Check for -fno-section-anchors in addition to
5939 -fno-toplevel-reorder.
5940
5d59f4a5
UD
59412008-04-11 Ulrich Drepper <drepper@redhat.com>
5942
5943 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5944
5945 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5946 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5947 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5948 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5949 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5950 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5951
91e32540
UD
59522008-04-11 Jakub Jelinek <jakub@redhat.com>
5953
5954 [BZ #5443]
5955 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5956 * time/alt_digit.c: Likewise.
5957 * wcsmbs/wcsmbsload.c: Likewise.
5958
fd490ac8
UD
59592008-04-10 Ulrich Drepper <drepper@redhat.com>
5960
1db5b6f4
UD
5961 * version.h (VERSION): Bump to 2.8.
5962
fd490ac8
UD
5963 * timzeone/asia: Update from tzdata2008b.
5964 * timezone/backward: Likewise.
5965 * timezone/europe: Likewise.
5966 * timezone/northamerica: Likewise.
5967 * timezone/southamerica: Likewise.
5968 * timezone/iso3166.tab: Likewise.
5969 * timezone/leapseconds: Likewise.
5970 * timezone/zone.tab: Likewise.
5971 * timezone/private.h: Update from tzcode2008a.
5972 * timezone/zdump.c: Likewise.
5973 * timezone/zic.c: Likewise.
5974
153cf972
UD
59752008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5976
5977 [BZ #5741]
5978 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5979 Define additonal Data Cache Block instruction macros.
5980 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5981 Replace dcbst with dcbf and sync with sync/isync.
5982
d2207f32
UD
59832008-02-21 Alan Modra <amodra@bigpond.net.au>
5984
5985 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5986 Always set ELF_RTYPE_CLASS_PLT.
5987 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5988
13d83320
UD
59892008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5990
5991 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5992 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5993 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5994 For ISA 2.01 and later replace mftb with mfspr 268.
5995
5f7aead5
UD
59962008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5997
5998 [BZ #5768]
5999 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6000 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6001
60022008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
6003
6004 [BZ #5768]
6005 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6006 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6007 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6008 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6009
117df5d9
JJ
60102008-04-10 Jakub Jelinek <jakub@redhat.com>
6011
6012 * stdlib/tst-makecontext.c (othervar): New variable.
6013 (cf): Test sign extending the argument to long.
6014
3b32d8a2
UD
60152008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6016
6017 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6018 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6019 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6020 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6021 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6022 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6023 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6024
9fb11d4c
UD
60252008-02-22 Alan Modra <amodra@bigpond.net.au>
6026
6027 * elf/Makefile (tests): Substitute tests-vis-yes here.
6028 (tests-vis-yes): Delete.
6029 (modules-name, modules-vis-yes): Similarly.
6030
facd1d8e
UD
60312008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6032
6033 [BZ #4407]
6034 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6035 Preserve sign in signgamp when x is zero.
6036
aece054b
UD
60372007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6038
6039 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6040 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6041 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6042 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6043 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6044 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6045
6c30d38f
UD
60462008-04-09 Ulrich Drepper <drepper@redhat.com>
6047
21208604 6048 [BZ #4314]
13d83320
UD
6049 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6050 buffers.
21208604 6051
2f611ada 6052 [BZ #5209]
d1235fdf
UD
6053 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6054 a reserved error value.
2f611ada 6055
6c30d38f
UD
6056 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6057 value to check for correct sign extension.
6058
6059 [BZ #5436]
6060 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6061 Copy 64-bit parameter values even though this is not required in
6062 the standard.
6063
6064 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6065 PC save.
6066
de1bbf68
UD
60672008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6068
6069 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6070 PC save.
6071
9aef35a5
UD
60722008-04-09 Jakub Jelinek <jakub@redhat.com>
6073
6074 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6075
a7925a24
UD
60762008-04-09 Ulrich Drepper <drepper@redhat.com>
6077
6078 [BZ #5998]
6079 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6080 in line-buffered stream failed.
6081 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6082
7b61ef24
UD
60832008-04-08 Ulrich Drepper <drepper@redhat.com>
6084
c2a684a4
UD
6085 [BZ #6024]
6086 * scripts/abi-versions.awk: If the version specified by
6087 --enable-oldest-abi is older than the first version for this
6088 architecture, use the default version.
6089
7b61ef24
UD
6090 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6091 as well when ignoring the whole category.
6092
f6d749f0
UD
60932008-04-07 Ulrich Drepper <drepper@redhat.com>
6094
6095 [BZ #6042]
6096 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6097 ETHERTYPE_* definitions.
6098 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6099
1e99aede
JJ
61002008-04-07 Jakub Jelinek <jakub@redhat.com>
6101
6102 * stdlib/mbtowc.c (__no_r_state): Remove.
6103 (mbtowc): New static state variable. Use it instead of
6104 __no_r_state.
6105 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6106 (__wctomb_state): New hidden variable.
6107 (wctomb): Use __wctomb_state instead of __no_r_state.
6108 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6109 (__wctomb_state): New extern decl.
6110 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6111
fcf90e0a
UD
61122008-04-07 Ulrich Drepper <drepper@redhat.com>
6113
6114 [BZ #5475]
6115 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6116
ae39e102
JJ
61172008-04-07 Jakub Jelinek <jakub@redhat.com>
6118
6119 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6120
2503dd30
UD
61212008-04-06 Ulrich Drepper <drepper@redhat.com>
6122
6123 * po/nl.po: Update from translation team.
6124
3eb9c809
UD
61252008-03-31 Ulrich Drepper <drepper@redhat.com>
6126
6127 [BZ #6007]
6128 * string/strfry.c: Handle empty strings again.
6129
9a69db29
UD
61302008-03-30 Ulrich Drepper <drepper@redhat.com>
6131
6132 [BZ #5443]
6133 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6134 before looking for translation.
6135 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6136 * locale/freelocale.c: Likewise.
6137 * locale/newlocale.c: Likewise.
6138 * locale/setlocale.c: Likewise.
6139 Based partially on a patch by ryo@np.css.fujitsu.com.
6140
2ecc7d93
UD
61412008-03-30 Jakub Jelinek <jakub@redhat.com>
6142
6143 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6144 acquiring wrlock. Do conv_tab allocation while holding lock.
6145 * intl/Makefile: Add rules to build and run tst-gettext6.
6146 * intl/tst-gettext6.c: New test.
6147 * intl/tst-gettext6.sh: New file.
6148
221e5230
UD
61492008-03-30 Ulrich Drepper <drepper@redhat.com>
6150
faa091c6
UD
6151 * po/nl.po: Update from translation team.
6152
221e5230
UD
6153 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6154 provided through st_blksize, try the default size before giving up.
6155
1c272665
UD
61562008-03-29 Ulrich Drepper <drepper@redhat.com>
6157
43f6bec1
UD
6158 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6159
e8a32126
UD
6160 [BZ #5939]
6161 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6162
1e489af9
UD
6163 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6164 error message. POSIX today does not require the messages to be in
6165 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6166
1d20f7f8
UD
6167 [BZ #5979]
6168 * sunrpc/auth_unix.c: Unify printed strings.
6169 * sunrpc/clnt_tcp.c: Likewise.
6170 * sunrpc/clnt_udp.c: Likewise.
6171 * sunrpc/clnt_unix.c: Likewise.
6172 * sunrpc/svc_tcp.c: Likewise.
6173 * sunrpc/svc_udp.c: Likewise.
6174 * sunrpc/svc_unix.c: Likewise.
6175 * sunrpc/xdr.c: Likewise.
6176 * sunrpc/xdr_array.c: Likewise.
6177 * sunrpc/xdr_rec.c: Likewise.
6178 * sunrpc/xdr_ref.c: Likewise.
6179 * locale/programs/ld-time.c (time_finish): Unify messages.
6180 * locale/programs/locfile.c (handle_copy): Fix typo.
6181 * nscd/nscd.c (options): Fix typo.
6182
1c272665
UD
6183 [BZ #5995]
6184 * stdlib/strtod_l.c: Use correct sign for result in one more
6185 underflow case.
6186 Patch by Eric Blake <ebb9@byu.net>.
6187
48cc060e
UD
61882008-03-27 Jakub Jelinek <jakub@redhat.com>
6189
6190 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6191 and creat system calls.
6192 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6193 call.
6194 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6195 system calls.
6196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6197 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6198 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6199
f96853be
UD
62002008-03-27 Ulrich Drepper <drepper@redhat.com>
6201
6202 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6203 <linux/limits.h> has defined it.
6204 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6205 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6206 headers.
6207 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6208 it instead of ARG_MAX.
6209
fde15fdc
UD
62102008-03-25 Jakub Jelinek <jakub@redhat.com>
6211
6212 * posix/gai.conf: Fix comment for scope nullbits.
6213 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6214 default to 128 bits for v4 mapped addresses.
6215
87b9b50f
UD
62162008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6217
6218 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6219 ptrace call to get the ieee_instruction_pointer from the kernel.
6220 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6221 ptrace call to set the ieee_instructtion_pointer.
6222 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6223 Add comment that ieee_instruction_pointer is always 0.
6224
af0498dc
UD
62252008-03-09 Andreas Jaeger <aj@suse.de>
6226
6227 [BZ #5857]
6228 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6229 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6230 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6231
6232 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6233 (rint_test): Likewise.
6234
0ab7632d
UD
62352008-03-24 Ulrich Drepper <drepper@redhat.com>
6236
0facd3df
UD
6237 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6238 call.
6239 (__nisfind_server): Similar for open readColdStartFile call.
6240 Patch partially by Jim Meyering.
6241 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6242 around internal_setent call.
6243
7e570c55
UD
6244 * po/vi.po: New Vietnamese translation.
6245
e093c247
UD
6246 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6247 ADJ_OFFSET_SS_READ.
6248
0ab7632d
UD
6249 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6250 remove CLONE_STOPPED.
6251
0726cdf7
UD
62522008-02-10 Jim Meyering <meyering@redhat.com>
6253
6254 Remove useless "if" before "free":
6255 * elf/ldconfig.c (parse_conf_include): Likewise.
6256 * gmon/gmon.c (weak_alias): Likewise.
6257 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6258 * inet/rcmd.c (__validuser2_sa): Likewise.
6259 * intl/bindtextdom.c (set_binding_values): Likewise.
6260 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6261 * libio/genops.c (save_for_backup): Likewise.
6262 * libio/wgenops.c (save_for_wbackup): Likewise.
6263 * locale/programs/ld-collate.c (collate_read): Likewise.
6264 * locale/programs/linereader.c (get_string): Likewise.
6265 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6266 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6267 * resolv/res_debug.c (do_section): Likewise.
6268 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6269 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6270 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6271 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6272 * time/tzset.c (tzset_internal): Likewise.
6273
354b7527
JJ
62742008-03-18 Jakub Jelinek <jakub@redhat.com>
6275
6276 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6277 of ASSEMBLER.
6278
ca668b29
UD
62792008-03-11 Ulrich Drepper <drepper@redhat.com>
6280
6281 [BZ #5903]
6282 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6283 not stream for output file. Open output file here.
6284 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6285 and output file name.
6286 (process_fd): Likewise.
6287 (process_file): Likewise.
6288 (main): Adjust callers of changed functions.
6289 * iconv/iconv_prog.h: Adjust prototype.
6290
f3dc3415
AJ
62912008-03-09 Andreas Jaeger <aj@suse.de>
6292
6293 [BZ #5753]
6294 * sysdeps/ia64/ieee754.h: Use protected namespace
6295 __BIG_ENDIAN/__LITTLE_ENDIAN.
6296 * sysdeps/ieee754/ieee754.h: Likewise.
6297 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6298
a8fd84d4
RM
62992008-03-08 Roland McGrath <roland@frob.com>
6300
2b965f1b
RM
6301 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6302 ignore a signal that came from a machine exception, treat it as a
6303 fatal core-dump signal instead.
6304 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6305
a8fd84d4
RM
6306 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6307 Clear DF bit in thread state's eflags.
6308 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6309
368a8dec
UD
63102008-03-08 Ulrich Drepper <drepper@redhat.com>
6311
b3278554
UD
6312 [BZ #5774]
6313 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 6314 of NAN(...) sequence.
b3278554
UD
6315 * stdlib/Makefile (tests): Add tst-strtod6.
6316 * stdlib/tst-strtod6.c: New file.
6317
6318 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6319
2127a186
UD
6320 [BZ #5762]
6321 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6322 putting offending option character in quotes. Clean up error
6323 messages.
6324 * po/be.po: Adjust msgstr in translation file.
6325 * po/bg.po: Likewise.
6326 * po/ca.po: Likewise.
6327 * po/cs.po: Likewise.
6328 * po/da.po: Likewise.
6329 * po/de.po: Likewise.
6330 * po/es.po: Likewise.
6331 * po/fr.po: Likewise.
6332 * po/hr.po: Likewise.
6333 * po/ko.po: Likewise.
6334 * po/nl.po: Likewise.
6335 * po/rw.po: Likewise.
6336 * po/sk.po: Likewise.
6337 * po/sv.po: Likewise.
6338 * po/tr.po: Likewise.
6339 * po/zh_CN.po: Likewise.
6340 * po/zh_TW.po: Likewise.
6341
725c0c87
UD
6342 [BZ #5760]
6343 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6344 Patch by Roland Bless <roland@bless.de>.
6345
368a8dec
UD
6346 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6347 .o file.
6348 * elf/Makefile (routines): Add dl-sysdep.
6349 (elide-routines.os): Likewise.
6350
78c2bf0e
UD
63512008-03-07 Ulrich Drepper <drepper@redhat.com>
6352
7c22c7ec
UD
6353 [BZ #5786]
6354 * elf/dl-sysdep.c: Undefine ROUND after use.
6355 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6356 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6357 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6358 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6359 to ...
6360 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6361 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6362 if necessary.
6363 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6364
93025f93
UD
6365 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6366 _dl_tls_get_addr_soft element.
6367 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6368 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6369 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6370 GLRO.
6371 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6372 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6373 of internal_function.
6374
72f10127
UD
6375 * stdlib/Makefile (aux): Add tens_in_limb.
6376 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6377 * stdlib/tens_in_limb.c: ...here. New file.
6378
443db178
UD
6379 [BZ #5778]
6380 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6381 __statfs_chown_restricted.
6382 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6383 for _PC_CHOWN_RESTRICTED.
6384 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6385 Implement __statfs_chown_restricted.
6386 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6387 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
6388 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6389 defined to zero.
443db178 6390
78c2bf0e
UD
6391 * sysdeps/x86_64/rtld-memset.c: New file.
6392
443db178 63932008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
6394
6395 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6396
6397 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6398 Barcelona machine. Make default fall through branch of
6399 __x86_64_preferred_memory_instruction check as the integer code path.
6400
64012007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6402
6403 * sysdeps/x86_64/cacheinfo.c
6404 (__x86_64_preferred_memory_instruction): New variable.
6405 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6406
6407 * sysdeps/x86_64/memset.S: Rewrite.
6408
dff37515
UD
64092008-03-04 Jakub Jelinek <jakub@redhat.com>
6410
6411 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6412 __obstack_printf_chk): New prototypes.
6413 (__vasprintf_chk, __vdprintf_chk,
6414 __obstack_vprintf_chk): Likewise.
6415 Add libc_hidden_proto.
6416 * libio/obprintf.c
6417 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6418 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6419 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6420 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6421 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6422 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6423 __obstack_vprintf_chk): New prototypes.
6424 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6425 obstack_vprintf): New inlines.
6426 * debug/dprintf_chk.c: New file.
6427 * debug/vdprintf_chk.c: New file.
6428 * debug/asprintf_chk.c: New file.
6429 * debug/vasprintf_chk.c: New file.
6430 * debug/obprintf_chk.c: New file.
6431 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6432 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6433 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6434 @@GLIBC_2.8.
6435 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6436 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6437 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6438 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6439 libc_hidden_proto.
6440 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6441 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6442 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6443 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6444 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6445 @@GLIBC_2.8.
6446 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6447 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6448 obstack_vprintf_chk.
6449 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6450 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6451 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6452 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6453 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6454 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6455
d835f136
UD
64562008-03-04 Ulrich Drepper <drepper@redhat.com>
6457
a4bb445a
UD
6458 [BZ #5779]
6459 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6460 Patch by Roy Marples <roy@marples.name>.
6461
c958a6a4
UD
6462 [BZ #5736]
6463 * malloc/malloc.c: Fix typo in comment.
6464
d835f136
UD
6465 [BZ #5627]
6466 * locale/iso-639.def: Add Shuswap.
6467
65b4743a
UD
64682008-02-25 Jakub Jelinek <jakub@redhat.com>
6469
6470 [BZ #5790]
6471 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6472 overwrite *h_errnop/*errnop values from getanswer_r in case of
6473 failure.
6474
3868fb6e
UD
64752008-03-03 Ulrich Drepper <drepper@redhat.com>
6476
27c377dd
UD
6477 [BZ #5818]
6478 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6479 (verify_persistent_db): Remove one unnecessary test and add a new one
6480 for bad configuration.
6481 (nscd_init): Improve error reported when persistent database cannot
6482 be reused.
6483 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6484 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6485 .suggested_module and .max_db_size and case config file says the
6486 values are zero.
6487 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6488
0f749099
UD
6489 [BZ #5854]
6490 * nis/ypclnt.c (yp_order): Fix handling of return value of
6491 do_ypcall_tr call.
6492 Patch by Jeff Moyer <jmoyer@redhat.com>.
6493
3868fb6e
UD
6494 * po/fr.po: Update from translation team.
6495
268dbf25
AJ
64962008-02-22 Andreas Jaeger <aj@suse.de>,
6497 Carlos O'Donell <carlos@systemhalted.org>
6498
6499 [BZ #5012]
6500 * FAQ.in: Describe why glibc needs to be compiled with
6501 optimization.
6502
73b82641
RM
65032008-02-19 Roland McGrath <roland@redhat.com>
6504
6505 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6506
c9136393
UD
65072008-02-15 Ulrich Drepper <drepper@redhat.com>
6508
6509 [BZ #5737]
6510 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6511 __USE_MISC is defined.
6512
2e3e9ff1
UD
65132008-02-10 Ulrich Drepper <drepper@redhat.com>
6514
6515 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6516 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6517 sys/timerfd.h.
6518 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6519 timerfd_gettime, timerfd_settime.
6520 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6521 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6522
85202a2b
RM
65232008-02-08 Roland McGrath <roland@redhat.com>
6524
6525 * elf/elf.h (NT_PPC_SPE): New macro.
6526
708ef8a4
RM
65272008-02-06 Roland McGrath <roland@redhat.com>
6528
6529 * Makerules ($(common-objpfx)sysd-rules):
6530 Depend on $(sysdep-makeconfigs).
6531
363a641b
RM
65322008-01-31 Roland McGrath <roland@redhat.com>
6533
67fbfa5c
RM
6534 [BZ #5442]
6535 * configure.in: Use -print-file-name if it yields a directory,
6536 for each of include and include-fixed.
6537 * configure: Regenerated.
6538
363a641b
RM
6539 * Makeconfig (sysd-rules-targets): New variable.
6540 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6541 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6542
0f0f9610
RM
65432008-01-30 Roland McGrath <roland@redhat.com>
6544
7bd00dbf
RM
6545 * manual/libc.texinfo: Update back-cover text.
6546
0f0f9610
RM
6547 * elf/elf.h (NT_386_TLS): New macro.
6548
16cd816f
RM
65492008-01-29 Roland McGrath <roland@redhat.com>
6550
6551 * Makeconfig (sysd-rules-patterns): New variable.
6552 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6553 (check-inhibit-asm): New canned sequence, replaces ...
6554 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6555 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6556 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6557 (CFLAGS-rtld): Variable removed.
6558
f641ffcc
RM
65592008-01-24 Roland McGrath <roland@redhat.com>
6560
6561 * configure.in: Let configure fragments set base_os.
6562 * configure: Regenerated.
6563
b7e26885
UD
65642008-01-22 Ulrich Drepper <drepper@redhat.com>
6565
6566 * po/ko.po: Update from translation team.
6567
b4b166af
UD
65682008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6569
6570 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6571
f66def9d
AJ
65722008-01-12 Andreas Jaeger <aj@suse.de>
6573
6574 [BZ #5040]
6575 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6576 Add EPOLLRDHUP.
6577
d3bc5e77
RM
65782008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6579
6580 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6581 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6582 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6583
4c533566
UD
65842007-10-23 Alexandre Oliva <aoliva@redhat.com>
6585
6586 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6587 * elf/dl-close.c (_dl_close): Check for it.
6588 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6589 (_dl_allocate_static_tls): Likewise.
6590 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6591 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6592 to it.
6593 * elf/tst-tls16.c: New file.
6594 * elf/tst-tlsmod16a.c: New file.
6595 * elf/tst-tlsmod16b.c: New file.
6596 * elf/Makefile: Add rules to build and run tst-tls16.
6597
a53d3f82
UD
65982008-01-16 Ulrich Drepper <drepper@redhat.com>
6599
a0f6c236
UD
6600 [BZ #5628]
6601 * bits/shm.h: Fix comment describing shmid_ds.
6602 * sysdeps/gnu/bits/shm.h: Likewise.
6603 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6604 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6605 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6606 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6607 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6608 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6609 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6610 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6611 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6612
a53d3f82
UD
6613 [BZ #5607]
6614 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6615 prototypes.
6616 * conform/data/limits.h-data: Adjust limits changed in v6 and add
6617 additional suffixes.
6618 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6619 Add optional functions mq_timedreceive and mq_timedsend.
6620 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6621 * conform/data/pthread.h-data: Fix prototype of
6622 pthread_condattr_setclock. pthread_sigmask is not required in v6.
6623 * conform/data/semaphore.h-data: Allow time.h definitions.
6624 * conform/data/signal.h-data: Likewise.
6625 * conform/data/stdio.h-data: getw and putw are not required in v6.
6626 * conform/data/stdlib.h-data: Change setstate prototype.
6627 * conform/data/string.h-data: Fix strerror_r prototype.
6628 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6629 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6630 Fix readlink prototype.
6631 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6632 in6addr_loopback.
6633 * inet/netinet/in.h: Cleanup namespace.
6634 * posix/regex.h: Likewise.
6635 * resolv/netdb.h: Likewise.
6636 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6637 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6638 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
6639 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6640 of names of in in6_addr.
6641 (default_precedence): Likewise.
6642 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6643 NULL definition.
a53d3f82 6644
ebca8f73
UD
66452008-01-15 Ulrich Drepper <drepper@redhat.com>
6646
fbe90cd5
UD
6647 * conform/data/fmtmsg.h-data: Add missing allows.
6648 * conform/data/ftw.h-data: Likewise.
6649 * conform/data/inttypes.h-data: Likewise.
6650 * conform/data/math.h-data: Likewise.
6651 * conform/data/signal.h-data: Likewise.
6652 * conform/data/net/if.h-data: Likewise.
6653 * conform/data/netinet/in.h-data: Likewise.
6654 * conform/data/sys/socket.h-data: Likewise.
6655
ebca8f73
UD
6656 [BZ #5614]
6657 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6658 (__strtok_r): Simplify.
6659 * string/tester.c (test_strtok_r): Add test case for futile search
6660 with single-character seach string.
6661
7c33ca8b
UD
66622008-01-12 Ulrich Drepper <drepper@redhat.com>
6663
6664 * po/ko.po: Update from translation team.
6665
b8cc0848
AJ
66662008-01-11 Andreas Jaeger <aj@suse.de>
6667
6668 [BZ #5600]
6669 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6670 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6671 kernel header.
6672
49029a66
UD
66732008-01-10 Ulrich Drepper <drepper@redhat.com>
6674
6675 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6676 native interface lookup in all the relevant places.
6677
99f05798
UD
66782008-01-10 Jakub Jelinek <jakub@redhat.com>
6679 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
6680
6681 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6682 field. Use sockaddr_in6 for source_addr.
6683 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6684 (match_prefix): Likewise.
6685 (get_label): Likewise.
6686 (get_precedence): Likewise.
6687 (rfc3484_sort): Change to use indirect access to results array.
6688 Adjust to use of sockaddr_in6. Replace service_order test with
6689 simple index comparison.
6690 (getaddrinfo): Define order array. Initialize it. Don't initialize
6691 service_order field. Adjust qsort_t calls. Access sorted result
6692 array indirectly through order array.
6693 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6694 * posix/tst-rfc3484-2.c: Likewise.
6695 * posix/tst-rfc3484-3.c: Likewise.
6696
b3443701
UD
66972008-01-09 Ulrich Drepper <drepper@redhat.com>
6698
f6bacb8e
UD
6699 [BZ #5541]
6700 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6701 pollfd structures.
6702 Patch by André Cruz.
6703
aa693c68
UD
6704 [BZ #5545]
6705 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6706 (clnt_spcreateerror): Likewise.
6707
b3443701
UD
6708 [BZ #5553]
6709 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6710 (public_mEMALIGn): Likewise.
6711 Patch mostly by Daniel Jacobowitz.
6712
148e12ed
UD
67132008-01-09 Jakub Jelinek <jakub@redhat.com>
6714
6715 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6716 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6717 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6718 * stdlib/tst-makecontext2.c: New test.
6719
78c2bf0e 67202008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
6721
6722 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6723 defined.
6724 (REINIT_PARAMS): Likewise. Undefine before end of file.
6725 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6726 transliteration hooks and REINIT_PARAMS afterwards.
6727 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6728 status.
6729 (REINIT_PARAMS): Define.
6730 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6731 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6732 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6733 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6734 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6735 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6736 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6737 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6738 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6739 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6740 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6741 * iconvdata/tst-iconv7.c: New test.
6742
71edcafa
UD
67432008-01-07 Ulrich Drepper <drepper@redhat.com>
6744
6745 * libio/stdio.h (vscanf): Fix definition for loser compilers.
6746
0fbfe2f7
JJ
67472008-01-05 Jakub Jelinek <jakub@redhat.com>
6748
6749 [BZ #5112]
6750 * nscd/connections.c (restart): Fix condition.
6751
8726a12e
UD
67522008-01-03 Jakub Jelinek <jakub@redhat.com>
6753
6754 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6755 __ctype_toupper_loc): Add __THROW.
6756
f4a1363e
UD
67572008-01-02 Ulrich Drepper <drepper@redhat.com>
6758
ad586879
UD
6759 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6760 recognition of interface family.
6761
f4a1363e
UD
6762 * posix/getconf.c: Update copyright year.
6763 * nss/getent.c: Likewise.
6764 * iconv/iconvconfig.c: Likewise.
6765 * iconv/iconv_prog.c: Likewise.
6766 * elf/ldconfig.c: Likewise.
6767 * catgets/gencat.c: Likewise.
6768 * csu/version.c: Likewise.
6769 * elf/ldd.bash.in: Likewise.
6770 * elf/sprof.c (print_version): Likewise.
6771 * locale/programs/locale.c: Likewise.
6772 * locale/programs/localedef.c: Likewise.
6773 * nscd/nscd.c (print_version): Likewise.
6774 * debug/xtrace.sh: Likewise.
6775 * malloc/memusage.sh: Likewise.
6776 * malloc/mtrace.pl: Likewise.
6777 * debug/catchsegv.sh: Likewise.
6778
0dc6c5e4
UD
67792007-12-26 Ulrich Drepper <drepper@redhat.com>
6780
6781 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6782 second lookup.
6783
80af8b82
UD
67842007-12-23 Ulrich Drepper <drepper@redhat.com>
6785
6786 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6787 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6788
4bcecfb7
RM
67892007-12-17 Roland McGrath <roland@redhat.com>
6790
6791 * inet/ether_line.c (ether_line): Remove unused variable.
6792
67932007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
6794
6795 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6796 and winp.
6797 * login/openpty.c (openpty): Likewise.
6798 * login/pty.h (openpty, forkpty): Likewise.
6799 * manual/terminal.texi (openpty, forkpty): Likewise.
6800
4cd4c5d6
UD
68012007-12-17 Ulrich Drepper <drepper@redhat.com>
6802
78c2bf0e 6803 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
6804 main_arena, count all bytes inside the mprotect_size range of the
6805 heap as uninitialized.
6806
68631c8e
UD
68072007-12-16 Ulrich Drepper <drepper@redhat.com>
6808
d9961b6a
UD
6809 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6810 executable stacks.
6811
68631c8e
UD
6812 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6813 mTRIm for all of them.
6814 (mTRIm): Additionally iterate over all free blocks and use madvise
6815 to free memory for all those blocks which contain at least one
6816 memory page.
be8c1500
UD
6817 * malloc/tst-trim1.c: New file.
6818 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
6819
6820 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6821
78b767a0
UD
68222007-12-14 Ulrich Drepper <drepper@redhat.com>
6823
6824 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6825 First cast argument to long
52386be7
UD
6826 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6827 Return long.
6828 (__vdso_clock_gettime): Likewise.
78b767a0
UD
6829 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6830 return long.
6831
bc3e1c12
UD
68322007-12-13 Ulrich Drepper <drepper@redhat.com>
6833
6834 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6835 * locale/nl_langinfo_l.c: Real implementation, copied from
6836 nl_langinfo.c.
6837 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6838
77751669
UD
68392007-12-01 Jim Meyering <meyering@redhat.com>
6840
6841 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6842 that would inhibit utf8-optimization of a regexp containing line-
6843 or buffer-anchors, e.g., `^', `$'.
6844
f63e5063
UD
68452007-12-12 Ulrich Drepper <drepper@redhat.com>
6846
6847 * time/bug-getdate1.c (do_test): Don't use century values which
6848 aren't valid on 32-bit systems.
6849
a78814a9
UD
68502007-12-12 Jakub Jelinek <jakub@redhat.com>
6851
6852 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6853 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6854 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6855 __strcat_g, __strncat_g): Add __asm__.
6856
68572007-12-12 Ulrich Drepper <drepper@redhat.com>
6858
6859 [BZ #5477]
6860 * io/fchmodat.c: Fix typo in stub_warning use.
6861 Patch by Petr Salinger.
6862
17edb30c
UD
68632007-12-11 Ulrich Drepper <drepper@redhat.com>
6864
58d11795
UD
6865 * iconvdata/hp-thai8.c: New file.
6866 * iconvdata/Makefile: Add rules for hp-thai8.c.
6867 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6868 * iconvdata/gconv-modules: Likewise.
6869
6870 [BZ #5464]
6871 * iconvdata/hp-greek8.c: New file.
6872 * iconvdata/Makefile: Add rules for hp-greek8.c.
6873 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6874 * iconvdata/gconv-modules: Likewise.
6875
6876 [BZ #5463]
6877 * iconvdata/hp-turkish8.c: New file.
6878 * iconvdata/Makefile: Add rules for hp-turkish8.c.
6879 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6880 * iconvdata/gconv-modules: Likewise.
6881
cbf5760e
UD
6882 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6883 (shrink_heap): ... this new function.
6884 (heap_trim): Call shrink_heap instead of grow_heap.
6885
17edb30c
UD
6886 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6887 case don't call alloc_perturb.
6888
ae18718f
UD
68892007-12-10 Ulrich Drepper <drepper@redhat.com>
6890
6891 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6892 possible.
6893 * sysdeps/unix/sysv/linux/kernel-features.h
6894 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6895 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6896
b4354cf4
UD
68972007-12-08 Ulrich Drepper <drepper@redhat.com>
6898
6899 [BZ #5424]
6900 * stdio-common/vfprintf.c: Do not overflow when adding to done.
6901 * stdio-common/Makefile (tests): Add bug22.
6902 * stdio-common/bug22.c: New file.
6903
6904 [BZ #5451]
6905 * time/getdate.c: Fix filling in default values.
6906 * time/bug-getdate1.c: New file.
6907 * time/Makefile: Add rules to build and run bug-getdate1.
6908
6909 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6910 * iconvdata/ebcdic-es.c: Likewise.
6911 * iconvdata/ebcdic-es-a.c: Likewise.
6912 * iconvdata/ebcdic-uk.c: Likewise.
6913 * iconvdata/iso8859-16.c: Likewise.
6914 * iconvdata/viscii.c: Likewise.
6915 * iconvdata/iso8859-9e.c: Likewise.
6916 * iconvdata/Makefile: Adjust appropriately.
6917
6918 [BZ #5428]
6919 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6920 __need_wint_t.
6921
26e21e75
UD
69222007-12-07 Ulrich Drepper <drepper@redhat.com>
6923
87520ccc
UD
6924 [BZ #5427]
6925 * iconvdata/hp-roman9.c: New file.
6926 * iconvdata/Makefile: Add rules for hp-roman9.c.
6927 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 6928 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
6929
6930 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6931 * iconvdata/Makefile: Adjust appropriately.
6932
26e21e75
UD
6933 [BZ #5441]
6934 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6935 structure, it's allocated with alloca.
6936 * stdio-common/Makefile (tests): Add bug21.
6937 * stdio-common/bug21.c: New file.
6938
69392007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6940
6941 [BZ #5452]
6942 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 6943 keyword for gcc's braced-groups.
26e21e75
UD
6944
69452007-12-07 Ulrich Drepper <drepper@redhat.com>
6946
6947 [BZ #5454]
6948 * inet/ether_line.c: Strip hostname of whitespaces.
6949 * inet/Makefile (tests): Add tst-ether_line.
6950 * inet/tst-ether_line.c: New file.
6951
9e80c123
UD
69522007-12-03 Ulrich Drepper <drepper@redhat.com>
6953
da0ff4ae
UD
6954 [BZ #5439]
6955 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6956
51bd20d9
UD
6957 [BZ #5435]
6958 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6959
d90d0256
UD
6960 * stdlib/tst-setcontext.c: Catch the case where the links gets
6961 messed up and we do not reach main again.
6962
9e80c123
UD
6963 * po/ca.po: Update from translation team.
6964
ae4287f8
UD
69652007-11-26 Ulrich Drepper <drepper@redhat.com>
6966
6701afc7 6967 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 6968 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 6969 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 6970
30294ea4
UD
69712007-11-25 Ulrich Drepper <drepper@redhat.com>
6972
6973 * nscd/nscd.h (MAX_STACK_USE): Define.
6974 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6975 (gc): Initialize stack_used based on allocation in prune_cache.
6976 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 6977 Clear array before use.
30294ea4
UD
6978
6979 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 6980 memory allocation failed.
e8667ddc
UD
6981 * nscd/hstcache.c (cache_addhst): Likewise.
6982 * nscd/grpcache.c (cache_addgr): Likewise.
6983 * nscd/servicescache.c (cache_addserv): Likewise.
6984 * nscd/pwdcache.c (cache_addpw): Likewise.
6985 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 6986
715db78b
UD
69872007-11-23 Ulrich Drepper <drepper@redhat.com>
6988
609bb071
UD
6989 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6990 and creat system calls.
6991
715db78b
UD
6992 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6993
ea2c47b6
UD
69942007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6995
6996 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6997 Add netiucv/iucv.h.
6998 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6999 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7000 protocol.
7001 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7002 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7003 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7004
dcdcf4b9
UD
70052007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
7006
37143323
UD
7007 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7008 strncat): Define as macros to avoid compile errors.
7009
dcdcf4b9
UD
7010 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
7011 creat entries.
7012
3a632674
UD
70132007-11-22 Ulrich Drepper <drepper@redhat.com>
7014
7ea8eb02
UD
7015 [BZ #5382]
7016 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7017 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 7018 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 7019 overflow it.
70d5b6ef 7020 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
7021
7022 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 7023 Return zero in case the thread library is not NPTL.
7ea8eb02 7024
5c3a3dba
UD
7025 [BZ #5375]
7026 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7027 initializing interface list.
7028
85883123
UD
7029 [BZ #5378]
7030 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7031 use result of nss_getgrgid_r if nothing was found. For other
7032 error return with a failure.
7033 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7034
3a632674
UD
7035 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7036 macro name.
7037
b73f9135
UD
70382007-11-19 Ulrich Drepper <drepper@redhat.com>
7039
ee72b971
UD
7040 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7041 (get_scope): For IPv4 scope, use scopes table.
7042 (fini): Free scopes table if necessary.
7043 (free_scopelist): New function.
7044 (scopecmp): New function.
7045 (gaiconf_init): Also handle scopev4 entries.
7046 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7047 * posix/tst-rfc3484-2.c (do_test): Likewise.
7048 * posix/gai.conf: Document scopev4 defaults.
7049 * posix/Makefile (tests): Add tst-rfc3484-3.
7050 * posix/tst-rfc3484-3.c: New file.
7051
f4a79765
UD
7052 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7053 Teredo tunnels.
b73f9135
UD
7054 * posix/gai.conf: Update for current default tables.
7055
429bd64d
UD
70562007-11-19 Ulrich Drepper <drepper@redhat.com>
7057
7058 * po/tr.po: Update from translation team.
7059
3c9af259
RM
70602007-11-18 Roland McGrath <roland@frob.com>
7061
76cf9889
RM
7062 * manual/arith.texi (Remainder Functions): Spelling fix.
7063 From Shaun Silk <genix@mysoul.com.au>.
7064
3c9af259
RM
7065 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7066
238346ab
UD
70672007-11-17 Ulrich Drepper <drepper@redhat.com>
7068
5879ad50
UD
7069 * po/zh_CN.po: Update from translation team.
7070
238346ab
UD
7071 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7072 Add sys/signalfd.h and sys/eventfd.h.
7073
b80b9c77
UD
70742007-11-15 Bruno Haible <bruno@clisp.org>
7075
7076 [BZ #5346]
7077 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7078 union.
7079 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7080 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7081 it needs only fixed stack space. Delay the initialization of
7082 msgid_len until it is needed.
7083
2da2501c
AJ
70842007-11-15 Andreas Jaeger <aj@suse.de>
7085
7086 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7087 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7088
68a6dcf5
UD
70892007-11-15 Ulrich Drepper <drepper@redhat.com>
7090
7091 * po/ko.po: Update from translation team.
7092
43850227
UD
70932007-11-14 Ulrich Drepper <drepper@redhat.com>
7094
1e2692c9
UD
7095 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7096 significantly. The device type is also part of the ifinfomsg data.
7097
84e6cc7c 7098 * po/sv.po: Update from translation team.
cbd52634 7099 * po/nl.po: Likewise.
84e6cc7c 7100
f9e2261b
UD
7101 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7102 to wake up in 24 hours.
7103
43850227
UD
7104 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7105
5742e960
UD
71062007-11-13 Ulrich Drepper <drepper@redhat.com>
7107
1a821d82
UD
7108 * po/cs.po: Update from translation team.
7109 * po/pl.po: Likewise.
7110
773e79b3
UD
7111 * include/ifaddrs.h: Remove in6ai_temporary.
7112 (struct in6addrinfo): Add index element.
7113 Declare __check_native.
7114 * inet/Makefile (aux): Add check_native.
7115 * sysdeps/unix/sysv/linux/check_native.c: New file.
7116 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7117 IFA_F_TEMPORARY. Pass back ifa_index.
7118 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7119 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7120 call __check_native if necessary.
7121 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7122 to sort addresses. Pass information about the results.
7123 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7124 of rfc3484_sort interface.
7125 * posix/tst-rfc3484-2.c: Likewise.
7126
e458144c
UD
7127 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7128 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7129 for _quicksort.
7130 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7131 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7132 on as third parameter to compare function and _quicksort.
7133 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7134 to the compare function.
7135 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7136 * Versions.def: Add GLIBC_2.8 for libc.
7137
bd63f380
UD
7138 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7139 * posix/tst-rfc3484-2.c: Likewise.
7140
5742e960
UD
7141 * include/kernel-features.h: Moved to...
7142 * sysdeps/mach/hurd/kernel-features.h: ...here.
7143
a6ac7fdb
RM
71442007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7145
7146 * sysdeps/i386/i586/memcpy_chk.S: New file.
7147 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7148 * sysdeps/i386/i586/memset_chk.S: Likewise.
7149
6f3914d5
UD
71502007-11-12 Ulrich Drepper <drepper@redhat.com>
7151
7152 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7153 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7154 list of interfaces. Also store prefix length.
7155 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7156 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7157 prefix if source and destination address are in the same subnet.
7158 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7159 Always look for matching record in in6ai list.
7160 Correct source_addr_len value for IPv6->IPv4 converted records.
7161
78cf5f6a
RM
71622007-11-11 Roland McGrath <roland@frob.com>
7163
7164 * include/kernel-features.h: New file.
7165
7f745396
UD
71662007-11-10 Ulrich Drepper <drepper@redhat.com>
7167
01e7fdbb
UD
7168 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7169 complications for 64-bit platforms.
7170
7f745396
UD
7171 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7172 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7173 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7174 open64_2.
7175 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7176 entries.
7177 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7178 * sysdeps/wordsize-64/alphasort.c: New file.
7179 * sysdeps/wordsize-64/alphasort64.c: New file.
7180 * sysdeps/wordsize-64/fseeko.c: New file.
7181 * sysdeps/wordsize-64/fseeko64.c: New file.
7182 * sysdeps/wordsize-64/ftello.c: New file.
7183 * sysdeps/wordsize-64/ftello64.c: New file.
7184 * sysdeps/wordsize-64/ftw.c: New file.
7185 * sysdeps/wordsize-64/ftw64.c: New file.
7186 * sysdeps/wordsize-64/iofgetpos.c: New file.
7187 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7188 * sysdeps/wordsize-64/iofopen.c: New file.
7189 * sysdeps/wordsize-64/iofopen64.c: New file.
7190 * sysdeps/wordsize-64/iofsetpos.c: New file.
7191 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7192 * sysdeps/wordsize-64/lockf.c: New file.
7193 * sysdeps/wordsize-64/lockf64.c: New file.
7194 * sysdeps/wordsize-64/mkostemp.c: New file.
7195 * sysdeps/wordsize-64/mkostemp64.c: New file.
7196 * sysdeps/wordsize-64/mkstemp.c: New file.
7197 * sysdeps/wordsize-64/mkstemp64.c: New file.
7198 * sysdeps/wordsize-64/scandir.c: New file.
7199 * sysdeps/wordsize-64/scandir64.c: New file.
7200 * sysdeps/wordsize-64/tmpfile.c: New file.
7201 * sysdeps/wordsize-64/tmpfile64.c: New file.
7202 * sysdeps/wordsize-64/versionsort.c: New file.
7203 * sysdeps/wordsize-64/versionsort64.c: New file.
7204 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7205 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7206 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7207 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7208 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7209 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7210 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7211 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7212 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7213 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7214 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7215 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7216
7217 * crypt/sha256-crypt.c: Fix a comment.
7218 * crypt/sha512-crypt.c: Likewise.
7219
f6ed654c
UD
72202007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7221
7222 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7223
f2a8406a
UD
72242007-11-07 Ulrich Drepper <drepper@redhat.com>
7225
7226 [BZ #5277]
7227 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7228 because output buffer is too small break, don't loop.
7229 * iconvdata/Makefile (tests): Add bug-iconv6.
7230 * iconvdata/bug-iconv6.c: New file.
7231
7fe4e0e8
UD
72322007-11-06 Ulrich Drepper <drepper@redhat.com>
7233
9ca230d6
UD
7234 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7235 with size_t type.
7236 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7237 size_t. Add casts where needed.
7238
7fe4e0e8
UD
7239 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7240 old headers, don't call avc_has_perm if we don't have the
7241 permission information.
7242
b92e3780
UD
72432007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7244
7245 * elf/rtld.c (dl_main): Use the page size to find the map start.
7246
ffb1b882
UD
72472007-11-05 Ulrich Drepper <drepper@redhat.com>
7248
94a749f6
UD
7249 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7250 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7251
ffb1b882
UD
7252 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7253 when the lookup call failed.
7254
7255 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7256 Add prune_cond and wakeup_time.
7257 (CACHE_PRUNE_INTERNAL): Define.
7258 Update declarations of prune_cache and setup_thread.
7259 * nscd/connections.c (dbs): Update initializers.
7260 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7261 (nscd_init): Default number of threads is now 4.
7262 (invalidate_cache): Take lock before calling prune_cache.
7263 (handle_request): If SELinux forbids the request, say so.
7264 (readylist_cond): Use static initializer.
7265 (nscd_run_prune): New function. Used only by pruning threads.
7266 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7267 here.
7268 (fd_ready): Update nscd_run reference.
7269 (start_threads): No need to initialize readylist_cond.
7270 Start pruning threads separately.
7271 * nscd/nscd_setup_thread.c: Change return value type to int and always
7272 return 0.
7273 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7274 to int and return nonzero value if we can use the TID address hack.
7275 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7276 the database is later than the new entry's timeout, update the
7277 wakeup time and wake the cleanup thread.
7278 (prune_cache): Return seconds the next entry in the database is still
7279 valid. Remove locking for pruning here.
7280 * nscd/nscd.conf: Document default number of threads.
7281
4c48ef06
UD
72822007-10-31 Ulrich Drepper <drepper@redhat.com>
7283
41ff2a49
UD
7284 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7285 stack is properly aligned for the target function.
7286 Correct unwind info.
ffb1b882 7287
4c48ef06
UD
7288 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7289 when using auditing libraries.
7290
384ca551
UD
72912007-10-29 Ulrich Drepper <drepper@redhat.com>
7292
31e2791c
UD
7293 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7294 _nss_dns_getnetbyaddr2_r.
7295 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7296 extra parameter to getanswer_r.
7297 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7298 _nss_dns_getnetbyaddr2_r.
7299
384ca551
UD
7300 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7301 gethstbynm3_r.
7302 * nscd/gethstbynm2_r.c: Remove.
7303 * nscd/gethstbynm3_r.c: New file.
7304 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7305 __gethostbyaddr_r.
7306 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7307 __gethostbyaddr_r compatibility wrapper.
7308 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7309 determining timeout of entry.
7310 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7311 __gethostbyaddr2_r.
7312 (addhstbyX): Pass reference to variable for TTL to lookup and
7313 cache_addhst.
7314 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7315 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7316 and __nss_next2. Remove __nss_services_lookup.
7317 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7318 Add compat wrapper.
7319 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7320 __nss_next2.
7321 * nss/getXXent_r.c: Likewise.
7322 * nss/getnssent_r.c: Likewise.
7323 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7324 does not exist in module, try the optional second name.
7325 (__nss_next2): New function.
7326 (__nss_next): Now wrapper around __nss_next2.
7327 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7328 Declare __nss_next2.
7329 Adjust definition of db_lookup_function type.
7330 * nss/service-lookup.c: Define NO_COMPAT.
7331 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7332 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7333 * inet/ether_ntoh.c: Likewise.
7334 * sunrpc/netname.c: Likewise.
7335 * sunrpc/publickey.c: Likewise.
7336 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7337 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7338 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7339 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7340 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7341
7342 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7343
5e37840c 7344 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 7345
88197030
UD
73462007-10-28 Ulrich Drepper <drepper@redhat.com>
7347
f160a450
UD
7348 [BZ #5204]
7349 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7350 * crypt/sha512c-test.c: Likewise.
7351
4c6b2202
UD
7352 [BZ #5225]
7353 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7354 to keep track of end of %[ format string element.
22c915ac
UD
7355 * stdio-common/Makefile (tests): Add bug20.
7356 * stdio-common/bug20.c: New file.
4c6b2202 7357
88197030
UD
7358 [BZ #5222]
7359 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7360 path elements in counting mode.
7361
05d69147
UD
73622007-10-27 Andreas Jaeger <aj@suse.de>
7363
94833f11
UD
7364 [BZ #5040]
7365 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7366
05d69147
UD
7367 [BZ #3112]
7368 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7369 (__cleanup): Free shared library when exiting.
7370 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7371 (__cleanup): Free shared library when exiting.
7372
e6b29af8
UD
73732006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7374
7375 [BZ #2549]
7376 * math/libm-test.inc (check_float_internal): Support
7377 denormalized return.
7378
ad3371fb
UD
73792007-10-23 Andreas Jaeger <aj@suse.de>
7380
7381 [BZ #5208]
7382 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7383 __LONG_LONG_PAIR to handle little endian byte order.
7384 Suggested by abhishekrai@google.com
7385
666aa020
UD
73862007-10-27 Ulrich Drepper <drepper@redhat.com>
7387
7388 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7389
8ad343b3
UD
73902007-10-26 Ulrich Drepper <drepper@redhat.com>
7391
7392 * nscd/cache.c (prune_cache): Move test for modified file outside
7393 of locking.
7394
9251c568
AJ
73952007-10-21 Andreas Jaeger <aj@suse.de>
7396
7397 * manual/texinfo.tex: Update to latest version.
7398
7399 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7400
7401 * manual/arith.texi (Status bit operations): Fix formatting.
7402
7403 * manual/errno.texi (Error Messages): Fix formatting.
7404
7405 * manual/sysinfo.texi (System Parameters): Fix formatting.
7406
7407 * manual/libc.texinfo: Update VERSION and UPDATED.
7408
260b2e06
RM
74092007-10-19 Roland McGrath <roland@redhat.com>
7410
7411 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7412
46ae8850
JJ
74132007-10-06 David S. Miller <davem@davemloft.net>
7414
7415 * configure.in: Add sparcv9v2 and sparc64v2.
7416 * scripts/config.sub: Likewise.
7417 * configure: Regenerate.
7418 * elf/elf.h (HWCAP_SPARC_N2): New.
7419 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7420 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7421 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7422 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7423 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7424 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7425 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7426
6fbfbd80
UD
74272007-10-18 Ulrich Drepper <drepper@redhat.com>
7428
7429 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7430 even if the poll result indicates there is data to read.
7431 Patch by Jeff Moyer <jmoyer@redhat.com>.
7432
39cfc9fa
RM
74332007-10-18 Roland McGrath <roland@redhat.com>
7434
7435 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 7436
39cfc9fa 74372007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
7438
7439 * version.h (VERSION): Set to 2.7.90.
7440
ed13ccf1
JJ
74412007-10-17 Jakub Jelinek <jakub@redhat.com>
7442
7443 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7444 weak_alias.
7445
ee9fd869
RM
74462007-10-17 Roland McGrath <roland@frob.com>
7447
7448 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7449 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7450
1aa5e4d7
UD
74512007-10-17 Ulrich Drepper <drepper@redhat.com>
7452
50c9fbbf 7453 * version.h (VERSION): Bump to 2.7.
777bc4bf 7454 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 7455
58423c7d
UD
7456 [BZ #5186]
7457 * time/tzset.c (__tz_convert): Don't force testing for a change of
7458 TZ if not called from localtime. But then also see whether the
7459 file changed, in case __use_tzfile is set.
7460
1aa5e4d7
UD
7461 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7462 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7463 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7464 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7465 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7466 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7467 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7468 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7469
fc4837e5
UD
74702007-10-17 Jakub Jelinek <jakub@redhat.com>
7471
7472 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7473 and admin selects to be able to replace the gai.conf file, lock
7474 data structures around the qsort call.
7475
62eaf7c8
UD
74762007-10-17 Ulrich Drepper <drepper@redhat.com>
7477
406f28db
UD
7478 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7479 new memset.
ac1cb5da 7480 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
7481 too high for the improvements. Implement bzero unconditionally for
7482 use in libc.
ac1cb5da
UD
7483
74842007-10-17 Ulrich Drepper <drepper@redhat.com>
7485 Jakub Jelinek <jakub@redhat.com>
7486
62eaf7c8
UD
7487 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7488 even when time_t is 32-bit.
7489 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7490 timezone data read by __tzfile_default. Ensure __tzname[0] is
7491 always set after the search.
7492
6a649d25
UD
74932007-10-16 Ulrich Drepper <drepper@redhat.com>
7494
7495 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7496 unreachable code on 32-bit machines.
7497
800d6f9e
UD
74982007-10-16 Jakub Jelinek <jakub@redhat.com>
7499
7500 [BZ #5184]
7501 * time/strftime_l.c: Include stdbool.h.
7502 (my_strftime): New wrapper, old function renamed to...
7503 (__strftime_internal): ... new function. Add tzset_called
7504 argument, pass it down to recursive calls, don't call tzset ()
7505 if already true, set to true after call to tzset ().
62eaf7c8 7506
69819d92
UD
75072007-10-16 Ulrich Drepper <drepper@redhat.com>
7508
7509 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7510 into account when copying TZ string.
7511
62eaf7c8
UD
75122007-10-16 Jakub Jelinek <jakub@redhat.com>
7513
7514 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7515 num_transition rather than num_transitions - 1.
7516
0308ad66
JJ
75172007-10-16 Jakub Jelinek <jakub@redhat.com>
7518
8d137b60
JJ
7519 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7520 PIC indirect jump.
7521
0308ad66
JJ
7522 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7523 a local label rather than HIDDEN_JUMPTARGET.
7524
e2b393bc
UD
75252007-10-15 Ulrich Drepper <drepper@redhat.com>
7526
7527 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7528 (init_cacheinfo): Initialize it.
7529 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7530 Always define bzero.
7531 Remove non-glibc code.
7532 * sysdeps/x86_64/bzero.S: Make an empty file.
7533
75342007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7535
7536 * sysdeps/x86_64/cacheinfo.c
7537 (__x86_64_preferred_memory_instruction): New.
7538 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7539
7540 * sysdeps/x86_64/memset.S: Rewrite.
7541
0fbfcb7b
RM
75422007-10-15 Roland McGrath <roland@redhat.com>
7543
7544 * po/libc.pot: Regenerated.
7545
2884dad4
UD
75462007-10-15 Ulrich Drepper <drepper@redhat.com>
7547
e2b393bc 7548 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
7549 pointers.
7550
2884dad4
UD
7551 [BZ #3425]
7552 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7553 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7554 address record to T_A/T_AAAA requests.
7555
89dc9d4c
UD
75562007-10-14 Ulrich Drepper <drepper@redhat.com>
7557
8d97ac13
UD
7558 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7559
1b6aa63f
UD
7560 * posix/glob.c: Add some branch prediction throughout.
7561
895a08c0
UD
7562 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7563 read from nscd.
7564
6f55ed88
UD
7565 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7566 service_order.
8d62c8ab
UD
7567 (rfc3484_sort): Make sure that even if qsort doesn't support
7568 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 7569 (getaddrinfo): Initialize service_order.
a94673e6
UD
7570 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7571 service_order field to sorting structure.
dfcf64ce 7572 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 7573
fa76dde2
UD
7574 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7575 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7576 __tzset_parse_tz and updating of daylight, timezone, tzname into
7577 update_vars.
7578 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7579 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7580 happens in __tz_compute.
7581 * time/tzfile.c (__tzfile_read): Also read TZ string.
7582 (find_transition): Fold into __tzfile_compute.
7583 (__tzfile_compute): For times beyond the last transition try to
7584 use the TZ string.
7585 * timezone/tst-timezone.c: Information in daylight and tzname does
7586 change for Asia/Tokyo timezone with more concrete information.
7587 Remove the test.
7588
7589 * include/stdio.h: Add libc_hidden_proto for ftello.
7590 * libio/ftello.c: Add libc_hidden_def.
7591
89dc9d4c
UD
7592 [BZ #1140]
7593 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7594 on the specified time and not the last entries in the file. Move
7595 code to determine tzname[] to...
7596 (find_transition): ...here. Add ugly guess for times before the
7597 first transition.
7598
f7140274
UD
75992007-10-13 Ulrich Drepper <drepper@redhat.com>
7600
cfca0aa3
UD
7601 [BZ #3195]
7602 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7603 no entry.
7604 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7605 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7606 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7607 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7608
43d3e6bd
UD
7609 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7610 read mechanism when there are no group members and avoid no-op
7611 read syscall in this case.
7612
f7140274
UD
7613 [BZ #3242]
7614 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7615 (__readall): If reading failed due to EAGAIN error wait a bit
7616 and possibly try again.
7617 (__readvall): Likewise.
7618
656f02ce
UD
76192007-10-13 Bruno Haible <bruno@clisp.org>
7620
7621 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7622 when we cannot recode the message.
7623
0ea49677
UD
76242007-10-13 Ulrich Drepper <drepper@redhat.com>
7625
7626 [BZ #4359]
7627 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
7628 write-only streams. For read/write streams, check whether we
7629 performed a read operation already.
7e39d802
UD
7630 * libio/Makefile (tests): Add tst-ext2.
7631 * libio/tst-ext2.c: New file.
0ea49677 7632
78a9b2dc
UD
76332007-10-12 Ulrich Drepper <drepper@redhat.com>
7634
fab1a490
UD
7635 * locale/programs/repertoire.c (repertoire_read): Always free
7636 memory for repertoire file name [Coverity CID 270].
7637
78a9b2dc
UD
7638 * elf/cache.c (save_aux_cache): Free memory allocated for
7639 temporary file name [Coverity CID 267].
7640
29d49a1a
JJ
76412007-10-12 Jakub Jelinek <jakub@redhat.com>
7642
7643 * misc/Makefile (headers): Add bits/error.h.
7644
d074d36d
UD
76452007-10-12 Ulrich Drepper <drepper@redhat.com>
7646
b7d1c5fa
UD
7647 * posix/fnmatch_loop.c: Take rule index returned as part of
7648 findidx return value into account when accessing weights.
7649 * posix/regcomp.c: Likewise.
7650 * posix/regexec.c: Likewise.
7651
d074d36d
UD
7652 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7653 (skip_to): Fix problems with parameter of elifdef/elifndef.
7654
26a51060
UD
76552007-10-11 Ulrich Drepper <drepper@redhat.com>
7656
7657 * iconv/gconv_simple.c: Add some branch prediction.
7658
6dd3748b
UD
76592007-10-12 Jakub Jelinek <jakub@redhat.com>
7660
7661 * locale/programs/ld-collate.c (collate_read): If ignore_content
7662 and nowtok is tok_define, eat any tok_eol tokens.
7663
d0b5557d
JJ
76642007-10-11 Jakub Jelinek <jakub@redhat.com>
7665
7666 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7667 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7668
7669 * inet/netinet/in.h: Don't include bits/socket.h.
7670 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7671 macro.
7672 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7673
3a054d7a
UD
76742007-10-10 Ulrich Drepper <drepper@redhat.com>
7675
7676 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7677 and tok_elifndef.
7678 * locale/programs/locfile-kw.gperf: Likewise.
7679 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7680
c06b7169
UD
76812007-10-10 Jakub Jelinek <jakub@redhat.com>
7682
7683 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7684 (__find_specwc): Change into __extern_always_inline function.
7685 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7686 (__parse_one_specmb): Remove ps argument.
7687 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7688 Adjust __find_specmb and __parse_one_specmb callers.
7689 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7690 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7691 Removed.
7692 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7693 caller.
7694
5a01ab7b
UD
76952007-10-09 Ulrich Drepper <drepper@redhat.com>
7696
7697 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7698 with some Pentium Ds.
7699
e3f8e049
UD
77002007-10-08 Ulrich Drepper <drepper@redhat.com>
7701
7702 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7703 __read not read.
7704 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7705 __write not write.
7706
a1a363d2
UD
77072007-10-07 Ulrich Drepper <drepper@redhat.com>
7708
a1160714
UD
7709 [BZ #181]
7710 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
7711 * locale/programs/ld-time.c (time_finish): Default for
7712 first_workday is Monday.
a1160714 7713
bb27a6eb
UD
7714 [BZ #2633]
7715 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7716
c8d48fae
UD
7717 [BZ #5103]
7718 * posix/glob.c (glob): Recognize patterns starting \/.
7719 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7720 (main): Add test for pattern starting \/.
7721
a1a363d2
UD
7722 * misc/error.h: Use __const instead of const.
7723 * misc/bits/error.h: Likewise.
7724
77252007-10-07 Andreas Jaeger <aj@suse.de>
7726
7727 * include/bits/error.h: New file.
7728
7729 * misc/bits/error.h (error_at_line): Fix prototype.
7730
71894681
UD
77312007-10-06 Ulrich Drepper <drepper@redhat.com>
7732
a6fa5328
UD
7733 [BZ #3924]
7734 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7735 more little bugs in creating the stack frame when pltexit has to
7736 be called.
7737
8c7661bc 7738 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 7739 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 7740
c039eedd
UD
7741 [BZ #4407]
7742 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7743 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7744 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7745 * math/libm-test.inc: Add test for this case.
7746
71894681
UD
7747 [BZ #5010]
7748 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7749 (svc_register): Initialize sc_mapped. Set to TRUE if call to
7750 map service succeeded.
7751 (svc_is_mapped): New function.
7752 (svc_unregister): Use it before trying to unmap service.
7753
34c2c092
UD
77542007-10-05 Ulrich Drepper <drepper@redhat.com>
7755
d10737e4
UD
7756 * timezone/zic.c: Update from tzcode2007h.
7757
7758 [BZ #5063]
7759 * timezone/africa: Update from tzdata2007h.
7760 * timezone/antarctica: Likewise.
7761 * timezone/asia: Likewise.
7762 * timezone/australasia: Likewise.
7763 * timezone/europe: Likewise.
7764 * timezone/leapseconds: Likewise.
7765 * timezone/northamerica: Likewise.
7766 * timezone/southamerica: Likewise.
7767 * timzeone/zone.tab: Likewise.
7768
0304f168
UD
7769 [BZ #5104]
7770 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7771
a83b5649
UD
7772 [BZ #5113]
7773 * string/bits/string2.h (__strdup): Cast parameters to calloc to
7774 avoid warning with -Wconversion.
7775 (__strndup): Likewise.
c039eedd 7776 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 7777
3e6ce4d7
UD
7778 [BZ #5112]
7779 * nscd/connections.c (restart): Don't resync if database is
7780 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7781
8e351378
UD
7782 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7783 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
7784
7785 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7786 evetnfd_read, eventfd_write.
7787 * sysdeps/unix/sysv/linux/eventfd.c: New file.
7788 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7789 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7790 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 7791 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
7792 eventfd_write for GLIBC_2.7.
7793
34c2c092
UD
7794 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7795 * sysdeps/unix/sysv/linux/signalfd.c: New file.
7796 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7797 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7798
6789aaaa 77992007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
7800
7801 * stdlib/msort.c: Include stdint.h.
7802 (struct msort_param): New type.
7803 (msort_with_tmp): Use struct msort_param pointer for unchanging
7804 parameters. Add optimized handling for several common sizes
7805 and indirect sorting mode.
7806 (qsort): Adjust msort_with_tmp callers. For big S use indirect
7807 sorting.
7808 Suggested by Belazougui Djamel .
7809
7810 * stdlib/Makefile (tests): Add tst-qsort2.
7811 * stdlib/tst-qsort2.c: New test.
7812
b80bfc8b
UD
78132007-10-04 Ulrich Drepper <drepper@redhat.com>
7814
174420d2
UD
7815 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7816 for dup2 in case another thread races with the current one. Retry
7817 in this case.
7818
b80bfc8b
UD
7819 * misc/error.h: Remove support for use outside of libc. We have to
7820 include <features.h> now. Include <bits/error.h> if possible.
7821 * misc/bits/error.h: New file.
7822
6789aaaa 78232007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 7824
e5dd2178
UD
7825 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7826 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7827 __extern_always_inline functions unconditionally, drop macros.
7828
ac97dec1
UD
7829 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7830 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7831 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7832
ee868c89
UD
7833 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7834 add __artificial__ attribute.
7835
80e069e0
UD
78362007-10-02 Ulrich Drepper <drepper@redhat.com>
7837
6e682cf5
UD
7838 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7839 backward to forward direction.
7840
90241a20
UD
7841 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7842
80e069e0
UD
7843 [BZ #645]
7844 * locale/programs/ld-collate.c (collate_finish): Compare against last
7845 used section which is known to have rules defined.
7846 (collate_read): After order_start, correctly record order of sections
7847 and queue sections up.
7848
035ef8d7
UD
78492007-10-01 Ulrich Drepper <drepper@redhat.com>
7850
95bddc0c
UD
7851 [BZ #5071]
7852 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7853 the same number of pages.
7854 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7855
c8caf089
UD
7856 * locale/programs/ld-collate.c (collate_read): After initial copy
7857 statement, continue in state 0.
7858
035ef8d7
UD
7859 * include/stdio_ext.h (__fsetlocking): Define as macro.
7860
592a95ee
UD
78612007-09-30 Ulrich Drepper <drepper@redhat.com>
7862
56ebeb41
UD
7863 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7864 of section order.
7865
592a95ee
UD
7866 * po/pt_BR.po: Fix typo.
7867
6c522e21
UD
78682007-09-29 Ulrich Drepper <drepper@redhat.com>
7869
8ad5c3cd
UD
7870 * iconvdata/Makefile (modules): Add ISO8859-9E.
7871 (distribute): Add iso8859-9e.c.
7872 (gen-8bit-gap-modules): Add iso8859-9e.
7873 * iconvdata/iso8859-9e.c: New file.
7874 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7875 * iconvdata/TESTS: Likewise.
7876 * iconvdata/tst-tables.sh: Likewise.
7877
7878 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7879
6c522e21
UD
7880 * locale/iso-639.def: Add several new entries.
7881
385b4cf4
UD
78822007-09-24 Jakub Jelinek <jakub@redhat.com>
7883
7884 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7885 void * pointers instead of struct link_map **.
7886 (_dl_scope_free): Change argument type to void *.
7887 * include/link.h (struct link_map): Change type of l_reldeps
7888 to struct link_map_reldeps, move l_reldepsact into that
7889 struct too.
7890 * elf/dl-deps.c: Include atomic.h.
7891 (_dl_map_object_deps): Only change l->l_initfini when it is
7892 fully populated, use _dl_scope_free for freeing it. Optimize
7893 removal of libs from reldeps by using l_reserved flag, when
7894 some removal is needed, allocate a new list instead of
7895 reallocating and free the old with _dl_scope_free. Adjust
7896 for l_reldeps and l_reldepsact changes.
7897 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
7898 searching in l_initfini and l_reldeps without holding dl_load_lock.
7899 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7900 l_reldepsact changes.
7901 * elf/dl-close.c (_dl_close_worker): Likewise.
7902 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7903
90bf831b
UD
79042007-09-28 Ulrich Drepper <drepper@redhat.com>
7905
7906 * iconvdata/Makefile (modules): Add KOI8-RU.
7907 (distribute): Add koi8-ru.c.
7908 (gen-8bit-gap-modules): Add koi8-ru.
7909 * iconvdata/koi8-ru.c: New file.
7910 * iconvdata/gconv-modules: Add entries for KOI8-RU.
7911 * iconvdata/TESTS: Likewise.
7912 * iconvdata/tst-tables.sh: Likewise.
7913
7914 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7915
d6cd6bf4
UD
79162007-09-26 Jakub Jelinek <jakub@redhat.com>
7917
7918 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7919 with __warning__/__error__ attributes.
7920 (__warnattr): Define.
7921 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7922 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7923 __warnattr.
7924 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7925 of __*_chk if compile time detectable overflow is found.
7926 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7927 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7928 with __warnattr.
7929 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7930 instead of __*_chk if compile time detectable overflow is found.
7931 (__gets_alias): Rename to...
7932 (__gets_warn): ... this. Add __warnattr.
7933 (gets): Call __gets_warn instead of __gets_alias.
7934 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7935 aliases with __warnattr.
7936 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7937 time detectable overflow is found.
7938 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7939 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7940 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7941 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7942 __getdomainname_chk_warn): New aliases with __warnattr.
7943 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7944 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7945 __*_chk_warn instead of __*_chk if compile time detectable overflow
7946 is found.
7947 (__getgroups_chk): Rename argument to __listlen from listlen.
7948 (__getwd_alias): Rename to...
7949 (__getwd_warn): ... this. Add __warnattr.
7950 (getwd): Call __getwd_warn instead of __getwd_alias.
7951 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7952 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7953 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7954 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7955 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7956 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7957 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7958 compile time detectable overflow is found.
7959 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7960 to use __*_chk or not.
7961 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7962 in comparisons which function should be called and in __*_chk*
7963 arguments. Call __*_chk_warn instead of __*_chk if compile time
7964 detectable overflow is found.
7965 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7966 __*_chk argument.
7967 * debug/tst-chk1.c (do_test): Add a few more tests.
7968
408cfca0
UD
79692007-09-24 Ulrich Drepper <drepper@redhat.com>
7970
7971 [BZ #5058]
7972 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7973 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7974 (_nl_unload_domain): Finalize conversions_lock.
7975 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7976 handling table of known conversions.
7977
e6eec9ce
JJ
79782007-09-24 Jakub Jelinek <jakub@redhat.com>
7979
7980 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7981 close_not_cancel_no_status instead of close.
7982
a532a41d
UD
79832007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7984
682268ef 7985 [BZ #5028]
408cfca0 7986 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
7987 nrules != 0 for multibyte chars.
7988
dec9ed9e
UD
79892007-09-23 Ulrich Drepper <drepper@redhat.com>
7990
91633816
UD
7991 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7992 Provide better error message in case the type is unknown.
7993
9cc198f6
UD
7994 [BZ #4963]
7995 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7996 * string/stratcliff.c: Make usable to test wide char functions.
7997 * wcsmbs/wcsatcliff.c: New file.
7998 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7999
27f3d446
UD
8000 [BZ #4972]
8001 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8002 (distribute): Add mac-centraleurope.c.
8003 (gen-8bit-gap-modules): Add mac-centraleurope.
8004 * iconvdata/mac-centraleurope.c: New file.
8005 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8006 * iconvdata/TESTS: Likewise.
8007 * iconvdata/tst-tables.sh: Likewise.
8008
dec9ed9e
UD
8009 [BZ #5043]
8010 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8011
0435403c
UD
80122007-09-21 Ulrich Drepper <drepper@redhat.com>
8013
8014 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8015 from __x86_64_core_cache_size_half.
8016 (init_cacheinfo): Compute shared cache size for AMD processors with
8017 shared L3 correctly.
8018 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8019 name change.
8020 Patch in large parts by Evandro Menezes.
8021
c3266dc0
UD
80222007-09-19 Ulrich Drepper <drepper@redhat.com>
8023
715899d1
UD
8024 * elf/dl-lookup.c (add_dependency): Handle failing memory
8025 allocation for dependency list. Remove unnecessary check.
8026
e1db0493
UD
8027 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8028 open/close when determining source addresses.
8029
c3266dc0
UD
8030 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8031 sha512-crypt, and sha512.
8032 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8033 (distribute): Add sha256.h and sha512.h.
8034 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8035 and call the appropriate code.
8036 * crypt/sha256-crypt.c: New file.
8037 * crypt/sha256.c: New file.
8038 * crypt/sha256.h: New file.
8039 * crypt/sha256c-test.c: New file.
8040 * crypt/sha256test.c: New file.
8041 * crypt/sha512-crypt.c: New file.
8042 * crypt/sha512.c: New file.
8043 * crypt/sha512.h: New file.
8044 * crypt/sha512c-test.c: New file.
8045 * crypt/sha512test.c: New file.
8046
ddf51ecb
JJ
80472007-09-19 Jakub Jelinek <jakub@redhat.com>
8048
8049 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8050 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8051 __syslog_chk.
8052
b90395e6
UD
80532007-09-18 Jakub Jelinek <jakub@redhat.com>
8054
76c0bea7
JJ
8055 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8056 %as in fscanf format strings.
8057
00680568
JJ
8058 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8059 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
8060 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8061 Likewise.
8062 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8063 Likewise.
00680568 8064
b90395e6
UD
8065 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8066 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8067 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8068 * elf/dl-sym.c (do_sym): Likewise.
8069 * include/link.h (struct link_map): Add l_serial field.
8070 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8071 * elf/dl-lookup.c (add_dependency): Add flags argument.
8072 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8073 flags, use THREAD_GSCOPE_RESET_FLAG before and
8074 THREAD_GSCOPE_SET_FLAG after
8075 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8076 Don't dereference map until it has been found on some list.
8077 If map->l_serial changed, return -1.
8078
874aa523
UD
80792007-09-17 Jakub Jelinek <jakub@redhat.com>
8080
8081 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8082 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8083 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8084 libc_hidden_proto.
8085 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8086 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8087 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8088 add libc_hidden_proto.
8089 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8090 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8091 conformance requested.
8092 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8093 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8094 conformance requested.
8095 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8096 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8097 conformance requested.
8098 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8099 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8100 ISO C99 or POSIX conformance requested.
8101 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8102 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8103 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8104 and __isoc99_vsscanf@@GLIBC_2.7.
8105 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8106 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8107 (tests): Add scanf14.
8108 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8109 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8110 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8111 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8112 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8113 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8114 from using internal headers.
8115 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8116 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8117 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8118 and __isoc99_vswscanf@@GLIBC_2.7.
8119 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8120 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8121 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8122 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8123 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8124 * stdio-common/isoc99_scanf.c: New file.
8125 * stdio-common/isoc99_vsscanf.c: New file.
8126 * stdio-common/isoc99_vscanf.c: New file.
8127 * stdio-common/isoc99_vfscanf.c: New file.
8128 * stdio-common/isoc99_fscanf.c: New file.
8129 * stdio-common/isoc99_sscanf.c: New file.
8130 * wcsmbs/isoc99_fwscanf.c: New file.
8131 * wcsmbs/isoc99_vswscanf.c: New file.
8132 * wcsmbs/isoc99_swscanf.c: New file.
8133 * wcsmbs/isoc99_wscanf.c: New file.
8134 * wcsmbs/isoc99_vwscanf.c: New file.
8135 * wcsmbs/isoc99_vfwscanf.c: New file.
8136 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8137 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8138 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8139 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8140 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8141 * stdio-common/scanf14.c: New test.
8142 * stdio-common/scanf15.c: New test.
8143 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8144 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8145 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8146 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8147 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8148 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8149 __nldbl___isoc99_scanf@@GLIBC_2.7,
8150 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8151 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8152 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8153 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8154 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8155 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8156 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8157 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8158 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8159 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8160 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8161 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8162 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8163 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8164 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8165 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8166 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8167 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8168 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8169 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8170 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8171 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8172 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8173 functions.
8174 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8175 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8176 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8177 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8178 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8179 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8180 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8181 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8182 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8183 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8184 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8185 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8186
8187 * stdio-common/Makefile (tests): Add scanf13.
8188 (scanf13-ENV): New.
8189 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8190 m modifier followed by l.
8191 (STRING_ARG): Add width argument.
8192 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8193 <case L_('C')>: Handle %mlc and %mC.
8194 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8195 arguments.
8196 * stdio-common/scanf13.c: New test.
8197
8198 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8199 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8200
883f7943
UD
82012007-09-18 Ulrich Drepper <drepper@redhat.com>
8202
8203 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 8204 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
8205 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8206 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8207 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8208 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8209 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8210 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8211 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8212 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8213 as cancellation points.
8214
3524efe0
UD
82152003-11-01 Daniel Jacobowitz <dan@debian.org>
8216
8217 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8218 parse more than three parts of the version number.
8219
267c54dc
UD
82202007-09-15 Ulrich Drepper <drepper@redhat.com>
8221
8222 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8223 modifier. Patch by Jakub Jelinek.
8224
5e17d6b7
UD
82252007-08-26 Jakub Jelinek <jakub@redhat.com>
8226
8227 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8228 call_fallocate in misc subdir.
8229 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8230 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8231 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8232 instead of __fallocate64.
8233 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8234
3a50811c
UD
82352007-09-15 Jakub Jelinek <jakub@redhat.com>
8236
8237 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8238 * rt/Makefile (headers): Add bits/mqueue2.h.
8239 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8240 optimizing with GCC and __va_arg_pack_len is defined.
8241 * rt/bits/mqueue2.h: New file.
8242 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8243 (mq_open): New strong_alias.
8244 (__mq_open_2): New function.
8245 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8246 (mq_open): New strong_alias.
8247 (__mq_open_2): New function.
8248 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8249 * Versions.def (librt): Add GLIBC_2.7 version.
8250 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8251 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8252
8253 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8254 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8255 is defined rather than when not C++.
8256 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8257 __openat64_alias): New redirects.
8258 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8259 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8260 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8261 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8262 functions instead of function-like macros.
8263
9bdfff60
UD
82642007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8265
8266 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8267 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8268 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8269
ab905672
UD
82702007-09-15 Mike Frysinger <vapier@gentoo.org>
8271
8272 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8273 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8274
9bd68902
RM
82752007-09-14 Mike Frysinger <vapier@gentoo.org>
8276
8277 * inet/tst-network.c: Increment ERRORS for failing tests.
8278
de1c3ebb
UD
82792007-09-07 Jakub Jelinek <jakub@redhat.com>
8280
8281 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8282 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8283 implement as __extern_always_inline function.
8284 (vsyslog): Define as __extern_always_inline function unconditionally.
8285 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8286 When __va_arg_pack is defined, implement as __extern_always_inline
8287 functions.
8288 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8289 __extern_always_inline functions unconditionally.
8290 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8291 bits/stdio2.h will be included.
8292 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8293 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8294 implement as __extern_always_inline functions.
8295 (vswprintf, vwprintf, vfwprintf): Define as
8296 __extern_always_inline functions unconditionally.
8297 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8298
82992007-09-03 Jakub Jelinek <jakub@redhat.com>
8300
8301 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8302 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8303 attribute.
8304 * include/features.h (__USE_EXTERN_INLINES): Define only when
8305 __extern_inline is defined.
8306 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8307 is defined instead of when not __cplusplus.
8308 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8309 is defined instead of when not __cplusplus.
8310 * socket/sys/socket.h: Include bits/socket2.h when
8311 __extern_always_inline is defined instead of when not __cplusplus.
8312 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8313 is defined instead of when not __cplusplus.
8314 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8315 is defined instead of when not __cplusplus.
8316 * string/string.h: Include bits/string3.h when __extern_always_inline
8317 is defined instead of when not __cplusplus.
8318 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8319 is defined instead of when not __cplusplus.
8320 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8321 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8322 is not defined.
8323 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8324 defined __extern_always_inline instead of !defined __cplusplus.
8325 * libio/bits/stdio-ldbl.h: Likewise.
8326 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8327 * misc/bits/syslog.h (syslog): Don't define for C++.
8328 (vsyslog): Use __extern_always_inline function for C++ instead of
8329 a macro.
8330 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8331 whenever that macro is defined.
8332 (vprintf): Don't provide the inline for C++.
8333 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8334 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8335 define the macros for C++.
8336 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8337 __extern_always_inline functions for C++.
8338 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8339 stat64, lstat64, fstat64, fstatat64): Don't define if not
8340 __USE_EXTERN_INLINES.
8341 * wcsmbs/bits/wchar2.h: Fix #error message.
8342 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8343 (vswprintf, vwprintf, vfwprintf): Define using
8344 __extern_always_inline functions for C++.
8345 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8346 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8347 strncpy, strcat, strncat): Define as __extern_always_inline
8348 functions instead of macros for C++.
8349 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8350 defined __extern_inline.
8351 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8352 to __extern_inline whenever that macro is defined.
8353 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8354 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8355 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8356 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8357 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8358 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8359 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8360 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8361 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8362 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8363 prototypes. Only provide __extern_inline routines if
8364 __USE_EXTERN_INLINES.
8365 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8366 tests.
8367 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8368 For now avoid some *printf tests in C++. Skip all testing
8369 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8370 is not.
8371 * debug/tst-chk4.cc: New file.
8372 * debug/tst-chk5.cc: New file.
8373 * debug/tst-chk6.cc: New file.
8374 * debug/tst-lfschk4.cc: New file.
8375 * debug/tst-lfschk5.cc: New file.
8376 * debug/tst-lfschk6.cc: New file.
8377 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8378 prototypes in C++.
8379 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8380 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8381 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8382
b53eef9c
UD
83832007-09-13 Ulrich Drepper <drepper@redhat.com>
8384
8385 * po/cs.po: Update from translation team.
8386
af385590
RM
83872007-09-11 Roland McGrath <roland@redhat.com>
8388
8389 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8390 compiling.
8391
af2f25a1
RM
83922007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8393
8394 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8395
94733ae0
RM
83962007-09-05 Roland McGrath <roland@redhat.com>
8397
8398 * manual/signal.texi (Signaling Another Process): Typo fix.
8399 From Karl Berry <karl@freefriends.org>.
8400
de4d8563
UD
84012007-08-29 Ulrich Drepper <drepper@redhat.com>
8402
8403 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8404 zero if not defined.
8405 (make_request): Recognize optimistic addresses and treat them like
8406 deprecated addresses.
8407 Reported by Neil Horman <nhorman@redhat.com>.
8408
0adfcc05
UD
84092007-08-28 Ulrich Drepper <drepper@redhat.com>
8410
f3c54060
UD
8411 * nscd/connections.c (send_ro_fd): Also transfer file size.
8412 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8413 file size don't call fstat.
8414
0adfcc05
UD
8415 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8416 ahead and map the file. This should always be correct and we can
8417 catch problems later.
8418
3586b2b6
UD
84192007-08-28 Jakub Jelinek <jakub@redhat.com>
8420
8421 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8422 prototypes.
8423 (__fread_alias, __fread_unlocked_alias): New aliases.
8424 (fread): New extern inline.
8425 (fread_unlocked): Likewise. Undef macro before definition of
8426 the inline function.
8427 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8428 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8429 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8430 and __fread_unlocked_chk@@GLIBC_2.7.
8431 * debug/fread_chk.c: New file.
8432 * debug/fread_u_chk.c: New file.
8433 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8434
3704aa0b
RM
84352007-08-27 Jakub Jelinek <jakub@redhat.com>
8436
8437 * sysdeps/unix/sysv/linux/syscalls.list
8438 (personality): Change caller to EXTRA.
8439
80e7d6a6
UD
84402007-08-25 Ulrich Drepper <drepper@redhat.com>
8441
278bfa00
UD
8442 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8443 to keep gcc quiet.
8444 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8445
a45d733c
UD
8446 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8447 NDEBUG is defined.
8448
5dfeae0e
UD
8449 * Makerules: Use -p option with mkdir.
8450
8f1fe057
UD
8451 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8452 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
8453 (_xdr_directory_obj): Likewise.
8454 (xdr_entry_obj): Likewise.
8455 (xdr_group_obj): Likewise.
8456 (xdr_link_obj): Likewise.
8457 (xdr_table_obj): Likewise.
8458 (_xdr_nis_result): Likewise.
8459 (_xdr_ns_request): Likewise.
8460 (_xdr_ib_request): Likewise.
8461 (_xdr_nis_taglist): Likewise.
8462 (xdr_cback_data): Likewise.
8f1fe057 8463 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
8464 (xdr_ypresp_maplist): Likewise.
8465
01339a67
UD
8466 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8467
3fa10468
UD
8468 * posix/regex_internal.h: Prevent some declarations and definitions
8469 to be seen when used in tests.
8470
ec1e04de
UD
8471 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8472 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8473
7a344d1d
UD
8474 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8475
f8f6ff5d
UD
8476 * config.make.in (datarootdir): Add to shut up configure.
8477
76fca9f1
UD
8478 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8479 associativity for fully-associative caches.
8480
80e7d6a6
UD
8481 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8482 requests. Fill on more associativity values for L2.
8483 Patch mostly by Evandro Menezes.
8484
cb5ba304
UD
84852007-08-24 Ulrich Drepper <drepper@redhat.com>
8486
d250df8c
UD
8487 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8488 (_libc_vdso_platform_setup): Avoid using exported variable by using
8489 alias.
8490
88f61aaf
UD
8491 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8492
cb5ba304 8493 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 8494 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
8495 defined.
8496
62e1b1f5
UD
84972007-08-23 Ulrich Drepper <drepper@redhat.com>
8498
44b2e581
UD
8499 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8500 align stack for call if pltexit is to be used.
8501
73e3ff07
UD
8502 [BZ #3924]
8503 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8504 align for function call in case pltexit has to be called later.
8505
62e1b1f5
UD
8506 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8507 implicit atomic operation when storing function pointer.
8508 (_dl_runtime_profile): Likewise.
8509
0008163a
UD
85102007-08-17 Jakub Jelinek <jakub@redhat.com>
8511
8512 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8513 NIS_NOTFOUND.
8514
55ea8790
UD
85152007-08-21 Ulrich Drepper <drepper@redhat.com>
8516
2e0e1a05
UD
8517 [BZ #4566]
8518 * string/strtok.c: Fix typo in comment.
8519
682e4437
UD
8520 [BZ #4582]
8521 * debug/segfault.c: Fix typos in comments.
8522
7d55c9eb
UD
8523 [BZ #4588]
8524 * stdio-common/tempnam.c: Fix comment, it is not checked that
8525 TMPDIR points to a writable directory.
8526
0f8f993c
UD
8527 [BZ #4726]
8528 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8529 memory allocated for the name server address.
8530
1465dd0f
UD
8531 [BZ #4946]
8532 * nscd/connections.c (handle_request): Using sendfile always
8533 requires that mmap is used for the database.
8534 Patch by Petr Baudis <pasky@suse.cz>.
8535
c44d3bdf
UD
8536 [BZ #4905]
8537 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8538 suddenly has two or more addresses, ignore it and remove the old
8539 entry.
8540
1ce7d80d
UD
8541 [BZ #4814]
8542 * resolv/res_hconf.c: Prepare for compiling outside libc.
8543 * nscd/res_hconf.c: New file.
8544 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8545 the new file.
8546 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8547 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8548
a30d41c1
UD
8549 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8550
45dc3ad7
UD
8551 [BZ #4925]
8552 * debug/pcprofiledump.c: Turn on internationalization by calling
8553 setlocale. Patch mostly by Benno Schulenberg.
8554
55ea8790
UD
8555 [BZ #4936]
8556 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8557 the state.
8558 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8559 * iconvdata/bug-iconv5.c: New file.
8560
0b82ff74
UD
85612007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8562
55ea8790 8563 [BZ #4896]
0b82ff74
UD
8564 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8565 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8566 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8567 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8568 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8569 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8570 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8571 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8572
ee16a55a
UD
85732007-08-21 Ulrich Drepper <drepper@redhat.com>
8574
8575 [BZ #4937]
8576 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8577 lookup loop. Suggested by John Reiser.
8578
b211fe0f
JJ
85792007-08-21 Jakub Jelinek <jakub@redhat.com>
8580
8581 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8582
fb84593c
UD
85832007-08-20 Ulrich Drepper <drepper@redhat.com>
8584
8585 * csu/libc-start.c: Don't handle VDSO_SETUP here.
8586 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8587 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8588 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
8589 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8590 to...
8591 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
8592
b83fb35c
UD
85932007-08-18 Ulrich Drepper <drepper@redhat.com>
8594
8595 * po/nl.po: Update from translation team.
8596
20806a70
AJ
85972007-08-16 Andreas Jaeger <aj@suse.de>
8598
8599 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 8600 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 8601
42282d57
JJ
86022007-08-17 Jakub Jelinek <jakub@redhat.com>
8603
8604 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8605
8a501135
JJ
86062007-08-16 Jakub Jelinek <jakub@redhat.com>
8607
cb84d1e4
JJ
8608 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8609 to check for undefined symbols.
8610
91ddd9c4
JJ
8611 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8612 If the syscall fails, set errno to the actual returned error number
8613 rather than EINVAL.
8614 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8615 arguments are incorrect, set errno to EINVAL, if the syscall
8616 fails, set errno to the actual returned error number.
8617
18915760
JJ
8618 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8619 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8620
8a501135
JJ
8621 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8622 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
8623 file.
8624 (ASI_PNF, ASI_BLK_P): Don't define.
8625 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8626 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8627 file.
8628 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8629 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8630 file.
8631
e4720b0e
JJ
86322007-08-15 Jakub Jelinek <jakub@redhat.com>
8633
8634 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8635 FE_UNDERFLOW on Niagara CPUs.
8636
8637 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8638 exceptions.
8639
702a9414
JJ
86402007-08-14 Jakub Jelinek <jakub@redhat.com>
8641
467d1345
JJ
8642 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8643 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8644 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8645 flush should be used or not inside of the function.
8646 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8647
8648 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8649 __thread_start): Use HIDDEN_JUMPTARGET.
8650 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8651 __thread_start): Likewise.
8652 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8653
702a9414
JJ
8654 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8655 Add libc_hidden_proto.
8656 (STRTOF): Add libc_hidden_proto.
8657 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8658 (strtold_l, wcstold_l): Use them as second argument for
8659 long_double_symbol.
8660
c6c8f0ec
UD
86612007-08-14 Ulrich Drepper <drepper@redhat.com>
8662
8663 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8664
5e88abf9
UD
86652007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8666
8667 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8668
fc4819b0
UD
86692007-08-14 Ulrich Drepper <drepper@redhat.com>
8670
8671 * po/bg.po: New file. From the translation team.
8672
22502ea2
UD
86732007-08-13 Jakub Jelinek <jakub@redhat.com>
8674
8675 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8676 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8677 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8678 when each feature was introduced.
8679
8680 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8681 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8682 (CHECK_HASH): New macro.
8683 (PREPARE_VERSION): Use it.
8684
8685 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8686 prototype if not __ASSUME_PSELECT.
8687 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8688 prototype if not __ASSUME_PPOLL.
8689
8690 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8691
8692 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8693 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8694 is defined.
8695
9c6f6953
UD
86962007-08-13 Ulrich Drepper <drepper@redhat.com>
8697
8698 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8699 (_libc_vdso_platform_setup): If vDSO is not available point
8700 __vdso_gettimeofday to the vsyscall.
8701 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8702 __vdso_gettimeofday instead of vsyscall.
8703
f8de5057
UD
87042007-08-13 Jakub Jelinek <jakub@redhat.com>
8705
8706 * nscd/servicescache.c: Include kernel-features.h.
8707 * nscd/gai.c: Likewise.
8708 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8709 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8710 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8711 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8712 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8713 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8714 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8715 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8716 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8717
3c87d79d
UD
87182007-08-12 Ulrich Drepper <drepper@redhat.com>
8719
ea37207a
UD
8720 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8721 and _dl_get_origin defines anymore.
8722
4eb375fe
UD
8723 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8724 Build fix for systems which might lack POSIX timer support.
8725
3c87d79d
UD
8726 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8727 (_libc_vdso_platform_setup): Mangle function pointers before storing
8728 them.
8729 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8730 Demangle vdso pointer before use.
8731 (INTERNAL_VSYSCALL): Likewise.
8732
8733 * elf/cache.c (primes): Mark as const.
8734 Noted by Roland McGrath.
8735
27d9ffda
UD
87362007-08-01 Andreas Jaeger <aj@suse.de>
8737 Jakub Jelinek <jakub@redhat.com>
8738
8739 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8740 (options): Add option.
8741 (parse_opt): Handle option.
8742 (manual_link): Adjust process_file caller. Call implicit_soname.
8743 (search_dir): Formatting. Use and populate auxiliary cache.
8744 (main): Load and save auxiliary cache.
8745 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
8746 stat64 from fstat64 to caller.
8747 (implicit_soname): New function.
8748 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8749 leave *soname as NULL.
8750 * elf/cache.c: Include libgen.h.
8751 (print_entry, print_cache, compare, save_cache, add_to_cache):
8752 Formatting and cleanups.
8753 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8754 aux_cache_file): New structures.
8755 (AUX_CACHEMAGIC): Define.
8756 (primes): New array.
8757 (aux_hash_size, aux_hash): New variables.
8758 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8759 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8760 load_aux_cache, save_aux_cache): New functions.
8761 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8762 (init_aux_cache, search_aux_cache, add_to_aux_cache,
8763 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8764 (process_file): Adjust prototype.
8765
8d944b0f
UD
87662007-08-12 Jakub Jelinek <jakub@redhat.com>
8767
8768 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8769 with __need_size_t.
8770
75fb247e
UD
87712007-08-12 Ulrich Drepper <drepper@redhat.com>
8772
fb86328a
UD
8773 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8774 r_found_version structure as second parameter.
8775 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8776 (_dl_vdso_vsym): Change type of second parameter accordingly.
8777 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8778 (_libc_vdso_platform_setup): Adjust.
974a1f0f 8779 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
8780 (_libc_vdso_platform_setup): Likewise.
8781
75fb247e
UD
8782 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8783 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8784 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8785 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8786 * csu/libc-start.c: Pretty printing.
8787 Use VDSO_SETUP if defined.
8788 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8789 and let generic code call into _libc_vdso_platform_setup.
8790 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8791 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8792 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8793 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8794 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8795 for GLIBC_PRIVATE.
8796 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8797 (sysdep_rountines): Add dl-vdso.
8798
8799 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8800 of routines.
8801
8802 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8803 attribute_hidden to __vdso_gettimeofday prototype.
8804
9229b83e
RM
88052007-08-12 Roland McGrath <roland@redhat.com>
8806
8807 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8808 From: Karl Berry <karl@freefriends.org>.
8809
4503061f
UD
88102007-08-11 Ulrich Drepper <drepper@redhat.com>
8811
8812 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8813 an atime update for the files we read.
8814
d7e23b02
UD
88152007-08-10 Ulrich Drepper <drepper@redhat.com>
8816
7cf89e95
UD
8817 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8818
9d169bb3 8819 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
8820 instead of mkstemp.
8821
8822 * misc/Makefile (routines): Add mkostemp and mkostemp64.
8823 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8824 * misc/mkostemp.c: New file.
8825 * misc/mkostemp64.c: New file.
8826 * stdlib/stdlib.h: Declare the new functions.
8827 * sysdeps/posix/tempname.c: Add new parameter which is added to
8828 the flags for open. Remove __GT_BIGFILE handling.
8829 * stdio-common/tempname.c: Likewise.
8830 * include/stdio.h: Adjust __gen_tempname prototype.
8831 Renumber __GT_* constants.
8832 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8833 * misc/mkdtemp.c: Likewise.
8834 * misc/mkstemp.c: Likewise.
8835 * misc/mkstemp64.c: Likewise.
8836 * misc/mktemp.c: Likewise.
8837 * stdio-common/tempnam.c: Likewise.
8838 * stdio-common/tmpfile.c: Likewise.
8839 * stdio-common/tmpfile64.c: Likewise.
8840 * stdio-common/tmpnam.c: Likewise.
8841 * stdio-common/tmpnam_r.c: Likewise.
8842
22532966
RM
88432007-08-10 Roland McGrath <roland@frob.com>
8844
8845 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8846 New macros.
8847 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8848 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8849
673876e6
UD
88502007-08-10 Ulrich Drepper <drepper@redhat.com>
8851
aa132749
UD
8852 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8853 possible.
8854 * nss/nss_files/files-alias.c (internal_setent): Likewise.
8855 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8856 * nss/nss_files/files-have_o_cloexec.c: New file.
8857
22532966 8858 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
8859 available.
8860
1e286653
JJ
88612007-08-10 Jakub Jelinek <jakub@redhat.com>
8862
8863 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8864 ___new_wcstold_l): New weak aliases.
8865 (strtold_l, wcstold_l): Use them as second argument for
8866 long_double_symbol.
8867
f07f72f3
UD
88682007-08-09 Ulrich Drepper <drepper@redhat.com>
8869
6479496a
UD
8870 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8871 register in test for error.
8872
c4adefbd
UD
8873 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8874 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8875
f07f72f3
UD
8876 * po/sv.po: Update from translation team.
8877
eef38c28
RM
88782007-08-06 Roland McGrath <roland@redhat.com>
8879
773e305e
RM
8880 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8881 Remove __strto*_l inlines.
8882 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8883 * stdlib/strtod.c: Add libc_hidden_def.
8884 * stdlib/strtod_l.c: Likewise.
8885 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8886 for __new_strtold and __new_wcstold.
8887 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8888 __STRTOF, STRTOF.
8889 * stdlib/strtol.c: Add libc_hidden_def.
8890 * stdlib/strtol_l.c: Likewise.
8891 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8892 strtoq.
8893
8894 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8895
8896 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8897 * scripts/data/localplt-generic.data: ... here.
8898 * elf/Makefile (check-data): Get generic file if no other.
8899 ($(objpfx)check-localplt.out): Make target unconditional.
8900
eef38c28
RM
8901 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8902 Use ElfW(Nhdr).
8903
742df3a4
UD
89042007-08-05 Ulrich Drepper <drepper@redhat.com>
8905
8906 * po/zh_CN.po: Updated translation from translation team.
8907
0470fa46
JJ
89082007-08-05 Jakub Jelinek <jakub@redhat.com>
8909
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8911 Don't use CGOTSETUP and CGOTRESTORE macros.
8912
b5075bdc
RM
89132007-08-04 Roland McGrath <roland@redhat.com>
8914
8915 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8916
9accc268
JJ
89172007-08-04 Jakub Jelinek <jakub@redhat.com>
8918
8919 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8920 __extension__ around the whole statement expression.
8921
220ae3ef
UD
89222007-08-04 Ulrich Drepper <drepper@redhat.com>
8923
c8ccd8e3
UD
8924 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8925 elements during initialization.
8926
220ae3ef
UD
8927 * po/pl.po: Updated translation from translation team.
8928 * po/tr.po: Likewise.
11960f7f 8929 * po/nl.po: Likewise.
220ae3ef 8930
2fb20667
UD
89312007-08-03 Ulrich Drepper <drepper@redhat.com>
8932
8933 * rt/aio.h: Add __nonnull attributes.
8934
ce31a3b1
UD
89352007-08-03 Jakub Jelinek <jakub@redhat.com>
8936
64f6281c
UD
8937 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8938 * stdlib/Makefile (tests): Add tst-strtod5.
8939 (tst-strtod5-ENV): New.
8940 * stdlib/tst-strtod5.c: New file.
8941
ce31a3b1
UD
8942 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8943 failed.
8944 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8945 on failure.
8946
8947 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8948 allocated.
8949
754980e4
JJ
89502007-08-03 Jakub Jelinek <jakub@redhat.com>
8951
8952 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8953 numbers.
8954
497af0cb
UD
89552007-08-02 Ulrich Drepper <drepper@redhat.com>
8956
cbf0489b
UD
8957 * io/Makefile (aux): Add have_o_cloexec.
8958 * include/fcntl.h: Declare __have_o_cloexec.
8959 * io/have_o_cloexec.c: New file.
8960 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8961 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8962 fcntl call if not necessary.
8963 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8964 of local variable.
8965
fa39685d
UD
8966 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8967 Avoid memset, add explicit initialization.
8968 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8969 to the end and change into zero-sized array.
8970 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
8971
8972 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8973 inline functions.
8974 * include/stdlib.h: Add __strto*_internal prototypes here.
8975 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8976 inline functions.
8977 * include/wchar.h: Add __wcsto*_internal prototypes.
8978 * sysdeps/generic/inttypes.h: No need to protect the declaration
8979 of the __strto*_internal and __wcsto*_internal members here.
8980
497af0cb
UD
8981 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8982
d17a8cf0
RM
89832007-08-02 Roland McGrath <roland@redhat.com>
8984
8985 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8986 $(inst_bindir)/getconf if possible.
8987
8988 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8989 (generated): Add it.
8990 ($(inst_libexecdir)/getconf): Use it.
8991
0abf17de
UD
89922007-08-01 Ulrich Drepper <drepper@redhat.com>
8993
8994 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8995 /proc is faster and sufficient. /sys is still needed for
8996 __get_nprocs_conf.
8997
5e0923ab
UD
89982007-08-01 Jakub Jelinek <jakub@redhat.com>
8999
9000 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9001 syscall as __fallocate64.
9002 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9003 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9004
1475e201
UD
90052007-07-30 Jakub Jelinek <jakub@redhat.com>
9006
9007 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9008 value.
9009
9010 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9011 if off_t is different rank from size_t.
9012
9013 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9014 uw_frame_state_for): Avoid type punning warnings.
9015 * sysdeps/generic/unwind-dw2-fde-glibc.c
9016 (_Unwind_IteratePhdrCallback): Likewise.
9017 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9018 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9019 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9020 pointers.
9021
e076bece
UD
90222007-07-31 Ulrich Drepper <drepper@redhat.com>
9023
9506149a
UD
9024 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9025 total processors using sysfs.
9026 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 9027
bbeaaa84
JJ
90282007-07-31 Jakub Jelinek <jakub@redhat.com>
9029
09881398
JJ
9030 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9031 syscall arguments count.
9032
bbeaaa84
JJ
9033 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9034
087ef75f
RM
90352007-07-30 Roland McGrath <roland@redhat.com>
9036
9037 * manual/libc.texinfo: Update copyrights, formatting magic, and
9038 @dircategory. From Karl Berry <karl@freefriends.org>.
9039
44f08a6e
UD
90402007-07-29 Ulrich Drepper <drepper@redhat.com>
9041
eafaae72
UD
9042 [BZ #4860]
9043 * io/Makefile (headers): Add bits/fcntl2.h.
9044
c5705565
UD
9045 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9046 using gcc builtin.
9047 (__CPU_EQUAL_S): Likewise.
9048
44f08a6e
UD
9049 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9050 (tests): Add tst-cpuset.
9051 * posix/sched_cpualloc.c: New file.
9052 * posix/sched_cpufree.c: New file.
9053 * posix/tst-cpuset.c: New file.
9054 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9055 GLIBC_2.7.
9056 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9057 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9058 macros. Define CPU_*_S macros.
9059
8f5e1400
UD
90602007-07-28 Ulrich Drepper <drepper@redhat.com>
9061
5b74caf6
UD
9062 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9063 entry.
9064
a26d01bb 9065 [BZ #4858]
8f5e1400
UD
9066 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9067 #.0g and value rounded to 1.0.
9068 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9069
085a4412
UD
90702007-07-26 Jakub Jelinek <jakub@redhat.com>
9071
cedb4109
UD
9072 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9073 for int_frac_digits and frac_digits.
9074
9075 * login/logout.c (logout): Avoid aliasing violation.
9076 * login/logwtmp.c (logwtmp): Likewise.
9077
9078 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9079
9d9febc7
UD
9080 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9081 to avoid warning.
9082 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9083 warning.
9084 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9085 warning.
9086 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9087 to avoid warnings.
9088
701666b7
UD
9089 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9090 void **.
9091 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9092
9093 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9094 char * to avoid warning.
9095 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9096
9097 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9098
9099 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9100 allocate_arrays): Cast second argument to charmap_find_symbol
9101 to char * to avoid warnings.
9102
9103 * locale/programs/repertoire.c (repertoire_new_char): Change
9104 from_nr, to_nr and cnt to unsigned long, adjust printf format
9105 string.
9106
9107 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9108 Cast second argument to new_element to char * to avoid warnings.
9109
9110 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9111
9112 * intl/gettextP.h (struct loaded_domain): Change plural to const
9113 struct expression *.
9114 * intl/plural-eval.c (plural_eval): Change first argument to
9115 const struct expression *.
9116 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9117 argument to const struct expression **.
9118 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9119 prototypes.
9120 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9121 in call to __gettext_free_exp.
9122
9123 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9124 unitialized wstring/wpattern var warnings.
9125
9126 * posix/runtests.c (struct a_test): Make data field const char *.
9127
9128 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9129 vars if not LDBL_MANT_DIG >= 106.
9130
9131 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9132
9133 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9134 __find_specmb to avoid warning.
9135
9136 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9137
9138 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9139 to avoid warnings.
9140
9141 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9142 initializer.
9143
9144 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9145 tv var when it will be actually used.
9146
9147 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9148 to avoid warnings.
9149
085a4412
UD
9150 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9151 char array resp. pointer.
9152 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9153 char array.
9154 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9155 to const unsigned char **.
9156 (ucs4_to_cns11643): Change second argument to unsigned char *.
9157 * iconvdata/euc-tw.c (BODY): Change endp type to
9158 const unsigned char *.
9159 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9160 to unsigned char *.
9161 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9162 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9163 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9164 types to unsigned char pointers/arrays instead of char.
9165 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9166 to unsigned char *.
9167 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9168 * iconvdata/jis0212.h: Include assert.h.
9169 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9170 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9171 of trying to handle that.
9172 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9173 shut up a warning.
9174 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9175 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9176 two dimensional const unsigned char arrays.
9177 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9178 Initialize endp to inptr to shut up a warning.
9179
fa69dc9c
UD
91802007-07-20 Jakub Jelinek <jakub@redhat.com>
9181
ae1ad762
UD
9182 [BZ #4772]
9183 * time/strptime_l.c (__strptime_internal): Silently ignore
9184 strftime modifiers and field width in recursive calls.
9185
fa69dc9c
UD
9186 * include/time.h (enum ptime_locale_status): Remove.
9187 (__strptime_internal): Remove decided and era_cnt arguments,
9188 add statep argument.
9189 * time/strptime_l.c (__strptime_internal): Remove decided
9190 and era_cnt arguments, add statep argument. Don't recompute
9191 any fields in recursive calls, only update caller's tm
9192 and state, if recursive call fails, don't change tm nor
9193 any state.
9194 (get_alt_number): Adjust.
9195 (recursive): Adjust caller.
9196 (strptime): Likewise.
9197 * time/strptime.c (strptime): Likewise.
9198
7b503bcc
UD
91992007-07-19 Jakub Jelinek <jakub@redhat.com>
9200
9201 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9202 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9203 if from and to charsets are the same.
9204 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9205 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9206 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9207
92082007-07-17 Jakub Jelinek <jakub@redhat.com>
9209
9210 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9211 Don't define wint_t when __need_mbstate_t unless it
9212 is necessary.
9213 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9214 in the typedef if possible.
9215 * wctype/wctype.h (wint_t): Define by including
9216 wchar.h with __need_wint_t instead of including stddef.h
9217 with __need_wint_t and as fallback definining it ourselves.
9218 * iconv/gconv.h (__need_wint_t): Define before including
9219 wchar.h.
9220 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9221 or _GLIBCPP_USE_WCHAR_T.
9222 (__need_wchar_t): Don't define
9223 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9224 (__need_wint_t): Don't define before including stddef.h,
9225 define before including wchar.h only if _LIBC or
9226 _GLIBCPP_USE_WCHAR_T.
9227 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9228 * sysdeps/mach/hurd/_G_config.h: Likewise.
9229 * sysdeps/generic/_G_config.h: Likewise.
9230 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9231 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9232 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9233 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9234
a95a608f
UD
92352007-07-28 Ulrich Drepper <drepper@redhat.com>
9236
9237 * sysdeps/posix/posix_fallocate64.c: Undefine
9238 __posix_fallocate64_l64 before alias handling.
9239 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9240 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9241 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9242 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9243
9244 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9245
92462007-07-23 Jakub Jelinek <jakub@redhat.com>
9247
9248 * locale/programs/ld-collate.c (atwc): New variable.
9249 (add_to_tablewc): New toplevel function, moved from collate_output.
9250 (collate_output): Remove add_to_tablewc nested function.
9251
9252 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9253 (name_insert): New function.
9254 (write_output): Remove hash_table and hash_size vars and name_insert
9255 nested function.
9256
80d4c3b0
RM
92572007-07-24 Roland McGrath <roland@redhat.com>
9258
9259 * Makerules (install-others-programs-nosubdir): New target.
9260 (install-no-libc.a-nosubdir): Depend on it.
9261
9262 * iconv/Makefile (install-others-programs): Set this instead of
9263 install-others.
9264 * login/Makefile (install-others-programs): Likewise.
9265 * posix/Makefile (install-others-programs): Likewise.
9266
9267 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9268 dependencies.
9269
c1bf9f14
UD
92702007-07-23 Ulrich Drepper <drepper@redhat.com>
9271
9272 * io/Makefile (tests): Add tst-posix_fallocate.
9273 * io/tst-posix_fallocate.c: New file.
9274
9275 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9276 __ASSUME_FALLOCATE.
9277
2320270c
RM
92782007-07-22 Roland McGrath <roland@frob.com>
9279
3dadfa7e
RM
9280 * hurd/getdport.c: Add missing copyright year update.
9281
2320270c
RM
9282 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9283 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9284
cc783763
UD
92852007-07-22 Ulrich Drepper <drepper@redhat.com>
9286
c942388d
UD
9287 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9288
cc783763
UD
9289 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9290 O_CLOEXEC is needed.
9291 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9292 Avoid additional fcntl to set O_CLOEXEC if not needed.
9293 * nis/nss_compat/compat-initgroups.c: Likewise.
9294 * nis/nss_compat/compat-pwd.c: Likewise.
9295 * nis/nss_compat/compat-spwd.c: Likewise.
9296
610903b0
RM
92972007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9298
3dadfa7e 9299 [BZ #3665]
5c3d7832
RM
9300 * manual/errno.texi: Change ECANCELED value to 119.
9301
3dadfa7e 9302 [BZ #4610]
610903b0
RM
9303 * mach/lock-intern.h: Include <sys/cdefs.h>.
9304
3dadfa7e 9305 [BZ #4178]
610903b0
RM
9306 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9307 reading A.
9308
3dadfa7e
RM
9309 [BZ #4126]
9310 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9311 to __sigsuspend.
610903b0
RM
9312
9313 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9314
93152006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9316
9317 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9318 `__ASSEMBLER__'.
9319 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9320
acf79996
UD
93212007-07-21 Ulrich Drepper <drepper@redhat.com>
9322
dde0763a
UD
9323 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9324 descriptor received from nscd.
9325
acf79996
UD
9326 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9327
9328 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9329 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9330 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9331 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9332 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9333 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9334
00d26929
JJ
93352007-07-20 Jakub Jelinek <jakub@redhat.com>
9336
403445d7
JJ
9337 [BZ #4816]
9338 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9339
00d26929
JJ
9340 [BZ #4813]
9341 * login/forkpty.c (forkpty): Close master and slave fds on
9342 fork failure. Patch by
9343 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9344
087722b8
UD
93452007-07-18 Jakub Jelinek <jakub@redhat.com>
9346
9347 * include/features.h (__USE_ISOC95): New define.
9348 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9349 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9350 for -std=iso9899:199409.
9351 * CONFORMANCE: Remove comments about unsupported AMD1.
9352
b042b023
UD
93532007-07-17 Jakub Jelinek <jakub@redhat.com>
9354
9355 * sysdeps/ia64/sched_cpucount.c: New file.
9356 * sysdeps/powerpc/sched_cpucount.c: New file.
9357
8381e467
UD
9358 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9359 __BEGIN_DECLS/__END_DECLS around the prototype.
9360 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9361 pointer to const cpu_set_t.
9362
50e16f85
UD
9363 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9364 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9365 __need_size_t and include stddef.h.
9366 * sysvipc/sys/msg.h: Likewise.
9367 * posix/sched.h: Likewise.
9368 * hurd/hurd/signal.h (__need_size_t): Define.
9369
9370 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9371 neither does signal.h in pedantic ISO C namespaces. stdio.h
9372 no longer defines wint_t or wchar_t.
9373
b257c726
UD
9374 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9375 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9376 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9377 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9378 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9379 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9380 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9381 * debug/printf_chk.c (__printf_chk): Likewise.
9382 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9383 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9384
9385 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9386 Define.
9387
d5078b9f
UD
9388 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9389 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9390
1c3e748e
UD
93912007-07-16 Jakub Jelinek <jakub@redhat.com>
9392
9393 [BZ #4792]
9394 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9395 * malloc/malloc.h (realloc): Likewise.
9396
4e425301
UD
9397 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9398 if one of proc_file_chain streams has that fileno.
9399 * stdio-common/Makefile (tests): Add tst-popen2.
9400 * stdio-common/tst-popen2.c: New test.
9401
2e2efe65
RM
94022007-07-14 Jakub Jelinek <jakub@redhat.com>
9403
9404 * elf/ldconfig.c: Allow GPLv2 or any later version.
9405 * elf/readlib.c: Likewise.
9406 * elf/chroot_canon.c: Likewise.
9407 * elf/cache.c: Likewise.
9408 * nscd/mem.c: Likewise.
9409 * nscd/getpwuid_r.c: Likewise.
9410 * nscd/grpcache.c: Likewise.
9411 * nscd/aicache.c: Likewise.
9412 * nscd/getsrvbynm_r.c: Likewise.
9413 * nscd/nscd.c: Likewise.
9414 * nscd/servicescache.c: Likewise.
9415 * nscd/getsrvbypt_r.c: Likewise.
9416 * nscd/initgrcache.c: Likewise.
9417 * nscd/gethstbyad_r.c: Likewise.
9418 * nscd/gethstbynm2_r.c: Likewise.
9419 * nscd/getgrnam_r.c: Likewise.
9420 * nscd/nscd_setup_thread.c: Likewise.
9421 * nscd/getpwnam_r.c: Likewise.
9422 * nscd/gai.c: Likewise.
9423 * nscd/connections.c: Likewise.
9424 * nscd/dbg_log.c: Likewise.
9425 * nscd/cache.c: Likewise.
9426 * nscd/hstcache.c: Likewise.
9427 * nscd/nscd_conf.c: Likewise.
9428 * nscd/getgrgid_r.c: Likewise.
9429 * nscd/pwdcache.c: Likewise.
9430 * catgets/gencat.c: Likewise.
9431 * locale/programs/linereader.h: Likewise.
9432 * locale/programs/locarchive.c: Likewise.
9433 * locale/programs/ld-paper.c: Likewise.
9434 * locale/programs/locfile-kw.h: Likewise.
9435 * locale/programs/ld-address.c: Likewise.
9436 * locale/programs/xmalloc.c: Likewise.
9437 * locale/programs/ld-time.c: Likewise.
9438 * locale/programs/localedef.c: Likewise.
9439 * locale/programs/simple-hash.c: Likewise.
9440 * locale/programs/xstrdup.c: Likewise.
9441 * locale/programs/ld-numeric.c: Likewise.
9442 * locale/programs/locfile-kw.gperf: Likewise.
9443 * locale/programs/ld-collate.c: Likewise.
9444 * locale/programs/charmap-kw.gperf: Likewise.
9445 * locale/programs/charmap.h: Likewise.
9446 * locale/programs/charmap-kw.h: Likewise.
9447 * locale/programs/config.h: Likewise.
9448 * locale/programs/locfile.c: Likewise.
9449 * locale/programs/ld-ctype.c: Likewise.
9450 * locale/programs/charmap.c: Likewise.
9451 * locale/programs/ld-messages.c: Likewise.
9452 * locale/programs/repertoire.h: Likewise.
9453 * locale/programs/locale.c: Likewise.
9454 * locale/programs/ld-name.c: Likewise.
9455 * locale/programs/linereader.c: Likewise.
9456 * locale/programs/locfile.h: Likewise.
9457 * locale/programs/3level.h: Likewise.
9458 * locale/programs/ld-monetary.c: Likewise.
9459 * locale/programs/ld-measurement.c: Likewise.
9460 * locale/programs/charmap-dir.c: Likewise.
9461 * locale/programs/ld-identification.c: Likewise.
9462 * locale/programs/localedef.h: Likewise.
9463 * locale/programs/charmap-dir.h: Likewise.
9464 * locale/programs/repertoire.c: Likewise.
9465 * locale/programs/simple-hash.h: Likewise.
9466 * locale/programs/ld-telephone.c: Likewise.
9467 * locale/programs/locale-spec.c: Likewise.
9468 * locale/programs/locfile-token.h: Likewise.
9469 * posix/getconf.c: Likewise.
9470 * iconv/dummy-repertoire.c: Likewise.
9471 * iconv/iconv_charmap.c: Likewise.
9472 * iconv/iconvconfig.c: Likewise.
9473 * iconv/iconv_prog.c: Likewise.
9474 * malloc/memusagestat.c: Likewise.
9475 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9476
84c23a3d
RM
94772007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9478
9479 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9480 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9481 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9482 check for the first argument.
9483
1c298d08
UD
94842007-07-12 Jakub Jelinek <jakub@redhat.com>
9485
9486 [BZ #4775]
9487 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9488 (__tgmath_real_type): Fix if expr is const int or other const
9489 qualified integral type.
9490 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9491 expressions and handle const qualified arguments.
9492 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9493 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9494 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9495 statement expressions.
9496 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9497 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9498 (__TGMATH_UNARY_IMAG): Define.
9499 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9500 * math/Makefile (tests): Add test-tgmath2.
9501 (CFLAGS-test-tgmath2.c): Add.
9502 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9503 count_cfloat, count_cldouble): New variables.
9504 (NCCALLS): Define.
9505 (main): Check number of complex calls as well.
9506 (F(compile_test)): Add complex tests and tests with const qualified
9507 arguments.
9508 (y, z, ccount): Define.
9509 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9510 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9511 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9512 F(cproj)): New functions.
9513 * math/test-tgmath2.c: New test.
9514
95152007-07-11 Jakub Jelinek <jakub@redhat.com>
9516
9517 [BZ #4776]
9518 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9519 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9520 instead output ".".
9521 * dlfcn/Makefile (distribute): Add glreflib3.c.
9522 (module-names): Add glreflib3.
9523 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9524 glreflib1.so.
9525 (LDFLAGS_glreflib3.so): New.
9526 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9527 glreflib1.so.
9528 * dlfcn/glreflib3.c: New file.
9529
9530 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9531 returned -1, return NULL.
9532 * intl/explodename.c (_nl_explode_name): Return -1 if
9533 _nl_normalize_codeset failed.
9534
a88f47a7
UD
95352007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9536
9537 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9538 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9539 and avoid branch misspredicts for > 31 bytes memset case.
9540 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9541 Remove toc ref to __cache_line_size.
9542
9543 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9544 to get ISA-V2.0 branch hints.
9545 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9546 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9547 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9548 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9549 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9550 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9551 Remove toc ref to __cache_line_size.
9552
9553 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9554 Include math_ldbl_opt.h.
9555
f98c2d06
UD
95562007-07-10 Ulrich Drepper <drepper@redhat.com>
9557
9558 [BZ #4773]
9559 * time/strptime_l.c (__strptime_internal): Implement greedy
9560 matching of weekday and month names.
9561
cec5991f
RM
95622007-07-09 Roland McGrath <roland@redhat.com>
9563
9564 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9565 (ELF_NOTE_ABI): Use it.
9566 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9567
8c1dcd26
UD
95682007-07-09 Ulrich Drepper <drepper@redhat.com>
9569
9570 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9571 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9572
c2c7bd3f
UD
95732007-07-07 Ulrich Drepper <drepper@redhat.com>
9574
9575 [BZ #4745]
0923a2c8
UD
9576 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9577 in loop to look for conversion specifier to avoid testing of
9578 wrong errno value.
9579 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 9580 * stdio-common/bug18.c: New file.
0923a2c8
UD
9581 * stdio-common/bug18a.c: New file.
9582 * stdio-common/bug19.c: New file.
9583 * stdio-common/bug19a.c: New file.
c2c7bd3f 9584
4facf4af
RM
95852007-07-05 Mike Frysinger <vapier@gentoo.org>
9586
9587 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9588 running awk script.
9589
1311e86e
UD
95902007-07-01 Jakub Jelinek <jakub@redhat.com>
9591
9592 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9593 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
9594 Return NULL if mmap failed instead of asserting it does not.
9595 (calloc): Check for integer overflow.
9596
9597 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9598 than LONG_MAX / 10.
9599
57c9179c
UD
96002007-07-03 Jakub Jelinek <jakub@redhat.com>
9601
9602 [BZ #4702]
9603 * nis/nss-default.c: Include errno.h.
9604 (init): Preserve errno.
9605
d0b283a8
UD
96062007-07-02 Ulrich Drepper <drepper@redhat.com>
9607
9608 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9609
34e0bbaf
UD
96102007-06-30 Ulrich Drepper <drepper@redhat.com>
9611
9612 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9613
96142007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9615
9616 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9617
34e0bbaf 96182007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
9619
9620 * sysdeps/s390/dl-procinfo.c: New file.
9621 * sysdeps/s390/dl-procinfo.h: New file.
9622 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9623
0e508a6e
UD
96242007-06-29 Jakub Jelinek <jakub@redhat.com>
9625
9626 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9627 in PT_NOTE segments with multiple notes.
9628 * elf/readelflib.c (process_elf_file): Likewise.
9629
e22c61fb
UD
96302007-06-22 Ulrich Drepper <drepper@redhat.com>
9631
9632 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9633 ISO C compliant.
9634
e4eb675d
UD
96352007-06-19 Ulrich Drepper <drepper@redhat.com>
9636
9637 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9638
96392007-06-13 Jakub Jelinek <jakub@redhat.com>
9640
9641 * include/link.h: Don't include rtld-lowlevel.h.
9642 (struct link_map): Remove l_scope_lock.
9643 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9644 (_dl_scope_free_list): New field (variable) in _rtld_global.
9645 (DL_LOOKUP_SCOPE_LOCK): Remove.
9646 (_dl_scope_free): New prototype.
9647 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9648 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9649 (_dl_profile_fixup): Likewise.
9650 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9651 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9652 THREAD_GSCOPE_RESET_FLAG around it.
9653 * elf/dl-close.c (_dl_close_worker): Don't use
9654 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9655 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9656 scopes were queued or if l_scope_mem has been abandoned.
9657 * elf/dl-open.c (_dl_scope_free): New function.
9658 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9659 * elf/dl-support.c (_dl_scope_free_list): New variable.
9660 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9661 Remove DL_LOOKUP_SCOPE_LOCK handling.
9662 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9663 handling.
9664 * elf/dl-object.c (_dl_new_object): Don't use
9665 __rtld_mrlock_initialize.
9666
9be09e06
UD
96672007-06-19 Ulrich Drepper <drepper@redhat.com>
9668
9669 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9670 to fill in holes
9671 (rtld_global_ro): Likewise.
9672
96732007-06-18 Jakub Jelinek <jakub@redhat.com>
9674
9675 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9676 Move PT_LOAD checking to...
9677 (_dl_addr_inside_object): ... here, new function.
9678 * elf/dl-sym.c (do_sym): If not l_contiguous,
9679 call _dl_addr_inside_object.
9680 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9681 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9682 * elf/dl-open.c (dl_open_worker): Likewise.
9683 (_dl_addr_inside_object): New function if IS_IN_rtld.
9684 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9685 holes are present or are PROT_NONE protected.
9686 * include/link.h (struct link_map): Add l_contiguous field.
9687 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9688
ae1ad3ae 96892007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
9690 Tomas Janousek <tjanouse@redhat.com>
9691 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
9692
9693 [BZ #4647]
9694 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9695 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9696 socket.
9697 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9698 unused member a bitmap.
9699 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9700 servers are configured.
9701
3abee0b7
UD
97022007-06-18 Jakub Jelinek <jakub@redhat.com>
9703
9704 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9705
89074592
UD
97062007-06-17 Andreas Schwab <schwab@suse.de>
9707
9708 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9709
b26e274d
AJ
97102007-06-16 Andreas Jaeger <aj@suse.de>
9711
9712 [BZ #4125]
9713 * sysdeps/unix/sysv/linux/sys/ptrace.h
9714 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9715 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 9716 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
9717 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9718 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9719 Define.
9720 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9721 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9722 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9723 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9724
e0d4a4e5
UD
97252007-06-16 Ulrich Drepper <drepper@redhat.com>
9726
9727 [BZ #4599]
9728 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9729 determining whether there are IPv4/IPv6 addresses, ignore loopback
9730 addresses.
9731
ae8e81f5
JJ
97322007-06-14 Uros Bizjak <ubizjak@gmail.com>
9733
9734 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9735 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9736 as the return type. Change type of "r" variable to CMPtype.
9737 * soft-fp/eqsf2.c (__eqsf2): Likewise.
9738 * soft-fp/eqtf2.c (__eqtf2): Likewise.
9739 * soft-fp/gedf2.c (__gedf2): Likewise.
9740 * soft-fp/gesf2.c (__gesf2): Likewise.
9741 * soft-fp/getf2.c (__getf2): Likewise.
9742 * soft-fp/ledf2.c (__ledf2): Likewise.
9743 * soft-fp/lesf2.c (__lesf2): Likewise.
9744 * soft-fp/letf2.c (__letf2): Likewise.
9745 * soft-fp/unorddf2 (__unorddf2): Likewise.
9746 * soft-fp/unordsf2 (__unordsf2): Likewise.
9747 * soft-fp/unordtf2 (__unordtf2): Likewise.
9748
90cd2413
UD
97492007-06-09 Ulrich Drepper <drepper@redhat.com>
9750
9751 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9752 make sure gcc doesn't mess around with this.
9753
3c457089
UD
97542007-06-08 Ulrich Drepper <drepper@redhat.com>
9755
9756 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9757
e8b6b64d
UD
97582007-06-08 Jakub Jelinek <jakub@redhat.com>
9759
9760 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9761 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9762 at most once per _dl_close_worker.
9763
36dffb22
UD
97642007-06-08 Ulrich Drepper <drepper@redhat.com>
9765
755db8c5
UD
9766 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9767 __sched_cpucount as const.
9768 * posix/sched_cpucount.c: Adjust.
9769
36dffb22
UD
9770 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9771 instruction for counting bits.
9772 * sysdeps/x86_64/sched_cpucount.c: New file.
9773
26f56c1c
UD
97742007-06-07 Ulrich Drepper <drepper@redhat.com>
9775
9776 * configure.in: Avoid variable named BASH.
e967d385 9777 * config.make.in: Likewise.
26f56c1c 9778 Patch in part by Mike Frysinger.
835abc5c 9779
26f56c1c 97802007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
9781
9782 [BZ #4586]
835abc5c
UD
9783 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9784 pseudo-zeros as zero.
9785 * sysdeps/x86_64/ldbl2mpn.c: New file.
9786 * sysdeps/ia64/ldbl2mpn.c: New file.
9787
7e3706ea
UD
97882007-06-04 Jakub Jelinek <jakub@redhat.com>
9789
9790 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9791 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9792 Remove unreachable code at the end.
9793
97942007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9795
9796 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9797 ldbl-128ibm in comment.
9798 (fpclassifyl): Correct classification of denormals.
9799 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9800 return value for MIN denormal. Rewrite using long double math too
9801 correctly handle denormals and canonicalize the results.
9802
98032007-06-05 Jakub Jelinek <jakub@redhat.com>
9804
9805 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9806 (__mpn_construct_long_double): Fix conversion where result ought
9807 to be smaller than __LDBL_MIN__, or the low double should be
9808 denormal. Fix decision where to negate low double - honor round
9809 to even rules.
9810 * stdio-common/tst-sprintf2.c: Include string.h.
9811 (COMPARE_LDBL): Define.
9812 (TEST): Also test whether a string hexadecimal float representation
9813 can be parsed back to the number.
9814 (main): Add a couple of further tests.
9815
43b76828
UD
98162007-06-04 Jakub Jelinek <jakub@redhat.com>
9817
9818 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9819 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9820 is non-zero, but smaller than 2 * __DBL_MIN__.
9821 * stdio-common/tst-sprintf2.c: New test.
9822 * stdio-common/Makefile (tests): Add tst-sprintf2.
9823
9824 * math/test-misc.c (main): Don't run last batch of tests with
9825 IBM long double format.
9826
04067002
UD
98272007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9828
9829 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9830 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9831 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9832 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9833 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9834 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9835 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9836 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9837 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9838 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9839 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9841 New file.
9842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9843 New file.
9844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9845 New file.
9846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9847 New file.
9848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9849 New file.
9850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9852 New file.
9853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9854 New file.
9855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9856 New file.
9857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9858 New file.
9859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9860 New file.
9861
98622007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9863
9864 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9865 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9866 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9867 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9868 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9869 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9870 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9871 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9872
98732007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
9874
9875 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9876 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9877 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9878 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9879 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9880 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9881 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9882 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9883
98842007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9885
9886 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9887 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9888 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9889 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9890
98912007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
9892
9893 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9894 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9895
98962006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
9897
9898 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9899 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9900 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9901 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9902
99032006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
9904
9905 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9906 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9907
99082006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9909
9910 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9911 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9912
9913 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9914 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9915 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9916 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9917
99182006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
9919
9920 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9921 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9922 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9923 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9924
99252006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
9926
9927 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9928 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9929 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9930 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9931 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9932 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9933
99342006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9935
9936 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9937 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9938 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9939 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9940
99412006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9942
9943 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9944 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9945 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9946 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9947 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9948 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9949 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9950 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9951 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9952 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9953 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9954 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9955 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9956 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9957 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9958 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9959
99602006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9961
9962 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9963 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9964
99652007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9966
9967 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9968 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9969
99702007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9971
9972 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9973 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9974 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9975 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9976 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9977 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9978 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9979 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9980 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9981 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9982
99832007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9984
9985 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9986
99872007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9988
9989 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9990 branch miss-predicts. Ensure that cache line crossing does not impact
9991 dispatch grouping.
9992
99932006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9994
9995 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9996 "../../powerpc32/power4/memcopy.h".
9997 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9998 "../../powerpc32/power4/wordcopy.c".
9999
100002006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10001
10002 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10003 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10004 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10005 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10006 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10007 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10008
100092006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
10010
10011 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10012
100132006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10014
10015 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10016 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10017 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10018 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10019 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10020 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10021 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10022 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10023
100242006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10025
10026 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10027
100282006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10029
10030 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10031 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10032 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10033 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10034 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10035 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10036 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10037
5b55e1d3
RM
100382007-05-29 Roland McGrath <roland@redhat.com>
10039
10040 * po/Makefile (po-sed-cmd): New variable.
10041 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10042
5da4373c
UD
100432007-05-29 Ulrich Drepper <drepper@redhat.com>
10044
4b5e7304
UD
10045 * crypt/md5-crypt.c: Fix comment.
10046
5da4373c
UD
10047 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10048 of crashing. When this is the case or if the reply is malformed,
10049 don't try to close the new file descriptor since it does not
10050 exist.
10051 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10052
40f57573
UD
100532007-05-28 Jakub Jelinek <jakub@redhat.com>
10054
10055 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10056 if __NR_utimensat is not defined.
10057
6df7ffad
UD
100582007-05-26 Ulrich Drepper <drepper@redhat.com>
10059
10060 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10061
47ad95ab
UD
100622007-05-25 Jakub Jelinek <jakub@redhat.com>
10063
10064 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10065 (open): Fix comment typos. Don't call __open_2 if flags
10066 is a compile time constant without O_CREAT.
10067 (__open64_2): Add nonnull attribute.
10068 (open64): Fix comment typos. Don't call __open64_2 if flags
10069 is a compile time constant without O_CREAT.
10070 (__openat_2): Add nonnull attribute, fix nonnull attribute
10071 on redirect.
10072 (openat): Fix comment typos. Don't call __openat_2 if flags
10073 is a compile time constant without O_CREAT.
10074 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10075 on redirect.
10076 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10077 is a compile time constant without O_CREAT.
10078
ddfd0535
UD
100792007-05-24 Ulrich Drepper <drepper@redhat.com>
10080
10081 * Makerules (sysd-rules): Define PTW for ptw-* files.
10082 * Versions: Define GLIBC_2.7 for libc.
10083 * include/stdio.h: Declare __fortify_fail.
10084 * debug/fortify_fail.c: New file.
10085 * debug/Makefile (routines): Add fortify_fail.
10086 * debug/chk_fail.c: Use __fortify_fail.
10087 * debug/stack_chk_fail.c: Likewise.
10088 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10089 __openat64_2 for GLIBC_2.7.
10090 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10091 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10092 and fails if necessary.
10093 * io/open64.c: Likewise.
10094 * io/openat.c: Likewise.
10095 * io/openat64.c: Likewise.
10096 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10097 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10098 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10099 * io/bits/fcntl2.h: New file.
10100 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10101 __openat64_2.
10102 * include/bits/fcntl2.h: New file.
10103 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10104 Add open_2.
10105 * sysdeps/unix/sysv/linux/open_2.c: New file.
10106
bfe6f5fa
UD
101072007-05-21 Ulrich Drepper <drepper@redhat.com>
10108
6d59823c
UD
10109 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10110 as second parameter to handle_intel.
10111
e2b1e343
UD
10112 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10113 the entry.
10114
bfe6f5fa
UD
10115 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10116 handling to ...
10117 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10118 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10119 cacheinfo.
10120 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10121 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10122 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10123
10124 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10125
1f4843fb
UD
101262007-05-21 Jakub Jelinek <jakub@redhat.com>
10127
2c2c003a
UD
10128 [BZ #4525]
10129 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10130 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10131 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10132
10133 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10134
af269dd9
UD
10135 [BZ #4514]
10136 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10137 reinitialize workend at the start of each do_positional format spec
10138 loop, free workstart before do_positional loops.
10139 (printf_unknown): Fix size of work_buffer.
10140 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10141
1f4843fb
UD
10142 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10143 (public_sET_STATe): If ms->version < 3, put all chunks into
10144 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10145 chunks.
10146
10147 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10148 * malloc/hooks.c: Likewise.
10149 * malloc/arena.c: Likewise.
10150 * malloc/malloc.c (do_check_malloc_state): Don't assert
10151 n_mmaps is not greater than n_mmaps_max. This removes the need
10152 for the previous change.
10153
10154 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10155 2007-05-07 commit.
10156
12e8bbff
UD
101572007-05-19 Ulrich Drepper <drepper@redhat.com>
10158
10159 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10160 Define for kernel >= 2.6.22.
69e5cbf5 10161
12e8bbff 101622007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 10163
df94b641
UD
10164 * elf/dl-close.c (_dl_close_worker): When removing object from
10165 global scope, wait for all lookups to finish afterwards.
10166 * elf/dl-open.c (add_to_global): When global scope array must
10167 grow, allocate a new one and free old array only after all
10168 lookups finish.
10169 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10170 (_dl_lookup_symbol_x): Likewise.
10171 * elf/dl-support.c: Define _dl_wait_lookup_done.
10172 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10173 _dl_wait_lookup_done.
10174
2acd01ac
UD
10175 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10176 not overlapping with arena.
10177
129abdd3
UD
10178 * malloc/mcheck.c (reallochook): If size==0, free the block.
10179
eb4b098a
UD
10180 * rt/tst-shm.c: Use fstat64 instead of fstat.
10181
69e5cbf5
UD
10182 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10183 __NR_sync_file_range is not defined.
10184
a2ccc760
UD
101852007-05-17 Ulrich Drepper <drepper@redhat.com>
10186
bec51a30
UD
10187 Dummy files to prevent stub versions from being used.
10188 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10189 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10190 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10191 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10192
a2ccc760
UD
10193 * version.h (VERSION): Set to 2.6.90.
10194
1a31b586
UD
101952007-05-14 Ulrich Drepper <drepper@redhat.com>
10196
a2ccc760
UD
10197 * version.h (VERSION): Define to 2.6.
10198 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 10199
1d47e92f
UD
10200 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10201
10202 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10203 sizes.
366ad8fd 10204
1a31b586 102052007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 10206
366ad8fd
UD
10207 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10208 number of mmaps. n_mmaps_max is the target.
10209 * malloc/hooks.c: Likewise.
10210 * malloc/arena.c: Likewise.
10211
11ed6713
AJ
102122007-05-12 Andreas Jaeger <aj@suse.de>
10213
10214 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10215 getpid.
10216
d65ef3dd
UD
102172007-05-11 Ulrich Drepper <drepper@redhat.com>
10218
2e81d449
UD
10219 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10220 adding new variables.
10221
d65ef3dd 10222 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 10223 optimize. Completely extend global scope array before making the
d65ef3dd
UD
10224 new entries visible.
10225
c27d2078
UD
102262007-05-10 Ulrich Drepper <drepper@redhat.com>
10227
341c566f
UD
10228 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10229 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10230 tst-getcpu.
10231
10232 * include/link.h: Move l_version and l_nversion members around to
10233 fill gaps.
10234
a53fa282
UD
10235 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10236
3771196d
UD
10237 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10238 (__sched_setaffinity_new): If syscall was successful and
10239 RESET_VGETCPU_CACHE is defined, use it before returning.
10240 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10241
f9bf102d
UD
10242 * io/sys/stat.h: Make sure struct timespec is defined for
10243 __USE_ATFILE.
10244
c27d2078
UD
10245 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10246 UTIME_OMIT.
10247 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10248 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10249 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10250 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10251 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10252 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10253 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10254 * io/sys/stat.h: Declare utimensat, futimens.
10255 * io/utimensat.c: New file.
10256 * io/futimens.c: New file.
10257 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10258 * sysdeps/unix/sysv/linux/futimens.c: New file.
10259 * io/Makefile (routines): Add utimensat, futimens.
10260 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10261 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10262 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10263 available.
10264
10265 * include/sys/cdefs.h: Redefine __nonnull so that test for
10266 incorrect parameters in the libc code itself are not omitted.
10267
cf6b0980
JJ
102682007-05-09 Jakub Jelinek <jakub@redhat.com>
10269
c1dfd7e6
JJ
10270 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10271 exception in addition to inexact when asked to raise only FE_INEXACT.
10272
cf6b0980
JJ
10273 [BZ #3427]
10274 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10275 in *envp.
10276
df7b6fea
UD
102772007-05-07 Ulrich Drepper <drepper@redhat.com>
10278
10279 [BZ #4403]
10280 * string/strfry.c (strfry): Make result more random.
10281
37f40235
RH
102822007-05-07 Richard Henderson <rth@redhat.com>
10283
10284 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10285 if __NO_LONG_DOUBLE_MATH.
10286 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 10287 available in the compiler, add .arch directive to the assembly.
37f40235
RH
10288
102892007-05-07 Jakub Jelinek <jakub@redhat.com>
10290
10291 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10292 compat_symbol to GLIBC_2_1.
10293 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10294 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10295 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10296 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10297 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10298 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10299 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10300 libc, not libm.
10301 (__isnanl): New compat_symbol.
10302
c7fd3362
JJ
103032007-05-07 Ulrich Drepper <drepper@redhat.com>
10304 Jakub Jelinek <jakub@redhat.com>
10305
10306 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10307 (new_heap): Initialize mprotect_size.
10308 (grow_heap): When growing, only mprotect from mprotect_size till
10309 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10310 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10311
4a59e9ad 103122007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 10313 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
10314
10315 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10316 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10317 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10318 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10319 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10320 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10321 Call __fe_mask_env() if all FP exceptions disabled.
10322 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10323 from old FPSCR to new fenv to propagate DFP rounding modes.
10324 Call __fe_mask_env() if FP exceptions previously enabled.
10325 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10326 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10327 transitioning from all exceptions disabled to any exception enabled
10328 or visa versa.
10329 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10330 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10331 when transitioning from all exceptions disabled to any exception
10332 enabled or visa versa.
10333 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10339
aa75f64c
UD
103402007-05-06 Ulrich Drepper <drepper@redhat.com>
10341
15eca720 10342 [BZ #4465]
aa75f64c
UD
10343 * posix/unistd.h: Remove __THROW from fdatasync.
10344
711deb05
UD
103452007-05-06 Mike Frysinger <vapier@gentoo.org>
10346
15eca720 10347 [BZ #4465]
711deb05
UD
10348 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10349
ffecd39b
UD
103502007-05-06 Ulrich Drepper <drepper@redhat.com>
10351
49a8eb75
UD
10352 * stdio-common/vfprintf.c (process_string_arg): Optimize
10353 ridiculous precision in wide char code printing multi-byte string.
10354 Reported by Jim Meyering <jim@meyering.net>.
10355
ffecd39b
UD
10356 [BZ #4131]
10357 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10358 boundaries to work around systems with overlapping binary loading.
10359 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10360
b16dba4c
UD
103612007-05-04 Ulrich Drepper <drepper@redhat.com>
10362
30b323ab
UD
10363 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10364 __mbsnrtowcs after last change.
10365
b16dba4c
UD
10366 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10367 (get_ident): Likewise.
10368
37002cbc
JJ
103692007-05-03 Jakub Jelinek <jakub@redhat.com>
10370
10371 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10372 with setting the sticky bit.
10373 * math/test-misc.c (main): Add more truncation tests.
10374
103752007-04-14 Uros Bizjak <ubizjak@gmail.com>
10376
10377 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10378 double in the function declaration.
10379 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10380 double in the function declaration.
10381 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10382 float in the function declaration.
10383 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10384 float in the function declaration.
10385
10386 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10387 denormal operands. Do not generate FP_EX_DENORM exception.
10388 (FP_UNPACK_RAW_EP): Ditto.
10389 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10390 undefined _FP_UNPACK_RAW_E.
10391 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10392 undefined _FP_UNPACK_RAW_EP.
10393 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10394 undefined _FP_PACK_RAW_E.
10395 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10396 undefined _FP_PACK_RAW_EP.
10397
d9ac82d0
UD
10398 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10399 _FP_FRAC_COPY_2.
10400 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10401 _FP_FRAC_COPY_4.
37002cbc
JJ
10402
104032007-04-16 Uros Bizjak <ubizjak@gmail.com>
10404 Jakub Jelinek <jakub@redhat.com>
10405
10406 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10407 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10408 this case.
10409 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10410
002f0b0b
JJ
104112007-05-03 Jakub Jelinek <jakub@redhat.com>
10412
10413 * math/test-misc.c (main): Add tests for rounding long double
10414 values close to smallest double denormalized value to double.
10415
104162007-04-30 Joseph Myers <joseph@codesourcery.com>
10417
10418 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10419 condition for truncating to 0. Set sticky bit for such
10420 truncation.
10421
57433ede
UD
104222007-05-02 Jakub Jelinek <jakub@redhat.com>
10423
10424 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10425 fixed length array for ignore.
10426
c01c2455
UD
104272007-04-30 Ulrich Drepper <drepper@redhat.com>
10428
10429 [BZ #4438]
10430 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10431 stack for large precisions.
1cb04337
UD
10432 * stdio-common/test-vfprintf.c (main): Add test for large
10433 precision.
c01c2455 10434
37f02b1d
UD
104352007-04-30 Jakub Jelinek <jakub@redhat.com>
10436
b866373d
UD
10437 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10438 for exponent 0.
10439 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10440
37f02b1d
UD
10441 [BZ #4439]
10442 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10443 account in the size check.
10444 * resolv/tst-inet_ntop.c: New test.
10445 * resolv/Makefile (tests): Add tst-inet_ntop.
10446
7ecfbd38
UD
104472007-04-30 Ulrich Drepper <drepper@redhat.com>
10448 Jakub Jelinek <jakub@redhat.com>
10449
10450 [BZ #4349]
10451 * malloc/malloc.c: Keep separate list for first blocks on the bin
10452 lists with a given size. This helps skipping over list elements
10453 we know won't fit in two places.
10454 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10455
e53f0f51
UD
104562007-04-28 Ulrich Drepper <drepper@redhat.com>
10457
10458 [BZ #4102]
10459 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10460 label to Teredo tunnel addresses 2001://32.
10461
109f51f2
UD
104622007-04-27 Ulrich Drepper <drepper@redhat.com>
10463
762422d1
UD
10464 * locale/programs/ld-collate.c (collate_read): Allow order_start
10465 after copy.
10466
61d5a67f
UD
10467 * locale/programs/ld-collate.c (collate_read): Fix printing of
10468 error message.
10469
10470 [BZ #3213]
10471 * locale/C-translit.h.in: Add entry for U2044.
10472
109f51f2
UD
10473 [BZ #4342]
10474 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10475 hexa-decimal floats without exponent.
10476 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10477
ec08f13d
UD
104782007-04-25 Ulrich Drepper <drepper@redhat.com>
10479
10480 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10481 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10482 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10483 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10484 GLIBC_2.6.
bce20b9a
UD
10485 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10486 Add sched_getcpu.
ec08f13d 10487
41967e1c
JJ
104882007-04-25 Jakub Jelinek <jakub@redhat.com>
10489
10490 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10491 of 0 after the out_fail label.
10492
ba508da3
UD
104932007-04-25 Ulrich Drepper <drepper@redhat.com>
10494
10495 [BZ #4406]
109f51f2 10496 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
10497 * iconv/iconv_open.c (iconv_open): Adjust comment.
10498
9c8d03d9
JJ
104992007-04-25 Jakub Jelinek <jakub@redhat.com>
10500
10501 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10502 version.
10503
2f1687b9
UD
105042007-04-23 Jakub Jelinek <jakub@redhat.com>
10505
10506 [BZ #4381]
10507 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10508 alignment of buffer and tmp_buffer.
10509 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10510 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10511 alignment of buffer.
10512 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10513 bigger than INT_MAX.
10514 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10515 h_errnop arguments. Fail if buflen is too small.
10516 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10517
b64a9db8
JJ
105182007-04-23 Jakub Jelinek <jakub@redhat.com>
10519
10520 [BZ #4405]
10521 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10522 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10523
4d3144c9
RM
105242007-04-22 Roland McGrath <roland@redhat.com>
10525
10526 * elf/elf.h (NT_PRXFPREG): New macro.
10527
767b40bf
AJ
105282007-04-19 Andreas Jaeger <aj@suse.de>
10529
10530 [BZ #3905]
10531 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10532 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10533 Added.
10534
2592d1ec
UD
105352007-04-19 Ulrich Drepper <drepper@redhat.com>
10536
10537 * include/sys/mman.h: Mark madvise hidden.
d07d044e 10538 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 10539
7ab174ed
UD
105402007-04-06 Jakub Jelinek <jakub@redhat.com>
10541
10542 * nis/nis_domain_of.c (__nis_domain_of): New function.
10543 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10544 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10545 * nis/nis_call.c (rec_dirsearch): Likewise.
10546 (first_shoot): Likewise. Remove search_parent_first argument.
10547 (struct nis_server_cache): Rename search_parent_first field
10548 to search_parent.
10549 (nis_server_cache_search, nis_server_cache_add): Rename
10550 search_parent_first argument to search_parent.
10551 (__nisfind_server): Likewise. If search_parent, call
10552 __nis_domain_of.
10553
b17c265f
UD
105542007-04-18 Ulrich Drepper <drepper@redhat.com>
10555
10556 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10557
b7674b11
UD
105582007-04-17 Ulrich Drepper <drepper@redhat.com>
10559
10560 [BZ #4368]
10561 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10562
faf3ad69
UD
105632007-04-16 Ulrich Drepper <drepper@redhat.com>
10564
10565 [BZ #4364]
10566 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10567
c14f245c
UD
105682007-04-15 Jakub Jelinek <jakub@redhat.com>
10569
10570 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10571 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10572 current number of locales in SUPPORTED.
10573 (create_archive): Initialize serial.
10574 (enlarge_archive): Preserve aliases rather than duplicating
10575 their locrecs.
10576
d40e67f5
UD
105772007-04-13 Jakub Jelinek <jakub@redhat.com>
10578
993a5d66
UD
10579 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10580 after _IO_un_link, not before it.
10581
d40e67f5
UD
10582 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10583 special case handling when wcp == wstartp + 1. Fix a comment typo.
10584 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10585
0fca3153
UD
105862007-03-30 Jakub Jelinek <jakub@redhat.com>
10587
10588 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10589 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10590 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10591 Remove __THROW.
10592 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10593 _IO_file_xsgetn_maybe_mmap): Likewise.
10594 * libio/oldfileops.c (old_do_write): Likewise.
10595 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10596 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10597 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10598 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10599 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10600 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10601 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10602 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10603 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10604 _IO_file_underflow, _IO_file_underflow_mmap,
10605 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10606 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10607 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10608 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10609 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10610 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10611 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10612 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10613 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10614 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10615 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10616 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10617 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10618 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10619 _IO_adjust_column_internal, _IO_default_uflow_internal,
10620 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10621 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10622 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10623 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10624 _IO_file_close_it_internal, _IO_file_underflow_internal,
10625 _IO_file_overflow_internal, _IO_file_attach_internal,
10626 _IO_file_fopen_internal, _IO_file_sync_internal,
10627 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10628 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10629 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10630 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10631 _IO_seekpos_unlocked): Likewise.
10632 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10633 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10634
07358add
JJ
106352007-04-16 Jakub Jelinek <jakub@redhat.com>
10636
10637 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10638 argument in xmalloc size computation.
10639
7a82b74f
UD
106402007-04-01 Jakub Jelinek <jakub@redhat.com>
10641
10642 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10643 math_opt_barrier and math_force_eval macros.
10644
3e336a87
UD
106452007-03-27 Jakub Jelinek <jakub@redhat.com>
10646
10647 [BZ #3306]
10648 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10649 * sysdeps/i386/fpu/math_private.h: New file.
10650 * sysdeps/x86_64/fpu/math_private.h: New file.
10651 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10652 math_force_eval macros. Use "+m" constraint on asm rather than
10653 "=m" and "m".
10654 * math/s_nextafter.c (__nextafter): Likewise.
10655 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10656 Likewise.
10657 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10658 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10659 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10660 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10661 math_opt_barrier and math_force_eval macros.
10662 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10663 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10664 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10665 (__nexttoward): Use math_opt_barrier and
10666 math_force_eval macros. Use "+m" constraint on asm rather than
10667 "=m" and "m". Only use asm to force double result if
10668 FLT_EVAL_METHOD is 2.
10669 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10670 (__nexttowardf): Use math_opt_barrier and
10671 math_force_eval macros. Use "+m" constraint on asm rather than
10672 "=m" and "m". Only use asm to force double result if
10673 FLT_EVAL_METHOD is not 0.
10674 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10675 (__nexttowardf): Use math_opt_barrier and
10676 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10677 x to float using asm.
10678 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10679 (__nldbl_nexttowardf): Use math_opt_barrier and
10680 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10681 x to float using asm.
10682 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10683 (__nexttowardf): Use math_opt_barrier and math_force_eval
10684 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10685 * math/bug-nextafter.c (zero, inf): New variables.
10686 (main): Add new tests.
10687 * math/bug-nexttoward.c (zero, inf): New variables.
10688 (main): Add new tests.
10689
a8c79c40
UD
106902007-03-22 Jakub Jelinek <jakub@redhat.com>
10691
10692 [BZ #3427]
10693 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10694 exceptions both in SW and MXCSR.
10695 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10696 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10697 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10698 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10699 in MXCSR if SSE is available.
10700 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10701 and ldsodefs.h.
10702 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10703 Fix comment typo.
10704 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10705 Return 0 rather than 1.
10706 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10707 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10708 * math/test-fenv.c (feholdexcept_tests): New function.
10709 (main): Call it.
10710
107112007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10712
10713 [BZ #3427]
10714 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10715 in SW.
10716
30a3aa75
JJ
107172007-04-13 Jakub Jelinek <jakub@redhat.com>
10718
10719 [BZ #4344]
10720 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10721 Reported by David Anderson <davea42@earthlink.net>.
10722
75587bfe
UD
107232007-04-07 Ulrich Drepper <drepper@redhat.com>
10724
10725 * posix/sys/wait.h: Remove unnecessary forward declaration.
10726
88fa1769
JJ
107272007-04-05 Jakub Jelinek <jakub@redhat.com>
10728
10729 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10730 with obj->do_servers after first_shoot.
10731
eab1bdfb
UD
107322007-04-03 Ulrich Drepper <drepper@redhat.com>
10733
10734 * posix/Makefile (routines): Add sched_cpucount.
10735 (tests): Add tst-cpucount.
10736 * posix/sched_cpucount.c: New file.
10737 * posix/tst-cpucount.c: New file.
10738 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
10739 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
10740 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10741 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 10742
9700b039
UD
107432007-03-27 Jakub Jelinek <jakub@redhat.com>
10744
10745 * posix/fnmatch.c (STRUCT): Define.
10746 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10747 * posix/fnmatch_loop.c (struct STRUCT): New type.
10748 (FCT): Add ends argument. If ends != NULL and normal * is
10749 seen in the pattern, store current pattern and string pointers
10750 and return. Adjust recursive calls.
10751 (EXT): Adjust FCT callers.
10752 (STRUCT): Undef at the end of the file.
10753 * posix/Makefile (tests): Add tst-fnmatch2.
10754 * posix/tst-fnmatch2.c: New test.
10755
d64e9790
JJ
107562007-04-01 Jakub Jelinek <jakub@redhat.com>
10757
933dfe7b
JJ
10758 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10759 and 1 on failure.
10760
d64e9790
JJ
10761 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10762 Change last argument to unsigned int.
10763
e1f0c5bc
UD
107642007-03-23 Jakub Jelinek <jakub@redhat.com>
10765
10766 * scripts/check-local-headers.sh: Filter out sys/capability.h.
10767
107682007-03-22 Jakub Jelinek <jakub@redhat.com>
10769
10770 * config.h.in (HAVE_LIBCAP): Add.
10771 * nscd/selinux.h: Include sys/capability.h rather than non-existent
10772 sys/capabilities.h.
10773 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10774 free_caps. Cast away const from 4th cap_set_flag argument.
10775
4e87573f
UD
107762007-03-26 Ulrich Drepper <drepper@redhat.com>
10777
10778 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10779 GLIBC_2.6.
10780 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10781 Add sync_file_range.
10782 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10783
fa6e3bc3
UD
107842007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
10785
10786 * sysdeps/powerpc/bits/atomic.h
10787 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10788 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10789 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10790 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10791 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10792 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10793 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10794 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10795 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10796 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10797 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10798 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10799 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10800 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10801 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10802 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10803 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10804 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10805 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10806 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10807
108082007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
10809
10810 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10811 (__cache_line_size): Define the variable here. Add
10812 attribute_hidden, remove weak_extern.
10813 (__libc_start_main): Set __cache_line_size
10814 unconditionally.
10815 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10816 (__cache_line_size): Define the variable here. Add
10817 attribute_hidden, remove weak_extern.
10818 (DL_PLATFORM_AUXV): Set __cache_line_size
10819 unconditionally.
10820 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10821 weak_extern, add attribute_hidden.
10822 (__elf_machine_runtime_setup): Assume __cache_line_size is always
10823 defined in ld.so.
10824 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10825 definition.
10826 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10827
0479e581
JJ
108282007-03-26 Jakub Jelinek <jakub@redhat.com>
10829
10830 [BZ #4276]
10831 * timezone/africa: Update from tzdata2007d.
10832 * timezone/asia: Likewise.
10833 * timezone/australasia: Likewise.
10834 * timezone/backward: Likewise.
10835 * timezone/europe: Likewise.
10836 * timezone/iso3166.tab: Likewise.
10837 * timezone/leapseconds: Likewise.
10838 * timezone/northamerica: Likewise.
10839 * timezone/southamerica: Likewise.
10840 * timezone/zone.tab: Likewise.
10841
10842 * timezone/private.h: Update from tzcode2007d.
10843 * timezone/zdump.c: Likewise.
10844 * timezone/zic.c: Likewise.
10845
697d37b1
JJ
108462007-03-21 Jakub Jelinek <jakub@redhat.com>
10847
10848 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10849 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10850 variables.
10851 (nis_server_cache_search, nis_server_cache_add): New functions.
10852 (__nisfind_server): Use them. Add dbp and flags argument, if
10853 call __nisbind_create.
10854 (__nisbind_create): Add server_used and current_ep arguments,
10855 only call __nis_findfastest if server_used is ~0.
10856 (__do_niscall2, __prepare_niscall): Adjust callers.
10857 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10858 ckey_cache_euid, ckey_cache_lock): New variables.
10859 (get_ckey): New function.
10860 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10861 __pmap_getnisport. Save __pmap_getnisport result in
10862 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
10863 key.
10864 * nis/nis_lookup.c (nis_lookup): Likewise.
10865 * nis/nis_table.c (nis_list): Likewise.
10866 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10867 prototypes.
10868
10869 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10870 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10871 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10872 _nss_nisplus_getservbyport_r): Likewise.
10873 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10874 _nss_nisplus_getnetbyaddr_r): Likewise.
10875 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10876 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10877 _nss_nisplus_getntohost_r): Likewise.
10878 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10879 _nss_nisplus_getrpcbynumber_r): Likewise.
10880
06029c20
JJ
108812007-03-20 Jakub Jelinek <jakub@redhat.com>
10882
371f84a4
JJ
10883 * configure.in (libc_cv_gnu89_inline): Only do compile test.
10884 * configure: Rebuilt.
10885
06029c20
JJ
10886 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10887 bit-fields.
10888 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10889
108902006-06-07 Joseph Myers <joseph@codesourcery.com>
10891
10892 [BZ #2831]
10893 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10894 bit-fields.
10895
addc8335
UD
108962007-03-18 Jakub Jelinek <jakub@redhat.com>
10897
10898 * nscd/gai.c: Include alloca.h.
10899 (__libc_use_alloca): Define.
10900
b037a293
UD
109012007-03-16 Jakub Jelinek <jakub@redhat.com>
10902
965cba04
UD
10903 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10904 smaller scopes.
10905 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10906 (DL_DST_REQUIRED): Adjust user.
10907
10908 * include/dlfcn.h (struct link_map): New forward decl.
10909
10910 * inet/getnameinfo.c: Include stddef.h.
10911 (getnameinfo): Use offsetof.
10912
10913 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10914
10915 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10916
10917 * string/strerror_l.c: Include stdlib.h.
10918
b037a293
UD
10919 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10920 * config.make.in (gnu89-inline-CFLAGS): New variable.
10921 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10922 -std=gnu99.
10923 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10924 * argp/argp.h: Use it.
10925 * bits/mathinline.h: Likewise.
10926 * bits/sigset.h: Likewise.
10927 * bits/string.h: Likewise.
10928 * ctype/ctype.h: Likewise.
10929 * hurd/hurd.h: Likewise.
10930 * hurd/hurd/fd.h: Likewise.
10931 * hurd/hurd/port.h: Likewise.
10932 * hurd/hurd/signal.h: Likewise.
10933 * hurd/hurd/threadvar.h: Likewise.
10934 * hurd/hurd/userlink.h: Likewise.
10935 * io/sys/stat.h: Likewise.
10936 * libio/bits/stdio.h: Likewise.
10937 * libio/bits/stdio2.h: Likewise.
10938 * mach/lock-intern.h: Likewise.
10939 * mach/mach/mig_support.h: Likewise.
10940 * math/bits/cmathcalls.h: Likewise.
10941 * posix/bits/unistd.h: Likewise.
10942 * socket/bits/socket2.h: Likewise.
10943 * stdlib/bits/stdlib.h: Likewise.
10944 * stdlib/stdlib.h: Likewise.
10945 * string/argz.h: Likewise.
10946 * string/bits/string2.h: Likewise.
10947 * string/bits/string3.h: Likewise.
10948 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10949 * sysdeps/generic/inttypes.h: Likewise.
10950 * sysdeps/generic/machine-lock.h: Likewise.
10951 * sysdeps/generic/machine-sp.h: Likewise.
10952 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10953 * sysdeps/i386/i486/bits/string.h: Likewise.
10954 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10955 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10956 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10957 * sysdeps/mach/i386/machine-lock.h: Likewise.
10958 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10959 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10960 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10961 * sysdeps/s390/bits/string.h: Likewise.
10962 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10963 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10964 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10965 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10966 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10967 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10968 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10969 * wcsmbs/bits/wchar2.h: Likewise.
10970 * wcsmbs/wchar.h: Likewise.
10971 * stdlib/gmp.h: Likewise. Include <features.h> to get
10972 __extern_inline definition.
10973
6b2665f5
UD
109742007-03-15 Jakub Jelinek <jakub@redhat.com>
10975
b037a293
UD
10976 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10977 NULL.
10978
6b2665f5
UD
10979 [BZ #3919]
10980 * math/libm-test.inc (log_test): Test -Inf and NaN.
10981 (log10_test, log1p_test, log2_test): Test -Inf.
10982 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10983 FE_INVALID when argument is qNaN.
10984 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10985 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10986 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10987 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10988 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10989 testb $4, %ah and jump if non-zero.
10990 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10991 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10992
44969f17
UD
10993 [BZ #4101]
10994 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10995 ancestors with the same depths.
10996 Patch by Niels Moeller <nisse@lysator.liu.se>.
10997 (filter_doc): Don't crash if argp is NULL.
10998 * argp/Makefile (tests): Add tst-argp2.
10999 * argp/tst-argp2.c: New test.
11000
05eb8975
UD
11001 [BZ #4130]
11002 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11003 open_not_cancel_2.
11004 (updwtmp_file): Likewise.
11005
6cb988fa
UD
11006 [BZ #4181]
11007 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11008 (inet6_opt_append): Don't check extlen is big enough if extbuf
11009 is NULL.
11010 (inet6_opt_finish): Likewise.
11011 * inet/Makefile (tests): Add test-inet6_opt.
11012 * inet/test-inet6_opt.c: New test.
11013
11014 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11015 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11016 NLMSG_ERR. Instead use a page sized buffer.
11017 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11018 buffer.
11019
aea1d19e
RH
110202007-03-14 Richard Henderson <rth@redhat.com>
11021
b6df547c
RH
11022 * sysdeps/alpha/fpu/s_llround.c: New file.
11023 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11024 * sysdeps/alpha/fpu/s_lround.c: New file.
11025 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11026 * sysdeps/alpha/fpu/s_round.c: New file.
11027 * sysdeps/alpha/fpu/s_roundf.c: New file.
11028 * sysdeps/alpha/fpu/s_trunc.c: New file.
11029 * sysdeps/alpha/fpu/s_truncf.c: New file.
11030
aea1d19e
RH
11031 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11032 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11033 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11034 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11035 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11036 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11037
11038 * sysdeps/alpha/fpu/s_fmax.S: New file.
11039 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11040 * sysdeps/alpha/fpu/s_fmin.S: New file.
11041 * sysdeps/alpha/fpu/s_fminf.S: New file.
11042 * sysdeps/alpha/fpu/s_isnan.c: New file.
11043 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11044 * sysdeps/alpha/fpu/s_llrint.c: New file.
11045 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11046 * sysdeps/alpha/fpu/s_lrint.c: New file.
11047 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11048 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11049 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11050
11051 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11052 (__fdimf, fdimf, __fdim, fdim): Remove.
11053 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11054 (__isnanf, __isnan, __isnanl): New.
11055
9e43b50d
RH
110562007-03-13 Richard Henderson <rth@redhat.com>
11057
11058 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11059
62789da3
RH
110602007-03-13 Richard Henderson <rth@redhat.com>
11061
11062 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11063 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11064 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11065 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11066 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11067 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11068
47dbe62b
RH
110692007-03-13 Richard Henderson <rth@redhat.com>
11070
37f40235 11071 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
11072 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11073 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11074 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11075 Move to dl-auxv.h; initialize instead of extern weak.
11076 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11077 weak symbol.
11078 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11079 Extern instead of initialized.
11080
b8097bed
RH
110812007-03-13 Richard Henderson <rth@redhat.com>
11082
11083 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11084 __sigsuspend_nocancel.
11085
6bf4a686
UD
110862007-03-06 Ulrich Drepper <drepper@redhat.com>
11087
11088 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11089 172.16/12 address range.
11090
0b3b1a0c
UD
110912007-03-02 Jakub Jelinek <jakub@redhat.com>
11092
11093 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11094 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11095 message.
11096
8f3edfee
UD
110972007-03-01 Jakub Jelinek <jakub@redhat.com>
11098
c1c5e654 11099 [BZ #4069]
8f3edfee
UD
11100 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11101 earlier.
11102 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11103
11104 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11105 for x qNaN and y either +-inf or non-integer value.
11106 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11107 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11108 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11109
245a1481
UD
111102007-02-10 Mike Frysinger <vapier@gentoo.org>
11111
11112 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11113 from sysdep_headers.
11114
c217692b
UD
111152007-02-28 Jakub Jelinek <jakub@redhat.com>
11116
11117 * time/tzfile.c (find_transition): Instead of a linear search try to
11118 guess the transition index, use a linear search if the result is at
11119 most 10 transitions away from the guess or binary search otherwise.
11120
fe64626c
JJ
111212007-02-27 Jakub Jelinek <jakub@redhat.com>
11122
11123 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11124 memory reallocation.
11125
0f7769f7
UD
111262007-02-21 Ulrich Drepper <drepper@redhat.com>
11127
621c133d
UD
11128 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11129 and fix some typos.
11130 Optimize use of TOLOWER.
9cf147d8 11131
cdfd61e1
UD
11132 [BZ #3325]
11133 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11134 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11135 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11136
8889e7aa
UD
11137 [BZ #3458]
11138 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11139 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11140
63a2f305
UD
11141 [BZ #4076]
11142 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11143 (open_dir_stream): Likewise.
11144 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 11145 * io/bug-ftw5.c: New file.
63a2f305 11146
c8703f88
UD
11147 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11148 * nscd/servicescache.c (cache_addserv): Likewise.
11149
11150 * nscd/grpcache.c (cache_addgr): In case a record changed on
11151 refresh, adjust key_copy.
11152
61705e06
UD
11153 [BZ #4074]
11154 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11155 refresh, adjust key_copy.
11156
0f7769f7
UD
11157 [BZ #4070]
11158 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 11159 special cases.
8889e7aa 11160 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 11161
3979024a
UD
111622007-02-19 Ulrich Drepper <drepper@redhat.com>
11163
4c02bf1a
UD
11164 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11165 optimization.
11166
3979024a
UD
11167 * stdio-common/vfscanf.c: Small cleanups throughout.
11168
821d3e70
UD
111692007-02-18 Ulrich Drepper <drepper@redhat.com>
11170
2484468b
UD
11171 [BZ #3325]
11172 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11173 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11174 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11175 Patch by Jared Casper <jaredcasper@gmail.com>.
11176
858ee15d
UD
11177 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11178 * sysdeps/unix/opendir.c: Likewise.
11179 * sysdeps/unix/readdir.c: Likewise.
11180
ecb72bd5
UD
11181 [BZ #2211]
11182 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11183 point numbers.
11184 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11185
ac2ca022
UD
11186 * stdio-common/vfscanf.c: Fix problems in width accounting.
11187 * stdio-common/tst-sscanf.c (double_tests): New tests.
11188 (main): Hook them up.
11189
e9bb5246 11190 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 11191 More simplifications of floating-point reader.
e9bb5246 11192
821d3e70
UD
11193 * stdio-common/Makefile (tests): Add tst-swscanf.
11194 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11195 testing.
11196 * stdio-common/tst-swscanf.c: New file.
11197
07fb5185
UD
111982007-02-17 Ulrich Drepper <drepper@redhat.com>
11199
9138cc0b
UD
11200 [BZ #2633]
11201 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11202 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11203 Remove using for __jmp_buf_tag.
11204 * locale/locale.h (struct lconv): Also define in std namespace.
11205 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11206
6818d837
UD
11207 [BZ #3842]
11208 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11209 using __libc_enable_secure.
11210
15c4b5a4
UD
11211 [BZ #3818]
11212 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11213
5e9e9c14
UD
11214 [BZ #3745]
11215 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11216 of names for ellipsises.
11217
07fb5185
UD
11218 [BZ #3348]
11219 * malloc/memusage.sh: Cleanups.
11220 * debug/xtrace.sh: Quoting and trap changes.
11221
8c6d1043
UD
112222007-02-16 Ulrich Drepper <drepper@redhat.com>
11223
07fb5185
UD
11224 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11225
93e66914 11226 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
11227 * locale/iso-4217.def: Define RSD, remove CSD.
11228
ad0b348c
UD
11229 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11230 and 64-bit operations.
11231
11232 [BZ #4040]
11233 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11234 16-bit operations.
11235
8c6d1043
UD
11236 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11237 of writev.
11238
987f54c6
UD
112392007-02-15 Ulrich Drepper <drepper@redhat.com>
11240
b3715c05
UD
11241 [BZ #3991]
11242 * assert/assert.h (assert): Simplify.
11243 (assert_perror): Likewise.
11244 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11245
6eea8e0d
UD
11246 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11247 reqdata.
11248
987f54c6
UD
11249 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11250 change: don't pass NULL in place of an integer.
11251
3dc08a7e
UD
112522007-02-02 Bruno Haible <bruno@clisp.org>
11253
06c17c78
UD
11254 [BZ #3954]
11255 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11256 Add mapping for U+327E.
11257 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11258 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11259 mapping of 0xD9 0xE8.
11260 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11261 mapping of U+327E.
11262 Reported by Jungshik Shin <jungshik@google.com>.
11263
11264 [BZ #3955]
3dc08a7e
UD
11265 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11266 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11267 Reported by Jungshik Shin <jungshik@google.com>.
11268
a810e68c
UD
112692007-02-14 Ulrich Drepper <drepper@redhat.com>
11270
11271 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11272 byte variants.
11273
11274 [BZ #4040]
11275 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11276 byte variants. Patch mostly be tom@tommay.net.
11277
05f135ba
UD
112782007-02-14 Jakub Jelinek <jakub@redhat.com>
11279
11280 [BZ #3996]
11281 * posix/glob.c (attribute_hidden): Define if not defined.
11282 (glob): Unescape dirname, filename or username when needed and not
11283 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11284 is NULL. Handle unescaped [ in pattern without closing ].
11285 Don't pass GLOB_CHECK down to recursive glob for directories.
11286 (__glob_pattern_type): New function.
11287 (__glob_pattern_p): Implement using __glob_pattern_type.
11288 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11289 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11290 Remove unreachable code.
11291 * posix/globtest.sh: Add a couple of new tests.
11292
2f699967
UD
112932007-02-13 Ulrich Drepper <drepper@redhat.com>
11294
11295 * po/ru.po: Update from translation team.
11296
3a7cd5b4
JJ
112972007-02-12 Jakub Jelinek <jakub@redhat.com>
11298
11299 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11300 to the list of i486+ CPUs.
11301 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11302
2f978feb
UD
113032007-02-12 Ulrich Drepper <drepper@redhat.com>
11304
11305 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11306 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11307 references.
11308
2bbb7d5b
UD
113092007-02-09 Ulrich Drepper <drepper@redhat.com>
11310
5ed61e0f
UD
11311 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11312
2bbb7d5b
UD
11313 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11314 * resolv/res_mkquery.c: Define __res_nopt.
11315 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11316 try adding EDNS0 record.
11317 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11318 EDNS0 record was send make sure we don't try it again.
11319 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11320 * include/resolv.h: Declare __res_nopt.
11321
00458b5b
UD
113222007-02-08 Jakub Jelinek <jakub@redhat.com>
11323
11324 [BZ #3944]
11325 * time/strptime_l.c (__strptime_internal): Set have_mon for
11326 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11327 have been computed from tm_yday and tm_year. Don't crash
11328 in day_of_the_week or day_of_the_year if not have_mon
11329 and tm_mon contains bogus value.
11330 * time/Makefile (tests): Add tst-strptime3.
11331 * time/tst-strptime3.c: New test.
11332
784aacea
UD
113332007-02-05 Jakub Jelinek <jakub@redhat.com>
11334
11335 [BZ #3957]
11336 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11337 bit for RE_HAT_LISTS_NOT_NEWLINE.
11338 (build_charclass_op): Remove bogus comment.
11339 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11340 * posix/bug-regex27.c: New test.
11341 * posix/bug-regex28.c: New test.
11342
bf7a2463
UD
113432007-02-03 Ulrich Drepper <drepper@redhat.com>
11344
11345 * po/sv.po: Update from translation team.
11346
f2ccf983
UD
113472007-02-02 Ulrich Drepper <drepper@redhat.com>
11348
11349 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11350
73f50d5a
UD
113512007-02-02 Jakub Jelinek <jakub@redhat.com>
11352
11353 * include/locale.h (__uselocale): Add libc_hidden_proto.
11354 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11355
f6bf9e59
JJ
11356 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11357 gettimeofday.
11358
4a44ce79
UD
113592007-02-01 Ulrich Drepper <drepper@redhat.com>
11360
11361 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11362 returning.
11363 (PTR_DEMANGLE): Real definition now that it's not the same as
11364 PRT_MANGLE anymore.
11365 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11366
11367 * string/strerror_l.c: New file.
11368 * string/Makefile (routines): Add strerror_l.
11369 * string/string.h: Declare strerror_l.
11370 * string/Versions: Export strerror_l for GLIBC_2.6.
11371
58a2d52e
UD
113722007-01-31 Ulrich Drepper <drepper@redhat.com>
11373
11374 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11375 as parameter. Construct request record. Try sending request
11376 before the first poll use, it usually succeeds. Adjust all
11377 callers.
11378 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 11379 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 11380
1a77d37f
JJ
113812007-01-31 Jakub Jelinek <jakub@redhat.com>
11382
11383 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11384 from return value.
11385 * nscd/nscd_helper.c: Include string.h.
11386 (__nscd_cache_search): Remove const qualifier from return value.
11387 On strict alignment architectures check hash entry and data head
11388 alignment.
11389 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11390 mmapped data during GC cycle contains garbage. If
11391 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11392 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11393 dropped to 0.
11394 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11395 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11396 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11397 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11398 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11399
ee314200
UD
114002007-01-30 Ulrich Drepper <drepper@redhat.com>
11401
11402 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11403
14c8bf3b
UD
114042007-01-26 Ulrich Drepper <drepper@redhat.com>
11405
11406 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11407 names not numbers in cfi_*.
11408
d2708e67
AJ
114092007-01-26 Andreas Jaeger <aj@suse.de>
11410
11411 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 11412 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
11413 Correct values of PER_HPUX and PER_OSF4.
11414
7fbc8784
UD
114152007-01-24 Ulrich Drepper <drepper@redhat.com>
11416
8aaf53ee 11417 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
11418 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11419 * malloc/mtrace.c: Revert last change.
11420 * posix/wordexp.c: Likewise.
11421
9d6cde3d
UD
114222007-01-24 Jakub Jelinek <jakub@redhat.com>
11423
11424 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11425 and __geode__ to the list of i486+ CPUs.
11426 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11427
c1f0486a
UD
114282007-01-23 Ulrich Drepper <drepper@redhat.com>
11429
11430 * stdio-common/_itoa.c: Include <limits.h>.
11431 * stdio-common/_itowa.c: Likewise.
11432
6cae3957
UD
114332007-01-22 Ulrich Drepper <drepper@redhat.com>
11434
765bbb24
UD
11435 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11436 platforms.
11437 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11438 64-bit platforms.
11439 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11440 possible.
11441 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11442 if possible.
11443
6cae3957
UD
11444 [BZ #3902]
11445 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11446 * stdio-common/Makefile (tests): Add bug17.
11447 * stdio-common/bug17.c: New file.
11448
ddaafd04
UD
114492007-01-19 Ulrich Drepper <drepper@redhat.com>
11450
11451 * iconvdata/brf.c: New file.
439201de
UD
11452 * iconvdata/testdata/BRF: New file.
11453 * iconvdata/testdata/BRF..UTF8: New file.
11454 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
11455 * iconvdata/Makefile: Add rules to build BRF.
11456 * iconvdata/TESTS: Add BRF entry.
11457 * iconvdata/gconv-modules: Likewise.
11458 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 11459
9e6e344e
UD
114602007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11461
11462 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11463 type `long long int', not `long int'.
11464 (wcstoq): Likewise.
11465
299f7b0f
UD
114662007-01-18 Ulrich Drepper <drepper@redhat.com>
11467
11468 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11469 of values on 64-bit platforms which are too large.
11470
cd8127cc
JJ
114712007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11472 Joe Kerian <jkerian@us.us.ibm.com>
11473
11474 [BZ #2749]
11475 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11476 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11477 (__copysignl): Use signbit() for comparison.
11478 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11479 SET_LDOUBLE_WORDS64.
11480
11481 [BZ #2423, #2749]
11482 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11483 (__ceill): Remove calls to fegetround(), fesetround().
11484 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11485 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11486 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11487
b3acfdf7
JJ
114882007-01-17 Jakub Jelinek <jakub@redhat.com>
11489
4a2e03c6
JJ
11490 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11491
b3acfdf7
JJ
11492 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11493
1476bce6
UD
114942007-01-17 Ulrich Drepper <drepper@redhat.com>
11495
11496 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11497 demangle pointer.
11498 * csu/libc-start.c: Likewise.
11499
d78bce1c
UD
115002007-01-16 Ulrich Drepper <drepper@redhat.com>
11501
11502 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11503 really work anyway.
11504
1bd79025
UD
115052007-01-15 Ulrich Drepper <drepper@redhat.com>
11506
000b027e
UD
11507 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11508 users.
11509 (handle_request): Remove unnecessary tests.
11510
1bd79025
UD
11511 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11512
d68f5d2c
JJ
115132007-01-15 Jakub Jelinek <jakub@redhat.com>
11514
11515 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11516 workbits in semi-raw fraction.
11517
11518 * math/test-misc.c: Add new tests.
11519
115202007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11521
11522 * math/basic-test.c: Include test-skeleton.c.
11523 (TEST_TRUNC): Define.
11524 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11525 (main): Rename to ...
11526 (do_test): ...this. Run new tests.
11527 (TEST_FUNCTION): Define.
11528
115292006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11530 Joe Kerian <jkerian@us.us.ibm.com>
11531
11532 [BZ #2749]
11533 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11534 handling for high words.
11535 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11536 and overflow for infinity.
11537
4e35ef2c
UD
115382007-01-15 Ulrich Drepper <drepper@redhat.com>
11539
2a1dea97
UD
11540 * nscd/connections.c (handle_request): Add a __builtin_expect.
11541
9691d83c
UD
11542 * nscd/connections.c (serv2db): Change type into structure which
11543 also says whether this is a request for data. Renamed to
11544 servinfo. All users changed.
11545 (handle_request): Much simpler test whether we should search the cache.
11546
49ee6d79
UD
11547 * nscd/connections.c (handle_request): Fix thinko in selinux test
11548 invocation.
11549
4e35ef2c
UD
11550 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11551 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11552 it before getting dl_load_lock and then relock.
11553 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11554 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11555 case we unlocked the scope.
11556 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11557 _dl_lookup_symbol_x in case we locked the scope.
11558 (_dl_profile_fixup): Likewise.
11559 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11560 set DL_LOOKUP_SCOPE_LOCK.
11561
23691ab2
UD
115622007-01-13 Ulrich Drepper <drepper@redhat.com>
11563
fb453d08
UD
11564 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11565 CFLAGS-getsrvbynpt_r.c.
11566 * nscd/getsrvbynm_r.c: New file.
11567 * nscd/getsrvbypt_r.c: New file.
11568 * nscd/nscd_getserv_r.c: New file.
11569 * nscd/servicescache.c: New file.
11570 * nscd/Makefile (routines): Add nscd_getserv_r.
11571 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11572 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11573 CFLAGS-getsrvbypt_r.c.
11574 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11575 table. Add entries for services database.
11576 * nscd/connections.c (serv2str): Mark as const. Add entries for
11577 services database.
11578 (dbs): Add .reset_res and servdb initialization.
11579 (serv2db): Add entries for services database.
11580 (verify_persistent_db): Accept dbnr == servdb.
11581 (invalidate_cache): Rewrite database name recognition to use a table.
11582 Call res_init() if .reset_res is set for database.
11583 (handle_request): Add code to handle services database.
11584 * nscd/gai.c: Don't define __getservbyname_r.
11585 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11586 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11587 (serv_response_header): Define.
11588 (struct datahead): Add serv_response_header member.
11589 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11590 using table.
11591 * nscd/nscd.conf: Add entries for services database.
11592 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11593 Declare serv_iov_disabled.
11594 Declare addservbyname, readdservbyname, addservbyport, and
11595 readdservbyport.
11596 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
11597 (find_db): Fix error message.
11598 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11599 __nscd_getservbyname_r, and __nscd_getservbyport_r.
11600 * nscd/selinux.c (perms): Add entries for services database.
11601 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11602 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11603
11604 * nscd/grpcache.c: Remove obsolete code. Cleanups.
11605 * nscd/hstcache.c: Likewise.
11606 * nscd/pwdcache.c: Likewise.
11607
b21fa963
UD
11608 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11609 computation of keylen.
11610
23691ab2
UD
11611 * include/string.h: Only redefine strndupa if this is really for
11612 libc code.
11613
8980796b
UD
116142007-01-12 Ulrich Drepper <drepper@redhat.com>
11615
4a4a65f2
UD
11616 * nscd/nscd_gethst_r.c: Minor cleanups.
11617
43397eaf
UD
11618 * nscd/connections.c (handle_request): Check selinux permissions
11619 for all non-admin commands.
11620
038a1a9f
UD
11621 * sysdeps/i386/i486/bits/atomic.h: Define
11622 atomic_compare_and_exchange_val_acq,
11623 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11624 using __sync_* built-ins for gcc >= 4.1.
11625 * sysdeps/x86_64/bits/atomic.h: Likewise.
11626
8980796b
UD
11627 [BZ #3840]
11628 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11629 and .oS.d files.
11630
32c075e1
JJ
116312007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11632
11633 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11634 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11635 (do_test): Check errno and exit(0) if ENOSYS.
11636
116372007-01-11 Jakub Jelinek <jakub@redhat.com>
11638
11639 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11640 thousands separators.
11641 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11642 * stdlib/tst-strtod4.c: New test.
11643
11644 [BZ #3855]
11645 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11646 hexadecimal digit should accept just the initial 0.
11647 * stdlib/tst-strtod2.c (tests): New variable.
11648 (do_test): Run several tests rather than just one.
11649
11bf311e 116502007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 11651
11bf311e
UD
11652 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11653 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 11654
11bf311e 116552007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 11656
11bf311e
UD
11657 * io/fts.c: Make sure fts_cur is always valid after return from
11658 fts_read.
11659 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 11660
11bf311e 116612006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 11662
11bf311e
UD
11663 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11664 (R_MIPS_NUM): Bump by 1.
32c075e1 11665
11bf311e 116662007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 11667
11bf311e
UD
11668 * posix/execvp.c: Include alloca.h.
11669 (allocate_scripts_argv): Renamed to...
11670 (scripts_argv): ... this. Don't allocate buffer here nor count
11671 arguments.
11672 (execvp): Use alloca if possible.
11673 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11674 * posix/tst-vfork3.c: New test.
32c075e1
JJ
11675
116762007-01-03 Ulrich Drepper <drepper@redhat.com>
11677
11678 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 11679 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 11680
11bf311e 116812007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 11682
11bf311e
UD
11683 * posix/getconf.c: Update copyright year.
11684 * nss/getent.c: Likewise.
11685 * iconv/iconvconfig.c: Likewise.
11686 * iconv/iconv_prog.c: Likewise.
11687 * elf/ldconfig.c: Likewise.
11688 * catgets/gencat.c: Likewise.
11689 * csu/version.c: Likewise.
11690 * elf/ldd.bash.in: Likewise.
11691 * elf/sprof.c (print_version): Likewise.
11692 * locale/programs/locale.c: Likewise.
11693 * locale/programs/localedef.c: Likewise.
11694 * nscd/nscd.c (print_version): Likewise.
11695 * debug/xtrace.sh: Likewise.
11696 * malloc/memusage.sh: Likewise.
11697 * malloc/mtrace.pl: Likewise.
11698 * debug/catchsegv.sh: Likewise.
64a0aa0f 11699
11bf311e 117002006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 11701
11bf311e
UD
11702 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11703 attempts.
48576885 11704
11bf311e 117052006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 11706
11bf311e 11707 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 11708
33c6de58
UD
117092006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11710
11711 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11712 blacklist the group till after we look it up.
11713
fc242bef
UD
117142006-12-21 Ulrich Drepper <drepper@redhat.com>
11715
11716 * include/atomic.h (atomic_forced_read): New macro.
11717
11bf311e
UD
117182006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11719
11720 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11721
a12dcecc
UD
117222006-12-19 Jakub Jelinek <jakub@redhat.com>
11723
11bf311e
UD
11724 * nss/getXXbyYY_r.c: Include atomic.h.
11725 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11726 add atomic_write_barrier () in between.
11727
a12dcecc
UD
11728 * stdlib/Makefile (tests): Add tst-makecontext.
11729 * stdlib/tst-makecontext.c: New test.
11730
11731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11732 (__makecontext): Don't realign uc_mcontext.uc_regs.
11733
11bf311e 117342006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 11735
11bf311e
UD
11736 * elf/dl-support.c: Include dl-procinfo.h.
11737 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11738 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11739 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11740 Define.
11741 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11742 hardcoded constants.
11743 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11744 PPC_PLATFORM_* macros for array designators.
594d423a 11745
11bf311e 117462006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 11747
11bf311e
UD
11748 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11749 names to the beginning.
11750 (_dl_powerpc_platforms): Add "power6x".
11751 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11752 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11753 (_DL_PLATFORMS_COUNT): Increase.
11754 (_dl_string_platform): Handle power6x case.
11755 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11756 PPC_FEATURE_POWER6_EXT): Define.
11757 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 11758
5bcba0ed
UD
117592006-12-18 Jakub Jelinek <jakub@redhat.com>
11760
11761 [BZ #3747]
11762 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 11763 [-2^31 .. 2^31) range.
5bcba0ed
UD
11764 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11765 targets.
11766 * stdlib/tst-rand48-2.c: New test.
11767 * stdlib/Makefile (tests): Add tst-rand48-2.
11768
9e1444fc
UD
117692006-12-14 Jakub Jelinek <jakub@redhat.com>
11770
11771 * misc/tst-pselect.c (do_test): Fix sigblock argument.
11772
36775704
UD
117732006-12-14 Ulrich Drepper <drepper@redhat.com>
11774
11775 * misc/tst-pselect.c (do_test): Make sure the helper process is
11776 terminating when the test is aborted.
11777
1e88bd0f
UD
117782006-12-13 Ulrich Drepper <drepper@redhat.com>
11779
11bf311e
UD
11780 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11781 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11782 Handle relatime mount option.
11783
1e88bd0f
UD
11784 [BZ #2337]
11785 * libio/Makefile (tests): Add tst-setvbuf1.
11786 * libio/tst-setvbuf1.c: New file.
11787
117882006-12-08 Jakub Jelinek <jakub@redhat.com>
11789
11790 [BZ #2337]
11791 * libio/genops.c (__uflow): Fix a typo.
11792 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11793 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
11794 the narrow buffer size.
11795
117962006-11-24 Jakub Jelinek <jakub@redhat.com>
11797
11798 [BZ #2337]
11799 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11800 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11801 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11802 in _flags.
11803 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11804 _IO_wstr_finish): Likewise.
11805 * libio/wmemstream.c (open_wmemstream): Likewise.
11806 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11807 even for wide streams.
11808
11bf311e 118092006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 11810
11bf311e
UD
11811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11812 kernel-features.h.
11813
118142006-12-11 Ulrich Drepper <drepper@redhat.com>
11815
11816 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11817 separators also if no non-zero digits found.
11818 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 11819
d117c1ce
UD
118202006-12-09 Ulrich Drepper <drepper@redhat.com>
11821
f85fb97b
UD
11822 [BZ #3632]
11823 * include/features.h: Fix comment about default value for
11824 _POSIX_C_SOURCE.
11825
11bf311e
UD
11826 [BZ #3664]
11827 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11828 empty parsed strings.
11829 * stdlib/Makefile (tests): Add tst-strtod2.
11830 * stdlib/tst-strtod2.c: New file.
11831
11832 [BZ #3673]
11833 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11834 computation.
11835 * stdlib/Makefile (tests): Add tst-atof2.
11836 * stdlib/tst-atof2.c: New file.
11837
11838 [BZ #3674]
11839 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11840 correctly if removing trailing zero of hex-float.
11841 * stdlib/Makefile (tests): Add tst-atof1.
11842 * stdlib/tst-atof1.c: New file.
11843
a822d9f4
UD
118442006-12-09 Jakub Jelinek <jakub@redhat.com>
11845
11bf311e
UD
11846 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11847 Start searching for next comma at p rather than rest.
11848 * misc/Makefile (tests): Add tst-mntent2.
11849 * misc/tst-mntent2.c: New test.
11850
a822d9f4
UD
11851 * misc/getusershell.c (initshells): Check for integer overflows.
11852 Make strings buffer one bigger as fgets always succeeds when second
11853 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 11854 / as shell.
f0d5e1f6 11855
11bf311e 118562006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 11857
11bf311e
UD
11858 * malloc/memusage.c: Handle realloc with new size of zero and
11859 non-NULL pointer correctly.
11860 (me): Really write first record twice.
11861 (struct entry): Make format bi-arch safe.
11862 (dest): Write out more realloc statistics.
11863 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 11864
11bf311e 118652006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 11866
11bf311e 11867 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 11868
f0d5e1f6
UD
118692006-12-04 Jakub Jelinek <jakub@redhat.com>
11870
11871 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11872 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11873 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11874 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11875 ENOTTY.
11876 * io/Makefile: Add rules to build and run tst-ttyname_r test.
11877 * io/tst-ttyname_r.c: New test.
11878
11bf311e 118792006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 11880
11bf311e 11881 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 11882
11bf311e 118832006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 11884
11bf311e
UD
11885 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11886 jump table entries.
11887
118882006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
11889
11890 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11891 `clone' function to ensure proper unwinding stop of gdb.
11892 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11893
118942006-12-01 Ulrich Drepper <drepper@redhat.com>
11895
11896 * nscd/nscd.init: Remove obsolete and commented-out -S option
11897 handling.
11898
118992006-11-23 Jakub Jelinek <jakub@redhat.com>
11900
11901 [BZ #3514]
11902 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11903
11904 [BZ #3515]
11905 * manual/string.texi (strtok): Remove duplicate paragraph.
11906
119072006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11908
11909 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11910 libgcc not supporting `rflags' unwinding (register # >= 17).
11911
119122006-11-30 Jakub Jelinek <jakub@redhat.com>
11913
11914 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11915 succeeded.
11916
119172006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
11918 Jakub Jelinek <jakub@redhat.com>
11919 Jan Kratochvil <jan.kratochvil@redhat.com>
11920
11921 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11922 unwind information.
11923 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11924 'restore_rt' even in the 'signal' directory.
11925 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 11926
b1a758f3
UD
119272006-11-27 Jakub Jelinek <jakub@redhat.com>
11928
11929 [BZ #3559]
11930 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
11931 malloc crashed. Don't allocate memory unnecessarily in each
11932 loop.
b1a758f3 11933
11bf311e 119342006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 11935
11bf311e 11936 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 11937
11bf311e 119382006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 11939
11bf311e 11940 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 11941
11bf311e 119422006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 11943
11bf311e
UD
11944 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11945 __sysconf only after having tried to call getgroups32.
36c0a636 11946
11bf311e 119472006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 11948
11bf311e
UD
11949 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11950 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 11951
11bf311e 119522006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 11953
11bf311e
UD
11954 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11955 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11956 (signmask): Add .size directive.
11957 (othermask): Add .type directive.
bef8927a 11958
11bf311e 119592006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 11960
11bf311e 11961 * po/nl.po: Update from translation team.
854d1124 11962
11bf311e 11963 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 11964
11bf311e 119652006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 11966
11bf311e
UD
11967 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11968 to first_unused after parsing :include: file.
5c2af134 11969
32c075e1 119702006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 11971
11bf311e
UD
11972 * timezone/africa: Update from tzdata2006o.
11973 * timezone/antarctica: Likewise.
11974 * timezone/asia: Likewise.
11975 * timezone/australasia: Likewise.
11976 * timezone/backward: Likewise.
11977 * timezone/europe: Likewise.
11978 * timezone/iso3166.tab: Likewise.
11979 * timezone/northamerica: Likewise.
11980 * timezone/southamerica: Likewise.
11981 * timezone/zone.tab: Likewise.
11982
11983 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11984 on machines with 64-bit time_t.
11985
11986 * timezone/checktab.awk: Update from tzcode2006o.
11987 * timezone/ialloc.c: Likewise.
11988 * timezone/private.h: Likewise.
11989 * timezone/scheck.c: Likewise.
11990 * timezone/tzfile.h: Likewise.
11991 * timezone/tzselect.ksh: Likewise.
11992 * timezone/zdump.c: Likewise.
11993 * timezone/zic.c: Likewise.
11994
11995 [BZ #3483]
11996 * elf/ldconfig.c (main): Call setlocale and textdomain.
11997 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11998
11999 [BZ #3480]
12000 * manual/argp.texi: Fix typos.
12001 * manual/charset.texi: Likewise.
12002 * manual/errno.texi: Likewise.
12003 * manual/filesys.texi: Likewise.
12004 * manual/lang.texi: Likewise.
12005 * manual/maint.texi: Likewise.
12006 * manual/memory.texi: Likewise.
12007 * manual/message.texi: Likewise.
12008 * manual/resource.texi: Likewise.
12009 * manual/search.texi: Likewise.
12010 * manual/signal.texi: Likewise.
12011 * manual/startup.texi: Likewise.
12012 * manual/stdio.texi: Likewise.
12013 * manual/sysinfo.texi: Likewise.
12014 * manual/syslog.texi: Likewise.
12015 * manual/time.texi: Likewise.
12016 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12017
12018 [BZ #3465]
12019 * sunrpc/clnt_raw.c: Minimal message improvements.
12020 * sunrpc/pm_getmaps.c: Likewise.
12021 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12022 * nis/nis_print_group_entry.c: Likewise.
12023 * locale/programs/repertoire.c: Likewise.
12024 * locale/programs/charmap.c: Likewise.
12025 * malloc/memusage.sh: Likewise.
12026 * elf/dl-deps.c: Likewise.
12027 * locale/programs/ld-collate.c: Likewise.
12028 * libio/vswprintf.c: Likewise.
12029 * malloc/memusagestat.c: Likewise.
12030 * sunrpc/auth_unix.c: Likewise.
12031 * sunrpc/rpc_main.c: Likewise.
12032 * nscd/cache.c: Likewise.
12033 * locale/programs/repertoire.c: Unify output messages.
12034 * locale/programs/charmap.c: Likewise.
12035 * locale/programs/ld-ctype.c: Likewise.
12036 * locale/programs/ld-monetary.c: Likewise.
12037 * locale/programs/ld-numeric.c: Likewise.
12038 * locale/programs/ld-time.c: Likewise.
12039 * elf/ldconfig.c: Likewise.
12040 * nscd/selinux.c: Likewise.
12041 * elf/cache.c: Likewise.
12042 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12043
5c2af134
UD
12044 [BZ #3451]
12045 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12046 change atomic.
12047 (ceil): Likewise.
12048
11bf311e
UD
120492006-11-10 Jakub Jelinek <jakub@redhat.com>
12050
12051 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12052 if N is one bigger than return value.
12053 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12054 and l1 last arguments, if buf is defined, verify the return value
12055 equals to strlen (buf) and verify no byte beyond passed length
12056 is modified.
12057
120582006-11-10 Ulrich Drepper <drepper@redhat.com>
12059
12060 * po/sv.po: Update from translation team.
12061
37afcf79
UD
120622006-11-09 Ulrich Drepper <drepper@redhat.com>
12063
12064 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12065 noinline attribute.
12066
120672006-11-10 Jakub Jelinek <jakub@redhat.com>
12068
12069 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12070 noinline attribute.
12071
11bf311e
UD
12072 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12073 Use __new_sys_siglist instead of _sys_siglist_internal as
12074 second macro argument.
12075 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12076 strong_alias.
2692deea 12077
11bf311e
UD
120782006-11-09 Ulrich Drepper <drepper@redhat.com>
12079
12080 [BZ #3493]
12081 * posix/unistd.h (sysconf): Remove const attribute.
12082
12083 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12084 temporary or deprecated addresses.
12085 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12086
12087 * string/Makefile (tests): Add tst-strxfrm2.
12088 * string/tst-strxfrm2.c: New file.
12089
120902006-10-09 Jakub Jelinek <jakub@redhat.com>
12091
12092 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12093 rather than r->r_brk.
2692deea
UD
12094
120952006-11-08 Jakub Jelinek <jakub@redhat.com>
12096
11bf311e
UD
12097 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12098 optimization even if needed > n.
12099
2692deea
UD
12100 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12101 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12102 return false, otherwise return true.
12103 (cache_rpath): Return decompose_rpath return value.
12104
11bf311e
UD
121052006-11-07 Jakub Jelinek <jakub@redhat.com>
12106
12107 * include/libc-symbols.h (declare_symbol): Rename to...
12108 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12109 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12110 .size directive.
12111 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12112 changes.
12113 * sysdeps/gnu/siglist.c: Likewise.
12114
121152006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12116
12117 * sysdeps/powerpc/fpu/bits/mathinline.h
12118 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12119 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12120
121212006-11-05 Ulrich Drepper <drepper@redhat.com>
12122
12123 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12124 Update handling of cache descriptor 0x49 for new models.
12125 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12126 Likewise.
12127
9666e36c
UD
121282006-11-02 Jakub Jelinek <jakub@redhat.com>
12129
12130 * malloc/memusage.c (dest): Reset not_me back to false after
12131 printing statistics.
12132
11bf311e
UD
121332006-11-02 Ulrich Drepper <drepper@redhat.com>
12134
12135 * configure.in: Work around ld --help change and avoid -z relro
12136 test completely if the architecture doesn't care about security.
12137
121382006-11-01 Ulrich Drepper <drepper@redhat.com>
12139
12140 * po/sv.po: Update from translation team.
12141
121422006-10-31 Ulrich Drepper <drepper@redhat.com>
12143
12144 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12145 generate compatibility version.
12146
121472006-10-29 Ulrich Drepper <drepper@redhat.com>
12148
12149 * configure.in: Relax -z relro requirement a bit.
12150
12151 * po/sv.po: Update from translation team.
12152
121532006-10-29 Jakub Jelinek <jakub@redhat.com>
12154
12155 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12156 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12157 * elf/dl-close.c (_dl_close_worker): Likewise.
12158 * elf/dl-open.c (_dl_open_worker): Likewise.
12159 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12160
b2369ca3
UD
121612006-10-27 Ulrich Drepper <drepper@redhat.com>
12162
11bf311e
UD
12163 * configure.in: Require assembler support for visibility, compiler
12164 support for visibility and aliases, linker support for various -z
12165 options.
12166 * Makeconfig: Remove conditional code which now is unnecessary.
12167 * config.h.in: Likewise.
12168 * config.make.in: Likewise.
12169 * dlfcn/Makefile: Likewise.
12170 * elf/Makefile: Likewise.
12171 * elf/dl-load.c: Likewise.
12172 * elf/rtld.c: Likewise.
12173 * include/libc-symbols.h: Likewise.
12174 * include/stdio.h: Likewise.
12175 * io/Makefile: Likewise.
12176 * io/fstat.c: Likewise.
12177 * io/fstat64.c: Likewise.
12178 * io/fstatat.c: Likewise.
12179 * io/fstatat64.c: Likewise.
12180 * io/lstat.c: Likewise.
12181 * io/lstat64.c: Likewise.
12182 * io/mknod.c: Likewise.
12183 * io/mknodat.c: Likewise.
12184 * io/stat.c: Likewise.
12185 * io/stat64.c: Likewise.
12186 * libio/stdio.c: Likewise.
12187 * nscd/Makefile: Likewise.
12188 * stdlib/Makefile: Likewise.
12189 * stdlib/atexit.c: Likewise.
12190 * sysdeps/generic/ldsodefs.h: Likewise.
12191 * sysdeps/i386/dl-machine.h: Likewise.
12192 * sysdeps/i386/sysdep.h: Likewise.
12193 * sysdeps/i386/i686/memcmp.S: Likewise.
12194 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12195 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12196 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12197
12198 * Makerules: USE_TLS support is now default.
12199 * tls.make.c: Likewise.
12200 * csu/Versions: Likewise.
12201 * csu/libc-start.c: Likewise.
12202 * csu/libc-tls.c: Likewise.
12203 * csu/version.c: Likewise.
12204 * dlfcn/dlinfo.c: Likewise.
12205 * elf/dl-addr.c: Likewise.
12206 * elf/dl-cache.c: Likewise.
12207 * elf/dl-close.c: Likewise.
12208 * elf/dl-iteratephdr.c: Likewise.
12209 * elf/dl-load.c: Likewise.
12210 * elf/dl-lookup.c: Likewise.
12211 * elf/dl-object.c: Likewise.
12212 * elf/dl-open.c: Likewise.
12213 * elf/dl-reloc.c: Likewise.
12214 * elf/dl-support.c: Likewise.
12215 * elf/dl-sym.c: Likewise.
12216 * elf/dl-sysdep.c: Likewise.
12217 * elf/dl-tls.c: Likewise.
12218 * elf/ldconfig.c: Likewise.
12219 * elf/rtld.c: Likewise.
12220 * elf/tst-tls-dlinfo.c: Likewise.
12221 * elf/tst-tls1.c: Likewise.
12222 * elf/tst-tls10.h: Likewise.
12223 * elf/tst-tls14.c: Likewise.
12224 * elf/tst-tls2.c: Likewise.
12225 * elf/tst-tls3.c: Likewise.
12226 * elf/tst-tls4.c: Likewise.
12227 * elf/tst-tls5.c: Likewise.
12228 * elf/tst-tls6.c: Likewise.
12229 * elf/tst-tls7.c: Likewise.
12230 * elf/tst-tls8.c: Likewise.
12231 * elf/tst-tls9.c: Likewise.
12232 * elf/tst-tlsmod1.c: Likewise.
12233 * elf/tst-tlsmod13.c: Likewise.
12234 * elf/tst-tlsmod13a.c: Likewise.
12235 * elf/tst-tlsmod14a.c: Likewise.
12236 * elf/tst-tlsmod2.c: Likewise.
12237 * elf/tst-tlsmod3.c: Likewise.
12238 * elf/tst-tlsmod4.c: Likewise.
12239 * elf/tst-tlsmod5.c: Likewise.
12240 * elf/tst-tlsmod6.c: Likewise.
12241 * include/errno.h: Likewise.
12242 * include/link.h: Likewise.
12243 * include/tls.h: Likewise.
12244 * locale/global-locale.c: Likewise.
12245 * locale/localeinfo.h: Likewise.
12246 * malloc/arena.c: Likewise.
12247 * malloc/hooks.c: Likewise.
12248 * malloc/malloc.c: Likewise.
12249 * resolv/Versions: Likewise.
12250 * sysdeps/alpha/dl-machine.h: Likewise.
12251 * sysdeps/alpha/libc-tls.c: Likewise.
12252 * sysdeps/generic/ldsodefs.h: Likewise.
12253 * sysdeps/generic/tls.h: Likewise.
12254 * sysdeps/i386/dl-machine.h: Likewise.
12255 * sysdeps/ia64/dl-machine.h: Likewise.
12256 * sysdeps/ia64/libc-tls.c: Likewise.
12257 * sysdeps/mach/hurd/fork.c: Likewise.
12258 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12259 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12260 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12261 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12262 * sysdeps/s390/libc-tls.c: Likewise.
12263 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12264 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12265 * sysdeps/sh/dl-machine.h: Likewise.
12266 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12267 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12268 * sysdeps/x86_64/dl-machine.h: Likewise.
12269
131c4428
UD
12270 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12271 split out locking and parameter checking.
12272 (_dl_close): Call _dl_close_worker after locking and checking.
12273 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12274 _dl_close.
ffd0e1b7
UD
12275 * elf/Makefile: Add rules to build and run tst-thrlock.
12276 * elf/tst-thrlock.c: New file.
131c4428 12277
11bf311e
UD
12278 [BZ #3426]
12279 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12280 reality.
12281
b2369ca3
UD
12282 [BZ #3429]
12283 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 12284 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
12285 the asserts inside the lock region.
12286 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12287
11bf311e
UD
122882006-10-27 Jakub Jelinek <jakub@redhat.com>
12289
12290 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12291 argument.
12292 (_dl_lookup_symbol_x): Adjust caller.
12293
12294 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12295 _ns_global_scope.
12296 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12297
12298 * elf/dl-libc.c: Revert l_scope name changes.
12299 * elf/dl-load.c: Likewise.
12300 * elf/dl-object.c: Likewise.
12301 * elf/rtld.c: Likewise.
12302 * elf/dl-close.c (_dl_close): Likewise.
12303 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12304 always use __rtld_mrlock_{change,done}. Always free old scope list
12305 here if not l_scope_mem.
12306 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12307 change. Never free scope list here. Just __rtld_mrlock_lock before
12308 the lookup and __rtld_mrlock_unlock it after the lookup.
12309 * elf/dl-sym.c: Likewise.
12310 * include/link.h (struct r_scoperec): Remove.
12311 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12312 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12313
123142006-10-25 Ulrich Drepper <drepper@redhat.com>
12315
12316 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12317
123182006-10-18 Ulrich Drepper <drepper@redhat.com>
12319
12320 * configure.in: Disable building profile libraries by default.
12321
609cf614
UD
123222006-10-17 Jakub Jelinek <jakub@redhat.com>
12323
12324 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12325 as signed longs, check for x_base + pos overflow.
12326 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12327 * sunrpc/tst-xdrmem2.c: New test.
12328
11bf311e
UD
123292006-10-18 Ulrich Drepper <drepper@redhat.com>
12330
12331 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12332 _dl_lookup_symbol_x code.
12333
123342006-10-17 Jakub Jelinek <jakub@redhat.com>
12335
12336 * elf/dl-runtime.c: Include sysdep-cancel.h.
12337 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12338 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12339 instead of catomic_* macros.
12340 * elf/dl-sym.c: Include sysdep-cancel.h.
12341 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12342 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12343 * elf/dl-close.c: Include sysdep-cancel.h.
12344 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12345 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12346 * elf/dl-open.c: Include sysdep-cancel.h.
12347 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12348 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12349
123502006-10-17 Jakub Jelinek <jakub@redhat.com>
12351
12352 [BZ #3313]
12353 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12354 fastbin rather than end of fastbin array.
12355
123562006-10-18 Ulrich Drepper <drepper@redhat.com>
12357
12358 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12359 body macro.
12360 * sysdeps/x86_64/bits/atomic.h
12361 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12362 (catomic_decrement): Use correct body macro.
12363
123642006-10-17 Jakub Jelinek <jakub@redhat.com>
12365
12366 * include/atomic.h: Add a unique prefix to all local variables
12367 in macros.
12368 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12369
4a85a8ee
UD
123702006-10-16 Ulrich Drepper <drepper@redhat.com>
12371
12372 [BZ #3369]
12373 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12374 and 7.
12375
11bf311e
UD
123762006-10-14 Ulrich Drepper <drepper@redhat.com>
12377
12378 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12379
ff8d96be
UD
123802006-10-13 Ulrich Drepper <drepper@redhat.com>
12381
11bf311e
UD
12382 [BZ #3313]
12383 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12384 determine highest fast bin to consolidate, always look into all of
12385 them.
12386 (do_check_malloc_state): Only require for empty bins for large
12387 sizes in main arena.
12388
12389 * libio/stdio.h: Add more __wur attributes.
12390
ff8d96be
UD
12391 * elf/dl-minimal.c (realloc): Optimize last patch.
12392
90a0991a
UD
123932006-10-12 Richard Sandiford <richard@codesourcery.com>
12394
12395 [BZ #3352]
12396 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12397 and use memcpy() if it does.
ff8d96be 12398
11bf311e
UD
123992006-11-12 Andreas Jaeger <aj@suse.de>
12400
12401 [BZ #2510]
12402 * manual/search.texi (Hash Search Function): Clarify.
12403 (Array Search Function): Clarify.
12404
124052006-11-12 Joseph Myers <joseph@codesourcery.com>
12406
12407 [BZ #2830]
12408 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12409 shifting.
12410 * math/atest-exp2.c (read_mpn_hex): Likewise.
12411 * math/atest-sincos.c (main): Likewise.
12412
37fb7595
UD
124132006-10-11 Ulrich Drepper <drepper@redhat.com>
12414
11bf311e
UD
12415 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12416 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12417 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12418 version GLIBC_2.6.
12419 * Versions.def: Add GLIBC_2.6 for libc.
12420
46c38bd7
UD
12421 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12422
11bf311e
UD
12423 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12424
124252006-10-11 Jakub Jelinek <jakub@redhat.com>
12426
12427 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12428
12429 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12430
12431 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12432 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12433
124342006-10-11 Ulrich Drepper <drepper@redhat.com>
12435
12436 * include/atomic.c: Define catomic_* operations.
12437 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12438 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12439 * malloc/memusage.c: Likewise.
12440 * gmon/mcount.c: Likewise.
12441 * elf/dl-close.c: Likewise.
12442 * elf/dl-open.c: Likewise.
12443 * elf/dl-profile.c: Likewise.
12444 * elf/dl-sym.c: Likewise.
12445 * elf/dl-runtime.c: Likewise.
12446 * elf/dl-fptr.c: Likewise.
12447 * resolv/res_libc.c: Likewise.
12448
2a6ee549
UD
124492006-10-10 Ulrich Drepper <drepper@redhat.com>
12450
12451 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12452 components which lack them.
12453
12454 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12455 at least one entry consisting of the parameter concatenated with
12456 the domain.
12457
11bf311e 124582006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 12459
11bf311e
UD
12460 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12461 * sysdeps/mach/hurd/futimes.c: Likewise.
12462 * sysdeps/mach/hurd/lutimes.c: Likewise.
12463
124642006-10-09 Ulrich Drepper <drepper@redhat.com>
12465 Jakub Jelinek <jakub@redhat.com>
12466
12467 Implement reference counting of scope records.
12468 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12469 from the list in objects which remain. Always allocate new scope
12470 record.
12471 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12472 don't resize, allocate a new one.
12473 * elf/dl-runtime.c: Update reference counters before using a scope
12474 array.
12475 * elf/dl-sym.c: Likewise.
12476 * elf/dl-libc.c: Adjust for l_scope name change.
12477 * elf/dl-load.c: Likewise.
12478 * elf/dl-object.c: Likewise.
12479 * elf/rtld.c: Likewise.
12480 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12481 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12482 Add l_scoperec_lock.
12483 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12484 * sysdeps/generic/rtld-lowlevel.h: New file.
12485
12486 * include/atomic.h: Rename atomic_and to atomic_and_val and
12487 atomic_or to atomic_or_val. Define new macros atomic_and and
12488 atomic_or which do not return values.
12489 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12490 Various cleanups.
12491 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12492
12493 * po/sv.po: Update from translation team.
12494
124952006-10-07 Ulrich Drepper <drepper@redhat.com>
12496
12497 * Versions.def: Add GLIBC_2.6 to libpthread.
12498
12499 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12500 (versioned_symbol): Likewise.
12501 (compat_symbol): Likewise.
12502
12503 * po/tr.po: Update from translation team.
feb87ad1 12504
4df92d57
UD
125052006-10-06 Ulrich Drepper <drepper@redhat.com>
12506
11bf311e
UD
12507 * nis/Banner: Removed. It's been integral part forever and the
12508 author info is incomplete anyway.
12509 * libio/Banner: Likewise.
12510
4df92d57
UD
12511 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12512 code, make sure the nis_freeresult call doesn't crash and that the
12513 result is reported correctly.
12514
68361572
UD
125152006-09-27 Jakub Jelinek <jakub@redhat.com>
12516
12517 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12518 when callback is NULL.
12519
12520 * nis/Versions (libnss_nisplus): Add
12521 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12522 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12523 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12524 _nss_create_tablename): Rename to...
12525 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12526 ... these. No longer static.
12527 (internal_setgrent): Adjust users.
12528 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12529 Don't use locking around _nss_grp_create_tablename call.
12530 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12531
11bf311e
UD
125322006-10-06 Ulrich Drepper <drepper@redhat.com>
12533
12534 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12535
3a4e0609
UD
125362006-10-06 Andreas Jaeger <aj@suse.de>
12537
12538 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12539
125402006-10-06 Ulrich Drepper <drepper@redhat.com>
12541
12542 * po/pl.po: Update from translation team.
12543
12544 * nscd/nscd.c (main): Fix typo in message.
12545 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12546
97e57dee
UD
125472006-10-02 Jakub Jelinek <jakub@redhat.com>
12548
12549 [BZ #3291]
12550 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12551 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12552 (__sigprocmask): Define.
12553
768027a4
UD
125542006-10-02 Ulrich Drepper <drepper@redhat.com>
12555
12556 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12557 used.
12558
0b25a49a
UD
125592006-10-02 Jakub Jelinek <jakub@redhat.com>
12560
12561 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12562 in oldtotal and newtotal calculation.
12563 * nscd/nscd-client.h (struct mapped_database): Add datasize
12564 field.
12565 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12566 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12567 increased.
12568 (__nscd_cache_search): Add checks to make sure we never reference
12569 data beyond the current mapping.
12570
a1286745
UD
125712006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12572
d4ed7561
UD
12573 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12574 variables const to avoid compiler warnings.
12575
a1286745
UD
12576 * io/fts.c (fts_close): Remove redundant checks.
12577 (fts_build): Likewise.
12578 (fts_palloc): Likewise.
12579
12580 * manual/message.texi (Advanced gettext functions,
12581 Using gettextized software): Fix typos.
12582
f01e4069
UD
125832006-09-30 Ulrich Drepper <drepper@redhat.com>
12584
12585 * posix/glob.c (glob_in_dir): Add some comments and asserts to
12586 explain why there are no leaks.
12587
154619b5
UD
125882006-09-29 Ulrich Drepper <drepper@redhat.com>
12589
690c3947
UD
12590 * libio/wmemstream.c: Include <wchar.h>.
12591 * libio/bug-wmemstream1.c: Likewise.
12592 * libio/tst-wmemstream1.c: Likewise.
12593 * libio/tst-wmemstream2.c: Likewise.
12594
88cc61e8
UD
12595 * version.h (RELEASE): Bump to 2.5.
12596 * README: Regenerated.
12597
a70c18b0
UD
12598 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12599
154619b5
UD
12600 [BZ #3273]
12601 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12602 found no group members.
12603 Patch by Petr Baudis.
12604
126052006-09-29 Jakub Jelinek <jakub@redhat.com>
12606
12607 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12608 assert bootstrap_map.l_tls_modid is zero.
12609 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12610 if USE___THREAD.
12611
1c31aa79
UD
126122006-09-27 Ulrich Drepper <drepper@redhat.com>
12613
12614 * libio/stdio.h: Move open_wmemstream prototype to ...
12615 * wcsmbs/wchar.h: ... here.
12616
f1122ec3
UD
126172006-09-25 Jakub Jelinek <jakub@redhat.com>
12618
12619 [BZ #3252]
12620 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12621 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12622 __{,l}chown to handle the rest.
12623 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12624 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12625 __{,l}chown to handle the rest.
12626 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12627 i386/fchownat.c.
12628 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12629 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12630
12631 [BZ #3253]
12632 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12633 time, rather allocate increasingly bigger arrays of pointers, if
12634 possible with alloca, if too large with malloc.
12635
126362006-09-24 Jakub Jelinek <jakub@redhat.com>
12637
12638 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12639
12640 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12641
457b559e
UD
126422006-09-24 Ulrich Drepper <drepper@redhat.com>
12643
12644 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12645 home addresses.
12646 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12647 IFA_F_HOMEADDRESS flag for interfaces.
12648 * include/ifaddrs.h (struct in6addrinfo): Define
12649 in6ai_homeaddress.
12650
4a132246
UD
126512006-09-21 Jakub Jelinek <jakub@redhat.com>
12652
12653 [BZ #3225]
12654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12655 PTR_DEMANGLE3): Define.
12656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12657 PTR_DEMANGLE3): Likewise.
12658 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12659 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12660 Likewise.
12661 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12662
c69136ae
UD
126632006-09-20 Jakub Jelinek <jakub@redhat.com>
12664
12665 * po/libc.pot: Regenerated.
12666 * po/be.po: Updated.
12667 * po/ca.po: Likewise.
12668 * po/cs.po: Likewise.
12669 * po/da.po: Likewise.
12670 * po/de.po: Likewise.
12671 * po/el.po: Likewise.
12672 * po/en_GB.po: Likewise.
12673 * po/es.po: Likewise.
12674 * po/fi.po: Likewise.
12675 * po/fr.po: Likewise.
12676 * po/gl.po: Likewise.
12677 * po/hr.po: Likewise.
12678 * po/hu.po: Likewise.
12679 * po/ja.po: Likewise.
12680 * po/ko.po: Likewise.
12681 * po/nb.po: Likewise.
12682 * po/nl.po: Likewise.
12683 * po/pl.po: Likewise.
12684 * po/pt_BR.po: Likewise.
12685 * po/ru.po: Likewise.
12686 * po/rw.po: Likewise.
12687 * po/sk.po: Likewise.
12688 * po/sv.po: Likewise.
12689 * po/tr.po: Likewise.
12690 * po/zh_CN.po: Likewise.
12691 * po/zh_TW.po: Likewise.
12692
12693 [BZ #3137]
12694 * iconv/iconv_prog.c (main): Fix spelling in error message.
12695 * iconv/iconvconfig.c (main): Likewise.
12696 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12697 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12698 * locale/programs/localedef.c (main): Likewise.
12699 * locale/programs/repertoire.c (repertoire_read): Likewise.
12700 * timezone/zdump.c (main): Likewise.
12701 * nscd/connections.c (handle_request): Fix spelling in log message.
12702 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12703
83b3108c
UD
127042006-09-20 Ulrich Drepper <drepper@redhat.com>
12705
12706 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12707 interfaces.
12708
89210b4c
AJ
127092006-09-20 Andreas Jaeger <aj@suse.de>
12710
12711 * math/libm-test.inc (lrint_test_upward): Fix typo.
12712
6624dbc0
UD
127132006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12714
12715 [BZ #2592]
12716 * math/libm-test.inc (lrint_test_tonearest): New function.
12717 (lrint_test_towardzero): New function.
12718 (lrint_test_downward): New function.
12719 (lrint_test_upward): New function.
12720 (main): Run these new tests.
12721 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12722 of values near to 0.
12723 (two52): Use double not long double.
12724 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12725 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12726 (two23): Use float not double.
12727 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12728 (two23): Use float not double.
12729 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12730 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12731 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12732 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12733
60cb50c7
UD
127342006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12735
12736 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12737 Cast sp to unsigned long to avoid compiler warning.
12738 Use __makecontext_ret function instead of a trampoline on the stack.
12739 (__makecontext_ret): New function.
12740 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12741
33315ced
UD
127422006-09-19 Jakub Jelinek <jakub@redhat.com>
12743
12744 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12745 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12746 bits.
12747
1ee2ff20
UD
127482006-09-19 Ulrich Drepper <drepper@redhat.com>
12749
12750 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12751 sure no reference to the unloaded map's search list remains in the
12752 dependency's scope.
12753
127542006-09-16 Jakub Jelinek <jakub@redhat.com>
12755
12756 * elf/Makefile: Add rules to build and run unload7 test.
12757 * elf/unload7.c: New test.
12758 * elf/unload7mod1.c: New file.
12759 * elf/unload7mod2.c: New file.
12760
0466106e
UD
127612006-09-18 Jakub Jelinek <jakub@redhat.com>
12762
12763 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12764 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12765 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12766 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12767 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12768 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12769 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12770 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12771 PTRACE_GETEVENTMSG): Likewise.
12772 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12773 values.
12774
9c316a45
UD
127752006-09-17 Mike Frysinger <vapier@gentoo.org>
12776
0466106e
UD
12777 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12778 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12779 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12780 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
12781
127822006-09-16 Jakub Jelinek <jakub@redhat.com>
12783
12784 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12785 write '\0' to the fd.
12786 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12787 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12788 Change regs to unsigned long pointer from unsigned int, fix fscr
12789 offset.
12790
fb146a76
UD
127912006-09-14 Jakub Jelinek <jakub@redhat.com>
12792
12793 * io/Makefile (CFLAGS-fstatat.c): Set.
12794 (CFLAGS-fstatat64.c): Likewise.
12795 (CFLAGS-mknodat.c): Likewise.
12796
12797 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12798 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12799 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12800 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12801
4cd3633d
UD
128022006-09-14 Jakub Jelinek <jakub@redhat.com>
12803 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 12804
4cd3633d
UD
12805 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12806 names to the beginning. Rename "cell" to "cellbe".
12807 (_dl_powerpc_platforms): New.
12808 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12809 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12810 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12811 (_DL_HWCAP_PLATFORM): Define to new mask.
12812 (_dl_platform_string, _dl_string_platform): New functions.
12813 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12814 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12815
30aa5785
UD
128162006-09-12 Jakub Jelinek <jakub@redhat.com>
12817
12818 [BZ #2526]
12819 * README.libm: Fix a thinko in sqrt algorithm description.
12820
12821 [BZ #3143]
12822 * manual/string.texi (argz_delete): Fix prototype.
12823 Patch by <alpt@freaknet.org>.
12824
128252006-08-26 Joseph Myers <joseph@codesourcery.com>
12826
12827 [BZ #3138]
12828 * io/test-lfs.c (do_prepare): Give name_len type size_t.
12829 * io/tst-fcntl.c (do_prepare): Likewise.
12830 * posix/tst-exec.c (do_prepare): Likewise.
12831 * posix/tst-preadwrite.c (do_prepare): Likewise.
12832 * posix/tst-spawn.c (do_prepare): Likewise.
12833 * posix/tst-truncate.c (do_prepare): Likewise.
12834 * rt/tst-aio.c (do_prepare): Likewise.
12835 * rt/tst-aio64.c (do_prepare): Likewise.
12836 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12837 size_t.
12838
d26d01d1
UD
128392006-09-09 Ulrich Drepper <drepper@redhat.com>
12840
41aba3d7
UD
12841 [BZ #2821]
12842 * time/mktime.c (guess_time_tm): Fix overflow detection.
12843 * time/Makefile (tests): Add bug-mktime1.
12844 * time/bug-mktime1.c: New file.
12845
eaa51b47 12846 [BZ #3189, #3188]
d26d01d1 12847 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 12848 (mremap): Likewise.
d26d01d1 12849
ba40cc15
UD
128502006-09-07 Jakub Jelinek <jakub@redhat.com>
12851
2b6a801e
UD
12852 [BZ #1006]
12853 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12854 Ensure relocation doesn't clobber any bits outside of the
12855 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12856 R_SPARC_HI22 and R_SPARC_H44.
12857
469615bd
UD
12858 [BZ #2775]
12859 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12860 (long) (MINSIZE + nb - old_size) is positive.
12861
12862 * malloc/arena.c (grow_heap): When growing bail even if new_size
12863 is negative.
12864
ba40cc15
UD
12865 [BZ #3155]
12866 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12867 stack below r1.
12868
243b9ac1
UD
128692006-09-06 Jakub Jelinek <jakub@redhat.com>
12870
ba40cc15
UD
12871 * posix/regex_internal.c (re_string_reconstruct): Handle
12872 offset < pstr->valid_raw_len && pstr->offsets_needed case.
12873 Ensure no bytes read before raw_mbs array. Pass a saved copy of
12874 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12875 re_string_context_at.
12876 * posix/Makefile: Add rules to build and run bug-regex26 test.
12877 * posix/bug-regex26.c: New test.
12878
243b9ac1
UD
12879 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12880 rather than col_sym_free. Move seqp declaration earlier.
12881
12882 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12883
d052233c
UD
128842006-09-05 Jakub Jelinek <jakub@redhat.com>
12885
12886 * nscd/initgrcache.c (addinitgroupsX): Move any_success
12887 decl before first goto out.
12888
71213dc2
UD
128892006-09-04 Jakub Jelinek <jakub@redhat.com>
12890
12891 * Makerules (shlib.lds): If have-hash-style, put .hash section
12892 at the end of the RO segment.
12893
128942006-09-04 Ulrich Drepper <drepper@redhat.com>
12895
12896 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12897 style hash table format is used.
12898
03eeff83
UD
128992006-09-04 Jakub Jelinek <jakub@redhat.com>
12900
12901 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12902 randomization rather than before.
12903 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12904
b80770b2
UD
129052006-08-31 Jakub Jelinek <jakub@redhat.com>
12906
ba40cc15 12907 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
12908
12909 * malloc/malloc.c (_int_malloc): Use full list insert and not
12910 shortcut which assumes the list is empty for large requests
12911 too.
12912
12913 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12914
99ea5991
UD
129152006-08-30 Jakub Jelinek <jakub@redhat.com>
12916
12917 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12918 and offout arguments to the prototype.
12919 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12920 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12921 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12922 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12923 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12924 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12925 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12926 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12927
4004a0a5
UD
129282006-08-28 Ulrich Drepper <drepper@redhat.com>
12929
950398e1
UD
12930 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12931
4004a0a5
UD
12932 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12933 dlopen parameters.
12934
6e310111
UD
129352006-08-28 Jakub Jelinek <jakub@redhat.com>
12936
12937 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12938 only if herrno is NETDB_INTERNAL. Handle errors other than
12939 ERANGE outside of the loops, handle TRY_AGAIN.
12940
12941 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12942 if other's ctype category was missing.
12943 * locale/programs/ld-collate.c (collate_read): Return if
12944 copy_locale's collate category is missing.
12945
07014fca
UD
129462006-08-27 Ulrich Drepper <drepper@redhat.com>
12947
12948 [BZ #2684]
12949 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12950 arenas if allocation failed.
12951 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12952
71663747
UD
129532006-08-26 Ulrich Drepper <drepper@redhat.com>
12954
41999a1a
UD
12955 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12956 waste bins[0..1].
12957 (malloc_state): Reduce bins size by 2.
12958 (_int_malloc): Fix test for large enough buffer for early termination.
12959 When no unsorted block matches perfectly and an exiting block has
12960 to be split, use full list insert and not shortcut which assumes
12961 the list is empty.
12962
71663747
UD
12963 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12964 failure.
12965
93b53ca2
UD
129662006-08-24 Ulrich Drepper <drepper@redhat.com>
12967
f5a82772
UD
12968 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12969 do anything.
12970
2ac9ca73
UD
12971 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12972 symbol require exact match (these are PLTs).
12973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12974 (_dl_ppc64_addr_sym_match): Likewise.
12975
93b53ca2
UD
12976 [BZ #2683]
12977 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12978 If symbol has a value use it.
12979 * elf/tst-dladdr1.c: New file.
12980 * elf/Makefile: Add rules to build and run tst-addr1.
12981
7463d5cb
UD
129822006-08-24 Jakub Jelinek <jakub@redhat.com>
12983
12984 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12985 keeps failing and heap growth or new heap creation isn't
12986 successful either.
12987 * malloc/tst-malloc.c (main): Add new tests.
12988
542a6f62
UD
129892006-08-24 Ulrich Drepper <drepper@redhat.com>
12990
12991 [BZ #2734]
12992 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12993 as in the x86-64 code to use bswap.
12994
aa2c6b6d
UD
129952006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12996
24982798 12997 [BZ #2680]
aa2c6b6d
UD
12998 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12999 __USE_UNIX98.
13000 * posix/bits/unistd.h: Likewise.
13001
59776aef
UD
130022006-05-15 Mike Frysinger <vapier@gentoo.org>
13003
13004 [BZ #2751]
13005 * string/strchr.c: Add cast to avoid warning.
13006
e404fb16
UD
130072006-08-21 Ulrich Drepper <drepper@redhat.com>
13008
13009 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 13010 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
13011 limit is needed to avoid the exploding of the address space
13012 requirement for secondary heaps.
13013 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13014 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13015
376e973a
UD
130162006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13017
13018 [BZ #3018]
13019 * Makerules (depfiles): Handle extra-test-objs the same as
13020 extra-objs.
13021 (common-mostlyclean): Likewise.
13022 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13023 instead.
13024 * elf/Makefile (extra-objs): Likewise.
13025 * stdlib/Makefile (extra-objs): Likewise.
13026
240c62a7
UD
130272006-08-14 Eric Blake <ebb9@byu.net>
13028
13029 [BZ #3044]
13030 * misc/error.h: Assume C89 or better.
13031 * misc/error.c: Likewise.
13032
3997b7c4
UD
130332006-08-21 Ulrich Drepper <drepper@redhat.com>
13034
13035 [BZ #3040]
13036 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13037 __ASSUME_ATFCTS is defined.
13038
8a6537b0
UD
130392006-08-19 Ulrich Drepper <drepper@redhat.com>
13040
72320021
UD
13041 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13042 to sort in each call.
13043
ed3691ba
UD
13044 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13045 is empty simply return and use next service.
13046 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13047
8a6537b0
UD
13048 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13049 tells us when not finding a charmap file is an error.
13050 * locale/programs/charmap.h: Adjust charmap_read prototype.
13051 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13052 cannot find a charmap.
13053 * locale/programs/localedef.c (main): Adjust charmap_read call.
13054
ad2a3c07
UD
130552006-08-15 Jakub Jelinek <jakub@redhat.com>
13056
13057 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13058 sysdeps/posix/pause.c implementation instead.
13059
130602006-08-09 Jakub Jelinek <jakub@redhat.com>
13061
13062 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13063 to EPERM.
13064
f17efcb4
UD
130652006-08-13 Andreas Schwab <schwab@suse.de>
13066
13067 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13068 Don't clobber caller's LRSAVE.
13069 (_dl_prof_resolve): Likewise.
13070
107b8a92
UD
130712006-08-14 Ulrich Drepper <drepper@redhat.com>
13072
13073 [BZ #1996]
13074 * libio/memstream.c (open_memstream): Allocate initial buffer with
13075 calloc.
13076 * libio/wmemstream.c (open_wmemstream): Likewise.
13077 * libio/strops.c: Pretty printing.
13078 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13079 (enlarge_userbuf): New function.
13080 (_IO_str_seekoff): Call it if seek position is larger than current
13081 buffer.
13082 * libio/wstrops.c: Likewise.
13083 * libio/vasprintf.c: Add comment as to why we do not have to use
13084 calloc instead of malloc to allocate initial buffer.
13085 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13086 * libio/bug-memstream1.c: New file.
13087 * libio/bug-wmemstream1.c: New file.
13088
fa3ac53f
UD
130892006-08-13 Ulrich Drepper <drepper@redhat.com>
13090
89993734
UD
13091 * libio/wstrops.c: Remove dead macro definitions and comments.
13092 * libio/strops.c: Likewise.
13093
fa3ac53f
UD
13094 [BZ #2764]
13095 * login/utmpname.c (__utmpname): Remove unnecessary test.
13096
f99ed760
UD
130972006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13098
13099 [BZ #2832]
13100 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13101 0s from integers.
13102
131032006-08-13 Ulrich Drepper <drepper@redhat.com>
13104
13105 [BZ #2987]
13106 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13107 for CPU clocks.
13108 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13109 setting of CPU clocks.
13110
4c3f81d0
UD
131112006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13112
13113 [BZ #2841]
13114 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13115 since C99 requires the result to promote to 'int' when uint_least8_t
13116 and uint_least16_t promote to 'int'.
13117
cd8e60ce
UD
131182006-08-12 Ulrich Drepper <drepper@redhat.com>
13119
9a5c46e8
UD
13120 [BZ #3013]
13121 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13122 lenght of one output field, correct bitmask creation.
13123 * locale/programs/ld-time.c: Add alignment.
13124
cd8e60ce
UD
13125 [BZ #2997]
13126 * misc/error.c: Add space between program name and message if file
13127 name is missing.
13128
9a528884
UD
131292006-08-03 Eric Blake <ebb9@byu.net>
13130
13131 [BZ #2998]
13132 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13133
1d05c2fb
UD
131342006-08-09 Ulrich Drepper <drepper@redhat.com>
13135
0c1c6c6c
UD
13136 * malloc/memusagestat.c: Silence warnings.
13137
1d05c2fb
UD
13138 * malloc/malloc.c: Dynamically size mmap treshold if the program
13139 frees mmaped blocks.
13140 Patch by Valerie Henson and Arjan van de Ven.
13141
2d1e6277
UD
131422006-08-08 Jakub Jelinek <jakub@redhat.com>
13143
be7ffd91
UD
13144 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13145 __USE_GNU.
13146
2d1e6277
UD
13147 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13148 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13149 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13150 Only provide var definitions in strtol_l (or for *ull*
13151 in strtoll_l).
13152
13153 * stdio-common/bug16.c (tests): New array.
13154 (do_tests): Allow the first hexadecimal digit
13155 to be 1, 2, 4 or 8. Do 3 additional tests.
13156
13157 * sysdeps/s390/fpu/libm-test-ulps: Update.
13158
13159 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13160 fchownat syscall if available.
13161 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13162 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13163 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13164
d0ccde25
UD
131652006-08-07 Ulrich Drepper <drepper@redhat.com>
13166
13167 * nis/nis_xdr.c: Avoid some function calls.
13168
13a0293d 131692006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 13170 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
13171
13172 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13173 short cut if only one name component is stripped away.
13174
bd1ebae0
UD
131752006-08-07 Ulrich Drepper <drepper@redhat.com>
13176
13177 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 13178 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
13179 (first_shoot): Add search_parent_first parameter. Only if it is set
13180 search parent server first.
13181 If directory for table found through cold start cache is not the same
13182 as referenced in the cache, don't use it.
13183 (__nisfind_server): Take additional parameter. Pass it on to
13184 first_shoot.
13185 (__prepare_niscall): Adjust __nisfind_server call.
13186 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13187 * nis/nis_table.c: Adjust __nisfind_server call.
13188 * nis/nis_lookup.c: Likewise.
13189 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13190
f1762c0c
UD
131912006-08-03 Ulrich Drepper <drepper@redhat.com>
13192
fe710250
UD
13193 [BZ #2182]
13194 * math/s_cacosh.c: Return values from positive branch.
13195 * math/s_cacoshf.c: Likewise.
13196 * math/s_cacoshl.c: Likewise.
13197
a5852807
UD
13198 [BZ #2883]
13199 * sysvipc/sys/msg.h: Change return value to ssize_t.
13200 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
13201 * sysvipc/msgrcv.c: Likewise.
13202 * include/sys/msg.h: Likewise.
39571a13 13203
6c215a8d
UD
13204 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13205 test introduced in patch for bz #661.
39571a13 13206 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 13207 element for NEWGROUPS.
6c215a8d 13208
9c06eb66
UD
13209 [BZ #2908]
13210 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13211 'f', use '1' as leading digit not '\1'.
13212 * stdio-common/Makefile (tests): Add bug16.
13213 * stdio-common/bug16.c: New file.
13214
13215 [BZ #2914]
13216 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13217 and don't try to open it. The patch introducing the macro
13218 contained a bug and used the same file name as the new file
13219 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13220 this out completely.
13221
13222 [BZ #2926]
13223 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13224 Patch by Jerry James <Jerry.James@usu.edu>.
13225
f1762c0c
UD
13226 * rt/Makefile (tests): Add tst-clock2.
13227 * rt/tst-clock2.c: New file.
13228
13229 [BZ #2978]
13230 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13231 function and its parameters and pass it to new thread.
13232 (__gai_notify): Add support for alternative waiting for completion.
13233 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13234 waiting for completion.
13235 * resolv/getaddrinfo_a.c: Likewise.
13236 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13237 waiting for completion is used.
13238 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13239 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13240 * resolv/gai_error.c: Likewise.
13241 * resolv/gai_sigqueue.c: Likewise.
13242
83ae6b40
RM
132432006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13244
0e4e62fe 13245 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 13246 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 13247
82ee37c5
UD
132482006-06-23 Joseph Myers <joseph@codesourcery.com>
13249
13250 [BZ #2980]
f1762c0c 13251 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
13252
132532006-08-02 Ulrich Drepper <drepper@redhat.com>
13254
13255 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13256 walk them instead of the symbol table.
13257
7bb1b2c9
UD
132582006-08-01 Ulrich Drepper <drepper@redhat.com>
13259
f13bfdd0 13260 [BZ #2098]
fbbc73b3
UD
13261 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13262 status of NSS calls, not the number of returned entries.
13263
a4518922
UD
13264 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13265 request_key, keyctl.
7bb1b2c9 13266
b06e7e9a
UD
132672006-07-31 Ulrich Drepper <drepper@redhat.com>
13268
13269 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13270
f1227969
UD
132712006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13272
13273 * elf/tst-auditmod1.c: Fix typo in #error.
13274
82ae2712
UD
132752006-07-31 Ulrich Drepper <drepper@redhat.com>
13276
f1227969
UD
13277 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13278
82ae2712
UD
13279 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13280
a1260d92
UD
132812006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13282
13283 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 13284 that the directory is empty even on non-POSIX filesystems.
a1260d92 13285
d2de41fe
UD
132862006-07-31 Ulrich Drepper <drepper@redhat.com>
13287
13669f2c
UD
13288 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13289
d2de41fe
UD
13290 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13291 the backend NSS module. If backend setgrent call failed, don't have
13292 internal_setgrent fail. Just remember this until it is needed.
13293 * nis/nss_compat/compat-pwd.c: Likewise.
13294 * nis/nss_compat/compat-spwd.c: Likewise.
13295
b894c2ea
RM
132962006-07-30 Roland McGrath <roland@redhat.com>
13297
13298 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13299 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13300 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13301 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13302
13303 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13304 (nanosleep_not_cancel): New macro.
13305 (sigsuspend_not_cancel): new macro.
13306 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13307 (do_sigsuspend): Define as inline.
13308 (__sigsuspend): Always use do_sigsuspend.
13309 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13310 * include/signal.h: Declare __sigsuspend_nocancel.
13311 * sysdeps/posix/pause.c
13312 [! NO_CANCELLATION] (__pause_nocancel): New function.
13313
13314 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13315 * include/time.h (__nanosleep_nocancel): Likewise.
13316
c10d32c8
UD
133172006-07-30 Ulrich Drepper <drepper@redhat.com>
13318
13319 * locale/programs/localedef.c (add_to_readlist): Rename local
13320 variables to avoid confusion.
13321
13322 * locale/programs/charmap.c (charmap_read): Emit error message if
13323 charmap couldn't be found or read.
13324
6822f056
UD
133252006-07-28 Ulrich Drepper <drepper@redhat.com>
13326
d5ba53f9
UD
13327 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13328 __ASSUME_FUTEX_LOCK_PI.
13329 * include/time.h: Declare __nanosleep_nocancel.
13330 * include/unistd.h: Declare __pause_nocancel.
13331
6822f056
UD
13332 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13333 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13334 get the __stack_chk_fail_local definition when it's needed.
13335
3a975ff5
UD
133362006-07-26 Ulrich Drepper <drepper@redhat.com>
13337
6de1f625
UD
13338 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13339 * dlfcn/bug-atexit3.c: New file.
13340 * dlfcn/bug-atexit3-lib.cc: New file.
13341
3a975ff5
UD
13342 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13343 used when the namespace is not the base namespace.
13344
a92b1166
UD
133452006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13346
13347 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13348 (__new_exitfn): Bump it in every successful call.
13349 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13350 more exit handlers, call them right away.
13351 * stdlib/exit.h: Declare __new_exitfn_called.
13352
a08336fb
UD
133532006-07-25 Ulrich Drepper <drepper@redhat.com>
13354
bd3754dc
UD
13355 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13356 calling registered handler.
13357
a08336fb
UD
13358 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13359 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13360 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13361 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13362 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13363 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13364 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13365 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13366
871b9158
UD
133672006-07-10 Ulrich Drepper <drepper@redhat.com>
13368
13369 * elf/dl-lookup.c (dl_new_hash): New functions.
13370 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13371 value here. Compute new-style hash value. Pass new hash value
13372 and reference to variable with the old value to do_lookup_x.
13373 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13374 old-style hash table.
13375 (_dl_debug_bindings): Pass new hash value and reference to variable
13376 with the old value to do_lookup_x.
13377 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13378 new-style hash value and change old-style hash value parameter to
13379 be a reference. Reoganize functions to determine whether
13380 new-style hash table is available. Only fall back on old-style
13381 table. If old-style hash value is needed, compute it here.
13382 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13383 entry.
13384 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13385 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13386 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13387 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13388 * Makeconfig: If linker supports --hash-style option add it to all
13389 linker command lines to build DSOs.
13390 * config.make.in: Define have-hash-style.
13391 * configure.in: Test whether linker supports --hash-style option.
13392
13393 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13394 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13395
a1f0de82
UD
133962006-06-27 Ulrich Drepper <drepper@redhat.com>
13397
361a3706
UD
13398 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13399 auditing.
13400
a1f0de82
UD
13401 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13402 RPATH of main map twice.
13403
4259230f
UD
134042006-06-22 Ulrich Drepper <drepper@redhat.com>
13405
13406 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13407 look further, return original strings.
13408 (_nl_find_msg): Do not return found translation if the conversion
13409 failed. Either signal the string is unusable or that something went
13410 wrong and the original should be used.
13411
134122006-06-21 Ulrich Drepper <drepper@redhat.com>
13413
13414 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13415
f9b7a98b
UD
134162006-06-14 Jakub Jelinek <jakub@redhat.com>
13417
13418 [BZ #2766]
13419 * misc/insremque.c (insque): Handle prev == NULL.
13420 * misc/Makefile (tests): Add tst-insremque.
13421 * misc/tst-insremque.c: New test.
13422
ac55a25b
UD
134232006-06-17 Ulrich Drepper <drepper@redhat.com>
13424
13425 [BZ #2792]
13426 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13427 conflict with DL_DST_REQUIRED.
13428
02f366b3
UD
134292006-06-16 Ulrich Drepper <drepper@redhat.com>
13430
13431 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13432 match what Solaris does.
13433
9009e8f8
UD
134342006-06-04 Ulrich Drepper <drepper@redhat.com>
13435
1b8373f4
UD
13436 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13437 local_setegid instead of seteuid and setegid.
13438 * sysdeps/generic/local-setxid.h: New file.
13439 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13440
7231452e
UD
13441 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13442
9009e8f8 13443 * string/Makefile (tests): Add bug-envz1.
02f366b3 13444 * string/bug-envz1.c: New file.
9009e8f8 13445
33e63e79
UD
134462006-06-02 Jakub Jelinek <jakub@redhat.com>
13447
13448 * posix/regex_internal.c (re_string_skip_chars): If no character has
13449 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13450 to the byte which couldn't be converted.
13451 (re_string_reconstruct): Don't clear valid_raw_len before calling
13452 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13453 tip_context using re_string_context_at.
13454 * posix/Makefile: Add rules to build and run bug-regex25 test.
13455 * posix/bug-regex25.c: New test.
13456
fdc02996
UD
134572006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13458
13459 [BZ #2703]
13460 * string/envz.c (envz_strip): Correct erroneously reversed src
13461 and dest parameters to memmove() invocation.
13462
902c4291
UD
134632006-05-30 Jakub Jelinek <jakub@redhat.com>
13464
13465 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13466 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13467 to make sure the database has been already invalidated.
13468 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13469 after the cache has been invalidated. Use pthread_mutex_lock rather
13470 than pthread_mutex_trylock if fd != -1.
13471 * nscd/connections.c (invalidate_cache): Add fd argument, write
13472 response to fd if not calling prune_cache, pass fd to prune_cache.
13473 (handle_request): Adjust invalidate_cache caller.
13474 (nscd_run): Pass -1 as fd to prune_cache.
13475
ecc68568
UD
134762006-05-30 Ulrich Drepper <drepper@redhat.com>
13477
13478 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13479 the correct place.
13480
9636a217
UD
134812006-05-29 Ulrich Drepper <drepper@redhat.com>
13482
13483 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13484 * nscd/cache.c (prune_cache): Take prunelock before starting the
13485 work. Just return in case it is already taken.
cabfcde1 13486 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 13487
6bcb494a
UD
134882006-05-25 Ulrich Drepper <drepper@redhat.com>
13489
672d5a63 13490 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 13491 copying. No need to allocate new array for group members. Just
672d5a63
UD
13492 move the pointers and update the size.
13493
1663b44f
UD
13494 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13495 Avoid memory leak in case realloc fails. Simplification for
13496 better code generation.
13497
13498 Avoid deprecation warning because of libc_hidden_proto for
13499 inet6_option_alloc.
13500 * inet/inet6_option.c (option_alloc): Renamed from
13501 inet6_option_alloc. Made static.
9636a217 13502 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
13503 (inet6_option_append): Call option_alloc.
13504 * include/netinet/in.h: Remove libc_hidden_proto for
13505 inet6_option_alloc.
13506
6bcb494a
UD
13507 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13508 for cleanup when cb!=NULL [Coverity CID 233].
13509
aec6b246
UD
135102006-05-24 Ulrich Drepper <drepper@redhat.com>
13511
07bfff20
UD
13512 [BZ #2693]
13513 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13514 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13515 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13516 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13517 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13518 and inet6_rth_getaddr.
13519 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13520 array.
13521 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13522 Mark inet6_option_* interfaces as deprecated.
13523 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13524 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13525 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13526 inet6_rth_segments, and inet6_rth_getaddr.
13527 * inet/inet6_opt.c: New file.
13528 * inet/inet6_rth.c: New file.
13529
13530 * inet/netinet/icmp6.h: Pretty printing.
13531
aec6b246
UD
13532 [BZ #2683]
13533 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13534
2d571cd1
UD
135352006-05-23 Ulrich Drepper <drepper@redhat.com>
13536
062e719b
UD
13537 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13538 doing it all here. When server does not know the answer do not
13539 fail immediate, try parent first.
13540
2d571cd1
UD
13541 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13542 overflow test.
13543
a17fa610
UD
135442006-05-20 Ulrich Drepper <drepper@redhat.com>
13545
13546 * nis/nis_call.c (__prepare_niscall): New function. Split out
13547 from __do_niscall.
13548 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13549 and exported.
13550 (__follow_path): New function. Split out from nis_list.
13551 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13552 _xdr_nis_result.
13553 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13554 _xdr_nis_result.
13555 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13556 and __follow_path.
13557 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13558 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13559 from libnsl for version GLIBC_PRIVATE.
13560 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13561 Remove entry parameter from _nss_nisplus_parse_pwent and
13562 _nss_nisplus_parse_grent.
13563 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13564 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13565 again. Rewrite getpwent handling to not use nis_first_entry and
13566 nis_next_entry. Roll out own niscall handling.
13567 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13568
13569 * sunrpc/xdr_rec.c: Fix typo in comment.
13570
429bb183
UD
135712006-05-19 Ulrich Drepper <drepper@redhat.com>
13572
1d4f062a
UD
13573 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13574 handling.
13575
101cc598
UD
13576 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13577 to allocate memory for my_pollfd. Better initialization of
13578 cb_is_running. Use TEMP_FAILURE_RETRY.
13579
f50fa10c
UD
13580 * malloc/memusage.sh (memusageso): Add quotes.
13581 (memusagestat): Likewise.
13582 * debug/xtrace.sh (pcprofileso): Likewise.
13583 (pcprofiledump): Likewise.
13584 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13585 replacement.
13586 * malloc/Makefile ($(objpfx)memusage): Likewise.
13587
882bfe73
UD
13588 * nis/nis_callback.c (__nis_create_callback): Calls to
13589 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
13590 asprintf call fails.
13591
429bb183
UD
13592 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13593 no uninitialized memory is passed to sendto.
13594
f90de831
UD
135952006-05-18 Ulrich Drepper <drepper@redhat.com>
13596
13597 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13598 of snprintf+strdup. Handle OOM.
13599 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13600 cb->serv together. Remove now obsolete free calls.
13601 (__nis_destroy_callback): Remove now obsolete free call.
13602
a17fa610 136032006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
13604
13605 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13606 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13607 and ULA respectively). Set precedence for IPv4 address to 10 as
13608 defined in RFC3484 for preferring IPv6.
13609 * posix/gai.conf: Update to match the new default tables.
13610
758b9d7e
UD
136112006-05-18 Jakub Jelinek <jakub@redhat.com>
13612
13613 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13614 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13615 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13616 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13617
13618 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13619 Removed.
13620 (init_nss_interface): Remove initialization of these variables.
13621
136222006-05-18 Ulrich Drepper <drepper@redhat.com>
13623
13624 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13625 nis_free_directory forward to avoid duplication.
13626
388c779e
UD
136272006-05-17 Ulrich Drepper <drepper@redhat.com>
13628
5f1724bf
UD
13629 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13630 rec_dirsearch returning NULL.
13631 (first_shoot): Handle __nis_finddirectory returning NULL.
13632 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13633
388c779e
UD
13634 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13635 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13636
360d5cf4
UD
136372006-05-17 Jakub Jelinek <jakub@redhat.com>
13638
13639 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13640 pid changed.
13641
88dbff8c
UD
136422006-05-15 Ulrich Drepper <drepper@redhat.com>
13643
6f8a7dff
UD
13644 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13645
13646 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13647 * nscd/nscd_getgr_r.c: Likewise.
13648
13649 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13650
13651 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13652 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13653
13654 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13655
13656 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13657
360d5cf4 13658 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
13659
13660 * include/rpc/auth.h: Mark xdr_des_block_internal and
13661 xdr_opaque_auth_internal as hidden.
13662
13663 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13664 hidden.
13665
360d5cf4 13666 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 13667
02264020
UD
13668 * misc/getusershell.c (okshells): Don't use static initializers,
13669 do it dynamically.
13670
fd5ea238
UD
13671 * stdlib/fmtmsg.c (keywords): Change type of len element to
13672 uint32_t to not waste space on 64bit machines.
13673
9446614c
UD
13674 * locale/setlocale.c: Change _nl_category_names into a string.
13675 Add new _nl_category_name_idxs. Change all users.
13676 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13677 Declare _nl_category_name_idxs.
13678 * locale/findlocale.c: Adjust for _nl_category_names change.
13679 * locale/loadlocale.c: Likewise.
13680 * locale/newlocale.c: Likewise.
13681 * intl/dcigettext.c: Likewise.
13682
88dbff8c
UD
13683 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13684 (add_alias2): ...here. New function.
13685 (__gconv_read_conf): Simplify builtin alias handling.
13686 (builtin_aliases): Convert to string to avoid relocations.
13687 * iconv/gconv_builtin.h: Add comment about correct formatting.
13688
4442d58f
UD
136892006-05-15 Jakub Jelinek <jakub@redhat.com>
13690
13691 * resolv/res_debug.c (loc_ntoa): Make error const.
13692
136932006-05-14 Andreas Schwab <schwab@suse.de>
13694
13695 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13696
136972006-05-12 Jakub Jelinek <jakub@redhat.com>
13698
13699 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13700 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13701 sizeof (cpu_set_t).
13702
a51752b6
UD
137032006-05-11 Ulrich Drepper <drepper@redhat.com>
13704
5d3fd1f6
UD
13705 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13706
08cfb839
UD
13707 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13708
4b481a15
UD
13709 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13710 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13711
13712 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13713 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13714
13715 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13716 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13717 xdr_cback_data.
13718
13719 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13720 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13721 xdr_ypupdate_args.
13722
13723 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13724 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13725
13726 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13727 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13728
13729 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13730 * include/rpcsvc/nis_callback.h: New file.
13731
13732 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13733 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13734
13735 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13736 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13737
13738 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13739 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13740
13741 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13742 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13743
b1ad49c6
UD
13744 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13745 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13746 xdr_ypdelete_args.
13747
cd5f7829
UD
13748 * nis/nis_xdr.h: Mark all functions as hidden. Remove
13749 __BEGIN_DECLS and __END_DECLS, the header is not installed.
13750
a51752b6
UD
13751 * nis/nis_error.c: Remove table of strings. Use position
13752 independent mechanism.
13753 * nis/nis_error.h: New file.
13754
3d237e42
UD
137552006-05-11 Jakub Jelinek <jakub@redhat.com>
13756
13757 * locale/programs/ld-time.c (time_finish): If wide era name or
13758 format aren't provided, set both wname and wformat to L"".
13759
d6c159fe
UD
137602006-05-10 Ulrich Drepper <drepper@redhat.com>
13761
0088b04e
UD
13762 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13763 results if the call was succesful.
13764
d6c159fe
UD
13765 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13766
13767 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13768 as hidden.
13769
5c5acdf0
UD
137702006-05-10 Jakub Jelinek <jakub@redhat.com>
13771
13772 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13773
16d620db
UD
137742006-05-10 Ulrich Drepper <drepper@redhat.com>
13775
13776 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13777 caller makes sure this is not the case.
13778 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
13779
e7c8359e
UD
137802006-05-09 Ulrich Drepper <drepper@redhat.com>
13781
ecf359c6
UD
13782 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13783 calls.
13784
400cc70a
UD
13785 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13786 [Coverity CID 229, 230]
13787
13788 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13789 DGETTEXT calls.
13790 (hol_help): Likewise. [Coverity CID 226, 227]
13791
13792 * string/argz-replace.c (__argz_replace): Unconditionally call
13793 free on SRC. [Coverity CID 225]
13794
13795 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13796 the return value of __nis_default_owner and __nis_default_group,
13797 it has been especially allocated. [Coverity CID 224]
13798
51e59260
UD
13799 * nis/nis_defaults.c (searchXYX): New functions. Used by both
13800 searchgroup and searchowner. Significantly simplified.
13801 (__nis_default_owner): Remove duplication. Do not locally copy the
13802 string before duplicating it.
13803 (__nis_default_group): Likewise.
13804
13805 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13806 we must clear the variable before calling __nisfind_server.
13807
13808 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13809 nis_getnames. [Coverity CID 223]
13810
13811 * locale/programs/locfile.c (locfile_read): Use alloca instead of
13812 xmalloc to allocate local repertoire name. [Coverity CID 222]
13813
13814 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13815 allocate memory for the input to add_bytes. [Coverity CID 221]
13816
e7c8359e 13817 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 13818 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
13819
13820 * posix/getconf.c (print_all): Free confstr data after printing.
13821 [Coverity CID 218]
13822
13823 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13824 list allocation fails. [Coverity CID 215]
13825
13826 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13827 [Coverity CID 213]
13828
13829 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13830 string is NULL. [Coverity CID 212]
13831 * argp/Makefile: Add rules to build and run bug-argp1.
13832 * argp/bug-argp1.c: New file.
13833
13834 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13835 end of string.
13836 * stdlib/canonicalize.c (__realpath): Likewise.
13837
13838 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13839 pointer. [Coverity CID 206]
13840
13841 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13842 in statically linked code.
13843 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13844 statically built code, be prepared to have no link map.
13845 [Coverity CID 205]
13846
13847 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13848 dgettext calls. [Coverity CID 204]
13849
13850 * argp/argp-help.c (struct uparams): Remove valid member. Change
13851 the one user.
13852 (uparam_names): Reduce size. Avoid relative relocations.
13853 Moved to read-only segment.
13854 (fill_in_uparams): Update for new layout.
13855
13856 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13857 assumed to always be != NULL. [Coverity CID 202]
13858
13859 * argp/argp-help.c (hol_entry_help): Remove some dead code
13860 [Coverity CID 200].
13861
13862 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13863 away a few more unconditional yperr2nss calls.
13864 (_nss_nis_getservbyname_r): Likewise.
13865
acf82eaf
UD
138662006-05-06 Ulrich Drepper <drepper@redhat.com>
13867
4461cf48
UD
13868 * sysdeps/generic/ldsodefs.h: Remove support for non-core
13869 architectures.
13870
b74a8c7f
UD
13871 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13872 that unused memory passed to sendto is nevertheless initialized.
13873
acb98cb5
UD
13874 [BZ #2499]
13875 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13876 possibly unaligned memory accesses.
13877
bce16467
UD
13878 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13879 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13880 and __putlong respectively. Correct buffer overflow check for
13881 NS_NOTIFY_OP.
13882
13883 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13884
8e45b1ac
UD
13885 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13886 (send_dg): Rewrite error handling to be more compact and avoid
13887 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
13888
697e1628
UD
13889 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13890
13891 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13892 instead of ns_get16.
13893 (res_queriesmatch): Likewise. Minor optimization.
13894
acf82eaf
UD
13895 [BZ #2499]
13896 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13897 __libc_res_nsend might reallocate the buffer for the answer. In
13898 this case we have to reload the HP pointer.
13899
7bfee654
UD
139002006-05-05 Ulrich Drepper <drepper@redhat.com>
13901
694b49ca
UD
13902 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
13903 some branch prediction hints.
13904
7bfee654
UD
13905 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13906 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13907 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13908 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13909 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13910 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13911 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13912 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13913
308bb2d5
UD
139142006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
13915
13916 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13917 by a GOT relocation to make Scrt1.o position independent.
13918 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13919
13920 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13921 six system call parameters.
13922 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13923
cdb9c321
UD
139242006-05-05 Ulrich Drepper <drepper@redhat.com>
13925
13926 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13927 malloc&bzero.
13928
13929 * sunrpc/svc_udp.c (BZERO): Remove definition.
13930 (CALLOC): Define.
13931 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13932
13933 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
13934 (des_SPtrans): Use uint32_t type.
13935 (des_skb): Likewise.
13936
13937 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13938
fff04b32
UD
139392006-05-05 Jakub Jelinek <jakub@redhat.com>
13940
13941 [BZ #2509]
13942 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13943 on 32-bit arches.
13944
139452006-05-05 Ulrich Drepper <drepper@redhat.com>
13946
13947 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 13948 place where the iso639 array might be accessed beyond the limits.
fff04b32 13949
077a30bc 139502006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 13951
f2d5cf50
UD
13952 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13953 filling it for the first time.
13954
3e4370cf
UD
13955 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13956 Adjust all callers.
13957 Free res object content before returning.
13958
5e65a53d
UD
13959 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13960
48be3114
UD
13961 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13962 client->cl_auth.
13963
ca4fce0e
UD
13964 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13965 cleanup for initial thread, just the free call on TVP.
13966
077a30bc 13967 * nscd/gai.c (__getline): Define.
3b7a95fb 13968
5d37289a 13969
3f87d901 13970See ChangeLog.16 for earlier changes.