]> sourceware.org Git - glibc.git/blame - ChangeLog
* iconv/gconv_simple.c: Add some branch prediction.
[glibc.git] / ChangeLog
CommitLineData
26a51060
UD
12007-10-11 Ulrich Drepper <drepper@redhat.com>
2
3 * iconv/gconv_simple.c: Add some branch prediction.
4
6dd3748b
UD
52007-10-12 Jakub Jelinek <jakub@redhat.com>
6
7 * locale/programs/ld-collate.c (collate_read): If ignore_content
8 and nowtok is tok_define, eat any tok_eol tokens.
9
d0b5557d
JJ
102007-10-11 Jakub Jelinek <jakub@redhat.com>
11
12 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
13 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
14
15 * inet/netinet/in.h: Don't include bits/socket.h.
16 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
17 macro.
18 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
19
3a054d7a
UD
202007-10-10 Ulrich Drepper <drepper@redhat.com>
21
22 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
23 and tok_elifndef.
24 * locale/programs/locfile-kw.gperf: Likewise.
25 * locale/programs/ld-collate.c: Implement primitive preprocessor.
26
c06b7169
UD
272007-10-10 Jakub Jelinek <jakub@redhat.com>
28
29 * stdio-common/printf-parse.h: Include string.h and wchar.h.
30 (__find_specwc): Change into __extern_always_inline function.
31 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
32 (__parse_one_specmb): Remove ps argument.
33 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
34 Adjust __find_specmb and __parse_one_specmb callers.
35 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
36 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
37 Removed.
38 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
39 caller.
40
5a01ab7b
UD
412007-10-09 Ulrich Drepper <drepper@redhat.com>
42
43 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
44 with some Pentium Ds.
45
e3f8e049
UD
462007-10-08 Ulrich Drepper <drepper@redhat.com>
47
48 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
49 __read not read.
50 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
51 __write not write.
52
a1a363d2
UD
532007-10-07 Ulrich Drepper <drepper@redhat.com>
54
a1160714
UD
55 [BZ #181]
56 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
57 * locale/programs/ld-time.c (time_finish): Default for
58 first_workday is Monday.
a1160714 59
bb27a6eb
UD
60 [BZ #2633]
61 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
62
c8d48fae
UD
63 [BZ #5103]
64 * posix/glob.c (glob): Recognize patterns starting \/.
65 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
66 (main): Add test for pattern starting \/.
67
a1a363d2
UD
68 * misc/error.h: Use __const instead of const.
69 * misc/bits/error.h: Likewise.
70
712007-10-07 Andreas Jaeger <aj@suse.de>
72
73 * include/bits/error.h: New file.
74
75 * misc/bits/error.h (error_at_line): Fix prototype.
76
71894681
UD
772007-10-06 Ulrich Drepper <drepper@redhat.com>
78
a6fa5328
UD
79 [BZ #3924]
80 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
81 more little bugs in creating the stack frame when pltexit has to
82 be called.
83
8c7661bc 84 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 85 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 86
c039eedd
UD
87 [BZ #4407]
88 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
89 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
90 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
91 * math/libm-test.inc: Add test for this case.
92
71894681
UD
93 [BZ #5010]
94 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
95 (svc_register): Initialize sc_mapped. Set to TRUE if call to
96 map service succeeded.
97 (svc_is_mapped): New function.
98 (svc_unregister): Use it before trying to unmap service.
99
34c2c092
UD
1002007-10-05 Ulrich Drepper <drepper@redhat.com>
101
d10737e4
UD
102 * timezone/zic.c: Update from tzcode2007h.
103
104 [BZ #5063]
105 * timezone/africa: Update from tzdata2007h.
106 * timezone/antarctica: Likewise.
107 * timezone/asia: Likewise.
108 * timezone/australasia: Likewise.
109 * timezone/europe: Likewise.
110 * timezone/leapseconds: Likewise.
111 * timezone/northamerica: Likewise.
112 * timezone/southamerica: Likewise.
113 * timzeone/zone.tab: Likewise.
114
0304f168
UD
115 [BZ #5104]
116 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
117
a83b5649
UD
118 [BZ #5113]
119 * string/bits/string2.h (__strdup): Cast parameters to calloc to
120 avoid warning with -Wconversion.
121 (__strndup): Likewise.
c039eedd 122 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 123
3e6ce4d7
UD
124 [BZ #5112]
125 * nscd/connections.c (restart): Don't resync if database is
126 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
127
8e351378
UD
128 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
129 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
130
131 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
132 evetnfd_read, eventfd_write.
133 * sysdeps/unix/sysv/linux/eventfd.c: New file.
134 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
135 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
136 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 137 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
138 eventfd_write for GLIBC_2.7.
139
34c2c092
UD
140 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
141 * sysdeps/unix/sysv/linux/signalfd.c: New file.
142 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
143 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
144
6789aaaa 1452007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
146
147 * stdlib/msort.c: Include stdint.h.
148 (struct msort_param): New type.
149 (msort_with_tmp): Use struct msort_param pointer for unchanging
150 parameters. Add optimized handling for several common sizes
151 and indirect sorting mode.
152 (qsort): Adjust msort_with_tmp callers. For big S use indirect
153 sorting.
154 Suggested by Belazougui Djamel .
155
156 * stdlib/Makefile (tests): Add tst-qsort2.
157 * stdlib/tst-qsort2.c: New test.
158
b80bfc8b
UD
1592007-10-04 Ulrich Drepper <drepper@redhat.com>
160
174420d2
UD
161 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
162 for dup2 in case another thread races with the current one. Retry
163 in this case.
164
b80bfc8b
UD
165 * misc/error.h: Remove support for use outside of libc. We have to
166 include <features.h> now. Include <bits/error.h> if possible.
167 * misc/bits/error.h: New file.
168
6789aaaa 1692007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 170
e5dd2178
UD
171 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
172 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
173 __extern_always_inline functions unconditionally, drop macros.
174
ac97dec1
UD
175 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
176 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
177 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
178
ee868c89
UD
179 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
180 add __artificial__ attribute.
181
80e069e0
UD
1822007-10-02 Ulrich Drepper <drepper@redhat.com>
183
6e682cf5
UD
184 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
185 backward to forward direction.
186
90241a20
UD
187 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
188
80e069e0
UD
189 [BZ #645]
190 * locale/programs/ld-collate.c (collate_finish): Compare against last
191 used section which is known to have rules defined.
192 (collate_read): After order_start, correctly record order of sections
193 and queue sections up.
194
035ef8d7
UD
1952007-10-01 Ulrich Drepper <drepper@redhat.com>
196
95bddc0c
UD
197 [BZ #5071]
198 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
199 the same number of pages.
200 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
201
c8caf089
UD
202 * locale/programs/ld-collate.c (collate_read): After initial copy
203 statement, continue in state 0.
204
035ef8d7
UD
205 * include/stdio_ext.h (__fsetlocking): Define as macro.
206
592a95ee
UD
2072007-09-30 Ulrich Drepper <drepper@redhat.com>
208
56ebeb41
UD
209 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
210 of section order.
211
592a95ee
UD
212 * po/pt_BR.po: Fix typo.
213
6c522e21
UD
2142007-09-29 Ulrich Drepper <drepper@redhat.com>
215
8ad5c3cd
UD
216 * iconvdata/Makefile (modules): Add ISO8859-9E.
217 (distribute): Add iso8859-9e.c.
218 (gen-8bit-gap-modules): Add iso8859-9e.
219 * iconvdata/iso8859-9e.c: New file.
220 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
221 * iconvdata/TESTS: Likewise.
222 * iconvdata/tst-tables.sh: Likewise.
223
224 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
225
6c522e21
UD
226 * locale/iso-639.def: Add several new entries.
227
385b4cf4
UD
2282007-09-24 Jakub Jelinek <jakub@redhat.com>
229
230 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
231 void * pointers instead of struct link_map **.
232 (_dl_scope_free): Change argument type to void *.
233 * include/link.h (struct link_map): Change type of l_reldeps
234 to struct link_map_reldeps, move l_reldepsact into that
235 struct too.
236 * elf/dl-deps.c: Include atomic.h.
237 (_dl_map_object_deps): Only change l->l_initfini when it is
238 fully populated, use _dl_scope_free for freeing it. Optimize
239 removal of libs from reldeps by using l_reserved flag, when
240 some removal is needed, allocate a new list instead of
241 reallocating and free the old with _dl_scope_free. Adjust
242 for l_reldeps and l_reldepsact changes.
243 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
244 searching in l_initfini and l_reldeps without holding dl_load_lock.
245 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
246 l_reldepsact changes.
247 * elf/dl-close.c (_dl_close_worker): Likewise.
248 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
249
90bf831b
UD
2502007-09-28 Ulrich Drepper <drepper@redhat.com>
251
252 * iconvdata/Makefile (modules): Add KOI8-RU.
253 (distribute): Add koi8-ru.c.
254 (gen-8bit-gap-modules): Add koi8-ru.
255 * iconvdata/koi8-ru.c: New file.
256 * iconvdata/gconv-modules: Add entries for KOI8-RU.
257 * iconvdata/TESTS: Likewise.
258 * iconvdata/tst-tables.sh: Likewise.
259
260 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
261
d6cd6bf4
UD
2622007-09-26 Jakub Jelinek <jakub@redhat.com>
263
264 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
265 with __warning__/__error__ attributes.
266 (__warnattr): Define.
267 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
268 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
269 __warnattr.
270 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
271 of __*_chk if compile time detectable overflow is found.
272 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
273 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
274 with __warnattr.
275 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
276 instead of __*_chk if compile time detectable overflow is found.
277 (__gets_alias): Rename to...
278 (__gets_warn): ... this. Add __warnattr.
279 (gets): Call __gets_warn instead of __gets_alias.
280 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
281 aliases with __warnattr.
282 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
283 time detectable overflow is found.
284 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
285 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
286 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
287 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
288 __getdomainname_chk_warn): New aliases with __warnattr.
289 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
290 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
291 __*_chk_warn instead of __*_chk if compile time detectable overflow
292 is found.
293 (__getgroups_chk): Rename argument to __listlen from listlen.
294 (__getwd_alias): Rename to...
295 (__getwd_warn): ... this. Add __warnattr.
296 (getwd): Call __getwd_warn instead of __getwd_alias.
297 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
298 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
299 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
300 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
301 __wcsnrtombs_chk_warn): New aliases with __warnattr.
302 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
303 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
304 compile time detectable overflow is found.
305 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
306 to use __*_chk or not.
307 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
308 in comparisons which function should be called and in __*_chk*
309 arguments. Call __*_chk_warn instead of __*_chk if compile time
310 detectable overflow is found.
311 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
312 __*_chk argument.
313 * debug/tst-chk1.c (do_test): Add a few more tests.
314
408cfca0
UD
3152007-09-24 Ulrich Drepper <drepper@redhat.com>
316
317 [BZ #5058]
318 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
319 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
320 (_nl_unload_domain): Finalize conversions_lock.
321 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
322 handling table of known conversions.
323
e6eec9ce
JJ
3242007-09-24 Jakub Jelinek <jakub@redhat.com>
325
326 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
327 close_not_cancel_no_status instead of close.
328
a532a41d
UD
3292007-09-13 Aurelien Jarno <aurelien@aurel32.net>
330
682268ef 331 [BZ #5028]
408cfca0 332 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
333 nrules != 0 for multibyte chars.
334
dec9ed9e
UD
3352007-09-23 Ulrich Drepper <drepper@redhat.com>
336
91633816
UD
337 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
338 Provide better error message in case the type is unknown.
339
9cc198f6
UD
340 [BZ #4963]
341 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
342 * string/stratcliff.c: Make usable to test wide char functions.
343 * wcsmbs/wcsatcliff.c: New file.
344 * wcsmbs/Makefiel (tests): Add wcsatcliff.
345
27f3d446
UD
346 [BZ #4972]
347 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
348 (distribute): Add mac-centraleurope.c.
349 (gen-8bit-gap-modules): Add mac-centraleurope.
350 * iconvdata/mac-centraleurope.c: New file.
351 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
352 * iconvdata/TESTS: Likewise.
353 * iconvdata/tst-tables.sh: Likewise.
354
dec9ed9e
UD
355 [BZ #5043]
356 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
357
0435403c
UD
3582007-09-21 Ulrich Drepper <drepper@redhat.com>
359
360 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
361 from __x86_64_core_cache_size_half.
362 (init_cacheinfo): Compute shared cache size for AMD processors with
363 shared L3 correctly.
364 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
365 name change.
366 Patch in large parts by Evandro Menezes.
367
c3266dc0
UD
3682007-09-19 Ulrich Drepper <drepper@redhat.com>
369
715899d1
UD
370 * elf/dl-lookup.c (add_dependency): Handle failing memory
371 allocation for dependency list. Remove unnecessary check.
372
e1db0493
UD
373 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
374 open/close when determining source addresses.
375
c3266dc0
UD
376 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
377 sha512-crypt, and sha512.
378 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
379 (distribute): Add sha256.h and sha512.h.
380 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
381 and call the appropriate code.
382 * crypt/sha256-crypt.c: New file.
383 * crypt/sha256.c: New file.
384 * crypt/sha256.h: New file.
385 * crypt/sha256c-test.c: New file.
386 * crypt/sha256test.c: New file.
387 * crypt/sha512-crypt.c: New file.
388 * crypt/sha512.c: New file.
389 * crypt/sha512.h: New file.
390 * crypt/sha512c-test.c: New file.
391 * crypt/sha512test.c: New file.
392
ddf51ecb
JJ
3932007-09-19 Jakub Jelinek <jakub@redhat.com>
394
395 * misc/bits/syslog.h (syslog): Remove extraneous argument from
396 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
397 __syslog_chk.
398
b90395e6
UD
3992007-09-18 Jakub Jelinek <jakub@redhat.com>
400
76c0bea7
JJ
401 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
402 %as in fscanf format strings.
403
00680568
JJ
404 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
405 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
406 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
407 Likewise.
408 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
409 Likewise.
00680568 410
b90395e6
UD
411 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
412 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
413 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
414 * elf/dl-sym.c (do_sym): Likewise.
415 * include/link.h (struct link_map): Add l_serial field.
416 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
417 * elf/dl-lookup.c (add_dependency): Add flags argument.
418 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
419 flags, use THREAD_GSCOPE_RESET_FLAG before and
420 THREAD_GSCOPE_SET_FLAG after
421 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
422 Don't dereference map until it has been found on some list.
423 If map->l_serial changed, return -1.
424
874aa523
UD
4252007-09-17 Jakub Jelinek <jakub@redhat.com>
426
427 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
428 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
429 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
430 libc_hidden_proto.
431 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
432 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
433 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
434 add libc_hidden_proto.
435 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
436 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
437 conformance requested.
438 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
439 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
440 conformance requested.
441 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
442 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
443 conformance requested.
444 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
445 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
446 ISO C99 or POSIX conformance requested.
447 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
448 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
449 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
450 and __isoc99_vsscanf@@GLIBC_2.7.
451 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
452 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
453 (tests): Add scanf14.
454 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
455 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
456 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
457 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
458 CFLAGS-isoc99_scanf.c): Add $(exceptions).
459 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
460 from using internal headers.
461 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
462 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
463 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
464 and __isoc99_vswscanf@@GLIBC_2.7.
465 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
466 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
467 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
468 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
469 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
470 * stdio-common/isoc99_scanf.c: New file.
471 * stdio-common/isoc99_vsscanf.c: New file.
472 * stdio-common/isoc99_vscanf.c: New file.
473 * stdio-common/isoc99_vfscanf.c: New file.
474 * stdio-common/isoc99_fscanf.c: New file.
475 * stdio-common/isoc99_sscanf.c: New file.
476 * wcsmbs/isoc99_fwscanf.c: New file.
477 * wcsmbs/isoc99_vswscanf.c: New file.
478 * wcsmbs/isoc99_swscanf.c: New file.
479 * wcsmbs/isoc99_wscanf.c: New file.
480 * wcsmbs/isoc99_vwscanf.c: New file.
481 * wcsmbs/isoc99_vfwscanf.c: New file.
482 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
483 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
484 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
485 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
486 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
487 * stdio-common/scanf14.c: New test.
488 * stdio-common/scanf15.c: New test.
489 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
490 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
491 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
492 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
493 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
494 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
495 __nldbl___isoc99_scanf@@GLIBC_2.7,
496 __nldbl___isoc99_fscanf@@GLIBC_2.7,
497 __nldbl___isoc99_sscanf@@GLIBC_2.7,
498 __nldbl___isoc99_vscanf@@GLIBC_2.7,
499 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
500 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
501 __nldbl___isoc99_wscanf@@GLIBC_2.7,
502 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
503 __nldbl___isoc99_swscanf@@GLIBC_2.7,
504 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
505 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
506 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
507 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
508 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
509 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
510 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
511 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
512 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
513 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
514 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
515 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
516 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
517 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
518 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
519 functions.
520 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
521 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
522 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
523 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
524 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
525 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
526 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
527 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
528 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
529 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
530 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
531 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
532
533 * stdio-common/Makefile (tests): Add scanf13.
534 (scanf13-ENV): New.
535 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
536 m modifier followed by l.
537 (STRING_ARG): Add width argument.
538 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
539 <case L_('C')>: Handle %mlc and %mC.
540 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
541 arguments.
542 * stdio-common/scanf13.c: New test.
543
544 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
545 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
546
883f7943
UD
5472007-09-18 Ulrich Drepper <drepper@redhat.com>
548
549 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 550 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
551 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
552 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
553 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
554 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
555 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
556 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
557 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
558 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
559 as cancellation points.
560
3524efe0
UD
5612003-11-01 Daniel Jacobowitz <dan@debian.org>
562
563 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
564 parse more than three parts of the version number.
565
267c54dc
UD
5662007-09-15 Ulrich Drepper <drepper@redhat.com>
567
568 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
569 modifier. Patch by Jakub Jelinek.
570
5e17d6b7
UD
5712007-08-26 Jakub Jelinek <jakub@redhat.com>
572
573 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
574 call_fallocate in misc subdir.
575 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
576 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
577 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
578 instead of __fallocate64.
579 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
580
3a50811c
UD
5812007-09-15 Jakub Jelinek <jakub@redhat.com>
582
583 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
584 * rt/Makefile (headers): Add bits/mqueue2.h.
585 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
586 optimizing with GCC and __va_arg_pack_len is defined.
587 * rt/bits/mqueue2.h: New file.
588 * rt/mq_open.c (__mq_open): Renamed from mq_open.
589 (mq_open): New strong_alias.
590 (__mq_open_2): New function.
591 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
592 (mq_open): New strong_alias.
593 (__mq_open_2): New function.
594 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
595 * Versions.def (librt): Add GLIBC_2.7 version.
596 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
597 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
598
599 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
600 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
601 is defined rather than when not C++.
602 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
603 __openat64_alias): New redirects.
604 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
605 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
606 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
607 (open, open64, openat, openat64): Rewrite as __extern_always_inline
608 functions instead of function-like macros.
609
9bdfff60
UD
6102007-09-14 H.J. Lu <hongjiu.lu@intel.com>
611
612 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
613 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
614 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
615
ab905672
UD
6162007-09-15 Mike Frysinger <vapier@gentoo.org>
617
618 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
619 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
620
9bd68902
RM
6212007-09-14 Mike Frysinger <vapier@gentoo.org>
622
623 * inet/tst-network.c: Increment ERRORS for failing tests.
624
de1c3ebb
UD
6252007-09-07 Jakub Jelinek <jakub@redhat.com>
626
627 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
628 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
629 implement as __extern_always_inline function.
630 (vsyslog): Define as __extern_always_inline function unconditionally.
631 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
632 When __va_arg_pack is defined, implement as __extern_always_inline
633 functions.
634 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
635 __extern_always_inline functions unconditionally.
636 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
637 bits/stdio2.h will be included.
638 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
639 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
640 implement as __extern_always_inline functions.
641 (vswprintf, vwprintf, vfwprintf): Define as
642 __extern_always_inline functions unconditionally.
643 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
644
6452007-09-03 Jakub Jelinek <jakub@redhat.com>
646
647 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
648 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
649 attribute.
650 * include/features.h (__USE_EXTERN_INLINES): Define only when
651 __extern_inline is defined.
652 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
653 is defined instead of when not __cplusplus.
654 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
655 is defined instead of when not __cplusplus.
656 * socket/sys/socket.h: Include bits/socket2.h when
657 __extern_always_inline is defined instead of when not __cplusplus.
658 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
659 is defined instead of when not __cplusplus.
660 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
661 is defined instead of when not __cplusplus.
662 * string/string.h: Include bits/string3.h when __extern_always_inline
663 is defined instead of when not __cplusplus.
664 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
665 is defined instead of when not __cplusplus.
666 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
667 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
668 is not defined.
669 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
670 defined __extern_always_inline instead of !defined __cplusplus.
671 * libio/bits/stdio-ldbl.h: Likewise.
672 * wcsmbs/bits/wchar-ldbl.h: Likewise.
673 * misc/bits/syslog.h (syslog): Don't define for C++.
674 (vsyslog): Use __extern_always_inline function for C++ instead of
675 a macro.
676 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
677 whenever that macro is defined.
678 (vprintf): Don't provide the inline for C++.
679 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
680 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
681 define the macros for C++.
682 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
683 __extern_always_inline functions for C++.
684 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
685 stat64, lstat64, fstat64, fstatat64): Don't define if not
686 __USE_EXTERN_INLINES.
687 * wcsmbs/bits/wchar2.h: Fix #error message.
688 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
689 (vswprintf, vwprintf, vfwprintf): Define using
690 __extern_always_inline functions for C++.
691 * string/bits/string3.h: Don't #undef macros if __cplusplus.
692 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
693 strncpy, strcat, strncat): Define as __extern_always_inline
694 functions instead of macros for C++.
695 * math/bits/cmathcalls.h: Guard __extern_inline routines with
696 defined __extern_inline.
697 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
698 to __extern_inline whenever that macro is defined.
699 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
700 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
701 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
702 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
703 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
704 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
705 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
706 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
707 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
708 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
709 prototypes. Only provide __extern_inline routines if
710 __USE_EXTERN_INLINES.
711 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
712 tests.
713 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
714 For now avoid some *printf tests in C++. Skip all testing
715 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
716 is not.
717 * debug/tst-chk4.cc: New file.
718 * debug/tst-chk5.cc: New file.
719 * debug/tst-chk6.cc: New file.
720 * debug/tst-lfschk4.cc: New file.
721 * debug/tst-lfschk5.cc: New file.
722 * debug/tst-lfschk6.cc: New file.
723 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
724 prototypes in C++.
725 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
726 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
727 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
728
b53eef9c
UD
7292007-09-13 Ulrich Drepper <drepper@redhat.com>
730
731 * po/cs.po: Update from translation team.
732
af385590
RM
7332007-09-11 Roland McGrath <roland@redhat.com>
734
735 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
736 compiling.
737
af2f25a1
RM
7382007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
739
740 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
741
94733ae0
RM
7422007-09-05 Roland McGrath <roland@redhat.com>
743
744 * manual/signal.texi (Signaling Another Process): Typo fix.
745 From Karl Berry <karl@freefriends.org>.
746
de4d8563
UD
7472007-08-29 Ulrich Drepper <drepper@redhat.com>
748
749 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
750 zero if not defined.
751 (make_request): Recognize optimistic addresses and treat them like
752 deprecated addresses.
753 Reported by Neil Horman <nhorman@redhat.com>.
754
0adfcc05
UD
7552007-08-28 Ulrich Drepper <drepper@redhat.com>
756
f3c54060
UD
757 * nscd/connections.c (send_ro_fd): Also transfer file size.
758 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
759 file size don't call fstat.
760
0adfcc05
UD
761 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
762 ahead and map the file. This should always be correct and we can
763 catch problems later.
764
3586b2b6
UD
7652007-08-28 Jakub Jelinek <jakub@redhat.com>
766
767 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
768 prototypes.
769 (__fread_alias, __fread_unlocked_alias): New aliases.
770 (fread): New extern inline.
771 (fread_unlocked): Likewise. Undef macro before definition of
772 the inline function.
773 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
774 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
775 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
776 and __fread_unlocked_chk@@GLIBC_2.7.
777 * debug/fread_chk.c: New file.
778 * debug/fread_u_chk.c: New file.
779 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
780
3704aa0b
RM
7812007-08-27 Jakub Jelinek <jakub@redhat.com>
782
783 * sysdeps/unix/sysv/linux/syscalls.list
784 (personality): Change caller to EXTRA.
785
80e7d6a6
UD
7862007-08-25 Ulrich Drepper <drepper@redhat.com>
787
278bfa00
UD
788 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
789 to keep gcc quiet.
790 * iconvdata/iso-2022-cn.c (BODY): Likewise.
791
a45d733c
UD
792 * locale/programs/ld-collate.c (collate_output): Avoid warning if
793 NDEBUG is defined.
794
5dfeae0e
UD
795 * Makerules: Use -p option with mkdir.
796
8f1fe057
UD
797 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
798 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
799 (_xdr_directory_obj): Likewise.
800 (xdr_entry_obj): Likewise.
801 (xdr_group_obj): Likewise.
802 (xdr_link_obj): Likewise.
803 (xdr_table_obj): Likewise.
804 (_xdr_nis_result): Likewise.
805 (_xdr_ns_request): Likewise.
806 (_xdr_ib_request): Likewise.
807 (_xdr_nis_taglist): Likewise.
808 (xdr_cback_data): Likewise.
8f1fe057 809 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
810 (xdr_ypresp_maplist): Likewise.
811
01339a67
UD
812 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
813
3fa10468
UD
814 * posix/regex_internal.h: Prevent some declarations and definitions
815 to be seen when used in tests.
816
ec1e04de
UD
817 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
818 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
819
7a344d1d
UD
820 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
821
f8f6ff5d
UD
822 * config.make.in (datarootdir): Add to shut up configure.
823
76fca9f1
UD
824 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
825 associativity for fully-associative caches.
826
80e7d6a6
UD
827 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
828 requests. Fill on more associativity values for L2.
829 Patch mostly by Evandro Menezes.
830
cb5ba304
UD
8312007-08-24 Ulrich Drepper <drepper@redhat.com>
832
d250df8c
UD
833 * sysdeps/unix/sysv/linux/x86_64/init-first.c
834 (_libc_vdso_platform_setup): Avoid using exported variable by using
835 alias.
836
88f61aaf
UD
837 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
838
cb5ba304 839 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 840 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
841 defined.
842
62e1b1f5
UD
8432007-08-23 Ulrich Drepper <drepper@redhat.com>
844
44b2e581
UD
845 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
846 align stack for call if pltexit is to be used.
847
73e3ff07
UD
848 [BZ #3924]
849 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
850 align for function call in case pltexit has to be called later.
851
62e1b1f5
UD
852 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
853 implicit atomic operation when storing function pointer.
854 (_dl_runtime_profile): Likewise.
855
0008163a
UD
8562007-08-17 Jakub Jelinek <jakub@redhat.com>
857
858 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
859 NIS_NOTFOUND.
860
55ea8790
UD
8612007-08-21 Ulrich Drepper <drepper@redhat.com>
862
2e0e1a05
UD
863 [BZ #4566]
864 * string/strtok.c: Fix typo in comment.
865
682e4437
UD
866 [BZ #4582]
867 * debug/segfault.c: Fix typos in comments.
868
7d55c9eb
UD
869 [BZ #4588]
870 * stdio-common/tempnam.c: Fix comment, it is not checked that
871 TMPDIR points to a writable directory.
872
0f8f993c
UD
873 [BZ #4726]
874 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
875 memory allocated for the name server address.
876
1465dd0f
UD
877 [BZ #4946]
878 * nscd/connections.c (handle_request): Using sendfile always
879 requires that mmap is used for the database.
880 Patch by Petr Baudis <pasky@suse.cz>.
881
c44d3bdf
UD
882 [BZ #4905]
883 * nscd/hstcache.c (cache_addhst): When reloading an entry which
884 suddenly has two or more addresses, ignore it and remove the old
885 entry.
886
1ce7d80d
UD
887 [BZ #4814]
888 * resolv/res_hconf.c: Prepare for compiling outside libc.
889 * nscd/res_hconf.c: New file.
890 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
891 the new file.
892 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
893 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
894
a30d41c1
UD
895 * nscd/hstcache.c (cache_addhst): Minimal optimization.
896
45dc3ad7
UD
897 [BZ #4925]
898 * debug/pcprofiledump.c: Turn on internationalization by calling
899 setlocale. Patch mostly by Benno Schulenberg.
900
55ea8790
UD
901 [BZ #4936]
902 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
903 the state.
904 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
905 * iconvdata/bug-iconv5.c: New file.
906
0b82ff74
UD
9072007-08-04 Carlos O'Donell <carlos@systemhalted.org>
908
55ea8790 909 [BZ #4896]
0b82ff74
UD
910 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
911 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
912 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
913 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
914 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
915 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
916 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
917 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
918
ee16a55a
UD
9192007-08-21 Ulrich Drepper <drepper@redhat.com>
920
921 [BZ #4937]
922 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
923 lookup loop. Suggested by John Reiser.
924
b211fe0f
JJ
9252007-08-21 Jakub Jelinek <jakub@redhat.com>
926
927 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
928
fb84593c
UD
9292007-08-20 Ulrich Drepper <drepper@redhat.com>
930
931 * csu/libc-start.c: Don't handle VDSO_SETUP here.
932 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
933 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
934 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
935 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
936 to...
937 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
938
b83fb35c
UD
9392007-08-18 Ulrich Drepper <drepper@redhat.com>
940
941 * po/nl.po: Update from translation team.
942
20806a70
AJ
9432007-08-16 Andreas Jaeger <aj@suse.de>
944
945 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
946 Reported by Peter Festner <peter.festner@ewetel.net>.
947
42282d57
JJ
9482007-08-17 Jakub Jelinek <jakub@redhat.com>
949
950 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
951
8a501135
JJ
9522007-08-16 Jakub Jelinek <jakub@redhat.com>
953
cb84d1e4
JJ
954 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
955 to check for undefined symbols.
956
91ddd9c4
JJ
957 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
958 If the syscall fails, set errno to the actual returned error number
959 rather than EINVAL.
960 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
961 arguments are incorrect, set errno to EINVAL, if the syscall
962 fails, set errno to the actual returned error number.
963
18915760
JJ
964 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
965 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
966
8a501135
JJ
967 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
968 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
969 file.
970 (ASI_PNF, ASI_BLK_P): Don't define.
971 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
972 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
973 file.
974 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
975 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
976 file.
977
e4720b0e
JJ
9782007-08-15 Jakub Jelinek <jakub@redhat.com>
979
980 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
981 FE_UNDERFLOW on Niagara CPUs.
982
983 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
984 exceptions.
985
702a9414
JJ
9862007-08-14 Jakub Jelinek <jakub@redhat.com>
987
467d1345
JJ
988 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
989 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
990 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
991 flush should be used or not inside of the function.
992 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
993
994 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
995 __thread_start): Use HIDDEN_JUMPTARGET.
996 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
997 __thread_start): Likewise.
998 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
999
702a9414
JJ
1000 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
1001 Add libc_hidden_proto.
1002 (STRTOF): Add libc_hidden_proto.
1003 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
1004 (strtold_l, wcstold_l): Use them as second argument for
1005 long_double_symbol.
1006
c6c8f0ec
UD
10072007-08-14 Ulrich Drepper <drepper@redhat.com>
1008
1009 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
1010
5e88abf9
UD
10112007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1012
1013 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
1014
fc4819b0
UD
10152007-08-14 Ulrich Drepper <drepper@redhat.com>
1016
1017 * po/bg.po: New file. From the translation team.
1018
22502ea2
UD
10192007-08-13 Jakub Jelinek <jakub@redhat.com>
1020
1021 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
1022 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
1023 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
1024 when each feature was introduced.
1025
1026 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
1027 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
1028 (CHECK_HASH): New macro.
1029 (PREPARE_VERSION): Use it.
1030
1031 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
1032 prototype if not __ASSUME_PSELECT.
1033 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
1034 prototype if not __ASSUME_PPOLL.
1035
1036 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
1037
1038 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
1039 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
1040 is defined.
1041
9c6f6953
UD
10422007-08-13 Ulrich Drepper <drepper@redhat.com>
1043
1044 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1045 (_libc_vdso_platform_setup): If vDSO is not available point
1046 __vdso_gettimeofday to the vsyscall.
1047 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
1048 __vdso_gettimeofday instead of vsyscall.
1049
f8de5057
UD
10502007-08-13 Jakub Jelinek <jakub@redhat.com>
1051
1052 * nscd/servicescache.c: Include kernel-features.h.
1053 * nscd/gai.c: Likewise.
1054 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
1055 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
1056 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1057 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1058 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1059 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1060 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1061 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
1062 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1063
3c87d79d
UD
10642007-08-12 Ulrich Drepper <drepper@redhat.com>
1065
ea37207a
UD
1066 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
1067 and _dl_get_origin defines anymore.
1068
4eb375fe
UD
1069 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
1070 Build fix for systems which might lack POSIX timer support.
1071
3c87d79d
UD
1072 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1073 (_libc_vdso_platform_setup): Mangle function pointers before storing
1074 them.
1075 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
1076 Demangle vdso pointer before use.
1077 (INTERNAL_VSYSCALL): Likewise.
1078
1079 * elf/cache.c (primes): Mark as const.
1080 Noted by Roland McGrath.
1081
27d9ffda
UD
10822007-08-01 Andreas Jaeger <aj@suse.de>
1083 Jakub Jelinek <jakub@redhat.com>
1084
1085 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
1086 (options): Add option.
1087 (parse_opt): Handle option.
1088 (manual_link): Adjust process_file caller. Call implicit_soname.
1089 (search_dir): Formatting. Use and populate auxiliary cache.
1090 (main): Load and save auxiliary cache.
1091 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
1092 stat64 from fstat64 to caller.
1093 (implicit_soname): New function.
1094 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
1095 leave *soname as NULL.
1096 * elf/cache.c: Include libgen.h.
1097 (print_entry, print_cache, compare, save_cache, add_to_cache):
1098 Formatting and cleanups.
1099 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
1100 aux_cache_file): New structures.
1101 (AUX_CACHEMAGIC): Define.
1102 (primes): New array.
1103 (aux_hash_size, aux_hash): New variables.
1104 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
1105 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
1106 load_aux_cache, save_aux_cache): New functions.
1107 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
1108 (init_aux_cache, search_aux_cache, add_to_aux_cache,
1109 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
1110 (process_file): Adjust prototype.
1111
8d944b0f
UD
11122007-08-12 Jakub Jelinek <jakub@redhat.com>
1113
1114 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
1115 with __need_size_t.
1116
75fb247e
UD
11172007-08-12 Ulrich Drepper <drepper@redhat.com>
1118
fb86328a
UD
1119 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
1120 r_found_version structure as second parameter.
1121 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
1122 (_dl_vdso_vsym): Change type of second parameter accordingly.
1123 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
1124 (_libc_vdso_platform_setup): Adjust.
974a1f0f 1125 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
1126 (_libc_vdso_platform_setup): Likewise.
1127
75fb247e
UD
1128 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
1129 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
1130 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
1131 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
1132 * csu/libc-start.c: Pretty printing.
1133 Use VDSO_SETUP if defined.
1134 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
1135 and let generic code call into _libc_vdso_platform_setup.
1136 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
1137 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
1138 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
1139 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
1140 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
1141 for GLIBC_PRIVATE.
1142 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
1143 (sysdep_rountines): Add dl-vdso.
1144
1145 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
1146 of routines.
1147
1148 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
1149 attribute_hidden to __vdso_gettimeofday prototype.
1150
9229b83e
RM
11512007-08-12 Roland McGrath <roland@redhat.com>
1152
1153 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
1154 From: Karl Berry <karl@freefriends.org>.
1155
4503061f
UD
11562007-08-11 Ulrich Drepper <drepper@redhat.com>
1157
1158 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
1159 an atime update for the files we read.
1160
d7e23b02
UD
11612007-08-10 Ulrich Drepper <drepper@redhat.com>
1162
7cf89e95
UD
1163 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
1164
9d169bb3 1165 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
1166 instead of mkstemp.
1167
1168 * misc/Makefile (routines): Add mkostemp and mkostemp64.
1169 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
1170 * misc/mkostemp.c: New file.
1171 * misc/mkostemp64.c: New file.
1172 * stdlib/stdlib.h: Declare the new functions.
1173 * sysdeps/posix/tempname.c: Add new parameter which is added to
1174 the flags for open. Remove __GT_BIGFILE handling.
1175 * stdio-common/tempname.c: Likewise.
1176 * include/stdio.h: Adjust __gen_tempname prototype.
1177 Renumber __GT_* constants.
1178 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
1179 * misc/mkdtemp.c: Likewise.
1180 * misc/mkstemp.c: Likewise.
1181 * misc/mkstemp64.c: Likewise.
1182 * misc/mktemp.c: Likewise.
1183 * stdio-common/tempnam.c: Likewise.
1184 * stdio-common/tmpfile.c: Likewise.
1185 * stdio-common/tmpfile64.c: Likewise.
1186 * stdio-common/tmpnam.c: Likewise.
1187 * stdio-common/tmpnam_r.c: Likewise.
1188
22532966
RM
11892007-08-10 Roland McGrath <roland@frob.com>
1190
1191 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
1192 New macros.
1193 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
1194 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1195
673876e6
UD
11962007-08-10 Ulrich Drepper <drepper@redhat.com>
1197
aa132749
UD
1198 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
1199 possible.
1200 * nss/nss_files/files-alias.c (internal_setent): Likewise.
1201 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
1202 * nss/nss_files/files-have_o_cloexec.c: New file.
1203
22532966 1204 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
1205 available.
1206
1e286653
JJ
12072007-08-10 Jakub Jelinek <jakub@redhat.com>
1208
1209 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
1210 ___new_wcstold_l): New weak aliases.
1211 (strtold_l, wcstold_l): Use them as second argument for
1212 long_double_symbol.
1213
f07f72f3
UD
12142007-08-09 Ulrich Drepper <drepper@redhat.com>
1215
6479496a
UD
1216 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
1217 register in test for error.
1218
c4adefbd
UD
1219 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
1220 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
1221
f07f72f3
UD
1222 * po/sv.po: Update from translation team.
1223
eef38c28
RM
12242007-08-06 Roland McGrath <roland@redhat.com>
1225
773e305e
RM
1226 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
1227 Remove __strto*_l inlines.
1228 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
1229 * stdlib/strtod.c: Add libc_hidden_def.
1230 * stdlib/strtod_l.c: Likewise.
1231 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
1232 for __new_strtold and __new_wcstold.
1233 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
1234 __STRTOF, STRTOF.
1235 * stdlib/strtol.c: Add libc_hidden_def.
1236 * stdlib/strtol_l.c: Likewise.
1237 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
1238 strtoq.
1239
1240 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
1241
1242 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
1243 * scripts/data/localplt-generic.data: ... here.
1244 * elf/Makefile (check-data): Get generic file if no other.
1245 ($(objpfx)check-localplt.out): Make target unconditional.
1246
eef38c28
RM
1247 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
1248 Use ElfW(Nhdr).
1249
742df3a4
UD
12502007-08-05 Ulrich Drepper <drepper@redhat.com>
1251
1252 * po/zh_CN.po: Updated translation from translation team.
1253
0470fa46
JJ
12542007-08-05 Jakub Jelinek <jakub@redhat.com>
1255
1256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
1257 Don't use CGOTSETUP and CGOTRESTORE macros.
1258
b5075bdc
RM
12592007-08-04 Roland McGrath <roland@redhat.com>
1260
1261 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
1262
9accc268
JJ
12632007-08-04 Jakub Jelinek <jakub@redhat.com>
1264
1265 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
1266 __extension__ around the whole statement expression.
1267
220ae3ef
UD
12682007-08-04 Ulrich Drepper <drepper@redhat.com>
1269
c8ccd8e3
UD
1270 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
1271 elements during initialization.
1272
220ae3ef
UD
1273 * po/pl.po: Updated translation from translation team.
1274 * po/tr.po: Likewise.
11960f7f 1275 * po/nl.po: Likewise.
220ae3ef 1276
2fb20667
UD
12772007-08-03 Ulrich Drepper <drepper@redhat.com>
1278
1279 * rt/aio.h: Add __nonnull attributes.
1280
ce31a3b1
UD
12812007-08-03 Jakub Jelinek <jakub@redhat.com>
1282
64f6281c
UD
1283 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
1284 * stdlib/Makefile (tests): Add tst-strtod5.
1285 (tst-strtod5-ENV): New.
1286 * stdlib/tst-strtod5.c: New file.
1287
ce31a3b1
UD
1288 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
1289 failed.
1290 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
1291 on failure.
1292
1293 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
1294 allocated.
1295
754980e4
JJ
12962007-08-03 Jakub Jelinek <jakub@redhat.com>
1297
1298 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
1299 numbers.
1300
497af0cb
UD
13012007-08-02 Ulrich Drepper <drepper@redhat.com>
1302
cbf0489b
UD
1303 * io/Makefile (aux): Add have_o_cloexec.
1304 * include/fcntl.h: Declare __have_o_cloexec.
1305 * io/have_o_cloexec.c: New file.
1306 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
1307 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
1308 fcntl call if not necessary.
1309 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
1310 of local variable.
1311
fa39685d
UD
1312 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
1313 Avoid memset, add explicit initialization.
1314 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
1315 to the end and change into zero-sized array.
1316 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
1317
1318 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
1319 inline functions.
1320 * include/stdlib.h: Add __strto*_internal prototypes here.
1321 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
1322 inline functions.
1323 * include/wchar.h: Add __wcsto*_internal prototypes.
1324 * sysdeps/generic/inttypes.h: No need to protect the declaration
1325 of the __strto*_internal and __wcsto*_internal members here.
1326
497af0cb
UD
1327 * rt/mqueue.h: Change const to __const and add nonnull attributes.
1328
d17a8cf0
RM
13292007-08-02 Roland McGrath <roland@redhat.com>
1330
1331 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
1332 $(inst_bindir)/getconf if possible.
1333
1334 * posix/Makefile ($(objpfx)getconf.speclist): New target.
1335 (generated): Add it.
1336 ($(inst_libexecdir)/getconf): Use it.
1337
0abf17de
UD
13382007-08-01 Ulrich Drepper <drepper@redhat.com>
1339
1340 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
1341 /proc is faster and sufficient. /sys is still needed for
1342 __get_nprocs_conf.
1343
5e0923ab
UD
13442007-08-01 Jakub Jelinek <jakub@redhat.com>
1345
1346 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
1347 syscall as __fallocate64.
1348 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
1349 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
1350
1475e201
UD
13512007-07-30 Jakub Jelinek <jakub@redhat.com>
1352
1353 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
1354 value.
1355
1356 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
1357 if off_t is different rank from size_t.
1358
1359 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
1360 uw_frame_state_for): Avoid type punning warnings.
1361 * sysdeps/generic/unwind-dw2-fde-glibc.c
1362 (_Unwind_IteratePhdrCallback): Likewise.
1363 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
1364 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
1365 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
1366 pointers.
1367
e076bece
UD
13682007-07-31 Ulrich Drepper <drepper@redhat.com>
1369
9506149a
UD
1370 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
1371 total processors using sysfs.
1372 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 1373
bbeaaa84
JJ
13742007-07-31 Jakub Jelinek <jakub@redhat.com>
1375
09881398
JJ
1376 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
1377 syscall arguments count.
1378
bbeaaa84
JJ
1379 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
1380
087ef75f
RM
13812007-07-30 Roland McGrath <roland@redhat.com>
1382
1383 * manual/libc.texinfo: Update copyrights, formatting magic, and
1384 @dircategory. From Karl Berry <karl@freefriends.org>.
1385
44f08a6e
UD
13862007-07-29 Ulrich Drepper <drepper@redhat.com>
1387
eafaae72
UD
1388 [BZ #4860]
1389 * io/Makefile (headers): Add bits/fcntl2.h.
1390
c5705565
UD
1391 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
1392 using gcc builtin.
1393 (__CPU_EQUAL_S): Likewise.
1394
44f08a6e
UD
1395 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
1396 (tests): Add tst-cpuset.
1397 * posix/sched_cpualloc.c: New file.
1398 * posix/sched_cpufree.c: New file.
1399 * posix/tst-cpuset.c: New file.
1400 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
1401 GLIBC_2.7.
1402 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
1403 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
1404 macros. Define CPU_*_S macros.
1405
8f5e1400
UD
14062007-07-28 Ulrich Drepper <drepper@redhat.com>
1407
5b74caf6
UD
1408 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
1409 entry.
1410
a26d01bb 1411 [BZ #4858]
8f5e1400
UD
1412 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
1413 #.0g and value rounded to 1.0.
1414 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
1415
085a4412
UD
14162007-07-26 Jakub Jelinek <jakub@redhat.com>
1417
cedb4109
UD
1418 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
1419 for int_frac_digits and frac_digits.
1420
1421 * login/logout.c (logout): Avoid aliasing violation.
1422 * login/logwtmp.c (logwtmp): Likewise.
1423
1424 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
1425
9d9febc7
UD
1426 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
1427 to avoid warning.
1428 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
1429 warning.
1430 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
1431 warning.
1432 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
1433 to avoid warnings.
1434
701666b7
UD
1435 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
1436 void **.
1437 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
1438
1439 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
1440 char * to avoid warning.
1441 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
1442
1443 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
1444
1445 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
1446 allocate_arrays): Cast second argument to charmap_find_symbol
1447 to char * to avoid warnings.
1448
1449 * locale/programs/repertoire.c (repertoire_new_char): Change
1450 from_nr, to_nr and cnt to unsigned long, adjust printf format
1451 string.
1452
1453 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
1454 Cast second argument to new_element to char * to avoid warnings.
1455
1456 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
1457
1458 * intl/gettextP.h (struct loaded_domain): Change plural to const
1459 struct expression *.
1460 * intl/plural-eval.c (plural_eval): Change first argument to
1461 const struct expression *.
1462 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
1463 argument to const struct expression **.
1464 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
1465 prototypes.
1466 * intl/loadmsgcat (_nl_unload_domain): Cast away const
1467 in call to __gettext_free_exp.
1468
1469 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
1470 unitialized wstring/wpattern var warnings.
1471
1472 * posix/runtests.c (struct a_test): Make data field const char *.
1473
1474 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
1475 vars if not LDBL_MANT_DIG >= 106.
1476
1477 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
1478
1479 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
1480 __find_specmb to avoid warning.
1481
1482 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
1483
1484 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
1485 to avoid warnings.
1486
1487 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
1488 initializer.
1489
1490 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
1491 tv var when it will be actually used.
1492
1493 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
1494 to avoid warnings.
1495
085a4412
UD
1496 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
1497 char array resp. pointer.
1498 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
1499 char array.
1500 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
1501 to const unsigned char **.
1502 (ucs4_to_cns11643): Change second argument to unsigned char *.
1503 * iconvdata/euc-tw.c (BODY): Change endp type to
1504 const unsigned char *.
1505 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
1506 to unsigned char *.
1507 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
1508 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
1509 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
1510 types to unsigned char pointers/arrays instead of char.
1511 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
1512 to unsigned char *.
1513 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
1514 * iconvdata/jis0212.h: Include assert.h.
1515 (ucs4_to_jisx0212): Change second argument to unsigned char *.
1516 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
1517 of trying to handle that.
1518 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
1519 shut up a warning.
1520 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
1521 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
1522 two dimensional const unsigned char arrays.
1523 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
1524 Initialize endp to inptr to shut up a warning.
1525
fa69dc9c
UD
15262007-07-20 Jakub Jelinek <jakub@redhat.com>
1527
ae1ad762
UD
1528 [BZ #4772]
1529 * time/strptime_l.c (__strptime_internal): Silently ignore
1530 strftime modifiers and field width in recursive calls.
1531
fa69dc9c
UD
1532 * include/time.h (enum ptime_locale_status): Remove.
1533 (__strptime_internal): Remove decided and era_cnt arguments,
1534 add statep argument.
1535 * time/strptime_l.c (__strptime_internal): Remove decided
1536 and era_cnt arguments, add statep argument. Don't recompute
1537 any fields in recursive calls, only update caller's tm
1538 and state, if recursive call fails, don't change tm nor
1539 any state.
1540 (get_alt_number): Adjust.
1541 (recursive): Adjust caller.
1542 (strptime): Likewise.
1543 * time/strptime.c (strptime): Likewise.
1544
7b503bcc
UD
15452007-07-19 Jakub Jelinek <jakub@redhat.com>
1546
1547 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
1548 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
1549 if from and to charsets are the same.
1550 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
1551 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
1552 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
1553
15542007-07-17 Jakub Jelinek <jakub@redhat.com>
1555
1556 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
1557 Don't define wint_t when __need_mbstate_t unless it
1558 is necessary.
1559 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
1560 in the typedef if possible.
1561 * wctype/wctype.h (wint_t): Define by including
1562 wchar.h with __need_wint_t instead of including stddef.h
1563 with __need_wint_t and as fallback definining it ourselves.
1564 * iconv/gconv.h (__need_wint_t): Define before including
1565 wchar.h.
1566 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
1567 or _GLIBCPP_USE_WCHAR_T.
1568 (__need_wchar_t): Don't define
1569 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
1570 (__need_wint_t): Don't define before including stddef.h,
1571 define before including wchar.h only if _LIBC or
1572 _GLIBCPP_USE_WCHAR_T.
1573 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
1574 * sysdeps/mach/hurd/_G_config.h: Likewise.
1575 * sysdeps/generic/_G_config.h: Likewise.
1576 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
1577 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
1578 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
1579 if _LIBC or _GLIBCPP_USE_WCHAR_T.
1580
a95a608f
UD
15812007-07-28 Ulrich Drepper <drepper@redhat.com>
1582
1583 * sysdeps/posix/posix_fallocate64.c: Undefine
1584 __posix_fallocate64_l64 before alias handling.
1585 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
1586 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
1587 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
1588 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
1589
1590 * io/tst-posix_fallocate.c: Include <fcntl.h>.
1591
15922007-07-23 Jakub Jelinek <jakub@redhat.com>
1593
1594 * locale/programs/ld-collate.c (atwc): New variable.
1595 (add_to_tablewc): New toplevel function, moved from collate_output.
1596 (collate_output): Remove add_to_tablewc nested function.
1597
1598 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
1599 (name_insert): New function.
1600 (write_output): Remove hash_table and hash_size vars and name_insert
1601 nested function.
1602
80d4c3b0
RM
16032007-07-24 Roland McGrath <roland@redhat.com>
1604
1605 * Makerules (install-others-programs-nosubdir): New target.
1606 (install-no-libc.a-nosubdir): Depend on it.
1607
1608 * iconv/Makefile (install-others-programs): Set this instead of
1609 install-others.
1610 * login/Makefile (install-others-programs): Likewise.
1611 * posix/Makefile (install-others-programs): Likewise.
1612
1613 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
1614 dependencies.
1615
c1bf9f14
UD
16162007-07-23 Ulrich Drepper <drepper@redhat.com>
1617
1618 * io/Makefile (tests): Add tst-posix_fallocate.
1619 * io/tst-posix_fallocate.c: New file.
1620
1621 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1622 __ASSUME_FALLOCATE.
1623
2320270c
RM
16242007-07-22 Roland McGrath <roland@frob.com>
1625
3dadfa7e
RM
1626 * hurd/getdport.c: Add missing copyright year update.
1627
2320270c
RM
1628 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
1629 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
1630
cc783763
UD
16312007-07-22 Ulrich Drepper <drepper@redhat.com>
1632
c942388d
UD
1633 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
1634
cc783763
UD
1635 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
1636 O_CLOEXEC is needed.
1637 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
1638 Avoid additional fcntl to set O_CLOEXEC if not needed.
1639 * nis/nss_compat/compat-initgroups.c: Likewise.
1640 * nis/nss_compat/compat-pwd.c: Likewise.
1641 * nis/nss_compat/compat-spwd.c: Likewise.
1642
610903b0
RM
16432007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1644
3dadfa7e 1645 [BZ #3665]
5c3d7832
RM
1646 * manual/errno.texi: Change ECANCELED value to 119.
1647
3dadfa7e 1648 [BZ #4610]
610903b0
RM
1649 * mach/lock-intern.h: Include <sys/cdefs.h>.
1650
3dadfa7e 1651 [BZ #4178]
610903b0
RM
1652 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
1653 reading A.
1654
3dadfa7e
RM
1655 [BZ #4126]
1656 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
1657 to __sigsuspend.
610903b0
RM
1658
1659 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
1660
16612006-06-13 Thomas Schwinge <tschwinge@gnu.org>
1662
1663 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
1664 `__ASSEMBLER__'.
1665 * sysdeps/mach/hurd/i386/tls.h: Likewise.
1666
acf79996
UD
16672007-07-21 Ulrich Drepper <drepper@redhat.com>
1668
dde0763a
UD
1669 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
1670 descriptor received from nscd.
1671
acf79996
UD
1672 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
1673
1674 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
1675 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1676 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1677 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1678 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1679 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1680
00d26929
JJ
16812007-07-20 Jakub Jelinek <jakub@redhat.com>
1682
403445d7
JJ
1683 [BZ #4816]
1684 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
1685
00d26929
JJ
1686 [BZ #4813]
1687 * login/forkpty.c (forkpty): Close master and slave fds on
1688 fork failure. Patch by
1689 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
1690
087722b8
UD
16912007-07-18 Jakub Jelinek <jakub@redhat.com>
1692
1693 * include/features.h (__USE_ISOC95): New define.
1694 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
1695 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
1696 for -std=iso9899:199409.
1697 * CONFORMANCE: Remove comments about unsupported AMD1.
1698
b042b023
UD
16992007-07-17 Jakub Jelinek <jakub@redhat.com>
1700
1701 * sysdeps/ia64/sched_cpucount.c: New file.
1702 * sysdeps/powerpc/sched_cpucount.c: New file.
1703
8381e467
UD
1704 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
1705 __BEGIN_DECLS/__END_DECLS around the prototype.
1706 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
1707 pointer to const cpu_set_t.
1708
50e16f85
UD
1709 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
1710 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
1711 __need_size_t and include stddef.h.
1712 * sysvipc/sys/msg.h: Likewise.
1713 * posix/sched.h: Likewise.
1714 * hurd/hurd/signal.h (__need_size_t): Define.
1715
1716 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
1717 neither does signal.h in pedantic ISO C namespaces. stdio.h
1718 no longer defines wint_t or wchar_t.
1719
b257c726
UD
1720 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
1721 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
1722 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
1723 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
1724 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
1725 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
1726 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
1727 * debug/printf_chk.c (__printf_chk): Likewise.
1728 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
1729 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
1730
1731 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
1732 Define.
1733
d5078b9f
UD
1734 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
1735 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
1736
1c3e748e
UD
17372007-07-16 Jakub Jelinek <jakub@redhat.com>
1738
1739 [BZ #4792]
1740 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
1741 * malloc/malloc.h (realloc): Likewise.
1742
4e425301
UD
1743 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
1744 if one of proc_file_chain streams has that fileno.
1745 * stdio-common/Makefile (tests): Add tst-popen2.
1746 * stdio-common/tst-popen2.c: New test.
1747
2e2efe65
RM
17482007-07-14 Jakub Jelinek <jakub@redhat.com>
1749
1750 * elf/ldconfig.c: Allow GPLv2 or any later version.
1751 * elf/readlib.c: Likewise.
1752 * elf/chroot_canon.c: Likewise.
1753 * elf/cache.c: Likewise.
1754 * nscd/mem.c: Likewise.
1755 * nscd/getpwuid_r.c: Likewise.
1756 * nscd/grpcache.c: Likewise.
1757 * nscd/aicache.c: Likewise.
1758 * nscd/getsrvbynm_r.c: Likewise.
1759 * nscd/nscd.c: Likewise.
1760 * nscd/servicescache.c: Likewise.
1761 * nscd/getsrvbypt_r.c: Likewise.
1762 * nscd/initgrcache.c: Likewise.
1763 * nscd/gethstbyad_r.c: Likewise.
1764 * nscd/gethstbynm2_r.c: Likewise.
1765 * nscd/getgrnam_r.c: Likewise.
1766 * nscd/nscd_setup_thread.c: Likewise.
1767 * nscd/getpwnam_r.c: Likewise.
1768 * nscd/gai.c: Likewise.
1769 * nscd/connections.c: Likewise.
1770 * nscd/dbg_log.c: Likewise.
1771 * nscd/cache.c: Likewise.
1772 * nscd/hstcache.c: Likewise.
1773 * nscd/nscd_conf.c: Likewise.
1774 * nscd/getgrgid_r.c: Likewise.
1775 * nscd/pwdcache.c: Likewise.
1776 * catgets/gencat.c: Likewise.
1777 * locale/programs/linereader.h: Likewise.
1778 * locale/programs/locarchive.c: Likewise.
1779 * locale/programs/ld-paper.c: Likewise.
1780 * locale/programs/locfile-kw.h: Likewise.
1781 * locale/programs/ld-address.c: Likewise.
1782 * locale/programs/xmalloc.c: Likewise.
1783 * locale/programs/ld-time.c: Likewise.
1784 * locale/programs/localedef.c: Likewise.
1785 * locale/programs/simple-hash.c: Likewise.
1786 * locale/programs/xstrdup.c: Likewise.
1787 * locale/programs/ld-numeric.c: Likewise.
1788 * locale/programs/locfile-kw.gperf: Likewise.
1789 * locale/programs/ld-collate.c: Likewise.
1790 * locale/programs/charmap-kw.gperf: Likewise.
1791 * locale/programs/charmap.h: Likewise.
1792 * locale/programs/charmap-kw.h: Likewise.
1793 * locale/programs/config.h: Likewise.
1794 * locale/programs/locfile.c: Likewise.
1795 * locale/programs/ld-ctype.c: Likewise.
1796 * locale/programs/charmap.c: Likewise.
1797 * locale/programs/ld-messages.c: Likewise.
1798 * locale/programs/repertoire.h: Likewise.
1799 * locale/programs/locale.c: Likewise.
1800 * locale/programs/ld-name.c: Likewise.
1801 * locale/programs/linereader.c: Likewise.
1802 * locale/programs/locfile.h: Likewise.
1803 * locale/programs/3level.h: Likewise.
1804 * locale/programs/ld-monetary.c: Likewise.
1805 * locale/programs/ld-measurement.c: Likewise.
1806 * locale/programs/charmap-dir.c: Likewise.
1807 * locale/programs/ld-identification.c: Likewise.
1808 * locale/programs/localedef.h: Likewise.
1809 * locale/programs/charmap-dir.h: Likewise.
1810 * locale/programs/repertoire.c: Likewise.
1811 * locale/programs/simple-hash.h: Likewise.
1812 * locale/programs/ld-telephone.c: Likewise.
1813 * locale/programs/locale-spec.c: Likewise.
1814 * locale/programs/locfile-token.h: Likewise.
1815 * posix/getconf.c: Likewise.
1816 * iconv/dummy-repertoire.c: Likewise.
1817 * iconv/iconv_charmap.c: Likewise.
1818 * iconv/iconvconfig.c: Likewise.
1819 * iconv/iconv_prog.c: Likewise.
1820 * malloc/memusagestat.c: Likewise.
1821 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
1822
84c23a3d
RM
18232007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1824
1825 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
1826 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
1827 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
1828 check for the first argument.
1829
1c298d08
UD
18302007-07-12 Jakub Jelinek <jakub@redhat.com>
1831
1832 [BZ #4775]
1833 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
1834 (__tgmath_real_type): Fix if expr is const int or other const
1835 qualified integral type.
1836 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
1837 expressions and handle const qualified arguments.
1838 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
1839 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
1840 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
1841 statement expressions.
1842 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
1843 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
1844 (__TGMATH_UNARY_IMAG): Define.
1845 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
1846 * math/Makefile (tests): Add test-tgmath2.
1847 (CFLAGS-test-tgmath2.c): Add.
1848 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
1849 count_cfloat, count_cldouble): New variables.
1850 (NCCALLS): Define.
1851 (main): Check number of complex calls as well.
1852 (F(compile_test)): Add complex tests and tests with const qualified
1853 arguments.
1854 (y, z, ccount): Define.
1855 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
1856 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
1857 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
1858 F(cproj)): New functions.
1859 * math/test-tgmath2.c: New test.
1860
18612007-07-11 Jakub Jelinek <jakub@redhat.com>
1862
1863 [BZ #4776]
1864 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
1865 RPATH etc. as "/" rather than "", don't segfault on empty paths,
1866 instead output ".".
1867 * dlfcn/Makefile (distribute): Add glreflib3.c.
1868 (module-names): Add glreflib3.
1869 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
1870 glreflib1.so.
1871 (LDFLAGS_glreflib3.so): New.
1872 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
1873 glreflib1.so.
1874 * dlfcn/glreflib3.c: New file.
1875
1876 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
1877 returned -1, return NULL.
1878 * intl/explodename.c (_nl_explode_name): Return -1 if
1879 _nl_normalize_codeset failed.
1880
a88f47a7
UD
18812007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
1882
1883 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
1884 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
1885 and avoid branch misspredicts for > 31 bytes memset case.
1886 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1887 Remove toc ref to __cache_line_size.
1888
1889 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
1890 to get ISA-V2.0 branch hints.
1891 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
1892 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
1893 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1894 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
1895 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1896 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
1897 Remove toc ref to __cache_line_size.
1898
1899 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
1900 Include math_ldbl_opt.h.
1901
f98c2d06
UD
19022007-07-10 Ulrich Drepper <drepper@redhat.com>
1903
1904 [BZ #4773]
1905 * time/strptime_l.c (__strptime_internal): Implement greedy
1906 matching of weekday and month names.
1907
cec5991f
RM
19082007-07-09 Roland McGrath <roland@redhat.com>
1909
1910 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
1911 (ELF_NOTE_ABI): Use it.
1912 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
1913
8c1dcd26
UD
19142007-07-09 Ulrich Drepper <drepper@redhat.com>
1915
1916 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
1917 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1918
c2c7bd3f
UD
19192007-07-07 Ulrich Drepper <drepper@redhat.com>
1920
1921 [BZ #4745]
0923a2c8
UD
1922 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
1923 in loop to look for conversion specifier to avoid testing of
1924 wrong errno value.
1925 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 1926 * stdio-common/bug18.c: New file.
0923a2c8
UD
1927 * stdio-common/bug18a.c: New file.
1928 * stdio-common/bug19.c: New file.
1929 * stdio-common/bug19a.c: New file.
c2c7bd3f 1930
4facf4af
RM
19312007-07-05 Mike Frysinger <vapier@gentoo.org>
1932
1933 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
1934 running awk script.
1935
1311e86e
UD
19362007-07-01 Jakub Jelinek <jakub@redhat.com>
1937
1938 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
1939 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
1940 Return NULL if mmap failed instead of asserting it does not.
1941 (calloc): Check for integer overflow.
1942
1943 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
1944 than LONG_MAX / 10.
1945
57c9179c
UD
19462007-07-03 Jakub Jelinek <jakub@redhat.com>
1947
1948 [BZ #4702]
1949 * nis/nss-default.c: Include errno.h.
1950 (init): Preserve errno.
1951
d0b283a8
UD
19522007-07-02 Ulrich Drepper <drepper@redhat.com>
1953
1954 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
1955
34e0bbaf
UD
19562007-06-30 Ulrich Drepper <drepper@redhat.com>
1957
1958 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
1959
19602007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
1961
1962 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
1963
34e0bbaf 19642007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
1965
1966 * sysdeps/s390/dl-procinfo.c: New file.
1967 * sysdeps/s390/dl-procinfo.h: New file.
1968 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
1969
0e508a6e
UD
19702007-06-29 Jakub Jelinek <jakub@redhat.com>
1971
1972 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
1973 in PT_NOTE segments with multiple notes.
1974 * elf/readelflib.c (process_elf_file): Likewise.
1975
e22c61fb
UD
19762007-06-22 Ulrich Drepper <drepper@redhat.com>
1977
1978 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
1979 ISO C compliant.
1980
e4eb675d
UD
19812007-06-19 Ulrich Drepper <drepper@redhat.com>
1982
1983 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
1984
19852007-06-13 Jakub Jelinek <jakub@redhat.com>
1986
1987 * include/link.h: Don't include rtld-lowlevel.h.
1988 (struct link_map): Remove l_scope_lock.
1989 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
1990 (_dl_scope_free_list): New field (variable) in _rtld_global.
1991 (DL_LOOKUP_SCOPE_LOCK): Remove.
1992 (_dl_scope_free): New prototype.
1993 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
1994 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
1995 (_dl_profile_fixup): Likewise.
1996 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
1997 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
1998 THREAD_GSCOPE_RESET_FLAG around it.
1999 * elf/dl-close.c (_dl_close_worker): Don't use
2000 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
2001 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
2002 scopes were queued or if l_scope_mem has been abandoned.
2003 * elf/dl-open.c (_dl_scope_free): New function.
2004 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
2005 * elf/dl-support.c (_dl_scope_free_list): New variable.
2006 * elf/dl-lookup.c (add_dependency): Remove flags argument.
2007 Remove DL_LOOKUP_SCOPE_LOCK handling.
2008 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
2009 handling.
2010 * elf/dl-object.c (_dl_new_object): Don't use
2011 __rtld_mrlock_initialize.
2012
9be09e06
UD
20132007-06-19 Ulrich Drepper <drepper@redhat.com>
2014
2015 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
2016 to fill in holes
2017 (rtld_global_ro): Likewise.
2018
20192007-06-18 Jakub Jelinek <jakub@redhat.com>
2020
2021 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
2022 Move PT_LOAD checking to...
2023 (_dl_addr_inside_object): ... here, new function.
2024 * elf/dl-sym.c (do_sym): If not l_contiguous,
2025 call _dl_addr_inside_object.
2026 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2027 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
2028 * elf/dl-open.c (dl_open_worker): Likewise.
2029 (_dl_addr_inside_object): New function if IS_IN_rtld.
2030 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
2031 holes are present or are PROT_NONE protected.
2032 * include/link.h (struct link_map): Add l_contiguous field.
2033 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
2034
ae1ad3ae
UD
20352007-06-18 Jakub Jelinek <jakub@redhat.com>
2036 Tomas Janousek <tjanouse@redhat.com>
2037 Ulrich Drepper <drepper@redhat.com>
2038
2039 [BZ #4647]
2040 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
2041 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
2042 socket.
2043 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
2044 unused member a bitmap.
2045 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
2046 servers are configured.
2047
3abee0b7
UD
20482007-06-18 Jakub Jelinek <jakub@redhat.com>
2049
2050 * elf/rtld.c (dl_main): Don't call init_tls more than once.
2051
89074592
UD
20522007-06-17 Andreas Schwab <schwab@suse.de>
2053
2054 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
2055
b26e274d
AJ
20562007-06-16 Andreas Jaeger <aj@suse.de>
2057
2058 [BZ #4125]
2059 * sysdeps/unix/sysv/linux/sys/ptrace.h
2060 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
2061 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 2062 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
2063 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
2064 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
2065 Define.
2066 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2067 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2068 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2069 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2070
e0d4a4e5
UD
20712007-06-16 Ulrich Drepper <drepper@redhat.com>
2072
2073 [BZ #4599]
2074 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
2075 determining whether there are IPv4/IPv6 addresses, ignore loopback
2076 addresses.
2077
ae8e81f5
JJ
20782007-06-14 Uros Bizjak <ubizjak@gmail.com>
2079
2080 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
2081 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
2082 as the return type. Change type of "r" variable to CMPtype.
2083 * soft-fp/eqsf2.c (__eqsf2): Likewise.
2084 * soft-fp/eqtf2.c (__eqtf2): Likewise.
2085 * soft-fp/gedf2.c (__gedf2): Likewise.
2086 * soft-fp/gesf2.c (__gesf2): Likewise.
2087 * soft-fp/getf2.c (__getf2): Likewise.
2088 * soft-fp/ledf2.c (__ledf2): Likewise.
2089 * soft-fp/lesf2.c (__lesf2): Likewise.
2090 * soft-fp/letf2.c (__letf2): Likewise.
2091 * soft-fp/unorddf2 (__unorddf2): Likewise.
2092 * soft-fp/unordsf2 (__unordsf2): Likewise.
2093 * soft-fp/unordtf2 (__unordtf2): Likewise.
2094
90cd2413
UD
20952007-06-09 Ulrich Drepper <drepper@redhat.com>
2096
2097 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
2098 make sure gcc doesn't mess around with this.
2099
3c457089
UD
21002007-06-08 Ulrich Drepper <drepper@redhat.com>
2101
2102 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
2103
e8b6b64d
UD
21042007-06-08 Jakub Jelinek <jakub@redhat.com>
2105
2106 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
2107 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
2108 at most once per _dl_close_worker.
2109
36dffb22
UD
21102007-06-08 Ulrich Drepper <drepper@redhat.com>
2111
755db8c5
UD
2112 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
2113 __sched_cpucount as const.
2114 * posix/sched_cpucount.c: Adjust.
2115
36dffb22
UD
2116 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
2117 instruction for counting bits.
2118 * sysdeps/x86_64/sched_cpucount.c: New file.
2119
26f56c1c
UD
21202007-06-07 Ulrich Drepper <drepper@redhat.com>
2121
2122 * configure.in: Avoid variable named BASH.
e967d385 2123 * config.make.in: Likewise.
26f56c1c 2124 Patch in part by Mike Frysinger.
835abc5c 2125
26f56c1c 21262007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
2127
2128 [BZ #4586]
835abc5c
UD
2129 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
2130 pseudo-zeros as zero.
2131 * sysdeps/x86_64/ldbl2mpn.c: New file.
2132 * sysdeps/ia64/ldbl2mpn.c: New file.
2133
7e3706ea
UD
21342007-06-04 Jakub Jelinek <jakub@redhat.com>
2135
2136 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
2137 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
2138 Remove unreachable code at the end.
2139
21402007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
2141
2142 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
2143 ldbl-128ibm in comment.
2144 (fpclassifyl): Correct classification of denormals.
2145 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
2146 return value for MIN denormal. Rewrite using long double math too
2147 correctly handle denormals and canonicalize the results.
2148
21492007-06-05 Jakub Jelinek <jakub@redhat.com>
2150
2151 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
2152 (__mpn_construct_long_double): Fix conversion where result ought
2153 to be smaller than __LDBL_MIN__, or the low double should be
2154 denormal. Fix decision where to negate low double - honor round
2155 to even rules.
2156 * stdio-common/tst-sprintf2.c: Include string.h.
2157 (COMPARE_LDBL): Define.
2158 (TEST): Also test whether a string hexadecimal float representation
2159 can be parsed back to the number.
2160 (main): Add a couple of further tests.
2161
43b76828
UD
21622007-06-04 Jakub Jelinek <jakub@redhat.com>
2163
2164 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
2165 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
2166 is non-zero, but smaller than 2 * __DBL_MIN__.
2167 * stdio-common/tst-sprintf2.c: New test.
2168 * stdio-common/Makefile (tests): Add tst-sprintf2.
2169
2170 * math/test-misc.c (main): Don't run last batch of tests with
2171 IBM long double format.
2172
04067002
UD
21732007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
2174
2175 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
2176 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
2177 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
2178 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
2179 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2180 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
2181 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
2182 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
2183 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
2184 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
2186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
2187 New file.
2188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
2189 New file.
2190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
2191 New file.
2192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
2193 New file.
2194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
2195 New file.
2196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
2197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
2198 New file.
2199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
2200 New file.
2201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
2202 New file.
2203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
2204 New file.
2205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
2206 New file.
2207
22082007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
2209
2210 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
2211 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
2212 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
2213 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
2214 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
2215 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
2216 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
2217 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
2218
22192007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
2220
2221 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
2222 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2223 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
2224 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2225 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
2226 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2227 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
2228 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2229
22302007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
2231
2232 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
2233 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
2234 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
2235 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
2236
22372007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
2238
2239 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
2240 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
2241
22422006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
2243
2244 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
2245 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
2246 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
2247 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
2248
22492006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
2250
2251 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
2252 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
2253
22542006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
2255
2256 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
2257 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
2258
2259 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
2260 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
2261 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
2262 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2263
22642006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
2265
2266 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
2267 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
2268 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
2269 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
2270
22712006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
2272
2273 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
2274 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
2275 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
2276 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2277 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
2278 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2279
22802006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
2281
2282 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
2283 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
2284 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
2285 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
2286
22872006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
2288
2289 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
2290 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
2291 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
2292 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
2293 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
2294 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
2295 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
2296 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
2297 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
2298 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
2299 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
2300 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
2301 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
2302 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
2303 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
2304 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
2305
23062006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
2307
2308 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
2309 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
2310
23112007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
2312
2313 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
2314 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
2315
23162007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
2317
2318 * sysdeps/powerpc/powerpc32/970/Implies: New file.
2319 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
2320 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
2321 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
2322 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
2323 * sysdeps/powerpc/powerpc64/970/Implies: New file.
2324 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
2325 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
2326 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
2327 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
2328
23292007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
2330
2331 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
2332
23332007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
2334
2335 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
2336 branch miss-predicts. Ensure that cache line crossing does not impact
2337 dispatch grouping.
2338
23392006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
2340
2341 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
2342 "../../powerpc32/power4/memcopy.h".
2343 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
2344 "../../powerpc32/power4/wordcopy.c".
2345
23462006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
2347
2348 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
2349 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
2350 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
2351 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
2352 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
2353 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
2354
23552006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
2356
2357 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
2358
23592006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
2360
2361 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
2362 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
2363 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
2364 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
2365 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
2366 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
2367 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
2368 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
2369
23702006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
2371
2372 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
2373
23742006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
2375
2376 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
2377 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
2378 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
2379 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
2380 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
2381 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
2382 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
2383
5b55e1d3
RM
23842007-05-29 Roland McGrath <roland@redhat.com>
2385
2386 * po/Makefile (po-sed-cmd): New variable.
2387 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
2388
5da4373c
UD
23892007-05-29 Ulrich Drepper <drepper@redhat.com>
2390
4b5e7304
UD
2391 * crypt/md5-crypt.c: Fix comment.
2392
5da4373c
UD
2393 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
2394 of crashing. When this is the case or if the reply is malformed,
2395 don't try to close the new file descriptor since it does not
2396 exist.
2397 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
2398
40f57573
UD
23992007-05-28 Jakub Jelinek <jakub@redhat.com>
2400
2401 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
2402 if __NR_utimensat is not defined.
2403
6df7ffad
UD
24042007-05-26 Ulrich Drepper <drepper@redhat.com>
2405
2406 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
2407
47ad95ab
UD
24082007-05-25 Jakub Jelinek <jakub@redhat.com>
2409
2410 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
2411 (open): Fix comment typos. Don't call __open_2 if flags
2412 is a compile time constant without O_CREAT.
2413 (__open64_2): Add nonnull attribute.
2414 (open64): Fix comment typos. Don't call __open64_2 if flags
2415 is a compile time constant without O_CREAT.
2416 (__openat_2): Add nonnull attribute, fix nonnull attribute
2417 on redirect.
2418 (openat): Fix comment typos. Don't call __openat_2 if flags
2419 is a compile time constant without O_CREAT.
2420 (__openat64_2): Add nonnull attribute, fix nonnull attribute
2421 on redirect.
2422 (openat64): Fix comment typos. Don't call __openat64_2 if flags
2423 is a compile time constant without O_CREAT.
2424
ddfd0535
UD
24252007-05-24 Ulrich Drepper <drepper@redhat.com>
2426
2427 * Makerules (sysd-rules): Define PTW for ptw-* files.
2428 * Versions: Define GLIBC_2.7 for libc.
2429 * include/stdio.h: Declare __fortify_fail.
2430 * debug/fortify_fail.c: New file.
2431 * debug/Makefile (routines): Add fortify_fail.
2432 * debug/chk_fail.c: Use __fortify_fail.
2433 * debug/stack_chk_fail.c: Likewise.
2434 * io/Versions: Export __open_2, __open64_2, __openat_2, and
2435 __openat64_2 for GLIBC_2.7.
2436 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
2437 * io/open.c: Define *_2 variant of function which checks for O_CREAT
2438 and fails if necessary.
2439 * io/open64.c: Likewise.
2440 * io/openat.c: Likewise.
2441 * io/openat64.c: Likewise.
2442 * sysdeps/unix/sysv/linux/open64.c: Likewise.
2443 * sysdeps/unix/sysv/linux/openat.c: Likewise.
2444 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
2445 * io/bits/fcntl2.h: New file.
2446 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
2447 __openat64_2.
2448 * include/bits/fcntl2.h: New file.
2449 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2450 Add open_2.
2451 * sysdeps/unix/sysv/linux/open_2.c: New file.
2452
bfe6f5fa
UD
24532007-05-21 Ulrich Drepper <drepper@redhat.com>
2454
6d59823c
UD
2455 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
2456 as second parameter to handle_intel.
2457
e2b1e343
UD
2458 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
2459 the entry.
2460
bfe6f5fa
UD
2461 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
2462 handling to ...
2463 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
2464 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
2465 cacheinfo.
2466 * sysdeps/x86_64/memcpy.S: Complete rewrite.
2467 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
2468 Patch by Evandro Menezes <evandro.menezes@amd.com>.
2469
2470 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
2471
1f4843fb
UD
24722007-05-21 Jakub Jelinek <jakub@redhat.com>
2473
2c2c003a
UD
2474 [BZ #4525]
2475 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
2476 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
2477 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
2478
2479 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
2480
af269dd9
UD
2481 [BZ #4514]
2482 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
2483 reinitialize workend at the start of each do_positional format spec
2484 loop, free workstart before do_positional loops.
2485 (printf_unknown): Fix size of work_buffer.
2486 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
2487
1f4843fb
UD
2488 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
2489 (public_sET_STATe): If ms->version < 3, put all chunks into
2490 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
2491 chunks.
2492
2493 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
2494 * malloc/hooks.c: Likewise.
2495 * malloc/arena.c: Likewise.
2496 * malloc/malloc.c (do_check_malloc_state): Don't assert
2497 n_mmaps is not greater than n_mmaps_max. This removes the need
2498 for the previous change.
2499
2500 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
2501 2007-05-07 commit.
2502
12e8bbff
UD
25032007-05-19 Ulrich Drepper <drepper@redhat.com>
2504
2505 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
2506 Define for kernel >= 2.6.22.
69e5cbf5 2507
12e8bbff 25082007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 2509
df94b641
UD
2510 * elf/dl-close.c (_dl_close_worker): When removing object from
2511 global scope, wait for all lookups to finish afterwards.
2512 * elf/dl-open.c (add_to_global): When global scope array must
2513 grow, allocate a new one and free old array only after all
2514 lookups finish.
2515 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
2516 (_dl_lookup_symbol_x): Likewise.
2517 * elf/dl-support.c: Define _dl_wait_lookup_done.
2518 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2519 _dl_wait_lookup_done.
2520
2acd01ac
UD
2521 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
2522 not overlapping with arena.
2523
129abdd3
UD
2524 * malloc/mcheck.c (reallochook): If size==0, free the block.
2525
eb4b098a
UD
2526 * rt/tst-shm.c: Use fstat64 instead of fstat.
2527
69e5cbf5
UD
2528 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
2529 __NR_sync_file_range is not defined.
2530
a2ccc760
UD
25312007-05-17 Ulrich Drepper <drepper@redhat.com>
2532
bec51a30
UD
2533 Dummy files to prevent stub versions from being used.
2534 * sysdeps/x86_64/fpu/k_cosl.c: New file.
2535 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
2536 * sysdeps/x86_64/fpu/k_sinl.c: New file.
2537 * sysdeps/x86_64/fpu/k_tanl.c: New file.
2538
a2ccc760
UD
2539 * version.h (VERSION): Set to 2.6.90.
2540
1a31b586
UD
25412007-05-14 Ulrich Drepper <drepper@redhat.com>
2542
a2ccc760
UD
2543 * version.h (VERSION): Define to 2.6.
2544 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 2545
1d47e92f
UD
2546 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
2547
2548 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
2549 sizes.
366ad8fd 2550
1a31b586 25512007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 2552
366ad8fd
UD
2553 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
2554 number of mmaps. n_mmaps_max is the target.
2555 * malloc/hooks.c: Likewise.
2556 * malloc/arena.c: Likewise.
2557
11ed6713
AJ
25582007-05-12 Andreas Jaeger <aj@suse.de>
2559
2560 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
2561 getpid.
2562
d65ef3dd
UD
25632007-05-11 Ulrich Drepper <drepper@redhat.com>
2564
2e81d449
UD
2565 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
2566 adding new variables.
2567
d65ef3dd 2568 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 2569 optimize. Completely extend global scope array before making the
d65ef3dd
UD
2570 new entries visible.
2571
c27d2078
UD
25722007-05-10 Ulrich Drepper <drepper@redhat.com>
2573
341c566f
UD
2574 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
2575 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
2576 tst-getcpu.
2577
2578 * include/link.h: Move l_version and l_nversion members around to
2579 fill gaps.
2580
a53fa282
UD
2581 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
2582
3771196d
UD
2583 * sysdeps/unix/sysv/linux/sched_setaffinity.c
2584 (__sched_setaffinity_new): If syscall was successful and
2585 RESET_VGETCPU_CACHE is defined, use it before returning.
2586 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
2587
f9bf102d
UD
2588 * io/sys/stat.h: Make sure struct timespec is defined for
2589 __USE_ATFILE.
2590
c27d2078
UD
2591 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
2592 UTIME_OMIT.
2593 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2594 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2595 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2596 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2597 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2598 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2599 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
2600 * io/sys/stat.h: Declare utimensat, futimens.
2601 * io/utimensat.c: New file.
2602 * io/futimens.c: New file.
2603 * sysdeps/unix/sysv/linux/utimensat.c: New file.
2604 * sysdeps/unix/sysv/linux/futimens.c: New file.
2605 * io/Makefile (routines): Add utimensat, futimens.
2606 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
2607 * sysdeps/unix/sysv/linux/lutimes.c: New file.
2608 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
2609 available.
2610
2611 * include/sys/cdefs.h: Redefine __nonnull so that test for
2612 incorrect parameters in the libc code itself are not omitted.
2613
cf6b0980
JJ
26142007-05-09 Jakub Jelinek <jakub@redhat.com>
2615
c1dfd7e6
JJ
2616 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
2617 exception in addition to inexact when asked to raise only FE_INEXACT.
2618
cf6b0980
JJ
2619 [BZ #3427]
2620 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
2621 in *envp.
2622
df7b6fea
UD
26232007-05-07 Ulrich Drepper <drepper@redhat.com>
2624
2625 [BZ #4403]
2626 * string/strfry.c (strfry): Make result more random.
2627
37f40235
RH
26282007-05-07 Richard Henderson <rth@redhat.com>
2629
2630 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
2631 if __NO_LONG_DOUBLE_MATH.
2632 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 2633 available in the compiler, add .arch directive to the assembly.
37f40235
RH
2634
26352007-05-07 Jakub Jelinek <jakub@redhat.com>
2636
2637 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
2638 compat_symbol to GLIBC_2_1.
2639 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
2640 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
2641 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
2642 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
2643 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
2644 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
2645 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
2646 libc, not libm.
2647 (__isnanl): New compat_symbol.
2648
c7fd3362
JJ
26492007-05-07 Ulrich Drepper <drepper@redhat.com>
2650 Jakub Jelinek <jakub@redhat.com>
2651
2652 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
2653 (new_heap): Initialize mprotect_size.
2654 (grow_heap): When growing, only mprotect from mprotect_size till
2655 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
2656 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
2657
4a59e9ad 26582007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 2659 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
2660
2661 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
2662 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
2663 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
2664 * sysdeps/powerpc/fpu/fe_mask.c: New file.
2665 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
2666 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
2667 Call __fe_mask_env() if all FP exceptions disabled.
2668 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
2669 from old FPSCR to new fenv to propagate DFP rounding modes.
2670 Call __fe_mask_env() if FP exceptions previously enabled.
2671 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
2672 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
2673 transitioning from all exceptions disabled to any exception enabled
2674 or visa versa.
2675 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
2676 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
2677 when transitioning from all exceptions disabled to any exception
2678 enabled or visa versa.
2679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
2680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
2681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
2682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
2683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
2684 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
2685
aa75f64c
UD
26862007-05-06 Ulrich Drepper <drepper@redhat.com>
2687
15eca720 2688 [BZ #4465]
aa75f64c
UD
2689 * posix/unistd.h: Remove __THROW from fdatasync.
2690
711deb05
UD
26912007-05-06 Mike Frysinger <vapier@gentoo.org>
2692
15eca720 2693 [BZ #4465]
711deb05
UD
2694 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
2695
ffecd39b
UD
26962007-05-06 Ulrich Drepper <drepper@redhat.com>
2697
49a8eb75
UD
2698 * stdio-common/vfprintf.c (process_string_arg): Optimize
2699 ridiculous precision in wide char code printing multi-byte string.
2700 Reported by Jim Meyering <jim@meyering.net>.
2701
ffecd39b
UD
2702 [BZ #4131]
2703 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
2704 boundaries to work around systems with overlapping binary loading.
2705 Based on a patch by Suzuki <suzuki@in.ibm.com>.
2706
b16dba4c
UD
27072007-05-04 Ulrich Drepper <drepper@redhat.com>
2708
30b323ab
UD
2709 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
2710 __mbsnrtowcs after last change.
2711
b16dba4c
UD
2712 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
2713 (get_ident): Likewise.
2714
37002cbc
JJ
27152007-05-03 Jakub Jelinek <jakub@redhat.com>
2716
2717 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
2718 with setting the sticky bit.
2719 * math/test-misc.c (main): Add more truncation tests.
2720
27212007-04-14 Uros Bizjak <ubizjak@gmail.com>
2722
2723 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
2724 double in the function declaration.
2725 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
2726 double in the function declaration.
2727 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
2728 float in the function declaration.
2729 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
2730 float in the function declaration.
2731
2732 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
2733 denormal operands. Do not generate FP_EX_DENORM exception.
2734 (FP_UNPACK_RAW_EP): Ditto.
2735 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
2736 undefined _FP_UNPACK_RAW_E.
2737 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
2738 undefined _FP_UNPACK_RAW_EP.
2739 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
2740 undefined _FP_PACK_RAW_E.
2741 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
2742 undefined _FP_PACK_RAW_EP.
2743
d9ac82d0
UD
2744 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
2745 _FP_FRAC_COPY_2.
2746 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
2747 _FP_FRAC_COPY_4.
37002cbc
JJ
2748
27492007-04-16 Uros Bizjak <ubizjak@gmail.com>
2750 Jakub Jelinek <jakub@redhat.com>
2751
2752 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
2753 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
2754 this case.
2755 * soft-fp/op-common.h (FP_TRUNC): Ditto.
2756
002f0b0b
JJ
27572007-05-03 Jakub Jelinek <jakub@redhat.com>
2758
2759 * math/test-misc.c (main): Add tests for rounding long double
2760 values close to smallest double denormalized value to double.
2761
27622007-04-30 Joseph Myers <joseph@codesourcery.com>
2763
2764 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
2765 condition for truncating to 0. Set sticky bit for such
2766 truncation.
2767
57433ede
UD
27682007-05-02 Jakub Jelinek <jakub@redhat.com>
2769
2770 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
2771 fixed length array for ignore.
2772
c01c2455
UD
27732007-04-30 Ulrich Drepper <drepper@redhat.com>
2774
2775 [BZ #4438]
2776 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
2777 stack for large precisions.
1cb04337
UD
2778 * stdio-common/test-vfprintf.c (main): Add test for large
2779 precision.
c01c2455 2780
37f02b1d
UD
27812007-04-30 Jakub Jelinek <jakub@redhat.com>
2782
b866373d
UD
2783 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
2784 for exponent 0.
2785 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
2786
37f02b1d
UD
2787 [BZ #4439]
2788 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
2789 account in the size check.
2790 * resolv/tst-inet_ntop.c: New test.
2791 * resolv/Makefile (tests): Add tst-inet_ntop.
2792
7ecfbd38
UD
27932007-04-30 Ulrich Drepper <drepper@redhat.com>
2794 Jakub Jelinek <jakub@redhat.com>
2795
2796 [BZ #4349]
2797 * malloc/malloc.c: Keep separate list for first blocks on the bin
2798 lists with a given size. This helps skipping over list elements
2799 we know won't fit in two places.
2800 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
2801
e53f0f51
UD
28022007-04-28 Ulrich Drepper <drepper@redhat.com>
2803
2804 [BZ #4102]
2805 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
2806 label to Teredo tunnel addresses 2001://32.
2807
109f51f2
UD
28082007-04-27 Ulrich Drepper <drepper@redhat.com>
2809
762422d1
UD
2810 * locale/programs/ld-collate.c (collate_read): Allow order_start
2811 after copy.
2812
61d5a67f
UD
2813 * locale/programs/ld-collate.c (collate_read): Fix printing of
2814 error message.
2815
2816 [BZ #3213]
2817 * locale/C-translit.h.in: Add entry for U2044.
2818
109f51f2
UD
2819 [BZ #4342]
2820 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
2821 hexa-decimal floats without exponent.
2822 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
2823
ec08f13d
UD
28242007-04-25 Ulrich Drepper <drepper@redhat.com>
2825
2826 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
2827 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
2828 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
2829 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
2830 GLIBC_2.6.
bce20b9a
UD
2831 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
2832 Add sched_getcpu.
ec08f13d 2833
41967e1c
JJ
28342007-04-25 Jakub Jelinek <jakub@redhat.com>
2835
2836 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
2837 of 0 after the out_fail label.
2838
ba508da3
UD
28392007-04-25 Ulrich Drepper <drepper@redhat.com>
2840
2841 [BZ #4406]
109f51f2 2842 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
2843 * iconv/iconv_open.c (iconv_open): Adjust comment.
2844
9c8d03d9
JJ
28452007-04-25 Jakub Jelinek <jakub@redhat.com>
2846
2847 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
2848 version.
2849
2f1687b9
UD
28502007-04-23 Jakub Jelinek <jakub@redhat.com>
2851
2852 [BZ #4381]
2853 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
2854 alignment of buffer and tmp_buffer.
2855 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
2856 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
2857 alignment of buffer.
2858 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
2859 bigger than INT_MAX.
2860 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
2861 h_errnop arguments. Fail if buflen is too small.
2862 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
2863
b64a9db8
JJ
28642007-04-23 Jakub Jelinek <jakub@redhat.com>
2865
2866 [BZ #4405]
2867 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
2868 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
2869
4d3144c9
RM
28702007-04-22 Roland McGrath <roland@redhat.com>
2871
2872 * elf/elf.h (NT_PRXFPREG): New macro.
2873
767b40bf
AJ
28742007-04-19 Andreas Jaeger <aj@suse.de>
2875
2876 [BZ #3905]
2877 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
2878 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
2879 Added.
2880
2592d1ec
UD
28812007-04-19 Ulrich Drepper <drepper@redhat.com>
2882
2883 * include/sys/mman.h: Mark madvise hidden.
d07d044e 2884 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 2885
7ab174ed
UD
28862007-04-06 Jakub Jelinek <jakub@redhat.com>
2887
2888 * nis/nis_domain_of.c (__nis_domain_of): New function.
2889 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
2890 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
2891 * nis/nis_call.c (rec_dirsearch): Likewise.
2892 (first_shoot): Likewise. Remove search_parent_first argument.
2893 (struct nis_server_cache): Rename search_parent_first field
2894 to search_parent.
2895 (nis_server_cache_search, nis_server_cache_add): Rename
2896 search_parent_first argument to search_parent.
2897 (__nisfind_server): Likewise. If search_parent, call
2898 __nis_domain_of.
2899
b17c265f
UD
29002007-04-18 Ulrich Drepper <drepper@redhat.com>
2901
2902 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
2903
b7674b11
UD
29042007-04-17 Ulrich Drepper <drepper@redhat.com>
2905
2906 [BZ #4368]
2907 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
2908
faf3ad69
UD
29092007-04-16 Ulrich Drepper <drepper@redhat.com>
2910
2911 [BZ #4364]
2912 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
2913
c14f245c
UD
29142007-04-15 Jakub Jelinek <jakub@redhat.com>
2915
2916 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
2917 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
2918 current number of locales in SUPPORTED.
2919 (create_archive): Initialize serial.
2920 (enlarge_archive): Preserve aliases rather than duplicating
2921 their locrecs.
2922
d40e67f5
UD
29232007-04-13 Jakub Jelinek <jakub@redhat.com>
2924
993a5d66
UD
2925 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
2926 after _IO_un_link, not before it.
2927
d40e67f5
UD
2928 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
2929 special case handling when wcp == wstartp + 1. Fix a comment typo.
2930 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
2931
0fca3153
UD
29322007-03-30 Jakub Jelinek <jakub@redhat.com>
2933
2934 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
2935 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
2936 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
2937 Remove __THROW.
2938 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
2939 _IO_file_xsgetn_maybe_mmap): Likewise.
2940 * libio/oldfileops.c (old_do_write): Likewise.
2941 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
2942 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
2943 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
2944 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
2945 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
2946 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
2947 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
2948 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
2949 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
2950 _IO_file_underflow, _IO_file_underflow_mmap,
2951 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
2952 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
2953 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
2954 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
2955 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
2956 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
2957 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
2958 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
2959 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
2960 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
2961 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
2962 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
2963 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
2964 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
2965 _IO_adjust_column_internal, _IO_default_uflow_internal,
2966 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
2967 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
2968 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
2969 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
2970 _IO_file_close_it_internal, _IO_file_underflow_internal,
2971 _IO_file_overflow_internal, _IO_file_attach_internal,
2972 _IO_file_fopen_internal, _IO_file_sync_internal,
2973 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
2974 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
2975 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
2976 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
2977 _IO_seekpos_unlocked): Likewise.
2978 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
2979 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
2980
07358add
JJ
29812007-04-16 Jakub Jelinek <jakub@redhat.com>
2982
2983 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
2984 argument in xmalloc size computation.
2985
7a82b74f
UD
29862007-04-01 Jakub Jelinek <jakub@redhat.com>
2987
2988 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
2989 math_opt_barrier and math_force_eval macros.
2990
3e336a87
UD
29912007-03-27 Jakub Jelinek <jakub@redhat.com>
2992
2993 [BZ #3306]
2994 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
2995 * sysdeps/i386/fpu/math_private.h: New file.
2996 * sysdeps/x86_64/fpu/math_private.h: New file.
2997 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
2998 math_force_eval macros. Use "+m" constraint on asm rather than
2999 "=m" and "m".
3000 * math/s_nextafter.c (__nextafter): Likewise.
3001 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
3002 Likewise.
3003 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3004 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
3005 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3006 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
3007 math_opt_barrier and math_force_eval macros.
3008 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
3009 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
3010 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
3011 (__nexttoward): Use math_opt_barrier and
3012 math_force_eval macros. Use "+m" constraint on asm rather than
3013 "=m" and "m". Only use asm to force double result if
3014 FLT_EVAL_METHOD is 2.
3015 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
3016 (__nexttowardf): Use math_opt_barrier and
3017 math_force_eval macros. Use "+m" constraint on asm rather than
3018 "=m" and "m". Only use asm to force double result if
3019 FLT_EVAL_METHOD is not 0.
3020 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
3021 (__nexttowardf): Use math_opt_barrier and
3022 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
3023 x to float using asm.
3024 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
3025 (__nldbl_nexttowardf): Use math_opt_barrier and
3026 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
3027 x to float using asm.
3028 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
3029 (__nexttowardf): Use math_opt_barrier and math_force_eval
3030 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
3031 * math/bug-nextafter.c (zero, inf): New variables.
3032 (main): Add new tests.
3033 * math/bug-nexttoward.c (zero, inf): New variables.
3034 (main): Add new tests.
3035
a8c79c40
UD
30362007-03-22 Jakub Jelinek <jakub@redhat.com>
3037
3038 [BZ #3427]
3039 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
3040 exceptions both in SW and MXCSR.
3041 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
3042 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
3043 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3044 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3045 in MXCSR if SSE is available.
3046 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
3047 and ldsodefs.h.
3048 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
3049 Fix comment typo.
3050 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
3051 Return 0 rather than 1.
3052 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
3053 Remove incorrect part of a comment. Fix argument to feraiseexcept.
3054 * math/test-fenv.c (feholdexcept_tests): New function.
3055 (main): Call it.
3056
30572007-01-05 Richard B. Kreckel <kreckel@ginac.de>
3058
3059 [BZ #3427]
3060 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3061 in SW.
3062
30a3aa75
JJ
30632007-04-13 Jakub Jelinek <jakub@redhat.com>
3064
3065 [BZ #4344]
3066 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
3067 Reported by David Anderson <davea42@earthlink.net>.
3068
75587bfe
UD
30692007-04-07 Ulrich Drepper <drepper@redhat.com>
3070
3071 * posix/sys/wait.h: Remove unnecessary forward declaration.
3072
88fa1769
JJ
30732007-04-05 Jakub Jelinek <jakub@redhat.com>
3074
3075 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
3076 with obj->do_servers after first_shoot.
3077
eab1bdfb
UD
30782007-04-03 Ulrich Drepper <drepper@redhat.com>
3079
3080 * posix/Makefile (routines): Add sched_cpucount.
3081 (tests): Add tst-cpucount.
3082 * posix/sched_cpucount.c: New file.
3083 * posix/tst-cpucount.c: New file.
3084 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
3085 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
3086 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3087 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 3088
9700b039
UD
30892007-03-27 Jakub Jelinek <jakub@redhat.com>
3090
3091 * posix/fnmatch.c (STRUCT): Define.
3092 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
3093 * posix/fnmatch_loop.c (struct STRUCT): New type.
3094 (FCT): Add ends argument. If ends != NULL and normal * is
3095 seen in the pattern, store current pattern and string pointers
3096 and return. Adjust recursive calls.
3097 (EXT): Adjust FCT callers.
3098 (STRUCT): Undef at the end of the file.
3099 * posix/Makefile (tests): Add tst-fnmatch2.
3100 * posix/tst-fnmatch2.c: New test.
3101
d64e9790
JJ
31022007-04-01 Jakub Jelinek <jakub@redhat.com>
3103
933dfe7b
JJ
3104 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
3105 and 1 on failure.
3106
d64e9790
JJ
3107 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
3108 Change last argument to unsigned int.
3109
e1f0c5bc
UD
31102007-03-23 Jakub Jelinek <jakub@redhat.com>
3111
3112 * scripts/check-local-headers.sh: Filter out sys/capability.h.
3113
31142007-03-22 Jakub Jelinek <jakub@redhat.com>
3115
3116 * config.h.in (HAVE_LIBCAP): Add.
3117 * nscd/selinux.h: Include sys/capability.h rather than non-existent
3118 sys/capabilities.h.
3119 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
3120 free_caps. Cast away const from 4th cap_set_flag argument.
3121
4e87573f
UD
31222007-03-26 Ulrich Drepper <drepper@redhat.com>
3123
3124 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
3125 GLIBC_2.6.
3126 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3127 Add sync_file_range.
3128 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3129
fa6e3bc3
UD
31302007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
3131
3132 * sysdeps/powerpc/bits/atomic.h
3133 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
3134 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
3135 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3136 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
3137 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3138 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
3139 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
3140 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3141 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3142 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3143 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
3144 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3145 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3146 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3147 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3148 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
3149 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3150 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
3151 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3152 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
3153
31542007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
3155
3156 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
3157 (__cache_line_size): Define the variable here. Add
3158 attribute_hidden, remove weak_extern.
3159 (__libc_start_main): Set __cache_line_size
3160 unconditionally.
3161 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3162 (__cache_line_size): Define the variable here. Add
3163 attribute_hidden, remove weak_extern.
3164 (DL_PLATFORM_AUXV): Set __cache_line_size
3165 unconditionally.
3166 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
3167 weak_extern, add attribute_hidden.
3168 (__elf_machine_runtime_setup): Assume __cache_line_size is always
3169 defined in ld.so.
3170 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
3171 definition.
3172 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
3173
0479e581
JJ
31742007-03-26 Jakub Jelinek <jakub@redhat.com>
3175
3176 [BZ #4276]
3177 * timezone/africa: Update from tzdata2007d.
3178 * timezone/asia: Likewise.
3179 * timezone/australasia: Likewise.
3180 * timezone/backward: Likewise.
3181 * timezone/europe: Likewise.
3182 * timezone/iso3166.tab: Likewise.
3183 * timezone/leapseconds: Likewise.
3184 * timezone/northamerica: Likewise.
3185 * timezone/southamerica: Likewise.
3186 * timezone/zone.tab: Likewise.
3187
3188 * timezone/private.h: Update from tzcode2007d.
3189 * timezone/zdump.c: Likewise.
3190 * timezone/zic.c: Likewise.
3191
697d37b1
JJ
31922007-03-21 Jakub Jelinek <jakub@redhat.com>
3193
3194 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
3195 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
3196 variables.
3197 (nis_server_cache_search, nis_server_cache_add): New functions.
3198 (__nisfind_server): Use them. Add dbp and flags argument, if
3199 call __nisbind_create.
3200 (__nisbind_create): Add server_used and current_ep arguments,
3201 only call __nis_findfastest if server_used is ~0.
3202 (__do_niscall2, __prepare_niscall): Adjust callers.
3203 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
3204 ckey_cache_euid, ckey_cache_lock): New variables.
3205 (get_ckey): New function.
3206 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
3207 __pmap_getnisport. Save __pmap_getnisport result in
3208 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
3209 key.
3210 * nis/nis_lookup.c (nis_lookup): Likewise.
3211 * nis/nis_table.c (nis_list): Likewise.
3212 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
3213 prototypes.
3214
3215 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
3216 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
3217 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
3218 _nss_nisplus_getservbyport_r): Likewise.
3219 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
3220 _nss_nisplus_getnetbyaddr_r): Likewise.
3221 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
3222 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
3223 _nss_nisplus_getntohost_r): Likewise.
3224 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
3225 _nss_nisplus_getrpcbynumber_r): Likewise.
3226
06029c20
JJ
32272007-03-20 Jakub Jelinek <jakub@redhat.com>
3228
371f84a4
JJ
3229 * configure.in (libc_cv_gnu89_inline): Only do compile test.
3230 * configure: Rebuilt.
3231
06029c20
JJ
3232 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
3233 bit-fields.
3234 * soft-fp/extended.h (_FP_UNION_E): Likewise.
3235
32362006-06-07 Joseph Myers <joseph@codesourcery.com>
3237
3238 [BZ #2831]
3239 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
3240 bit-fields.
3241
addc8335
UD
32422007-03-18 Jakub Jelinek <jakub@redhat.com>
3243
3244 * nscd/gai.c: Include alloca.h.
3245 (__libc_use_alloca): Define.
3246
b037a293
UD
32472007-03-16 Jakub Jelinek <jakub@redhat.com>
3248
965cba04
UD
3249 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
3250 smaller scopes.
3251 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
3252 (DL_DST_REQUIRED): Adjust user.
3253
3254 * include/dlfcn.h (struct link_map): New forward decl.
3255
3256 * inet/getnameinfo.c: Include stddef.h.
3257 (getnameinfo): Use offsetof.
3258
3259 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
3260
3261 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
3262
3263 * string/strerror_l.c: Include stdlib.h.
3264
b037a293
UD
3265 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
3266 * config.make.in (gnu89-inline-CFLAGS): New variable.
3267 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
3268 -std=gnu99.
3269 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
3270 * argp/argp.h: Use it.
3271 * bits/mathinline.h: Likewise.
3272 * bits/sigset.h: Likewise.
3273 * bits/string.h: Likewise.
3274 * ctype/ctype.h: Likewise.
3275 * hurd/hurd.h: Likewise.
3276 * hurd/hurd/fd.h: Likewise.
3277 * hurd/hurd/port.h: Likewise.
3278 * hurd/hurd/signal.h: Likewise.
3279 * hurd/hurd/threadvar.h: Likewise.
3280 * hurd/hurd/userlink.h: Likewise.
3281 * io/sys/stat.h: Likewise.
3282 * libio/bits/stdio.h: Likewise.
3283 * libio/bits/stdio2.h: Likewise.
3284 * mach/lock-intern.h: Likewise.
3285 * mach/mach/mig_support.h: Likewise.
3286 * math/bits/cmathcalls.h: Likewise.
3287 * posix/bits/unistd.h: Likewise.
3288 * socket/bits/socket2.h: Likewise.
3289 * stdlib/bits/stdlib.h: Likewise.
3290 * stdlib/stdlib.h: Likewise.
3291 * string/argz.h: Likewise.
3292 * string/bits/string2.h: Likewise.
3293 * string/bits/string3.h: Likewise.
3294 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
3295 * sysdeps/generic/inttypes.h: Likewise.
3296 * sysdeps/generic/machine-lock.h: Likewise.
3297 * sysdeps/generic/machine-sp.h: Likewise.
3298 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3299 * sysdeps/i386/i486/bits/string.h: Likewise.
3300 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
3301 * sysdeps/mach/alpha/machine-lock.h: Likewise.
3302 * sysdeps/mach/alpha/machine-sp.h: Likewise.
3303 * sysdeps/mach/i386/machine-lock.h: Likewise.
3304 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3305 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
3306 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3307 * sysdeps/s390/bits/string.h: Likewise.
3308 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
3309 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3310 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3311 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3312 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3313 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
3314 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
3315 * wcsmbs/bits/wchar2.h: Likewise.
3316 * wcsmbs/wchar.h: Likewise.
3317 * stdlib/gmp.h: Likewise. Include <features.h> to get
3318 __extern_inline definition.
3319
6b2665f5
UD
33202007-03-15 Jakub Jelinek <jakub@redhat.com>
3321
b037a293
UD
3322 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
3323 NULL.
3324
6b2665f5
UD
3325 [BZ #3919]
3326 * math/libm-test.inc (log_test): Test -Inf and NaN.
3327 (log10_test, log1p_test, log2_test): Test -Inf.
3328 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
3329 FE_INVALID when argument is qNaN.
3330 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
3331 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
3332 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
3333 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
3334 andb $1, %ah with testb $1, %ah, don't test for parity, instead
3335 testb $4, %ah and jump if non-zero.
3336 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
3337 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
3338
44969f17
UD
3339 [BZ #4101]
3340 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
3341 ancestors with the same depths.
3342 Patch by Niels Moeller <nisse@lysator.liu.se>.
3343 (filter_doc): Don't crash if argp is NULL.
3344 * argp/Makefile (tests): Add tst-argp2.
3345 * argp/tst-argp2.c: New test.
3346
05eb8975
UD
3347 [BZ #4130]
3348 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
3349 open_not_cancel_2.
3350 (updwtmp_file): Likewise.
3351
6cb988fa
UD
3352 [BZ #4181]
3353 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
3354 (inet6_opt_append): Don't check extlen is big enough if extbuf
3355 is NULL.
3356 (inet6_opt_finish): Likewise.
3357 * inet/Makefile (tests): Add test-inet6_opt.
3358 * inet/test-inet6_opt.c: New test.
3359
3360 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
3361 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
3362 NLMSG_ERR. Instead use a page sized buffer.
3363 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
3364 buffer.
3365
aea1d19e
RH
33662007-03-14 Richard Henderson <rth@redhat.com>
3367
b6df547c
RH
3368 * sysdeps/alpha/fpu/s_llround.c: New file.
3369 * sysdeps/alpha/fpu/s_llroundf.c: New file.
3370 * sysdeps/alpha/fpu/s_lround.c: New file.
3371 * sysdeps/alpha/fpu/s_lroundf.c: New file.
3372 * sysdeps/alpha/fpu/s_round.c: New file.
3373 * sysdeps/alpha/fpu/s_roundf.c: New file.
3374 * sysdeps/alpha/fpu/s_trunc.c: New file.
3375 * sysdeps/alpha/fpu/s_truncf.c: New file.
3376
aea1d19e
RH
3377 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
3378 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
3379 * sysdeps/alpha/fpu/s_floor.c: Likewise.
3380 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
3381 * sysdeps/alpha/fpu/s_rint.c: Likewise.
3382 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
3383
3384 * sysdeps/alpha/fpu/s_fmax.S: New file.
3385 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
3386 * sysdeps/alpha/fpu/s_fmin.S: New file.
3387 * sysdeps/alpha/fpu/s_fminf.S: New file.
3388 * sysdeps/alpha/fpu/s_isnan.c: New file.
3389 * sysdeps/alpha/fpu/s_isnanf.c: New file.
3390 * sysdeps/alpha/fpu/s_llrint.c: New file.
3391 * sysdeps/alpha/fpu/s_llrintf.c: New file.
3392 * sysdeps/alpha/fpu/s_lrint.c: New file.
3393 * sysdeps/alpha/fpu/s_lrintf.c: New file.
3394 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
3395 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
3396
3397 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
3398 (__fdimf, fdimf, __fdim, fdim): Remove.
3399 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
3400 (__isnanf, __isnan, __isnanl): New.
3401
9e43b50d
RH
34022007-03-13 Richard Henderson <rth@redhat.com>
3403
3404 * sysdeps/ieee754/ldbl-128/Makefile: New file.
3405
62789da3
RH
34062007-03-13 Richard Henderson <rth@redhat.com>
3407
3408 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
3409 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
3410 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3411 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
3412 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
3413 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
3414
47dbe62b
RH
34152007-03-13 Richard Henderson <rth@redhat.com>
3416
37f40235 3417 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
3418 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
3419 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
3420 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
3421 Move to dl-auxv.h; initialize instead of extern weak.
3422 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
3423 weak symbol.
3424 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
3425 Extern instead of initialized.
3426
b8097bed
RH
34272007-03-13 Richard Henderson <rth@redhat.com>
3428
3429 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
3430 __sigsuspend_nocancel.
3431
6bf4a686
UD
34322007-03-06 Ulrich Drepper <drepper@redhat.com>
3433
3434 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
3435 172.16/12 address range.
3436
0b3b1a0c
UD
34372007-03-02 Jakub Jelinek <jakub@redhat.com>
3438
3439 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
3440 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
3441 message.
3442
8f3edfee
UD
34432007-03-01 Jakub Jelinek <jakub@redhat.com>
3444
c1c5e654 3445 [BZ #4069]
8f3edfee
UD
3446 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
3447 earlier.
3448 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
3449
3450 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
3451 for x qNaN and y either +-inf or non-integer value.
3452 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
3453 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3454 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3455
245a1481
UD
34562007-02-10 Mike Frysinger <vapier@gentoo.org>
3457
3458 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
3459 from sysdep_headers.
3460
c217692b
UD
34612007-02-28 Jakub Jelinek <jakub@redhat.com>
3462
3463 * time/tzfile.c (find_transition): Instead of a linear search try to
3464 guess the transition index, use a linear search if the result is at
3465 most 10 transitions away from the guess or binary search otherwise.
3466
fe64626c
JJ
34672007-02-27 Jakub Jelinek <jakub@redhat.com>
3468
3469 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
3470 memory reallocation.
3471
0f7769f7
UD
34722007-02-21 Ulrich Drepper <drepper@redhat.com>
3473
621c133d
UD
3474 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
3475 and fix some typos.
3476 Optimize use of TOLOWER.
9cf147d8 3477
cdfd61e1
UD
3478 [BZ #3325]
3479 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
3480 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3481 * sysdeps/i386/fpu/e_fmod.S: Likewise.
3482
8889e7aa
UD
3483 [BZ #3458]
3484 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
3485 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
3486
63a2f305
UD
3487 [BZ #4076]
3488 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
3489 (open_dir_stream): Likewise.
3490 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 3491 * io/bug-ftw5.c: New file.
63a2f305 3492
c8703f88
UD
3493 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
3494 * nscd/servicescache.c (cache_addserv): Likewise.
3495
3496 * nscd/grpcache.c (cache_addgr): In case a record changed on
3497 refresh, adjust key_copy.
3498
61705e06
UD
3499 [BZ #4074]
3500 * nscd/pwdcache.c (cache_addpw): In case a record changed on
3501 refresh, adjust key_copy.
3502
0f7769f7
UD
3503 [BZ #4070]
3504 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 3505 special cases.
8889e7aa 3506 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 3507
3979024a
UD
35082007-02-19 Ulrich Drepper <drepper@redhat.com>
3509
4c02bf1a
UD
3510 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
3511 optimization.
3512
3979024a
UD
3513 * stdio-common/vfscanf.c: Small cleanups throughout.
3514
821d3e70
UD
35152007-02-18 Ulrich Drepper <drepper@redhat.com>
3516
2484468b
UD
3517 [BZ #3325]
3518 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
3519 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3520 * sysdeps/i386/fpu/e_fmod.S: Likewise.
3521 Patch by Jared Casper <jaredcasper@gmail.com>.
3522
858ee15d
UD
3523 * sysdeps/unix/closedir.c: Outside libc don't use locking.
3524 * sysdeps/unix/opendir.c: Likewise.
3525 * sysdeps/unix/readdir.c: Likewise.
3526
ecb72bd5
UD
3527 [BZ #2211]
3528 * stdio-common/vfscanf.c: Handle localized digits etc for floating
3529 point numbers.
3530 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
3531
ac2ca022
UD
3532 * stdio-common/vfscanf.c: Fix problems in width accounting.
3533 * stdio-common/tst-sscanf.c (double_tests): New tests.
3534 (main): Hook them up.
3535
e9bb5246 3536 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 3537 More simplifications of floating-point reader.
e9bb5246 3538
821d3e70
UD
3539 * stdio-common/Makefile (tests): Add tst-swscanf.
3540 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
3541 testing.
3542 * stdio-common/tst-swscanf.c: New file.
3543
07fb5185
UD
35442007-02-17 Ulrich Drepper <drepper@redhat.com>
3545
9138cc0b
UD
3546 [BZ #2633]
3547 * libio/stdio.h: Define struct _IO_FILE in global namespace.
3548 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
3549 Remove using for __jmp_buf_tag.
3550 * locale/locale.h (struct lconv): Also define in std namespace.
3551 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
3552
6818d837
UD
3553 [BZ #3842]
3554 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
3555 using __libc_enable_secure.
3556
15c4b5a4
UD
3557 [BZ #3818]
3558 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
3559
5e9e9c14
UD
3560 [BZ #3745]
3561 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
3562 of names for ellipsises.
3563
07fb5185
UD
3564 [BZ #3348]
3565 * malloc/memusage.sh: Cleanups.
3566 * debug/xtrace.sh: Quoting and trap changes.
3567
8c6d1043
UD
35682007-02-16 Ulrich Drepper <drepper@redhat.com>
3569
07fb5185
UD
3570 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
3571
93e66914 3572 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
3573 * locale/iso-4217.def: Define RSD, remove CSD.
3574
ad0b348c
UD
3575 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
3576 and 64-bit operations.
3577
3578 [BZ #4040]
3579 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
3580 16-bit operations.
3581
8c6d1043
UD
3582 * nscd/nscd.c (parse_opt): One more conversion to use send instead
3583 of writev.
3584
987f54c6
UD
35852007-02-15 Ulrich Drepper <drepper@redhat.com>
3586
b3715c05
UD
3587 [BZ #3991]
3588 * assert/assert.h (assert): Simplify.
3589 (assert_perror): Likewise.
3590 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
3591
6eea8e0d
UD
3592 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
3593 reqdata.
3594
987f54c6
UD
3595 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
3596 change: don't pass NULL in place of an integer.
3597
3dc08a7e
UD
35982007-02-02 Bruno Haible <bruno@clisp.org>
3599
06c17c78
UD
3600 [BZ #3954]
3601 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
3602 Add mapping for U+327E.
3603 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
3604 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
3605 mapping of 0xD9 0xE8.
3606 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
3607 mapping of U+327E.
3608 Reported by Jungshik Shin <jungshik@google.com>.
3609
3610 [BZ #3955]
3dc08a7e
UD
3611 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
3612 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
3613 Reported by Jungshik Shin <jungshik@google.com>.
3614
a810e68c
UD
36152007-02-14 Ulrich Drepper <drepper@redhat.com>
3616
3617 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
3618 byte variants.
3619
3620 [BZ #4040]
3621 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
3622 byte variants. Patch mostly be tom@tommay.net.
3623
05f135ba
UD
36242007-02-14 Jakub Jelinek <jakub@redhat.com>
3625
3626 [BZ #3996]
3627 * posix/glob.c (attribute_hidden): Define if not defined.
3628 (glob): Unescape dirname, filename or username when needed and not
3629 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
3630 is NULL. Handle unescaped [ in pattern without closing ].
3631 Don't pass GLOB_CHECK down to recursive glob for directories.
3632 (__glob_pattern_type): New function.
3633 (__glob_pattern_p): Implement using __glob_pattern_type.
3634 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
3635 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
3636 Remove unreachable code.
3637 * posix/globtest.sh: Add a couple of new tests.
3638
2f699967
UD
36392007-02-13 Ulrich Drepper <drepper@redhat.com>
3640
3641 * po/ru.po: Update from translation team.
3642
3a7cd5b4
JJ
36432007-02-12 Jakub Jelinek <jakub@redhat.com>
3644
3645 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
3646 to the list of i486+ CPUs.
3647 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
3648
2f978feb
UD
36492007-02-12 Ulrich Drepper <drepper@redhat.com>
3650
3651 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
3652 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
3653 references.
3654
2bbb7d5b
UD
36552007-02-09 Ulrich Drepper <drepper@redhat.com>
3656
5ed61e0f
UD
3657 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
3658
2bbb7d5b
UD
3659 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
3660 * resolv/res_mkquery.c: Define __res_nopt.
3661 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
3662 try adding EDNS0 record.
3663 * resolv/res_send.c (send_dg): If request failed with FORMERR and
3664 EDNS0 record was send make sure we don't try it again.
3665 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
3666 * include/resolv.h: Declare __res_nopt.
3667
00458b5b
UD
36682007-02-08 Jakub Jelinek <jakub@redhat.com>
3669
3670 [BZ #3944]
3671 * time/strptime_l.c (__strptime_internal): Set have_mon for
3672 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
3673 have been computed from tm_yday and tm_year. Don't crash
3674 in day_of_the_week or day_of_the_year if not have_mon
3675 and tm_mon contains bogus value.
3676 * time/Makefile (tests): Add tst-strptime3.
3677 * time/tst-strptime3.c: New test.
3678
784aacea
UD
36792007-02-05 Jakub Jelinek <jakub@redhat.com>
3680
3681 [BZ #3957]
3682 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
3683 bit for RE_HAT_LISTS_NOT_NEWLINE.
3684 (build_charclass_op): Remove bogus comment.
3685 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
3686 * posix/bug-regex27.c: New test.
3687 * posix/bug-regex28.c: New test.
3688
bf7a2463
UD
36892007-02-03 Ulrich Drepper <drepper@redhat.com>
3690
3691 * po/sv.po: Update from translation team.
3692
f2ccf983
UD
36932007-02-02 Ulrich Drepper <drepper@redhat.com>
3694
3695 * nscd/nscd_helper.c (open_socket): Minor size optimization.
3696
73f50d5a
UD
36972007-02-02 Jakub Jelinek <jakub@redhat.com>
3698
3699 * include/locale.h (__uselocale): Add libc_hidden_proto.
3700 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
3701
f6bf9e59
JJ
3702 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
3703 gettimeofday.
3704
4a44ce79
UD
37052007-02-01 Ulrich Drepper <drepper@redhat.com>
3706
3707 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
3708 returning.
3709 (PTR_DEMANGLE): Real definition now that it's not the same as
3710 PRT_MANGLE anymore.
3711 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3712
3713 * string/strerror_l.c: New file.
3714 * string/Makefile (routines): Add strerror_l.
3715 * string/string.h: Declare strerror_l.
3716 * string/Versions: Export strerror_l for GLIBC_2.6.
3717
58a2d52e
UD
37182007-01-31 Ulrich Drepper <drepper@redhat.com>
3719
3720 * nscd/nscd_helper.c (open_socket): Now takes request type and key
3721 as parameter. Construct request record. Try sending request
3722 before the first poll use, it usually succeeds. Adjust all
3723 callers.
3724 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 3725 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 3726
1a77d37f
JJ
37272007-01-31 Jakub Jelinek <jakub@redhat.com>
3728
3729 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
3730 from return value.
3731 * nscd/nscd_helper.c: Include string.h.
3732 (__nscd_cache_search): Remove const qualifier from return value.
3733 On strict alignment architectures check hash entry and data head
3734 alignment.
3735 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
3736 mmapped data during GC cycle contains garbage. If
3737 __nscd_drop_map_ref fails, decrement mapped->counter when returning
3738 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
3739 dropped to 0.
3740 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3741 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3742 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3743 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3744 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3745
ee314200
UD
37462007-01-30 Ulrich Drepper <drepper@redhat.com>
3747
3748 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
3749
14c8bf3b
UD
37502007-01-26 Ulrich Drepper <drepper@redhat.com>
3751
3752 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
3753 names not numbers in cfi_*.
3754
d2708e67
AJ
37552007-01-26 Andreas Jaeger <aj@suse.de>
3756
3757 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 3758 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
3759 Correct values of PER_HPUX and PER_OSF4.
3760
7fbc8784
UD
37612007-01-24 Ulrich Drepper <drepper@redhat.com>
3762
8aaf53ee 3763 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
3764 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
3765 * malloc/mtrace.c: Revert last change.
3766 * posix/wordexp.c: Likewise.
3767
9d6cde3d
UD
37682007-01-24 Jakub Jelinek <jakub@redhat.com>
3769
3770 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
3771 and __geode__ to the list of i486+ CPUs.
3772 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
3773
c1f0486a
UD
37742007-01-23 Ulrich Drepper <drepper@redhat.com>
3775
3776 * stdio-common/_itoa.c: Include <limits.h>.
3777 * stdio-common/_itowa.c: Likewise.
3778
6cae3957
UD
37792007-01-22 Ulrich Drepper <drepper@redhat.com>
3780
765bbb24
UD
3781 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
3782 platforms.
3783 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
3784 64-bit platforms.
3785 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
3786 possible.
3787 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
3788 if possible.
3789
6cae3957
UD
3790 [BZ #3902]
3791 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
3792 * stdio-common/Makefile (tests): Add bug17.
3793 * stdio-common/bug17.c: New file.
3794
ddaafd04
UD
37952007-01-19 Ulrich Drepper <drepper@redhat.com>
3796
3797 * iconvdata/brf.c: New file.
439201de
UD
3798 * iconvdata/testdata/BRF: New file.
3799 * iconvdata/testdata/BRF..UTF8: New file.
3800 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
3801 * iconvdata/Makefile: Add rules to build BRF.
3802 * iconvdata/TESTS: Add BRF entry.
3803 * iconvdata/gconv-modules: Likewise.
3804 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 3805
9e6e344e
UD
38062007-01-18 Anton Nikishaev <anton.nik@gmail.com>
3807
3808 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
3809 type `long long int', not `long int'.
3810 (wcstoq): Likewise.
3811
299f7b0f
UD
38122007-01-18 Ulrich Drepper <drepper@redhat.com>
3813
3814 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
3815 of values on 64-bit platforms which are too large.
3816
cd8127cc
JJ
38172007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
3818 Joe Kerian <jkerian@us.us.ibm.com>
3819
3820 [BZ #2749]
3821 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
3822 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
3823 (__copysignl): Use signbit() for comparison.
3824 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
3825 SET_LDOUBLE_WORDS64.
3826
3827 [BZ #2423, #2749]
3828 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
3829 (__ceill): Remove calls to fegetround(), fesetround().
3830 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
3831 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
3832 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
3833
b3acfdf7
JJ
38342007-01-17 Jakub Jelinek <jakub@redhat.com>
3835
4a2e03c6
JJ
3836 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
3837
b3acfdf7
JJ
3838 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
3839
1476bce6
UD
38402007-01-17 Ulrich Drepper <drepper@redhat.com>
3841
3842 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
3843 demangle pointer.
3844 * csu/libc-start.c: Likewise.
3845
d78bce1c
UD
38462007-01-16 Ulrich Drepper <drepper@redhat.com>
3847
3848 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
3849 really work anyway.
3850
1bd79025
UD
38512007-01-15 Ulrich Drepper <drepper@redhat.com>
3852
000b027e
UD
3853 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
3854 users.
3855 (handle_request): Remove unnecessary tests.
3856
1bd79025
UD
3857 * nscd/cache.c (cache_add): Record the failure to add to the cache.
3858
d68f5d2c
JJ
38592007-01-15 Jakub Jelinek <jakub@redhat.com>
3860
3861 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
3862 workbits in semi-raw fraction.
3863
3864 * math/test-misc.c: Add new tests.
3865
38662007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
3867
3868 * math/basic-test.c: Include test-skeleton.c.
3869 (TEST_TRUNC): Define.
3870 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
3871 (main): Rename to ...
3872 (do_test): ...this. Run new tests.
3873 (TEST_FUNCTION): Define.
3874
38752006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
3876 Joe Kerian <jkerian@us.us.ibm.com>
3877
3878 [BZ #2749]
3879 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
3880 handling for high words.
3881 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
3882 and overflow for infinity.
3883
4e35ef2c
UD
38842007-01-15 Ulrich Drepper <drepper@redhat.com>
3885
2a1dea97
UD
3886 * nscd/connections.c (handle_request): Add a __builtin_expect.
3887
9691d83c
UD
3888 * nscd/connections.c (serv2db): Change type into structure which
3889 also says whether this is a request for data. Renamed to
3890 servinfo. All users changed.
3891 (handle_request): Much simpler test whether we should search the cache.
3892
49ee6d79
UD
3893 * nscd/connections.c (handle_request): Fix thinko in selinux test
3894 invocation.
3895
4e35ef2c
UD
3896 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
3897 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
3898 it before getting dl_load_lock and then relock.
3899 (_dl_lookup_symbol_x): Pass flags to add_dependency.
3900 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
3901 case we unlocked the scope.
3902 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
3903 _dl_lookup_symbol_x in case we locked the scope.
3904 (_dl_profile_fixup): Likewise.
3905 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
3906 set DL_LOOKUP_SCOPE_LOCK.
3907
23691ab2
UD
39082007-01-13 Ulrich Drepper <drepper@redhat.com>
3909
fb453d08
UD
3910 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
3911 CFLAGS-getsrvbynpt_r.c.
3912 * nscd/getsrvbynm_r.c: New file.
3913 * nscd/getsrvbypt_r.c: New file.
3914 * nscd/nscd_getserv_r.c: New file.
3915 * nscd/servicescache.c: New file.
3916 * nscd/Makefile (routines): Add nscd_getserv_r.
3917 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
3918 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
3919 CFLAGS-getsrvbypt_r.c.
3920 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
3921 table. Add entries for services database.
3922 * nscd/connections.c (serv2str): Mark as const. Add entries for
3923 services database.
3924 (dbs): Add .reset_res and servdb initialization.
3925 (serv2db): Add entries for services database.
3926 (verify_persistent_db): Accept dbnr == servdb.
3927 (invalidate_cache): Rewrite database name recognition to use a table.
3928 Call res_init() if .reset_res is set for database.
3929 (handle_request): Add code to handle services database.
3930 * nscd/gai.c: Don't define __getservbyname_r.
3931 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
3932 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
3933 (serv_response_header): Define.
3934 (struct datahead): Add serv_response_header member.
3935 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
3936 using table.
3937 * nscd/nscd.conf: Add entries for services database.
3938 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
3939 Declare serv_iov_disabled.
3940 Declare addservbyname, readdservbyname, addservbyport, and
3941 readdservbyport.
3942 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
3943 (find_db): Fix error message.
3944 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
3945 __nscd_getservbyname_r, and __nscd_getservbyport_r.
3946 * nscd/selinux.c (perms): Add entries for services database.
3947 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
3948 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
3949
3950 * nscd/grpcache.c: Remove obsolete code. Cleanups.
3951 * nscd/hstcache.c: Likewise.
3952 * nscd/pwdcache.c: Likewise.
3953
b21fa963
UD
3954 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
3955 computation of keylen.
3956
23691ab2
UD
3957 * include/string.h: Only redefine strndupa if this is really for
3958 libc code.
3959
8980796b
UD
39602007-01-12 Ulrich Drepper <drepper@redhat.com>
3961
4a4a65f2
UD
3962 * nscd/nscd_gethst_r.c: Minor cleanups.
3963
43397eaf
UD
3964 * nscd/connections.c (handle_request): Check selinux permissions
3965 for all non-admin commands.
3966
038a1a9f
UD
3967 * sysdeps/i386/i486/bits/atomic.h: Define
3968 atomic_compare_and_exchange_val_acq,
3969 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
3970 using __sync_* built-ins for gcc >= 4.1.
3971 * sysdeps/x86_64/bits/atomic.h: Likewise.
3972
8980796b
UD
3973 [BZ #3840]
3974 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
3975 and .oS.d files.
3976
32c075e1
JJ
39772007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
3978
3979 * stdlib/tst-makecontext.c: Include errno.h. Change main()
3980 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
3981 (do_test): Check errno and exit(0) if ENOSYS.
3982
39832007-01-11 Jakub Jelinek <jakub@redhat.com>
3984
3985 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
3986 thousands separators.
3987 * stdlib/Makefile: Add rules to build and run tst-strtod4.
3988 * stdlib/tst-strtod4.c: New test.
3989
3990 [BZ #3855]
3991 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
3992 hexadecimal digit should accept just the initial 0.
3993 * stdlib/tst-strtod2.c (tests): New variable.
3994 (do_test): Run several tests rather than just one.
3995
11bf311e 39962007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 3997
11bf311e
UD
3998 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
3999 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 4000
11bf311e 40012007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 4002
11bf311e
UD
4003 * io/fts.c: Make sure fts_cur is always valid after return from
4004 fts_read.
4005 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 4006
11bf311e 40072006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 4008
11bf311e
UD
4009 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
4010 (R_MIPS_NUM): Bump by 1.
32c075e1 4011
11bf311e 40122007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 4013
11bf311e
UD
4014 * posix/execvp.c: Include alloca.h.
4015 (allocate_scripts_argv): Renamed to...
4016 (scripts_argv): ... this. Don't allocate buffer here nor count
4017 arguments.
4018 (execvp): Use alloca if possible.
4019 * posix/Makefile: Add rules to build and run tst-vfork3 test.
4020 * posix/tst-vfork3.c: New test.
32c075e1
JJ
4021
40222007-01-03 Ulrich Drepper <drepper@redhat.com>
4023
4024 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 4025 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 4026
11bf311e 40272007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 4028
11bf311e
UD
4029 * posix/getconf.c: Update copyright year.
4030 * nss/getent.c: Likewise.
4031 * iconv/iconvconfig.c: Likewise.
4032 * iconv/iconv_prog.c: Likewise.
4033 * elf/ldconfig.c: Likewise.
4034 * catgets/gencat.c: Likewise.
4035 * csu/version.c: Likewise.
4036 * elf/ldd.bash.in: Likewise.
4037 * elf/sprof.c (print_version): Likewise.
4038 * locale/programs/locale.c: Likewise.
4039 * locale/programs/localedef.c: Likewise.
4040 * nscd/nscd.c (print_version): Likewise.
4041 * debug/xtrace.sh: Likewise.
4042 * malloc/memusage.sh: Likewise.
4043 * malloc/mtrace.pl: Likewise.
4044 * debug/catchsegv.sh: Likewise.
64a0aa0f 4045
11bf311e 40462006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 4047
11bf311e
UD
4048 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
4049 attempts.
48576885 4050
11bf311e 40512006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 4052
11bf311e 4053 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 4054
33c6de58
UD
40552006-12-22 Gavin Romig-Koch <gavin@redhat.com>
4056
4057 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
4058 blacklist the group till after we look it up.
4059
fc242bef
UD
40602006-12-21 Ulrich Drepper <drepper@redhat.com>
4061
4062 * include/atomic.h (atomic_forced_read): New macro.
4063
11bf311e
UD
40642006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4065
4066 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
4067
a12dcecc
UD
40682006-12-19 Jakub Jelinek <jakub@redhat.com>
4069
11bf311e
UD
4070 * nss/getXXbyYY_r.c: Include atomic.h.
4071 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
4072 add atomic_write_barrier () in between.
4073
a12dcecc
UD
4074 * stdlib/Makefile (tests): Add tst-makecontext.
4075 * stdlib/tst-makecontext.c: New test.
4076
4077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
4078 (__makecontext): Don't realign uc_mcontext.uc_regs.
4079
11bf311e 40802006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 4081
11bf311e
UD
4082 * elf/dl-support.c: Include dl-procinfo.h.
4083 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
4084 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
4085 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
4086 Define.
4087 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
4088 hardcoded constants.
4089 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
4090 PPC_PLATFORM_* macros for array designators.
594d423a 4091
11bf311e 40922006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 4093
11bf311e
UD
4094 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
4095 names to the beginning.
4096 (_dl_powerpc_platforms): Add "power6x".
4097 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
4098 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
4099 (_DL_PLATFORMS_COUNT): Increase.
4100 (_dl_string_platform): Handle power6x case.
4101 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
4102 PPC_FEATURE_POWER6_EXT): Define.
4103 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 4104
5bcba0ed
UD
41052006-12-18 Jakub Jelinek <jakub@redhat.com>
4106
4107 [BZ #3747]
4108 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 4109 [-2^31 .. 2^31) range.
5bcba0ed
UD
4110 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
4111 targets.
4112 * stdlib/tst-rand48-2.c: New test.
4113 * stdlib/Makefile (tests): Add tst-rand48-2.
4114
9e1444fc
UD
41152006-12-14 Jakub Jelinek <jakub@redhat.com>
4116
4117 * misc/tst-pselect.c (do_test): Fix sigblock argument.
4118
36775704
UD
41192006-12-14 Ulrich Drepper <drepper@redhat.com>
4120
4121 * misc/tst-pselect.c (do_test): Make sure the helper process is
4122 terminating when the test is aborted.
4123
1e88bd0f
UD
41242006-12-13 Ulrich Drepper <drepper@redhat.com>
4125
11bf311e
UD
4126 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
4127 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4128 Handle relatime mount option.
4129
1e88bd0f
UD
4130 [BZ #2337]
4131 * libio/Makefile (tests): Add tst-setvbuf1.
4132 * libio/tst-setvbuf1.c: New file.
4133
41342006-12-08 Jakub Jelinek <jakub@redhat.com>
4135
4136 [BZ #2337]
4137 * libio/genops.c (__uflow): Fix a typo.
4138 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
4139 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
4140 the narrow buffer size.
4141
41422006-11-24 Jakub Jelinek <jakub@redhat.com>
4143
4144 [BZ #2337]
4145 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
4146 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
4147 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
4148 in _flags.
4149 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
4150 _IO_wstr_finish): Likewise.
4151 * libio/wmemstream.c (open_wmemstream): Likewise.
4152 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
4153 even for wide streams.
4154
11bf311e 41552006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 4156
11bf311e
UD
4157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
4158 kernel-features.h.
4159
41602006-12-11 Ulrich Drepper <drepper@redhat.com>
4161
4162 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
4163 separators also if no non-zero digits found.
4164 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 4165
d117c1ce
UD
41662006-12-09 Ulrich Drepper <drepper@redhat.com>
4167
f85fb97b
UD
4168 [BZ #3632]
4169 * include/features.h: Fix comment about default value for
4170 _POSIX_C_SOURCE.
4171
11bf311e
UD
4172 [BZ #3664]
4173 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
4174 empty parsed strings.
4175 * stdlib/Makefile (tests): Add tst-strtod2.
4176 * stdlib/tst-strtod2.c: New file.
4177
4178 [BZ #3673]
4179 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
4180 computation.
4181 * stdlib/Makefile (tests): Add tst-atof2.
4182 * stdlib/tst-atof2.c: New file.
4183
4184 [BZ #3674]
4185 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
4186 correctly if removing trailing zero of hex-float.
4187 * stdlib/Makefile (tests): Add tst-atof1.
4188 * stdlib/tst-atof1.c: New file.
4189
a822d9f4
UD
41902006-12-09 Jakub Jelinek <jakub@redhat.com>
4191
11bf311e
UD
4192 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
4193 Start searching for next comma at p rather than rest.
4194 * misc/Makefile (tests): Add tst-mntent2.
4195 * misc/tst-mntent2.c: New test.
4196
a822d9f4
UD
4197 * misc/getusershell.c (initshells): Check for integer overflows.
4198 Make strings buffer one bigger as fgets always succeeds when second
4199 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 4200 / as shell.
f0d5e1f6 4201
11bf311e 42022006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 4203
11bf311e
UD
4204 * malloc/memusage.c: Handle realloc with new size of zero and
4205 non-NULL pointer correctly.
4206 (me): Really write first record twice.
4207 (struct entry): Make format bi-arch safe.
4208 (dest): Write out more realloc statistics.
4209 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 4210
11bf311e 42112006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 4212
11bf311e 4213 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 4214
f0d5e1f6
UD
42152006-12-04 Jakub Jelinek <jakub@redhat.com>
4216
4217 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
4218 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
4219 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
4220 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
4221 ENOTTY.
4222 * io/Makefile: Add rules to build and run tst-ttyname_r test.
4223 * io/tst-ttyname_r.c: New test.
4224
11bf311e 42252006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 4226
11bf311e 4227 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 4228
11bf311e 42292006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 4230
11bf311e
UD
4231 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
4232 jump table entries.
4233
42342006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4235
4236 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
4237 `clone' function to ensure proper unwinding stop of gdb.
4238 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4239
42402006-12-01 Ulrich Drepper <drepper@redhat.com>
4241
4242 * nscd/nscd.init: Remove obsolete and commented-out -S option
4243 handling.
4244
42452006-11-23 Jakub Jelinek <jakub@redhat.com>
4246
4247 [BZ #3514]
4248 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
4249
4250 [BZ #3515]
4251 * manual/string.texi (strtok): Remove duplicate paragraph.
4252
42532006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4254
4255 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
4256 libgcc not supporting `rflags' unwinding (register # >= 17).
4257
42582006-11-30 Jakub Jelinek <jakub@redhat.com>
4259
4260 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
4261 succeeded.
4262
42632006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
4264 Jakub Jelinek <jakub@redhat.com>
4265 Jan Kratochvil <jan.kratochvil@redhat.com>
4266
4267 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
4268 unwind information.
4269 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
4270 'restore_rt' even in the 'signal' directory.
4271 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 4272
b1a758f3
UD
42732006-11-27 Jakub Jelinek <jakub@redhat.com>
4274
4275 [BZ #3559]
4276 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
4277 malloc crashed. Don't allocate memory unnecessarily in each
4278 loop.
b1a758f3 4279
11bf311e 42802006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 4281
11bf311e 4282 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 4283
11bf311e 42842006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 4285
11bf311e 4286 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 4287
11bf311e 42882006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 4289
11bf311e
UD
4290 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
4291 __sysconf only after having tried to call getgroups32.
36c0a636 4292
11bf311e 42932006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 4294
11bf311e
UD
4295 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
4296 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 4297
11bf311e 42982006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 4299
11bf311e
UD
4300 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
4301 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
4302 (signmask): Add .size directive.
4303 (othermask): Add .type directive.
bef8927a 4304
11bf311e 43052006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 4306
11bf311e 4307 * po/nl.po: Update from translation team.
854d1124 4308
11bf311e 4309 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 4310
11bf311e 43112006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 4312
11bf311e
UD
4313 * nss/nss_files/files-alias.c (get_next_alias): Set line back
4314 to first_unused after parsing :include: file.
5c2af134 4315
32c075e1 43162006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 4317
11bf311e
UD
4318 * timezone/africa: Update from tzdata2006o.
4319 * timezone/antarctica: Likewise.
4320 * timezone/asia: Likewise.
4321 * timezone/australasia: Likewise.
4322 * timezone/backward: Likewise.
4323 * timezone/europe: Likewise.
4324 * timezone/iso3166.tab: Likewise.
4325 * timezone/northamerica: Likewise.
4326 * timezone/southamerica: Likewise.
4327 * timezone/zone.tab: Likewise.
4328
4329 * time/tzfile.c (__tzfile_read): Extend to handle new file format
4330 on machines with 64-bit time_t.
4331
4332 * timezone/checktab.awk: Update from tzcode2006o.
4333 * timezone/ialloc.c: Likewise.
4334 * timezone/private.h: Likewise.
4335 * timezone/scheck.c: Likewise.
4336 * timezone/tzfile.h: Likewise.
4337 * timezone/tzselect.ksh: Likewise.
4338 * timezone/zdump.c: Likewise.
4339 * timezone/zic.c: Likewise.
4340
4341 [BZ #3483]
4342 * elf/ldconfig.c (main): Call setlocale and textdomain.
4343 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4344
4345 [BZ #3480]
4346 * manual/argp.texi: Fix typos.
4347 * manual/charset.texi: Likewise.
4348 * manual/errno.texi: Likewise.
4349 * manual/filesys.texi: Likewise.
4350 * manual/lang.texi: Likewise.
4351 * manual/maint.texi: Likewise.
4352 * manual/memory.texi: Likewise.
4353 * manual/message.texi: Likewise.
4354 * manual/resource.texi: Likewise.
4355 * manual/search.texi: Likewise.
4356 * manual/signal.texi: Likewise.
4357 * manual/startup.texi: Likewise.
4358 * manual/stdio.texi: Likewise.
4359 * manual/sysinfo.texi: Likewise.
4360 * manual/syslog.texi: Likewise.
4361 * manual/time.texi: Likewise.
4362 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4363
4364 [BZ #3465]
4365 * sunrpc/clnt_raw.c: Minimal message improvements.
4366 * sunrpc/pm_getmaps.c: Likewise.
4367 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4368 * nis/nis_print_group_entry.c: Likewise.
4369 * locale/programs/repertoire.c: Likewise.
4370 * locale/programs/charmap.c: Likewise.
4371 * malloc/memusage.sh: Likewise.
4372 * elf/dl-deps.c: Likewise.
4373 * locale/programs/ld-collate.c: Likewise.
4374 * libio/vswprintf.c: Likewise.
4375 * malloc/memusagestat.c: Likewise.
4376 * sunrpc/auth_unix.c: Likewise.
4377 * sunrpc/rpc_main.c: Likewise.
4378 * nscd/cache.c: Likewise.
4379 * locale/programs/repertoire.c: Unify output messages.
4380 * locale/programs/charmap.c: Likewise.
4381 * locale/programs/ld-ctype.c: Likewise.
4382 * locale/programs/ld-monetary.c: Likewise.
4383 * locale/programs/ld-numeric.c: Likewise.
4384 * locale/programs/ld-time.c: Likewise.
4385 * elf/ldconfig.c: Likewise.
4386 * nscd/selinux.c: Likewise.
4387 * elf/cache.c: Likewise.
4388 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4389
5c2af134
UD
4390 [BZ #3451]
4391 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
4392 change atomic.
4393 (ceil): Likewise.
4394
11bf311e
UD
43952006-11-10 Jakub Jelinek <jakub@redhat.com>
4396
4397 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
4398 if N is one bigger than return value.
4399 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
4400 and l1 last arguments, if buf is defined, verify the return value
4401 equals to strlen (buf) and verify no byte beyond passed length
4402 is modified.
4403
44042006-11-10 Ulrich Drepper <drepper@redhat.com>
4405
4406 * po/sv.po: Update from translation team.
4407
37afcf79
UD
44082006-11-09 Ulrich Drepper <drepper@redhat.com>
4409
4410 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
4411 noinline attribute.
4412
44132006-11-10 Jakub Jelinek <jakub@redhat.com>
4414
4415 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
4416 noinline attribute.
4417
11bf311e
UD
4418 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
4419 Use __new_sys_siglist instead of _sys_siglist_internal as
4420 second macro argument.
4421 (_old_sys_siglist): Use declare_symbol_alias macro instead of
4422 strong_alias.
2692deea 4423
11bf311e
UD
44242006-11-09 Ulrich Drepper <drepper@redhat.com>
4425
4426 [BZ #3493]
4427 * posix/unistd.h (sysconf): Remove const attribute.
4428
4429 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
4430 temporary or deprecated addresses.
4431 Patch by Sridhar Samudrala <sri@us.ibm.com>.
4432
4433 * string/Makefile (tests): Add tst-strxfrm2.
4434 * string/tst-strxfrm2.c: New file.
4435
44362006-10-09 Jakub Jelinek <jakub@redhat.com>
4437
4438 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
4439 rather than r->r_brk.
2692deea
UD
4440
44412006-11-08 Jakub Jelinek <jakub@redhat.com>
4442
11bf311e
UD
4443 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
4444 optimization even if needed > n.
4445
2692deea
UD
4446 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
4447 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
4448 return false, otherwise return true.
4449 (cache_rpath): Return decompose_rpath return value.
4450
11bf311e
UD
44512006-11-07 Jakub Jelinek <jakub@redhat.com>
4452
4453 * include/libc-symbols.h (declare_symbol): Rename to...
4454 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
4455 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
4456 .size directive.
4457 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
4458 changes.
4459 * sysdeps/gnu/siglist.c: Likewise.
4460
44612006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
4462
4463 * sysdeps/powerpc/fpu/bits/mathinline.h
4464 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
4465 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
4466
44672006-11-05 Ulrich Drepper <drepper@redhat.com>
4468
4469 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
4470 Update handling of cache descriptor 0x49 for new models.
4471 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
4472 Likewise.
4473
9666e36c
UD
44742006-11-02 Jakub Jelinek <jakub@redhat.com>
4475
4476 * malloc/memusage.c (dest): Reset not_me back to false after
4477 printing statistics.
4478
11bf311e
UD
44792006-11-02 Ulrich Drepper <drepper@redhat.com>
4480
4481 * configure.in: Work around ld --help change and avoid -z relro
4482 test completely if the architecture doesn't care about security.
4483
44842006-11-01 Ulrich Drepper <drepper@redhat.com>
4485
4486 * po/sv.po: Update from translation team.
4487
44882006-10-31 Ulrich Drepper <drepper@redhat.com>
4489
4490 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
4491 generate compatibility version.
4492
44932006-10-29 Ulrich Drepper <drepper@redhat.com>
4494
4495 * configure.in: Relax -z relro requirement a bit.
4496
4497 * po/sv.po: Update from translation team.
4498
44992006-10-29 Jakub Jelinek <jakub@redhat.com>
4500
4501 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
4502 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
4503 * elf/dl-close.c (_dl_close_worker): Likewise.
4504 * elf/dl-open.c (_dl_open_worker): Likewise.
4505 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
4506
b2369ca3
UD
45072006-10-27 Ulrich Drepper <drepper@redhat.com>
4508
11bf311e
UD
4509 * configure.in: Require assembler support for visibility, compiler
4510 support for visibility and aliases, linker support for various -z
4511 options.
4512 * Makeconfig: Remove conditional code which now is unnecessary.
4513 * config.h.in: Likewise.
4514 * config.make.in: Likewise.
4515 * dlfcn/Makefile: Likewise.
4516 * elf/Makefile: Likewise.
4517 * elf/dl-load.c: Likewise.
4518 * elf/rtld.c: Likewise.
4519 * include/libc-symbols.h: Likewise.
4520 * include/stdio.h: Likewise.
4521 * io/Makefile: Likewise.
4522 * io/fstat.c: Likewise.
4523 * io/fstat64.c: Likewise.
4524 * io/fstatat.c: Likewise.
4525 * io/fstatat64.c: Likewise.
4526 * io/lstat.c: Likewise.
4527 * io/lstat64.c: Likewise.
4528 * io/mknod.c: Likewise.
4529 * io/mknodat.c: Likewise.
4530 * io/stat.c: Likewise.
4531 * io/stat64.c: Likewise.
4532 * libio/stdio.c: Likewise.
4533 * nscd/Makefile: Likewise.
4534 * stdlib/Makefile: Likewise.
4535 * stdlib/atexit.c: Likewise.
4536 * sysdeps/generic/ldsodefs.h: Likewise.
4537 * sysdeps/i386/dl-machine.h: Likewise.
4538 * sysdeps/i386/sysdep.h: Likewise.
4539 * sysdeps/i386/i686/memcmp.S: Likewise.
4540 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4541 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4542 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4543
4544 * Makerules: USE_TLS support is now default.
4545 * tls.make.c: Likewise.
4546 * csu/Versions: Likewise.
4547 * csu/libc-start.c: Likewise.
4548 * csu/libc-tls.c: Likewise.
4549 * csu/version.c: Likewise.
4550 * dlfcn/dlinfo.c: Likewise.
4551 * elf/dl-addr.c: Likewise.
4552 * elf/dl-cache.c: Likewise.
4553 * elf/dl-close.c: Likewise.
4554 * elf/dl-iteratephdr.c: Likewise.
4555 * elf/dl-load.c: Likewise.
4556 * elf/dl-lookup.c: Likewise.
4557 * elf/dl-object.c: Likewise.
4558 * elf/dl-open.c: Likewise.
4559 * elf/dl-reloc.c: Likewise.
4560 * elf/dl-support.c: Likewise.
4561 * elf/dl-sym.c: Likewise.
4562 * elf/dl-sysdep.c: Likewise.
4563 * elf/dl-tls.c: Likewise.
4564 * elf/ldconfig.c: Likewise.
4565 * elf/rtld.c: Likewise.
4566 * elf/tst-tls-dlinfo.c: Likewise.
4567 * elf/tst-tls1.c: Likewise.
4568 * elf/tst-tls10.h: Likewise.
4569 * elf/tst-tls14.c: Likewise.
4570 * elf/tst-tls2.c: Likewise.
4571 * elf/tst-tls3.c: Likewise.
4572 * elf/tst-tls4.c: Likewise.
4573 * elf/tst-tls5.c: Likewise.
4574 * elf/tst-tls6.c: Likewise.
4575 * elf/tst-tls7.c: Likewise.
4576 * elf/tst-tls8.c: Likewise.
4577 * elf/tst-tls9.c: Likewise.
4578 * elf/tst-tlsmod1.c: Likewise.
4579 * elf/tst-tlsmod13.c: Likewise.
4580 * elf/tst-tlsmod13a.c: Likewise.
4581 * elf/tst-tlsmod14a.c: Likewise.
4582 * elf/tst-tlsmod2.c: Likewise.
4583 * elf/tst-tlsmod3.c: Likewise.
4584 * elf/tst-tlsmod4.c: Likewise.
4585 * elf/tst-tlsmod5.c: Likewise.
4586 * elf/tst-tlsmod6.c: Likewise.
4587 * include/errno.h: Likewise.
4588 * include/link.h: Likewise.
4589 * include/tls.h: Likewise.
4590 * locale/global-locale.c: Likewise.
4591 * locale/localeinfo.h: Likewise.
4592 * malloc/arena.c: Likewise.
4593 * malloc/hooks.c: Likewise.
4594 * malloc/malloc.c: Likewise.
4595 * resolv/Versions: Likewise.
4596 * sysdeps/alpha/dl-machine.h: Likewise.
4597 * sysdeps/alpha/libc-tls.c: Likewise.
4598 * sysdeps/generic/ldsodefs.h: Likewise.
4599 * sysdeps/generic/tls.h: Likewise.
4600 * sysdeps/i386/dl-machine.h: Likewise.
4601 * sysdeps/ia64/dl-machine.h: Likewise.
4602 * sysdeps/ia64/libc-tls.c: Likewise.
4603 * sysdeps/mach/hurd/fork.c: Likewise.
4604 * sysdeps/mach/hurd/i386/tls.h: Likewise.
4605 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
4606 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
4607 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4608 * sysdeps/s390/libc-tls.c: Likewise.
4609 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4610 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4611 * sysdeps/sh/dl-machine.h: Likewise.
4612 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4613 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4614 * sysdeps/x86_64/dl-machine.h: Likewise.
4615
131c4428
UD
4616 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
4617 split out locking and parameter checking.
4618 (_dl_close): Call _dl_close_worker after locking and checking.
4619 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
4620 _dl_close.
ffd0e1b7
UD
4621 * elf/Makefile: Add rules to build and run tst-thrlock.
4622 * elf/tst-thrlock.c: New file.
131c4428 4623
11bf311e
UD
4624 [BZ #3426]
4625 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
4626 reality.
4627
b2369ca3
UD
4628 [BZ #3429]
4629 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 4630 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
4631 the asserts inside the lock region.
4632 Patch mostly by Suzuki <suzuki@in.ibm.com>.
4633
11bf311e
UD
46342006-10-27 Jakub Jelinek <jakub@redhat.com>
4635
4636 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
4637 argument.
4638 (_dl_lookup_symbol_x): Adjust caller.
4639
4640 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
4641 _ns_global_scope.
4642 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
4643
4644 * elf/dl-libc.c: Revert l_scope name changes.
4645 * elf/dl-load.c: Likewise.
4646 * elf/dl-object.c: Likewise.
4647 * elf/rtld.c: Likewise.
4648 * elf/dl-close.c (_dl_close): Likewise.
4649 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
4650 always use __rtld_mrlock_{change,done}. Always free old scope list
4651 here if not l_scope_mem.
4652 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
4653 change. Never free scope list here. Just __rtld_mrlock_lock before
4654 the lookup and __rtld_mrlock_unlock it after the lookup.
4655 * elf/dl-sym.c: Likewise.
4656 * include/link.h (struct r_scoperec): Remove.
4657 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
4658 with l_scope_mem and l_scoperec_lock with l_scope_lock.
4659
46602006-10-25 Ulrich Drepper <drepper@redhat.com>
4661
4662 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
4663
46642006-10-18 Ulrich Drepper <drepper@redhat.com>
4665
4666 * configure.in: Disable building profile libraries by default.
4667
609cf614
UD
46682006-10-17 Jakub Jelinek <jakub@redhat.com>
4669
4670 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
4671 as signed longs, check for x_base + pos overflow.
4672 * sunrpc/Makefile (tests): Add tst-xdrmem2.
4673 * sunrpc/tst-xdrmem2.c: New test.
4674
11bf311e
UD
46752006-10-18 Ulrich Drepper <drepper@redhat.com>
4676
4677 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
4678 _dl_lookup_symbol_x code.
4679
46802006-10-17 Jakub Jelinek <jakub@redhat.com>
4681
4682 * elf/dl-runtime.c: Include sysdep-cancel.h.
4683 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
4684 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
4685 instead of catomic_* macros.
4686 * elf/dl-sym.c: Include sysdep-cancel.h.
4687 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
4688 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
4689 * elf/dl-close.c: Include sysdep-cancel.h.
4690 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
4691 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
4692 * elf/dl-open.c: Include sysdep-cancel.h.
4693 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
4694 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
4695
46962006-10-17 Jakub Jelinek <jakub@redhat.com>
4697
4698 [BZ #3313]
4699 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
4700 fastbin rather than end of fastbin array.
4701
47022006-10-18 Ulrich Drepper <drepper@redhat.com>
4703
4704 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
4705 body macro.
4706 * sysdeps/x86_64/bits/atomic.h
4707 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
4708 (catomic_decrement): Use correct body macro.
4709
47102006-10-17 Jakub Jelinek <jakub@redhat.com>
4711
4712 * include/atomic.h: Add a unique prefix to all local variables
4713 in macros.
4714 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
4715
4a85a8ee
UD
47162006-10-16 Ulrich Drepper <drepper@redhat.com>
4717
4718 [BZ #3369]
4719 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
4720 and 7.
4721
11bf311e
UD
47222006-10-14 Ulrich Drepper <drepper@redhat.com>
4723
4724 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
4725
ff8d96be
UD
47262006-10-13 Ulrich Drepper <drepper@redhat.com>
4727
11bf311e
UD
4728 [BZ #3313]
4729 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
4730 determine highest fast bin to consolidate, always look into all of
4731 them.
4732 (do_check_malloc_state): Only require for empty bins for large
4733 sizes in main arena.
4734
4735 * libio/stdio.h: Add more __wur attributes.
4736
ff8d96be
UD
4737 * elf/dl-minimal.c (realloc): Optimize last patch.
4738
90a0991a
UD
47392006-10-12 Richard Sandiford <richard@codesourcery.com>
4740
4741 [BZ #3352]
4742 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
4743 and use memcpy() if it does.
ff8d96be 4744
11bf311e
UD
47452006-11-12 Andreas Jaeger <aj@suse.de>
4746
4747 [BZ #2510]
4748 * manual/search.texi (Hash Search Function): Clarify.
4749 (Array Search Function): Clarify.
4750
47512006-11-12 Joseph Myers <joseph@codesourcery.com>
4752
4753 [BZ #2830]
4754 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
4755 shifting.
4756 * math/atest-exp2.c (read_mpn_hex): Likewise.
4757 * math/atest-sincos.c (main): Likewise.
4758
37fb7595
UD
47592006-10-11 Ulrich Drepper <drepper@redhat.com>
4760
11bf311e
UD
4761 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
4762 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
4763 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
4764 version GLIBC_2.6.
4765 * Versions.def: Add GLIBC_2.6 for libc.
4766
46c38bd7
UD
4767 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
4768
11bf311e
UD
4769 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
4770
47712006-10-11 Jakub Jelinek <jakub@redhat.com>
4772
4773 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
4774
4775 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
4776
4777 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
4778 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
4779
47802006-10-11 Ulrich Drepper <drepper@redhat.com>
4781
4782 * include/atomic.c: Define catomic_* operations.
4783 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
4784 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
4785 * malloc/memusage.c: Likewise.
4786 * gmon/mcount.c: Likewise.
4787 * elf/dl-close.c: Likewise.
4788 * elf/dl-open.c: Likewise.
4789 * elf/dl-profile.c: Likewise.
4790 * elf/dl-sym.c: Likewise.
4791 * elf/dl-runtime.c: Likewise.
4792 * elf/dl-fptr.c: Likewise.
4793 * resolv/res_libc.c: Likewise.
4794
2a6ee549
UD
47952006-10-10 Ulrich Drepper <drepper@redhat.com>
4796
4797 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
4798 components which lack them.
4799
4800 * nis/nis_subr.c (nis_getnames): Make sure that we always return
4801 at least one entry consisting of the parameter concatenated with
4802 the domain.
4803
11bf311e 48042006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 4805
11bf311e
UD
4806 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
4807 * sysdeps/mach/hurd/futimes.c: Likewise.
4808 * sysdeps/mach/hurd/lutimes.c: Likewise.
4809
48102006-10-09 Ulrich Drepper <drepper@redhat.com>
4811 Jakub Jelinek <jakub@redhat.com>
4812
4813 Implement reference counting of scope records.
4814 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
4815 from the list in objects which remain. Always allocate new scope
4816 record.
4817 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
4818 don't resize, allocate a new one.
4819 * elf/dl-runtime.c: Update reference counters before using a scope
4820 array.
4821 * elf/dl-sym.c: Likewise.
4822 * elf/dl-libc.c: Adjust for l_scope name change.
4823 * elf/dl-load.c: Likewise.
4824 * elf/dl-object.c: Likewise.
4825 * elf/rtld.c: Likewise.
4826 * include/link.h: Include <rtld-lowlevel.h>. Define struct
4827 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
4828 Add l_scoperec_lock.
4829 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
4830 * sysdeps/generic/rtld-lowlevel.h: New file.
4831
4832 * include/atomic.h: Rename atomic_and to atomic_and_val and
4833 atomic_or to atomic_or_val. Define new macros atomic_and and
4834 atomic_or which do not return values.
4835 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
4836 Various cleanups.
4837 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4838
4839 * po/sv.po: Update from translation team.
4840
48412006-10-07 Ulrich Drepper <drepper@redhat.com>
4842
4843 * Versions.def: Add GLIBC_2.6 to libpthread.
4844
4845 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
4846 (versioned_symbol): Likewise.
4847 (compat_symbol): Likewise.
4848
4849 * po/tr.po: Update from translation team.
feb87ad1 4850
4df92d57
UD
48512006-10-06 Ulrich Drepper <drepper@redhat.com>
4852
11bf311e
UD
4853 * nis/Banner: Removed. It's been integral part forever and the
4854 author info is incomplete anyway.
4855 * libio/Banner: Likewise.
4856
4df92d57
UD
4857 * nis/nis_table.c (nis_list): If __follow_path fails in the new
4858 code, make sure the nis_freeresult call doesn't crash and that the
4859 result is reported correctly.
4860
68361572
UD
48612006-09-27 Jakub Jelinek <jakub@redhat.com>
4862
4863 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
4864 when callback is NULL.
4865
4866 * nis/Versions (libnss_nisplus): Add
4867 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
4868 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
4869 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
4870 _nss_create_tablename): Rename to...
4871 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
4872 ... these. No longer static.
4873 (internal_setgrent): Adjust users.
4874 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
4875 Don't use locking around _nss_grp_create_tablename call.
4876 * nis/nss_nisplus/nisplus-initgroups.c: New file.
4877
11bf311e
UD
48782006-10-06 Ulrich Drepper <drepper@redhat.com>
4879
4880 * version.h (VERSION): Bump to 2.5.90 for new development tree.
4881
3a4e0609
UD
48822006-10-06 Andreas Jaeger <aj@suse.de>
4883
4884 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
4885
48862006-10-06 Ulrich Drepper <drepper@redhat.com>
4887
4888 * po/pl.po: Update from translation team.
4889
4890 * nscd/nscd.c (main): Fix typo in message.
4891 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
4892
97e57dee
UD
48932006-10-02 Jakub Jelinek <jakub@redhat.com>
4894
4895 [BZ #3291]
4896 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4897 errno.h, signal.h, unistd.h and sysdep-cancel.h.
4898 (__sigprocmask): Define.
4899
768027a4
UD
49002006-10-02 Ulrich Drepper <drepper@redhat.com>
4901
4902 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
4903 used.
4904
0b25a49a
UD
49052006-10-02 Jakub Jelinek <jakub@redhat.com>
4906
4907 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
4908 in oldtotal and newtotal calculation.
4909 * nscd/nscd-client.h (struct mapped_database): Add datasize
4910 field.
4911 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
4912 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
4913 increased.
4914 (__nscd_cache_search): Add checks to make sure we never reference
4915 data beyond the current mapping.
4916
a1286745
UD
49172006-10-02 Dmitry V. Levin <ldv@altlinux.org>
4918
d4ed7561
UD
4919 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
4920 variables const to avoid compiler warnings.
4921
a1286745
UD
4922 * io/fts.c (fts_close): Remove redundant checks.
4923 (fts_build): Likewise.
4924 (fts_palloc): Likewise.
4925
4926 * manual/message.texi (Advanced gettext functions,
4927 Using gettextized software): Fix typos.
4928
f01e4069
UD
49292006-09-30 Ulrich Drepper <drepper@redhat.com>
4930
4931 * posix/glob.c (glob_in_dir): Add some comments and asserts to
4932 explain why there are no leaks.
4933
154619b5
UD
49342006-09-29 Ulrich Drepper <drepper@redhat.com>
4935
690c3947
UD
4936 * libio/wmemstream.c: Include <wchar.h>.
4937 * libio/bug-wmemstream1.c: Likewise.
4938 * libio/tst-wmemstream1.c: Likewise.
4939 * libio/tst-wmemstream2.c: Likewise.
4940
88cc61e8
UD
4941 * version.h (RELEASE): Bump to 2.5.
4942 * README: Regenerated.
4943
a70c18b0
UD
4944 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
4945
154619b5
UD
4946 [BZ #3273]
4947 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
4948 found no group members.
4949 Patch by Petr Baudis.
4950
49512006-09-29 Jakub Jelinek <jakub@redhat.com>
4952
4953 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
4954 assert bootstrap_map.l_tls_modid is zero.
4955 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
4956 if USE___THREAD.
4957
1c31aa79
UD
49582006-09-27 Ulrich Drepper <drepper@redhat.com>
4959
4960 * libio/stdio.h: Move open_wmemstream prototype to ...
4961 * wcsmbs/wchar.h: ... here.
4962
f1122ec3
UD
49632006-09-25 Jakub Jelinek <jakub@redhat.com>
4964
4965 [BZ #3252]
4966 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
4967 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
4968 __{,l}chown to handle the rest.
4969 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
4970 fchownat syscall and __ASSUME_32BITUIDS case inline, call
4971 __{,l}chown to handle the rest.
4972 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
4973 i386/fchownat.c.
4974 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
4975 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
4976
4977 [BZ #3253]
4978 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4979 time, rather allocate increasingly bigger arrays of pointers, if
4980 possible with alloca, if too large with malloc.
4981
49822006-09-24 Jakub Jelinek <jakub@redhat.com>
4983
4984 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
4985
4986 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
4987
457b559e
UD
49882006-09-24 Ulrich Drepper <drepper@redhat.com>
4989
4990 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
4991 home addresses.
4992 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
4993 IFA_F_HOMEADDRESS flag for interfaces.
4994 * include/ifaddrs.h (struct in6addrinfo): Define
4995 in6ai_homeaddress.
4996
4a132246
UD
49972006-09-21 Jakub Jelinek <jakub@redhat.com>
4998
4999 [BZ #3225]
5000 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
5001 PTR_DEMANGLE3): Define.
5002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
5003 PTR_DEMANGLE3): Likewise.
5004 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
5005 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5006 Likewise.
5007 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
5008
c69136ae
UD
50092006-09-20 Jakub Jelinek <jakub@redhat.com>
5010
5011 * po/libc.pot: Regenerated.
5012 * po/be.po: Updated.
5013 * po/ca.po: Likewise.
5014 * po/cs.po: Likewise.
5015 * po/da.po: Likewise.
5016 * po/de.po: Likewise.
5017 * po/el.po: Likewise.
5018 * po/en_GB.po: Likewise.
5019 * po/es.po: Likewise.
5020 * po/fi.po: Likewise.
5021 * po/fr.po: Likewise.
5022 * po/gl.po: Likewise.
5023 * po/hr.po: Likewise.
5024 * po/hu.po: Likewise.
5025 * po/ja.po: Likewise.
5026 * po/ko.po: Likewise.
5027 * po/nb.po: Likewise.
5028 * po/nl.po: Likewise.
5029 * po/pl.po: Likewise.
5030 * po/pt_BR.po: Likewise.
5031 * po/ru.po: Likewise.
5032 * po/rw.po: Likewise.
5033 * po/sk.po: Likewise.
5034 * po/sv.po: Likewise.
5035 * po/tr.po: Likewise.
5036 * po/zh_CN.po: Likewise.
5037 * po/zh_TW.po: Likewise.
5038
5039 [BZ #3137]
5040 * iconv/iconv_prog.c (main): Fix spelling in error message.
5041 * iconv/iconvconfig.c (main): Likewise.
5042 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
5043 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
5044 * locale/programs/localedef.c (main): Likewise.
5045 * locale/programs/repertoire.c (repertoire_read): Likewise.
5046 * timezone/zdump.c (main): Likewise.
5047 * nscd/connections.c (handle_request): Fix spelling in log message.
5048 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
5049
83b3108c
UD
50502006-09-20 Ulrich Drepper <drepper@redhat.com>
5051
5052 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
5053 interfaces.
5054
89210b4c
AJ
50552006-09-20 Andreas Jaeger <aj@suse.de>
5056
5057 * math/libm-test.inc (lrint_test_upward): Fix typo.
5058
6624dbc0
UD
50592006-06-17 Joseph S. Myers <joseph@codesourcery.com>
5060
5061 [BZ #2592]
5062 * math/libm-test.inc (lrint_test_tonearest): New function.
5063 (lrint_test_towardzero): New function.
5064 (lrint_test_downward): New function.
5065 (lrint_test_upward): New function.
5066 (main): Run these new tests.
5067 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
5068 of values near to 0.
5069 (two52): Use double not long double.
5070 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
5071 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
5072 (two23): Use float not double.
5073 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
5074 (two23): Use float not double.
5075 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
5076 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
5077 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
5078 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
5079
60cb50c7
UD
50802006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5081
5082 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
5083 Cast sp to unsigned long to avoid compiler warning.
5084 Use __makecontext_ret function instead of a trampoline on the stack.
5085 (__makecontext_ret): New function.
5086 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
5087
33315ced
UD
50882006-09-19 Jakub Jelinek <jakub@redhat.com>
5089
5090 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
5091 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
5092 bits.
5093
1ee2ff20
UD
50942006-09-19 Ulrich Drepper <drepper@redhat.com>
5095
5096 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
5097 sure no reference to the unloaded map's search list remains in the
5098 dependency's scope.
5099
51002006-09-16 Jakub Jelinek <jakub@redhat.com>
5101
5102 * elf/Makefile: Add rules to build and run unload7 test.
5103 * elf/unload7.c: New test.
5104 * elf/unload7mod1.c: New file.
5105 * elf/unload7mod2.c: New file.
5106
0466106e
UD
51072006-09-18 Jakub Jelinek <jakub@redhat.com>
5108
5109 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
5110 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
5111 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5112 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
5113 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5114 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
5115 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5116 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
5117 PTRACE_GETEVENTMSG): Likewise.
5118 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
5119 values.
5120
9c316a45
UD
51212006-09-17 Mike Frysinger <vapier@gentoo.org>
5122
0466106e
UD
5123 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
5124 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5125 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
5126 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
5127
51282006-09-16 Jakub Jelinek <jakub@redhat.com>
5129
5130 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
5131 write '\0' to the fd.
5132 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
5133 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
5134 Change regs to unsigned long pointer from unsigned int, fix fscr
5135 offset.
5136
fb146a76
UD
51372006-09-14 Jakub Jelinek <jakub@redhat.com>
5138
5139 * io/Makefile (CFLAGS-fstatat.c): Set.
5140 (CFLAGS-fstatat64.c): Likewise.
5141 (CFLAGS-mknodat.c): Likewise.
5142
5143 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
5144 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5145 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
5146 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
5147
4cd3633d
UD
51482006-09-14 Jakub Jelinek <jakub@redhat.com>
5149 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 5150
4cd3633d
UD
5151 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
5152 names to the beginning. Rename "cell" to "cellbe".
5153 (_dl_powerpc_platforms): New.
5154 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
5155 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
5156 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
5157 (_DL_HWCAP_PLATFORM): Define to new mask.
5158 (_dl_platform_string, _dl_string_platform): New functions.
5159 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
5160 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
5161
30aa5785
UD
51622006-09-12 Jakub Jelinek <jakub@redhat.com>
5163
5164 [BZ #2526]
5165 * README.libm: Fix a thinko in sqrt algorithm description.
5166
5167 [BZ #3143]
5168 * manual/string.texi (argz_delete): Fix prototype.
5169 Patch by <alpt@freaknet.org>.
5170
51712006-08-26 Joseph Myers <joseph@codesourcery.com>
5172
5173 [BZ #3138]
5174 * io/test-lfs.c (do_prepare): Give name_len type size_t.
5175 * io/tst-fcntl.c (do_prepare): Likewise.
5176 * posix/tst-exec.c (do_prepare): Likewise.
5177 * posix/tst-preadwrite.c (do_prepare): Likewise.
5178 * posix/tst-spawn.c (do_prepare): Likewise.
5179 * posix/tst-truncate.c (do_prepare): Likewise.
5180 * rt/tst-aio.c (do_prepare): Likewise.
5181 * rt/tst-aio64.c (do_prepare): Likewise.
5182 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
5183 size_t.
5184
d26d01d1
UD
51852006-09-09 Ulrich Drepper <drepper@redhat.com>
5186
41aba3d7
UD
5187 [BZ #2821]
5188 * time/mktime.c (guess_time_tm): Fix overflow detection.
5189 * time/Makefile (tests): Add bug-mktime1.
5190 * time/bug-mktime1.c: New file.
5191
eaa51b47 5192 [BZ #3189, #3188]
d26d01d1 5193 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 5194 (mremap): Likewise.
d26d01d1 5195
ba40cc15
UD
51962006-09-07 Jakub Jelinek <jakub@redhat.com>
5197
2b6a801e
UD
5198 [BZ #1006]
5199 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
5200 Ensure relocation doesn't clobber any bits outside of the
5201 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
5202 R_SPARC_HI22 and R_SPARC_H44.
5203
469615bd
UD
5204 [BZ #2775]
5205 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
5206 (long) (MINSIZE + nb - old_size) is positive.
5207
5208 * malloc/arena.c (grow_heap): When growing bail even if new_size
5209 is negative.
5210
ba40cc15
UD
5211 [BZ #3155]
5212 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
5213 stack below r1.
5214
243b9ac1
UD
52152006-09-06 Jakub Jelinek <jakub@redhat.com>
5216
ba40cc15
UD
5217 * posix/regex_internal.c (re_string_reconstruct): Handle
5218 offset < pstr->valid_raw_len && pstr->offsets_needed case.
5219 Ensure no bytes read before raw_mbs array. Pass a saved copy of
5220 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5221 re_string_context_at.
5222 * posix/Makefile: Add rules to build and run bug-regex26 test.
5223 * posix/bug-regex26.c: New test.
5224
243b9ac1
UD
5225 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
5226 rather than col_sym_free. Move seqp declaration earlier.
5227
5228 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
5229
d052233c
UD
52302006-09-05 Jakub Jelinek <jakub@redhat.com>
5231
5232 * nscd/initgrcache.c (addinitgroupsX): Move any_success
5233 decl before first goto out.
5234
71213dc2
UD
52352006-09-04 Jakub Jelinek <jakub@redhat.com>
5236
5237 * Makerules (shlib.lds): If have-hash-style, put .hash section
5238 at the end of the RO segment.
5239
52402006-09-04 Ulrich Drepper <drepper@redhat.com>
5241
5242 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
5243 style hash table format is used.
5244
03eeff83
UD
52452006-09-04 Jakub Jelinek <jakub@redhat.com>
5246
5247 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
5248 randomization rather than before.
5249 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
5250
b80770b2
UD
52512006-08-31 Jakub Jelinek <jakub@redhat.com>
5252
ba40cc15 5253 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
5254
5255 * malloc/malloc.c (_int_malloc): Use full list insert and not
5256 shortcut which assumes the list is empty for large requests
5257 too.
5258
5259 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
5260
99ea5991
UD
52612006-08-30 Jakub Jelinek <jakub@redhat.com>
5262
5263 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
5264 and offout arguments to the prototype.
5265 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
5266 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
5267 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
5268 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
5269 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
5270 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
5271 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
5272 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
5273
4004a0a5
UD
52742006-08-28 Ulrich Drepper <drepper@redhat.com>
5275
950398e1
UD
5276 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
5277
4004a0a5
UD
5278 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
5279 dlopen parameters.
5280
6e310111
UD
52812006-08-28 Jakub Jelinek <jakub@redhat.com>
5282
5283 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
5284 only if herrno is NETDB_INTERNAL. Handle errors other than
5285 ERANGE outside of the loops, handle TRY_AGAIN.
5286
5287 * locale/programs/ld-ctype.c (translit_flatten): Issue error
5288 if other's ctype category was missing.
5289 * locale/programs/ld-collate.c (collate_read): Return if
5290 copy_locale's collate category is missing.
5291
07014fca
UD
52922006-08-27 Ulrich Drepper <drepper@redhat.com>
5293
5294 [BZ #2684]
5295 * malloc/malloc.c (public_rEALLOc): Try harder by using other
5296 arenas if allocation failed.
5297 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
5298
71663747
UD
52992006-08-26 Ulrich Drepper <drepper@redhat.com>
5300
41999a1a
UD
5301 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
5302 waste bins[0..1].
5303 (malloc_state): Reduce bins size by 2.
5304 (_int_malloc): Fix test for large enough buffer for early termination.
5305 When no unsorted block matches perfectly and an exiting block has
5306 to be split, use full list insert and not shortcut which assumes
5307 the list is empty.
5308
71663747
UD
5309 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
5310 failure.
5311
93b53ca2
UD
53122006-08-24 Ulrich Drepper <drepper@redhat.com>
5313
f5a82772
UD
5314 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
5315 do anything.
5316
2ac9ca73
UD
5317 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
5318 symbol require exact match (these are PLTs).
5319 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
5320 (_dl_ppc64_addr_sym_match): Likewise.
5321
93b53ca2
UD
5322 [BZ #2683]
5323 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
5324 If symbol has a value use it.
5325 * elf/tst-dladdr1.c: New file.
5326 * elf/Makefile: Add rules to build and run tst-addr1.
5327
7463d5cb
UD
53282006-08-24 Jakub Jelinek <jakub@redhat.com>
5329
5330 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
5331 keeps failing and heap growth or new heap creation isn't
5332 successful either.
5333 * malloc/tst-malloc.c (main): Add new tests.
5334
542a6f62
UD
53352006-08-24 Ulrich Drepper <drepper@redhat.com>
5336
5337 [BZ #2734]
5338 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
5339 as in the x86-64 code to use bswap.
5340
aa2c6b6d
UD
53412006-05-21 Joseph S. Myers <joseph@codesourcery.com>
5342
24982798 5343 [BZ #2680]
aa2c6b6d
UD
5344 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
5345 __USE_UNIX98.
5346 * posix/bits/unistd.h: Likewise.
5347
59776aef
UD
53482006-05-15 Mike Frysinger <vapier@gentoo.org>
5349
5350 [BZ #2751]
5351 * string/strchr.c: Add cast to avoid warning.
5352
e404fb16
UD
53532006-08-21 Ulrich Drepper <drepper@redhat.com>
5354
5355 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 5356 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
5357 limit is needed to avoid the exploding of the address space
5358 requirement for secondary heaps.
5359 * malloc/arena.c (HEAP_MAX_SIZE): Define using
5360 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
5361
376e973a
UD
53622006-07-30 Joseph S. Myers <joseph@codesourcery.com>
5363
5364 [BZ #3018]
5365 * Makerules (depfiles): Handle extra-test-objs the same as
5366 extra-objs.
5367 (common-mostlyclean): Likewise.
5368 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
5369 instead.
5370 * elf/Makefile (extra-objs): Likewise.
5371 * stdlib/Makefile (extra-objs): Likewise.
5372
240c62a7
UD
53732006-08-14 Eric Blake <ebb9@byu.net>
5374
5375 [BZ #3044]
5376 * misc/error.h: Assume C89 or better.
5377 * misc/error.c: Likewise.
5378
3997b7c4
UD
53792006-08-21 Ulrich Drepper <drepper@redhat.com>
5380
5381 [BZ #3040]
5382 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
5383 __ASSUME_ATFCTS is defined.
5384
8a6537b0
UD
53852006-08-19 Ulrich Drepper <drepper@redhat.com>
5386
72320021
UD
5387 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
5388 to sort in each call.
5389
ed3691ba
UD
5390 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
5391 is empty simply return and use next service.
5392 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
5393
8a6537b0
UD
5394 * locale/programs/charmap.c (charmap_read): Add new parameter. It
5395 tells us when not finding a charmap file is an error.
5396 * locale/programs/charmap.h: Adjust charmap_read prototype.
5397 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
5398 cannot find a charmap.
5399 * locale/programs/localedef.c (main): Adjust charmap_read call.
5400
ad2a3c07
UD
54012006-08-15 Jakub Jelinek <jakub@redhat.com>
5402
5403 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
5404 sysdeps/posix/pause.c implementation instead.
5405
54062006-08-09 Jakub Jelinek <jakub@redhat.com>
5407
5408 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
5409 to EPERM.
5410
f17efcb4
UD
54112006-08-13 Andreas Schwab <schwab@suse.de>
5412
5413 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
5414 Don't clobber caller's LRSAVE.
5415 (_dl_prof_resolve): Likewise.
5416
107b8a92
UD
54172006-08-14 Ulrich Drepper <drepper@redhat.com>
5418
5419 [BZ #1996]
5420 * libio/memstream.c (open_memstream): Allocate initial buffer with
5421 calloc.
5422 * libio/wmemstream.c (open_wmemstream): Likewise.
5423 * libio/strops.c: Pretty printing.
5424 (_IO_str_overflow): Clear uninitialized part of the new buffer.
5425 (enlarge_userbuf): New function.
5426 (_IO_str_seekoff): Call it if seek position is larger than current
5427 buffer.
5428 * libio/wstrops.c: Likewise.
5429 * libio/vasprintf.c: Add comment as to why we do not have to use
5430 calloc instead of malloc to allocate initial buffer.
5431 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
5432 * libio/bug-memstream1.c: New file.
5433 * libio/bug-wmemstream1.c: New file.
5434
fa3ac53f
UD
54352006-08-13 Ulrich Drepper <drepper@redhat.com>
5436
89993734
UD
5437 * libio/wstrops.c: Remove dead macro definitions and comments.
5438 * libio/strops.c: Likewise.
5439
fa3ac53f
UD
5440 [BZ #2764]
5441 * login/utmpname.c (__utmpname): Remove unnecessary test.
5442
f99ed760
UD
54432006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
5444
5445 [BZ #2832]
5446 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
5447 0s from integers.
5448
54492006-08-13 Ulrich Drepper <drepper@redhat.com>
5450
5451 [BZ #2987]
5452 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
5453 for CPU clocks.
5454 * sysdeps/unix/clock_settime.c: Add support for platform-specific
5455 setting of CPU clocks.
5456
4c3f81d0
UD
54572006-06-23 Paul Eggert <eggert@cs.ucla.edu>
5458
5459 [BZ #2841]
5460 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
5461 since C99 requires the result to promote to 'int' when uint_least8_t
5462 and uint_least16_t promote to 'int'.
5463
cd8e60ce
UD
54642006-08-12 Ulrich Drepper <drepper@redhat.com>
5465
9a5c46e8
UD
5466 [BZ #3013]
5467 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
5468 lenght of one output field, correct bitmask creation.
5469 * locale/programs/ld-time.c: Add alignment.
5470
cd8e60ce
UD
5471 [BZ #2997]
5472 * misc/error.c: Add space between program name and message if file
5473 name is missing.
5474
9a528884
UD
54752006-08-03 Eric Blake <ebb9@byu.net>
5476
5477 [BZ #2998]
5478 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
5479
1d05c2fb
UD
54802006-08-09 Ulrich Drepper <drepper@redhat.com>
5481
0c1c6c6c
UD
5482 * malloc/memusagestat.c: Silence warnings.
5483
1d05c2fb
UD
5484 * malloc/malloc.c: Dynamically size mmap treshold if the program
5485 frees mmaped blocks.
5486 Patch by Valerie Henson and Arjan van de Ven.
5487
2d1e6277
UD
54882006-08-08 Jakub Jelinek <jakub@redhat.com>
5489
be7ffd91
UD
5490 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
5491 __USE_GNU.
5492
2d1e6277
UD
5493 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
5494 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
5495 (DEF): Don't put the var into .gnu.linkonce.r.* section.
5496 Only provide var definitions in strtol_l (or for *ull*
5497 in strtoll_l).
5498
5499 * stdio-common/bug16.c (tests): New array.
5500 (do_tests): Allow the first hexadecimal digit
5501 to be 1, 2, 4 or 8. Do 3 additional tests.
5502
5503 * sysdeps/s390/fpu/libm-test-ulps: Update.
5504
5505 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
5506 fchownat syscall if available.
5507 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
5508 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
5509 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
5510
d0ccde25
UD
55112006-08-07 Ulrich Drepper <drepper@redhat.com>
5512
5513 * nis/nis_xdr.c: Avoid some function calls.
5514
13a0293d 55152006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 5516 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
5517
5518 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
5519 short cut if only one name component is stripped away.
5520
bd1ebae0
UD
55212006-08-07 Ulrich Drepper <drepper@redhat.com>
5522
5523 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 5524 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
5525 (first_shoot): Add search_parent_first parameter. Only if it is set
5526 search parent server first.
5527 If directory for table found through cold start cache is not the same
5528 as referenced in the cache, don't use it.
5529 (__nisfind_server): Take additional parameter. Pass it on to
5530 first_shoot.
5531 (__prepare_niscall): Adjust __nisfind_server call.
5532 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
5533 * nis/nis_table.c: Adjust __nisfind_server call.
5534 * nis/nis_lookup.c: Likewise.
5535 (nis_lookup): Don't loop endlessly if name is reduced to ".".
5536
f1762c0c
UD
55372006-08-03 Ulrich Drepper <drepper@redhat.com>
5538
fe710250
UD
5539 [BZ #2182]
5540 * math/s_cacosh.c: Return values from positive branch.
5541 * math/s_cacoshf.c: Likewise.
5542 * math/s_cacoshl.c: Likewise.
5543
a5852807
UD
5544 [BZ #2883]
5545 * sysvipc/sys/msg.h: Change return value to ssize_t.
5546 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
5547 * sysvipc/msgrcv.c: Likewise.
5548 * include/sys/msg.h: Likewise.
39571a13 5549
6c215a8d
UD
5550 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
5551 test introduced in patch for bz #661.
39571a13 5552 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 5553 element for NEWGROUPS.
6c215a8d 5554
9c06eb66
UD
5555 [BZ #2908]
5556 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
5557 'f', use '1' as leading digit not '\1'.
5558 * stdio-common/Makefile (tests): Add bug16.
5559 * stdio-common/bug16.c: New file.
5560
5561 [BZ #2914]
5562 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
5563 and don't try to open it. The patch introducing the macro
5564 contained a bug and used the same file name as the new file
5565 instead of using /var/adm/hostid. Nobody complaint so I'm taking
5566 this out completely.
5567
5568 [BZ #2926]
5569 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
5570 Patch by Jerry James <Jerry.James@usu.edu>.
5571
f1762c0c
UD
5572 * rt/Makefile (tests): Add tst-clock2.
5573 * rt/tst-clock2.c: New file.
5574
5575 [BZ #2978]
5576 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
5577 function and its parameters and pass it to new thread.
5578 (__gai_notify): Add support for alternative waiting for completion.
5579 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
5580 waiting for completion.
5581 * resolv/getaddrinfo_a.c: Likewise.
5582 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
5583 waiting for completion is used.
5584 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
5585 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
5586 * resolv/gai_error.c: Likewise.
5587 * resolv/gai_sigqueue.c: Likewise.
5588
83ae6b40
RM
55892006-08-02 Thomas Schwinge <tschwinge@gnu.org>
5590
0e4e62fe 5591 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 5592 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 5593
82ee37c5
UD
55942006-06-23 Joseph Myers <joseph@codesourcery.com>
5595
5596 [BZ #2980]
f1762c0c 5597 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
5598
55992006-08-02 Ulrich Drepper <drepper@redhat.com>
5600
5601 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
5602 walk them instead of the symbol table.
5603
7bb1b2c9
UD
56042006-08-01 Ulrich Drepper <drepper@redhat.com>
5605
f13bfdd0 5606 [BZ #2098]
fbbc73b3
UD
5607 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
5608 status of NSS calls, not the number of returned entries.
5609
a4518922
UD
5610 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
5611 request_key, keyctl.
7bb1b2c9 5612
b06e7e9a
UD
56132006-07-31 Ulrich Drepper <drepper@redhat.com>
5614
5615 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
5616
f1227969
UD
56172006-07-16 Jeff Bailey <jbailey@ubuntu.com>
5618
5619 * elf/tst-auditmod1.c: Fix typo in #error.
5620
82ae2712
UD
56212006-07-31 Ulrich Drepper <drepper@redhat.com>
5622
f1227969
UD
5623 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
5624
82ae2712
UD
5625 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
5626
a1260d92
UD
56272006-07-20 Adam Nemet <anemet@caviumnetworks.com>
5628
5629 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 5630 that the directory is empty even on non-POSIX filesystems.
a1260d92 5631
d2de41fe
UD
56322006-07-31 Ulrich Drepper <drepper@redhat.com>
5633
13669f2c
UD
5634 * elf/dl-open.c (dl_open_worker): Add branch prediction.
5635
d2de41fe
UD
5636 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
5637 the backend NSS module. If backend setgrent call failed, don't have
5638 internal_setgrent fail. Just remember this until it is needed.
5639 * nis/nss_compat/compat-pwd.c: Likewise.
5640 * nis/nss_compat/compat-spwd.c: Likewise.
5641
b894c2ea
RM
56422006-07-30 Roland McGrath <roland@redhat.com>
5643
5644 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
5645 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
5646 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
5647 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
5648
5649 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
5650 (nanosleep_not_cancel): New macro.
5651 (sigsuspend_not_cancel): new macro.
5652 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
5653 (do_sigsuspend): Define as inline.
5654 (__sigsuspend): Always use do_sigsuspend.
5655 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
5656 * include/signal.h: Declare __sigsuspend_nocancel.
5657 * sysdeps/posix/pause.c
5658 [! NO_CANCELLATION] (__pause_nocancel): New function.
5659
5660 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
5661 * include/time.h (__nanosleep_nocancel): Likewise.
5662
c10d32c8
UD
56632006-07-30 Ulrich Drepper <drepper@redhat.com>
5664
5665 * locale/programs/localedef.c (add_to_readlist): Rename local
5666 variables to avoid confusion.
5667
5668 * locale/programs/charmap.c (charmap_read): Emit error message if
5669 charmap couldn't be found or read.
5670
6822f056
UD
56712006-07-28 Ulrich Drepper <drepper@redhat.com>
5672
d5ba53f9
UD
5673 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5674 __ASSUME_FUTEX_LOCK_PI.
5675 * include/time.h: Declare __nanosleep_nocancel.
5676 * include/unistd.h: Declare __pause_nocancel.
5677
6822f056
UD
5678 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
5679 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
5680 get the __stack_chk_fail_local definition when it's needed.
5681
3a975ff5
UD
56822006-07-26 Ulrich Drepper <drepper@redhat.com>
5683
6de1f625
UD
5684 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
5685 * dlfcn/bug-atexit3.c: New file.
5686 * dlfcn/bug-atexit3-lib.cc: New file.
5687
3a975ff5
UD
5688 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
5689 used when the namespace is not the base namespace.
5690
a92b1166
UD
56912006-07-26 Gavin Romig-Koch <gavin@redhat.com>
5692
5693 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
5694 (__new_exitfn): Bump it in every successful call.
5695 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
5696 more exit handlers, call them right away.
5697 * stdlib/exit.h: Declare __new_exitfn_called.
5698
a08336fb
UD
56992006-07-25 Ulrich Drepper <drepper@redhat.com>
5700
bd3754dc
UD
5701 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
5702 calling registered handler.
5703
a08336fb
UD
5704 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
5705 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5706 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5707 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5708 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5709 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5710 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5711 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5712
871b9158
UD
57132006-07-10 Ulrich Drepper <drepper@redhat.com>
5714
5715 * elf/dl-lookup.c (dl_new_hash): New functions.
5716 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
5717 value here. Compute new-style hash value. Pass new hash value
5718 and reference to variable with the old value to do_lookup_x.
5719 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
5720 old-style hash table.
5721 (_dl_debug_bindings): Pass new hash value and reference to variable
5722 with the old value to do_lookup_x.
5723 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
5724 new-style hash value and change old-style hash value parameter to
5725 be a reference. Reoganize functions to determine whether
5726 new-style hash table is available. Only fall back on old-style
5727 table. If old-style hash value is needed, compute it here.
5728 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
5729 entry.
5730 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
5731 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
5732 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
5733 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
5734 * Makeconfig: If linker supports --hash-style option add it to all
5735 linker command lines to build DSOs.
5736 * config.make.in: Define have-hash-style.
5737 * configure.in: Test whether linker supports --hash-style option.
5738
5739 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
5740 * sysdeps/generic/ldsodefs.h: Adjust prototype.
5741
a1f0de82
UD
57422006-06-27 Ulrich Drepper <drepper@redhat.com>
5743
361a3706
UD
5744 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
5745 auditing.
5746
a1f0de82
UD
5747 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
5748 RPATH of main map twice.
5749
4259230f
UD
57502006-06-22 Ulrich Drepper <drepper@redhat.com>
5751
5752 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
5753 look further, return original strings.
5754 (_nl_find_msg): Do not return found translation if the conversion
5755 failed. Either signal the string is unusable or that something went
5756 wrong and the original should be used.
5757
57582006-06-21 Ulrich Drepper <drepper@redhat.com>
5759
5760 * string/_strerror.c (__strerror_r): Add __builtin_expect.
5761
f9b7a98b
UD
57622006-06-14 Jakub Jelinek <jakub@redhat.com>
5763
5764 [BZ #2766]
5765 * misc/insremque.c (insque): Handle prev == NULL.
5766 * misc/Makefile (tests): Add tst-insremque.
5767 * misc/tst-insremque.c: New test.
5768
ac55a25b
UD
57692006-06-17 Ulrich Drepper <drepper@redhat.com>
5770
5771 [BZ #2792]
5772 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
5773 conflict with DL_DST_REQUIRED.
5774
02f366b3
UD
57752006-06-16 Ulrich Drepper <drepper@redhat.com>
5776
5777 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
5778 match what Solaris does.
5779
9009e8f8
UD
57802006-06-04 Ulrich Drepper <drepper@redhat.com>
5781
1b8373f4
UD
5782 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
5783 local_setegid instead of seteuid and setegid.
5784 * sysdeps/generic/local-setxid.h: New file.
5785 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
5786
7231452e
UD
5787 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
5788
9009e8f8 5789 * string/Makefile (tests): Add bug-envz1.
02f366b3 5790 * string/bug-envz1.c: New file.
9009e8f8 5791
33e63e79
UD
57922006-06-02 Jakub Jelinek <jakub@redhat.com>
5793
5794 * posix/regex_internal.c (re_string_skip_chars): If no character has
5795 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
5796 to the byte which couldn't be converted.
5797 (re_string_reconstruct): Don't clear valid_raw_len before calling
5798 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
5799 tip_context using re_string_context_at.
5800 * posix/Makefile: Add rules to build and run bug-regex25 test.
5801 * posix/bug-regex25.c: New test.
5802
fdc02996
UD
58032006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
5804
5805 [BZ #2703]
5806 * string/envz.c (envz_strip): Correct erroneously reversed src
5807 and dest parameters to memmove() invocation.
5808
902c4291
UD
58092006-05-30 Jakub Jelinek <jakub@redhat.com>
5810
5811 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
5812 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
5813 to make sure the database has been already invalidated.
5814 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
5815 after the cache has been invalidated. Use pthread_mutex_lock rather
5816 than pthread_mutex_trylock if fd != -1.
5817 * nscd/connections.c (invalidate_cache): Add fd argument, write
5818 response to fd if not calling prune_cache, pass fd to prune_cache.
5819 (handle_request): Adjust invalidate_cache caller.
5820 (nscd_run): Pass -1 as fd to prune_cache.
5821
ecc68568
UD
58222006-05-30 Ulrich Drepper <drepper@redhat.com>
5823
5824 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
5825 the correct place.
5826
9636a217
UD
58272006-05-29 Ulrich Drepper <drepper@redhat.com>
5828
5829 * nscd/nscd.h (struct database_dyn): Add prunelock field.
5830 * nscd/cache.c (prune_cache): Take prunelock before starting the
5831 work. Just return in case it is already taken.
cabfcde1 5832 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 5833
6bcb494a
UD
58342006-05-25 Ulrich Drepper <drepper@redhat.com>
5835
672d5a63 5836 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 5837 copying. No need to allocate new array for group members. Just
672d5a63
UD
5838 move the pointers and update the size.
5839
1663b44f
UD
5840 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
5841 Avoid memory leak in case realloc fails. Simplification for
5842 better code generation.
5843
5844 Avoid deprecation warning because of libc_hidden_proto for
5845 inet6_option_alloc.
5846 * inet/inet6_option.c (option_alloc): Renamed from
5847 inet6_option_alloc. Made static.
9636a217 5848 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
5849 (inet6_option_append): Call option_alloc.
5850 * include/netinet/in.h: Remove libc_hidden_proto for
5851 inet6_option_alloc.
5852
6bcb494a
UD
5853 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
5854 for cleanup when cb!=NULL [Coverity CID 233].
5855
aec6b246
UD
58562006-05-24 Ulrich Drepper <drepper@redhat.com>
5857
07bfff20
UD
5858 [BZ #2693]
5859 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
5860 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
5861 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
5862 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
5863 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
5864 and inet6_rth_getaddr.
5865 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
5866 array.
5867 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
5868 Mark inet6_option_* interfaces as deprecated.
5869 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
5870 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
5871 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
5872 inet6_rth_segments, and inet6_rth_getaddr.
5873 * inet/inet6_opt.c: New file.
5874 * inet/inet6_rth.c: New file.
5875
5876 * inet/netinet/icmp6.h: Pretty printing.
5877
aec6b246
UD
5878 [BZ #2683]
5879 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
5880
2d571cd1
UD
58812006-05-23 Ulrich Drepper <drepper@redhat.com>
5882
062e719b
UD
5883 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
5884 doing it all here. When server does not know the answer do not
5885 fail immediate, try parent first.
5886
2d571cd1
UD
5887 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
5888 overflow test.
5889
a17fa610
UD
58902006-05-20 Ulrich Drepper <drepper@redhat.com>
5891
5892 * nis/nis_call.c (__prepare_niscall): New function. Split out
5893 from __do_niscall.
5894 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
5895 and exported.
5896 (__follow_path): New function. Split out from nis_list.
5897 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
5898 _xdr_nis_result.
5899 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
5900 _xdr_nis_result.
5901 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
5902 and __follow_path.
5903 * nis/Versions: Export __prepare_niscall, __create_ib_request,
5904 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
5905 from libnsl for version GLIBC_PRIVATE.
5906 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
5907 Remove entry parameter from _nss_nisplus_parse_pwent and
5908 _nss_nisplus_parse_grent.
5909 * nis/nss_nisplus/nisplus-parser.c: Likewise.
5910 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
5911 again. Rewrite getpwent handling to not use nis_first_entry and
5912 nis_next_entry. Roll out own niscall handling.
5913 * nis/nss_nisplus/nisplus-grp.c: Likewise.
5914
5915 * sunrpc/xdr_rec.c: Fix typo in comment.
5916
429bb183
UD
59172006-05-19 Ulrich Drepper <drepper@redhat.com>
5918
1d4f062a
UD
5919 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
5920 handling.
5921
101cc598
UD
5922 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
5923 to allocate memory for my_pollfd. Better initialization of
5924 cb_is_running. Use TEMP_FAILURE_RETRY.
5925
f50fa10c
UD
5926 * malloc/memusage.sh (memusageso): Add quotes.
5927 (memusagestat): Likewise.
5928 * debug/xtrace.sh (pcprofileso): Likewise.
5929 (pcprofiledump): Likewise.
5930 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
5931 replacement.
5932 * malloc/Makefile ($(objpfx)memusage): Likewise.
5933
882bfe73
UD
5934 * nis/nis_callback.c (__nis_create_callback): Calls to
5935 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
5936 asprintf call fails.
5937
429bb183
UD
5938 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
5939 no uninitialized memory is passed to sendto.
5940
f90de831
UD
59412006-05-18 Ulrich Drepper <drepper@redhat.com>
5942
5943 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
5944 of snprintf+strdup. Handle OOM.
5945 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
5946 cb->serv together. Remove now obsolete free calls.
5947 (__nis_destroy_callback): Remove now obsolete free call.
5948
a17fa610 59492006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
5950
5951 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
5952 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
5953 and ULA respectively). Set precedence for IPv4 address to 10 as
5954 defined in RFC3484 for preferring IPv6.
5955 * posix/gai.conf: Update to match the new default tables.
5956
758b9d7e
UD
59572006-05-18 Jakub Jelinek <jakub@redhat.com>
5958
5959 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
5960 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
5961 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
5962 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
5963
5964 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
5965 Removed.
5966 (init_nss_interface): Remove initialization of these variables.
5967
59682006-05-18 Ulrich Drepper <drepper@redhat.com>
5969
5970 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
5971 nis_free_directory forward to avoid duplication.
5972
388c779e
UD
59732006-05-17 Ulrich Drepper <drepper@redhat.com>
5974
5f1724bf
UD
5975 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
5976 rec_dirsearch returning NULL.
5977 (first_shoot): Handle __nis_finddirectory returning NULL.
5978 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
5979
388c779e
UD
5980 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
5981 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
5982
360d5cf4
UD
59832006-05-17 Jakub Jelinek <jakub@redhat.com>
5984
5985 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
5986 pid changed.
5987
88dbff8c
UD
59882006-05-15 Ulrich Drepper <drepper@redhat.com>
5989
6f8a7dff
UD
5990 * include/rpc/pmap_prot.h: Mark all functions as hidden.
5991
5992 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
5993 * nscd/nscd_getgr_r.c: Likewise.
5994
5995 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
5996
5997 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
5998 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
5999
6000 * stdlib/longlong.h (__clz_tab): Mark as hidden.
6001
6002 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
6003
360d5cf4 6004 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
6005
6006 * include/rpc/auth.h: Mark xdr_des_block_internal and
6007 xdr_opaque_auth_internal as hidden.
6008
6009 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
6010 hidden.
6011
360d5cf4 6012 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 6013
02264020
UD
6014 * misc/getusershell.c (okshells): Don't use static initializers,
6015 do it dynamically.
6016
fd5ea238
UD
6017 * stdlib/fmtmsg.c (keywords): Change type of len element to
6018 uint32_t to not waste space on 64bit machines.
6019
9446614c
UD
6020 * locale/setlocale.c: Change _nl_category_names into a string.
6021 Add new _nl_category_name_idxs. Change all users.
6022 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
6023 Declare _nl_category_name_idxs.
6024 * locale/findlocale.c: Adjust for _nl_category_names change.
6025 * locale/loadlocale.c: Likewise.
6026 * locale/newlocale.c: Likewise.
6027 * intl/dcigettext.c: Likewise.
6028
88dbff8c
UD
6029 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
6030 (add_alias2): ...here. New function.
6031 (__gconv_read_conf): Simplify builtin alias handling.
6032 (builtin_aliases): Convert to string to avoid relocations.
6033 * iconv/gconv_builtin.h: Add comment about correct formatting.
6034
4442d58f
UD
60352006-05-15 Jakub Jelinek <jakub@redhat.com>
6036
6037 * resolv/res_debug.c (loc_ntoa): Make error const.
6038
60392006-05-14 Andreas Schwab <schwab@suse.de>
6040
6041 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
6042
60432006-05-12 Jakub Jelinek <jakub@redhat.com>
6044
6045 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
6046 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
6047 sizeof (cpu_set_t).
6048
a51752b6
UD
60492006-05-11 Ulrich Drepper <drepper@redhat.com>
6050
5d3fd1f6
UD
6051 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
6052
08cfb839
UD
6053 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
6054
4b481a15
UD
6055 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
6056 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
6057
6058 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
6059 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
6060
6061 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
6062 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
6063 xdr_cback_data.
6064
6065 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
6066 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6067 xdr_ypupdate_args.
6068
6069 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
6070 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
6071
6072 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
6073 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
6074
6075 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
6076 * include/rpcsvc/nis_callback.h: New file.
6077
6078 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
6079 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
6080
6081 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6082 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6083
6084 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
6085 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
6086
6087 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6088 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6089
b1ad49c6
UD
6090 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
6091 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6092 xdr_ypdelete_args.
6093
cd5f7829
UD
6094 * nis/nis_xdr.h: Mark all functions as hidden. Remove
6095 __BEGIN_DECLS and __END_DECLS, the header is not installed.
6096
a51752b6
UD
6097 * nis/nis_error.c: Remove table of strings. Use position
6098 independent mechanism.
6099 * nis/nis_error.h: New file.
6100
3d237e42
UD
61012006-05-11 Jakub Jelinek <jakub@redhat.com>
6102
6103 * locale/programs/ld-time.c (time_finish): If wide era name or
6104 format aren't provided, set both wname and wformat to L"".
6105
d6c159fe
UD
61062006-05-10 Ulrich Drepper <drepper@redhat.com>
6107
0088b04e
UD
6108 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
6109 results if the call was succesful.
6110
d6c159fe
UD
6111 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
6112
6113 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
6114 as hidden.
6115
5c5acdf0
UD
61162006-05-10 Jakub Jelinek <jakub@redhat.com>
6117
6118 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
6119
16d620db
UD
61202006-05-10 Ulrich Drepper <drepper@redhat.com>
6121
6122 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
6123 caller makes sure this is not the case.
6124 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
6125
e7c8359e
UD
61262006-05-09 Ulrich Drepper <drepper@redhat.com>
6127
ecf359c6
UD
6128 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
6129 calls.
6130
400cc70a
UD
6131 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
6132 [Coverity CID 229, 230]
6133
6134 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
6135 DGETTEXT calls.
6136 (hol_help): Likewise. [Coverity CID 226, 227]
6137
6138 * string/argz-replace.c (__argz_replace): Unconditionally call
6139 free on SRC. [Coverity CID 225]
6140
6141 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
6142 the return value of __nis_default_owner and __nis_default_group,
6143 it has been especially allocated. [Coverity CID 224]
6144
51e59260
UD
6145 * nis/nis_defaults.c (searchXYX): New functions. Used by both
6146 searchgroup and searchowner. Significantly simplified.
6147 (__nis_default_owner): Remove duplication. Do not locally copy the
6148 string before duplicating it.
6149 (__nis_default_group): Likewise.
6150
6151 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
6152 we must clear the variable before calling __nisfind_server.
6153
6154 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
6155 nis_getnames. [Coverity CID 223]
6156
6157 * locale/programs/locfile.c (locfile_read): Use alloca instead of
6158 xmalloc to allocate local repertoire name. [Coverity CID 222]
6159
6160 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
6161 allocate memory for the input to add_bytes. [Coverity CID 221]
6162
e7c8359e 6163 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 6164 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
6165
6166 * posix/getconf.c (print_all): Free confstr data after printing.
6167 [Coverity CID 218]
6168
6169 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
6170 list allocation fails. [Coverity CID 215]
6171
6172 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
6173 [Coverity CID 213]
6174
6175 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
6176 string is NULL. [Coverity CID 212]
6177 * argp/Makefile: Add rules to build and run bug-argp1.
6178 * argp/bug-argp1.c: New file.
6179
6180 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
6181 end of string.
6182 * stdlib/canonicalize.c (__realpath): Likewise.
6183
6184 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
6185 pointer. [Coverity CID 206]
6186
6187 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
6188 in statically linked code.
6189 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
6190 statically built code, be prepared to have no link map.
6191 [Coverity CID 205]
6192
6193 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
6194 dgettext calls. [Coverity CID 204]
6195
6196 * argp/argp-help.c (struct uparams): Remove valid member. Change
6197 the one user.
6198 (uparam_names): Reduce size. Avoid relative relocations.
6199 Moved to read-only segment.
6200 (fill_in_uparams): Update for new layout.
6201
6202 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
6203 assumed to always be != NULL. [Coverity CID 202]
6204
6205 * argp/argp-help.c (hol_entry_help): Remove some dead code
6206 [Coverity CID 200].
6207
6208 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
6209 away a few more unconditional yperr2nss calls.
6210 (_nss_nis_getservbyname_r): Likewise.
6211
acf82eaf
UD
62122006-05-06 Ulrich Drepper <drepper@redhat.com>
6213
4461cf48
UD
6214 * sysdeps/generic/ldsodefs.h: Remove support for non-core
6215 architectures.
6216
b74a8c7f
UD
6217 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
6218 that unused memory passed to sendto is nevertheless initialized.
6219
acb98cb5
UD
6220 [BZ #2499]
6221 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
6222 possibly unaligned memory accesses.
6223
bce16467
UD
6224 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
6225 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
6226 and __putlong respectively. Correct buffer overflow check for
6227 NS_NOTIFY_OP.
6228
6229 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
6230
8e45b1ac
UD
6231 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
6232 (send_dg): Rewrite error handling to be more compact and avoid
6233 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
6234
697e1628
UD
6235 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
6236
6237 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
6238 instead of ns_get16.
6239 (res_queriesmatch): Likewise. Minor optimization.
6240
acf82eaf
UD
6241 [BZ #2499]
6242 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
6243 __libc_res_nsend might reallocate the buffer for the answer. In
6244 this case we have to reload the HP pointer.
6245
7bfee654
UD
62462006-05-05 Ulrich Drepper <drepper@redhat.com>
6247
694b49ca
UD
6248 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
6249 some branch prediction hints.
6250
7bfee654
UD
6251 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
6252 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6253 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6254 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6255 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6256 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6257 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6258 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6259
308bb2d5
UD
62602006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
6261
6262 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
6263 by a GOT relocation to make Scrt1.o position independent.
6264 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6265
6266 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
6267 six system call parameters.
6268 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6269
cdb9c321
UD
62702006-05-05 Ulrich Drepper <drepper@redhat.com>
6271
6272 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
6273 malloc&bzero.
6274
6275 * sunrpc/svc_udp.c (BZERO): Remove definition.
6276 (CALLOC): Define.
6277 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
6278
6279 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
6280 (des_SPtrans): Use uint32_t type.
6281 (des_skb): Likewise.
6282
6283 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
6284
fff04b32
UD
62852006-05-05 Jakub Jelinek <jakub@redhat.com>
6286
6287 [BZ #2509]
6288 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
6289 on 32-bit arches.
6290
62912006-05-05 Ulrich Drepper <drepper@redhat.com>
6292
6293 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 6294 place where the iso639 array might be accessed beyond the limits.
fff04b32 6295
077a30bc 62962006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 6297
f2d5cf50
UD
6298 * nis/nis_table.c (nis_list): Avoid clearing res twice before
6299 filling it for the first time.
6300
3e4370cf
UD
6301 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
6302 Adjust all callers.
6303 Free res object content before returning.
6304
5e65a53d
UD
6305 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
6306
48be3114
UD
6307 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
6308 client->cl_auth.
6309
ca4fce0e
UD
6310 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
6311 cleanup for initial thread, just the free call on TVP.
6312
077a30bc 6313 * nscd/gai.c (__getline): Define.
3b7a95fb 6314
5d37289a 6315
3f87d901 6316See ChangeLog.16 for earlier changes.
This page took 0.975509 seconds and 5 git commands to generate.