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