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