]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Fix aliasing problem in tst-sem11.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
3a83202d
UD
12009-10-30 Ulrich Drepper <drepper@redhat.com>
2
3005703b
UD
3 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
4
1c52a97a
UD
5 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
6
08c7ad97
UD
7 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
8 to avoid warning.
9 * stdlib/tst-strtoll.c (tests): Likewise.
10
3c2c4bf6
KS
11 [BZ #9986]
12 * time/strftime_l.c (__strftime_internal): Allow %OC.
13
3a83202d
UD
14 * misc/mkostemps.c: New file.
15 * misc/mkostemps64.c: New file.
16
de2cc809
AS
172009-10-30 Andreas Schwab <schwab@redhat.com>
18
2c5c07f5
AS
19 * locale/programs/locale-spec.c: Include <error.h> and
20 <libintl.h>.
21
de2cc809
AS
22 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
23
6cfe8609
RM
242009-10-28 Roland McGrath <roland@redhat.com>
25
26 * Makefile (dist-prepare): New target.
27 (tag-for-dist): Target removed.
28 (glibc-%.tar): Pattern rule removed.
29 (%.tar): New pattern rule, does simple use of git archive.
30 (dist-version): Remove variable definition.
31 (dist): Just depend on that. Add .tar.xz dependency.
32 If dist-version variable not set on command line, depend on
33 dist-prepare, re-invoke with dist-version set via git describe.
34
35 * Makerules (%.xz): New pattern rule.
36
31c759bf
AM
372009-10-28 Alan Modra <amodra@bigpond.net.au>
38
39 * elf/ifuncdep2.c: Include ifunc-sel.h.
40 (global): Delete.
41 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
42 * elf/ifuncmain1.c (global): Delete.
43 * elf/ifuncmain1vis.c: Likewise.
44 * elf/ifuncmain2.c: Likewise.
45 * elf/ifuncmain5.c: Likewise.
46 * elf/ifuncmod3.c: Likewise.
47 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
48 (foo_ifunc): Use ifunc_one.
49 * elf/ifuncmain7.c: Likewise.
50 * elf/ifuncmod1.c: Include ifunc-sel.h.
51 (global): Define protected var.
52 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
53 * elf/ifuncmod5.c: Likewise.
54 * sysdeps/generic/elf/ifunc-sel.h: New file.
55 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
56
77799d9d
AM
572009-07-30 Alan Modra <amodra@bigpond.net.au>
58
59 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
60 (R_PPC_REL16*): Correct comments.
61 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
62 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
63 R_PPC64_REL16_HA): Define.
64 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
65 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
66 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
67 Delete unused "reloc" param.
68 (__process_machine_rela): Handle R_PPC_IRELATIVE.
69 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
70 Delete "reloc" param.
71 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
72 R_PPC_IRELATIVE.
73 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
74 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
75 relocations.
76
77d2009-10-30 Ulrich Drepper <drepper@redhat.com>
7f3146e7 78
0d2f180d
UD
79 [BZ #10315]
80 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
81 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
82 UDP_ENCAP_L2TPINUDP.
83
7f3146e7
UD
84 [BZ #10349]
85 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
86 parameter, specifying length of prefix.
87 * stdio-common/tempname.c: Likewise.
88 * include/stdio.h: Adjust prototypes.
89 * libio/oldtmpfile.c: Adjust caller.
90 * misc/mkdtemp.c: Likewise.
91 * misc/mkostemp.c: Likewise.
92 * misc/mkostemp64.c: Likewise.
93 * misc/mkstemp.c: Likewise.
94 * misc/mkstemp64.c: Likewise.
95 * misc/mktemp.c: Likewise.
96 * stdio-common/tempnam.c: Likewise.
97 * stdio-common/tmpfile.c: Likewise.
98 * stdio-common/tmpnam.c: Likewise.
99 * stdio-common/tmpnam_r.c: Likewise.
100 * misc/mkstemps.c: New file.
101 * misc/mkstemps64.c: New file.
102 * stdlib/stdlib.h: Add prototypes.
103 * misc/Makefile (routines): Add mkstemps and mkstemps64.
104 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
105
204fcca2
UD
1062009-10-29 Ulrich Drepper <drepper@redhat.com>
107
471d4931
UD
108 * locale/iso-639.def: Add sml entry.
109
75ded9bc
UD
110 [BZ #10391]
111 * resolv/res_send.c (send_dg): Initialize resplen.
112
204fcca2
UD
113 [BZ #10446]
114 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
115 definition to the kernel's.
116 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
117
ea547a1a
AJ
1182009-08-18 Anders Johansson <ajohansson@novell.com>
119
120 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
121 offsets and record sizes in assert()s and response sending.
122 * nscd/grpcache.c: Likewise.
123 * nscd/hstcache.c: Likewise.
124 * nscd/initgrcache.c: Likewise.
125 * nscd/pwdcache.c: Likewise.
126
e0f471a1
UD
1272009-10-29 Ulrich Drepper <drepper@redhat.com>
128
5c53736b
SL
129 [BZ #10540]
130 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
131 /etc/hosts does not exist set errnop and herrnop appropriately.
132 Patch by Steve Langasek <vorlon@debian.org>.
133
ee6f3538
JS
134 [BZ #10553]
135 * malloc/malloc.c (malloc_info): Fix typos in format strings.
136 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
137
5debe363
UD
138 [BZ #10564]
139 * login/utmp_file.c (TIMEOUT): Increase to 10.
140
801720e6
UD
141 [BZ #10609]
142 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
143 for file names in case the syscall is not available.
144 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
145 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
146 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
147 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
148 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
149 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
150 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
151 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
152 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
153 * sysdeps/unix/sysv/linux/openat.c: Likewise.
154 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
155 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
156 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
157 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
158 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
159 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
160 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
161
584715c3
UD
162 [BZ #10643]
163 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
164 creation filed, remove the request from the 'requests' list and signal
165 the caller that the request is finished.
166
c240c3a5
JL
167 [BZ #10692]
168 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
169 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
170
1a9e411e
JL
171 [BZ #10713]
172 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
173 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
174
cc88b371
UD
175 [BZ #10780]
176 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
177 overflows the int return type.
178
67854c13
UD
179 [BZ #10717]
180 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
181 have to compute maxsize_total, we have to update the variables, and
182 the also_total handling must happen after the repair.
183
e0f471a1
UD
184 [BZ #10742]
185 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
186 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
187
d79eccd6
AS
1882009-10-27 Andreas Schwab <schwab@redhat.com>
189
190 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
191 errno is always set when returning unsuccessfully.
192
22bc5239
AS
1932009-10-29 Andreas Schwab <schwab@redhat.com>
194
195 * malloc/memusage.c (update_data): Fix index wraparound handling
196 so that buffer_cnt is actually reset.
197
3a85895f
PB
1982009-10-29 Ulrich Drepper <drepper@redhat.com>
199
d94760f9
UD
200 [BZ #10784]
201 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
202 of the directory we look at into the static buffer if there is one
203 at the start of the loop.
204
8d556281
PP
205 [BZ #10789]
206 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
d94760f9 207 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
8d556281 208
81c84bd9
UD
209 [BZ #10840]
210 * sysdeps/unix/sysv/linux/kernel-features.h: Define
211 __ASSUME_F_GETOWN_EX.
212 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
213 if possible.
214 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
215
d9e8f9ec
UD
216 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
217 and f_owner_ex.
218 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
219 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
220 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
221 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
222 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
223 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
224
92934e8b
UD
225 [BZ #10847]
226 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
227 getutmpx symbol.
228
229 [BZ #10823]
3a85895f
PB
230 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
231 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
232
3ad3a4d0
JM
2332009-10-24 Joseph Myers <joseph@codesourcery.com>
234
235 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
236
98363ded
JJ
2372009-10-27 Jakub Jelinek <jakub@redhat.com>
238
239 [BZ #10817]
240 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
241 Reported by Ray Chason.
242
001659f4
L
2432009-10-21 H.J. Lu <hongjiu.lu@intel.com>
244
245 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
246 strend-sse4.
247 * sysdeps/x86_64/multiarch/strchr.S: New file.
248 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
249 * sysdeps/x86_64/multiarch/strrchr.S: New file.
250
bc5e8462
AS
2512009-10-21 Andreas Schwab <schwab@redhat.com>
252
253 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
254
b7805d0b
AS
2552009-10-19 Andreas Schwab <schwab@redhat.com>
256
257 * include/math.h: Add hidden protos for __exp/__expf/__expl.
258 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
259 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
260 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
261 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
262 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
263 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
264 __ieee751_expl to handle overflow.
265
a0902db9
DM
2662009-10-14 David S. Miller <davem@davemloft.net>
267
268 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
269 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
270
4bb04b1f
AS
2712009-10-13 Andreas Schwab <schwab@redhat.com>
272
273 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
274 !USE_MULTIARCH.
275
b68053cf
UD
2762009-10-08 Ulrich Drepper <drepper@redhat.com>
277
1abedcda
UD
278 [BZ #10730]
279 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
280 Patch in part by Steve Ward <planet36@gmail.com>.
281
1219ddfe
UD
282 [BZ #10731]
283 * stdlib/rand_r.c: Fix typo.
284
b68053cf
UD
285 * po/cs.po: Update from translation team.
286
96961bf7
AS
2872009-10-06 Andreas Schwab <schwab@redhat.com>
288
289 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
290 returning if RTLD_NOLOAD.
291
9d6982d5
RM
2922009-10-06 Roland McGrath <roland@redhat.com>
293
b0f3a2e4
RM
294 * sysdeps/x86_64/multiarch/strstr-c.c
295 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
296
297 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
298 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
299
9d6982d5
RM
300 * sysdeps/x86_64/multiarch/init-arch.h
301 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
302 (HAS_CPU_FEATURE): New macro.
303 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
304 * sysdeps/x86_64/multiarch/init-arch.c
305 (__get_cpu_features): #undef it before definition.
306
930799d5
AS
3072009-10-05 Andreas Schwab <schwab@redhat.com>
308
309 * locale/C-time.c: Revert week-1stday back to 19971130 and set
310 first_weekday to 1 and first_workday to 2.
311
78aa3979
UD
3122009-10-01 Ulrich Drepper <drepper@redhat.com>
313
314 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
315 F_GETOWN_EX.
316 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
317 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
318 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
319 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
320 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
321 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
322
199eb0de
AS
3232009-09-28 Andreas Schwab <schwab@redhat.com>
324
325 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
326 * stdio-common/vfprintf.c: Likewise.
327
ff283531
ST
3282009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
329
330 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
f8d7c1ea
UD
331 (mkdirat): Call __directory_name_split_at instead of
332 __directory_name_split.
ff283531 333
9d076f21
UD
3342009-09-28 Ulrich Drepper <drepper@redhat.com>
335
336 * locale/programs/locale-spec.c (locale_special): If nothing matches
337 fail with an appropriate message.
338
f450806e
L
3392009-09-10 H.J. Lu <hongjiu.lu@intel.com>
340
341 * configure.in: Exclude binutils 2.X. Support binutils 2.100
342 and XX.
343
4fd89462
UD
3442009-09-25 Andreas Schwab <schwab@redhat.com>
345
346 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
347 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
348
0d180406
ST
3492009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
350
351 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
352
ae0f0dbd
AS
3532009-09-20 Andreas Schwab <schwab@linux-m68k.org>
354
355 * iconvdata/iso646.c (gconv_init): Correctly initialize the
356 character size elements in step data.
357
fc0c556c
UD
3582009-09-20 Ulrich Drepper <drepper@redhat.com>
359
360 * po/hu.po: Update from translation team.
361 * po/vi.po: Likewise.
362
487a6d77
RM
3632009-09-19 Roland McGrath <roland@redhat.com>
364
365 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
366
7967983f
RM
3672009-09-15 Roland McGrath <roland@redhat.com>
368
369 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
370 * nptl/sysdeps/pthread/configure: Regenerated.
371 * nptl/sysdeps/x86_64/configure: Regenerated.
372 * sysdeps/unix/sysv/linux/configure: Regenerated.
373 * sysdeps/x86_64/elf/configure: Regenerated.
374
375 * Makefile (autoconf-it): Set execute bit only on top-level configure.
376
377 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
378 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
379 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
380 * configure: Regenerated.
381
02bf610c
UD
3822009-09-09 Ulrich Drepper <drepper@redhat.com>
383
384 * posix/getconf.c (main): Handle -- on command line.
385
0549ce8e
L
3862009-09-05 H.J. Lu <hongjiu.lu@intel.com>
387
388 * configure.in: Support binutils 2.100 and 3.0.
389
6dfeb524
JJ
3902009-09-08 Jakub Jelinek <jakub@redhat.com>
391
392 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
393 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
394 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
395 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
396
d76da20f
UD
3972009-09-07 Ulrich Drepper <drepper@redhat.com>
398
7a7e49c0
UD
399 * locale/programs/ld-collate.c (struct locale_collate_t): Add
400 unnamed_section_defined field.
401 (collate_read): Test and set unnamed_section_defined.
402
d76da20f
UD
403 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
404 _POSIX2_LINE_MAX.
405
4c14c8c3
L
4062009-09-04 H.J. Lu <hongjiu.lu@intel.com>
407
408 * configure.in: Support binutils 2.20.
409
04ef416a
UD
4102009-09-03 Ulrich Drepper <drepper@redhat.com>
411
412 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
413 __strstr_ia32): Add attribute_hidden.
414
2eeb9a5d
AS
4152009-09-01 Andreas Schwab <schwab@redhat.com>
416
417 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
418 parsing of group entry.
419
5d2e6976
AS
4202009-09-02 Andreas Schwab <schwab@redhat.com>
421
422 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
423 external buffer. Always discard readahead in internal buffer.
424 * libio/Makefile (tests): Add bug-wsetpos.
425 * libio/bug-wsetpos.c: New file.
426
22bb992d
JJ
4272009-09-02 Jakub Jelinek <jakub@redhat.com>
428
429 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
430 Add attribute_hidden.
431 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
432 __strcasestr_sse2): Likewise.
433 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
434 (__fma_fma): Make static.
435 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
436 (__fmaf_fma): Make static.
437
d840539e
AS
4382009-08-31 Andreas Schwab <schwab@redhat.com>
439
440 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
441 reformulate in-buffer optimisation check to match code in
442 _IO_new_file_seekoff.
443
a050d2a5
JB
4442009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
445
446 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
447 to srwi in 32-bit memcpy for power6.
448
5182cbc5
AS
4492009-09-01 Andreas Schwab <schwab@redhat.com>
450
451 * include/stdio.h: Declare hidden proto for fflush.
452 * libio/iofflush.c: Add hidden weak alias for fflush.
453
24044103
JJ
4542009-09-01 Jakub Jelinek <jakub@redhat.com>
455
456 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
457 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
5182cbc5 458
c2735e95
AS
4592009-08-31 Andreas Schwab <schwab@redhat.com>
460
461 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
462
b5c03e10
UD
4632009-08-31 Ulrich Drepper <drepper@redhat.com>
464
465 [BZ #10560]
466 * malloc/malloc.c: Add local assert definition to avoid problems with
467 memory allocation in the real one.
468
5a4eb728
L
4692009-08-27 H.J. Lu <hongjiu.lu@intel.com>
470
471 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
472 Removed.
473 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
474 turn off SSSE3 on Atom.
475
d444ac57
UD
4762009-08-28 Ulrich Drepper <drepper@redhat.com>
477
478 * stdlib/tst-strtol.c (tests): More tests.
479 * stdlib/tst-strtoll.c (tests): Likewise.
480
15e7f0a4
UD
4812009-08-26 Ulrich Drepper <drepper@redhat.com>
482
2df4be8c
UD
483 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
484
15e7f0a4
UD
485 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
486
84057895
UD
4872009-08-25 Ulrich Drepper <drepper@redhat.com>
488
deb13bcd
UD
489 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
490 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
491
77a1e087
UD
492 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
493
e6fd9b24
UD
494 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
495
84057895
UD
496 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
497
e9f145cb
JM
4982009-08-25 Joseph Myers <joseph@codesourcery.com>
499
500 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
501
84088310
UD
5022009-08-25 Ulrich Drepper <drepper@redhat.com>
503
65b14bce
UD
504 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
505 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
506
507 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
5001998a 508
7423a345
UD
509 * sysdeps/x86_64/fpu/s_signbit.S: New file.
510 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
511
d5cb714b 512 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
8392ff2d
UD
513 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
514
84088310
UD
515 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
516 leftover YMM_SIZE definition.
517
9a1ea152
UD
5182009-08-24 Ulrich Drepper <drepper@redhat.com>
519
cf00cc00
UD
520 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
521 union.
522 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
523 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
524 Redefine.
525 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
526
9a1ea152
UD
527 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
528 and SET_FLOAT_WORD definitions.
529
036e46b6
RM
5302009-08-24 Roland McGrath <roland@redhat.com>
531
532 * sysdeps/unix/syscall-template.S: New file.
533 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
534 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
535 (compile-syscall): Pass mkdep and -g options as normal.
536 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
537 (common-generated): Don't add them here.
538
ef72d5f1
UD
5392009-08-24 Ulrich Drepper <drepper@redhat.com>
540
f0c281e0
UD
541 * math/s_fdim.c: In case of overflows set errno.
542 * math/s_fdimf.c: Likewise.
543 * math/s_fdiml.c: Likewise.
544
7b943af6
UD
545 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
546 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
547 are using the inline optimizations.
548
ef72d5f1
UD
549 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
550 (__signbitf): Likewise.
551
659a63fb
UD
5522009-08-23 Ulrich Drepper <drepper@redhat.com>
553
52db8039
UD
554 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
555 terminated.
8a7cea01
UD
556 * posix/Makefile (tests): Add bug-regex29.
557 * posix/bug-regex29.c: New file.
52db8039 558
bdc7f5d7
UD
559 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
560 older POSIX versions are selected.
c6b6723e 561
003c9895
UD
562 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
563 as well.
564 * stdio-common/printf_fphex.c: Likewise.
565 * stdio-common/tstdiomisc.c: Add more tests.
566
659a63fb
UD
567 * locale/locale.h: Include xlocale.h and the thread-local locale
568 declarations for XPG7, not XPG6.
569
15efafdf
AS
5702009-08-21 Andreas Schwab <schwab@redhat.com>
571
572 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
573 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
576 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
577 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
578
464dc022
RM
5792009-08-20 Roland McGrath <roland@redhat.com>
580
581 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
582 Use l_addr instead of l_map_start (dli_fbase).
583 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
584 address when there is no proximate symbol.
585 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
586 Likewise.
587
677760a3
UD
5882009-08-16 Ulrich Drepper <drepper@redhat.com>
589
590 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
591
85fda49b
UD
5922009-08-14 Ulrich Drepper <drepper@redhat.com>
593
594 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
595 Also handle SIGINT. In that case only do the cleanup and then
596 re-raise the signal.
597 (main): Install handler for SIGINT.
598
78fd882a
ST
5992009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
600
601 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
602 clobber list.
603
4e1e2f42
L
6042009-08-01 H.J. Lu <hongjiu.lu@intel.com>
605
606 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
607 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
608 tst-auditmod7b.c.
609 (tests): Add tst-audit6 tst-audit7.
610 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
611 tst-auditmod7a tst-auditmod7b.
612 ($(objpfx)tst-audit6): New.
613 ($(objpfx)tst-audit6.out): Likewise.
614 ($(objpfx)tst-audit7): Likewise.
615 ($(objpfx)tst-audit7.out): Likewise.
616 (tst-audit6-ENV): Likewise.
617 (tst-audit7-ENV): Likewise.
618 (CFLAGS-tst-auditmod6b.c): Likewise.
619 (CFLAGS-tst-auditmod6c.c): Likewise.
620 (CFLAGS-tst-auditmod7b.c): Likewise.
621 * elf/tst-audit6.c: New file.
622 * elf/tst-audit7.c: New file.
623 * elf/tst-auditmod6a.c: New file.
624 * elf/tst-auditmod6b.c: New file.
625 * elf/tst-auditmod6c.c: New file.
626 * elf/tst-auditmod7a.c: New file.
627 * elf/tst-auditmod7b.c: New file.
628 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
629 saving and restoring SSE/AVX registers to ...
630 * sysdeps/x86_64/dl-trampoline.h: This. New file.
631
fc1870e6
L
6322009-08-07 H.J. Lu <hongjiu.lu@intel.com>
633
634 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
635 only if SHARED is defined.
636 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
637
a3d4298d
JM
6382009-08-03 Jim Meyering <meyering@redhat.com>
639
640 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
641
8e436522
UD
6422009-08-08 Ulrich Drepper <drepper@redhat.com>
643
644 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
645 section as the other functions for this architecture.
646 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
647
57b378ac
UD
6482009-08-07 Ulrich Drepper <drepper@redhat.com>
649
0fda545d
UD
650 * sysdeps/x86_64/strcmp.S: Add support to compile with
651 USE_SSSE3. In this case palignr is used.
677760a3 652 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
0fda545d
UD
653 available but SSSE3 is, pick __str{,n}cmp_ssse3.
654 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
655 Add strcmp-ssse3 and strncmp-ssse3.
656 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
657 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
658
57b378ac
UD
659 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
660 warning through fake initialization.
661
0eca608d
L
6622009-08-07 H.J. Lu <hongjiu.lu@intel.com>
663
664 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
665
7bc513cf
AS
6662009-08-07 Andreas Schwab <schwab@redhat.com>
667
668 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
669 unique symbols.
670
a546baa9
L
6712009-08-05 H.J. Lu <hongjiu.lu@intel.com>
672
673 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
674 EBX from EAX = 1. Handle EAX = 11.
675
77c84aeb
AS
6762009-08-07 Andreas Schwab <schwab@redhat.com>
677
678 * Makefile (TAGS): Use separate sed -e expressions to avoid \
679 inside ''.
680
02cea471
L
6812009-08-03 H.J. Lu <hongjiu.lu@intel.com>
682
2c709c6f
UD
683 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
684 hidden IFUNC functions.
685 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
686
687 * sysdeps/i386/i686/multiarch/strlen.S: New file.
688
02cea471
L
689 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
690 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
691 strcasestr-c.
692 (CFLAGS-strcspn-c.c): Define.
693 (CFLAGS-strpbrk-c.c): Define.
694 (CFLAGS-strspn-c.c): Define.
695 (CFLAGS-strstr.c): Define.
696 (CFLAGS-strcasestr.c): Define.
697 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
698 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
699 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
700 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
701 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
702 * sysdeps/i386/i686/multiarch/strspn.S: New file.
703 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
704 * sysdeps/i386/i686/multiarch/strstr.c: New file.
705 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
706 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
707 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
708 -16L instead of 0xfffffffffffffff0L.
709 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
710
51921047
UD
7112009-08-02 Ulrich Drepper <drepper@redhat.com>
712
713 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
714
66ae9e50
UD
7152009-07-31 Ulrich Drepper <drepper@redhat.com>
716
e4143e7a
UD
717 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
718 another rewrite. Much smaller and faster.
719 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
720
66ae9e50
UD
721 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
722 ss_flags from the correct location.
723
6f6f1215
L
7242009-07-31 H.J. Lu <hongjiu.lu@intel.com>
725
726 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
727 * sysdeps/i386/i686/cacheinfo.c: New file.
728 * sysdeps/i386/i686/multiarch/Makefile: New file.
729 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
730 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
731 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
732 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
733 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
734 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
735 (__cpuid_count): New. Provide the default.
736 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
737 (__x86_64_preferred_memory_instruction): Define only if
738 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
739 (intel_check_word): Use __cpuid.
740 (handle_intel): Likewise.
741 (handle_amd): Likewise.
742 (__cache_sysconf): Likewise.
743 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
744 (__cache_sysconf): Likewise.
745 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
746 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
747 (get_common_indeces): Use __cpuid.
748 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
749 if ENABLE_SSSE3_ON_ATOM is not defined.
750 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
751 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
752 popcnt instead of popcntq.
753
1877ea16
JJ
7542009-07-31 Jakub Jelinek <jakub@redhat.com>
755
756 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
757
2dec6007
UD
7582009-07-30 Ulrich Drepper <drepper@redhat.com>
759
da97dfdc
UD
760 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
761 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
762 which always causes a compile error.
763
764 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
765
98b1e6c8
UD
766 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
767 comes from...
768 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
769 which always causes a compile error.
770
a9a04420
UD
771 * debug/Makefile (tests): Add tst-longjmp_chk2.
772 * debug/tst-longjmp_chk2.c: New file.
773
5ead9ce5
UD
774 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
775 Remove incorrect use of BP_SYM.
776 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
777 here now since it is more complex than just a simple check.
778
2dec6007
UD
779 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
780 we make no more progress.
781
649bf133
UD
7822009-07-29 Ulrich Drepper <drepper@redhat.com>
783
78c4ef47
UD
784 * math/s_fma.c: Don't define alias if __fma is a macro.
785 * math/s_fmaf.c: Likewise.
786 * sysdeps/x86_64/multiarch/s_fma.c: New file.
787 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
788 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
789
790 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
791 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
792 New macro HAS_FMA.
793 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
794 function.
795 * include/libc-symbols.h (libm_ifunc): Define.
796 * sysdeps/x86_64/multiarch/Versions: New file.
797
586fa886 798 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
649bf133 799
09e0389e
L
8002009-07-28 H.J. Lu <hongjiu.lu@intel.com>
801
802 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
803
b48a267b
UD
8042009-07-29 Ulrich Drepper <drepper@redhat.com>
805
806 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
807 call that registers used in calling conventions need to be preserved.
808 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
809 to preserve register content if necessary.
810 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
811 (_dl_x86_64_restore_sse): New function.
812 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
813 is allowed to modify xmm/ymm registers.
814
815 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
816 application's perspective.
817 * stdio-common/scanf17.c: Likewise.
818
96553893
UD
8192009-07-28 Ulrich Drepper <drepper@redhat.com>
820
821 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
822 size to memsz.
823 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
824 here.
825 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
826 two steps to catch bugs.
827
2d0671cb
AT
8282009-07-27 Ulrich Drepper <drepper@redhat.com>
829
e83c1a8a
UD
830 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
831 determines which files are used in runtime lookups and only checks
832 those for SSE use.
833 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
834 testing.
835 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
836 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
837 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
838 take a while.
839
840 * elf/dl-open.c: Move _dl_scope_free to...
841 * elf/dl-scope.c: ...here. New file.
842 * elf/Makefile (dl-routines): Add scope.
843
2d0671cb
AT
844 * resolv/resolv.h (RES_USE_DNSSEC): Define.
845 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
846 RES_USE_DNSSEC.
847 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
848 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
849 all the places we handled RES_USE_EDNS0 only before.
850 Patch by Adam Tkac <atkac@redhat.com>.
851
09cd1f57
JJ
8522009-07-27 Jakub Jelinek <jakub@redhat.com>
853
854 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
855 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
856 Update size when reallocating.
857
16d2ea4c
UD
8582009-07-26 Ulrich Drepper <drepper@redhat.com>
859
860 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
861 functions used in ld.so modify xmm/ymm registers.
862 * sysdeps/x86_64/Makefile: Hook new test up.
863 * sysdeps/x86_64/rtld-memchr.c: New file.
864 * sysdeps/x86_64/rtld-memcmp.c: New file.
865 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
866 * sysdeps/x86_64/rtld-strchr.S: New file.
16d2ea4c
UD
867 * sysdeps/x86_64/rtld-strlen.S: New file.
868 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
869 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
870
dc8e5eb6
UD
8712009-07-26 H.J. Lu <hongjiu.lu@intel.com>
872
873 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
874 strncmp-c.
875 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
876 (exit): Likewise.
877 (Byte1): Likewise.
878 (Byte2): Likewise.
879 (Byte3): Likewise.
880 (Byte4): Likewise.
881 (Byte5): Likewise.
882 (Byte6): Likewise.
883 (next_8_bytes): Likewise.
884 (Byte0): Remove commented out codes.
885 (unaligned_table): Align jump table at 8 bytes.
886 Add _sse4_2 to all labels. Always include "../strcmp.S".
887 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
888 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
889 * sysdeps/x86_64/strncmp.S: New file.
890
889f847e
UD
8912009-07-26 Ulrich Drepper <drepper@redhat.com>
892
aa7492d2
UD
893 [BZ #10422]
894 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
895 kernels, dropped when eventfd2 support was added.
896 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
897 kernels, dropped when signalfd4 support was added.
898 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
899 added, name them.
900
e28b969b
UD
901 [BZ #10452]
902 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
903 replies up.
904
889f847e
UD
905 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
906
29e92fa5
UD
9072009-07-25 Ulrich Drepper <drepper@redhat.com>
908
4e5b5821
L
909 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
910 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
911
65731753
UD
912 [BZ #10448]
913 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
914 callback we must touch the status to avoid using stale value.
915
29e92fa5
UD
916 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
917 compiled in.
918
da331e8e
UD
9192009-07-24 Ulrich Drepper <drepper@redhat.com>
920
921 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
922 /lib/modules/* headers anymore. We have sane headers in the standard
923 place now.
924
f957edde
AK
9252009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
926
927 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
928 "etf3enh" and "highgprs" added.
929 (_dl_s390_platforms): "z10" added.
930 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
931 Increased for the new entries.
932 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
933 HWCAP_S390_HIGH_GPRS added.
934
935 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
936 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
937 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
938 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
939 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
940
802fe9a1
UD
9412009-07-23 Ulrich Drepper <drepper@redhat.com>
942
b2509a1e
UD
943 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
944 avoid additional cpuid instructions. Most of the information is
945 stored somewhere.
946
3e9099b4
UD
947 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
948 cache descriptors.
949 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
950
d28797e4
UD
951 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
952 SSSE3 bit for Atoms.
953 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
954 here anymore.
955
666a9871
UD
956 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
957 structure before copying it to avoid warning.
958 * posix/tst-rfc3484-2.c (do_test): Likewise.
959 * posix/tst-rfc3484-3.c (do_test): Likewise.
960
30a2dfd5
DS
961 [BZ #10416]
962 * include/unistd.h: Make header file suitable for C++ test cases.
963 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
964
9b6bf8a3
UD
965 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
966 stack alignment in the exit code.
967
077e7700
UD
968 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
969 potentially be zero.
970
802fe9a1
UD
971 * elf/tst-unique1.c: Extend test to check for unloading DSO with
972 unique symbol definition.
973 Patch by Jakub Jelinek.
974 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
975 make sure the object with the definition cannot be unloaded. Adjust
976 a few types.
977 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
978 the unique symbol hash table should not be const.
979
ae612b04
UD
9802009-07-21 Ulrich Drepper <drepper@redhat.com>
981
982 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
983 unnecesary variables. Comment fixes.
984
a8f895eb
UD
9852009-07-20 Ulrich Drepper <drepper@redhat.com>
986
987 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
988 Use NONASCII_CASE information provided by the locale to determine
989 whether optimized string load function can be used. Minor cleanups.
990
2b7a8664
L
9912009-07-20 H.J. Lu <hongjiu.lu@intel.com>
992
993 * string/strcasestr.c (STRCASESTR): New macro.
994 (__strcasestr): Renamed to ..
995 (STRCASESTR): ...this.
996 * string/strstr.c (STRSTR): New macro.
997 (strstr): Renamed to ..
998 (STRSTR): ...this.
999 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1000 strstr-c strcasestr-c
1001 (CFLAGS-strstr.c): New.
1002 (CFLAGS-strcasestr.c): Likewise.
1003 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1004 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1005 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1006 * sysdeps/x86_64/multiarch/strstr.c: New file.
1007
8a449450
UD
10082009-07-20 Ulrich Drepper <drepper@redhat.com>
1009
1010 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1011 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1012 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1013 _NL_CTYPE_NONASCII_CASE.
1014 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1015 field.
1016 (ctype_finish): Check whether there are any 8-bit characters outside
1017 the range ASCII has or whether the mapping isn't the same as for
1018 ASCII (±0x20). Set nonascii_case appropriately.
1019 (ctype_output): Add output handler for nonascii_case.
1020
63601ccd
UD
10212009-07-17 Ulrich Drepper <drepper@redhat.com>
1022
1023 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1024 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1025
1c0ab5bd
UD
10262009-07-16 Ulrich Drepper <drepper@redhat.com>
1027
1028 [BZ #10360]
1029 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1030 0xffff in the EDNS0 record.
1031
bec466d9 10322009-07-16 Ulrich Drepper <drepper@redhat.com>
50158f95
AS
1033
1034 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1035 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1036 is written before the list head update.
1037 Patch by Andreas Schwab <aschwab@redhat.com>.
1038
137028b4 10392009-07-16 Ulrich Drepper <drepper@redhat.com>
bec466d9
UD
1040 Jakub Jelinek <jakub@redhat.com>
1041
1042 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1043 corruption thread-safe.
1044
bea0ac1d
JJ
10452009-07-13 Jakub Jelinek <jakub@redhat.com>
1046
1047 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1048 overrides atomic_compare_and_exchange_val_rel, define to
1049 atomic_compare_and_exchange_val_rel by default, otherwise default
1050 to catomic_compare_and_exchange_val_acq.
1051 (catomic_compare_and_exchange_bool_rel): If arch overrides
1052 atomic_compare_and_exchange_bool_rel, define to
1053 atomic_compare_and_exchange_bool_rel by default.
1054 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1055 Use catomic_compare_and_exchange_val_rel instead of
1056 catomic_compare_and_exchange_val_acq.
1057
c8027cce
UD
10582009-07-16 Ulrich Drepper <drepper@redhat.com>
1059
55c4ce68
UD
1060 * sysdeps/generic/ldsodefs.h: Add prototype for
1061 _dl_higher_prime_number.
1062 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1063
c8027cce
UD
1064 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1065 restoring of ymm registers a bit.
1066
e26c9b84
L
10672009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1068
1069 * sysdeps/x86_64/memcmp.S: New file.
1070
d7bd7a8a 10712009-07-15 Ulrich Drepper <drepper@redhat.com>
59cbcac0 1072
d7bd7a8a
UD
1073 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1074 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1075 pointers in writable memory.
59cbcac0 1076
b0ecde3a
L
10772009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1080 * config.make.in: Add config-cflags-avx entry.
1081 * configure.in: Substitute libc_cv_cc_avx.
1082 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1083 * elf/tst-audit4.c: New file.
1084 * elf/tst-audit5.c: New file.
1085 * elf/tst-auditmod4a.c: New file.
1086 * elf/tst-auditmod4b.c: New file.
1087 * elf/tst-auditmod5a.c: New file.
1088 * elf/tst-auditmod5b.c: New file.
1089 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1090 link-defines.sym.
1091 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1092 (La_x86_64_vector): Likewise.
1093 (La_x86_64_regs): Append lr_vector.
1094 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1095 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1096 saving and restoring SSE registers to ...
1097 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1098 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1099 <link-defines.h>.
1100 (_dl_runtime_profile): Use LR_SIZE to allocate space for
1101 La_x86_64_regs. Allocate extra space and jump to memory at
1102 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1103 (save_and_restore_vector_sse): New.
1104 (save_and_restore_vector_avx): Likewise.
1105 (check_avx): Likewise.
1106 (save_and_restore_vector): Likewise.
1107 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1108 HAVE_AVX_SUPPORT.
1109 * sysdeps/x86_64/link-defines.sym: New file.
1110
339717d5
UD
11112009-07-10 Ulrich Drepper <drepper@redhat.com>
1112
786b74f4
UD
1113 * elf/do-lookup.h: Removed after folding content into...
1114 * elf/dl-lookup.c: ...here.
1115
339717d5
UD
1116 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1117
415ac3df
UD
11182009-07-09 Ulrich Drepper <drepper@redhat.com>
1119
1120 * configure.in: Check for gnu_unique_symbol symbol type.
1121 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1122 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1123 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
1124 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1125 change.
1126 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1127 unique symbol table.
1128 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1129 for first namespace.
1130 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1131 unique symbol hash table.
1132 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1133 * elf/tst-unique1.c: New file.
1134 * elf/tst-unique1mod1.c: New file.
1135 * elf/tst-unique1mod2.c: New file.
1136 * elf/tst-unique2.c: New file.
1137 * elf/tst-unique2mod1.c: New file.
1138 * elf/tst-unique2mod2.c: New file.
1139
eba0994e
UD
11402009-07-07 Ulrich Drepper <drepper@redhat.com>
1141
b4f55afd
UD
1142 * elf/elf.h (STB_GNU_UNIQUE): Define.
1143
eba0994e
UD
1144 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
1145 from...
1146 * include/inline-hashtab.h: ...here.
1147 (htab_expand): Adjust for renamed function. Correct memory handling.
1148
a38862a5
UD
11492009-07-06 Ulrich Drepper <drepper@redhat.com>
1150
415ac3df 1151 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
a38862a5 1152
2123d581
AS
11532009-07-03 Andreas Schwab <aschwab@redhat.com>
1154
1155 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1156 (PPC_FEATURE_HAS_VSX): Likewise.
1157
d6485c98
UD
11582009-07-03 Ulrich Drepper <drepper@redhat.com>
1159
cea43295
UD
1160 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1161 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1162
d6485c98
UD
1163 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1164 aligned to 16 byte boundaries.
1165 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1166 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1167 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1168
06e51c8f
L
11692009-07-02 H.J. Lu <hongjiu.lu@intel.com>
1170
1171 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1172 * config.make.in (config-cflags-sse4): New variable.
1173 * configure.in: Substitute libc_cv_cc_sse4.
1174 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1175 HAVE_SSE4_SUPPORT.
1176 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1177 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1178 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1179 * sysdeps/x86_64/multiarch/strcspn.S: New file.
1180 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1181 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1182 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1183 * sysdeps/x86_64/multiarch/strspn.S: New file.
1184
ab6a873f
L
11852009-06-30 H.J. Lu <hongjiu.lu@intel.com>
1186
167d5ed5
L
1187 * elf/Makefile (distribute): Remove tst-audit.sh. Add
1188 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1189 (tests): Add tst-audit3 for x86_64.
1190 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1191 ($(objpfx)tst-audit3): Define.
1192 ($(objpfx)tst-audit3.out): Define.
1193 (tst-audit3-ENV): Define.
1194 * elf/tst-audit3.c: New file.
1195 * elf/tst-auditmod3a.c: New file.
1196 * elf/tst-auditmod3b.c: New file.
1197 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1198 and restore xmm6.
1199
ab6a873f
L
1200 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
1201 (__stpncpy): Renamed to ...
1202 (STPNCPY): This.
1203 (stpncpy): Create alias only if STPNCPY is not defined.
1204 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
1205 defined.
1206 (strncpy): Renamed to ...
1207 (STRNCPY): This.
1208 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1209 stpncpy-c strncpy-c for string.
1210 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1211 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1212 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1213 * sysdeps/x86_64/multiarch/strcpy.S: New file.
1214 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1215 * sysdeps/x86_64/multiarch/strncpy.S: New file.
1216
6cbbaa50
UD
12172009-07-02 Ulrich Drepper <drepper@redhat.com>
1218
1219 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1220 adding to fast bin list.
1221
29ba9812
UD
12222009-07-01 Ulrich Drepper <drepper@redhat.com>
1223
2fd0cd8b
UD
1224 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1225 inet_makeaddr. This worked only with class-based networks.
1226 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1227 Likewise.
1228
29ba9812 1229 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
5cd1f906 1230 recognize all types.
29ba9812 1231 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
5cd1f906
UD
1232 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
1233 be in host byte order.
29ba9812 1234
01812913
L
12352009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1236
1237 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1238 (MODEL_OFFSET): Define.
1239 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1240 family and model.
1241 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1242 out common code into new function get_common_indeces. Determine
1243 extended family and model for Intel processors.
1244
44d20bca
UD
12452009-06-26 Ulrich Drepper <drepper@redhat.com>
1246
1247 * resolv/resolv.h: Define RES_SNGLKUPREOP.
1248 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1249 option.
1250 * resolv/res_send.c (reopen): New function. Broken out of...
1251 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
1252 fallback mechanism. If single-request fails switch to
1253 single-request-reopen mode which opens a new socket for the second
1254 request.
1255
80a98966
AS
12562009-06-25 Andreas Schwab <aschwab@redhat.com>
1257
1258 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1259 (CHECK_SP): Use it.
54c99aab 1260
3f241d75
AS
12612009-06-24 Andreas Schwab <aschwab@redhat.com>
1262
1263 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1264 for saved registers.
1265 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1266 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1267 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1268
7a7c2c24
AS
12692009-06-23 Andreas Schwab <aschwab@redhat.com>
1270
1271 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1272
20a3ce85
UD
12732009-06-22 Ulrich Drepper <drepper@redhat.com>
1274
58d60030
UD
1275 * po/id.po: Update from translation team.
1276
20a3ce85
UD
1277 * po/bg.po: Update from translation team.
1278
772f4e6a
L
12792009-06-22 H.J. Lu <hongjiu.lu@intel.com>
1280
1281 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
1282 defined.
1283 (strncmp): Renamed to STRNCMP.
1284 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1285 strncmp-c for string.
1286 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1287 * sysdeps/x86_64/multiarch/strcmp.S: New file.
1288 * sysdeps/x86_64/multiarch/strncmp.S: New file.
1289 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1290
3c30afc8
L
12912009-06-19 H.J. Lu <hongjiu.lu@intel.com>
1292
1293 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1294 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1295 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1296 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1297 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1298 ifuncmain7static.c.
1299 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1300 ifuncmain7static, and ifuncmain7picstatic.
1301 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1302 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1303 $(objpfx)ifuncmain7pie.out.
1304 (modules-names): Add ifuncmod5 ifuncmod6
1305 (ifuncmod5.so-no-z-defs): Define.
1306 (ifuncmod6.so-no-z-defs): Define.
1307 (CFLAGS-ifuncmain5pic.c): Define.
1308 (CFLAGS-ifuncmain5picstatic.c): Define.
1309 (CFLAGS-ifuncmain5staticpic.c): Define.
1310 (CFLAGS-ifuncdep5pic.c): Define.
1311 (CFLAGS-ifuncmain7pic.c): Define.
1312 (CFLAGS-ifuncmain7picstatic.c): Define.
1313 (CFLAGS-ifuncmain1staticpie.c): Define.
1314 (CFLAGS-ifuncmain5pie.c): Define.
1315 (CFLAGS-ifuncmain6pie.c): Define.
1316 (CFLAGS-ifuncmain7pie.c): Define.
1317 ($(objpfx)ifuncmain1staticpie.out): Define.
1318 ($(objpfx)ifuncmain1staticpie): Define.
1319 ($(objpfx)ifuncmain5pie.out): Define.
1320 ($(objpfx)ifuncmain5pie): Define.
1321 ($(objpfx)ifuncmain6pie.out): Define.
1322 ($(objpfx)ifuncmain6pie): Define.
1323 ($(objpfx)ifuncmain5): Define.
1324 ($(objpfx)ifuncmain5pic): Define.
1325 ($(objpfx)ifuncmain5static): Define.
1326 ($(objpfx)ifuncmain5staticpic): Define.
1327 ($(objpfx)ifuncmain5picstatic): Define.
1328 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1329 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1330 ifuncmain6pie.out.
1331 * elf/b/elf/ifuncmain1staticpie.c: New file.
1332 * elf/ifuncdep5.c: New file.
1333 * elf/ifuncdep5pic.c: New file.
1334 * elf/ifuncmain5.c: New file.
1335 * elf/ifuncmain5pic.c: New file.
1336 * elf/ifuncmain5picstatic.c: New file.
1337 * elf/ifuncmain5pie.c: New file.
1338 * elf/ifuncmain5static.c: New file.
1339 * elf/ifuncmain5staticpic.c: New file.
1340 * elf/ifuncmain6pie.c: New file.
1341 * elf/ifuncmain7.c: New file.
1342 * elf/ifuncmain7pic.c: New file.
1343 * elf/ifuncmain7picstatic.c: New file.
1344 * elf/ifuncmain7pie.c: New file.
1345 * elf/ifuncmain7static.c: New file.
1346 * elf/ifuncmod5.c: New file.
1347 * elf/ifuncmod6.c: New file.
1348
ccab6d8f
UD
13492009-06-20 Ulrich Drepper <drepper@redhat.com>
1350
1351 [BZ #10085]
1352 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1353 (nss_endgrent): New variable.
1354 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1355 fields. Change type of files to bool and adjust all users.
1356 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1357 (internal_endgrent): Call nss_endgrent if necessary.
1358 (add_group): New function. Broken out of...
1359 (check_and_add_group): ...here.
1360 (getgrent_next_nss): Remove test that any callback is available.
1361 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1362 callback. If there is no blacklist we can trust the results returned
1363 by the initgroups_dyn callback. In case there is a callback and we
1364 find a group entry for the group ID but it doesn't contain the
1365 correct member, switch to the slow mode and use getgrent_r.
1366 (internal_getgrent_r): When we see a +: entry, determine whether
1367 there is any callback and which we can use the initgroups_dyn
1368 callback.
1369
d0a2af71
UD
13702009-06-18 Ulrich Drepper <drepper@redhat.com>
1371
f6887a0d
UD
1372 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1373 (_int_free): Likewise.
1374
d0a2af71
UD
1375 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1376 AF_IEEE802154.
1377 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1378 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1379 and ARPHRD_IEEE802154_PHY.
1380
1381 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1382 relative to generic Linux version.
1383
d8366b09
L
13842009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1385
1386 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1387 ($(objpfx)ifuncmain1vispie): Likewise.
1388
f051ddfe
UD
13892009-06-16 Ulrich Drepper <drepper@redhat.com>
1390
1391 * login/Makefile: Build pt_chown as PIE.
1392
f60ddf9b
AS
13932009-06-15 Andreas Schwab <aschwab@redhat.com>
1394
1395 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1396 a format string.
1397 * elf/sln.c (usage): Likewise.
1398 * malloc/memusage.sh (do_help): Likewise.
1399 * nss/getent.c (more_help): Likewise.
1400 * posix/getconf.c (main): Likewise.
1401 * sunrpc/rpcinfo.c (usage): Likewise.
1402 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1403
f793b624
UD
14042009-06-16 Ulrich Drepper <drepper@redhat.com>
1405
8a909c64
UD
1406 * login/programs/pt_chown.c: Use libcap to drop privileges other than
1407 those needed.
f793b624 1408 * login/Makefile: If necessary link pt_chown with -lcap.
8a909c64
UD
1409 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1410 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
f793b624 1411
fab8238d
JJ
14122009-06-16 Jakub Jelinek <jakub@redhat.com>
1413
1414 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1415 comparisons.
1416 * string/test-memchr.c (do_random_tests): Test very large lengths
1417 as well.
1418
435aa54b
L
14192009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 * Makeconfig (+link-pie): Define.
1422 (+prectorS): Define.
1423 (+postctorS): Define.
1424 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1425 * nscd/Makefile ($(objpfx)nscd): Likewise.
1426
25bfbb9e
RA
14272009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
1428
1429 [BZ #10107]
1430 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1431 with cmplwi.
1432 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1433
b34de9ea
UD
14342009-06-16 Ulrich Drepper <drepper@redhat.com>
1435
1436 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1437 into ...
1438 * sysdeps/unix/grantpt.c: ...here.
1439
a468a1d4
UD
14402009-06-15 Ulrich Drepper <drepper@redhat.com>
1441
837dea7c
UD
1442 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1443 chmod if it is necessary.
1444
292e3abe 1445 [BZ #10166]
eae3208e
UD
1446 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1447 when the slave device is in devpts or devfs.
292e3abe 1448
395a37e3
UD
1449 [BZ #10183]
1450 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1451
7ed520bd
AE
1452 [BZ #10195]
1453 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1454 of nd_opt_home_agent_info_preference to uint16_t.
1455 Patch by Arnaud Ebalard <arno@natisbad.org>.
1456
c518f9a4 1457 [BZ #10207]
f6887a0d 1458 * nss/getent.c: Add support for printing gshadow data.
c518f9a4 1459
233a182b
JL
1460 [BZ #10203]
1461 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1462 not just the currently used one and those which follow.
1463 Patch by Joe Landers <jlanders@vmware.com>.
1464
4155d926
BD
1465 [BZ #10196]
1466 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
eae3208e 1467 * libio/Makefile: Run tst-fgetwc with necessary envvar.
4155d926
BD
1468 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1469
48dcd0ba
UD
1470 [BZ #10217]
1471 * stdlib/abort.c: Define variable __abort_msg.
1472 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1473 * include/stdlib.h: Declare __abort_msg.
1474 * assert/assert-perr.c: Don't free buffer for message immediately.
1475 Store atomically in __abort_msg and free old buffer if necessary.
1476 * assert/assert.c: Likewise.
1477 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1478 store pointer in __abort_msg, and possibly free old string.
1479 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1480
6355c997
UD
1481 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1482
29143408
AH
1483 [BZ #10211]
1484 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1485 handle leap seconds if they are available.
1486 Patch by Akinori Hattori <hattya@gentoo.org>.
1487
5fb55a68
UD
1488 * timezone/tzselect.ksh: Update from tzcode2009i.
1489 * timezone/zdump.c: Likewise.
1490 * timezone/zic.c: Likewise.
1491
a468a1d4
UD
1492 * timezone/africa: Update from tzdata2009i.
1493 * timezone/antarctica: Likewise.
1494 * timezone/asia: Likewise.
1495 * timezone/australasia: Likewise.
1496 * timezone/backward: Likewise.
1497 * timezone/etcetera: Likewise.
1498 * timezone/europe: Likewise.
1499 * timezone/factory: Likewise.
1500 * timezone/iso3166.tab: Likewise.
1501 * timezone/leapseconds: Likewise.
1502 * timezone/northamerica: Likewise.
1503 * timezone/pacificnew: Likewise.
1504 * timezone/solar87: Likewise.
1505 * timezone/solar88: Likewise.
1506 * timezone/solar89: Likewise.
1507 * timezone/southamerica: Likewise.
1508 * timezone/systemv: Likewise.
1509 * timezone/yearistype: Likewise.
1510 * timezone/zone.tab: Likewise.
1511
02125962
JJ
15122009-06-15 Jakub Jelinek <jakub@redhat.com>
1513
1514 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1515 STT_GNU_IFUNC symbol or in 8 into type_class.
1516
1517 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1518 instead of Elf64_Addr.
1519
eb0b6cb6
UD
15202009-06-14 Ulrich Drepper <drepper@redhat.com>
1521
53c06891
UD
1522 * po/sv.po: Update from translation team.
1523
eb0b6cb6
UD
1524 [BZ #10229]
1525 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1526 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1527 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1528 the C version.
1529
bfdb73e1
UD
15302009-06-12 Ulrich Drepper <drepper@redhat.com>
1531
1532 * Versions.def: Add GLIBC_2.11 for libpthread.
1533
310647e9
UD
15342009-06-11 Ulrich Drepper <drepper@redhat.com>
1535
1536 * resolv/res_send.c (send_dg): Remember we switched to
1537 single-request mode.
1538
d360a0da
UD
15392009-06-09 Ulrich Drepper <drepper@redhat.com>
1540
88ea382f
D
1541 * dlfcn/dlfcn.h: Remove comma at end of enum.
1542 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1543
d360a0da
UD
1544 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1545 parsing mode string.
1546
443caceb
UD
15472009-06-05 Ulrich Drepper <drepper@redhat.com>
1548
b77c9323
UD
1549 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1550
1551 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1552
3ab2d57a
UD
1553 * sysdeps/x86_64/multiarch/strlen.S: New file.
1554 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1555 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1556 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1557 content.
1558
443caceb
UD
1559 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1560 is defined.
1561
747785f2
UD
15622009-06-04 Ulrich Drepper <drepper@redhat.com>
1563
2f3f7b9d 1564 * sysdeps/x86_64/strlen.S: Minor optimizations.
747785f2 1565
2f083d75
L
15662009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1569 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1570 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1571 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1572 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1573 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1574 ifuncmain3.c, ifuncmod3.c,.
1575 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1576 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1577 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1578 ifuncmain4picstatic.
1579 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1580 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1581 ifuncmain3, ifuncmain4.
1582 (tests): Depend on $(objpfx)ifuncmain1pie.out and
1583 $(objpfx)ifuncmain1vispie.out.
1584 (modules-names): Add ifuncmod1 ifuncmod3.
1585 (generated): Add ifuncmain1pie ifuncmain1pie.out
1586 ifuncmain1vispie ifuncmain1vispie.out.
1587 Define rules to build and run the tests.
1588 * elf/ifuncdep1.c: New file.
1589 * elf/ifuncdep1pic.c: New file.
1590 * elf/ifuncdep2.c: New file.
1591 * elf/ifuncdep2pic.c: New file.
1592 * elf/ifuncmain1.c: New file.
1593 * elf/ifuncmain1pic.c: New file.
1594 * elf/ifuncmain1picstatic.c: New file.
1595 * elf/ifuncmain1pie.c: New file.
1596 * elf/ifuncmain1static.c: New file.
1597 * elf/ifuncmain1staticpic.c: New file.
1598 * elf/ifuncmain1vis.c: New file..
1599 * elf/ifuncmain1vispic.c: New file..
1600 * elf/ifuncmain1vispie.c: New file.
1601 * elf/ifuncmain2.c: New file.
1602 * elf/ifuncmain2pic.c: New file.
1603 * elf/ifuncmain2picstatic.c: New file.
1604 * elf/ifuncmain2static.c: New file.
1605 * elf/ifuncmain3.c: New file.
1606 * elf/ifuncmain4.c: New file.
1607 * elf/ifuncmain4picstatic.c: New file.
1608 * elf/ifuncmain4static.c: New file.
1609 * elf/ifuncmod1.c: New file.
1610 * elf/ifuncmod3.c: New file.
1611
fbb04b35
UD
16122009-06-03 Ulrich Drepper <drepper@redhat.com>
1613
1614 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1615
3d5243d4
UD
16162009-06-02 Ulrich Drepper <drepper@redhat.com>
1617
1618 [BZ #10221]
1619 * posix/Makefile (routines): Add execvpe.
1620 * posix/Versions: Export execvpe for GLIBC_2.11.
1621 * posix/execvp.c: Now only a wrapper. Move code to...
1622 * posix/execvpe.c: ...here. New file.
1623 * posix/unistd.h: Declare execvpe.
1624
b7629ee3
UD
16252009-06-01 Ulrich Drepper <drepper@redhat.com>
1626
fd96f062
UD
1627 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1628 for STT_GNU_IFUNC handling for efficiency.
1629 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1630
b7629ee3
UD
1631 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1632 _exit.
1633 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1634
8ea23729
UD
16352009-05-31 Ulrich Drepper <drepper@redhat.com>
1636
1637 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1638 for !SHARED.
1639
74414708
UD
16402009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1641
1642 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1643 is not defined.
1644 (__rela_iplt_start): New declaration.
1645 (__rela_iplt_end): Likewise.
1646 (__rel_iplt_start): Likewise.
1647 (__rel_iplt_end): Likewise.
1648 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1649 * elf/elf.h (R_386_IRELATIVE): New macro.
1650 (R_X86_64_IRELATIVE): New macro.
1651 (R_386_NUM): Updated.
1652 (R_X86_64_NUM): Likewise.
1653 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1654 (libc_ifunc_hidden_def): New macro.
1655 * sysdeps/generic/dl-irel.h: New file.
1656 * sysdeps/i386/dl-irel.h: New file.
1657 * sysdeps/x86_64/dl-irel.h: New file.
1658 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1659 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1660 Handle R_386_IRELATIVE.
1661 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1662 (elf_machine_lazy_rela): Likewise.
1663 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1664 R_X86_64_IRELATIVE.
1665 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1666
963cb6fc
UD
16672009-05-31 Ulrich Drepper <drepper@redhat.com>
1668
1669 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1670 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
1671 are no differences. If an architecture has bits in CPUID index 1
1672 meaning different things the values for the COMMON_CPUID_INDEX_1
1673 index must not be set.
1674 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1675 (HAS_POPCOUNT): ...this. New macro.
1676 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1677 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
1678 to set the value for Intel and AMD architectures.
1679 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1680 INTEL_CPUID_INDEX_1.
1681 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1682 change.
1683
c16a054d
AS
16842009-05-30 Andreas Schwab <schwab@linux-m68k.org>
1685
1686 * configure.in: Move AC_CANONICAL_HOST before first use of $host
1687 and $build.
c16a054d 1688
7f3394bd
UD
16892009-05-29 Jakub Jelinek <jakub@redhat.com>
1690
1691 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1692 (__expm1l): Set errno to ERANGE on overflow.
1693 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1694 (__tanl): Set errno to EDOM for ±Inf.
1695 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1696 (__cosl): Set errno to EDOM for ±Inf.
1697 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1698 (__sinl): Set errno to EDOM for ±Inf.
1699
b8bb339f
UD
1700 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1701 defined, use it.
1702 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1703 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1704 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1705
1de0c161
UD
17062009-05-29 Ulrich Drepper <drepper@redhat.com>
1707
1708 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
1709 code accessing it.
1710 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1711
0323b051
AS
17122009-05-22 Andreas Schwab <schwab@linux-m68k.org>
1713
38ae768d
AS
1714 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
1715 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1716 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1717 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1718
0323b051
AS
1719 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1720 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1721 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1722 defined.
1723 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1724 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1725
1e1dc4e8
JJ
17262009-05-22 Jakub Jelinek <jakub@redhat.com>
1727
1728 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1729 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1730 is, either do nothing at all if __ASSUME_ACCEPT4, or
1731 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1732 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1733 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1734 define.
1735 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1736 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1737 internal_accept4 in socket directory.
1738
10495c0b
UD
17392009-05-20 H.J. Lu <hongjiu.lu@intel.com>
1740
1741 * sysdeps/ia64/configure.in: New file.
1742
fa64b7f7
UD
17432009-05-21 H.J. Lu <hongjiu.lu@intel.com>
1744
1745 [BZ #10162]
1746 * sysdeps/ia64/memchr.S: Use speculative load.
1747
d2812fc6
L
1748 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1749 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1750 use it.
1751
e7535de7
L
1752 * sysdeps/i386/__longjmp.S: Add .text.
1753 * sysdeps/x86_64/__longjmp.S: Likewise.
1754
3533b1a6
UD
17552009-05-21 Ulrich Drepper <drepper@redhat.com>
1756
1757 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1758 __ASSUME_ACCEPT4 for IA-64.
1759
a2292378
JJ
17602009-05-21 Jakub Jelinek <jakub@redhat.com>
1761
d14eda93
JJ
1762 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1763
a2292378
JJ
1764 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1765 (SOCKOP_accept4): Define.
1766
d4ab2f2a
UD
17672009-05-20 Ulrich Drepper <drepper@redhat.com>
1768
ab09b221
UD
1769 Sun approved the change of the license.
1770 * sunrpc/auth_des.c: Replace license text.
1771 * sunrpc/auth_none.c: Likewise.
1772 * sunrpc/auth_unix.c: Likewise.
1773 * sunrpc/authdes_prot.c: Likewise.
1774 * sunrpc/authuxprot.c: Likewise.
1775 * sunrpc/bindrsvprt.c: Likewise.
1776 * sunrpc/clnt_gen.c: Likewise.
1777 * sunrpc/clnt_perr.c: Likewise.
1778 * sunrpc/clnt_raw.c: Likewise.
1779 * sunrpc/clnt_simp.c: Likewise.
1780 * sunrpc/clnt_tcp.c: Likewise.
1781 * sunrpc/clnt_udp.c: Likewise.
1782 * sunrpc/clnt_unix.c: Likewise.
1783 * sunrpc/des_crypt.c: Likewise.
1784 * sunrpc/des_soft.c: Likewise.
1785 * sunrpc/get_myaddr.c: Likewise.
1786 * sunrpc/getrpcport.c: Likewise.
1787 * sunrpc/key_call.c: Likewise.
1788 * sunrpc/key_prot.c: Likewise.
1789 * sunrpc/openchild.c: Likewise.
1790 * sunrpc/pm_getmaps.c: Likewise.
1791 * sunrpc/pm_getport.c: Likewise.
1792 * sunrpc/pmap_clnt.c: Likewise.
1793 * sunrpc/pmap_prot.c: Likewise.
1794 * sunrpc/pmap_prot2.c: Likewise.
1795 * sunrpc/pmap_rmt.c: Likewise.
1796 * sunrpc/rpc/auth.h: Likewise.
1797 * sunrpc/rpc/auth_unix.h: Likewise.
1798 * sunrpc/rpc/clnt.h: Likewise.
1799 * sunrpc/rpc/des_crypt.h: Likewise.
1800 * sunrpc/rpc/key_prot.h: Likewise.
1801 * sunrpc/rpc/netdb.h: Likewise.
1802 * sunrpc/rpc/pmap_clnt.h: Likewise.
1803 * sunrpc/rpc/pmap_prot.h: Likewise.
1804 * sunrpc/rpc/pmap_rmt.h: Likewise.
1805 * sunrpc/rpc/rpc.h: Likewise.
1806 * sunrpc/rpc/rpc_des.h: Likewise.
1807 * sunrpc/rpc/rpc_msg.h: Likewise.
1808 * sunrpc/rpc/svc.h: Likewise.
1809 * sunrpc/rpc/svc_auth.h: Likewise.
1810 * sunrpc/rpc/types.h: Likewise.
1811 * sunrpc/rpc/xdr.h: Likewise.
1812 * sunrpc/rpc_clntout.c: Likewise.
1813 * sunrpc/rpc_cmsg.c: Likewise.
1814 * sunrpc/rpc_common.c: Likewise.
1815 * sunrpc/rpc_cout.c: Likewise.
1816 * sunrpc/rpc_dtable.c: Likewise.
1817 * sunrpc/rpc_hout.c: Likewise.
1818 * sunrpc/rpc_main.c: Likewise.
1819 * sunrpc/rpc_parse.c: Likewise.
1820 * sunrpc/rpc_parse.h: Likewise.
1821 * sunrpc/rpc_prot.c: Likewise.
1822 * sunrpc/rpc_sample.c: Likewise.
1823 * sunrpc/rpc_scan.c: Likewise.
1824 * sunrpc/rpc_scan.h: Likewise.
1825 * sunrpc/rpc_svcout.c: Likewise.
1826 * sunrpc/rpc_tblout.c: Likewise.
1827 * sunrpc/rpc_util.c: Likewise.
1828 * sunrpc/rpc_util.h: Likewise.
1829 * sunrpc/rpcinfo.c: Likewise.
1830 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1831 * sunrpc/rpcsvc/key_prot.x: Likewise.
1832 * sunrpc/rpcsvc/klm_prot.x: Likewise.
1833 * sunrpc/rpcsvc/mount.x: Likewise.
1834 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1835 * sunrpc/rpcsvc/rex.x: Likewise.
1836 * sunrpc/rpcsvc/rstat.x: Likewise.
1837 * sunrpc/rpcsvc/rusers.x: Likewise.
1838 * sunrpc/rpcsvc/sm_inter.x: Likewise.
1839 * sunrpc/rpcsvc/spray.x: Likewise.
1840 * sunrpc/rpcsvc/yppasswd.x: Likewise.
1841 * sunrpc/rtime.c: Likewise.
1842 * sunrpc/svc.c: Likewise.
1843 * sunrpc/svc_auth.c: Likewise.
1844 * sunrpc/svc_authux.c: Likewise.
1845 * sunrpc/svc_raw.c: Likewise.
1846 * sunrpc/svc_run.c: Likewise.
1847 * sunrpc/svc_simple.c: Likewise.
1848 * sunrpc/svc_tcp.c: Likewise.
1849 * sunrpc/svc_udp.c: Likewise.
1850 * sunrpc/svc_unix.c: Likewise.
1851 * sunrpc/svcauth_des.c: Likewise.
1852 * sunrpc/xcrypt.c: Likewise.
1853 * sunrpc/xdr.c: Likewise.
1854 * sunrpc/xdr_array.c: Likewise.
1855 * sunrpc/xdr_float.c: Likewise.
1856 * sunrpc/xdr_mem.c: Likewise.
1857 * sunrpc/xdr_rec.c: Likewise.
1858 * sunrpc/xdr_ref.c: Likewise.
1859 * sunrpc/xdr_sizeof.c: Likewise.
1860 * sunrpc/xdr_stdio.c: Likewise.
1861
d4ab2f2a
UD
1862 * po/da.po: Update from translation team.
1863
04733592
KK
18642009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1865
1866 * sysdeps/sh/____longjmp_chk.S: New file.
1867 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1868 * sysdeps/sh/sh4/__longjmp.S: Likewise.
a2292378 1869
5078fff6
JJ
18702009-05-18 Jakub Jelinek <jakub@redhat.com>
1871 Ulrich Drepper <drepper@redhat.com>
1872
1873 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1874 (__nscd_cache_search): Assume each entry in the
1875 hash chain needs one hashentry and half of datahead. Use
1876 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1877
95410b7b
UD
18782009-05-16 Ulrich Drepper <drepper@redhat.com>
1879
c457bc13
UD
1880 * posix/sys/wait.h: Fix typos. Pretty printing.
1881 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 1882
a64039b0
UD
1883 [BZ #10159]
1884 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1885
95410b7b
UD
1886 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1887 patch.
1888
831a4049
UD
18892009-05-15 Ulrich Drepper <drepper@redhat.com>
1890
831a4049
UD
1891 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1892 Use it if we absolutely cannot reach any more correct list elements
1893 because that many do not fit into the currently mapped database.
1894
6dd78596
UD
18952009-05-14 Jakub Jelinek <jakub@redhat.com>
1896
cfe1fc10
JJ
1897 * nscd/nscd_helper.c: Include stddef.h.
1898 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
1899 in a couple of places. Return NULL if trail is not less than
1900 datasize, don't consider dataheads with length smaller than
1901 offsetof (struct datahead, data) + datalen.
1902 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1903 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1904 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1905 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1906 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1907 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1908 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1909
6dd78596
UD
1910 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1911 Rename ...
1912 (fallocate64): ... to this.
1913 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1914 Rename ...
1915 (fallocate64): ... to this.
1916 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1917 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1918 fallocate64@@GLIBC_2.10.
1919 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1920 fallocate64@@GLIBC_2.11.
1921 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1923 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1924 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1925
6dd78596
UD
1926 * nscd/selinux.c (nscd_avc_destroy): Removed.
1927 * nscd/selinux.h (nscd_avc_destroy): Likewise.
1928 * nscd/nscd.c (termination_handler): Don't call
1929 nscd_avc_destroy.
1930
cfe1fc10
JJ
19312009-05-12 Jakub Jelinek <jakub@redhat.com>
1932
1933 * include/atomic.h: Formatting.
1934 (catomic_compare_and_exchange_val_acq): Don't define if already
1935 defined by bits/atomic.h.
1936
774f5a30
UD
19372009-05-15 Ulrich Drepper <drepper@redhat.com>
1938
bbc5d74d
UD
1939 * math/libm-test.inc (expm1_test): Add test for range error.
1940
b50f8e42
UD
1941 * Versions.def: Add GLIBC_2.11 for libc.
1942 * debug/Makefile (routines): Add longjmp_chk.
1943 Add rules to build and run tst-longjmp_chk.
1944 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1945 * debug/longjmp_chk.c: New file.
1946 * debug/tst-longjmp_chk.c: New file.
1947 * include/bits/setjmp2.: New file.
1948 * include/stdio.h: Mark __fortify_fail as internal_function.
1949 * setjmp/Makefile (headers): Add bits/setjmp2.h.
1950 * setjmp/bits/setjmp2.h: New file.
1951 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1952 of the aliases.
1953 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1954 defined.
1955 * sysdeps/i386/____longjmp_chk.S: New file.
1956 * sysdeps/x86_64/____longjmp_chk.S: New file.
1957 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1958 * sysdeps/x86_64/__longjmp.S: Likewise.
1959
dc50b613
UD
1960 * version.h: Bump for 2.11 development.
1961
774f5a30
UD
1962 * elf/check-execstack.c: New file.
1963 * elf/Makefile: Add rules to build and run check-execstack.
1964
deb84c43
UD
19652009-05-10 Ulrich Drepper <drepper@redhat.com>
1966
1967 * version.h (VERSION): Bump to 2.10.1.
1968
1969 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1970 compatibility functions.
1971 * nss/getXXent_r.c: Likewise.
1972 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1973 * gshadow/getsgnam_r.c: Likewise.
1974 * gshadow/Version: Remove duplicate entries.
1975
1976 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1977 for recent processor.
1978 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1979 Likewise.
1980
deb318c2
UD
19812009-05-09 Ulrich Drepper <drepper@redhat.com>
1982
1983 * version.h (VERSION): Bump for 2.10 release.
1984 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1985
eb29449a
UD
1986 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1987 same place we add ASFLAGS-config.
1988
cf4f16cc
UD
19892009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1990
1991 [BZ #10128]
1992 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1993 or FORMERR and the other NOERROR, don't raise an error.
1994
23b6b466
UD
19952009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1996
1997 [BZ #10118]
1998 * Makeconfig (+asflags): New variable based upon ASFLAG or
1999 asflags-cpu.
2000 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2001 * config.make.in (asflags-cpu): Add variable based upon
2002 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2003 the assembler.
2004 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2005 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2006 recognizes power6 instruction set due to passing -mcpu=power6 from
2007 --with-cpu=power6 when compiling .S files.
2008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2009 Likewise.
2010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2011 Likewise.
2012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2013 Likewise.
2014
15417de3
UD
20152009-05-09 Jakub Jelinek <jakub@redhat.com>
2016
2017 * string/stratcliff.c (do_test): Test for zero length
2018 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2019 at the end of the page.
2020
b5f7c4ca
UD
20212009-05-08 Ulrich Drepper <drepper@redhat.com>
2022
4300afc1
UD
2023 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2024
2221e33e
UD
2025 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2026 count is zero.
2027
b5f7c4ca
UD
2028 * po/da.po: Update from translation team.
2029
1765abb3
UD
20302009-05-05 Jakub Jelinek <jakub@redhat.com>
2031
2032 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2033 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 2034
b5f7c4ca
UD
20352009-05-05 Ulrich Drepper <drepper@redhat.com>
2036
2037 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2038 and READ_IMPLIES_EXEC.
2039
20402009-05-04 Ulrich Drepper <drepper@redhat.com>
2041
2042 * po/da.po: Update from translation team.
2043
667712b8
JJ
20442009-04-29 Jakub Jelinek <jakub@redhat.com>
2045
2046 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2047 comment change.
2048
6284c9f6
UD
20492009-04-27 Jakub Jelinek <jakub@redhat.com>
2050
2051 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2052 to MAP_ANON in PROT_NONE mmap64 call.
2053 (open_archive): Likewise.
2054 (file_data_available_p): Use mmap64 instead of mremap.
2055 (enlarge_archive): Likewise. Update head if ah->addr changed.
2056 Attempt to reserve address space after mmap64 region.
2057
4ec77f72
UD
20582009-04-26 Ulrich Drepper <drepper@redhat.com>
2059
f0e3c47f
UD
2060 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2061 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2062 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2063
49768bb9
UD
2064 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2065 atanh should set ERANGE.
2066
e49dc847
UD
2067 [BZ #10087]
2068 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2069 result of lookup to make call to implement STT_GNU_IFUNC.
2070 (_dl_profile_fixup): Likewise.
2071 Patch by H.J. Lu <hjl.tools@gmail.com>.
2072
1ac03a1e
UD
2073 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2074 warning.
2075
6cc8844f
UD
2076 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2077 from definition.
2078
2079 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2080 label if it is not used.
2081
2082 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2083 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 2084 * elf/sprof.c: Likewise.
6cc8844f
UD
2085
2086 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2087 warning.
2088
2089 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2090
2091 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2092 to avoid cast.
2093
2094 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2095 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2096 to avoid warnings.
2097 (iruserok_af): Use ss_family instead of casts.
2098
2099 * gmon/gmon.c (write_hist): Define real-type variant of
2100 gmon_hist_hdr structure and use it.
2101 (write_gmon): Likewise for gmon_hdr.
2102
2103 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2104 function if we are not going to define it.
2105 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2106
218555e9 2107 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
2108 avoid warning.
2109
2110 * libio/strfile.h (struct _IO_streambuf): Use correct type and
2111 name of VTable element.
2112 * libio/iovsprintf.c: Avoid casts to avoid warnings.
2113 * libio/iovsscanf.c: Likewise.
2114 * libio/vasprintf.c: Likewise.
2115 * libio/vsnprintf.c: Likewise.
2116 * stdio-common/isoc99_vsscanf.c: Likewise.
2117 * stdlib/strfmon_l.c: Likewise.
2118 * debug/vasprintf_chk.c: Likewise.
2119 * debug/vsnprintf_chk.c: Likewise.
2120 * debug/vsprintf_chk.c: Likewise.
2121
4ec77f72
UD
2122 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2123 function pointers.
2124
82a1a4da
UD
21252009-04-26 Jakub Jelinek <jakub@redhat.com>
2126
2127 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2128
db6edfb3
UD
21292009-04-25 Ulrich Drepper <drepper@redhat.com>
2130
27be9b92
UD
2131 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2132
337c2708
UD
2133 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2134 * sysdeps/i386/fpu/s_tanf.S: Likewise.
2135 * sysdeps/i386/fpu/s_tanl.S: Likewise.
2136 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2137 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2138 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2139 * math/libm-test.inc: Add tests for errno after tan calls with
2140 ±Inf.
2141
002a604f
UD
2142 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2143 errno value vor pow(+-0,neg).
2144 * math/libm-test.inc (pow_test): Add tests for errno value for
2145 pole errors.
2146
7095366d
UD
2147 * math/w_fmod.c: Also handle x=±Inf as error.
2148 * math/w_fmodf.c: Likewise.
2149 * math/w_fmodl.c: Likewise.
2150 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2151 x=±Inf or y=0.
2152
0c59a196
UD
2153 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
2154 * sysdeps/i386/fpu/s_cosf.S: Likewise.
2155 * sysdeps/i386/fpu/s_cosl.S: Likewise.
2156 * sysdeps/i386/fpu/s_sin.S: Likewise.
2157 * sysdeps/i386/fpu/s_sinf.S: Likewise.
2158 * sysdeps/i386/fpu/s_sinl.S: Likewise.
2159 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2160 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2161 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2162 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2163 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2164 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2165 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2166 * math/libm-test.inc: Add tests for errno after sin/cos calls with
2167 ±Inf.
2168
4bbf8999
UD
2169 * stdlib/strtod_l.c (round_and_return): We have to set errno to
2170 ERANGE for underflows.
2171 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2172
af9f1c48
UD
2173 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2174 the 2001 revision.
2175
13327042
UD
2176 * libio/tst-widetext.input: Remove surrogates.
2177
c163ee23
UD
2178 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2179
e971e76d 2180 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 2181 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
2182 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2183
c2d5bd5b
UD
21842009-04-24 Ulrich Drepper <drepper@redhat.com>
2185
9c32c895
UD
2186 [BZ #10093]
2187 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2188 UTF-16 surrogates.
2189
c9edc889
UD
2190 * locale/programs/locarchive.c (enlarge_archive): Conserve address
2191 space when temporarily mapping the whole content of the old file.
2192
c2d5bd5b
UD
2193 [BZ #10100]
2194 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2195 not zero.
2196
f397be12
UD
21972009-04-24 Jakub Jelinek <jakub@redhat.com>
2198
2199 * iconvdata/sjis.c (BODY): Don't advance inptr before
2200 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2201 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2202 two byte chars.
2203
705341a9
UD
22042009-04-24 Ulrich Drepper <drepper@redhat.com>
2205
2206 * locale/locarchive.h (struct locarhandle): Rename len field to
2207 mmaped and add new reserved field.
2208 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2209 (create_archive): Reserve address space and then map file into it.
2210 (open_archive): Likewise.
2211 (file_data_available_p): New function.
2212 (compare_from_file): New function.
2213 (close_archive): Adjust to member name changes.
2214 (add_locale): Before comparing locale data, check it is mapped.
2215 Otherwise fall back to reading from the file.
2216
57d2da1c
UD
22172009-04-23 H.J. Lu <hongjiu.lu@intel.com>
2218
2219 * stdio-common/psiginfo.c: Include <errno.h>.
2220
3d855f75
UD
22212009-04-23 Ulrich Drepper <drepper@redhat.com>
2222
fe12c798
UD
2223 [BZ #9920]
2224 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2225 to get consistency between 32 and 64 bit architectures.
2226
3d855f75
UD
2227 [BZ #10052]
2228 * sysdeps/unix/make-syscalls.sh: Add rule to create target
2229 directory for dummy syscall rules.
2230 Patch by Chris Steinbroner <hesh@pobox.com>.
2231
95bf537f
UD
22322009-04-23 Aurelien Jarno <aurelien@aurel32.net>
2233
2234 [BZ #10092]
2235 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2236 MNT_EXPIRE.
2237
7f8a28ef
UD
22382009-04-23 Ulrich Drepper <drepper@redhat.com>
2239
2240 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
2241 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2242
22432009-04-23 Jakub Jelinek <jakub@redhat.com>
2244
2245 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
2246 data from vector to temporary buffer and call PWRITEV after it
2247 instead of vice versa.
2248 * sysdeps/posix/preadv.c: Fix up comment.
2249 * misc/preadv.c: Likewise.
2250 * misc/preadv64.c: Likewise.
2251 * misc/pwritev.c: Likewise.
2252 * misc/pwritev64.c: Likewise.
2253 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2254
829fea46
UD
22552009-04-23 Ulrich Drepper <drepper@redhat.com>
2256
c7e74e59
UD
2257 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2258
3b055b47
UD
2259 * shadow/Makefile (tests): Add tst-shadow.
2260 * shadow/tst-shadow.c: New file.
2261
829fea46
UD
2262 [BZ #9955]
2263 * gshadow/Makefile: New file.
2264 * gshadow/Versions: New file.
2265 * gshadow/fgetsgent.c: New file.
2266 * gshadow/fgetsgent_r.c: New file.
2267 * gshadow/getsgent.c: New file.
2268 * gshadow/getsgent_r.c: New file.
2269 * gshadow/getsgnam.c: New file.
2270 * gshadow/getsgnam_r.c: New file.
2271 * gshadow/gshadow.h: New file.
2272 * gshadow/putsgent.c: New file.
2273 * gshadow/sgetsgent.c: New file.
2274 * gshadow/sgetsgent_r.c: New file.
2275 * gshadow/tst-gshadow.c: New file.
2276 * include/gshadow.h: New file.
2277 * Makeconfig (all-subdirs): Add gshadow.
2278 * Makefile (installed-headers): Add gshadow/gshadow.h.
2279 * nss/Makefile (databases): Add sgrp.
2280 * nss/Versions: Add gshadow functions as private exports.
2281 * nss/nsswitch.conf: Add gshadow entry.
2282 * nss/sgrp-lookup.c: New file.
2283 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
2284 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2285 * nss/nss_files/files-sgrp.c: New file.
2286 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2287 * sysdeps/unix/sysv/linux/paths.h: Likewise.
2288
debafa10
UD
22892009-04-22 Ulrich Drepper <drepper@redhat.com>
2290
2291 * stdio-common/printf.h: Add missing const to register_printf_modifier.
2292 * stdio-common/reg-modifier.c: Likewise.
2293
22942009-04-22 Andrew Stubbs <ams@codesourcery.com>
2295
2296 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2297 is no FPU.
2298
0e04c0b5
UD
22992009-04-20 Ulrich Drepper <drepper@redhat.com>
2300
d43f10e7 2301 [BZ #10086]
1c376f5b
UD
2302 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2303 headers up to 2.6.30.
2304
0e04c0b5
UD
2305 * po/ca.po: Update from translation team.
2306
a245eafd
UD
23072009-04-19 Ulrich Drepper <drepper@redhat.com>
2308
2309 [BZ #10069]
2310 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2311 an object that uses static TLS if the TLS modid is higher than the
2312 reserve we always allocate. At least for multi-threaded code.
2313
0588a9cb
UD
23142009-04-18 Ulrich Drepper <drepper@redhat.com>
2315
153aa31b
UD
2316 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2317 Numerically stable check for valid width.
2318
59a7162b
UD
2319 * locale/programs/locarchive.c (open_archive): Map the entire file
2320 and not just the administrative data.
2321 (add_locale): When we find a hash sum match compare the content
2322 to be sure.
2323
0588a9cb
UD
2324 * malloc/malloc.c (malloc_info): Output address space information.
2325
17a5b24e
UD
23262009-04-17 Ulrich Drepper <drepper@redhat.com>
2327
da2d2fb6
UD
2328 * malloc/malloc.c (malloc_info): Also output system memory information.
2329
11cad88c
UD
2330 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2331 architectures have preadv/pwritev in 2.6.30.
2332
571ac26f
UD
2333 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2334 * sysdeps/posix/readv.c: Likewise.
2335 Reported by Markus Armbruster <armbru@redhat.com>.
2336
17a5b24e
UD
2337 * malloc/hooks.c (top_check): Force hook value into register.
2338
57ec6442
RM
23392009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2340
2341 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2342 calls to _dl_relocate_object.
2343
df77455c
UD
23442009-04-16 Ulrich Drepper <drepper@redhat.com>
2345
2346 [BZ #9957]
2347 * malloc/malloc.c (force_reg): Define.
2348 (sYSMALLOc): Load hook variable into variable
2349 before test and force into register.
2350 (sYSTRIm): Likewise.
2351 (public_mALLOc): Force hook value into register.
2352 (public_fREe): Likewise.
2353 (public_rEALLOc): Likewise.
2354 (public_mEMALIGn): Likewise.
2355 (public_vALLOc): Likewise.
2356 (public_pVALLOc): Likewise.
2357 (public_cALLOc): Likewise.
2358 (__posix_memalign): Likewise.
2359 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2360 before test and force into register.
2361 * malloc/hooks.c (top_check): Likewise.
3b055b47 2362 (public_sET_STATe): Pretty printing.
df77455c
UD
2363
2364 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2365 in case we only receive one reply in single-request mode.
2366
733ca93a
JJ
23672009-04-16 Jakub Jelinek <jakub@redhat.com>
2368
2369 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2370 are dlopened in statically linked program even for __LM_ID_CALLER.
2371
d0e81f10
UD
23722009-04-16 Ulrich Drepper <drepper@redhat.com>
2373
2374 * resolv/res_send.c (send_dg): Don't switch into single-request
2375 mode if we already are in it.
2376
6a3d03ff
UD
23772009-04-15 Ulrich Drepper <drepper@redhat.com>
2378
2379 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2380 are always at least 4 bytes in the returned line.
2381
23822009-04-15 Jakub Jelinek <jakub@redhat.com>
2383
2384 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2385 __libc_use_alloca (8192), if the stack is too small use 512 bytes
2386 instead of 8K. Stop searching in /proc/stat after hitting first
2387 line not starting with cpu.
2388 (next_line): Truncate too long
2389 lines at buffer size * 3/4 instead of pretending there were line
2390 breaks inside of large lines.
2391
ae650a41
UD
23922009-04-14 Ulrich Drepper <drepper@redhat.com>
2393
2394 * sysdeps/x86_64/mp_clz_tab.c: New file.
2395
353f2107 23962009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
677760a3 2397 Ulrich Drepper <drepper@redhat.com>
353f2107
UD
2398
2399 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2400 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 2401 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 2402
fc0c5705
UD
24032009-03-25 Andrew Stubbs <ams@codesourcery.com>
2404
2405 * sysdeps/sh/libc-tls.c: New file.
2406
2407 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2408
237a8867
RM
24092009-04-14 Roland McGrath <roland@redhat.com>
2410
2411 * elf/elf.h: Add various missing ARM constants, to match binutils.
2412
893a5fd4
UD
24132009-04-14 Ulrich Drepper <drepper@redhat.com>
2414
2415 Optimizations from GMP.
2416 * sysdeps/x86_64/add_n.S: New file.
2417 * sysdeps/x86_64/addmul_1.S: New file.
2418 * sysdeps/x86_64/lshift.S: New file.
2419 * sysdeps/x86_64/mul_1.S: New file.
2420 * sysdeps/x86_64/rshift.S: New file.
2421 * sysdeps/x86_64/sub_n.S: New file.
2422 * sysdeps/x86_64/submul_1.S: New file.
2423
e42e88ab
JJ
24242009-04-14 Jakub Jelinek <jakub@redhat.com>
2425
2426 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2427 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2428 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2429 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2430
b8a3bd82
UD
24312009-04-14 Ulrich Drepper <drepper@redhat.com>
2432
2433 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2434 preadv/pwritev.
2435
84aa52d7
UD
24362009-04-13 Ulrich Drepper <drepper@redhat.com>
2437
2438 * sysdeps/x86-64/strrchr.S: New file.
2439
9d26efa9
UD
24402009-04-10 Ulrich Drepper <drepper@redhat.com>
2441
2442 * stdio-common/printf.h (struct printf_info): Add user element.
2443 New types printf_arginfo_size_function, printf_va_arg_function.
2444 Declare register_printf_specifier, register_printf_modifier,
2445 register_printf_type.
2446 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2447 (union printf_arg): Add pa_user element.
2448 Adjust __printf_arginfo_table type.
2449 Add __printf_va_arg_table, __printf_modifier_table,
2450 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2451 declarations.
2452 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2453 If registered arginfo call failed try normal specifier.
2454 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2455 function.
2456 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2457 * stdio-common/Versions: Export register_printf_modifier,
2458 register_printf_type, and register_printf_specifier for GLIBC_2.10.
2459 * stdio-common/reg-modifier.c: New file.
2460 * stdio-common/reg-type.c: New file.
2461 * stdio-common/reg-printf.c (__register_printf_specifier): New
2462 function. Mostly the old __register_printf_function function but
2463 uses locking and type of third parameter changed.
2464 (__register_printf_function): Implement using
2465 __register_printf_specifier.
2466 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2467 calls to arginfo functions. Allocate enough memory for user-defined
2468 types. Call new va_arg functions to get user-defined types.
2469 Try installed handlers even for existing format specifiers first.
2470
28b2771a
UD
24712009-04-09 Ulrich Drepper <drepper@redhat.com>
2472
f140a0d5
UD
2473 * sysdeps/x86_64/rawmemchr.S: New file.
2474
e9b4d069 2475 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 2476 Simplified code and possible copy problem fixed.
e9b4d069 2477
f9fe75e9 2478 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 2479 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
2480 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2481
28b2771a
UD
2482 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2483 have preadv/pwritev in 2.6.30.
2484
4c8b8cc3
UD
24852009-04-08 Ulrich Drepper <drepper@redhat.com>
2486
bb066545
UD
2487 * malloc/malloc.c (malloc_info): New function.
2488 * malloc/malloc.h: Declare it.
2489 * malloc/Versions: Export malloc_info for GLIBC_2.10.
2490
0f9c8b48
UD
2491 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2492 to avoid PLT slot.
2493
4c8b8cc3
UD
2494 * malloc/malloc.c (_int_realloc): Add parameter with old block
2495 size. Remove duplicated test. Don't handle mmap'ed blocks here.
2496 Adjust all callers.
2497 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2498
ddba0f17
UD
24992009-04-07 Ulrich Drepper <drepper@redhat.com>
2500
cd57745b
UD
2501 * sysdeps/x86_64/strchrnul.S: New file.
2502
3db6c9a8 2503 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 2504 depending libcrypt on -lfreebl3.
3db6c9a8 2505
1a2ec17b
UD
2506 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2507 preadv/pwritev in 2.6.30.
2508
bb066545 2509 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 2510 instead of __strcasecmp.
c6807d38 2511
ddba0f17 2512 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 2513 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
2514 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2515 first read quad word.
2516
ae061910
UD
25172009-04-06 Ulrich Drepper <drepper@redhat.com>
2518
4bcb2658
UD
2519 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2520 * string/tst-svc.input: Add new test case.
2521 * string/tst-svc.expect: Adjust.
2522 * string/Makefile: Don't ignore tst-svc error.
2523
322e23db
UD
2524 * sysdeps/x86_64/memchr.S: New file.
2525
ae061910
UD
2526 * resolv/resolv.h (RES_SNGLKUP): Define.
2527 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2528 * resolv/res_send.c (send_dg): If we sent two requests at once and
2529 only get one reply before timeout switch to mode where we send the
2530 second request only after the first answer has been received.
2531
a152f366
UD
25322009-04-05 Ulrich Drepper <drepper@redhat.com>
2533
2534 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 2535 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 2536
2dbe6afe
UD
25372009-04-03 Ulrich Drepper <drepper@redhat.com>
2538
c0bac8b0
UD
2539 * configure.in: We need to test for the compiler earlier.
2540
e109c612
UD
2541 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2542 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2543 GLIBC_2.10.
2544 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2545 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2546 and pwritev.
2547 * misc/preadv.c: New file.
2548 * misc/preadv64.c: New file.
2549 * misc/pwritev.c: New file.
2550 * misc/pwritev64.c: New file.
2551 * sysdeps/posx/preadv.c: New file.
2552 * sysdeps/posx/preadv64.c: New file.
2553 * sysdeps/posx/pwritev.c: New file.
2554 * sysdeps/posx/pwritev64.c: New file.
2555 * sysdeps/unix/sysv/linux/preadv.c: New file.
2556 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2557 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2558 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2559 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2560 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2561
7166c77a
UD
2562 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2563 compatibility code.
2564 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2565
2dbe6afe
UD
2566 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2567 __ASSUME_COMPLETE_READV_WRITEV.
2568 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2569 with modern kernels.
2570 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2571
2572 * sysdeps/posix/readv.c: Since read is a cancellation point we have
2573 to free a possible malloced buffer in case of cancellation.
2574 * sysdeps/posix/writev.c: Likewise for write.
2575
ff886b82
UD
25762009-04-02 Ulrich Drepper <drepper@redhat.com>
2577
a065c007
UD
2578 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2579
ff886b82
UD
2580 * configure.in: Recognize --enable-nss-crypt.
2581 * config.make.in: Add nss-crypt entry.
2582 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2583 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
2584 and include path for NSS directory to compiler for md5-crypt,
2585 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
2586 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2587 function implementation, use NSS. Introduce wrappers around the
2588 hash function calls. Little code size optimization.
2589 * crypt/sha256-crypt.c: Likewise.
2590 * crypt/sha512-crypt.c: Likewise.
2591 * scripts/check-local-headers.sh: Ignore nss3 directory.
2592
2593 * configure.in: Rename pic_default to libc_cv_pic_default.
2594 * config.make.in: Likewise.
2595
1800de36
RM
25962009-04-01 Roland McGrath <roland@redhat.com>
2597
2598 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2599 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2600 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2601 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2602 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2603 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2604 (R_SPARC_NUM): Update.
2605 From Dave Miller <davem@davemloft.net>.
2606
7166c77a 26072009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
2608
2609 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2610
20739e54
UD
26112009-03-31 Ulrich Drepper <drepper@redhat.com>
2612
22c83193
UD
2613 * elf/dl-open.c: Keep track of used name spaces and only iterate over
2614 those which are used.
2615 * elf/dl-addr.c: Likewise.
2616 * elf/dl-caller.c: Likewise.
2617 * elf/dl-fini.c: Likewise.
2618 * elf/dl-iteratephdr.c: Likewise.
2619 * elf/dl-libc.c: Likewise.
2620 * elf/dl-load.c: Likewise.
2621 * elf/dl-support.c: Likewise.
2622 * elf/dl-sym.c: Likewise.
2623 * elf/rtld.c: Likewise.
2624 * sysdeps/generic/ldsodefs.h: Likewise.
2625
20739e54
UD
2626 * elf/dl-load.c: Remove support for systems without MAP_ANON.
2627 * elf/dl-minimal.c: Likewise.
2628 * elf/dl-misc.c: Likewise.
2629 * elf/rtld.c: Likewise.
2630 * sysdeps/generic/ldsodefs.h: Likewise.
2631
db486995
UD
26322009-03-30 Ulrich Drepper <drepper@redhat.com>
2633
cb14424e
UD
2634 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2635 Avoid reuse of complex expression.
2636
db486995
UD
2637 * po/fr.po: Update from translation team.
2638
ae8d7b44
UD
26392009-03-16 Ulrich Drepper <drepper@redhat.com>
2640
2641 * include/dirent.h: Yet more changes to match sort function type
2642 change.
2643 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2644 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2645 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2646
8efb2f1c
UD
26472009-03-16 Thomas Schwinge <tschwinge@gnu.org>
2648
2649 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2650
d9822dbe
UD
26512009-03-16 Ulrich Drepper <drepper@redhat.com>
2652
2653 * nscd/connections.c (restart): Try to preserve the process name
2654 by reading the /proc/self/exe symlink and using the return name.
2655 Patch by Jeff Bastian <jbastian@redhat.com>.
2656
71a5bd3e
UD
26572009-03-15 Ulrich Drepper <drepper@redhat.com>
2658
2ca285b0
UD
2659 [BZ #9733]
2660 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2661 if we are not loading a new audit library.
2662 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2663 Only use profiling trampoline for auditing if we are not relocating
2664 an audit library.
2665 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2666 * elf/rtld.c: Likewise.
2667 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2668
7e342603
UD
2669 * elf/rtld.c (dl_main): Extend help message for --audit option.
2670
eee6b143
UD
2671 [BZ #9759]
2672 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2673 alphasort64, versionsort, and versionsort64 to POSIX 2008.
2674 * dirent/alphasort.c: Adjust implementation to type change.
2675 * dirent/alphasort64.c: Likewise.
2676 * dirent/scandir.c: Likewise.
2677 * dirent/versionsort.c: Likewise.
2678 * dirent/versionsort64.c: Likewise.
2679 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2680 declaration.
2681 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2682 declaration.
2683
cd2d01fa
UD
2684 [BZ #9880]
2685 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2686 correctly. Set segleft member in output as required.
2687 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2688 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2689
906dd40d
UD
2690 [BZ #9881]
2691 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2692 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2693 * inet/Makefile (tests): Add tst-inet6_rth.
2694 * inet/tst-inet6_rth.c: New file.
2695
71a5bd3e
UD
2696 [BZ #5807]
2697 * string/strlen.c (strlen): Fix omission in the expression to test
2698 for NUL bytes.
2699
878b72c5
UD
27002009-03-14 Ulrich Drepper <drepper@redhat.com>
2701
fad070ab
UD
2702 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2703
a42ad61b
UD
2704 * elf/dl-runtime.c (reloc_offset): Define.
2705 (reloc_index): Define.
2706 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2707 (_dl_fixup_profile): Likewise. Use reloc_index instead of
2708 computing index from reloc_offset.
2709 (_dl_call_pltexit): Likewise.
2710 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2711 the relocation index to _dl_fixup.
2712 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2713 _dl_call_pltexit.
2714 * sysdeps/x86_64/dl-runtime.c: New file.
2715
1f7c90a7
UD
2716 [BZ #9893]
2717 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 2718 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
2719 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2720
45466462
UD
2721 [BZ #9913]
2722 * string/strverscmp.c (__strverscmp): Fix case of different digits
2723 in fractional part of string.
2724 Patch by Jingyu Liu <jyliu@fortinet.com>.
2725 * string/Makefile (tests): Add tst-svc2.
2726 * string/tst-svc2.c: New file.
2727
2728 * string/strverscmp.c (__strverscmp): Optimize size of tables.
2729
878b72c5
UD
2730 * locale/iso-639.def: Add Min Nan.
2731
f53713a8
UD
27322009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2733
878b72c5 2734 [BZ #9948]
f53713a8
UD
2735 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2736
f81ce288
UD
27372009-03-14 Ulrich Drepper <drepper@redhat.com>
2738
f53713a8
UD
2739 * elf/dl-sysdep.c (auxvars): Compress data structure.
2740
f81ce288
UD
2741 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2742 STT_GNU_IFUNC handling.
2743 (elf_machine_rela): Likewise.
2744
425ce2ed
UD
27452009-03-13 Ulrich Drepper <drepper@redhat.com>
2746
2747 * config.h.in (USE_MULTIARCH): Define.
2748 * configure.in: Handle --enable-multi-arch.
2749 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2750 (_dl_fixup_profile): Likewise.
2751 * elf/do-lookup.c (dl_lookup_x): Likewise.
2752 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2753 * elf/elf.h (STT_GNU_IFUNC): Define.
2754 * include/libc-symbols.h (libc_ifunc): Define.
2755 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2756 framework in init-arch.h to get CPUID values.
2757 * sysdeps/x86_64/multiarch/Makefile: New file.
2758 * sysdeps/x86_64/multiarch/init-arch.c: New file.
2759 * sysdeps/x86_64/multiarch/init-arch.h: New file.
2760 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2761
2762 * config.make.in (experimental-malloc): Define.
2763 * configure.in: Handle --enable-experimental-malloc.
2764 * malloc/Makefile: Handle experimental-malloc flag.
2765 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2766 * malloc/arena.c: Likewise.
2767 * malloc/hooks.c: Likewise.
2768 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2769
e7f110cd
UD
27702009-03-11 Ulrich Drepper <drepper@redhat.com>
2771
2772 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2773 prediction. A few size optimizations.
2774
bd82a247
UD
27752009-03-10 Ulrich Drepper <drepper@redhat.com>
2776
2777 * time/tzset.c: Optimize a bit for size.
2778
a99e59d7
UD
27792009-03-10 Jakub Jelinek <jakub@redhat.com>
2780
2781 * include/stdio.h (fmemopen): Add libc_hidden_proto.
2782 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2783
2784 * elf/sprof.c: Avoid warning about multi-line comment.
2785
686f8c9d
UD
27862009-03-10 Ulrich Drepper <drepper@redhat.com>
2787
2788 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2789 DST name.
2790 * time/tst-posixtz.c: Add tests for quoted timezone names.
2791
7db0cc42
UD
27922009-03-10 Jakub Jelinek <jakub@redhat.com>
2793
2794 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2795 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2796 200809L instead of 200112L.
2797 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2798 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2799
eec4b454
UD
2800 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2801 instead of __quick_exit_funcs to __run_exit_handlers.
2802 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2803 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2804 (__cxa_at_quick_exit): Remove attribute_hidden.
2805 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2806 to __run_exit_handlers.
2807 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2808 attribute_hidden.
2809
d7276cee
UD
28102009-03-10 Ulrich Drepper <drepper@redhat.com>
2811
2812 * po/id.po: Update from translation team.
2813
1454da21
UD
28142009-02-18 Jakub Jelinek <jakub@redhat.com>
2815
2816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2817 .machine push; .machine "power6" and .machine pop around mtfsf
2818 insns outside of _ARCH_PWR6 define.
2819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2821 Likewise.
2822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2823 Likewise.
2824 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2825 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2826 relax_fenv_state): Likewise.
2827
130ca12e
UD
28282009-03-08 Ulrich Drepper <drepper@redhat.com>
2829
610e67ed
UD
2830 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2831 cxa_at_quick_exit.
2832 (static-only-routines): Add at_quick_exit.
2833 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2834 GLIBC_2.10.
2835 * stdlib/quick_exit.c: New file.
2836 * stdlib/at_quick_exit.c: New file.
2837 * stdlib/cxa_at_quick_exit.c: New file.
2838 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
2839 it appropriately.
2840 (__internal_atexit): New function.
2841 (__new_exitfn): Now takes parameter to point to the list to use.
2842 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2843 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
2844 (exit): ...here. Just call __run_exit_handlers appropriately.
2845 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2846 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
2847 * stdlib/on_exit.c: Adjust call to __new_exitfn.
2848 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2849
130ca12e
UD
2850 * po/id.po: Update from translation team.
2851
9a4f9d1f
UD
28522009-03-07 Ulrich Drepper <drepper@redhat.com>
2853
2854 * po/ru.po: Update from translation team.
2855
6d781c94
UD
28562009-03-04 Ulrich Drepper <drepper@redhat.com>
2857
2858 * po/nl.po: Update from translation team.
2859
e00c5ece
UD
28602009-03-03 Ulrich Drepper <drepper@redhat.com>
2861
99eb932f
UD
2862 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2863 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2864 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2865 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2866 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2867 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2868 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2869
e00c5ece
UD
2870 * po/pl.po: Update from translation team.
2871
749f5cc9
UD
28722009-03-02 Ulrich Drepper <drepper@redhat.com>
2873
1b994772 2874 [BZ #7083]
749f5cc9
UD
2875 * sysdeps/unix/sysv/linux/fallocate.c: New file.
2876 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2877 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2878 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2879 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2880 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2881 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2882 for GLIBC_2.10.
2883 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2884 Add fallocate and fallocate64.
2885
2886 * io/fcntl.h: Pretty printing.
2887
6219e3cc
JJ
28882009-03-02 Richard Guenther <rguenther@suse.de>
2889
2890 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2891 attribute also for non-C99 inline semantics variant.
2892
134a9766
UD
28932009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2894
2895 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2896 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2897 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2898 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2900 Likewise.
2901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2902 Likewise.
2903
95bc1633
UD
29042009-03-02 Ulrich Drepper <drepper@redhat.com>
2905
2906 * po/cs.po: Update from translation team.
2907
43ea48a5
UD
29082009-02-28 Ulrich Drepper <drepper@redhat.com>
2909
2910 * po/bg.po: Update from translation team.
2911 * po/sv.po: Likewise.
f5faa3b6 2912 * po/fi.po: Likewise.
45572c23 2913 * po/vi.po: Likewise.
43ea48a5 2914
e965d514
RM
29152009-02-27 Roland McGrath <roland@redhat.com>
2916
2917 * Makeconfig (%.v.i): Depend on Makeconfig.
2918 Exclude % lines from initial #-comment removal.
2919
56a9651f
UD
29202009-02-27 Ulrich Drepper <drepper@redhat.com>
2921
2922 * po/ko.po: Update from translation team.
2923
682825ce
RM
29242009-02-26 Roland McGrath <roland@redhat.com>
2925
2926 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2927 avoids unused warning.
2928
a3c37506
UD
29292009-02-26 Andrew Stubbs <ams@codesourcery.com>
2930 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2931
2932 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2933 sys/ucontext.h and asm/elf.h. Include sys/user.h.
2934 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2935 and asm/user.h. Include asm/ptrace.h.
2936 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2937 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2938 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2939 Undefine.
2940 (start_thread): Don't undefine.
2941 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2942 Define.
2943
f503060b
UD
29442009-02-26 Ulrich Drepper <drepper@redhat.com>
2945
6cbe890a
UD
2946 * wctype/wctype.h: The *_l functions are in POSIX 2008.
2947 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2948 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2949 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2950 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2951 200112L to 200809L.
2952 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2953 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2954 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2955 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2956 _SC_THREAD_ROBUST_PRIO_PROTECT.
2957 * posix/unistd.h: fexecve is in POSIX 2008.
2958 * time/time.h: strftime_l is in POSIX 2008.
2959 * io/sys/stat.h: futimens is in POSIX 2008.
2960 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2961 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2962 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2963 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
2964 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2965 open_memstream, and vdprintf are in POSIX 2008.
2966
2e6d6bac
UD
29672009-02-25 Ulrich Drepper <drepper@redhat.com>
2968
3e6b0a28 2969 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
2970 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2971 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2972 POSIX 2008.
1f04d005
UD
2973 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2974 * locale/xlocale.h: Define locale_t type.
2975 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2976 in POSIX 2008. Don't define locale_t here.
2977 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
2978 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2979 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
2980 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2981 * stdio-common/psiginfo.c: New file.
2982 * stdio-common/psiginfo-data.h: New file.
2983 * stdio-common/psiginfo-define.h: New file.
2984 * stdio-common/Makefile (routines): Add psiginfo.
2985 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
2986 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2987 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2988 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2989 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2990 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2991 * io/sys/stat.h: Move mknodat definition into same conditional as
2992 mknod.
2993 * time/sys/time.h: futimesat is not among the functions accepted
2994 into the POSIX standard.
2995
2e6d6bac
UD
2996 * include/features.h: If no feature selection given and we select
2997 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2998 * posix/Versions: Export __posix_getopt.
2999 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3000 Use it to alternatively initialize __posixly_correct.
3001 (_getopt_internal_r): Take addition parameter. Pass on to
3002 _getopt_initialize.
3003 (_getopt_internal): Take addition parameter. Pass on to
3004 _getopt_internal_r.
3005 (getopt): Pass additional zero to _getopt_internal.
3006 (__posix_getopt): New function.
3007 * posix/getopt.h: Add redirection for getopt.
3008 * posix/getopt1.c (getopt_long): Pass additional zero to
3009 _getopt_internal.
3010 (getopt_long_only): Likewise.
3011 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3012 (_getopt_long_only_r): Likewise.
3013 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3014 _getopt_internal_r.
3015
67108e40
UD
30162009-02-24 Ulrich Drepper <drepper@redhat.com>
3017
3018 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3019 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3020 * sysdeps/posix/sysconf.c (__sysconf): Handle
3021 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3022 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3023
1cccb96f
RM
30242009-02-24 Roland McGrath <roland@redhat.com>
3025
3026 [BZ #9895]
3027 * README.template: Reworded not to use substituted version number.
3028 Renamed to ...
3029 * README: ... here (no longer generated).
3030 * Makefile (README): Target removed.
3031
82780cbe
UD
30322009-02-24 Ulrich Drepper <drepper@redhat.com>
3033
5be0a688 3034 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 3035 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
3036 instead.
3037
8c4a5f42
UD
3038 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3039
82780cbe
UD
3040 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3041
77c571dd
UD
30422009-02-22 Ulrich Drepper <drepper@redhat.com>
3043
3044 * po/bg.po: Update from translation team.
3045
d82a27f8
JJ
30462009-02-16 Jakub Jelinek <jakub@redhat.com>
3047
3048 * stdlib/monetary.h: Uglify function parameter names.
3049 * sunrpc/rpc/pmap_clnt.h: Likewise.
3050 * sunrpc/rpc/svc.h: Likewise.
3051 * sunrpc/rpc/xdr.h: Likewise.
3052 * sunrpc/rpc/clnt.h: Likewise.
3053 * resolv/netdb.h: Likewise.
3054 * resolv/arpa/nameser.h: Likewise.
3055 * resolv/resolv.h: Likewise.
3056 * argp/argp.h: Likewise.
3057 * locale/langinfo.h: Likewise.
3058 * io/sys/stat.h: Likewise.
3059 * posix/spawn.h: Likewise.
3060 * nis/rpcsvc/nislib.h: Likewise.
3061 * malloc/obstack.h: Likewise.
3062 * sysdeps/ia64/bits/link.h: Likewise.
3063 * sysdeps/i386/bits/link.h: Likewise.
3064 * sysdeps/s390/bits/link.h: Likewise.
3065 * sysdeps/powerpc/bits/link.h: Likewise.
3066 * sysdeps/x86_64/bits/link.h: Likewise.
3067 * sysdeps/sparc/bits/link.h: Likewise.
3068 * sysdeps/sh/bits/link.h: Likewise.
3069 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3070 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3071 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3072 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3073
58a7457e
JJ
30742008-12-01 Fredrik Unger <fred@tree.se>
3075
3076 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3077 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3078 _FP_UNPACK_RAW_2, fix up first argument.
3079
f43b4be6
UD
30802009-02-15 Ulrich Drepper <drepper@redhat.com>
3081
3082 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3083 (GET_NPROCS_PARSER): Change parameters and use next_line.
3084 (__get_nprocs): Rewrite to not use stdio routines.
3085 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3086 Change parameters and use next_line.
3087
20e498bd
UD
30882009-02-13 Ulrich Drepper <drepper@redhat.com>
3089
3090 [BZ #5381]
3091 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3092 Change mempool_alloc prototype.
3093 * nscd/mem.c (gc): Don't handle mem_in_flight.
3094 (mempool_alloc): Third parameter now only indicates whether this is the
3095 first call (to allocate data) or not. If it is, get db rdlock.
3096 Release it on error. Don't handle mem_in_flight.
3097 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3098 Adjust third parameter of mempool_alloc calls.
3099 Nothing to do here in case mempool_alloc fails.
3100 Avoid local variable shadowing parameter. No need to get db rdlock
3101 before calling cache_add.
3102 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
3103 no mem_in_flight array anymore.
3104 * nscd/connections.c: Remove definition and handling of mem_in_flight.
3105 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3106 mempool_alloc calls. Mark he parameter as const. Nothing to do here
3107 in case mempool_alloc fails. No need to get db rdlock before calling
3108 cache_add.
3109 * nscd/hstcache.c (cache_addhst): Likewise.
3110 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3111 * nscd/servicescache.c (cache_addserv): Likewise.
3112 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
3113
d8111eac
UD
31142009-02-11 Ulrich Drepper <drepper@redhat.com>
3115
3116 * po/lt.po: Update from translation team.
3117
40e2fc8b
UD
31182009-02-10 Ulrich Drepper <drepper@redhat.com>
3119
3120 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3121 defined, allow additional data to be added using the optional
3122 MORE_ELF_HEADER_DATA macro.
3123 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3124 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3125
6c03cd11
UD
31262009-02-08 Ulrich Drepper <drepper@redhat.com>
3127
3128 * include/atomic.h: Define catomic_and if not already defined.
3129 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3130 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3131
bc16e0c4
UD
31322009-02-07 Ulrich Drepper <drepper@redhat.com>
3133
78ac92ad
UD
3134 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3135 Change all callers.
6dd6a580 3136 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 3137 All _int_* functions are now static.
6dd6a580 3138
78ac92ad
UD
3139 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3140 * malloc/arena.c: Likewise.
3141 * include/malloc.h: Remove now unnecessary declarations of the _int_*
3142 functions.
3143
7dddb4bd
UD
3144 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3145 easily.
3146
bfacf1af
UD
3147 * malloc/malloc.c: Add branch prediction for use of the hooks.
3148
bc16e0c4
UD
3149 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3150
26b62243
UD
31512009-02-06 Ulrich Drepper <drepper@redhat.com>
3152
3153 [BZ #7095]
3154 * bits/confname.h: Add SUSv7 macros for getconf environments.
3155 * bits/environments.h: Likewise.
3156 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3157 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3158 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3159 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3160 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3161 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3162 * posix/getconf.c: Likewise.
3163 * posix/sysconf.c: Likewise.
3164 * sysdeps/posix/sysconf.c: Likewise.
3165 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3166 environments.
3167
3fe4c5b3
UD
31682009-01-16 Petr Baudis <pasky@suse.cz>
3169
3170 [BZ #9753]
3171 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3172 even if we currently have zero nscount.
3173
cbbcaf23
UD
31742009-02-06 Ulrich Drepper <drepper@redhat.com>
3175
1a9dd4e4
UD
3176 [BZ #9781]
3177 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3178 the input line is too long.
3179
51f8846e
UD
3180 * po/Makefile (libc.pot): Add f_print as function taking c-format
3181 parameter.
3182
cbbcaf23
UD
3183 * debug/xtrace.sh: Unify translatable messages.
3184 * elf/ldd.bash.in: Likewise.
3185 * elf/sprof.c: Likewise.
3186 * locale/programs/locale.c: Likewise.
3187 * malloc/memusage.sh: Likewise.
3188 * nss/getent.c: Likewise.
3189
31902009-02-06 Joseph Myers <joseph@codesourcery.com>
3191
3192 * debug/pcprofiledump.c (print_version,
3193 argp_program_version_hook): New function.
3194 * elf/ldconfig.c (more_help): New function.
3195 (argp): Use it.
3196 * elf/sln.c (usage): New function.
3197 (main): Support --help and --version.
3198 * malloc/memusagestat.c (print_version): New function.
3199 (argp_program_version_hook): New variable.
3200 * nscd/nscd.c (more_help): New function.
3201 (argp): Use it.
3202 * posix/getconf.c (main): Send --version output to stdout.
3203 Support --help.
3204 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3205 arguments. All callers changed.
3206 (print_version): New function.
3207 (parseargs): Support --help and --version.
3208 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
3209 changed.
3210 (print_version): New function.
3211 (main): Use getopt_long. Support --help and --version.
3212 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3213 --version.
3214
88a3b8f9
UD
32152009-02-06 Ulrich Drepper <drepper@redhat.com>
3216
e2e390fa
UD
3217 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3218 (update_data): Fix handling of wrapping back
c3ab42a8
UD
3219 to the beginning of the buffer.
3220
88a3b8f9
UD
3221 [BZ #9823]
3222 * stdio-common/psignal.c (psignal): Fix test for empty string.
3223
62f63c47
UD
32242009-02-05 Ulrich Drepper <drepper@redhat.com>
3225
4f7408c7
UD
3226 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3227 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
3228 move _null_auth to .rodata.
3229
970aa10f
UD
3230 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3231 value of 24.
3232
52de761a
UD
3233 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3234
62f63c47
UD
3235 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3236 today than when the original code was written. Use larger
3237 buffers. This also makes it unnecessary to have stat information,
3238 if this causes extra efforts.
3239 (__opendir): In case O_DIRECTORY works, don't call fstat just for
3240 __alloc_dir.
3241
0899b889
UD
32422009-02-03 Andrew Stubbs <ams@codesourcery.com>
3243
3244 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3245 is set.
3246 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3247 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3248 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3249 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3250 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3251 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3252
22cc3f75
UD
32532009-02-04 Ulrich Drepper <drepper@redhat.com>
3254
3255 * po/ru.po: Update from translation team.
3256
a71433e7
UD
32572008-11-17 Nathan Sidwell <nathan@codesourcery.com>
3258
3259 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3260 Add _tid slot to maintain consistency with kernel.
3261
82f2e9c6 32622009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 3263
82f2e9c6
UD
3264 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3265 incomplete characters at end of input buffer.
3266 * libio/Makefile (tests): Add tst-fgetwc.
3267 * libio/tst-fgetwc.c: New file.
3268 * libio/tst-fgetwc.input: New file.
3a2e9947 3269
ba022c06
UD
32702009-02-02 Andrew Stubbs <ams@codesourcery.com>
3271
3272 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3273
1b14353e
UD
32742009-02-02 Ulrich Drepper <drepper@redhat.com>
3275
3276 [BZ #9793]
3277 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3278 *OUTBUFSTART unless the whole output fit into the buffer.
3279 * iconv/Makefile (tests): Add tst-iconv4.
3280 * iconv/tst-iconv4.c: New file.
3281
ebc22416
UD
32822009-02-01 Ulrich Drepper <drepper@redhat.com>
3283
3284 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3285 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3286
7c8a6732
UD
32872009-01-29 Andrew Stubbs <ams@codesourcery.com>
3288
3289 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3290 newer linker scripts.
3291
43149780
UD
32922009-01-30 Ulrich Drepper <drepper@redhat.com>
3293
3294 [BZ #7040]
3295 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3296 inotify_rm_watch should have type int.
3297
bd4ace0b
UD
32982009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
3299
3300 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3301 Make aligned_restore_vmx a local symbol.
3302 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3303 Likewise.
3304
430902da
AJ
33052009-01-30 Andreas Jaeger <aj@suse.de>
3306
3307 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3308 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3309 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3310 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3311 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3312 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3313 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3314
b7219e53
UD
33152009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3316
3317 [BZ #9726]
3318 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3319 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3320
33212009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3322
3323 [BZ #9726]
3324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3325 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3327 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3328
a3bd2846
UD
33292009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3330
3331 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3332 memcpy instead of memcmp.
3333 (_dl_setup_pointer_guard): Likewise.
3334
1fdd89a7
UD
33352009-01-30 Ulrich Drepper <drepper@redhat.com>
3336
3337 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3338 manipulated brk, use malloc_printerr.
3339 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3340 requests.
3341
8585cb74
UD
33422009-01-30 Jakub Jelinek <jakub@redhat.com>
3343
3344 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3345 rindex): For C++ add inlines so that they can be recognized as
3346 builtins.
3347 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3348
d8387c7b
UD
33492009-01-29 Ulrich Drepper <drepper@redhat.com>
3350 Jakub Jelinek <jakub@redhat.com>
3351
cdf77dd8
UD
3352 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3353 * wcsmbs/wchar.h: Likewise.
d8387c7b 3354
647925b2
UD
33552009-01-29 Ulrich Drepper <drepper@redhat.com>
3356
3357 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3358 (stackinfo_sub_sp): Define.
3359
5627534a
UD
33602009-01-28 Ulrich Drepper <drepper@redhat.com>
3361
fd537e53
UD
3362 [BZ #9750]
3363 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3364 * include/alloca.h (alloca_account): Define.
3365 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3366 (stackinfo_sub_sp): Define.
3367
00f5df0e
UD
3368 * nscd/connections.c (nscd_init): If database file access fails
3369 check whether this is due to permission problems and bail in that
3370 case.
31d322a2 3371
5627534a
UD
3372 [BZ #9741]
3373 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3374 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3375
a7bd183f
UD
33762009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3377
3378 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3379 Add "t" to clobber list.
3380 (INTERNAL_SYSCALL_NCS): Likewise.
3381
1dd75769
UD
33822009-01-28 Ulrich Drepper <drepper@redhat.com>
3383
3384 * nss/getent.c (print_networks): Don't print comma between aliases.
3385
25e84177
UD
33862009-01-23 Ulrich Drepper <drepper@redhat.com>
3387
3388 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3389
3390 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3391 the hash table.
3392 * misc/Makefile (tests): Add bug-hsearch1.
3393 * misc/bug-hsearch1.c: New file.
3394
0699a0ca
RM
33952009-01-22 Roland McGrath <roland@redhat.com>
3396
3397 * Makeconfig (%.v.i): Strip trailing # comments,
3398 not only whole-line comments.
3399
965cb60a
UD
34002009-01-10 Ulrich Drepper <drepper@redhat.com>
3401
3402 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3403 one parameter. If non-NULL use it to initialize return value.
3404 (_dl_setup_pointer_guard): New function.
3405 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3406 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3407 * elf/rtld.c (security_init): Pass _dl_random to
3408 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
3409 pointer_chk_guard.
3410 * elf/dl-sysdep.c (_dl_random): New variable.
3411 (_dl_sysdep_start): Handle AT_RANDOM.
3412 (_dl_show_auxv): Likewise.
3413 * elf/dl-support.c (_dl_random): New variable.
3414 (_dl_aux_init): Handle AT_RANDOM.
3415 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3416 to _dl_setup_stack_chk_guard.
3417
3418 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3419
8be96dd1
RM
34202009-01-10 Roland McGrath <roland@redhat.com>
3421
3422 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3423
157cd5ac
UD
34242009-01-08 Ulrich Drepper <drepper@redhat.com>
3425
9b1c750e
UD
3426 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3427
157cd5ac
UD
3428 [BZ #9706]
3429 * nss/nss_files/files-parse.c (strtou32): New function.
3430 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3431 across 32-bit and 64-bit platforms.
3432 (INT_FIELD_MAYBE_NULL): Likewise.
3433
960af8c2
JJ
34342009-01-08 Jakub Jelinek <jakub@redhat.com>
3435
3436 [BZ #9720]
3437 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3438 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3439 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3440 Likewise.
3441
76c7f2cd
UD
34422009-01-05 Paolo Bonzini <bonzini@gnu.org>
3443
16c124f7 3444 [BZ #697]
76c7f2cd
UD
3445 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3446 being NULL also if there are no backreferences.
3447 * posix/rxspencer/tests: Add testcases.
3448
bdb56bac
UD
34492009-01-04 Paolo Bonzini <bonzini@gnu.org>
3450
16c124f7 3451 [BZ #9697]
bdb56bac
UD
3452 * posix/bug-regex17.c: Add testcases.
3453 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3454 handling.
3455
0480c901
UD
34562009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3457
3458 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3459 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3460 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3461 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3462 for elf subdir.
3463 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3464 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3465 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3466 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3467 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3468 * sysdeps/unix/sysv/linux/s390/Versions: New file.
3469
b3918c7d
UD
34702008-12-31 Paolo Bonzini <bonzini@gnu.org>
3471
3472 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3473 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3474 re_string_skip_chars, re_string_reconstruct): Likewise.
3475 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3476
df9293cb
UD
34772008-12-31 Rafael Avila de Espindola <espindola@google.com>
3478
3479 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3480 adjust the buffer alignment.
3481
c90c1e1c
RM
34822009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3483
3484 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3485 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3486 net/route.h.
3487
3488 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3489 flavor to description only when flavor is not NULL.
3490
3491 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3492 mutex after SIGIO/SIGURG lookup loop.
3493
5aff6fdf
RM
34942009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3495
3496 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3497
b2bcd249
UD
34982009-01-03 Ulrich Drepper <drepper@redhat.com>
3499
3500 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3501 handling.
3502
d36ad871
UD
35032009-01-02 Ulrich Drepper <drepper@redhat.com>
3504
ebb2788e
UD
3505 * sysdeps/unix/sysv/linux/kernel-features.h
3506 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3507
72098116
UD
3508 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3509 if no output is written.
3510
623d0bf5
UD
3511 * version.h: Bump to 2.10 development.
3512
d36ad871
UD
3513 * posix/getconf.c: Update copyright year.
3514 * nss/getent.c: Likewise.
3515 * iconv/iconvconfig.c: Likewise.
3516 * iconv/iconv_prog.c: Likewise.
3517 * elf/ldconfig.c: Likewise.
3518 * catgets/gencat.c: Likewise.
3519 * csu/version.c: Likewise.
3520 * elf/ldd.bash.in: Likewise.
3521 * elf/sprof.c (print_version): Likewise.
3522 * locale/programs/locale.c: Likewise.
3523 * locale/programs/localedef.c: Likewise.
3524 * nscd/nscd.c (print_version): Likewise.
3525 * debug/xtrace.sh: Likewise.
3526 * malloc/memusage.sh: Likewise.
3527 * malloc/mtrace.pl: Likewise.
3528 * debug/catchsegv.sh: Likewise.
3529
25df09ab
UD
35302008-12-29 Mike Frysinger <vapier@gentoo.org>
3531
3532 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3533 script.
3534
16b7dc27
UD
35352008-12-29 Ulrich Drepper <drepper@redhat.com>
3536
bfbbc63f
UD
3537 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3538 gethostbyname4_r function call succeeded, just leave the loop.
3539
0f2ae55c
UD
3540 [BZ #9694]
3541 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3542 very end.
5703f472
UD
3543 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3544 * wctype/Makefile (tests): Add bug-wctypeh.
3545 * wctype/bug-wctypeh.c: New file.
0f2ae55c 3546
50e481ce
UD
3547 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3548 LOCALDOMAIN is defined.
3549 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3550
217d45cd
UD
3551 * sysdeps/x86_64/bits/select.h: New file.
3552
16b7dc27
UD
3553 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3554
bf93cd3b
UD
35552008-12-21 Bruno Haible <bruno@clisp.org>
3556
3557 [BZ #9677]
3558 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3559 if no output is written.
3560
49159e12
UD
35612008-12-13 Klaus Dittrich <kladit@arcor.de>
3562
3563 * login/utmp_file.c (pututline_file): Replace call to dup2 with
3564 libc internal symbol __dup2 to avoid access through the PLT.
3565
d4f0720b
UD
35662008-12-08 Ulrich Drepper <drepper@redhat.com>
3567
135460f4
UD
3568 [BZ #6545]
3569 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3570 available only for __USE_GNU.
3571
ed0da352
UD
3572 * inet/Makefile (tests): Add tst-getni2.
3573 * inet/tst-getni2.c: New file.
3574
d4f0720b
UD
3575 [BZ #7080]
3576 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3577 NULL when NI_NAMEREQD is set.
3578 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3579 * inet/Makefile (tests): Add tst-getni1.
3580 * inet/tst-getni1.c: New file.
3581
cd72adeb
UD
35822008-12-03 Petr Baudis <pasky@suse.cz>
3583
3584 [BZ #7067]
3585 * nscd/connections.c (invalidate_cache): Use prune_run_lock
3586 instead of prune_lock.
3587 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3588 * nscd/nscd.h (database_dyn): Add prune_run_cache.
3589
e87946cc
UD
35902008-12-07 Ulrich Drepper <drepper@redhat.com>
3591
200da00a
UD
3592 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3593 use.
3594
3595 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3596 handling.
3597
905ef0da
UD
3598 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3599 after reading name server list.
3600
71053765 3601 [BZ #7058]
e87946cc
UD
3602 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3603 handling for host name aliases.
3604
d43b8bdd
JJ
36052008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
3606
3607 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3608 instead of doing things manually.
3609
36102008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
3611
3612 * posix/regex_internal.h (build_wcs_upper_buffer):
3613 Return type is reg_error_t.
3614
25a34eb7
UD
36152008-12-05 Ulrich Drepper <drepper@redhat.com>
3616
f3721ab2
UD
3617 * posix/globtest.sh: Use mktemp to create temporary file and
3618 directory.
3619
25a34eb7
UD
3620 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3621 sets correctly.
3622 (__CPU_CLR_S): Likewise.
3623 (__CPU_ISSET_S): Likewise.
3624
8680179f
UD
36252008-12-05 Joseph Myers <joseph@codesourcery.com>
3626 Ulrich Drepper <drepper@redhat.com>
3627
3628 * scripts/firstversion.awk: Use custom comparison function to compare
3629 version numbers.
3630 * scripts/versions.awk: Use sort invocation which can handle
3631 multi-digit sub-version numbers.
3632
72d50908
UD
36332008-12-04 Ulrich Drepper <drepper@redhat.com>
3634
3635 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3636 * locale/iso-639.def: Add Chhattisgarhi entry.
3637
f93fc0b7
UD
36382008-12-02 Ulrich Drepper <drepper@redhat.com>
3639
da5ac135
UD
3640 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3641 ESRCH return value.
3642 (_nss_dns_gethostbyname4_r): Likewise.
3643 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3644 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3645 gethostbyname4_r, we don't have a separate IPv6 status, so copy
3646 the no_data variable.
3647
6f5c3117
UD
3648 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3649 information at the correct index.
3650
f93fc0b7
UD
3651 * socket/sys/socket.h: Declare accept4.
3652 * socket/accept4.c: New file.
3653 * sysdeps/unix/sysv/linux/accept4.c: New file.
3654 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3655 * socket/Makefile (routines): Add accept4.
3656 * socket/Versions: Export accept4 with version GLIBC_2.10.
3657 * socket/paccept.c: Removed.
3658 * sysdeps/unix/sysv/linux/paccept.c: Removed.
3659 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3660 * Versions.def: Define GLIBC_2.10 for libc.
3661 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3662
3663 * nscd/connections.c: Use accept4.
3664
3665 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3666
1fa7ae05
UD
36672008-12-01 Ulrich Drepper <drepper@redhat.com>
3668
9744268c
UD
3669 * resolv/res_send.c (send_dg): Create sockets with non-blocking
3670 flag already set.
3671
1fa7ae05
UD
3672 * stdlib/setenv.c (unsetenv): Don't search environment if it does
3673 not exist.
30c06371
UD
3674 * stdlib/Makefile (tests): Add tst-unsetenv1.
3675 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 3676
37a6a271
UD
36772008-11-29 Ulrich Drepper <drepper@redhat.com>
3678
3679 * login/utmp_file.c (file_writable): New variable.
3680 (setutent_file): Don't try to open file for writing.
3681 (pututline_file): Before writing, make descriptor writable if
3682 necessary.
3683
ca4dc0fe
UD
36842008-11-26 Ulrich Drepper <drepper@redhat.com>
3685
be4607eb
UD
3686 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3687 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 3688
01a74645
RM
36892008-11-26 Roland McGrath <roland@redhat.com>
3690
24fd0a5b
RM
3691 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3692 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3693
3694 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3695 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3696 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3697
01a74645
RM
3698 * elf/elf.h (NT_386_IOPERM): New macro.
3699 (NT_PPC_VSX): New macro.
3700
c0439b95
RM
37012008-11-25 Roland McGrath <roland@redhat.com>
3702
3703 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3704 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3705 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3706 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3707 Subdirectories moved to ports repository.
3708 * configure.in (base_machine): Remove alpha case.
3709
d3dc523b
RM
37102008-11-25 Thomas Schwinge <tschwinge@gnu.org>
3711
3712 * sysdeps/mach/strerror_l.c: New file.
3713
edba7a54
UD
37142008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
3715
3716 [BZ #6411]
3717 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3718 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3719 magic numbers.
3720 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3721 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3722 (relax_fenv_state): Same as above.
3723 (FPSCR_29): Reserve bit in ISA 2.05.
3724 (FPSCR_NI): Provide define for compat.
3725 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3726 magic numbers.
3727 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3728 magic numbers.
3729 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
3730 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3731 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3732 access to hwcap to account for hwcap size increase to uint64_t.
3733 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3734 Likewise.
3735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3736 (*setcontext): Likewise.
3737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3738 New file.
3739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3740 New file.
3741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3742 (*setcontext): dynamically select mtfsf insn based on
3743 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3744 increase to uint64_t.
3745 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3746 (*swapcontext): dynamically select mtfsf insn based on
3747 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3748 increase to uint64_t.
3749 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3750 New file.
3751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3752 New file.
3753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3754 (*setcontext): dynamically select mtfsf insn based on
3755 PPC_FEATURE_HAS_DFP.
3756 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3757 (*swapcontext): dynamically select mtfsf insn based on
3758 PPC_FEATURE_HAS_DFP.
3759
ec297962
UD
37602008-11-13 Ulrich Drepper <drepper@redhat.com>
3761
b5449f8a 3762 * version.h: Bump for 2.9 release.
f52bb4d7 3763 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 3764
ec297962
UD
3765 [BZ #7029]
3766 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3767 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3768 all the rounding.
3769
3cac8b75
UD
37702008-11-11 Ulrich Drepper <drepper@redhat.com>
3771
0e54a725 3772 [BZ #7009]
3cac8b75
UD
3773 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3774 unknown request types for now.
3775
58a4b51a
RM
37762008-11-11 Roland McGrath <roland@redhat.com>
3777
3778 * sysdeps/x86_64/configure: New file.
3779
3780 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3781 * configure: Regenerated.
3782
01bd5e96
JJ
37832008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3784
3785 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3786 correct instruction to remove the stack frame.
3787
a9069550
JJ
37882008-11-03 Michael Matz <matz@suse.de>
3789
3790 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3791 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3792
4b23f9bd
JJ
37932008-11-07 Jakub Jelinek <jakub@redhat.com>
3794
09f66a4f
JJ
3795 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3796 Remove.
3797
4b23f9bd
JJ
3798 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3799 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3800 of the thread variable instead of void *.
3801 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3802 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3803 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3804 __libc_tsd_define arguments.
3805 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3806 __libc_tsd_address arguments. Remove union hack.
3807 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3808 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3809 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3810 Adjust __libc_tsd_{set,get} arguments.
3811 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3812 __libc_tsd_define arguments.
3813 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3814 arguments.
3815 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3816 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3817 (LOCALE): Adjust __libc_tsd_define arguments.
3818 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3819 arguments.
3820 (LOCALE): Adjust __libc_tsd_define arguments.
3821 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3822 arguments.
3823 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3824 arguments.
3825
486bdb88
UD
38262008-11-02 Ulrich Drepper <drepper@redhat.com>
3827
3828 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3829 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3830
64647f9a
UD
38312008-11-01 Ulrich Drepper <drepper@redhat.com>
3832
3833 [BZ #6966]
3834 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3835
acd44dbc
UD
38362008-10-24 Joseph Myers <joseph@codesourcery.com>
3837 Ulrich Drepper <drepper@redhat.com>
3838
3839 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3840 definition for GCC 3.1 and later.
64647f9a 3841
41e25904
UD
38422008-10-31 Jakub Jelinek <jakub@redhat.com>
3843
3844 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3845 refetch dtv, as it might have changed.
3846 * elf/Makefile: Add rules to build and run tst-tls18.
3847 * elf/tst-tls18.c: New test.
3848 * elf/tst-tlsmod18a.c: New file.
3849
e148a644 38502008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 3851
da9c2314 3852 [BZ #6875]
e148a644
UD
3853 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3854
38552008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 3856
6daf1a2f
UD
3857 [BZ #6867]
3858 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3859
6f576bf6
UD
3860 [BZ #6919]
3861 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3862 Fix length of copy operation.
3863
45a8beb5
UD
38642008-10-02 Pierre Habouzit <madcoder@debian.org>
3865
3866 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3867 and fix its calling convention.
3868
ad12e635
UD
38692008-10-07 Andreas Schwab <schwab@suse.de>
3870
3871 [BZ #6942]
3872 * resolv/res_send.c (send_vc): Fix last change.
3873 (send_dg): Align here as well.
3874
3cf44918
UD
38752008-10-31 Ulrich Drepper <drepper@redhat.com>
3876
dbb6ab3e
UD
3877 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3878 return value in case rlimit is RLIM_INFINITY.
3879
3880 [BZ #6947]
3881 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3882 for UL_SETFSIZE.
1828d6b0
UD
3883 * resource/Makefile (tests): Add bug-ulimit1.
3884 * resource/bug-ulimit1.c: New file.
dbb6ab3e 3885
a5ff533e
UD
3886 [BZ #6974]
3887 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3888 without dot. Properly terminate the string with a null byte.
3889 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3890
4bed549a
UD
3891 [BZ #6980]
3892 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3893 negative sizees.
3894 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3895 negative __size.
3896
3cf44918
UD
3897 [BZ #6995]
3898 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3899
21b07d8b
UD
39002008-10-30 Ulrich Drepper <drepper@redhat.com>
3901
332c4465
UD
3902 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3903 abort if there is no initgroups_dyn function.
3904
21b07d8b
UD
3905 * resolv/res_send.c (send_dg): On timeout, only return nonzero
3906 result if any of the queries really provided an answer.
3907
4caa3fb7
UD
39082008-10-28 Ulrich Drepper <drepper@redhat.com>
3909
3910 * po/lt.po: Update from translation team.
3911
a22c3a0d
UD
39122008-10-26 Ulrich Drepper <drepper@redhat.com>
3913
3914 * po/id.po: Update from translation team.
3915
49685151
UD
39162008-10-24 Ulrich Drepper <drepper@redhat.com>
3917
3918 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 3919 Fix tests for existence of second reply.
49685151 3920
8d9d5d35
UD
39212008-10-23 Ulrich Drepper <drepper@redhat.com>
3922
3923 * po/id.po: New file.
3924 Contributed by the Indonesian translation team.
3925
208bc836
UD
39262008-10-22 Dmitry V. Levin <ldv@altlinux.org>
3927
3928 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3929 initialization.
3930
60a23f5a
UD
39312008-10-17 Jakub Jelinek <jakub@redhat.com>
3932
3933 * elf/Makefile: Add rules to build and run tst-tls17.
3934 * elf/tst-tls17.c: New test.
3935 * elf/tst-tlsmod17a.c: New file.
3936 * elf/tst-tlsmod17b.c: Likewise.
3937
292eb817
UD
39382008-10-17 Ulrich Drepper <drepper@redhat.com>
3939
3940 * stdlib/divmod_1.c: Use correct type for dummy variable.
3941 * stdlib/mod_1.c: Likewise.
3942
5df2a427
UD
39432008-10-16 Ulrich Drepper <drepper@redhat.com>
3944
3945 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3946
472e5e08
JJ
39472008-10-16 Jakub Jelinek <jakub@redhat.com>
3948
3949 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3950 __nonnull order for C++.
3951 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3952 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3953
86900abd
RM
39542008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
3955
3956 * stdlib/longlong.h: Update from GCC.
3957
19c10a47
JJ
39582008-10-09 Jakub Jelinek <jakub@redhat.com>
3959 David S. Miller <davem@davemloft.net>
3960
3961 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3962 make sure any registers used with 64-bit 'branch-on-register'
3963 instructions have their top 32-bits clear.
3964 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3965 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3966
2fdde3b9
UD
39672008-09-18 Andreas Schwab <schwab@suse.de>
3968
3969 [BZ #6942]
3970 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 3971 Properly handle partial reads.
2fdde3b9 3972
6ba25fcb
RM
39732008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3974
3975 * elf/elf.h (STO_MIPS_PLT): New.
3976 (R_MIPS_COPY): New.
3977 (R_MIPS_JUMP_SLOT): New.
3978 (R_MIPS_NUM): Redefine to 128.
3979 (DT_MIPS_PLTGOT): New.
3980 (DT_MIPS_RWPLT): New.
3981 (DT_MIPS_NUM): Redefine to 0x35.
3982
97898201
UD
39832008-10-01 Ulrich Drepper <drepper@redhat.com>
3984
3985 * timezone/africa: Update from tzdata2008f.
3986 * timezone/asia: Likewise.
3987 * timezone/australasia: Likewise.
3988 * timezone/europe: Likewise.
3989 * timezone/leapseconds: Likewise.
3990 * timezone/northamerica: Likewise.
3991 * timezone/southamerica: Likewise.
3992 * timezone/zone.tab: Likewise.
3993
3452ded5
UD
39942008-09-30 Ulrich Drepper <drepper@redhat.com>
3995
3996 * nscd/connections.c: Disable use of paccept for now.
3997
54ad9327
UD
39982008-09-29 Ulrich Drepper <drepper@redhat.com>
3999
8ec2550e
UD
4000 * socket/Versions: Remove paccept export for GLIBC_2.9.
4001 * socket/Makefile (routines): Remove paccept.
4002 * socket/sys/socket.h: Remove paccept declaration.
4003
54ad9327
UD
4004 * po/sv.po: Update from translation team.
4005
1c5eba39
UD
40062008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4007
4008 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4009 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4010
0a26fc4d
UD
40112008-09-16 Ulrich Drepper <drepper@redhat.com>
4012
4013 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4014 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4015
2bcaff08
UD
40162008-09-15 Ulrich Drepper <drepper@redhat.com>
4017
4018 * sunrpc/rpc/svc.h: Declare svcfd_create.
4019 Patch by Michael Solberg <msolberg@redhat.com>.
4020
caa60cb9 40212008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 4022 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
4023
4024 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4025 _int_valloc fails.
4026 (public_pVALLOc): Likewise.
4027
6c161112
AJ
40282008-09-02 Andreas Jaeger <aj@suse.de>
4029
4030 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4031 commit.
4032
0cb269d7
RM
40332008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4034
452034cc 4035 [BZ #6860]
2bcaff08 4036 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 4037
13074b5b
RM
40382008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4039
4040 * Makefile (check-data): Check data directory in add-ons.
4041 * elf/Makefile (check-data): Likewise.
4042
58801a0e
RM
40432008-08-18 Roland McGrath <roland@redhat.com>
4044
4045 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4046 * configure: Regenerated.
4047 * config.make.in (cflags-cpu): New substituted variable.
4048 (with-cpu): Variable removed.
4049 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4050
7df49c5d
UD
40512008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4052
4053 [BZ #6845]
4054 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4055 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4056 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4057 redundant. Functions which call floating point assembler operations
4058 should go into a sysdeps powerpc/fpu directory.
4059
965805e8
UD
40602008-08-15 Ulrich Drepper <drepper@redhat.com>
4061
4062 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4063 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4064
9cf73ab0
UD
40652008-08-14 Ulrich Drepper <drepper@redhat.com>
4066
62a1ffc6
UD
4067 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4068
9cf73ab0
UD
4069 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4070 change related to AT_EXECFN. We cannot use that string.
4071 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4072 _dl_execfn member.
4073 * elf/dl-support.c: Remove _dl_execfn variable.
4074 (_dl_aux_init): Remove handling of AT_EXECFN.
4075 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4076 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4077
1bfa05cf
UD
40782008-08-13 Ulrich Drepper <drepper@redhat.com>
4079
7b3ba2c4
UD
4080 [BZ #6544]
4081 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4082 byte gets added to writes and seeks from the end use the length of
4083 the buffer and not the currently terminating NUL byte.
4084
1bfa05cf
UD
4085 [BZ #6634]
4086 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4087 Set to true if locking failed.
4088 (getutid_r_file): Adjust caller.
4089 (pututline_file): Likewise. Return NULL in this case.
4090 Patch mostly by halesh.s@gmail.com.
4091
c5671698
UD
40922008-08-12 Ulrich Drepper <drepper@redhat.com>
4093
4094 [BZ #6589]
4095 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4096 Define.
4097 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4098
4497384e
UD
40992008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
4100
4101 [BZ #6839]
4102 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4103 macro since it is now available in elf/dynamic-link.h.
4104
675d7111
RM
41052008-08-12 Roland McGrath <roland@frob.com>
4106
4107 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4108 in case used outside of libc.
4109 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4110
8b254432
UD
41112008-08-11 Ulrich Drepper <drepper@redhat.com>
4112
4113 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4114 directly instead of going through dn_comp.
4115
ac84eeca
RM
41162008-08-11 Aurelien Jarno <aurel32@debian.org>
4117
4118 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4119 Fix asm constraints.
4120
f081b451
UD
41212008-08-07 Ulrich Drepper <drepper@redhat.com>
4122
4123 [BZ #6790]
4124 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4125 (IPV6_PMTUDISC_PROBE): Likewise.
4126
30a4429e
UD
41272008-08-07 Pete Eberlein <eberlein@us.ibm.com>
4128
4129 [BZ #6791]
4130 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4131
1642331d 41322008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 4133 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
4134
4135 [BZ #6817]
4136 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4137 Added the members 'vsx' and 'arch_2_06'.
4138 (_dl_powerpc_platforms): Add the member 'power7'.
4139 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4140 to reflect the changes required by VSX and ISA 2.06.
4141 Modify _DL_PLATFORMS_COUNT to reflect the addition of
4142 'power7'.
4143 Defined PPC_PLATFORM_POWER7.
4144 (_dl_string_platform): Add support for POWER7.
4145 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4146 capability and ISA 2.06.
4147
48b94661
UD
41482008-08-07 Ulrich Drepper <drepper@redhat.com>
4149
4150 [BZ #6824]
4151 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4152 macro to detect use of 128 bit long double.
4153 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4154
9523fd28
UD
41552008-08-05 Ulrich Drepper <drepper@redhat.com>
4156
9c0cb150
UD
4157 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4158
46aea5cb 4159 [BZ #5794]
9523fd28
UD
4160 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4161 parameters.
4162 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4163 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4164
c400c931
UD
41652008-08-03 Ulrich Drepper <drepper@redhat.com>
4166
4167 * nscd/connections.c (main_loop_poll): Pass a buffer which is
4168 guaranteed to be large enough to read inotify event. Ignore
4169 EAGAIN error. Better error message. Add branch predicition.
4170 (main_loop_epoll): Likewise.
4171
3f39adac
RM
41722008-08-02 Roland McGrath <roland@frob.com>
4173
4174 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4175 Add memory clobbers.
4176
3501542f
UD
41772008-08-02 Ulrich Drepper <drepper@redhat.com>
4178
48b22986
UD
4179 * manual/arith.texi: Avoid @strong{Note:}.
4180 * manual/creature.texi: Likewise.
4181 * manual/filesys.texi: Likewise.
4182 * manual/math.texi: Likewise.
4183 * manual/memory.texi: Likewise.
4184 * manual/resource.texi: Likewise.
4185 * manual/syslog.texi: Likewise.
4186 * manual/time.texi: Likewise.
4187
3501542f
UD
4188 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4189 to prevent warning.
4190
17756df3
UD
41912008-08-01 Ulrich Drepper <drepper@redhat.com>
4192
ebcc1f4d
UD
4193 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4194 new epoll_create1 interface.
4195 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4196 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4197 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4198
144bfa86
UD
4199 * include/arpa/nameser.h (NS_GET16): Use const pointer.
4200 (NS_GET32): Likewise.
4201
7e1b29c6
UD
4202 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4203 syscalls, too.
4204
42fa1f67
UD
4205 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4206 use the AT_EXECFN value if it is no absolute path.
4207 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4208 __ASSUME_AT_EXECFN.
4209
cd5743fd
UD
4210 * Versions.def: Add GLIBC_2.9 to libresolv.
4211 * include/resolv.h: Remove hidden proto declarations for __ns_*
4212 functions. Add them for __dn_count_labels and __p_secstodate.
4213 * include/arpa/nameser.h: Add a number of hidden proto declarations.
4214 Define ns_msg_getflags macro here.
4215 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4216 and __p_secstodate.
4217 * resolv/Versions: Export functions from <arpa/nameser.h> from
4218 libresolv in version GLIBC_2.9.
4219 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
4220 hidden definitions.
4221 * resolv/ns_netint.c: Likewise.
4222 * resolv/ns_parse.c: Likewise.
4223 * resolv/ns_print.c: Likewise.
4224 * resolv/ns_samedomain.c: Likewise.
4225 * resolv/ns_ttl.c: Likewise.
4226 * resolv/arpa/nameser_compat.h: Likewise.
4227 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
4228 function calls.
4229 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4230 instead of ns_get16.
4231 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4232 __ns_get32 instead of ns_get16 and ns_get32 respectively.
4233 (gaih_getanswer_slice): Likewise.
4234 * resolv/Makefile (libresolv-routines): Add ns_date.
4235 * resolv/ns_date.c: New file.
4236
17756df3
UD
4237 * elf/Makefile (check-localplt.out): Also check libresolv and
4238 libcrypt.
4239
46bc5d43
UD
42402008-07-31 Ulrich Drepper <drepper@redhat.com>
4241
4242 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4243 __ASSUME_O_CLOEXEC.
4244
a707cff6
UD
42452008-07-30 Ulrich Drepper <drepper@redhat.com>
4246
3c227386
UD
4247 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4248 buffer passed to NSS functions.
4249
9523fd28 4250 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
4251
4252 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4253 Define.
4254
a707cff6
UD
4255 * misc/syslog.c (openlog_internal): Fix compile problem.
4256
0424d007
RM
42572008-07-28 Roland McGrath <roland@redhat.com>
4258
4259 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4260
b7da31a1
UD
42612008-07-28 Ulrich Drepper <drepper@redhat.com>
4262
300ea0ad
UD
4263 * io/ftw.c (add_object): Remove inline to avoid warning.
4264
d6173baa
UD
4265 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4266
b7da31a1
UD
4267 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4268 Use it instead of locally defined resplen2 variable.
4269 (res_nsend): Adjust for __libc_res_nsend interface change.
4270 (send_vc): Initialize *resplen2 if necessary. Read length of
4271 package into an appropriately aligned variable. Store converted length
4272 in new variable and use it appropriately.
4273 Add branch prediction help.
4274 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4275 and pass it on to __libc_res_nsend. Adjust all callers.
4276 (__libc_res_nsearch): Likewise.
4277 (__libc_res_nqeurydomain): Likewise.
4278 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4279 change.
4280 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4281 Define resplen2 variable and pass it to __libc_res_nsearch and then
4282 to gaih_getanswer.
4283 (getanswer_r): In case of incorrect DNS data don't overread buffer.
4284 Add branch prediction.
4285 (gaih_getanswer_slice): Likewise. Check for invalid data types.
4286 (gaih_getanswer): Don't decode second slice if first one failed due
4287 to a too small buffer. Don't let not found status of second
4288 decoder shadow results of the first.
4289 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4290 and __libc_res_nquery interface changes
4291 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4292 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4293 __libc_res_nsearch, and __libc_res_nsend.
4294 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4295 change.
4296 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4297 __libc_res_nsearch interface changes.
4298
11ed3eae
UD
42992008-07-27 Ulrich Drepper <drepper@redhat.com>
4300
372aece0
UD
4301 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4302
e038616f
UD
4303 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4304 file descriptors with close-on-exec set.
4305 (exec_comm_child): Fix the case where the write end of the pipe is
4306 STDOUT_FILENO already. In case it is, clear close-on-exec.
4307
d6e0c2a6
UD
4308 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4309 * io/pipe2.c: Likewise.
4310 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4311 instead of __ASSUME_PACCEPT.
4312 * include/unistd.h: Declare __have_pipe2.
4313 * libio/iopopen.c: Implement "e" flag.
4314 * libio/Makefile (tests): Add tst-popen1.
4315 * libio/tst-popen1.c: New file.
4316
11ed3eae
UD
4317 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4318 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4319
7438a80d
UD
43202008-07-26 Ulrich Drepper <drepper@redhat.com>
4321
c4a710b6
UD
4322 [BZ #6771]
4323 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4324 success call of _IO_SEEKOFF or calls which failed because the
4325 descriptor is for a pipe.
4326
31f3b159
UD
4327 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4328 magic number.
4329
c0216dfc
UD
4330 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4331
72112b0c
UD
4332 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4333 F_SETFD use if we know fopen set the flag.
4334
7438a80d
UD
4335 * login/utmp_file.c (setutent_file): Minor optimization in case
4336 O_CLOEXEC is available.
4337
7b91359b
UD
43382008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4339
4340 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4341 * elf/Makefile: Use pie-ccflag variable.
4342 * nscd/Makefile: Likewise.
4343 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4344
4057dc45
UD
43452008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4346
e7135e24 4347 [BZ #6724]
4057dc45
UD
4348 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4349 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4350 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4351 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4352 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4353 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4354 utmp32, utmpx32 and login32.
4355 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4356 versions of struct utmp functions to libc and libutil.
4357 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4358 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4359 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4360 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4361 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4362 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4363 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4364 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4365 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4366 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4367 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4368 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4369 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4370 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4371 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4372 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4373 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4374 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4375 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4376 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4377 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4378 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4379
ff0bf753
UD
43802008-07-26 Ulrich Drepper <drepper@redhat.com>
4381
619cc2f6
UD
4382 * scripts/gen-as-const.awk: Generate more widely usable code by
4383 using 64-bit arithmetic.
4384
1311b164 4385 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 4386 the same treatment as narrow output code in last patch.
1311b164 4387
ff0bf753
UD
4388 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4389
3f414923 4390 [BZ #6763]
ff0bf753
UD
4391 * elf/dl-load.c (local_strdup): Remove inline.
4392 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4393 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4394 part of the object.
4395
4396 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4397
8ccf22f9
UD
43982008-07-25 Ulrich Drepper <drepper@redhat.com>
4399
bdd24a30
UD
4400 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4401 the new syscalls, too.
b5c0b5e4 4402
b41f1d14
UD
4403 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4404 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4405
3703468e
UD
4406 [BZ #6698]
4407 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4408 parameter for end of buffer. If temporary copy is too large use
4409 malloc.
4410 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4411 interface change.
4412 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
4413 string rewrite when allocating buffer.
4414
bb0277bf
UD
4415 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4416 syscalls, too.
4417
9dd84772
UD
4418 * nscd/connections.c (nscd_init): Clean up fcntl call.
4419
c418b1ba
UD
4420 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4421 SOCK_NONBLOCK if possible.
4422
b206d8b1
UD
4423 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4424 SOCK_CLOEXEC if available.
4425
8ccf22f9
UD
4426 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4427 __libc_clntudp_bufcreate_internal.
4428 * include/sys/socket.h: Declare __have_sock_cloexec.
4429 * socket/Makefile (aux): Add have_sock_cloexec.
4430 * socket/have_sock_cloexec.c: New file.
4431 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4432 __libc_clntudp_bufcreate.
4433 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4434 which takes an additional parameter. Create socket with non-blocking
4435 mode and close-on-exec flag set, if wanted.
4436 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4437 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4438 instead of clntudp_create. The socket has already the close-on-exec
4439 flag set if SOCK_CLOEXEC is defined.
4440
579cdf5a
UD
44412008-07-24 Ulrich Drepper <drepper@redhat.com>
4442
3ff2c948
UD
4443 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4444 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4445 appropriate.
4446 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4447 non-blocking mode by using socket, paccept, and inotify_init1.
4448
bdcebfc4
UD
4449 * Versions.def (glibc): Add GLIBC_2.9.
4450 * io/Makefile (routines): Add dup3 and pipe2.
4451 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4452 * io/dup3.c: New file.
4453 * io/pipe2.c: New file.
4454 * posix/unistd.h: Declare dup3 and pipe2.
4455 * socket/Makefile (routines): Add paccept.
4456 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4457 * socket/paccept.c: New file.
4458 * socket/sys/socket.h: Declare paccept.
4459 * sysdeps/unix/syscalls.list: Add entry for dup3.
4460 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4461 epoll_create2 and inotify_init1.
4462 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4463 * sysdeps/unix/sysv/linux/paccept.c: New file.
4464 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4465 possible.
4466 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4467 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4468 inotify_init1, and pipe2 entries.
4469 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4470 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4471 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4472 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4473 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4474 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4475 SOCK_NONBLOCK.
4476 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4477 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4478 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4479 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4480 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4481 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4482 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4483 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4484 EPOLL_NONBLOCK. Declare epoll_create2.
4485 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4486 EFD_NONBLOCK.
4487 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4488 IN_NONBLOCK. Declare inotify_init1.
4489 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4490 SFD_NONBLOCK.
4491 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4492 TFD_NONBLOCK.
4493
0e077a7e
UD
4494 * elf/elf.h: Define AT_EXECFN.
4495 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4496 LD_ORIGIN_PATH.
4497 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4498 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
4499 if __ASSUME_AT_EXECFN is defined.
4500 (_dl_aux_init): Handle AT_EXECFN.
4501 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4502 for 2.6.27 and up.
4503 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4504 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4505 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4506 _dl_execfn if available and avoid compatibility code if
4507 __ASSUME_AT_EXECFN is defined.
4508
579cdf5a
UD
4509 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4510 _dl_discover_osversion only for older kernels.
4511
7385c04c
RM
45122008-07-22 Roland McGrath <roland@frob.com>
4513
4514 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4515
8a26088d
RM
45162008-07-21 Roland McGrath <roland@frob.com>
4517
4518 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4519 returned too much data out of line.
4520
9f558b80
UD
45212008-07-20 Ulrich Drepper <drepper@redhat.com>
4522
2e79213a
UD
4523 * locale/setlocale.c (setname): Remove inline to avoid compiler
4524 warning.
4525
579cdf5a 4526 [BZ #6712]
9f558b80
UD
4527 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4528
9667f97d
UD
45292008-07-15 Ulrich Drepper <drepper@redhat.com>
4530
2486b496
UD
4531 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4532 doesn't manage to write anything, fail.
4533
9667f97d
UD
4534 * malloc/hooks.c (__malloc_check_init): Remove printf.
4535
6d4c073b
RM
45362008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4537
4538 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4539
b7432416
UD
45402008-07-12 Ulrich Drepper <drepper@redhat.com>
4541
4542 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4543 from inotify.
4544 (main_loop_epoll): Likewise.
4545
44abc397
UD
45462008-07-09 Ulrich Drepper <drepper@redhat.com>
4547
835113c6
UD
4548 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4549
fdc769f6
UD
4550 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4551 if DEBUG is defined.
4552
44abc397
UD
4553 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4554 query. Adjust buffer size computation for padding.
4555
38dc8fad
UD
45562008-07-08 Ulrich Drepper <drepper@redhat.com>
4557
75684bd7
UD
4558 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4559 * stdio-common/tst-setvbuf1.c: New file.
4560 * stdio-common/tst-setvbuf1.expect: New file.
4561
38dc8fad
UD
4562 [BZ #6719]
4563 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4564 when selecting fully-buffered stream.
4565 Patch by Wang Xin <wxinee@gmail.com>.
4566
107f4ac2
RM
45672008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4568
4569 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4570 (__open_2): New function.
4571 (__open64_2): New alias to __open_2.
4572 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4573 (__openat_2): New function.
4574 (__openat64_2): New alias to __openat_2.
4575
45ec3e79
UD
45762008-07-06 Ulrich Drepper <drepper@redhat.com>
4577
4578 [BZ #6723]
4579 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4580
0a583b54
RM
45812008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4582
4583 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4584 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4585 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4586 __hurd_dfail.
4587 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4588 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4589 * sysdeps/mach/hurd/send.c (__send): Likewise.
4590 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4591 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4592
d5a0160b
RM
45932008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4594
4595 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4596 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4597 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4598 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4599 * hurd/get-host.c (_hurd_get_host_config): Likewise.
4600 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4601
80922a99
UD
46022008-06-27 Ulrich Drepper <drepper@redhat.com>
4603
4604 [BZ #6657]
4605 * time/strptime_l.c: Don't clear s.era_cnt after successful match
4606 of %EY.
4607 Patch by Petr Baudis.
4608
34ca2ff7
UD
46092008-06-26 Ulrich Drepper <drepper@redhat.com>
4610
5ee0f5e2 4611 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
4612 Patch by Peter Jones <pjones@redhat.com>.
4613
104426b6
UD
46142008-06-25 Ulrich Drepper <drepper@redhat.com>
4615
4616 [BZ #6654]
4617 * stdlib/canonicalize.c (__realpath): readlink can write too much
4618 into the buffer on platforms without PATH_MAX.
4619
7166d23f
UD
46202008-06-17 Carlos O'Donell <carlos@codesourcery.com>
4621
4cb8e687 4622 [BZ #6653]
7166d23f
UD
4623 * posix/tst-regex.c (main): Rename to...
4624 (do_test): ... this. Remove cmdline option processing.
4625 (TIMEOUT): Define.
4626 (TEST_FUNCTION): Define.
4627 (CMDLINE_OPTIONS): Define.
4628
974069d8
UD
46292008-06-25 Ulrich Drepper <drepper@redhat.com>
4630
4631 [BZ #5210]
4632 * configure.in: Add -Werror to -fstack-protector test to catch
4633 unsupported architectures.
4634 Patch by Gilles Esponasse <g.esp@free.fr>.
4635
cefa2dd3
UD
46362008-06-17 Joseph Myers <joseph@codesourcery.com>
4637
4638 * stdlib/tst-setcontext.c: Set back_in_main before exit if
4639 getcontext returns ENOSYS.
4640
c00d1128
UD
46412008-06-18 Ulrich Drepper <drepper@redhat.com>
4642
4643 * nscd/connections.c (main_loop_poll): Fix test for read error.
4644 (main_loop_epoll): Likewise.
4645
a0edbb48
UD
46462008-06-13 Ulrich Drepper <drepper@redhat.com>
4647
d0a1ae94
UD
4648 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4649 better place so it is not called when nscd is used.
4650
a0edbb48
UD
4651 * nscd/connections.c: Also recognize and handle changes to the
4652 resolver configuration file.
4653
46f70b3c
UD
46542008-06-12 Ulrich Drepper <drepper@redhat.com>
4655
5bcc6c0f
UD
4656 * time/strftime.c: Pass reference to tzset_called around to handle
4657 recursive calls.
4658
4659 [BZ #6612]
4660 * time/strftime.c (__strftime_internal): Call tzset() only
4661 when printing timezone-dependent values.
4662 Based on a patch by Petr Baudis <pasky@suse.cz>.
4663
f854efd7
UD
4664 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4665 unconditionally use second gaih_getanswer_slice result.
4666
46f70b3c
UD
4667 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4668 (getaddrinfo): RES must always be non-NULL.
4669
9ea8bfec
UD
46702008-06-12 Jakub Jelinek <jakub@redhat.com>
4671
4672 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4673 cr[34] registers.
4674 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4675 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4676 Likewise.
4677 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4678 register.
4679
5a337776
UD
46802008-06-12 Ulrich Drepper <drepper@redhat.com>
4681
5228ba2f
UD
4682 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4683 fields.
4684 * nscd/connections.c (inotify_fd): New variable.
4685 (nscd_init): Try to open an inotify descriptor.
4686 If successful, watch files for databases using inotify instead of
4687 having prune threads stat the files.
4688 (nscd_run_prune): Recognize clear_cache flag being set and call
4689 prune_cache appropriately.
4690 (main_loop_poll): Add inotify descriptor to wait set and handle the
4691 reported changes.
4692 (main_loop_epoll): Likewise.
4693 * nscd/cache.c (prune_cache): Don't stat files for databases if
4694 inotify is used.
4695 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4696 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4697
5a337776
UD
4698 * nscd/grpcache.c (cache_addgr): Correctly compute size of
4699 fixed-size portion of the record.
4700 * nscd/servicescache.c (cache_addserv): Likewise.
4701 * nscd/pwdcache.c (cache_addpw): Likewise.
4702 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4703
9ad58cc3
UD
47042008-06-11 Ulrich Drepper <drepper@redhat.com>
4705
4706 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4707 out we don't use uninitialized memory.
4708
4709 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4710 the client.
4711
c1283552
UD
47122008-06-10 Ulrich Drepper <drepper@redhat.com>
4713
4714 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4715 ignore T_DNAME messages.
4716 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4717
eef8a803
JJ
47182008-06-05 Jakub Jelinek <jakub@redhat.com>
4719
4720 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4721 Avoid segfault if first GETC returns eof/'\0'/'\n'.
4722
ee78670e
JJ
47232008-06-03 Jakub Jelinek <jakub@redhat.com>
4724
4725 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4726 instead of portstr to nscd_getserv_r. Patch by
4727 Roman Kagan <rkagan@mail.ru>.
4728
62605cbf
UD
47292008-05-26 Jim Meyering <meyering@redhat.com>
4730
10966640 4731 Remove more useless "if" tests before "free".
62605cbf
UD
4732 * include/inline-hashtab.h (htab_delete): Likewise.
4733 * libio/freopen.c (freopen): Likewise.
4734 * libio/freopen64.c (freopen64): Likewise.
4735 * locale/programs/ld-collate.c (collate_read): Likewise.
4736 * misc/fstab.c (libc_freeres_fn): Likewise.
4737 * posix/glob.c (globfree): Likewise.
4738
f63abf58
UD
47392008-05-24 Ulrich Drepper <drepper@redhat.com>
4740
4741 * string/Makefile (strop-tests): Add memmem.
4742 * string/test-memmem.c: New file.
4743 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4744 (test_init): Size buf1 according to BUF1PAGES.
4745
ad8a5511
JJ
47462008-05-24 Jakub Jelinek <jakub@redhat.com>
4747
4748 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4749 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4750 (CFLAGS-scanf17.c): New.
4751 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4752 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
4753 * stdio-common/scanf16.c: New file.
4754 * stdio-common/scanf17.c: New file.
ad8a5511 4755
e2003883
UD
47562008-05-24 Ulrich Drepper <drepper@redhat.com>
4757
4758 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 4759 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
4760 use the one answer insted of failing.
4761
acbb9873
UD
47622008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
4763
4764 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4765 being executed on PowerPC as the expected result exceeds IBM
4766 long double 128 __LDBL_MAX__.
4767
e85f1d6a
RM
47682008-05-21 Roland McGrath <roland@redhat.com>
4769
4770 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4771
4772 * Makefile (check-data): Use $(abi-name) before other guesses.
4773 Look in $(add-ons) dirs before scripts/data/.
4774 * elf/Makefile (check-data): Likewise.
4775
4776 * scripts/soversions.awk: Grok ABI line.
4777 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4778 Emit definition for abi-name variable.
4779
d8e763c6
UD
47802008-05-21 Ulrich Drepper <drepper@redhat.com>
4781
e92799fc 4782 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 4783 if [__USE_BSD].
e92799fc 4784
d8e763c6
UD
4785 * iconvdata/Depend: Add localedata.
4786
009ef333
RM
47872008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4788
4789 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4790
86746abb
JJ
47912008-05-08 David S. Miller <davem@davemloft.net>
4792
4793 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4794 HIDDEN_JUMPTARGET.
4795 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4796 (__SYSCALL_CLOBBERS): Remove %g* registers.
4797 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4798 (__SYSCALL_CLOBBERS): Likewise.
4799 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 4800 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 4801
5e6f34c2
JJ
48022008-05-21 Jakub Jelinek <jakub@redhat.com>
4803
4804 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4805 (CALL_ERRNO_LOCATION): Define.
4806 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4807 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4808 (CALL_ERRNO_LOCATION): Define.
4809 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4810 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4811 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4812
4beb4532
UD
48132008-05-20 Ulrich Drepper <drepper@redhat.com>
4814
4815 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4816 variable.
4817
ed8f38ba
JJ
48182008-05-20 Jakub Jelinek <jakub@redhat.com>
4819
4820 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4821 (FIRST_FRAME_POINTER): Define.
4822
48232008-05-09 David S. Miller <davem@davemloft.net>
4824
4825 * sysdeps/sparc/sparc64/backtrace.c: New file.
4826
c1b8190a
JJ
48272008-05-14 David S. Miller <davem@davemloft.net>
4828
4829 * sysdeps/sparc/machine-gmon.h: New file.
4830 * sysdeps/sparc/sparc-mcount.S: Likewise.
4831 * sysdeps/sparc/Makefile: Add sparc-mcount target to
4832 sysdep_routines in gmon directory.
4833
84aacd93
JJ
48342008-05-19 Jakub Jelinek <jakub@redhat.com>
4835
4836 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4837
5908f779
UD
48382008-05-19 Ulrich Drepper <drepper@redhat.com>
4839
4840 * resolv/res_query.c (__libc_res_nquery): In case one of two
4841 answer was too short don't try to read that answer's header.
4842
4843 * resolv/res_send.c (send_dg): In case of timeout and there are
4844 two queries and one has been answered, return value indicating
4845 success.
4846
528741cb
UD
48472008-05-18 Ulrich Drepper <drepper@redhat.com>
4848
4849 * nscd/cache.c (cache_add): Take additional parameter specifying
4850 whether this is in response of a cache refill. Check alignment
4851 of package data. Revamp waking of pruning thread.
4852 (prune_cache): Small optimization.
4853 * nscd/nscd.h: Adjust cache_add prototypes.
4854 * nscd/aicache.c: Adjust cache_add calls.
4855 * nscd/grpcache.c: Likewise.
4856 * nscd/hstcache.c: Likewise.
4857 * nscd/initgrcache.c: Likewise.
4858 * nscd/pwdcache.c: Likewise.
4859 * nscd/servicescache.c: Likewise.
4860 * nscd/connections.c (restart): Really disable cache use before
4861 exec attempt. If it fails, reenable cache.
4862 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
4863 time to max to be able to notice concurrent cache additions. Unlock
4864 prune_lock while performing gc. Afterwards compute wakeup time with
4865 current wakeup_time value in mind.
4866
343996c4
UD
48672008-05-17 Ulrich Drepper <drepper@redhat.com>
4868
5811d72b
UD
4869 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4870
fa526148
UD
4871 * nscd/mem.c (gc): Correctly determine highest used array element
4872 in mark.
4873
77d40f10
UD
4874 * nscd/mem.c (markrange): Add assert to check entries are all
4875 aligned. Small cleanup in bitmap use.
4876
8884028c
UD
4877 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4878 blockoff of type nscd_ssize_t.
4879 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4880 (mempoll_alloc): Record block offset and not address.
4881
b2159575
UD
4882 * nscd/mem.c (gc): Fix test for stack overuse.
4883
5c9629d2
UD
4884 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4885 more asserts.
4886
66d90496
UD
4887 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4888 entry is available, believe it.
4889
343996c4
UD
4890 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4891 no answers return NSS_STATUS_NOTFOUND.
4892 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4893 buffer does not have any content.
4894
91c8a74b
UD
48952008-05-16 Ulrich Drepper <drepper@redhat.com>
4896
74e13385
UD
4897 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4898
91c8a74b
UD
4899 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4900 lookup, don't assign canon unconditionally.
4901
0caca71a
UD
49022008-05-14 Ulrich Drepper <drepper@redhat.com>
4903
4904 * string/Makefile (distribute): Add str-two-way.h.
4905
49062008-03-29 Eric Blake <ebb9@byu.net>
4907
4908 Rewrite string searches to O(n) rather than O(n^2).
4909 * string/str-two-way.h: New file. For linear fixed-allocation
4910 string searching.
4911 * string/memmem.c: New implementation.
4912 * string/strstr.c: New implementation.
4913 * string/strcasestr.c: New implementation.
4914
b194db79
UD
49152008-04-11 Paolo Bonzini <bonzini@gnu.org>
4916
4917 * posix/regcomp.c (optimize_utf8): Add a note on why we test
4918 opr.ctx_type.
4919 (calc_first): Initialize constraint field.
4920 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4921 Use search_duplicated_node to avoid loops. Fix grammar.
4922 (duplicate_node): Merge constraint field for all node types.
4923 (calc_eclosure_iter): Look at constraint field for all node types.
4924 * posix/regex_internal.c (create_cd_newstate): Don't look at
4925 create_cd_newstate.
4926
c8d49f05
UD
49272008-05-14 Ulrich Drepper <drepper@redhat.com>
4928
215a8745
UD
4929 [BZ #6428]
4930 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4931
2f9a1be8
UD
4932 [BZ #6442]
4933 * string/endian.h: Add macros for fixed-size endian conversion.
4934 * bits/byteswap.h: Allow inclusion from <endian.h>.
4935 * sysdeps/i386/bits/byteswap.h: Likewise.
4936 * sysdeps/ia64/bits/byteswap.h: Likewise.
4937 * sysdeps/s390/bits/byteswap.h: Likewise.
4938 * sysdeps/x86_64/bits/byteswap.h: Likewise.
4939 * string/Makefile (tests): Add tst-endian.
4940 * string/tst-endian.c: New file.
4941
c8d49f05
UD
4942 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4943 Patch by Reuben Thomas.
4944
a754f018
UD
49452008-05-14 Joseph Myers <joseph@codesourcery.com>
4946
4947 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4948
372bfcac
UD
49492008-05-14 Ulrich Drepper <drepper@redhat.com>
4950
a754f018
UD
4951 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4952
5deca9bb
UD
4953 [BZ #6461]
4954 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4955 Add missing braces.
4956 (BODY for __gconv_transform_internal_ascii): Likewise.
4957
af77c9b7 4958 [BZ #6472]
5fab5544
UD
4959 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4960 to be treated like link-local addresses.
5846c4e2
UD
4961 (match_prefix): Don't treat IPv4 loopback address special when
4962 converting to v4 mapped addressed.
5fab5544 4963
0caca71a 4964 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 4965 if necessary.
b194db79
UD
4966 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4967 * posix/tst-rfc3484-2.c: Likewise.
4968 * posix/tst-rfc3484-3.c: Likewise.
1f039824 4969
18a74157
UD
4970 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4971 and SCTP.
372bfcac
UD
4972
4973 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4974
4975 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4976
4977 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4978
f05ac8f5
UD
49792008-05-13 Ulrich Drepper <drepper@redhat.com>
4980
4981 * po/lt.po: New file. From Lituanian translation team.
4982
c9ff0187
UD
49832008-01-30 Alexandre Oliva <aoliva@redhat.com>
4984
4985 Introduce TLS descriptors for i386 and x86_64.
4986 * include/inline-hashtab.h: New file, copied from 2005's
4987 libiberty, with fix for memory leak imported afterwards by
4988 Glauber de Oliveira Costa.
4989 * elf/tlsdeschtab.h: New file.
4990 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4991 (_dl_allocate_static_tls): ... here. Rearrange failure path.
4992 (CHECK_STATIC_TLS): Move to...
4993 * elf/dynamic-link.h: ... this file.
4994 (TRY_STATIC_TLS): New macro.
4995 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4996 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4997 R_386_TLS_DESC): Define.
4998 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4999 binutils.
5000 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5001 R_X86_64_TLSDESC): Define.
5002 (R_386_NUM, R_X86_64_NUM): Adjust.
5003 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 5004 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
5005 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5006 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5007 release tlsdesc_table.
5008 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5009 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5010 (elf_machine_rel): Handle R_386_TLS_DESC.
5011 (elf_machine_rela): Likewise.
5012 (elf_machine_lazy_rel): Likewise.
5013 (elf_machine_lazy_rela): Likewise.
5014 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5015 * sysdeps/i386/dl-tlsdesc.S: New file.
5016 * sysdeps/i386/dl-tlsdesc.h: New file.
5017 * sysdeps/i386/tlsdesc.c: New file.
5018 * sysdeps/i386/tlsdesc.sym: New file.
5019 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5020 tlsdesc_table.
5021 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 5022 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
5023 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5024 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5025 release tlsdesc_table.
5026 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5027 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5028 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5029 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5030 (elf_machine_rela): Likewise.
5031 (elf_machine_lazy_rel): Likewise.
5032 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5033 (__tls_get_addr): Do not declare for non-shared compiles.
5034 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5035 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5036 * sysdeps/x86_64/tlsdesc.c: New file.
5037 * sysdeps/x86_64/tlsdesc.sym: New file.
5038 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5039 tlsdesc_table for both 32- and 64-bit structs.
5040
a3636e8b
UD
50412008-05-11 Ulrich Drepper <drepper@redhat.com>
5042
5043 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5044 its own function. This reduces the frame setup costs and more.
5045
a7eb802f
UD
50462008-02-11 Joseph Myers <joseph@codesourcery.com>
5047
5048 [BZ #3406]
5049 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5050 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5051
3490f01d
UD
50522008-05-11 Ulrich Drepper <drepper@redhat.com>
5053
3d7eeebe
UD
5054 * io/openat.c (__openat_2): Also pass fd to __openat.
5055 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5056 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5057
3490f01d
UD
5058 * string/tester.c (test_memcmp): Add a few more tests.
5059 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5060
7e71e55f
UD
50612008-05-10 Ulrich Drepper <drepper@redhat.com>
5062
5063 * nscd/cache.c (cache_add): Before returning with failure and this
5064 is the first use of the record, mark it as unusable.
5065 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5066 reporting a failure.
5067 * nscd/grpcache.c: Likewise
5068 * nscd/hstcache.c: Likewise.
5069 * nscd/initgrcache.c: Likewise.
5070 * nscd/pwdcache.c: Likewise.
343996c4 5071 * nscd/servicescache.c: Likewise.
7e71e55f 5072
7396d0a9
RM
50732008-05-10 Roland McGrath <roland@redhat.com>
5074
5075 [BZ #6505]
5076 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5077
c5ee217f
UD
50782008-05-08 David S. Miller <davem@davemloft.net>
5079
b29899ae
UD
5080 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5081
c5ee217f
UD
5082 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5083 (__ieee754_y0l): Likewise.
5084 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5085 (__ieee754_y1l): Likewise.
5086 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5087 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5088 frexpl and ldexpl. math_private.h provides them and the latter
5089 is not even used.
5090 (__log1pl): Use __frexpl.
5091
1eb946b9
UD
50922008-05-10 Ulrich Drepper <drepper@redhat.com>
5093
5094 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5095 prototypes.
5096 * include/arpa/nameser_compat.h: Define T_UNSPEC.
5097 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5098 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5099 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5100 af==AF_UNSPEC.
5101 (_nss_nis_gethostbyname4_r): New function.
5102 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5103 Change to also handle af==AF_UNSPEC.
5104 (get_tablename): New function. Use it to avoid duplication.
5105 (_nss_nisplus_gethostbyname4_r): New function.
5106 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5107 available.
5108 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5109 * nss/nss.h: Define struct gaih_addrtuple.
5110 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5111 af==AF_UNSPEC.
5112 (_nss_files_gethostbyname4_r): New function.
5113 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5114 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5115 calls.
5116 * resolv/res_query.c (__libc_res_nquery): Take two additional
5117 parameters for second answer buffer. Handle type=T_UNSPEC to mean
5118 look up IPv4 and IPv6.
5119 Change all callers.
5120 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5121 for an additional query and answer buffer. Pass to send_vc and
5122 send_dg.
5123 (send_vc): Send possibly two requests and receive two answers.
5124 (send_dg): Likewise.
5125 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5126 __libc_res_nquery.
5127 (_nss_dns_gethostbyname4_r): New function.
5128 (gaih_getanswer_slice): Likewise.
5129 (gaih_getanswer): Likewise.
5130 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5131 __libc_res_nquery call.
5132 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5133 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5134 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5135 available.
5136
b7fb703a
JJ
51372008-05-05 David S. Miller <davem@davemloft.net>
5138
5139 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5140 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5141
2256e43d
RM
51422007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5143
5144 Fix termios bit macros.
5145 Move *DLY definitions where they belong, in termios.h.
5146 Add *[0-3] definitions.
5147 Fixes confusion between VT and FF.
8bb52dbf
RM
5148 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5149 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5150 are already defined to avoid collision with termios.h.
2256e43d
RM
5151 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5152 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5153 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5154 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5155 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5156 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5157 VTDLY, VT0, VT1): New macros.
5158 [__USE_GNU] (OLCUC): Change value of macro.
5159 [__USE_XOPEN] (OFILL): New macro.
5160 [__USE_BSD] (CRTSCTS): Change value.
5161 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5162 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5163 (B7200, B14400, B28800, B76800): New macros.
5164
4ce349e5
JJ
51652008-05-01 David S. Miller <davem@davemloft.net>
5166
a86a7a39
JJ
5167 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5168 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5169 (gen-as-const-headers): Add it.
5170 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5171 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5172 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5173 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 5174
4ce349e5
JJ
5175 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5176 six system call parameters.
5177 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5178
89a8963d
UD
51792008-04-30 Ulrich Drepper <drepper@redhat.com>
5180
5181 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5182 RUSAGE_LWP.
5183 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5184 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5185
b5ec5fce
JJ
51862008-04-30 Jakub Jelinek <jakub@redhat.com>
5187
5188 * stdlib/tst-setcontext.c: Include unistd.h.
5189
d4e92d9e
JJ
51902008-04-25 David S. Miller <davem@davemloft.net>
5191
5192 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5193 Pass "union semun" properly in to sys_ipc, it must be passed
5194 by value, not by reference.
5195
7eb5e6c9
UD
51962008-04-22 Jakub Jelinek <jakub@redhat.com>
5197
5198 * nscd/Makefile (nscd-cflags): Set back to -fpie.
5199 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5200 * nscd/connections.c (mem_in_flight): Likewise.
5201
5202 * nscd/nscd.h (dbs): Make hidden.
5203
5204 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5205 Avoid returning -1, return 0 instead.
5206
0073dd2d
UD
52072008-04-19 Ulrich Drepper <drepper@redhat.com>
5208
5209 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5210
c52137d3
UD
52112008-04-15 Ulrich Drepper <drepper@redhat.com>
5212
5213 [BZ #5209]
5214 * sysdeps/unix/sysv/linux/times.c: New file.
5215
5216 [BZ #5381]
5217 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5218 mem_in_flight_list variables. Add new parameter to mempool_alloc
5219 prototype.
5220 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
5221 appropriate mem_in_flight element.
5222 (gc): Take allocations which have not yet been committed to the
5223 database into account.
5224 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5225 Reset mem_in_flight before returning.
5226 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5227 cue it up in mem_in_flight_list.
5228 * nscd/aicache.c: Adjust mempool_alloc call.
5229 * nscd/grpcache.c: Likewise.
5230 * nscd/hstcache.c: Likewise.
5231 * nscd/initgrcache.c: Likewise.
5232 * nscd/pwdcache.c: Likewise.
5233 * nscd/servicescache.c: Likewise.
5234 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5235 of -fpie.
5236
5237 * nscd/connections.c (handle_request): Provide better error message
5238 in case SELinux forbids the service.
5239
5240 * version.h (VERSION): Bump to 2.8.90.
5241
39546e34
JJ
52422008-04-17 Jakub Jelinek <jakub@redhat.com>
5243
5244 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5245
cf3a8c7f
UD
52462008-04-11 Ulrich Drepper <drepper@redhat.com>
5247
9e113ecd
UD
5248 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5249 Also use for 32-bit.
3b6d574e
UD
5250 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5251 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
5252 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5253 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5254
3781ec29
UD
5255 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5256
246ec411
UD
5257 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5258 __fe_nomask_env.
3cc56f92
UD
5259 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
5260 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
5261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5263
5264 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5265
5266 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5267 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5268 function from fegetexcept and make old name weak alias.
5269 * include/fenv.h: Declare __fegetexcept.
5270 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5271 fegetexcept.
5272 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5273 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5274 to fetestexcept.
5275 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5276 instead of frexpl to avoid local PLT.
5277 * math/s_significandl.c (__significandl): Use __ilogbl instead of
5278 ilogbl to avoid local PLT.
5279 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5280 instead of ldexpl to avoid local PLT.
5281 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5282 __roundl not roundl to avoid local PLT.
5283 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5284 local PLTs. Use __sincosl instead of separate sinl and cosl
5285 calls.
5286 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5287
2dc4a2fd
UD
5288 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5289 version for ppc64 to 2.4.21 since without it makecontext will fail.
5290
fe3350ee
UD
5291 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5292 to the ABI in use.
5293 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5294 .__tls_get_addr.
5295 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 5296
c1e6b459
UD
52972007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
5298
7763d4f1 5299 [BZ #4997]
c1e6b459
UD
5300 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5301 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5302 mantissa.
5303 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5304 Likewise. Also account for when x is an odd number between 2^52
5305 and 2^53-1.
5306 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5307 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5308 * math/libm-test.inc (lround_test, llround_test): Added test cases to
5309 detect aforementioned erroneous conditions.
5310
22dca1ea
UD
53112008-04-11 Jakub Jelinek <jakub@redhat.com>
5312
5313 * configure.in: Check for -fno-section-anchors in addition to
5314 -fno-toplevel-reorder.
5315
5d59f4a5
UD
53162008-04-11 Ulrich Drepper <drepper@redhat.com>
5317
5318 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5319
5320 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5321 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5322 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5323 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5324 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5325 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5326
91e32540
UD
53272008-04-11 Jakub Jelinek <jakub@redhat.com>
5328
5329 [BZ #5443]
5330 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5331 * time/alt_digit.c: Likewise.
5332 * wcsmbs/wcsmbsload.c: Likewise.
5333
fd490ac8
UD
53342008-04-10 Ulrich Drepper <drepper@redhat.com>
5335
1db5b6f4
UD
5336 * version.h (VERSION): Bump to 2.8.
5337
fd490ac8
UD
5338 * timzeone/asia: Update from tzdata2008b.
5339 * timezone/backward: Likewise.
5340 * timezone/europe: Likewise.
5341 * timezone/northamerica: Likewise.
5342 * timezone/southamerica: Likewise.
5343 * timezone/iso3166.tab: Likewise.
5344 * timezone/leapseconds: Likewise.
5345 * timezone/zone.tab: Likewise.
5346 * timezone/private.h: Update from tzcode2008a.
5347 * timezone/zdump.c: Likewise.
5348 * timezone/zic.c: Likewise.
5349
153cf972
UD
53502008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5351
5352 [BZ #5741]
5353 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5354 Define additonal Data Cache Block instruction macros.
5355 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5356 Replace dcbst with dcbf and sync with sync/isync.
5357
d2207f32
UD
53582008-02-21 Alan Modra <amodra@bigpond.net.au>
5359
5360 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5361 Always set ELF_RTYPE_CLASS_PLT.
5362 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5363
13d83320
UD
53642008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5365
5366 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5367 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5368 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5369 For ISA 2.01 and later replace mftb with mfspr 268.
5370
5f7aead5
UD
53712008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5372
5373 [BZ #5768]
5374 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5375 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5376
53772008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
5378
5379 [BZ #5768]
5380 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5381 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5382 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5383 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5384
117df5d9
JJ
53852008-04-10 Jakub Jelinek <jakub@redhat.com>
5386
5387 * stdlib/tst-makecontext.c (othervar): New variable.
5388 (cf): Test sign extending the argument to long.
5389
3b32d8a2
UD
53902008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
5391
5392 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5393 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5394 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5395 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5396 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5397 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5398 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5399
9fb11d4c
UD
54002008-02-22 Alan Modra <amodra@bigpond.net.au>
5401
5402 * elf/Makefile (tests): Substitute tests-vis-yes here.
5403 (tests-vis-yes): Delete.
5404 (modules-name, modules-vis-yes): Similarly.
5405
facd1d8e
UD
54062008-02-12 Pete Eberlein <eberlein@us.ibm.com>
5407
5408 [BZ #4407]
5409 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5410 Preserve sign in signgamp when x is zero.
5411
aece054b
UD
54122007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
5413
5414 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5415 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5416 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5417 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5418 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5419 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5420
6c30d38f
UD
54212008-04-09 Ulrich Drepper <drepper@redhat.com>
5422
21208604 5423 [BZ #4314]
13d83320
UD
5424 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5425 buffers.
21208604 5426
2f611ada 5427 [BZ #5209]
d1235fdf
UD
5428 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5429 a reserved error value.
2f611ada 5430
6c30d38f
UD
5431 * stdlib/tst-makecontext.c: Change parameter to cf to negative
5432 value to check for correct sign extension.
5433
5434 [BZ #5436]
5435 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5436 Copy 64-bit parameter values even though this is not required in
5437 the standard.
5438
5439 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5440 PC save.
5441
de1bbf68
UD
54422008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
5443
5444 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5445 PC save.
5446
9aef35a5
UD
54472008-04-09 Jakub Jelinek <jakub@redhat.com>
5448
5449 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5450
a7925a24
UD
54512008-04-09 Ulrich Drepper <drepper@redhat.com>
5452
5453 [BZ #5998]
5454 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5455 in line-buffered stream failed.
5456 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5457
7b61ef24
UD
54582008-04-08 Ulrich Drepper <drepper@redhat.com>
5459
c2a684a4
UD
5460 [BZ #6024]
5461 * scripts/abi-versions.awk: If the version specified by
5462 --enable-oldest-abi is older than the first version for this
5463 architecture, use the default version.
5464
7b61ef24
UD
5465 * locale/programs/ld-collate.c (collate_read): Ignore script lines
5466 as well when ignoring the whole category.
5467
f6d749f0
UD
54682008-04-07 Ulrich Drepper <drepper@redhat.com>
5469
5470 [BZ #6042]
5471 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5472 ETHERTYPE_* definitions.
5473 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5474
1e99aede
JJ
54752008-04-07 Jakub Jelinek <jakub@redhat.com>
5476
5477 * stdlib/mbtowc.c (__no_r_state): Remove.
5478 (mbtowc): New static state variable. Use it instead of
5479 __no_r_state.
5480 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5481 (__wctomb_state): New hidden variable.
5482 (wctomb): Use __wctomb_state instead of __no_r_state.
5483 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5484 (__wctomb_state): New extern decl.
5485 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5486
fcf90e0a
UD
54872008-04-07 Ulrich Drepper <drepper@redhat.com>
5488
5489 [BZ #5475]
5490 * resolv/res_init.c: Handle scope IDs in resolv.conf.
5491
ae39e102
JJ
54922008-04-07 Jakub Jelinek <jakub@redhat.com>
5493
5494 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5495
2503dd30
UD
54962008-04-06 Ulrich Drepper <drepper@redhat.com>
5497
5498 * po/nl.po: Update from translation team.
5499
3eb9c809
UD
55002008-03-31 Ulrich Drepper <drepper@redhat.com>
5501
5502 [BZ #6007]
5503 * string/strfry.c: Handle empty strings again.
5504
9a69db29
UD
55052008-03-30 Ulrich Drepper <drepper@redhat.com>
5506
5507 [BZ #5443]
5508 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5509 before looking for translation.
5510 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5511 * locale/freelocale.c: Likewise.
5512 * locale/newlocale.c: Likewise.
5513 * locale/setlocale.c: Likewise.
5514 Based partially on a patch by ryo@np.css.fujitsu.com.
5515
2ecc7d93
UD
55162008-03-30 Jakub Jelinek <jakub@redhat.com>
5517
5518 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5519 acquiring wrlock. Do conv_tab allocation while holding lock.
5520 * intl/Makefile: Add rules to build and run tst-gettext6.
5521 * intl/tst-gettext6.c: New test.
5522 * intl/tst-gettext6.sh: New file.
5523
221e5230
UD
55242008-03-30 Ulrich Drepper <drepper@redhat.com>
5525
faa091c6
UD
5526 * po/nl.po: Update from translation team.
5527
221e5230
UD
5528 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5529 provided through st_blksize, try the default size before giving up.
5530
1c272665
UD
55312008-03-29 Ulrich Drepper <drepper@redhat.com>
5532
43f6bec1
UD
5533 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5534
e8a32126
UD
5535 [BZ #5939]
5536 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5537
1e489af9
UD
5538 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5539 error message. POSIX today does not require the messages to be in
5540 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5541
1d20f7f8
UD
5542 [BZ #5979]
5543 * sunrpc/auth_unix.c: Unify printed strings.
5544 * sunrpc/clnt_tcp.c: Likewise.
5545 * sunrpc/clnt_udp.c: Likewise.
5546 * sunrpc/clnt_unix.c: Likewise.
5547 * sunrpc/svc_tcp.c: Likewise.
5548 * sunrpc/svc_udp.c: Likewise.
5549 * sunrpc/svc_unix.c: Likewise.
5550 * sunrpc/xdr.c: Likewise.
5551 * sunrpc/xdr_array.c: Likewise.
5552 * sunrpc/xdr_rec.c: Likewise.
5553 * sunrpc/xdr_ref.c: Likewise.
5554 * locale/programs/ld-time.c (time_finish): Unify messages.
5555 * locale/programs/locfile.c (handle_copy): Fix typo.
5556 * nscd/nscd.c (options): Fix typo.
5557
1c272665
UD
5558 [BZ #5995]
5559 * stdlib/strtod_l.c: Use correct sign for result in one more
5560 underflow case.
5561 Patch by Eric Blake <ebb9@byu.net>.
5562
48cc060e
UD
55632008-03-27 Jakub Jelinek <jakub@redhat.com>
5564
5565 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5566 and creat system calls.
5567 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5568 call.
5569 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5570 system calls.
5571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5572 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5573 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5574
f96853be
UD
55752008-03-27 Ulrich Drepper <drepper@redhat.com>
5576
5577 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5578 <linux/limits.h> has defined it.
5579 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5580 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5581 headers.
5582 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5583 it instead of ARG_MAX.
5584
fde15fdc
UD
55852008-03-25 Jakub Jelinek <jakub@redhat.com>
5586
5587 * posix/gai.conf: Fix comment for scope nullbits.
5588 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5589 default to 128 bits for v4 mapped addresses.
5590
87b9b50f
UD
55912008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5592
5593 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5594 ptrace call to get the ieee_instruction_pointer from the kernel.
5595 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5596 ptrace call to set the ieee_instructtion_pointer.
5597 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5598 Add comment that ieee_instruction_pointer is always 0.
5599
af0498dc
UD
56002008-03-09 Andreas Jaeger <aj@suse.de>
5601
5602 [BZ #5857]
5603 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5604 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5605 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5606
5607 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5608 (rint_test): Likewise.
5609
0ab7632d
UD
56102008-03-24 Ulrich Drepper <drepper@redhat.com>
5611
0facd3df
UD
5612 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5613 call.
5614 (__nisfind_server): Similar for open readColdStartFile call.
5615 Patch partially by Jim Meyering.
5616 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5617 around internal_setent call.
5618
7e570c55
UD
5619 * po/vi.po: New Vietnamese translation.
5620
e093c247
UD
5621 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5622 ADJ_OFFSET_SS_READ.
5623
0ab7632d
UD
5624 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5625 remove CLONE_STOPPED.
5626
0726cdf7
UD
56272008-02-10 Jim Meyering <meyering@redhat.com>
5628
5629 Remove useless "if" before "free":
5630 * elf/ldconfig.c (parse_conf_include): Likewise.
5631 * gmon/gmon.c (weak_alias): Likewise.
5632 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5633 * inet/rcmd.c (__validuser2_sa): Likewise.
5634 * intl/bindtextdom.c (set_binding_values): Likewise.
5635 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5636 * libio/genops.c (save_for_backup): Likewise.
5637 * libio/wgenops.c (save_for_wbackup): Likewise.
5638 * locale/programs/ld-collate.c (collate_read): Likewise.
5639 * locale/programs/linereader.c (get_string): Likewise.
5640 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5641 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5642 * resolv/res_debug.c (do_section): Likewise.
5643 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5644 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5645 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5646 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5647 * time/tzset.c (tzset_internal): Likewise.
5648
354b7527
JJ
56492008-03-18 Jakub Jelinek <jakub@redhat.com>
5650
5651 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5652 of ASSEMBLER.
5653
ca668b29
UD
56542008-03-11 Ulrich Drepper <drepper@redhat.com>
5655
5656 [BZ #5903]
5657 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5658 not stream for output file. Open output file here.
5659 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5660 and output file name.
5661 (process_fd): Likewise.
5662 (process_file): Likewise.
5663 (main): Adjust callers of changed functions.
5664 * iconv/iconv_prog.h: Adjust prototype.
5665
f3dc3415
AJ
56662008-03-09 Andreas Jaeger <aj@suse.de>
5667
5668 [BZ #5753]
5669 * sysdeps/ia64/ieee754.h: Use protected namespace
5670 __BIG_ENDIAN/__LITTLE_ENDIAN.
5671 * sysdeps/ieee754/ieee754.h: Likewise.
5672 Patch by Aurelien Jarno <aurelien@aurel32.net>.
5673
a8fd84d4
RM
56742008-03-08 Roland McGrath <roland@frob.com>
5675
2b965f1b
RM
5676 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5677 ignore a signal that came from a machine exception, treat it as a
5678 fatal core-dump signal instead.
5679 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5680
a8fd84d4
RM
5681 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5682 Clear DF bit in thread state's eflags.
5683 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5684
368a8dec
UD
56852008-03-08 Ulrich Drepper <drepper@redhat.com>
5686
b3278554
UD
5687 [BZ #5774]
5688 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 5689 of NAN(...) sequence.
b3278554
UD
5690 * stdlib/Makefile (tests): Add tst-strtod6.
5691 * stdlib/tst-strtod6.c: New file.
5692
5693 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5694
2127a186
UD
5695 [BZ #5762]
5696 * posix/getopt.c (_getopt_internal_r): Clarify error message by
5697 putting offending option character in quotes. Clean up error
5698 messages.
5699 * po/be.po: Adjust msgstr in translation file.
5700 * po/bg.po: Likewise.
5701 * po/ca.po: Likewise.
5702 * po/cs.po: Likewise.
5703 * po/da.po: Likewise.
5704 * po/de.po: Likewise.
5705 * po/es.po: Likewise.
5706 * po/fr.po: Likewise.
5707 * po/hr.po: Likewise.
5708 * po/ko.po: Likewise.
5709 * po/nl.po: Likewise.
5710 * po/rw.po: Likewise.
5711 * po/sk.po: Likewise.
5712 * po/sv.po: Likewise.
5713 * po/tr.po: Likewise.
5714 * po/zh_CN.po: Likewise.
5715 * po/zh_TW.po: Likewise.
5716
725c0c87
UD
5717 [BZ #5760]
5718 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5719 Patch by Roland Bless <roland@bless.de>.
5720
368a8dec
UD
5721 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5722 .o file.
5723 * elf/Makefile (routines): Add dl-sysdep.
5724 (elide-routines.os): Likewise.
5725
78c2bf0e
UD
57262008-03-07 Ulrich Drepper <drepper@redhat.com>
5727
7c22c7ec
UD
5728 [BZ #5786]
5729 * elf/dl-sysdep.c: Undefine ROUND after use.
5730 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5731 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5732 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5733 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5734 to ...
5735 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5736 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5737 if necessary.
5738 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5739
93025f93
UD
5740 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5741 _dl_tls_get_addr_soft element.
5742 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5743 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5744 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5745 GLRO.
5746 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5747 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5748 of internal_function.
5749
72f10127
UD
5750 * stdlib/Makefile (aux): Add tens_in_limb.
5751 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5752 * stdlib/tens_in_limb.c: ...here. New file.
5753
443db178
UD
5754 [BZ #5778]
5755 * sysdeps/unix/sysv/linux/pathconf.h: Declare
5756 __statfs_chown_restricted.
5757 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5758 for _PC_CHOWN_RESTRICTED.
5759 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5760 Implement __statfs_chown_restricted.
5761 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5762 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
5763 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5764 defined to zero.
443db178 5765
78c2bf0e
UD
5766 * sysdeps/x86_64/rtld-memset.c: New file.
5767
443db178 57682008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
5769
5770 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5771
5772 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5773 Barcelona machine. Make default fall through branch of
5774 __x86_64_preferred_memory_instruction check as the integer code path.
5775
57762007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5777
5778 * sysdeps/x86_64/cacheinfo.c
5779 (__x86_64_preferred_memory_instruction): New variable.
5780 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5781
5782 * sysdeps/x86_64/memset.S: Rewrite.
5783
dff37515
UD
57842008-03-04 Jakub Jelinek <jakub@redhat.com>
5785
5786 * include/stdio.h (__asprintf_chk, __dprintf_chk,
5787 __obstack_printf_chk): New prototypes.
5788 (__vasprintf_chk, __vdprintf_chk,
5789 __obstack_vprintf_chk): Likewise.
5790 Add libc_hidden_proto.
5791 * libio/obprintf.c
5792 (_IO_obstack_jumps): No longer static, add attribute_hidden.
5793 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5794 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5795 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5796 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5797 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5798 __obstack_vprintf_chk): New prototypes.
5799 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5800 obstack_vprintf): New inlines.
5801 * debug/dprintf_chk.c: New file.
5802 * debug/vdprintf_chk.c: New file.
5803 * debug/asprintf_chk.c: New file.
5804 * debug/vasprintf_chk.c: New file.
5805 * debug/obprintf_chk.c: New file.
5806 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5807 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5808 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5809 @@GLIBC_2.8.
5810 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5811 vdprintf_chk and obprintf_chk, set CFLAGS for them.
5812 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5813 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5814 libc_hidden_proto.
5815 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5816 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5817 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5818 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5819 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5820 @@GLIBC_2.8.
5821 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5822 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5823 obstack_vprintf_chk.
5824 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5825 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5826 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5827 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5828 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5829 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5830
d835f136
UD
58312008-03-04 Ulrich Drepper <drepper@redhat.com>
5832
a4bb445a
UD
5833 [BZ #5779]
5834 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5835 Patch by Roy Marples <roy@marples.name>.
5836
c958a6a4
UD
5837 [BZ #5736]
5838 * malloc/malloc.c: Fix typo in comment.
5839
d835f136
UD
5840 [BZ #5627]
5841 * locale/iso-639.def: Add Shuswap.
5842
65b4743a
UD
58432008-02-25 Jakub Jelinek <jakub@redhat.com>
5844
5845 [BZ #5790]
5846 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5847 overwrite *h_errnop/*errnop values from getanswer_r in case of
5848 failure.
5849
3868fb6e
UD
58502008-03-03 Ulrich Drepper <drepper@redhat.com>
5851
27c377dd
UD
5852 [BZ #5818]
5853 * nscd/connections.c (dbs): Add initializers for .suggested_module.
5854 (verify_persistent_db): Remove one unnecessary test and add a new one
5855 for bad configuration.
5856 (nscd_init): Improve error reported when persistent database cannot
5857 be reused.
5858 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5859 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5860 .suggested_module and .max_db_size and case config file says the
5861 values are zero.
5862 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5863
0f749099
UD
5864 [BZ #5854]
5865 * nis/ypclnt.c (yp_order): Fix handling of return value of
5866 do_ypcall_tr call.
5867 Patch by Jeff Moyer <jmoyer@redhat.com>.
5868
3868fb6e
UD
5869 * po/fr.po: Update from translation team.
5870
268dbf25
AJ
58712008-02-22 Andreas Jaeger <aj@suse.de>,
5872 Carlos O'Donell <carlos@systemhalted.org>
5873
5874 [BZ #5012]
5875 * FAQ.in: Describe why glibc needs to be compiled with
5876 optimization.
5877
73b82641
RM
58782008-02-19 Roland McGrath <roland@redhat.com>
5879
5880 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5881
c9136393
UD
58822008-02-15 Ulrich Drepper <drepper@redhat.com>
5883
5884 [BZ #5737]
5885 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5886 __USE_MISC is defined.
5887
2e3e9ff1
UD
58882008-02-10 Ulrich Drepper <drepper@redhat.com>
5889
5890 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5891 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5892 sys/timerfd.h.
5893 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5894 timerfd_gettime, timerfd_settime.
5895 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5896 timerfd_gettime, timerfd_settime for GLIBC_2.8.
5897
85202a2b
RM
58982008-02-08 Roland McGrath <roland@redhat.com>
5899
5900 * elf/elf.h (NT_PPC_SPE): New macro.
5901
708ef8a4
RM
59022008-02-06 Roland McGrath <roland@redhat.com>
5903
5904 * Makerules ($(common-objpfx)sysd-rules):
5905 Depend on $(sysdep-makeconfigs).
5906
363a641b
RM
59072008-01-31 Roland McGrath <roland@redhat.com>
5908
67fbfa5c
RM
5909 [BZ #5442]
5910 * configure.in: Use -print-file-name if it yields a directory,
5911 for each of include and include-fixed.
5912 * configure: Regenerated.
5913
363a641b
RM
5914 * Makeconfig (sysd-rules-targets): New variable.
5915 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5916 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5917
0f0f9610
RM
59182008-01-30 Roland McGrath <roland@redhat.com>
5919
7bd00dbf
RM
5920 * manual/libc.texinfo: Update back-cover text.
5921
0f0f9610
RM
5922 * elf/elf.h (NT_386_TLS): New macro.
5923
16cd816f
RM
59242008-01-29 Roland McGrath <roland@redhat.com>
5925
5926 * Makeconfig (sysd-rules-patterns): New variable.
5927 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5928 (check-inhibit-asm): New canned sequence, replaces ...
5929 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5930 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5931 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5932 (CFLAGS-rtld): Variable removed.
5933
f641ffcc
RM
59342008-01-24 Roland McGrath <roland@redhat.com>
5935
5936 * configure.in: Let configure fragments set base_os.
5937 * configure: Regenerated.
5938
b7e26885
UD
59392008-01-22 Ulrich Drepper <drepper@redhat.com>
5940
5941 * po/ko.po: Update from translation team.
5942
b4b166af
UD
59432008-01-12 H.J. Lu <hongjiu.lu@intel.com>
5944
5945 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5946
f66def9d
AJ
59472008-01-12 Andreas Jaeger <aj@suse.de>
5948
5949 [BZ #5040]
5950 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5951 Add EPOLLRDHUP.
5952
d3bc5e77
RM
59532008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5954
5955 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5956 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5957 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5958
4c533566
UD
59592007-10-23 Alexandre Oliva <aoliva@redhat.com>
5960
5961 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5962 * elf/dl-close.c (_dl_close): Check for it.
5963 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5964 (_dl_allocate_static_tls): Likewise.
5965 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5966 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5967 to it.
5968 * elf/tst-tls16.c: New file.
5969 * elf/tst-tlsmod16a.c: New file.
5970 * elf/tst-tlsmod16b.c: New file.
5971 * elf/Makefile: Add rules to build and run tst-tls16.
5972
a53d3f82
UD
59732008-01-16 Ulrich Drepper <drepper@redhat.com>
5974
a0f6c236
UD
5975 [BZ #5628]
5976 * bits/shm.h: Fix comment describing shmid_ds.
5977 * sysdeps/gnu/bits/shm.h: Likewise.
5978 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5979 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5980 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5981 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5982 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5983 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5984 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5985 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5986 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5987
a53d3f82
UD
5988 [BZ #5607]
5989 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5990 prototypes.
5991 * conform/data/limits.h-data: Adjust limits changed in v6 and add
5992 additional suffixes.
5993 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5994 Add optional functions mq_timedreceive and mq_timedsend.
5995 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5996 * conform/data/pthread.h-data: Fix prototype of
5997 pthread_condattr_setclock. pthread_sigmask is not required in v6.
5998 * conform/data/semaphore.h-data: Allow time.h definitions.
5999 * conform/data/signal.h-data: Likewise.
6000 * conform/data/stdio.h-data: getw and putw are not required in v6.
6001 * conform/data/stdlib.h-data: Change setstate prototype.
6002 * conform/data/string.h-data: Fix strerror_r prototype.
6003 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6004 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6005 Fix readlink prototype.
6006 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6007 in6addr_loopback.
6008 * inet/netinet/in.h: Cleanup namespace.
6009 * posix/regex.h: Likewise.
6010 * resolv/netdb.h: Likewise.
6011 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6012 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6013 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
6014 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6015 of names of in in6_addr.
6016 (default_precedence): Likewise.
6017 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6018 NULL definition.
a53d3f82 6019
ebca8f73
UD
60202008-01-15 Ulrich Drepper <drepper@redhat.com>
6021
fbe90cd5
UD
6022 * conform/data/fmtmsg.h-data: Add missing allows.
6023 * conform/data/ftw.h-data: Likewise.
6024 * conform/data/inttypes.h-data: Likewise.
6025 * conform/data/math.h-data: Likewise.
6026 * conform/data/signal.h-data: Likewise.
6027 * conform/data/net/if.h-data: Likewise.
6028 * conform/data/netinet/in.h-data: Likewise.
6029 * conform/data/sys/socket.h-data: Likewise.
6030
ebca8f73
UD
6031 [BZ #5614]
6032 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6033 (__strtok_r): Simplify.
6034 * string/tester.c (test_strtok_r): Add test case for futile search
6035 with single-character seach string.
6036
7c33ca8b
UD
60372008-01-12 Ulrich Drepper <drepper@redhat.com>
6038
6039 * po/ko.po: Update from translation team.
6040
b8cc0848
AJ
60412008-01-11 Andreas Jaeger <aj@suse.de>
6042
6043 [BZ #5600]
6044 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6045 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6046 kernel header.
6047
49029a66
UD
60482008-01-10 Ulrich Drepper <drepper@redhat.com>
6049
6050 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6051 native interface lookup in all the relevant places.
6052
99f05798
UD
60532008-01-10 Jakub Jelinek <jakub@redhat.com>
6054 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
6055
6056 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6057 field. Use sockaddr_in6 for source_addr.
6058 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6059 (match_prefix): Likewise.
6060 (get_label): Likewise.
6061 (get_precedence): Likewise.
6062 (rfc3484_sort): Change to use indirect access to results array.
6063 Adjust to use of sockaddr_in6. Replace service_order test with
6064 simple index comparison.
6065 (getaddrinfo): Define order array. Initialize it. Don't initialize
6066 service_order field. Adjust qsort_t calls. Access sorted result
6067 array indirectly through order array.
6068 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6069 * posix/tst-rfc3484-2.c: Likewise.
6070 * posix/tst-rfc3484-3.c: Likewise.
6071
b3443701
UD
60722008-01-09 Ulrich Drepper <drepper@redhat.com>
6073
f6bacb8e
UD
6074 [BZ #5541]
6075 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6076 pollfd structures.
6077 Patch by André Cruz.
6078
aa693c68
UD
6079 [BZ #5545]
6080 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6081 (clnt_spcreateerror): Likewise.
6082
b3443701
UD
6083 [BZ #5553]
6084 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6085 (public_mEMALIGn): Likewise.
6086 Patch mostly by Daniel Jacobowitz.
6087
148e12ed
UD
60882008-01-09 Jakub Jelinek <jakub@redhat.com>
6089
6090 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6091 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6092 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6093 * stdlib/tst-makecontext2.c: New test.
6094
78c2bf0e 60952008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
6096
6097 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6098 defined.
6099 (REINIT_PARAMS): Likewise. Undefine before end of file.
6100 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6101 transliteration hooks and REINIT_PARAMS afterwards.
6102 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6103 status.
6104 (REINIT_PARAMS): Define.
6105 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6106 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6107 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6108 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6109 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6110 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6111 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6112 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6113 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6114 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6115 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6116 * iconvdata/tst-iconv7.c: New test.
6117
71edcafa
UD
61182008-01-07 Ulrich Drepper <drepper@redhat.com>
6119
6120 * libio/stdio.h (vscanf): Fix definition for loser compilers.
6121
0fbfe2f7
JJ
61222008-01-05 Jakub Jelinek <jakub@redhat.com>
6123
6124 [BZ #5112]
6125 * nscd/connections.c (restart): Fix condition.
6126
8726a12e
UD
61272008-01-03 Jakub Jelinek <jakub@redhat.com>
6128
6129 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6130 __ctype_toupper_loc): Add __THROW.
6131
f4a1363e
UD
61322008-01-02 Ulrich Drepper <drepper@redhat.com>
6133
ad586879
UD
6134 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6135 recognition of interface family.
6136
f4a1363e
UD
6137 * posix/getconf.c: Update copyright year.
6138 * nss/getent.c: Likewise.
6139 * iconv/iconvconfig.c: Likewise.
6140 * iconv/iconv_prog.c: Likewise.
6141 * elf/ldconfig.c: Likewise.
6142 * catgets/gencat.c: Likewise.
6143 * csu/version.c: Likewise.
6144 * elf/ldd.bash.in: Likewise.
6145 * elf/sprof.c (print_version): Likewise.
6146 * locale/programs/locale.c: Likewise.
6147 * locale/programs/localedef.c: Likewise.
6148 * nscd/nscd.c (print_version): Likewise.
6149 * debug/xtrace.sh: Likewise.
6150 * malloc/memusage.sh: Likewise.
6151 * malloc/mtrace.pl: Likewise.
6152 * debug/catchsegv.sh: Likewise.
6153
0dc6c5e4
UD
61542007-12-26 Ulrich Drepper <drepper@redhat.com>
6155
6156 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6157 second lookup.
6158
80af8b82
UD
61592007-12-23 Ulrich Drepper <drepper@redhat.com>
6160
6161 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6162 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6163
4bcecfb7
RM
61642007-12-17 Roland McGrath <roland@redhat.com>
6165
6166 * inet/ether_line.c (ether_line): Remove unused variable.
6167
61682007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
6169
6170 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6171 and winp.
6172 * login/openpty.c (openpty): Likewise.
6173 * login/pty.h (openpty, forkpty): Likewise.
6174 * manual/terminal.texi (openpty, forkpty): Likewise.
6175
4cd4c5d6
UD
61762007-12-17 Ulrich Drepper <drepper@redhat.com>
6177
78c2bf0e 6178 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
6179 main_arena, count all bytes inside the mprotect_size range of the
6180 heap as uninitialized.
6181
68631c8e
UD
61822007-12-16 Ulrich Drepper <drepper@redhat.com>
6183
d9961b6a
UD
6184 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6185 executable stacks.
6186
68631c8e
UD
6187 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6188 mTRIm for all of them.
6189 (mTRIm): Additionally iterate over all free blocks and use madvise
6190 to free memory for all those blocks which contain at least one
6191 memory page.
be8c1500
UD
6192 * malloc/tst-trim1.c: New file.
6193 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
6194
6195 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6196
78b767a0
UD
61972007-12-14 Ulrich Drepper <drepper@redhat.com>
6198
6199 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6200 First cast argument to long
52386be7
UD
6201 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6202 Return long.
6203 (__vdso_clock_gettime): Likewise.
78b767a0
UD
6204 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6205 return long.
6206
bc3e1c12
UD
62072007-12-13 Ulrich Drepper <drepper@redhat.com>
6208
6209 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6210 * locale/nl_langinfo_l.c: Real implementation, copied from
6211 nl_langinfo.c.
6212 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6213
77751669
UD
62142007-12-01 Jim Meyering <meyering@redhat.com>
6215
6216 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6217 that would inhibit utf8-optimization of a regexp containing line-
6218 or buffer-anchors, e.g., `^', `$'.
6219
f63e5063
UD
62202007-12-12 Ulrich Drepper <drepper@redhat.com>
6221
6222 * time/bug-getdate1.c (do_test): Don't use century values which
6223 aren't valid on 32-bit systems.
6224
a78814a9
UD
62252007-12-12 Jakub Jelinek <jakub@redhat.com>
6226
6227 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6228 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6229 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6230 __strcat_g, __strncat_g): Add __asm__.
6231
62322007-12-12 Ulrich Drepper <drepper@redhat.com>
6233
6234 [BZ #5477]
6235 * io/fchmodat.c: Fix typo in stub_warning use.
6236 Patch by Petr Salinger.
6237
17edb30c
UD
62382007-12-11 Ulrich Drepper <drepper@redhat.com>
6239
58d11795
UD
6240 * iconvdata/hp-thai8.c: New file.
6241 * iconvdata/Makefile: Add rules for hp-thai8.c.
6242 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6243 * iconvdata/gconv-modules: Likewise.
6244
6245 [BZ #5464]
6246 * iconvdata/hp-greek8.c: New file.
6247 * iconvdata/Makefile: Add rules for hp-greek8.c.
6248 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6249 * iconvdata/gconv-modules: Likewise.
6250
6251 [BZ #5463]
6252 * iconvdata/hp-turkish8.c: New file.
6253 * iconvdata/Makefile: Add rules for hp-turkish8.c.
6254 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6255 * iconvdata/gconv-modules: Likewise.
6256
cbf5760e
UD
6257 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6258 (shrink_heap): ... this new function.
6259 (heap_trim): Call shrink_heap instead of grow_heap.
6260
17edb30c
UD
6261 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6262 case don't call alloc_perturb.
6263
ae18718f
UD
62642007-12-10 Ulrich Drepper <drepper@redhat.com>
6265
6266 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6267 possible.
6268 * sysdeps/unix/sysv/linux/kernel-features.h
6269 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6270 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6271
b4354cf4
UD
62722007-12-08 Ulrich Drepper <drepper@redhat.com>
6273
6274 [BZ #5424]
6275 * stdio-common/vfprintf.c: Do not overflow when adding to done.
6276 * stdio-common/Makefile (tests): Add bug22.
6277 * stdio-common/bug22.c: New file.
6278
6279 [BZ #5451]
6280 * time/getdate.c: Fix filling in default values.
6281 * time/bug-getdate1.c: New file.
6282 * time/Makefile: Add rules to build and run bug-getdate1.
6283
6284 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6285 * iconvdata/ebcdic-es.c: Likewise.
6286 * iconvdata/ebcdic-es-a.c: Likewise.
6287 * iconvdata/ebcdic-uk.c: Likewise.
6288 * iconvdata/iso8859-16.c: Likewise.
6289 * iconvdata/viscii.c: Likewise.
6290 * iconvdata/iso8859-9e.c: Likewise.
6291 * iconvdata/Makefile: Adjust appropriately.
6292
6293 [BZ #5428]
6294 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6295 __need_wint_t.
6296
26e21e75
UD
62972007-12-07 Ulrich Drepper <drepper@redhat.com>
6298
87520ccc
UD
6299 [BZ #5427]
6300 * iconvdata/hp-roman9.c: New file.
6301 * iconvdata/Makefile: Add rules for hp-roman9.c.
6302 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 6303 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
6304
6305 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6306 * iconvdata/Makefile: Adjust appropriately.
6307
26e21e75
UD
6308 [BZ #5441]
6309 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6310 structure, it's allocated with alloca.
6311 * stdio-common/Makefile (tests): Add bug21.
6312 * stdio-common/bug21.c: New file.
6313
63142007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6315
6316 [BZ #5452]
6317 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 6318 keyword for gcc's braced-groups.
26e21e75
UD
6319
63202007-12-07 Ulrich Drepper <drepper@redhat.com>
6321
6322 [BZ #5454]
6323 * inet/ether_line.c: Strip hostname of whitespaces.
6324 * inet/Makefile (tests): Add tst-ether_line.
6325 * inet/tst-ether_line.c: New file.
6326
9e80c123
UD
63272007-12-03 Ulrich Drepper <drepper@redhat.com>
6328
da0ff4ae
UD
6329 [BZ #5439]
6330 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6331
51bd20d9
UD
6332 [BZ #5435]
6333 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6334
d90d0256
UD
6335 * stdlib/tst-setcontext.c: Catch the case where the links gets
6336 messed up and we do not reach main again.
6337
9e80c123
UD
6338 * po/ca.po: Update from translation team.
6339
ae4287f8
UD
63402007-11-26 Ulrich Drepper <drepper@redhat.com>
6341
6701afc7 6342 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 6343 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 6344 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 6345
30294ea4
UD
63462007-11-25 Ulrich Drepper <drepper@redhat.com>
6347
6348 * nscd/nscd.h (MAX_STACK_USE): Define.
6349 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6350 (gc): Initialize stack_used based on allocation in prune_cache.
6351 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 6352 Clear array before use.
30294ea4
UD
6353
6354 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 6355 memory allocation failed.
e8667ddc
UD
6356 * nscd/hstcache.c (cache_addhst): Likewise.
6357 * nscd/grpcache.c (cache_addgr): Likewise.
6358 * nscd/servicescache.c (cache_addserv): Likewise.
6359 * nscd/pwdcache.c (cache_addpw): Likewise.
6360 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 6361
715db78b
UD
63622007-11-23 Ulrich Drepper <drepper@redhat.com>
6363
609bb071
UD
6364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6365 and creat system calls.
6366
715db78b
UD
6367 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6368
ea2c47b6
UD
63692007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6370
6371 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6372 Add netiucv/iucv.h.
6373 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6374 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6375 protocol.
6376 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6377 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6378 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6379
dcdcf4b9
UD
63802007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
6381
37143323
UD
6382 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6383 strncat): Define as macros to avoid compile errors.
6384
dcdcf4b9
UD
6385 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
6386 creat entries.
6387
3a632674
UD
63882007-11-22 Ulrich Drepper <drepper@redhat.com>
6389
7ea8eb02
UD
6390 [BZ #5382]
6391 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6392 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 6393 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 6394 overflow it.
70d5b6ef 6395 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
6396
6397 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 6398 Return zero in case the thread library is not NPTL.
7ea8eb02 6399
5c3a3dba
UD
6400 [BZ #5375]
6401 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6402 initializing interface list.
6403
85883123
UD
6404 [BZ #5378]
6405 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6406 use result of nss_getgrgid_r if nothing was found. For other
6407 error return with a failure.
6408 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6409
3a632674
UD
6410 * locale/programs/ld-collate.c (collate_read): Fix loop to match
6411 macro name.
6412
b73f9135
UD
64132007-11-19 Ulrich Drepper <drepper@redhat.com>
6414
ee72b971
UD
6415 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6416 (get_scope): For IPv4 scope, use scopes table.
6417 (fini): Free scopes table if necessary.
6418 (free_scopelist): New function.
6419 (scopecmp): New function.
6420 (gaiconf_init): Also handle scopev4 entries.
6421 * posix/tst-rfc3484.c (do_test): Initialize scopes.
6422 * posix/tst-rfc3484-2.c (do_test): Likewise.
6423 * posix/gai.conf: Document scopev4 defaults.
6424 * posix/Makefile (tests): Add tst-rfc3484-3.
6425 * posix/tst-rfc3484-3.c: New file.
6426
f4a79765
UD
6427 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6428 Teredo tunnels.
b73f9135
UD
6429 * posix/gai.conf: Update for current default tables.
6430
429bd64d
UD
64312007-11-19 Ulrich Drepper <drepper@redhat.com>
6432
6433 * po/tr.po: Update from translation team.
6434
3c9af259
RM
64352007-11-18 Roland McGrath <roland@frob.com>
6436
76cf9889
RM
6437 * manual/arith.texi (Remainder Functions): Spelling fix.
6438 From Shaun Silk <genix@mysoul.com.au>.
6439
3c9af259
RM
6440 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6441
238346ab
UD
64422007-11-17 Ulrich Drepper <drepper@redhat.com>
6443
5879ad50
UD
6444 * po/zh_CN.po: Update from translation team.
6445
238346ab
UD
6446 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6447 Add sys/signalfd.h and sys/eventfd.h.
6448
b80b9c77
UD
64492007-11-15 Bruno Haible <bruno@clisp.org>
6450
6451 [BZ #5346]
6452 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6453 union.
6454 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6455 (DCIGETTEXT): Change the allocation of the 'search' variable so that
6456 it needs only fixed stack space. Delay the initialization of
6457 msgid_len until it is needed.
6458
2da2501c
AJ
64592007-11-15 Andreas Jaeger <aj@suse.de>
6460
6461 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6462 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6463
68a6dcf5
UD
64642007-11-15 Ulrich Drepper <drepper@redhat.com>
6465
6466 * po/ko.po: Update from translation team.
6467
43850227
UD
64682007-11-14 Ulrich Drepper <drepper@redhat.com>
6469
1e2692c9
UD
6470 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6471 significantly. The device type is also part of the ifinfomsg data.
6472
84e6cc7c 6473 * po/sv.po: Update from translation team.
cbd52634 6474 * po/nl.po: Likewise.
84e6cc7c 6475
f9e2261b
UD
6476 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6477 to wake up in 24 hours.
6478
43850227
UD
6479 * nscd/gai.c (__ioctl): Define. Include check_native.c.
6480
5742e960
UD
64812007-11-13 Ulrich Drepper <drepper@redhat.com>
6482
1a821d82
UD
6483 * po/cs.po: Update from translation team.
6484 * po/pl.po: Likewise.
6485
773e79b3
UD
6486 * include/ifaddrs.h: Remove in6ai_temporary.
6487 (struct in6addrinfo): Add index element.
6488 Declare __check_native.
6489 * inet/Makefile (aux): Add check_native.
6490 * sysdeps/unix/sysv/linux/check_native.c: New file.
6491 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6492 IFA_F_TEMPORARY. Pass back ifa_index.
6493 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6494 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
6495 call __check_native if necessary.
6496 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
6497 to sort addresses. Pass information about the results.
6498 * posix/tst-rfc3484.c: Adjust for addition of index field and change
6499 of rfc3484_sort interface.
6500 * posix/tst-rfc3484-2.c: Likewise.
6501
e458144c
UD
6502 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
6503 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6504 for _quicksort.
6505 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6506 (qsort_r): Renamed from qsort. Take additional parameter and pass it
6507 on as third parameter to compare function and _quicksort.
6508 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6509 to the compare function.
6510 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6511 * Versions.def: Add GLIBC_2.8 for libc.
6512
bd63f380
UD
6513 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6514 * posix/tst-rfc3484-2.c: Likewise.
6515
5742e960
UD
6516 * include/kernel-features.h: Moved to...
6517 * sysdeps/mach/hurd/kernel-features.h: ...here.
6518
a6ac7fdb
RM
65192007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6520
6521 * sysdeps/i386/i586/memcpy_chk.S: New file.
6522 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6523 * sysdeps/i386/i586/memset_chk.S: Likewise.
6524
6f3914d5
UD
65252007-11-12 Ulrich Drepper <drepper@redhat.com>
6526
6527 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6528 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6529 list of interfaces. Also store prefix length.
6530 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6531 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6532 prefix if source and destination address are in the same subnet.
6533 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6534 Always look for matching record in in6ai list.
6535 Correct source_addr_len value for IPv6->IPv4 converted records.
6536
78cf5f6a
RM
65372007-11-11 Roland McGrath <roland@frob.com>
6538
6539 * include/kernel-features.h: New file.
6540
7f745396
UD
65412007-11-10 Ulrich Drepper <drepper@redhat.com>
6542
01e7fdbb
UD
6543 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6544 complications for 64-bit platforms.
6545
7f745396
UD
6546 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6547 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6548 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6549 open64_2.
6550 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6551 entries.
6552 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6553 * sysdeps/wordsize-64/alphasort.c: New file.
6554 * sysdeps/wordsize-64/alphasort64.c: New file.
6555 * sysdeps/wordsize-64/fseeko.c: New file.
6556 * sysdeps/wordsize-64/fseeko64.c: New file.
6557 * sysdeps/wordsize-64/ftello.c: New file.
6558 * sysdeps/wordsize-64/ftello64.c: New file.
6559 * sysdeps/wordsize-64/ftw.c: New file.
6560 * sysdeps/wordsize-64/ftw64.c: New file.
6561 * sysdeps/wordsize-64/iofgetpos.c: New file.
6562 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6563 * sysdeps/wordsize-64/iofopen.c: New file.
6564 * sysdeps/wordsize-64/iofopen64.c: New file.
6565 * sysdeps/wordsize-64/iofsetpos.c: New file.
6566 * sysdeps/wordsize-64/iofsetpos64.c: New file.
6567 * sysdeps/wordsize-64/lockf.c: New file.
6568 * sysdeps/wordsize-64/lockf64.c: New file.
6569 * sysdeps/wordsize-64/mkostemp.c: New file.
6570 * sysdeps/wordsize-64/mkostemp64.c: New file.
6571 * sysdeps/wordsize-64/mkstemp.c: New file.
6572 * sysdeps/wordsize-64/mkstemp64.c: New file.
6573 * sysdeps/wordsize-64/scandir.c: New file.
6574 * sysdeps/wordsize-64/scandir64.c: New file.
6575 * sysdeps/wordsize-64/tmpfile.c: New file.
6576 * sysdeps/wordsize-64/tmpfile64.c: New file.
6577 * sysdeps/wordsize-64/versionsort.c: New file.
6578 * sysdeps/wordsize-64/versionsort64.c: New file.
6579 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6580 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6581 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6582 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6583 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6584 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6585 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6586 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6587 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6588 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6589 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6590 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6591
6592 * crypt/sha256-crypt.c: Fix a comment.
6593 * crypt/sha512-crypt.c: Likewise.
6594
f6ed654c
UD
65952007-11-07 H.J. Lu <hongjiu.lu@intel.com>
6596
6597 * sysdeps/x86_64/memset.S: Add sfence after movnti.
6598
f2a8406a
UD
65992007-11-07 Ulrich Drepper <drepper@redhat.com>
6600
6601 [BZ #5277]
6602 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6603 because output buffer is too small break, don't loop.
6604 * iconvdata/Makefile (tests): Add bug-iconv6.
6605 * iconvdata/bug-iconv6.c: New file.
6606
7fe4e0e8
UD
66072007-11-06 Ulrich Drepper <drepper@redhat.com>
6608
9ca230d6
UD
6609 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6610 with size_t type.
6611 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6612 size_t. Add casts where needed.
6613
7fe4e0e8
UD
6614 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6615 old headers, don't call avc_has_perm if we don't have the
6616 permission information.
6617
b92e3780
UD
66182007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
6619
6620 * elf/rtld.c (dl_main): Use the page size to find the map start.
6621
ffb1b882
UD
66222007-11-05 Ulrich Drepper <drepper@redhat.com>
6623
94a749f6
UD
6624 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6625 Patch by Szymon Siwek <sls@poczta.wp.pl>.
6626
ffb1b882
UD
6627 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6628 when the lookup call failed.
6629
6630 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6631 Add prune_cond and wakeup_time.
6632 (CACHE_PRUNE_INTERNAL): Define.
6633 Update declarations of prune_cache and setup_thread.
6634 * nscd/connections.c (dbs): Update initializers.
6635 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6636 (nscd_init): Default number of threads is now 4.
6637 (invalidate_cache): Take lock before calling prune_cache.
6638 (handle_request): If SELinux forbids the request, say so.
6639 (readylist_cond): Use static initializer.
6640 (nscd_run_prune): New function. Used only by pruning threads.
6641 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
6642 here.
6643 (fd_ready): Update nscd_run reference.
6644 (start_threads): No need to initialize readylist_cond.
6645 Start pruning threads separately.
6646 * nscd/nscd_setup_thread.c: Change return value type to int and always
6647 return 0.
6648 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6649 to int and return nonzero value if we can use the TID address hack.
6650 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6651 the database is later than the new entry's timeout, update the
6652 wakeup time and wake the cleanup thread.
6653 (prune_cache): Return seconds the next entry in the database is still
6654 valid. Remove locking for pruning here.
6655 * nscd/nscd.conf: Document default number of threads.
6656
4c48ef06
UD
66572007-10-31 Ulrich Drepper <drepper@redhat.com>
6658
41ff2a49
UD
6659 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6660 stack is properly aligned for the target function.
6661 Correct unwind info.
ffb1b882 6662
4c48ef06
UD
6663 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6664 when using auditing libraries.
6665
384ca551
UD
66662007-10-29 Ulrich Drepper <drepper@redhat.com>
6667
31e2791c
UD
6668 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6669 _nss_dns_getnetbyaddr2_r.
6670 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
6671 extra parameter to getanswer_r.
6672 (_nss_dns_getnetbyaddr_r): Now a wrapper around
6673 _nss_dns_getnetbyaddr2_r.
6674
384ca551
UD
6675 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6676 gethstbynm3_r.
6677 * nscd/gethstbynm2_r.c: Remove.
6678 * nscd/gethstbynm3_r.c: New file.
6679 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6680 __gethostbyaddr_r.
6681 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
6682 __gethostbyaddr_r compatibility wrapper.
6683 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
6684 determining timeout of entry.
6685 (lookup): Take new parameter and pass it to __gethostbyname3_r and
6686 __gethostbyaddr2_r.
6687 (addhstbyX): Pass reference to variable for TTL to lookup and
6688 cache_addhst.
6689 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6690 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6691 and __nss_next2. Remove __nss_services_lookup.
6692 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
6693 Add compat wrapper.
6694 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6695 __nss_next2.
6696 * nss/getXXent_r.c: Likewise.
6697 * nss/getnssent_r.c: Likewise.
6698 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
6699 does not exist in module, try the optional second name.
6700 (__nss_next2): New function.
6701 (__nss_next): Now wrapper around __nss_next2.
6702 * nss/nsswitch.h: Adjust __nss_lookup prototype.
6703 Declare __nss_next2.
6704 Adjust definition of db_lookup_function type.
6705 * nss/service-lookup.c: Define NO_COMPAT.
6706 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6707 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6708 * inet/ether_ntoh.c: Likewise.
6709 * sunrpc/netname.c: Likewise.
6710 * sunrpc/publickey.c: Likewise.
6711 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
6712 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6713 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6714 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6715 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6716
6717 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6718
5e37840c 6719 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 6720
88197030
UD
67212007-10-28 Ulrich Drepper <drepper@redhat.com>
6722
f160a450
UD
6723 [BZ #5204]
6724 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6725 * crypt/sha512c-test.c: Likewise.
6726
4c6b2202
UD
6727 [BZ #5225]
6728 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6729 to keep track of end of %[ format string element.
22c915ac
UD
6730 * stdio-common/Makefile (tests): Add bug20.
6731 * stdio-common/bug20.c: New file.
4c6b2202 6732
88197030
UD
6733 [BZ #5222]
6734 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6735 path elements in counting mode.
6736
05d69147
UD
67372007-10-27 Andreas Jaeger <aj@suse.de>
6738
94833f11
UD
6739 [BZ #5040]
6740 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6741
05d69147
UD
6742 [BZ #3112]
6743 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6744 (__cleanup): Free shared library when exiting.
6745 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6746 (__cleanup): Free shared library when exiting.
6747
e6b29af8
UD
67482006-04-14 H.J. Lu <hongjiu.lu@intel.com>
6749
6750 [BZ #2549]
6751 * math/libm-test.inc (check_float_internal): Support
6752 denormalized return.
6753
ad3371fb
UD
67542007-10-23 Andreas Jaeger <aj@suse.de>
6755
6756 [BZ #5208]
6757 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6758 __LONG_LONG_PAIR to handle little endian byte order.
6759 Suggested by abhishekrai@google.com
6760
666aa020
UD
67612007-10-27 Ulrich Drepper <drepper@redhat.com>
6762
6763 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6764
8ad343b3
UD
67652007-10-26 Ulrich Drepper <drepper@redhat.com>
6766
6767 * nscd/cache.c (prune_cache): Move test for modified file outside
6768 of locking.
6769
9251c568
AJ
67702007-10-21 Andreas Jaeger <aj@suse.de>
6771
6772 * manual/texinfo.tex: Update to latest version.
6773
6774 * manual/sysinfo.texi (System Parameters): Fix Formatting.
6775
6776 * manual/arith.texi (Status bit operations): Fix formatting.
6777
6778 * manual/errno.texi (Error Messages): Fix formatting.
6779
6780 * manual/sysinfo.texi (System Parameters): Fix formatting.
6781
6782 * manual/libc.texinfo: Update VERSION and UPDATED.
6783
260b2e06
RM
67842007-10-19 Roland McGrath <roland@redhat.com>
6785
6786 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6787
46ae8850
JJ
67882007-10-06 David S. Miller <davem@davemloft.net>
6789
6790 * configure.in: Add sparcv9v2 and sparc64v2.
6791 * scripts/config.sub: Likewise.
6792 * configure: Regenerate.
6793 * elf/elf.h (HWCAP_SPARC_N2): New.
6794 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6795 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6796 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6797 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6798 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6799 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6800 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6801
6fbfbd80
UD
68022007-10-18 Ulrich Drepper <drepper@redhat.com>
6803
6804 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6805 even if the poll result indicates there is data to read.
6806 Patch by Jeff Moyer <jmoyer@redhat.com>.
6807
39cfc9fa
RM
68082007-10-18 Roland McGrath <roland@redhat.com>
6809
6810 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 6811
39cfc9fa 68122007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
6813
6814 * version.h (VERSION): Set to 2.7.90.
6815
ed13ccf1
JJ
68162007-10-17 Jakub Jelinek <jakub@redhat.com>
6817
6818 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
6819 weak_alias.
6820
ee9fd869
RM
68212007-10-17 Roland McGrath <roland@frob.com>
6822
6823 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6824 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6825
1aa5e4d7
UD
68262007-10-17 Ulrich Drepper <drepper@redhat.com>
6827
50c9fbbf 6828 * version.h (VERSION): Bump to 2.7.
777bc4bf 6829 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 6830
58423c7d
UD
6831 [BZ #5186]
6832 * time/tzset.c (__tz_convert): Don't force testing for a change of
6833 TZ if not called from localtime. But then also see whether the
6834 file changed, in case __use_tzfile is set.
6835
1aa5e4d7
UD
6836 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6837 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6838 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6839 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6840 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6841 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6842 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6843 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6844
fc4837e5
UD
68452007-10-17 Jakub Jelinek <jakub@redhat.com>
6846
6847 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6848 and admin selects to be able to replace the gai.conf file, lock
6849 data structures around the qsort call.
6850
62eaf7c8
UD
68512007-10-17 Ulrich Drepper <drepper@redhat.com>
6852
406f28db
UD
6853 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6854 new memset.
ac1cb5da 6855 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
6856 too high for the improvements. Implement bzero unconditionally for
6857 use in libc.
ac1cb5da
UD
6858
68592007-10-17 Ulrich Drepper <drepper@redhat.com>
6860 Jakub Jelinek <jakub@redhat.com>
6861
62eaf7c8
UD
6862 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6863 even when time_t is 32-bit.
6864 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6865 timezone data read by __tzfile_default. Ensure __tzname[0] is
6866 always set after the search.
6867
6a649d25
UD
68682007-10-16 Ulrich Drepper <drepper@redhat.com>
6869
6870 * time/tzfile.c (__tzfile_read): Help the compiler recognize
6871 unreachable code on 32-bit machines.
6872
800d6f9e
UD
68732007-10-16 Jakub Jelinek <jakub@redhat.com>
6874
6875 [BZ #5184]
6876 * time/strftime_l.c: Include stdbool.h.
6877 (my_strftime): New wrapper, old function renamed to...
6878 (__strftime_internal): ... new function. Add tzset_called
6879 argument, pass it down to recursive calls, don't call tzset ()
6880 if already true, set to true after call to tzset ().
62eaf7c8 6881
69819d92
UD
68822007-10-16 Ulrich Drepper <drepper@redhat.com>
6883
6884 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6885 into account when copying TZ string.
6886
62eaf7c8
UD
68872007-10-16 Jakub Jelinek <jakub@redhat.com>
6888
6889 * time/tzfile.c (__tzfile_compute): For use_last case set i to
6890 num_transition rather than num_transitions - 1.
6891
0308ad66
JJ
68922007-10-16 Jakub Jelinek <jakub@redhat.com>
6893
8d137b60
JJ
6894 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6895 PIC indirect jump.
6896
0308ad66
JJ
6897 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6898 a local label rather than HIDDEN_JUMPTARGET.
6899
e2b393bc
UD
69002007-10-15 Ulrich Drepper <drepper@redhat.com>
6901
6902 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6903 (init_cacheinfo): Initialize it.
6904 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6905 Always define bzero.
6906 Remove non-glibc code.
6907 * sysdeps/x86_64/bzero.S: Make an empty file.
6908
69092007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6910
6911 * sysdeps/x86_64/cacheinfo.c
6912 (__x86_64_preferred_memory_instruction): New.
6913 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6914
6915 * sysdeps/x86_64/memset.S: Rewrite.
6916
0fbfcb7b
RM
69172007-10-15 Roland McGrath <roland@redhat.com>
6918
6919 * po/libc.pot: Regenerated.
6920
2884dad4
UD
69212007-10-15 Ulrich Drepper <drepper@redhat.com>
6922
e2b393bc 6923 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
6924 pointers.
6925
2884dad4
UD
6926 [BZ #3425]
6927 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6928 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6929 address record to T_A/T_AAAA requests.
6930
89dc9d4c
UD
69312007-10-14 Ulrich Drepper <drepper@redhat.com>
6932
8d97ac13
UD
6933 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6934
1b6aa63f
UD
6935 * posix/glob.c: Add some branch prediction throughout.
6936
895a08c0
UD
6937 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6938 read from nscd.
6939
6f55ed88
UD
6940 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6941 service_order.
8d62c8ab
UD
6942 (rfc3484_sort): Make sure that even if qsort doesn't support
6943 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 6944 (getaddrinfo): Initialize service_order.
a94673e6
UD
6945 * posix/tst-rfc3484.c (do_test): Adjust for addition of
6946 service_order field to sorting structure.
dfcf64ce 6947 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 6948
fa76dde2
UD
6949 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6950 * time/tzset.c (tzset_internal): Break TZ string parsing out into
6951 __tzset_parse_tz and updating of daylight, timezone, tzname into
6952 update_vars.
6953 (__tz_compute): Renamed from tz_compute. Take additional parameters.
6954 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6955 happens in __tz_compute.
6956 * time/tzfile.c (__tzfile_read): Also read TZ string.
6957 (find_transition): Fold into __tzfile_compute.
6958 (__tzfile_compute): For times beyond the last transition try to
6959 use the TZ string.
6960 * timezone/tst-timezone.c: Information in daylight and tzname does
6961 change for Asia/Tokyo timezone with more concrete information.
6962 Remove the test.
6963
6964 * include/stdio.h: Add libc_hidden_proto for ftello.
6965 * libio/ftello.c: Add libc_hidden_def.
6966
89dc9d4c
UD
6967 [BZ #1140]
6968 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6969 on the specified time and not the last entries in the file. Move
6970 code to determine tzname[] to...
6971 (find_transition): ...here. Add ugly guess for times before the
6972 first transition.
6973
f7140274
UD
69742007-10-13 Ulrich Drepper <drepper@redhat.com>
6975
cfca0aa3
UD
6976 [BZ #3195]
6977 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6978 no entry.
6979 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6980 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6981 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6982 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6983
43d3e6bd
UD
6984 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6985 read mechanism when there are no group members and avoid no-op
6986 read syscall in this case.
6987
f7140274
UD
6988 [BZ #3242]
6989 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6990 (__readall): If reading failed due to EAGAIN error wait a bit
6991 and possibly try again.
6992 (__readvall): Likewise.
6993
656f02ce
UD
69942007-10-13 Bruno Haible <bruno@clisp.org>
6995
6996 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6997 when we cannot recode the message.
6998
0ea49677
UD
69992007-10-13 Ulrich Drepper <drepper@redhat.com>
7000
7001 [BZ #4359]
7002 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
7003 write-only streams. For read/write streams, check whether we
7004 performed a read operation already.
7e39d802
UD
7005 * libio/Makefile (tests): Add tst-ext2.
7006 * libio/tst-ext2.c: New file.
0ea49677 7007
78a9b2dc
UD
70082007-10-12 Ulrich Drepper <drepper@redhat.com>
7009
fab1a490
UD
7010 * locale/programs/repertoire.c (repertoire_read): Always free
7011 memory for repertoire file name [Coverity CID 270].
7012
78a9b2dc
UD
7013 * elf/cache.c (save_aux_cache): Free memory allocated for
7014 temporary file name [Coverity CID 267].
7015
29d49a1a
JJ
70162007-10-12 Jakub Jelinek <jakub@redhat.com>
7017
7018 * misc/Makefile (headers): Add bits/error.h.
7019
d074d36d
UD
70202007-10-12 Ulrich Drepper <drepper@redhat.com>
7021
b7d1c5fa
UD
7022 * posix/fnmatch_loop.c: Take rule index returned as part of
7023 findidx return value into account when accessing weights.
7024 * posix/regcomp.c: Likewise.
7025 * posix/regexec.c: Likewise.
7026
d074d36d
UD
7027 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7028 (skip_to): Fix problems with parameter of elifdef/elifndef.
7029
26a51060
UD
70302007-10-11 Ulrich Drepper <drepper@redhat.com>
7031
7032 * iconv/gconv_simple.c: Add some branch prediction.
7033
6dd3748b
UD
70342007-10-12 Jakub Jelinek <jakub@redhat.com>
7035
7036 * locale/programs/ld-collate.c (collate_read): If ignore_content
7037 and nowtok is tok_define, eat any tok_eol tokens.
7038
d0b5557d
JJ
70392007-10-11 Jakub Jelinek <jakub@redhat.com>
7040
7041 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7042 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7043
7044 * inet/netinet/in.h: Don't include bits/socket.h.
7045 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7046 macro.
7047 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7048
3a054d7a
UD
70492007-10-10 Ulrich Drepper <drepper@redhat.com>
7050
7051 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7052 and tok_elifndef.
7053 * locale/programs/locfile-kw.gperf: Likewise.
7054 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7055
c06b7169
UD
70562007-10-10 Jakub Jelinek <jakub@redhat.com>
7057
7058 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7059 (__find_specwc): Change into __extern_always_inline function.
7060 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7061 (__parse_one_specmb): Remove ps argument.
7062 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7063 Adjust __find_specmb and __parse_one_specmb callers.
7064 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7065 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7066 Removed.
7067 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7068 caller.
7069
5a01ab7b
UD
70702007-10-09 Ulrich Drepper <drepper@redhat.com>
7071
7072 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7073 with some Pentium Ds.
7074
e3f8e049
UD
70752007-10-08 Ulrich Drepper <drepper@redhat.com>
7076
7077 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7078 __read not read.
7079 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7080 __write not write.
7081
a1a363d2
UD
70822007-10-07 Ulrich Drepper <drepper@redhat.com>
7083
a1160714
UD
7084 [BZ #181]
7085 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
7086 * locale/programs/ld-time.c (time_finish): Default for
7087 first_workday is Monday.
a1160714 7088
bb27a6eb
UD
7089 [BZ #2633]
7090 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7091
c8d48fae
UD
7092 [BZ #5103]
7093 * posix/glob.c (glob): Recognize patterns starting \/.
7094 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7095 (main): Add test for pattern starting \/.
7096
a1a363d2
UD
7097 * misc/error.h: Use __const instead of const.
7098 * misc/bits/error.h: Likewise.
7099
71002007-10-07 Andreas Jaeger <aj@suse.de>
7101
7102 * include/bits/error.h: New file.
7103
7104 * misc/bits/error.h (error_at_line): Fix prototype.
7105
71894681
UD
71062007-10-06 Ulrich Drepper <drepper@redhat.com>
7107
a6fa5328
UD
7108 [BZ #3924]
7109 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7110 more little bugs in creating the stack frame when pltexit has to
7111 be called.
7112
8c7661bc 7113 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 7114 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 7115
c039eedd
UD
7116 [BZ #4407]
7117 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7118 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7119 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7120 * math/libm-test.inc: Add test for this case.
7121
71894681
UD
7122 [BZ #5010]
7123 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7124 (svc_register): Initialize sc_mapped. Set to TRUE if call to
7125 map service succeeded.
7126 (svc_is_mapped): New function.
7127 (svc_unregister): Use it before trying to unmap service.
7128
34c2c092
UD
71292007-10-05 Ulrich Drepper <drepper@redhat.com>
7130
d10737e4
UD
7131 * timezone/zic.c: Update from tzcode2007h.
7132
7133 [BZ #5063]
7134 * timezone/africa: Update from tzdata2007h.
7135 * timezone/antarctica: Likewise.
7136 * timezone/asia: Likewise.
7137 * timezone/australasia: Likewise.
7138 * timezone/europe: Likewise.
7139 * timezone/leapseconds: Likewise.
7140 * timezone/northamerica: Likewise.
7141 * timezone/southamerica: Likewise.
7142 * timzeone/zone.tab: Likewise.
7143
0304f168
UD
7144 [BZ #5104]
7145 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7146
a83b5649
UD
7147 [BZ #5113]
7148 * string/bits/string2.h (__strdup): Cast parameters to calloc to
7149 avoid warning with -Wconversion.
7150 (__strndup): Likewise.
c039eedd 7151 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 7152
3e6ce4d7
UD
7153 [BZ #5112]
7154 * nscd/connections.c (restart): Don't resync if database is
7155 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7156
8e351378
UD
7157 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7158 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
7159
7160 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7161 evetnfd_read, eventfd_write.
7162 * sysdeps/unix/sysv/linux/eventfd.c: New file.
7163 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7164 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7165 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 7166 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
7167 eventfd_write for GLIBC_2.7.
7168
34c2c092
UD
7169 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7170 * sysdeps/unix/sysv/linux/signalfd.c: New file.
7171 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7172 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7173
6789aaaa 71742007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
7175
7176 * stdlib/msort.c: Include stdint.h.
7177 (struct msort_param): New type.
7178 (msort_with_tmp): Use struct msort_param pointer for unchanging
7179 parameters. Add optimized handling for several common sizes
7180 and indirect sorting mode.
7181 (qsort): Adjust msort_with_tmp callers. For big S use indirect
7182 sorting.
7183 Suggested by Belazougui Djamel .
7184
7185 * stdlib/Makefile (tests): Add tst-qsort2.
7186 * stdlib/tst-qsort2.c: New test.
7187
b80bfc8b
UD
71882007-10-04 Ulrich Drepper <drepper@redhat.com>
7189
174420d2
UD
7190 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7191 for dup2 in case another thread races with the current one. Retry
7192 in this case.
7193
b80bfc8b
UD
7194 * misc/error.h: Remove support for use outside of libc. We have to
7195 include <features.h> now. Include <bits/error.h> if possible.
7196 * misc/bits/error.h: New file.
7197
6789aaaa 71982007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 7199
e5dd2178
UD
7200 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7201 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7202 __extern_always_inline functions unconditionally, drop macros.
7203
ac97dec1
UD
7204 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7205 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7206 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7207
ee868c89
UD
7208 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7209 add __artificial__ attribute.
7210
80e069e0
UD
72112007-10-02 Ulrich Drepper <drepper@redhat.com>
7212
6e682cf5
UD
7213 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7214 backward to forward direction.
7215
90241a20
UD
7216 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7217
80e069e0
UD
7218 [BZ #645]
7219 * locale/programs/ld-collate.c (collate_finish): Compare against last
7220 used section which is known to have rules defined.
7221 (collate_read): After order_start, correctly record order of sections
7222 and queue sections up.
7223
035ef8d7
UD
72242007-10-01 Ulrich Drepper <drepper@redhat.com>
7225
95bddc0c
UD
7226 [BZ #5071]
7227 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7228 the same number of pages.
7229 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7230
c8caf089
UD
7231 * locale/programs/ld-collate.c (collate_read): After initial copy
7232 statement, continue in state 0.
7233
035ef8d7
UD
7234 * include/stdio_ext.h (__fsetlocking): Define as macro.
7235
592a95ee
UD
72362007-09-30 Ulrich Drepper <drepper@redhat.com>
7237
56ebeb41
UD
7238 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7239 of section order.
7240
592a95ee
UD
7241 * po/pt_BR.po: Fix typo.
7242
6c522e21
UD
72432007-09-29 Ulrich Drepper <drepper@redhat.com>
7244
8ad5c3cd
UD
7245 * iconvdata/Makefile (modules): Add ISO8859-9E.
7246 (distribute): Add iso8859-9e.c.
7247 (gen-8bit-gap-modules): Add iso8859-9e.
7248 * iconvdata/iso8859-9e.c: New file.
7249 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7250 * iconvdata/TESTS: Likewise.
7251 * iconvdata/tst-tables.sh: Likewise.
7252
7253 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7254
6c522e21
UD
7255 * locale/iso-639.def: Add several new entries.
7256
385b4cf4
UD
72572007-09-24 Jakub Jelinek <jakub@redhat.com>
7258
7259 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7260 void * pointers instead of struct link_map **.
7261 (_dl_scope_free): Change argument type to void *.
7262 * include/link.h (struct link_map): Change type of l_reldeps
7263 to struct link_map_reldeps, move l_reldepsact into that
7264 struct too.
7265 * elf/dl-deps.c: Include atomic.h.
7266 (_dl_map_object_deps): Only change l->l_initfini when it is
7267 fully populated, use _dl_scope_free for freeing it. Optimize
7268 removal of libs from reldeps by using l_reserved flag, when
7269 some removal is needed, allocate a new list instead of
7270 reallocating and free the old with _dl_scope_free. Adjust
7271 for l_reldeps and l_reldepsact changes.
7272 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
7273 searching in l_initfini and l_reldeps without holding dl_load_lock.
7274 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7275 l_reldepsact changes.
7276 * elf/dl-close.c (_dl_close_worker): Likewise.
7277 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7278
90bf831b
UD
72792007-09-28 Ulrich Drepper <drepper@redhat.com>
7280
7281 * iconvdata/Makefile (modules): Add KOI8-RU.
7282 (distribute): Add koi8-ru.c.
7283 (gen-8bit-gap-modules): Add koi8-ru.
7284 * iconvdata/koi8-ru.c: New file.
7285 * iconvdata/gconv-modules: Add entries for KOI8-RU.
7286 * iconvdata/TESTS: Likewise.
7287 * iconvdata/tst-tables.sh: Likewise.
7288
7289 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7290
d6cd6bf4
UD
72912007-09-26 Jakub Jelinek <jakub@redhat.com>
7292
7293 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7294 with __warning__/__error__ attributes.
7295 (__warnattr): Define.
7296 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7297 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7298 __warnattr.
7299 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7300 of __*_chk if compile time detectable overflow is found.
7301 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7302 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7303 with __warnattr.
7304 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7305 instead of __*_chk if compile time detectable overflow is found.
7306 (__gets_alias): Rename to...
7307 (__gets_warn): ... this. Add __warnattr.
7308 (gets): Call __gets_warn instead of __gets_alias.
7309 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7310 aliases with __warnattr.
7311 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7312 time detectable overflow is found.
7313 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7314 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7315 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7316 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7317 __getdomainname_chk_warn): New aliases with __warnattr.
7318 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7319 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7320 __*_chk_warn instead of __*_chk if compile time detectable overflow
7321 is found.
7322 (__getgroups_chk): Rename argument to __listlen from listlen.
7323 (__getwd_alias): Rename to...
7324 (__getwd_warn): ... this. Add __warnattr.
7325 (getwd): Call __getwd_warn instead of __getwd_alias.
7326 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7327 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7328 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7329 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7330 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7331 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7332 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7333 compile time detectable overflow is found.
7334 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7335 to use __*_chk or not.
7336 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7337 in comparisons which function should be called and in __*_chk*
7338 arguments. Call __*_chk_warn instead of __*_chk if compile time
7339 detectable overflow is found.
7340 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7341 __*_chk argument.
7342 * debug/tst-chk1.c (do_test): Add a few more tests.
7343
408cfca0
UD
73442007-09-24 Ulrich Drepper <drepper@redhat.com>
7345
7346 [BZ #5058]
7347 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7348 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7349 (_nl_unload_domain): Finalize conversions_lock.
7350 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7351 handling table of known conversions.
7352
e6eec9ce
JJ
73532007-09-24 Jakub Jelinek <jakub@redhat.com>
7354
7355 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7356 close_not_cancel_no_status instead of close.
7357
a532a41d
UD
73582007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7359
682268ef 7360 [BZ #5028]
408cfca0 7361 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
7362 nrules != 0 for multibyte chars.
7363
dec9ed9e
UD
73642007-09-23 Ulrich Drepper <drepper@redhat.com>
7365
91633816
UD
7366 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7367 Provide better error message in case the type is unknown.
7368
9cc198f6
UD
7369 [BZ #4963]
7370 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7371 * string/stratcliff.c: Make usable to test wide char functions.
7372 * wcsmbs/wcsatcliff.c: New file.
7373 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7374
27f3d446
UD
7375 [BZ #4972]
7376 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7377 (distribute): Add mac-centraleurope.c.
7378 (gen-8bit-gap-modules): Add mac-centraleurope.
7379 * iconvdata/mac-centraleurope.c: New file.
7380 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7381 * iconvdata/TESTS: Likewise.
7382 * iconvdata/tst-tables.sh: Likewise.
7383
dec9ed9e
UD
7384 [BZ #5043]
7385 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7386
0435403c
UD
73872007-09-21 Ulrich Drepper <drepper@redhat.com>
7388
7389 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7390 from __x86_64_core_cache_size_half.
7391 (init_cacheinfo): Compute shared cache size for AMD processors with
7392 shared L3 correctly.
7393 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7394 name change.
7395 Patch in large parts by Evandro Menezes.
7396
c3266dc0
UD
73972007-09-19 Ulrich Drepper <drepper@redhat.com>
7398
715899d1
UD
7399 * elf/dl-lookup.c (add_dependency): Handle failing memory
7400 allocation for dependency list. Remove unnecessary check.
7401
e1db0493
UD
7402 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7403 open/close when determining source addresses.
7404
c3266dc0
UD
7405 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7406 sha512-crypt, and sha512.
7407 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7408 (distribute): Add sha256.h and sha512.h.
7409 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7410 and call the appropriate code.
7411 * crypt/sha256-crypt.c: New file.
7412 * crypt/sha256.c: New file.
7413 * crypt/sha256.h: New file.
7414 * crypt/sha256c-test.c: New file.
7415 * crypt/sha256test.c: New file.
7416 * crypt/sha512-crypt.c: New file.
7417 * crypt/sha512.c: New file.
7418 * crypt/sha512.h: New file.
7419 * crypt/sha512c-test.c: New file.
7420 * crypt/sha512test.c: New file.
7421
ddf51ecb
JJ
74222007-09-19 Jakub Jelinek <jakub@redhat.com>
7423
7424 * misc/bits/syslog.h (syslog): Remove extraneous argument from
7425 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7426 __syslog_chk.
7427
b90395e6
UD
74282007-09-18 Jakub Jelinek <jakub@redhat.com>
7429
76c0bea7
JJ
7430 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7431 %as in fscanf format strings.
7432
00680568
JJ
7433 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7434 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
7435 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7436 Likewise.
7437 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7438 Likewise.
00680568 7439
b90395e6
UD
7440 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7441 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7442 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7443 * elf/dl-sym.c (do_sym): Likewise.
7444 * include/link.h (struct link_map): Add l_serial field.
7445 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7446 * elf/dl-lookup.c (add_dependency): Add flags argument.
7447 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7448 flags, use THREAD_GSCOPE_RESET_FLAG before and
7449 THREAD_GSCOPE_SET_FLAG after
7450 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7451 Don't dereference map until it has been found on some list.
7452 If map->l_serial changed, return -1.
7453
874aa523
UD
74542007-09-17 Jakub Jelinek <jakub@redhat.com>
7455
7456 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7457 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7458 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7459 libc_hidden_proto.
7460 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7461 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7462 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7463 add libc_hidden_proto.
7464 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7465 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7466 conformance requested.
7467 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7468 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7469 conformance requested.
7470 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7471 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7472 conformance requested.
7473 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7474 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7475 ISO C99 or POSIX conformance requested.
7476 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7477 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7478 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7479 and __isoc99_vsscanf@@GLIBC_2.7.
7480 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7481 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7482 (tests): Add scanf14.
7483 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7484 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7485 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7486 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7487 CFLAGS-isoc99_scanf.c): Add $(exceptions).
7488 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7489 from using internal headers.
7490 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7491 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7492 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7493 and __isoc99_vswscanf@@GLIBC_2.7.
7494 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7495 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7496 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7497 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7498 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7499 * stdio-common/isoc99_scanf.c: New file.
7500 * stdio-common/isoc99_vsscanf.c: New file.
7501 * stdio-common/isoc99_vscanf.c: New file.
7502 * stdio-common/isoc99_vfscanf.c: New file.
7503 * stdio-common/isoc99_fscanf.c: New file.
7504 * stdio-common/isoc99_sscanf.c: New file.
7505 * wcsmbs/isoc99_fwscanf.c: New file.
7506 * wcsmbs/isoc99_vswscanf.c: New file.
7507 * wcsmbs/isoc99_swscanf.c: New file.
7508 * wcsmbs/isoc99_wscanf.c: New file.
7509 * wcsmbs/isoc99_vwscanf.c: New file.
7510 * wcsmbs/isoc99_vfwscanf.c: New file.
7511 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7512 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7513 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7514 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7515 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7516 * stdio-common/scanf14.c: New test.
7517 * stdio-common/scanf15.c: New test.
7518 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7519 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7520 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7521 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7522 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7523 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7524 __nldbl___isoc99_scanf@@GLIBC_2.7,
7525 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7526 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7527 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7528 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7529 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7530 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7531 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7532 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7533 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7534 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7535 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7536 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7537 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7538 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7539 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7540 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7541 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7542 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7543 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7544 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7545 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7546 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7547 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7548 functions.
7549 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7550 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7551 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7552 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7553 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7554 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7555 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7556 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7557 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7558 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7559 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7560 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7561
7562 * stdio-common/Makefile (tests): Add scanf13.
7563 (scanf13-ENV): New.
7564 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7565 m modifier followed by l.
7566 (STRING_ARG): Add width argument.
7567 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7568 <case L_('C')>: Handle %mlc and %mC.
7569 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7570 arguments.
7571 * stdio-common/scanf13.c: New test.
7572
7573 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7574 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7575
883f7943
UD
75762007-09-18 Ulrich Drepper <drepper@redhat.com>
7577
7578 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 7579 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
7580 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7581 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7582 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7583 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7584 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7585 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7586 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7587 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7588 as cancellation points.
7589
3524efe0
UD
75902003-11-01 Daniel Jacobowitz <dan@debian.org>
7591
7592 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7593 parse more than three parts of the version number.
7594
267c54dc
UD
75952007-09-15 Ulrich Drepper <drepper@redhat.com>
7596
7597 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7598 modifier. Patch by Jakub Jelinek.
7599
5e17d6b7
UD
76002007-08-26 Jakub Jelinek <jakub@redhat.com>
7601
7602 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7603 call_fallocate in misc subdir.
7604 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7605 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7606 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7607 instead of __fallocate64.
7608 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7609
3a50811c
UD
76102007-09-15 Jakub Jelinek <jakub@redhat.com>
7611
7612 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7613 * rt/Makefile (headers): Add bits/mqueue2.h.
7614 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7615 optimizing with GCC and __va_arg_pack_len is defined.
7616 * rt/bits/mqueue2.h: New file.
7617 * rt/mq_open.c (__mq_open): Renamed from mq_open.
7618 (mq_open): New strong_alias.
7619 (__mq_open_2): New function.
7620 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7621 (mq_open): New strong_alias.
7622 (__mq_open_2): New function.
7623 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7624 * Versions.def (librt): Add GLIBC_2.7 version.
7625 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7626 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7627
7628 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7629 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7630 is defined rather than when not C++.
7631 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7632 __openat64_alias): New redirects.
7633 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7634 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7635 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7636 (open, open64, openat, openat64): Rewrite as __extern_always_inline
7637 functions instead of function-like macros.
7638
9bdfff60
UD
76392007-09-14 H.J. Lu <hongjiu.lu@intel.com>
7640
7641 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7642 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7643 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7644
ab905672
UD
76452007-09-15 Mike Frysinger <vapier@gentoo.org>
7646
7647 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7648 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7649
9bd68902
RM
76502007-09-14 Mike Frysinger <vapier@gentoo.org>
7651
7652 * inet/tst-network.c: Increment ERRORS for failing tests.
7653
de1c3ebb
UD
76542007-09-07 Jakub Jelinek <jakub@redhat.com>
7655
7656 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7657 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7658 implement as __extern_always_inline function.
7659 (vsyslog): Define as __extern_always_inline function unconditionally.
7660 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7661 When __va_arg_pack is defined, implement as __extern_always_inline
7662 functions.
7663 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7664 __extern_always_inline functions unconditionally.
7665 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7666 bits/stdio2.h will be included.
7667 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7668 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7669 implement as __extern_always_inline functions.
7670 (vswprintf, vwprintf, vfwprintf): Define as
7671 __extern_always_inline functions unconditionally.
7672 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7673
76742007-09-03 Jakub Jelinek <jakub@redhat.com>
7675
7676 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7677 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7678 attribute.
7679 * include/features.h (__USE_EXTERN_INLINES): Define only when
7680 __extern_inline is defined.
7681 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7682 is defined instead of when not __cplusplus.
7683 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7684 is defined instead of when not __cplusplus.
7685 * socket/sys/socket.h: Include bits/socket2.h when
7686 __extern_always_inline is defined instead of when not __cplusplus.
7687 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7688 is defined instead of when not __cplusplus.
7689 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7690 is defined instead of when not __cplusplus.
7691 * string/string.h: Include bits/string3.h when __extern_always_inline
7692 is defined instead of when not __cplusplus.
7693 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7694 is defined instead of when not __cplusplus.
7695 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7696 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7697 is not defined.
7698 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7699 defined __extern_always_inline instead of !defined __cplusplus.
7700 * libio/bits/stdio-ldbl.h: Likewise.
7701 * wcsmbs/bits/wchar-ldbl.h: Likewise.
7702 * misc/bits/syslog.h (syslog): Don't define for C++.
7703 (vsyslog): Use __extern_always_inline function for C++ instead of
7704 a macro.
7705 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7706 whenever that macro is defined.
7707 (vprintf): Don't provide the inline for C++.
7708 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7709 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7710 define the macros for C++.
7711 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7712 __extern_always_inline functions for C++.
7713 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7714 stat64, lstat64, fstat64, fstatat64): Don't define if not
7715 __USE_EXTERN_INLINES.
7716 * wcsmbs/bits/wchar2.h: Fix #error message.
7717 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7718 (vswprintf, vwprintf, vfwprintf): Define using
7719 __extern_always_inline functions for C++.
7720 * string/bits/string3.h: Don't #undef macros if __cplusplus.
7721 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7722 strncpy, strcat, strncat): Define as __extern_always_inline
7723 functions instead of macros for C++.
7724 * math/bits/cmathcalls.h: Guard __extern_inline routines with
7725 defined __extern_inline.
7726 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7727 to __extern_inline whenever that macro is defined.
7728 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7729 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7730 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7731 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7732 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7733 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7734 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7735 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7736 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7737 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7738 prototypes. Only provide __extern_inline routines if
7739 __USE_EXTERN_INLINES.
7740 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7741 tests.
7742 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7743 For now avoid some *printf tests in C++. Skip all testing
7744 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7745 is not.
7746 * debug/tst-chk4.cc: New file.
7747 * debug/tst-chk5.cc: New file.
7748 * debug/tst-chk6.cc: New file.
7749 * debug/tst-lfschk4.cc: New file.
7750 * debug/tst-lfschk5.cc: New file.
7751 * debug/tst-lfschk6.cc: New file.
7752 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7753 prototypes in C++.
7754 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7755 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7756 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7757
b53eef9c
UD
77582007-09-13 Ulrich Drepper <drepper@redhat.com>
7759
7760 * po/cs.po: Update from translation team.
7761
af385590
RM
77622007-09-11 Roland McGrath <roland@redhat.com>
7763
7764 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7765 compiling.
7766
af2f25a1
RM
77672007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7768
7769 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7770
94733ae0
RM
77712007-09-05 Roland McGrath <roland@redhat.com>
7772
7773 * manual/signal.texi (Signaling Another Process): Typo fix.
7774 From Karl Berry <karl@freefriends.org>.
7775
de4d8563
UD
77762007-08-29 Ulrich Drepper <drepper@redhat.com>
7777
7778 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7779 zero if not defined.
7780 (make_request): Recognize optimistic addresses and treat them like
7781 deprecated addresses.
7782 Reported by Neil Horman <nhorman@redhat.com>.
7783
0adfcc05
UD
77842007-08-28 Ulrich Drepper <drepper@redhat.com>
7785
f3c54060
UD
7786 * nscd/connections.c (send_ro_fd): Also transfer file size.
7787 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7788 file size don't call fstat.
7789
0adfcc05
UD
7790 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7791 ahead and map the file. This should always be correct and we can
7792 catch problems later.
7793
3586b2b6
UD
77942007-08-28 Jakub Jelinek <jakub@redhat.com>
7795
7796 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7797 prototypes.
7798 (__fread_alias, __fread_unlocked_alias): New aliases.
7799 (fread): New extern inline.
7800 (fread_unlocked): Likewise. Undef macro before definition of
7801 the inline function.
7802 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7803 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7804 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7805 and __fread_unlocked_chk@@GLIBC_2.7.
7806 * debug/fread_chk.c: New file.
7807 * debug/fread_u_chk.c: New file.
7808 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7809
3704aa0b
RM
78102007-08-27 Jakub Jelinek <jakub@redhat.com>
7811
7812 * sysdeps/unix/sysv/linux/syscalls.list
7813 (personality): Change caller to EXTRA.
7814
80e7d6a6
UD
78152007-08-25 Ulrich Drepper <drepper@redhat.com>
7816
278bfa00
UD
7817 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7818 to keep gcc quiet.
7819 * iconvdata/iso-2022-cn.c (BODY): Likewise.
7820
a45d733c
UD
7821 * locale/programs/ld-collate.c (collate_output): Avoid warning if
7822 NDEBUG is defined.
7823
5dfeae0e
UD
7824 * Makerules: Use -p option with mkdir.
7825
8f1fe057
UD
7826 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7827 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
7828 (_xdr_directory_obj): Likewise.
7829 (xdr_entry_obj): Likewise.
7830 (xdr_group_obj): Likewise.
7831 (xdr_link_obj): Likewise.
7832 (xdr_table_obj): Likewise.
7833 (_xdr_nis_result): Likewise.
7834 (_xdr_ns_request): Likewise.
7835 (_xdr_ib_request): Likewise.
7836 (_xdr_nis_taglist): Likewise.
7837 (xdr_cback_data): Likewise.
8f1fe057 7838 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
7839 (xdr_ypresp_maplist): Likewise.
7840
01339a67
UD
7841 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7842
3fa10468
UD
7843 * posix/regex_internal.h: Prevent some declarations and definitions
7844 to be seen when used in tests.
7845
ec1e04de
UD
7846 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7847 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7848
7a344d1d
UD
7849 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7850
f8f6ff5d
UD
7851 * config.make.in (datarootdir): Add to shut up configure.
7852
76fca9f1
UD
7853 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7854 associativity for fully-associative caches.
7855
80e7d6a6
UD
7856 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7857 requests. Fill on more associativity values for L2.
7858 Patch mostly by Evandro Menezes.
7859
cb5ba304
UD
78602007-08-24 Ulrich Drepper <drepper@redhat.com>
7861
d250df8c
UD
7862 * sysdeps/unix/sysv/linux/x86_64/init-first.c
7863 (_libc_vdso_platform_setup): Avoid using exported variable by using
7864 alias.
7865
88f61aaf
UD
7866 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7867
cb5ba304 7868 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 7869 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
7870 defined.
7871
62e1b1f5
UD
78722007-08-23 Ulrich Drepper <drepper@redhat.com>
7873
44b2e581
UD
7874 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7875 align stack for call if pltexit is to be used.
7876
73e3ff07
UD
7877 [BZ #3924]
7878 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7879 align for function call in case pltexit has to be called later.
7880
62e1b1f5
UD
7881 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7882 implicit atomic operation when storing function pointer.
7883 (_dl_runtime_profile): Likewise.
7884
0008163a
UD
78852007-08-17 Jakub Jelinek <jakub@redhat.com>
7886
7887 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7888 NIS_NOTFOUND.
7889
55ea8790
UD
78902007-08-21 Ulrich Drepper <drepper@redhat.com>
7891
2e0e1a05
UD
7892 [BZ #4566]
7893 * string/strtok.c: Fix typo in comment.
7894
682e4437
UD
7895 [BZ #4582]
7896 * debug/segfault.c: Fix typos in comments.
7897
7d55c9eb
UD
7898 [BZ #4588]
7899 * stdio-common/tempnam.c: Fix comment, it is not checked that
7900 TMPDIR points to a writable directory.
7901
0f8f993c
UD
7902 [BZ #4726]
7903 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7904 memory allocated for the name server address.
7905
1465dd0f
UD
7906 [BZ #4946]
7907 * nscd/connections.c (handle_request): Using sendfile always
7908 requires that mmap is used for the database.
7909 Patch by Petr Baudis <pasky@suse.cz>.
7910
c44d3bdf
UD
7911 [BZ #4905]
7912 * nscd/hstcache.c (cache_addhst): When reloading an entry which
7913 suddenly has two or more addresses, ignore it and remove the old
7914 entry.
7915
1ce7d80d
UD
7916 [BZ #4814]
7917 * resolv/res_hconf.c: Prepare for compiling outside libc.
7918 * nscd/res_hconf.c: New file.
7919 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
7920 the new file.
7921 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7922 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7923
a30d41c1
UD
7924 * nscd/hstcache.c (cache_addhst): Minimal optimization.
7925
45dc3ad7
UD
7926 [BZ #4925]
7927 * debug/pcprofiledump.c: Turn on internationalization by calling
7928 setlocale. Patch mostly by Benno Schulenberg.
7929
55ea8790
UD
7930 [BZ #4936]
7931 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7932 the state.
7933 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7934 * iconvdata/bug-iconv5.c: New file.
7935
0b82ff74
UD
79362007-08-04 Carlos O'Donell <carlos@systemhalted.org>
7937
55ea8790 7938 [BZ #4896]
0b82ff74
UD
7939 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7940 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7941 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7942 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7943 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7944 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7945 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7946 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7947
ee16a55a
UD
79482007-08-21 Ulrich Drepper <drepper@redhat.com>
7949
7950 [BZ #4937]
7951 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7952 lookup loop. Suggested by John Reiser.
7953
b211fe0f
JJ
79542007-08-21 Jakub Jelinek <jakub@redhat.com>
7955
7956 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7957
fb84593c
UD
79582007-08-20 Ulrich Drepper <drepper@redhat.com>
7959
7960 * csu/libc-start.c: Don't handle VDSO_SETUP here.
7961 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7962 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7963 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
7964 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7965 to...
7966 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7967
b83fb35c
UD
79682007-08-18 Ulrich Drepper <drepper@redhat.com>
7969
7970 * po/nl.po: Update from translation team.
7971
20806a70
AJ
79722007-08-16 Andreas Jaeger <aj@suse.de>
7973
7974 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 7975 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 7976
42282d57
JJ
79772007-08-17 Jakub Jelinek <jakub@redhat.com>
7978
7979 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7980
8a501135
JJ
79812007-08-16 Jakub Jelinek <jakub@redhat.com>
7982
cb84d1e4
JJ
7983 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7984 to check for undefined symbols.
7985
91ddd9c4
JJ
7986 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7987 If the syscall fails, set errno to the actual returned error number
7988 rather than EINVAL.
7989 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7990 arguments are incorrect, set errno to EINVAL, if the syscall
7991 fails, set errno to the actual returned error number.
7992
18915760
JJ
7993 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7994 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7995
8a501135
JJ
7996 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7997 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7998 file.
7999 (ASI_PNF, ASI_BLK_P): Don't define.
8000 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8001 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8002 file.
8003 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8004 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8005 file.
8006
e4720b0e
JJ
80072007-08-15 Jakub Jelinek <jakub@redhat.com>
8008
8009 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8010 FE_UNDERFLOW on Niagara CPUs.
8011
8012 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8013 exceptions.
8014
702a9414
JJ
80152007-08-14 Jakub Jelinek <jakub@redhat.com>
8016
467d1345
JJ
8017 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8018 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8019 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8020 flush should be used or not inside of the function.
8021 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8022
8023 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8024 __thread_start): Use HIDDEN_JUMPTARGET.
8025 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8026 __thread_start): Likewise.
8027 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8028
702a9414
JJ
8029 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8030 Add libc_hidden_proto.
8031 (STRTOF): Add libc_hidden_proto.
8032 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8033 (strtold_l, wcstold_l): Use them as second argument for
8034 long_double_symbol.
8035
c6c8f0ec
UD
80362007-08-14 Ulrich Drepper <drepper@redhat.com>
8037
8038 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8039
5e88abf9
UD
80402007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8041
8042 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8043
fc4819b0
UD
80442007-08-14 Ulrich Drepper <drepper@redhat.com>
8045
8046 * po/bg.po: New file. From the translation team.
8047
22502ea2
UD
80482007-08-13 Jakub Jelinek <jakub@redhat.com>
8049
8050 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8051 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8052 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8053 when each feature was introduced.
8054
8055 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8056 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8057 (CHECK_HASH): New macro.
8058 (PREPARE_VERSION): Use it.
8059
8060 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8061 prototype if not __ASSUME_PSELECT.
8062 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8063 prototype if not __ASSUME_PPOLL.
8064
8065 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8066
8067 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8068 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8069 is defined.
8070
9c6f6953
UD
80712007-08-13 Ulrich Drepper <drepper@redhat.com>
8072
8073 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8074 (_libc_vdso_platform_setup): If vDSO is not available point
8075 __vdso_gettimeofday to the vsyscall.
8076 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8077 __vdso_gettimeofday instead of vsyscall.
8078
f8de5057
UD
80792007-08-13 Jakub Jelinek <jakub@redhat.com>
8080
8081 * nscd/servicescache.c: Include kernel-features.h.
8082 * nscd/gai.c: Likewise.
8083 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8084 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8085 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8086 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8087 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8088 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8089 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8090 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8091 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8092
3c87d79d
UD
80932007-08-12 Ulrich Drepper <drepper@redhat.com>
8094
ea37207a
UD
8095 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8096 and _dl_get_origin defines anymore.
8097
4eb375fe
UD
8098 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8099 Build fix for systems which might lack POSIX timer support.
8100
3c87d79d
UD
8101 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8102 (_libc_vdso_platform_setup): Mangle function pointers before storing
8103 them.
8104 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8105 Demangle vdso pointer before use.
8106 (INTERNAL_VSYSCALL): Likewise.
8107
8108 * elf/cache.c (primes): Mark as const.
8109 Noted by Roland McGrath.
8110
27d9ffda
UD
81112007-08-01 Andreas Jaeger <aj@suse.de>
8112 Jakub Jelinek <jakub@redhat.com>
8113
8114 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8115 (options): Add option.
8116 (parse_opt): Handle option.
8117 (manual_link): Adjust process_file caller. Call implicit_soname.
8118 (search_dir): Formatting. Use and populate auxiliary cache.
8119 (main): Load and save auxiliary cache.
8120 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
8121 stat64 from fstat64 to caller.
8122 (implicit_soname): New function.
8123 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8124 leave *soname as NULL.
8125 * elf/cache.c: Include libgen.h.
8126 (print_entry, print_cache, compare, save_cache, add_to_cache):
8127 Formatting and cleanups.
8128 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8129 aux_cache_file): New structures.
8130 (AUX_CACHEMAGIC): Define.
8131 (primes): New array.
8132 (aux_hash_size, aux_hash): New variables.
8133 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8134 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8135 load_aux_cache, save_aux_cache): New functions.
8136 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8137 (init_aux_cache, search_aux_cache, add_to_aux_cache,
8138 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8139 (process_file): Adjust prototype.
8140
8d944b0f
UD
81412007-08-12 Jakub Jelinek <jakub@redhat.com>
8142
8143 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8144 with __need_size_t.
8145
75fb247e
UD
81462007-08-12 Ulrich Drepper <drepper@redhat.com>
8147
fb86328a
UD
8148 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8149 r_found_version structure as second parameter.
8150 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8151 (_dl_vdso_vsym): Change type of second parameter accordingly.
8152 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8153 (_libc_vdso_platform_setup): Adjust.
974a1f0f 8154 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
8155 (_libc_vdso_platform_setup): Likewise.
8156
75fb247e
UD
8157 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8158 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8159 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8160 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8161 * csu/libc-start.c: Pretty printing.
8162 Use VDSO_SETUP if defined.
8163 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8164 and let generic code call into _libc_vdso_platform_setup.
8165 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8166 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8167 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8168 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8169 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8170 for GLIBC_PRIVATE.
8171 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8172 (sysdep_rountines): Add dl-vdso.
8173
8174 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8175 of routines.
8176
8177 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8178 attribute_hidden to __vdso_gettimeofday prototype.
8179
9229b83e
RM
81802007-08-12 Roland McGrath <roland@redhat.com>
8181
8182 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8183 From: Karl Berry <karl@freefriends.org>.
8184
4503061f
UD
81852007-08-11 Ulrich Drepper <drepper@redhat.com>
8186
8187 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8188 an atime update for the files we read.
8189
d7e23b02
UD
81902007-08-10 Ulrich Drepper <drepper@redhat.com>
8191
7cf89e95
UD
8192 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8193
9d169bb3 8194 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
8195 instead of mkstemp.
8196
8197 * misc/Makefile (routines): Add mkostemp and mkostemp64.
8198 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8199 * misc/mkostemp.c: New file.
8200 * misc/mkostemp64.c: New file.
8201 * stdlib/stdlib.h: Declare the new functions.
8202 * sysdeps/posix/tempname.c: Add new parameter which is added to
8203 the flags for open. Remove __GT_BIGFILE handling.
8204 * stdio-common/tempname.c: Likewise.
8205 * include/stdio.h: Adjust __gen_tempname prototype.
8206 Renumber __GT_* constants.
8207 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8208 * misc/mkdtemp.c: Likewise.
8209 * misc/mkstemp.c: Likewise.
8210 * misc/mkstemp64.c: Likewise.
8211 * misc/mktemp.c: Likewise.
8212 * stdio-common/tempnam.c: Likewise.
8213 * stdio-common/tmpfile.c: Likewise.
8214 * stdio-common/tmpfile64.c: Likewise.
8215 * stdio-common/tmpnam.c: Likewise.
8216 * stdio-common/tmpnam_r.c: Likewise.
8217
22532966
RM
82182007-08-10 Roland McGrath <roland@frob.com>
8219
8220 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8221 New macros.
8222 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8223 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8224
673876e6
UD
82252007-08-10 Ulrich Drepper <drepper@redhat.com>
8226
aa132749
UD
8227 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8228 possible.
8229 * nss/nss_files/files-alias.c (internal_setent): Likewise.
8230 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8231 * nss/nss_files/files-have_o_cloexec.c: New file.
8232
22532966 8233 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
8234 available.
8235
1e286653
JJ
82362007-08-10 Jakub Jelinek <jakub@redhat.com>
8237
8238 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8239 ___new_wcstold_l): New weak aliases.
8240 (strtold_l, wcstold_l): Use them as second argument for
8241 long_double_symbol.
8242
f07f72f3
UD
82432007-08-09 Ulrich Drepper <drepper@redhat.com>
8244
6479496a
UD
8245 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8246 register in test for error.
8247
c4adefbd
UD
8248 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8249 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8250
f07f72f3
UD
8251 * po/sv.po: Update from translation team.
8252
eef38c28
RM
82532007-08-06 Roland McGrath <roland@redhat.com>
8254
773e305e
RM
8255 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8256 Remove __strto*_l inlines.
8257 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8258 * stdlib/strtod.c: Add libc_hidden_def.
8259 * stdlib/strtod_l.c: Likewise.
8260 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8261 for __new_strtold and __new_wcstold.
8262 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8263 __STRTOF, STRTOF.
8264 * stdlib/strtol.c: Add libc_hidden_def.
8265 * stdlib/strtol_l.c: Likewise.
8266 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8267 strtoq.
8268
8269 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8270
8271 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8272 * scripts/data/localplt-generic.data: ... here.
8273 * elf/Makefile (check-data): Get generic file if no other.
8274 ($(objpfx)check-localplt.out): Make target unconditional.
8275
eef38c28
RM
8276 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8277 Use ElfW(Nhdr).
8278
742df3a4
UD
82792007-08-05 Ulrich Drepper <drepper@redhat.com>
8280
8281 * po/zh_CN.po: Updated translation from translation team.
8282
0470fa46
JJ
82832007-08-05 Jakub Jelinek <jakub@redhat.com>
8284
8285 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8286 Don't use CGOTSETUP and CGOTRESTORE macros.
8287
b5075bdc
RM
82882007-08-04 Roland McGrath <roland@redhat.com>
8289
8290 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8291
9accc268
JJ
82922007-08-04 Jakub Jelinek <jakub@redhat.com>
8293
8294 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8295 __extension__ around the whole statement expression.
8296
220ae3ef
UD
82972007-08-04 Ulrich Drepper <drepper@redhat.com>
8298
c8ccd8e3
UD
8299 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8300 elements during initialization.
8301
220ae3ef
UD
8302 * po/pl.po: Updated translation from translation team.
8303 * po/tr.po: Likewise.
11960f7f 8304 * po/nl.po: Likewise.
220ae3ef 8305
2fb20667
UD
83062007-08-03 Ulrich Drepper <drepper@redhat.com>
8307
8308 * rt/aio.h: Add __nonnull attributes.
8309
ce31a3b1
UD
83102007-08-03 Jakub Jelinek <jakub@redhat.com>
8311
64f6281c
UD
8312 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8313 * stdlib/Makefile (tests): Add tst-strtod5.
8314 (tst-strtod5-ENV): New.
8315 * stdlib/tst-strtod5.c: New file.
8316
ce31a3b1
UD
8317 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8318 failed.
8319 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8320 on failure.
8321
8322 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8323 allocated.
8324
754980e4
JJ
83252007-08-03 Jakub Jelinek <jakub@redhat.com>
8326
8327 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8328 numbers.
8329
497af0cb
UD
83302007-08-02 Ulrich Drepper <drepper@redhat.com>
8331
cbf0489b
UD
8332 * io/Makefile (aux): Add have_o_cloexec.
8333 * include/fcntl.h: Declare __have_o_cloexec.
8334 * io/have_o_cloexec.c: New file.
8335 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8336 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8337 fcntl call if not necessary.
8338 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8339 of local variable.
8340
fa39685d
UD
8341 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8342 Avoid memset, add explicit initialization.
8343 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8344 to the end and change into zero-sized array.
8345 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
8346
8347 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8348 inline functions.
8349 * include/stdlib.h: Add __strto*_internal prototypes here.
8350 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8351 inline functions.
8352 * include/wchar.h: Add __wcsto*_internal prototypes.
8353 * sysdeps/generic/inttypes.h: No need to protect the declaration
8354 of the __strto*_internal and __wcsto*_internal members here.
8355
497af0cb
UD
8356 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8357
d17a8cf0
RM
83582007-08-02 Roland McGrath <roland@redhat.com>
8359
8360 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8361 $(inst_bindir)/getconf if possible.
8362
8363 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8364 (generated): Add it.
8365 ($(inst_libexecdir)/getconf): Use it.
8366
0abf17de
UD
83672007-08-01 Ulrich Drepper <drepper@redhat.com>
8368
8369 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8370 /proc is faster and sufficient. /sys is still needed for
8371 __get_nprocs_conf.
8372
5e0923ab
UD
83732007-08-01 Jakub Jelinek <jakub@redhat.com>
8374
8375 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8376 syscall as __fallocate64.
8377 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8378 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8379
1475e201
UD
83802007-07-30 Jakub Jelinek <jakub@redhat.com>
8381
8382 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8383 value.
8384
8385 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8386 if off_t is different rank from size_t.
8387
8388 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8389 uw_frame_state_for): Avoid type punning warnings.
8390 * sysdeps/generic/unwind-dw2-fde-glibc.c
8391 (_Unwind_IteratePhdrCallback): Likewise.
8392 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8393 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8394 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8395 pointers.
8396
e076bece
UD
83972007-07-31 Ulrich Drepper <drepper@redhat.com>
8398
9506149a
UD
8399 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8400 total processors using sysfs.
8401 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 8402
bbeaaa84
JJ
84032007-07-31 Jakub Jelinek <jakub@redhat.com>
8404
09881398
JJ
8405 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8406 syscall arguments count.
8407
bbeaaa84
JJ
8408 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8409
087ef75f
RM
84102007-07-30 Roland McGrath <roland@redhat.com>
8411
8412 * manual/libc.texinfo: Update copyrights, formatting magic, and
8413 @dircategory. From Karl Berry <karl@freefriends.org>.
8414
44f08a6e
UD
84152007-07-29 Ulrich Drepper <drepper@redhat.com>
8416
eafaae72
UD
8417 [BZ #4860]
8418 * io/Makefile (headers): Add bits/fcntl2.h.
8419
c5705565
UD
8420 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8421 using gcc builtin.
8422 (__CPU_EQUAL_S): Likewise.
8423
44f08a6e
UD
8424 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8425 (tests): Add tst-cpuset.
8426 * posix/sched_cpualloc.c: New file.
8427 * posix/sched_cpufree.c: New file.
8428 * posix/tst-cpuset.c: New file.
8429 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8430 GLIBC_2.7.
8431 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8432 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8433 macros. Define CPU_*_S macros.
8434
8f5e1400
UD
84352007-07-28 Ulrich Drepper <drepper@redhat.com>
8436
5b74caf6
UD
8437 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8438 entry.
8439
a26d01bb 8440 [BZ #4858]
8f5e1400
UD
8441 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8442 #.0g and value rounded to 1.0.
8443 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8444
085a4412
UD
84452007-07-26 Jakub Jelinek <jakub@redhat.com>
8446
cedb4109
UD
8447 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8448 for int_frac_digits and frac_digits.
8449
8450 * login/logout.c (logout): Avoid aliasing violation.
8451 * login/logwtmp.c (logwtmp): Likewise.
8452
8453 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8454
9d9febc7
UD
8455 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8456 to avoid warning.
8457 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8458 warning.
8459 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8460 warning.
8461 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8462 to avoid warnings.
8463
701666b7
UD
8464 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8465 void **.
8466 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8467
8468 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8469 char * to avoid warning.
8470 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8471
8472 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8473
8474 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8475 allocate_arrays): Cast second argument to charmap_find_symbol
8476 to char * to avoid warnings.
8477
8478 * locale/programs/repertoire.c (repertoire_new_char): Change
8479 from_nr, to_nr and cnt to unsigned long, adjust printf format
8480 string.
8481
8482 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8483 Cast second argument to new_element to char * to avoid warnings.
8484
8485 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8486
8487 * intl/gettextP.h (struct loaded_domain): Change plural to const
8488 struct expression *.
8489 * intl/plural-eval.c (plural_eval): Change first argument to
8490 const struct expression *.
8491 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8492 argument to const struct expression **.
8493 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8494 prototypes.
8495 * intl/loadmsgcat (_nl_unload_domain): Cast away const
8496 in call to __gettext_free_exp.
8497
8498 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8499 unitialized wstring/wpattern var warnings.
8500
8501 * posix/runtests.c (struct a_test): Make data field const char *.
8502
8503 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8504 vars if not LDBL_MANT_DIG >= 106.
8505
8506 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8507
8508 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8509 __find_specmb to avoid warning.
8510
8511 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8512
8513 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8514 to avoid warnings.
8515
8516 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8517 initializer.
8518
8519 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8520 tv var when it will be actually used.
8521
8522 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8523 to avoid warnings.
8524
085a4412
UD
8525 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8526 char array resp. pointer.
8527 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8528 char array.
8529 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8530 to const unsigned char **.
8531 (ucs4_to_cns11643): Change second argument to unsigned char *.
8532 * iconvdata/euc-tw.c (BODY): Change endp type to
8533 const unsigned char *.
8534 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8535 to unsigned char *.
8536 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8537 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8538 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8539 types to unsigned char pointers/arrays instead of char.
8540 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8541 to unsigned char *.
8542 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8543 * iconvdata/jis0212.h: Include assert.h.
8544 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8545 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8546 of trying to handle that.
8547 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8548 shut up a warning.
8549 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8550 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8551 two dimensional const unsigned char arrays.
8552 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8553 Initialize endp to inptr to shut up a warning.
8554
fa69dc9c
UD
85552007-07-20 Jakub Jelinek <jakub@redhat.com>
8556
ae1ad762
UD
8557 [BZ #4772]
8558 * time/strptime_l.c (__strptime_internal): Silently ignore
8559 strftime modifiers and field width in recursive calls.
8560
fa69dc9c
UD
8561 * include/time.h (enum ptime_locale_status): Remove.
8562 (__strptime_internal): Remove decided and era_cnt arguments,
8563 add statep argument.
8564 * time/strptime_l.c (__strptime_internal): Remove decided
8565 and era_cnt arguments, add statep argument. Don't recompute
8566 any fields in recursive calls, only update caller's tm
8567 and state, if recursive call fails, don't change tm nor
8568 any state.
8569 (get_alt_number): Adjust.
8570 (recursive): Adjust caller.
8571 (strptime): Likewise.
8572 * time/strptime.c (strptime): Likewise.
8573
7b503bcc
UD
85742007-07-19 Jakub Jelinek <jakub@redhat.com>
8575
8576 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8577 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8578 if from and to charsets are the same.
8579 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8580 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8581 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8582
85832007-07-17 Jakub Jelinek <jakub@redhat.com>
8584
8585 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8586 Don't define wint_t when __need_mbstate_t unless it
8587 is necessary.
8588 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8589 in the typedef if possible.
8590 * wctype/wctype.h (wint_t): Define by including
8591 wchar.h with __need_wint_t instead of including stddef.h
8592 with __need_wint_t and as fallback definining it ourselves.
8593 * iconv/gconv.h (__need_wint_t): Define before including
8594 wchar.h.
8595 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8596 or _GLIBCPP_USE_WCHAR_T.
8597 (__need_wchar_t): Don't define
8598 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8599 (__need_wint_t): Don't define before including stddef.h,
8600 define before including wchar.h only if _LIBC or
8601 _GLIBCPP_USE_WCHAR_T.
8602 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8603 * sysdeps/mach/hurd/_G_config.h: Likewise.
8604 * sysdeps/generic/_G_config.h: Likewise.
8605 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8606 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8607 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8608 if _LIBC or _GLIBCPP_USE_WCHAR_T.
8609
a95a608f
UD
86102007-07-28 Ulrich Drepper <drepper@redhat.com>
8611
8612 * sysdeps/posix/posix_fallocate64.c: Undefine
8613 __posix_fallocate64_l64 before alias handling.
8614 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8615 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8616 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8617 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8618
8619 * io/tst-posix_fallocate.c: Include <fcntl.h>.
8620
86212007-07-23 Jakub Jelinek <jakub@redhat.com>
8622
8623 * locale/programs/ld-collate.c (atwc): New variable.
8624 (add_to_tablewc): New toplevel function, moved from collate_output.
8625 (collate_output): Remove add_to_tablewc nested function.
8626
8627 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8628 (name_insert): New function.
8629 (write_output): Remove hash_table and hash_size vars and name_insert
8630 nested function.
8631
80d4c3b0
RM
86322007-07-24 Roland McGrath <roland@redhat.com>
8633
8634 * Makerules (install-others-programs-nosubdir): New target.
8635 (install-no-libc.a-nosubdir): Depend on it.
8636
8637 * iconv/Makefile (install-others-programs): Set this instead of
8638 install-others.
8639 * login/Makefile (install-others-programs): Likewise.
8640 * posix/Makefile (install-others-programs): Likewise.
8641
8642 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8643 dependencies.
8644
c1bf9f14
UD
86452007-07-23 Ulrich Drepper <drepper@redhat.com>
8646
8647 * io/Makefile (tests): Add tst-posix_fallocate.
8648 * io/tst-posix_fallocate.c: New file.
8649
8650 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8651 __ASSUME_FALLOCATE.
8652
2320270c
RM
86532007-07-22 Roland McGrath <roland@frob.com>
8654
3dadfa7e
RM
8655 * hurd/getdport.c: Add missing copyright year update.
8656
2320270c
RM
8657 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8658 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8659
cc783763
UD
86602007-07-22 Ulrich Drepper <drepper@redhat.com>
8661
c942388d
UD
8662 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8663
cc783763
UD
8664 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8665 O_CLOEXEC is needed.
8666 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8667 Avoid additional fcntl to set O_CLOEXEC if not needed.
8668 * nis/nss_compat/compat-initgroups.c: Likewise.
8669 * nis/nss_compat/compat-pwd.c: Likewise.
8670 * nis/nss_compat/compat-spwd.c: Likewise.
8671
610903b0
RM
86722007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8673
3dadfa7e 8674 [BZ #3665]
5c3d7832
RM
8675 * manual/errno.texi: Change ECANCELED value to 119.
8676
3dadfa7e 8677 [BZ #4610]
610903b0
RM
8678 * mach/lock-intern.h: Include <sys/cdefs.h>.
8679
3dadfa7e 8680 [BZ #4178]
610903b0
RM
8681 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8682 reading A.
8683
3dadfa7e
RM
8684 [BZ #4126]
8685 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8686 to __sigsuspend.
610903b0
RM
8687
8688 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8689
86902006-06-13 Thomas Schwinge <tschwinge@gnu.org>
8691
8692 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8693 `__ASSEMBLER__'.
8694 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8695
acf79996
UD
86962007-07-21 Ulrich Drepper <drepper@redhat.com>
8697
dde0763a
UD
8698 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8699 descriptor received from nscd.
8700
acf79996
UD
8701 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8702
8703 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8704 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8705 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8706 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8707 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8708 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8709
00d26929
JJ
87102007-07-20 Jakub Jelinek <jakub@redhat.com>
8711
403445d7
JJ
8712 [BZ #4816]
8713 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8714
00d26929
JJ
8715 [BZ #4813]
8716 * login/forkpty.c (forkpty): Close master and slave fds on
8717 fork failure. Patch by
8718 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8719
087722b8
UD
87202007-07-18 Jakub Jelinek <jakub@redhat.com>
8721
8722 * include/features.h (__USE_ISOC95): New define.
8723 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8724 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8725 for -std=iso9899:199409.
8726 * CONFORMANCE: Remove comments about unsupported AMD1.
8727
b042b023
UD
87282007-07-17 Jakub Jelinek <jakub@redhat.com>
8729
8730 * sysdeps/ia64/sched_cpucount.c: New file.
8731 * sysdeps/powerpc/sched_cpucount.c: New file.
8732
8381e467
UD
8733 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8734 __BEGIN_DECLS/__END_DECLS around the prototype.
8735 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
8736 pointer to const cpu_set_t.
8737
50e16f85
UD
8738 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8739 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8740 __need_size_t and include stddef.h.
8741 * sysvipc/sys/msg.h: Likewise.
8742 * posix/sched.h: Likewise.
8743 * hurd/hurd/signal.h (__need_size_t): Define.
8744
8745 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8746 neither does signal.h in pedantic ISO C namespaces. stdio.h
8747 no longer defines wint_t or wchar_t.
8748
b257c726
UD
8749 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8750 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8751 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8752 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8753 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8754 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8755 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8756 * debug/printf_chk.c (__printf_chk): Likewise.
8757 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8758 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8759
8760 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8761 Define.
8762
d5078b9f
UD
8763 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8764 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8765
1c3e748e
UD
87662007-07-16 Jakub Jelinek <jakub@redhat.com>
8767
8768 [BZ #4792]
8769 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8770 * malloc/malloc.h (realloc): Likewise.
8771
4e425301
UD
8772 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8773 if one of proc_file_chain streams has that fileno.
8774 * stdio-common/Makefile (tests): Add tst-popen2.
8775 * stdio-common/tst-popen2.c: New test.
8776
2e2efe65
RM
87772007-07-14 Jakub Jelinek <jakub@redhat.com>
8778
8779 * elf/ldconfig.c: Allow GPLv2 or any later version.
8780 * elf/readlib.c: Likewise.
8781 * elf/chroot_canon.c: Likewise.
8782 * elf/cache.c: Likewise.
8783 * nscd/mem.c: Likewise.
8784 * nscd/getpwuid_r.c: Likewise.
8785 * nscd/grpcache.c: Likewise.
8786 * nscd/aicache.c: Likewise.
8787 * nscd/getsrvbynm_r.c: Likewise.
8788 * nscd/nscd.c: Likewise.
8789 * nscd/servicescache.c: Likewise.
8790 * nscd/getsrvbypt_r.c: Likewise.
8791 * nscd/initgrcache.c: Likewise.
8792 * nscd/gethstbyad_r.c: Likewise.
8793 * nscd/gethstbynm2_r.c: Likewise.
8794 * nscd/getgrnam_r.c: Likewise.
8795 * nscd/nscd_setup_thread.c: Likewise.
8796 * nscd/getpwnam_r.c: Likewise.
8797 * nscd/gai.c: Likewise.
8798 * nscd/connections.c: Likewise.
8799 * nscd/dbg_log.c: Likewise.
8800 * nscd/cache.c: Likewise.
8801 * nscd/hstcache.c: Likewise.
8802 * nscd/nscd_conf.c: Likewise.
8803 * nscd/getgrgid_r.c: Likewise.
8804 * nscd/pwdcache.c: Likewise.
8805 * catgets/gencat.c: Likewise.
8806 * locale/programs/linereader.h: Likewise.
8807 * locale/programs/locarchive.c: Likewise.
8808 * locale/programs/ld-paper.c: Likewise.
8809 * locale/programs/locfile-kw.h: Likewise.
8810 * locale/programs/ld-address.c: Likewise.
8811 * locale/programs/xmalloc.c: Likewise.
8812 * locale/programs/ld-time.c: Likewise.
8813 * locale/programs/localedef.c: Likewise.
8814 * locale/programs/simple-hash.c: Likewise.
8815 * locale/programs/xstrdup.c: Likewise.
8816 * locale/programs/ld-numeric.c: Likewise.
8817 * locale/programs/locfile-kw.gperf: Likewise.
8818 * locale/programs/ld-collate.c: Likewise.
8819 * locale/programs/charmap-kw.gperf: Likewise.
8820 * locale/programs/charmap.h: Likewise.
8821 * locale/programs/charmap-kw.h: Likewise.
8822 * locale/programs/config.h: Likewise.
8823 * locale/programs/locfile.c: Likewise.
8824 * locale/programs/ld-ctype.c: Likewise.
8825 * locale/programs/charmap.c: Likewise.
8826 * locale/programs/ld-messages.c: Likewise.
8827 * locale/programs/repertoire.h: Likewise.
8828 * locale/programs/locale.c: Likewise.
8829 * locale/programs/ld-name.c: Likewise.
8830 * locale/programs/linereader.c: Likewise.
8831 * locale/programs/locfile.h: Likewise.
8832 * locale/programs/3level.h: Likewise.
8833 * locale/programs/ld-monetary.c: Likewise.
8834 * locale/programs/ld-measurement.c: Likewise.
8835 * locale/programs/charmap-dir.c: Likewise.
8836 * locale/programs/ld-identification.c: Likewise.
8837 * locale/programs/localedef.h: Likewise.
8838 * locale/programs/charmap-dir.h: Likewise.
8839 * locale/programs/repertoire.c: Likewise.
8840 * locale/programs/simple-hash.h: Likewise.
8841 * locale/programs/ld-telephone.c: Likewise.
8842 * locale/programs/locale-spec.c: Likewise.
8843 * locale/programs/locfile-token.h: Likewise.
8844 * posix/getconf.c: Likewise.
8845 * iconv/dummy-repertoire.c: Likewise.
8846 * iconv/iconv_charmap.c: Likewise.
8847 * iconv/iconvconfig.c: Likewise.
8848 * iconv/iconv_prog.c: Likewise.
8849 * malloc/memusagestat.c: Likewise.
8850 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8851
84c23a3d
RM
88522007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8853
8854 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8855 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8856 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8857 check for the first argument.
8858
1c298d08
UD
88592007-07-12 Jakub Jelinek <jakub@redhat.com>
8860
8861 [BZ #4775]
8862 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8863 (__tgmath_real_type): Fix if expr is const int or other const
8864 qualified integral type.
8865 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8866 expressions and handle const qualified arguments.
8867 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8868 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8869 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8870 statement expressions.
8871 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8872 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8873 (__TGMATH_UNARY_IMAG): Define.
8874 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8875 * math/Makefile (tests): Add test-tgmath2.
8876 (CFLAGS-test-tgmath2.c): Add.
8877 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8878 count_cfloat, count_cldouble): New variables.
8879 (NCCALLS): Define.
8880 (main): Check number of complex calls as well.
8881 (F(compile_test)): Add complex tests and tests with const qualified
8882 arguments.
8883 (y, z, ccount): Define.
8884 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8885 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8886 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8887 F(cproj)): New functions.
8888 * math/test-tgmath2.c: New test.
8889
88902007-07-11 Jakub Jelinek <jakub@redhat.com>
8891
8892 [BZ #4776]
8893 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8894 RPATH etc. as "/" rather than "", don't segfault on empty paths,
8895 instead output ".".
8896 * dlfcn/Makefile (distribute): Add glreflib3.c.
8897 (module-names): Add glreflib3.
8898 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8899 glreflib1.so.
8900 (LDFLAGS_glreflib3.so): New.
8901 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8902 glreflib1.so.
8903 * dlfcn/glreflib3.c: New file.
8904
8905 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8906 returned -1, return NULL.
8907 * intl/explodename.c (_nl_explode_name): Return -1 if
8908 _nl_normalize_codeset failed.
8909
a88f47a7
UD
89102007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
8911
8912 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8913 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
8914 and avoid branch misspredicts for > 31 bytes memset case.
8915 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8916 Remove toc ref to __cache_line_size.
8917
8918 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8919 to get ISA-V2.0 branch hints.
8920 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8921 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8922 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8923 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8924 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8925 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8926 Remove toc ref to __cache_line_size.
8927
8928 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8929 Include math_ldbl_opt.h.
8930
f98c2d06
UD
89312007-07-10 Ulrich Drepper <drepper@redhat.com>
8932
8933 [BZ #4773]
8934 * time/strptime_l.c (__strptime_internal): Implement greedy
8935 matching of weekday and month names.
8936
cec5991f
RM
89372007-07-09 Roland McGrath <roland@redhat.com>
8938
8939 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8940 (ELF_NOTE_ABI): Use it.
8941 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8942
8c1dcd26
UD
89432007-07-09 Ulrich Drepper <drepper@redhat.com>
8944
8945 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8946 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8947
c2c7bd3f
UD
89482007-07-07 Ulrich Drepper <drepper@redhat.com>
8949
8950 [BZ #4745]
0923a2c8
UD
8951 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8952 in loop to look for conversion specifier to avoid testing of
8953 wrong errno value.
8954 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 8955 * stdio-common/bug18.c: New file.
0923a2c8
UD
8956 * stdio-common/bug18a.c: New file.
8957 * stdio-common/bug19.c: New file.
8958 * stdio-common/bug19a.c: New file.
c2c7bd3f 8959
4facf4af
RM
89602007-07-05 Mike Frysinger <vapier@gentoo.org>
8961
8962 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8963 running awk script.
8964
1311e86e
UD
89652007-07-01 Jakub Jelinek <jakub@redhat.com>
8966
8967 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8968 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
8969 Return NULL if mmap failed instead of asserting it does not.
8970 (calloc): Check for integer overflow.
8971
8972 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8973 than LONG_MAX / 10.
8974
57c9179c
UD
89752007-07-03 Jakub Jelinek <jakub@redhat.com>
8976
8977 [BZ #4702]
8978 * nis/nss-default.c: Include errno.h.
8979 (init): Preserve errno.
8980
d0b283a8
UD
89812007-07-02 Ulrich Drepper <drepper@redhat.com>
8982
8983 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8984
34e0bbaf
UD
89852007-06-30 Ulrich Drepper <drepper@redhat.com>
8986
8987 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8988
89892007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8990
8991 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8992
34e0bbaf 89932007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
8994
8995 * sysdeps/s390/dl-procinfo.c: New file.
8996 * sysdeps/s390/dl-procinfo.h: New file.
8997 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8998
0e508a6e
UD
89992007-06-29 Jakub Jelinek <jakub@redhat.com>
9000
9001 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9002 in PT_NOTE segments with multiple notes.
9003 * elf/readelflib.c (process_elf_file): Likewise.
9004
e22c61fb
UD
90052007-06-22 Ulrich Drepper <drepper@redhat.com>
9006
9007 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9008 ISO C compliant.
9009
e4eb675d
UD
90102007-06-19 Ulrich Drepper <drepper@redhat.com>
9011
9012 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9013
90142007-06-13 Jakub Jelinek <jakub@redhat.com>
9015
9016 * include/link.h: Don't include rtld-lowlevel.h.
9017 (struct link_map): Remove l_scope_lock.
9018 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9019 (_dl_scope_free_list): New field (variable) in _rtld_global.
9020 (DL_LOOKUP_SCOPE_LOCK): Remove.
9021 (_dl_scope_free): New prototype.
9022 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9023 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9024 (_dl_profile_fixup): Likewise.
9025 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9026 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9027 THREAD_GSCOPE_RESET_FLAG around it.
9028 * elf/dl-close.c (_dl_close_worker): Don't use
9029 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9030 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9031 scopes were queued or if l_scope_mem has been abandoned.
9032 * elf/dl-open.c (_dl_scope_free): New function.
9033 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9034 * elf/dl-support.c (_dl_scope_free_list): New variable.
9035 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9036 Remove DL_LOOKUP_SCOPE_LOCK handling.
9037 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9038 handling.
9039 * elf/dl-object.c (_dl_new_object): Don't use
9040 __rtld_mrlock_initialize.
9041
9be09e06
UD
90422007-06-19 Ulrich Drepper <drepper@redhat.com>
9043
9044 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9045 to fill in holes
9046 (rtld_global_ro): Likewise.
9047
90482007-06-18 Jakub Jelinek <jakub@redhat.com>
9049
9050 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9051 Move PT_LOAD checking to...
9052 (_dl_addr_inside_object): ... here, new function.
9053 * elf/dl-sym.c (do_sym): If not l_contiguous,
9054 call _dl_addr_inside_object.
9055 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9056 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9057 * elf/dl-open.c (dl_open_worker): Likewise.
9058 (_dl_addr_inside_object): New function if IS_IN_rtld.
9059 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9060 holes are present or are PROT_NONE protected.
9061 * include/link.h (struct link_map): Add l_contiguous field.
9062 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9063
ae1ad3ae 90642007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
9065 Tomas Janousek <tjanouse@redhat.com>
9066 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
9067
9068 [BZ #4647]
9069 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9070 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9071 socket.
9072 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9073 unused member a bitmap.
9074 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9075 servers are configured.
9076
3abee0b7
UD
90772007-06-18 Jakub Jelinek <jakub@redhat.com>
9078
9079 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9080
89074592
UD
90812007-06-17 Andreas Schwab <schwab@suse.de>
9082
9083 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9084
b26e274d
AJ
90852007-06-16 Andreas Jaeger <aj@suse.de>
9086
9087 [BZ #4125]
9088 * sysdeps/unix/sysv/linux/sys/ptrace.h
9089 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9090 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 9091 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
9092 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9093 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9094 Define.
9095 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9096 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9097 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9098 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9099
e0d4a4e5
UD
91002007-06-16 Ulrich Drepper <drepper@redhat.com>
9101
9102 [BZ #4599]
9103 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9104 determining whether there are IPv4/IPv6 addresses, ignore loopback
9105 addresses.
9106
ae8e81f5
JJ
91072007-06-14 Uros Bizjak <ubizjak@gmail.com>
9108
9109 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9110 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9111 as the return type. Change type of "r" variable to CMPtype.
9112 * soft-fp/eqsf2.c (__eqsf2): Likewise.
9113 * soft-fp/eqtf2.c (__eqtf2): Likewise.
9114 * soft-fp/gedf2.c (__gedf2): Likewise.
9115 * soft-fp/gesf2.c (__gesf2): Likewise.
9116 * soft-fp/getf2.c (__getf2): Likewise.
9117 * soft-fp/ledf2.c (__ledf2): Likewise.
9118 * soft-fp/lesf2.c (__lesf2): Likewise.
9119 * soft-fp/letf2.c (__letf2): Likewise.
9120 * soft-fp/unorddf2 (__unorddf2): Likewise.
9121 * soft-fp/unordsf2 (__unordsf2): Likewise.
9122 * soft-fp/unordtf2 (__unordtf2): Likewise.
9123
90cd2413
UD
91242007-06-09 Ulrich Drepper <drepper@redhat.com>
9125
9126 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9127 make sure gcc doesn't mess around with this.
9128
3c457089
UD
91292007-06-08 Ulrich Drepper <drepper@redhat.com>
9130
9131 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9132
e8b6b64d
UD
91332007-06-08 Jakub Jelinek <jakub@redhat.com>
9134
9135 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9136 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9137 at most once per _dl_close_worker.
9138
36dffb22
UD
91392007-06-08 Ulrich Drepper <drepper@redhat.com>
9140
755db8c5
UD
9141 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9142 __sched_cpucount as const.
9143 * posix/sched_cpucount.c: Adjust.
9144
36dffb22
UD
9145 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9146 instruction for counting bits.
9147 * sysdeps/x86_64/sched_cpucount.c: New file.
9148
26f56c1c
UD
91492007-06-07 Ulrich Drepper <drepper@redhat.com>
9150
9151 * configure.in: Avoid variable named BASH.
e967d385 9152 * config.make.in: Likewise.
26f56c1c 9153 Patch in part by Mike Frysinger.
835abc5c 9154
26f56c1c 91552007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
9156
9157 [BZ #4586]
835abc5c
UD
9158 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9159 pseudo-zeros as zero.
9160 * sysdeps/x86_64/ldbl2mpn.c: New file.
9161 * sysdeps/ia64/ldbl2mpn.c: New file.
9162
7e3706ea
UD
91632007-06-04 Jakub Jelinek <jakub@redhat.com>
9164
9165 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9166 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9167 Remove unreachable code at the end.
9168
91692007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9170
9171 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9172 ldbl-128ibm in comment.
9173 (fpclassifyl): Correct classification of denormals.
9174 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9175 return value for MIN denormal. Rewrite using long double math too
9176 correctly handle denormals and canonicalize the results.
9177
91782007-06-05 Jakub Jelinek <jakub@redhat.com>
9179
9180 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9181 (__mpn_construct_long_double): Fix conversion where result ought
9182 to be smaller than __LDBL_MIN__, or the low double should be
9183 denormal. Fix decision where to negate low double - honor round
9184 to even rules.
9185 * stdio-common/tst-sprintf2.c: Include string.h.
9186 (COMPARE_LDBL): Define.
9187 (TEST): Also test whether a string hexadecimal float representation
9188 can be parsed back to the number.
9189 (main): Add a couple of further tests.
9190
43b76828
UD
91912007-06-04 Jakub Jelinek <jakub@redhat.com>
9192
9193 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9194 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9195 is non-zero, but smaller than 2 * __DBL_MIN__.
9196 * stdio-common/tst-sprintf2.c: New test.
9197 * stdio-common/Makefile (tests): Add tst-sprintf2.
9198
9199 * math/test-misc.c (main): Don't run last batch of tests with
9200 IBM long double format.
9201
04067002
UD
92022007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9203
9204 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9205 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9206 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9207 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9208 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9209 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9210 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9211 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9212 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9213 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9216 New file.
9217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9218 New file.
9219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9220 New file.
9221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9222 New file.
9223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9224 New file.
9225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9227 New file.
9228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9229 New file.
9230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9231 New file.
9232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9233 New file.
9234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9235 New file.
9236
92372007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9238
9239 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9240 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9241 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9242 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9243 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9244 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9245 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9246 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9247
92482007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
9249
9250 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9251 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9252 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9253 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9254 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9255 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9256 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9257 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9258
92592007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9260
9261 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9262 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9263 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9264 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9265
92662007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
9267
9268 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9269 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9270
92712006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
9272
9273 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9274 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9275 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9276 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9277
92782006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
9279
9280 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9281 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9282
92832006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9284
9285 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9286 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9287
9288 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9289 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9290 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9291 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9292
92932006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
9294
9295 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9296 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9297 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9298 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9299
93002006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
9301
9302 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9303 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9304 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9305 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9306 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9307 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9308
93092006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9310
9311 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9312 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9313 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9314 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9315
93162006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9317
9318 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9319 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9320 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9321 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9322 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9323 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9324 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9325 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9326 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9327 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9328 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9329 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9330 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9331 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9332 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9333 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9334
93352006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9336
9337 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9338 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9339
93402007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9341
9342 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9343 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9344
93452007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9346
9347 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9348 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9349 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9350 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9351 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9352 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9353 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9354 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9355 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9356 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9357
93582007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9359
9360 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9361
93622007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9363
9364 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9365 branch miss-predicts. Ensure that cache line crossing does not impact
9366 dispatch grouping.
9367
93682006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9369
9370 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9371 "../../powerpc32/power4/memcopy.h".
9372 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9373 "../../powerpc32/power4/wordcopy.c".
9374
93752006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9376
9377 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9378 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9379 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9380 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9381 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9382 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9383
93842006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
9385
9386 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9387
93882006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9389
9390 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9391 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9392 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9393 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9394 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9395 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9396 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9397 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9398
93992006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
9400
9401 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9402
94032006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9404
9405 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9406 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9407 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9408 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9409 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9410 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9411 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9412
5b55e1d3
RM
94132007-05-29 Roland McGrath <roland@redhat.com>
9414
9415 * po/Makefile (po-sed-cmd): New variable.
9416 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9417
5da4373c
UD
94182007-05-29 Ulrich Drepper <drepper@redhat.com>
9419
4b5e7304
UD
9420 * crypt/md5-crypt.c: Fix comment.
9421
5da4373c
UD
9422 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9423 of crashing. When this is the case or if the reply is malformed,
9424 don't try to close the new file descriptor since it does not
9425 exist.
9426 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9427
40f57573
UD
94282007-05-28 Jakub Jelinek <jakub@redhat.com>
9429
9430 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9431 if __NR_utimensat is not defined.
9432
6df7ffad
UD
94332007-05-26 Ulrich Drepper <drepper@redhat.com>
9434
9435 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9436
47ad95ab
UD
94372007-05-25 Jakub Jelinek <jakub@redhat.com>
9438
9439 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9440 (open): Fix comment typos. Don't call __open_2 if flags
9441 is a compile time constant without O_CREAT.
9442 (__open64_2): Add nonnull attribute.
9443 (open64): Fix comment typos. Don't call __open64_2 if flags
9444 is a compile time constant without O_CREAT.
9445 (__openat_2): Add nonnull attribute, fix nonnull attribute
9446 on redirect.
9447 (openat): Fix comment typos. Don't call __openat_2 if flags
9448 is a compile time constant without O_CREAT.
9449 (__openat64_2): Add nonnull attribute, fix nonnull attribute
9450 on redirect.
9451 (openat64): Fix comment typos. Don't call __openat64_2 if flags
9452 is a compile time constant without O_CREAT.
9453
ddfd0535
UD
94542007-05-24 Ulrich Drepper <drepper@redhat.com>
9455
9456 * Makerules (sysd-rules): Define PTW for ptw-* files.
9457 * Versions: Define GLIBC_2.7 for libc.
9458 * include/stdio.h: Declare __fortify_fail.
9459 * debug/fortify_fail.c: New file.
9460 * debug/Makefile (routines): Add fortify_fail.
9461 * debug/chk_fail.c: Use __fortify_fail.
9462 * debug/stack_chk_fail.c: Likewise.
9463 * io/Versions: Export __open_2, __open64_2, __openat_2, and
9464 __openat64_2 for GLIBC_2.7.
9465 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9466 * io/open.c: Define *_2 variant of function which checks for O_CREAT
9467 and fails if necessary.
9468 * io/open64.c: Likewise.
9469 * io/openat.c: Likewise.
9470 * io/openat64.c: Likewise.
9471 * sysdeps/unix/sysv/linux/open64.c: Likewise.
9472 * sysdeps/unix/sysv/linux/openat.c: Likewise.
9473 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9474 * io/bits/fcntl2.h: New file.
9475 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9476 __openat64_2.
9477 * include/bits/fcntl2.h: New file.
9478 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9479 Add open_2.
9480 * sysdeps/unix/sysv/linux/open_2.c: New file.
9481
bfe6f5fa
UD
94822007-05-21 Ulrich Drepper <drepper@redhat.com>
9483
6d59823c
UD
9484 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9485 as second parameter to handle_intel.
9486
e2b1e343
UD
9487 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9488 the entry.
9489
bfe6f5fa
UD
9490 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9491 handling to ...
9492 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
9493 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9494 cacheinfo.
9495 * sysdeps/x86_64/memcpy.S: Complete rewrite.
9496 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9497 Patch by Evandro Menezes <evandro.menezes@amd.com>.
9498
9499 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9500
1f4843fb
UD
95012007-05-21 Jakub Jelinek <jakub@redhat.com>
9502
2c2c003a
UD
9503 [BZ #4525]
9504 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9505 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9506 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9507
9508 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9509
af269dd9
UD
9510 [BZ #4514]
9511 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9512 reinitialize workend at the start of each do_positional format spec
9513 loop, free workstart before do_positional loops.
9514 (printf_unknown): Fix size of work_buffer.
9515 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9516
1f4843fb
UD
9517 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9518 (public_sET_STATe): If ms->version < 3, put all chunks into
9519 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9520 chunks.
9521
9522 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9523 * malloc/hooks.c: Likewise.
9524 * malloc/arena.c: Likewise.
9525 * malloc/malloc.c (do_check_malloc_state): Don't assert
9526 n_mmaps is not greater than n_mmaps_max. This removes the need
9527 for the previous change.
9528
9529 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9530 2007-05-07 commit.
9531
12e8bbff
UD
95322007-05-19 Ulrich Drepper <drepper@redhat.com>
9533
9534 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9535 Define for kernel >= 2.6.22.
69e5cbf5 9536
12e8bbff 95372007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 9538
df94b641
UD
9539 * elf/dl-close.c (_dl_close_worker): When removing object from
9540 global scope, wait for all lookups to finish afterwards.
9541 * elf/dl-open.c (add_to_global): When global scope array must
9542 grow, allocate a new one and free old array only after all
9543 lookups finish.
9544 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9545 (_dl_lookup_symbol_x): Likewise.
9546 * elf/dl-support.c: Define _dl_wait_lookup_done.
9547 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9548 _dl_wait_lookup_done.
9549
2acd01ac
UD
9550 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9551 not overlapping with arena.
9552
129abdd3
UD
9553 * malloc/mcheck.c (reallochook): If size==0, free the block.
9554
eb4b098a
UD
9555 * rt/tst-shm.c: Use fstat64 instead of fstat.
9556
69e5cbf5
UD
9557 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9558 __NR_sync_file_range is not defined.
9559
a2ccc760
UD
95602007-05-17 Ulrich Drepper <drepper@redhat.com>
9561
bec51a30
UD
9562 Dummy files to prevent stub versions from being used.
9563 * sysdeps/x86_64/fpu/k_cosl.c: New file.
9564 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9565 * sysdeps/x86_64/fpu/k_sinl.c: New file.
9566 * sysdeps/x86_64/fpu/k_tanl.c: New file.
9567
a2ccc760
UD
9568 * version.h (VERSION): Set to 2.6.90.
9569
1a31b586
UD
95702007-05-14 Ulrich Drepper <drepper@redhat.com>
9571
a2ccc760
UD
9572 * version.h (VERSION): Define to 2.6.
9573 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 9574
1d47e92f
UD
9575 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9576
9577 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9578 sizes.
366ad8fd 9579
1a31b586 95802007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 9581
366ad8fd
UD
9582 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9583 number of mmaps. n_mmaps_max is the target.
9584 * malloc/hooks.c: Likewise.
9585 * malloc/arena.c: Likewise.
9586
11ed6713
AJ
95872007-05-12 Andreas Jaeger <aj@suse.de>
9588
9589 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9590 getpid.
9591
d65ef3dd
UD
95922007-05-11 Ulrich Drepper <drepper@redhat.com>
9593
2e81d449
UD
9594 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9595 adding new variables.
9596
d65ef3dd 9597 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 9598 optimize. Completely extend global scope array before making the
d65ef3dd
UD
9599 new entries visible.
9600
c27d2078
UD
96012007-05-10 Ulrich Drepper <drepper@redhat.com>
9602
341c566f
UD
9603 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9604 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9605 tst-getcpu.
9606
9607 * include/link.h: Move l_version and l_nversion members around to
9608 fill gaps.
9609
a53fa282
UD
9610 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9611
3771196d
UD
9612 * sysdeps/unix/sysv/linux/sched_setaffinity.c
9613 (__sched_setaffinity_new): If syscall was successful and
9614 RESET_VGETCPU_CACHE is defined, use it before returning.
9615 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9616
f9bf102d
UD
9617 * io/sys/stat.h: Make sure struct timespec is defined for
9618 __USE_ATFILE.
9619
c27d2078
UD
9620 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9621 UTIME_OMIT.
9622 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9623 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9624 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9625 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9626 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9627 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9628 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9629 * io/sys/stat.h: Declare utimensat, futimens.
9630 * io/utimensat.c: New file.
9631 * io/futimens.c: New file.
9632 * sysdeps/unix/sysv/linux/utimensat.c: New file.
9633 * sysdeps/unix/sysv/linux/futimens.c: New file.
9634 * io/Makefile (routines): Add utimensat, futimens.
9635 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9636 * sysdeps/unix/sysv/linux/lutimes.c: New file.
9637 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9638 available.
9639
9640 * include/sys/cdefs.h: Redefine __nonnull so that test for
9641 incorrect parameters in the libc code itself are not omitted.
9642
cf6b0980
JJ
96432007-05-09 Jakub Jelinek <jakub@redhat.com>
9644
c1dfd7e6
JJ
9645 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9646 exception in addition to inexact when asked to raise only FE_INEXACT.
9647
cf6b0980
JJ
9648 [BZ #3427]
9649 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9650 in *envp.
9651
df7b6fea
UD
96522007-05-07 Ulrich Drepper <drepper@redhat.com>
9653
9654 [BZ #4403]
9655 * string/strfry.c (strfry): Make result more random.
9656
37f40235
RH
96572007-05-07 Richard Henderson <rth@redhat.com>
9658
9659 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9660 if __NO_LONG_DOUBLE_MATH.
9661 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 9662 available in the compiler, add .arch directive to the assembly.
37f40235
RH
9663
96642007-05-07 Jakub Jelinek <jakub@redhat.com>
9665
9666 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9667 compat_symbol to GLIBC_2_1.
9668 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9669 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9670 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9671 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9672 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9673 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9674 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9675 libc, not libm.
9676 (__isnanl): New compat_symbol.
9677
c7fd3362
JJ
96782007-05-07 Ulrich Drepper <drepper@redhat.com>
9679 Jakub Jelinek <jakub@redhat.com>
9680
9681 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9682 (new_heap): Initialize mprotect_size.
9683 (grow_heap): When growing, only mprotect from mprotect_size till
9684 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
9685 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9686
4a59e9ad 96872007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 9688 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
9689
9690 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9691 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
9692 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9693 * sysdeps/powerpc/fpu/fe_mask.c: New file.
9694 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9695 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9696 Call __fe_mask_env() if all FP exceptions disabled.
9697 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9698 from old FPSCR to new fenv to propagate DFP rounding modes.
9699 Call __fe_mask_env() if FP exceptions previously enabled.
9700 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9701 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
9702 transitioning from all exceptions disabled to any exception enabled
9703 or visa versa.
9704 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9705 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
9706 when transitioning from all exceptions disabled to any exception
9707 enabled or visa versa.
9708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9714
aa75f64c
UD
97152007-05-06 Ulrich Drepper <drepper@redhat.com>
9716
15eca720 9717 [BZ #4465]
aa75f64c
UD
9718 * posix/unistd.h: Remove __THROW from fdatasync.
9719
711deb05
UD
97202007-05-06 Mike Frysinger <vapier@gentoo.org>
9721
15eca720 9722 [BZ #4465]
711deb05
UD
9723 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9724
ffecd39b
UD
97252007-05-06 Ulrich Drepper <drepper@redhat.com>
9726
49a8eb75
UD
9727 * stdio-common/vfprintf.c (process_string_arg): Optimize
9728 ridiculous precision in wide char code printing multi-byte string.
9729 Reported by Jim Meyering <jim@meyering.net>.
9730
ffecd39b
UD
9731 [BZ #4131]
9732 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9733 boundaries to work around systems with overlapping binary loading.
9734 Based on a patch by Suzuki <suzuki@in.ibm.com>.
9735
b16dba4c
UD
97362007-05-04 Ulrich Drepper <drepper@redhat.com>
9737
30b323ab
UD
9738 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9739 __mbsnrtowcs after last change.
9740
b16dba4c
UD
9741 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9742 (get_ident): Likewise.
9743
37002cbc
JJ
97442007-05-03 Jakub Jelinek <jakub@redhat.com>
9745
9746 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9747 with setting the sticky bit.
9748 * math/test-misc.c (main): Add more truncation tests.
9749
97502007-04-14 Uros Bizjak <ubizjak@gmail.com>
9751
9752 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9753 double in the function declaration.
9754 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9755 double in the function declaration.
9756 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9757 float in the function declaration.
9758 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9759 float in the function declaration.
9760
9761 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9762 denormal operands. Do not generate FP_EX_DENORM exception.
9763 (FP_UNPACK_RAW_EP): Ditto.
9764 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9765 undefined _FP_UNPACK_RAW_E.
9766 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9767 undefined _FP_UNPACK_RAW_EP.
9768 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9769 undefined _FP_PACK_RAW_E.
9770 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9771 undefined _FP_PACK_RAW_EP.
9772
d9ac82d0
UD
9773 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9774 _FP_FRAC_COPY_2.
9775 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9776 _FP_FRAC_COPY_4.
37002cbc
JJ
9777
97782007-04-16 Uros Bizjak <ubizjak@gmail.com>
9779 Jakub Jelinek <jakub@redhat.com>
9780
9781 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9782 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
9783 this case.
9784 * soft-fp/op-common.h (FP_TRUNC): Ditto.
9785
002f0b0b
JJ
97862007-05-03 Jakub Jelinek <jakub@redhat.com>
9787
9788 * math/test-misc.c (main): Add tests for rounding long double
9789 values close to smallest double denormalized value to double.
9790
97912007-04-30 Joseph Myers <joseph@codesourcery.com>
9792
9793 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9794 condition for truncating to 0. Set sticky bit for such
9795 truncation.
9796
57433ede
UD
97972007-05-02 Jakub Jelinek <jakub@redhat.com>
9798
9799 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9800 fixed length array for ignore.
9801
c01c2455
UD
98022007-04-30 Ulrich Drepper <drepper@redhat.com>
9803
9804 [BZ #4438]
9805 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9806 stack for large precisions.
1cb04337
UD
9807 * stdio-common/test-vfprintf.c (main): Add test for large
9808 precision.
c01c2455 9809
37f02b1d
UD
98102007-04-30 Jakub Jelinek <jakub@redhat.com>
9811
b866373d
UD
9812 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9813 for exponent 0.
9814 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9815
37f02b1d
UD
9816 [BZ #4439]
9817 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9818 account in the size check.
9819 * resolv/tst-inet_ntop.c: New test.
9820 * resolv/Makefile (tests): Add tst-inet_ntop.
9821
7ecfbd38
UD
98222007-04-30 Ulrich Drepper <drepper@redhat.com>
9823 Jakub Jelinek <jakub@redhat.com>
9824
9825 [BZ #4349]
9826 * malloc/malloc.c: Keep separate list for first blocks on the bin
9827 lists with a given size. This helps skipping over list elements
9828 we know won't fit in two places.
9829 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9830
e53f0f51
UD
98312007-04-28 Ulrich Drepper <drepper@redhat.com>
9832
9833 [BZ #4102]
9834 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9835 label to Teredo tunnel addresses 2001://32.
9836
109f51f2
UD
98372007-04-27 Ulrich Drepper <drepper@redhat.com>
9838
762422d1
UD
9839 * locale/programs/ld-collate.c (collate_read): Allow order_start
9840 after copy.
9841
61d5a67f
UD
9842 * locale/programs/ld-collate.c (collate_read): Fix printing of
9843 error message.
9844
9845 [BZ #3213]
9846 * locale/C-translit.h.in: Add entry for U2044.
9847
109f51f2
UD
9848 [BZ #4342]
9849 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9850 hexa-decimal floats without exponent.
9851 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9852
ec08f13d
UD
98532007-04-25 Ulrich Drepper <drepper@redhat.com>
9854
9855 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9856 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9857 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9858 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9859 GLIBC_2.6.
bce20b9a
UD
9860 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9861 Add sched_getcpu.
ec08f13d 9862
41967e1c
JJ
98632007-04-25 Jakub Jelinek <jakub@redhat.com>
9864
9865 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9866 of 0 after the out_fail label.
9867
ba508da3
UD
98682007-04-25 Ulrich Drepper <drepper@redhat.com>
9869
9870 [BZ #4406]
109f51f2 9871 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
9872 * iconv/iconv_open.c (iconv_open): Adjust comment.
9873
9c8d03d9
JJ
98742007-04-25 Jakub Jelinek <jakub@redhat.com>
9875
9876 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9877 version.
9878
2f1687b9
UD
98792007-04-23 Jakub Jelinek <jakub@redhat.com>
9880
9881 [BZ #4381]
9882 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9883 alignment of buffer and tmp_buffer.
9884 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9885 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9886 alignment of buffer.
9887 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
9888 bigger than INT_MAX.
9889 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
9890 h_errnop arguments. Fail if buflen is too small.
9891 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9892
b64a9db8
JJ
98932007-04-23 Jakub Jelinek <jakub@redhat.com>
9894
9895 [BZ #4405]
9896 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9897 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
9898
4d3144c9
RM
98992007-04-22 Roland McGrath <roland@redhat.com>
9900
9901 * elf/elf.h (NT_PRXFPREG): New macro.
9902
767b40bf
AJ
99032007-04-19 Andreas Jaeger <aj@suse.de>
9904
9905 [BZ #3905]
9906 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9907 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9908 Added.
9909
2592d1ec
UD
99102007-04-19 Ulrich Drepper <drepper@redhat.com>
9911
9912 * include/sys/mman.h: Mark madvise hidden.
d07d044e 9913 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 9914
7ab174ed
UD
99152007-04-06 Jakub Jelinek <jakub@redhat.com>
9916
9917 * nis/nis_domain_of.c (__nis_domain_of): New function.
9918 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9919 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9920 * nis/nis_call.c (rec_dirsearch): Likewise.
9921 (first_shoot): Likewise. Remove search_parent_first argument.
9922 (struct nis_server_cache): Rename search_parent_first field
9923 to search_parent.
9924 (nis_server_cache_search, nis_server_cache_add): Rename
9925 search_parent_first argument to search_parent.
9926 (__nisfind_server): Likewise. If search_parent, call
9927 __nis_domain_of.
9928
b17c265f
UD
99292007-04-18 Ulrich Drepper <drepper@redhat.com>
9930
9931 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9932
b7674b11
UD
99332007-04-17 Ulrich Drepper <drepper@redhat.com>
9934
9935 [BZ #4368]
9936 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9937
faf3ad69
UD
99382007-04-16 Ulrich Drepper <drepper@redhat.com>
9939
9940 [BZ #4364]
9941 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9942
c14f245c
UD
99432007-04-15 Jakub Jelinek <jakub@redhat.com>
9944
9945 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9946 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9947 current number of locales in SUPPORTED.
9948 (create_archive): Initialize serial.
9949 (enlarge_archive): Preserve aliases rather than duplicating
9950 their locrecs.
9951
d40e67f5
UD
99522007-04-13 Jakub Jelinek <jakub@redhat.com>
9953
993a5d66
UD
9954 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9955 after _IO_un_link, not before it.
9956
d40e67f5
UD
9957 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9958 special case handling when wcp == wstartp + 1. Fix a comment typo.
9959 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9960
0fca3153
UD
99612007-03-30 Jakub Jelinek <jakub@redhat.com>
9962
9963 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9964 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9965 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9966 Remove __THROW.
9967 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9968 _IO_file_xsgetn_maybe_mmap): Likewise.
9969 * libio/oldfileops.c (old_do_write): Likewise.
9970 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9971 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9972 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9973 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9974 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9975 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9976 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9977 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9978 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9979 _IO_file_underflow, _IO_file_underflow_mmap,
9980 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9981 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9982 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9983 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9984 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9985 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9986 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9987 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9988 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9989 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9990 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9991 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9992 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9993 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9994 _IO_adjust_column_internal, _IO_default_uflow_internal,
9995 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9996 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9997 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9998 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9999 _IO_file_close_it_internal, _IO_file_underflow_internal,
10000 _IO_file_overflow_internal, _IO_file_attach_internal,
10001 _IO_file_fopen_internal, _IO_file_sync_internal,
10002 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10003 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10004 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10005 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10006 _IO_seekpos_unlocked): Likewise.
10007 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10008 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10009
07358add
JJ
100102007-04-16 Jakub Jelinek <jakub@redhat.com>
10011
10012 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10013 argument in xmalloc size computation.
10014
7a82b74f
UD
100152007-04-01 Jakub Jelinek <jakub@redhat.com>
10016
10017 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10018 math_opt_barrier and math_force_eval macros.
10019
3e336a87
UD
100202007-03-27 Jakub Jelinek <jakub@redhat.com>
10021
10022 [BZ #3306]
10023 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10024 * sysdeps/i386/fpu/math_private.h: New file.
10025 * sysdeps/x86_64/fpu/math_private.h: New file.
10026 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10027 math_force_eval macros. Use "+m" constraint on asm rather than
10028 "=m" and "m".
10029 * math/s_nextafter.c (__nextafter): Likewise.
10030 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10031 Likewise.
10032 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10033 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10034 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10035 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10036 math_opt_barrier and math_force_eval macros.
10037 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10038 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10039 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10040 (__nexttoward): Use math_opt_barrier and
10041 math_force_eval macros. Use "+m" constraint on asm rather than
10042 "=m" and "m". Only use asm to force double result if
10043 FLT_EVAL_METHOD is 2.
10044 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10045 (__nexttowardf): Use math_opt_barrier and
10046 math_force_eval macros. Use "+m" constraint on asm rather than
10047 "=m" and "m". Only use asm to force double result if
10048 FLT_EVAL_METHOD is not 0.
10049 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10050 (__nexttowardf): Use math_opt_barrier and
10051 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10052 x to float using asm.
10053 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10054 (__nldbl_nexttowardf): Use math_opt_barrier and
10055 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10056 x to float using asm.
10057 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10058 (__nexttowardf): Use math_opt_barrier and math_force_eval
10059 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10060 * math/bug-nextafter.c (zero, inf): New variables.
10061 (main): Add new tests.
10062 * math/bug-nexttoward.c (zero, inf): New variables.
10063 (main): Add new tests.
10064
a8c79c40
UD
100652007-03-22 Jakub Jelinek <jakub@redhat.com>
10066
10067 [BZ #3427]
10068 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10069 exceptions both in SW and MXCSR.
10070 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10071 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10072 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10073 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10074 in MXCSR if SSE is available.
10075 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10076 and ldsodefs.h.
10077 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10078 Fix comment typo.
10079 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10080 Return 0 rather than 1.
10081 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10082 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10083 * math/test-fenv.c (feholdexcept_tests): New function.
10084 (main): Call it.
10085
100862007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10087
10088 [BZ #3427]
10089 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10090 in SW.
10091
30a3aa75
JJ
100922007-04-13 Jakub Jelinek <jakub@redhat.com>
10093
10094 [BZ #4344]
10095 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10096 Reported by David Anderson <davea42@earthlink.net>.
10097
75587bfe
UD
100982007-04-07 Ulrich Drepper <drepper@redhat.com>
10099
10100 * posix/sys/wait.h: Remove unnecessary forward declaration.
10101
88fa1769
JJ
101022007-04-05 Jakub Jelinek <jakub@redhat.com>
10103
10104 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10105 with obj->do_servers after first_shoot.
10106
eab1bdfb
UD
101072007-04-03 Ulrich Drepper <drepper@redhat.com>
10108
10109 * posix/Makefile (routines): Add sched_cpucount.
10110 (tests): Add tst-cpucount.
10111 * posix/sched_cpucount.c: New file.
10112 * posix/tst-cpucount.c: New file.
10113 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
10114 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
10115 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10116 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 10117
9700b039
UD
101182007-03-27 Jakub Jelinek <jakub@redhat.com>
10119
10120 * posix/fnmatch.c (STRUCT): Define.
10121 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10122 * posix/fnmatch_loop.c (struct STRUCT): New type.
10123 (FCT): Add ends argument. If ends != NULL and normal * is
10124 seen in the pattern, store current pattern and string pointers
10125 and return. Adjust recursive calls.
10126 (EXT): Adjust FCT callers.
10127 (STRUCT): Undef at the end of the file.
10128 * posix/Makefile (tests): Add tst-fnmatch2.
10129 * posix/tst-fnmatch2.c: New test.
10130
d64e9790
JJ
101312007-04-01 Jakub Jelinek <jakub@redhat.com>
10132
933dfe7b
JJ
10133 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10134 and 1 on failure.
10135
d64e9790
JJ
10136 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10137 Change last argument to unsigned int.
10138
e1f0c5bc
UD
101392007-03-23 Jakub Jelinek <jakub@redhat.com>
10140
10141 * scripts/check-local-headers.sh: Filter out sys/capability.h.
10142
101432007-03-22 Jakub Jelinek <jakub@redhat.com>
10144
10145 * config.h.in (HAVE_LIBCAP): Add.
10146 * nscd/selinux.h: Include sys/capability.h rather than non-existent
10147 sys/capabilities.h.
10148 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10149 free_caps. Cast away const from 4th cap_set_flag argument.
10150
4e87573f
UD
101512007-03-26 Ulrich Drepper <drepper@redhat.com>
10152
10153 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10154 GLIBC_2.6.
10155 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10156 Add sync_file_range.
10157 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10158
fa6e3bc3
UD
101592007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
10160
10161 * sysdeps/powerpc/bits/atomic.h
10162 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10163 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10164 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10165 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10166 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10167 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10168 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10169 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10170 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10171 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10172 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10173 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10174 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10175 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10176 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10177 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10178 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10179 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10180 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10181 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10182
101832007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
10184
10185 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10186 (__cache_line_size): Define the variable here. Add
10187 attribute_hidden, remove weak_extern.
10188 (__libc_start_main): Set __cache_line_size
10189 unconditionally.
10190 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10191 (__cache_line_size): Define the variable here. Add
10192 attribute_hidden, remove weak_extern.
10193 (DL_PLATFORM_AUXV): Set __cache_line_size
10194 unconditionally.
10195 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10196 weak_extern, add attribute_hidden.
10197 (__elf_machine_runtime_setup): Assume __cache_line_size is always
10198 defined in ld.so.
10199 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10200 definition.
10201 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10202
0479e581
JJ
102032007-03-26 Jakub Jelinek <jakub@redhat.com>
10204
10205 [BZ #4276]
10206 * timezone/africa: Update from tzdata2007d.
10207 * timezone/asia: Likewise.
10208 * timezone/australasia: Likewise.
10209 * timezone/backward: Likewise.
10210 * timezone/europe: Likewise.
10211 * timezone/iso3166.tab: Likewise.
10212 * timezone/leapseconds: Likewise.
10213 * timezone/northamerica: Likewise.
10214 * timezone/southamerica: Likewise.
10215 * timezone/zone.tab: Likewise.
10216
10217 * timezone/private.h: Update from tzcode2007d.
10218 * timezone/zdump.c: Likewise.
10219 * timezone/zic.c: Likewise.
10220
697d37b1
JJ
102212007-03-21 Jakub Jelinek <jakub@redhat.com>
10222
10223 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10224 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10225 variables.
10226 (nis_server_cache_search, nis_server_cache_add): New functions.
10227 (__nisfind_server): Use them. Add dbp and flags argument, if
10228 call __nisbind_create.
10229 (__nisbind_create): Add server_used and current_ep arguments,
10230 only call __nis_findfastest if server_used is ~0.
10231 (__do_niscall2, __prepare_niscall): Adjust callers.
10232 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10233 ckey_cache_euid, ckey_cache_lock): New variables.
10234 (get_ckey): New function.
10235 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10236 __pmap_getnisport. Save __pmap_getnisport result in
10237 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
10238 key.
10239 * nis/nis_lookup.c (nis_lookup): Likewise.
10240 * nis/nis_table.c (nis_list): Likewise.
10241 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10242 prototypes.
10243
10244 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10245 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10246 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10247 _nss_nisplus_getservbyport_r): Likewise.
10248 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10249 _nss_nisplus_getnetbyaddr_r): Likewise.
10250 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10251 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10252 _nss_nisplus_getntohost_r): Likewise.
10253 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10254 _nss_nisplus_getrpcbynumber_r): Likewise.
10255
06029c20
JJ
102562007-03-20 Jakub Jelinek <jakub@redhat.com>
10257
371f84a4
JJ
10258 * configure.in (libc_cv_gnu89_inline): Only do compile test.
10259 * configure: Rebuilt.
10260
06029c20
JJ
10261 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10262 bit-fields.
10263 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10264
102652006-06-07 Joseph Myers <joseph@codesourcery.com>
10266
10267 [BZ #2831]
10268 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10269 bit-fields.
10270
addc8335
UD
102712007-03-18 Jakub Jelinek <jakub@redhat.com>
10272
10273 * nscd/gai.c: Include alloca.h.
10274 (__libc_use_alloca): Define.
10275
b037a293
UD
102762007-03-16 Jakub Jelinek <jakub@redhat.com>
10277
965cba04
UD
10278 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10279 smaller scopes.
10280 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10281 (DL_DST_REQUIRED): Adjust user.
10282
10283 * include/dlfcn.h (struct link_map): New forward decl.
10284
10285 * inet/getnameinfo.c: Include stddef.h.
10286 (getnameinfo): Use offsetof.
10287
10288 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10289
10290 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10291
10292 * string/strerror_l.c: Include stdlib.h.
10293
b037a293
UD
10294 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10295 * config.make.in (gnu89-inline-CFLAGS): New variable.
10296 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10297 -std=gnu99.
10298 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10299 * argp/argp.h: Use it.
10300 * bits/mathinline.h: Likewise.
10301 * bits/sigset.h: Likewise.
10302 * bits/string.h: Likewise.
10303 * ctype/ctype.h: Likewise.
10304 * hurd/hurd.h: Likewise.
10305 * hurd/hurd/fd.h: Likewise.
10306 * hurd/hurd/port.h: Likewise.
10307 * hurd/hurd/signal.h: Likewise.
10308 * hurd/hurd/threadvar.h: Likewise.
10309 * hurd/hurd/userlink.h: Likewise.
10310 * io/sys/stat.h: Likewise.
10311 * libio/bits/stdio.h: Likewise.
10312 * libio/bits/stdio2.h: Likewise.
10313 * mach/lock-intern.h: Likewise.
10314 * mach/mach/mig_support.h: Likewise.
10315 * math/bits/cmathcalls.h: Likewise.
10316 * posix/bits/unistd.h: Likewise.
10317 * socket/bits/socket2.h: Likewise.
10318 * stdlib/bits/stdlib.h: Likewise.
10319 * stdlib/stdlib.h: Likewise.
10320 * string/argz.h: Likewise.
10321 * string/bits/string2.h: Likewise.
10322 * string/bits/string3.h: Likewise.
10323 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10324 * sysdeps/generic/inttypes.h: Likewise.
10325 * sysdeps/generic/machine-lock.h: Likewise.
10326 * sysdeps/generic/machine-sp.h: Likewise.
10327 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10328 * sysdeps/i386/i486/bits/string.h: Likewise.
10329 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10330 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10331 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10332 * sysdeps/mach/i386/machine-lock.h: Likewise.
10333 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10334 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10335 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10336 * sysdeps/s390/bits/string.h: Likewise.
10337 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10338 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10339 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10340 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10341 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10342 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10343 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10344 * wcsmbs/bits/wchar2.h: Likewise.
10345 * wcsmbs/wchar.h: Likewise.
10346 * stdlib/gmp.h: Likewise. Include <features.h> to get
10347 __extern_inline definition.
10348
6b2665f5
UD
103492007-03-15 Jakub Jelinek <jakub@redhat.com>
10350
b037a293
UD
10351 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10352 NULL.
10353
6b2665f5
UD
10354 [BZ #3919]
10355 * math/libm-test.inc (log_test): Test -Inf and NaN.
10356 (log10_test, log1p_test, log2_test): Test -Inf.
10357 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10358 FE_INVALID when argument is qNaN.
10359 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10360 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10361 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10362 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10363 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10364 testb $4, %ah and jump if non-zero.
10365 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10366 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10367
44969f17
UD
10368 [BZ #4101]
10369 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10370 ancestors with the same depths.
10371 Patch by Niels Moeller <nisse@lysator.liu.se>.
10372 (filter_doc): Don't crash if argp is NULL.
10373 * argp/Makefile (tests): Add tst-argp2.
10374 * argp/tst-argp2.c: New test.
10375
05eb8975
UD
10376 [BZ #4130]
10377 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10378 open_not_cancel_2.
10379 (updwtmp_file): Likewise.
10380
6cb988fa
UD
10381 [BZ #4181]
10382 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10383 (inet6_opt_append): Don't check extlen is big enough if extbuf
10384 is NULL.
10385 (inet6_opt_finish): Likewise.
10386 * inet/Makefile (tests): Add test-inet6_opt.
10387 * inet/test-inet6_opt.c: New test.
10388
10389 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10390 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10391 NLMSG_ERR. Instead use a page sized buffer.
10392 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10393 buffer.
10394
aea1d19e
RH
103952007-03-14 Richard Henderson <rth@redhat.com>
10396
b6df547c
RH
10397 * sysdeps/alpha/fpu/s_llround.c: New file.
10398 * sysdeps/alpha/fpu/s_llroundf.c: New file.
10399 * sysdeps/alpha/fpu/s_lround.c: New file.
10400 * sysdeps/alpha/fpu/s_lroundf.c: New file.
10401 * sysdeps/alpha/fpu/s_round.c: New file.
10402 * sysdeps/alpha/fpu/s_roundf.c: New file.
10403 * sysdeps/alpha/fpu/s_trunc.c: New file.
10404 * sysdeps/alpha/fpu/s_truncf.c: New file.
10405
aea1d19e
RH
10406 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10407 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10408 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10409 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10410 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10411 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10412
10413 * sysdeps/alpha/fpu/s_fmax.S: New file.
10414 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10415 * sysdeps/alpha/fpu/s_fmin.S: New file.
10416 * sysdeps/alpha/fpu/s_fminf.S: New file.
10417 * sysdeps/alpha/fpu/s_isnan.c: New file.
10418 * sysdeps/alpha/fpu/s_isnanf.c: New file.
10419 * sysdeps/alpha/fpu/s_llrint.c: New file.
10420 * sysdeps/alpha/fpu/s_llrintf.c: New file.
10421 * sysdeps/alpha/fpu/s_lrint.c: New file.
10422 * sysdeps/alpha/fpu/s_lrintf.c: New file.
10423 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10424 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10425
10426 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10427 (__fdimf, fdimf, __fdim, fdim): Remove.
10428 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10429 (__isnanf, __isnan, __isnanl): New.
10430
9e43b50d
RH
104312007-03-13 Richard Henderson <rth@redhat.com>
10432
10433 * sysdeps/ieee754/ldbl-128/Makefile: New file.
10434
62789da3
RH
104352007-03-13 Richard Henderson <rth@redhat.com>
10436
10437 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10438 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10439 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10440 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10441 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10442 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10443
47dbe62b
RH
104442007-03-13 Richard Henderson <rth@redhat.com>
10445
37f40235 10446 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
10447 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10448 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10449 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10450 Move to dl-auxv.h; initialize instead of extern weak.
10451 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10452 weak symbol.
10453 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10454 Extern instead of initialized.
10455
b8097bed
RH
104562007-03-13 Richard Henderson <rth@redhat.com>
10457
10458 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10459 __sigsuspend_nocancel.
10460
6bf4a686
UD
104612007-03-06 Ulrich Drepper <drepper@redhat.com>
10462
10463 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10464 172.16/12 address range.
10465
0b3b1a0c
UD
104662007-03-02 Jakub Jelinek <jakub@redhat.com>
10467
10468 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10469 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10470 message.
10471
8f3edfee
UD
104722007-03-01 Jakub Jelinek <jakub@redhat.com>
10473
c1c5e654 10474 [BZ #4069]
8f3edfee
UD
10475 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10476 earlier.
10477 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10478
10479 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10480 for x qNaN and y either +-inf or non-integer value.
10481 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10482 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10483 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10484
245a1481
UD
104852007-02-10 Mike Frysinger <vapier@gentoo.org>
10486
10487 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10488 from sysdep_headers.
10489
c217692b
UD
104902007-02-28 Jakub Jelinek <jakub@redhat.com>
10491
10492 * time/tzfile.c (find_transition): Instead of a linear search try to
10493 guess the transition index, use a linear search if the result is at
10494 most 10 transitions away from the guess or binary search otherwise.
10495
fe64626c
JJ
104962007-02-27 Jakub Jelinek <jakub@redhat.com>
10497
10498 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10499 memory reallocation.
10500
0f7769f7
UD
105012007-02-21 Ulrich Drepper <drepper@redhat.com>
10502
621c133d
UD
10503 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10504 and fix some typos.
10505 Optimize use of TOLOWER.
9cf147d8 10506
cdfd61e1
UD
10507 [BZ #3325]
10508 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10509 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10510 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10511
8889e7aa
UD
10512 [BZ #3458]
10513 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10514 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10515
63a2f305
UD
10516 [BZ #4076]
10517 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10518 (open_dir_stream): Likewise.
10519 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 10520 * io/bug-ftw5.c: New file.
63a2f305 10521
c8703f88
UD
10522 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10523 * nscd/servicescache.c (cache_addserv): Likewise.
10524
10525 * nscd/grpcache.c (cache_addgr): In case a record changed on
10526 refresh, adjust key_copy.
10527
61705e06
UD
10528 [BZ #4074]
10529 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10530 refresh, adjust key_copy.
10531
0f7769f7
UD
10532 [BZ #4070]
10533 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 10534 special cases.
8889e7aa 10535 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 10536
3979024a
UD
105372007-02-19 Ulrich Drepper <drepper@redhat.com>
10538
4c02bf1a
UD
10539 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10540 optimization.
10541
3979024a
UD
10542 * stdio-common/vfscanf.c: Small cleanups throughout.
10543
821d3e70
UD
105442007-02-18 Ulrich Drepper <drepper@redhat.com>
10545
2484468b
UD
10546 [BZ #3325]
10547 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10548 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10549 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10550 Patch by Jared Casper <jaredcasper@gmail.com>.
10551
858ee15d
UD
10552 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10553 * sysdeps/unix/opendir.c: Likewise.
10554 * sysdeps/unix/readdir.c: Likewise.
10555
ecb72bd5
UD
10556 [BZ #2211]
10557 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10558 point numbers.
10559 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10560
ac2ca022
UD
10561 * stdio-common/vfscanf.c: Fix problems in width accounting.
10562 * stdio-common/tst-sscanf.c (double_tests): New tests.
10563 (main): Hook them up.
10564
e9bb5246 10565 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 10566 More simplifications of floating-point reader.
e9bb5246 10567
821d3e70
UD
10568 * stdio-common/Makefile (tests): Add tst-swscanf.
10569 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10570 testing.
10571 * stdio-common/tst-swscanf.c: New file.
10572
07fb5185
UD
105732007-02-17 Ulrich Drepper <drepper@redhat.com>
10574
9138cc0b
UD
10575 [BZ #2633]
10576 * libio/stdio.h: Define struct _IO_FILE in global namespace.
10577 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10578 Remove using for __jmp_buf_tag.
10579 * locale/locale.h (struct lconv): Also define in std namespace.
10580 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10581
6818d837
UD
10582 [BZ #3842]
10583 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10584 using __libc_enable_secure.
10585
15c4b5a4
UD
10586 [BZ #3818]
10587 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10588
5e9e9c14
UD
10589 [BZ #3745]
10590 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10591 of names for ellipsises.
10592
07fb5185
UD
10593 [BZ #3348]
10594 * malloc/memusage.sh: Cleanups.
10595 * debug/xtrace.sh: Quoting and trap changes.
10596
8c6d1043
UD
105972007-02-16 Ulrich Drepper <drepper@redhat.com>
10598
07fb5185
UD
10599 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10600
93e66914 10601 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
10602 * locale/iso-4217.def: Define RSD, remove CSD.
10603
ad0b348c
UD
10604 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10605 and 64-bit operations.
10606
10607 [BZ #4040]
10608 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10609 16-bit operations.
10610
8c6d1043
UD
10611 * nscd/nscd.c (parse_opt): One more conversion to use send instead
10612 of writev.
10613
987f54c6
UD
106142007-02-15 Ulrich Drepper <drepper@redhat.com>
10615
b3715c05
UD
10616 [BZ #3991]
10617 * assert/assert.h (assert): Simplify.
10618 (assert_perror): Likewise.
10619 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10620
6eea8e0d
UD
10621 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10622 reqdata.
10623
987f54c6
UD
10624 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10625 change: don't pass NULL in place of an integer.
10626
3dc08a7e
UD
106272007-02-02 Bruno Haible <bruno@clisp.org>
10628
06c17c78
UD
10629 [BZ #3954]
10630 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10631 Add mapping for U+327E.
10632 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10633 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10634 mapping of 0xD9 0xE8.
10635 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10636 mapping of U+327E.
10637 Reported by Jungshik Shin <jungshik@google.com>.
10638
10639 [BZ #3955]
3dc08a7e
UD
10640 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10641 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10642 Reported by Jungshik Shin <jungshik@google.com>.
10643
a810e68c
UD
106442007-02-14 Ulrich Drepper <drepper@redhat.com>
10645
10646 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10647 byte variants.
10648
10649 [BZ #4040]
10650 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10651 byte variants. Patch mostly be tom@tommay.net.
10652
05f135ba
UD
106532007-02-14 Jakub Jelinek <jakub@redhat.com>
10654
10655 [BZ #3996]
10656 * posix/glob.c (attribute_hidden): Define if not defined.
10657 (glob): Unescape dirname, filename or username when needed and not
10658 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10659 is NULL. Handle unescaped [ in pattern without closing ].
10660 Don't pass GLOB_CHECK down to recursive glob for directories.
10661 (__glob_pattern_type): New function.
10662 (__glob_pattern_p): Implement using __glob_pattern_type.
10663 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10664 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10665 Remove unreachable code.
10666 * posix/globtest.sh: Add a couple of new tests.
10667
2f699967
UD
106682007-02-13 Ulrich Drepper <drepper@redhat.com>
10669
10670 * po/ru.po: Update from translation team.
10671
3a7cd5b4
JJ
106722007-02-12 Jakub Jelinek <jakub@redhat.com>
10673
10674 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10675 to the list of i486+ CPUs.
10676 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10677
2f978feb
UD
106782007-02-12 Ulrich Drepper <drepper@redhat.com>
10679
10680 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10681 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10682 references.
10683
2bbb7d5b
UD
106842007-02-09 Ulrich Drepper <drepper@redhat.com>
10685
5ed61e0f
UD
10686 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10687
2bbb7d5b
UD
10688 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10689 * resolv/res_mkquery.c: Define __res_nopt.
10690 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10691 try adding EDNS0 record.
10692 * resolv/res_send.c (send_dg): If request failed with FORMERR and
10693 EDNS0 record was send make sure we don't try it again.
10694 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10695 * include/resolv.h: Declare __res_nopt.
10696
00458b5b
UD
106972007-02-08 Jakub Jelinek <jakub@redhat.com>
10698
10699 [BZ #3944]
10700 * time/strptime_l.c (__strptime_internal): Set have_mon for
10701 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
10702 have been computed from tm_yday and tm_year. Don't crash
10703 in day_of_the_week or day_of_the_year if not have_mon
10704 and tm_mon contains bogus value.
10705 * time/Makefile (tests): Add tst-strptime3.
10706 * time/tst-strptime3.c: New test.
10707
784aacea
UD
107082007-02-05 Jakub Jelinek <jakub@redhat.com>
10709
10710 [BZ #3957]
10711 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10712 bit for RE_HAT_LISTS_NOT_NEWLINE.
10713 (build_charclass_op): Remove bogus comment.
10714 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10715 * posix/bug-regex27.c: New test.
10716 * posix/bug-regex28.c: New test.
10717
bf7a2463
UD
107182007-02-03 Ulrich Drepper <drepper@redhat.com>
10719
10720 * po/sv.po: Update from translation team.
10721
f2ccf983
UD
107222007-02-02 Ulrich Drepper <drepper@redhat.com>
10723
10724 * nscd/nscd_helper.c (open_socket): Minor size optimization.
10725
73f50d5a
UD
107262007-02-02 Jakub Jelinek <jakub@redhat.com>
10727
10728 * include/locale.h (__uselocale): Add libc_hidden_proto.
10729 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10730
f6bf9e59
JJ
10731 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10732 gettimeofday.
10733
4a44ce79
UD
107342007-02-01 Ulrich Drepper <drepper@redhat.com>
10735
10736 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10737 returning.
10738 (PTR_DEMANGLE): Real definition now that it's not the same as
10739 PRT_MANGLE anymore.
10740 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10741
10742 * string/strerror_l.c: New file.
10743 * string/Makefile (routines): Add strerror_l.
10744 * string/string.h: Declare strerror_l.
10745 * string/Versions: Export strerror_l for GLIBC_2.6.
10746
58a2d52e
UD
107472007-01-31 Ulrich Drepper <drepper@redhat.com>
10748
10749 * nscd/nscd_helper.c (open_socket): Now takes request type and key
10750 as parameter. Construct request record. Try sending request
10751 before the first poll use, it usually succeeds. Adjust all
10752 callers.
10753 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 10754 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 10755
1a77d37f
JJ
107562007-01-31 Jakub Jelinek <jakub@redhat.com>
10757
10758 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10759 from return value.
10760 * nscd/nscd_helper.c: Include string.h.
10761 (__nscd_cache_search): Remove const qualifier from return value.
10762 On strict alignment architectures check hash entry and data head
10763 alignment.
10764 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10765 mmapped data during GC cycle contains garbage. If
10766 __nscd_drop_map_ref fails, decrement mapped->counter when returning
10767 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10768 dropped to 0.
10769 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10770 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10771 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10772 * nscd/nscd_getai.c (__nscd_getai): Likewise.
10773 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10774
ee314200
UD
107752007-01-30 Ulrich Drepper <drepper@redhat.com>
10776
10777 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10778
14c8bf3b
UD
107792007-01-26 Ulrich Drepper <drepper@redhat.com>
10780
10781 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10782 names not numbers in cfi_*.
10783
d2708e67
AJ
107842007-01-26 Andreas Jaeger <aj@suse.de>
10785
10786 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 10787 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
10788 Correct values of PER_HPUX and PER_OSF4.
10789
7fbc8784
UD
107902007-01-24 Ulrich Drepper <drepper@redhat.com>
10791
8aaf53ee 10792 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
10793 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10794 * malloc/mtrace.c: Revert last change.
10795 * posix/wordexp.c: Likewise.
10796
9d6cde3d
UD
107972007-01-24 Jakub Jelinek <jakub@redhat.com>
10798
10799 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10800 and __geode__ to the list of i486+ CPUs.
10801 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10802
c1f0486a
UD
108032007-01-23 Ulrich Drepper <drepper@redhat.com>
10804
10805 * stdio-common/_itoa.c: Include <limits.h>.
10806 * stdio-common/_itowa.c: Likewise.
10807
6cae3957
UD
108082007-01-22 Ulrich Drepper <drepper@redhat.com>
10809
765bbb24
UD
10810 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10811 platforms.
10812 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10813 64-bit platforms.
10814 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10815 possible.
10816 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10817 if possible.
10818
6cae3957
UD
10819 [BZ #3902]
10820 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10821 * stdio-common/Makefile (tests): Add bug17.
10822 * stdio-common/bug17.c: New file.
10823
ddaafd04
UD
108242007-01-19 Ulrich Drepper <drepper@redhat.com>
10825
10826 * iconvdata/brf.c: New file.
439201de
UD
10827 * iconvdata/testdata/BRF: New file.
10828 * iconvdata/testdata/BRF..UTF8: New file.
10829 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
10830 * iconvdata/Makefile: Add rules to build BRF.
10831 * iconvdata/TESTS: Add BRF entry.
10832 * iconvdata/gconv-modules: Likewise.
10833 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 10834
9e6e344e
UD
108352007-01-18 Anton Nikishaev <anton.nik@gmail.com>
10836
10837 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10838 type `long long int', not `long int'.
10839 (wcstoq): Likewise.
10840
299f7b0f
UD
108412007-01-18 Ulrich Drepper <drepper@redhat.com>
10842
10843 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10844 of values on 64-bit platforms which are too large.
10845
cd8127cc
JJ
108462007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
10847 Joe Kerian <jkerian@us.us.ibm.com>
10848
10849 [BZ #2749]
10850 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10851 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
10852 (__copysignl): Use signbit() for comparison.
10853 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10854 SET_LDOUBLE_WORDS64.
10855
10856 [BZ #2423, #2749]
10857 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10858 (__ceill): Remove calls to fegetround(), fesetround().
10859 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10860 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10861 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10862
b3acfdf7
JJ
108632007-01-17 Jakub Jelinek <jakub@redhat.com>
10864
4a2e03c6
JJ
10865 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10866
b3acfdf7
JJ
10867 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10868
1476bce6
UD
108692007-01-17 Ulrich Drepper <drepper@redhat.com>
10870
10871 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10872 demangle pointer.
10873 * csu/libc-start.c: Likewise.
10874
d78bce1c
UD
108752007-01-16 Ulrich Drepper <drepper@redhat.com>
10876
10877 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10878 really work anyway.
10879
1bd79025
UD
108802007-01-15 Ulrich Drepper <drepper@redhat.com>
10881
000b027e
UD
10882 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
10883 users.
10884 (handle_request): Remove unnecessary tests.
10885
1bd79025
UD
10886 * nscd/cache.c (cache_add): Record the failure to add to the cache.
10887
d68f5d2c
JJ
108882007-01-15 Jakub Jelinek <jakub@redhat.com>
10889
10890 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10891 workbits in semi-raw fraction.
10892
10893 * math/test-misc.c: Add new tests.
10894
108952007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
10896
10897 * math/basic-test.c: Include test-skeleton.c.
10898 (TEST_TRUNC): Define.
10899 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10900 (main): Rename to ...
10901 (do_test): ...this. Run new tests.
10902 (TEST_FUNCTION): Define.
10903
109042006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
10905 Joe Kerian <jkerian@us.us.ibm.com>
10906
10907 [BZ #2749]
10908 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10909 handling for high words.
10910 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10911 and overflow for infinity.
10912
4e35ef2c
UD
109132007-01-15 Ulrich Drepper <drepper@redhat.com>
10914
2a1dea97
UD
10915 * nscd/connections.c (handle_request): Add a __builtin_expect.
10916
9691d83c
UD
10917 * nscd/connections.c (serv2db): Change type into structure which
10918 also says whether this is a request for data. Renamed to
10919 servinfo. All users changed.
10920 (handle_request): Much simpler test whether we should search the cache.
10921
49ee6d79
UD
10922 * nscd/connections.c (handle_request): Fix thinko in selinux test
10923 invocation.
10924
4e35ef2c
UD
10925 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10926 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10927 it before getting dl_load_lock and then relock.
10928 (_dl_lookup_symbol_x): Pass flags to add_dependency.
10929 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10930 case we unlocked the scope.
10931 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10932 _dl_lookup_symbol_x in case we locked the scope.
10933 (_dl_profile_fixup): Likewise.
10934 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10935 set DL_LOOKUP_SCOPE_LOCK.
10936
23691ab2
UD
109372007-01-13 Ulrich Drepper <drepper@redhat.com>
10938
fb453d08
UD
10939 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10940 CFLAGS-getsrvbynpt_r.c.
10941 * nscd/getsrvbynm_r.c: New file.
10942 * nscd/getsrvbypt_r.c: New file.
10943 * nscd/nscd_getserv_r.c: New file.
10944 * nscd/servicescache.c: New file.
10945 * nscd/Makefile (routines): Add nscd_getserv_r.
10946 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10947 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10948 CFLAGS-getsrvbypt_r.c.
10949 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10950 table. Add entries for services database.
10951 * nscd/connections.c (serv2str): Mark as const. Add entries for
10952 services database.
10953 (dbs): Add .reset_res and servdb initialization.
10954 (serv2db): Add entries for services database.
10955 (verify_persistent_db): Accept dbnr == servdb.
10956 (invalidate_cache): Rewrite database name recognition to use a table.
10957 Call res_init() if .reset_res is set for database.
10958 (handle_request): Add code to handle services database.
10959 * nscd/gai.c: Don't define __getservbyname_r.
10960 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10961 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10962 (serv_response_header): Define.
10963 (struct datahead): Add serv_response_header member.
10964 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10965 using table.
10966 * nscd/nscd.conf: Add entries for services database.
10967 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10968 Declare serv_iov_disabled.
10969 Declare addservbyname, readdservbyname, addservbyport, and
10970 readdservbyport.
10971 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
10972 (find_db): Fix error message.
10973 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10974 __nscd_getservbyname_r, and __nscd_getservbyport_r.
10975 * nscd/selinux.c (perms): Add entries for services database.
10976 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10977 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10978
10979 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10980 * nscd/hstcache.c: Likewise.
10981 * nscd/pwdcache.c: Likewise.
10982
b21fa963
UD
10983 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10984 computation of keylen.
10985
23691ab2
UD
10986 * include/string.h: Only redefine strndupa if this is really for
10987 libc code.
10988
8980796b
UD
109892007-01-12 Ulrich Drepper <drepper@redhat.com>
10990
4a4a65f2
UD
10991 * nscd/nscd_gethst_r.c: Minor cleanups.
10992
43397eaf
UD
10993 * nscd/connections.c (handle_request): Check selinux permissions
10994 for all non-admin commands.
10995
038a1a9f
UD
10996 * sysdeps/i386/i486/bits/atomic.h: Define
10997 atomic_compare_and_exchange_val_acq,
10998 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10999 using __sync_* built-ins for gcc >= 4.1.
11000 * sysdeps/x86_64/bits/atomic.h: Likewise.
11001
8980796b
UD
11002 [BZ #3840]
11003 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11004 and .oS.d files.
11005
32c075e1
JJ
110062007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11007
11008 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11009 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11010 (do_test): Check errno and exit(0) if ENOSYS.
11011
110122007-01-11 Jakub Jelinek <jakub@redhat.com>
11013
11014 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11015 thousands separators.
11016 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11017 * stdlib/tst-strtod4.c: New test.
11018
11019 [BZ #3855]
11020 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11021 hexadecimal digit should accept just the initial 0.
11022 * stdlib/tst-strtod2.c (tests): New variable.
11023 (do_test): Run several tests rather than just one.
11024
11bf311e 110252007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 11026
11bf311e
UD
11027 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11028 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 11029
11bf311e 110302007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 11031
11bf311e
UD
11032 * io/fts.c: Make sure fts_cur is always valid after return from
11033 fts_read.
11034 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 11035
11bf311e 110362006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 11037
11bf311e
UD
11038 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11039 (R_MIPS_NUM): Bump by 1.
32c075e1 11040
11bf311e 110412007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 11042
11bf311e
UD
11043 * posix/execvp.c: Include alloca.h.
11044 (allocate_scripts_argv): Renamed to...
11045 (scripts_argv): ... this. Don't allocate buffer here nor count
11046 arguments.
11047 (execvp): Use alloca if possible.
11048 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11049 * posix/tst-vfork3.c: New test.
32c075e1
JJ
11050
110512007-01-03 Ulrich Drepper <drepper@redhat.com>
11052
11053 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 11054 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 11055
11bf311e 110562007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 11057
11bf311e
UD
11058 * posix/getconf.c: Update copyright year.
11059 * nss/getent.c: Likewise.
11060 * iconv/iconvconfig.c: Likewise.
11061 * iconv/iconv_prog.c: Likewise.
11062 * elf/ldconfig.c: Likewise.
11063 * catgets/gencat.c: Likewise.
11064 * csu/version.c: Likewise.
11065 * elf/ldd.bash.in: Likewise.
11066 * elf/sprof.c (print_version): Likewise.
11067 * locale/programs/locale.c: Likewise.
11068 * locale/programs/localedef.c: Likewise.
11069 * nscd/nscd.c (print_version): Likewise.
11070 * debug/xtrace.sh: Likewise.
11071 * malloc/memusage.sh: Likewise.
11072 * malloc/mtrace.pl: Likewise.
11073 * debug/catchsegv.sh: Likewise.
64a0aa0f 11074
11bf311e 110752006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 11076
11bf311e
UD
11077 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11078 attempts.
48576885 11079
11bf311e 110802006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 11081
11bf311e 11082 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 11083
33c6de58
UD
110842006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11085
11086 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11087 blacklist the group till after we look it up.
11088
fc242bef
UD
110892006-12-21 Ulrich Drepper <drepper@redhat.com>
11090
11091 * include/atomic.h (atomic_forced_read): New macro.
11092
11bf311e
UD
110932006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11094
11095 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11096
a12dcecc
UD
110972006-12-19 Jakub Jelinek <jakub@redhat.com>
11098
11bf311e
UD
11099 * nss/getXXbyYY_r.c: Include atomic.h.
11100 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11101 add atomic_write_barrier () in between.
11102
a12dcecc
UD
11103 * stdlib/Makefile (tests): Add tst-makecontext.
11104 * stdlib/tst-makecontext.c: New test.
11105
11106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11107 (__makecontext): Don't realign uc_mcontext.uc_regs.
11108
11bf311e 111092006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 11110
11bf311e
UD
11111 * elf/dl-support.c: Include dl-procinfo.h.
11112 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11113 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11114 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11115 Define.
11116 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11117 hardcoded constants.
11118 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11119 PPC_PLATFORM_* macros for array designators.
594d423a 11120
11bf311e 111212006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 11122
11bf311e
UD
11123 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11124 names to the beginning.
11125 (_dl_powerpc_platforms): Add "power6x".
11126 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11127 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11128 (_DL_PLATFORMS_COUNT): Increase.
11129 (_dl_string_platform): Handle power6x case.
11130 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11131 PPC_FEATURE_POWER6_EXT): Define.
11132 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 11133
5bcba0ed
UD
111342006-12-18 Jakub Jelinek <jakub@redhat.com>
11135
11136 [BZ #3747]
11137 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 11138 [-2^31 .. 2^31) range.
5bcba0ed
UD
11139 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11140 targets.
11141 * stdlib/tst-rand48-2.c: New test.
11142 * stdlib/Makefile (tests): Add tst-rand48-2.
11143
9e1444fc
UD
111442006-12-14 Jakub Jelinek <jakub@redhat.com>
11145
11146 * misc/tst-pselect.c (do_test): Fix sigblock argument.
11147
36775704
UD
111482006-12-14 Ulrich Drepper <drepper@redhat.com>
11149
11150 * misc/tst-pselect.c (do_test): Make sure the helper process is
11151 terminating when the test is aborted.
11152
1e88bd0f
UD
111532006-12-13 Ulrich Drepper <drepper@redhat.com>
11154
11bf311e
UD
11155 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11156 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11157 Handle relatime mount option.
11158
1e88bd0f
UD
11159 [BZ #2337]
11160 * libio/Makefile (tests): Add tst-setvbuf1.
11161 * libio/tst-setvbuf1.c: New file.
11162
111632006-12-08 Jakub Jelinek <jakub@redhat.com>
11164
11165 [BZ #2337]
11166 * libio/genops.c (__uflow): Fix a typo.
11167 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11168 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
11169 the narrow buffer size.
11170
111712006-11-24 Jakub Jelinek <jakub@redhat.com>
11172
11173 [BZ #2337]
11174 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11175 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11176 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11177 in _flags.
11178 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11179 _IO_wstr_finish): Likewise.
11180 * libio/wmemstream.c (open_wmemstream): Likewise.
11181 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11182 even for wide streams.
11183
11bf311e 111842006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 11185
11bf311e
UD
11186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11187 kernel-features.h.
11188
111892006-12-11 Ulrich Drepper <drepper@redhat.com>
11190
11191 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11192 separators also if no non-zero digits found.
11193 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 11194
d117c1ce
UD
111952006-12-09 Ulrich Drepper <drepper@redhat.com>
11196
f85fb97b
UD
11197 [BZ #3632]
11198 * include/features.h: Fix comment about default value for
11199 _POSIX_C_SOURCE.
11200
11bf311e
UD
11201 [BZ #3664]
11202 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11203 empty parsed strings.
11204 * stdlib/Makefile (tests): Add tst-strtod2.
11205 * stdlib/tst-strtod2.c: New file.
11206
11207 [BZ #3673]
11208 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11209 computation.
11210 * stdlib/Makefile (tests): Add tst-atof2.
11211 * stdlib/tst-atof2.c: New file.
11212
11213 [BZ #3674]
11214 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11215 correctly if removing trailing zero of hex-float.
11216 * stdlib/Makefile (tests): Add tst-atof1.
11217 * stdlib/tst-atof1.c: New file.
11218
a822d9f4
UD
112192006-12-09 Jakub Jelinek <jakub@redhat.com>
11220
11bf311e
UD
11221 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11222 Start searching for next comma at p rather than rest.
11223 * misc/Makefile (tests): Add tst-mntent2.
11224 * misc/tst-mntent2.c: New test.
11225
a822d9f4
UD
11226 * misc/getusershell.c (initshells): Check for integer overflows.
11227 Make strings buffer one bigger as fgets always succeeds when second
11228 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 11229 / as shell.
f0d5e1f6 11230
11bf311e 112312006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 11232
11bf311e
UD
11233 * malloc/memusage.c: Handle realloc with new size of zero and
11234 non-NULL pointer correctly.
11235 (me): Really write first record twice.
11236 (struct entry): Make format bi-arch safe.
11237 (dest): Write out more realloc statistics.
11238 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 11239
11bf311e 112402006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 11241
11bf311e 11242 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 11243
f0d5e1f6
UD
112442006-12-04 Jakub Jelinek <jakub@redhat.com>
11245
11246 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11247 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11248 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11249 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11250 ENOTTY.
11251 * io/Makefile: Add rules to build and run tst-ttyname_r test.
11252 * io/tst-ttyname_r.c: New test.
11253
11bf311e 112542006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 11255
11bf311e 11256 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 11257
11bf311e 112582006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 11259
11bf311e
UD
11260 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11261 jump table entries.
11262
112632006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
11264
11265 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11266 `clone' function to ensure proper unwinding stop of gdb.
11267 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11268
112692006-12-01 Ulrich Drepper <drepper@redhat.com>
11270
11271 * nscd/nscd.init: Remove obsolete and commented-out -S option
11272 handling.
11273
112742006-11-23 Jakub Jelinek <jakub@redhat.com>
11275
11276 [BZ #3514]
11277 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11278
11279 [BZ #3515]
11280 * manual/string.texi (strtok): Remove duplicate paragraph.
11281
112822006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11283
11284 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11285 libgcc not supporting `rflags' unwinding (register # >= 17).
11286
112872006-11-30 Jakub Jelinek <jakub@redhat.com>
11288
11289 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11290 succeeded.
11291
112922006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
11293 Jakub Jelinek <jakub@redhat.com>
11294 Jan Kratochvil <jan.kratochvil@redhat.com>
11295
11296 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11297 unwind information.
11298 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11299 'restore_rt' even in the 'signal' directory.
11300 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 11301
b1a758f3
UD
113022006-11-27 Jakub Jelinek <jakub@redhat.com>
11303
11304 [BZ #3559]
11305 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
11306 malloc crashed. Don't allocate memory unnecessarily in each
11307 loop.
b1a758f3 11308
11bf311e 113092006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 11310
11bf311e 11311 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 11312
11bf311e 113132006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 11314
11bf311e 11315 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 11316
11bf311e 113172006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 11318
11bf311e
UD
11319 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11320 __sysconf only after having tried to call getgroups32.
36c0a636 11321
11bf311e 113222006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 11323
11bf311e
UD
11324 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11325 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 11326
11bf311e 113272006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 11328
11bf311e
UD
11329 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11330 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11331 (signmask): Add .size directive.
11332 (othermask): Add .type directive.
bef8927a 11333
11bf311e 113342006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 11335
11bf311e 11336 * po/nl.po: Update from translation team.
854d1124 11337
11bf311e 11338 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 11339
11bf311e 113402006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 11341
11bf311e
UD
11342 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11343 to first_unused after parsing :include: file.
5c2af134 11344
32c075e1 113452006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 11346
11bf311e
UD
11347 * timezone/africa: Update from tzdata2006o.
11348 * timezone/antarctica: Likewise.
11349 * timezone/asia: Likewise.
11350 * timezone/australasia: Likewise.
11351 * timezone/backward: Likewise.
11352 * timezone/europe: Likewise.
11353 * timezone/iso3166.tab: Likewise.
11354 * timezone/northamerica: Likewise.
11355 * timezone/southamerica: Likewise.
11356 * timezone/zone.tab: Likewise.
11357
11358 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11359 on machines with 64-bit time_t.
11360
11361 * timezone/checktab.awk: Update from tzcode2006o.
11362 * timezone/ialloc.c: Likewise.
11363 * timezone/private.h: Likewise.
11364 * timezone/scheck.c: Likewise.
11365 * timezone/tzfile.h: Likewise.
11366 * timezone/tzselect.ksh: Likewise.
11367 * timezone/zdump.c: Likewise.
11368 * timezone/zic.c: Likewise.
11369
11370 [BZ #3483]
11371 * elf/ldconfig.c (main): Call setlocale and textdomain.
11372 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11373
11374 [BZ #3480]
11375 * manual/argp.texi: Fix typos.
11376 * manual/charset.texi: Likewise.
11377 * manual/errno.texi: Likewise.
11378 * manual/filesys.texi: Likewise.
11379 * manual/lang.texi: Likewise.
11380 * manual/maint.texi: Likewise.
11381 * manual/memory.texi: Likewise.
11382 * manual/message.texi: Likewise.
11383 * manual/resource.texi: Likewise.
11384 * manual/search.texi: Likewise.
11385 * manual/signal.texi: Likewise.
11386 * manual/startup.texi: Likewise.
11387 * manual/stdio.texi: Likewise.
11388 * manual/sysinfo.texi: Likewise.
11389 * manual/syslog.texi: Likewise.
11390 * manual/time.texi: Likewise.
11391 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11392
11393 [BZ #3465]
11394 * sunrpc/clnt_raw.c: Minimal message improvements.
11395 * sunrpc/pm_getmaps.c: Likewise.
11396 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11397 * nis/nis_print_group_entry.c: Likewise.
11398 * locale/programs/repertoire.c: Likewise.
11399 * locale/programs/charmap.c: Likewise.
11400 * malloc/memusage.sh: Likewise.
11401 * elf/dl-deps.c: Likewise.
11402 * locale/programs/ld-collate.c: Likewise.
11403 * libio/vswprintf.c: Likewise.
11404 * malloc/memusagestat.c: Likewise.
11405 * sunrpc/auth_unix.c: Likewise.
11406 * sunrpc/rpc_main.c: Likewise.
11407 * nscd/cache.c: Likewise.
11408 * locale/programs/repertoire.c: Unify output messages.
11409 * locale/programs/charmap.c: Likewise.
11410 * locale/programs/ld-ctype.c: Likewise.
11411 * locale/programs/ld-monetary.c: Likewise.
11412 * locale/programs/ld-numeric.c: Likewise.
11413 * locale/programs/ld-time.c: Likewise.
11414 * elf/ldconfig.c: Likewise.
11415 * nscd/selinux.c: Likewise.
11416 * elf/cache.c: Likewise.
11417 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11418
5c2af134
UD
11419 [BZ #3451]
11420 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11421 change atomic.
11422 (ceil): Likewise.
11423
11bf311e
UD
114242006-11-10 Jakub Jelinek <jakub@redhat.com>
11425
11426 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11427 if N is one bigger than return value.
11428 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11429 and l1 last arguments, if buf is defined, verify the return value
11430 equals to strlen (buf) and verify no byte beyond passed length
11431 is modified.
11432
114332006-11-10 Ulrich Drepper <drepper@redhat.com>
11434
11435 * po/sv.po: Update from translation team.
11436
37afcf79
UD
114372006-11-09 Ulrich Drepper <drepper@redhat.com>
11438
11439 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11440 noinline attribute.
11441
114422006-11-10 Jakub Jelinek <jakub@redhat.com>
11443
11444 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11445 noinline attribute.
11446
11bf311e
UD
11447 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11448 Use __new_sys_siglist instead of _sys_siglist_internal as
11449 second macro argument.
11450 (_old_sys_siglist): Use declare_symbol_alias macro instead of
11451 strong_alias.
2692deea 11452
11bf311e
UD
114532006-11-09 Ulrich Drepper <drepper@redhat.com>
11454
11455 [BZ #3493]
11456 * posix/unistd.h (sysconf): Remove const attribute.
11457
11458 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11459 temporary or deprecated addresses.
11460 Patch by Sridhar Samudrala <sri@us.ibm.com>.
11461
11462 * string/Makefile (tests): Add tst-strxfrm2.
11463 * string/tst-strxfrm2.c: New file.
11464
114652006-10-09 Jakub Jelinek <jakub@redhat.com>
11466
11467 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11468 rather than r->r_brk.
2692deea
UD
11469
114702006-11-08 Jakub Jelinek <jakub@redhat.com>
11471
11bf311e
UD
11472 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11473 optimization even if needed > n.
11474
2692deea
UD
11475 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11476 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11477 return false, otherwise return true.
11478 (cache_rpath): Return decompose_rpath return value.
11479
11bf311e
UD
114802006-11-07 Jakub Jelinek <jakub@redhat.com>
11481
11482 * include/libc-symbols.h (declare_symbol): Rename to...
11483 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
11484 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11485 .size directive.
11486 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11487 changes.
11488 * sysdeps/gnu/siglist.c: Likewise.
11489
114902006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
11491
11492 * sysdeps/powerpc/fpu/bits/mathinline.h
11493 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11494 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
11495
114962006-11-05 Ulrich Drepper <drepper@redhat.com>
11497
11498 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11499 Update handling of cache descriptor 0x49 for new models.
11500 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11501 Likewise.
11502
9666e36c
UD
115032006-11-02 Jakub Jelinek <jakub@redhat.com>
11504
11505 * malloc/memusage.c (dest): Reset not_me back to false after
11506 printing statistics.
11507
11bf311e
UD
115082006-11-02 Ulrich Drepper <drepper@redhat.com>
11509
11510 * configure.in: Work around ld --help change and avoid -z relro
11511 test completely if the architecture doesn't care about security.
11512
115132006-11-01 Ulrich Drepper <drepper@redhat.com>
11514
11515 * po/sv.po: Update from translation team.
11516
115172006-10-31 Ulrich Drepper <drepper@redhat.com>
11518
11519 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11520 generate compatibility version.
11521
115222006-10-29 Ulrich Drepper <drepper@redhat.com>
11523
11524 * configure.in: Relax -z relro requirement a bit.
11525
11526 * po/sv.po: Update from translation team.
11527
115282006-10-29 Jakub Jelinek <jakub@redhat.com>
11529
11530 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11531 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11532 * elf/dl-close.c (_dl_close_worker): Likewise.
11533 * elf/dl-open.c (_dl_open_worker): Likewise.
11534 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11535
b2369ca3
UD
115362006-10-27 Ulrich Drepper <drepper@redhat.com>
11537
11bf311e
UD
11538 * configure.in: Require assembler support for visibility, compiler
11539 support for visibility and aliases, linker support for various -z
11540 options.
11541 * Makeconfig: Remove conditional code which now is unnecessary.
11542 * config.h.in: Likewise.
11543 * config.make.in: Likewise.
11544 * dlfcn/Makefile: Likewise.
11545 * elf/Makefile: Likewise.
11546 * elf/dl-load.c: Likewise.
11547 * elf/rtld.c: Likewise.
11548 * include/libc-symbols.h: Likewise.
11549 * include/stdio.h: Likewise.
11550 * io/Makefile: Likewise.
11551 * io/fstat.c: Likewise.
11552 * io/fstat64.c: Likewise.
11553 * io/fstatat.c: Likewise.
11554 * io/fstatat64.c: Likewise.
11555 * io/lstat.c: Likewise.
11556 * io/lstat64.c: Likewise.
11557 * io/mknod.c: Likewise.
11558 * io/mknodat.c: Likewise.
11559 * io/stat.c: Likewise.
11560 * io/stat64.c: Likewise.
11561 * libio/stdio.c: Likewise.
11562 * nscd/Makefile: Likewise.
11563 * stdlib/Makefile: Likewise.
11564 * stdlib/atexit.c: Likewise.
11565 * sysdeps/generic/ldsodefs.h: Likewise.
11566 * sysdeps/i386/dl-machine.h: Likewise.
11567 * sysdeps/i386/sysdep.h: Likewise.
11568 * sysdeps/i386/i686/memcmp.S: Likewise.
11569 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11570 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11571 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11572
11573 * Makerules: USE_TLS support is now default.
11574 * tls.make.c: Likewise.
11575 * csu/Versions: Likewise.
11576 * csu/libc-start.c: Likewise.
11577 * csu/libc-tls.c: Likewise.
11578 * csu/version.c: Likewise.
11579 * dlfcn/dlinfo.c: Likewise.
11580 * elf/dl-addr.c: Likewise.
11581 * elf/dl-cache.c: Likewise.
11582 * elf/dl-close.c: Likewise.
11583 * elf/dl-iteratephdr.c: Likewise.
11584 * elf/dl-load.c: Likewise.
11585 * elf/dl-lookup.c: Likewise.
11586 * elf/dl-object.c: Likewise.
11587 * elf/dl-open.c: Likewise.
11588 * elf/dl-reloc.c: Likewise.
11589 * elf/dl-support.c: Likewise.
11590 * elf/dl-sym.c: Likewise.
11591 * elf/dl-sysdep.c: Likewise.
11592 * elf/dl-tls.c: Likewise.
11593 * elf/ldconfig.c: Likewise.
11594 * elf/rtld.c: Likewise.
11595 * elf/tst-tls-dlinfo.c: Likewise.
11596 * elf/tst-tls1.c: Likewise.
11597 * elf/tst-tls10.h: Likewise.
11598 * elf/tst-tls14.c: Likewise.
11599 * elf/tst-tls2.c: Likewise.
11600 * elf/tst-tls3.c: Likewise.
11601 * elf/tst-tls4.c: Likewise.
11602 * elf/tst-tls5.c: Likewise.
11603 * elf/tst-tls6.c: Likewise.
11604 * elf/tst-tls7.c: Likewise.
11605 * elf/tst-tls8.c: Likewise.
11606 * elf/tst-tls9.c: Likewise.
11607 * elf/tst-tlsmod1.c: Likewise.
11608 * elf/tst-tlsmod13.c: Likewise.
11609 * elf/tst-tlsmod13a.c: Likewise.
11610 * elf/tst-tlsmod14a.c: Likewise.
11611 * elf/tst-tlsmod2.c: Likewise.
11612 * elf/tst-tlsmod3.c: Likewise.
11613 * elf/tst-tlsmod4.c: Likewise.
11614 * elf/tst-tlsmod5.c: Likewise.
11615 * elf/tst-tlsmod6.c: Likewise.
11616 * include/errno.h: Likewise.
11617 * include/link.h: Likewise.
11618 * include/tls.h: Likewise.
11619 * locale/global-locale.c: Likewise.
11620 * locale/localeinfo.h: Likewise.
11621 * malloc/arena.c: Likewise.
11622 * malloc/hooks.c: Likewise.
11623 * malloc/malloc.c: Likewise.
11624 * resolv/Versions: Likewise.
11625 * sysdeps/alpha/dl-machine.h: Likewise.
11626 * sysdeps/alpha/libc-tls.c: Likewise.
11627 * sysdeps/generic/ldsodefs.h: Likewise.
11628 * sysdeps/generic/tls.h: Likewise.
11629 * sysdeps/i386/dl-machine.h: Likewise.
11630 * sysdeps/ia64/dl-machine.h: Likewise.
11631 * sysdeps/ia64/libc-tls.c: Likewise.
11632 * sysdeps/mach/hurd/fork.c: Likewise.
11633 * sysdeps/mach/hurd/i386/tls.h: Likewise.
11634 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11635 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11636 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11637 * sysdeps/s390/libc-tls.c: Likewise.
11638 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11639 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11640 * sysdeps/sh/dl-machine.h: Likewise.
11641 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11642 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11643 * sysdeps/x86_64/dl-machine.h: Likewise.
11644
131c4428
UD
11645 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11646 split out locking and parameter checking.
11647 (_dl_close): Call _dl_close_worker after locking and checking.
11648 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11649 _dl_close.
ffd0e1b7
UD
11650 * elf/Makefile: Add rules to build and run tst-thrlock.
11651 * elf/tst-thrlock.c: New file.
131c4428 11652
11bf311e
UD
11653 [BZ #3426]
11654 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11655 reality.
11656
b2369ca3
UD
11657 [BZ #3429]
11658 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 11659 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
11660 the asserts inside the lock region.
11661 Patch mostly by Suzuki <suzuki@in.ibm.com>.
11662
11bf311e
UD
116632006-10-27 Jakub Jelinek <jakub@redhat.com>
11664
11665 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11666 argument.
11667 (_dl_lookup_symbol_x): Adjust caller.
11668
11669 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11670 _ns_global_scope.
11671 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11672
11673 * elf/dl-libc.c: Revert l_scope name changes.
11674 * elf/dl-load.c: Likewise.
11675 * elf/dl-object.c: Likewise.
11676 * elf/rtld.c: Likewise.
11677 * elf/dl-close.c (_dl_close): Likewise.
11678 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
11679 always use __rtld_mrlock_{change,done}. Always free old scope list
11680 here if not l_scope_mem.
11681 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11682 change. Never free scope list here. Just __rtld_mrlock_lock before
11683 the lookup and __rtld_mrlock_unlock it after the lookup.
11684 * elf/dl-sym.c: Likewise.
11685 * include/link.h (struct r_scoperec): Remove.
11686 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11687 with l_scope_mem and l_scoperec_lock with l_scope_lock.
11688
116892006-10-25 Ulrich Drepper <drepper@redhat.com>
11690
11691 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11692
116932006-10-18 Ulrich Drepper <drepper@redhat.com>
11694
11695 * configure.in: Disable building profile libraries by default.
11696
609cf614
UD
116972006-10-17 Jakub Jelinek <jakub@redhat.com>
11698
11699 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11700 as signed longs, check for x_base + pos overflow.
11701 * sunrpc/Makefile (tests): Add tst-xdrmem2.
11702 * sunrpc/tst-xdrmem2.c: New test.
11703
11bf311e
UD
117042006-10-18 Ulrich Drepper <drepper@redhat.com>
11705
11706 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11707 _dl_lookup_symbol_x code.
11708
117092006-10-17 Jakub Jelinek <jakub@redhat.com>
11710
11711 * elf/dl-runtime.c: Include sysdep-cancel.h.
11712 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11713 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
11714 instead of catomic_* macros.
11715 * elf/dl-sym.c: Include sysdep-cancel.h.
11716 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11717 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11718 * elf/dl-close.c: Include sysdep-cancel.h.
11719 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11720 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11721 * elf/dl-open.c: Include sysdep-cancel.h.
11722 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11723 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11724
117252006-10-17 Jakub Jelinek <jakub@redhat.com>
11726
11727 [BZ #3313]
11728 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11729 fastbin rather than end of fastbin array.
11730
117312006-10-18 Ulrich Drepper <drepper@redhat.com>
11732
11733 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11734 body macro.
11735 * sysdeps/x86_64/bits/atomic.h
11736 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11737 (catomic_decrement): Use correct body macro.
11738
117392006-10-17 Jakub Jelinek <jakub@redhat.com>
11740
11741 * include/atomic.h: Add a unique prefix to all local variables
11742 in macros.
11743 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11744
4a85a8ee
UD
117452006-10-16 Ulrich Drepper <drepper@redhat.com>
11746
11747 [BZ #3369]
11748 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11749 and 7.
11750
11bf311e
UD
117512006-10-14 Ulrich Drepper <drepper@redhat.com>
11752
11753 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11754
ff8d96be
UD
117552006-10-13 Ulrich Drepper <drepper@redhat.com>
11756
11bf311e
UD
11757 [BZ #3313]
11758 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11759 determine highest fast bin to consolidate, always look into all of
11760 them.
11761 (do_check_malloc_state): Only require for empty bins for large
11762 sizes in main arena.
11763
11764 * libio/stdio.h: Add more __wur attributes.
11765
ff8d96be
UD
11766 * elf/dl-minimal.c (realloc): Optimize last patch.
11767
90a0991a
UD
117682006-10-12 Richard Sandiford <richard@codesourcery.com>
11769
11770 [BZ #3352]
11771 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11772 and use memcpy() if it does.
ff8d96be 11773
11bf311e
UD
117742006-11-12 Andreas Jaeger <aj@suse.de>
11775
11776 [BZ #2510]
11777 * manual/search.texi (Hash Search Function): Clarify.
11778 (Array Search Function): Clarify.
11779
117802006-11-12 Joseph Myers <joseph@codesourcery.com>
11781
11782 [BZ #2830]
11783 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11784 shifting.
11785 * math/atest-exp2.c (read_mpn_hex): Likewise.
11786 * math/atest-sincos.c (main): Likewise.
11787
37fb7595
UD
117882006-10-11 Ulrich Drepper <drepper@redhat.com>
11789
11bf311e
UD
11790 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11791 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11792 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11793 version GLIBC_2.6.
11794 * Versions.def: Add GLIBC_2.6 for libc.
11795
46c38bd7
UD
11796 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11797
11bf311e
UD
11798 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11799
118002006-10-11 Jakub Jelinek <jakub@redhat.com>
11801
11802 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11803
11804 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11805
11806 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11807 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11808
118092006-10-11 Ulrich Drepper <drepper@redhat.com>
11810
11811 * include/atomic.c: Define catomic_* operations.
11812 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
11813 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11814 * malloc/memusage.c: Likewise.
11815 * gmon/mcount.c: Likewise.
11816 * elf/dl-close.c: Likewise.
11817 * elf/dl-open.c: Likewise.
11818 * elf/dl-profile.c: Likewise.
11819 * elf/dl-sym.c: Likewise.
11820 * elf/dl-runtime.c: Likewise.
11821 * elf/dl-fptr.c: Likewise.
11822 * resolv/res_libc.c: Likewise.
11823
2a6ee549
UD
118242006-10-10 Ulrich Drepper <drepper@redhat.com>
11825
11826 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11827 components which lack them.
11828
11829 * nis/nis_subr.c (nis_getnames): Make sure that we always return
11830 at least one entry consisting of the parameter concatenated with
11831 the domain.
11832
11bf311e 118332006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 11834
11bf311e
UD
11835 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11836 * sysdeps/mach/hurd/futimes.c: Likewise.
11837 * sysdeps/mach/hurd/lutimes.c: Likewise.
11838
118392006-10-09 Ulrich Drepper <drepper@redhat.com>
11840 Jakub Jelinek <jakub@redhat.com>
11841
11842 Implement reference counting of scope records.
11843 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11844 from the list in objects which remain. Always allocate new scope
11845 record.
11846 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11847 don't resize, allocate a new one.
11848 * elf/dl-runtime.c: Update reference counters before using a scope
11849 array.
11850 * elf/dl-sym.c: Likewise.
11851 * elf/dl-libc.c: Adjust for l_scope name change.
11852 * elf/dl-load.c: Likewise.
11853 * elf/dl-object.c: Likewise.
11854 * elf/rtld.c: Likewise.
11855 * include/link.h: Include <rtld-lowlevel.h>. Define struct
11856 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
11857 Add l_scoperec_lock.
11858 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11859 * sysdeps/generic/rtld-lowlevel.h: New file.
11860
11861 * include/atomic.h: Rename atomic_and to atomic_and_val and
11862 atomic_or to atomic_or_val. Define new macros atomic_and and
11863 atomic_or which do not return values.
11864 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11865 Various cleanups.
11866 * sysdeps/i386/i486/bits/atomic.h: Likewise.
11867
11868 * po/sv.po: Update from translation team.
11869
118702006-10-07 Ulrich Drepper <drepper@redhat.com>
11871
11872 * Versions.def: Add GLIBC_2.6 to libpthread.
11873
11874 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11875 (versioned_symbol): Likewise.
11876 (compat_symbol): Likewise.
11877
11878 * po/tr.po: Update from translation team.
feb87ad1 11879
4df92d57
UD
118802006-10-06 Ulrich Drepper <drepper@redhat.com>
11881
11bf311e
UD
11882 * nis/Banner: Removed. It's been integral part forever and the
11883 author info is incomplete anyway.
11884 * libio/Banner: Likewise.
11885
4df92d57
UD
11886 * nis/nis_table.c (nis_list): If __follow_path fails in the new
11887 code, make sure the nis_freeresult call doesn't crash and that the
11888 result is reported correctly.
11889
68361572
UD
118902006-09-27 Jakub Jelinek <jakub@redhat.com>
11891
11892 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11893 when callback is NULL.
11894
11895 * nis/Versions (libnss_nisplus): Add
11896 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11897 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11898 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11899 _nss_create_tablename): Rename to...
11900 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11901 ... these. No longer static.
11902 (internal_setgrent): Adjust users.
11903 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11904 Don't use locking around _nss_grp_create_tablename call.
11905 * nis/nss_nisplus/nisplus-initgroups.c: New file.
11906
11bf311e
UD
119072006-10-06 Ulrich Drepper <drepper@redhat.com>
11908
11909 * version.h (VERSION): Bump to 2.5.90 for new development tree.
11910
3a4e0609
UD
119112006-10-06 Andreas Jaeger <aj@suse.de>
11912
11913 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11914
119152006-10-06 Ulrich Drepper <drepper@redhat.com>
11916
11917 * po/pl.po: Update from translation team.
11918
11919 * nscd/nscd.c (main): Fix typo in message.
11920 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11921
97e57dee
UD
119222006-10-02 Jakub Jelinek <jakub@redhat.com>
11923
11924 [BZ #3291]
11925 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11926 errno.h, signal.h, unistd.h and sysdep-cancel.h.
11927 (__sigprocmask): Define.
11928
768027a4
UD
119292006-10-02 Ulrich Drepper <drepper@redhat.com>
11930
11931 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11932 used.
11933
0b25a49a
UD
119342006-10-02 Jakub Jelinek <jakub@redhat.com>
11935
11936 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11937 in oldtotal and newtotal calculation.
11938 * nscd/nscd-client.h (struct mapped_database): Add datasize
11939 field.
11940 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11941 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11942 increased.
11943 (__nscd_cache_search): Add checks to make sure we never reference
11944 data beyond the current mapping.
11945
a1286745
UD
119462006-10-02 Dmitry V. Levin <ldv@altlinux.org>
11947
d4ed7561
UD
11948 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11949 variables const to avoid compiler warnings.
11950
a1286745
UD
11951 * io/fts.c (fts_close): Remove redundant checks.
11952 (fts_build): Likewise.
11953 (fts_palloc): Likewise.
11954
11955 * manual/message.texi (Advanced gettext functions,
11956 Using gettextized software): Fix typos.
11957
f01e4069
UD
119582006-09-30 Ulrich Drepper <drepper@redhat.com>
11959
11960 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11961 explain why there are no leaks.
11962
154619b5
UD
119632006-09-29 Ulrich Drepper <drepper@redhat.com>
11964
690c3947
UD
11965 * libio/wmemstream.c: Include <wchar.h>.
11966 * libio/bug-wmemstream1.c: Likewise.
11967 * libio/tst-wmemstream1.c: Likewise.
11968 * libio/tst-wmemstream2.c: Likewise.
11969
88cc61e8
UD
11970 * version.h (RELEASE): Bump to 2.5.
11971 * README: Regenerated.
11972
a70c18b0
UD
11973 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11974
154619b5
UD
11975 [BZ #3273]
11976 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11977 found no group members.
11978 Patch by Petr Baudis.
11979
119802006-09-29 Jakub Jelinek <jakub@redhat.com>
11981
11982 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11983 assert bootstrap_map.l_tls_modid is zero.
11984 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11985 if USE___THREAD.
11986
1c31aa79
UD
119872006-09-27 Ulrich Drepper <drepper@redhat.com>
11988
11989 * libio/stdio.h: Move open_wmemstream prototype to ...
11990 * wcsmbs/wchar.h: ... here.
11991
f1122ec3
UD
119922006-09-25 Jakub Jelinek <jakub@redhat.com>
11993
11994 [BZ #3252]
11995 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11996 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11997 __{,l}chown to handle the rest.
11998 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11999 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12000 __{,l}chown to handle the rest.
12001 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12002 i386/fchownat.c.
12003 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12004 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12005
12006 [BZ #3253]
12007 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12008 time, rather allocate increasingly bigger arrays of pointers, if
12009 possible with alloca, if too large with malloc.
12010
120112006-09-24 Jakub Jelinek <jakub@redhat.com>
12012
12013 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12014
12015 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12016
457b559e
UD
120172006-09-24 Ulrich Drepper <drepper@redhat.com>
12018
12019 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12020 home addresses.
12021 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12022 IFA_F_HOMEADDRESS flag for interfaces.
12023 * include/ifaddrs.h (struct in6addrinfo): Define
12024 in6ai_homeaddress.
12025
4a132246
UD
120262006-09-21 Jakub Jelinek <jakub@redhat.com>
12027
12028 [BZ #3225]
12029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12030 PTR_DEMANGLE3): Define.
12031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12032 PTR_DEMANGLE3): Likewise.
12033 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12034 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12035 Likewise.
12036 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12037
c69136ae
UD
120382006-09-20 Jakub Jelinek <jakub@redhat.com>
12039
12040 * po/libc.pot: Regenerated.
12041 * po/be.po: Updated.
12042 * po/ca.po: Likewise.
12043 * po/cs.po: Likewise.
12044 * po/da.po: Likewise.
12045 * po/de.po: Likewise.
12046 * po/el.po: Likewise.
12047 * po/en_GB.po: Likewise.
12048 * po/es.po: Likewise.
12049 * po/fi.po: Likewise.
12050 * po/fr.po: Likewise.
12051 * po/gl.po: Likewise.
12052 * po/hr.po: Likewise.
12053 * po/hu.po: Likewise.
12054 * po/ja.po: Likewise.
12055 * po/ko.po: Likewise.
12056 * po/nb.po: Likewise.
12057 * po/nl.po: Likewise.
12058 * po/pl.po: Likewise.
12059 * po/pt_BR.po: Likewise.
12060 * po/ru.po: Likewise.
12061 * po/rw.po: Likewise.
12062 * po/sk.po: Likewise.
12063 * po/sv.po: Likewise.
12064 * po/tr.po: Likewise.
12065 * po/zh_CN.po: Likewise.
12066 * po/zh_TW.po: Likewise.
12067
12068 [BZ #3137]
12069 * iconv/iconv_prog.c (main): Fix spelling in error message.
12070 * iconv/iconvconfig.c (main): Likewise.
12071 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12072 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12073 * locale/programs/localedef.c (main): Likewise.
12074 * locale/programs/repertoire.c (repertoire_read): Likewise.
12075 * timezone/zdump.c (main): Likewise.
12076 * nscd/connections.c (handle_request): Fix spelling in log message.
12077 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12078
83b3108c
UD
120792006-09-20 Ulrich Drepper <drepper@redhat.com>
12080
12081 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12082 interfaces.
12083
89210b4c
AJ
120842006-09-20 Andreas Jaeger <aj@suse.de>
12085
12086 * math/libm-test.inc (lrint_test_upward): Fix typo.
12087
6624dbc0
UD
120882006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12089
12090 [BZ #2592]
12091 * math/libm-test.inc (lrint_test_tonearest): New function.
12092 (lrint_test_towardzero): New function.
12093 (lrint_test_downward): New function.
12094 (lrint_test_upward): New function.
12095 (main): Run these new tests.
12096 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12097 of values near to 0.
12098 (two52): Use double not long double.
12099 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12100 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12101 (two23): Use float not double.
12102 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12103 (two23): Use float not double.
12104 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12105 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12106 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12107 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12108
60cb50c7
UD
121092006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12110
12111 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12112 Cast sp to unsigned long to avoid compiler warning.
12113 Use __makecontext_ret function instead of a trampoline on the stack.
12114 (__makecontext_ret): New function.
12115 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12116
33315ced
UD
121172006-09-19 Jakub Jelinek <jakub@redhat.com>
12118
12119 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12120 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12121 bits.
12122
1ee2ff20
UD
121232006-09-19 Ulrich Drepper <drepper@redhat.com>
12124
12125 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12126 sure no reference to the unloaded map's search list remains in the
12127 dependency's scope.
12128
121292006-09-16 Jakub Jelinek <jakub@redhat.com>
12130
12131 * elf/Makefile: Add rules to build and run unload7 test.
12132 * elf/unload7.c: New test.
12133 * elf/unload7mod1.c: New file.
12134 * elf/unload7mod2.c: New file.
12135
0466106e
UD
121362006-09-18 Jakub Jelinek <jakub@redhat.com>
12137
12138 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12139 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12140 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12141 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12142 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12143 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12144 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12145 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12146 PTRACE_GETEVENTMSG): Likewise.
12147 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12148 values.
12149
9c316a45
UD
121502006-09-17 Mike Frysinger <vapier@gentoo.org>
12151
0466106e
UD
12152 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12153 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12154 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12155 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
12156
121572006-09-16 Jakub Jelinek <jakub@redhat.com>
12158
12159 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12160 write '\0' to the fd.
12161 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12162 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12163 Change regs to unsigned long pointer from unsigned int, fix fscr
12164 offset.
12165
fb146a76
UD
121662006-09-14 Jakub Jelinek <jakub@redhat.com>
12167
12168 * io/Makefile (CFLAGS-fstatat.c): Set.
12169 (CFLAGS-fstatat64.c): Likewise.
12170 (CFLAGS-mknodat.c): Likewise.
12171
12172 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12173 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12174 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12175 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12176
4cd3633d
UD
121772006-09-14 Jakub Jelinek <jakub@redhat.com>
12178 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 12179
4cd3633d
UD
12180 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12181 names to the beginning. Rename "cell" to "cellbe".
12182 (_dl_powerpc_platforms): New.
12183 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12184 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12185 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12186 (_DL_HWCAP_PLATFORM): Define to new mask.
12187 (_dl_platform_string, _dl_string_platform): New functions.
12188 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12189 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12190
30aa5785
UD
121912006-09-12 Jakub Jelinek <jakub@redhat.com>
12192
12193 [BZ #2526]
12194 * README.libm: Fix a thinko in sqrt algorithm description.
12195
12196 [BZ #3143]
12197 * manual/string.texi (argz_delete): Fix prototype.
12198 Patch by <alpt@freaknet.org>.
12199
122002006-08-26 Joseph Myers <joseph@codesourcery.com>
12201
12202 [BZ #3138]
12203 * io/test-lfs.c (do_prepare): Give name_len type size_t.
12204 * io/tst-fcntl.c (do_prepare): Likewise.
12205 * posix/tst-exec.c (do_prepare): Likewise.
12206 * posix/tst-preadwrite.c (do_prepare): Likewise.
12207 * posix/tst-spawn.c (do_prepare): Likewise.
12208 * posix/tst-truncate.c (do_prepare): Likewise.
12209 * rt/tst-aio.c (do_prepare): Likewise.
12210 * rt/tst-aio64.c (do_prepare): Likewise.
12211 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12212 size_t.
12213
d26d01d1
UD
122142006-09-09 Ulrich Drepper <drepper@redhat.com>
12215
41aba3d7
UD
12216 [BZ #2821]
12217 * time/mktime.c (guess_time_tm): Fix overflow detection.
12218 * time/Makefile (tests): Add bug-mktime1.
12219 * time/bug-mktime1.c: New file.
12220
eaa51b47 12221 [BZ #3189, #3188]
d26d01d1 12222 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 12223 (mremap): Likewise.
d26d01d1 12224
ba40cc15
UD
122252006-09-07 Jakub Jelinek <jakub@redhat.com>
12226
2b6a801e
UD
12227 [BZ #1006]
12228 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12229 Ensure relocation doesn't clobber any bits outside of the
12230 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12231 R_SPARC_HI22 and R_SPARC_H44.
12232
469615bd
UD
12233 [BZ #2775]
12234 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12235 (long) (MINSIZE + nb - old_size) is positive.
12236
12237 * malloc/arena.c (grow_heap): When growing bail even if new_size
12238 is negative.
12239
ba40cc15
UD
12240 [BZ #3155]
12241 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12242 stack below r1.
12243
243b9ac1
UD
122442006-09-06 Jakub Jelinek <jakub@redhat.com>
12245
ba40cc15
UD
12246 * posix/regex_internal.c (re_string_reconstruct): Handle
12247 offset < pstr->valid_raw_len && pstr->offsets_needed case.
12248 Ensure no bytes read before raw_mbs array. Pass a saved copy of
12249 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12250 re_string_context_at.
12251 * posix/Makefile: Add rules to build and run bug-regex26 test.
12252 * posix/bug-regex26.c: New test.
12253
243b9ac1
UD
12254 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12255 rather than col_sym_free. Move seqp declaration earlier.
12256
12257 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12258
d052233c
UD
122592006-09-05 Jakub Jelinek <jakub@redhat.com>
12260
12261 * nscd/initgrcache.c (addinitgroupsX): Move any_success
12262 decl before first goto out.
12263
71213dc2
UD
122642006-09-04 Jakub Jelinek <jakub@redhat.com>
12265
12266 * Makerules (shlib.lds): If have-hash-style, put .hash section
12267 at the end of the RO segment.
12268
122692006-09-04 Ulrich Drepper <drepper@redhat.com>
12270
12271 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12272 style hash table format is used.
12273
03eeff83
UD
122742006-09-04 Jakub Jelinek <jakub@redhat.com>
12275
12276 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12277 randomization rather than before.
12278 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12279
b80770b2
UD
122802006-08-31 Jakub Jelinek <jakub@redhat.com>
12281
ba40cc15 12282 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
12283
12284 * malloc/malloc.c (_int_malloc): Use full list insert and not
12285 shortcut which assumes the list is empty for large requests
12286 too.
12287
12288 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12289
99ea5991
UD
122902006-08-30 Jakub Jelinek <jakub@redhat.com>
12291
12292 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12293 and offout arguments to the prototype.
12294 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12295 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12296 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12297 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12298 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12299 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12300 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12301 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12302
4004a0a5
UD
123032006-08-28 Ulrich Drepper <drepper@redhat.com>
12304
950398e1
UD
12305 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12306
4004a0a5
UD
12307 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12308 dlopen parameters.
12309
6e310111
UD
123102006-08-28 Jakub Jelinek <jakub@redhat.com>
12311
12312 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12313 only if herrno is NETDB_INTERNAL. Handle errors other than
12314 ERANGE outside of the loops, handle TRY_AGAIN.
12315
12316 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12317 if other's ctype category was missing.
12318 * locale/programs/ld-collate.c (collate_read): Return if
12319 copy_locale's collate category is missing.
12320
07014fca
UD
123212006-08-27 Ulrich Drepper <drepper@redhat.com>
12322
12323 [BZ #2684]
12324 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12325 arenas if allocation failed.
12326 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12327
71663747
UD
123282006-08-26 Ulrich Drepper <drepper@redhat.com>
12329
41999a1a
UD
12330 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12331 waste bins[0..1].
12332 (malloc_state): Reduce bins size by 2.
12333 (_int_malloc): Fix test for large enough buffer for early termination.
12334 When no unsorted block matches perfectly and an exiting block has
12335 to be split, use full list insert and not shortcut which assumes
12336 the list is empty.
12337
71663747
UD
12338 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12339 failure.
12340
93b53ca2
UD
123412006-08-24 Ulrich Drepper <drepper@redhat.com>
12342
f5a82772
UD
12343 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12344 do anything.
12345
2ac9ca73
UD
12346 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12347 symbol require exact match (these are PLTs).
12348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12349 (_dl_ppc64_addr_sym_match): Likewise.
12350
93b53ca2
UD
12351 [BZ #2683]
12352 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12353 If symbol has a value use it.
12354 * elf/tst-dladdr1.c: New file.
12355 * elf/Makefile: Add rules to build and run tst-addr1.
12356
7463d5cb
UD
123572006-08-24 Jakub Jelinek <jakub@redhat.com>
12358
12359 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12360 keeps failing and heap growth or new heap creation isn't
12361 successful either.
12362 * malloc/tst-malloc.c (main): Add new tests.
12363
542a6f62
UD
123642006-08-24 Ulrich Drepper <drepper@redhat.com>
12365
12366 [BZ #2734]
12367 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12368 as in the x86-64 code to use bswap.
12369
aa2c6b6d
UD
123702006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12371
24982798 12372 [BZ #2680]
aa2c6b6d
UD
12373 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12374 __USE_UNIX98.
12375 * posix/bits/unistd.h: Likewise.
12376
59776aef
UD
123772006-05-15 Mike Frysinger <vapier@gentoo.org>
12378
12379 [BZ #2751]
12380 * string/strchr.c: Add cast to avoid warning.
12381
e404fb16
UD
123822006-08-21 Ulrich Drepper <drepper@redhat.com>
12383
12384 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 12385 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
12386 limit is needed to avoid the exploding of the address space
12387 requirement for secondary heaps.
12388 * malloc/arena.c (HEAP_MAX_SIZE): Define using
12389 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12390
376e973a
UD
123912006-07-30 Joseph S. Myers <joseph@codesourcery.com>
12392
12393 [BZ #3018]
12394 * Makerules (depfiles): Handle extra-test-objs the same as
12395 extra-objs.
12396 (common-mostlyclean): Likewise.
12397 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12398 instead.
12399 * elf/Makefile (extra-objs): Likewise.
12400 * stdlib/Makefile (extra-objs): Likewise.
12401
240c62a7
UD
124022006-08-14 Eric Blake <ebb9@byu.net>
12403
12404 [BZ #3044]
12405 * misc/error.h: Assume C89 or better.
12406 * misc/error.c: Likewise.
12407
3997b7c4
UD
124082006-08-21 Ulrich Drepper <drepper@redhat.com>
12409
12410 [BZ #3040]
12411 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12412 __ASSUME_ATFCTS is defined.
12413
8a6537b0
UD
124142006-08-19 Ulrich Drepper <drepper@redhat.com>
12415
72320021
UD
12416 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12417 to sort in each call.
12418
ed3691ba
UD
12419 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12420 is empty simply return and use next service.
12421 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12422
8a6537b0
UD
12423 * locale/programs/charmap.c (charmap_read): Add new parameter. It
12424 tells us when not finding a charmap file is an error.
12425 * locale/programs/charmap.h: Adjust charmap_read prototype.
12426 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12427 cannot find a charmap.
12428 * locale/programs/localedef.c (main): Adjust charmap_read call.
12429
ad2a3c07
UD
124302006-08-15 Jakub Jelinek <jakub@redhat.com>
12431
12432 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12433 sysdeps/posix/pause.c implementation instead.
12434
124352006-08-09 Jakub Jelinek <jakub@redhat.com>
12436
12437 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12438 to EPERM.
12439
f17efcb4
UD
124402006-08-13 Andreas Schwab <schwab@suse.de>
12441
12442 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12443 Don't clobber caller's LRSAVE.
12444 (_dl_prof_resolve): Likewise.
12445
107b8a92
UD
124462006-08-14 Ulrich Drepper <drepper@redhat.com>
12447
12448 [BZ #1996]
12449 * libio/memstream.c (open_memstream): Allocate initial buffer with
12450 calloc.
12451 * libio/wmemstream.c (open_wmemstream): Likewise.
12452 * libio/strops.c: Pretty printing.
12453 (_IO_str_overflow): Clear uninitialized part of the new buffer.
12454 (enlarge_userbuf): New function.
12455 (_IO_str_seekoff): Call it if seek position is larger than current
12456 buffer.
12457 * libio/wstrops.c: Likewise.
12458 * libio/vasprintf.c: Add comment as to why we do not have to use
12459 calloc instead of malloc to allocate initial buffer.
12460 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12461 * libio/bug-memstream1.c: New file.
12462 * libio/bug-wmemstream1.c: New file.
12463
fa3ac53f
UD
124642006-08-13 Ulrich Drepper <drepper@redhat.com>
12465
89993734
UD
12466 * libio/wstrops.c: Remove dead macro definitions and comments.
12467 * libio/strops.c: Likewise.
12468
fa3ac53f
UD
12469 [BZ #2764]
12470 * login/utmpname.c (__utmpname): Remove unnecessary test.
12471
f99ed760
UD
124722006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
12473
12474 [BZ #2832]
12475 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12476 0s from integers.
12477
124782006-08-13 Ulrich Drepper <drepper@redhat.com>
12479
12480 [BZ #2987]
12481 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12482 for CPU clocks.
12483 * sysdeps/unix/clock_settime.c: Add support for platform-specific
12484 setting of CPU clocks.
12485
4c3f81d0
UD
124862006-06-23 Paul Eggert <eggert@cs.ucla.edu>
12487
12488 [BZ #2841]
12489 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12490 since C99 requires the result to promote to 'int' when uint_least8_t
12491 and uint_least16_t promote to 'int'.
12492
cd8e60ce
UD
124932006-08-12 Ulrich Drepper <drepper@redhat.com>
12494
9a5c46e8
UD
12495 [BZ #3013]
12496 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12497 lenght of one output field, correct bitmask creation.
12498 * locale/programs/ld-time.c: Add alignment.
12499
cd8e60ce
UD
12500 [BZ #2997]
12501 * misc/error.c: Add space between program name and message if file
12502 name is missing.
12503
9a528884
UD
125042006-08-03 Eric Blake <ebb9@byu.net>
12505
12506 [BZ #2998]
12507 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12508
1d05c2fb
UD
125092006-08-09 Ulrich Drepper <drepper@redhat.com>
12510
0c1c6c6c
UD
12511 * malloc/memusagestat.c: Silence warnings.
12512
1d05c2fb
UD
12513 * malloc/malloc.c: Dynamically size mmap treshold if the program
12514 frees mmaped blocks.
12515 Patch by Valerie Henson and Arjan van de Ven.
12516
2d1e6277
UD
125172006-08-08 Jakub Jelinek <jakub@redhat.com>
12518
be7ffd91
UD
12519 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12520 __USE_GNU.
12521
2d1e6277
UD
12522 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12523 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12524 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12525 Only provide var definitions in strtol_l (or for *ull*
12526 in strtoll_l).
12527
12528 * stdio-common/bug16.c (tests): New array.
12529 (do_tests): Allow the first hexadecimal digit
12530 to be 1, 2, 4 or 8. Do 3 additional tests.
12531
12532 * sysdeps/s390/fpu/libm-test-ulps: Update.
12533
12534 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12535 fchownat syscall if available.
12536 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12537 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12538 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12539
d0ccde25
UD
125402006-08-07 Ulrich Drepper <drepper@redhat.com>
12541
12542 * nis/nis_xdr.c: Avoid some function calls.
12543
13a0293d 125442006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 12545 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
12546
12547 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12548 short cut if only one name component is stripped away.
12549
bd1ebae0
UD
125502006-08-07 Ulrich Drepper <drepper@redhat.com>
12551
12552 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 12553 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
12554 (first_shoot): Add search_parent_first parameter. Only if it is set
12555 search parent server first.
12556 If directory for table found through cold start cache is not the same
12557 as referenced in the cache, don't use it.
12558 (__nisfind_server): Take additional parameter. Pass it on to
12559 first_shoot.
12560 (__prepare_niscall): Adjust __nisfind_server call.
12561 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12562 * nis/nis_table.c: Adjust __nisfind_server call.
12563 * nis/nis_lookup.c: Likewise.
12564 (nis_lookup): Don't loop endlessly if name is reduced to ".".
12565
f1762c0c
UD
125662006-08-03 Ulrich Drepper <drepper@redhat.com>
12567
fe710250
UD
12568 [BZ #2182]
12569 * math/s_cacosh.c: Return values from positive branch.
12570 * math/s_cacoshf.c: Likewise.
12571 * math/s_cacoshl.c: Likewise.
12572
a5852807
UD
12573 [BZ #2883]
12574 * sysvipc/sys/msg.h: Change return value to ssize_t.
12575 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
12576 * sysvipc/msgrcv.c: Likewise.
12577 * include/sys/msg.h: Likewise.
39571a13 12578
6c215a8d
UD
12579 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12580 test introduced in patch for bz #661.
39571a13 12581 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 12582 element for NEWGROUPS.
6c215a8d 12583
9c06eb66
UD
12584 [BZ #2908]
12585 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12586 'f', use '1' as leading digit not '\1'.
12587 * stdio-common/Makefile (tests): Add bug16.
12588 * stdio-common/bug16.c: New file.
12589
12590 [BZ #2914]
12591 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12592 and don't try to open it. The patch introducing the macro
12593 contained a bug and used the same file name as the new file
12594 instead of using /var/adm/hostid. Nobody complaint so I'm taking
12595 this out completely.
12596
12597 [BZ #2926]
12598 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12599 Patch by Jerry James <Jerry.James@usu.edu>.
12600
f1762c0c
UD
12601 * rt/Makefile (tests): Add tst-clock2.
12602 * rt/tst-clock2.c: New file.
12603
12604 [BZ #2978]
12605 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12606 function and its parameters and pass it to new thread.
12607 (__gai_notify): Add support for alternative waiting for completion.
12608 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12609 waiting for completion.
12610 * resolv/getaddrinfo_a.c: Likewise.
12611 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12612 waiting for completion is used.
12613 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12614 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12615 * resolv/gai_error.c: Likewise.
12616 * resolv/gai_sigqueue.c: Likewise.
12617
83ae6b40
RM
126182006-08-02 Thomas Schwinge <tschwinge@gnu.org>
12619
0e4e62fe 12620 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 12621 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 12622
82ee37c5
UD
126232006-06-23 Joseph Myers <joseph@codesourcery.com>
12624
12625 [BZ #2980]
f1762c0c 12626 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
12627
126282006-08-02 Ulrich Drepper <drepper@redhat.com>
12629
12630 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12631 walk them instead of the symbol table.
12632
7bb1b2c9
UD
126332006-08-01 Ulrich Drepper <drepper@redhat.com>
12634
f13bfdd0 12635 [BZ #2098]
fbbc73b3
UD
12636 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12637 status of NSS calls, not the number of returned entries.
12638
a4518922
UD
12639 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12640 request_key, keyctl.
7bb1b2c9 12641
b06e7e9a
UD
126422006-07-31 Ulrich Drepper <drepper@redhat.com>
12643
12644 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12645
f1227969
UD
126462006-07-16 Jeff Bailey <jbailey@ubuntu.com>
12647
12648 * elf/tst-auditmod1.c: Fix typo in #error.
12649
82ae2712
UD
126502006-07-31 Ulrich Drepper <drepper@redhat.com>
12651
f1227969
UD
12652 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12653
82ae2712
UD
12654 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12655
a1260d92
UD
126562006-07-20 Adam Nemet <anemet@caviumnetworks.com>
12657
12658 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 12659 that the directory is empty even on non-POSIX filesystems.
a1260d92 12660
d2de41fe
UD
126612006-07-31 Ulrich Drepper <drepper@redhat.com>
12662
13669f2c
UD
12663 * elf/dl-open.c (dl_open_worker): Add branch prediction.
12664
d2de41fe
UD
12665 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12666 the backend NSS module. If backend setgrent call failed, don't have
12667 internal_setgrent fail. Just remember this until it is needed.
12668 * nis/nss_compat/compat-pwd.c: Likewise.
12669 * nis/nss_compat/compat-spwd.c: Likewise.
12670
b894c2ea
RM
126712006-07-30 Roland McGrath <roland@redhat.com>
12672
12673 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12674 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12675 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12676 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12677
12678 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12679 (nanosleep_not_cancel): New macro.
12680 (sigsuspend_not_cancel): new macro.
12681 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12682 (do_sigsuspend): Define as inline.
12683 (__sigsuspend): Always use do_sigsuspend.
12684 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12685 * include/signal.h: Declare __sigsuspend_nocancel.
12686 * sysdeps/posix/pause.c
12687 [! NO_CANCELLATION] (__pause_nocancel): New function.
12688
12689 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12690 * include/time.h (__nanosleep_nocancel): Likewise.
12691
c10d32c8
UD
126922006-07-30 Ulrich Drepper <drepper@redhat.com>
12693
12694 * locale/programs/localedef.c (add_to_readlist): Rename local
12695 variables to avoid confusion.
12696
12697 * locale/programs/charmap.c (charmap_read): Emit error message if
12698 charmap couldn't be found or read.
12699
6822f056
UD
127002006-07-28 Ulrich Drepper <drepper@redhat.com>
12701
d5ba53f9
UD
12702 * sysdeps/unix/sysv/linux/kernel-features.h: Define
12703 __ASSUME_FUTEX_LOCK_PI.
12704 * include/time.h: Declare __nanosleep_nocancel.
12705 * include/unistd.h: Declare __pause_nocancel.
12706
6822f056
UD
12707 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12708 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
12709 get the __stack_chk_fail_local definition when it's needed.
12710
3a975ff5
UD
127112006-07-26 Ulrich Drepper <drepper@redhat.com>
12712
6de1f625
UD
12713 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12714 * dlfcn/bug-atexit3.c: New file.
12715 * dlfcn/bug-atexit3-lib.cc: New file.
12716
3a975ff5
UD
12717 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12718 used when the namespace is not the base namespace.
12719
a92b1166
UD
127202006-07-26 Gavin Romig-Koch <gavin@redhat.com>
12721
12722 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12723 (__new_exitfn): Bump it in every successful call.
12724 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12725 more exit handlers, call them right away.
12726 * stdlib/exit.h: Declare __new_exitfn_called.
12727
a08336fb
UD
127282006-07-25 Ulrich Drepper <drepper@redhat.com>
12729
bd3754dc
UD
12730 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12731 calling registered handler.
12732
a08336fb
UD
12733 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12734 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12735 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12736 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12737 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12738 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12739 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12740 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12741
871b9158
UD
127422006-07-10 Ulrich Drepper <drepper@redhat.com>
12743
12744 * elf/dl-lookup.c (dl_new_hash): New functions.
12745 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12746 value here. Compute new-style hash value. Pass new hash value
12747 and reference to variable with the old value to do_lookup_x.
12748 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12749 old-style hash table.
12750 (_dl_debug_bindings): Pass new hash value and reference to variable
12751 with the old value to do_lookup_x.
12752 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12753 new-style hash value and change old-style hash value parameter to
12754 be a reference. Reoganize functions to determine whether
12755 new-style hash table is available. Only fall back on old-style
12756 table. If old-style hash value is needed, compute it here.
12757 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12758 entry.
12759 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12760 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
12761 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12762 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12763 * Makeconfig: If linker supports --hash-style option add it to all
12764 linker command lines to build DSOs.
12765 * config.make.in: Define have-hash-style.
12766 * configure.in: Test whether linker supports --hash-style option.
12767
12768 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12769 * sysdeps/generic/ldsodefs.h: Adjust prototype.
12770
a1f0de82
UD
127712006-06-27 Ulrich Drepper <drepper@redhat.com>
12772
361a3706
UD
12773 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12774 auditing.
12775
a1f0de82
UD
12776 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12777 RPATH of main map twice.
12778
4259230f
UD
127792006-06-22 Ulrich Drepper <drepper@redhat.com>
12780
12781 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12782 look further, return original strings.
12783 (_nl_find_msg): Do not return found translation if the conversion
12784 failed. Either signal the string is unusable or that something went
12785 wrong and the original should be used.
12786
127872006-06-21 Ulrich Drepper <drepper@redhat.com>
12788
12789 * string/_strerror.c (__strerror_r): Add __builtin_expect.
12790
f9b7a98b
UD
127912006-06-14 Jakub Jelinek <jakub@redhat.com>
12792
12793 [BZ #2766]
12794 * misc/insremque.c (insque): Handle prev == NULL.
12795 * misc/Makefile (tests): Add tst-insremque.
12796 * misc/tst-insremque.c: New test.
12797
ac55a25b
UD
127982006-06-17 Ulrich Drepper <drepper@redhat.com>
12799
12800 [BZ #2792]
12801 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12802 conflict with DL_DST_REQUIRED.
12803
02f366b3
UD
128042006-06-16 Ulrich Drepper <drepper@redhat.com>
12805
12806 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12807 match what Solaris does.
12808
9009e8f8
UD
128092006-06-04 Ulrich Drepper <drepper@redhat.com>
12810
1b8373f4
UD
12811 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12812 local_setegid instead of seteuid and setegid.
12813 * sysdeps/generic/local-setxid.h: New file.
12814 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12815
7231452e
UD
12816 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12817
9009e8f8 12818 * string/Makefile (tests): Add bug-envz1.
02f366b3 12819 * string/bug-envz1.c: New file.
9009e8f8 12820
33e63e79
UD
128212006-06-02 Jakub Jelinek <jakub@redhat.com>
12822
12823 * posix/regex_internal.c (re_string_skip_chars): If no character has
12824 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
12825 to the byte which couldn't be converted.
12826 (re_string_reconstruct): Don't clear valid_raw_len before calling
12827 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12828 tip_context using re_string_context_at.
12829 * posix/Makefile: Add rules to build and run bug-regex25 test.
12830 * posix/bug-regex25.c: New test.
12831
fdc02996
UD
128322006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
12833
12834 [BZ #2703]
12835 * string/envz.c (envz_strip): Correct erroneously reversed src
12836 and dest parameters to memmove() invocation.
12837
902c4291
UD
128382006-05-30 Jakub Jelinek <jakub@redhat.com>
12839
12840 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12841 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12842 to make sure the database has been already invalidated.
12843 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
12844 after the cache has been invalidated. Use pthread_mutex_lock rather
12845 than pthread_mutex_trylock if fd != -1.
12846 * nscd/connections.c (invalidate_cache): Add fd argument, write
12847 response to fd if not calling prune_cache, pass fd to prune_cache.
12848 (handle_request): Adjust invalidate_cache caller.
12849 (nscd_run): Pass -1 as fd to prune_cache.
12850
ecc68568
UD
128512006-05-30 Ulrich Drepper <drepper@redhat.com>
12852
12853 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12854 the correct place.
12855
9636a217
UD
128562006-05-29 Ulrich Drepper <drepper@redhat.com>
12857
12858 * nscd/nscd.h (struct database_dyn): Add prunelock field.
12859 * nscd/cache.c (prune_cache): Take prunelock before starting the
12860 work. Just return in case it is already taken.
cabfcde1 12861 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 12862
6bcb494a
UD
128632006-05-25 Ulrich Drepper <drepper@redhat.com>
12864
672d5a63 12865 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 12866 copying. No need to allocate new array for group members. Just
672d5a63
UD
12867 move the pointers and update the size.
12868
1663b44f
UD
12869 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12870 Avoid memory leak in case realloc fails. Simplification for
12871 better code generation.
12872
12873 Avoid deprecation warning because of libc_hidden_proto for
12874 inet6_option_alloc.
12875 * inet/inet6_option.c (option_alloc): Renamed from
12876 inet6_option_alloc. Made static.
9636a217 12877 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
12878 (inet6_option_append): Call option_alloc.
12879 * include/netinet/in.h: Remove libc_hidden_proto for
12880 inet6_option_alloc.
12881
6bcb494a
UD
12882 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12883 for cleanup when cb!=NULL [Coverity CID 233].
12884
aec6b246
UD
128852006-05-24 Ulrich Drepper <drepper@redhat.com>
12886
07bfff20
UD
12887 [BZ #2693]
12888 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12889 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12890 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12891 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12892 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12893 and inet6_rth_getaddr.
12894 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12895 array.
12896 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12897 Mark inet6_option_* interfaces as deprecated.
12898 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12899 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12900 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12901 inet6_rth_segments, and inet6_rth_getaddr.
12902 * inet/inet6_opt.c: New file.
12903 * inet/inet6_rth.c: New file.
12904
12905 * inet/netinet/icmp6.h: Pretty printing.
12906
aec6b246
UD
12907 [BZ #2683]
12908 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12909
2d571cd1
UD
129102006-05-23 Ulrich Drepper <drepper@redhat.com>
12911
062e719b
UD
12912 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12913 doing it all here. When server does not know the answer do not
12914 fail immediate, try parent first.
12915
2d571cd1
UD
12916 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12917 overflow test.
12918
a17fa610
UD
129192006-05-20 Ulrich Drepper <drepper@redhat.com>
12920
12921 * nis/nis_call.c (__prepare_niscall): New function. Split out
12922 from __do_niscall.
12923 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12924 and exported.
12925 (__follow_path): New function. Split out from nis_list.
12926 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12927 _xdr_nis_result.
12928 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12929 _xdr_nis_result.
12930 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12931 and __follow_path.
12932 * nis/Versions: Export __prepare_niscall, __create_ib_request,
12933 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12934 from libnsl for version GLIBC_PRIVATE.
12935 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12936 Remove entry parameter from _nss_nisplus_parse_pwent and
12937 _nss_nisplus_parse_grent.
12938 * nis/nss_nisplus/nisplus-parser.c: Likewise.
12939 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12940 again. Rewrite getpwent handling to not use nis_first_entry and
12941 nis_next_entry. Roll out own niscall handling.
12942 * nis/nss_nisplus/nisplus-grp.c: Likewise.
12943
12944 * sunrpc/xdr_rec.c: Fix typo in comment.
12945
429bb183
UD
129462006-05-19 Ulrich Drepper <drepper@redhat.com>
12947
1d4f062a
UD
12948 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12949 handling.
12950
101cc598
UD
12951 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12952 to allocate memory for my_pollfd. Better initialization of
12953 cb_is_running. Use TEMP_FAILURE_RETRY.
12954
f50fa10c
UD
12955 * malloc/memusage.sh (memusageso): Add quotes.
12956 (memusagestat): Likewise.
12957 * debug/xtrace.sh (pcprofileso): Likewise.
12958 (pcprofiledump): Likewise.
12959 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12960 replacement.
12961 * malloc/Makefile ($(objpfx)memusage): Likewise.
12962
882bfe73
UD
12963 * nis/nis_callback.c (__nis_create_callback): Calls to
12964 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
12965 asprintf call fails.
12966
429bb183
UD
12967 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12968 no uninitialized memory is passed to sendto.
12969
f90de831
UD
129702006-05-18 Ulrich Drepper <drepper@redhat.com>
12971
12972 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12973 of snprintf+strdup. Handle OOM.
12974 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12975 cb->serv together. Remove now obsolete free calls.
12976 (__nis_destroy_callback): Remove now obsolete free call.
12977
a17fa610 129782006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
12979
12980 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12981 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12982 and ULA respectively). Set precedence for IPv4 address to 10 as
12983 defined in RFC3484 for preferring IPv6.
12984 * posix/gai.conf: Update to match the new default tables.
12985
758b9d7e
UD
129862006-05-18 Jakub Jelinek <jakub@redhat.com>
12987
12988 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12989 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12990 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12991 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12992
12993 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12994 Removed.
12995 (init_nss_interface): Remove initialization of these variables.
12996
129972006-05-18 Ulrich Drepper <drepper@redhat.com>
12998
12999 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13000 nis_free_directory forward to avoid duplication.
13001
388c779e
UD
130022006-05-17 Ulrich Drepper <drepper@redhat.com>
13003
5f1724bf
UD
13004 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13005 rec_dirsearch returning NULL.
13006 (first_shoot): Handle __nis_finddirectory returning NULL.
13007 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13008
388c779e
UD
13009 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13010 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13011
360d5cf4
UD
130122006-05-17 Jakub Jelinek <jakub@redhat.com>
13013
13014 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13015 pid changed.
13016
88dbff8c
UD
130172006-05-15 Ulrich Drepper <drepper@redhat.com>
13018
6f8a7dff
UD
13019 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13020
13021 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13022 * nscd/nscd_getgr_r.c: Likewise.
13023
13024 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13025
13026 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13027 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13028
13029 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13030
13031 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13032
360d5cf4 13033 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
13034
13035 * include/rpc/auth.h: Mark xdr_des_block_internal and
13036 xdr_opaque_auth_internal as hidden.
13037
13038 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13039 hidden.
13040
360d5cf4 13041 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 13042
02264020
UD
13043 * misc/getusershell.c (okshells): Don't use static initializers,
13044 do it dynamically.
13045
fd5ea238
UD
13046 * stdlib/fmtmsg.c (keywords): Change type of len element to
13047 uint32_t to not waste space on 64bit machines.
13048
9446614c
UD
13049 * locale/setlocale.c: Change _nl_category_names into a string.
13050 Add new _nl_category_name_idxs. Change all users.
13051 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13052 Declare _nl_category_name_idxs.
13053 * locale/findlocale.c: Adjust for _nl_category_names change.
13054 * locale/loadlocale.c: Likewise.
13055 * locale/newlocale.c: Likewise.
13056 * intl/dcigettext.c: Likewise.
13057
88dbff8c
UD
13058 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13059 (add_alias2): ...here. New function.
13060 (__gconv_read_conf): Simplify builtin alias handling.
13061 (builtin_aliases): Convert to string to avoid relocations.
13062 * iconv/gconv_builtin.h: Add comment about correct formatting.
13063
4442d58f
UD
130642006-05-15 Jakub Jelinek <jakub@redhat.com>
13065
13066 * resolv/res_debug.c (loc_ntoa): Make error const.
13067
130682006-05-14 Andreas Schwab <schwab@suse.de>
13069
13070 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13071
130722006-05-12 Jakub Jelinek <jakub@redhat.com>
13073
13074 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13075 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13076 sizeof (cpu_set_t).
13077
a51752b6
UD
130782006-05-11 Ulrich Drepper <drepper@redhat.com>
13079
5d3fd1f6
UD
13080 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13081
08cfb839
UD
13082 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13083
4b481a15
UD
13084 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13085 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13086
13087 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13088 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13089
13090 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13091 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13092 xdr_cback_data.
13093
13094 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13095 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13096 xdr_ypupdate_args.
13097
13098 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13099 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13100
13101 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13102 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13103
13104 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13105 * include/rpcsvc/nis_callback.h: New file.
13106
13107 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13108 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13109
13110 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13111 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13112
13113 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13114 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13115
13116 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13117 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13118
b1ad49c6
UD
13119 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13120 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13121 xdr_ypdelete_args.
13122
cd5f7829
UD
13123 * nis/nis_xdr.h: Mark all functions as hidden. Remove
13124 __BEGIN_DECLS and __END_DECLS, the header is not installed.
13125
a51752b6
UD
13126 * nis/nis_error.c: Remove table of strings. Use position
13127 independent mechanism.
13128 * nis/nis_error.h: New file.
13129
3d237e42
UD
131302006-05-11 Jakub Jelinek <jakub@redhat.com>
13131
13132 * locale/programs/ld-time.c (time_finish): If wide era name or
13133 format aren't provided, set both wname and wformat to L"".
13134
d6c159fe
UD
131352006-05-10 Ulrich Drepper <drepper@redhat.com>
13136
0088b04e
UD
13137 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13138 results if the call was succesful.
13139
d6c159fe
UD
13140 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13141
13142 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13143 as hidden.
13144
5c5acdf0
UD
131452006-05-10 Jakub Jelinek <jakub@redhat.com>
13146
13147 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13148
16d620db
UD
131492006-05-10 Ulrich Drepper <drepper@redhat.com>
13150
13151 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13152 caller makes sure this is not the case.
13153 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
13154
e7c8359e
UD
131552006-05-09 Ulrich Drepper <drepper@redhat.com>
13156
ecf359c6
UD
13157 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13158 calls.
13159
400cc70a
UD
13160 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13161 [Coverity CID 229, 230]
13162
13163 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13164 DGETTEXT calls.
13165 (hol_help): Likewise. [Coverity CID 226, 227]
13166
13167 * string/argz-replace.c (__argz_replace): Unconditionally call
13168 free on SRC. [Coverity CID 225]
13169
13170 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13171 the return value of __nis_default_owner and __nis_default_group,
13172 it has been especially allocated. [Coverity CID 224]
13173
51e59260
UD
13174 * nis/nis_defaults.c (searchXYX): New functions. Used by both
13175 searchgroup and searchowner. Significantly simplified.
13176 (__nis_default_owner): Remove duplication. Do not locally copy the
13177 string before duplicating it.
13178 (__nis_default_group): Likewise.
13179
13180 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13181 we must clear the variable before calling __nisfind_server.
13182
13183 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13184 nis_getnames. [Coverity CID 223]
13185
13186 * locale/programs/locfile.c (locfile_read): Use alloca instead of
13187 xmalloc to allocate local repertoire name. [Coverity CID 222]
13188
13189 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13190 allocate memory for the input to add_bytes. [Coverity CID 221]
13191
e7c8359e 13192 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 13193 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
13194
13195 * posix/getconf.c (print_all): Free confstr data after printing.
13196 [Coverity CID 218]
13197
13198 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13199 list allocation fails. [Coverity CID 215]
13200
13201 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13202 [Coverity CID 213]
13203
13204 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13205 string is NULL. [Coverity CID 212]
13206 * argp/Makefile: Add rules to build and run bug-argp1.
13207 * argp/bug-argp1.c: New file.
13208
13209 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13210 end of string.
13211 * stdlib/canonicalize.c (__realpath): Likewise.
13212
13213 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13214 pointer. [Coverity CID 206]
13215
13216 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13217 in statically linked code.
13218 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13219 statically built code, be prepared to have no link map.
13220 [Coverity CID 205]
13221
13222 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13223 dgettext calls. [Coverity CID 204]
13224
13225 * argp/argp-help.c (struct uparams): Remove valid member. Change
13226 the one user.
13227 (uparam_names): Reduce size. Avoid relative relocations.
13228 Moved to read-only segment.
13229 (fill_in_uparams): Update for new layout.
13230
13231 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13232 assumed to always be != NULL. [Coverity CID 202]
13233
13234 * argp/argp-help.c (hol_entry_help): Remove some dead code
13235 [Coverity CID 200].
13236
13237 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13238 away a few more unconditional yperr2nss calls.
13239 (_nss_nis_getservbyname_r): Likewise.
13240
acf82eaf
UD
132412006-05-06 Ulrich Drepper <drepper@redhat.com>
13242
4461cf48
UD
13243 * sysdeps/generic/ldsodefs.h: Remove support for non-core
13244 architectures.
13245
b74a8c7f
UD
13246 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13247 that unused memory passed to sendto is nevertheless initialized.
13248
acb98cb5
UD
13249 [BZ #2499]
13250 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13251 possibly unaligned memory accesses.
13252
bce16467
UD
13253 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13254 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13255 and __putlong respectively. Correct buffer overflow check for
13256 NS_NOTIFY_OP.
13257
13258 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13259
8e45b1ac
UD
13260 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13261 (send_dg): Rewrite error handling to be more compact and avoid
13262 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
13263
697e1628
UD
13264 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13265
13266 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13267 instead of ns_get16.
13268 (res_queriesmatch): Likewise. Minor optimization.
13269
acf82eaf
UD
13270 [BZ #2499]
13271 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13272 __libc_res_nsend might reallocate the buffer for the answer. In
13273 this case we have to reload the HP pointer.
13274
7bfee654
UD
132752006-05-05 Ulrich Drepper <drepper@redhat.com>
13276
694b49ca
UD
13277 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
13278 some branch prediction hints.
13279
7bfee654
UD
13280 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13281 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13282 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13283 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13284 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13285 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13286 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13287 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13288
308bb2d5
UD
132892006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
13290
13291 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13292 by a GOT relocation to make Scrt1.o position independent.
13293 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13294
13295 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13296 six system call parameters.
13297 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13298
cdb9c321
UD
132992006-05-05 Ulrich Drepper <drepper@redhat.com>
13300
13301 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13302 malloc&bzero.
13303
13304 * sunrpc/svc_udp.c (BZERO): Remove definition.
13305 (CALLOC): Define.
13306 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13307
13308 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
13309 (des_SPtrans): Use uint32_t type.
13310 (des_skb): Likewise.
13311
13312 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13313
fff04b32
UD
133142006-05-05 Jakub Jelinek <jakub@redhat.com>
13315
13316 [BZ #2509]
13317 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13318 on 32-bit arches.
13319
133202006-05-05 Ulrich Drepper <drepper@redhat.com>
13321
13322 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 13323 place where the iso639 array might be accessed beyond the limits.
fff04b32 13324
077a30bc 133252006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 13326
f2d5cf50
UD
13327 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13328 filling it for the first time.
13329
3e4370cf
UD
13330 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13331 Adjust all callers.
13332 Free res object content before returning.
13333
5e65a53d
UD
13334 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13335
48be3114
UD
13336 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13337 client->cl_auth.
13338
ca4fce0e
UD
13339 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13340 cleanup for initial thread, just the free call on TVP.
13341
077a30bc 13342 * nscd/gai.c (__getline): Define.
3b7a95fb 13343
5d37289a 13344
3f87d901 13345See ChangeLog.16 for earlier changes.