]> sourceware.org Git - glibc.git/blame - ChangeLog
(HOST_DB_LOOKUP): Ensure sufficient alignment of buffer and tmp_buffer.
[glibc.git] / ChangeLog
CommitLineData
b64a9db8
JJ
12007-04-23 Jakub Jelinek <jakub@redhat.com>
2
3 [BZ #4405]
4 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
5 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6
4d3144c9
RM
72007-04-22 Roland McGrath <roland@redhat.com>
8
9 * elf/elf.h (NT_PRXFPREG): New macro.
10
767b40bf
AJ
112007-04-19 Andreas Jaeger <aj@suse.de>
12
13 [BZ #3905]
14 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
15 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
16 Added.
17
2592d1ec
UD
182007-04-19 Ulrich Drepper <drepper@redhat.com>
19
20 * include/sys/mman.h: Mark madvise hidden.
d07d044e 21 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 22
7ab174ed
UD
232007-04-06 Jakub Jelinek <jakub@redhat.com>
24
25 * nis/nis_domain_of.c (__nis_domain_of): New function.
26 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
27 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
28 * nis/nis_call.c (rec_dirsearch): Likewise.
29 (first_shoot): Likewise. Remove search_parent_first argument.
30 (struct nis_server_cache): Rename search_parent_first field
31 to search_parent.
32 (nis_server_cache_search, nis_server_cache_add): Rename
33 search_parent_first argument to search_parent.
34 (__nisfind_server): Likewise. If search_parent, call
35 __nis_domain_of.
36
b17c265f
UD
372007-04-18 Ulrich Drepper <drepper@redhat.com>
38
39 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
40
b7674b11
UD
412007-04-17 Ulrich Drepper <drepper@redhat.com>
42
43 [BZ #4368]
44 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
45
faf3ad69
UD
462007-04-16 Ulrich Drepper <drepper@redhat.com>
47
48 [BZ #4364]
49 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
50
c14f245c
UD
512007-04-15 Jakub Jelinek <jakub@redhat.com>
52
53 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
54 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
55 current number of locales in SUPPORTED.
56 (create_archive): Initialize serial.
57 (enlarge_archive): Preserve aliases rather than duplicating
58 their locrecs.
59
d40e67f5
UD
602007-04-13 Jakub Jelinek <jakub@redhat.com>
61
993a5d66
UD
62 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
63 after _IO_un_link, not before it.
64
d40e67f5
UD
65 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
66 special case handling when wcp == wstartp + 1. Fix a comment typo.
67 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
68
0fca3153
UD
692007-03-30 Jakub Jelinek <jakub@redhat.com>
70
71 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
72 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
73 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
74 Remove __THROW.
75 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
76 _IO_file_xsgetn_maybe_mmap): Likewise.
77 * libio/oldfileops.c (old_do_write): Likewise.
78 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
79 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
80 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
81 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
82 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
83 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
84 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
85 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
86 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
87 _IO_file_underflow, _IO_file_underflow_mmap,
88 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
89 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
90 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
91 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
92 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
93 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
94 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
95 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
96 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
97 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
98 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
99 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
100 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
101 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
102 _IO_adjust_column_internal, _IO_default_uflow_internal,
103 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
104 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
105 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
106 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
107 _IO_file_close_it_internal, _IO_file_underflow_internal,
108 _IO_file_overflow_internal, _IO_file_attach_internal,
109 _IO_file_fopen_internal, _IO_file_sync_internal,
110 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
111 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
112 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
113 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
114 _IO_seekpos_unlocked): Likewise.
115 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
116 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
117
07358add
JJ
1182007-04-16 Jakub Jelinek <jakub@redhat.com>
119
120 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
121 argument in xmalloc size computation.
122
7a82b74f
UD
1232007-04-01 Jakub Jelinek <jakub@redhat.com>
124
125 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
126 math_opt_barrier and math_force_eval macros.
127
3e336a87
UD
1282007-03-27 Jakub Jelinek <jakub@redhat.com>
129
130 [BZ #3306]
131 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
132 * sysdeps/i386/fpu/math_private.h: New file.
133 * sysdeps/x86_64/fpu/math_private.h: New file.
134 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
135 math_force_eval macros. Use "+m" constraint on asm rather than
136 "=m" and "m".
137 * math/s_nextafter.c (__nextafter): Likewise.
138 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
139 Likewise.
140 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
141 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
142 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
143 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
144 math_opt_barrier and math_force_eval macros.
145 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
146 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
147 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
148 (__nexttoward): Use math_opt_barrier and
149 math_force_eval macros. Use "+m" constraint on asm rather than
150 "=m" and "m". Only use asm to force double result if
151 FLT_EVAL_METHOD is 2.
152 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
153 (__nexttowardf): Use math_opt_barrier and
154 math_force_eval macros. Use "+m" constraint on asm rather than
155 "=m" and "m". Only use asm to force double result if
156 FLT_EVAL_METHOD is not 0.
157 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
158 (__nexttowardf): Use math_opt_barrier and
159 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
160 x to float using asm.
161 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
162 (__nldbl_nexttowardf): Use math_opt_barrier and
163 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
164 x to float using asm.
165 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
166 (__nexttowardf): Use math_opt_barrier and math_force_eval
167 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
168 * math/bug-nextafter.c (zero, inf): New variables.
169 (main): Add new tests.
170 * math/bug-nexttoward.c (zero, inf): New variables.
171 (main): Add new tests.
172
a8c79c40
UD
1732007-03-22 Jakub Jelinek <jakub@redhat.com>
174
175 [BZ #3427]
176 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
177 exceptions both in SW and MXCSR.
178 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
179 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
180 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
181 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
182 in MXCSR if SSE is available.
183 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
184 and ldsodefs.h.
185 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
186 Fix comment typo.
187 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
188 Return 0 rather than 1.
189 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
190 Remove incorrect part of a comment. Fix argument to feraiseexcept.
191 * math/test-fenv.c (feholdexcept_tests): New function.
192 (main): Call it.
193
1942007-01-05 Richard B. Kreckel <kreckel@ginac.de>
195
196 [BZ #3427]
197 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
198 in SW.
199
30a3aa75
JJ
2002007-04-13 Jakub Jelinek <jakub@redhat.com>
201
202 [BZ #4344]
203 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
204 Reported by David Anderson <davea42@earthlink.net>.
205
75587bfe
UD
2062007-04-07 Ulrich Drepper <drepper@redhat.com>
207
208 * posix/sys/wait.h: Remove unnecessary forward declaration.
209
88fa1769
JJ
2102007-04-05 Jakub Jelinek <jakub@redhat.com>
211
212 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
213 with obj->do_servers after first_shoot.
214
eab1bdfb
UD
2152007-04-03 Ulrich Drepper <drepper@redhat.com>
216
217 * posix/Makefile (routines): Add sched_cpucount.
218 (tests): Add tst-cpucount.
219 * posix/sched_cpucount.c: New file.
220 * posix/tst-cpucount.c: New file.
221 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
222 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
223 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
224 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 225
9700b039
UD
2262007-03-27 Jakub Jelinek <jakub@redhat.com>
227
228 * posix/fnmatch.c (STRUCT): Define.
229 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
230 * posix/fnmatch_loop.c (struct STRUCT): New type.
231 (FCT): Add ends argument. If ends != NULL and normal * is
232 seen in the pattern, store current pattern and string pointers
233 and return. Adjust recursive calls.
234 (EXT): Adjust FCT callers.
235 (STRUCT): Undef at the end of the file.
236 * posix/Makefile (tests): Add tst-fnmatch2.
237 * posix/tst-fnmatch2.c: New test.
238
d64e9790
JJ
2392007-04-01 Jakub Jelinek <jakub@redhat.com>
240
933dfe7b
JJ
241 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
242 and 1 on failure.
243
d64e9790
JJ
244 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
245 Change last argument to unsigned int.
246
e1f0c5bc
UD
2472007-03-23 Jakub Jelinek <jakub@redhat.com>
248
249 * scripts/check-local-headers.sh: Filter out sys/capability.h.
250
2512007-03-22 Jakub Jelinek <jakub@redhat.com>
252
253 * config.h.in (HAVE_LIBCAP): Add.
254 * nscd/selinux.h: Include sys/capability.h rather than non-existent
255 sys/capabilities.h.
256 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
257 free_caps. Cast away const from 4th cap_set_flag argument.
258
4e87573f
UD
2592007-03-26 Ulrich Drepper <drepper@redhat.com>
260
261 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
262 GLIBC_2.6.
263 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
264 Add sync_file_range.
265 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
266
fa6e3bc3
UD
2672007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
268
269 * sysdeps/powerpc/bits/atomic.h
270 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
271 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
272 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
273 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
274 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
275 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
276 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
277 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
278 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
279 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
280 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
281 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
282 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
283 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
284 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
285 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
286 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
287 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
288 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
289 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
290
2912007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
292
293 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
294 (__cache_line_size): Define the variable here. Add
295 attribute_hidden, remove weak_extern.
296 (__libc_start_main): Set __cache_line_size
297 unconditionally.
298 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
299 (__cache_line_size): Define the variable here. Add
300 attribute_hidden, remove weak_extern.
301 (DL_PLATFORM_AUXV): Set __cache_line_size
302 unconditionally.
303 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
304 weak_extern, add attribute_hidden.
305 (__elf_machine_runtime_setup): Assume __cache_line_size is always
306 defined in ld.so.
307 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
308 definition.
309 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
310
0479e581
JJ
3112007-03-26 Jakub Jelinek <jakub@redhat.com>
312
313 [BZ #4276]
314 * timezone/africa: Update from tzdata2007d.
315 * timezone/asia: Likewise.
316 * timezone/australasia: Likewise.
317 * timezone/backward: Likewise.
318 * timezone/europe: Likewise.
319 * timezone/iso3166.tab: Likewise.
320 * timezone/leapseconds: Likewise.
321 * timezone/northamerica: Likewise.
322 * timezone/southamerica: Likewise.
323 * timezone/zone.tab: Likewise.
324
325 * timezone/private.h: Update from tzcode2007d.
326 * timezone/zdump.c: Likewise.
327 * timezone/zic.c: Likewise.
328
697d37b1
JJ
3292007-03-21 Jakub Jelinek <jakub@redhat.com>
330
331 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
332 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
333 variables.
334 (nis_server_cache_search, nis_server_cache_add): New functions.
335 (__nisfind_server): Use them. Add dbp and flags argument, if
336 call __nisbind_create.
337 (__nisbind_create): Add server_used and current_ep arguments,
338 only call __nis_findfastest if server_used is ~0.
339 (__do_niscall2, __prepare_niscall): Adjust callers.
340 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
341 ckey_cache_euid, ckey_cache_lock): New variables.
342 (get_ckey): New function.
343 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
344 __pmap_getnisport. Save __pmap_getnisport result in
345 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
346 key.
347 * nis/nis_lookup.c (nis_lookup): Likewise.
348 * nis/nis_table.c (nis_list): Likewise.
349 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
350 prototypes.
351
352 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
353 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
354 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
355 _nss_nisplus_getservbyport_r): Likewise.
356 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
357 _nss_nisplus_getnetbyaddr_r): Likewise.
358 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
359 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
360 _nss_nisplus_getntohost_r): Likewise.
361 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
362 _nss_nisplus_getrpcbynumber_r): Likewise.
363
06029c20
JJ
3642007-03-20 Jakub Jelinek <jakub@redhat.com>
365
371f84a4
JJ
366 * configure.in (libc_cv_gnu89_inline): Only do compile test.
367 * configure: Rebuilt.
368
06029c20
JJ
369 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
370 bit-fields.
371 * soft-fp/extended.h (_FP_UNION_E): Likewise.
372
3732006-06-07 Joseph Myers <joseph@codesourcery.com>
374
375 [BZ #2831]
376 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
377 bit-fields.
378
addc8335
UD
3792007-03-18 Jakub Jelinek <jakub@redhat.com>
380
381 * nscd/gai.c: Include alloca.h.
382 (__libc_use_alloca): Define.
383
b037a293
UD
3842007-03-16 Jakub Jelinek <jakub@redhat.com>
385
965cba04
UD
386 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
387 smaller scopes.
388 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
389 (DL_DST_REQUIRED): Adjust user.
390
391 * include/dlfcn.h (struct link_map): New forward decl.
392
393 * inet/getnameinfo.c: Include stddef.h.
394 (getnameinfo): Use offsetof.
395
396 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
397
398 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
399
400 * string/strerror_l.c: Include stdlib.h.
401
b037a293
UD
402 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
403 * config.make.in (gnu89-inline-CFLAGS): New variable.
404 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
405 -std=gnu99.
406 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
407 * argp/argp.h: Use it.
408 * bits/mathinline.h: Likewise.
409 * bits/sigset.h: Likewise.
410 * bits/string.h: Likewise.
411 * ctype/ctype.h: Likewise.
412 * hurd/hurd.h: Likewise.
413 * hurd/hurd/fd.h: Likewise.
414 * hurd/hurd/port.h: Likewise.
415 * hurd/hurd/signal.h: Likewise.
416 * hurd/hurd/threadvar.h: Likewise.
417 * hurd/hurd/userlink.h: Likewise.
418 * io/sys/stat.h: Likewise.
419 * libio/bits/stdio.h: Likewise.
420 * libio/bits/stdio2.h: Likewise.
421 * mach/lock-intern.h: Likewise.
422 * mach/mach/mig_support.h: Likewise.
423 * math/bits/cmathcalls.h: Likewise.
424 * posix/bits/unistd.h: Likewise.
425 * socket/bits/socket2.h: Likewise.
426 * stdlib/bits/stdlib.h: Likewise.
427 * stdlib/stdlib.h: Likewise.
428 * string/argz.h: Likewise.
429 * string/bits/string2.h: Likewise.
430 * string/bits/string3.h: Likewise.
431 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
432 * sysdeps/generic/inttypes.h: Likewise.
433 * sysdeps/generic/machine-lock.h: Likewise.
434 * sysdeps/generic/machine-sp.h: Likewise.
435 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
436 * sysdeps/i386/i486/bits/string.h: Likewise.
437 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
438 * sysdeps/mach/alpha/machine-lock.h: Likewise.
439 * sysdeps/mach/alpha/machine-sp.h: Likewise.
440 * sysdeps/mach/i386/machine-lock.h: Likewise.
441 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
442 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
443 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
444 * sysdeps/s390/bits/string.h: Likewise.
445 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
446 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
447 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
448 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
449 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
450 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
451 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
452 * wcsmbs/bits/wchar2.h: Likewise.
453 * wcsmbs/wchar.h: Likewise.
454 * stdlib/gmp.h: Likewise. Include <features.h> to get
455 __extern_inline definition.
456
6b2665f5
UD
4572007-03-15 Jakub Jelinek <jakub@redhat.com>
458
b037a293
UD
459 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
460 NULL.
461
6b2665f5
UD
462 [BZ #3919]
463 * math/libm-test.inc (log_test): Test -Inf and NaN.
464 (log10_test, log1p_test, log2_test): Test -Inf.
465 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
466 FE_INVALID when argument is qNaN.
467 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
468 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
469 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
470 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
471 andb $1, %ah with testb $1, %ah, don't test for parity, instead
472 testb $4, %ah and jump if non-zero.
473 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
474 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
475
44969f17
UD
476 [BZ #4101]
477 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
478 ancestors with the same depths.
479 Patch by Niels Moeller <nisse@lysator.liu.se>.
480 (filter_doc): Don't crash if argp is NULL.
481 * argp/Makefile (tests): Add tst-argp2.
482 * argp/tst-argp2.c: New test.
483
05eb8975
UD
484 [BZ #4130]
485 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
486 open_not_cancel_2.
487 (updwtmp_file): Likewise.
488
6cb988fa
UD
489 [BZ #4181]
490 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
491 (inet6_opt_append): Don't check extlen is big enough if extbuf
492 is NULL.
493 (inet6_opt_finish): Likewise.
494 * inet/Makefile (tests): Add test-inet6_opt.
495 * inet/test-inet6_opt.c: New test.
496
497 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
498 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
499 NLMSG_ERR. Instead use a page sized buffer.
500 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
501 buffer.
502
aea1d19e
RH
5032007-03-14 Richard Henderson <rth@redhat.com>
504
b6df547c
RH
505 * sysdeps/alpha/fpu/s_llround.c: New file.
506 * sysdeps/alpha/fpu/s_llroundf.c: New file.
507 * sysdeps/alpha/fpu/s_lround.c: New file.
508 * sysdeps/alpha/fpu/s_lroundf.c: New file.
509 * sysdeps/alpha/fpu/s_round.c: New file.
510 * sysdeps/alpha/fpu/s_roundf.c: New file.
511 * sysdeps/alpha/fpu/s_trunc.c: New file.
512 * sysdeps/alpha/fpu/s_truncf.c: New file.
513
aea1d19e
RH
514 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
515 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
516 * sysdeps/alpha/fpu/s_floor.c: Likewise.
517 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
518 * sysdeps/alpha/fpu/s_rint.c: Likewise.
519 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
520
521 * sysdeps/alpha/fpu/s_fmax.S: New file.
522 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
523 * sysdeps/alpha/fpu/s_fmin.S: New file.
524 * sysdeps/alpha/fpu/s_fminf.S: New file.
525 * sysdeps/alpha/fpu/s_isnan.c: New file.
526 * sysdeps/alpha/fpu/s_isnanf.c: New file.
527 * sysdeps/alpha/fpu/s_llrint.c: New file.
528 * sysdeps/alpha/fpu/s_llrintf.c: New file.
529 * sysdeps/alpha/fpu/s_lrint.c: New file.
530 * sysdeps/alpha/fpu/s_lrintf.c: New file.
531 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
532 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
533
534 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
535 (__fdimf, fdimf, __fdim, fdim): Remove.
536 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
537 (__isnanf, __isnan, __isnanl): New.
538
9e43b50d
RH
5392007-03-13 Richard Henderson <rth@redhat.com>
540
541 * sysdeps/ieee754/ldbl-128/Makefile: New file.
542
62789da3
RH
5432007-03-13 Richard Henderson <rth@redhat.com>
544
545 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
546 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
547 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
548 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
549 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
550 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
551
47dbe62b
RH
5522007-03-13 Richard Henderson <rth@redhat.com>
553
554 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
555 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
556 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
557 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
558 Move to dl-auxv.h; initialize instead of extern weak.
559 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
560 weak symbol.
561 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
562 Extern instead of initialized.
563
b8097bed
RH
5642007-03-13 Richard Henderson <rth@redhat.com>
565
566 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
567 __sigsuspend_nocancel.
568
6bf4a686
UD
5692007-03-06 Ulrich Drepper <drepper@redhat.com>
570
571 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
572 172.16/12 address range.
573
0b3b1a0c
UD
5742007-03-02 Jakub Jelinek <jakub@redhat.com>
575
576 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
577 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
578 message.
579
8f3edfee
UD
5802007-03-01 Jakub Jelinek <jakub@redhat.com>
581
c1c5e654 582 [BZ #4069]
8f3edfee
UD
583 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
584 earlier.
585 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
586
587 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
588 for x qNaN and y either +-inf or non-integer value.
589 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
590 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
591 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
592
245a1481
UD
5932007-02-10 Mike Frysinger <vapier@gentoo.org>
594
595 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
596 from sysdep_headers.
597
c217692b
UD
5982007-02-28 Jakub Jelinek <jakub@redhat.com>
599
600 * time/tzfile.c (find_transition): Instead of a linear search try to
601 guess the transition index, use a linear search if the result is at
602 most 10 transitions away from the guess or binary search otherwise.
603
fe64626c
JJ
6042007-02-27 Jakub Jelinek <jakub@redhat.com>
605
606 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
607 memory reallocation.
608
0f7769f7
UD
6092007-02-21 Ulrich Drepper <drepper@redhat.com>
610
621c133d
UD
611 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
612 and fix some typos.
613 Optimize use of TOLOWER.
9cf147d8 614
cdfd61e1
UD
615 [BZ #3325]
616 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
617 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
618 * sysdeps/i386/fpu/e_fmod.S: Likewise.
619
8889e7aa
UD
620 [BZ #3458]
621 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
622 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
623
63a2f305
UD
624 [BZ #4076]
625 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
626 (open_dir_stream): Likewise.
627 * io/Makefile (tests): Add bug-ftw5.
628 io/bug-ftw5.c: New file.
629
c8703f88
UD
630 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
631 * nscd/servicescache.c (cache_addserv): Likewise.
632
633 * nscd/grpcache.c (cache_addgr): In case a record changed on
634 refresh, adjust key_copy.
635
61705e06
UD
636 [BZ #4074]
637 * nscd/pwdcache.c (cache_addpw): In case a record changed on
638 refresh, adjust key_copy.
639
0f7769f7
UD
640 [BZ #4070]
641 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 642 special cases.
8889e7aa 643 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 644
3979024a
UD
6452007-02-19 Ulrich Drepper <drepper@redhat.com>
646
4c02bf1a
UD
647 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
648 optimization.
649
3979024a
UD
650 * stdio-common/vfscanf.c: Small cleanups throughout.
651
821d3e70
UD
6522007-02-18 Ulrich Drepper <drepper@redhat.com>
653
2484468b
UD
654 [BZ #3325]
655 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
656 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
657 * sysdeps/i386/fpu/e_fmod.S: Likewise.
658 Patch by Jared Casper <jaredcasper@gmail.com>.
659
858ee15d
UD
660 * sysdeps/unix/closedir.c: Outside libc don't use locking.
661 * sysdeps/unix/opendir.c: Likewise.
662 * sysdeps/unix/readdir.c: Likewise.
663
ecb72bd5
UD
664 [BZ #2211]
665 * stdio-common/vfscanf.c: Handle localized digits etc for floating
666 point numbers.
667 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
668
ac2ca022
UD
669 * stdio-common/vfscanf.c: Fix problems in width accounting.
670 * stdio-common/tst-sscanf.c (double_tests): New tests.
671 (main): Hook them up.
672
e9bb5246 673 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 674 More simplifications of floating-point reader.
e9bb5246 675
821d3e70
UD
676 * stdio-common/Makefile (tests): Add tst-swscanf.
677 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
678 testing.
679 * stdio-common/tst-swscanf.c: New file.
680
07fb5185
UD
6812007-02-17 Ulrich Drepper <drepper@redhat.com>
682
9138cc0b
UD
683 [BZ #2633]
684 * libio/stdio.h: Define struct _IO_FILE in global namespace.
685 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
686 Remove using for __jmp_buf_tag.
687 * locale/locale.h (struct lconv): Also define in std namespace.
688 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
689
6818d837
UD
690 [BZ #3842]
691 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
692 using __libc_enable_secure.
693
15c4b5a4
UD
694 [BZ #3818]
695 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
696
5e9e9c14
UD
697 [BZ #3745]
698 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
699 of names for ellipsises.
700
07fb5185
UD
701 [BZ #3348]
702 * malloc/memusage.sh: Cleanups.
703 * debug/xtrace.sh: Quoting and trap changes.
704
8c6d1043
UD
7052007-02-16 Ulrich Drepper <drepper@redhat.com>
706
07fb5185
UD
707 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
708
93e66914 709 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
710 * locale/iso-4217.def: Define RSD, remove CSD.
711
ad0b348c
UD
712 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
713 and 64-bit operations.
714
715 [BZ #4040]
716 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
717 16-bit operations.
718
8c6d1043
UD
719 * nscd/nscd.c (parse_opt): One more conversion to use send instead
720 of writev.
721
987f54c6
UD
7222007-02-15 Ulrich Drepper <drepper@redhat.com>
723
b3715c05
UD
724 [BZ #3991]
725 * assert/assert.h (assert): Simplify.
726 (assert_perror): Likewise.
727 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
728
6eea8e0d
UD
729 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
730 reqdata.
731
987f54c6
UD
732 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
733 change: don't pass NULL in place of an integer.
734
3dc08a7e
UD
7352007-02-02 Bruno Haible <bruno@clisp.org>
736
06c17c78
UD
737 [BZ #3954]
738 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
739 Add mapping for U+327E.
740 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
741 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
742 mapping of 0xD9 0xE8.
743 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
744 mapping of U+327E.
745 Reported by Jungshik Shin <jungshik@google.com>.
746
747 [BZ #3955]
3dc08a7e
UD
748 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
749 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
750 Reported by Jungshik Shin <jungshik@google.com>.
751
a810e68c
UD
7522007-02-14 Ulrich Drepper <drepper@redhat.com>
753
754 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
755 byte variants.
756
757 [BZ #4040]
758 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
759 byte variants. Patch mostly be tom@tommay.net.
760
05f135ba
UD
7612007-02-14 Jakub Jelinek <jakub@redhat.com>
762
763 [BZ #3996]
764 * posix/glob.c (attribute_hidden): Define if not defined.
765 (glob): Unescape dirname, filename or username when needed and not
766 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
767 is NULL. Handle unescaped [ in pattern without closing ].
768 Don't pass GLOB_CHECK down to recursive glob for directories.
769 (__glob_pattern_type): New function.
770 (__glob_pattern_p): Implement using __glob_pattern_type.
771 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
772 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
773 Remove unreachable code.
774 * posix/globtest.sh: Add a couple of new tests.
775
2f699967
UD
7762007-02-13 Ulrich Drepper <drepper@redhat.com>
777
778 * po/ru.po: Update from translation team.
779
3a7cd5b4
JJ
7802007-02-12 Jakub Jelinek <jakub@redhat.com>
781
782 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
783 to the list of i486+ CPUs.
784 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
785
2f978feb
UD
7862007-02-12 Ulrich Drepper <drepper@redhat.com>
787
788 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
789 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
790 references.
791
2bbb7d5b
UD
7922007-02-09 Ulrich Drepper <drepper@redhat.com>
793
5ed61e0f
UD
794 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
795
2bbb7d5b
UD
796 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
797 * resolv/res_mkquery.c: Define __res_nopt.
798 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
799 try adding EDNS0 record.
800 * resolv/res_send.c (send_dg): If request failed with FORMERR and
801 EDNS0 record was send make sure we don't try it again.
802 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
803 * include/resolv.h: Declare __res_nopt.
804
00458b5b
UD
8052007-02-08 Jakub Jelinek <jakub@redhat.com>
806
807 [BZ #3944]
808 * time/strptime_l.c (__strptime_internal): Set have_mon for
809 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
810 have been computed from tm_yday and tm_year. Don't crash
811 in day_of_the_week or day_of_the_year if not have_mon
812 and tm_mon contains bogus value.
813 * time/Makefile (tests): Add tst-strptime3.
814 * time/tst-strptime3.c: New test.
815
784aacea
UD
8162007-02-05 Jakub Jelinek <jakub@redhat.com>
817
818 [BZ #3957]
819 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
820 bit for RE_HAT_LISTS_NOT_NEWLINE.
821 (build_charclass_op): Remove bogus comment.
822 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
823 * posix/bug-regex27.c: New test.
824 * posix/bug-regex28.c: New test.
825
bf7a2463
UD
8262007-02-03 Ulrich Drepper <drepper@redhat.com>
827
828 * po/sv.po: Update from translation team.
829
f2ccf983
UD
8302007-02-02 Ulrich Drepper <drepper@redhat.com>
831
832 * nscd/nscd_helper.c (open_socket): Minor size optimization.
833
73f50d5a
UD
8342007-02-02 Jakub Jelinek <jakub@redhat.com>
835
836 * include/locale.h (__uselocale): Add libc_hidden_proto.
837 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
838
f6bf9e59
JJ
839 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
840 gettimeofday.
841
4a44ce79
UD
8422007-02-01 Ulrich Drepper <drepper@redhat.com>
843
844 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
845 returning.
846 (PTR_DEMANGLE): Real definition now that it's not the same as
847 PRT_MANGLE anymore.
848 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
849
850 * string/strerror_l.c: New file.
851 * string/Makefile (routines): Add strerror_l.
852 * string/string.h: Declare strerror_l.
853 * string/Versions: Export strerror_l for GLIBC_2.6.
854
58a2d52e
UD
8552007-01-31 Ulrich Drepper <drepper@redhat.com>
856
857 * nscd/nscd_helper.c (open_socket): Now takes request type and key
858 as parameter. Construct request record. Try sending request
859 before the first poll use, it usually succeeds. Adjust all
860 callers.
861 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 862 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 863
1a77d37f
JJ
8642007-01-31 Jakub Jelinek <jakub@redhat.com>
865
866 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
867 from return value.
868 * nscd/nscd_helper.c: Include string.h.
869 (__nscd_cache_search): Remove const qualifier from return value.
870 On strict alignment architectures check hash entry and data head
871 alignment.
872 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
873 mmapped data during GC cycle contains garbage. If
874 __nscd_drop_map_ref fails, decrement mapped->counter when returning
875 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
876 dropped to 0.
877 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
878 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
879 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
880 * nscd/nscd_getai.c (__nscd_getai): Likewise.
881 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
882
ee314200
UD
8832007-01-30 Ulrich Drepper <drepper@redhat.com>
884
885 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
886
14c8bf3b
UD
8872007-01-26 Ulrich Drepper <drepper@redhat.com>
888
889 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
890 names not numbers in cfi_*.
891
d2708e67
AJ
8922007-01-26 Andreas Jaeger <aj@suse.de>
893
894 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 895 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
896 Correct values of PER_HPUX and PER_OSF4.
897
7fbc8784
UD
8982007-01-24 Ulrich Drepper <drepper@redhat.com>
899
8aaf53ee 900 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
901 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
902 * malloc/mtrace.c: Revert last change.
903 * posix/wordexp.c: Likewise.
904
9d6cde3d
UD
9052007-01-24 Jakub Jelinek <jakub@redhat.com>
906
907 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
908 and __geode__ to the list of i486+ CPUs.
909 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
910
c1f0486a
UD
9112007-01-23 Ulrich Drepper <drepper@redhat.com>
912
913 * stdio-common/_itoa.c: Include <limits.h>.
914 * stdio-common/_itowa.c: Likewise.
915
6cae3957
UD
9162007-01-22 Ulrich Drepper <drepper@redhat.com>
917
765bbb24
UD
918 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
919 platforms.
920 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
921 64-bit platforms.
922 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
923 possible.
924 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
925 if possible.
926
6cae3957
UD
927 [BZ #3902]
928 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
929 * stdio-common/Makefile (tests): Add bug17.
930 * stdio-common/bug17.c: New file.
931
ddaafd04
UD
9322007-01-19 Ulrich Drepper <drepper@redhat.com>
933
934 * iconvdata/brf.c: New file.
439201de
UD
935 * iconvdata/testdata/BRF: New file.
936 * iconvdata/testdata/BRF..UTF8: New file.
937 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
938 * iconvdata/Makefile: Add rules to build BRF.
939 * iconvdata/TESTS: Add BRF entry.
940 * iconvdata/gconv-modules: Likewise.
941 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 942
9e6e344e
UD
9432007-01-18 Anton Nikishaev <anton.nik@gmail.com>
944
945 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
946 type `long long int', not `long int'.
947 (wcstoq): Likewise.
948
299f7b0f
UD
9492007-01-18 Ulrich Drepper <drepper@redhat.com>
950
951 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
952 of values on 64-bit platforms which are too large.
953
cd8127cc
JJ
9542007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
955 Joe Kerian <jkerian@us.us.ibm.com>
956
957 [BZ #2749]
958 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
959 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
960 (__copysignl): Use signbit() for comparison.
961 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
962 SET_LDOUBLE_WORDS64.
963
964 [BZ #2423, #2749]
965 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
966 (__ceill): Remove calls to fegetround(), fesetround().
967 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
968 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
969 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
970
b3acfdf7
JJ
9712007-01-17 Jakub Jelinek <jakub@redhat.com>
972
4a2e03c6
JJ
973 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
974
b3acfdf7
JJ
975 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
976
1476bce6
UD
9772007-01-17 Ulrich Drepper <drepper@redhat.com>
978
979 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
980 demangle pointer.
981 * csu/libc-start.c: Likewise.
982
d78bce1c
UD
9832007-01-16 Ulrich Drepper <drepper@redhat.com>
984
985 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
986 really work anyway.
987
1bd79025
UD
9882007-01-15 Ulrich Drepper <drepper@redhat.com>
989
000b027e
UD
990 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
991 users.
992 (handle_request): Remove unnecessary tests.
993
1bd79025
UD
994 * nscd/cache.c (cache_add): Record the failure to add to the cache.
995
d68f5d2c
JJ
9962007-01-15 Jakub Jelinek <jakub@redhat.com>
997
998 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
999 workbits in semi-raw fraction.
1000
1001 * math/test-misc.c: Add new tests.
1002
10032007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1004
1005 * math/basic-test.c: Include test-skeleton.c.
1006 (TEST_TRUNC): Define.
1007 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
1008 (main): Rename to ...
1009 (do_test): ...this. Run new tests.
1010 (TEST_FUNCTION): Define.
1011
10122006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
1013 Joe Kerian <jkerian@us.us.ibm.com>
1014
1015 [BZ #2749]
1016 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
1017 handling for high words.
1018 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
1019 and overflow for infinity.
1020
4e35ef2c
UD
10212007-01-15 Ulrich Drepper <drepper@redhat.com>
1022
2a1dea97
UD
1023 * nscd/connections.c (handle_request): Add a __builtin_expect.
1024
9691d83c
UD
1025 * nscd/connections.c (serv2db): Change type into structure which
1026 also says whether this is a request for data. Renamed to
1027 servinfo. All users changed.
1028 (handle_request): Much simpler test whether we should search the cache.
1029
49ee6d79
UD
1030 * nscd/connections.c (handle_request): Fix thinko in selinux test
1031 invocation.
1032
4e35ef2c
UD
1033 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
1034 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
1035 it before getting dl_load_lock and then relock.
1036 (_dl_lookup_symbol_x): Pass flags to add_dependency.
1037 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
1038 case we unlocked the scope.
1039 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
1040 _dl_lookup_symbol_x in case we locked the scope.
1041 (_dl_profile_fixup): Likewise.
1042 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
1043 set DL_LOOKUP_SCOPE_LOCK.
1044
23691ab2
UD
10452007-01-13 Ulrich Drepper <drepper@redhat.com>
1046
fb453d08
UD
1047 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
1048 CFLAGS-getsrvbynpt_r.c.
1049 * nscd/getsrvbynm_r.c: New file.
1050 * nscd/getsrvbypt_r.c: New file.
1051 * nscd/nscd_getserv_r.c: New file.
1052 * nscd/servicescache.c: New file.
1053 * nscd/Makefile (routines): Add nscd_getserv_r.
1054 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
1055 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
1056 CFLAGS-getsrvbypt_r.c.
1057 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
1058 table. Add entries for services database.
1059 * nscd/connections.c (serv2str): Mark as const. Add entries for
1060 services database.
1061 (dbs): Add .reset_res and servdb initialization.
1062 (serv2db): Add entries for services database.
1063 (verify_persistent_db): Accept dbnr == servdb.
1064 (invalidate_cache): Rewrite database name recognition to use a table.
1065 Call res_init() if .reset_res is set for database.
1066 (handle_request): Add code to handle services database.
1067 * nscd/gai.c: Don't define __getservbyname_r.
1068 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
1069 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
1070 (serv_response_header): Define.
1071 (struct datahead): Add serv_response_header member.
1072 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
1073 using table.
1074 * nscd/nscd.conf: Add entries for services database.
1075 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
1076 Declare serv_iov_disabled.
1077 Declare addservbyname, readdservbyname, addservbyport, and
1078 readdservbyport.
1079 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
1080 (find_db): Fix error message.
1081 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
1082 __nscd_getservbyname_r, and __nscd_getservbyport_r.
1083 * nscd/selinux.c (perms): Add entries for services database.
1084 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
1085 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
1086
1087 * nscd/grpcache.c: Remove obsolete code. Cleanups.
1088 * nscd/hstcache.c: Likewise.
1089 * nscd/pwdcache.c: Likewise.
1090
b21fa963
UD
1091 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
1092 computation of keylen.
1093
23691ab2
UD
1094 * include/string.h: Only redefine strndupa if this is really for
1095 libc code.
1096
8980796b
UD
10972007-01-12 Ulrich Drepper <drepper@redhat.com>
1098
4a4a65f2
UD
1099 * nscd/nscd_gethst_r.c: Minor cleanups.
1100
43397eaf
UD
1101 * nscd/connections.c (handle_request): Check selinux permissions
1102 for all non-admin commands.
1103
038a1a9f
UD
1104 * sysdeps/i386/i486/bits/atomic.h: Define
1105 atomic_compare_and_exchange_val_acq,
1106 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
1107 using __sync_* built-ins for gcc >= 4.1.
1108 * sysdeps/x86_64/bits/atomic.h: Likewise.
1109
8980796b
UD
1110 [BZ #3840]
1111 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
1112 and .oS.d files.
1113
32c075e1
JJ
11142007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
1115
1116 * stdlib/tst-makecontext.c: Include errno.h. Change main()
1117 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
1118 (do_test): Check errno and exit(0) if ENOSYS.
1119
11202007-01-11 Jakub Jelinek <jakub@redhat.com>
1121
1122 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
1123 thousands separators.
1124 * stdlib/Makefile: Add rules to build and run tst-strtod4.
1125 * stdlib/tst-strtod4.c: New test.
1126
1127 [BZ #3855]
1128 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
1129 hexadecimal digit should accept just the initial 0.
1130 * stdlib/tst-strtod2.c (tests): New variable.
1131 (do_test): Run several tests rather than just one.
1132
11bf311e 11332007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 1134
11bf311e
UD
1135 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
1136 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 1137
11bf311e 11382007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 1139
11bf311e
UD
1140 * io/fts.c: Make sure fts_cur is always valid after return from
1141 fts_read.
1142 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 1143
11bf311e 11442006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 1145
11bf311e
UD
1146 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
1147 (R_MIPS_NUM): Bump by 1.
32c075e1 1148
11bf311e 11492007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 1150
11bf311e
UD
1151 * posix/execvp.c: Include alloca.h.
1152 (allocate_scripts_argv): Renamed to...
1153 (scripts_argv): ... this. Don't allocate buffer here nor count
1154 arguments.
1155 (execvp): Use alloca if possible.
1156 * posix/Makefile: Add rules to build and run tst-vfork3 test.
1157 * posix/tst-vfork3.c: New test.
32c075e1
JJ
1158
11592007-01-03 Ulrich Drepper <drepper@redhat.com>
1160
1161 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 1162 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 1163
11bf311e 11642007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 1165
11bf311e
UD
1166 * posix/getconf.c: Update copyright year.
1167 * nss/getent.c: Likewise.
1168 * iconv/iconvconfig.c: Likewise.
1169 * iconv/iconv_prog.c: Likewise.
1170 * elf/ldconfig.c: Likewise.
1171 * catgets/gencat.c: Likewise.
1172 * csu/version.c: Likewise.
1173 * elf/ldd.bash.in: Likewise.
1174 * elf/sprof.c (print_version): Likewise.
1175 * locale/programs/locale.c: Likewise.
1176 * locale/programs/localedef.c: Likewise.
1177 * nscd/nscd.c (print_version): Likewise.
1178 * debug/xtrace.sh: Likewise.
1179 * malloc/memusage.sh: Likewise.
1180 * malloc/mtrace.pl: Likewise.
1181 * debug/catchsegv.sh: Likewise.
64a0aa0f 1182
11bf311e 11832006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 1184
11bf311e
UD
1185 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
1186 attempts.
48576885 1187
11bf311e 11882006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 1189
11bf311e 1190 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 1191
33c6de58
UD
11922006-12-22 Gavin Romig-Koch <gavin@redhat.com>
1193
1194 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
1195 blacklist the group till after we look it up.
1196
fc242bef
UD
11972006-12-21 Ulrich Drepper <drepper@redhat.com>
1198
1199 * include/atomic.h (atomic_forced_read): New macro.
1200
11bf311e
UD
12012006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1202
1203 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
1204
a12dcecc
UD
12052006-12-19 Jakub Jelinek <jakub@redhat.com>
1206
11bf311e
UD
1207 * nss/getXXbyYY_r.c: Include atomic.h.
1208 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
1209 add atomic_write_barrier () in between.
1210
a12dcecc
UD
1211 * stdlib/Makefile (tests): Add tst-makecontext.
1212 * stdlib/tst-makecontext.c: New test.
1213
1214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
1215 (__makecontext): Don't realign uc_mcontext.uc_regs.
1216
11bf311e 12172006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 1218
11bf311e
UD
1219 * elf/dl-support.c: Include dl-procinfo.h.
1220 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
1221 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
1222 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
1223 Define.
1224 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
1225 hardcoded constants.
1226 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
1227 PPC_PLATFORM_* macros for array designators.
594d423a 1228
11bf311e 12292006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 1230
11bf311e
UD
1231 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
1232 names to the beginning.
1233 (_dl_powerpc_platforms): Add "power6x".
1234 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1235 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
1236 (_DL_PLATFORMS_COUNT): Increase.
1237 (_dl_string_platform): Handle power6x case.
1238 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
1239 PPC_FEATURE_POWER6_EXT): Define.
1240 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 1241
5bcba0ed
UD
12422006-12-18 Jakub Jelinek <jakub@redhat.com>
1243
1244 [BZ #3747]
1245 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 1246 [-2^31 .. 2^31) range.
5bcba0ed
UD
1247 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
1248 targets.
1249 * stdlib/tst-rand48-2.c: New test.
1250 * stdlib/Makefile (tests): Add tst-rand48-2.
1251
9e1444fc
UD
12522006-12-14 Jakub Jelinek <jakub@redhat.com>
1253
1254 * misc/tst-pselect.c (do_test): Fix sigblock argument.
1255
36775704
UD
12562006-12-14 Ulrich Drepper <drepper@redhat.com>
1257
1258 * misc/tst-pselect.c (do_test): Make sure the helper process is
1259 terminating when the test is aborted.
1260
1e88bd0f
UD
12612006-12-13 Ulrich Drepper <drepper@redhat.com>
1262
11bf311e
UD
1263 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
1264 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1265 Handle relatime mount option.
1266
1e88bd0f
UD
1267 [BZ #2337]
1268 * libio/Makefile (tests): Add tst-setvbuf1.
1269 * libio/tst-setvbuf1.c: New file.
1270
12712006-12-08 Jakub Jelinek <jakub@redhat.com>
1272
1273 [BZ #2337]
1274 * libio/genops.c (__uflow): Fix a typo.
1275 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
1276 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
1277 the narrow buffer size.
1278
12792006-11-24 Jakub Jelinek <jakub@redhat.com>
1280
1281 [BZ #2337]
1282 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
1283 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
1284 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
1285 in _flags.
1286 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
1287 _IO_wstr_finish): Likewise.
1288 * libio/wmemstream.c (open_wmemstream): Likewise.
1289 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
1290 even for wide streams.
1291
11bf311e 12922006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 1293
11bf311e
UD
1294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
1295 kernel-features.h.
1296
12972006-12-11 Ulrich Drepper <drepper@redhat.com>
1298
1299 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
1300 separators also if no non-zero digits found.
1301 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 1302
d117c1ce
UD
13032006-12-09 Ulrich Drepper <drepper@redhat.com>
1304
f85fb97b
UD
1305 [BZ #3632]
1306 * include/features.h: Fix comment about default value for
1307 _POSIX_C_SOURCE.
1308
11bf311e
UD
1309 [BZ #3664]
1310 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
1311 empty parsed strings.
1312 * stdlib/Makefile (tests): Add tst-strtod2.
1313 * stdlib/tst-strtod2.c: New file.
1314
1315 [BZ #3673]
1316 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
1317 computation.
1318 * stdlib/Makefile (tests): Add tst-atof2.
1319 * stdlib/tst-atof2.c: New file.
1320
1321 [BZ #3674]
1322 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
1323 correctly if removing trailing zero of hex-float.
1324 * stdlib/Makefile (tests): Add tst-atof1.
1325 * stdlib/tst-atof1.c: New file.
1326
a822d9f4
UD
13272006-12-09 Jakub Jelinek <jakub@redhat.com>
1328
11bf311e
UD
1329 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
1330 Start searching for next comma at p rather than rest.
1331 * misc/Makefile (tests): Add tst-mntent2.
1332 * misc/tst-mntent2.c: New test.
1333
a822d9f4
UD
1334 * misc/getusershell.c (initshells): Check for integer overflows.
1335 Make strings buffer one bigger as fgets always succeeds when second
1336 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 1337 / as shell.
f0d5e1f6 1338
11bf311e 13392006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 1340
11bf311e
UD
1341 * malloc/memusage.c: Handle realloc with new size of zero and
1342 non-NULL pointer correctly.
1343 (me): Really write first record twice.
1344 (struct entry): Make format bi-arch safe.
1345 (dest): Write out more realloc statistics.
1346 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 1347
11bf311e 13482006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 1349
11bf311e 1350 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 1351
f0d5e1f6
UD
13522006-12-04 Jakub Jelinek <jakub@redhat.com>
1353
1354 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
1355 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
1356 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
1357 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
1358 ENOTTY.
1359 * io/Makefile: Add rules to build and run tst-ttyname_r test.
1360 * io/tst-ttyname_r.c: New test.
1361
11bf311e 13622006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 1363
11bf311e 1364 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 1365
11bf311e 13662006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 1367
11bf311e
UD
1368 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
1369 jump table entries.
1370
13712006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1372
1373 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
1374 `clone' function to ensure proper unwinding stop of gdb.
1375 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1376
13772006-12-01 Ulrich Drepper <drepper@redhat.com>
1378
1379 * nscd/nscd.init: Remove obsolete and commented-out -S option
1380 handling.
1381
13822006-11-23 Jakub Jelinek <jakub@redhat.com>
1383
1384 [BZ #3514]
1385 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
1386
1387 [BZ #3515]
1388 * manual/string.texi (strtok): Remove duplicate paragraph.
1389
13902006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1391
1392 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
1393 libgcc not supporting `rflags' unwinding (register # >= 17).
1394
13952006-11-30 Jakub Jelinek <jakub@redhat.com>
1396
1397 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
1398 succeeded.
1399
14002006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
1401 Jakub Jelinek <jakub@redhat.com>
1402 Jan Kratochvil <jan.kratochvil@redhat.com>
1403
1404 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
1405 unwind information.
1406 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
1407 'restore_rt' even in the 'signal' directory.
1408 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 1409
b1a758f3
UD
14102006-11-27 Jakub Jelinek <jakub@redhat.com>
1411
1412 [BZ #3559]
1413 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
1414 malloc crashed. Don't allocate memory unnecessarily in each
1415 loop.
b1a758f3 1416
11bf311e 14172006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 1418
11bf311e 1419 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 1420
11bf311e 14212006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 1422
11bf311e 1423 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 1424
11bf311e 14252006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 1426
11bf311e
UD
1427 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
1428 __sysconf only after having tried to call getgroups32.
36c0a636 1429
11bf311e 14302006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 1431
11bf311e
UD
1432 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
1433 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 1434
11bf311e 14352006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 1436
11bf311e
UD
1437 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
1438 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
1439 (signmask): Add .size directive.
1440 (othermask): Add .type directive.
bef8927a 1441
11bf311e 14422006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 1443
11bf311e 1444 * po/nl.po: Update from translation team.
854d1124 1445
11bf311e 1446 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 1447
11bf311e 14482006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 1449
11bf311e
UD
1450 * nss/nss_files/files-alias.c (get_next_alias): Set line back
1451 to first_unused after parsing :include: file.
5c2af134 1452
32c075e1 14532006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 1454
11bf311e
UD
1455 * timezone/africa: Update from tzdata2006o.
1456 * timezone/antarctica: Likewise.
1457 * timezone/asia: Likewise.
1458 * timezone/australasia: Likewise.
1459 * timezone/backward: Likewise.
1460 * timezone/europe: Likewise.
1461 * timezone/iso3166.tab: Likewise.
1462 * timezone/northamerica: Likewise.
1463 * timezone/southamerica: Likewise.
1464 * timezone/zone.tab: Likewise.
1465
1466 * time/tzfile.c (__tzfile_read): Extend to handle new file format
1467 on machines with 64-bit time_t.
1468
1469 * timezone/checktab.awk: Update from tzcode2006o.
1470 * timezone/ialloc.c: Likewise.
1471 * timezone/private.h: Likewise.
1472 * timezone/scheck.c: Likewise.
1473 * timezone/tzfile.h: Likewise.
1474 * timezone/tzselect.ksh: Likewise.
1475 * timezone/zdump.c: Likewise.
1476 * timezone/zic.c: Likewise.
1477
1478 [BZ #3483]
1479 * elf/ldconfig.c (main): Call setlocale and textdomain.
1480 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
1481
1482 [BZ #3480]
1483 * manual/argp.texi: Fix typos.
1484 * manual/charset.texi: Likewise.
1485 * manual/errno.texi: Likewise.
1486 * manual/filesys.texi: Likewise.
1487 * manual/lang.texi: Likewise.
1488 * manual/maint.texi: Likewise.
1489 * manual/memory.texi: Likewise.
1490 * manual/message.texi: Likewise.
1491 * manual/resource.texi: Likewise.
1492 * manual/search.texi: Likewise.
1493 * manual/signal.texi: Likewise.
1494 * manual/startup.texi: Likewise.
1495 * manual/stdio.texi: Likewise.
1496 * manual/sysinfo.texi: Likewise.
1497 * manual/syslog.texi: Likewise.
1498 * manual/time.texi: Likewise.
1499 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1500
1501 [BZ #3465]
1502 * sunrpc/clnt_raw.c: Minimal message improvements.
1503 * sunrpc/pm_getmaps.c: Likewise.
1504 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1505 * nis/nis_print_group_entry.c: Likewise.
1506 * locale/programs/repertoire.c: Likewise.
1507 * locale/programs/charmap.c: Likewise.
1508 * malloc/memusage.sh: Likewise.
1509 * elf/dl-deps.c: Likewise.
1510 * locale/programs/ld-collate.c: Likewise.
1511 * libio/vswprintf.c: Likewise.
1512 * malloc/memusagestat.c: Likewise.
1513 * sunrpc/auth_unix.c: Likewise.
1514 * sunrpc/rpc_main.c: Likewise.
1515 * nscd/cache.c: Likewise.
1516 * locale/programs/repertoire.c: Unify output messages.
1517 * locale/programs/charmap.c: Likewise.
1518 * locale/programs/ld-ctype.c: Likewise.
1519 * locale/programs/ld-monetary.c: Likewise.
1520 * locale/programs/ld-numeric.c: Likewise.
1521 * locale/programs/ld-time.c: Likewise.
1522 * elf/ldconfig.c: Likewise.
1523 * nscd/selinux.c: Likewise.
1524 * elf/cache.c: Likewise.
1525 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
1526
5c2af134
UD
1527 [BZ #3451]
1528 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
1529 change atomic.
1530 (ceil): Likewise.
1531
11bf311e
UD
15322006-11-10 Jakub Jelinek <jakub@redhat.com>
1533
1534 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
1535 if N is one bigger than return value.
1536 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
1537 and l1 last arguments, if buf is defined, verify the return value
1538 equals to strlen (buf) and verify no byte beyond passed length
1539 is modified.
1540
15412006-11-10 Ulrich Drepper <drepper@redhat.com>
1542
1543 * po/sv.po: Update from translation team.
1544
37afcf79
UD
15452006-11-09 Ulrich Drepper <drepper@redhat.com>
1546
1547 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
1548 noinline attribute.
1549
15502006-11-10 Jakub Jelinek <jakub@redhat.com>
1551
1552 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
1553 noinline attribute.
1554
11bf311e
UD
1555 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
1556 Use __new_sys_siglist instead of _sys_siglist_internal as
1557 second macro argument.
1558 (_old_sys_siglist): Use declare_symbol_alias macro instead of
1559 strong_alias.
2692deea 1560
11bf311e
UD
15612006-11-09 Ulrich Drepper <drepper@redhat.com>
1562
1563 [BZ #3493]
1564 * posix/unistd.h (sysconf): Remove const attribute.
1565
1566 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
1567 temporary or deprecated addresses.
1568 Patch by Sridhar Samudrala <sri@us.ibm.com>.
1569
1570 * string/Makefile (tests): Add tst-strxfrm2.
1571 * string/tst-strxfrm2.c: New file.
1572
15732006-10-09 Jakub Jelinek <jakub@redhat.com>
1574
1575 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
1576 rather than r->r_brk.
2692deea
UD
1577
15782006-11-08 Jakub Jelinek <jakub@redhat.com>
1579
11bf311e
UD
1580 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
1581 optimization even if needed > n.
1582
2692deea
UD
1583 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
1584 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
1585 return false, otherwise return true.
1586 (cache_rpath): Return decompose_rpath return value.
1587
11bf311e
UD
15882006-11-07 Jakub Jelinek <jakub@redhat.com>
1589
1590 * include/libc-symbols.h (declare_symbol): Rename to...
1591 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
1592 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
1593 .size directive.
1594 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
1595 changes.
1596 * sysdeps/gnu/siglist.c: Likewise.
1597
15982006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
1599
1600 * sysdeps/powerpc/fpu/bits/mathinline.h
1601 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
1602 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
1603
16042006-11-05 Ulrich Drepper <drepper@redhat.com>
1605
1606 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
1607 Update handling of cache descriptor 0x49 for new models.
1608 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
1609 Likewise.
1610
9666e36c
UD
16112006-11-02 Jakub Jelinek <jakub@redhat.com>
1612
1613 * malloc/memusage.c (dest): Reset not_me back to false after
1614 printing statistics.
1615
11bf311e
UD
16162006-11-02 Ulrich Drepper <drepper@redhat.com>
1617
1618 * configure.in: Work around ld --help change and avoid -z relro
1619 test completely if the architecture doesn't care about security.
1620
16212006-11-01 Ulrich Drepper <drepper@redhat.com>
1622
1623 * po/sv.po: Update from translation team.
1624
16252006-10-31 Ulrich Drepper <drepper@redhat.com>
1626
1627 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
1628 generate compatibility version.
1629
16302006-10-29 Ulrich Drepper <drepper@redhat.com>
1631
1632 * configure.in: Relax -z relro requirement a bit.
1633
1634 * po/sv.po: Update from translation team.
1635
16362006-10-29 Jakub Jelinek <jakub@redhat.com>
1637
1638 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
1639 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
1640 * elf/dl-close.c (_dl_close_worker): Likewise.
1641 * elf/dl-open.c (_dl_open_worker): Likewise.
1642 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
1643
b2369ca3
UD
16442006-10-27 Ulrich Drepper <drepper@redhat.com>
1645
11bf311e
UD
1646 * configure.in: Require assembler support for visibility, compiler
1647 support for visibility and aliases, linker support for various -z
1648 options.
1649 * Makeconfig: Remove conditional code which now is unnecessary.
1650 * config.h.in: Likewise.
1651 * config.make.in: Likewise.
1652 * dlfcn/Makefile: Likewise.
1653 * elf/Makefile: Likewise.
1654 * elf/dl-load.c: Likewise.
1655 * elf/rtld.c: Likewise.
1656 * include/libc-symbols.h: Likewise.
1657 * include/stdio.h: Likewise.
1658 * io/Makefile: Likewise.
1659 * io/fstat.c: Likewise.
1660 * io/fstat64.c: Likewise.
1661 * io/fstatat.c: Likewise.
1662 * io/fstatat64.c: Likewise.
1663 * io/lstat.c: Likewise.
1664 * io/lstat64.c: Likewise.
1665 * io/mknod.c: Likewise.
1666 * io/mknodat.c: Likewise.
1667 * io/stat.c: Likewise.
1668 * io/stat64.c: Likewise.
1669 * libio/stdio.c: Likewise.
1670 * nscd/Makefile: Likewise.
1671 * stdlib/Makefile: Likewise.
1672 * stdlib/atexit.c: Likewise.
1673 * sysdeps/generic/ldsodefs.h: Likewise.
1674 * sysdeps/i386/dl-machine.h: Likewise.
1675 * sysdeps/i386/sysdep.h: Likewise.
1676 * sysdeps/i386/i686/memcmp.S: Likewise.
1677 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1678 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1679 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
1680
1681 * Makerules: USE_TLS support is now default.
1682 * tls.make.c: Likewise.
1683 * csu/Versions: Likewise.
1684 * csu/libc-start.c: Likewise.
1685 * csu/libc-tls.c: Likewise.
1686 * csu/version.c: Likewise.
1687 * dlfcn/dlinfo.c: Likewise.
1688 * elf/dl-addr.c: Likewise.
1689 * elf/dl-cache.c: Likewise.
1690 * elf/dl-close.c: Likewise.
1691 * elf/dl-iteratephdr.c: Likewise.
1692 * elf/dl-load.c: Likewise.
1693 * elf/dl-lookup.c: Likewise.
1694 * elf/dl-object.c: Likewise.
1695 * elf/dl-open.c: Likewise.
1696 * elf/dl-reloc.c: Likewise.
1697 * elf/dl-support.c: Likewise.
1698 * elf/dl-sym.c: Likewise.
1699 * elf/dl-sysdep.c: Likewise.
1700 * elf/dl-tls.c: Likewise.
1701 * elf/ldconfig.c: Likewise.
1702 * elf/rtld.c: Likewise.
1703 * elf/tst-tls-dlinfo.c: Likewise.
1704 * elf/tst-tls1.c: Likewise.
1705 * elf/tst-tls10.h: Likewise.
1706 * elf/tst-tls14.c: Likewise.
1707 * elf/tst-tls2.c: Likewise.
1708 * elf/tst-tls3.c: Likewise.
1709 * elf/tst-tls4.c: Likewise.
1710 * elf/tst-tls5.c: Likewise.
1711 * elf/tst-tls6.c: Likewise.
1712 * elf/tst-tls7.c: Likewise.
1713 * elf/tst-tls8.c: Likewise.
1714 * elf/tst-tls9.c: Likewise.
1715 * elf/tst-tlsmod1.c: Likewise.
1716 * elf/tst-tlsmod13.c: Likewise.
1717 * elf/tst-tlsmod13a.c: Likewise.
1718 * elf/tst-tlsmod14a.c: Likewise.
1719 * elf/tst-tlsmod2.c: Likewise.
1720 * elf/tst-tlsmod3.c: Likewise.
1721 * elf/tst-tlsmod4.c: Likewise.
1722 * elf/tst-tlsmod5.c: Likewise.
1723 * elf/tst-tlsmod6.c: Likewise.
1724 * include/errno.h: Likewise.
1725 * include/link.h: Likewise.
1726 * include/tls.h: Likewise.
1727 * locale/global-locale.c: Likewise.
1728 * locale/localeinfo.h: Likewise.
1729 * malloc/arena.c: Likewise.
1730 * malloc/hooks.c: Likewise.
1731 * malloc/malloc.c: Likewise.
1732 * resolv/Versions: Likewise.
1733 * sysdeps/alpha/dl-machine.h: Likewise.
1734 * sysdeps/alpha/libc-tls.c: Likewise.
1735 * sysdeps/generic/ldsodefs.h: Likewise.
1736 * sysdeps/generic/tls.h: Likewise.
1737 * sysdeps/i386/dl-machine.h: Likewise.
1738 * sysdeps/ia64/dl-machine.h: Likewise.
1739 * sysdeps/ia64/libc-tls.c: Likewise.
1740 * sysdeps/mach/hurd/fork.c: Likewise.
1741 * sysdeps/mach/hurd/i386/tls.h: Likewise.
1742 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
1743 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
1744 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
1745 * sysdeps/s390/libc-tls.c: Likewise.
1746 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1747 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1748 * sysdeps/sh/dl-machine.h: Likewise.
1749 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1750 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1751 * sysdeps/x86_64/dl-machine.h: Likewise.
1752
131c4428
UD
1753 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
1754 split out locking and parameter checking.
1755 (_dl_close): Call _dl_close_worker after locking and checking.
1756 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
1757 _dl_close.
ffd0e1b7
UD
1758 * elf/Makefile: Add rules to build and run tst-thrlock.
1759 * elf/tst-thrlock.c: New file.
131c4428 1760
11bf311e
UD
1761 [BZ #3426]
1762 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
1763 reality.
1764
b2369ca3
UD
1765 [BZ #3429]
1766 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 1767 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
1768 the asserts inside the lock region.
1769 Patch mostly by Suzuki <suzuki@in.ibm.com>.
1770
11bf311e
UD
17712006-10-27 Jakub Jelinek <jakub@redhat.com>
1772
1773 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
1774 argument.
1775 (_dl_lookup_symbol_x): Adjust caller.
1776
1777 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
1778 _ns_global_scope.
1779 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
1780
1781 * elf/dl-libc.c: Revert l_scope name changes.
1782 * elf/dl-load.c: Likewise.
1783 * elf/dl-object.c: Likewise.
1784 * elf/rtld.c: Likewise.
1785 * elf/dl-close.c (_dl_close): Likewise.
1786 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
1787 always use __rtld_mrlock_{change,done}. Always free old scope list
1788 here if not l_scope_mem.
1789 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
1790 change. Never free scope list here. Just __rtld_mrlock_lock before
1791 the lookup and __rtld_mrlock_unlock it after the lookup.
1792 * elf/dl-sym.c: Likewise.
1793 * include/link.h (struct r_scoperec): Remove.
1794 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
1795 with l_scope_mem and l_scoperec_lock with l_scope_lock.
1796
17972006-10-25 Ulrich Drepper <drepper@redhat.com>
1798
1799 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
1800
18012006-10-18 Ulrich Drepper <drepper@redhat.com>
1802
1803 * configure.in: Disable building profile libraries by default.
1804
609cf614
UD
18052006-10-17 Jakub Jelinek <jakub@redhat.com>
1806
1807 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
1808 as signed longs, check for x_base + pos overflow.
1809 * sunrpc/Makefile (tests): Add tst-xdrmem2.
1810 * sunrpc/tst-xdrmem2.c: New test.
1811
11bf311e
UD
18122006-10-18 Ulrich Drepper <drepper@redhat.com>
1813
1814 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
1815 _dl_lookup_symbol_x code.
1816
18172006-10-17 Jakub Jelinek <jakub@redhat.com>
1818
1819 * elf/dl-runtime.c: Include sysdep-cancel.h.
1820 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
1821 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
1822 instead of catomic_* macros.
1823 * elf/dl-sym.c: Include sysdep-cancel.h.
1824 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
1825 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
1826 * elf/dl-close.c: Include sysdep-cancel.h.
1827 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
1828 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
1829 * elf/dl-open.c: Include sysdep-cancel.h.
1830 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
1831 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
1832
18332006-10-17 Jakub Jelinek <jakub@redhat.com>
1834
1835 [BZ #3313]
1836 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
1837 fastbin rather than end of fastbin array.
1838
18392006-10-18 Ulrich Drepper <drepper@redhat.com>
1840
1841 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
1842 body macro.
1843 * sysdeps/x86_64/bits/atomic.h
1844 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
1845 (catomic_decrement): Use correct body macro.
1846
18472006-10-17 Jakub Jelinek <jakub@redhat.com>
1848
1849 * include/atomic.h: Add a unique prefix to all local variables
1850 in macros.
1851 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
1852
4a85a8ee
UD
18532006-10-16 Ulrich Drepper <drepper@redhat.com>
1854
1855 [BZ #3369]
1856 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
1857 and 7.
1858
11bf311e
UD
18592006-10-14 Ulrich Drepper <drepper@redhat.com>
1860
1861 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
1862
ff8d96be
UD
18632006-10-13 Ulrich Drepper <drepper@redhat.com>
1864
11bf311e
UD
1865 [BZ #3313]
1866 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
1867 determine highest fast bin to consolidate, always look into all of
1868 them.
1869 (do_check_malloc_state): Only require for empty bins for large
1870 sizes in main arena.
1871
1872 * libio/stdio.h: Add more __wur attributes.
1873
ff8d96be
UD
1874 * elf/dl-minimal.c (realloc): Optimize last patch.
1875
90a0991a
UD
18762006-10-12 Richard Sandiford <richard@codesourcery.com>
1877
1878 [BZ #3352]
1879 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
1880 and use memcpy() if it does.
ff8d96be 1881
11bf311e
UD
18822006-11-12 Andreas Jaeger <aj@suse.de>
1883
1884 [BZ #2510]
1885 * manual/search.texi (Hash Search Function): Clarify.
1886 (Array Search Function): Clarify.
1887
18882006-11-12 Joseph Myers <joseph@codesourcery.com>
1889
1890 [BZ #2830]
1891 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
1892 shifting.
1893 * math/atest-exp2.c (read_mpn_hex): Likewise.
1894 * math/atest-sincos.c (main): Likewise.
1895
37fb7595
UD
18962006-10-11 Ulrich Drepper <drepper@redhat.com>
1897
11bf311e
UD
1898 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
1899 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
1900 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
1901 version GLIBC_2.6.
1902 * Versions.def: Add GLIBC_2.6 for libc.
1903
46c38bd7
UD
1904 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
1905
11bf311e
UD
1906 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
1907
19082006-10-11 Jakub Jelinek <jakub@redhat.com>
1909
1910 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
1911
1912 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
1913
1914 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
1915 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
1916
19172006-10-11 Ulrich Drepper <drepper@redhat.com>
1918
1919 * include/atomic.c: Define catomic_* operations.
1920 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
1921 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
1922 * malloc/memusage.c: Likewise.
1923 * gmon/mcount.c: Likewise.
1924 * elf/dl-close.c: Likewise.
1925 * elf/dl-open.c: Likewise.
1926 * elf/dl-profile.c: Likewise.
1927 * elf/dl-sym.c: Likewise.
1928 * elf/dl-runtime.c: Likewise.
1929 * elf/dl-fptr.c: Likewise.
1930 * resolv/res_libc.c: Likewise.
1931
2a6ee549
UD
19322006-10-10 Ulrich Drepper <drepper@redhat.com>
1933
1934 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
1935 components which lack them.
1936
1937 * nis/nis_subr.c (nis_getnames): Make sure that we always return
1938 at least one entry consisting of the parameter concatenated with
1939 the domain.
1940
11bf311e 19412006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 1942
11bf311e
UD
1943 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
1944 * sysdeps/mach/hurd/futimes.c: Likewise.
1945 * sysdeps/mach/hurd/lutimes.c: Likewise.
1946
19472006-10-09 Ulrich Drepper <drepper@redhat.com>
1948 Jakub Jelinek <jakub@redhat.com>
1949
1950 Implement reference counting of scope records.
1951 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
1952 from the list in objects which remain. Always allocate new scope
1953 record.
1954 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
1955 don't resize, allocate a new one.
1956 * elf/dl-runtime.c: Update reference counters before using a scope
1957 array.
1958 * elf/dl-sym.c: Likewise.
1959 * elf/dl-libc.c: Adjust for l_scope name change.
1960 * elf/dl-load.c: Likewise.
1961 * elf/dl-object.c: Likewise.
1962 * elf/rtld.c: Likewise.
1963 * include/link.h: Include <rtld-lowlevel.h>. Define struct
1964 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
1965 Add l_scoperec_lock.
1966 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
1967 * sysdeps/generic/rtld-lowlevel.h: New file.
1968
1969 * include/atomic.h: Rename atomic_and to atomic_and_val and
1970 atomic_or to atomic_or_val. Define new macros atomic_and and
1971 atomic_or which do not return values.
1972 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
1973 Various cleanups.
1974 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1975
1976 * po/sv.po: Update from translation team.
1977
19782006-10-07 Ulrich Drepper <drepper@redhat.com>
1979
1980 * Versions.def: Add GLIBC_2.6 to libpthread.
1981
1982 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
1983 (versioned_symbol): Likewise.
1984 (compat_symbol): Likewise.
1985
1986 * po/tr.po: Update from translation team.
feb87ad1 1987
4df92d57
UD
19882006-10-06 Ulrich Drepper <drepper@redhat.com>
1989
11bf311e
UD
1990 * nis/Banner: Removed. It's been integral part forever and the
1991 author info is incomplete anyway.
1992 * libio/Banner: Likewise.
1993
4df92d57
UD
1994 * nis/nis_table.c (nis_list): If __follow_path fails in the new
1995 code, make sure the nis_freeresult call doesn't crash and that the
1996 result is reported correctly.
1997
68361572
UD
19982006-09-27 Jakub Jelinek <jakub@redhat.com>
1999
2000 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
2001 when callback is NULL.
2002
2003 * nis/Versions (libnss_nisplus): Add
2004 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
2005 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
2006 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
2007 _nss_create_tablename): Rename to...
2008 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
2009 ... these. No longer static.
2010 (internal_setgrent): Adjust users.
2011 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
2012 Don't use locking around _nss_grp_create_tablename call.
2013 * nis/nss_nisplus/nisplus-initgroups.c: New file.
2014
11bf311e
UD
20152006-10-06 Ulrich Drepper <drepper@redhat.com>
2016
2017 * version.h (VERSION): Bump to 2.5.90 for new development tree.
2018
3a4e0609
UD
20192006-10-06 Andreas Jaeger <aj@suse.de>
2020
2021 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
2022
20232006-10-06 Ulrich Drepper <drepper@redhat.com>
2024
2025 * po/pl.po: Update from translation team.
2026
2027 * nscd/nscd.c (main): Fix typo in message.
2028 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
2029
97e57dee
UD
20302006-10-02 Jakub Jelinek <jakub@redhat.com>
2031
2032 [BZ #3291]
2033 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
2034 errno.h, signal.h, unistd.h and sysdep-cancel.h.
2035 (__sigprocmask): Define.
2036
768027a4
UD
20372006-10-02 Ulrich Drepper <drepper@redhat.com>
2038
2039 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
2040 used.
2041
0b25a49a
UD
20422006-10-02 Jakub Jelinek <jakub@redhat.com>
2043
2044 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
2045 in oldtotal and newtotal calculation.
2046 * nscd/nscd-client.h (struct mapped_database): Add datasize
2047 field.
2048 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
2049 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
2050 increased.
2051 (__nscd_cache_search): Add checks to make sure we never reference
2052 data beyond the current mapping.
2053
a1286745
UD
20542006-10-02 Dmitry V. Levin <ldv@altlinux.org>
2055
d4ed7561
UD
2056 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
2057 variables const to avoid compiler warnings.
2058
a1286745
UD
2059 * io/fts.c (fts_close): Remove redundant checks.
2060 (fts_build): Likewise.
2061 (fts_palloc): Likewise.
2062
2063 * manual/message.texi (Advanced gettext functions,
2064 Using gettextized software): Fix typos.
2065
f01e4069
UD
20662006-09-30 Ulrich Drepper <drepper@redhat.com>
2067
2068 * posix/glob.c (glob_in_dir): Add some comments and asserts to
2069 explain why there are no leaks.
2070
154619b5
UD
20712006-09-29 Ulrich Drepper <drepper@redhat.com>
2072
690c3947
UD
2073 * libio/wmemstream.c: Include <wchar.h>.
2074 * libio/bug-wmemstream1.c: Likewise.
2075 * libio/tst-wmemstream1.c: Likewise.
2076 * libio/tst-wmemstream2.c: Likewise.
2077
88cc61e8
UD
2078 * version.h (RELEASE): Bump to 2.5.
2079 * README: Regenerated.
2080
a70c18b0
UD
2081 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
2082
154619b5
UD
2083 [BZ #3273]
2084 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
2085 found no group members.
2086 Patch by Petr Baudis.
2087
20882006-09-29 Jakub Jelinek <jakub@redhat.com>
2089
2090 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
2091 assert bootstrap_map.l_tls_modid is zero.
2092 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
2093 if USE___THREAD.
2094
1c31aa79
UD
20952006-09-27 Ulrich Drepper <drepper@redhat.com>
2096
2097 * libio/stdio.h: Move open_wmemstream prototype to ...
2098 * wcsmbs/wchar.h: ... here.
2099
f1122ec3
UD
21002006-09-25 Jakub Jelinek <jakub@redhat.com>
2101
2102 [BZ #3252]
2103 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
2104 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
2105 __{,l}chown to handle the rest.
2106 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
2107 fchownat syscall and __ASSUME_32BITUIDS case inline, call
2108 __{,l}chown to handle the rest.
2109 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
2110 i386/fchownat.c.
2111 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
2112 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
2113
2114 [BZ #3253]
2115 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
2116 time, rather allocate increasingly bigger arrays of pointers, if
2117 possible with alloca, if too large with malloc.
2118
21192006-09-24 Jakub Jelinek <jakub@redhat.com>
2120
2121 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
2122
2123 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
2124
457b559e
UD
21252006-09-24 Ulrich Drepper <drepper@redhat.com>
2126
2127 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
2128 home addresses.
2129 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
2130 IFA_F_HOMEADDRESS flag for interfaces.
2131 * include/ifaddrs.h (struct in6addrinfo): Define
2132 in6ai_homeaddress.
2133
4a132246
UD
21342006-09-21 Jakub Jelinek <jakub@redhat.com>
2135
2136 [BZ #3225]
2137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
2138 PTR_DEMANGLE3): Define.
2139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
2140 PTR_DEMANGLE3): Likewise.
2141 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
2142 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2143 Likewise.
2144 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2145
c69136ae
UD
21462006-09-20 Jakub Jelinek <jakub@redhat.com>
2147
2148 * po/libc.pot: Regenerated.
2149 * po/be.po: Updated.
2150 * po/ca.po: Likewise.
2151 * po/cs.po: Likewise.
2152 * po/da.po: Likewise.
2153 * po/de.po: Likewise.
2154 * po/el.po: Likewise.
2155 * po/en_GB.po: Likewise.
2156 * po/es.po: Likewise.
2157 * po/fi.po: Likewise.
2158 * po/fr.po: Likewise.
2159 * po/gl.po: Likewise.
2160 * po/hr.po: Likewise.
2161 * po/hu.po: Likewise.
2162 * po/ja.po: Likewise.
2163 * po/ko.po: Likewise.
2164 * po/nb.po: Likewise.
2165 * po/nl.po: Likewise.
2166 * po/pl.po: Likewise.
2167 * po/pt_BR.po: Likewise.
2168 * po/ru.po: Likewise.
2169 * po/rw.po: Likewise.
2170 * po/sk.po: Likewise.
2171 * po/sv.po: Likewise.
2172 * po/tr.po: Likewise.
2173 * po/zh_CN.po: Likewise.
2174 * po/zh_TW.po: Likewise.
2175
2176 [BZ #3137]
2177 * iconv/iconv_prog.c (main): Fix spelling in error message.
2178 * iconv/iconvconfig.c (main): Likewise.
2179 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
2180 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
2181 * locale/programs/localedef.c (main): Likewise.
2182 * locale/programs/repertoire.c (repertoire_read): Likewise.
2183 * timezone/zdump.c (main): Likewise.
2184 * nscd/connections.c (handle_request): Fix spelling in log message.
2185 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
2186
83b3108c
UD
21872006-09-20 Ulrich Drepper <drepper@redhat.com>
2188
2189 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
2190 interfaces.
2191
89210b4c
AJ
21922006-09-20 Andreas Jaeger <aj@suse.de>
2193
2194 * math/libm-test.inc (lrint_test_upward): Fix typo.
2195
6624dbc0
UD
21962006-06-17 Joseph S. Myers <joseph@codesourcery.com>
2197
2198 [BZ #2592]
2199 * math/libm-test.inc (lrint_test_tonearest): New function.
2200 (lrint_test_towardzero): New function.
2201 (lrint_test_downward): New function.
2202 (lrint_test_upward): New function.
2203 (main): Run these new tests.
2204 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
2205 of values near to 0.
2206 (two52): Use double not long double.
2207 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
2208 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
2209 (two23): Use float not double.
2210 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
2211 (two23): Use float not double.
2212 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
2213 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
2214 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
2215 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
2216
60cb50c7
UD
22172006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2218
2219 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
2220 Cast sp to unsigned long to avoid compiler warning.
2221 Use __makecontext_ret function instead of a trampoline on the stack.
2222 (__makecontext_ret): New function.
2223 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
2224
33315ced
UD
22252006-09-19 Jakub Jelinek <jakub@redhat.com>
2226
2227 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
2228 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
2229 bits.
2230
1ee2ff20
UD
22312006-09-19 Ulrich Drepper <drepper@redhat.com>
2232
2233 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
2234 sure no reference to the unloaded map's search list remains in the
2235 dependency's scope.
2236
22372006-09-16 Jakub Jelinek <jakub@redhat.com>
2238
2239 * elf/Makefile: Add rules to build and run unload7 test.
2240 * elf/unload7.c: New test.
2241 * elf/unload7mod1.c: New file.
2242 * elf/unload7mod2.c: New file.
2243
0466106e
UD
22442006-09-18 Jakub Jelinek <jakub@redhat.com>
2245
2246 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
2247 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
2248 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
2249 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
2250 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
2251 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
2252 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
2253 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
2254 PTRACE_GETEVENTMSG): Likewise.
2255 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
2256 values.
2257
9c316a45
UD
22582006-09-17 Mike Frysinger <vapier@gentoo.org>
2259
0466106e
UD
2260 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
2261 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
2262 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
2263 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
2264
22652006-09-16 Jakub Jelinek <jakub@redhat.com>
2266
2267 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
2268 write '\0' to the fd.
2269 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
2270 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
2271 Change regs to unsigned long pointer from unsigned int, fix fscr
2272 offset.
2273
fb146a76
UD
22742006-09-14 Jakub Jelinek <jakub@redhat.com>
2275
2276 * io/Makefile (CFLAGS-fstatat.c): Set.
2277 (CFLAGS-fstatat64.c): Likewise.
2278 (CFLAGS-mknodat.c): Likewise.
2279
2280 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
2281 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
2282 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
2283 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
2284
4cd3633d
UD
22852006-09-14 Jakub Jelinek <jakub@redhat.com>
2286 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 2287
4cd3633d
UD
2288 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
2289 names to the beginning. Rename "cell" to "cellbe".
2290 (_dl_powerpc_platforms): New.
2291 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
2292 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
2293 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
2294 (_DL_HWCAP_PLATFORM): Define to new mask.
2295 (_dl_platform_string, _dl_string_platform): New functions.
2296 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
2297 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
2298
30aa5785
UD
22992006-09-12 Jakub Jelinek <jakub@redhat.com>
2300
2301 [BZ #2526]
2302 * README.libm: Fix a thinko in sqrt algorithm description.
2303
2304 [BZ #3143]
2305 * manual/string.texi (argz_delete): Fix prototype.
2306 Patch by <alpt@freaknet.org>.
2307
23082006-08-26 Joseph Myers <joseph@codesourcery.com>
2309
2310 [BZ #3138]
2311 * io/test-lfs.c (do_prepare): Give name_len type size_t.
2312 * io/tst-fcntl.c (do_prepare): Likewise.
2313 * posix/tst-exec.c (do_prepare): Likewise.
2314 * posix/tst-preadwrite.c (do_prepare): Likewise.
2315 * posix/tst-spawn.c (do_prepare): Likewise.
2316 * posix/tst-truncate.c (do_prepare): Likewise.
2317 * rt/tst-aio.c (do_prepare): Likewise.
2318 * rt/tst-aio64.c (do_prepare): Likewise.
2319 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
2320 size_t.
2321
d26d01d1
UD
23222006-09-09 Ulrich Drepper <drepper@redhat.com>
2323
41aba3d7
UD
2324 [BZ #2821]
2325 * time/mktime.c (guess_time_tm): Fix overflow detection.
2326 * time/Makefile (tests): Add bug-mktime1.
2327 * time/bug-mktime1.c: New file.
2328
eaa51b47 2329 [BZ #3189, #3188]
d26d01d1 2330 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 2331 (mremap): Likewise.
d26d01d1 2332
ba40cc15
UD
23332006-09-07 Jakub Jelinek <jakub@redhat.com>
2334
2b6a801e
UD
2335 [BZ #1006]
2336 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
2337 Ensure relocation doesn't clobber any bits outside of the
2338 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
2339 R_SPARC_HI22 and R_SPARC_H44.
2340
469615bd
UD
2341 [BZ #2775]
2342 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
2343 (long) (MINSIZE + nb - old_size) is positive.
2344
2345 * malloc/arena.c (grow_heap): When growing bail even if new_size
2346 is negative.
2347
ba40cc15
UD
2348 [BZ #3155]
2349 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
2350 stack below r1.
2351
243b9ac1
UD
23522006-09-06 Jakub Jelinek <jakub@redhat.com>
2353
ba40cc15
UD
2354 * posix/regex_internal.c (re_string_reconstruct): Handle
2355 offset < pstr->valid_raw_len && pstr->offsets_needed case.
2356 Ensure no bytes read before raw_mbs array. Pass a saved copy of
2357 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
2358 re_string_context_at.
2359 * posix/Makefile: Add rules to build and run bug-regex26 test.
2360 * posix/bug-regex26.c: New test.
2361
243b9ac1
UD
2362 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
2363 rather than col_sym_free. Move seqp declaration earlier.
2364
2365 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
2366
d052233c
UD
23672006-09-05 Jakub Jelinek <jakub@redhat.com>
2368
2369 * nscd/initgrcache.c (addinitgroupsX): Move any_success
2370 decl before first goto out.
2371
71213dc2
UD
23722006-09-04 Jakub Jelinek <jakub@redhat.com>
2373
2374 * Makerules (shlib.lds): If have-hash-style, put .hash section
2375 at the end of the RO segment.
2376
23772006-09-04 Ulrich Drepper <drepper@redhat.com>
2378
2379 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
2380 style hash table format is used.
2381
03eeff83
UD
23822006-09-04 Jakub Jelinek <jakub@redhat.com>
2383
2384 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
2385 randomization rather than before.
2386 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
2387
b80770b2
UD
23882006-08-31 Jakub Jelinek <jakub@redhat.com>
2389
ba40cc15 2390 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
2391
2392 * malloc/malloc.c (_int_malloc): Use full list insert and not
2393 shortcut which assumes the list is empty for large requests
2394 too.
2395
2396 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
2397
99ea5991
UD
23982006-08-30 Jakub Jelinek <jakub@redhat.com>
2399
2400 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
2401 and offout arguments to the prototype.
2402 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
2403 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
2404 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
2405 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
2406 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
2407 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
2408 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
2409 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
2410
4004a0a5
UD
24112006-08-28 Ulrich Drepper <drepper@redhat.com>
2412
950398e1
UD
2413 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
2414
4004a0a5
UD
2415 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
2416 dlopen parameters.
2417
6e310111
UD
24182006-08-28 Jakub Jelinek <jakub@redhat.com>
2419
2420 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
2421 only if herrno is NETDB_INTERNAL. Handle errors other than
2422 ERANGE outside of the loops, handle TRY_AGAIN.
2423
2424 * locale/programs/ld-ctype.c (translit_flatten): Issue error
2425 if other's ctype category was missing.
2426 * locale/programs/ld-collate.c (collate_read): Return if
2427 copy_locale's collate category is missing.
2428
07014fca
UD
24292006-08-27 Ulrich Drepper <drepper@redhat.com>
2430
2431 [BZ #2684]
2432 * malloc/malloc.c (public_rEALLOc): Try harder by using other
2433 arenas if allocation failed.
2434 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
2435
71663747
UD
24362006-08-26 Ulrich Drepper <drepper@redhat.com>
2437
41999a1a
UD
2438 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
2439 waste bins[0..1].
2440 (malloc_state): Reduce bins size by 2.
2441 (_int_malloc): Fix test for large enough buffer for early termination.
2442 When no unsorted block matches perfectly and an exiting block has
2443 to be split, use full list insert and not shortcut which assumes
2444 the list is empty.
2445
71663747
UD
2446 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
2447 failure.
2448
93b53ca2
UD
24492006-08-24 Ulrich Drepper <drepper@redhat.com>
2450
f5a82772
UD
2451 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
2452 do anything.
2453
2ac9ca73
UD
2454 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
2455 symbol require exact match (these are PLTs).
2456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2457 (_dl_ppc64_addr_sym_match): Likewise.
2458
93b53ca2
UD
2459 [BZ #2683]
2460 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
2461 If symbol has a value use it.
2462 * elf/tst-dladdr1.c: New file.
2463 * elf/Makefile: Add rules to build and run tst-addr1.
2464
7463d5cb
UD
24652006-08-24 Jakub Jelinek <jakub@redhat.com>
2466
2467 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
2468 keeps failing and heap growth or new heap creation isn't
2469 successful either.
2470 * malloc/tst-malloc.c (main): Add new tests.
2471
542a6f62
UD
24722006-08-24 Ulrich Drepper <drepper@redhat.com>
2473
2474 [BZ #2734]
2475 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
2476 as in the x86-64 code to use bswap.
2477
aa2c6b6d
UD
24782006-05-21 Joseph S. Myers <joseph@codesourcery.com>
2479
24982798 2480 [BZ #2680]
aa2c6b6d
UD
2481 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
2482 __USE_UNIX98.
2483 * posix/bits/unistd.h: Likewise.
2484
59776aef
UD
24852006-05-15 Mike Frysinger <vapier@gentoo.org>
2486
2487 [BZ #2751]
2488 * string/strchr.c: Add cast to avoid warning.
2489
e404fb16
UD
24902006-08-21 Ulrich Drepper <drepper@redhat.com>
2491
2492 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 2493 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
2494 limit is needed to avoid the exploding of the address space
2495 requirement for secondary heaps.
2496 * malloc/arena.c (HEAP_MAX_SIZE): Define using
2497 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
2498
376e973a
UD
24992006-07-30 Joseph S. Myers <joseph@codesourcery.com>
2500
2501 [BZ #3018]
2502 * Makerules (depfiles): Handle extra-test-objs the same as
2503 extra-objs.
2504 (common-mostlyclean): Likewise.
2505 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
2506 instead.
2507 * elf/Makefile (extra-objs): Likewise.
2508 * stdlib/Makefile (extra-objs): Likewise.
2509
240c62a7
UD
25102006-08-14 Eric Blake <ebb9@byu.net>
2511
2512 [BZ #3044]
2513 * misc/error.h: Assume C89 or better.
2514 * misc/error.c: Likewise.
2515
3997b7c4
UD
25162006-08-21 Ulrich Drepper <drepper@redhat.com>
2517
2518 [BZ #3040]
2519 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
2520 __ASSUME_ATFCTS is defined.
2521
8a6537b0
UD
25222006-08-19 Ulrich Drepper <drepper@redhat.com>
2523
72320021
UD
2524 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
2525 to sort in each call.
2526
ed3691ba
UD
2527 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
2528 is empty simply return and use next service.
2529 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
2530
8a6537b0
UD
2531 * locale/programs/charmap.c (charmap_read): Add new parameter. It
2532 tells us when not finding a charmap file is an error.
2533 * locale/programs/charmap.h: Adjust charmap_read prototype.
2534 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
2535 cannot find a charmap.
2536 * locale/programs/localedef.c (main): Adjust charmap_read call.
2537
ad2a3c07
UD
25382006-08-15 Jakub Jelinek <jakub@redhat.com>
2539
2540 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
2541 sysdeps/posix/pause.c implementation instead.
2542
25432006-08-09 Jakub Jelinek <jakub@redhat.com>
2544
2545 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
2546 to EPERM.
2547
f17efcb4
UD
25482006-08-13 Andreas Schwab <schwab@suse.de>
2549
2550 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
2551 Don't clobber caller's LRSAVE.
2552 (_dl_prof_resolve): Likewise.
2553
107b8a92
UD
25542006-08-14 Ulrich Drepper <drepper@redhat.com>
2555
2556 [BZ #1996]
2557 * libio/memstream.c (open_memstream): Allocate initial buffer with
2558 calloc.
2559 * libio/wmemstream.c (open_wmemstream): Likewise.
2560 * libio/strops.c: Pretty printing.
2561 (_IO_str_overflow): Clear uninitialized part of the new buffer.
2562 (enlarge_userbuf): New function.
2563 (_IO_str_seekoff): Call it if seek position is larger than current
2564 buffer.
2565 * libio/wstrops.c: Likewise.
2566 * libio/vasprintf.c: Add comment as to why we do not have to use
2567 calloc instead of malloc to allocate initial buffer.
2568 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
2569 * libio/bug-memstream1.c: New file.
2570 * libio/bug-wmemstream1.c: New file.
2571
fa3ac53f
UD
25722006-08-13 Ulrich Drepper <drepper@redhat.com>
2573
89993734
UD
2574 * libio/wstrops.c: Remove dead macro definitions and comments.
2575 * libio/strops.c: Likewise.
2576
fa3ac53f
UD
2577 [BZ #2764]
2578 * login/utmpname.c (__utmpname): Remove unnecessary test.
2579
f99ed760
UD
25802006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
2581
2582 [BZ #2832]
2583 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
2584 0s from integers.
2585
25862006-08-13 Ulrich Drepper <drepper@redhat.com>
2587
2588 [BZ #2987]
2589 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
2590 for CPU clocks.
2591 * sysdeps/unix/clock_settime.c: Add support for platform-specific
2592 setting of CPU clocks.
2593
4c3f81d0
UD
25942006-06-23 Paul Eggert <eggert@cs.ucla.edu>
2595
2596 [BZ #2841]
2597 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
2598 since C99 requires the result to promote to 'int' when uint_least8_t
2599 and uint_least16_t promote to 'int'.
2600
cd8e60ce
UD
26012006-08-12 Ulrich Drepper <drepper@redhat.com>
2602
9a5c46e8
UD
2603 [BZ #3013]
2604 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
2605 lenght of one output field, correct bitmask creation.
2606 * locale/programs/ld-time.c: Add alignment.
2607
cd8e60ce
UD
2608 [BZ #2997]
2609 * misc/error.c: Add space between program name and message if file
2610 name is missing.
2611
9a528884
UD
26122006-08-03 Eric Blake <ebb9@byu.net>
2613
2614 [BZ #2998]
2615 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
2616
1d05c2fb
UD
26172006-08-09 Ulrich Drepper <drepper@redhat.com>
2618
0c1c6c6c
UD
2619 * malloc/memusagestat.c: Silence warnings.
2620
1d05c2fb
UD
2621 * malloc/malloc.c: Dynamically size mmap treshold if the program
2622 frees mmaped blocks.
2623 Patch by Valerie Henson and Arjan van de Ven.
2624
2d1e6277
UD
26252006-08-08 Jakub Jelinek <jakub@redhat.com>
2626
be7ffd91
UD
2627 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
2628 __USE_GNU.
2629
2d1e6277
UD
2630 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
2631 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
2632 (DEF): Don't put the var into .gnu.linkonce.r.* section.
2633 Only provide var definitions in strtol_l (or for *ull*
2634 in strtoll_l).
2635
2636 * stdio-common/bug16.c (tests): New array.
2637 (do_tests): Allow the first hexadecimal digit
2638 to be 1, 2, 4 or 8. Do 3 additional tests.
2639
2640 * sysdeps/s390/fpu/libm-test-ulps: Update.
2641
2642 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
2643 fchownat syscall if available.
2644 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
2645 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
2646 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
2647
d0ccde25
UD
26482006-08-07 Ulrich Drepper <drepper@redhat.com>
2649
2650 * nis/nis_xdr.c: Avoid some function calls.
2651
13a0293d 26522006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 2653 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
2654
2655 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
2656 short cut if only one name component is stripped away.
2657
bd1ebae0
UD
26582006-08-07 Ulrich Drepper <drepper@redhat.com>
2659
2660 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 2661 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
2662 (first_shoot): Add search_parent_first parameter. Only if it is set
2663 search parent server first.
2664 If directory for table found through cold start cache is not the same
2665 as referenced in the cache, don't use it.
2666 (__nisfind_server): Take additional parameter. Pass it on to
2667 first_shoot.
2668 (__prepare_niscall): Adjust __nisfind_server call.
2669 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
2670 * nis/nis_table.c: Adjust __nisfind_server call.
2671 * nis/nis_lookup.c: Likewise.
2672 (nis_lookup): Don't loop endlessly if name is reduced to ".".
2673
f1762c0c
UD
26742006-08-03 Ulrich Drepper <drepper@redhat.com>
2675
fe710250
UD
2676 [BZ #2182]
2677 * math/s_cacosh.c: Return values from positive branch.
2678 * math/s_cacoshf.c: Likewise.
2679 * math/s_cacoshl.c: Likewise.
2680
a5852807
UD
2681 [BZ #2883]
2682 * sysvipc/sys/msg.h: Change return value to ssize_t.
2683 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
2684 * sysvipc/msgrcv.c: Likewise.
2685 * include/sys/msg.h: Likewise.
39571a13 2686
6c215a8d
UD
2687 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
2688 test introduced in patch for bz #661.
39571a13 2689 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 2690 element for NEWGROUPS.
6c215a8d 2691
9c06eb66
UD
2692 [BZ #2908]
2693 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
2694 'f', use '1' as leading digit not '\1'.
2695 * stdio-common/Makefile (tests): Add bug16.
2696 * stdio-common/bug16.c: New file.
2697
2698 [BZ #2914]
2699 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
2700 and don't try to open it. The patch introducing the macro
2701 contained a bug and used the same file name as the new file
2702 instead of using /var/adm/hostid. Nobody complaint so I'm taking
2703 this out completely.
2704
2705 [BZ #2926]
2706 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
2707 Patch by Jerry James <Jerry.James@usu.edu>.
2708
f1762c0c
UD
2709 * rt/Makefile (tests): Add tst-clock2.
2710 * rt/tst-clock2.c: New file.
2711
2712 [BZ #2978]
2713 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
2714 function and its parameters and pass it to new thread.
2715 (__gai_notify): Add support for alternative waiting for completion.
2716 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
2717 waiting for completion.
2718 * resolv/getaddrinfo_a.c: Likewise.
2719 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
2720 waiting for completion is used.
2721 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
2722 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
2723 * resolv/gai_error.c: Likewise.
2724 * resolv/gai_sigqueue.c: Likewise.
2725
83ae6b40
RM
27262006-08-02 Thomas Schwinge <tschwinge@gnu.org>
2727
0e4e62fe 2728 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 2729 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 2730
82ee37c5
UD
27312006-06-23 Joseph Myers <joseph@codesourcery.com>
2732
2733 [BZ #2980]
f1762c0c 2734 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
2735
27362006-08-02 Ulrich Drepper <drepper@redhat.com>
2737
2738 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
2739 walk them instead of the symbol table.
2740
7bb1b2c9
UD
27412006-08-01 Ulrich Drepper <drepper@redhat.com>
2742
f13bfdd0 2743 [BZ #2098]
fbbc73b3
UD
2744 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
2745 status of NSS calls, not the number of returned entries.
2746
a4518922
UD
2747 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
2748 request_key, keyctl.
7bb1b2c9 2749
b06e7e9a
UD
27502006-07-31 Ulrich Drepper <drepper@redhat.com>
2751
2752 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
2753
f1227969
UD
27542006-07-16 Jeff Bailey <jbailey@ubuntu.com>
2755
2756 * elf/tst-auditmod1.c: Fix typo in #error.
2757
82ae2712
UD
27582006-07-31 Ulrich Drepper <drepper@redhat.com>
2759
f1227969
UD
2760 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
2761
82ae2712
UD
2762 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
2763
a1260d92
UD
27642006-07-20 Adam Nemet <anemet@caviumnetworks.com>
2765
2766 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 2767 that the directory is empty even on non-POSIX filesystems.
a1260d92 2768
d2de41fe
UD
27692006-07-31 Ulrich Drepper <drepper@redhat.com>
2770
13669f2c
UD
2771 * elf/dl-open.c (dl_open_worker): Add branch prediction.
2772
d2de41fe
UD
2773 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
2774 the backend NSS module. If backend setgrent call failed, don't have
2775 internal_setgrent fail. Just remember this until it is needed.
2776 * nis/nss_compat/compat-pwd.c: Likewise.
2777 * nis/nss_compat/compat-spwd.c: Likewise.
2778
b894c2ea
RM
27792006-07-30 Roland McGrath <roland@redhat.com>
2780
2781 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
2782 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
2783 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
2784 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
2785
2786 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
2787 (nanosleep_not_cancel): New macro.
2788 (sigsuspend_not_cancel): new macro.
2789 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
2790 (do_sigsuspend): Define as inline.
2791 (__sigsuspend): Always use do_sigsuspend.
2792 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
2793 * include/signal.h: Declare __sigsuspend_nocancel.
2794 * sysdeps/posix/pause.c
2795 [! NO_CANCELLATION] (__pause_nocancel): New function.
2796
2797 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
2798 * include/time.h (__nanosleep_nocancel): Likewise.
2799
c10d32c8
UD
28002006-07-30 Ulrich Drepper <drepper@redhat.com>
2801
2802 * locale/programs/localedef.c (add_to_readlist): Rename local
2803 variables to avoid confusion.
2804
2805 * locale/programs/charmap.c (charmap_read): Emit error message if
2806 charmap couldn't be found or read.
2807
6822f056
UD
28082006-07-28 Ulrich Drepper <drepper@redhat.com>
2809
d5ba53f9
UD
2810 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2811 __ASSUME_FUTEX_LOCK_PI.
2812 * include/time.h: Declare __nanosleep_nocancel.
2813 * include/unistd.h: Declare __pause_nocancel.
2814
6822f056
UD
2815 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
2816 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
2817 get the __stack_chk_fail_local definition when it's needed.
2818
3a975ff5
UD
28192006-07-26 Ulrich Drepper <drepper@redhat.com>
2820
6de1f625
UD
2821 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
2822 * dlfcn/bug-atexit3.c: New file.
2823 * dlfcn/bug-atexit3-lib.cc: New file.
2824
3a975ff5
UD
2825 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
2826 used when the namespace is not the base namespace.
2827
a92b1166
UD
28282006-07-26 Gavin Romig-Koch <gavin@redhat.com>
2829
2830 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
2831 (__new_exitfn): Bump it in every successful call.
2832 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
2833 more exit handlers, call them right away.
2834 * stdlib/exit.h: Declare __new_exitfn_called.
2835
a08336fb
UD
28362006-07-25 Ulrich Drepper <drepper@redhat.com>
2837
bd3754dc
UD
2838 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
2839 calling registered handler.
2840
a08336fb
UD
2841 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
2842 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2843 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2844 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2845 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2846 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2847 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2848 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2849
871b9158
UD
28502006-07-10 Ulrich Drepper <drepper@redhat.com>
2851
2852 * elf/dl-lookup.c (dl_new_hash): New functions.
2853 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
2854 value here. Compute new-style hash value. Pass new hash value
2855 and reference to variable with the old value to do_lookup_x.
2856 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
2857 old-style hash table.
2858 (_dl_debug_bindings): Pass new hash value and reference to variable
2859 with the old value to do_lookup_x.
2860 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
2861 new-style hash value and change old-style hash value parameter to
2862 be a reference. Reoganize functions to determine whether
2863 new-style hash table is available. Only fall back on old-style
2864 table. If old-style hash value is needed, compute it here.
2865 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
2866 entry.
2867 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
2868 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
2869 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
2870 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
2871 * Makeconfig: If linker supports --hash-style option add it to all
2872 linker command lines to build DSOs.
2873 * config.make.in: Define have-hash-style.
2874 * configure.in: Test whether linker supports --hash-style option.
2875
2876 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
2877 * sysdeps/generic/ldsodefs.h: Adjust prototype.
2878
a1f0de82
UD
28792006-06-27 Ulrich Drepper <drepper@redhat.com>
2880
361a3706
UD
2881 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
2882 auditing.
2883
a1f0de82
UD
2884 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
2885 RPATH of main map twice.
2886
4259230f
UD
28872006-06-22 Ulrich Drepper <drepper@redhat.com>
2888
2889 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
2890 look further, return original strings.
2891 (_nl_find_msg): Do not return found translation if the conversion
2892 failed. Either signal the string is unusable or that something went
2893 wrong and the original should be used.
2894
28952006-06-21 Ulrich Drepper <drepper@redhat.com>
2896
2897 * string/_strerror.c (__strerror_r): Add __builtin_expect.
2898
f9b7a98b
UD
28992006-06-14 Jakub Jelinek <jakub@redhat.com>
2900
2901 [BZ #2766]
2902 * misc/insremque.c (insque): Handle prev == NULL.
2903 * misc/Makefile (tests): Add tst-insremque.
2904 * misc/tst-insremque.c: New test.
2905
ac55a25b
UD
29062006-06-17 Ulrich Drepper <drepper@redhat.com>
2907
2908 [BZ #2792]
2909 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
2910 conflict with DL_DST_REQUIRED.
2911
02f366b3
UD
29122006-06-16 Ulrich Drepper <drepper@redhat.com>
2913
2914 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
2915 match what Solaris does.
2916
9009e8f8
UD
29172006-06-04 Ulrich Drepper <drepper@redhat.com>
2918
1b8373f4
UD
2919 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
2920 local_setegid instead of seteuid and setegid.
2921 * sysdeps/generic/local-setxid.h: New file.
2922 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
2923
7231452e
UD
2924 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
2925
9009e8f8 2926 * string/Makefile (tests): Add bug-envz1.
02f366b3 2927 * string/bug-envz1.c: New file.
9009e8f8 2928
33e63e79
UD
29292006-06-02 Jakub Jelinek <jakub@redhat.com>
2930
2931 * posix/regex_internal.c (re_string_skip_chars): If no character has
2932 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
2933 to the byte which couldn't be converted.
2934 (re_string_reconstruct): Don't clear valid_raw_len before calling
2935 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
2936 tip_context using re_string_context_at.
2937 * posix/Makefile: Add rules to build and run bug-regex25 test.
2938 * posix/bug-regex25.c: New test.
2939
fdc02996
UD
29402006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
2941
2942 [BZ #2703]
2943 * string/envz.c (envz_strip): Correct erroneously reversed src
2944 and dest parameters to memmove() invocation.
2945
902c4291
UD
29462006-05-30 Jakub Jelinek <jakub@redhat.com>
2947
2948 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
2949 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
2950 to make sure the database has been already invalidated.
2951 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
2952 after the cache has been invalidated. Use pthread_mutex_lock rather
2953 than pthread_mutex_trylock if fd != -1.
2954 * nscd/connections.c (invalidate_cache): Add fd argument, write
2955 response to fd if not calling prune_cache, pass fd to prune_cache.
2956 (handle_request): Adjust invalidate_cache caller.
2957 (nscd_run): Pass -1 as fd to prune_cache.
2958
ecc68568
UD
29592006-05-30 Ulrich Drepper <drepper@redhat.com>
2960
2961 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
2962 the correct place.
2963
9636a217
UD
29642006-05-29 Ulrich Drepper <drepper@redhat.com>
2965
2966 * nscd/nscd.h (struct database_dyn): Add prunelock field.
2967 * nscd/cache.c (prune_cache): Take prunelock before starting the
2968 work. Just return in case it is already taken.
cabfcde1 2969 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 2970
6bcb494a
UD
29712006-05-25 Ulrich Drepper <drepper@redhat.com>
2972
672d5a63 2973 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 2974 copying. No need to allocate new array for group members. Just
672d5a63
UD
2975 move the pointers and update the size.
2976
1663b44f
UD
2977 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
2978 Avoid memory leak in case realloc fails. Simplification for
2979 better code generation.
2980
2981 Avoid deprecation warning because of libc_hidden_proto for
2982 inet6_option_alloc.
2983 * inet/inet6_option.c (option_alloc): Renamed from
2984 inet6_option_alloc. Made static.
9636a217 2985 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
2986 (inet6_option_append): Call option_alloc.
2987 * include/netinet/in.h: Remove libc_hidden_proto for
2988 inet6_option_alloc.
2989
6bcb494a
UD
2990 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
2991 for cleanup when cb!=NULL [Coverity CID 233].
2992
aec6b246
UD
29932006-05-24 Ulrich Drepper <drepper@redhat.com>
2994
07bfff20
UD
2995 [BZ #2693]
2996 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
2997 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
2998 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
2999 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
3000 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
3001 and inet6_rth_getaddr.
3002 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
3003 array.
3004 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
3005 Mark inet6_option_* interfaces as deprecated.
3006 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
3007 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
3008 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
3009 inet6_rth_segments, and inet6_rth_getaddr.
3010 * inet/inet6_opt.c: New file.
3011 * inet/inet6_rth.c: New file.
3012
3013 * inet/netinet/icmp6.h: Pretty printing.
3014
aec6b246
UD
3015 [BZ #2683]
3016 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
3017
2d571cd1
UD
30182006-05-23 Ulrich Drepper <drepper@redhat.com>
3019
062e719b
UD
3020 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
3021 doing it all here. When server does not know the answer do not
3022 fail immediate, try parent first.
3023
2d571cd1
UD
3024 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
3025 overflow test.
3026
a17fa610
UD
30272006-05-20 Ulrich Drepper <drepper@redhat.com>
3028
3029 * nis/nis_call.c (__prepare_niscall): New function. Split out
3030 from __do_niscall.
3031 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
3032 and exported.
3033 (__follow_path): New function. Split out from nis_list.
3034 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
3035 _xdr_nis_result.
3036 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
3037 _xdr_nis_result.
3038 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
3039 and __follow_path.
3040 * nis/Versions: Export __prepare_niscall, __create_ib_request,
3041 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
3042 from libnsl for version GLIBC_PRIVATE.
3043 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
3044 Remove entry parameter from _nss_nisplus_parse_pwent and
3045 _nss_nisplus_parse_grent.
3046 * nis/nss_nisplus/nisplus-parser.c: Likewise.
3047 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
3048 again. Rewrite getpwent handling to not use nis_first_entry and
3049 nis_next_entry. Roll out own niscall handling.
3050 * nis/nss_nisplus/nisplus-grp.c: Likewise.
3051
3052 * sunrpc/xdr_rec.c: Fix typo in comment.
3053
429bb183
UD
30542006-05-19 Ulrich Drepper <drepper@redhat.com>
3055
1d4f062a
UD
3056 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
3057 handling.
3058
101cc598
UD
3059 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
3060 to allocate memory for my_pollfd. Better initialization of
3061 cb_is_running. Use TEMP_FAILURE_RETRY.
3062
f50fa10c
UD
3063 * malloc/memusage.sh (memusageso): Add quotes.
3064 (memusagestat): Likewise.
3065 * debug/xtrace.sh (pcprofileso): Likewise.
3066 (pcprofiledump): Likewise.
3067 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
3068 replacement.
3069 * malloc/Makefile ($(objpfx)memusage): Likewise.
3070
882bfe73
UD
3071 * nis/nis_callback.c (__nis_create_callback): Calls to
3072 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
3073 asprintf call fails.
3074
429bb183
UD
3075 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
3076 no uninitialized memory is passed to sendto.
3077
f90de831
UD
30782006-05-18 Ulrich Drepper <drepper@redhat.com>
3079
3080 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
3081 of snprintf+strdup. Handle OOM.
3082 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
3083 cb->serv together. Remove now obsolete free calls.
3084 (__nis_destroy_callback): Remove now obsolete free call.
3085
a17fa610 30862006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
3087
3088 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
3089 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
3090 and ULA respectively). Set precedence for IPv4 address to 10 as
3091 defined in RFC3484 for preferring IPv6.
3092 * posix/gai.conf: Update to match the new default tables.
3093
758b9d7e
UD
30942006-05-18 Jakub Jelinek <jakub@redhat.com>
3095
3096 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
3097 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
3098 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
3099 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
3100
3101 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
3102 Removed.
3103 (init_nss_interface): Remove initialization of these variables.
3104
31052006-05-18 Ulrich Drepper <drepper@redhat.com>
3106
3107 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
3108 nis_free_directory forward to avoid duplication.
3109
388c779e
UD
31102006-05-17 Ulrich Drepper <drepper@redhat.com>
3111
5f1724bf
UD
3112 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
3113 rec_dirsearch returning NULL.
3114 (first_shoot): Handle __nis_finddirectory returning NULL.
3115 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
3116
388c779e
UD
3117 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
3118 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
3119
360d5cf4
UD
31202006-05-17 Jakub Jelinek <jakub@redhat.com>
3121
3122 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
3123 pid changed.
3124
88dbff8c
UD
31252006-05-15 Ulrich Drepper <drepper@redhat.com>
3126
6f8a7dff
UD
3127 * include/rpc/pmap_prot.h: Mark all functions as hidden.
3128
3129 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
3130 * nscd/nscd_getgr_r.c: Likewise.
3131
3132 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
3133
3134 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
3135 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
3136
3137 * stdlib/longlong.h (__clz_tab): Mark as hidden.
3138
3139 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
3140
360d5cf4 3141 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
3142
3143 * include/rpc/auth.h: Mark xdr_des_block_internal and
3144 xdr_opaque_auth_internal as hidden.
3145
3146 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
3147 hidden.
3148
360d5cf4 3149 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 3150
02264020
UD
3151 * misc/getusershell.c (okshells): Don't use static initializers,
3152 do it dynamically.
3153
fd5ea238
UD
3154 * stdlib/fmtmsg.c (keywords): Change type of len element to
3155 uint32_t to not waste space on 64bit machines.
3156
9446614c
UD
3157 * locale/setlocale.c: Change _nl_category_names into a string.
3158 Add new _nl_category_name_idxs. Change all users.
3159 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
3160 Declare _nl_category_name_idxs.
3161 * locale/findlocale.c: Adjust for _nl_category_names change.
3162 * locale/loadlocale.c: Likewise.
3163 * locale/newlocale.c: Likewise.
3164 * intl/dcigettext.c: Likewise.
3165
88dbff8c
UD
3166 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
3167 (add_alias2): ...here. New function.
3168 (__gconv_read_conf): Simplify builtin alias handling.
3169 (builtin_aliases): Convert to string to avoid relocations.
3170 * iconv/gconv_builtin.h: Add comment about correct formatting.
3171
4442d58f
UD
31722006-05-15 Jakub Jelinek <jakub@redhat.com>
3173
3174 * resolv/res_debug.c (loc_ntoa): Make error const.
3175
31762006-05-14 Andreas Schwab <schwab@suse.de>
3177
3178 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
3179
31802006-05-12 Jakub Jelinek <jakub@redhat.com>
3181
3182 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
3183 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
3184 sizeof (cpu_set_t).
3185
a51752b6
UD
31862006-05-11 Ulrich Drepper <drepper@redhat.com>
3187
5d3fd1f6
UD
3188 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
3189
08cfb839
UD
3190 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
3191
4b481a15
UD
3192 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
3193 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
3194
3195 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
3196 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
3197
3198 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
3199 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
3200 xdr_cback_data.
3201
3202 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
3203 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
3204 xdr_ypupdate_args.
3205
3206 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
3207 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
3208
3209 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
3210 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
3211
3212 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
3213 * include/rpcsvc/nis_callback.h: New file.
3214
3215 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
3216 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
3217
3218 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
3219 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
3220
3221 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
3222 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
3223
3224 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
3225 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
3226
b1ad49c6
UD
3227 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
3228 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
3229 xdr_ypdelete_args.
3230
cd5f7829
UD
3231 * nis/nis_xdr.h: Mark all functions as hidden. Remove
3232 __BEGIN_DECLS and __END_DECLS, the header is not installed.
3233
a51752b6
UD
3234 * nis/nis_error.c: Remove table of strings. Use position
3235 independent mechanism.
3236 * nis/nis_error.h: New file.
3237
3d237e42
UD
32382006-05-11 Jakub Jelinek <jakub@redhat.com>
3239
3240 * locale/programs/ld-time.c (time_finish): If wide era name or
3241 format aren't provided, set both wname and wformat to L"".
3242
d6c159fe
UD
32432006-05-10 Ulrich Drepper <drepper@redhat.com>
3244
0088b04e
UD
3245 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
3246 results if the call was succesful.
3247
d6c159fe
UD
3248 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
3249
3250 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
3251 as hidden.
3252
5c5acdf0
UD
32532006-05-10 Jakub Jelinek <jakub@redhat.com>
3254
3255 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
3256
16d620db
UD
32572006-05-10 Ulrich Drepper <drepper@redhat.com>
3258
3259 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
3260 caller makes sure this is not the case.
3261 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
3262
e7c8359e
UD
32632006-05-09 Ulrich Drepper <drepper@redhat.com>
3264
ecf359c6
UD
3265 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
3266 calls.
3267
400cc70a
UD
3268 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
3269 [Coverity CID 229, 230]
3270
3271 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
3272 DGETTEXT calls.
3273 (hol_help): Likewise. [Coverity CID 226, 227]
3274
3275 * string/argz-replace.c (__argz_replace): Unconditionally call
3276 free on SRC. [Coverity CID 225]
3277
3278 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
3279 the return value of __nis_default_owner and __nis_default_group,
3280 it has been especially allocated. [Coverity CID 224]
3281
51e59260
UD
3282 * nis/nis_defaults.c (searchXYX): New functions. Used by both
3283 searchgroup and searchowner. Significantly simplified.
3284 (__nis_default_owner): Remove duplication. Do not locally copy the
3285 string before duplicating it.
3286 (__nis_default_group): Likewise.
3287
3288 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
3289 we must clear the variable before calling __nisfind_server.
3290
3291 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
3292 nis_getnames. [Coverity CID 223]
3293
3294 * locale/programs/locfile.c (locfile_read): Use alloca instead of
3295 xmalloc to allocate local repertoire name. [Coverity CID 222]
3296
3297 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
3298 allocate memory for the input to add_bytes. [Coverity CID 221]
3299
e7c8359e 3300 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 3301 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
3302
3303 * posix/getconf.c (print_all): Free confstr data after printing.
3304 [Coverity CID 218]
3305
3306 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
3307 list allocation fails. [Coverity CID 215]
3308
3309 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
3310 [Coverity CID 213]
3311
3312 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
3313 string is NULL. [Coverity CID 212]
3314 * argp/Makefile: Add rules to build and run bug-argp1.
3315 * argp/bug-argp1.c: New file.
3316
3317 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
3318 end of string.
3319 * stdlib/canonicalize.c (__realpath): Likewise.
3320
3321 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
3322 pointer. [Coverity CID 206]
3323
3324 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
3325 in statically linked code.
3326 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
3327 statically built code, be prepared to have no link map.
3328 [Coverity CID 205]
3329
3330 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
3331 dgettext calls. [Coverity CID 204]
3332
3333 * argp/argp-help.c (struct uparams): Remove valid member. Change
3334 the one user.
3335 (uparam_names): Reduce size. Avoid relative relocations.
3336 Moved to read-only segment.
3337 (fill_in_uparams): Update for new layout.
3338
3339 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
3340 assumed to always be != NULL. [Coverity CID 202]
3341
3342 * argp/argp-help.c (hol_entry_help): Remove some dead code
3343 [Coverity CID 200].
3344
3345 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
3346 away a few more unconditional yperr2nss calls.
3347 (_nss_nis_getservbyname_r): Likewise.
3348
acf82eaf
UD
33492006-05-06 Ulrich Drepper <drepper@redhat.com>
3350
4461cf48
UD
3351 * sysdeps/generic/ldsodefs.h: Remove support for non-core
3352 architectures.
3353
b74a8c7f
UD
3354 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
3355 that unused memory passed to sendto is nevertheless initialized.
3356
acb98cb5
UD
3357 [BZ #2499]
3358 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
3359 possibly unaligned memory accesses.
3360
bce16467
UD
3361 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
3362 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
3363 and __putlong respectively. Correct buffer overflow check for
3364 NS_NOTIFY_OP.
3365
3366 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
3367
8e45b1ac
UD
3368 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
3369 (send_dg): Rewrite error handling to be more compact and avoid
3370 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
3371
697e1628
UD
3372 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
3373
3374 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
3375 instead of ns_get16.
3376 (res_queriesmatch): Likewise. Minor optimization.
3377
acf82eaf
UD
3378 [BZ #2499]
3379 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
3380 __libc_res_nsend might reallocate the buffer for the answer. In
3381 this case we have to reload the HP pointer.
3382
7bfee654
UD
33832006-05-05 Ulrich Drepper <drepper@redhat.com>
3384
694b49ca
UD
3385 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
3386 some branch prediction hints.
3387
7bfee654
UD
3388 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
3389 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3390 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3391 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3392 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3393 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3394 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3395 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3396
308bb2d5
UD
33972006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3398
3399 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
3400 by a GOT relocation to make Scrt1.o position independent.
3401 * sysdeps/s390/s390-64/elf/start.S: Likewise.
3402
3403 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
3404 six system call parameters.
3405 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3406
cdb9c321
UD
34072006-05-05 Ulrich Drepper <drepper@redhat.com>
3408
3409 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
3410 malloc&bzero.
3411
3412 * sunrpc/svc_udp.c (BZERO): Remove definition.
3413 (CALLOC): Define.
3414 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
3415
3416 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
3417 (des_SPtrans): Use uint32_t type.
3418 (des_skb): Likewise.
3419
3420 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
3421
fff04b32
UD
34222006-05-05 Jakub Jelinek <jakub@redhat.com>
3423
3424 [BZ #2509]
3425 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
3426 on 32-bit arches.
3427
34282006-05-05 Ulrich Drepper <drepper@redhat.com>
3429
3430 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 3431 place where the iso639 array might be accessed beyond the limits.
fff04b32 3432
077a30bc 34332006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 3434
f2d5cf50
UD
3435 * nis/nis_table.c (nis_list): Avoid clearing res twice before
3436 filling it for the first time.
3437
3e4370cf
UD
3438 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
3439 Adjust all callers.
3440 Free res object content before returning.
3441
5e65a53d
UD
3442 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
3443
48be3114
UD
3444 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
3445 client->cl_auth.
3446
ca4fce0e
UD
3447 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
3448 cleanup for initial thread, just the free call on TVP.
3449
077a30bc 3450 * nscd/gai.c (__getline): Define.
3b7a95fb 3451
5d37289a 3452
3f87d901 3453See ChangeLog.16 for earlier changes.
This page took 0.605412 seconds and 5 git commands to generate.