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