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