]> sourceware.org Git - glibc.git/blob - ChangeLog
Update.
[glibc.git] / ChangeLog
1 2003-06-17 Ulrich Drepper <drepper@redhat.com>
2
3 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
4 takes care of enabling cancellation.
5
6 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
7 cancelable. It's not correct to disable cancellation. Instead of
8 a cleanup handler.
9
10 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
11 and part of the incoming set, create a temporary set without this
12 signal.
13 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
14 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
15
16 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
17 returning because seconds==0. Add __builtin_expect.
18
19 2003-06-16 Ulrich Drepper <drepper@redhat.com>
20
21 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
22
23 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
24 variable.
25
26 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
27
28 * include/libc-symbols.h: Add static_link_warning macro.
29 * grp/initgroups.c: Print linker warning if this function
30 is called in a static linked binary.
31 * nss/getXXbyYY.c: Likewise.
32 * nss/getXXbyYY_r.c: Likewise.
33 * nss/getXXent.c: Likewise.
34 * nss/getXXent_r.c: Likewise.
35 * sysdeps/posix/getaddrinfo.c: Likewise.
36
37 2003-06-16 Bruno Haible <bruno@clisp.org>
38
39 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
40 LATIN-9.
41 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
42 (IBM1047): Add alias IBM-1047.
43 (GBK): Add aliases MS936, WINDOWS-936.
44
45 2003-06-16 Jakub Jelinek <jakub@redhat.com>
46
47 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
48 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
49 (__xstat64_conv): Change xstat_conv to __xstat_conv.
50
51 2003-06-16 Ulrich Drepper <drepper@redhat.com>
52
53 * locale/iso-639.def: Update from current official ISO 639.
54
55 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
56
57 2003-06-15 Andreas Jaeger <aj@suse.de>
58
59 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
60 of MXCSR.
61 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
62 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
63 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
64
65 * math/tgmath.h (carg): Handle real arguments.
66 (conj): Likewise.
67 (cproj): Likewise.
68 (cimag): Likewise.
69 (creal): Likewise.
70
71 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
72 (tests): Add test-tgmath-ret.
73 * math/test-tgmath-ret.c: New file.
74
75 * math/tgmath.h (ilogb): Return always an int.
76
77 2003-06-16 Ulrich Drepper <drepper@redhat.com>
78
79 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
80 computation so that prelinking works.
81
82 2003-06-15 Ulrich Drepper <drepper@redhat.com>
83
84 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
85 linker's map.
86 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
87 dynamic linker's map.
88
89 Fix cancellation point handling wrt exception based cleanup.
90 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
91 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
92 with exceptions.
93 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
94 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
95 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
96 exceptions.
97 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
98 sigwait.c, and sigwaitinfo.c with exceptions.
99 * stdlib/Makefile: Compile system.c with exceptions.
100 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
101 * termios/Makefile: Compile tcdrain.c with exceptions.
102 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
103 situation.
104 * sysdeps/generic/pselect.c: Likewise.
105 * sysdeps/posix/sigpause.c: Likewise.
106 * sysdeps/posix/system.c: Likewise.
107 * sysdeps/posix/waitid.c: Likewise.
108 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
109 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
110 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
111 INTERNAL_SYSCALL to not use push inside asm statement so that
112 unwind info is correct around the syscall.
113 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
114 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
115
116 2003-06-15 Andreas Jaeger <aj@suse.de>
117
118 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
119 Add CFI directives.
120
121 2003-06-15 Guido Guenther <agx@sigxcpu.org>
122
123 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
124 create $(objpfx).
125
126 2003-06-14 Ulrich Drepper <drepper@redhat.com>
127
128 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
129 not close.
130
131 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
132 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
133 definition.
134
135 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
136 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
137 * inet/Makefile (routines): Add inet6_option.
138 * inet/inet6_option.c: New file.
139 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
140 inet6_option_init, inet6_option_append, inet6_option_alloc,
141 inet6_option_next, and inet6_option_find.
142
143 2003-06-13 Ulrich Drepper <drepper@redhat.com>
144
145 * inet/netinet/ip6.h (struct ip6_ext): Define.
146
147 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
148
149 Fixing gcc 3.3 warnings, part II.
150 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
151 * elf/dl-load.c (cache_rpath): Don't inline.
152 * iconvdata/cns11642l2.h: Always inline all functions.
153 * iconvdata/iso-ir-165.h: Likewise.
154 * locale/Makefile (aux): Add coll-lookup.
155 * locale/coll-lookup.c: New file.
156 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
157 (collseq_table_lookup): Likewise.
158 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
159 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
160 change.
161 * posix/regcomp.c: Likewise.
162 * posix/regexec.c: Likewise.
163 * locale/programs/3level.h (*_get): Always inline.
164 * locale/programs/locfile.h: Move definition of handle_copy to...
165 * locale/programs/locfile.c: ...here.
166 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
167 (obstack_int32_grow_fast): Likewise.
168 (utf8_encode): Likewise.
169 (find_element): Avoid aliasing problems.
170 (insert_value): Likewise.
171 (collate_read): Likewise.
172 * nss/getent.c (print_hosts): Don't inline
173 (print_networks): Likewise.
174 (print_shadow): Likewise.
175 (build_doc): Likewise.
176 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
177 inline.
178 * posix/regcomp.c (re_set_fastmap): Always inline.
179 (seek_collating_symbol_entry): Likewise.
180 (lookup_collation_sequence_value): Likewise.
181 (build_range_exp): Likewise.
182 (build_collating_symbol): Likewise.
183 * posix/regexec.c (acquire_init_state_context): Don't inline.
184 (clean_state_log_if_need): Likewise.
185 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
186 adjust all callers.
187 (evConsTime): Likewise.
188 (evAddTime): Likewise.
189 (evSubTime): Likewise.
190 (evNowTime): Likewise.
191 (evTimeSpec): Removed.
192 (__libc_res_nsend): Avoid aliasing problem.
193 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
194 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
195 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
196 Always inline.
197 (_dl_string_platform): Likewise.
198 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
199 (wcwidth_table_lookup): Likewise.
200 (wctrans_table_lookup): Likewise.
201
202 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
203
204 2003-06-12 Ulrich Drepper <drepper@redhat.com>
205
206 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
207
208 2003-05-29 Jim Meyering <jim@meyering.net>
209
210 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
211 && HAVE_STRFTIME]: Use underlying_strftime for %r.
212 Suggested by Daniel Yacob <locales@geez.org>.
213
214 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
215
216 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
217 @got notation with @toc.
218 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
220
221 2003-06-12 Ulrich Drepper <drepper@redhat.com>
222
223 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
224 if only PF_INET address is needed.
225
226 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
227 case of an error.
228
229 * scripts/config.guess: Update from upstream version.
230 * scripts/config.sub: Likewise.
231
232 2003-06-12 Jakub Jelinek <jakub@redhat.com>
233
234 * locale/programs/ld-time.c (time_output): Also copy the era format,
235 not only the name.
236
237 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
238
239 * posix/transbug.c (run_test): Return 1 for failure.
240 (do_test): Compare only if run_test is successful.
241
242 2003-06-12 Simon Josefsson <jas@extundo.com>
243
244 * argp/argp.h [!__THROW]: Define if undefined.
245
246 2003-06-12 Ulrich Drepper <drepper@redhat.com>
247
248 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
249 more than four parameters.
250 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
251
252 2003-06-12 Jakub Jelinek <jakub@redhat.com>
253
254 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
255 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
256 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
257
258 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
259
260 2003-06-12 Roland McGrath <roland@redhat.com>
261
262 * Makerules ($(objpfx)stubs): Rewrite sed magic.
263
264 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
265
266 * posix/regcomp.c (parse_expression): Deliver translation to
267 build_word_op, and build_charclass.
268 (build_charclass): Apply translation for character classes too.
269 (build_word_op): Deliver translation to build_charclass.
270 * posix/transbug.c: New file.
271 * posix/Makefile (tests): Add transbug.
272
273 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
274
275 * posix/regexec.c (group_nodes_into_DFAstates): Check for
276 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
277 'continue' before the others.
278
279 2003-06-11 Ulrich Drepper <drepper@redhat.com>
280
281 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
282 function [PR libc/5045].
283
284 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
285 also for P4.
286
287 * time/tzfile.c: Add a couple of __builtin_expect.
288
289 Remove warnings gcc 3.3 shows.
290 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
291 * elf/dl-load.c (fillin_rpath): Likewise.
292 (add_path): Likewise.
293 * elf/dl-version.c (find_needed): Always inline.
294 * elf/do-lookup.c (FCT): Don't inline.
295 * iconv/Makefile: Extend vpath to intl subdir.
296 (iconvconfig-modules): Add hash-string.
297 * iconv/gconv_charset.h (strip): Don't inline.
298 (upstr): Always inline.
299 Move __gconv_compare_alias prototype to...
300 * iconv/gconv_int.h: ...here.
301 * iconv/gconv_db.c: Don't include gconv_charset.h.
302 * iconv/gconv_conf.c (add_alias): Don't inline.
303 (insert_module): Likewise.
304 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
305 (internal_ucs4_loop_unaligned): Likewise.
306 (internal_ucs4_loop_single): Likewise.
307 (ucs4_internal_loop): Likewise.
308 (ucs4_internal_loop_unaligned): Likewise.
309 (ucs4_internal_loop_single): Likewise.
310 (internal_ucs4le_loop): Always inline.
311 (internal_ucs4le_loop_unaligned): Likewise.
312 (internal_ucs4le_loop_single): Likewise.
313 (ucs4le_internal_loop): Likewise.
314 (ucs4le_internal_loop_unaligned): Likewise.
315 (ucs4le_internal_loop_single): Likewise.
316 * iconv/loop.c: Always inline the defined functions.
317 * iconvdata/cns11642.h: Likewise.
318 * iconvdata/cns11642l1.h: Likewise.
319 * iconvdata/euc-kr.c: Likewise.
320 * iconvdata/gb2312.h: Likewise.
321 * iconvdata/jis0201.h: Likewise.
322 * iconvdata/jis0208.h: Likewise.
323 * iconvdata/jis0212.h: Likewise.
324 * iconvdata/jisx0213.h: Likewise.
325 * iconvdata/ksc5601.h: Likewise.
326 * iconvdata/utf-7.c (base64): Don't inline.
327 * include/libc-symbols.h (symbol_set_first_element): Add cast
328 (symbol_set_end_p): Likewise.
329 * include/set-hooks (RUN_HOOK): Likewise.
330 * inet/Makefile (aux): Add ifreq.
331 * intl/Makefile (aux): Add some entries from routines. Add
332 hash-string.
333 * intl/hash-string.c: New file.
334 * intl/hash-string.h: Remove hash_string definition. Declare
335 __hash_string.
336 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
337 * iconv/iconvconfig.c (new_name): Likewise.
338 * intl/dcigettext.c (_nl_find_msg): Likewise.
339 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
340 * io/ftw.c (open_dir_stream): Always inline.
341 (process_entry): Don't inline.
342 * locale/findlocale.c: Include gconv_int.h.
343 * locale/setlocale.c (new_composite_name): Don't inline.
344 * locale/weight.h (findidx): Always inline.
345 * locale/weightwc.h (findidx): Likewise.
346 * locale/programs/linereader.c (lr_ignore_rest): Define here.
347 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
348 just declare it.
349 (lr_getc): Always inline.
350 (lr_ungetc): Likewise.
351 * nss/nss_files/files-parse.c (parse_list): Likewise.
352 * stdio-common/Makefile (aux): Add printf-parsemb and
353 printf-parsewc.
354 * stdio-common/_itoa.h (_itoa_word): Always inline.
355 (_fitoa_word, _fitoa): Don't define here, only declare.
356 * stdio-common/_itoa.c (_iftoa_word): Add here.
357 (_fitoa): Likewise.
358 * stdio-common/_itowa.h (_itowa_word): Always inline.
359 * stdio-common/printf-parse.h (read_int): Don't inline.
360 (find_spec): Don't define.
361 Declare __find_specmb and __find_specwc.
362 (parse_one_spec): Don't define.
363 Declare __parse_one_specmb and __parse_one_specwc.
364 * stdio-common/printf-parsemb.c: New file.
365 * stdio-common/printf-parsewc.c: New file.
366 * stdio-common/vfprintf.c: Update calls to find_spec and
367 parse_one_spec for new names.
368 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
369 * stdlib/Makefile (aux): Add grouping and groupingwc.
370 * stdlib/grouping.c: New file.
371 * stdlib/groupingwc.c: New file.
372 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
373 Just prototype.
374 * stdlib/rpmatch.c (try): Don't inline.
375 * stdlib/strtod.c (round_and_return): Don't line.
376 (str_to_mpn): Likewise.
377 (__mpn_lshift_1): Always inline. Optimize only for constant count.
378 Adjust for name change of correctly_grouped_prefix.
379 * sysdeps/generic/strtol.c: Adjust for name change of
380 correctly_grouped_prefix.
381 * string/strxfrm.c (utf8_encode): Don't inline.
382 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
383 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
384 * sysdeps/generic/ifreq.c: New file.
385 * sysdeps/unix/sysv/linux/ifreq.c: New file.
386 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
387 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
388 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
389 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
390 (fde_split): Likewise.
391 (fde_merge): Likewise.
392 (end_fde_sort): Likewise.
393 (init_object): Likewise.
394 (binary_search_unencoded_fdes): Likewise.
395 (binary_search_single_encoding_fdes): Likewise.
396 (binary_search_mixed_encoding_fdes): Likewise.
397 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
398 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
399 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
400 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
401 Add xstatconv.
402 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
403 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
404 Export them. Prepend __ to name.
405 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
406 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
407 conversion functions.
408 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
409 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
410 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
411 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
412 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
413 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
414 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
415 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
416 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
417 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
418 to name. Change callers.
419 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
420 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
421 declare.
422 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
423 * time/tzfile.c (decode): Always inline.
424 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
425 Remove cast in tomb function call.
426 * wcsmbs/wcsrtombs.c Likewise.
427 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
428 tomb function call.
429
430 2003-06-10 Ulrich Drepper <drepper@redhat.com>
431
432 * po/zh_CN.po: Update from translation team.
433
434 2003-06-10 Jakub Jelinek <jakub@redhat.com>
435
436 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
437 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
438
439 2003-06-10 Ulrich Drepper <drepper@redhat.com>
440
441 * inet/Makefile (aux): Add check_pf.
442 * include/ifaddrs.h: Add prototype for __check_pf.
443 * sysdeps/generic/check_pf.c: New file.
444 * sysdeps/unix/sysv/linux/check_pf.c: New file.
445 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
446 from no_netlink_support. Export.
447 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
448 call __check_pf.
449
450 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
451
452 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
453 from getifaddr calls.
454
455 2003-06-09 Jakub Jelinek <jakub@redhat.com>
456
457 * sysdeps/unix/sysv/linux/kernel-features.h
458 (__ASSUME_SETRESGID_SYSCALL): Define.
459 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
460 instead of __ASSUME_SETRESUID_SYSCALL.
461 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
462 defined.
463 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
464 inline syscall if __NR_setresuid32 is defined.
465 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
466 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
467 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
468 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
469 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
470 code handling non-existant setresgid32 syscall with
471 #if __ASSUME_SETRESGID_SYSCALL == 0.
472
473 2003-06-09 Andreas Schwab <schwab@suse.de>
474
475 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
476 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
477 $(objpfx)rpc-proto.d.
478 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
479 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
480 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
481
482 2003-06-08 Ulrich Drepper <drepper@redhat.com>
483
484 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
485 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
486 defined drop compatibility code.
487 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
488 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
489 defined drop compatibility code.
490 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
491 setresuid32 syscall directly if possible.
492 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
493 setresgid32 syscall directly if possible.
494 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
495 compliant. Don't change sgid.
496 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
497 compliant. Don't change suid.
498
499 * config.h.in: Add have-forced-unwind.
500 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
501
502 2003-06-07 Ulrich Drepper <drepper@redhat.com>
503
504 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
505 returned status from child matches.
506
507 * Makeconfig (gnulib): Add -lgcc_eh once again.
508
509 2003-06-06 Ulrich Drepper <drepper@redhat.com>
510
511 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
512
513 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
514 %edx for first parameter. This means no pushl and therefore the
515 unwind info isn't screwed up.
516
517 2003-06-04 Richard Henderson <rth@redhat.com>
518
519 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
520 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
521 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
522 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
523 entry sequence and explicit relocs. Add unwind info for sigreturn
524 and rt_sigreturn.
525 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
526
527 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
528 Annotate some parameters.
529 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
530
531 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
532
533 * include/libc-symbols.h (symbol_set_declare): Use arrays
534 of unspecified size.
535
536 2003-06-04 Jakub Jelinek <jakub@redhat.com>
537
538 * config.make.in (ASFLAGS-config): New.
539 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
540 * configure.in (libc_cv_as_noexecstack): New check.
541 (ASFLAGS_config): Substitute.
542
543 2003-06-04 Jakub Jelinek <jakub@redhat.com>
544
545 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
546 hypot, logb): Protect with #ifdef __FAST_MATH__.
547
548 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
549
550 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
551 #ifdef __FAST_MATH__.
552
553 2003-06-03 Ulrich Drepper <drepper@redhat.com>
554
555 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
556 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
557 * posix/globtest.sh: Adjust for this change.
558
559 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
560 to get the actual PID value used in the records passed up.
561 (getifaddrs): Don't initialize nh.pid here.
562
563 2003-06-02 Ulrich Drepper <drepper@redhat.com>
564
565 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
566 optimization.
567
568 * po/zh_CN.po: Update from translation team.
569
570 * posix/getconf.c (main): Also recognize names without the
571 _POSIX_ prefix.
572
573 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
574
575 2003-06-02 Bernd Schmidt <bernds@redhat.com>
576
577 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
578 ldexpf, ldexpl): Only define if __FAST_MATH__.
579
580 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
581
582 Replace hard-coded offsets into struct sigcontext with generated file.
583 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
584 * sysdeps/unix/sysv/linux/ia64/Makefile
585 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
586 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
587 defining SC_* macros here.
588
589 2003-06-02 Jakub Jelinek <jakub@redhat.com>
590
591 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
592
593 2003-06-01 Jakub Jelinek <jakub@redhat.com>
594
595 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
596
597 2003-06-01 Ulrich Drepper <drepper@redhat.com>
598
599 * test-skeleton.c (main): Request getopt to not reorder the
600 command line.
601
602 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
603
604 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
605 stpncpy.
606
607 2003-05-31 Ulrich Drepper <drepper@redhat.com>
608
609 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
610
611 2003-05-31 Jakub Jelinek <jakub@redhat.com>
612
613 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
614 New function.
615 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
616 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
617 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
618
619 2003-05-31 Ulrich Drepper <drepper@redhat.com>
620
621 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
622 CFI directives.
623
624 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
625
626 * libio/fileops.c (_IO_file_open): Don't mark as inline.
627
628 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
629 attribute used.
630
631 2003-05-30 Ulrich Drepper <drepper@redhat.com>
632
633 * scripts/config.guess: Update from master copy.
634 * scripts/config.sub: Likewise.
635
636 2003-05-30 Guido Guenther <agx@sigxcpu.org>
637
638 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
639 SETUP_GP64 and friends.
640 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
641 names in internal_syscall{6,7}.
642 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
643 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
644 number of syscall arguments.
645 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
646 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
647 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
648
649 2003-05-30 Andreas Jaeger <aj@suse.de>
650
651 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
652 Add CFI directives.
653
654 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
655 directives.
656
657 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
658
659 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
660 Add CFI directives.
661
662 2003-05-30 Jakub Jelinek <jakub@redhat.com>
663
664 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
665 SHARED.
666
667 2003-05-11 Andreas Schwab <schwab@suse.de>
668
669 * Makerules: Always use -MP together with -MD.
670 (sed-remove-dotot): Substitute $(..) also at start of line.
671 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
672 Generated defines with a single compiler call.
673 Use $(sed-remove-dotdot).
674 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
675 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
676 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
677 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
678 * sysdeps/unix/sysv/linux/mips/Makefile
679 ($(objpfx)syscall-%.h): Likewise.
680
681 2003-05-28 Roland McGrath <roland@redhat.com>
682
683 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
684
685 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
686
687 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
688
689 2003-05-28 Roland McGrath <roland@redhat.com>
690
691 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
692 rt_sigprocmask system call.
693 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
694 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
695
696 2003-05-28 Ulrich Drepper <drepper@redhat.com>
697
698 * include/libc-symbols.h: Define hidden attribute for real also if
699 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
700
701 * csu/Makefile: Add rules to build Scrt1.o.
702 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
703 * sysdeps/x86_64/elf/start.S: Likewise.
704
705 2003-05-27 Jakub Jelinek <jakub@redhat.com>
706
707 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
708 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
709 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
710 pa_short_int, pa_u_short_int and pa_float.
711
712 2003-05-26 Jakub Jelinek <jakub@redhat.com>
713
714 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
715 _IO_str_init_static_internal.
716 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
717 change size argument to _IO_size_t, don't limit sprintf to 64M.
718 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
719 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
720 _IO_size_t, don't limit swprintf to 256M.
721 (_IO_wstr_init_readonly): Remove.
722 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
723 Adjust prototypes.
724 (_IO_wstr_init_readonly): Remove prototype.
725 * libio/iovsprintf.c (_IO_vsprintf): Use
726 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
727 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
728 * libio/memstream.c (open_memstream): Likewise.
729 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
730 * libio/vasprintf.c (_IO_vasprintf): Likewise.
731 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
732 * stdio-common/tst-sprintf.c (main): Add new test.
733
734 2003-05-26 Ulrich Drepper <drepper@redhat.com>
735
736 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
737 other implementation in respect of multiple uses of parameter with
738 different types.
739
740 2003-05-25 Ulrich Drepper <drepper@redhat.com>
741
742 * sysdeps/unix/sysv/linux/kernel-features.h: Define
743 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
744
745 2003-05-22 Andreas Jaeger <aj@suse.de>
746
747 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
748 directives.
749 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
750 * sysdeps/x86_64/strtok.S: Likewise.
751
752 2003-05-20 Guido Guenther <agx@sigxcpu.org>
753
754 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
755 to -60 and define SI_TKILL.
756
757 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
758
759 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
760 (feexcp_mask_test): Likewise.
761
762 2003-05-21 Ulrich Drepper <drepper@redhat.com>
763
764 * locale/programs/locale.c (main): Fix typo in last patch.
765
766 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
767 __init_array_start, __init_array_end, __fini_array_start, and
768 __fini_array_end as hidden.
769
770 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
771
772 * locale/programs/locale.c (main): Report an error if setlocale()
773 fails [PR libc/2254].
774
775 2003-05-21 Jakub Jelinek <jakub@redhat.com>
776
777 * sysdeps/unix/sysv/linux/s390/system.c: New file.
778
779 2003-05-21 Jakub Jelinek <jakub@redhat.com>
780
781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
782 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
783 LOADARGS_6): Don't error if syscall argument is a string literal.
784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
785 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
786 LOADARGS_6): Likewise.
787
788 2003-05-21 Andreas Jaeger <aj@suse.de>
789
790 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
791 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
792 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
793
794 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
795 (ENTRY): Likewise.
796 (END): Likewise.
797
798 * configure.in: Test for asm cfi directives.
799
800 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
801
802 2003-05-17 Andreas Jaeger <aj@suse.de>
803
804 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
805
806 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
807
808 2003-05-16 Ulrich Drepper <drepper@redhat.com>
809
810 * rt/Makefile (tests): Add tst-clock_nanosleep.
811 * rt/tst-clock_nanosleep.c: New file.
812 * posix/Makefile (tests): Add tst-nanosleep.
813 * posix/tst-nanosleep.c: New file.
814
815 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
816
817 * include/features.h (__USE_XOPEN2K): Define also for
818 _POSIX_C_SOURCE>=200112L.
819
820 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
821 SI_TKILL code into SI_USER.
822 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
823
824 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
825
826 2003-05-15 Jakub Jelinek <jakub@redhat.com>
827
828 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
829 Remove sym argument, always use refsym.
830 (__process_machine_rela): Adjust callers.
831 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
832 Likewise.
833 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
834 Adjust prototype.
835 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
836
837 2003-05-15 Ulrich Drepper <drepper@redhat.com>
838
839 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
840 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
841 print numeric values.
842
843 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
844
845 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
846
847 2003-05-14 Andreas Schwab <schwab@suse.de>
848
849 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
850
851 2003-05-14 Jakub Jelinek <jakub@redhat.com>
852
853 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
854 even if no DT_NEEDED is present.
855
856 2003-05-13 David Mosberger <davidm@hpl.hp.com>
857
858 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
859 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
860 __sigjmp_save) so we can't keep the saved unat value in a scratch
861 register (r16). Use loc2 instead.
862
863 2003-05-13 Ulrich Drepper <drepper@redhat.com>
864
865 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
866 binaries it has to be relocatable.
867
868 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
869
870 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
871
872 * sysdeps/powerpc/bits/atomic.h
873 (__arch_compare_and_exchange_bool_8_rel): Define.
874 (__arch_compare_and_exchange_bool_16_rel): Define.
875 (__ARCH_REL_INSTR): Define if not already defined.
876 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
877 (__arch_atomic_decrement_if_positive_32):
878 Add "memory" to clobber list.
879 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
880 (__arch_compare_and_exchange_val_32_rel): Define.
881 (__arch_atomic_exchange_32): Remove.
882 (__arch_atomic_exchange_32_acq): Define.
883 (__arch_atomic_exchange_32_rel): Define.
884 (atomic_compare_and_exchange_val_rel): Define.
885 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
886 (atomic_exchange_rel): Define.
887 * sysdeps/powerpc/powerpc32/bits/atomic.h
888 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
889 (__arch_compare_and_exchange_bool_32_rel): Define.
890 (__arch_compare_and_exchange_bool_64_rel): Define.
891 (__arch_compare_and_exchange_val_64_rel): Define.
892 (__arch_atomic_exchange_64): Remove.
893 (__arch_atomic_exchange_64_acq): Define.
894 (__arch_atomic_exchange_64_rel): Define.
895 * sysdeps/powerpc/powerpc64/bits/atomic.h
896 (__arch_compare_and_exchange_bool_32_rel): Define.
897 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
898 (__arch_compare_and_exchange_bool_64_rel): Define.
899 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
900 (__arch_compare_and_exchange_val_64_rel): Define.
901 (__arch_atomic_exchange_64): Remove.
902 (__arch_atomic_exchange_64_acq): Define.
903 (__arch_atomic_exchange_64_rel): Define.
904 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
905 (__arch_atomic_decrement_if_positive_64):
906 Add "memory" to clobber list.
907 [!UP](__ARCH_REL_INSTR): Define as lwsync.
908
909 2003-05-11 Andreas Schwab <schwab@suse.de>
910
911 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
912
913 2003-05-11 Ulrich Drepper <drepper@redhat.com>
914
915 * time/tst-strftime.c (do_test): Add tests for - flag.
916
917 2003-05-11 Jim Meyering <jim@meyering.net>
918
919 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
920 the space-padded-by-default conversion specifiers, %e, %k, %l.
921
922 2003-05-11 Andreas Schwab <schwab@suse.de>
923
924 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
925
926 2003-05-10 Ulrich Drepper <drepper@redhat.com>
927
928 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
929 already defined and when really needed.
930 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
931
932 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
933
934 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
935 headers, add defines from kernel header, move it from here...
936 * inet/netinet/igmp.h: ... to here.
937 * inet/Makefile (headers): Add netinet/igmp.h.
938 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
939 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
940
941 2003-05-10 Ulrich Drepper <drepper@redhat.com>
942
943 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
944 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
945
946 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
947
948 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
949 (remove __THROW from possible cancellation points).
950
951 2003-05-10 Ulrich Drepper <drepper@redhat.com>
952
953 * posix/sched.h (CPU_SETSIZE): Define.
954
955 2003-05-09 Ulrich Drepper <drepper@redhat.com>
956
957 * Makeconfig (gnulib): Remove -lgcc_eh again.
958
959 * posix/sched.h: Change prototypes of sched_getaffinity and
960 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
961 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
962 * sysdeps/generic/sched_setaffinity.c: Likewise.
963 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
964 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
965 __CPU_CLR, and __CPU_ISSET.
966 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
967 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
968 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
969
970 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
971 (atomic_exchange_rel): New #define.
972 * sysdeps/ia64/bits/atomic.h: Likewise.
973 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
974 atomic_exchange.
975 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
976 * sysdeps/powerpc/bits/atomic.h: Likewise.
977 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
978 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
979 * sysdeps/x86_64/bits/atomic.h: Likewise.
980 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
981
982 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
983
984 2003-05-08 Ulrich Drepper <drepper@redhat.com>
985
986 * malloc/thread-m.h: Remove special handling of thread_atfork if
987 HAVE_register_atfork_malloc is defined.
988
989 2003-05-07 Andreas Jaeger <aj@suse.de>
990
991 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
992 information.
993
994 2003-05-06 Ulrich Drepper <drepper@redhat.com>
995
996 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
997 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
998 * libio/libioP.h: Declare _IO_old_init.
999 * libio/genops.c (_IO_no_init): Split in two. New function
1000 _IO_old_init.
1001
1002 2003-05-05 Ulrich Drepper <drepper@redhat.com>
1003
1004 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
1005 variable.
1006 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
1007 is nonzero.
1008 * include/unistd.h: Declare __libc_enable_secure_decided.
1009 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
1010 and AT_EGID. If all found, set __libc_enable_secure and
1011 __libc_enable_secure_decided.
1012
1013 * sysdeps/generic/libc-start.c [!SHARED]: Call
1014 __libc_check_standard_fds after __libc_init_first.
1015
1016 2003-05-05 Roland McGrath <roland@redhat.com>
1017
1018 * Makerules (common-before-compile): New variable.
1019 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
1020 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
1021 to after all setting of before-compile.
1022
1023 2003-05-05 Jakub Jelinek <jakub@redhat.com>
1024
1025 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1026 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
1027 * sysdeps/powerpc/powerpc32/bits/atomic.h
1028 (__arch_compare_and_exchange_val_64_acq): Likewise.
1029 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
1030 (__arch_compare_and_exchange_val_8_acq,
1031 __arch_compare_and_exchange_val_16_acq,
1032 __arch_compare_and_exchange_val_64_acq): Likewise.
1033 * sysdeps/sparc/sparc64/bits/atomic.h
1034 (__arch_compare_and_exchange_val_8_acq,
1035 __arch_compare_and_exchange_val_16_acq): Likewise.
1036 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
1037 __arch_compare_and_exchange_val_16_acq,
1038 __arch_compare_and_exchange_val_64_acq): Likewise.
1039 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1040 (__arch_compare_and_exchange_val_64_acq): Likewise.
1041 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
1042 up warning.
1043 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
1044
1045 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1046 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
1047 Return long instead of int.
1048 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
1049 0xfffff001u with -4095UL.
1050
1051 2003-05-05 Andreas Jaeger <aj@suse.de>
1052
1053 * sysdeps/x86_64/fpu_control.h: New from i386.
1054
1055 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
1056 Define if not defined.
1057
1058 * sunrpc/Makefile (generated-dirs): New variable.
1059 * resolv/Makefile (generated): New variable.
1060
1061 2003-05-04 Roland McGrath <roland@redhat.com>
1062
1063 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
1064 Depend on $(before-compile).
1065
1066 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
1067 pattern rule. The implicit rule could be ruled out when $(objpfx)
1068 didn't exist at the time of its consideration (ugh!).
1069
1070 * Makerules (+make-deps): Fix target matching.
1071 Use $(sed-remove-dotdot).
1072
1073 2003-05-03 Ulrich Drepper <drepper@redhat.com>
1074
1075 * nscd/nscd.c (main): Parse config file right after parsing
1076 parameters. Then, if get_stats is true, call receive_print_stats.
1077 Drop parameter from nscd_init call.
1078 (get_stats): New variable.
1079 (parse_opt): Set get_stats, don't call receive_print_stats here.
1080 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
1081 prototype.
1082 * nscd/connections.c (stat_user, stat_uid): New variables.
1083 (dbs): Make global.
1084 (nscd_init): Don't read configuration file here. Drop parameter.
1085 (handle_request): Cleanup handling of non-database lookup requests.
1086 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
1087 Get UID of the specified user. Use xstrdup instead of strdup.
1088 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
1089 check stat_user.
1090 * nscd/Makefile (nscd-modules): Add xstrdup.
1091 * nscd/nscd.conf: Document stat-user entry.
1092
1093 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
1096 if not defined.
1097
1098 2003-04-22 Roland McGrath <roland@redhat.com>
1099
1100 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
1101 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1102 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
1103 * elf/dl-support.c: Update defn.
1104 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
1105 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1106 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
1107 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
1108 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
1109 set, set up a link_map for the preloaded, prelinked object.
1110
1111 2003-05-03 Roland McGrath <roland@redhat.com>
1112
1113 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
1114 * stdio-common/Makefile: ... not here.
1115
1116 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
1117 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
1118
1119 2003-05-02 Ulrich Drepper <drepper@redhat.com>
1120
1121 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
1122
1123 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
1124
1125 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
1126 comparing ftab elements.
1127 (_dl_unmap): Fix typo in test.
1128 (_dl_make_fptr): Fix typos introduced in last change.
1129
1130 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
1131 original patch. Use non-exported symbols. Mark translatable
1132 strings. Pretty printing.
1133
1134 2003-05-02 Roland McGrath <roland@redhat.com>
1135
1136 * Makerules (do-stamp): Do $(make-target-directory).
1137
1138 2003-04-07 H.J. Lu <hjl@gnu.org>
1139
1140 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
1141
1142 2003-04-03 H.J. Lu <hjl@gnu.org>
1143
1144 * sysdeps/ia64/dl-fptr.c: Moved to ...
1145 * sysdeps/generic/dl-fptr.c: Here.
1146
1147 * sysdeps/generic/dl-fptr.h: New.
1148 * sysdeps/ia64/dl-fptr.h: New.
1149
1150 * sysdeps/ia64/dl-symaddr.c: Moved to ...
1151 * sysdeps/generic/dl-symaddr.c: here.
1152
1153 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
1154 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
1155 (ia64_fdesc): Likewise.
1156 (ia64_fdesc_table): Likewise.
1157 (__ia64_make_fptr): Likewise.
1158 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
1159 with _dl_boot_fptr_table.
1160 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
1161 `struct fdesc'.
1162 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
1163
1164 2003-05-01 Roland McGrath <roland@redhat.com>
1165
1166 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
1167 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
1168
1169 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
1170 Use $(make-target-directory).
1171 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1172
1173 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
1174 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
1175 (compile-command.s, compile-command.c): Likewise.
1176 ($(objpfx)%.d): All such pattern rules removed.
1177 ($(+sysdir_pfx)sysd-rules): Don't generate them.
1178 ($(common-objpfx)dummy.d): Target removed.
1179 (make-dummy-dep): Variable removed.
1180 (generate-md5): Likewise.
1181 (%.d: %.dt): New pattern rule.
1182 (+depfiles): Use $(wildcard) function to get just existing *.d files
1183 and .d files for existing *.dt files.
1184 (common-clean): Remove all *.d and *.dt files.
1185 (before-compile): Add $(objpfx). when it doesn't exist,
1186 regardless of $(no_deps).
1187 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
1188 (rtld-depfiles): Use .os.d instead of .d names.
1189 Include existing *.d files and .d files for existing *.dt files.
1190
1191 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
1192 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
1193
1194 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
1195 Do s-*.d includes only if we have some syscall routines in this subdir.
1196
1197 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
1198 @nobits. The former is accepted by gas on any ELF platform.
1199
1200 2003-05-01 Ulrich Drepper <drepper@redhat.com>
1201
1202 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
1203
1204 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
1205
1206 2003-04-29 Andreas Schwab <schwab@suse.de>
1207
1208 * string/test-strcat.c (do_one_test): Fix attribute name.
1209
1210 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
1211
1212 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
1213 uc_flags long for all ABIs.
1214
1215 2003-04-30 Andreas Jaeger <aj@suse.de>
1216
1217 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
1218 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
1219 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
1220 Add bi-arch support.
1221
1222 2003-04-30 Ulrich Drepper <drepper@redhat.com>
1223
1224 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
1225 (__posix_memalign): Use __memalign_internal instead of memalign.
1226
1227 2003-04-29 Roland McGrath <roland@redhat.com>
1228
1229 * configure.in: Search for AUTOCONF unconditionally.
1230 Just don't complain about missing it under --without-cvs.
1231
1232 * include/libc-symbols.h (__symbol_set_attribute): New macro,
1233 give hidden for [SHARED] and weak for [! SHARED].
1234 (symbol_set_declare): Use that. Never need weak_extern these days.
1235 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
1236 Depend on $(..)Makerules.
1237
1238 2003-04-29 Ulrich Drepper <drepper@redhat.com>
1239
1240 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
1241 variants of socket, bind, recvmsg, and sendto.
1242
1243 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
1244
1245 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
1246 * signal/sigaddset.c: Add libc_hidden_def.
1247 * signal/sigdelset.c: Likewise.
1248
1249 2003-04-29 Jakub Jelinek <jakub@redhat.com>
1250
1251 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
1252 to the end of the file.
1253
1254 * configure.in: Change __oline__ to $LINENO.
1255 (HAVE_BUILTIN_REDIRECTION): New check.
1256 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
1257 * include/libc-symbols.h (libc_hidden_builtin_proto,
1258 libc_hidden_builtin_def, libc_hidden_builtin_weak,
1259 libc_hidden_builtin_ver): Define.
1260 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
1261 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
1262 strspn, strstr): Add libc_hidden_builtin_proto.
1263 * intl/plural.y: Include string.h.
1264 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
1265 libc_hidden_builtin_def.
1266 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
1267 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
1268 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
1269 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
1270 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
1271 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
1272 * sysdeps/alpha/memchr.S (memchr): Likewise.
1273 * sysdeps/alpha/memset.S (memset): Likewise.
1274 * sysdeps/alpha/strcat.S (strcat): Likewise.
1275 * sysdeps/alpha/strchr.S (strchr): Likewise.
1276 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
1277 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
1278 * sysdeps/alpha/strlen.S (strlen): Likewise.
1279 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
1280 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
1281 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
1282 * sysdeps/arm/memset.S (memset): Likewise.
1283 * sysdeps/arm/strlen.S (strlen): Likewise.
1284 * sysdeps/generic/memchr.c (memchr): Likewise.
1285 * sysdeps/generic/memcpy.c (memcpy): Likewise.
1286 * sysdeps/generic/memmove.c (memmove): Likewise.
1287 * sysdeps/generic/memset.c (memset): Likewise.
1288 * sysdeps/generic/strcat.c (strcat): Likewise.
1289 * sysdeps/generic/strchr.c (strchr): Likewise.
1290 * sysdeps/generic/strcmp.c (strcmp): Likewise.
1291 * sysdeps/generic/strcpy.c (strcpy): Likewise.
1292 * sysdeps/generic/strcspn.c (strcspn): Likewise.
1293 * sysdeps/generic/strlen.c (strlen): Likewise.
1294 * sysdeps/generic/strncmp.c (strncmp): Likewise.
1295 * sysdeps/generic/strncpy.c (strncpy): Likewise.
1296 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
1297 * sysdeps/generic/strrchr.c (strrchr): Likewise.
1298 * sysdeps/generic/strspn.c (strspn): Likewise.
1299 * sysdeps/generic/strstr.c (strstr): Likewise.
1300 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1301 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1302 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
1303 * sysdeps/i386/i586/memset.S (memset): Likewise.
1304 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
1305 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
1306 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1307 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
1308 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1309 * sysdeps/i386/i686/memset.S (memset): Likewise.
1310 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1311 * sysdeps/i386/memchr.S (memchr): Likewise.
1312 * sysdeps/i386/memset.c (memset): Likewise.
1313 * sysdeps/i386/strchr.S (strchr): Likewise.
1314 * sysdeps/i386/strcspn.S (strcspn): Likewise.
1315 * sysdeps/i386/strlen.c (strlen): Likewise.
1316 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1317 * sysdeps/i386/strrchr.S (strrchr): Likewise.
1318 * sysdeps/i386/strspn.S (strspn): Likewise.
1319 * sysdeps/ia64/memchr.S (memchr): Likewise.
1320 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
1321 * sysdeps/ia64/memmove.S (memmove): Likewise.
1322 * sysdeps/ia64/memset.S (memset): Likewise.
1323 * sysdeps/ia64/strcat.S (strcat): Likewise.
1324 * sysdeps/ia64/strchr.S (strchr): Likewise.
1325 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
1326 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
1327 * sysdeps/ia64/strlen.S (strlen): Likewise.
1328 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
1329 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
1330 * sysdeps/m68k/memchr.S (memchr): Likewise.
1331 * sysdeps/m68k/strchr.S (strchr): Likewise.
1332 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
1333 * sysdeps/mips/mips64/memset.S (memset): Likewise.
1334 * sysdeps/mips/memcpy.S (memcpy): Likewise.
1335 * sysdeps/mips/memset.S (memset): Likewise.
1336 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
1337 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
1338 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
1339 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
1340 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
1341 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
1342 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
1343 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
1344 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
1345 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
1346 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
1347 * sysdeps/powerpc/strcat.c (strcat): Likewise.
1348 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
1349 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
1350 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
1351 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
1352 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
1353 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
1354 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
1355 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
1356 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
1357 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
1358 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
1359 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
1360 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
1361 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
1362 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
1363 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
1364 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
1365 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
1366 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
1367 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
1368 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
1369 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
1370 * sysdeps/sh/memcpy.S (memcpy): Likewise.
1371 * sysdeps/sh/memset.S (memset): Likewise.
1372 * sysdeps/sh/strlen.S (strlen): Likewise.
1373 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
1374 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
1375 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
1376 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
1377 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
1378 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
1379 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
1380 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
1381 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
1382 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
1383 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
1384 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
1385 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1386 * sysdeps/x86_64/memset.S (memset): Likewise.
1387 * sysdeps/x86_64/strcat.S (strcat): Likewise.
1388 * sysdeps/x86_64/strchr.S (strchr): Likewise.
1389 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
1390 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
1391 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
1392 * sysdeps/x86_64/strlen.S (strlen): Likewise.
1393 * sysdeps/x86_64/strspn.S (strspn): Likewise.
1394 * string/string-inlines.c: Move...
1395 * sysdeps/generic/string-inlines.c: ...here.
1396 (__memcpy_g, __strchr_g): Remove.
1397 (__NO_INLINE__): Define before including <string.h>,
1398 undefine after. Include bits/string.h and bits/string2.h.
1399 * sysdeps/i386/i486/string-inlines.c: New file.
1400 * sysdeps/i386/string-inlines.c: New file.
1401 * sysdeps/i386/i486/Versions: Remove.
1402 All GLIBC_2.1.1 symbols moved...
1403 * sysdeps/i386/Versions (libc): ...here.
1404
1405 2003-04-29 Ulrich Drepper <drepper@redhat.com>
1406
1407 * sysdeps/i386/fpu/Makefile: New file.
1408 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
1409 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1410 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1411 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
1412 [PR libc/4987].
1413
1414 2003-04-28 Ulrich Drepper <drepper@redhat.com>
1415
1416 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
1417 * nscd/nscd_getpw_r.c: Likewise.
1418 * nscd/nscd_gethst_r.c: Likewise.
1419
1420 2003-04-27 Ulrich Drepper <drepper@redhat.com>
1421
1422 * nscd/pwdcache.c: Initialize .version element in result.
1423 * nscd/grpcache.c: Likewise.
1424 * nscd/pwdcache.c: Likewise.
1425
1426 2003-04-27 Andreas Schwab <schwab@suse.de>
1427
1428 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
1429 subdirectory.
1430
1431 2003-04-27 Andreas Schwab <schwab@suse.de>
1432
1433 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
1434
1435 2003-04-27 Ulrich Drepper <drepper@redhat.com>
1436
1437 * nscd/connections.c (client_queued): New variable.
1438 (nscd_run): Revamp the loop. Don't call poll except for cleanup
1439 threads. Keep track of the number of delays caused because of busy
1440 worker threads.
1441 * nscd/nscd.h: Declare client_queued.
1442 * nscd/nscd_stat.c: Transmit and print client_queued information.
1443
1444 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
1445
1446 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
1447 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
1448
1449 2003-04-26 Ulrich Drepper <drepper@redhat.com>
1450
1451 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
1452 tracking of freed memory in static TLS block.
1453 * elf/Makefile: Add rules to build and run tst-tls13.
1454 * elf/tst-tls13.c: New file.
1455 * elf/tst-tlsmod13.c: New file.
1456 * elf/tst-tlsmod13a.c: New file.
1457
1458 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
1459
1460 * elf/dl-reloc.c: Pretty printing.
1461
1462 2003-04-26 Roland McGrath <roland@redhat.com>
1463
1464 * Makerules ($(common-objpfx)shlib.lds): New target.
1465 (common-generated): Add it.
1466 (build-shlib, build-module): Use that instead of generating every time.
1467 ($(common-objpfx)libc.so): Depend on it.
1468 (lib%.so rule): Likewise.
1469 (build-module-helper-objlist): Remove %.lds.
1470 (LDSEDCMD-c.so): Variable removed.
1471 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
1472 Depend on $(common-objpfx)shlib.lds.
1473 * dlfcn/Makefile ($(test-modules)): Likewise.
1474
1475 2003-04-26 Roland McGrath <roland@frob.com>
1476
1477 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
1478
1479 2003-04-26 Andreas Schwab <schwab@suse.de>
1480
1481 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
1482
1483 2003-04-25 Ulrich Drepper <drepper@redhat.com>
1484
1485 * nscd/cache.c (cache_search): Keep track of how many chain links
1486 we searched and update table statistics.
1487 (cache_add): Keep track of how many values are in the table.
1488 (prune_cache): Likewise. Keep track of locking success.
1489 Print messages about removed entries in separate pass.
1490 * nscd/connections.c (handle_request): Don't print debug message here.
1491 The caller will do it. Keep track of locking success.
1492 (nscd_run): Print debug message. Also print PID of the client process.
1493 * nscd/nscd.c (start_time): New variable.
1494 (main): Remember start time.
1495 * nscd/nscd.h: Declare start_time.
1496 (struct database): Add more members for new statistics.
1497 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
1498 of new statistics.
1499
1500 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
1501
1502 2003-04-22 Jakub Jelinek <jakub@redhat.com>
1503
1504 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
1505 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
1506 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
1507 NO_TLS_OFFSET.
1508 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
1509 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
1510 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
1511 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
1512 TLS_TCB_SIZE.
1513
1514 2003-04-24 Ulrich Drepper <drepper@redhat.com>
1515
1516 * nss/getent.c: Implement alternative host database lookup via
1517 getaddrinfo.
1518
1519 * include/ifaddrs.h: New file.
1520 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
1521 AI_ADDRCONFIG...
1522 * resolv/netdb.h: ...here.
1523 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
1524 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1525 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
1526 AI_ADDRCONFIG.
1527
1528 2003-04-24 Roland McGrath <roland@redhat.com>
1529
1530 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
1531
1532 2003-04-24 Jakub Jelinek <jakub@redhat.com>
1533
1534 * elf/dl-reloc.c (allocate_static_tls): Rename to...
1535 (_dl_allocate_static_tls): ... this function. No longer static.
1536 (CHECK_STATIC_TLS): Adjust.
1537 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
1538 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
1539 Add SYM_MAP argument.
1540 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
1541 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
1542 TLS relocs here. #ifdef out relocs which never appear in
1543 .gnu.conflict section from dl-conflict.c processing.
1544 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1545 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
1546
1547 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
1548 out relocs which never appear in .gnu.conflict section from
1549 dl-conflict.c processing.
1550 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1551 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1552 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
1553 Use r_type in RESOLVE macro.
1554
1555 2003-04-23 Ulrich Drepper <drepper@redhat.com>
1556
1557 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
1558 NULL. Remove code made redundant by this assumption.
1559 (__yp_unbind): Add call to free. Adjust all callers.
1560
1561 * nis/ypclnt.c (yp_all): Free the dom_binding object after
1562 unbinding it.
1563
1564 * grp/initgroups.c (getgrouplist): Don't copy too much into the
1565 user buffer if more groups are found than fit into it.
1566
1567 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
1568 extend_alloca.
1569
1570 2003-04-23 Jakub Jelinek <jakub@redhat.com>
1571
1572 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
1573 not rc == errno. Use extend_alloca.
1574
1575 * elf/tst-tls12.c (main): Fix declaration.
1576 * elf/tst-tls10.c (dummy): Make hidden instead of static.
1577 * elf/tst-tlsmod7.c (dummy): Likewise.
1578 * elf/tst-tlsmod8.c (dummy): Likewise.
1579 * elf/tst-tlsmod9.c (dummy): Likewise.
1580
1581 2003-04-22 Roland McGrath <roland@redhat.com>
1582
1583 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
1584 (open_not_cancel): Make last argument non-optional.
1585 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
1586 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1587 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1588
1589 * include/tls.h: Protect against multiple inclusion.
1590
1591 2003-04-22 Ulrich Drepper <drepper@redhat.com>
1592
1593 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
1594 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
1595 open_socket. Not static anymore.
1596 (nscd_gethst_r): Use __nscd_open_socket.
1597 * nscd/nscd_getgr_r.c (open_socket): Removed.
1598 (nscd_getgr_r): Use __nscd_open_socket.
1599 * nscd/nscd_getpw_r.c (open_socket): Removed.
1600 (nscd_getpw_r): Use __nscd_open_socket.
1601
1602 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
1603 * nscd/connections.c (handle_request): Add cast to avoid warning.
1604
1605 2003-04-21 Ulrich Drepper <drepper@redhat.com>
1606
1607 * signal/sigfillset.c: Moved to...
1608 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
1609 do not set the corresponding bit.
1610
1611 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
1612 SIGCANCEL.
1613 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
1614 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
1615 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
1616 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
1617 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
1618
1619 2003-04-20 Ulrich Drepper <drepper@redhat.com>
1620
1621 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
1622 first syscall parameter to const char*.
1623
1624 2003-04-19 Ulrich Drepper <drepper@redhat.com>
1625
1626 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
1627
1628 * configure.in: Add AC_PROG_CXX.
1629 * config.make.in (CXX): Define.
1630
1631 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
1632 __len to size_t to avoid warnings.
1633
1634 2003-04-18 Jes Sorensen <jes@wildopensource.com>
1635
1636 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
1637 2.5.67.
1638 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1639
1640 2003-04-19 Ulrich Drepper <drepper@redhat.com>
1641
1642 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
1643 UNREGISTER_ATFORK if d == NULL.
1644
1645 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
1646 * dirent/dirent.h: Likewise.
1647 * dlfcn/dlfcn.h: Likewise.
1648 * grp/grp.h: Likewise.
1649 * iconv/iconv.h: Likewise.
1650 * io/fcntl.h: Likewise.
1651 * io/ftw.h: Likewise.
1652 * libio/stdio.h: Likewise.
1653 * misc/sys/mman.h: Likewise.
1654 * misc/sys/select.h: Likewise.
1655 * misc/sys/syslog.h: Likewise.
1656 * misc/sys/uio.h: Likewise.
1657 * posix/spawn.h: Likewise.
1658 * posix/unistd.h: Likewise.
1659 * posix/sys/wait.h: Likewise.
1660 * pwd/pwd.h: Likewise.
1661 * resolv/netdb.h: Likewise.
1662 * rt/aio.h: Likewise.
1663 * shadow/shadow.h: Likewise.
1664 * signal/signal.h: Likewise.
1665 * socket/sys/socket.h: Likewise.
1666 * stdlib/stdlib.h: Likewise.
1667 * streams/stropts.h: Likewise.
1668 * string/string.h: Likewise.
1669 * sysdeps/gnu/utmpx.h: Likewise.
1670 * sysvipc/sys/msg.h: Likewise.
1671 * termios/termios.h: Likewise.
1672 * time/time.h: Likewise.
1673 * wcsmbs/wchar.h: Likewise.
1674 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
1675 functions.
1676 * misc/daemon.c: Likewise.
1677 * sysdeps/generic/backtracesymsfd.c: Likewise.
1678 * sysdeps/generic/check_fds.c: Likewise.
1679 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
1680 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
1681 * sysdeps/generic/not-cancel.h: New file.
1682 * csu/Makefile (distribute): Add not-cancel.h.
1683 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
1684 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
1685 for assert.c and assert-perr.c to include <fatal-prepare.h>.
1686 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
1687
1688 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
1689 errno and unlink first.
1690
1691 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
1692
1693 2003-04-18 Ulrich Drepper <drepper@redhat.com>
1694
1695 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
1696 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
1697
1698 2003-04-17 Ulrich Drepper <drepper@redhat.com>
1699
1700 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
1701
1702 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
1703 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
1704 replace.
1705
1706 * signal/Makefile (tests): Add tst-sigsimple.
1707 * signal/tst-sigsimple.c: New file.
1708
1709 2003-04-16 Jakub Jelinek <jakub@redhat.com>
1710
1711 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
1712 tst-tls10.h.
1713 (tests): Add tst-tls1[0-2].
1714 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
1715 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
1716 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
1717 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
1718 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
1719 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
1720 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
1721 * elf/tst-tls10.c: New test.
1722 * elf/tst-tls11.c: New test.
1723 * elf/tst-tls12.c: New test.
1724 * elf/tst-tls10.h: New file.
1725 * elf/tst-tlsmod7.c: New file.
1726 * elf/tst-tlsmod8.c: New file.
1727 * elf/tst-tlsmod9.c: New file.
1728 * elf/tst-tlsmod10.c: New file.
1729 * elf/tst-tlsmod11.c: New file.
1730 * elf/tst-tlsmod12.c: New file.
1731
1732 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1733
1734 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
1735 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
1736 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
1737
1738 2003-04-17 Ulrich Drepper <drepper@redhat.com>
1739
1740 * posix/regex.h: Include <sys/types.h>.
1741
1742 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
1743 The signal number must be checked.
1744 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
1745 The signal number must be checked [PR libc/5004].
1746
1747 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
1748 don't do anything fancy.
1749
1750 * sysdeps/generic/bits/libc-lock.h: Define
1751 __rtld_lock_define_initialized_recursive.
1752
1753 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
1754 contacting nscd if NOT_USENSCD_NAME > 0.
1755 * nss/nsswitch.c (__nss_disable_nscd): New function.
1756 * nss/nsswitch.h: Declare it.
1757 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
1758 * nscd/nscd.c (main): Call __nss_disable_nscd.
1759
1760 2003-04-16 Ulrich Drepper <drepper@redhat.com>
1761
1762 * stdio-common/perror.c (perror): We don't need to set the offset
1763 to _IO_pos_bad, this is how streams are initialized.
1764
1765 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
1766 (time_output): If necessary, allocate new buffer for .name string if
1767 padding is required.
1768
1769 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
1770 before copying. This might leave holes in the list. Adjust
1771 pointers if necessary.
1772 (netlink_receive): Allocate only one block.
1773 (free_netlink_handle): Adjust appropriately.
1774 (getifaddrs): Lots of cleanups.
1775
1776 * string/test-strncpy.c (do_one_test): Mark start and stop as
1777 possibly unused.
1778 * string/test-memchr.c: Likewise.
1779 * string/test-memcmp.c: Likewise.
1780 * string/test-memcpy.c: Likewise.
1781 * string/test-memmove.c: Likewise.
1782 * string/test-memset.c: Likewise.
1783 * string/test-strcat.c: Likewise.
1784 * string/test-strchr.c: Likewise.
1785 * string/test-strcmp.c: Likewise.
1786 * string/test-strcpy.c: Likewise.
1787 * string/test-strlen.c: Likewise.
1788 * string/test-strncmp.c: Likewise.
1789 * string/test-strpbrk.c: Likewise.
1790 * string/test-strrchr.c: Likewise.
1791 * string/test-strspn.c: Likewise.
1792
1793 2003-04-15 Roland McGrath <roland@redhat.com>
1794
1795 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
1796
1797 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
1798 INTUSE(__register_frame_info_bases).
1799
1800 2003-04-15 Ulrich Drepper <drepper@redhat.com>
1801
1802 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
1803 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
1804 AT_SYSINFO_EH_FRAME. Adjust string width.
1805 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
1806 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
1807 Add _dl_sysinfo_eh_frame field.
1808 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
1809 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
1810 variable.
1811 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
1812 if _dl_sysinfo_eh_frame is non-NULL.
1813
1814 * Makeconfig (gnulib): Add -lgcc_eh.
1815
1816 * config.h.in: Define HAVE_FORCED_UNWIND.
1817
1818 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1819
1820 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
1821 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
1822
1823 2003-04-15 Jakub Jelinek <jakub@redhat.com>
1824
1825 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
1826 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
1827 against local symbol in conflict processing.
1828
1829 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1830
1831 * sysdeps/powerpc/bits/atomic.h
1832 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
1833 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
1834 as abort stub.
1835 (__arch_compare_and_exchange_val_32_acq): Define.
1836 (atomic_compare_and_exchange_val_acq): Define.
1837
1838 2003-04-15 Ulrich Drepper <drepper@redhat.com>
1839
1840 * include/atomic.h: Pretty printing.
1841
1842 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1843
1844 * stdio-common/vfscanf.c: Add casts to avoid warnings.
1845
1846 2003-04-14 Jakub Jelinek <jakub@redhat.com>
1847
1848 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
1849 * sysdeps/x86_64/bits/atomic.h: Likewise.
1850
1851 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1852
1853 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
1854 POPARGS_1 to emit labels for the mov instructions.
1855
1856 2003-04-14 Jakub Jelinek <jakub@redhat.com>
1857
1858 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
1859
1860 2003-04-14 Roland McGrath <roland@redhat.com>
1861
1862 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
1863 compiler warning.
1864
1865 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
1866
1867 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1868
1869 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
1870 position. Reported by jreiser@BitWagon.com.
1871
1872 2003-04-13 Ulrich Drepper <drepper@redhat.com>
1873
1874 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
1875 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
1876 * sysdeps/generic/unwind-dw2.c: Likewise.
1877 * sysdeps/generic/unwind-pe.h: Likewise.
1878
1879 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
1880
1881 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
1882 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
1883 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
1884 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
1885 (mcontext_t): Make it match the 32-bit mips kernel in o32.
1886 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
1887 the mips and mips64 headers.
1888 (struct user): Port to n32/n64.
1889
1890 2003-04-12 Ulrich Drepper <drepper@redhat.com>
1891
1892 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
1893 avoid warning.
1894
1895 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
1896 __ASSUME_VSYSCALL is defined don't add restorer.
1897 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1898 __ASSUME_VSYSCALL for 2.5.53.
1899
1900 2003-04-11 Ulrich Drepper <drepper@redhat.com>
1901
1902 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
1903 Remove HAVE_CANCELBUF code. Replace with code using the new
1904 initializers for unwind-based cleanup handling.
1905 * sysdeps/generic/unwind.h: Update from latest gcc version.
1906 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
1907 places to allow unwind data generation.
1908 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
1909 * sysdeps/x86_64/bits/setjmp.h: Likewise.
1910 * sysdeps/sh/bits/setjmp.h: Likewise.
1911 * sysdeps/powerpc/bits/setjmp.h: Likewise.
1912 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
1913 * sysdeps/alpha/bits/setjmp.h: Likewise.
1914
1915 2003-04-11 Roland McGrath <roland@redhat.com>
1916
1917 * csu/tst-empty.c: New file.
1918 * csu/Makefile (tests, tests-static): Add it.
1919
1920 2003-04-11 Jakub Jelinek <jakub@redhat.com>
1921
1922 * string/test-strcmp.c (do_random_tests): Test whether return value
1923 has been promoted to wordsize if the ABI requires caller to do so.
1924 * string/test-strncmp.c (do_random_tests): Likewise.
1925 * string/test-memcmp.c (do_random_tests): Likewise.
1926
1927 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
1928 before returning.
1929
1930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1931 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
1932 is not defined, but the prctl constants are.
1933
1934 * string/tester.c (test_strcmp): Fix a typo.
1935
1936 2003-04-09 Ulrich Drepper <drepper@redhat.com>
1937
1938 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
1939 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1940
1941 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
1942
1943 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
1944 NewABI.
1945 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
1946 NewABI.
1947 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
1948 conventions.
1949 * sysdeps/mips/mips64/memset.S: Likewise.
1950 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
1951 Use t0 instead of t4 as temporary.
1952
1953 2003-04-07 Ulrich Drepper <drepper@redhat.com>
1954
1955 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
1956 feof_unlocked instead of feof.
1957 (add_dir): Ignore trailing whitespace.
1958
1959 2003-04-07 Jakub Jelinek <jakub@redhat.com>
1960
1961 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
1962 sum of SIZE1 and SIZE2 arguments.
1963
1964 2003-04-06 Ulrich Drepper <drepper@redhat.com>
1965
1966 * iconv/iconv_prog.c (process_block): Don't print message about
1967 invalid input if the -c option is used.
1968 (main): Correctly append IGNORE string for -c option.
1969
1970 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1971
1972 * sysdeps/sh/bits/atomic.h: Moved to ...
1973 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
1974 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
1975 arguments.
1976 (atomic_bit_set, atomic_bit_test_set): Likewise.
1977 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
1978 twice.
1979 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
1980
1981 2003-04-06 Roland McGrath <roland@redhat.com>
1982
1983 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
1984 restoration as done for setcontext yesterday.
1985
1986 2003-04-06 Jakub Jelinek <jakub@redhat.com>
1987
1988 * elf/rtld.c: Revert 2003-03-14 change.
1989 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
1990 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
1991
1992 2003-04-05 Ulrich Drepper <drepper@redhat.com>
1993
1994 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
1995
1996 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1997 Always initialize *signgamp before returning an error.
1998
1999 2003-04-05 Roland McGrath <roland@redhat.com>
2000
2001 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
2002 below the stack pointer even if switching to the same context we are
2003 running right now.
2004
2005 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2006
2007 * catgets/gencat.c (read_input_file): Make sure that \n is not
2008 alone on the line before testing for continuation.
2009
2010 * math/test-tgmath.c (compile_test): Initialize c.
2011
2012 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
2013
2014 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
2015 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
2016 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
2017 on mips n32.
2018 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
2019 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
2020 structure on n32 as well.
2021 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
2022 data types on n32 and n64.
2023
2024 2003-04-05 Ulrich Drepper <drepper@redhat.com>
2025
2026 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
2027 after getting them.
2028
2029 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
2030 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
2031 instead of __register_atfork.
2032
2033 2003-04-05 Jakub Jelinek <jakub@redhat.com>
2034
2035 * stdio-common/reg-printf.c (__register_printf_function): Calloc
2036 instead of malloc __printf_arginfo_table and __printf_function_table.
2037 Reported by John Reiser <jreiser@BitWagon.com>.
2038
2039 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
2040
2041 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
2042 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
2043
2044 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
2045 defining.
2046
2047 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
2048
2049 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
2050 for n64 abi.
2051
2052 2003-04-03 Roland McGrath <roland@redhat.com>
2053
2054 * configure.in: Fix up use of compilation flags to match the build:
2055 For .s files, $ASFLAGS;
2056 For .S files, $CPPFLAGS $ASFLAGS;
2057 For .c files, $CFLAGS $CPPFLAGS;
2058 when linking, add $LDFLAGS.
2059 * configure: Regenerated.
2060
2061 2003-04-03 Jakub Jelinek <jakub@redhat.com>
2062
2063 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
2064 for atomic_compare_and_exchange_bool_acq failure.
2065
2066 2003-04-03 Ulrich Drepper <drepper@redhat.com>
2067
2068 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
2069 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
2070 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
2071 Remove declaration of pthread_atfork.
2072
2073 2003-04-02 Ulrich Drepper <drepper@redhat.com>
2074
2075 * locale/iso-639.def: Add many more languages from the current ISO 639.
2076
2077 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
2078 * sysdeps/generic/semtimedop.c: New file.
2079 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
2080 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
2081 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2082 * sysvipc/Makefile (routines): Add semtimedop.
2083 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
2084 * sysvipc/sys/sem.h: Declare semtimedop.
2085
2086 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
2087
2088 * configure.in: Check for __register_frame_info in both
2089 -lgcc and -lgcc_eh.
2090 * configure: Regenerated.
2091
2092 2003-04-01 Roland McGrath <roland@redhat.com>
2093
2094 * scripts/abilist.awk: Allow dots in soname suffix.
2095
2096 * scripts/abilist.awk (emit): Fix bailout condition.
2097
2098 2003-04-01 Jakub Jelinek <jakub@redhat.com>
2099
2100 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
2101 IA-64 version.
2102
2103 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
2104 register as input to asm.
2105
2106 2003-04-01 Jakub Jelinek <jakub@redhat.com>
2107
2108 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
2109
2110 2003-04-01 Andreas Jaeger <aj@suse.de>
2111
2112 * configure.in: Output as/ld as name if version is too old.
2113
2114 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
2115
2116 * configure.in: Don't require an installed C library in the test
2117 for ".set" assembler support.
2118
2119 2003-03-31 Roland McGrath <roland@redhat.com>
2120
2121 * signal/tst-sigset.c: New file.
2122 * signal/Makefile (tests): Add it.
2123
2124 2003-03-31 Ulrich Drepper <drepper@redhat.com>
2125
2126 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
2127 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
2128 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
2129 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
2130 (__SIGRTMAX): Adjust accordingly.
2131 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
2132 second compatibility symbol set.
2133 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
2134
2135 2003-03-31 Andreas Schwab <schwab@suse.de>
2136
2137 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
2138 Define.
2139 (atomic_decrement_and_test): Fix test.
2140
2141 2003-03-31 Jakub Jelinek <jakub@redhat.com>
2142
2143 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
2144 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
2145 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
2146 * sysdeps/sparc/sparc32/atomicity.h: Removed.
2147 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
2148 * sysdeps/sparc/sparc64/atomicity.h: Removed.
2149
2150 2003-03-30 Roland McGrath <roland@redhat.com>
2151
2152 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
2153
2154 * intl/po2test.sed: Anchor substitution regexps to fix last change.
2155
2156 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
2157
2158 * intl/po2test.sed: Unify the transformations for msgid and msgstr
2159 and remove a useless s/// command.
2160
2161 2003-03-27 David Mosberger <davidm@hpl.hp.com>
2162
2163 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
2164 directive into empty .prologue region to ensure that call-chain
2165 is terminated even for the first instruction.
2166
2167 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
2168 to terminate call-chain right from the get-go.
2169
2170 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
2171 stop bit between compare & branch.
2172
2173 2003-03-29 Ulrich Drepper <drepper@redhat.com>
2174
2175 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
2176 point correctly [PR libc/4993].
2177
2178 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
2179 netlink_open calls if netlink is known to not be available.
2180
2181 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
2182
2183 * configure.in: Add mips64* support.
2184 * sysdeps/mips/bits/endian.h: Make it bi-endian.
2185 * sysdeps/mips/mipsel/bits/endian.h: Removed.
2186 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
2187 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
2188 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
2189 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
2190 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
2191 * sysdeps/mips/Implies: Moved wordsize-32 to...
2192 * sysdeps/mips/mips32/Implies: New file.
2193 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
2194 ret_NOERRNO): New.
2195 (ret, PSEUDO_END): Moved past END.
2196 (PSEUDO): Moved to...
2197 * sysdeps/unix/mips/mips32/sysdep.h: New file.
2198 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
2199 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
2200 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
2201 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
2202 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
2203
2204 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
2205 Re-introduce ENTRY.
2206
2207 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
2208
2209 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
2210 * inet/test-ifaddrs.c: Allow AF_PACKET.
2211 * sysdeps/unix/sysv/linux/kernel-features.h: Add
2212 __ASSUME_NETLINK_SUPPORT.
2213
2214 2003-03-28 Ulrich Drepper <drepper@redhat.com>
2215
2216 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
2217
2218 2003-03-26 H.J. Lu <hjl@gnu.org>
2219
2220 * elf/vismod.h (getvarlocal1): Return const char **.
2221 (getvarinmod1): Likewise.
2222 (getvaritcpt1): Likewise.
2223 (getvarlocal2): Likewise.
2224 (getvarinmod2): Likewise.
2225 (getvaritcpt2): Likewise.
2226 (getvaritcpt3): Likewise.
2227 * elf/vismain.c (do_test): Adjusted.
2228 * elf/vismod1.c (getvarlocal1): Return address.
2229 (getvarinmod1): Likewise.
2230 (getvaritcpt1): Likewise.
2231 * elf/vismod2.c (getvarlocal2): Likewise.
2232 (getvarinmod2): Likewise.
2233 (getvaritcpt2): Likewise.
2234 * elf/vismod3.c (getvaritcpt3): Likewise.
2235
2236 2003-03-28 Roland McGrath <roland@redhat.com>
2237
2238 * elf/vismain.c (do_test): Print both addresses when they don't match.
2239
2240 * scripts/abilist.awk: If given -v filename_regexp and/or -v
2241 libname_regexp when parsing names, then produce output only
2242 for those matching the given regexps. In combine mode, save all
2243 stanzas for a final sorting by stanza header at the end.
2244 Emit a blank line between stanzas.
2245
2246 * scripts/abilist.awk: When given -v combine=1, do parse_names and
2247 emit a single output stream with lib name in stanza header lines.
2248
2249 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
2250
2251 2003-03-27 Roland McGrath <roland@redhat.com>
2252
2253 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
2254 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
2255
2256 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2257
2258 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2259 Return old value. Make asm output reg constraint earlyclobber.
2260 Renamed from...
2261 (__arch_compare_and_exchange_8_acq): ... this.
2262 (__arch_compare_and_exchange_val_16_acq):
2263 Return old value. Make asm output reg constraint earlyclobber.
2264 Renamed from...
2265 (__arch_compare_and_exchange_16_acq): ... this.
2266 (__arch_compare_and_exchange_val_32_acq):
2267 Return old value. Make asm output reg constraint earlyclobber.
2268 Renamed from...
2269 (__arch_compare_and_exchange_32_acq): ... this.
2270 (__arch_compare_and_exchange_val_64_acq):
2271 Renamed from...
2272 (__arch_compare_and_exchange_64_acq): ... this.
2273 (atomic_exchange_and_add): Use local variables and
2274 __arch_compare_and_exchange_val_64_acq.
2275 (atomic_add): Likewise.
2276 (atomic_add_negative, atomic_add_zero): Use local variables.
2277
2278 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
2279
2280 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
2281
2282 2003-03-27 Ulrich Drepper <drepper@redhat.com>
2283
2284 * Makefile: Remove libmd5crypt goal.
2285
2286 2003-03-25 Jakub Jelinek <jakub@redhat.com>
2287
2288 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
2289 special handling of relocations against local symbols.
2290
2291 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
2292
2293 * sysdeps/powerpc/bits/atomic.h
2294 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
2295 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
2296 Define PPC64 specific version.
2297 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
2298 Change (mem) constraint to "b".
2299 [__powerpc64__] (__arch_atomic_exchange_and add_64):
2300 Replace addi with add. Change (value) contraint to "r".
2301 Change (mem) constraint to "b".
2302 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
2303 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
2304 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
2305 (__arch_atomic_decrement_if_positive_32): New macro.
2306 (atomic_decrement_if_positive): Use __arch* macros.
2307
2308 2003-03-27 Jakub Jelinek <jakub@redhat.com>
2309
2310 * sysdeps/ia64/fpu/libm-test-ulps: Update.
2311
2312 2003-03-27 Roland McGrath <roland@redhat.com>
2313
2314 * scripts/rpm2dynsym.sh: New file.
2315 * Makefile (distribute): Add it.
2316
2317 2003-03-27 David Mosberger <davidm@hpl.hp.com>
2318
2319 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
2320 ar.unat before returning. Add missing .mem.offset directives
2321 to ensure file gets assembled without warnings.
2322 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
2323
2324 2003-03-27 Jakub Jelinek <jakub@redhat.com>
2325
2326 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
2327 Return -1 instead of 0 if clock_getres failed.
2328
2329 2003-03-27 Roland McGrath <roland@redhat.com>
2330
2331 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
2332 header lines and write out foo.symlist files for each foo.so.NN listed.
2333
2334 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
2335 This symbol is exported, and we don't want to hide it.
2336 Add libc_hidden_proto instead.
2337 (_IO_file_jumps): Add libc_hidden_proto.
2338 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
2339 Remove INTVARDEF.
2340 * libio/fileops.c (_IO_file_jumps): Likewise.
2341 * libio/stdfiles.c: Don't use INTUSE on them.
2342 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
2343 * libio/iofopen.c (__fopen_internal): Likewise.
2344 * libio/freopen.c (freopen): Likewise.
2345 * libio/freopen64.c (freopen64): Likewise.
2346 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2347
2348 * Makerules (check-abi) [$(enable-check-abi) = warn]:
2349 Ignore exit status from diff.
2350 * configure.in (enable_check_abi): Document possible value "warn".
2351 Change default to no for now.
2352 * configure: Regenerated.
2353
2354 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
2355 macro calls and a #include <stub-tag.h> at the end.
2356 * Makerules ($(objpfx)stubs): Tweak sed commands.
2357
2358 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
2359 caller column for *xattr syscalls, since they are in sysdeps/generic.
2360
2361 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
2362 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
2363
2364 2003-03-26 Roland McGrath <roland@redhat.com>
2365
2366 * Makerules (check-abi-config): Use /thread instead of /tls when
2367 use-thread and not just use-tls is set.
2368
2369 * Makerules (update-abi): Put quotes around $(update-abi-config).
2370
2371 * elf/Makefile (check-abi): Depend on check-abi-ld.
2372 (update-abi): Depend on update-abi-ld.
2373
2374 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
2375
2376 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
2377 do not check for errors (unless testing for 32bit variant).
2378 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2379
2380 2003-03-27 Philip Blundell <philb@gnu.org>
2381
2382 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
2383 unconditional mov. Remove nop.
2384
2385 * sysdeps/unix/sysv/linux/kernel-features.h
2386 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
2387 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
2388 when __ASSUME_VFORK_SYSCALL is defined.
2389 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
2390 __ASSUME_MMAP2_SYSCALL.
2391 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
2392 __ASSUME_REALTIME_SIGNALS.
2393
2394 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2395
2396 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
2397 only if DL_NO_COPY_RELOCS is not defined.
2398 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
2399
2400 2003-03-26 Roland McGrath <roland@redhat.com>
2401
2402 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
2403 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
2404 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
2405 (sysdep_routines): Add stub-syscalls.
2406 ($(objpfx)stub-syscalls.c): New target.
2407 (generated): Add stub-syscalls.c.
2408
2409 * tls.make.c: Also define use-tls according to USE_TLS macro.
2410
2411 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2412
2413 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
2414 no-op padding element.
2415 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2416 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2417 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2418 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2419
2420 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
2421
2422 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
2423 condition check for the return value of getgroups32.
2424
2425 2003-03-26 Jakub Jelinek <jakub@redhat.com>
2426
2427 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
2428 Fix a typo.
2429 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
2430 PSEUDO_END_NOERRNO): Define.
2431 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
2432 Define to PSEUDO_END.
2433
2434 2003-03-26 Ulrich Drepper <drepper@redhat.com>
2435
2436 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
2437
2438 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
2439
2440 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
2441 * iconvdata/bug-iconv4.c: New file.
2442 * iconvdata/Makefile (tests): Add bug-iconv4.
2443
2444 2003-03-25 H.J. Lu <hjl@gnu.org>
2445
2446 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
2447 symbols twice.
2448 (_dl_lookup_versioned_symbol): Likewise.
2449
2450 2003-03-26 Jakub Jelinek <jakub@redhat.com>
2451
2452 * csu/tst-atomic.c (do_test): Add some new
2453 atomic_compare_and_exchange_val_acq, atomic_add_zero,
2454 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
2455 * include/atomic.h (atomic_add_negative, atomic_add_zero):
2456 Prefix local variable so that it doesn't clash with the one
2457 in atomic_exchange_and_add.
2458 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
2459 pointers.
2460 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
2461 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
2462 value into register.
2463 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
2464 Cast newval to long.
2465 * sysdeps/x86_64/bits/atomic.h
2466 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
2467 long.
2468 (atomic_exchange): Cast newvalue to long if sizeof == 8.
2469 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
2470 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
2471 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
2472
2473 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
2474
2475 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
2476 bit from backtrace addresses.
2477
2478 2003-03-21 Andreas Schwab <schwab@suse.de>
2479
2480 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
2481 __chown symbols.
2482
2483 2003-03-25 Roland McGrath <roland@redhat.com>
2484
2485 * config.make.in (enable-check-abi): New variable from configure.
2486 * configure.in (enable_check_abi): New substituted variable,
2487 controlled by --{enable,disable}-check-abi (default yes).
2488 * configure: Regenerated.
2489 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
2490 on check-abi dependency.
2491
2492 2003-03-26 Andreas Schwab <schwab@suse.de>
2493
2494 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
2495 * include/atomic.h: Likewise.
2496
2497 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
2498
2499 2003-03-25 Roland McGrath <roland@redhat.com>
2500
2501 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
2502 (__arch_atomic_exchange_64): New macro.
2503 (atomic_exchange): Use them.
2504 (__arch_atomic_exchange_and_add_32): New macro.
2505 (__arch_atomic_exchange_and_add_64): New macro.
2506 (atomic_exchange_and_add): Use them.
2507 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
2508
2509 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
2510
2511 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
2512 Define.
2513 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
2514 ISA tests.
2515 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
2516 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
2517 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2518 to decide whether to add padding.
2519 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
2520 to decide whether to add padding.
2521 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
2522 old_kernel_sigaction): Likewise.
2523
2524 2003-03-25 Ulrich Drepper <drepper@redhat.com>
2525
2526 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
2527 atomic_add_zero were supposed to do.
2528 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
2529 to x86 behavior.
2530
2531 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
2532 This matches the new timer implementation.
2533 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
2534 Likewise.
2535 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
2536 Likewise.
2537 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
2538 timer info for what the kernel provides these days.
2539 (struct sigevent): Add _tid field.
2540 Define SIGEV_THREAD_ID.
2541 Remove struct __pthread_attr_s forward declaration.
2542 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
2543 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2544 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2545 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2546
2547 * Versions.def (librt): Add GLIBC_2.3.3.
2548
2549 * abilist/libpthread.abilist: Update for nptl.
2550
2551 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
2552
2553 * inet/netinet/in.h: Add IPPROTO_SCTP.
2554
2555 2003-03-24 Ulrich Drepper <drepper@redhat.com>
2556
2557 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
2558
2559 2003-03-24 Philip Blundell <philb@gnu.org>
2560
2561 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
2562 Remove a1 from clobber list.
2563
2564 2003-03-24 Ulrich Drepper <drepper@redhat.com>
2565
2566 * timezone/antarctica: Update from tzdata2003a.
2567 * timezone/asia: Likewise.
2568 * timezone/australasia: Likewise.
2569 * timezone/europe: Likewise.
2570 * timezone/iso3166.tab: Likewise.
2571 * timezone/northamerica: Likewise.
2572 * timezone/southamerica: Likewise.
2573 * timezone/zone.tab: Likewise.
2574
2575 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
2576
2577 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
2578
2579 2003-03-23 Ulrich Drepper <drepper@redhat.com>
2580
2581 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
2582 unwanted expansion by definining to ret. Patch by Ian Wienand.
2583
2584 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
2585 the parameter description to denote no error checking. Generate
2586 appropriate pseudo asm code.
2587 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
2588 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
2589 getpgrp, and getppid with 'E'.
2590 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
2591 PSEUDO_END_NOERRNO, and ret_NOERRNO.
2592 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
2593 * sysdeps/unix/sysdep.h: Likewise.
2594 * sysdeps/unix/alpha/sysdep.h: Likewise.
2595 * sysdeps/unix/sparc/sysdep.h: Likewise.
2596 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
2597 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
2598 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
2599 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2600 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2601 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2602 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2603 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2604 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2605 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2606 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2607
2608 2003-03-23 Roland McGrath <roland@redhat.com>
2609
2610 * Makeconfig (+includes): Don't use $(last-includes).
2611
2612 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
2613
2614 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
2615 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2616
2617 2003-03-23 Jakub Jelinek <jakub@redhat.com>
2618
2619 * sysdeps/alpha/fpu/libm-test-ulps: Update.
2620 * sysdeps/arm/libm-test-ulps: Update.
2621 * sysdeps/hppa/fpu/libm-test-ulps: Update.
2622 * sysdeps/ia64/fpu/libm-test-ulps: Update.
2623 * sysdeps/mips/fpu/libm-test-ulps: Update.
2624 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2625 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2626 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2627 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2628 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
2629 * sysdeps/s390/fpu/libm-test-ulps: Update.
2630 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2631
2632 2003-03-22 Roland McGrath <roland@redhat.com>
2633
2634 * include/atomic.h: Put parens around all macro arguments.
2635 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
2636 (atomic_compare_and_exchange_val_acq): Use it.
2637 (atomic_compare_and_exchange_bool_acq): Likewise.
2638 (atomic_increment_and_test): Invert sense of test.
2639 (atomic_decrement_and_test): Likewise.
2640 * csu/tst-atomic.c: Update those tests to match.
2641
2642 2003-03-22 Jakub Jelinek <jakub@redhat.com>
2643
2644 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
2645 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
2646 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
2647 __oldval variable in the macro, since it might be macro argument.
2648 (atomic_decrement_if_positive): Initialize __memp, remove setting
2649 of non-existent variable.
2650 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
2651 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
2652 using atomic_compare_and_exchange_val_acq.
2653 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
2654 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2655 Renamed from...
2656 (__arch_compare_and_exchange_bool_8_acq): ... this.
2657 (__arch_compare_and_exchange_val_16_acq): Renamed from...
2658 (__arch_compare_and_exchange_bool_16_acq): ... this.
2659 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
2660 from...
2661 (__arch_compare_and_exchange_bool_32_acq): ... this.
2662 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
2663 from...
2664 (__arch_compare_and_exchange_bool_64_acq): ... this.
2665 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
2666 variables types instead of assuming int.
2667 Change prefix of local variables to __arch.
2668 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
2669 Remove.
2670 (atomic_compare_and_exchange_val_acq,
2671 atomic_compare_and_exchange_bool_acq): Define.
2672
2673 * csu/tst-atomic.c: New test.
2674 * csu/tst-atomic-long.c: New test.
2675 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
2676
2677 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
2678
2679 * sysdeps/s390/Versions: Add trailing newline.
2680
2681 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
2682 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
2683
2684 2003-03-22 Andreas Schwab <schwab@suse.de>
2685
2686 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2687
2688 * sysdeps/m68k/m68020/bits/atomic.h: New file.
2689 * sysdeps/m68k/m68020/atomicity.h: Removed.
2690
2691 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
2692
2693 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
2694 data structures and macros. Protect from multiple inclusion.
2695
2696 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
2697 typo in #if test.
2698
2699 2003-03-21 Andreas Jaeger <aj@suse.de>
2700
2701 * sysdeps/i386/fpu/libm-test-ulps: Update.
2702
2703 * math/libm-test.inc (tgamma_test): Recompute some constants with
2704 36 digits precision.
2705 (lgamma_test): Likewise.
2706 (ccos_test): Likewise.
2707 (ccosh_test): Likewise.
2708 (clog10_test): Likewise.
2709 (csin_test): Likewise.
2710 (csinh_test): Likewise.
2711 (ctan_test): Likewise.
2712 (ctanh_test): Likewise.
2713
2714 2003-03-19 Jakub Jelinek <jakub@redhat.com>
2715
2716 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
2717
2718 2003-03-21 Roland McGrath <roland@redhat.com>
2719
2720 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
2721 constraint to permit non-constant BIT argument.
2722 (atomic_bit_test_set): Likewise.
2723 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
2724 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
2725 For quadword case, use "i" constraint if __builtin_constant_p and < 32
2726 or "r" constraint otherwise.
2727
2728 * configure.in: Move AC_PROG_CC and other program-finding before all
2729 the version checks.
2730 * configure: Regenerated.
2731
2732 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
2733
2734 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
2735 unaligned copying of 8-15 bytes. From Chris Demetriou
2736 <cgd@broadcom.com>. Fix label names.
2737 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
2738 change as to memcpy.S.
2739 * sysdeps/mips/memcpy.S: Formatting changes.
2740 * sysdeps/mips/memset.S: Likewise.
2741
2742 2003-03-21 Roland McGrath <roland@redhat.com>
2743
2744 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
2745
2746 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
2747
2748 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
2749 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
2750
2751 2003-03-21 Roland McGrath <roland@redhat.com>
2752
2753 * sysdeps/i386/i486/bits/atomic.h
2754 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
2755 version of the macro to avoid compile-time warnings.
2756 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
2757 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
2758 (atomic_increment, atomic_decrement): Likewise.
2759
2760 2003-03-21 Ulrich Drepper <drepper@redhat.com>
2761
2762 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
2763 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2764
2765 2003-03-21 Roland McGrath <roland@redhat.com>
2766
2767 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
2768
2769 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2770
2771 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
2772 atomic_compare_and_exchange_val_rel,
2773 atomic_compare_and_exchange_bool_acq, and
2774 atomic_compare_and_exchange_bool_rel instead of
2775 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
2776 * sysdeps/i386/i486/bits/atomic.h: Define
2777 __arch_compare_and_exchange_val_*_acq instead of
2778 __arch_compare_and_exchange_*_acq.
2779 * sysdeps/x86_64/bits/atomic.h: Likewise.
2780 * sysdeps/ia64/bits/atomic.h: Define
2781 __arch_compare_and_exchange_bool_*_acq instead of
2782 __arch_compare_and_exchange_*_acq.
2783 * sysdeps/powerpc/bits/atomic.h: Likewise.
2784 * sysdeps/s390/bits/atomic.h: Likewise.
2785 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
2786 * malloc/set-freeres.c: Likewise.
2787 * nscd/cache.c: Likewise.
2788 * stdlib/cxa_finalize.c: Likewise.
2789 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2790
2791 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2792
2793 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
2794 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
2795 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2796
2797 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
2798 into high and low halves on n64.
2799 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2800 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2801 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2802
2803 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2804
2805 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
2806 correct atomic_compare_and_exchange_acq semantics.
2807
2808 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2809
2810 * sysdeps/mips/ieee754.h: Remove excess #endif.
2811
2812 2003-03-20 Roland McGrath <roland@redhat.com>
2813
2814 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
2815 variable. Remove superfluous memory clobber.
2816
2817 * include/atomic.h: Syntax braino fix.
2818
2819 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
2820 in decimal. Don't bail if niced at start. Just check that nice call
2821 bumps the total at all.
2822
2823 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2824
2825 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
2826 including pc, gp, sp and fp, as long long.
2827 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
2828 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
2829 Add gp argument, and set gp in the jmpbuf to it.
2830 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
2831
2832 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2833
2834 * include/atomic.h: Define atomic_exchange and
2835 atomic_decrement_if_positive if not already defined. Add some
2836 __builtin_expect.
2837 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
2838 * sysdeps/x86_64/bits/atomic.h: Likewise.
2839 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
2840 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
2841 atomic_exchange, atomic_exchange_and_add, and
2842 atomic_decrement_if_positive
2843
2844 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2845
2846 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
2847 with a single instruction.
2848
2849 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
2850 properly for n64.
2851 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
2852 type.
2853 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
2854 Word before comparing with gotsym. Take reloc_addr argument as
2855 void*. Remove the code added for the compiler to drop any
2856 alignment assumptions.
2857
2858 2003-03-19 Ulrich Drepper <drepper@redhat.com>
2859
2860 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
2861 * include/atomic.h: New file.
2862 * sysdeps/i386/i486/bits/atomic.h: New file.
2863 * sysdeps/x86_64/bits/atomic.h: New file.
2864 * sysdeps/s390/bits/atomic.h: New file.
2865 * sysdeps/sh/bits/atomic.h: New file.
2866 * sysdeps/ia64/bits/atomic.h: New file.
2867 * sysdeps/powerpc/bits/atomic.h: New file.
2868 * sysdeps/generic/bits/atomic.h: New file.
2869 * sysdeps/i386/i486/atomicity.h: Removed.
2870 * sysdeps/x86_64/atomicity.h: Removed.
2871 * sysdeps/s390/s390-32/atomicity.h: Removed.
2872 * sysdeps/s390/s390-64/atomicity.h: Removed.
2873 * sysdeps/ia64/atomicity.h: Removed.
2874 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
2875 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
2876 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
2877 use of macros from atomicity.h to new names and semantics.
2878 * gmon_mcount.c: Likewise.
2879 * malloc/set-freeres.c: Likewise.
2880 * nscd/cache.c: Likewise.
2881 * stdlib/cxa_finalize.c: Likewise.
2882 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2883
2884 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
2885
2886 * sysdeps/mips/ieee754.h: New file, suitable to replace both
2887 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
2888 mips-specific for now.
2889
2890 2003-03-19 Ulrich Drepper <drepper@redhat.com>
2891
2892 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
2893 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
2894 * stdlib/tst-strtod.c: Add test for the bug.
2895
2896 * posix/tst-nice.c (do_test): Remove invalid of return value.
2897 Don't run test if initial level != 0.
2898
2899 2003-03-19 Amos Waterland <apw@us.ibm.com>
2900
2901 * posix/tst-nice.c: New file.
2902 * posix/Makefile (tests): Add tst-nice.
2903
2904 2003-03-18 Roland McGrath <roland@redhat.com>
2905
2906 * abilist: New directory of libfoo.abilist files maintained using
2907 scripts/merge-abilist.awk and "make update-abi" rules.
2908 * Makefile (distribute): Add abilist/*.abilist.
2909 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
2910 Depend on check-abi.
2911
2912 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
2913 * configure: Regenerated.
2914
2915 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
2916
2917 2003-03-18 Ulrich Drepper <drepper@redhat.com>
2918
2919 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
2920 correctly.
2921
2922 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
2923
2924 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
2925
2926 2003-03-18 Ulrich Drepper <drepper@redhat.com>
2927
2928 * Versions.def: Add GLIBC_2.3.3 for libpthread.
2929
2930 2003-03-17 Ulrich Drepper <drepper@redhat.com>
2931
2932 * sysdeps/generic/libc-start.c [!SHARED &&
2933 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
2934
2935 2003-03-17 Roland McGrath <roland@redhat.com>
2936
2937 * include/ctype.h: Revert last change.
2938
2939 2003-03-17 Ulrich Drepper <drepper@redhat.com>
2940
2941 * argp/tst-argp1.c: Use test-skeleton.c.
2942 * locale/tst-C-locale.c: Likewise.
2943
2944 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
2945
2946 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
2947 * sysdeps/mips/mips64/n64/Implies: New file.
2948 * sysdeps/mips/mips64/n64/Makefile: New file.
2949 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
2950 * sysdeps/mips/mips64/n32/Implies: New file.
2951 * sysdeps/mips/mips64/n32/Makefile: New file.
2952 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
2953 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
2954 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
2955 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
2956 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
2957 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
2958 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
2959 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
2960 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
2961 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
2962 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
2963 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
2964 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
2965 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
2966
2967 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
2968 lib64 for mips64/n64 and lib32 for mips64/n32.
2969 (ldd_rewrite_script): Needed for all mips64 configurations.
2970 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2971 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
2972 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
2973
2974 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
2975 well.
2976
2977 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
2978 asm/unistd.h into asm-unistd.h.
2979 * sysdeps/unix/sysv/linux/mips/configure: Generated.
2980 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
2981 of syscall list.
2982 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
2983 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
2984 asm/unistd.h.
2985
2986 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
2987 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
2988 long type for registers on n32.
2989
2990 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
2991 3 ABIs.
2992 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
2993 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
2994 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
2995 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
2996 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
2997 * sysdeps/unix/mips/brk.S: Likewise.
2998 * sysdeps/unix/mips/sysdep.S: Likewise.
2999 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3000 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
3001 * sysdeps/mips/sys/ucontext.h: Likewise.
3002 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
3003 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
3004 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
3005 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3006 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
3007 * sysdeps/mips/mips64/setjmp.S: Likewise.
3008 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
3009 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
3010 64-bit types.
3011
3012 2003-03-16 Ulrich Drepper <drepper@redhat.com>
3013
3014 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
3015 not at function level.
3016 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
3017
3018 2003-03-15 Roland McGrath <roland@redhat.com>
3019
3020 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
3021 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3022 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
3023 * nis/nis_table.c (__create_ib_request): Likewise.
3024
3025 * posix/fnmatch_loop.c: Add casts for signedness.
3026 * nss/nss_files/files-hosts.c: Likewise.
3027 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3028 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
3029 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
3030
3031 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
3032 get errors into the log file.
3033 (libc_cv_broken_visibility_attribute): Likewise.
3034 (libc_cv_broken_alias_attribute): Likewise.
3035 (libc_cv_asm_weak_directive): Likewise.
3036 (libc_cv_need_minus_P): Likewise.
3037 (libc_cv_dot_text): Likewise.
3038 (libc_cv_asm_global_directive): Likewise.
3039 (libc_cv_asm_type_prefix): Likewise.
3040 * configure: Regenerated.
3041
3042 * nscd/cache.c (cache_search): Give first arg type `request_type'.
3043 * nscd/nscd.h: Update decl.
3044
3045 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
3046 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3047 * elf/dl-close.c (_dl_close): Likewise.
3048 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
3049 * io/fts.c (fts_build): Likewise.
3050 * elf/cache.c (add_to_cache): Likewise.
3051 * locale/programs/locarchive.c (show_archive_content): Likewise.
3052
3053 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
3054
3055 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
3056 happy.
3057 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
3058
3059 2003-03-15 Ulrich Drepper <drepper@redhat.com>
3060
3061 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
3062 code for most parts.
3063
3064 2003-03-15 Roland McGrath <roland@redhat.com>
3065
3066 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
3067 * sysdeps/unix/sysv/linux/system.c: ... here.
3068 (FORK): Don't #define if already #define'd.
3069 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
3070 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
3071 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
3072
3073 * dlfcn/tst-dlinfo.c: New file.
3074 * dlfcn/Makefile (tests): Add tst-dlinfo.
3075 ($(objpfx)tst-dlinfo): New target.
3076
3077 * dlfcn/dlinfo.c: New file.
3078 * dlfcn/Makefile (libdl-routines): Add it.
3079 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
3080 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
3081 [__USE_GNU] (RTLD_DI_*): New enum constants.
3082 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
3083 * elf/dl-load.c (cache_rpath): New inline function.
3084 (_dl_map_object): Use it.
3085 (_dl_rtld_di_serinfo): New function.
3086 * sysdeps/generic/ldsodefs.h: Declare it.
3087 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
3088
3089 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
3090 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
3091 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
3092 (__libc_start_main): Just call the generic one for most of the work.
3093
3094 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
3095 static function by that name instead of BP_SYM (__libc_start_main).
3096 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
3097 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
3098 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
3099
3100 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
3101 Use this macro for extra AT_* cases.
3102 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
3103 New macro, guts from ...
3104 (__aux_init_cache): ... here, function removed.
3105 (DL_PLATFORM_INIT): Don't define this.
3106
3107 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
3108 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
3109
3110 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
3111
3112 2003-03-14 Roland McGrath <roland@redhat.com>
3113
3114 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
3115
3116 2003-03-14 Jakub Jelinek <jakub@redhat.com>
3117
3118 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
3119
3120 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
3121 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
3122
3123 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
3124
3125 * sysdeps/mips/fpu/bits/mathdef.h: New.
3126 (__NO_LONG_DOUBLE_MATH): Define for o32.
3127
3128 * sysdeps/mips/sys/asm.h: Formatting changes.
3129 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
3130 (CPADD): Define for all of them.
3131 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
3132 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
3133 NARGSAVE): Define per ABI spec.
3134 (END): Don't redefine.
3135 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
3136 LONG_SRAV): Remove duplicate definitions.
3137 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
3138 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
3139 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
3140 (PTR_LA): Define for all 3 ABIs.
3141
3142 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
3143 (elf_machine_matches_host): Prevent linking of o32 and n32
3144 together.
3145 (elf_machine_dynamic): Document assumption on $gp.
3146 (STRINGXP, STRINGXV, STRINGV_): New macros.
3147 (elf_machine_load_address): Use them to stringize PTR_LA and
3148 PTR_SUBU.
3149 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
3150 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
3151 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
3152 (__dl_runtime_resolve): Cast the symtab initializer to the
3153 right type.
3154 (RTLD_START): Use it. Adjust it for all 3 ABIs.
3155 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
3156 Handle 64-bit R_MIPS_REL composite relocation and accept
3157 R_MIPS_64 relocations to shift addend size to 64 bits.
3158 Document assumption regarding local GOT entries. Document
3159 backward-compatibility departing from the ABI behavior in
3160 applying relocations that reference section symbols, no longer
3161 used. Support relocations to mis-aligned offsets.
3162 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
3163
3164 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
3165
3166 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
3167 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
3168 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
3169 restore_rt functions. Use them.
3170
3171 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
3172 .set mips2 on new abis.
3173
3174 2003-03-13 Ulrich Drepper <drepper@redhat.com>
3175
3176 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
3177 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
3178 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
3179 * sysdeps/posix/pathconf.c: Likewise.
3180 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3181 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3182 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
3183
3184 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
3185 words.
3186
3187 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
3188
3189 * include/gmp.h: Include/gmp-mparam.h.
3190 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
3191 gmp-impl.h.
3192
3193 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
3194 ELF_MACHINE_NO_RELA is set.
3195 * elf/rtld.c (dl_main): No prelink support for REL-only.
3196
3197 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
3198 FLAG_MIPS64_LIBN64): Define.
3199 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
3200
3201 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
3202 * sysdeps/mips/memset.S: Likewise.
3203 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
3204 depending on the ABI.
3205
3206 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
3207 Don't .set mips2 on new abi.
3208 (compare_and_swap): Likewise. Support 64-bit longs on n64.
3209
3210 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
3211
3212 2003-03-13 Roland McGrath <roland@redhat.com>
3213
3214 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
3215 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
3216
3217 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
3218
3219 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
3220 literals long long.
3221 * stdlib/fpioconst.c: Likewise.
3222 * stdlib/strtod.c: Likewise.
3223
3224 * sysdeps/mips/add_n.S: Use L macro for local labels.
3225 * sysdeps/mips/addmul_1.S: Likewise.
3226 * sysdeps/mips/lshift.S: Likewise.
3227 * sysdeps/mips/memcpy.S: Likewise.
3228 * sysdeps/mips/memset.S: Likewise.
3229 * sysdeps/mips/mul_1.S: Likewise.
3230 * sysdeps/mips/rshift.S: Likewise.
3231 * sysdeps/mips/sub_n.S: Likewise.
3232 * sysdeps/mips/submul_1.S: Likewise.
3233 * sysdeps/mips/mips64/add_n.S: Likewise.
3234 * sysdeps/mips/mips64/addmul_1.S: Likewise.
3235 * sysdeps/mips/mips64/lshift.S: Likewise.
3236 * sysdeps/mips/mips64/mul_1.S: Likewise.
3237 * sysdeps/mips/mips64/rshift.S: Likewise.
3238 * sysdeps/mips/mips64/sub_n.S: Likewise.
3239 * sysdeps/mips/mips64/submul_1.S: Likewise.
3240 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
3241 conventions. Define END as in sys/asm.h.
3242 * sysdeps/unix/mips/sysdep.S: Likewise.
3243 * sysdeps/unix/mips/wait.S: Likewise.
3244 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
3245
3246 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
3247 Cast shifted values that may be too narrow to mp_limb_t.
3248 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
3249 Likewise.
3250 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
3251 Likewise.
3252 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
3253 (__mpn_extract_long_double): Likewise.
3254 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
3255 (__mpn_construct_long_double): Likewise.
3256 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
3257 (__mpn_extract_long_double): Likewise.
3258 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
3259 (__mpn_construct_long_double): Likewise.
3260
3261 2003-03-13 Roland McGrath <roland@redhat.com>
3262
3263 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
3264 entries in the map file match too.
3265
3266 2003-03-13 Guido Guenther <agx@sigxcpu.org>
3267
3268 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
3269 label .Lthread_start since current binutils don't allow branches
3270 to globally visible symbols.
3271
3272 2003-03-13 Jakub Jelinek <jakub@redhat.com>
3273
3274 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
3275 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
3276 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
3277 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
3278 clobbered by the syscall.
3279 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
3280 ASM_ARGS_6): Change constraints from r to index of corresponding
3281 output register.
3282 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
3283 ptid and ctid to match kernel.
3284 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
3285
3286 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
3287
3288 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3289 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
3290 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3291
3292 2003-03-11 Roland McGrath <roland@redhat.com>
3293
3294 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3295 Check SYM_MAP rather than SYM as definedness check.
3296 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
3297 Don't handle R_PPC64_REL24 reloc.
3298 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3299
3300 * sysdeps/powerpc/powerpc64/dl-machine.h
3301 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
3302 block, so we cover all the TPREL16* flavors without 6 ||s.
3303 [USE_TLS] (elf_machine_tprel): New function.
3304 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
3305 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
3306 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
3307
3308 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
3309
3310 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
3311 instead of jalr to invoke subroutine so restoring the $gp register
3312 will work properly.
3313
3314 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
3315
3316 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
3317 to __NR_pread if not defined.
3318 (__NR_pwrite64): Define to __NR_pwrite if not defined.
3319
3320 2003-03-11 Jakub Jelinek <jakub@redhat.com>
3321
3322 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
3323 * sysdeps/unix/sysv/linux/kernel-features.h
3324 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
3325 kernel >= 2.5.64.
3326
3327 2003-03-11 Jakub Jelinek <jakub@redhat.com>
3328
3329 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
3330 allocate space even for the trailing '/'.
3331 Reported by John Reiser <jreiser@BitWagon.com>.
3332
3333 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
3334 ASM_CLOBBERS_6): Define.
3335 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
3336 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
3337 to match IA-32 order.
3338 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
3339
3340 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
3341
3342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
3343 Copy extra params for NPTL to registers used in clone syscall.
3344
3345 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
3346
3347 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
3348 call names for pread and pwrite.
3349
3350 2003-03-10 Roland McGrath <roland@redhat.com>
3351
3352 * dlfcn/Makefile (libdl-routines): Add dladdr1.
3353 * dlfcn/dladdr1.c: New file.
3354 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
3355 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
3356 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
3357 a const ElfNN_Sym ** to fill in.
3358 * include/dlfcn.h: Update decl. Include <link.h>.
3359 * dlfcn/dladdr.c (dladdr): Update caller.
3360 * malloc/mtrace.c (tr_where): Likewise.
3361 * sysdeps/generic/elf/backtracesyms.c: Likewise.
3362 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3363 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
3364 * Versions.def (libdl): Define GLIBC_2.3.3 set.
3365
3366 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
3367 assembler command.
3368 * sysdeps/unix/Makefile (compile-syscall): New variable.
3369 Pass -g0 to compiler for assembling syscall stubs from stdin.
3370
3371 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
3372 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
3373 Define these to do nothing.
3374
3375 * configure.in: New check for -g on .S files.
3376 * configure: Regenerated.
3377 * config.make.in (have-cpp-asm-debuginfo): New variable.
3378 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
3379 * Makeconfig (ASFLAGS): New variable, if undefined and
3380 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
3381 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
3382
3383 2003-03-09 Roland McGrath <roland@redhat.com>
3384
3385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
3386 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
3387
3388 2003-03-09 Ulrich Drepper <drepper@redhat.com>
3389
3390 * po/fi.po: Update from translation team.
3391 * po/ca.po: Likewise.
3392 * po/da.po: Likewise.
3393
3394 2003-03-08 Ulrich Drepper <drepper@redhat.com>
3395
3396 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
3397
3398 2003-03-07 Ulrich Drepper <drepper@redhat.com>
3399
3400 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
3401
3402 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
3403
3404 2003-03-07 Roland McGrath <roland@redhat.com>
3405
3406 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
3407 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
3408
3409 2003-03-04 Guido Guenther <agx@sigxcpu.org>
3410
3411 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
3412 stubs, we have INLINE_SYSCALL.
3413 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
3414 MAP_NONBLOCK.
3415
3416 2003-03-06 Roland McGrath <roland@redhat.com>
3417
3418 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
3419 permanent extent and add a comment about testing its implicit teardown.
3420
3421 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3422
3423 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
3424
3425 2003-03-05 Ulrich Drepper <drepper@redhat.com>
3426
3427 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
3428 reversed __builtin_expect expectation.
3429
3430 2003-03-05 Roland McGrath <roland@redhat.com>
3431
3432 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
3433 * libio/swscanf.c: Likewise.
3434 * libio/swprintf.c: Likewise.
3435
3436 2003-03-04 Roland McGrath <roland@redhat.com>
3437
3438 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
3439 (elf_machine_rela): Always use RESOLVE_MAP, needed for
3440 R_PPC64_JMP_SLOT as well as TLS cases.
3441 (BIT_INSERT): Move parenthesis where it ought to have been.
3442 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
3443
3444 * posix/confstr.c (confstr): Correct STRING_LEN values for
3445 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
3446 break. Reported by Alexandre Julliard <julliard@winehq.com>.
3447
3448 2003-03-04 Jakub Jelinek <jakub@redhat.com>
3449
3450 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3451
3452 2003-03-04 Ulrich Drepper <drepper@redhat.com>
3453
3454 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
3455 clone parameters.
3456
3457 * po/sv.po: Update from translation team.
3458
3459 2003-03-04 Andreas Jaeger <aj@suse.de>
3460 Ulrich Drepper <drepper@redhat.com>
3461
3462 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
3463
3464 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3465
3466 * sysdeps/generic/dl-sysdep.h: Add double include protection.
3467
3468 * po/tr.po: Update from translation team.
3469
3470 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
3471 are holes between the segments. Only call mprotect to set
3472 proection to PROT_NONE if there are some.
3473
3474 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
3475 Update comment.
3476
3477 * include/sched.h (__clone2): Use ... instead of adding all the
3478 new parameters.
3479
3480 2003-03-03 Roland McGrath <roland@redhat.com>
3481
3482 * elf/dl-load.c (struct filebuf): Fix typo in last change.
3483
3484 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
3485 PI_STATIC_AND_HIDDEN.
3486
3487 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
3488
3489 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
3490 flags.
3491 * include/sched.h: Update clone2 prototype.
3492
3493 2003-03-03 Andreas Jaeger <aj@suse.de>
3494
3495 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
3496 (llrint): Use it to correct return type.
3497 (lrint): Likewise.
3498 (lround): Likewise.
3499 (llround): Likewise.
3500
3501 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3502
3503 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
3504 byte filebuf size.
3505
3506 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
3507 if ccs parameter isn't valid. Reported by Andreas Schwab.
3508
3509 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3510
3511 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
3512 for system call numbers > 255.
3513 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
3514 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3515 INTERNAL_SYSCALL): Likewise.
3516 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
3517 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
3518 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
3519 INTERNAL_SYSCALL): Likewise.
3520
3521 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3522
3523 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
3524 array if it is the initial dtv.
3525
3526 2003-03-03 Ulrich Drepper <drepper@redhat.com>
3527
3528 * po/es.po: Update from translation team.
3529 * po/fr.po: Likewise.
3530 * po/gl.po: Likewise.
3531 * po/sk.po: Likewise.
3532 * po/sv.po: Likewise.
3533
3534 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
3535 * misc/sys/mman.h: Add prototype for remap_file_pages.
3536 * sysdeps/generic/remap_file_pages.c: New file.
3537 * misc/Makefile (routines): Add remap_file_pages.
3538 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
3539
3540 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
3541 and MAP_NONBLOCK.
3542 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3543 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
3544 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3545 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3546 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
3547 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
3548 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
3549 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3550
3551 2003-03-03 Roland McGrath <roland@redhat.com>
3552
3553 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
3554 * sysdeps/ia64/dl-machine.h: Likewise.
3555 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
3556 argument type.
3557 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
3558
3559 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
3560 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
3561 * locale/Versions (libc: GLIBC_2.3): Move those to ...
3562 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
3563 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
3564 * Versions.def (libc): Add GLIBC_2.3.3 set.
3565
3566 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
3567 * sysdeps/ia64/dl-machine.h: Update decl.
3568
3569 2003-03-03 Andreas Jaeger <aj@suse.de>
3570
3571 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
3572
3573 2003-03-02 Roland McGrath <roland@redhat.com>
3574
3575 * scripts/abilist.awk: Reject data items with apparent 0 size.
3576
3577 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
3578 after foo.* as if it were a duplicate.
3579
3580 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
3581
3582 2003-03-02 Ulrich Drepper <drepper@redhat.com>
3583
3584 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
3585
3586 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
3587 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
3588 if not already defined. Use SYSDEP_GETRES to allow other files to
3589 provide alternative implementations.
3590 * sysdeps/unix/sysv/linux/clock_getres.c: New file
3591 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
3592 if not already defined. Use SYSDEP_GETTIME to allow other files to
3593 provide alternative implementations.
3594 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
3595 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
3596 if not already defined. Use SYSDEP_GETTIME to allow other files to
3597 provide alternative implementations.
3598 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
3599 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
3600 other files to provide alternative implementations. Rearrange
3601 tests for invalid parameters.
3602 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
3603 * sysdeps/unix/sysv/linux/sysconf.c: New file.
3604 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3605 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
3606 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3607 _POSIX_MONOTONIC_CLOCK.
3608
3609 2003-03-02 Roland McGrath <roland@redhat.com>
3610
3611 * scripts/merge-abilist.awk: More checks for bogus input.
3612 Uniquify duplicate config names.
3613
3614 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
3615
3616 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
3617 from dl_reloc_overflow, make global.
3618 (__process_machine_rela): Update callers.
3619 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
3620 Add attribute_hidden to __process_machine_rela decl.
3621 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
3622
3623 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
3624 variable.
3625
3626 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
3627 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
3628 (elf_machine_rela): Clean up.
3629
3630 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
3631
3632 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
3633 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
3634 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
3635 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
3636 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
3637 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
3638 new relocs for TLS.
3639
3640 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
3641 macros out of [SHARED].
3642 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
3643
3644 * elf/elf.h: Define R_PPC_* relocs for TLS support.
3645 Clean up R_PPC64_* macro definition comments.
3646
3647 * configure.in: In "running configure fragment for" message,
3648 omit $srcdir from the name if we prepended it.
3649 * configure: Regenerated.
3650
3651 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
3652 From Jakub Jelinek <jakub@redhat.com>.
3653
3654 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
3655 which duplicated the O_DIRECT defn.
3656
3657 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3658
3659 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
3660 random functions.
3661
3662 2003-03-01 Andreas Schwab <schwab@suse.de>
3663
3664 * resolv/Makefile (tests): Don't depend on
3665 $(objpfx)mtrace-tst-leaks when cross compiling.
3666
3667 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
3668 __libc_stack_end through GOT since it is a global symbol.
3669
3670 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3671
3672 * argp/argp.h: Fix a typo.
3673 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
3674
3675 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
3676
3677 2003-02-27 Pat Rankin <rankin@pactechdata.com>
3678
3679 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
3680 char *.
3681 (get_subexp): Likewise.
3682
3683 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3684
3685 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
3686
3687 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
3688
3689 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
3690
3691 2003-02-27 Roland McGrath <roland@redhat.com>
3692
3693 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
3694 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
3695 repeat it and avoids the test for the common case.
3696 Clean up and fix calculations for TLS relocs.
3697
3698 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
3699 * sysdeps/powerpc/dl-tls.h: ... here.
3700 (TLS_TP_OFFSET): New macro.
3701
3702 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
3703
3704 2003-02-27 Ulrich Drepper <drepper@redhat.com>
3705
3706 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
3707 code generation changes in recent gcc.
3708
3709 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
3710
3711 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
3712 Rename argument to avoid symbol conflict.
3713
3714 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
3715 [__USE_GNU] (O_DIRECT): New macro.
3716
3717 2003-02-24 David Mosberger <davidm@hpl.hp.com>
3718
3719 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
3720 unwind info.
3721
3722 2003-02-27 Ulrich Drepper <drepper@redhat.com>
3723
3724 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
3725 initializer anymore now that res_thread_freeres is more careful.
3726
3727 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
3728 except the PKTINFO. Reset interface in PKTINFO.
3729 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
3730
3731 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
3732
3733 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
3734 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
3735 Define.
3736 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
3737 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
3738 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
3739 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
3740
3741 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3742 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
3743
3744 2003-02-25 Andreas Jaeger <aj@suse.de>
3745
3746 * manual/memory.texi (Malloc Tunable Parameters): Clarify
3747 behaviour of M_MMAP_THRESHOLD.
3748
3749 2003-02-25 Roland McGrath <roland@redhat.com>
3750
3751 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
3752 zero, inidicating _res was not initialized yet.
3753
3754 2003-02-24 Ulrich Drepper <drepper@redhat.com>
3755
3756 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
3757 test.
3758
3759 2003-02-24 Roland McGrath <roland@redhat.com>
3760
3761 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
3762
3763 2003-02-23 Roland McGrath <roland@redhat.com>
3764
3765 * sysdeps/posix/pause.c: New file.
3766 * sysdeps/unix/common/pause.c: File removed.
3767
3768 2003-02-23 Ulrich Drepper <drepper@redhat.com>
3769
3770 * sysdeps/generic/bits/confname.h: Remove #ifs.
3771
3772 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
3773 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
3774
3775 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
3776 element to -1.
3777
3778 2003-02-22 Ulrich Drepper <drepper@redhat.com>
3779
3780 * sysdeps/generic/dl-sysdep.c: Avoid warning.
3781
3782 2003-02-22 Roland McGrath <roland@redhat.com>
3783
3784 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
3785 * resolv/Makefile (tests): Add tst-leaks.
3786 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
3787 (tst-leaks-ENV): New variable.
3788 ($(objpfx)mtrace-tst-leaks): New target.
3789 (tests): Depend on it.
3790
3791 * include/libc-internal.h: Declare __libc_thread_freeres.
3792
3793 * Makerules: Fix last change to use $($(subdir)-version) when set.
3794
3795 * Makerules (install-lib-nosubdir): Depend on installed
3796 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
3797 regardless of the libfoo.so target's dependencies.
3798
3799 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
3800 Use that in $(MAKE) calls.
3801
3802 2003-02-22 Ulrich Drepper <drepper@redhat.com>
3803
3804 * catgets/gencat.c (read_input_file): Collision between
3805 auto-assigned numbers and user-defined nubmers is not fatal.
3806 Handle it.
3807 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
3808 * catgets/Makefile: Add rules to run test2.msg test.
3809 * catgets/test2.msg: New file.
3810
3811 * catgets/gencat.c (main): Return 1 if messages have been printed.
3812
3813 * iconv/iconv_prog.c (main): Unify messages.
3814
3815 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
3816 when shifting retval.
3817 * stdlib/tst-strtod.c (main): Add strtold test case.
3818 Reported by Fred J. Tydeman <tydeman@tybor.com>.
3819
3820 2003-02-21 Roland McGrath <roland@redhat.com>
3821
3822 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
3823 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
3824 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
3825
3826 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
3827 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
3828 (res_thread_freeres): New function, on __libc_thread_subfreeres and
3829 __libc_subfreeres.
3830
3831 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
3832 * malloc/thread-freeres.c: New file.
3833 * malloc/Makefile (aux): Add it.
3834 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
3835 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
3836 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
3837
3838 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
3839 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
3840
3841 2003-02-21 Roland McGrath <roland@frob.com>
3842
3843 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
3844
3845 * iconvdata/Makefile (tests): Add bug-iconv3 only if
3846 [$(have-thread-library) = yes].
3847
3848 2003-02-21 Ulrich Drepper <drepper@redhat.com>
3849
3850 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
3851
3852 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
3853 not chechk for errors (unless testing for 32bit variant).
3854 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3855 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3856 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3857
3858 2003-02-21 Jakub Jelinek <jakub@redhat.com>
3859
3860 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
3861 Check for signed overflow, not unsigned.
3862
3863 * sysdeps/sparc/sparc64/elf/configure.in: New file.
3864 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
3865 Use -fcall-used-g6, not -fcall-used-g7.
3866
3867 2003-02-21 Andreas Jaeger <aj@suse.de>
3868
3869 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
3870 mode.
3871
3872 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
3873 clear whole mxcsr but only exceptions.
3874
3875 2003-02-21 Roland McGrath <roland@redhat.com>
3876
3877 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
3878 for libfoo.so that need $(make-link) rules.
3879
3880 2003-02-21 Roland McGrath <roland@frob.com>
3881
3882 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
3883 to match existing struct stat layout in mig protocols.
3884
3885 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3886
3887 * version.h (VERSION): Bump to 2.3.2.
3888
3889 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
3890 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
3891 and dl-sysdep.h.
3892 * sysdeps/generic/Dist: Add sysdep-cancel.h.
3893 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
3894 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
3895 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
3896 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
3897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
3898 ucontext_i.h.
3899 * Makefile (distribute): Add include/stubs-prologue.h,
3900 include/gnu/stubs.h, scripts/merge-abilist.awk, and
3901 scripts/extract-abilist.awk.
3902
3903 2003-02-20 Roland McGrath <roland@redhat.com>
3904
3905 * math/Makefile (distribute): Don't add generated files.
3906
3907 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3908
3909 * math/Makefile: Rearrange variable definitions slightly to get
3910 definition in the right order.
3911
3912 2003-02-20 Roland McGrath <roland@redhat.com>
3913
3914 * Makerules: Clean up conditional around include of tls.make.
3915 * Make-dist: Export generating=t to prevent using that.
3916 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
3917
3918 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3919
3920 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
3921 around in search if port IPPORT_RESERVED/2 has been test.
3922
3923 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
3924
3925 * posix/regcomp.c: Remove inclusions.
3926 * posix/regexec.c: Likewise.
3927 * posix/regex_internal.c: Likewise.
3928 * posix/regex_internal.h: Add inclusions here.
3929 * posix/regex.c: Only include sys/types.h before regex.h. Include
3930 regex_internal.h here. Include regex_internal.c before regcomp.c
3931 and regexec.c (might expose more opportunities to the C compiler).
3932
3933 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
3934
3935 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
3936 [!_LIBC] (__wcrtomb): New definition.
3937 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
3938 HAVE_LOCALE_H as well.
3939
3940 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3941
3942 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
3943 patch to check for system call errors.
3944
3945 2002-07-24 Philip Blundell <philb@gnu.org>
3946
3947 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
3948 on unknown systems.
3949
3950 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3951
3952 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
3953 * sysdeps/unix/sysv/linux/kernel-features.h
3954 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
3955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
3956 if possible.
3957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
3958 interprocedure branches.
3959 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
3960 * sysdeps/powerpc/nofpu/Dist: ...here.
3961 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
3962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
3963 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
3964 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
3965 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
3966
3967 2003-02-18 Alan Modra <amodra@bigpond.net.au>
3968
3969 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
3970
3971 2003-02-20 Philip Blundell <philb@gnu.org>
3972
3973 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
3974 missing arguments to INTERNAL_SYSCALL_ERROR_P and
3975 INTERNAL_SYSCALL_ERRNO.
3976
3977 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3978
3979 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
3980 for __ASSUME_32BITUIDS.
3981
3982 2003-02-20 Andreas Schwab <schwab@suse.de>
3983
3984 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
3985 POSIX_MADV_* constants.
3986
3987 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3988
3989 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
3990 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
3991 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
3992 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
3993
3994 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
3995
3996 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
3997
3998 2003-02-16 Roland McGrath <roland@redhat.com>
3999
4000 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
4001
4002 2003-02-19 Ulrich Drepper <drepper@redhat.com>
4003
4004 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
4005 decimal input digits.
4006 * stdlib/tst-strtod.c (main): Add test for strtof bug.
4007
4008 2003-02-18 Ulrich Drepper <drepper@redhat.com>
4009
4010 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
4011 invalid file descriptors and missing access permissions.
4012
4013 2003-02-17 Ulrich Drepper <drepper@redhat.com>
4014
4015 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
4016 been found.
4017
4018 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
4019 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
4020 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
4021 and LOGIN_NAME_MAX.
4022
4023 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
4024 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4025
4026 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
4027 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
4028 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
4029 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
4030 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
4031
4032 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4033
4034 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
4035 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
4036 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
4037 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
4038 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
4039 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
4040
4041 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
4042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
4043 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
4044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
4045
4046 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
4047 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
4048 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
4049 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
4050
4051 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
4052
4053 * nss/getent.c (print_hosts): Print all IP addresses of one host.
4054
4055 2003-02-15 Roland McGrath <roland@frob.com>
4056
4057 * sysdeps/mach/hurd/tls.h: New file.
4058 * sysdeps/mach/hurd/i386/tls.h: New file.
4059
4060 * mach/errsystems.awk: Include <errno.h> in generated output.
4061
4062 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
4063 use target mach-before-compile instead of generated.
4064 (mach-before-compile): New target.
4065 * Makerules: Disable use of tls.make if $(generating) is set.
4066 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
4067 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
4068 mach-shortcuts.h so mach/ generation happens before hurd/.
4069
4070 2003-02-14 Ulrich Drepper <drepper@redhat.com>
4071
4072 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
4073 of demorm correctly if low word is zero.
4074 Reported by Fred J. Tydeman <tydeman@tybor.com>.
4075 * math/libm-test.inc (nextafter_test): New test, but disabled due
4076 to gcc bug.
4077
4078 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
4079 counter and only call __exit_thread if this is not the last thread.
4080
4081 2003-02-13 Jakub Jelinek <jakub@redhat.com>
4082
4083 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
4084 subtracting map->l_tls_offset.
4085
4086 2003-02-12 Ulrich Drepper <drepper@redhat.com>
4087
4088 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
4089 _CS_GNU_LIBPTHREAD_VERSION.
4090 * posix/conststr.c: Handle these new values.
4091 * posix/getconf.c: Likewise.
4092
4093 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
4094 masking of version index.
4095 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4096
4097 2003-02-11 Ulrich Drepper <drepper@redhat.com>
4098
4099 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
4100 correctly. Reported by Thorsten Kukuk.
4101
4102 2003-02-10 Ulrich Drepper <drepper@redhat.com>
4103
4104 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
4105 _BSD_SOURCE to compiler.
4106 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
4107 Patches by Alan Modra.
4108
4109 2003-02-08 Ulrich Drepper <drepper@redhat.com>
4110
4111 * io/ftwtest.c: Get current working directory before and after the
4112 nftw call and make sure they match.
4113
4114 2003-02-08 Jim Meyering <jim@meyering.net>
4115
4116 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
4117 the current directory, not just when DIR contains a slash.
4118 Reported by Manoj Srivastava.
4119
4120 2003-02-07 Jim Meyering <jim@meyering.net>
4121
4122 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
4123 Include autoconf-recommended block of dirent/NAMELEN-related
4124 definitions and includes. Use NAMELEN throughout, rather than
4125 _D_EXACT_NAMLEN.
4126 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
4127 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
4128 (stpcpy): Declare, if necessary.
4129 (mempcpy): Define, if necessary.
4130 [!_LIBC] (__stpcpy, __mempcpy): Define.
4131 [!_LIBC] (LXSTAT, XSTAT): Define.
4132 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
4133 (find_object): Don't use c99-style struct initializer.
4134 Tweak wording in a couple comments.
4135
4136 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4137
4138 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
4139 for SH.
4140 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
4141 after the trapa instruction.
4142 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
4143 parameters.
4144 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
4145 (NEED_SYSCALL_INST_PAD): Define.
4146 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
4147 avoid to use definition for the kernel.
4148 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4149 Save and restore the frame pointer.
4150 (SYSCALL_INST_PAD): Define.
4151 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4152 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
4153 after trapa instruction.
4154 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4155 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4156
4157 2003-02-07 Jakub Jelinek <jakub@redhat.com>
4158
4159 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
4160 so that it can have aliases.
4161 * inet/herrno.c (h_errno): Put it into .bss not .data section.
4162
4163 2003-02-07 Ulrich Drepper <drepper@redhat.com>
4164
4165 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
4166 (profile_fixup): Likewise.
4167 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
4168
4169 2002-11-24 Robert Love <rml@tech9.net>
4170
4171 * posix/sched.h: Second parameter of sched_setaffinity and
4172 sched_getaffinity is `unsigned int', not `unsigned long'.
4173 * sysdeps/generic/sched_setaffinity.c: Likewise.
4174 * sysdeps/generic/sched_getaffinity.c: Likewise.
4175
4176 2003-02-05 Ulrich Drepper <drepper@redhat.com>
4177
4178 * debug/catchsegv.sh: Fix typo in error messsage.
4179 Reported by John Levon <levon@movementarian.org>.
4180
4181 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
4182 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
4183 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4184 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4186 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4187 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4188
4189 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
4190 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
4191
4192 2003-02-05 Jim Meyering <jim@meyering.net>
4193
4194 Fix a heap-corrupting bug.
4195 * io/ftw.c: Include <limits.h>.
4196 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
4197 (process_entry): Allocate enough space to hold the resulting
4198 file name. Don't presume that 2*dirbufsize is enough.
4199 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
4200 it is guaranteed to be defined.
4201
4202 2003-02-04 Ulrich Drepper <drepper@redhat.com>
4203
4204 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
4205 * iconvdata/bug-iconv3.c: New file.
4206
4207 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
4208
4209 * sysdeps/unix/sysv/linux/s390/system.c: New file.
4210
4211 2003-02-03 Jakub Jelinek <jakub@redhat.com>
4212
4213 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
4214 check.
4215 * config.h.in (BROKEN_SPARC_WDISP22): Add.
4216
4217 2003-02-03 Ulrich Drepper <drepper@redhat.com>
4218
4219 * sysdeps/i386/i686/memmove.S: New file.
4220
4221 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4222
4223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
4224 Include kernel-features.h
4225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
4226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
4227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
4228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4229
4230 2003-02-02 Jakub Jelinek <jakub@redhat.com>
4231
4232 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
4233
4234 2003-01-25 Jim Meyering <jim@meyering.net>
4235
4236 * io/ftw.c (object_compare): Compare inode numbers before device
4237 numbers, since the former are much more likely to differ.
4238
4239 2003-02-01 Ulrich Drepper <drepper@redhat.com>
4240
4241 * time/tzfile.c (__tzfile_compute): Change return value type to
4242 void. Adjust return statements.
4243 * include/time.h (__tzfile_compute): Adjust prototype.
4244
4245 2003-02-01 Jim Meyering <jim@meyering.net>
4246
4247 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
4248 always returns 1.
4249
4250 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4251
4252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4253 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
4254
4255 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4256
4257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4258 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
4259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4260 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4262 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4264 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
4265
4266 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
4267
4268 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
4269 back to 2.4.19 for powerpc64.
4270 * sysdeps/unix/sysv/linux/kernel-features.h
4271 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
4272 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
4273
4274 2003-02-01 Ulrich Drepper <drepper@redhat.com>
4275
4276 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
4277 platforms with strange alignment requirements on wchar_t.
4278
4279 2003-01-31 Andreas Schwab <schwab@suse.de>
4280
4281 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
4282 aliases, already added by make-syscalls.sh.
4283 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4284 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4285 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4286 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4287 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4288 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4289 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4290 * sysdeps/unix/inet/syscalls.list: Likewise.
4291 * sysdeps/unix/syscalls.list: Likewise.
4292
4293 2003-01-31 Andreas Schwab <schwab@suse.de>
4294
4295 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
4296 any more.
4297
4298 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4299
4300 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
4301 not l to load tls from stack.
4302
4303 2003-01-30 Roland McGrath <roland@redhat.com>
4304
4305 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
4306 null argument before all else.
4307 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4308
4309 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4310
4311 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
4312 Move to RESOLVE protected part of the header.
4313 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
4314 Likewise.
4315
4316 2003-01-30 Ulrich Drepper <drepper@redhat.com>
4317
4318 * stdio-common/Makefile (tests): Add bug15.
4319 (bug15-ENV): Define.
4320 * stdio-common/bug15.c: New file.
4321
4322 2002-10-07 Wolfram Gloger <wg@malloc.de>
4323
4324 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
4325 to foreign sbrk()'s if arena is contiguous. Bug report from
4326 Bruno Haible <bruno@clisp.org>.
4327
4328 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4329
4330 * sysdeps/s390/libc-tls.c: Include stdlib.h.
4331
4332 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4333
4334 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
4335 ps.__count.
4336
4337 2003-01-30 Ulrich Drepper <drepper@redhat.com>
4338
4339 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
4340 restoring of %r6.
4341 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
4342 64-bit load.
4343 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4344
4345 2003-01-30 Jakub Jelinek <jakub@redhat.com>
4346
4347 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
4348 (allocate_static_tls): ...here. Add __attribute_noinline__.
4349 Don't return on failure.
4350 (_dl_reloc_bad_type): Add __attribute_noinline__.
4351 * elf/do-rel.h (elf_dynamic_do_rel): Add
4352 __attribute__((always_inline)).
4353 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4354 elf_machine_rel_relative, elf_machine_rela_relative,
4355 elf_machine_lazy_rel): Add prototypes with
4356 __attribute__((always_inline)).
4357
4358 2003-01-29 David Mosberger <davidm@hpl.hp.com>
4359
4360 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
4361
4362 2003-01-29 Roland McGrath <roland@redhat.com>
4363
4364 * configure.in: Barf if configured in $srcdir.
4365
4366 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
4367
4368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4369 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
4370
4371 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
4372
4373 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
4374 clone parameters to match the order used on ia32.
4375 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4376
4377 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
4378
4379 * elf/elf.h: Add new s390 relocs.
4380 * elf/tls-macros.h: Add s390 versions.
4381 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
4382 * sysdeps/s390/dl-tls.h: New file.
4383 * sysdeps/s390/libc-tls.c: New file.
4384 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
4385 relocs for class PLT.
4386 (elf_machine_rela): Handle TLS relocs.
4387 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4388 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
4389 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
4390 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
4391 CLONE_CHILD_*TID flags.
4392 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
4393 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
4394 bit offset.
4395 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4396 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4397 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
4398 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
4399 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
4400 Likewise.
4401 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
4402 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
4403 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4404 variants.
4405 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
4406 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
4407 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
4408 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
4409 variants.
4410
4411 2003-01-28 Ulrich Drepper <drepper@redhat.com>
4412
4413 * sysdeps/unix/common/pause.c (do_pause): New function. Split
4414 from __libc_pause. Implement using sigsuspend.
4415 (__libc_pause): Call do_pause to do the real work.
4416
4417 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
4418 sig_or_mask parameter is is_sig != 0.
4419
4420 2003-01-21 Philip Blundell <philb@gnu.org>
4421
4422 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
4423
4424 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
4425
4426 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
4427
4428 2003-01-27 Ulrich Drepper <drepper@redhat.com>
4429
4430 * stdio-common/bug14.c: Use official name for the locale.
4431
4432 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
4433 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
4434 instead of __libc_cleanup_region_end.
4435
4436 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
4437 as first parameter to __libc_cleanup_region_start.
4438
4439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
4440 (__fe_nomask_env): Use __prctl not prctl.
4441 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
4442 prctl syscall.
4443
4444 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
4445
4446 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
4447
4448 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
4449 wrap-around in test.
4450
4451 2003-01-26 Andreas Schwab <schwab@suse.de>
4452
4453 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
4454 compatibility symbols. Remove INTDEF for __divdi3.
4455 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
4456 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
4457 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
4458 define.
4459 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
4460
4461 2003-01-24 Jakub Jelinek <jakub@redhat.com>
4462
4463 * elf/tls-macros.h: Add SPARC 32-bit definitions.
4464 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
4465 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
4466 for the first half of the header. Include tls.h.
4467 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
4468 relocs too.
4469 (elf_machine_rela): Handle TLS relocs.
4470 * sysdeps/sparc/dl-tls.h: New file.
4471
4472 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
4473 support.
4474
4475 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
4476 * sysdeps/sparc/sparc32/memchr.S: Likewise.
4477 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
4478 * sysdeps/sparc/sparc32/strcat.S: Likewise.
4479 * sysdeps/sparc/sparc32/strchr.S: Likewise.
4480 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
4481 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
4482 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
4483 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4484 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4485 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4486 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
4487 * sysdeps/sparc/sparc64/strcat.S: Likewise.
4488 * sysdeps/sparc/sparc64/strchr.S: Likewise.
4489 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
4490 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
4491 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
4492 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
4493 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4494 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4495
4496 2003-01-24 Andreas Schwab <schwab@suse.de>
4497
4498 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
4499 elements, and process them backwards.
4500 * elf/Makefile ($(objpfx)tst-array4): New target.
4501 ($(objpfx)tst-array4.out): Likewise.
4502 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
4503 * elf/tst-array4.c: New file.
4504 * elf/tst-array4.exp: Likewise.
4505
4506 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
4507
4508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
4509
4510 2003-01-27 Guido Guenther <agx@sigxcpu.org>
4511
4512 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
4513 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
4514 cancellation handling and handle both __NR_pread64 and __NR_pread.
4515 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4516 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
4517 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
4518 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4519 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
4520 case, use register names consistently.
4521
4522 2003-01-27 Wolfram Gloger <wg@malloc.de>
4523
4524 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
4525 pointer, not of the computed chunk. Bug report from Carlos
4526 O'Donell <carlos@baldric.uwo.ca>.
4527
4528 2003-01-25 Andreas Schwab <schwab@suse.de>
4529
4530 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
4531 addressing to save GOT entries.
4532
4533 2003-01-21 Jakub Jelinek <jakub@redhat.com>
4534
4535 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
4536 inline_syscall1, inline_syscall2, inline_syscall3,
4537 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
4538 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
4539 __attribute__((unused)) to ChEcK.
4540
4541 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4542
4543 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
4544 Fix inline assembler constraints.
4545 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
4546 Likewise.
4547
4548 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
4549 -fPIC.
4550
4551 2003-01-20 Segher Boessenkool <segher@koffie.nl>
4552
4553 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
4554 compute the cosine, not the sine, even if x > 0.8.
4555
4556 2003-01-19 Ulrich Drepper <drepper@redhat.com>
4557
4558 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
4559 _nss_nis_setspent. Work around the different prototypes.
4560 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
4561 internal_nis_endrpcent.
4562 (internal_nis_endrpcent): Change return type to void. Change callers.
4563 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
4564 _nss_nis_setpwent. Work around the different prototypes.
4565 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
4566 of the function to...
4567 (internal_nis_endprotoent): ... here. New function.
4568 (internal_nis_setprotoent): Use internal_nis_endprotoent.
4569 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
4570 _nss_nis_setnetent. Work around the different prototypes.
4571 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
4572 of the function to...
4573 (internal_nis_endnetgrent): ... here. New function.
4574 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
4575
4576 2003-01-19 Jim Meyering <jim@meyering.net>
4577
4578 * time/strftime.c: (widen): Merge nearly-identical definitions.
4579 (nl_get_alt_digit) [! defined my_strftime]: Define.
4580 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
4581 _nl_get_alt_digit and _nl_get_walt_digit.
4582
4583 2003-01-19 Ulrich Drepper <drepper@redhat.com>
4584
4585 * time/strftime.c (my_strftime): Handle very large width
4586 specifications for numeric values correctly. Improve checks for
4587 overflow.
4588 * time/Makefile (tests): Add tst-strftime.
4589 * time/tst-strftime.c: New file.
4590
4591 2003-01-18 Ulrich Drepper <drepper@redhat.com>
4592
4593 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
4594 _nss_nis_sethostent. Work around the different prototypes.
4595 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
4596 _nss_nis_setgrent. Work around the different prototypes.
4597 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
4598 function. Split out from _nss_nis_endetherent.
4599 (internal_nis_setetherent): Use internal_nis_endetherent instead of
4600 duplicating the code.
4601 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
4602 of _nss_nis_setaliasent.
4603 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
4604 internal_nis_endservent code, don't duplicate it.
4605
4606 * inet/rexec.c (rexec_af): Protect socket operations with
4607 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
4608 * inet/rcmd.c (rcmd_af): Likewise.
4609
4610 2003-01-17 Roland McGrath <roland@redhat.com>
4611
4612 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
4613 Add test of value 0.80190127184058835.
4614
4615 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
4616
4617 2003-01-17 Richard Henderson <rth@redhat.com>
4618
4619 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
4620 relocs for class PLT.
4621 * sysdeps/alpha/libc-tls.c: New file.
4622 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
4623 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
4624
4625 2003-01-17 Jakub Jelinek <jakub@redhat.com>
4626
4627 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
4628 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
4629 on _dl_static_lock.
4630
4631 2003-01-17 Andreas Jaeger <aj@suse.de>
4632
4633 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
4634
4635 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
4636
4637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
4638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
4639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
4640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
4641 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
4642 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
4643 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
4644 is 2.4.21.
4645
4646 2003-01-16 Ulrich Drepper <drepper@redhat.com>
4647
4648 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
4649 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
4650 buffers.
4651
4652 * sysdeps/generic/sysconf.c: Unconditionally implement
4653 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
4654 * sysdeps/posix/sysconf.c: Likewise.
4655
4656 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4657
4658 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
4659 set *err to the returned error, not to REG_ESPACE unconditionally.
4660 (build_word_op): Likewise.
4661 * posix/Makefile (tests): Add bug-regex16.
4662 * posix/bug-regex16.c: New test.
4663
4664 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4665
4666 * elf/dl-load.c (_dl_map_object_from_fd): Use
4667 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
4668 been already initialized.
4669
4670 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
4671
4672 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
4673
4674 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4675
4676 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
4677 allocated too. Reported by Al Viro <aviro@redhat.com>.
4678
4679 2003-01-16 Roland McGrath <roland@redhat.com>
4680
4681 Tweak merged .abilist file format to merge duplicate symbols in
4682 different sets into multi-version stanzas with new "| SET regexp..."
4683 header continuation lines.
4684 * scripts/merge-abilist.awk: Rewritten for new format.
4685 * scripts/extract-abilist.awk: Likewise.
4686
4687 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4688
4689 * nscd/connections.c (nscd_run): Remove bogus return which isn't
4690 necessary with gcc 3.2+.
4691 (nscd_init): Don't use error() to print message, use dbg_log.
4692
4693 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
4694 expected size into state.
4695 (UNPACK_BYTES): Do the reverse.
4696 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
4697 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
4698 Reported by Al Viro <aviro@redhat.com>.
4699
4700 * stdio-common/Makefile (tests): Add bug14.
4701 * stdio-common/bug14.c: New file.
4702
4703 * stdio-common/vfscanf.c: When recognizing multibyte characters in
4704 string reset the byte counter after mbrtowc reported it is not a
4705 partial character. Reported by Al Viro <aviro@redhat.com>.
4706
4707 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
4708
4709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
4710 sysdep-cancel.h, not sysdep.h.
4711
4712 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4713
4714 * nscd/connections.c (nscd_run): Protect accept call with
4715 TEMP_FAILURE_RETRY.
4716
4717 2003-01-15 Andreas Schwab <schwab@suse.de>
4718
4719 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
4720 (common-generated): Add s-proto-bp.d.
4721 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
4722 of bp thunks.
4723 * sysdeps/unix/s-proto-bp.S: New file.
4724 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
4725 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
4726 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
4727
4728 2003-01-15 Roland McGrath <roland@redhat.com>
4729
4730 * Makerules: Use -include for tls.make, suppresses warning.
4731 Move gen-as-const-headers rules up so before-compile is set in time.
4732 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
4733
4734 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4735
4736 * nscd/nscd.c (main): Make code to close all file descriptors
4737 faster and more robust.
4738
4739 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
4740 request with one writev call. Protect all read calls with
4741 TEMP_FAILURE_RETRY.
4742 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4743 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4744
4745 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
4746 Protect writev calls with TEMP_FAILURE_RETRY.
4747 * nscd/grpcache.c: Likewise.
4748 * nscd/pwdcache.c: Likewise.
4749
4750 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
4751 IPv6 address in debug output.
4752
4753 2003-01-14 Roland McGrath <roland@redhat.com>
4754
4755 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
4756 $(objpfx) directories, and get rid of vpath directives. The previous
4757 arrangement resulted in files being written to the source directories
4758 when run in a clean build. Find all .abilist files in $(..)abilist/.
4759 (update-abi-%): Likewise.
4760 (generated): Don't add .symlist files, they'll be intermediates.
4761
4762 * sysdeps/generic/init-first.c: Add a comment.
4763
4764 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
4765
4766 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
4767 #includes and expressions.
4768
4769 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
4770 config list when it already contains cpu-.*-os.* without / part.
4771
4772 * Makerules (sed-remove-dotdot): New variable.
4773 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
4774 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
4775 (check-abi-config): New variable, append /tls or /notls to the tuple.
4776 (check-abi-%): Use that for -v config value.
4777 Find .abilist files in abilist/libfoo.abilist, not in subdir.
4778 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
4779
4780 2003-01-14 Ulrich Drepper <drepper@redhat.com>
4781
4782 * manual/install.texi: Correct description of header preparation for
4783 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
4784
4785 2003-01-14 Guido Guenther <agx@sigxcpu.org>
4786
4787 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
4788 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4789 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
4790
4791 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
4792
4793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4794 (INTERNAL_SYSCALL): Make use of ERR parameter.
4795 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4796 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4797 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
4799
4800 2003-01-14 Ulrich Drepper <drepper@redhat.com>
4801
4802 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
4803 == IPPROTO_TCP.
4804 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
4805
4806 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
4807 Fix entry for bit 31.
4808
4809 * iconvdata/Makefile: Add rules to build IBM866NAV.
4810 * iconvdata/ibm866nav.c: New file.
4811 * iconvdata/tst-tables.sh: Add IBM866NAV.
4812 * iconvdata/gconv-modules: Add entries for IBM866NAV.
4813
4814 2003-01-13 Ulrich Drepper <drepper@redhat.com>
4815
4816 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
4817 to test void* parameters.
4818
4819 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
4820 source pointer before dereferencing.
4821 (__STRING_SMALLL_GET32): Likewise.
4822 (__memset_gc): Add missing parenthesis around macro arguments.
4823 Patch by Denis Zaitsev <zzz@cd-club.ru>.
4824
4825 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
4826 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
4827
4828 2003-01-14 Jakub Jelinek <jakub@redhat.com>
4829
4830 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
4831 defining.
4832
4833 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
4834
4835 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
4836 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
4837 here.
4838 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
4839
4840 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
4841
4842 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
4843 from here...
4844 (PSEUDO): ... to here.
4845 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
4846 from here...
4847 (PSEUDO): ... to here.
4848
4849 2003-01-13 Ulrich Drepper <drepper@redhat.com>
4850
4851 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
4852 dirent64 instead of struct dirent for dirent. Call readdir64
4853 instead of readdir.
4854
4855 * locale/programs/locfile.c (siblings_uncached): Use struct
4856 dirent64 instead of struct dirent for other_dentry. Call
4857 readdir64 instead of readdir.
4858
4859 * elf/ldconfig.c (direntry): Change type to struct dirent64.
4860 (search_dir): Use readdir64 instead of readdir.
4861 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
4862
4863 2003-01-12 Roland McGrath <roland@redhat.com>
4864
4865 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
4866 not strtol. The former is usable in ld.so, the latter not.
4867
4868 * include/fcntl.h: Declare __libc_creat.
4869
4870 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
4871 libhurduser-link.so-no-z-defs): New variables.
4872
4873 * malloc/malloc.c: Revert last change.
4874 * malloc/malloc.h (_int_*): Move these decls to ...
4875 * include/malloc.h: ... here. Add attribute_hidden.
4876 (_int_valloc): Declare it too.
4877
4878 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4879
4880 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
4881 search for removed searchlist. Reported by Roland McGrath.
4882
4883 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
4884 given as start file.
4885
4886 * io/ftw.c (ftw_startup): Use correct name in check for symlink
4887 without existing target. Patch by Jim Meyering.
4888
4889 * Makerules (build-shlib-helper): Don't use -z defs linker option
4890 if no-z-defs is defined either.
4891
4892 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4893
4894 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
4895 file.
4896
4897 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4898
4899 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
4900 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4901
4902 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4903
4904 * io/ftwtest-sh: Add test case for relative path with /. at the end.
4905
4906 2003-01-12 Jim Meyering <jim@meyering.net>
4907
4908 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
4909 use the basename if we've already chdir'd into its parent directory.
4910
4911 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4912
4913 * io/ftw.c (process_entry): Use relative path when using chdir()
4914 to change directory after call to ftw_dir.
4915 * io/ftwtest-sh: Add test for relative path argument to nftw()
4916 with FTW_CHDIR option.
4917
4918 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4919
4920 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
4921 Define for powerpc.
4922 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
4923 into account.
4924 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4925 (INTERNAL_SYSCALL): Make use of ERR parameter.
4926 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4927 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4928 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4929 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
4930
4931 2002-01-09 Richard Henderson <rth@redhat.com>
4932
4933 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
4934 DTPREL64 and TPREL64 without loadbase applied.
4935
4936 2002-01-09 Richard Henderson <rth@redhat.com>
4937
4938 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
4939 for NOT_IN_libc.
4940
4941 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
4942 * sysdeps/unix/alpha/sysdep.h: ... here.
4943 (PSEUDO_LOADGP): Remove.
4944 (PSEUDO_PROLOGUE): Load GP in non-pic case.
4945 (SYSCALL_ERROR_LABEL): New.
4946 (PSEUDO): Use it in error branch.
4947 (PSEUDO_END): Add $syscall_error label.
4948
4949 2003-01-12 Andreas Jaeger <aj@suse.de>
4950
4951 * math/bits/mathcalls.h: Round is a const function.
4952
4953 2003-01-11 Jim Meyering <jim@meyering.net>
4954
4955 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
4956 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
4957 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
4958 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
4959 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
4960 [!_LIBC] (internal_function, dirent64, MAX): Define.
4961 (__set_errno): Define if not already defined.
4962 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
4963 the basename, not the entire file name.
4964 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
4965 the basename, not the entire file name.
4966
4967 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4968
4969 * string/tester.c (test_strcpy): Disable last added strcpy until
4970 it is fixed.
4971
4972 2003-01-11 Philip Blundell <philb@gnu.org>
4973
4974 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
4975
4976 2003-01-11 Andreas Schwab <schwab@suse.de>
4977
4978 * Makerules: Add vpath for %.dynsym and %.so so that the
4979 implicit rule chaining for check-abi works.
4980
4981 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4982
4983 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4984 Add non-PIC case.
4985
4986 2003-01-11 Jakub Jelinek <jakub@redhat.com>
4987
4988 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
4989 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
4990 gp is used early.
4991 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
4992 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
4993 Ensure libc.so in DT_NEEDED.
4994 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
4995 CHECK_STATIC_TLS before l_tls_offset use.
4996 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
4997 Likewise.
4998 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4999 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
5000 Allocate TLS_PRE_TCB_SIZE bytes below result.
5001 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
5002 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
5003 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
5004 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
5005 bytes below result and add tcb_offset to memsz.
5006 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
5007 * sysdeps/ia64/dl-machine.h: Include tls.h.
5008 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
5009 too.
5010 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
5011 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
5012 * sysdeps/ia64/libc-tls.c: New file.
5013
5014 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
5015
5016 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
5017 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
5018 Fix type. Move definition out of #if.
5019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
5020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
5021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
5022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
5023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
5024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
5025 support.
5026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
5027 ftruncate64, pread64, pwrite64, truncate64 entries.
5028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5029 (INLINE_SYSCALL): New version that supports function call like
5030 syscalls. Add __builtin_expect.
5031 (LOADARGS_n): Add argument size safety checks.
5032 (INTERNAL_SYSCALL): New Macro.
5033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
5034 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
5035 redefinition of elf_fpreg_t and elf_fpregset_t.
5036
5037 2003-01-12 Ulrich Drepper <drepper@redhat.com>
5038
5039 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
5040 simplify test for unloading. If loader of a DSO is unloaded do not
5041 use its scope anymore. Fall back to own scope and adjust opencounts.
5042 Fix several comments.
5043 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
5044 the l_searchlist, not only for l_initfini.
5045
5046 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
5047 dependencies if objects cannot be removed. Remove object with the
5048 definition as not unloadable if necessary.
5049
5050 * elf/reldep6.c: Create relocation dependency before closing the first
5051 module.
5052
5053 2003-01-10 Guido Günther <agx@sigxcpu.org>
5054
5055 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
5056 * sysdeps/unix/mips/brk.S: Likewise.
5057 * sysdeps/unix/mips/pipe.S: Likewise.
5058
5059 2003-01-10 Andreas Schwab <schwab@suse.de>
5060
5061 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
5062
5063 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
5064 are known to have the vfork syscall.
5065
5066 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
5067
5068 * sysdeps/unix/sysv/linux/kernel-features.h
5069 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
5070 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
5071 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
5072
5073 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5074
5075 * elf/Makefile: Add rules to build and run reldep9 test.
5076 * elf/reldep9.c: New file.
5077 * elf/reldep9mod1.c: New file.
5078 * elf/reldep9mod2.c: New file.
5079 * elf/reldep9mod3.c: New file.
5080
5081 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5082
5083 * elf/Makefile: Add rules to build and run nodelete2 test.
5084 * elf/nodelete2.c: New file.
5085 * elf/nodel2mod1.c: New file.
5086 * elf/nodel2mod2.c: New file.
5087 * elf/nodel2mod3.c: New file.
5088
5089 2003-01-09 Jakub Jelinek <jakub@redhat.com>
5090
5091 * posix/test-vfork.c (noop): Add __attribute_noinline__.
5092 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
5093 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
5094 defining it.
5095 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
5096 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
5097 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
5098 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
5099 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
5100
5101 2003-01-09 Andreas Schwab <schwab@suse.de>
5102
5103 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
5104
5105 2003-01-08 Ulrich Drepper <drepper@redhat.com>
5106
5107 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
5108 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5109 argument.
5110 (INTERNAL_SYSCALL_DECL): Define.
5111
5112 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5113
5114 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
5115 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
5116 argument.
5117 (INTERNAL_SYSCALL_DECL): Define.
5118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5119 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5120 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5121 (INLINE_SYSCALL): Adjust.
5122 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5123 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
5124 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
5125 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5126 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
5127 add err argument to INTERNAL_SYSCALL* macros.
5128 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
5129 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
5130 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
5131 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
5132 Likewise.
5133 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
5134 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
5135 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
5136
5137 2003-01-07 Ulrich Drepper <drepper@redhat.com>
5138
5139 Unify symbols in user namespace exported by libc.so and libc.a.
5140 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
5141 argp_fmtstream_free, and argp_fmtstream_printf.
5142 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
5143 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
5144 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
5145 argp_fmtstream_point.
5146 * gmon/gmon.c: Don't define write_profiling.
5147 * libio/genops.c: Don't define _cleanup.
5148
5149 * intl/explodename.c (_nl_find_language.c): Mark as static.
5150 * intl/loadinfo.h: Remove _nl_find_language prototype.
5151
5152 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
5153 * libio/libioP.h: Remove declaration.
5154
5155 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
5156 * libio/libioP.h: Remove declaration.
5157
5158 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
5159 * sysdeps/generic/framestate.c: Define STATIC before including
5160 unwind-dw2.c.
5161
5162 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
5163
5164 2003-01-06 Philip Blundell <philb@gnu.org>
5165
5166 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
5167 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
5168
5169 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
5170 directive.
5171 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
5172 (SYSCALL_ERROR): New.
5173 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
5174 handling code.
5175 (INTERNAL_SYSCALL): Define.
5176 (INLINE_SYSCALL): Use it.
5177 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5178 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
5179 SYSCALL_ERROR in place of __syscall_error.
5180
5181 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5182
5183 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5184 __bswap_32, __bswap_64): Put x into temporary variable
5185 to avoid warnings.
5186 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5187 (inline) functions.
5188 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
5189 __bswap_32, __bswap_64): Put x into temporary variable
5190 to avoid warnings.
5191 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
5192 (inline) functions.
5193 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
5194 Likewise.
5195
5196 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5197
5198 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
5199 alias.
5200
5201 2003-01-07 Jakub Jelinek <jakub@redhat.com>
5202
5203 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
5204 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
5205
5206 2003-01-07 Ulrich Drepper <drepper@redhat.com>
5207
5208 * math/libm-test.inc (significand_test): New function.
5209 (main): Call it.
5210
5211 2003-01-06 Roland McGrath <roland@redhat.com>
5212
5213 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
5214 arguments.
5215 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
5216 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
5217 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
5218
5219 * string/tester.c (test_strcpy): Add test with `void *' arguments.
5220
5221 2003-01-06 Ulrich Drepper <drepper@redhat.com>
5222
5223 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
5224 return significand and not the exponent.
5225 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5226
5227 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
5228 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
5229
5230 * malloc/malloc.c: Mark all _int_* functions as static.
5231
5232 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5233
5234 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
5235 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
5236 handling.
5237 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
5238
5239 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5240
5241 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
5242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
5243 support.
5244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
5245 ftruncate64, truncate64, pread64 and pwrite64 entries.
5246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5247 (INLINE_SYSCALL): Add __builtin_expect.
5248 (LOADARGS_n): Add argument size safety checks.
5249 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
5250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
5251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
5252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
5253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
5254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
5255
5256 2003-01-06 Jakub Jelinek <jakub@redhat.com>
5257
5258 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
5259 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
5260 (LIBC_CANCEL_HANDLED): Add.
5261
5262 * sysdeps/unix/sysv/linux/alpha/sysdep.h
5263 (inline_syscall_r0_constraint): Rename to...
5264 (inline_syscall_r0_out_constraint): ... this. Add =.
5265 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
5266
5267 2003-01-06 Andreas Schwab <schwab@suse.de>
5268
5269 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
5270 sure this is always inlined.
5271 (elf_machine_rela): Likewise.
5272
5273 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
5274
5275 2003-01-04 Roland McGrath <roland@redhat.com>
5276
5277 * Makeconfig (+mkdep): Add -MP flag.
5278 Suggested by Art Haas <ahaas@airmail.net>.
5279
5280 2003-01-05 Andreas Schwab <schwab@suse.de>
5281
5282 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
5283
5284 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5285
5286 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
5287 SYSCALL_ERROR_HANDLER.
5288 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
5289 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
5290 Add support for cancellation handling.
5291 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
5292 SYSCALL_ERROR_HANDLER.
5293 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
5294 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
5295 Add support for cancellation handling.
5296 (SYSCALL_ERROR_HANDLER): Define PIC variants.
5297
5298 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5299
5300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
5301 __syscall_pread64 and __syscall_pwrite64 cancelable.
5302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5303 (INTERNAL_SYSCALL): New macro.
5304 (LOADARGS_0, LOADARGS_1): Fix.
5305
5306 2003-01-05 Ulrich Drepper <drepper@redhat.com>
5307
5308 * Makerules (build-shlip-helper): Unless told otherwise, add
5309 -Wl,-z,defs to linker command line.
5310 * rt/Makefile (librt.so): Link with ld.so.
5311 * dlfcn/Makefile (libdl.so): Likewise.
5312
5313 2003-01-05 Jakub Jelinek <jakub@redhat.com>
5314
5315 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
5316 cancellation handling.
5317 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5318 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
5319
5320 2003-01-04 Ulrich Drepper <drepper@redhat.com>
5321
5322 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
5323 order of parameters passed to kill.
5324
5325 2003-01-04 Andreas Schwab <schwab@suse.de>
5326
5327 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
5328
5329 2002-01-03 Paul Eggert <eggert@twinsun.com>
5330
5331 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
5332 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
5333 when compiling Bison 1.875's `bitset bset = obstack_alloc
5334 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
5335
5336 2003-01-04 Ulrich Drepper <drepper@redhat.com>
5337
5338 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
5339 unnecessary code.
5340 Correct reference counter in case SIGQUIT handler installation failed.
5341
5342 2003-01-03 Ulrich Drepper <drepper@redhat.com>
5343
5344 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
5345 Define using _Pragma(weak ...).
5346
5347 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
5348
5349 * resolv/res_libc.c: Provide declaration for __res_init_weak and
5350 reorder declarations.
5351
5352 2003-01-03 Art Haas <ahaas@airmail.net>
5353
5354 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
5355 initializer syntax to C99.
5356 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
5357 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
5358 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
5359 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
5360 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
5361 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
5362 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
5363 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
5364 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
5365 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
5366 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
5367 * localedata/tests-mbwc/dat_mblen.c: Likewise.
5368 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
5369 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
5370 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
5371 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
5372 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
5373 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
5374 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
5375 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
5376 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
5377 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
5378 * localedata/tests-mbwc/dat_towlower.c: Likewise.
5379 * localedata/tests-mbwc/dat_towupper.c: Likewise.
5380 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
5381 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
5382 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
5383 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
5384 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
5385 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
5386 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
5387 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
5388 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
5389 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
5390 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
5391 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
5392 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
5393 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
5394 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
5395 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
5396 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
5397 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
5398 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
5399 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
5400 * localedata/tests-mbwc/dat_wctob.c: Likewise.
5401 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
5402 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
5403 * localedata/tests-mbwc/dat_wctype.c: Likewise.
5404 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
5405
5406 2003-01-03 Richard Henderson <rth@redhat.com>
5407
5408 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
5409 (inline_syscall_r0_constraint): New.
5410 (inline_syscall[0-6]): Use them.
5411
5412 2003-01-03 Jakub Jelinek <jakub@redhat.com>
5413
5414 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
5415 Add rtld_hidden_proto.
5416 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
5417 (_dl_allocate_tls): Likewise. Remove INTDEF.
5418
5419 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5420
5421 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
5422 Morita <toshiyasu.morita@hsa.hitachi.com>.
5423 * sysdeps/sh/memcpy.S: Likewise.
5424
5425 2003-01-02 Ulrich Drepper <drepper@redhat.com>
5426
5427 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
5428 any, but unify the test.
5429
5430 2003-01-02 Jakub Jelinek <jakub@redhat.com>
5431
5432 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
5433 sigaction): Protect weak_alias and libc_hidden_weak with
5434 #ifndef LIBC_SIGACTION.
5435 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
5436 sigaction): Likewise.
5437 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
5438 sigaction): Likewise.
5439 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
5440 sigaction): Likewise.
5441 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
5442 sigaction): Likewise.
5443 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
5444 sigaction): Likewise.
5445 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
5446 sigaction): Likewise.
5447 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
5448 sigaction): Likewise. Remove SIGCANCEL handling here.
5449 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
5450 Likewise.
5451
5452 2003-01-02 Art Haas <ahaas@airmail.net>
5453
5454 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
5455
5456 2003-01-02 Ulrich Drepper <drepper@redhat.com>
5457
5458 * posix/getconf.c: Update copyright year.
5459 * nss/getent.c: Likewise.
5460 * nscd/nscd_nischeck.c: Likewise.
5461 * iconv/iconvconfig.c: Likewise.
5462 * iconv/iconv_prog.c: Likewise.
5463 * elf/ldconfig.c: Likewise.
5464 * catgets/gencat.c: Likewise.
5465 * csu/version.c: Likewise.
5466 * elf/ldd.bash.in: Likewise.
5467 * elf/sprof.c (print_version): Likewise.
5468 * locale/programs/locale.c: Likewise.
5469 * locale/programs/localedef.c: Likewise.
5470 * nscd/nscd.c (print_version): Likewise.
5471 * debug/xtrace.sh: Likewise.
5472 * malloc/memusage.sh: Likewise.
5473 * malloc/mtrace.pl: Likewise.
5474
5475 2003-01-01 Jakub Jelinek <jakub@redhat.com>
5476
5477 * io/sys/stat.h: Include time.h with __need_timespec even if
5478 __USE_MISC is defined but __USE_XOPEN is not.
5479
5480 2003-01-01 Andreas Jaeger <aj@suse.de>
5481
5482 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
5483 type to avoid strict aliasing problem.
5484 (_nss_dns_gethostbyname2_r): Likewise.
5485 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5486 (_nss_dns_getnetbyname_r): Likewise.
5487 * resolv/gethnamaddr.c (_gethtent): Likewise.
5488 (gethostbyname2): Likewise.
5489
5490 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5491
5492 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
5493 to avoid using the exported symbols. Define aliases with the
5494 original names separately.
5495
5496 * include/time.h: Add libc_hidden_proto for __strftime_l.
5497 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
5498 * time/strftime.c: Always use libc_hidden_def if _LIBC.
5499
5500 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
5501 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
5502
5503 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
5504 tr_break.
5505
5506 * csu/Makefile (routines): Add dso_handle.
5507 * csu/dso_handle.c: New file.
5508
5509 2002-12-31 Roland McGrath <roland@redhat.com>
5510
5511 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
5512 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
5513 (S-CPPFLAGS): Add -DASSEMBLER here instead.
5514 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
5515
5516 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5517
5518 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
5519 is available.
5520
5521 2002-12-31 Andreas Jaeger <aj@suse.de>
5522
5523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
5524 with Linux kernel.
5525 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
5526 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
5527 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
5528
5529 * sysdeps/unix/sysv/linux/kernel_stat.h
5530 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
5531
5532 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
5533 __unused[1-3] since they're needed by some platforms. Handle
5534 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
5535
5536 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
5537 for structs stat and stat64.
5538 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5539 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
5540 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5541 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5542
5543 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
5544
5545 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
5546 nsec resolution changes.
5547 (xstat64_conv): Likewise.
5548 (xstat32_conv): Likewise.
5549
5550 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
5551 struct kernel_stat.
5552
5553 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
5554 structs stat and stat64.
5555
5556 * time/time.h (__timespec_defined): Define for __USE_MISC.
5557
5558 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5559
5560 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
5561 and __libc_current_sigrtmax.
5562
5563 2002-12-31 Jakub Jelinek <jakub@redhat.com>
5564
5565 * include/errno.h (__errno_location): Add prototype.
5566 Use libc_hidden_proto unconditionally.
5567 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
5568 unconditionally.
5569 * include/resolv.h (__res_state): Likewise.
5570
5571 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
5572 * include/sys/socket.h (accept): Add libc_hidden_proto.
5573 * include/errno.h (__errno_location): Likewise.
5574 * include/netdb.h (__h_errno_location): Likewise.
5575 * include/resolv.h (__res_state): Likewise.
5576 * include/unistd.h (__lseek): Likewise.
5577 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
5578 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
5579 * sysdeps/generic/res-state.c (__res_state): Likewise.
5580 * sysdeps/generic/accept.c (accept): Likewise.
5581 * sysdeps/generic/lseek.c (__lseek): Likewise.
5582 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
5583 __libc_current_sigrtmax): Likewise.
5584 * sysdeps/mach/hurd/accept.c (accept): Likewise.
5585 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
5586 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
5587 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
5588 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
5589 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
5590 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
5591 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
5592 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
5593 alias to llseek.
5594 (__GI_accept): New alias to accept.
5595 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
5596 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
5597 New alias to llseek.
5598 (__GI_accept): New alias to accept.
5599 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
5600 Likewise.
5601 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
5602 Likewise.
5603 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
5604
5605 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
5606 strong_alias (name, __GI_name).
5607 * sysdeps/arm/bsd-_setjmp.S : Likewise.
5608 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
5609 * sysdeps/i386/bsd-_setjmp.S : Likewise.
5610 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
5611 * sysdeps/mips/bsd-_setjmp.S : Likewise.
5612 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
5613 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
5614 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
5615 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
5616 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
5617 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
5618 * sysdeps/sh/bsd-_setjmp.S : Likewise.
5619 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
5620 * sysdeps/unix/arm/fork.S : Likewise.
5621 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
5622 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
5623 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
5624 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
5625 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
5626 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
5627 * sysdeps/unix/i386/fork.S : Likewise.
5628 * sysdeps/unix/mips/fork.S : Likewise.
5629 * sysdeps/unix/sparc/fork.S : Likewise.
5630 * sysdeps/unix/sparc/vfork.S : Likewise.
5631 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
5632 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
5633 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
5634 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
5635 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
5636 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
5637 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
5638 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
5639 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
5640 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
5641 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
5642 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
5643 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
5644 * sysdeps/unix/fork.S : Likewise.
5645 * sysdeps/vax/bsd-_setjmp.S : Likewise.
5646 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
5647
5648 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
5649 inclusion.
5650
5651 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5652
5653 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
5654 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
5655 * sysdeps/mach/hurd/fork.c: Likewise.
5656 * sysdeps/unix/sysv/aix/fork.c: Likewise.
5657 * sysdeps/unix/fork.S: Add __GI___fork alias.
5658 * sysdeps/unix/arm/fork.S: Likewise.
5659 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
5660 * sysdeps/unix/i386/fork.S: Likewise.
5661 * sysdeps/unix/mips/fork.S: Likewise.
5662 * sysdeps/unix/sparc/fork.S: Likewise.
5663 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
5664 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
5665 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5666 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
5667 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
5668 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
5669 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
5670 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5671 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
5672 * sysdeps/unix/sparc/vfork.S: Likewise.
5673 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
5674 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
5675 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5676 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
5677 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
5678 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
5679 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
5680 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5681
5682 * include/time.h: Add libc_hidden_proto for __nanosleep.
5683 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
5684 * sysdeps/mach/nanosleep.c: Likewise.
5685 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
5686 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
5687
5688 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
5689 _IO_list_unlock, and _IO_list_resetlock.
5690 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
5691 _IO_list_unlock, and _IO_list_resetlock.
5692
5693 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
5694 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5695 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
5696 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5697
5698 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
5699 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
5700 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
5701 __GI___longjmp alias.
5702
5703 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
5704 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
5705 * sysdeps/arm/bsd-_setjmp.S: Likewise.
5706 * sysdeps/generic/bsd-_setjmp.c: Likewise.
5707 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
5708 * sysdeps/i386/bsd-_setjmp.S: Likewise.
5709 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5710 * sysdeps/mips/bsd-_setjmp.S: Likewise.
5711 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5712 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5713 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5714 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
5715 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
5716 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
5717 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
5718 * sysdeps/sh/bsd-_setjmp.S: Likewise.
5719 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
5720 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5721 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
5722 * sysdeps/vax/bsd-_setjmp.S: Likewise.
5723 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
5724
5725 2002-12-30 Ulrich Drepper <drepper@redhat.com>
5726
5727 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
5728
5729 2002-12-30 Roland McGrath <roland@redhat.com>
5730
5731 * Rules (generated): Target removed.
5732 * mach/Makefile (generated): Define it here instead.
5733
5734 * math/Makefile (generated): Add m_*l and m_*f variants too.
5735
5736 2002-12-30 Ulrich Drepper <drepper@redhat.com>
5737
5738 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
5739 the to-be-deleted objects right away instead of later separately.
5740 The latter fails because the scope data structures of the DSO
5741 might already be gone.
5742
5743 * elf/Makefile: Add rules to build and run reldep8 test.
5744 * elf/reldep8.c: New file.
5745 * elf/reldep8mod1.c: New file.
5746 * elf/reldep8mod2.c: New file.
5747 * elf/reldep8mod3.c: New file.
5748 Contributed by Jakub Jelinek.
5749
5750 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
5751
5752 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
5753 checking of return value ENOSYS from getdents64.
5754
5755 2002-12-28 Andreas Schwab <schwab@suse.de>
5756
5757 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
5758 ($(common-objpfx)s-%.d): Generalized from
5759 $(common-objpfx)s-proto.d rule.
5760 (common-generated): Add s-proto-cancel.d.
5761 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
5762 cancellable syscalls.
5763 * sysdeps/unix/s-proto-cancel.S: New file.
5764
5765 2002-12-29 Roland McGrath <roland@redhat.com>
5766
5767 * resolv/res_libc.c: Move _res defn magic after res_init defn
5768 so _res macro is in effect for that code.
5769
5770 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
5771 pattern for prepending $(..) so it doesn't affect $(foo).
5772
5773 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
5774
5775 2002-12-29 Jakub Jelinek <jakub@redhat.com>
5776
5777 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
5778 in hwcap.
5779
5780 2002-12-28 Ulrich Drepper <drepper@redhat.com>
5781
5782 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
5783
5784 2002-12-28 Andreas Jaeger <aj@suse.de>
5785
5786 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
5787 avoid warning.
5788 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
5789
5790 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5791
5792 * inet/herrno.c (__h_errno_location): Remove.
5793 * inet/Makefile (routines): Add herrno-loc.
5794 * resolv/res_libc.c (__res_state): Remove.
5795 * resolv/Makefile (routines): Add res-state.
5796 * sysdeps/generic/herrno-loc.c: New file.
5797 * sysdeps/generic/res-state.c: New file.
5798
5799 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5800
5801 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
5802 Only define if USE_DL_SYSINFO is defined.
5803
5804 2002-12-22 Jakub Jelinek <jakub@redhat.com>
5805
5806 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
5807 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
5808 Define. Patch by Richard Henderson and Jes Sorensen.
5809 (PSEUDO): Remove unnecessary ;;.
5810 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
5811 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
5812 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
5813 if not initializing thread pointer.
5814 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
5815 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
5816 make it weak also if NONTLS_INIT_TP.
5817 * sysdeps/unix/common/pause.c: Handle cancellation.
5818 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
5819 (LOADSYSCALL): Remove.
5820 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5821 (SYSCALL_ERROR_HANDLER): Use it.
5822 (PSEUDO): Don't jump around error handler.
5823 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
5824 jump around error handler.
5825 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
5826 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
5827 to __syscall_error_handler on failure.
5828 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
5829 (LOADSYSCALL): Remove.
5830 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5831 (SYSCALL_ERROR_HANDLER): Use it.
5832 (PSEUDO): Don't jump around error handler.
5833 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
5834 jump around error handler.
5835 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
5836 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
5837 to __syscall_error_handler on failure.
5838
5839 2002-12-27 Roland McGrath <roland@redhat.com>
5840
5841 * scripts/gen-as-const.awk: New file.
5842 * Makefile (distribute): Add it.
5843 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
5844 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
5845 to the list.
5846 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
5847
5848 2002-12-27 Andreas Schwab <schwab@suse.de>
5849
5850 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
5851
5852 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5853
5854 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
5855 _environ is NULL.
5856
5857 2002-12-27 Andreas Schwab <schwab@suse.de>
5858
5859 * Makerules ($(common-objpfx)%.make): Filter through
5860 $(sed-remove-objpfx).
5861
5862 2002-12-23 Roland McGrath <roland@redhat.com>
5863
5864 * scripts/abilist.awk: Produce a more compact format, divided into
5865 stanzas for each version set, the set name listed only once.
5866 * scripts/extract-abilist.awk: New file.
5867 * scripts/merge-abilist.awk: New file.
5868 * Makerules (check-abi-%, update-abi-%): New pattern rules.
5869 (update-abi, check-abi): New targets.
5870 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
5871
5872 2002-12-19 Roland McGrath <roland@redhat.com>
5873
5874 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
5875
5876 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
5877 INTERNAL_SYSCALL.
5878
5879 2002-12-21 Andreas Schwab <schwab@suse.de>
5880
5881 * elf/check-textrel.c (handle_file): Swap p_type.
5882
5883 2002-12-21 Andreas Schwab <schwab@suse.de>
5884
5885 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
5886 (INLINE_SYSCALL): Use it.
5887 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5888 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5889
5890 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
5891 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
5892
5893 2002-12-20 Art Haas <ahaas@airmail.net>
5894
5895 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
5896 syntax to C99.
5897
5898 2002-12-21 Philip Blundell <philb@gnu.org>
5899
5900 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
5901 top as seventh arg to __libc_start_main.
5902 Reported by paulnash@wildseed.com.
5903
5904 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
5905
5906 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
5907 compatibility cruft when new enough kernel is assumed.
5908
5909 2002-12-20 Jakub Jelinek <jakub@redhat.com>
5910
5911 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
5912 instead of INLINE_SYSCALL.
5913
5914 2002-12-20 Ulrich Drepper <drepper@redhat.com>
5915
5916 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
5917 typo.
5918
5919 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
5920 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5921 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
5922 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5923 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5924 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5925 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5926 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5927 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5928 Patch by William Lee Irwin <wli@holomorphy.com>.
5929
5930 2002-12-20 Andreas Schwab <schwab@suse.de>
5931
5932 * locale/programs/ld-measurement.c (measurement_output): Fix
5933 index calculation.
5934
5935 2002-12-20 Ulrich Drepper <drepper@redhat.com>
5936
5937 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
5938 Redefine _IO_flockifle and _IO_funlockfile as inlines.
5939
5940 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
5941 builds add "tls" in the search path.
5942 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
5943 (path_hwcap): Recognize "tls".
5944
5945 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5946
5947 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
5948 __waitpid instead of waitpid.
5949
5950 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
5951 int $0x80.
5952 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5953 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5954 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5955
5956 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
5957 information for system calls.
5958
5959 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
5960 for ld.so.
5961
5962 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
5963
5964 2002-12-19 Roland McGrath <roland@redhat.com>
5965
5966 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
5967 * iconvdata/ibm922.h: Likewise.
5968 * iconvdata/ibm930.h: Likewise.
5969 * iconvdata/ibm932.h: Likewise.
5970 * iconvdata/ibm933.h: Likewise.
5971 * iconvdata/ibm935.h: Likewise.
5972 * iconvdata/ibm937.h: Likewise.
5973 * iconvdata/ibm939.h: Likewise.
5974 * iconvdata/ibm943.h: Likewise.
5975 * iconvdata/isiri-3342.h: Likewise.
5976
5977 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5978
5979 * test-skeleton.c (main): Make sure correct value is seen as
5980 argv[0] after adjustment of argv, and argc.
5981
5982 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
5983 RTLD_CORRECT_DYNAMIC_WEAK is defined.
5984
5985 2002-12-19 Jakub Jelinek <jakub@redhat.com>
5986
5987 * nscd/connections.c (nscd_run): Shut up warning.
5988 * tst-ungetc.c (assert): Undefined before redefining.
5989
5990 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5991
5992 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
5993 is used.
5994
5995 2002-12-17 Art Haas <ahaas@airmail.net>
5996
5997 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
5998 * iconvdata/cp775.h: Likewise.
5999 * iconvdata/ibm1046.h: Likewise.
6000 * iconvdata/ibm1124.h: Likewise.
6001 * iconvdata/ibm1129.h: Likewise.
6002 * iconvdata/ibm1132.h: Likewise.
6003 * iconvdata/ibm1133.h: Likewise.
6004 * iconvdata/ibm1160.h: Likewise.
6005 * iconvdata/ibm1161.h: Likewise.
6006 * iconvdata/ibm1162.h: Likewise.
6007 * iconvdata/ibm1163.h: Likewise.
6008 * iconvdata/ibm1164.h: Likewise.
6009
6010 2002-12-19 Ulrich Drepper <drepper@redhat.com>
6011
6012 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
6013 __ASSUME_CLONE_THREAD_FLAGS is defined.
6014 * sysdeps/unix/sysv/linux/kernel-features.h
6015 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
6016
6017 2002-12-18 Ulrich Drepper <drepper@redhat.com>
6018
6019 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
6020 of asm.
6021 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6022
6023 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
6024 _dl_sysinfo.
6025 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6026 code.
6027 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
6028 _rtld_global.
6029 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
6030 code.
6031 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6032 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
6033 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
6034 Add _dl_sysinfo.
6035
6036 2002-12-18 Jakub Jelinek <jakub@redhat.com>
6037
6038 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
6039 __libc_writev to...
6040 [libc: GLIBC_PRIVATE]: ...here.
6041 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
6042 __libc_msgsnd to...
6043 [libc: GLIBC_PRIVATE]: ...here.
6044
6045 2002-12-18 Ulrich Drepper <drepper@redhat.com>
6046
6047 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
6048 Use it instead of directly int $0x80.
6049 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
6050 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6051 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6052 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6053 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6054 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
6055
6056 2002-12-17 Ulrich Drepper <drepper@redhat.com>
6057
6058 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
6059
6060 * elf/elf.h (AT_SYSINFO): New define.
6061 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
6062 AT_SYSINFO.
6063
6064 2002-12-17 Jakub Jelinek <jakub@redhat.com>
6065
6066 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
6067 Make cancelable.
6068 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
6069 Likewise.
6070 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
6071 Likewise.
6072 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
6073 Likewise.
6074 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
6075 Likewise.
6076 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
6077
6078 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
6079 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
6080 available, otherwise __libc_maybe_call.
6081 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
6082 cancellation handling.
6083 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
6084
6085 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
6086
6087 * posix/regcomp.c (free_workarea_compile): Free the new member
6088 ORG_INDICES.
6089 (analyze): Initialize ORG_INDICES.
6090 (duplicate_node_closure): Search for a existing node, which is
6091 duplicated from the node ORG_DEST and satisfies the constraint
6092 CONSTRAINT. And use it to avoid inifimite loop.
6093 (search_duplicated_node): New function.
6094 (duplicate_node): Store the index of the original node.
6095 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
6096 if needed.
6097 * posix/regex_internal.h (re_dfa_t): Add new members.
6098
6099 2002-12-17 Ulrich Drepper <drepper@redhat.com>
6100
6101 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
6102
6103 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6104
6105 * sysdeps/posix/system.c (do_system): Add support for installation
6106 of cancellation handlers.
6107 * sysdeps/unix/sysv/linux/i386/system.c: New file.
6108
6109 * stdlib/Makefile (tests): Add tst-system.
6110 * stdlib/tst-system.c: New file.
6111
6112 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
6113 CENABLE]: Don't lose content of %ebx.
6114
6115 2002-12-17 Jakub Jelinek <jakub@redhat.com>
6116
6117 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
6118 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
6119
6120 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6121
6122 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
6123 fails to return a function pointer don't use it.
6124
6125 2002-12-16 Art Haas <ahaas@airmail.net>
6126
6127 * io/ftw.c: Convert GCC extension initializer syntax to C99.
6128 * iconvdata/iso-ir-165.c: Likewise.
6129 * iconvdata/jis0208.c: Likewise.
6130 * iconvdata/jis0212.c: Likewise.
6131
6132 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6133
6134 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
6135 epoll_ctl, and epoll_wait.
6136 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
6137 epoll_create, epoll_ctl, and epoll_wait.
6138 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
6139 Davide Libenzi <davidel@xmailserver.org>.
6140 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
6141 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6142 Add sys/epoll.h.
6143
6144 2002-12-16 Art Haas <ahaas@airmail.net>
6145
6146 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
6147 syntax to C99
6148 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
6149 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
6150 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
6151
6152 2002-12-16 Ulrich Drepper <drepper@redhat.com>
6153
6154 * stdio-common/Makefile (routines): Remove lockfile. Add
6155 flockfile, ftrylockfile, and funlockfile.
6156 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
6157 * sysdeps/generic/flockfile.c: New file.
6158 * sysdeps/generic/ftrylockfile.c: New file.
6159 * sysdeps/generic/funlockfile.c: New file.
6160
6161 2002-12-16 Jakub Jelinek <jakub@redhat.com>
6162
6163 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
6164 macros instead of doing the calls directly.
6165 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
6166 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
6167 targets.
6168
6169 2002-12-16 Jakub Jelinek <jakub@redhat.com>
6170
6171 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
6172 * sysdeps/ieee754/bits/nan.h: Likewise.
6173
6174 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
6175 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
6176
6177 2002-12-16 Roland McGrath <roland@redhat.com>
6178
6179 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
6180 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
6181 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
6182
6183 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
6184 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
6185 s_putpmsg.
6186 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
6187 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
6188 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
6189 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
6190 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
6191 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
6192 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
6193 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
6194
6195 2002-12-13 Paul Eggert <eggert@twinsun.com>
6196
6197 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
6198 is now u_int, not int.
6199 (struct XDR.x_handy): Now u_int, not int.
6200 * sunrpc/xdr_mem.c: Include <limits.h>.
6201 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
6202 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
6203 x_handy is now unsigned, not signed.
6204 Do not decrement x_handy if no change is made.
6205 (xdrmem_setpos): Check for int overflow.
6206 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
6207 (xdr_sizeof): Remove cast that is now unnecessary, now that
6208 x_handy is unsigned.
6209
6210 2002-12-15 Art Haas <ahaas@airmail.net>
6211
6212 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
6213 * iconvdata/gap.awk: Likewise.
6214 * iconvdata/gen-8bit-gap-1.sh: Likewise.
6215 * iconvdata/gen-8bit-gap.sh: Likewise.
6216 * locale/C-address.c: Likewise.
6217 * locale/C-collate.c: Likewise.
6218 * locale/C-ctype.c: Likewise.
6219 * locale/C-identification.c: Likewise.
6220 * locale/C-measurement.c: Likewise.
6221 * locale/C-messages.c: Likewise.
6222 * locale/C-monetary.c: Likewise.
6223 * locale/C-name.c: Likewise.
6224 * locale/C-numeric.c: Likewise.
6225 * locale/C-paper.c: Likewise.
6226 * locale/C-telephone.c: Likewise.
6227 * locale/C-time.c: Likewise.
6228 * nscd/connections.c: Likewise.
6229 * nscd/grpcache.c: Likewise.
6230 * nscd/hstcache.c: Likewise.
6231 * nscd/pwdcache.c: Likewise.
6232 * stdio-common/vfprintf.c: Likewise.
6233 * stdlib/random.c: Likewise.
6234 * sysdeps/generic/siglist.c: Likewise.
6235 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6236 * sysdeps/ieee754/bits/nan.h: Likewise.
6237 * sysdeps/posix/sprofil.c: Likewise.
6238 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
6239 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
6240 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
6241
6242 2002-12-15 Roland McGrath <roland@redhat.com>
6243
6244 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
6245
6246 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
6247 <tls.h> here, no need for it.
6248 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6249
6250 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
6251 parameter, not varargs parameter.
6252
6253 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
6254 argument so it's not an unused variable.
6255
6256 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
6257 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
6258 for users.
6259
6260 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
6261
6262 2002-12-15 Ulrich Drepper <drepper@redhat.com>
6263
6264 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
6265 original __libc_fcntl code. Just renamed.
6266
6267 2002-12-15 Andreas Schwab <schwab@suse.de>
6268
6269 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
6270
6271 2002-12-14 Olaf Hering <olh@suse.de>
6272
6273 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
6274 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
6275
6276 2002-12-15 Ulrich Drepper <drepper@redhat.com>
6277
6278 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
6279
6280 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
6281 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
6282
6283 * sysdeps/unix/sysv/linux/open64.c: New file.
6284
6285 * sysdeps/generic/pselect.c: Add support for cancellation handling.
6286 * sysdeps/posix/open64.c: Likewise.
6287 * sysdeps/posix/sigpause.c: Likewise.
6288 * sysdeps/posix/sigwait.c: Likewise.
6289 * sysdeps/posix/system.c: Likewise.
6290 * sysdeps/posix/waitid.c: Likewise.
6291 * sysdeps/unix/sysv/linux/accept.S: Likewise.
6292 * sysdeps/unix/sysv/linux/connect.S: Likewise.
6293 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
6294 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
6295 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
6296 * sysdeps/unix/sysv/linux/poll.c: Likewise.
6297 * sysdeps/unix/sysv/linux/pread.c: Likewise.
6298 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6299 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6300 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6301 * sysdeps/unix/sysv/linux/readv.c: Likewise.
6302 * sysdeps/unix/sysv/linux/recv.S: Likewise.
6303 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
6304 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
6305 * sysdeps/unix/sysv/linux/send.S: Likewise.
6306 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
6307 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
6308 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
6309 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6310 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6311 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6312 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
6313 * sysdeps/unix/sysv/linux/wait.c: Likewise.
6314 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
6315 * sysdeps/unix/sysv/linux/writev.c: Likewise.
6316 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6317 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6318
6319 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6320
6321 * sysdeps/generic/sysdep-cancel.h: New file.
6322 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
6323 cancelable syscall.
6324 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
6325 recvmsg, send, sendmsg, sendto): Make cancelable.
6326 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
6327 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
6328 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6329 sendto, osf_select): Likewise.
6330 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
6331 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6332 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
6333 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6334 sendto): Likewise.
6335 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
6336 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
6337 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
6338 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6339 sendto): Likewise.
6340 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
6341 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
6342 sendto, select): Likewise.
6343 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
6344 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
6345 Likewise.
6346 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
6347 select, fcntl): Likewise.
6348 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
6349 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
6350 read, readv, select, sigsuspend, write, writev): Likewise.
6351
6352 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6353
6354 * dirent/bug-readdir1.c: Include unistd.h.
6355
6356 2002-12-13 Jakub Jelinek <jakub@redhat.com>
6357
6358 * locale/programs/locale.c: Include locarchive.h.
6359 (ARCHIVE_NAME): Define.
6360 (write_archive_locales): New function.
6361 (write_locales): Use it. Ensure the same locale is not printed
6362 multiple times in verbose mode.
6363 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
6364 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
6365 functions.
6366 (struct nameent): New type.
6367 (nameentcmp): New function.
6368
6369 2002-12-14 Jakub Jelinek <jakub@redhat.com>
6370
6371 * posix/regex_internal.c (re_string_context_at): Guard wide char
6372 code with #ifdef RE_ENABLE_I18N.
6373
6374 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
6375
6376 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
6377
6378 2002-12-13 Roland McGrath <roland@redhat.com>
6379
6380 * posix/bug-regex15.c: New file.
6381 * posix/Makefile (tests): Add it.
6382
6383 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
6384 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
6385
6386 2002-12-13 Ulrich Drepper <drepper@redhat.com>
6387
6388 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
6389
6390 * misc/syslog.c (log_cleanup): Don't use parameter in
6391 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
6392 pass NULL instead of a pointer to syslog_lock.
6393
6394 2002-12-12 Ulrich Drepper <drepper@redhat.com>
6395
6396 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
6397 linker map for all iconv modules.
6398 (distribute): Add gconv.map.
6399 * iconvdata/gconv.map: New file.
6400
6401 * elf/Makefile: Also check all iconv modules for text relocations.
6402
6403 * stdlib/Makefile: Remove code to automatically import GMP.
6404
6405 * elf/Makefile (tests): Add rules to build and run check-textrel.
6406 * elf/check-textrel.c: New file.
6407
6408 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
6409 directive.
6410
6411 2002-12-11 Jakub Jelinek <jakub@redhat.com>
6412
6413 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
6414 not st.st[am]time.
6415
6416 2002-04-30 Bruno Haible <bruno@clisp.org>
6417
6418 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
6419 the encoding if it already has slashes.
6420 Reported by Perry Rapp <prapp@erols.com>.
6421
6422 2002-12-11 Roland McGrath <roland@redhat.com>
6423
6424 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
6425 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
6426 Turn off PIC for compiling this file.
6427
6428 2002-12-11 Ulrich Drepper <drepper@redhat.com>
6429
6430 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
6431 definitions. Not needed.
6432 [_LIBC]: Use definitions from libc-lock.h instead of referencing
6433 pthread routines directly.
6434 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
6435 mutex_init calls.
6436 (arena_get2): Don't look at return value of mutex_lock.
6437
6438 2002-12-11 Roland McGrath <roland@redhat.com>
6439
6440 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
6441 elf-init.o instead of compiling a PIC version.
6442
6443 2002-12-11 Bruno Haible <bruno@clisp.org>
6444
6445 * intl/gettext.h: Renamed to ...
6446 * intl/gmo.h: ... here.
6447 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
6448 * intl/gettextP.h: Update.
6449 * intl/loadmsgcat.c: Update.
6450
6451 * intl/gettextP.h (PARAMS): Make more portable.
6452 (attribute_hidden): Define as empty macro if not already defined.
6453 * intl/hash-string.h (PARAMS): Make more portable.
6454 * intl/loadinfo.h (PARAMS): Likewise.
6455 * intl/plural-exp.h (PARAMS): Likewise.
6456 (attribute_hidden): Move definition near the definition of
6457 internal_function.
6458
6459 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
6460 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
6461
6462 2002-07-13 Bruno Haible <bruno@clisp.org>
6463
6464 * intl/dcigettext.c (freea): New macro.
6465 (FREE_BLOCKS): Free also the registered blocks.
6466 (DCIGETTEXT): Free the 'search' variable.
6467 Reported by Andreas Fischer <a.fischer@asentics.de>.
6468
6469 2002-04-27 Bruno Haible <bruno@clisp.org>
6470
6471 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
6472 * intl/dcigettext.c: Likewise.
6473 * intl/dcgettext.c: Likewise.
6474 * intl/dgettext.c: Likewise.
6475 * intl/gettext.c: Likewise.
6476 * intl/dcngettext.c: Likewise.
6477 * intl/dngettext.c: Likewise.
6478 * intl/ngettext.c: Likewise.
6479 * intl/textdomain.c: Likewise.
6480 * intl/bindtextdom.c: Likewise.
6481 * intl/plural-exp.h: Likewise.
6482
6483 2002-01-02 Bruno Haible <bruno@clisp.org>
6484
6485 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
6486
6487 2001-04-30 Bruno Haible <bruno@clisp.org>
6488
6489 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
6490 default macro definitions. Needed for mingw32.
6491
6492 2002-12-10 Ulrich Drepper <drepper@redhat.com>
6493
6494 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
6495 __builtin_constant_p to macro parameter.
6496
6497 * sysdeps/generic/sigpause.c: Define all functions as weak.
6498 * sysdeps/posix/sigpause.c: Likewise.
6499
6500 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
6501 type size_t.
6502
6503 2002-12-10 Jakub Jelinek <jakub@redhat.com>
6504
6505 * elf/tst-array1.c (preinit_array, init_array, fini_array):
6506 Explicitly align the array to sizeof (void *).
6507 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
6508
6509 * include/libc-symbols.h: Fix a comment typo.
6510
6511 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
6512 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
6513 Likewise.
6514 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
6515 Likewise.
6516 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
6517 (__libc_sigsuspend): Likewise.
6518 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
6519 (__libc_sigsuspend): Likewise.
6520 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
6521 (creat): New weak alias.
6522
6523 2002-12-10 Roland McGrath <roland@redhat.com>
6524
6525 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
6526 contributes a manual chapter.
6527 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
6528 around xref to it.
6529
6530 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
6531 and move contents to ...
6532 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
6533 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
6534 it instead of duplicating its contents.
6535 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
6536
6537 2002-12-09 Jakub Jelinek <jakub@redhat.com>
6538
6539 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
6540 defined.
6541 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
6542 function.
6543 (EXTRA_LD_ENVVARS): Use it.
6544 (DL_OSVERSION_INIT): Define.
6545 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
6546 dl-librecon.h.
6547 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
6548
6549 2002-12-10 Ulrich Drepper <drepper@redhat.com>
6550
6551 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
6552
6553 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
6554 call. It is not allowed to destroy pthread mutexes which are
6555 still in use even though it is safe for our implementations. If
6556 somebody still uses the descriptor it is a bug.
6557
6558 2002-12-09 Richard Henderson <rth@redhat.com>
6559
6560 * csu/abi-note.S: Use .p2align, not .align.
6561
6562 2002-12-09 Ulrich Drepper <drepper@redhat.com>
6563
6564 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
6565 __libc_select aliases.
6566
6567 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
6568 alias.
6569
6570 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
6571
6572 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
6573
6574 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
6575
6576 * sysdeps/unix/syscalls.list: Define __libc_select alias.
6577
6578 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
6579
6580 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
6581 __libc___xpg_sigpause aliases.
6582
6583 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
6584
6585 * misc/error.c: Remove use of USE_IN_LIBIO.
6586
6587 2002-12-08 Roland McGrath <roland@redhat.com>
6588
6589 * elf/Makefile (tests): Uncomment tst-array[123].
6590 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
6591 * csu/elf-init.c: New file.
6592 * csu/Makefile (routines, static-only-routines): Add elf-init.
6593 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
6594 and __libc_csu_fini in place of _fini.
6595 * sysdeps/arm/elf/start.S: Likewise.
6596 * sysdeps/cris/elf/start.S: Likewise.
6597 * sysdeps/hppa/elf/start.S: Likewise.
6598 * sysdeps/i386/elf/start.S: Likewise.
6599 * sysdeps/ia64/elf/start.S: Likewise.
6600 * sysdeps/m68k/elf/start.S: Likewise.
6601 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
6602 * sysdeps/mips/elf/start.S: Likewise.
6603 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
6604 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
6605 * sysdeps/s390/s390-32/elf/start.S: Likewise.
6606 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6607 * sysdeps/sh/elf/start.S: Likewise.
6608 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6609 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6610 * sysdeps/x86_64/elf/start.S: Likewise.
6611
6612 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
6613 struct containing function ptr and value, free it.
6614 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
6615 It's not safe to let the new thread use the SIGEV pointer.
6616
6617 2001-10-20 Paul Eggert <eggert@twinsun.com>
6618
6619 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
6620 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
6621 Use strerror_r that is only a macro, even if it is not a function.
6622 (strerror): Check for HAVE_DECL_STRERROR before declaring.
6623 (private_strerror): Use prototypes, not old-style function definition.
6624 (print_errno_message): New function.
6625 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
6626 char*-flavored one.
6627 (error_tail, error, error_at_line): Use it.
6628
6629 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
6630
6631 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
6632
6633 2002-12-08 Ulrich Drepper <drepper@redhat.com>
6634
6635 * scripts/output-format.sed: Fix bug in one of the s expressions
6636 which used / for one too many things.
6637
6638 * include/unistd.h: Declare __libc_close.
6639
6640 2002-12-07 Ulrich Drepper <drepper@redhat.com>
6641
6642 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
6643
6644 2002-12-07 Roland McGrath <roland@redhat.com>
6645
6646 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
6647 from 2002-12-06, but remove unnecessary memset call without removing
6648 necessary copy of initialization image.
6649
6650 * Makerules ($(common-objpfx)format.lds): New target.
6651 (common-generated): Add it.
6652 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
6653 * scripts/output-format.sed: New file.
6654 * Makefile (distribute): Add it.
6655
6656 2002-12-07 Ulrich Drepper <drepper@redhat.com>
6657
6658 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
6659 Reported by Art Haas <ahaas@airmail.net>.
6660
6661 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
6662
6663 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
6664
6665 2002-12-07 Jakub Jelinek <jakub@redhat.com>
6666
6667 * string/test-strncpy.c (do_random_tests): Improve test coverage.
6668
6669 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6670
6671 * test-skeleton.c (timeout_handler): Allow expected signal to be
6672 SIGALRM.
6673
6674 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
6675
6676 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
6677
6678 2002-12-07 Jakub Jelinek <jakub@redhat.com>
6679
6680 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
6681 (SYSCALL_ERROR_HANDLER): Fix a pasto.
6682 Reported by Jeff Bailey <jbailey@nisa.net>.
6683
6684 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6685
6686 * sysdeps/generic/libc-tls.c: Undo last patch.
6687
6688 * include/wctype.h: Define iswalnum with libc_hidden_proto.
6689
6690 * include/signal.h: Define raise with libc_hidden_proto.
6691
6692 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
6693 __execve instead of snprintf and execve.
6694
6695 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
6696 again a bit.
6697
6698 2002-12-06 Jakub Jelinek <jakub@redhat.com>
6699
6700 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
6701 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
6702
6703 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6704
6705 * misc/syslog.c (log_cleanup): New function.
6706 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
6707 (closelog): Likewise.
6708
6709 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
6710 * elf/dl-iteratephdr.c: Likewise.
6711 * elf/dl-lookup.c: Likewise.
6712 * elf/dl-misc.c: Likewise.
6713 * elf/dl-open.c: Likewise.
6714 * elf/dl-support.c: Likewise.
6715 * elf/rtld.c: Likewise.
6716 * sysdeps/generic/ldsodefs.h: Likewise.
6717 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
6718 * sysdeps/mach/bits/libc-lock.h: Likewise.
6719 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6720
6721 2002-12-06 Roland McGrath <roland@redhat.com>
6722
6723 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
6724
6725 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
6726 (malloc_starter, memalign_starter, free_starter): Don't define these.
6727 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
6728 Don't declare them either.
6729 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
6730 __pthread_initialize, so no need to set hooks to *_starter.
6731 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
6732 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
6733 (__libc_malloc_pthread_startup): New function.
6734 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
6735
6736 * malloc/hooks.c (memalign_starter): New function.
6737 * malloc/malloc.c: Declare it.
6738 * malloc/arena.c (save_memalign_hook): New variable.
6739 (ptmalloc_init): Set __memalign_hook to memalign_starter.
6740
6741 * elf/dl-minimal.c (free): Clear the memory.
6742 (calloc): Just call malloc, knowing all memory it returns is cleared.
6743
6744 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
6745 malloc and memset; calloc can avoid the zeroing when redundant.
6746 (_dl_tls_setup): Likewise.
6747 * elf/dl-load.c (decompose_rpath): Likewise.
6748 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
6749 call, since memory from sbrk at startup is already zero.
6750
6751 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
6752 error string for failure, null for success. Update callers.
6753 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
6754 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6755
6756 2002-12-05 Jakub Jelinek <jakub@redhat.com>
6757
6758 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
6759 args to i:iipi.
6760 (readahead): Change args to i:iii.
6761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
6762 Change args to i:iii.
6763 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
6764 args to i:iiii.
6765
6766 2002-12-05 Roland McGrath <roland@redhat.com>
6767
6768 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
6769 call all functions rather than none.
6770 Reported by Mark P. Mitchell <mark@codesourcery.com>.
6771
6772 2002-12-04 Roland McGrath <roland@redhat.com>
6773
6774 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
6775 on _nl_current_LC_* variables.
6776
6777 2002-12-05 Ulrich Drepper <drepper@redhat.com>
6778
6779 * dirent/bug-readdir1.c (main): Don't call closedir, just close
6780 the file descriptor. This is testing what the bug report was about.
6781
6782 2002-12-04 Ulrich Drepper <drepper@redhat.com>
6783
6784 * po/be.po: New file.
6785
6786 * argp/Makefile (tests): Add tst-argp1.
6787
6788 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
6789 Change type of _attribute to void*.
6790 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6791 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6792 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
6793 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6794 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6795
6796 2002-12-04 Roland McGrath <roland@redhat.com>
6797
6798 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
6799 members to the end, so a libpthread compiled with !USE_TLS will still
6800 find other members properly.
6801
6802 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
6803 operand for DEST memory. Fix dummy input operand to use SRC.
6804 Reported by Davin McCall <davmac@ozonline.com.au>.
6805
6806 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
6807 alignment when initializing the DTV entry.
6808
6809 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
6810 when TLS has not been set up, try to set it up if we can.
6811 * elf/tst-tls4.c: Revert last change.
6812 * elf/tst-tls5.c: Likewise.
6813 * elf/tst-tls6.c: Likewise.
6814 * elf/tst-tls7.c: Likewise.
6815 * elf/tst-tls8.c: Likewise.
6816 * elf/tst-tls9.c: Likewise.
6817
6818 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
6819 * sysdeps/generic/ldsodefs.h: Declare it.
6820 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
6821 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
6822 function, broken out of __libc_setup_tls.
6823 (init_static_tls): Likewise.
6824 (__libc_setup_tls): Call them.
6825 (_dl_tls_setup): New function, uses new subroutines.
6826
6827 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
6828 Clear the pointer when returning true.
6829 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
6830 first element of the slotinfo list too.
6831
6832 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
6833 [SHARED].
6834
6835 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
6836 (_dl_determine_tlsoffset): Likewise.
6837
6838 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
6839 startup_error_tsd, made global.
6840 (dl_main): Update initialization.
6841 * elf/dl-tsd.c: Likewise.
6842 * sysdeps/generic/ldsodefs.h: Declare it.
6843
6844 2002-12-03 Ulrich Drepper <drepper@redhat.com>
6845
6846 * manual/texinfo.tex: Update from latest upstream version.
6847
6848 2002-12-03 Roland McGrath <roland@redhat.com>
6849
6850 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
6851 area surplus in calculation for sbrk call.
6852
6853 * iconvdata/cp1125.c: New file.
6854 * iconvdata/Makefile (distribute): Add it.
6855 (modules): Add CP1125.
6856 (gen-8bit-gap-modules): Add cp1125.
6857 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
6858 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
6859
6860 2002-12-03 Andreas Jaeger <aj@suse.de>
6861
6862 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6863
6864 2002-12-03 Ulrich Drepper <drepper@redhat.com>
6865
6866 * sysdeps/posix/system.c (do_system): Make signal handler
6867 installation thread safe.
6868
6869 2002-12-02 Roland McGrath <roland@redhat.com>
6870
6871 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
6872 caller from EXTRA to -.
6873 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6874 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6875 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6876
6877 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
6878
6879 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
6880 bits of RM are cleared.
6881
6882 2002-12-02 Roland McGrath <roland@redhat.com>
6883
6884 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
6885 TLS setup is required.
6886 * elf/tst-tls5.c: Likewise.
6887 * elf/tst-tls6.c: Likewise.
6888 * elf/tst-tls7.c: Likewise.
6889 * elf/tst-tls8.c: Likewise.
6890 * elf/tst-tls9.c: Likewise.
6891
6892 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
6893 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
6894 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
6895 for being null before calling free_slotinfo.
6896 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
6897 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
6898
6899 2002-11-30 Bruno Haible <bruno@clisp.org>
6900
6901 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
6902 (struct __gconv_step): New field __btowc_fct.
6903 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
6904 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
6905 __BUILTIN_TRANS.
6906 (__gconv_btwoc_ascii): New declaration.
6907 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6908 (__gconv_btwoc_ascii): New function.
6909 * iconv/gconv_builtin.h: Add BtowcFct argument to all
6910 BUILTIN_TRANSFORMATION invocations.
6911 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6912 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
6913 * iconv/gconv_builtin.c (map): New field btowc_fct.
6914 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
6915 btowc_fct field.
6916 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
6917 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
6918 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
6919 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
6920 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
6921 (gconv_init): Initialize __btowc_fct field.
6922 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
6923 * iconv/loop.c: Document ONEBYTE_BODY.
6924 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
6925 Undefine ONEBYTE_BODY at the end.
6926 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
6927 * iconvdata/8bit-gap.c (NONNUL): New macro.
6928 (BODY for FROM_LOOP): Use it.
6929 (ONEBYTE_BODY): New macro.
6930 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
6931 (NONNUL): New macro.
6932 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
6933 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
6934 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
6935 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
6936 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
6937 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
6938 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
6939 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
6940 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
6941 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
6942 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
6943 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
6944 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
6945 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
6946 * iconvdata/ibm932.c: Include <stdbool.h>.
6947 (TRUE, FALSE): Remove macros.
6948 (BODY for FROM_LOOP): Remove unused variable rp1.
6949 (ONEBYTE_BODY): New macro.
6950 (BODY for TO_LOOP): Use bool.
6951 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
6952 * iconvdata/ibm943.c: Include <stdbool.h>.
6953 (TRUE, FALSE): Remove macros.
6954 (BODY for FROM_LOOP): Remove unused variable rp1.
6955 (ONEBYTE_BODY): New macro.
6956 (BODY for TO_LOOP): Use bool.
6957 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
6958 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
6959 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
6960 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
6961 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
6962 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
6963 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
6964 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
6965 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
6966 * iconvdata/gbbig5.c: Tweak comment.
6967
6968 2002-12-02 Ulrich Drepper <drepper@redhat.com>
6969
6970 * po/fi.po: Update from translation team.
6971
6972 2002-12-01 Roland McGrath <roland@redhat.com>
6973
6974 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6975 testing getdents64 return value.
6976
6977 * scripts/versions.awk: Don't pass -n flag to sort command.
6978
6979 * posix/bug-regex13.c: Include <string.h>.
6980
6981 * sysdeps/generic/libc-start.c (__libc_start_main): Do
6982 DL_SYSDEP_OSCHECK here.
6983 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
6984 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
6985
6986 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
6987 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
6988
6989 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
6990 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
6991
6992 * include/link.h: Comment typo fix.
6993
6994 2002-12-01 Roland McGrath <roland@frob.com>
6995
6996 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
6997 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
6998 _POSIX_MEMORY_PROTECTION): Likewise.
6999 (_POSIX_POLL, _POSIX_SELECT): Removed.
7000
7001 2002-11-28 Ulrich Drepper <drepper@redhat.com>
7002
7003 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
7004 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
7005
7006 2002-11-28 Jakub Jelinek <jakub@redhat.com>
7007
7008 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
7009 USE___THREAD.
7010 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
7011 "=v" constraints.
7012
7013 2002-11-28 Ulrich Drepper <drepper@redhat.com>
7014
7015 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
7016 branch prediction buffers by using unpaired call/ret.
7017
7018 2002-11-27 Ulrich Drepper <drepper@redhat.com>
7019
7020 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
7021 first parameters constraint string.
7022 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
7023
7024 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
7025
7026 * posix/regcomp.c (parse_expression): Set the bit since the back
7027 reference is used in the regular expression.
7028 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
7029 of malloc failure.
7030 (re_node_set_init_copy): Likewise.
7031 * posix/regex_internal.h (state_array_t): New structure.
7032 (re_sub_match_last_t): Likewise.
7033 (re_sub_match_top_t): Likewise.
7034 (re_match_context_t): Add new members.
7035 (re_dfa_t): Likewise.
7036 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
7037 to check the matching is really correct, and retry if failed.
7038 Move the routin pruning the impossible nodes from here, ...
7039 (prune_impossible_nodes): To this function.
7040 (check_matching): Invoke check_subexp_matching_top, and replace
7041 redundant checking with transit_state_bkref invocation.
7042 (proceed_next_node): Replace strncmp with memcmp. Reported by
7043 Paolo Bonzini <bonzini@gnu.org>.
7044 (update_cur_sifted_state): Remove search_subexp invocation.
7045 (search_subexp): Remove this function.
7046 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
7047 optimization.
7048 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
7049 Remove unused invocation of match_ctx_add_entry.
7050 (transit_state): Invoke check_subexp_matching_top.
7051 (check_subexp_matching_top): New function.
7052 (transit_state_bkref): Remove unused array.
7053 Merge transit_state_bkref_loop.
7054 (transit_state_bkref_loop): Use get_subexp instead of
7055 sift_states_backward. Use search_cur_bkref_entry for optimization.
7056 Merge this function to transit_state_bkref.
7057 (get_subexp): New function.
7058 (get_subexp_sub): Likewise.
7059 (find_subexp_node): Likewise.
7060 (check_arrival): Likewise.
7061 (check_arrival_expand_ecl): Likewise.
7062 (check_arrival_expand_ecl_sub): Likewise.
7063 (expand_bkref_cache): Likewise.
7064 (match_ctx_init): Initialize new members.
7065 (match_ctx_clean): New function.
7066 (match_ctx_free): Release new members.
7067 (match_ctx_free_subtops): New function.
7068 (match_ctx_add_entry): Fix indent.
7069 (search_cur_bkref_entry): New function.
7070 (match_ctx_add_subtop): Likewise.
7071 (match_ctx_add_sublast): Likewise.
7072
7073 2002-11-25 Ulrich Drepper <drepper@redhat.com>
7074
7075 * iconv/Makefile (tests): Remove tst-iconv4.c
7076 * iconv/tst-iconv4.c: Moved to...
7077 * iconvdata/tst-iconv4.c: ...here. New file.
7078 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
7079
7080 2002-11-25 Roland McGrath <roland@redhat.com>
7081
7082 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
7083 Grok AF_LINK if defined.
7084 From Momchil Velikov <velco@fadata.bg>.
7085
7086 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
7087 brdaddr, or dstaddr, just set those pointers to null and don't fail.
7088 Reported by Momchil Velikov <velco@fadata.bg>.
7089
7090 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
7091 is > sizeof IFR->ifa_addr, advance past the whole longer length.
7092 (__ifreq): Count up NIFS that way too.
7093 Reported by Momchil Velikov <velco@fadata.bg>.
7094
7095 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
7096
7097 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
7098 and <fpu_control.h>.
7099
7100 2002-11-24 Ulrich Drepper <drepper@redhat.com>
7101
7102 * elf/elf.h (EM_ST19): Fix typo.
7103
7104 2002-11-25 Jakub Jelinek <jakub@redhat.com>
7105
7106 * include/errno.h (__set_errno): Define as errno = val
7107 unconditionally.
7108
7109 2002-11-24 Roland McGrath <roland@redhat.com>
7110
7111 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
7112 * sysdeps/posix/writev.c: Likewise.
7113 From Momchil Velikov <velco@fadata.bg>.
7114
7115 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
7116 calling *GL(dl_error_catch_tsd) for a thread-local location.
7117 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
7118 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
7119 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
7120
7121 * libio/iofflush.c: Add libc_hidden_def.
7122 * libio/iofwrite.c: Likewise.
7123 * sysdeps/generic/sigtimedwait.c: Likewise.
7124 * sysdeps/generic/sigwaitinfo.c: Likewise.
7125 * sysdeps/posix/sigwait.c: Likewise.
7126 Reported by Momchil Velikov <velco@fadata.bg>.
7127
7128 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
7129 to match <arpa/inet.h> declaration.
7130 * inet/inet_netof.c (inet_netof): Likewise.
7131 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
7132 Reported by Momchil Velikov <velco@fadata.bg>.
7133
7134 * configure.in: Skip AUTOCONF check under --without-cvs.
7135 * configure: Regenerated.
7136
7137 * posix/Makefile (headers): Add bits/pthreadtypes.h.
7138 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
7139 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
7140
7141 2002-11-24 Andreas Schwab <schwab@suse.de>
7142
7143 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
7144 with six arguments.
7145
7146 2002-11-19 Jim Meyering <jim@meyering.net>
7147
7148 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
7149 as `static'.
7150 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
7151
7152 2002-11-23 Roland McGrath <roland@redhat.com>
7153
7154 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
7155 Just produce hex output for datum sizes.
7156
7157 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
7158 Reported by Luca Barbieri <ldb@ldb.ods.org>.
7159
7160 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
7161
7162 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
7163 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7164 and __unused3 fields.
7165 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
7166 [__WORDSIZE == 32]: Only PPC32 requires __unused1
7167 and __unused2 fields.
7168 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
7169 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
7170 __unused3, and __unused4 fields.
7171
7172 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
7173 obtain lowest address for profiling in __monstartup call.
7174
7175 2002-11-21 Roland McGrath <roland@redhat.com>
7176
7177 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
7178 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
7179
7180 * locale/localeinfo.h (struct locale_data): Revert last change.
7181
7182 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
7183 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7184
7185 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
7186 __NR_pread64 if not defined.
7187 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
7188 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7189
7190 2002-11-21 Roland McGrath <roland@frob.com>
7191
7192 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
7193 __libc_multiple_libcs here. Call __setfpucw.
7194
7195 2002-11-21 Ulrich Drepper <drepper@redhat.com>
7196
7197 * elf/Makefile (tests): Don't run test-arrayX tests for now.
7198
7199 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
7200 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
7201 CLONE_CHILD_*TID flags.
7202
7203 2002-11-20 Andreas Jaeger <aj@suse.de>
7204
7205 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
7206 We pass struct ucontext on x86-64.
7207 (GET_PC): Adjust.
7208 (GET_FRAME): Adjust.
7209 (GET_STACK): Adjust.
7210
7211 2002-11-20 Roland McGrath <roland@redhat.com>
7212
7213 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
7214 conditionalize [! DO_VERSIONING] #error.
7215
7216 * scripts/abilist.awk: Grok function descriptor symbols.
7217
7218 * intl/tst-gettext.c (main): Check return values from setlocale.
7219 Add necessary unsetenv's to make LANG=existing-locale check work.
7220
7221 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
7222 so aborted prior runs don't confuse things.
7223
7224 * locale/localeinfo.h (struct locale_data: union locale_data_value):
7225 Use uintptr_t instead of unsigned int for `word' member.
7226 (_NL_CURRENT_WORD): Cast to uint32_t.
7227
7228 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
7229 value.
7230
7231 2002-11-20 Ulrich Drepper <drepper@redhat.com>
7232
7233 * elf/tls-macros.h: Add IA-64 definitions.
7234 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
7235
7236 * iconv/Makefile (tests): Add tst-iconv4.
7237 * iconv/tst-iconv4.c: New file.
7238
7239 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
7240 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
7241 __GCONV_INCOMPLETE_INPUT.
7242 (ucs4le_internal_loop): Likewise.
7243 (ucs4le_internal_loop_unaligned): Likewise.
7244 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
7245 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
7246 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
7247
7248 * iconv/loop.c (LOOPFCT): First test for empty input then for full
7249 output buffer.
7250
7251 * inet/getnameinfo.c: Use extend_alloca where appropriate.
7252 * sysdeps/posix/getaddrinfo.c: Likewise.
7253
7254 * include/alloca.h (extend_alloca): New define. Based on stack
7255 direction it'll try to append to the previouls allocated buffer.
7256
7257 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
7258
7259 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
7260 use the same service for AF_INET and AF_INET6.
7261
7262 2002-11-19 Ulrich Drepper <drepper@redhat.com>
7263
7264 * intl/localealias.c (read_alias_file): Use only about 400 bytes
7265 of stack space instead of 16k.
7266
7267 2002-11-18 Wolfram Gloger <wg@malloc.de>
7268
7269 * malloc/arena.c
7270 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
7271 nothing if not initialized. Bug report from Marcus Brinkmann
7272 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
7273
7274 2002-11-19 Roland McGrath <roland@redhat.com>
7275
7276 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
7277 sched_setaffinity.
7278
7279 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
7280 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
7281 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
7282 * configure: Regenerated.
7283
7284 2002-11-19 Ulrich Drepper <drepper@redhat.com>
7285
7286 * include/dlfcn.h: __libc_dlopen is now a macro calling
7287 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
7288 (__libc_dlopen_mode): New prototype.
7289 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
7290 new parameter. Store new parameter in mode field of structure passed
7291 to do_dlopen.
7292 (struct do_dlopen_args): Add new field mode.
7293 (do_dlopen): Pass mode from parameter structure to _dl_open.
7294
7295 2002-11-11 Randolf Chung <tausq@debian.org>
7296
7297 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
7298 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
7299 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
7300
7301 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
7302
7303 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
7304 Set -mdisable-fpregs for this file.
7305
7306 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
7307
7308 * sysdeps/unix/sysv/linux/configure.in:
7309 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
7310 from gcc-3.0 era for backwards compatibility.
7311 * sysdeps/unix/sysv/linux/configure: Regenerate.
7312
7313 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
7314 Define mcontext_t as a sigcontext.
7315
7316 2002-11-18 Roland McGrath <roland@redhat.com>
7317
7318 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
7319 Free memory in `last_result' if it was used.
7320
7321 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
7322 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
7323 Do the parsing inline instead of copying strings and calling
7324 inet_network, and properly skip all alias names not matching the form.
7325
7326 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
7327
7328 2002-11-17 Ulrich Drepper <drepper@redhat.com>
7329
7330 * manual/pattern.texi (Wordexp Example): Fix sample code.
7331
7332 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
7333 childs stack which will be loaded into the %esi register.
7334
7335 2002-11-14 Paul Eggert <eggert@twinsun.com>
7336
7337 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
7338 overflow when skipping the question part and when unpacking aliases.
7339
7340 2002-11-15 Roland McGrath <roland@redhat.com>
7341
7342 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
7343 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
7344 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
7345
7346 2002-11-15 Jakub Jelinek <jakub@redhat.com>
7347
7348 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
7349 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
7350
7351 2002-11-15 Roland McGrath <roland@redhat.com>
7352
7353 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
7354 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
7355 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
7356 (+make-include-of-dep): New canned sequence.
7357
7358 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
7359 From Dmitry V. Levin <ldv@altlinux.org>.
7360
7361 2002-11-14 Roland McGrath <roland@redhat.com>
7362
7363 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
7364 * inet/herrno.c (__libc_h_errno): Likewise.
7365 * resolv/res_libc.c (__libc_res): Likewise.
7366 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
7367 (__res_state) [! USE___THREAD]: Don't define as weak.
7368 * csu/Versions: Revert last change.
7369 * resolv/Versions: Revert last change.
7370
7371 * Makerules ($(common-objpfx)%.make): New pattern rule.
7372 * tls.make.c: New file.
7373 * Makefile (distribute): Add it.
7374
7375 * sysdeps/generic/errno.c [! USE___THREAD]
7376 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
7377 with compat_symbol so they are not link-time visible.
7378 [! USE___THREAD] (__libc_errno): New alias for errno.
7379 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7380 Add __libc_errno here.
7381 * inet/herrno.c [USE___THREAD]: Use this conditional
7382 in place of [USE_TLS && HAVE___THREAD].
7383 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
7384 (h_errno, _h_errno): Declare these with compat_symbol so they are not
7385 link-time visible.
7386 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
7387 * resolv/res_libc.c [! USE___THREAD]
7388 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
7389 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
7390 (__libc_res): Define as alias for _res.
7391 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
7392 Add __libc_h_errno and __libc_res here.
7393
7394 2002-11-14 Jakub Jelinek <jakub@redhat.com>
7395
7396 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
7397 * resolv/Versions (h_errno, _res): Likewise.
7398
7399 2002-11-14 Roland McGrath <roland@redhat.com>
7400
7401 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
7402 (%.symlist): Likewise.
7403
7404 2002-11-13 Roland McGrath <roland@redhat.com>
7405
7406 * scripts/abilist.awk: New file.
7407 * Makefile (distribute): Add it.
7408 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
7409 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
7410 [$(subdir) = elf] (tests): Depend on libc.symlist.
7411 (generated, common-generated): Add those files.
7412
7413 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
7414 * configure: Regenerated.
7415 * config.make.in (OBJDUMP): New variable, substituted by configure.
7416
7417 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
7418 (mallochook, reallochook): Set them up.
7419 (checkhdr): Check HDR->magic2 value.
7420 (freehook): Reset HDR->magic2.
7421 (memalignhook): New static function.
7422 (old_memalign_hook): New static variable.
7423 (mcheck, reallochook): Set __memalign_hook to memalignhook.
7424
7425 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
7426 for the new TCB.
7427
7428 2002-11-13 Andreas Jaeger <aj@suse.de>
7429
7430 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
7431 attribute.
7432 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7433
7434 2002-11-11 Paul Eggert <eggert@twinsun.com>
7435
7436 * manual/crypt.texi (Cryptographic Functions): Mention that
7437 the MD5 one-way algorithm is compatible with BSD's.
7438
7439 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
7440
7441 * posix/regex_internal.c (re_string_skip_chars): Also return the last
7442 wide character.
7443 (re_string_reconstruct): Calculate the context by itself when the
7444 offset points out of the valid range.
7445 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
7446 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
7447 (IS_WIDE_WORD_CHAR): New macro.
7448 (IS_WIDE_NEWLINE): New macro.
7449
7450 2002-11-12 Andreas Jaeger <aj@suse.de>
7451
7452 * sysdeps/x86_64/strchr.S: Don't use one register for two
7453 purposes, this fixes a bug noticed by test-strchr.c.
7454
7455 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
7456 correctly.
7457
7458 2002-11-12 Roland McGrath <roland@redhat.com>
7459
7460 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
7461 (_G_IO_NO_BACKWARD_COMPAT): Define it.
7462
7463 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
7464 instead of <pt-machine.h>.
7465 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
7466 testandset.
7467 From Ian Wienand <ianw@gelato.unsw.edu.au>.
7468
7469 2002-11-10 Roland McGrath <roland@redhat.com>
7470
7471 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
7472 Call fputs instead of fwprintf (simpler to follow in debugger).
7473
7474 * crypt/md5-crypt.c: Doc fix.
7475
7476 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
7477 the beginning of generated target commands.
7478
7479 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
7480 dependencies for these in case implicit rule search skipped the
7481 nonexistent source directory.
7482 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
7483 files with $(object-suffixes) as targets too.
7484 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
7485 and a target for it using $(make-target-directory).
7486
7487 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
7488
7489 2002-11-10 Roland McGrath <roland@frob.com>
7490
7491 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
7492 * sysdeps/generic/bits/pthreadtypes.h: ... here.
7493
7494 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
7495 l_start == 0 and l_len == 1 as we do l_len == 0.
7496
7497 2002-11-10 Ulrich Drepper <drepper@redhat.com>
7498
7499 * po/da.po: Update from translation team.
7500
7501 2002-11-10 Roland McGrath <roland@redhat.com>
7502
7503 * config.make.in (includedir): New variable, substituted by configure.
7504 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
7505 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
7506
7507 2002-11-10 Andreas Jaeger <aj@suse.de>
7508
7509 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
7510 REG_OLDMASK and REG_CR2 to synch with kernel header.
7511 (NGREG): Increase.
7512
7513 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
7514 aliasing problem.
7515 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
7516 * nss/getnssent_r.c (__nss_getent_r): Likewise.
7517 (__nss_setent): Likewise.
7518 (__nss_getent_r): Likewise.
7519 * inet/getnetgrent_r.c (innetgr): Likewise.
7520 (__internal_setnetgrent_reuse): Likewise.
7521 (internal_getnetgrent_r): Likewise.
7522 * inet/ether_hton.c (ether_hostton): Likewise.
7523 * inet/ether_ntoh.c (ether_ntohost): Likewise.
7524 * sunrpc/netname.c (netname2user): Likewise.
7525 * sunrpc/publickey.c (getpublickey): Likewise.
7526 (getsecretkey): Likewise.
7527
7528 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
7529
7530 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
7531 error in range calculation.
7532
7533 2002-10-09 Jakub Jelinek <jakub@redhat.com>
7534
7535 * string/test-strspn.c (do_test): Ensure zero termination.
7536 * string/test-strpbrk.c (do_test): Likewise.
7537 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
7538 * string/test-strncpy.c (stupid_strncpy): Likewise.
7539 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
7540
7541 2002-10-08 Roland McGrath <roland@redhat.com>
7542
7543 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
7544 nonzero characters.
7545
7546 2002-09-22 H.J. Lu <hjl@gnu.org>
7547
7548 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
7549 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
7550 only if __NR_mmap2 is defined.
7551
7552 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
7553 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
7554 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
7555 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
7556
7557 2002-11-08 Jakub Jelinek <jakub@redhat.com>
7558
7559 * posix/bug-regex13.c (tests): Add new test.
7560
7561 * string/test-strchr.c (stupid_strchr): New function.
7562 (do_random_tests): Make sure the string is zero terminated.
7563 * string/test-strpbrk.c (stupid_strpbrk): New function.
7564 (do_random_tests): Make sure the string is zero terminated.
7565 * string/test-strcmp.c (stupid_strcmp): New function.
7566 (do_random_tests): Make sure the strings are zero terminated.
7567 * string/test-strspn.c (stupid_strspn): New function.
7568 (simple_strspn): Rename rej argument to acc.
7569 (do_random_tests): Make sure the string is zero terminated.
7570 * string/test-strcspn.c (stupid_strcspn): New function.
7571 * string/test-strncpy.c (stupid_strncpy): New function.
7572 * string/test-stpncpy.c (stupid_stpncpy): New function.
7573 * string/test-strncmp.c (stupid_strncmp): New function.
7574 (do_random_tests): Make sure the strings are zero terminated.
7575 * string/test-string.h (impl_t): Change test into long.
7576 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
7577
7578 2002-11-08 Roland McGrath <roland@redhat.com>
7579
7580 * sysdeps/ia64/elf/configure.in: Add TLS check.
7581 From Ian Wienand <ianw@cse.unsw.edu.au>.
7582 * sysdeps/ia64/elf/configure: Regenerated.
7583
7584 2002-11-07 Roland McGrath <roland@redhat.com>
7585
7586 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
7587 place of _IO_new_do_write.
7588 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
7589 #undef before versioned_symbol use.
7590
7591 2002-11-07 Richard Henderson <rth@redhat.com>
7592
7593 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
7594 * configure: Regenerated.
7595 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
7596 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
7597 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
7598 _dl_fini via gp-relative relocations.
7599 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
7600
7601 * elf/tls-macros.h: Add alpha versions.
7602 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
7603 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
7604 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
7605 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
7606 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7607 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
7608 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
7609 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7610 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
7611 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7612 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
7613 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7614 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
7615 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
7616 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
7617 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
7618 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
7619 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
7620
7621 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
7622 Kill argument registers across the inline syscall.
7623
7624 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
7625
7626 * linuxthreads/sysdeps/alpha/tls.h: New file.
7627 * sysdeps/alpha/dl-tls.h: New file.
7628
7629 2002-10-29 David Mosberger <davidm@hpl.hp.com>
7630
7631 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
7632 (gmon_initializer): New function.
7633 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
7634 __gmon_start__ here. Call it from gmon_initializer() instead.
7635
7636 2002-03-12 H.J. Lu <hjl@gnu.org>
7637
7638 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
7639 tst-array2, and tst-array3.
7640 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
7641 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
7642 ($(objpfx)tst-array1.out): New target.
7643 ($(objpfx)tst-array2): Likewise.
7644 ($(objpfx)tst-array2.out): Likewise.
7645 ($(objpfx)tst-array3.out): Likewise.
7646 * elf/tst-array1.c: New file.
7647 * elf/tst-array1.exp: Likewise.
7648 * elf/tst-array2.c: Likewise.
7649 * elf/tst-array2dep.c: Likewise.
7650 * elf/tst-array2.exp: Likewise.
7651 * elf/tst-array3.c: Likewise.
7652
7653 2002-10-28 David Mosberger <davidm@hpl.hp.com>
7654
7655 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
7656 Don't add L->l_addr to array entry values.
7657
7658 2002-11-07 Jakub Jelinek <jakub@redhat.com>
7659
7660 * string/test-string.h: New file.
7661 * string/test-strlen.c: New file.
7662 * string/test-string.h: New file.
7663 * string/test-strcmp.c: New file.
7664 * string/test-strchr.c: New file.
7665 * string/test-strrchr.c: New file.
7666 * string/test-strcpy.c: New file.
7667 * string/test-stpcpy.c: New file.
7668 * string/test-strncpy.c: New file.
7669 * string/test-stpncpy.c: New file.
7670 * string/test-strpbrk.c: New file.
7671 * string/test-strcspn.c: New file.
7672 * string/test-strspn.c: New file.
7673 * string/test-strcat.c: New file.
7674 * string/test-strncmp.c: New file.
7675 * string/test-memchr.c: New file.
7676 * string/test-memcmp.c: New file.
7677 * string/test-memset.c: New file.
7678 * string/test-memcpy.c: New file.
7679 * string/test-mempcpy.c: New file.
7680 * string/test-memmove.c: New file.
7681 * string/Makefile (strop-tests): New variable.
7682 (tests): Add strop-tests.
7683 (distribute): Add test-string.h.
7684
7685 2002-11-06 Ulrich Drepper <drepper@redhat.com>
7686
7687 * posix/regcomp.c: Use tabs instead of spaces.
7688 * posix/regexec.c: Likewise.
7689 * posix/regex_internal.h: Likewise.
7690
7691 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
7692
7693 2002-11-06 Jakub Jelinek <jakub@redhat.com>
7694
7695 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
7696 here.
7697 (regcomp): Don't set can_be_null here.
7698 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
7699 (re_compile_internal): Clear can_be_null, set regs_allocated.
7700
7701 * posix/regcomp.c (re_set_fastmap): New function.
7702 (re_compile_fastmap_iter): Use it. Remove redundant type ==
7703 COMPLEX_BRACKET check.
7704 * posix/regexec.c (re_search_internal): Optimize searching with
7705 fastmap. Call re_string_reconstruct even if match_first is
7706 smaller than raw_mbs_idx.
7707
7708 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
7709
7710 * posix/regcomp (free_dfa_content): Use free_state.
7711 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
7712 pointers in case that realloc failed.
7713 (re_node_set_merge): Likewise.
7714 (register_state): Likewise.
7715 (create_newstate_common): Invoke memory release functions in case of
7716 error conditions.
7717 (create_ci_newstate): Likewise.
7718 (create_cd_newstate): Likewise.
7719 (free_state): New function.
7720 * posix/regexec.c (re_search_internal): Invoke memory release
7721 functions in case of error conditions.
7722 (sift_states_backward): Likewise.
7723 (merge_state_array): Likewise.
7724 (add_epsilon_src_nodes): Likewise.
7725 (sub_epsilon_src_nodes): Likewise.
7726 (search_subexp): Likewise.
7727 (sift_states_bkref): Likewise.
7728 (transit_state_sb): Likewise.
7729 (transit_state_mb): Likewise.
7730 (transit_state_bkref_loop): Likewise.
7731 (group_nodes_into_DFAstates): Likewise.
7732 (push_fail_stack): Don't edit pointers in case that realloc failed.
7733 (extend_buffers): Likewise.
7734 (match_ctx_add_entry): Likewise.
7735
7736 2002-11-06 Roland McGrath <roland@redhat.com>
7737
7738 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
7739 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
7740
7741 * configure.in: Add checks on as and ld for binutils 2.13 or later.
7742 * configure: Regenerated.
7743
7744 2002-11-06 Ulrich Drepper <drepper@redhat.com>
7745
7746 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
7747 If re_compile_internal failed free fastmap buffer.
7748 (free_dfa_content): Broken out of regfree function. Frees all dfa
7749 related data.
7750 (regfree): Add free_dfa_content.
7751 (re_compile_internal): If any of the called functions fails free
7752 all dfa related memory.
7753
7754 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7755
7756 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
7757 warnings from the kernel headers.
7758
7759 2002-11-05 Roland McGrath <roland@redhat.com>
7760
7761 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
7762 From Johannes Stezenbach <js@convergence.de>.
7763
7764 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
7765 #errlist-compat magic comment to give 123 as size.
7766 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
7767 (libc: GLIBC_2.2): ... here.
7768 (libc: GLIBC_2.3): Likewise.
7769
7770 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7771
7772 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
7773 which happens at the beginning so that we can unload modules in
7774 __libc_freeres.
7775
7776 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7777
7778 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
7779 under [__USE_MISC || _ASM].
7780
7781 * elf/elf.h: Remove the obsolete SH TLS relocations.
7782
7783 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7784
7785 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
7786
7787 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7788
7789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
7790 __NR_pread64 and __NR_pwrite64.
7791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7792 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
7793 and __NR_pwrite64.
7794 Revert change to use INLINE_SYSCALL.
7795 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7796 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7797 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7798 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
7799 INLINE_SYSCALL.
7800 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7801
7802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
7803 Update clobber list and add a comment about the syscall ABI.
7804
7805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
7806 s_pwrite64, s_ftruncate, s_truncate): Re-add.
7807
7808 2002-11-05 Jakub Jelinek <jakub@redhat.com>
7809
7810 * iconv/gconv_dl.c (free_mem): Clear loaded.
7811 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
7812 cleanup if any.
7813
7814 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7815
7816 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
7817
7818 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
7819 as old code without locking. _IO_seekoff calls this function after
7820 locking the stream.
7821 * libio/ioseekpos.c: Likewise for _IO_seekpos.
7822 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
7823 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
7824 prototypes.
7825 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
7826 of _IO_seekoff_internal.
7827 (_IO_rewind): Likewise.
7828 * libio/ioftell.c: Likewise.
7829 * libio/ftello.c: Likewise.
7830 * libio/ftello64.c: Likewise.
7831 * libio/iofgetpos.c: Likewise.
7832 * libio/iofgetpos64.c: Likewise.
7833 * libio/oldiofgetpos.c: Likewise.
7834 * libio/oldiofgetpos64.c: Likewise.
7835 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
7836 _IO_seekpos_internal.
7837 * libio/iofsetpos64.c: Likewise.
7838 * libio/oldiofsetpos.c: Likewise.
7839 * libio/oldiofsetpos64.c: Likewise.
7840
7841 2002-11-04 Roland McGrath <roland@redhat.com>
7842
7843 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
7844 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
7845 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
7846 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
7847 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7848 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7849 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7850 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
7851 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
7852 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
7854 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
7855 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
7856 Remove these, no longer used.
7857
7858 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7859
7860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
7861 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
7862 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
7863 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
7864 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
7865 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
7866 syscall stubs.
7867
7868 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
7869 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7870 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
7871 and __NR_pread.
7872 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7873 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
7874 and __NR_pwrite.
7875 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7876
7877 2002-11-03 Roland McGrath <roland@redhat.com>
7878
7879 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
7880 `_dl_tls_static_used'.
7881 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
7882 (__libc_setup_tls): Initialize it. Let the initial value of
7883 _dl_tls_static_size indicate some surplus space in the computed value.
7884 * elf/dl-open.c (_dl_tls_static_size): New variable.
7885 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
7886 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
7887 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
7888 (CHECK_STATIC_TLS): Use it.
7889 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
7890 closed objects occupied a trailing contiguous chunk of static TLS area.
7891
7892 2002-10-18 Bruno Haible <bruno@clisp.org>
7893
7894 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
7895
7896 2002-11-04 Ulrich Drepper <drepper@redhat.com>
7897
7898 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
7899 _wide_data->_IO_read_end if adjustment can be made in the current
7900 buffer.
7901
7902 * sysdeps/unix/sysv/linux/fexecve.c: New file.
7903
7904 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
7905 wide oriented streams are used.
7906
7907 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
7908 service hasn't been used [PR libc/4744].
7909
7910 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
7911 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
7912
7913 * manual/examples/dir.c: Don't include <stddef.h>.
7914 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
7915 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
7916
7917 2002-11-02 H.J. Lu <hjl@gnu.org>
7918
7919 * stdio-common/reg-printf.c: Include <stddef.h>.
7920
7921 2002-11-03 Ulrich Drepper <drepper@redhat.com>
7922
7923 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
7924
7925 * po/ca.po: Update from translation team.
7926 * po/es.po: Likewise.
7927
7928 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
7929 is defined write out memory map.
7930 * sysdeps/unix/sysv/linux/segfault.c: New file.
7931
7932 2002-11-02 Roland McGrath <roland@redhat.com>
7933
7934 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
7935 pointers that can alias.
7936 Reported by Daniel Jacobowitz <drow@mvista.com>.
7937
7938 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
7939
7940 2002-11-02 Roland McGrath <roland@redhat.com>
7941
7942 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
7943 description to be clearer and to say that *RESULT is set to ENTRY.
7944
7945 2002-10-30 Jakub Jelinek <jakub@redhat.com>
7946
7947 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
7948 dests_ch arrays together. Alloca or malloc dest_states,
7949 dest_states_word and dest_states_nl arrays together. Free memory on
7950 error exit.
7951
7952 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
7953
7954 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
7955 and current_saltbits.
7956
7957 2002-11-02 Roland McGrath <roland@redhat.com>
7958
7959 * stdio-common/reg-printf.c: Include <stdlib.h>.
7960
7961 2002-11-02 H.J. Lu <hjl@gnu.org>
7962
7963 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
7964 caller to EXTRA instead of execve.
7965
7966 2002-11-01 Roland McGrath <roland@redhat.com>
7967
7968 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
7969 in place of [!(USE_TLS && HAVE___THREAD)].
7970 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
7971
7972 2002-10-31 Roger Sayle <roger@eyesopen.com>
7973
7974 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
7975 New macros.
7976 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7977
7978 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
7979 without defining FP_ROUNDMODE.
7980
7981 2002-10-29 Jakub Jelinek <jakub@redhat.com>
7982
7983 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
7984 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
7985 declare_symbol.
7986 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7987 (OLD_SIGLIST_SIZE): Define.
7988 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7989 (OLD_SIGLIST_SIZE): Define.
7990 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
7991
7992 2002-11-01 Jakub Jelinek <jakub@redhat.com>
7993
7994 * sysdeps/ia64/strncpy.S: Fix recovery code.
7995
7996 2002-10-30 Jakub Jelinek <jakub@redhat.com>
7997
7998 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
7999 New macros.
8000 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
8001 text_set_element.
8002 * elf/dl-libc.c (free_mem): Likewise.
8003 * iconv/gconv_conf.c (free_mem): Likewise.
8004 * iconv/gconv_db.c (free_mem): Likewise.
8005 * iconv/gconv_dl.c (free_mem): Likewise.
8006 * iconv/gconv_cache.c (free_mem): Likewise.
8007 * intl/finddomain.c (free_mem): Likewise.
8008 * intl/dcigettext.c (free_mem): Likewise.
8009 * locale/setlocale.c (free_mem): Likewise.
8010 * misc/fstab.c (fstab_free): Likewise.
8011 * nss/nsswitch.c (free_mem): Likewise.
8012 * posix/regcomp.c (free_mem): Likewise.
8013 * resolv/gai_misc.c (free_res): Likewise.
8014 * stdlib/fmtmsg.c (free_mem): Likewise.
8015 * sunrpc/clnt_perr.c (free_mem): Likewise.
8016 * sysdeps/generic/setenv.c (free_mem): Likewise.
8017 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
8018 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
8019 * time/tzset.c (free_mem): Likewise.
8020 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
8021 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
8022 * malloc/set-freeres.c (__libc_freeres): Likewise.
8023
8024 * login/getutent.c: Include stdlib.h instead of stddef.h.
8025 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8026 (__getutent): Allocate buffer the first time it is run.
8027 * login/getutid.c: Include stdlib.h instead of stddef.h.
8028 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8029 (__getutid): Allocate buffer the first time it is run.
8030 * login/getutline.c: Include stdlib.h instead of stddef.h.
8031 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
8032 (__getutline): Allocate buffer the first time it is run.
8033 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
8034 (mtrace): Allocate malloc_trace_buffer.
8035 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
8036 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
8037 * string/strerror.c: Include libintl.h and errno.h.
8038 (buf): New variable.
8039 (strerror): Only allocate buffer if actually needed (unknown error).
8040 * time/tzfile.c (transitions): Add libc_freeres_ptr.
8041 (freeres): Remove.
8042
8043 2002-10-25 Jakub Jelinek <jakub@redhat.com>
8044
8045 * include/libc-symbols.h (libc_freeres_ptr): New macro.
8046 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
8047 symbol_set_define.
8048 (__libc_freeres): Free all pointers in that section.
8049 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
8050 commands when creating .lds script.
8051 (LDSEDCMD-c.so): New variable.
8052 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
8053 (rcmd_af): Use strdup to allocate ahostbuf.
8054 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
8055 (rexec_af): Use strdup to allocate ahostbuf.
8056 * stdio-common/reg-printf.c (printf_funcs): Remove.
8057 (__printf_arginfo_table): Change into printf_arginfo_function **.
8058 Add libc_freeres_ptr.
8059 (__register_printf_function): Allocate __printf_arginfo_table
8060 and __printf_function_table the first time it is called.
8061 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
8062 printf_arginfo_function **.
8063 (parse_one_spec): Add __builtin_expect.
8064 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
8065 (free_mem): Remove.
8066 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
8067 (free_mem): Remove.
8068 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
8069 (string_space, map): Add libc_freeres_ptr.
8070 (free_mem): Remove.
8071 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
8072 (free_mem): Remove.
8073 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
8074 (free_mem): Remove.
8075 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
8076 (buffer): Add libc_freeres_ptr.
8077 (free_mem): Remove for _LIBC.
8078 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
8079 (free_mem): Remove.
8080 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
8081 (free_mem): Remove.
8082 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
8083 (free_mem): Remove.
8084 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
8085 (free_mem): Remove.
8086 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
8087 (free_mem): Remove.
8088 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
8089 (free_mem): Remove.
8090 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
8091 libc_freeres_ptr.
8092 (free_mem): Remove.
8093 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
8094 libc_freeres_ptr.
8095 (free_mem): Remove.
8096
8097 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8098
8099 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
8100 instead of duplicating the whole function in libc.
8101
8102 2002-10-31 Roland McGrath <roland@redhat.com>
8103
8104 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
8105 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
8106
8107 2002-10-30 Jakub Jelinek <jakub@redhat.com>
8108
8109 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
8110 32bit-predefine when creating .new32 list and -U for each
8111 32bit-predefine when creating .new64 list.
8112 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
8113
8114 2002-10-29 Andreas Schwab <schwab@suse.de>
8115
8116 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
8117 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
8118
8119 2002-10-25 Roland McGrath <roland@redhat.com>
8120
8121 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
8122 * sysdeps/unix/sysv/linux/configure: Regenerated.
8123
8124 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
8125 _dl_starting_up decl.
8126
8127 2002-10-20 H.J. Lu <hjl@gnu.org>
8128
8129 * sysdeps/unix/sysv/linux/configure.in: Don't check
8130 /lib/modules/`uname -r`/build/include for kernel headers if
8131 cross compiling.
8132 * sysdeps/unix/sysv/linux/configure: Regenerated.
8133
8134 2002-10-25 Roland McGrath <roland@redhat.com>
8135
8136 * math/math.h (M_LOG2El): Correct the value.
8137 From Stephen L Moshier <steve@moshier.net>.
8138
8139 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
8140 conditional from __libc_multiple_libcs access. Remove kludge for weak
8141 symbol access with old compilers we no longer support.
8142 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8143 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
8144
8145 2002-10-25 Roland McGrath <roland@redhat.com>
8146
8147 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
8148 implement SV_RESETHAND by translating it to SA_RESETHAND.
8149
8150 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
8151
8152 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
8153 type on ELF64 platforms.
8154
8155 2002-10-24 Ulrich Drepper <drepper@redhat.com>
8156
8157 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
8158
8159 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
8160
8161 2002-10-24 Jakub Jelinek <jakub@redhat.com>
8162
8163 * elf/dl-misc.c: Include <sysdep.h>.
8164 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
8165
8166 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
8167 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8168 (INLINE_SYSCALL): Use that.
8169 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
8170 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8171 (INLINE_SYSCALL): Use that.
8172 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
8173 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
8174 (INLINE_SYSCALL): Use that.
8175 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
8176 dl-sysdep.h.
8177 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8178 (__INTERNAL_SYSCALL_STRING): Define.
8179 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8180 dl-sysdep.h.
8181 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
8182 (__INTERNAL_SYSCALL_STRING): Define.
8183 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
8184 __SYSCALL_STRING to inline_syscall*.
8185 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
8186 New macros.
8187 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
8188 inline_syscall4, inline_syscall5, inline_syscall6): Add string
8189 argument.
8190
8191 2002-10-24 Roland McGrath <roland@redhat.com>
8192
8193 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
8194 * sysdeps/unix/sysv/linux/init-first.c: Not here.
8195 * sysdeps/powerpc/elf/libc-start.c: Or here.
8196 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
8197 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
8198 * sysdeps/unix/sysv/aix/init-first.c: Or here.
8199 * sysdeps/generic/libc-start.c: Or here.
8200 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
8201 access with [! SHARED].
8202 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
8203
8204 * libio/bug-wfflush.c: New file.
8205 * libio/Makefile (tests): Add bug-wfflush.
8206
8207 2002-10-23 Roland McGrath <roland@redhat.com>
8208
8209 * stdio-common/tst-fphex.c: New file.
8210 * stdio-common/Makefile (tests): Add tst-fphex.
8211 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
8212 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
8213 chars always before the value digits.
8214 Reported by James Antill <james.antill@redhat.com>.
8215
8216 2002-10-24 Jakub Jelinek <jakub@redhat.com>
8217
8218 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
8219 (free_mem): New function.
8220 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
8221 if not cross compiling.
8222 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
8223 (bug-regex14-ENV): Set.
8224 (bug-regex14-mem): New target.
8225 * posix/bug-regex14.c: New file.
8226
8227 2002-10-23 Roland McGrath <roland@redhat.com>
8228
8229 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
8230 target, so we don't touch it when the link fails.
8231
8232 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
8233 Check for the result overflowing off_t and fail with EOVERFLOW.
8234 * libio/ioftell.c (_IO_ftell): Likewise.
8235 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8236
8237 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
8238 use a temporary timeval on the stack for gettimeofday and copy it.
8239 * login/logout.c (logout): Likewise.
8240 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8241
8242 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
8243 Use __SWORD_TYPE instead of int for member types.
8244 (struct statfs64): Likewise.
8245 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
8246 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
8247 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
8248 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
8249 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
8250
8251 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
8252 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
8253 (ST_NODIRATIME): Restore fixed value of 2048.
8254 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
8255 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
8256
8257 Rearranged <bits/types.h> definitions to reduce duplication.
8258 * sysdeps/generic/bits/types.h: Rewritten, using macros from
8259 <bits/wordsize.h> and new header <bits/typesizes.h>.
8260 * posix/Makefile (headers): Add bits/typesizes.h here.
8261 * sysdeps/generic/bits/typesizes.h: New file.
8262 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
8263 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
8264 * sysdeps/mach/hurd/bits/typesizes.h: New file.
8265 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
8266 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
8267 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
8268 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
8269 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
8270 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
8271 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
8272 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
8273 <bits/pthreadtypes.h> here, not in <bits/types.h>.
8274 * signal/signal.h: Likewise.
8275
8276 * streams/stropts.h: Include <bits/xtitypes.h>.
8277 * streams/Makefile (headers): Add bits/xtitypes.h here.
8278 * sysdeps/generic/bits/xtitypes.h: New file.
8279 * sysdeps/s390/bits/xtitypes.h: New file.
8280 * sysdeps/ia64/bits/xtitypes.h: New file.
8281 * sysdeps/x86_64/bits/xtitypes.h: New file.
8282
8283 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
8284 * sysdeps/generic/bits/ipctypes.h: New file.
8285 * sysdeps/mips/bits/ipctypes.h: New file.
8286 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
8287 * sysdeps/gnu/bits/msq.h: Likewise.
8288 * sysvipc/sys/ipc.h: Likewise.
8289
8290 2002-10-22 Ulrich Drepper <drepper@redhat.com>
8291
8292 * elf/dl-load.c (struct filebuf): For buf element to have the
8293 alignment of ElfXX_Ehdr since this is what will be stored in it.
8294
8295 2002-10-22 Jakub Jelinek <jakub@redhat.com>
8296
8297 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
8298 into pointer to locrec_offset.
8299 (add_locale_to_archive): Adjust callers. Free normalized_name right
8300 before returning, not immediately after add_locale, pass it to
8301 add_alias if not NULL instead of name. Rename second normalized_name
8302 occurence to nnormalized_codeset_name.
8303
8304 * locale/programs/locarchive.c (enlarge_archive): Make sure
8305 string_size is always a multiple of 4.
8306 Reported by Andreas Schwab <schwab@suse.de>.
8307
8308 2002-10-21 Andreas Schwab <schwab@suse.de>
8309
8310 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
8311 caller to EXTRA instead of execve, since the latter has a
8312 higher-priority implementation in linuxthreads.
8313
8314 2002-10-21 Roland McGrath <roland@redhat.com>
8315
8316 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
8317 slotinfo list's len member to the proper size, not just 1.
8318 Initialize static_map.l_tls_initimage.
8319
8320 * elf/dl-open.c (dl_open_worker): Fix loop searching for
8321 dtv_slotinfo_list element containing new modules' l_tls_modid.
8322
8323 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
8324 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
8325 * elf/Makefile (tests): Add tst-tls9.
8326 (tests-static): Add tst-tls9-static.
8327 (tst-tls9-static-ENV): New variable.
8328 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
8329
8330 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
8331 modids used by partially loaded modules being closed can't be known.
8332
8333 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
8334
8335 * posix/Makefile: Add a test case for the bug reported by Aharon
8336 Robbins <arnold@skeeve.com>.
8337 * posix/bug-regex13.c: New file.
8338 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
8339
8340 2002-10-21 Ulrich Drepper <drepper@redhat.com>
8341
8342 * csu/gmon-start.c: Pretty printing.
8343
8344 2002-10-19 Art Haas <ahaas@neosoft.com>
8345
8346 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
8347 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
8348 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
8349 * configure: Regenerated.
8350
8351 2002-10-19 Roland McGrath <roland@redhat.com>
8352
8353 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
8354 and then set $subdirs directly, because the new Autoconf breaks
8355 compatibility in every way imaginable and insists on whining
8356 about usage that worked since the dawn of time.
8357 * configure: Regenerated.
8358
8359 * configure: Regenerated (using Autoconf 2.54).
8360 * sysdeps/alpha/elf/configure: Likewise.
8361 * sysdeps/generic/configure: Likewise.
8362 * sysdeps/i386/elf/configure: Likewise.
8363 * sysdeps/ia64/elf/configure: Likewise.
8364 * sysdeps/mach/hurd/configure: Likewise.
8365 * sysdeps/mach/configure: Likewise.
8366 * sysdeps/unix/configure: Likewise.
8367 * sysdeps/unix/common/configure: Likewise.
8368 * sysdeps/unix/sysv/aix/configure: Likewise.
8369 * sysdeps/unix/sysv/linux/configure: Likewise.
8370 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
8371 * sysdeps/x86_64/elf/configure: Likewise.
8372
8373 * config.make.in: Nix completely-soft nonsense.
8374 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
8375 of machine directories instead of fpu subdirectory.
8376 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
8377 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
8378 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
8379 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
8380 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
8381 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
8382 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
8383 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
8384 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
8385 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
8386 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
8387 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
8388 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
8389 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
8390 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
8391 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
8392 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
8393 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
8394 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
8395 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
8396 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
8397 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
8398 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
8399 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
8400 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
8401 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
8402 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
8403 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
8404 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
8405 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
8406 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
8407 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
8408 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
8409 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
8410 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
8411 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
8412 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
8413 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
8414 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
8415 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
8416
8417 2002-10-19 Bruno Haible <bruno@clisp.org>
8418
8419 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
8420
8421 2002-10-18 Roland McGrath <roland@redhat.com>
8422
8423 * io/Makefile (routines): Add lchmod.
8424 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
8425 * sysdeps/generic/lchmod.c: New file.
8426 * sysdeps/mach/hurd/lchmod.c: New file.
8427 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
8428
8429 2002-10-18 Art Haas <ahaas@neosoft.com>
8430
8431 * configure.in: Remove remaining AC_FD_CC macros, and replace
8432 AC_FD_MSG with AS_MESSAGE_FD.
8433
8434 2002-10-18 Roland McGrath <roland@redhat.com>
8435
8436 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
8437 typos: VALUE -> FINALADDR.
8438
8439 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
8440 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
8441 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
8442 (inline_syscall6): Move these macros ...
8443 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
8444
8445 * configure.in (libc_link_dests, libc_link_sources): Remove these
8446 variables and the AC_LINK_FILES call.
8447
8448 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
8449 change to put new symbols here instead of in GLIBC_2.2.
8450 * sysdeps/powerpc/Subdirs: Move this file ...
8451 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
8452
8453 2002-10-07 Roland McGrath <roland@redhat.com>
8454
8455 * sysdeps/generic/bits/time.h: Replaced with contents of the
8456 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
8457 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
8458 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
8459 macros is ok even for architectures that don't now implement them.
8460 * sysdeps/mach/hurd/bits/time.h: File removed.
8461 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
8462 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
8463 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
8464 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
8465 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
8466
8467 2002-10-18 Jeff Bailey <jbailey@gnu.org>
8468
8469 * configure.in: Replace obsolete AC_OUTPUT syntax with
8470 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
8471
8472 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
8473 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
8474
8475 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
8476 * sysdeps/alpha/elf/configure.in: Likewise.
8477 * sysdeps/i386/elf/configure.in: Likewise.
8478 * sysdeps/mach/hurd/configure.in: Likewise.
8479 * sysdeps/x86_64/elf/configure.in: Likewise.
8480
8481 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
8482
8483 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
8484 * sysdeps/generic/configure.in: Likewise.
8485 * sysdeps/i386/elf/configure.in: Likewise.
8486 * sysdeps/ia64/elf/configure.in: Likewise.
8487 * sysdeps/mach/configure.in: Likewise.
8488 * sysdeps/mach/hurd/configure.in: Likewise.
8489 * sysdeps/unix/configure.in: Likewise.
8490 * sysdeps/unix/common/configure.in: Likewise.
8491 * sysdeps/unix/sysv/aix/configure.in: Likewise.
8492 * sysdeps/unix/sysv/linux/configure.in: Likewise.
8493 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
8494 * sysdeps/x86_64/elf/configure.in: Likewise.
8495
8496 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
8497 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
8498 that it's obvious when extra autoconf machinery is being dragged in.
8499
8500 2002-10-18 Roland McGrath <roland@redhat.com>
8501
8502 * configure.in: Remove bogus echo included in
8503 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
8504 * configure: Regenerated.
8505
8506 2002-10-18 Jakub Jelinek <jakub@redhat.com>
8507
8508 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
8509 (statfs_filesize_max): New function.
8510 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
8511 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
8512 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
8513 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
8514 statfs_filesize_max.
8515 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8516 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
8517 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
8518
8519 2002-10-17 Roland McGrath <roland@redhat.com>
8520
8521 * configure.in (MIG): Just AC_SUBST it here.
8522 * configure: Regenerated.
8523 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
8524 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
8525 * sysdeps/mach/configure: Regenerated.
8526
8527 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
8528 and AC_PROVIDE([_AS_CR_PREPARE]).
8529
8530 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
8531 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
8532
8533 * elf/dl-support.c: Move _dl_tls_* variables to ...
8534 * sysdeps/generic/libc-tls.c: ... here.
8535
8536 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
8537 allow IDX to be one past the current last slotinfo entry.
8538 (_dl_close): Pass IMAP->l_init_called for that parameter.
8539
8540 2002-10-07 Andreas Schwab <schwab@suse.de>
8541
8542 * aclocal.m4: Fix for autoconf 2.53.
8543 * configure.in: Likewise. Require autoconf 2.53.
8544
8545 2002-10-08 Richard Henderson <rth@redhat.com>
8546
8547 * soft-fp/op-4.h: Handle carry correctly in
8548 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
8549 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
8550 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
8551
8552 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
8553
8554 * configure.in: Compute completely-soft.
8555 * config.make.in: Make completely-soft available to sub-makes.
8556 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
8557 gcc-double-routines. Add sim-full.c. Add fenv_const and
8558 fe_nomask to libm-support.
8559 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
8560 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
8561 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
8562 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
8563 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
8564 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
8565 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
8566 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
8567 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
8568 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
8569 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
8570 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
8571 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
8572 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
8573 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
8574 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
8575 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
8576 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
8577 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
8578 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
8579 __sim_round_mode.
8580 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
8581 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
8582 FP_HANDLE_EXCEPTIONS.
8583 Define FP_ROUNDMODE.
8584 Redefine FP_* macros to correspond to the FE_* bit positions.
8585 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
8586 Define externs for __sim_exceptions, __sim_disabled_exceptions,
8587 __sim_round_mode, __simulate_exceptions.
8588 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
8589 * sysdeps/powerpc/bits/fenv.h: ...to here.
8590
8591 2002-10-06 Jakub Jelinek <jakub@redhat.com>
8592
8593 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8594 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
8595 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
8596 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
8597 __builtin_expect.
8598
8599 2002-10-15 Jakub Jelinek <jakub@redhat.com>
8600
8601 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
8602 __libc_res_nsend): New prototypes.
8603 * resolv/res_query.c (QUERYSIZE): Define.
8604 (__libc_res_nquery): Renamed from res_nquery. Added answerp
8605 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
8606 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
8607 res_nsend, pass answerp.
8608 (res_nquery): Changed into wrapper around __libc_res_nquery.
8609 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
8610 argument. Call __libc_res_nquerydomain and __libc_res_nquery
8611 instead of the non-__libc_ variants, pass them answerp.
8612 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
8613 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
8614 Added answerp argument. Call __libc_res_nquery instead of
8615 res_nquery, pass answerp.
8616 (res_nquerydomain): Changed into wrapper around
8617 __libc_res_nquerydomain.
8618 * resolv/res_send.c: Include sys/ioctl.h.
8619 (MAXPACKET): Define.
8620 (send_vc): Change arguments. Reallocate answer buffer if it is
8621 too small.
8622 (send_dg): Likewise.
8623 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
8624 Reallocate answer buffer if it is too small and hooks are in use.
8625 Adjust calls to send_vc and send_dg.
8626 (res_nsend): Changed into wrapper around __libc_res_nsend.
8627 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
8628 just 1K answer buffer on the stack, use __libc_res_nsearch instead
8629 of res_nsearch.
8630 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
8631 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
8632 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
8633 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
8634 (gethostbyaddr): Similarly with __libc_res_nquery.
8635 * resolv/Versions (libresolv): Export __libc_res_nquery and
8636 __libc_res_nsearch at GLIBC_PRIVATE.
8637
8638 2002-10-17 Roland McGrath <roland@redhat.com>
8639
8640 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
8641 * configure: Regenerated.
8642
8643 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
8644 before performing the reloc, not after.
8645 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8646
8647 2002-10-17 Ulrich Drepper <drepper@redhat.com>
8648
8649 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
8650 * locale/programs/linereader.c (lr_open): Likewise.
8651 * locale/programs/charmap-dir.c (charmap_open): Likewise.
8652 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8653
8654 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8655
8656 * posix/bug-regex11.c: Add a test case for the bug reported by
8657 Paolo Bonzini <bonzini@gnu.org>.
8658 * posix/regexec.c (sift_states_bkref): Use correct destination of
8659 the back reference.
8660
8661 2002-10-17 Roland McGrath <roland@redhat.com>
8662
8663 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
8664 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
8665 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
8666 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
8667 Call it after performing TPOFF relocs.
8668 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8669 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8670 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
8671
8672 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
8673 when closing a partially-initialized object.
8674
8675 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
8676 instead of _dl_fatal_printf when we see PT_TLS.
8677
8678 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
8679 instead of $(libof-$<).
8680
8681 2002-10-16 Roland McGrath <roland@redhat.com>
8682
8683 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
8684 instead of += to append, to be sure $(lib) gets expanded at defn time.
8685 (libof-$(cpp-src)): New variable, define this instead.
8686 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
8687 (lib): Don't use override.
8688 (CPPFLAGS-$(lib)): New variable, put -D's here.
8689 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
8690 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
8691 LIB found by $(libof-*) for basename, target, or source.
8692 * Makerules (CPPFLAGS-nonlib): New variable.
8693 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
8694 * locale/Makefile (lib): Likewise.
8695 * sunrpc/Makefile (lib): Likewise.
8696
8697 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
8698 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
8699 * sysdeps/unix/sysv/linux/pathconf.h: New file.
8700 (statfs_link_max): New function, guts from fpathconf.c.
8701 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
8702 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8703 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
8704 to use the linux/pathconf.c code by #include rather than duplication.
8705 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
8706
8707 2002-10-16 Jakub Jelinek <jakub@redhat.com>
8708
8709 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8710 Use __libc_errno only for libc itself.
8711
8712 2002-10-16 Andreas Jaeger <aj@suse.de>
8713
8714 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
8715
8716 2002-10-16 Ulrich Drepper <drepper@redhat.com>
8717
8718 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8719 Use __libc_errno only for libc itself.
8720
8721 2002-10-15 Roland McGrath <roland@redhat.com>
8722 Jakub Jelinek <jakub@redhat.com>
8723
8724 * sysdeps/unix/sysv/linux/Makefile
8725 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
8726 sparc/Makefile to produce a bi-arch file as needed.
8727 That's now parameterized by the variable $(64bit-predefine).
8728 Use LC_ALL=C for `comm' commands in that rule.
8729 No longer conditional on [$(no_syscall_list_h)].
8730 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
8731 (64bit-predefine): New variable.
8732 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
8733 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
8734 * sysdeps/unix/sysv/linux/powerpc/Makefile
8735 (64bit-predefine): New variable.
8736
8737 2002-10-15 Roland McGrath <roland@redhat.com>
8738
8739 * sysdeps/unix/sysv/linux/Makefile
8740 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
8741
8742 * login/utmp-private.h: Declare __libc_utmp_lock.
8743 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
8744 and call __libc_utmp_jump_table functions directly, instead of using
8745 __setutent et al.
8746
8747 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
8748 * sysdeps/unix/sysv/linux/configure: Regenerated.
8749
8750 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
8751 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8752 Use int32_t for ll_time.
8753 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8754 Use int32_t instead of long int for ut_session.
8755 Use an anonymous struct with 32-bit fields for ut_tv.
8756 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
8757 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
8758 here as in utmp.h for `struct utmp'.
8759 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
8760 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
8761 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
8762 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
8763 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
8764 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
8765
8766 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
8767 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
8768 All the following files were identical or equivalent to it.
8769 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
8770 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
8771 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
8772 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
8773 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
8774 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
8775 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
8776 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
8777 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
8778 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
8779
8780 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
8781 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
8782 Other than the previously incorrect sign of msg_iovlen, this is a
8783 no-op on 32-bit platforms. On 64-bit platforms it makes this header
8784 match their layouts as well, so the following are now identical to it.
8785 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
8786 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
8787 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
8788 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
8789 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
8790
8791 2002-10-15 Ulrich Drepper <drepper@redhat.com>
8792
8793 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8794 Define for 2.4+ kernels.
8795
8796 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
8797 are known to have the vfork syscall. Don't confuse the CPUs
8798 branch prediction unit by jumping to the return address.
8799
8800 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
8801 support for reiserfs and xfs.
8802
8803 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
8804 XFS link count.
8805 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
8806 and XFS_LINK_MAX.
8807 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
8808
8809 2002-10-16 Jakub Jelinek <jakub@redhat.com>
8810
8811 * include/libc-symbols.h (attribute_tls_model_ie): Define.
8812 * include/errno.h (errno): Define to __libc_errno in libc.so.
8813 Add attribute_tls_model_ie.
8814 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
8815 Add attribute_tls_model_ie.
8816 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
8817 attribute_tls_model_ie.
8818 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
8819 (h_errno): Define.
8820 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
8821 (_res): Define.
8822 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
8823 attribute_tls_model_ie.
8824 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
8825 __thread.
8826 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
8827 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
8828 __libc_errno in USE___THREAD case.
8829 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8830 Likewise.
8831 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
8832 __attribute__((tls_model (""))).
8833 * configure: Rebuilt.
8834 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
8835
8836 2002-10-15 Ulrich Drepper <drepper@redhat.com>
8837
8838 * timezone/asia: Update from tzdata2002d.
8839 * timezone/australasia: Likewise.
8840 * timezone/iso3166.tab: Likewise.
8841 * timezone/southamerica: Likewise.
8842 * timezone/zone-tab: Likewise.
8843
8844 2002-10-15 Roland McGrath <roland@redhat.com>
8845
8846 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
8847 Adjust TCB pointer before calling free, so we get the whole block.
8848
8849 2002-10-14 Roland McGrath <roland@redhat.com>
8850
8851 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
8852 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
8853 extern using attribute_hidden instead of static, avoids warning.
8854
8855 2002-10-09 Jakub Jelinek <jakub@redhat.com>
8856
8857 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
8858 * sysdeps/unix/sysv/linux/configure: Rebuilt.
8859
8860 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8861
8862 * po/sv.po: Update from translation team.
8863
8864 2002-10-12 H.J. Lu <hjl@gnu.org>
8865
8866 * sunrpc/thrsvc.c (PROCQUIT): New.
8867 (struct rpc_arg): New.
8868 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
8869 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
8870 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
8871 (main): Modified for struct rpc_arg *.
8872
8873 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8874
8875 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
8876
8877 2002-10-14 Jakub Jelinek <jakub@redhat.com>
8878
8879 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
8880 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
8881 in ld.so even if __thread is supported.
8882
8883 2002-10-13 Jakub Jelinek <jakub@redhat.com>
8884
8885 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
8886 Add hack to prevent the compiler from clobbering the signal context.
8887 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
8888 Likewise.
8889 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
8890 Likewise.
8891
8892 2002-10-14 Andreas Jaeger <aj@suse.de>
8893
8894 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
8895 Guido Guenther <agx@sigxcpu.org>.
8896
8897 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8898
8899 * po/sk.po: Update from translation team.
8900
8901 2002-09-26 Roland McGrath <roland@redhat.com>
8902
8903 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
8904 dynamic string tag.
8905 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
8906 DL_DST_LIB based on $(slibdir).
8907
8908 2002-10-13 Roland McGrath <roland@frob.com>
8909
8910 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
8911
8912 * sysdeps/mach/hurd/getresuid.c: New file.
8913 * sysdeps/mach/hurd/getresgid.c: New file.
8914 * sysdeps/mach/hurd/setresuid.c: New file.
8915 * sysdeps/mach/hurd/setresgid.c: New file.
8916
8917 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
8918 setresgid): Declare them.
8919 * NEWS: Mention it.
8920 * include/unistd.h
8921 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
8922 add libc_hidden_proto.
8923 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
8924 getresuid, getresgid, setresuid, setresgid here.
8925 * Versions.def (libc): Define GLIBC_2.3.2 set.
8926 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
8927 Add libc_hidden_def.
8928 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
8929 * sysdeps/generic/setresgid.c: New file.
8930 * sysdeps/generic/setresuid.c: New file.
8931 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8932 (sysdep_routines): Don't add getresuid and getresgid here.
8933 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
8934 (sysdep_routines): Don't add setresuid and setresgid here.
8935 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8936 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8937 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8938 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8939 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8940 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8941 * posix/Makefile (routines): Add them all here instead.
8942 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
8943 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
8944 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
8945 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
8946 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
8947 [! __NR_setresuid]: Include generic file.
8948 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
8949 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
8950 [! __NR_setresuid]: Include generic file.
8951 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
8952 Caller is - now, not EXTRA.
8953 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
8954 (setresuid, setresgid, getresuid, getresgid): Likewise.
8955 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
8956 Add these calls here.
8957 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
8958 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8959 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8960 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8961 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8964 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
8965 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8966
8967 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8968 (sysdep_routines): Add setfsuid and setfsgid here.
8969 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
8970 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
8971 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8972 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8973 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8974 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8975 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8976 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8977
8978 * hurd/errno.c: Renamed to ...
8979 * hurd/errno-loc.c: ... this.
8980 * hurd/Makefile (routines): errno -> errno-loc
8981
8982 2002-10-13 Ulrich Drepper <drepper@redhat.com>
8983
8984 * po/de.po: Update from translation team.
8985
8986 * MakeTAGS: Add -E flag to xgettext runs.
8987
8988 2002-10-12 Ulrich Drepper <drepper@redhat.com>
8989
8990 * po/fr.po: Update from translation team.
8991
8992 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
8993 Optimize a bit for use in glibc.
8994
8995 2002-10-12 Roland McGrath <roland@redhat.com>
8996
8997 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
8998 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
8999
9000 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9001
9002 * po/sv.po: Update from translation team.
9003
9004 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
9005
9006 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
9007 OP_CONTEXT_NODE.
9008 (regfree): Likewise.
9009 (create_initial_state): Likewise.
9010 (analyze): Remove the substitutions which became useless.
9011 (calc_first): Likewise.
9012 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
9013 epsilon destination.
9014 (duplicate_node_closure): New function.
9015 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
9016 (calc_inveclosure): Likewise.
9017 (calc_eclosure): Likewise.
9018 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
9019 direct invocation of duplicate_node.
9020 (parse): Don't use comma operator in the return to avoid compiler
9021 warning.
9022 (parse_reg_exp): Likewise.
9023 (parse_branch): Likewise.
9024 (parse_expression): Likewise.
9025 (parse_sub_exp): Likewise.
9026 (parse_dup_op): Likewise.
9027 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
9028 which became useless.
9029 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
9030 (create_cd_newstate): Likewise.
9031 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
9032 (re_token_t): Likewise.
9033 (re_dfa_t): Likewise.
9034 (re_node_set_remove): New macro.
9035 * posix/regexec.c (check_matching): Remove the handling
9036 OP_CONTEXT_NODE.
9037 (check_halt_node_context): Likewise.
9038 (proceed_next_node): Likewise.
9039 (pop_fail_stack): Fix the memory leak.
9040 (set_regs): Likewise.
9041 (free_fail_stack_return): New function.
9042 (sift_states_backward): Fix the memory leak. Remove the handling
9043 OP_CONTEXT_NODE.
9044 (update_cur_sifted_state): Append some if clause to avoid redundant
9045 call.
9046 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
9047 back reference.
9048 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
9049 (check_subexp_limits): Likewise.
9050 (search_subexp): Likewise.
9051 (sift_states_bkref): Likewise.
9052 (transit_state_mb): Likewise.
9053 (transit_state_bkref_loop): Likewise.
9054 (transit_state_bkref_loop): Likewise.
9055 (group_nodes_into_DFAstates): Likewise.
9056 (check_node_accept): Likewise.
9057 (sift_ctx_init): Add initializing.
9058
9059 2002-10-12 Ulrich Drepper <drepper@redhat.com>
9060
9061 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
9062 __builtin_expect.
9063
9064 2002-10-11 Ulrich Drepper <drepper@redhat.com>
9065
9066 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
9067 duplicated variable c.
9068
9069 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
9070 if possible.
9071
9072 * sysdeps/unix/sysv/linux/i386/sysdep.h
9073 (INTERNAL_SYSCALL_ERROR_P): New define.
9074 (INTERNAL_SYSCALL_ERRNO): Likewise.
9075
9076 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
9077 Add hack to prevent the compiler from clobbering the signal context.
9078
9079 2002-10-11 Roland McGrath <roland@redhat.com>
9080
9081 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9082 Fix typos.
9083
9084 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
9085 * sysdeps/sh/dl-lookupcfg.h: File removed.
9086 * sysdeps/i386/dl-lookupcfg.h: File removed.
9087
9088 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
9089 missing labels and ; from last change.
9090
9091 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
9092 number literals, so they are doubles instead of ints.
9093
9094 2002-10-09 Roland McGrath <roland@redhat.com>
9095
9096 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
9097 changed from [USE_TLS && HAVE___THREAD].
9098
9099 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
9100 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
9101 * sysdeps/x86_64/dl-machine.h
9102 (elf_machine_type_class, elf_machine_rela): Likewise.
9103 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
9104 Likewise.
9105
9106 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
9107 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
9108 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
9109
9110 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
9111 instead of ___tls_get_addr.
9112 (___tls_get_addr_internal): Add attribute_hidden to decl.
9113
9114 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
9115 _dl_error_catch_tsd.
9116 * elf/rtld.c (startup_error_tsd): New function.
9117 (dl_main): Point _dl_error_catch_tsd at that.
9118 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
9119 use new function pointer instead.
9120 * elf/dl-tsd.c: New file.
9121 * elf/Makefile (routines): Add it.
9122
9123 2002-10-07 Roland McGrath <roland@redhat.com>
9124
9125 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
9126 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
9127 take _dl_load_lock around calling __writev.
9128
9129 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
9130 (INLINE_SYSCALL): Use that.
9131
9132 * sysdeps/generic/dl-sysdep.h: New file.
9133 * sysdeps/mach/hurd/dl-sysdep.h: New file.
9134 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
9135 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
9136 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
9137 access it directly.
9138 * elf/dl-minimal.c (__errno_location): Removed.
9139 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9140 Use GOTOFF access for errno.
9141 * sysdeps/unix/sysv/linux/i386/sysdep.h
9142 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9143
9144 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
9145 Use PC-relative access for errno.
9146 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9147 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
9148
9149 * include/tls.h: New file.
9150 (USE___THREAD): New macro.
9151 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
9152 libc or libpthread.
9153 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
9154 changed from [USE_TLS && HAVE___THREAD].
9155 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9156 * sysdeps/unix/i386/sysdep.S: Likewise.
9157 * sysdeps/unix/x86_64/sysdep.S: Likewise.
9158 * include/errno.h: Likewise.
9159 * include/netdb.h: Likewise.
9160 * include/resolv.h: Likewise.
9161
9162 * sysdeps/generic/errno.c: New file.
9163 * csu/Makefile (aux): New variable, list errno.
9164 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
9165 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
9166 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
9167 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
9168 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
9169 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
9170 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
9171 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
9172 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
9173 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
9174 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
9175 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
9176 * sysdeps/unix/alpha/sysdep.S: Likewise.
9177 * sysdeps/generic/start.c: Likewise.
9178 * sysdeps/unix/start.c: Likewise.
9179 * sysdeps/unix/arm/start.c: Likewise.
9180 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
9181 * sysdeps/unix/sparc/start.c: Likewise.
9182 * sysdeps/unix/sysv/irix4/start.c: Likewise.
9183 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
9184
9185 * manual/search.texi (Tree Search Function, Hash Search Function):
9186 Mention search.h clearly.
9187
9188 2002-10-05 Roland McGrath <roland@redhat.com>
9189
9190 * elf/dl-fxstat64.c: File removed.
9191 * elf/dl-xstat64.c: File removed.
9192 * elf/Makefile (rtld-routines): Remove them.
9193 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
9194 Instead, use strong_alias instead of versioned_symbol in the
9195 !SHLIB_COMPAT case.
9196 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
9197 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9198
9199 * include/shlib-compat.h
9200 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
9201 [! NOT_IN_libc] (IS_IN_libc): Define it.
9202 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
9203 * elf/Makefile (CPPFLAGS-.os): Likewise.
9204
9205 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
9206 Return the status instead of calling exit.
9207
9208 * Makeconfig (CFLAGS): Prepend -std=gnu99.
9209 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
9210 Remove superfluous rm command, whose @ plus make bugs hid
9211 all these commands from the make output.
9212
9213 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
9214 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
9215 Use that file's contents instead of literal echo's for the prologue.
9216 * include/features.h: Include <gnu/stubs.h> unconditionally.
9217 * include/gnu/stubs.h: New file.
9218
9219 2002-09-30 Roland McGrath <roland@redhat.com>
9220
9221 * elf/rtld-Rules: New file.
9222 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
9223 $(objpfx)rtld-libc.a): New targets.
9224 (generated): Add them.
9225 (reloc-link): Remove -o $@ from the variable.
9226 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
9227 (distribute): Add rtld-Rules.
9228 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
9229 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
9230 (common-mostlyclean, common-clean): Clean up rtld-* files.
9231 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
9232
9233 2003-05-20 Jakub Jelinek <jakub@redhat.com>
9234
9235 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
9236 If temp != NULL, copy dynamic entries which need relocation to temp
9237 array before relocating.
9238 (DL_RO_DYN_TEMP_CNT): Define.
9239 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
9240 * elf/rtld.c (_dl_start): Likewise.
9241 (dl_main): Likewise. Add dyn_temp static variable.
9242
9243 2002-10-11 Roland McGrath <roland@redhat.com>
9244
9245 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
9246 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
9247
9248 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
9249 proper set of no-op insn prefixes.
9250
9251 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
9252
9253 2002-10-11 Ulrich Drepper <drepper@redhat.com>
9254
9255 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
9256 __pthread_kill_other_threads_np.
9257
9258 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
9259
9260 2002-10-08 Roland McGrath <roland@redhat.com>
9261
9262 * locale/newlocale.c (__newlocale): If setting all categories to "C",
9263 just return &_nl_C_locobj instead of copying it.
9264 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
9265 * locale/duplocale.c (__duplocale): Likewise.
9266
9267 2002-10-07 Roland McGrath <roland@frob.com>
9268
9269 * config.h.in (HAVE_I386_SET_GDT): New #undef.
9270 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
9271 * sysdeps/mach/configure: Regenerated.
9272
9273 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9274
9275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
9276 Add all necessary register outputs for syscall-clobbered registers.
9277
9278 2002-10-02 David Mosberger <davidm@hpl.hp.com>
9279
9280 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
9281 Itanium 2 (and Itanium).
9282 Fix unwind directives and make it fit in 80 columns.
9283 * sysdeps/ia64/memset.S: Likewise.
9284 * sysdeps/ia64/memcpy.S: Likewise.
9285 Move jump table to .rodata section.
9286
9287 2002-10-03 Roland McGrath <roland@frob.com>
9288
9289 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
9290 clobbers to asm.
9291
9292 2002-10-10 Andreas Jaeger <aj@suse.de>
9293
9294 * sysdeps/x86_64/_mcount.S: Restore correct registers.
9295
9296 2002-10-10 Ulrich Drepper <drepper@redhat.com>
9297
9298 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
9299
9300 2002-10-09 Ulrich Drepper <drepper@redhat.com>
9301
9302 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
9303 _dl_allocate_tls_init. Add rtld_hidden_proto.
9304 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
9305 rtld_hidden_def.
9306 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
9307
9308 * version.h (VERSION): Bump to 2.3.1.
9309
9310 * Make-dist: Add back one of the tar invocations removed before.
9311
9312 * stdlib/Makefile (distribute): Add allocalim.h.
9313
9314 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
9315 (__libc_tsd_address): Use correct variable name.
9316 Patch by Stefan Jones <stefan.jones@multigig.com>.
9317
9318 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
9319 Reported by edwardsg@sgi.com [PR libc/4678].
9320
9321 * Versions.def (libc): Add GLIBC_2.3.1.
9322 (libpthread): Add GLIBC_2.3.1.
9323
9324 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
9325 and __sigtimedwait.
9326 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
9327 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
9328 libc_hidden_def.
9329 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
9330 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
9331
9332 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
9333 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
9334 and make old name an alias.
9335 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
9336 and make old name an alias.
9337 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
9338 __libc_msgsnd.
9339
9340 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
9341 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
9342 __libc_writev.
9343 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
9344 old name an alias.
9345 * sysdeps/posix/readv.c: Likewise
9346 * sysdeps/unix/sysv/aix/readv.c: Likewise.
9347 * sysdeps/unix/sysv/linux/readv.c: Likewise.
9348 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
9349 old name an alias.
9350 * sysdeps/posix/writev.c: Likewise
9351 * sysdeps/unix/sysv/aix/writev.c: Likewise.
9352 * sysdeps/unix/sysv/linux/writev.c: Likewise.
9353
9354 * include/sys/wait.h: Declare __waitid.
9355 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
9356 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
9357 name an alias.
9358 * sysdeps/posix/waitid.c: Likewise.
9359 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
9360
9361 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
9362
9363 2002-10-07 Jakub Jelinek <jakub@redhat.com>
9364
9365 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
9366 prototypes.
9367 (__MAX_ALLOCA_CUTOFF): Define.
9368 Include allocalim.h.
9369 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
9370 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
9371 host_buffer depending on __libc_use_alloca.
9372 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
9373 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
9374 net_buffer depending on __libc_use_alloca.
9375 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
9376 buf depending on __libc_use_alloca.
9377 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
9378 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
9379 instead of hardcoded constants.
9380 Pass proper size argument to alloca and compute end for wide char
9381 version.
9382 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
9383 instead of hardcoded constants.
9384 * string/strcoll.c (strcoll): Likewise.
9385 * string/strxfrm.c (strxfrm): Likewise.
9386 * sysdeps/posix/readv.c (__readv): Likewise.
9387 * sysdeps/posix/writev.c (__writev): Likewise.
9388 * sysdeps/generic/allocalim.h: New file.
9389
9390 2002-10-08 Roland McGrath <roland@redhat.com>
9391
9392 * configure.in (aux_missing warning): Change "too old" to
9393 "incompatible versions", since for autoconf it's "too new" right now.
9394 * configure: Regenerated.
9395
9396 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
9397 one found doesn't work on our configure.in.
9398 * configure: Regenerated.
9399 * config.make.in (AUTOCONF): New substituted variable.
9400 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
9401 (autoconf-it): ... here, use that instead of defining conditionally.
9402 Use $(AUTOCONF) instead of literal autoconf.
9403 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
9404 with this condition.
9405 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
9406
9407 2002-10-08 Ulrich Drepper <drepper@redhat.com>
9408
9409 * Make-dist (dist): Cleanup a bit. We are not interested in the
9410 14 char filename limit anymore. Remove intermediate files and
9411 symlinks.
9412
9413 2002-10-05 Ulrich Drepper <drepper@redhat.com>
9414
9415 * po/sk.po: Update from translation team.
9416 * po/tr.po: Likewise.
9417 * po/gl.po: Likewise.
9418
9419 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9420
9421 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
9422
9423 2002-10-03 Ulrich Drepper <drepper@redhat.com>
9424
9425 * version.h (RELEASE): Change to stable.
9426
9427 2002-10-03 Jakub Jelinek <jakub@redhat.com>
9428
9429 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
9430 __syscall_exit_group): New prototypes.
9431
9432 2002-10-03 Ulrich Drepper <drepper@redhat.com>
9433
9434 * glibc 2.3 released.
9435
9436
9437 See ChangeLog.13 for earlier changes.
This page took 0.476169 seconds and 5 git commands to generate.