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