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