1 2003-01-05 Jakub Jelinek <jakub@redhat.com>
3 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
5 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
8 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
11 order of parameters passed to kill.
13 2003-01-04 Andreas Schwab <schwab@suse.de>
15 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
17 2002-01-03 Paul Eggert <eggert@twinsun.com>
19 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
20 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
21 when compiling Bison 1.875's `bitset bset = obstack_alloc
22 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
24 2003-01-04 Ulrich Drepper <drepper@redhat.com>
26 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
28 Correct reference counter in case SIGQUIT handler installation failed.
30 2003-01-03 Ulrich Drepper <drepper@redhat.com>
32 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
33 Define using _Pragma(weak ...).
35 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
37 * resolv/res_libc.c: Provide declaration for __res_init_weak and
40 2003-01-03 Art Haas <ahaas@airmail.net>
42 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
43 initializer syntax to C99.
44 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
45 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
46 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
47 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
48 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
49 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
50 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
51 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
52 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
53 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
54 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
55 * localedata/tests-mbwc/dat_mblen.c: Likewise.
56 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
57 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
58 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
59 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
60 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
61 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
62 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
63 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
64 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
65 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
66 * localedata/tests-mbwc/dat_towlower.c: Likewise.
67 * localedata/tests-mbwc/dat_towupper.c: Likewise.
68 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
69 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
70 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
71 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
72 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
73 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
74 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
75 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
76 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
77 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
78 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
79 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
80 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
81 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
82 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
83 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
84 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
85 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
86 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
87 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
88 * localedata/tests-mbwc/dat_wctob.c: Likewise.
89 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
90 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
91 * localedata/tests-mbwc/dat_wctype.c: Likewise.
92 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
94 2003-01-03 Richard Henderson <rth@redhat.com>
96 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
97 (inline_syscall_r0_constraint): New.
98 (inline_syscall[0-6]): Use them.
100 2003-01-03 Jakub Jelinek <jakub@redhat.com>
102 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
103 Add rtld_hidden_proto.
104 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
105 (_dl_allocate_tls): Likewise. Remove INTDEF.
107 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
109 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
110 Morita <toshiyasu.morita@hsa.hitachi.com>.
111 * sysdeps/sh/memcpy.S: Likewise.
113 2003-01-02 Ulrich Drepper <drepper@redhat.com>
115 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
116 any, but unify the test.
118 2003-01-02 Jakub Jelinek <jakub@redhat.com>
120 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
121 sigaction): Protect weak_alias and libc_hidden_weak with
122 #ifndef LIBC_SIGACTION.
123 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
124 sigaction): Likewise.
125 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
126 sigaction): Likewise.
127 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
128 sigaction): Likewise.
129 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
130 sigaction): Likewise.
131 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
132 sigaction): Likewise.
133 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
134 sigaction): Likewise.
135 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
136 sigaction): Likewise. Remove SIGCANCEL handling here.
137 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
140 2003-01-02 Art Haas <ahaas@airmail.net>
142 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
144 2003-01-02 Ulrich Drepper <drepper@redhat.com>
146 * posix/getconf.c: Update copyright year.
147 * nss/getent.c: Likewise.
148 * nscd/nscd_nischeck.c: Likewise.
149 * iconv/iconvconfig.c: Likewise.
150 * iconv/iconv_prog.c: Likewise.
151 * elf/ldconfig.c: Likewise.
152 * catgets/gencat.c: Likewise.
153 * csu/version.c: Likewise.
154 * elf/ldd.bash.in: Likewise.
155 * elf/sprof.c (print_version): Likewise.
156 * locale/programs/locale.c: Likewise.
157 * locale/programs/localedef.c: Likewise.
158 * nscd/nscd.c (print_version): Likewise.
159 * debug/xtrace.sh: Likewise.
160 * malloc/memusage.sh: Likewise.
161 * malloc/mtrace.pl: Likewise.
163 2003-01-01 Jakub Jelinek <jakub@redhat.com>
165 * io/sys/stat.h: Include time.h with __need_timespec even if
166 __USE_MISC is defined but __USE_XOPEN is not.
168 2003-01-01 Andreas Jaeger <aj@suse.de>
170 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
171 type to avoid strict aliasing problem.
172 (_nss_dns_gethostbyname2_r): Likewise.
173 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
174 (_nss_dns_getnetbyname_r): Likewise.
175 * resolv/gethnamaddr.c (_gethtent): Likewise.
176 (gethostbyname2): Likewise.
178 2002-12-31 Ulrich Drepper <drepper@redhat.com>
180 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
181 to avoid using the exported symbols. Define aliases with the
182 original names separately.
184 * include/time.h: Add libc_hidden_proto for __strftime_l.
185 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
186 * time/strftime.c: Always use libc_hidden_def if _LIBC.
188 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
189 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
191 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
194 * csu/Makefile (routines): Add dso_handle.
195 * csu/dso_handle.c: New file.
197 2002-12-31 Roland McGrath <roland@redhat.com>
199 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
200 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
201 (S-CPPFLAGS): Add -DASSEMBLER here instead.
202 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
204 2002-12-31 Ulrich Drepper <drepper@redhat.com>
206 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
209 2002-12-31 Andreas Jaeger <aj@suse.de>
211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
213 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
214 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
215 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
217 * sysdeps/unix/sysv/linux/kernel_stat.h
218 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
220 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
221 __unused[1-3] since they're needed by some platforms. Handle
222 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
224 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
225 for structs stat and stat64.
226 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
227 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
228 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
229 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
231 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
233 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
234 nsec resolution changes.
235 (xstat64_conv): Likewise.
236 (xstat32_conv): Likewise.
238 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
241 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
242 structs stat and stat64.
244 * time/time.h (__timespec_defined): Define for __USE_MISC.
246 2002-12-31 Ulrich Drepper <drepper@redhat.com>
248 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
249 and __libc_current_sigrtmax.
251 2002-12-31 Jakub Jelinek <jakub@redhat.com>
253 * include/errno.h (__errno_location): Add prototype.
254 Use libc_hidden_proto unconditionally.
255 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
257 * include/resolv.h (__res_state): Likewise.
259 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
260 * include/sys/socket.h (accept): Add libc_hidden_proto.
261 * include/errno.h (__errno_location): Likewise.
262 * include/netdb.h (__h_errno_location): Likewise.
263 * include/resolv.h (__res_state): Likewise.
264 * include/unistd.h (__lseek): Likewise.
265 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
266 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
267 * sysdeps/generic/res-state.c (__res_state): Likewise.
268 * sysdeps/generic/accept.c (accept): Likewise.
269 * sysdeps/generic/lseek.c (__lseek): Likewise.
270 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
271 __libc_current_sigrtmax): Likewise.
272 * sysdeps/mach/hurd/accept.c (accept): Likewise.
273 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
274 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
275 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
276 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
277 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
278 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
279 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
280 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
282 (__GI_accept): New alias to accept.
283 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
284 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
286 (__GI_accept): New alias to accept.
287 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
289 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
291 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
293 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
294 strong_alias (name, __GI_name).
295 * sysdeps/arm/bsd-_setjmp.S : Likewise.
296 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
297 * sysdeps/i386/bsd-_setjmp.S : Likewise.
298 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
299 * sysdeps/mips/bsd-_setjmp.S : Likewise.
300 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
301 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
302 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
303 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
304 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
305 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
306 * sysdeps/sh/bsd-_setjmp.S : Likewise.
307 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
308 * sysdeps/unix/arm/fork.S : Likewise.
309 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
310 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
311 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
312 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
313 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
314 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
315 * sysdeps/unix/i386/fork.S : Likewise.
316 * sysdeps/unix/mips/fork.S : Likewise.
317 * sysdeps/unix/sparc/fork.S : Likewise.
318 * sysdeps/unix/sparc/vfork.S : Likewise.
319 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
320 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
321 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
322 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
323 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
324 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
325 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
326 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
327 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
328 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
329 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
330 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
331 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
332 * sysdeps/unix/fork.S : Likewise.
333 * sysdeps/vax/bsd-_setjmp.S : Likewise.
334 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
336 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
339 2002-12-31 Ulrich Drepper <drepper@redhat.com>
341 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
342 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
343 * sysdeps/mach/hurd/fork.c: Likewise.
344 * sysdeps/unix/sysv/aix/fork.c: Likewise.
345 * sysdeps/unix/fork.S: Add __GI___fork alias.
346 * sysdeps/unix/arm/fork.S: Likewise.
347 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
348 * sysdeps/unix/i386/fork.S: Likewise.
349 * sysdeps/unix/mips/fork.S: Likewise.
350 * sysdeps/unix/sparc/fork.S: Likewise.
351 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
352 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
353 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
354 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
355 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
356 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
357 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
358 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
359 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
360 * sysdeps/unix/sparc/vfork.S: Likewise.
361 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
362 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
363 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
364 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
365 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
366 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
367 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
368 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
370 * include/time.h: Add libc_hidden_proto for __nanosleep.
371 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
372 * sysdeps/mach/nanosleep.c: Likewise.
373 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
374 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
376 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
377 _IO_list_unlock, and _IO_list_resetlock.
378 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
379 _IO_list_unlock, and _IO_list_resetlock.
381 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
382 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
383 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
384 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
386 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
387 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
388 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
389 __GI___longjmp alias.
391 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
392 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
393 * sysdeps/arm/bsd-_setjmp.S: Likewise.
394 * sysdeps/generic/bsd-_setjmp.c: Likewise.
395 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
396 * sysdeps/i386/bsd-_setjmp.S: Likewise.
397 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
398 * sysdeps/mips/bsd-_setjmp.S: Likewise.
399 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
400 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
401 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
402 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
403 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
404 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
405 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
406 * sysdeps/sh/bsd-_setjmp.S: Likewise.
407 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
408 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
409 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
410 * sysdeps/vax/bsd-_setjmp.S: Likewise.
411 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
413 2002-12-30 Ulrich Drepper <drepper@redhat.com>
415 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
417 2002-12-30 Roland McGrath <roland@redhat.com>
419 * Rules (generated): Target removed.
420 * mach/Makefile (generated): Define it here instead.
422 * math/Makefile (generated): Add m_*l and m_*f variants too.
424 2002-12-30 Ulrich Drepper <drepper@redhat.com>
426 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
427 the to-be-deleted objects right away instead of later separately.
428 The latter fails because the scope data structures of the DSO
429 might already be gone.
431 * elf/Makefile: Add rules to build and run reldep8 test.
432 * elf/reldep8.c: New file.
433 * elf/reldep8mod1.c: New file.
434 * elf/reldep8mod2.c: New file.
435 * elf/reldep8mod3.c: New file.
436 Contributed by Jakub Jelinek.
438 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
440 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
441 checking of return value ENOSYS from getdents64.
443 2002-12-28 Andreas Schwab <schwab@suse.de>
445 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
446 ($(common-objpfx)s-%.d): Generalized from
447 $(common-objpfx)s-proto.d rule.
448 (common-generated): Add s-proto-cancel.d.
449 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
450 cancellable syscalls.
451 * sysdeps/unix/s-proto-cancel.S: New file.
453 2002-12-29 Roland McGrath <roland@redhat.com>
455 * resolv/res_libc.c: Move _res defn magic after res_init defn
456 so _res macro is in effect for that code.
458 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
459 pattern for prepending $(..) so it doesn't affect $(foo).
461 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
463 2002-12-29 Jakub Jelinek <jakub@redhat.com>
465 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
468 2002-12-28 Ulrich Drepper <drepper@redhat.com>
470 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
472 2002-12-28 Andreas Jaeger <aj@suse.de>
474 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
476 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
478 2002-12-27 Jakub Jelinek <jakub@redhat.com>
480 * inet/herrno.c (__h_errno_location): Remove.
481 * inet/Makefile (routines): Add herrno-loc.
482 * resolv/res_libc.c (__res_state): Remove.
483 * resolv/Makefile (routines): Add res-state.
484 * sysdeps/generic/herrno-loc.c: New file.
485 * sysdeps/generic/res-state.c: New file.
487 2002-12-27 Jakub Jelinek <jakub@redhat.com>
489 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
490 Only define if USE_DL_SYSINFO is defined.
492 2002-12-22 Jakub Jelinek <jakub@redhat.com>
494 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
495 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
496 Define. Patch by Richard Henderson and Jes Sorensen.
497 (PSEUDO): Remove unnecessary ;;.
498 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
499 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
500 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
501 if not initializing thread pointer.
502 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
503 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
504 make it weak also if NONTLS_INIT_TP.
505 * sysdeps/unix/common/pause.c: Handle cancellation.
506 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
507 (LOADSYSCALL): Remove.
508 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
509 (SYSCALL_ERROR_HANDLER): Use it.
510 (PSEUDO): Don't jump around error handler.
511 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
512 jump around error handler.
513 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
514 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
515 to __syscall_error_handler on failure.
516 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
517 (LOADSYSCALL): Remove.
518 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
519 (SYSCALL_ERROR_HANDLER): Use it.
520 (PSEUDO): Don't jump around error handler.
521 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
522 jump around error handler.
523 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
524 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
525 to __syscall_error_handler on failure.
527 2002-12-27 Roland McGrath <roland@redhat.com>
529 * scripts/gen-as-const.awk: New file.
530 * Makefile (distribute): Add it.
531 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
532 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
534 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
536 2002-12-27 Andreas Schwab <schwab@suse.de>
538 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
540 2002-12-27 Jakub Jelinek <jakub@redhat.com>
542 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
545 2002-12-27 Andreas Schwab <schwab@suse.de>
547 * Makerules ($(common-objpfx)%.make): Filter through
548 $(sed-remove-objpfx).
550 2002-12-23 Roland McGrath <roland@redhat.com>
552 * scripts/abilist.awk: Produce a more compact format, divided into
553 stanzas for each version set, the set name listed only once.
554 * scripts/extract-abilist.awk: New file.
555 * scripts/merge-abilist.awk: New file.
556 * Makerules (check-abi-%, update-abi-%): New pattern rules.
557 (update-abi, check-abi): New targets.
558 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
560 2002-12-19 Roland McGrath <roland@redhat.com>
562 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
564 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
567 2002-12-21 Andreas Schwab <schwab@suse.de>
569 * elf/check-textrel.c (handle_file): Swap p_type.
571 2002-12-21 Andreas Schwab <schwab@suse.de>
573 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
574 (INLINE_SYSCALL): Use it.
575 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
576 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
578 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
579 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
581 2002-12-20 Art Haas <ahaas@airmail.net>
583 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
586 2002-12-21 Philip Blundell <philb@gnu.org>
588 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
589 top as seventh arg to __libc_start_main.
590 Reported by paulnash@wildseed.com.
592 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
594 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
595 compatibility cruft when new enough kernel is assumed.
597 2002-12-20 Jakub Jelinek <jakub@redhat.com>
599 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
600 instead of INLINE_SYSCALL.
602 2002-12-20 Ulrich Drepper <drepper@redhat.com>
604 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
607 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
608 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
609 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
610 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
611 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
612 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
613 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
614 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
615 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
616 Patch by William Lee Irwin <wli@holomorphy.com>.
618 2002-12-20 Andreas Schwab <schwab@suse.de>
620 * locale/programs/ld-measurement.c (measurement_output): Fix
623 2002-12-20 Ulrich Drepper <drepper@redhat.com>
625 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
626 Redefine _IO_flockifle and _IO_funlockfile as inlines.
628 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
629 builds add "tls" in the search path.
630 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
631 (path_hwcap): Recognize "tls".
633 2002-12-19 Ulrich Drepper <drepper@redhat.com>
635 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
636 __waitpid instead of waitpid.
638 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
640 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
641 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
642 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
644 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
645 information for system calls.
647 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
650 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
652 2002-12-19 Roland McGrath <roland@redhat.com>
654 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
655 * iconvdata/ibm922.h: Likewise.
656 * iconvdata/ibm930.h: Likewise.
657 * iconvdata/ibm932.h: Likewise.
658 * iconvdata/ibm933.h: Likewise.
659 * iconvdata/ibm935.h: Likewise.
660 * iconvdata/ibm937.h: Likewise.
661 * iconvdata/ibm939.h: Likewise.
662 * iconvdata/ibm943.h: Likewise.
663 * iconvdata/isiri-3342.h: Likewise.
665 2002-12-19 Ulrich Drepper <drepper@redhat.com>
667 * test-skeleton.c (main): Make sure correct value is seen as
668 argv[0] after adjustment of argv, and argc.
670 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
671 RTLD_CORRECT_DYNAMIC_WEAK is defined.
673 2002-12-19 Jakub Jelinek <jakub@redhat.com>
675 * nscd/connections.c (nscd_run): Shut up warning.
676 * tst-ungetc.c (assert): Undefined before redefining.
678 2002-12-19 Ulrich Drepper <drepper@redhat.com>
680 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
683 2002-12-17 Art Haas <ahaas@airmail.net>
685 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
686 * iconvdata/cp775.h: Likewise.
687 * iconvdata/ibm1046.h: Likewise.
688 * iconvdata/ibm1124.h: Likewise.
689 * iconvdata/ibm1129.h: Likewise.
690 * iconvdata/ibm1132.h: Likewise.
691 * iconvdata/ibm1133.h: Likewise.
692 * iconvdata/ibm1160.h: Likewise.
693 * iconvdata/ibm1161.h: Likewise.
694 * iconvdata/ibm1162.h: Likewise.
695 * iconvdata/ibm1163.h: Likewise.
696 * iconvdata/ibm1164.h: Likewise.
698 2002-12-19 Ulrich Drepper <drepper@redhat.com>
700 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
701 __ASSUME_CLONE_THREAD_FLAGS is defined.
702 * sysdeps/unix/sysv/linux/kernel-features.h
703 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
705 2002-12-18 Ulrich Drepper <drepper@redhat.com>
707 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
709 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
711 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
713 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
715 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
717 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
719 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
720 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
721 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
724 2002-12-18 Jakub Jelinek <jakub@redhat.com>
726 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
728 [libc: GLIBC_PRIVATE]: ...here.
729 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
731 [libc: GLIBC_PRIVATE]: ...here.
733 2002-12-18 Ulrich Drepper <drepper@redhat.com>
735 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
736 Use it instead of directly int $0x80.
737 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
738 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
739 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
740 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
741 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
742 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
744 2002-12-17 Ulrich Drepper <drepper@redhat.com>
746 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
748 * elf/elf.h (AT_SYSINFO): New define.
749 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
752 2002-12-17 Jakub Jelinek <jakub@redhat.com>
754 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
756 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
758 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
760 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
762 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
764 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
766 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
767 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
768 available, otherwise __libc_maybe_call.
769 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
770 cancellation handling.
771 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
773 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
775 * posix/regcomp.c (free_workarea_compile): Free the new member
777 (analyze): Initialize ORG_INDICES.
778 (duplicate_node_closure): Search for a existing node, which is
779 duplicated from the node ORG_DEST and satisfies the constraint
780 CONSTRAINT. And use it to avoid inifimite loop.
781 (search_duplicated_node): New function.
782 (duplicate_node): Store the index of the original node.
783 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
785 * posix/regex_internal.h (re_dfa_t): Add new members.
787 2002-12-17 Ulrich Drepper <drepper@redhat.com>
789 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
791 2002-12-16 Ulrich Drepper <drepper@redhat.com>
793 * sysdeps/posix/system.c (do_system): Add support for installation
794 of cancellation handlers.
795 * sysdeps/unix/sysv/linux/i386/system.c: New file.
797 * stdlib/Makefile (tests): Add tst-system.
798 * stdlib/tst-system.c: New file.
800 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
801 CENABLE]: Don't lose content of %ebx.
803 2002-12-17 Jakub Jelinek <jakub@redhat.com>
805 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
806 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
808 2002-12-16 Ulrich Drepper <drepper@redhat.com>
810 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
811 fails to return a function pointer don't use it.
813 2002-12-16 Art Haas <ahaas@airmail.net>
815 * io/ftw.c: Convert GCC extension initializer syntax to C99.
816 * iconvdata/iso-ir-165.c: Likewise.
817 * iconvdata/jis0208.c: Likewise.
818 * iconvdata/jis0212.c: Likewise.
820 2002-12-16 Ulrich Drepper <drepper@redhat.com>
822 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
823 epoll_ctl, and epoll_wait.
824 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
825 epoll_create, epoll_ctl, and epoll_wait.
826 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
827 Davide Libenzi <davidel@xmailserver.org>.
828 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
829 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
832 2002-12-16 Art Haas <ahaas@airmail.net>
834 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
836 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
837 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
838 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
840 2002-12-16 Ulrich Drepper <drepper@redhat.com>
842 * stdio-common/Makefile (routines): Remove lockfile. Add
843 flockfile, ftrylockfile, and funlockfile.
844 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
845 * sysdeps/generic/flockfile.c: New file.
846 * sysdeps/generic/ftrylockfile.c: New file.
847 * sysdeps/generic/funlockfile.c: New file.
849 2002-12-16 Jakub Jelinek <jakub@redhat.com>
851 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
852 macros instead of doing the calls directly.
853 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
854 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
857 2002-12-16 Jakub Jelinek <jakub@redhat.com>
859 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
860 * sysdeps/ieee754/bits/nan.h: Likewise.
862 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
863 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
865 2002-12-16 Roland McGrath <roland@redhat.com>
867 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
868 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
869 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
871 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
872 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
874 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
875 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
876 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
877 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
878 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
879 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
880 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
881 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
883 2002-12-13 Paul Eggert <eggert@twinsun.com>
885 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
886 is now u_int, not int.
887 (struct XDR.x_handy): Now u_int, not int.
888 * sunrpc/xdr_mem.c: Include <limits.h>.
889 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
890 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
891 x_handy is now unsigned, not signed.
892 Do not decrement x_handy if no change is made.
893 (xdrmem_setpos): Check for int overflow.
894 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
895 (xdr_sizeof): Remove cast that is now unnecessary, now that
898 2002-12-15 Art Haas <ahaas@airmail.net>
900 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
901 * iconvdata/gap.awk: Likewise.
902 * iconvdata/gen-8bit-gap-1.sh: Likewise.
903 * iconvdata/gen-8bit-gap.sh: Likewise.
904 * locale/C-address.c: Likewise.
905 * locale/C-collate.c: Likewise.
906 * locale/C-ctype.c: Likewise.
907 * locale/C-identification.c: Likewise.
908 * locale/C-measurement.c: Likewise.
909 * locale/C-messages.c: Likewise.
910 * locale/C-monetary.c: Likewise.
911 * locale/C-name.c: Likewise.
912 * locale/C-numeric.c: Likewise.
913 * locale/C-paper.c: Likewise.
914 * locale/C-telephone.c: Likewise.
915 * locale/C-time.c: Likewise.
916 * nscd/connections.c: Likewise.
917 * nscd/grpcache.c: Likewise.
918 * nscd/hstcache.c: Likewise.
919 * nscd/pwdcache.c: Likewise.
920 * stdio-common/vfprintf.c: Likewise.
921 * stdlib/random.c: Likewise.
922 * sysdeps/generic/siglist.c: Likewise.
923 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
924 * sysdeps/ieee754/bits/nan.h: Likewise.
925 * sysdeps/posix/sprofil.c: Likewise.
926 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
927 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
928 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
930 2002-12-15 Roland McGrath <roland@redhat.com>
932 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
934 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
935 <tls.h> here, no need for it.
936 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
938 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
939 parameter, not varargs parameter.
941 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
942 argument so it's not an unused variable.
944 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
945 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
948 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
950 2002-12-15 Ulrich Drepper <drepper@redhat.com>
952 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
953 original __libc_fcntl code. Just renamed.
955 2002-12-15 Andreas Schwab <schwab@suse.de>
957 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
959 2002-12-14 Olaf Hering <olh@suse.de>
961 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
962 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
964 2002-12-15 Ulrich Drepper <drepper@redhat.com>
966 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
968 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
969 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
971 * sysdeps/unix/sysv/linux/open64.c: New file.
973 * sysdeps/generic/pselect.c: Add support for cancellation handling.
974 * sysdeps/posix/open64.c: Likewise.
975 * sysdeps/posix/sigpause.c: Likewise.
976 * sysdeps/posix/sigwait.c: Likewise.
977 * sysdeps/posix/system.c: Likewise.
978 * sysdeps/posix/waitid.c: Likewise.
979 * sysdeps/unix/sysv/linux/accept.S: Likewise.
980 * sysdeps/unix/sysv/linux/connect.S: Likewise.
981 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
982 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
983 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
984 * sysdeps/unix/sysv/linux/poll.c: Likewise.
985 * sysdeps/unix/sysv/linux/pread.c: Likewise.
986 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
987 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
988 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
989 * sysdeps/unix/sysv/linux/readv.c: Likewise.
990 * sysdeps/unix/sysv/linux/recv.S: Likewise.
991 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
992 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
993 * sysdeps/unix/sysv/linux/send.S: Likewise.
994 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
995 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
996 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
997 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
998 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
999 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1000 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
1001 * sysdeps/unix/sysv/linux/wait.c: Likewise.
1002 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1003 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1004 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1005 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1007 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1009 * sysdeps/generic/sysdep-cancel.h: New file.
1010 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
1012 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
1013 recvmsg, send, sendmsg, sendto): Make cancelable.
1014 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
1015 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
1016 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1017 sendto, osf_select): Likewise.
1018 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
1019 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1020 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
1021 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1023 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
1024 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1025 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
1026 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1028 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
1029 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1030 sendto, select): Likewise.
1031 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
1032 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
1034 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
1035 select, fcntl): Likewise.
1036 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
1037 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
1038 read, readv, select, sigsuspend, write, writev): Likewise.
1040 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1042 * dirent/bug-readdir1.c: Include unistd.h.
1044 2002-12-13 Jakub Jelinek <jakub@redhat.com>
1046 * locale/programs/locale.c: Include locarchive.h.
1047 (ARCHIVE_NAME): Define.
1048 (write_archive_locales): New function.
1049 (write_locales): Use it. Ensure the same locale is not printed
1050 multiple times in verbose mode.
1051 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
1052 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
1054 (struct nameent): New type.
1055 (nameentcmp): New function.
1057 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1059 * posix/regex_internal.c (re_string_context_at): Guard wide char
1060 code with #ifdef RE_ENABLE_I18N.
1062 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
1064 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
1066 2002-12-13 Roland McGrath <roland@redhat.com>
1068 * posix/bug-regex15.c: New file.
1069 * posix/Makefile (tests): Add it.
1071 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
1072 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
1074 2002-12-13 Ulrich Drepper <drepper@redhat.com>
1076 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
1078 * misc/syslog.c (log_cleanup): Don't use parameter in
1079 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
1080 pass NULL instead of a pointer to syslog_lock.
1082 2002-12-12 Ulrich Drepper <drepper@redhat.com>
1084 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
1085 linker map for all iconv modules.
1086 (distribute): Add gconv.map.
1087 * iconvdata/gconv.map: New file.
1089 * elf/Makefile: Also check all iconv modules for text relocations.
1091 * stdlib/Makefile: Remove code to automatically import GMP.
1093 * elf/Makefile (tests): Add rules to build and run check-textrel.
1094 * elf/check-textrel.c: New file.
1096 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
1099 2002-12-11 Jakub Jelinek <jakub@redhat.com>
1101 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
1104 2002-04-30 Bruno Haible <bruno@clisp.org>
1106 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
1107 the encoding if it already has slashes.
1108 Reported by Perry Rapp <prapp@erols.com>.
1110 2002-12-11 Roland McGrath <roland@redhat.com>
1112 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
1113 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
1114 Turn off PIC for compiling this file.
1116 2002-12-11 Ulrich Drepper <drepper@redhat.com>
1118 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
1119 definitions. Not needed.
1120 [_LIBC]: Use definitions from libc-lock.h instead of referencing
1121 pthread routines directly.
1122 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
1124 (arena_get2): Don't look at return value of mutex_lock.
1126 2002-12-11 Roland McGrath <roland@redhat.com>
1128 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
1129 elf-init.o instead of compiling a PIC version.
1131 2002-12-11 Bruno Haible <bruno@clisp.org>
1133 * intl/gettext.h: Renamed to ...
1134 * intl/gmo.h: ... here.
1135 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
1136 * intl/gettextP.h: Update.
1137 * intl/loadmsgcat.c: Update.
1139 * intl/gettextP.h (PARAMS): Make more portable.
1140 (attribute_hidden): Define as empty macro if not already defined.
1141 * intl/hash-string.h (PARAMS): Make more portable.
1142 * intl/loadinfo.h (PARAMS): Likewise.
1143 * intl/plural-exp.h (PARAMS): Likewise.
1144 (attribute_hidden): Move definition near the definition of
1147 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
1148 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
1150 2002-07-13 Bruno Haible <bruno@clisp.org>
1152 * intl/dcigettext.c (freea): New macro.
1153 (FREE_BLOCKS): Free also the registered blocks.
1154 (DCIGETTEXT): Free the 'search' variable.
1155 Reported by Andreas Fischer <a.fischer@asentics.de>.
1157 2002-04-27 Bruno Haible <bruno@clisp.org>
1159 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
1160 * intl/dcigettext.c: Likewise.
1161 * intl/dcgettext.c: Likewise.
1162 * intl/dgettext.c: Likewise.
1163 * intl/gettext.c: Likewise.
1164 * intl/dcngettext.c: Likewise.
1165 * intl/dngettext.c: Likewise.
1166 * intl/ngettext.c: Likewise.
1167 * intl/textdomain.c: Likewise.
1168 * intl/bindtextdom.c: Likewise.
1169 * intl/plural-exp.h: Likewise.
1171 2002-01-02 Bruno Haible <bruno@clisp.org>
1173 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
1175 2001-04-30 Bruno Haible <bruno@clisp.org>
1177 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
1178 default macro definitions. Needed for mingw32.
1180 2002-12-10 Ulrich Drepper <drepper@redhat.com>
1182 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
1183 __builtin_constant_p to macro parameter.
1185 * sysdeps/generic/sigpause.c: Define all functions as weak.
1186 * sysdeps/posix/sigpause.c: Likewise.
1188 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
1191 2002-12-10 Jakub Jelinek <jakub@redhat.com>
1193 * elf/tst-array1.c (preinit_array, init_array, fini_array):
1194 Explicitly align the array to sizeof (void *).
1195 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
1197 * include/libc-symbols.h: Fix a comment typo.
1199 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
1200 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
1202 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
1204 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
1205 (__libc_sigsuspend): Likewise.
1206 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
1207 (__libc_sigsuspend): Likewise.
1208 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
1209 (creat): New weak alias.
1211 2002-12-10 Roland McGrath <roland@redhat.com>
1213 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
1214 contributes a manual chapter.
1215 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
1218 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
1219 and move contents to ...
1220 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
1221 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
1222 it instead of duplicating its contents.
1223 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
1225 2002-12-09 Jakub Jelinek <jakub@redhat.com>
1227 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
1229 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
1231 (EXTRA_LD_ENVVARS): Use it.
1232 (DL_OSVERSION_INIT): Define.
1233 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
1235 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
1237 2002-12-10 Ulrich Drepper <drepper@redhat.com>
1239 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
1241 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
1242 call. It is not allowed to destroy pthread mutexes which are
1243 still in use even though it is safe for our implementations. If
1244 somebody still uses the descriptor it is a bug.
1246 2002-12-09 Richard Henderson <rth@redhat.com>
1248 * csu/abi-note.S: Use .p2align, not .align.
1250 2002-12-09 Ulrich Drepper <drepper@redhat.com>
1252 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
1253 __libc_select aliases.
1255 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
1258 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
1260 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
1262 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
1264 * sysdeps/unix/syscalls.list: Define __libc_select alias.
1266 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
1268 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
1269 __libc___xpg_sigpause aliases.
1271 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
1273 * misc/error.c: Remove use of USE_IN_LIBIO.
1275 2002-12-08 Roland McGrath <roland@redhat.com>
1277 * elf/Makefile (tests): Uncomment tst-array[123].
1278 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
1279 * csu/elf-init.c: New file.
1280 * csu/Makefile (routines, static-only-routines): Add elf-init.
1281 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
1282 and __libc_csu_fini in place of _fini.
1283 * sysdeps/arm/elf/start.S: Likewise.
1284 * sysdeps/cris/elf/start.S: Likewise.
1285 * sysdeps/hppa/elf/start.S: Likewise.
1286 * sysdeps/i386/elf/start.S: Likewise.
1287 * sysdeps/ia64/elf/start.S: Likewise.
1288 * sysdeps/m68k/elf/start.S: Likewise.
1289 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
1290 * sysdeps/mips/elf/start.S: Likewise.
1291 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1292 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1293 * sysdeps/s390/s390-32/elf/start.S: Likewise.
1294 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1295 * sysdeps/sh/elf/start.S: Likewise.
1296 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1297 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1298 * sysdeps/x86_64/elf/start.S: Likewise.
1300 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
1301 struct containing function ptr and value, free it.
1302 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
1303 It's not safe to let the new thread use the SIGEV pointer.
1305 2001-10-20 Paul Eggert <eggert@twinsun.com>
1307 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
1308 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
1309 Use strerror_r that is only a macro, even if it is not a function.
1310 (strerror): Check for HAVE_DECL_STRERROR before declaring.
1311 (private_strerror): Use prototypes, not old-style function definition.
1312 (print_errno_message): New function.
1313 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
1315 (error_tail, error, error_at_line): Use it.
1317 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
1319 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
1321 2002-12-08 Ulrich Drepper <drepper@redhat.com>
1323 * scripts/output-format.sed: Fix bug in one of the s expressions
1324 which used / for one too many things.
1326 * include/unistd.h: Declare __libc_close.
1328 2002-12-07 Ulrich Drepper <drepper@redhat.com>
1330 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
1332 2002-12-07 Roland McGrath <roland@redhat.com>
1334 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
1335 from 2002-12-06, but remove unnecessary memset call without removing
1336 necessary copy of initialization image.
1338 * Makerules ($(common-objpfx)format.lds): New target.
1339 (common-generated): Add it.
1340 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
1341 * scripts/output-format.sed: New file.
1342 * Makefile (distribute): Add it.
1344 2002-12-07 Ulrich Drepper <drepper@redhat.com>
1346 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
1347 Reported by Art Haas <ahaas@airmail.net>.
1349 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
1351 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
1353 2002-12-07 Jakub Jelinek <jakub@redhat.com>
1355 * string/test-strncpy.c (do_random_tests): Improve test coverage.
1357 2002-12-06 Ulrich Drepper <drepper@redhat.com>
1359 * test-skeleton.c (timeout_handler): Allow expected signal to be
1362 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
1364 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
1366 2002-12-07 Jakub Jelinek <jakub@redhat.com>
1368 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
1369 (SYSCALL_ERROR_HANDLER): Fix a pasto.
1370 Reported by Jeff Bailey <jbailey@nisa.net>.
1372 2002-12-06 Ulrich Drepper <drepper@redhat.com>
1374 * sysdeps/generic/libc-tls.c: Undo last patch.
1376 * include/wctype.h: Define iswalnum with libc_hidden_proto.
1378 * include/signal.h: Define raise with libc_hidden_proto.
1380 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
1381 __execve instead of snprintf and execve.
1383 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
1386 2002-12-06 Jakub Jelinek <jakub@redhat.com>
1388 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
1389 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
1391 2002-12-06 Ulrich Drepper <drepper@redhat.com>
1393 * misc/syslog.c (log_cleanup): New function.
1394 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
1395 (closelog): Likewise.
1397 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
1398 * elf/dl-iteratephdr.c: Likewise.
1399 * elf/dl-lookup.c: Likewise.
1400 * elf/dl-misc.c: Likewise.
1401 * elf/dl-open.c: Likewise.
1402 * elf/dl-support.c: Likewise.
1403 * elf/rtld.c: Likewise.
1404 * sysdeps/generic/ldsodefs.h: Likewise.
1405 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
1406 * sysdeps/mach/bits/libc-lock.h: Likewise.
1407 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1409 2002-12-06 Roland McGrath <roland@redhat.com>
1411 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
1413 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
1414 (malloc_starter, memalign_starter, free_starter): Don't define these.
1415 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
1416 Don't declare them either.
1417 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
1418 __pthread_initialize, so no need to set hooks to *_starter.
1419 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
1420 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
1421 (__libc_malloc_pthread_startup): New function.
1422 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
1424 * malloc/hooks.c (memalign_starter): New function.
1425 * malloc/malloc.c: Declare it.
1426 * malloc/arena.c (save_memalign_hook): New variable.
1427 (ptmalloc_init): Set __memalign_hook to memalign_starter.
1429 * elf/dl-minimal.c (free): Clear the memory.
1430 (calloc): Just call malloc, knowing all memory it returns is cleared.
1432 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
1433 malloc and memset; calloc can avoid the zeroing when redundant.
1434 (_dl_tls_setup): Likewise.
1435 * elf/dl-load.c (decompose_rpath): Likewise.
1436 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
1437 call, since memory from sbrk at startup is already zero.
1439 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
1440 error string for failure, null for success. Update callers.
1441 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1442 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1444 2002-12-05 Jakub Jelinek <jakub@redhat.com>
1446 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
1448 (readahead): Change args to i:iii.
1449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
1450 Change args to i:iii.
1451 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
1454 2002-12-05 Roland McGrath <roland@redhat.com>
1456 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
1457 call all functions rather than none.
1458 Reported by Mark P. Mitchell <mark@codesourcery.com>.
1460 2002-12-04 Roland McGrath <roland@redhat.com>
1462 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
1463 on _nl_current_LC_* variables.
1465 2002-12-05 Ulrich Drepper <drepper@redhat.com>
1467 * dirent/bug-readdir1.c (main): Don't call closedir, just close
1468 the file descriptor. This is testing what the bug report was about.
1470 2002-12-04 Ulrich Drepper <drepper@redhat.com>
1472 * po/be.po: New file.
1474 * argp/Makefile (tests): Add tst-argp1.
1476 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
1477 Change type of _attribute to void*.
1478 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1479 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1480 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1481 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1482 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1484 2002-12-04 Roland McGrath <roland@redhat.com>
1486 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
1487 members to the end, so a libpthread compiled with !USE_TLS will still
1488 find other members properly.
1490 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
1491 operand for DEST memory. Fix dummy input operand to use SRC.
1492 Reported by Davin McCall <davmac@ozonline.com.au>.
1494 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
1495 alignment when initializing the DTV entry.
1497 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
1498 when TLS has not been set up, try to set it up if we can.
1499 * elf/tst-tls4.c: Revert last change.
1500 * elf/tst-tls5.c: Likewise.
1501 * elf/tst-tls6.c: Likewise.
1502 * elf/tst-tls7.c: Likewise.
1503 * elf/tst-tls8.c: Likewise.
1504 * elf/tst-tls9.c: Likewise.
1506 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
1507 * sysdeps/generic/ldsodefs.h: Declare it.
1508 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
1509 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
1510 function, broken out of __libc_setup_tls.
1511 (init_static_tls): Likewise.
1512 (__libc_setup_tls): Call them.
1513 (_dl_tls_setup): New function, uses new subroutines.
1515 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
1516 Clear the pointer when returning true.
1517 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
1518 first element of the slotinfo list too.
1520 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
1523 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
1524 (_dl_determine_tlsoffset): Likewise.
1526 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
1527 startup_error_tsd, made global.
1528 (dl_main): Update initialization.
1529 * elf/dl-tsd.c: Likewise.
1530 * sysdeps/generic/ldsodefs.h: Declare it.
1532 2002-12-03 Ulrich Drepper <drepper@redhat.com>
1534 * manual/texinfo.tex: Update from latest upstream version.
1536 2002-12-03 Roland McGrath <roland@redhat.com>
1538 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
1539 area surplus in calculation for sbrk call.
1541 * iconvdata/cp1125.c: New file.
1542 * iconvdata/Makefile (distribute): Add it.
1543 (modules): Add CP1125.
1544 (gen-8bit-gap-modules): Add cp1125.
1545 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
1546 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
1548 2002-12-03 Andreas Jaeger <aj@suse.de>
1550 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1552 2002-12-03 Ulrich Drepper <drepper@redhat.com>
1554 * sysdeps/posix/system.c (do_system): Make signal handler
1555 installation thread safe.
1557 2002-12-02 Roland McGrath <roland@redhat.com>
1559 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
1560 caller from EXTRA to -.
1561 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1562 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1563 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1565 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
1567 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
1568 bits of RM are cleared.
1570 2002-12-02 Roland McGrath <roland@redhat.com>
1572 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
1573 TLS setup is required.
1574 * elf/tst-tls5.c: Likewise.
1575 * elf/tst-tls6.c: Likewise.
1576 * elf/tst-tls7.c: Likewise.
1577 * elf/tst-tls8.c: Likewise.
1578 * elf/tst-tls9.c: Likewise.
1580 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
1581 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
1582 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
1583 for being null before calling free_slotinfo.
1584 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
1585 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
1587 2002-11-30 Bruno Haible <bruno@clisp.org>
1589 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
1590 (struct __gconv_step): New field __btowc_fct.
1591 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
1592 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
1594 (__gconv_btwoc_ascii): New declaration.
1595 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1596 (__gconv_btwoc_ascii): New function.
1597 * iconv/gconv_builtin.h: Add BtowcFct argument to all
1598 BUILTIN_TRANSFORMATION invocations.
1599 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1600 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
1601 * iconv/gconv_builtin.c (map): New field btowc_fct.
1602 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
1604 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
1605 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
1606 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
1607 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
1608 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
1609 (gconv_init): Initialize __btowc_fct field.
1610 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
1611 * iconv/loop.c: Document ONEBYTE_BODY.
1612 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
1613 Undefine ONEBYTE_BODY at the end.
1614 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
1615 * iconvdata/8bit-gap.c (NONNUL): New macro.
1616 (BODY for FROM_LOOP): Use it.
1617 (ONEBYTE_BODY): New macro.
1618 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
1619 (NONNUL): New macro.
1620 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
1621 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
1622 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
1623 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
1624 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
1625 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
1626 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
1627 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
1628 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
1629 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
1630 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
1631 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
1632 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
1633 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
1634 * iconvdata/ibm932.c: Include <stdbool.h>.
1635 (TRUE, FALSE): Remove macros.
1636 (BODY for FROM_LOOP): Remove unused variable rp1.
1637 (ONEBYTE_BODY): New macro.
1638 (BODY for TO_LOOP): Use bool.
1639 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
1640 * iconvdata/ibm943.c: Include <stdbool.h>.
1641 (TRUE, FALSE): Remove macros.
1642 (BODY for FROM_LOOP): Remove unused variable rp1.
1643 (ONEBYTE_BODY): New macro.
1644 (BODY for TO_LOOP): Use bool.
1645 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
1646 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
1647 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
1648 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
1649 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
1650 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
1651 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
1652 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
1653 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
1654 * iconvdata/gbbig5.c: Tweak comment.
1656 2002-12-02 Ulrich Drepper <drepper@redhat.com>
1658 * po/fi.po: Update from translation team.
1660 2002-12-01 Roland McGrath <roland@redhat.com>
1662 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
1663 testing getdents64 return value.
1665 * scripts/versions.awk: Don't pass -n flag to sort command.
1667 * posix/bug-regex13.c: Include <string.h>.
1669 * sysdeps/generic/libc-start.c (__libc_start_main): Do
1670 DL_SYSDEP_OSCHECK here.
1671 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
1672 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
1674 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
1675 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
1677 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
1678 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
1680 * include/link.h: Comment typo fix.
1682 2002-12-01 Roland McGrath <roland@frob.com>
1684 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
1685 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
1686 _POSIX_MEMORY_PROTECTION): Likewise.
1687 (_POSIX_POLL, _POSIX_SELECT): Removed.
1689 2002-11-28 Ulrich Drepper <drepper@redhat.com>
1691 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
1692 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
1694 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1696 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
1698 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
1701 2002-11-28 Ulrich Drepper <drepper@redhat.com>
1703 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
1704 branch prediction buffers by using unpaired call/ret.
1706 2002-11-27 Ulrich Drepper <drepper@redhat.com>
1708 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
1709 first parameters constraint string.
1710 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
1712 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
1714 * posix/regcomp.c (parse_expression): Set the bit since the back
1715 reference is used in the regular expression.
1716 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
1718 (re_node_set_init_copy): Likewise.
1719 * posix/regex_internal.h (state_array_t): New structure.
1720 (re_sub_match_last_t): Likewise.
1721 (re_sub_match_top_t): Likewise.
1722 (re_match_context_t): Add new members.
1723 (re_dfa_t): Likewise.
1724 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
1725 to check the matching is really correct, and retry if failed.
1726 Move the routin pruning the impossible nodes from here, ...
1727 (prune_impossible_nodes): To this function.
1728 (check_matching): Invoke check_subexp_matching_top, and replace
1729 redundant checking with transit_state_bkref invocation.
1730 (proceed_next_node): Replace strncmp with memcmp. Reported by
1731 Paolo Bonzini <bonzini@gnu.org>.
1732 (update_cur_sifted_state): Remove search_subexp invocation.
1733 (search_subexp): Remove this function.
1734 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
1736 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
1737 Remove unused invocation of match_ctx_add_entry.
1738 (transit_state): Invoke check_subexp_matching_top.
1739 (check_subexp_matching_top): New function.
1740 (transit_state_bkref): Remove unused array.
1741 Merge transit_state_bkref_loop.
1742 (transit_state_bkref_loop): Use get_subexp instead of
1743 sift_states_backward. Use search_cur_bkref_entry for optimization.
1744 Merge this function to transit_state_bkref.
1745 (get_subexp): New function.
1746 (get_subexp_sub): Likewise.
1747 (find_subexp_node): Likewise.
1748 (check_arrival): Likewise.
1749 (check_arrival_expand_ecl): Likewise.
1750 (check_arrival_expand_ecl_sub): Likewise.
1751 (expand_bkref_cache): Likewise.
1752 (match_ctx_init): Initialize new members.
1753 (match_ctx_clean): New function.
1754 (match_ctx_free): Release new members.
1755 (match_ctx_free_subtops): New function.
1756 (match_ctx_add_entry): Fix indent.
1757 (search_cur_bkref_entry): New function.
1758 (match_ctx_add_subtop): Likewise.
1759 (match_ctx_add_sublast): Likewise.
1761 2002-11-25 Ulrich Drepper <drepper@redhat.com>
1763 * iconv/Makefile (tests): Remove tst-iconv4.c
1764 * iconv/tst-iconv4.c: Moved to...
1765 * iconvdata/tst-iconv4.c: ...here. New file.
1766 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
1768 2002-11-25 Roland McGrath <roland@redhat.com>
1770 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
1771 Grok AF_LINK if defined.
1772 From Momchil Velikov <velco@fadata.bg>.
1774 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
1775 brdaddr, or dstaddr, just set those pointers to null and don't fail.
1776 Reported by Momchil Velikov <velco@fadata.bg>.
1778 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
1779 is > sizeof IFR->ifa_addr, advance past the whole longer length.
1780 (__ifreq): Count up NIFS that way too.
1781 Reported by Momchil Velikov <velco@fadata.bg>.
1783 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
1785 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
1786 and <fpu_control.h>.
1788 2002-11-24 Ulrich Drepper <drepper@redhat.com>
1790 * elf/elf.h (EM_ST19): Fix typo.
1792 2002-11-25 Jakub Jelinek <jakub@redhat.com>
1794 * include/errno.h (__set_errno): Define as errno = val
1797 2002-11-24 Roland McGrath <roland@redhat.com>
1799 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
1800 * sysdeps/posix/writev.c: Likewise.
1801 From Momchil Velikov <velco@fadata.bg>.
1803 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
1804 calling *GL(dl_error_catch_tsd) for a thread-local location.
1805 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
1806 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
1807 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
1809 * libio/iofflush.c: Add libc_hidden_def.
1810 * libio/iofwrite.c: Likewise.
1811 * sysdeps/generic/sigtimedwait.c: Likewise.
1812 * sysdeps/generic/sigwaitinfo.c: Likewise.
1813 * sysdeps/posix/sigwait.c: Likewise.
1814 Reported by Momchil Velikov <velco@fadata.bg>.
1816 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
1817 to match <arpa/inet.h> declaration.
1818 * inet/inet_netof.c (inet_netof): Likewise.
1819 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
1820 Reported by Momchil Velikov <velco@fadata.bg>.
1822 * configure.in: Skip AUTOCONF check under --without-cvs.
1823 * configure: Regenerated.
1825 * posix/Makefile (headers): Add bits/pthreadtypes.h.
1826 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
1827 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
1829 2002-11-24 Andreas Schwab <schwab@suse.de>
1831 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
1834 2002-11-19 Jim Meyering <jim@meyering.net>
1836 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
1838 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
1840 2002-11-23 Roland McGrath <roland@redhat.com>
1842 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
1843 Just produce hex output for datum sizes.
1845 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
1846 Reported by Luca Barbieri <ldb@ldb.ods.org>.
1848 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
1850 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
1851 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
1852 and __unused3 fields.
1853 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
1854 [__WORDSIZE == 32]: Only PPC32 requires __unused1
1855 and __unused2 fields.
1856 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
1857 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
1858 __unused3, and __unused4 fields.
1860 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
1861 obtain lowest address for profiling in __monstartup call.
1863 2002-11-21 Roland McGrath <roland@redhat.com>
1865 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
1866 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
1868 * locale/localeinfo.h (struct locale_data): Revert last change.
1870 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
1871 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1873 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
1874 __NR_pread64 if not defined.
1875 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
1876 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1878 2002-11-21 Roland McGrath <roland@frob.com>
1880 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
1881 __libc_multiple_libcs here. Call __setfpucw.
1883 2002-11-21 Ulrich Drepper <drepper@redhat.com>
1885 * elf/Makefile (tests): Don't run test-arrayX tests for now.
1887 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
1888 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
1889 CLONE_CHILD_*TID flags.
1891 2002-11-20 Andreas Jaeger <aj@suse.de>
1893 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
1894 We pass struct ucontext on x86-64.
1896 (GET_FRAME): Adjust.
1897 (GET_STACK): Adjust.
1899 2002-11-20 Roland McGrath <roland@redhat.com>
1901 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
1902 conditionalize [! DO_VERSIONING] #error.
1904 * scripts/abilist.awk: Grok function descriptor symbols.
1906 * intl/tst-gettext.c (main): Check return values from setlocale.
1907 Add necessary unsetenv's to make LANG=existing-locale check work.
1909 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
1910 so aborted prior runs don't confuse things.
1912 * locale/localeinfo.h (struct locale_data: union locale_data_value):
1913 Use uintptr_t instead of unsigned int for `word' member.
1914 (_NL_CURRENT_WORD): Cast to uint32_t.
1916 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
1919 2002-11-20 Ulrich Drepper <drepper@redhat.com>
1921 * elf/tls-macros.h: Add IA-64 definitions.
1922 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
1924 * iconv/Makefile (tests): Add tst-iconv4.
1925 * iconv/tst-iconv4.c: New file.
1927 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
1928 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
1929 __GCONV_INCOMPLETE_INPUT.
1930 (ucs4le_internal_loop): Likewise.
1931 (ucs4le_internal_loop_unaligned): Likewise.
1932 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
1933 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
1934 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
1936 * iconv/loop.c (LOOPFCT): First test for empty input then for full
1939 * inet/getnameinfo.c: Use extend_alloca where appropriate.
1940 * sysdeps/posix/getaddrinfo.c: Likewise.
1942 * include/alloca.h (extend_alloca): New define. Based on stack
1943 direction it'll try to append to the previouls allocated buffer.
1945 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
1947 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
1948 use the same service for AF_INET and AF_INET6.
1950 2002-11-19 Ulrich Drepper <drepper@redhat.com>
1952 * intl/localealias.c (read_alias_file): Use only about 400 bytes
1953 of stack space instead of 16k.
1955 2002-11-18 Wolfram Gloger <wg@malloc.de>
1958 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
1959 nothing if not initialized. Bug report from Marcus Brinkmann
1960 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1962 2002-11-19 Roland McGrath <roland@redhat.com>
1964 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
1967 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
1968 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
1969 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
1970 * configure: Regenerated.
1972 2002-11-19 Ulrich Drepper <drepper@redhat.com>
1974 * include/dlfcn.h: __libc_dlopen is now a macro calling
1975 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
1976 (__libc_dlopen_mode): New prototype.
1977 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
1978 new parameter. Store new parameter in mode field of structure passed
1980 (struct do_dlopen_args): Add new field mode.
1981 (do_dlopen): Pass mode from parameter structure to _dl_open.
1983 2002-11-11 Randolf Chung <tausq@debian.org>
1985 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
1986 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
1987 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
1989 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
1991 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
1992 Set -mdisable-fpregs for this file.
1994 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1996 * sysdeps/unix/sysv/linux/configure.in:
1997 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
1998 from gcc-3.0 era for backwards compatibility.
1999 * sysdeps/unix/sysv/linux/configure: Regenerate.
2001 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
2002 Define mcontext_t as a sigcontext.
2004 2002-11-18 Roland McGrath <roland@redhat.com>
2006 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
2007 Free memory in `last_result' if it was used.
2009 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
2010 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
2011 Do the parsing inline instead of copying strings and calling
2012 inet_network, and properly skip all alias names not matching the form.
2014 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
2016 2002-11-17 Ulrich Drepper <drepper@redhat.com>
2018 * manual/pattern.texi (Wordexp Example): Fix sample code.
2020 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
2021 childs stack which will be loaded into the %esi register.
2023 2002-11-14 Paul Eggert <eggert@twinsun.com>
2025 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
2026 overflow when skipping the question part and when unpacking aliases.
2028 2002-11-15 Roland McGrath <roland@redhat.com>
2030 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
2031 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
2032 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
2034 2002-11-15 Jakub Jelinek <jakub@redhat.com>
2036 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
2037 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
2039 2002-11-15 Roland McGrath <roland@redhat.com>
2041 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
2042 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
2043 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
2044 (+make-include-of-dep): New canned sequence.
2046 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
2047 From Dmitry V. Levin <ldv@altlinux.org>.
2049 2002-11-14 Roland McGrath <roland@redhat.com>
2051 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
2052 * inet/herrno.c (__libc_h_errno): Likewise.
2053 * resolv/res_libc.c (__libc_res): Likewise.
2054 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
2055 (__res_state) [! USE___THREAD]: Don't define as weak.
2056 * csu/Versions: Revert last change.
2057 * resolv/Versions: Revert last change.
2059 * Makerules ($(common-objpfx)%.make): New pattern rule.
2060 * tls.make.c: New file.
2061 * Makefile (distribute): Add it.
2063 * sysdeps/generic/errno.c [! USE___THREAD]
2064 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
2065 with compat_symbol so they are not link-time visible.
2066 [! USE___THREAD] (__libc_errno): New alias for errno.
2067 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2068 Add __libc_errno here.
2069 * inet/herrno.c [USE___THREAD]: Use this conditional
2070 in place of [USE_TLS && HAVE___THREAD].
2071 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
2072 (h_errno, _h_errno): Declare these with compat_symbol so they are not
2074 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
2075 * resolv/res_libc.c [! USE___THREAD]
2076 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
2077 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
2078 (__libc_res): Define as alias for _res.
2079 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2080 Add __libc_h_errno and __libc_res here.
2082 2002-11-14 Jakub Jelinek <jakub@redhat.com>
2084 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
2085 * resolv/Versions (h_errno, _res): Likewise.
2087 2002-11-14 Roland McGrath <roland@redhat.com>
2089 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
2090 (%.symlist): Likewise.
2092 2002-11-13 Roland McGrath <roland@redhat.com>
2094 * scripts/abilist.awk: New file.
2095 * Makefile (distribute): Add it.
2096 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
2097 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
2098 [$(subdir) = elf] (tests): Depend on libc.symlist.
2099 (generated, common-generated): Add those files.
2101 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
2102 * configure: Regenerated.
2103 * config.make.in (OBJDUMP): New variable, substituted by configure.
2105 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
2106 (mallochook, reallochook): Set them up.
2107 (checkhdr): Check HDR->magic2 value.
2108 (freehook): Reset HDR->magic2.
2109 (memalignhook): New static function.
2110 (old_memalign_hook): New static variable.
2111 (mcheck, reallochook): Set __memalign_hook to memalignhook.
2113 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
2116 2002-11-13 Andreas Jaeger <aj@suse.de>
2118 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
2120 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2122 2002-11-11 Paul Eggert <eggert@twinsun.com>
2124 * manual/crypt.texi (Cryptographic Functions): Mention that
2125 the MD5 one-way algorithm is compatible with BSD's.
2127 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
2129 * posix/regex_internal.c (re_string_skip_chars): Also return the last
2131 (re_string_reconstruct): Calculate the context by itself when the
2132 offset points out of the valid range.
2133 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
2134 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
2135 (IS_WIDE_WORD_CHAR): New macro.
2136 (IS_WIDE_NEWLINE): New macro.
2138 2002-11-12 Andreas Jaeger <aj@suse.de>
2140 * sysdeps/x86_64/strchr.S: Don't use one register for two
2141 purposes, this fixes a bug noticed by test-strchr.c.
2143 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
2146 2002-11-12 Roland McGrath <roland@redhat.com>
2148 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
2149 (_G_IO_NO_BACKWARD_COMPAT): Define it.
2151 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
2152 instead of <pt-machine.h>.
2153 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
2155 From Ian Wienand <ianw@gelato.unsw.edu.au>.
2157 2002-11-10 Roland McGrath <roland@redhat.com>
2159 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
2160 Call fputs instead of fwprintf (simpler to follow in debugger).
2162 * crypt/md5-crypt.c: Doc fix.
2164 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
2165 the beginning of generated target commands.
2167 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
2168 dependencies for these in case implicit rule search skipped the
2169 nonexistent source directory.
2170 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
2171 files with $(object-suffixes) as targets too.
2172 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
2173 and a target for it using $(make-target-directory).
2175 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
2177 2002-11-10 Roland McGrath <roland@frob.com>
2179 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
2180 * sysdeps/generic/bits/pthreadtypes.h: ... here.
2182 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
2183 l_start == 0 and l_len == 1 as we do l_len == 0.
2185 2002-11-10 Ulrich Drepper <drepper@redhat.com>
2187 * po/da.po: Update from translation team.
2189 2002-11-10 Roland McGrath <roland@redhat.com>
2191 * config.make.in (includedir): New variable, substituted by configure.
2192 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
2193 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
2195 2002-11-10 Andreas Jaeger <aj@suse.de>
2197 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
2198 REG_OLDMASK and REG_CR2 to synch with kernel header.
2201 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
2203 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
2204 * nss/getnssent_r.c (__nss_getent_r): Likewise.
2205 (__nss_setent): Likewise.
2206 (__nss_getent_r): Likewise.
2207 * inet/getnetgrent_r.c (innetgr): Likewise.
2208 (__internal_setnetgrent_reuse): Likewise.
2209 (internal_getnetgrent_r): Likewise.
2210 * inet/ether_hton.c (ether_hostton): Likewise.
2211 * inet/ether_ntoh.c (ether_ntohost): Likewise.
2212 * sunrpc/netname.c (netname2user): Likewise.
2213 * sunrpc/publickey.c (getpublickey): Likewise.
2214 (getsecretkey): Likewise.
2216 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
2218 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
2219 error in range calculation.
2221 2002-10-09 Jakub Jelinek <jakub@redhat.com>
2223 * string/test-strspn.c (do_test): Ensure zero termination.
2224 * string/test-strpbrk.c (do_test): Likewise.
2225 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
2226 * string/test-strncpy.c (stupid_strncpy): Likewise.
2227 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
2229 2002-10-08 Roland McGrath <roland@redhat.com>
2231 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
2234 2002-09-22 H.J. Lu <hjl@gnu.org>
2236 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
2237 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
2238 only if __NR_mmap2 is defined.
2240 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
2241 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
2242 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
2243 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
2245 2002-11-08 Jakub Jelinek <jakub@redhat.com>
2247 * posix/bug-regex13.c (tests): Add new test.
2249 * string/test-strchr.c (stupid_strchr): New function.
2250 (do_random_tests): Make sure the string is zero terminated.
2251 * string/test-strpbrk.c (stupid_strpbrk): New function.
2252 (do_random_tests): Make sure the string is zero terminated.
2253 * string/test-strcmp.c (stupid_strcmp): New function.
2254 (do_random_tests): Make sure the strings are zero terminated.
2255 * string/test-strspn.c (stupid_strspn): New function.
2256 (simple_strspn): Rename rej argument to acc.
2257 (do_random_tests): Make sure the string is zero terminated.
2258 * string/test-strcspn.c (stupid_strcspn): New function.
2259 * string/test-strncpy.c (stupid_strncpy): New function.
2260 * string/test-stpncpy.c (stupid_stpncpy): New function.
2261 * string/test-strncmp.c (stupid_strncmp): New function.
2262 (do_random_tests): Make sure the strings are zero terminated.
2263 * string/test-string.h (impl_t): Change test into long.
2264 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
2266 2002-11-08 Roland McGrath <roland@redhat.com>
2268 * sysdeps/ia64/elf/configure.in: Add TLS check.
2269 From Ian Wienand <ianw@cse.unsw.edu.au>.
2270 * sysdeps/ia64/elf/configure: Regenerated.
2272 2002-11-07 Roland McGrath <roland@redhat.com>
2274 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
2275 place of _IO_new_do_write.
2276 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
2277 #undef before versioned_symbol use.
2279 2002-11-07 Richard Henderson <rth@redhat.com>
2281 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
2282 * configure: Regenerated.
2283 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
2284 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
2285 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
2286 _dl_fini via gp-relative relocations.
2287 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
2289 * elf/tls-macros.h: Add alpha versions.
2290 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
2291 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
2292 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
2293 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
2294 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2295 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2296 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2297 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2298 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2299 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2300 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
2301 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2302 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2303 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2304 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
2305 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
2306 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2307 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2309 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
2310 Kill argument registers across the inline syscall.
2312 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
2314 * linuxthreads/sysdeps/alpha/tls.h: New file.
2315 * sysdeps/alpha/dl-tls.h: New file.
2317 2002-10-29 David Mosberger <davidm@hpl.hp.com>
2319 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
2320 (gmon_initializer): New function.
2321 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
2322 __gmon_start__ here. Call it from gmon_initializer() instead.
2324 2002-03-12 H.J. Lu <hjl@gnu.org>
2326 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
2327 tst-array2, and tst-array3.
2328 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
2329 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
2330 ($(objpfx)tst-array1.out): New target.
2331 ($(objpfx)tst-array2): Likewise.
2332 ($(objpfx)tst-array2.out): Likewise.
2333 ($(objpfx)tst-array3.out): Likewise.
2334 * elf/tst-array1.c: New file.
2335 * elf/tst-array1.exp: Likewise.
2336 * elf/tst-array2.c: Likewise.
2337 * elf/tst-array2dep.c: Likewise.
2338 * elf/tst-array2.exp: Likewise.
2339 * elf/tst-array3.c: Likewise.
2341 2002-10-28 David Mosberger <davidm@hpl.hp.com>
2343 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
2344 Don't add L->l_addr to array entry values.
2346 2002-11-07 Jakub Jelinek <jakub@redhat.com>
2348 * string/test-string.h: New file.
2349 * string/test-strlen.c: New file.
2350 * string/test-string.h: New file.
2351 * string/test-strcmp.c: New file.
2352 * string/test-strchr.c: New file.
2353 * string/test-strrchr.c: New file.
2354 * string/test-strcpy.c: New file.
2355 * string/test-stpcpy.c: New file.
2356 * string/test-strncpy.c: New file.
2357 * string/test-stpncpy.c: New file.
2358 * string/test-strpbrk.c: New file.
2359 * string/test-strcspn.c: New file.
2360 * string/test-strspn.c: New file.
2361 * string/test-strcat.c: New file.
2362 * string/test-strncmp.c: New file.
2363 * string/test-memchr.c: New file.
2364 * string/test-memcmp.c: New file.
2365 * string/test-memset.c: New file.
2366 * string/test-memcpy.c: New file.
2367 * string/test-mempcpy.c: New file.
2368 * string/test-memmove.c: New file.
2369 * string/Makefile (strop-tests): New variable.
2370 (tests): Add strop-tests.
2371 (distribute): Add test-string.h.
2373 2002-11-06 Ulrich Drepper <drepper@redhat.com>
2375 * posix/regcomp.c: Use tabs instead of spaces.
2376 * posix/regexec.c: Likewise.
2377 * posix/regex_internal.h: Likewise.
2379 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
2381 2002-11-06 Jakub Jelinek <jakub@redhat.com>
2383 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
2385 (regcomp): Don't set can_be_null here.
2386 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
2387 (re_compile_internal): Clear can_be_null, set regs_allocated.
2389 * posix/regcomp.c (re_set_fastmap): New function.
2390 (re_compile_fastmap_iter): Use it. Remove redundant type ==
2391 COMPLEX_BRACKET check.
2392 * posix/regexec.c (re_search_internal): Optimize searching with
2393 fastmap. Call re_string_reconstruct even if match_first is
2394 smaller than raw_mbs_idx.
2396 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2398 * posix/regcomp (free_dfa_content): Use free_state.
2399 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
2400 pointers in case that realloc failed.
2401 (re_node_set_merge): Likewise.
2402 (register_state): Likewise.
2403 (create_newstate_common): Invoke memory release functions in case of
2405 (create_ci_newstate): Likewise.
2406 (create_cd_newstate): Likewise.
2407 (free_state): New function.
2408 * posix/regexec.c (re_search_internal): Invoke memory release
2409 functions in case of error conditions.
2410 (sift_states_backward): Likewise.
2411 (merge_state_array): Likewise.
2412 (add_epsilon_src_nodes): Likewise.
2413 (sub_epsilon_src_nodes): Likewise.
2414 (search_subexp): Likewise.
2415 (sift_states_bkref): Likewise.
2416 (transit_state_sb): Likewise.
2417 (transit_state_mb): Likewise.
2418 (transit_state_bkref_loop): Likewise.
2419 (group_nodes_into_DFAstates): Likewise.
2420 (push_fail_stack): Don't edit pointers in case that realloc failed.
2421 (extend_buffers): Likewise.
2422 (match_ctx_add_entry): Likewise.
2424 2002-11-06 Roland McGrath <roland@redhat.com>
2426 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
2427 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
2429 * configure.in: Add checks on as and ld for binutils 2.13 or later.
2430 * configure: Regenerated.
2432 2002-11-06 Ulrich Drepper <drepper@redhat.com>
2434 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
2435 If re_compile_internal failed free fastmap buffer.
2436 (free_dfa_content): Broken out of regfree function. Frees all dfa
2438 (regfree): Add free_dfa_content.
2439 (re_compile_internal): If any of the called functions fails free
2440 all dfa related memory.
2442 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2444 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
2445 warnings from the kernel headers.
2447 2002-11-05 Roland McGrath <roland@redhat.com>
2449 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
2450 From Johannes Stezenbach <js@convergence.de>.
2452 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
2453 #errlist-compat magic comment to give 123 as size.
2454 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
2455 (libc: GLIBC_2.2): ... here.
2456 (libc: GLIBC_2.3): Likewise.
2458 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2460 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
2461 which happens at the beginning so that we can unload modules in
2464 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2466 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
2467 under [__USE_MISC || _ASM].
2469 * elf/elf.h: Remove the obsolete SH TLS relocations.
2471 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2473 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
2475 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
2478 __NR_pread64 and __NR_pwrite64.
2479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2480 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
2482 Revert change to use INLINE_SYSCALL.
2483 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2484 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2485 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2486 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
2488 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2491 Update clobber list and add a comment about the syscall ABI.
2493 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
2494 s_pwrite64, s_ftruncate, s_truncate): Re-add.
2496 2002-11-05 Jakub Jelinek <jakub@redhat.com>
2498 * iconv/gconv_dl.c (free_mem): Clear loaded.
2499 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
2502 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2504 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
2506 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
2507 as old code without locking. _IO_seekoff calls this function after
2509 * libio/ioseekpos.c: Likewise for _IO_seekpos.
2510 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
2511 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
2513 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
2514 of _IO_seekoff_internal.
2515 (_IO_rewind): Likewise.
2516 * libio/ioftell.c: Likewise.
2517 * libio/ftello.c: Likewise.
2518 * libio/ftello64.c: Likewise.
2519 * libio/iofgetpos.c: Likewise.
2520 * libio/iofgetpos64.c: Likewise.
2521 * libio/oldiofgetpos.c: Likewise.
2522 * libio/oldiofgetpos64.c: Likewise.
2523 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
2524 _IO_seekpos_internal.
2525 * libio/iofsetpos64.c: Likewise.
2526 * libio/oldiofsetpos.c: Likewise.
2527 * libio/oldiofsetpos64.c: Likewise.
2529 2002-11-04 Roland McGrath <roland@redhat.com>
2531 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
2532 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
2533 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2534 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
2535 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2536 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2537 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2538 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
2539 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2540 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
2542 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
2543 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
2544 Remove these, no longer used.
2546 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2548 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
2549 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
2550 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
2551 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
2552 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
2553 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
2556 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
2557 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2558 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
2560 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2561 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
2563 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2565 2002-11-03 Roland McGrath <roland@redhat.com>
2567 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
2568 `_dl_tls_static_used'.
2569 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
2570 (__libc_setup_tls): Initialize it. Let the initial value of
2571 _dl_tls_static_size indicate some surplus space in the computed value.
2572 * elf/dl-open.c (_dl_tls_static_size): New variable.
2573 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
2574 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
2575 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
2576 (CHECK_STATIC_TLS): Use it.
2577 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
2578 closed objects occupied a trailing contiguous chunk of static TLS area.
2580 2002-10-18 Bruno Haible <bruno@clisp.org>
2582 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
2584 2002-11-04 Ulrich Drepper <drepper@redhat.com>
2586 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
2587 _wide_data->_IO_read_end if adjustment can be made in the current
2590 * sysdeps/unix/sysv/linux/fexecve.c: New file.
2592 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
2593 wide oriented streams are used.
2595 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
2596 service hasn't been used [PR libc/4744].
2598 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
2599 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
2601 * manual/examples/dir.c: Don't include <stddef.h>.
2602 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
2603 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
2605 2002-11-02 H.J. Lu <hjl@gnu.org>
2607 * stdio-common/reg-printf.c: Include <stddef.h>.
2609 2002-11-03 Ulrich Drepper <drepper@redhat.com>
2611 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
2613 * po/ca.po: Update from translation team.
2614 * po/es.po: Likewise.
2616 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
2617 is defined write out memory map.
2618 * sysdeps/unix/sysv/linux/segfault.c: New file.
2620 2002-11-02 Roland McGrath <roland@redhat.com>
2622 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
2623 pointers that can alias.
2624 Reported by Daniel Jacobowitz <drow@mvista.com>.
2626 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
2628 2002-11-02 Roland McGrath <roland@redhat.com>
2630 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
2631 description to be clearer and to say that *RESULT is set to ENTRY.
2633 2002-10-30 Jakub Jelinek <jakub@redhat.com>
2635 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
2636 dests_ch arrays together. Alloca or malloc dest_states,
2637 dest_states_word and dest_states_nl arrays together. Free memory on
2640 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2642 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
2643 and current_saltbits.
2645 2002-11-02 Roland McGrath <roland@redhat.com>
2647 * stdio-common/reg-printf.c: Include <stdlib.h>.
2649 2002-11-02 H.J. Lu <hjl@gnu.org>
2651 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
2652 caller to EXTRA instead of execve.
2654 2002-11-01 Roland McGrath <roland@redhat.com>
2656 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
2657 in place of [!(USE_TLS && HAVE___THREAD)].
2658 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
2660 2002-10-31 Roger Sayle <roger@eyesopen.com>
2662 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
2664 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2666 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
2667 without defining FP_ROUNDMODE.
2669 2002-10-29 Jakub Jelinek <jakub@redhat.com>
2671 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
2672 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
2674 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
2675 (OLD_SIGLIST_SIZE): Define.
2676 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
2677 (OLD_SIGLIST_SIZE): Define.
2678 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
2680 2002-11-01 Jakub Jelinek <jakub@redhat.com>
2682 * sysdeps/ia64/strncpy.S: Fix recovery code.
2684 2002-10-30 Jakub Jelinek <jakub@redhat.com>
2686 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
2688 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
2690 * elf/dl-libc.c (free_mem): Likewise.
2691 * iconv/gconv_conf.c (free_mem): Likewise.
2692 * iconv/gconv_db.c (free_mem): Likewise.
2693 * iconv/gconv_dl.c (free_mem): Likewise.
2694 * iconv/gconv_cache.c (free_mem): Likewise.
2695 * intl/finddomain.c (free_mem): Likewise.
2696 * intl/dcigettext.c (free_mem): Likewise.
2697 * locale/setlocale.c (free_mem): Likewise.
2698 * misc/fstab.c (fstab_free): Likewise.
2699 * nss/nsswitch.c (free_mem): Likewise.
2700 * posix/regcomp.c (free_mem): Likewise.
2701 * resolv/gai_misc.c (free_res): Likewise.
2702 * stdlib/fmtmsg.c (free_mem): Likewise.
2703 * sunrpc/clnt_perr.c (free_mem): Likewise.
2704 * sysdeps/generic/setenv.c (free_mem): Likewise.
2705 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
2706 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
2707 * time/tzset.c (free_mem): Likewise.
2708 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
2709 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
2710 * malloc/set-freeres.c (__libc_freeres): Likewise.
2712 * login/getutent.c: Include stdlib.h instead of stddef.h.
2713 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2714 (__getutent): Allocate buffer the first time it is run.
2715 * login/getutid.c: Include stdlib.h instead of stddef.h.
2716 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2717 (__getutid): Allocate buffer the first time it is run.
2718 * login/getutline.c: Include stdlib.h instead of stddef.h.
2719 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2720 (__getutline): Allocate buffer the first time it is run.
2721 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
2722 (mtrace): Allocate malloc_trace_buffer.
2723 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
2724 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
2725 * string/strerror.c: Include libintl.h and errno.h.
2726 (buf): New variable.
2727 (strerror): Only allocate buffer if actually needed (unknown error).
2728 * time/tzfile.c (transitions): Add libc_freeres_ptr.
2731 2002-10-25 Jakub Jelinek <jakub@redhat.com>
2733 * include/libc-symbols.h (libc_freeres_ptr): New macro.
2734 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
2736 (__libc_freeres): Free all pointers in that section.
2737 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
2738 commands when creating .lds script.
2739 (LDSEDCMD-c.so): New variable.
2740 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
2741 (rcmd_af): Use strdup to allocate ahostbuf.
2742 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
2743 (rexec_af): Use strdup to allocate ahostbuf.
2744 * stdio-common/reg-printf.c (printf_funcs): Remove.
2745 (__printf_arginfo_table): Change into printf_arginfo_function **.
2746 Add libc_freeres_ptr.
2747 (__register_printf_function): Allocate __printf_arginfo_table
2748 and __printf_function_table the first time it is called.
2749 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
2750 printf_arginfo_function **.
2751 (parse_one_spec): Add __builtin_expect.
2752 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
2754 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
2756 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
2757 (string_space, map): Add libc_freeres_ptr.
2759 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
2761 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
2763 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
2764 (buffer): Add libc_freeres_ptr.
2765 (free_mem): Remove for _LIBC.
2766 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
2768 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
2770 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
2772 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
2774 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
2776 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
2778 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
2781 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
2785 2002-10-30 Jakub Jelinek <jakub@redhat.com>
2787 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
2788 instead of duplicating the whole function in libc.
2790 2002-10-31 Roland McGrath <roland@redhat.com>
2792 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
2793 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
2795 2002-10-30 Jakub Jelinek <jakub@redhat.com>
2797 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
2798 32bit-predefine when creating .new32 list and -U for each
2799 32bit-predefine when creating .new64 list.
2800 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
2802 2002-10-29 Andreas Schwab <schwab@suse.de>
2804 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
2805 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
2807 2002-10-25 Roland McGrath <roland@redhat.com>
2809 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
2810 * sysdeps/unix/sysv/linux/configure: Regenerated.
2812 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
2813 _dl_starting_up decl.
2815 2002-10-20 H.J. Lu <hjl@gnu.org>
2817 * sysdeps/unix/sysv/linux/configure.in: Don't check
2818 /lib/modules/`uname -r`/build/include for kernel headers if
2820 * sysdeps/unix/sysv/linux/configure: Regenerated.
2822 2002-10-25 Roland McGrath <roland@redhat.com>
2824 * math/math.h (M_LOG2El): Correct the value.
2825 From Stephen L Moshier <steve@moshier.net>.
2827 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
2828 conditional from __libc_multiple_libcs access. Remove kludge for weak
2829 symbol access with old compilers we no longer support.
2830 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
2831 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
2833 2002-10-25 Roland McGrath <roland@redhat.com>
2835 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
2836 implement SV_RESETHAND by translating it to SA_RESETHAND.
2838 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
2840 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
2841 type on ELF64 platforms.
2843 2002-10-24 Ulrich Drepper <drepper@redhat.com>
2845 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
2847 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
2849 2002-10-24 Jakub Jelinek <jakub@redhat.com>
2851 * elf/dl-misc.c: Include <sysdep.h>.
2852 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
2854 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
2855 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2856 (INLINE_SYSCALL): Use that.
2857 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
2858 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2859 (INLINE_SYSCALL): Use that.
2860 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
2861 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2862 (INLINE_SYSCALL): Use that.
2863 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
2865 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
2866 (__INTERNAL_SYSCALL_STRING): Define.
2867 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
2869 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
2870 (__INTERNAL_SYSCALL_STRING): Define.
2871 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
2872 __SYSCALL_STRING to inline_syscall*.
2873 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
2875 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
2876 inline_syscall4, inline_syscall5, inline_syscall6): Add string
2879 2002-10-24 Roland McGrath <roland@redhat.com>
2881 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
2882 * sysdeps/unix/sysv/linux/init-first.c: Not here.
2883 * sysdeps/powerpc/elf/libc-start.c: Or here.
2884 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
2885 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
2886 * sysdeps/unix/sysv/aix/init-first.c: Or here.
2887 * sysdeps/generic/libc-start.c: Or here.
2888 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
2889 access with [! SHARED].
2890 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
2892 * libio/bug-wfflush.c: New file.
2893 * libio/Makefile (tests): Add bug-wfflush.
2895 2002-10-23 Roland McGrath <roland@redhat.com>
2897 * stdio-common/tst-fphex.c: New file.
2898 * stdio-common/Makefile (tests): Add tst-fphex.
2899 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
2900 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
2901 chars always before the value digits.
2902 Reported by James Antill <james.antill@redhat.com>.
2904 2002-10-24 Jakub Jelinek <jakub@redhat.com>
2906 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
2907 (free_mem): New function.
2908 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
2909 if not cross compiling.
2910 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
2911 (bug-regex14-ENV): Set.
2912 (bug-regex14-mem): New target.
2913 * posix/bug-regex14.c: New file.
2915 2002-10-23 Roland McGrath <roland@redhat.com>
2917 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
2918 target, so we don't touch it when the link fails.
2920 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
2921 Check for the result overflowing off_t and fail with EOVERFLOW.
2922 * libio/ioftell.c (_IO_ftell): Likewise.
2923 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
2925 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
2926 use a temporary timeval on the stack for gettimeofday and copy it.
2927 * login/logout.c (logout): Likewise.
2928 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
2930 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
2931 Use __SWORD_TYPE instead of int for member types.
2932 (struct statfs64): Likewise.
2933 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
2934 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
2935 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
2936 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
2937 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
2939 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
2940 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
2941 (ST_NODIRATIME): Restore fixed value of 2048.
2942 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
2943 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
2945 Rearranged <bits/types.h> definitions to reduce duplication.
2946 * sysdeps/generic/bits/types.h: Rewritten, using macros from
2947 <bits/wordsize.h> and new header <bits/typesizes.h>.
2948 * posix/Makefile (headers): Add bits/typesizes.h here.
2949 * sysdeps/generic/bits/typesizes.h: New file.
2950 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
2951 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
2952 * sysdeps/mach/hurd/bits/typesizes.h: New file.
2953 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
2954 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
2955 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
2956 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
2957 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
2958 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
2959 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
2960 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
2961 <bits/pthreadtypes.h> here, not in <bits/types.h>.
2962 * signal/signal.h: Likewise.
2964 * streams/stropts.h: Include <bits/xtitypes.h>.
2965 * streams/Makefile (headers): Add bits/xtitypes.h here.
2966 * sysdeps/generic/bits/xtitypes.h: New file.
2967 * sysdeps/s390/bits/xtitypes.h: New file.
2968 * sysdeps/ia64/bits/xtitypes.h: New file.
2969 * sysdeps/x86_64/bits/xtitypes.h: New file.
2971 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
2972 * sysdeps/generic/bits/ipctypes.h: New file.
2973 * sysdeps/mips/bits/ipctypes.h: New file.
2974 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
2975 * sysdeps/gnu/bits/msq.h: Likewise.
2976 * sysvipc/sys/ipc.h: Likewise.
2978 2002-10-22 Ulrich Drepper <drepper@redhat.com>
2980 * elf/dl-load.c (struct filebuf): For buf element to have the
2981 alignment of ElfXX_Ehdr since this is what will be stored in it.
2983 2002-10-22 Jakub Jelinek <jakub@redhat.com>
2985 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
2986 into pointer to locrec_offset.
2987 (add_locale_to_archive): Adjust callers. Free normalized_name right
2988 before returning, not immediately after add_locale, pass it to
2989 add_alias if not NULL instead of name. Rename second normalized_name
2990 occurence to nnormalized_codeset_name.
2992 * locale/programs/locarchive.c (enlarge_archive): Make sure
2993 string_size is always a multiple of 4.
2994 Reported by Andreas Schwab <schwab@suse.de>.
2996 2002-10-21 Andreas Schwab <schwab@suse.de>
2998 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
2999 caller to EXTRA instead of execve, since the latter has a
3000 higher-priority implementation in linuxthreads.
3002 2002-10-21 Roland McGrath <roland@redhat.com>
3004 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
3005 slotinfo list's len member to the proper size, not just 1.
3006 Initialize static_map.l_tls_initimage.
3008 * elf/dl-open.c (dl_open_worker): Fix loop searching for
3009 dtv_slotinfo_list element containing new modules' l_tls_modid.
3011 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
3012 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
3013 * elf/Makefile (tests): Add tst-tls9.
3014 (tests-static): Add tst-tls9-static.
3015 (tst-tls9-static-ENV): New variable.
3016 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
3018 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
3019 modids used by partially loaded modules being closed can't be known.
3021 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
3023 * posix/Makefile: Add a test case for the bug reported by Aharon
3024 Robbins <arnold@skeeve.com>.
3025 * posix/bug-regex13.c: New file.
3026 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
3028 2002-10-21 Ulrich Drepper <drepper@redhat.com>
3030 * csu/gmon-start.c: Pretty printing.
3032 2002-10-19 Art Haas <ahaas@neosoft.com>
3034 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
3035 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
3036 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
3037 * configure: Regenerated.
3039 2002-10-19 Roland McGrath <roland@redhat.com>
3041 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
3042 and then set $subdirs directly, because the new Autoconf breaks
3043 compatibility in every way imaginable and insists on whining
3044 about usage that worked since the dawn of time.
3045 * configure: Regenerated.
3047 * configure: Regenerated (using Autoconf 2.54).
3048 * sysdeps/alpha/elf/configure: Likewise.
3049 * sysdeps/generic/configure: Likewise.
3050 * sysdeps/i386/elf/configure: Likewise.
3051 * sysdeps/ia64/elf/configure: Likewise.
3052 * sysdeps/mach/hurd/configure: Likewise.
3053 * sysdeps/mach/configure: Likewise.
3054 * sysdeps/unix/configure: Likewise.
3055 * sysdeps/unix/common/configure: Likewise.
3056 * sysdeps/unix/sysv/aix/configure: Likewise.
3057 * sysdeps/unix/sysv/linux/configure: Likewise.
3058 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
3059 * sysdeps/x86_64/elf/configure: Likewise.
3061 * config.make.in: Nix completely-soft nonsense.
3062 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
3063 of machine directories instead of fpu subdirectory.
3064 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
3065 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
3066 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
3067 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
3068 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
3069 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
3070 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
3071 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
3072 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
3073 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
3074 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
3075 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
3076 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
3077 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
3078 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
3079 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
3080 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
3081 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
3082 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
3083 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
3084 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
3085 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
3086 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
3087 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
3088 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
3089 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
3090 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
3091 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
3092 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
3093 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
3094 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
3095 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
3096 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
3097 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
3098 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
3099 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
3100 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
3101 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
3102 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
3103 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
3105 2002-10-19 Bruno Haible <bruno@clisp.org>
3107 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
3109 2002-10-18 Roland McGrath <roland@redhat.com>
3111 * io/Makefile (routines): Add lchmod.
3112 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
3113 * sysdeps/generic/lchmod.c: New file.
3114 * sysdeps/mach/hurd/lchmod.c: New file.
3115 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
3117 2002-10-18 Art Haas <ahaas@neosoft.com>
3119 * configure.in: Remove remaining AC_FD_CC macros, and replace
3120 AC_FD_MSG with AS_MESSAGE_FD.
3122 2002-10-18 Roland McGrath <roland@redhat.com>
3124 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
3125 typos: VALUE -> FINALADDR.
3127 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
3128 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
3129 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
3130 (inline_syscall6): Move these macros ...
3131 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
3133 * configure.in (libc_link_dests, libc_link_sources): Remove these
3134 variables and the AC_LINK_FILES call.
3136 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
3137 change to put new symbols here instead of in GLIBC_2.2.
3138 * sysdeps/powerpc/Subdirs: Move this file ...
3139 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
3141 2002-10-07 Roland McGrath <roland@redhat.com>
3143 * sysdeps/generic/bits/time.h: Replaced with contents of the
3144 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
3145 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
3146 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
3147 macros is ok even for architectures that don't now implement them.
3148 * sysdeps/mach/hurd/bits/time.h: File removed.
3149 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
3150 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
3151 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
3152 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
3153 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
3155 2002-10-18 Jeff Bailey <jbailey@gnu.org>
3157 * configure.in: Replace obsolete AC_OUTPUT syntax with
3158 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
3160 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
3161 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
3163 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
3164 * sysdeps/alpha/elf/configure.in: Likewise.
3165 * sysdeps/i386/elf/configure.in: Likewise.
3166 * sysdeps/mach/hurd/configure.in: Likewise.
3167 * sysdeps/x86_64/elf/configure.in: Likewise.
3169 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
3171 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
3172 * sysdeps/generic/configure.in: Likewise.
3173 * sysdeps/i386/elf/configure.in: Likewise.
3174 * sysdeps/ia64/elf/configure.in: Likewise.
3175 * sysdeps/mach/configure.in: Likewise.
3176 * sysdeps/mach/hurd/configure.in: Likewise.
3177 * sysdeps/unix/configure.in: Likewise.
3178 * sysdeps/unix/common/configure.in: Likewise.
3179 * sysdeps/unix/sysv/aix/configure.in: Likewise.
3180 * sysdeps/unix/sysv/linux/configure.in: Likewise.
3181 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
3182 * sysdeps/x86_64/elf/configure.in: Likewise.
3184 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
3185 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
3186 that it's obvious when extra autoconf machinery is being dragged in.
3188 2002-10-18 Roland McGrath <roland@redhat.com>
3190 * configure.in: Remove bogus echo included in
3191 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
3192 * configure: Regenerated.
3194 2002-10-18 Jakub Jelinek <jakub@redhat.com>
3196 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
3197 (statfs_filesize_max): New function.
3198 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
3199 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
3200 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
3201 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
3202 statfs_filesize_max.
3203 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3204 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
3205 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
3207 2002-10-17 Roland McGrath <roland@redhat.com>
3209 * configure.in (MIG): Just AC_SUBST it here.
3210 * configure: Regenerated.
3211 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
3212 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
3213 * sysdeps/mach/configure: Regenerated.
3215 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
3216 and AC_PROVIDE([_AS_CR_PREPARE]).
3218 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
3219 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
3221 * elf/dl-support.c: Move _dl_tls_* variables to ...
3222 * sysdeps/generic/libc-tls.c: ... here.
3224 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
3225 allow IDX to be one past the current last slotinfo entry.
3226 (_dl_close): Pass IMAP->l_init_called for that parameter.
3228 2002-10-07 Andreas Schwab <schwab@suse.de>
3230 * aclocal.m4: Fix for autoconf 2.53.
3231 * configure.in: Likewise. Require autoconf 2.53.
3233 2002-10-08 Richard Henderson <rth@redhat.com>
3235 * soft-fp/op-4.h: Handle carry correctly in
3236 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
3237 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
3238 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
3240 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
3242 * configure.in: Compute completely-soft.
3243 * config.make.in: Make completely-soft available to sub-makes.
3244 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
3245 gcc-double-routines. Add sim-full.c. Add fenv_const and
3246 fe_nomask to libm-support.
3247 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
3248 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
3249 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
3250 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
3251 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
3252 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
3253 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
3254 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
3255 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
3256 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
3257 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
3258 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
3259 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
3260 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
3261 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
3262 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
3263 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
3264 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
3265 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
3266 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
3268 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
3269 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
3270 FP_HANDLE_EXCEPTIONS.
3271 Define FP_ROUNDMODE.
3272 Redefine FP_* macros to correspond to the FE_* bit positions.
3273 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
3274 Define externs for __sim_exceptions, __sim_disabled_exceptions,
3275 __sim_round_mode, __simulate_exceptions.
3276 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
3277 * sysdeps/powerpc/bits/fenv.h: ...to here.
3279 2002-10-06 Jakub Jelinek <jakub@redhat.com>
3281 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3282 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
3283 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
3284 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
3287 2002-10-15 Jakub Jelinek <jakub@redhat.com>
3289 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
3290 __libc_res_nsend): New prototypes.
3291 * resolv/res_query.c (QUERYSIZE): Define.
3292 (__libc_res_nquery): Renamed from res_nquery. Added answerp
3293 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
3294 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
3295 res_nsend, pass answerp.
3296 (res_nquery): Changed into wrapper around __libc_res_nquery.
3297 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
3298 argument. Call __libc_res_nquerydomain and __libc_res_nquery
3299 instead of the non-__libc_ variants, pass them answerp.
3300 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
3301 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
3302 Added answerp argument. Call __libc_res_nquery instead of
3303 res_nquery, pass answerp.
3304 (res_nquerydomain): Changed into wrapper around
3305 __libc_res_nquerydomain.
3306 * resolv/res_send.c: Include sys/ioctl.h.
3307 (MAXPACKET): Define.
3308 (send_vc): Change arguments. Reallocate answer buffer if it is
3310 (send_dg): Likewise.
3311 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
3312 Reallocate answer buffer if it is too small and hooks are in use.
3313 Adjust calls to send_vc and send_dg.
3314 (res_nsend): Changed into wrapper around __libc_res_nsend.
3315 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
3316 just 1K answer buffer on the stack, use __libc_res_nsearch instead
3318 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
3319 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3320 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
3321 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
3322 (gethostbyaddr): Similarly with __libc_res_nquery.
3323 * resolv/Versions (libresolv): Export __libc_res_nquery and
3324 __libc_res_nsearch at GLIBC_PRIVATE.
3326 2002-10-17 Roland McGrath <roland@redhat.com>
3328 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
3329 * configure: Regenerated.
3331 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
3332 before performing the reloc, not after.
3333 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3335 2002-10-17 Ulrich Drepper <drepper@redhat.com>
3337 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
3338 * locale/programs/linereader.c (lr_open): Likewise.
3339 * locale/programs/charmap-dir.c (charmap_open): Likewise.
3340 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
3342 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
3344 * posix/bug-regex11.c: Add a test case for the bug reported by
3345 Paolo Bonzini <bonzini@gnu.org>.
3346 * posix/regexec.c (sift_states_bkref): Use correct destination of
3349 2002-10-17 Roland McGrath <roland@redhat.com>
3351 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
3352 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
3353 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
3354 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
3355 Call it after performing TPOFF relocs.
3356 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3357 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3358 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
3360 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
3361 when closing a partially-initialized object.
3363 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
3364 instead of _dl_fatal_printf when we see PT_TLS.
3366 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
3367 instead of $(libof-$<).
3369 2002-10-16 Roland McGrath <roland@redhat.com>
3371 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
3372 instead of += to append, to be sure $(lib) gets expanded at defn time.
3373 (libof-$(cpp-src)): New variable, define this instead.
3374 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
3375 (lib): Don't use override.
3376 (CPPFLAGS-$(lib)): New variable, put -D's here.
3377 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
3378 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
3379 LIB found by $(libof-*) for basename, target, or source.
3380 * Makerules (CPPFLAGS-nonlib): New variable.
3381 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
3382 * locale/Makefile (lib): Likewise.
3383 * sunrpc/Makefile (lib): Likewise.
3385 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
3386 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
3387 * sysdeps/unix/sysv/linux/pathconf.h: New file.
3388 (statfs_link_max): New function, guts from fpathconf.c.
3389 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
3390 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3391 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
3392 to use the linux/pathconf.c code by #include rather than duplication.
3393 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
3395 2002-10-16 Jakub Jelinek <jakub@redhat.com>
3397 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3398 Use __libc_errno only for libc itself.
3400 2002-10-16 Andreas Jaeger <aj@suse.de>
3402 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
3404 2002-10-16 Ulrich Drepper <drepper@redhat.com>
3406 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3407 Use __libc_errno only for libc itself.
3409 2002-10-15 Roland McGrath <roland@redhat.com>
3410 Jakub Jelinek <jakub@redhat.com>
3412 * sysdeps/unix/sysv/linux/Makefile
3413 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
3414 sparc/Makefile to produce a bi-arch file as needed.
3415 That's now parameterized by the variable $(64bit-predefine).
3416 Use LC_ALL=C for `comm' commands in that rule.
3417 No longer conditional on [$(no_syscall_list_h)].
3418 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
3419 (64bit-predefine): New variable.
3420 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
3421 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3422 * sysdeps/unix/sysv/linux/powerpc/Makefile
3423 (64bit-predefine): New variable.
3425 2002-10-15 Roland McGrath <roland@redhat.com>
3427 * sysdeps/unix/sysv/linux/Makefile
3428 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
3430 * login/utmp-private.h: Declare __libc_utmp_lock.
3431 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
3432 and call __libc_utmp_jump_table functions directly, instead of using
3435 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
3436 * sysdeps/unix/sysv/linux/configure: Regenerated.
3438 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
3439 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
3440 Use int32_t for ll_time.
3441 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
3442 Use int32_t instead of long int for ut_session.
3443 Use an anonymous struct with 32-bit fields for ut_tv.
3444 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
3445 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
3446 here as in utmp.h for `struct utmp'.
3447 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
3448 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
3449 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
3450 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
3451 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
3452 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
3454 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
3455 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
3456 All the following files were identical or equivalent to it.
3457 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
3458 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
3459 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
3460 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
3461 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
3462 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
3463 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
3464 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
3465 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
3466 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
3468 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
3469 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
3470 Other than the previously incorrect sign of msg_iovlen, this is a
3471 no-op on 32-bit platforms. On 64-bit platforms it makes this header
3472 match their layouts as well, so the following are now identical to it.
3473 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
3474 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
3475 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
3476 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
3477 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
3479 2002-10-15 Ulrich Drepper <drepper@redhat.com>
3481 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
3482 Define for 2.4+ kernels.
3484 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
3485 are known to have the vfork syscall. Don't confuse the CPUs
3486 branch prediction unit by jumping to the return address.
3488 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
3489 support for reiserfs and xfs.
3491 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
3493 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
3495 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
3497 2002-10-16 Jakub Jelinek <jakub@redhat.com>
3499 * include/libc-symbols.h (attribute_tls_model_ie): Define.
3500 * include/errno.h (errno): Define to __libc_errno in libc.so.
3501 Add attribute_tls_model_ie.
3502 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
3503 Add attribute_tls_model_ie.
3504 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
3505 attribute_tls_model_ie.
3506 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
3508 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
3510 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
3511 attribute_tls_model_ie.
3512 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
3514 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
3515 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
3516 __libc_errno in USE___THREAD case.
3517 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3519 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
3520 __attribute__((tls_model (""))).
3521 * configure: Rebuilt.
3522 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
3524 2002-10-15 Ulrich Drepper <drepper@redhat.com>
3526 * timezone/asia: Update from tzdata2002d.
3527 * timezone/australasia: Likewise.
3528 * timezone/iso3166.tab: Likewise.
3529 * timezone/southamerica: Likewise.
3530 * timezone/zone-tab: Likewise.
3532 2002-10-15 Roland McGrath <roland@redhat.com>
3534 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
3535 Adjust TCB pointer before calling free, so we get the whole block.
3537 2002-10-14 Roland McGrath <roland@redhat.com>
3539 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
3540 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
3541 extern using attribute_hidden instead of static, avoids warning.
3543 2002-10-09 Jakub Jelinek <jakub@redhat.com>
3545 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
3546 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3548 2002-10-14 Ulrich Drepper <drepper@redhat.com>
3550 * po/sv.po: Update from translation team.
3552 2002-10-12 H.J. Lu <hjl@gnu.org>
3554 * sunrpc/thrsvc.c (PROCQUIT): New.
3555 (struct rpc_arg): New.
3556 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
3557 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
3558 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
3559 (main): Modified for struct rpc_arg *.
3561 2002-10-14 Ulrich Drepper <drepper@redhat.com>
3563 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
3565 2002-10-14 Jakub Jelinek <jakub@redhat.com>
3567 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
3568 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
3569 in ld.so even if __thread is supported.
3571 2002-10-13 Jakub Jelinek <jakub@redhat.com>
3573 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
3574 Add hack to prevent the compiler from clobbering the signal context.
3575 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
3577 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
3580 2002-10-14 Andreas Jaeger <aj@suse.de>
3582 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
3583 Guido Guenther <agx@sigxcpu.org>.
3585 2002-10-14 Ulrich Drepper <drepper@redhat.com>
3587 * po/sk.po: Update from translation team.
3589 2002-09-26 Roland McGrath <roland@redhat.com>
3591 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
3593 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
3594 DL_DST_LIB based on $(slibdir).
3596 2002-10-13 Roland McGrath <roland@frob.com>
3598 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
3600 * sysdeps/mach/hurd/getresuid.c: New file.
3601 * sysdeps/mach/hurd/getresgid.c: New file.
3602 * sysdeps/mach/hurd/setresuid.c: New file.
3603 * sysdeps/mach/hurd/setresgid.c: New file.
3605 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
3606 setresgid): Declare them.
3609 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
3610 add libc_hidden_proto.
3611 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
3612 getresuid, getresgid, setresuid, setresgid here.
3613 * Versions.def (libc): Define GLIBC_2.3.2 set.
3614 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
3615 Add libc_hidden_def.
3616 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
3617 * sysdeps/generic/setresgid.c: New file.
3618 * sysdeps/generic/setresuid.c: New file.
3619 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3620 (sysdep_routines): Don't add getresuid and getresgid here.
3621 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
3622 (sysdep_routines): Don't add setresuid and setresgid here.
3623 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
3624 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
3625 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3626 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
3627 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3628 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3629 * posix/Makefile (routines): Add them all here instead.
3630 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
3631 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
3632 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
3633 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
3634 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
3635 [! __NR_setresuid]: Include generic file.
3636 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
3637 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
3638 [! __NR_setresuid]: Include generic file.
3639 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
3640 Caller is - now, not EXTRA.
3641 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3642 (setresuid, setresgid, getresuid, getresgid): Likewise.
3643 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
3644 Add these calls here.
3645 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
3646 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3647 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3648 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3649 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
3651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3652 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3653 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3655 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3656 (sysdep_routines): Add setfsuid and setfsgid here.
3657 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
3658 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
3659 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
3660 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
3661 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3662 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
3663 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3664 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3666 * hurd/errno.c: Renamed to ...
3667 * hurd/errno-loc.c: ... this.
3668 * hurd/Makefile (routines): errno -> errno-loc
3670 2002-10-13 Ulrich Drepper <drepper@redhat.com>
3672 * po/de.po: Update from translation team.
3674 * MakeTAGS: Add -E flag to xgettext runs.
3676 2002-10-12 Ulrich Drepper <drepper@redhat.com>
3678 * po/fr.po: Update from translation team.
3680 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
3681 Optimize a bit for use in glibc.
3683 2002-10-12 Roland McGrath <roland@redhat.com>
3685 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
3686 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
3688 2002-10-12 Ulrich Drepper <drepper@redhat.com>
3690 * po/sv.po: Update from translation team.
3692 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
3694 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
3696 (regfree): Likewise.
3697 (create_initial_state): Likewise.
3698 (analyze): Remove the substitutions which became useless.
3699 (calc_first): Likewise.
3700 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
3701 epsilon destination.
3702 (duplicate_node_closure): New function.
3703 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
3704 (calc_inveclosure): Likewise.
3705 (calc_eclosure): Likewise.
3706 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
3707 direct invocation of duplicate_node.
3708 (parse): Don't use comma operator in the return to avoid compiler
3710 (parse_reg_exp): Likewise.
3711 (parse_branch): Likewise.
3712 (parse_expression): Likewise.
3713 (parse_sub_exp): Likewise.
3714 (parse_dup_op): Likewise.
3715 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
3716 which became useless.
3717 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
3718 (create_cd_newstate): Likewise.
3719 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
3720 (re_token_t): Likewise.
3721 (re_dfa_t): Likewise.
3722 (re_node_set_remove): New macro.
3723 * posix/regexec.c (check_matching): Remove the handling
3725 (check_halt_node_context): Likewise.
3726 (proceed_next_node): Likewise.
3727 (pop_fail_stack): Fix the memory leak.
3728 (set_regs): Likewise.
3729 (free_fail_stack_return): New function.
3730 (sift_states_backward): Fix the memory leak. Remove the handling
3732 (update_cur_sifted_state): Append some if clause to avoid redundant
3734 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
3736 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
3737 (check_subexp_limits): Likewise.
3738 (search_subexp): Likewise.
3739 (sift_states_bkref): Likewise.
3740 (transit_state_mb): Likewise.
3741 (transit_state_bkref_loop): Likewise.
3742 (transit_state_bkref_loop): Likewise.
3743 (group_nodes_into_DFAstates): Likewise.
3744 (check_node_accept): Likewise.
3745 (sift_ctx_init): Add initializing.
3747 2002-10-12 Ulrich Drepper <drepper@redhat.com>
3749 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
3752 2002-10-11 Ulrich Drepper <drepper@redhat.com>
3754 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
3755 duplicated variable c.
3757 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
3760 * sysdeps/unix/sysv/linux/i386/sysdep.h
3761 (INTERNAL_SYSCALL_ERROR_P): New define.
3762 (INTERNAL_SYSCALL_ERRNO): Likewise.
3764 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
3765 Add hack to prevent the compiler from clobbering the signal context.
3767 2002-10-11 Roland McGrath <roland@redhat.com>
3769 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3772 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
3773 * sysdeps/sh/dl-lookupcfg.h: File removed.
3774 * sysdeps/i386/dl-lookupcfg.h: File removed.
3776 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
3777 missing labels and ; from last change.
3779 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
3780 number literals, so they are doubles instead of ints.
3782 2002-10-09 Roland McGrath <roland@redhat.com>
3784 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
3785 changed from [USE_TLS && HAVE___THREAD].
3787 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
3788 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
3789 * sysdeps/x86_64/dl-machine.h
3790 (elf_machine_type_class, elf_machine_rela): Likewise.
3791 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
3794 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
3795 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
3796 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
3798 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
3799 instead of ___tls_get_addr.
3800 (___tls_get_addr_internal): Add attribute_hidden to decl.
3802 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
3803 _dl_error_catch_tsd.
3804 * elf/rtld.c (startup_error_tsd): New function.
3805 (dl_main): Point _dl_error_catch_tsd at that.
3806 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
3807 use new function pointer instead.
3808 * elf/dl-tsd.c: New file.
3809 * elf/Makefile (routines): Add it.
3811 2002-10-07 Roland McGrath <roland@redhat.com>
3813 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
3814 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
3815 take _dl_load_lock around calling __writev.
3817 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
3818 (INLINE_SYSCALL): Use that.
3820 * sysdeps/generic/dl-sysdep.h: New file.
3821 * sysdeps/mach/hurd/dl-sysdep.h: New file.
3822 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
3823 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
3824 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
3826 * elf/dl-minimal.c (__errno_location): Removed.
3827 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
3828 Use GOTOFF access for errno.
3829 * sysdeps/unix/sysv/linux/i386/sysdep.h
3830 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
3832 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
3833 Use PC-relative access for errno.
3834 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
3835 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
3837 * include/tls.h: New file.
3838 (USE___THREAD): New macro.
3839 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
3841 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
3842 changed from [USE_TLS && HAVE___THREAD].
3843 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3844 * sysdeps/unix/i386/sysdep.S: Likewise.
3845 * sysdeps/unix/x86_64/sysdep.S: Likewise.
3846 * include/errno.h: Likewise.
3847 * include/netdb.h: Likewise.
3848 * include/resolv.h: Likewise.
3850 * sysdeps/generic/errno.c: New file.
3851 * csu/Makefile (aux): New variable, list errno.
3852 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
3853 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3854 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
3855 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3856 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3857 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
3858 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
3859 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
3860 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
3861 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
3862 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
3863 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
3864 * sysdeps/unix/alpha/sysdep.S: Likewise.
3865 * sysdeps/generic/start.c: Likewise.
3866 * sysdeps/unix/start.c: Likewise.
3867 * sysdeps/unix/arm/start.c: Likewise.
3868 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
3869 * sysdeps/unix/sparc/start.c: Likewise.
3870 * sysdeps/unix/sysv/irix4/start.c: Likewise.
3871 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
3873 * manual/search.texi (Tree Search Function, Hash Search Function):
3874 Mention search.h clearly.
3876 2002-10-05 Roland McGrath <roland@redhat.com>
3878 * elf/dl-fxstat64.c: File removed.
3879 * elf/dl-xstat64.c: File removed.
3880 * elf/Makefile (rtld-routines): Remove them.
3881 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
3882 Instead, use strong_alias instead of versioned_symbol in the
3884 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3885 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3887 * include/shlib-compat.h
3888 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
3889 [! NOT_IN_libc] (IS_IN_libc): Define it.
3890 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
3891 * elf/Makefile (CPPFLAGS-.os): Likewise.
3893 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
3894 Return the status instead of calling exit.
3896 * Makeconfig (CFLAGS): Prepend -std=gnu99.
3897 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
3898 Remove superfluous rm command, whose @ plus make bugs hid
3899 all these commands from the make output.
3901 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
3902 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
3903 Use that file's contents instead of literal echo's for the prologue.
3904 * include/features.h: Include <gnu/stubs.h> unconditionally.
3905 * include/gnu/stubs.h: New file.
3907 2002-09-30 Roland McGrath <roland@redhat.com>
3909 * elf/rtld-Rules: New file.
3910 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
3911 $(objpfx)rtld-libc.a): New targets.
3912 (generated): Add them.
3913 (reloc-link): Remove -o $@ from the variable.
3914 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
3915 (distribute): Add rtld-Rules.
3916 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
3917 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
3918 (common-mostlyclean, common-clean): Clean up rtld-* files.
3919 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
3921 2002-10-11 Roland McGrath <roland@redhat.com>
3923 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
3924 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
3926 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
3927 proper set of no-op insn prefixes.
3929 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
3931 2002-10-11 Ulrich Drepper <drepper@redhat.com>
3933 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
3934 __pthread_kill_other_threads_np.
3936 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
3938 2002-10-08 Roland McGrath <roland@redhat.com>
3940 * locale/newlocale.c (__newlocale): If setting all categories to "C",
3941 just return &_nl_C_locobj instead of copying it.
3942 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
3943 * locale/duplocale.c (__duplocale): Likewise.
3945 2002-10-07 Roland McGrath <roland@frob.com>
3947 * config.h.in (HAVE_I386_SET_GDT): New #undef.
3948 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
3949 * sysdeps/mach/configure: Regenerated.
3951 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
3954 Add all necessary register outputs for syscall-clobbered registers.
3956 2002-10-02 David Mosberger <davidm@hpl.hp.com>
3958 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
3959 Itanium 2 (and Itanium).
3960 Fix unwind directives and make it fit in 80 columns.
3961 * sysdeps/ia64/memset.S: Likewise.
3962 * sysdeps/ia64/memcpy.S: Likewise.
3963 Move jump table to .rodata section.
3965 2002-10-03 Roland McGrath <roland@frob.com>
3967 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
3970 2002-10-10 Andreas Jaeger <aj@suse.de>
3972 * sysdeps/x86_64/_mcount.S: Restore correct registers.
3974 2002-10-10 Ulrich Drepper <drepper@redhat.com>
3976 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
3978 2002-10-09 Ulrich Drepper <drepper@redhat.com>
3980 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
3981 _dl_allocate_tls_init. Add rtld_hidden_proto.
3982 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
3984 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
3986 * version.h (VERSION): Bump to 2.3.1.
3988 * Make-dist: Add back one of the tar invocations removed before.
3990 * stdlib/Makefile (distribute): Add allocalim.h.
3992 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
3993 (__libc_tsd_address): Use correct variable name.
3994 Patch by Stefan Jones <stefan.jones@multigig.com>.
3996 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
3997 Reported by edwardsg@sgi.com [PR libc/4678].
3999 * Versions.def (libc): Add GLIBC_2.3.1.
4000 (libpthread): Add GLIBC_2.3.1.
4002 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
4004 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
4005 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
4007 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
4008 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
4010 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
4011 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
4012 and make old name an alias.
4013 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
4014 and make old name an alias.
4015 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
4018 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
4019 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
4021 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
4023 * sysdeps/posix/readv.c: Likewise
4024 * sysdeps/unix/sysv/aix/readv.c: Likewise.
4025 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4026 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
4028 * sysdeps/posix/writev.c: Likewise
4029 * sysdeps/unix/sysv/aix/writev.c: Likewise.
4030 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4032 * include/sys/wait.h: Declare __waitid.
4033 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
4034 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
4036 * sysdeps/posix/waitid.c: Likewise.
4037 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
4039 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
4041 2002-10-07 Jakub Jelinek <jakub@redhat.com>
4043 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
4045 (__MAX_ALLOCA_CUTOFF): Define.
4046 Include allocalim.h.
4047 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
4048 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
4049 host_buffer depending on __libc_use_alloca.
4050 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
4051 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
4052 net_buffer depending on __libc_use_alloca.
4053 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
4054 buf depending on __libc_use_alloca.
4055 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
4056 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
4057 instead of hardcoded constants.
4058 Pass proper size argument to alloca and compute end for wide char
4060 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
4061 instead of hardcoded constants.
4062 * string/strcoll.c (strcoll): Likewise.
4063 * string/strxfrm.c (strxfrm): Likewise.
4064 * sysdeps/posix/readv.c (__readv): Likewise.
4065 * sysdeps/posix/writev.c (__writev): Likewise.
4066 * sysdeps/generic/allocalim.h: New file.
4068 2002-10-08 Roland McGrath <roland@redhat.com>
4070 * configure.in (aux_missing warning): Change "too old" to
4071 "incompatible versions", since for autoconf it's "too new" right now.
4072 * configure: Regenerated.
4074 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
4075 one found doesn't work on our configure.in.
4076 * configure: Regenerated.
4077 * config.make.in (AUTOCONF): New substituted variable.
4078 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
4079 (autoconf-it): ... here, use that instead of defining conditionally.
4080 Use $(AUTOCONF) instead of literal autoconf.
4081 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
4082 with this condition.
4083 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
4085 2002-10-08 Ulrich Drepper <drepper@redhat.com>
4087 * Make-dist (dist): Cleanup a bit. We are not interested in the
4088 14 char filename limit anymore. Remove intermediate files and
4091 2002-10-05 Ulrich Drepper <drepper@redhat.com>
4093 * po/sk.po: Update from translation team.
4094 * po/tr.po: Likewise.
4095 * po/gl.po: Likewise.
4097 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4099 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
4101 2002-10-03 Ulrich Drepper <drepper@redhat.com>
4103 * version.h (RELEASE): Change to stable.
4105 2002-10-03 Jakub Jelinek <jakub@redhat.com>
4107 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
4108 __syscall_exit_group): New prototypes.
4110 2002-10-03 Ulrich Drepper <drepper@redhat.com>
4112 * glibc 2.3 released.
4115 See ChangeLog.13 for earlier changes.