1 2004-03-12 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
5 * posix/getconf.c (vars): Add _SC_ values for cache information.
6 * sysdeps/generic/bits/confname.h: Add _SC_* values for cache
8 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Reorganize to
9 allow yet another sysconf function to include the one in this file.
10 * sysdeps/unix/sysv/linux/i386/sysconf.c: New file.
11 * sysdeps/generic/sysconf.c: Add default handling for cache line info.
13 2004-03-11 Ulrich Drepper <drepper@redhat.com>
15 * sysdeps/posix/sysconf.c (__sysconf): Add missing support for
18 2004-03-10 Chris Heath <chris@heathens.co.nz>
20 * iconvdata/gconv.map: Add gconv_end (fixes memory leak).
22 2004-03-11 Jakub Jelinek <jakub@redhat.com>
24 * sysdeps/powerpc/powerpc32/__longjmp.S (JB_SIZE): Undefine before
25 including __longjmp-common.S again.
26 * sysdeps/powerpc/powerpc64/__longjmp.S (JB_SIZE): Likewise.
27 * sysdeps/powerpc/powerpc32/setjmp.S (JB_SIZE): Undefine before
28 including setjmp-common.S again.
29 * sysdeps/powerpc/powerpc64/setjmp.S (JB_SIZE): Likewise.
30 * sysdeps/powerpc/novmxsetjmp.h (__novmx__longjmp): Fix type of
31 first argument in the prototype.
32 * sysdeps/powerpc/longjmp.c (__vmx__longjmp, __vmx__libc_longjmp):
33 Remove bogus semicolons.
35 * sysdeps/s390/dl-tls.h: Only add __tls_get_offset assembly if
37 (__TLS_GET_ADDR): Use __tls_get_offset, not __tls_get_addr.
39 2004-03-11 Ulrich Drepper <drepper@redhat.com>
41 * resolv/ns_ttl.c: Don't add ns_parse_ttl for libresolv.so.
43 2004-03-10 Ulrich Drepper <drepper@redhat.com>
45 * sysdeps/generic/errno.c: Include <dl-sysdep.h>. Use
46 RTLD_PRIVATE_ERRNO to decide whether errno compat symbols are needed.
48 * elf/dl-sym.c: Unify _dl_sym and _dl_vsym code and make the entry
49 points wrappers around the unified code.
51 2004-03-11 Richard Henderson <rth@redhat.com>
53 * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (kernel_stat64): New.
55 * sysdeps/unix/sysv/linux/alpha/fxstat.c: New file.
56 * sysdeps/unix/sysv/linux/alpha/lxstat.c: New file.
57 * sysdeps/unix/sysv/linux/alpha/xstat.c: New file.
58 * sysdeps/unix/sysv/linux/alpha/xstatconv.c (__xstat_conv): Add
59 code for _STAT_VER_GLIBC2_3_4.
60 (__libc_missing_axp_stat64): New.
61 * sysdeps/unix/sysv/linux/alpha/xstatconv.h: New file.
62 * sysdeps/unix/sysv/linux/alpha/bits/stat.h (__ST_TIME): New.
63 (_STAT_VER_GLIBC2_3_4, _STAT_VER_KERNEL64): New.
64 (struct stat, struct stat64): Update to new format.
65 (_STATBUF_ST_NSEC): New.
67 2004-03-11 Jakub Jelinek <jakub@redhat.com>
69 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
70 (__novec_swapcontext): Branch to novec_* labels.
72 2004-03-10 Ulrich Drepper <drepper@redhat.com>
74 * posix/getopt.c (_): Don't define here for glibc.
76 2004-03-10 Jakub Jelinek <jakub@redhat.com>
78 * include/libc-symbols.h [__ASSEMBLY__] (compat_text_section,
79 compat_data_section): Define.
80 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): Add
81 attribute_compat_text_section.
82 * sysdeps/unix/sysv/linux/alpha/wordexp.c (__old_wordexp): Likewise.
83 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob,
84 __old_globfree): Likewise.
85 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown_is_lchown):
87 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c
88 (__posix_fadvise64_l32): Likewise.
89 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Likewise.
90 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c
91 (__posix_fadvise64_l32): Likewise.
92 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (__old_semctl):
94 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl): Likewise.
95 * sysdeps/unix/sysv/linux/posix_fadvise64.c (__posix_fadvise64_l32):
97 * sysdeps/unix/sysv/linux/shmctl.c (__old_shmctl): Likewise.
98 * hurd/compat-20.c (_hurd_proc_init_compat_20): Likewise.
99 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
100 (__swapcontext, __novec_swapcontext): Use END instead of PSEUDO_END.
101 (__novec_swapcontext, __swapcontext_stub): Add compat_text_section.
102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
103 (__makecontext_stub): Likewise.
104 (__novec_makecontext): Likewise. Fix name in END () to match
106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
107 (__setcontext): Use END instead of PSEUDO_END.
108 (__novec_setcontext): Add compat_text_section. Use END instead of
109 PSEUDO_END, fix the name in END () to match function name.
110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
111 (__getcontext, __novec_getcontext): Use END instead of PSEUDO_END.
112 (__novec_getcontext, __getcontext_stub): Add compat_text_section.
114 2004-03-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
116 * sysdeps/sh/dl-machine.h: Don't use GL macro if not appropriate.
117 (COPY_UNALIGNED_WORD): Remove cast used as lvalue.
119 2004-03-10 Ulrich Drepper <drepper@redhat.com>
121 * sysdeps/i386/dl-procinfo.h (HWCAP_IMPORTANT): Remove mmx, add sse2.
123 2004-03-10 Richard Henderson <rth@redhat.com>
125 * sysdeps/generic/errno.c: Disable versioning for rtld.
127 * sysdeps/generic/Makefile (elf/shared): Add unwind-pe.
128 * sysdeps/generic/unwind-pe.c: New file.
129 * sysdeps/generic/unwind-pe.h: Only prototypes for _LIBC without
132 2004-03-10 Ulrich Drepper <drepper@redhat.com>
134 * include/libc-symbols.h: Define attribute_compat_text_section and
135 attribute_compat_data_section.
136 * io/ftw.c: Mark compat code with attribute_compat_text_section.
137 * libio/iofopncook.c: Likewise.
138 * libio/oldfileops.c: Likewise.
139 * libio/oldiofclose.c: Likewise.
140 * libio/oldiofdopen.c: Likewise.
141 * libio/oldiofgetpos.c: Likewise.
142 * libio/oldiofgetpos64.c: Likewise.
143 * libio/oldiofopen.c: Likewise.
144 * libio/oldiofsetpos.c: Likewise.
145 * libio/oldiofsetpos64.c: Likewise.
146 * libio/oldiopopen.c: Likewise.
147 * libio/oldpclose.c: Likewise.
148 * libio/oldtmpfile.c: Likewise.
149 * nptl/forward.c: Likewise.
150 * nss/getXXbyYY_r.c: Likewise.
151 * nss/getXXent_r.c: Likewise.
152 * posix/tst-vfork1.c: Likewise.
153 * stdlib/canonicalize.c: Likewise.
154 * stdlib/old_atexit.c: Likewise.
155 * sysdeps/generic/glob.c: Likewise.
156 * sysdeps/posix/posix_fallocate64.c: Likewise.
157 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
158 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
159 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
160 * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
161 * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
162 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
163 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
164 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
165 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
166 * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
167 * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
168 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
169 * posix/regexec.c: Likewise.
171 * sysdeps/unix/sysv/linux/i386/syscalls.list: vm86@@GLIBC_2.3.4
172 should be the default symbol. Having none misses the point.
174 2004-03-09 Ulrich Drepper <drepper@redhat.com>
176 * stdlib/qsort.c (_quicksort): Initialize first stack element [BZ #16].
178 2004-03-05 Jakub Jelinek <jakub@redhat.com>
180 * posix/regexec.c (regexec): Return with error on unknown eflags.
181 Replace weak_alias with versioned_symbol.
182 (__compat_regexec): New.
183 * posix/Versions (libc): Add regexec@GLIBC_2.3.4.
185 2004-03-09 Richard Henderson <rth@redhat.com>
187 * math/math.h (isgreater, isgreaterequal, isless, islessequal,
188 islessgreater, isunordered): Use builtins if available.
189 * sysdeps/i386/fpu/bits/mathinline.h: Don't define via builtins.
190 * sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
191 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
192 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
193 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
194 * sysdeps/alpha/fpu/bits/mathinline.h (isgreater, isgreaterequal,
195 isless, islessequal, islessgreater): Remove; use default.
196 (isunordered): Convert inputs to double.
198 2004-02-09 Jakub Jelinek <jakub@redhat.com>
200 * posix/Makefile (tests): Add tst-vfork2.
201 * posix/tst-vfork1.c (do_test): Fix comment.
202 * posix/tst-vfork2.c: New test.
204 2004-03-09 Ulrich Drepper <drepper@redhat.com>
206 * elf/dl-lookup.c (_dl_lookup_symbol_x): Fix possible NULL pointer
207 derefernce in error message. Pretty printing.
209 * po/nl.po: Update from translation team.
211 2004-03-08 Andreas Schwab <schwab@suse.de>
213 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't truncate
214 sysinfo pointer value.
216 2004-03-08 Paul Eggert <eggert@cs.ucla.edu>
218 Merge from gnulib. We now assume C89 or better.
219 * posix/getopt1.c (const): Remove.
220 * posix/getopt.c (const): Likewise.
221 * posix/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
222 _getopt_long_only_r, main): Use prototypes, not old-style definitions.
223 * posix/getopt.c (exchange, _getopt_initialize, _getopt_internal_r,
224 _getopt_internal, getopt, main): Likewise.
225 * posix/getopt.h (getopt, getopt_long, getopt_long_only): Likewise.
226 * posix/getopt.c [!defined VMS || !HAVE_STRING_H]:
227 Include <string.h> regardless. No need for <strings.h>.
228 [!defined _LIBC]: Include "gettext.h" rather than rolling it ourselves.
229 (_): Define to gettext always.
230 (my_index): Remove: all uses changed to strchr.
231 (strlen): Remove declaration.
232 * posix/getopt.h (struct option.name): Always const char *.
234 2004-03-08 Marcus Brinkmann <marcus@gnu.org>
236 * posix/getopt.h (_getopt_internal): Move to ...
237 * posix/getopt_int.h: ... here. New file.
238 * include/getopt_int.h: New file.
239 * include/getopt.h: Remove libc_hidden_proto for getopt_long
240 and getopt_long_only.
241 * posix/getopt1.c: Include "getopt_int.h". Remove
242 libc_hidden_def for getopt_long and getopt_long_only.
243 (_getopt_long_r, _getopt_long_only_r): New functions.
244 * posix/getopt.c: Include "getopt_int.h".
245 (__getopt_initialized): Variable removed.
246 (nextchar, ordering, posixly_correct, first_nonopt, last_nonopt):
247 Static variables removed.
248 (nonoption_flags_max_len, nonoption_flags_len) [_LIBC &&
249 USE_NONOPTION_FLAGS]: Static variables removed.
250 (getopt_data): New static variable.
251 (SWAP_FLAGS): Use d->__nonoption_flags_len instead
253 (exchange): Add new argument D of type struct getopt_data *.
254 Replace optind with d->optind, optarg with d->optarg, opterr with
255 d->opterr, optopt with d->optopt, nextchar with d->__nextchar,
256 first_nonopt with d->__first_nonopt, last_nonopt with
257 d->__last_nonopt, d->ordering with d->__ordering,
258 d->posixly_correct with d->__posixly_correct (which is now an
259 int instead a string, so fix users), nonoption_flags_len
260 with d->__nonoption_flags_len, nonoption_flags_max_len with
261 d->__nonoption_flags_max_len.
262 (_getopt_initialize): Likewise.
263 (_getopt_internal): Rename to ...
264 (_getopt_internal_r): ... this. Also add new argument D of type
265 struct getopt_data * and use of members of D rather than global or
266 static variables as described for exchange() above. Add new argument
267 to invocations of _getopt_initialize and exchange.
268 (_getopt_internal): Reimplement in terms of _getopt_internal_r.
269 * argp/argp-parse.c: Include <getopt_int.h>.
270 [_LIBC]: Do not include <bits/libc-lock.h>.
271 [!_LIBC && HAVE_CTHREADS_H]: Do not include <cthreads.h>.
272 [!_LIBC] (_argp_hang): Make static.
273 (getopt_lock, LOCK_GETOPT, UNLOCK_GETOPT): Remove.
274 (_argp_unlock_xxx): Remove.
275 (parser_init): Do not use LOCK_GETOPT.
276 (parser_finalize): Do not use UNLOCK_GETOPT.
277 (struct parser): New member OPT_DATA.
278 (parser_init): Initialize parser->opt_data. Use
279 parser->opt_data.opterr instead of opterr.
280 (parser_parse_opt): Use parser->opt_data.optarg instead optarg.
281 (parser_parse_next): Likewise. Use parser->opt_data.optind
282 instead optind. Use parser->opt_data.optopt instead of optopt.
283 Call _getopt_long_only_r and _getopt_long_r instead of
284 getopt_long_only and getopt_long, and pass the extra argument.
286 2004-03-09 Ulrich Drepper <drepper@redhat.com>
288 * iconv/gconv_db.c: Don't define lock as static. Rename to
289 __gconv_lock and export from the file.
290 * iconv/gconv_int.h: Declare __gconv_lock.
291 * libio/iofclose.c [_LIBC] (_IO_new_fclose): Lock gconv lock
292 before __gconv_release_step calls.
293 Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
295 * iconv/gconv_simple.c (internal_ucs4_loop): Fix typo in last change.
297 * posix/Makefile (tests): Add tst-vfork1.
298 * posix/tst-vfork1.c: New file.
300 2004-03-08 Ulrich Drepper <drepper@redhat.com>
302 * sysdeps/i386/dl-machine.h: Define ARCH_FIXUP_ATTRIBUTE and use
303 it in the fixup function declarations.
304 * elf/dl-runtime.c: If ARCH_FIXUP_ATTRIBUTE is not defined,
305 provide dummy definition. Use macro in fixup function
308 * sysdeps/unix/sysv/linux/i386/vfork.S: If SAVE_PID and
309 RESTORE_PID are defined, use it.
310 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
312 * sysdeps/posix/gai_strerror.c: Add error string for EAI_IDN_ENCODE.
314 * Makerules: Use extra-modules.mk if modules-names is defined.
315 * extra-modules.mk: New file.
316 * dlfcn/Makefile (CPPFLAGS-modcxaatexit.c): Removed.
317 * elf/Makefile (CFLAGS-interp.c): Add -DNOT_IN_libc=1.
318 * csu/Makefile ($(objpfx)version-info.h): Pass -DNOT_IN_libc=1 to
320 * Makefile (distribute): Add symbol-hacks.h and extra-modules.mk.
321 * sysdeps/generic/symbol-hacks.h: New file.
322 * sysdeps/wordsize-32/symbol-hacks.h: New file.
323 * sysdeps/wordsize-32/divdi3.c: Define *_internal aliases for __divdi3,
324 __moddi3, __udivdi3, and __umoddi3.
325 * include/libc-symbols.h: Include <symbol-hacks.h>.
327 2004-03-08 Jeroen Dekkers <jeroen@dekkers.cx>
329 * elf/rtld.c (_rtld_global_ro) [MAP_COPY]: Don't set _dl_unload_cache.
331 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps):
332 Don't use INTUSE with _dl_signal_error.
334 2004-03-08 Ulrich Drepper <drepper@redhat.com>
336 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
337 Don't use INTUSE with _dl_signal_error.
339 2004-03-08 Richard Henderson <rth@redhat.com>
341 * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Fix typo
344 2004-03-07 Ulrich Drepper <drepper@redhat.com>
346 * config.h.in: Add entry for HAVE_LIBIDN.
347 * configure.in: If libidn add-on present define HAVE_LIBIDN.
348 * Versions.def: Add entry for libcidn.
350 2004-03-07 Simon Josefsson <jas@extundo.com>
352 * resolv/netdb.h [__USE_GNU]: Add new AI_IDN ai_flags for addrinfo.
353 [__USE_GNU]: Add new error code EAI_IDN_ENCODE for getaddrinfo.
354 * sysdeps/posix/getaddrinfo.c: Add prototype for __idna_to_ascii_lz
355 and define IDNA_SUCCESS.
356 (gaih_inet): If ai_flags have AI_IDN, invoke __idna_to_ascii_lz.
357 (getaddrinfo): Fix EAI_BADFLAGS test to include AI_IDN.
358 All changes only applicable when glibc is compiled with the libidn
361 2004-03-07 Ulrich Drepper <drepper@redhat.com>
363 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Call
364 _dl_lookup_symbol_x not _dl_lookup_symbol.
366 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Adjust for moving
367 _dl_hwcap into _rtld_global_ro.
368 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
369 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
370 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
371 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
379 2004-03-07 Andreas Schwab <schwab@suse.de>
381 * elf/dl-sym.c: Include <dl-tls.h> only when USE_TLS.
383 2004-03-07 Andreas Jaeger <aj@suse.de>
385 * iconvdata/iso-2022-cn-ext.c (BODY): Remove cast used as lvalue.
386 * iconvdata/tcvn5712-1.c (EMIT_SHIFT_TO_INIT): Likewise.
387 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise.
388 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise.
389 * iconvdata/tscii.c (EMIT_SHIFT_TO_INIT): Likewise.
391 2004-03-07 Ulrich Drepper <drepper@redhat.com>
393 * sysdeps/generic/ldsodefs.h: Move _dl_initial_searclist,
394 _dl_hp_timing_overhead, _dl_init_all_dirs, and the content of
395 dl-procinfo.c from _rtld_global to _rtld_global_ro.
396 * elf/rtld.c: Adjust initializer for _rtld_global_ro.
397 * elf/dl-close.c: Use GLRO instead of GL where appropriate.
398 * elf/dl-libc.c: Likewise.
399 * elf/dl-load.c: Likewise.
400 * sysdeps/i386/dl-procinfo.h: Likewise.
401 * sysdeps/i386/i686/hp-timing.h: Likewise.
402 * sysdeps/ia64/hp-timing.h: Likewise.
403 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
404 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
405 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
406 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
407 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Likewise.
408 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
409 * string/test-string.h: Define GLRO.
411 2004-03-06 Ulrich Drepper <drepper@redhat.com>
413 * elf/dl-lookup.c: We don't need for specialized lookup functions.
414 Combining the functionality does not slow down relocation processing,
415 it might even speed it up a little.
416 * sysdeps/generic/ldsodefs.h: Adjust prototypes for lookup function.
417 Add only one function pointer to rtlf_global_ro.
418 * elf/do-lookup.h: Replace #ifs with ifs.
419 * elf/dl-libc.c: Adjust _dl_lookup_* callers.
420 * elf/dl-reloc.c: Likewise.
421 * elf/dl-runtime.c: Likewise.
422 * elf/dl-sym.c: Likewise.
423 * elf/rtld.c: Likewise. Adjust _rtld_global_ro initialization.
425 2004-03-06 Richard Henderson <rth@redhat.com>
427 * sysdeps/generic/ldsodefs.h (__rtld_local_attribute__,
428 __rtld_global_attribute__): Undef after use.
429 (_rtld_local_ro): Define __rtld_local_attribute__ with just hidden
432 * soft-fp/quad.h (union _FP_UNION_Q): Add longs structure.
433 * sysdeps/alpha/Implies: Add alpha/soft-fp.
434 * sysdeps/alpha/soft-fp/sfp-machine.h: Rewrite for GEM interface.
435 * sysdeps/alpha/Subdirs: New file.
436 * sysdeps/alpha/soft-fp/Makefile: New file.
437 * sysdeps/alpha/soft-fp/Versions: New file.
438 * sysdeps/alpha/soft-fp/local-soft-fp.h: New file.
439 * sysdeps/alpha/soft-fp/ots_add.c: New file.
440 * sysdeps/alpha/soft-fp/ots_cmp.c: new file.
441 * sysdeps/alpha/soft-fp/ots_cmpe.c: New file.
442 * sysdeps/alpha/soft-fp/ots_cvtqux.c: New file.
443 * sysdeps/alpha/soft-fp/ots_cvtqx.c: New file.
444 * sysdeps/alpha/soft-fp/ots_cvttx.c: New file.
445 * sysdeps/alpha/soft-fp/ots_cvtxq.c: New file.
446 * sysdeps/alpha/soft-fp/ots_cvtxt.c: New file.
447 * sysdeps/alpha/soft-fp/ots_div.c: New file.
448 * sysdeps/alpha/soft-fp/ots_mul.c: New file.
449 * sysdeps/alpha/soft-fp/ots_nintxq.c: New file.
450 * sysdeps/alpha/soft-fp/ots_sub.c: New file.
452 2004-03-06 Ulrich Drepper <drepper@redhat.com>
454 * configure.in: Recognize --enable-bind-now.
455 * elf/dynamic-link.h (elf_get_dynamic_info): Allow bind-now flags
457 * Makerules (LDFLAGS-c.so): Add -z now if so configured.
458 * elf/Makefile ($(objpfx)ld.so): Likewise.
459 * config.make.in (bind-now): New definition.
461 * elf/dl-fini.c (_dl_fini): Combine _dl_debug_printf calls.
462 * elf/rtld.c (print_statistics): Likewise.
464 * elf/dl-open.c: No need to pass any parameter to _dl_start_profile.
465 They are the same in both places.
466 * elf/dl-profile.c: Likewise.
467 * elf/rtld.c: Likewise.
468 * sysdeps/generic/ldsodefs.h: Likewise.
469 * elf/dl-support.c: Define _dl_profile_output variable. Initialize it.
471 2004-03-05 Ulrich Drepper <drepper@redhat.com>
473 * elf/Versions: Remove functions which are not exported anymore.
474 * dlfcn/dlerror.c: Call ld.so functions through GLSO.
475 * dlfcn/dlinfo.c: Likewise.
476 * elf/dl-close.c: Likewise.
477 * elf/dl-libc.c: Likewise.
478 * elf/dl-open.c: Likewise.
479 * elf/dl-sym.c: Likewise.
480 * sysdeps/generic/libc-start.c: Likewise.
481 * elf/dl-debug.c: Remove *_internal definition. Don't use INTUSE for
482 functions which are not exported anymore.
483 * elf/dl-deps.c: Likewise.
484 * elf/dl-dst.h: Likewise.
485 * elf/dl-error.c: Likewise.
486 * elf/dl-fini.c: Likewise.
487 * elf/dl-init.c: Likewise.
488 * elf/dl-load.c: Likewise.
489 * elf/dl-lookup.c: Likewise.
490 * elf/dl-misc.c: Likewise.
491 * elf/dl-profile.c: Likewise.
492 * elf/dl-profstub.c: Likewise.
493 * elf/dl-reloc.c: Likewise.
494 * elf/dl-runtime.c: Likewise.
495 * elf/dl-version.c: Likewise.
496 * elf/do-lookup.h: Likewise.
497 * include/dlfcn.h: Likewise.
498 * sysdeps/generic/dl-cache.c: Likewise.
499 * sysdeps/generic/dl-fptr.c: Likewise.
500 * sysdeps/generic/dl-origin.c: Likewise.
501 * sysdeps/generic/dl-sysdep.c: Likewise.
502 * sysdeps/generic/dl-tls.c: Likewise.
503 * sysdeps/generic/ldsodefs.h: Likewise.
504 * sysdeps/i386/dl-tls.h: Likewise.
505 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
506 * elf/rtld.c: Likewise. Export function though _rtld_global_ro.
508 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move
509 dl_debug_fd to rtld_global_ro.
510 * elf/rtld.c: Use GLRO instead of GL for dl_debug_fd.
511 * elf/dl-misc.c: Likewise.
513 * malloc/malloc.c: Don't call exported interface in the implementation.
515 * include/wctype.h: Add libc_hidden_proto for __towctrans.
516 * wctype/towctrans.c: Add libc_hidden_def.
518 * libio/memstream.c (open_memstream): Use _IO_init with INTUSE.
520 * posix/regexec.c (transit_state): Remove unused variable
523 * posix/regcomp.c (init_dfa): Use __btowc instead of btowc.
525 * sysdeps/generic/ldsodefs.h: Define new structure rtld_global_ro.
526 Declare _rtld_global_ro and _rtld_local_ro. Move members of
527 rtld_global structure into the new one if they are modified only
528 at startup time. Define GLRO to access _rtld_global_ro.
529 * elf/Versions: Export _rtld_global_ro.
530 * elf/dl-close.c: Use GLRO instead of GL where appropriate.
531 * elf/dl-conflict.c: Likewise.
532 * elf/dl-deps.c: Likewise.
533 * elf/dl-dst.h: Likewise.
534 * elf/dl-error.c: Likewise.
535 * elf/dl-fini.c: Likewise.
536 * elf/dl-init.c: Likewise.
537 * elf/dl-load.c: Likewise.
538 * elf/dl-lookup.c: Likewise.
539 * elf/dl-minimal.c: Likewise.
540 * elf/dl-open.c: Likewise.
541 * elf/dl-profile.c: Likewise.
542 * elf/dl-reloc.c: Likewise.
543 * elf/dl-runtime.c: Likewise.
544 * elf/dl-support.c: Likewise.
545 * elf/dl-version.c: Likewise.
546 * elf/do-lookup.h: Likewise.
547 * elf/rtld.c: Likewise.
548 * sysdeps/generic/dl-cache.c: Likewise.
549 * sysdeps/generic/dl-origin.c: Likewise.
550 * sysdeps/generic/dl-sysdep.c: Likewise.
551 * sysdeps/generic/libc-start.c: Likewise.
552 * sysdeps/generic/dl-cache.c: Likewise.
553 * sysdeps/i386/dl-machine.h: Likewise.
554 * sysdeps/i386/setfpucw.c: Likewise.
555 * sysdeps/i386/fpu/fclrexcpt.c: Likewise.
556 * sysdeps/i386/fpu/fedisblexcpt.c: Likewise.
557 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
558 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
559 * sysdeps/i386/fpu/fesetround.c: Likewise.
560 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
561 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
562 * sysdeps/unix/sysv/linux/dl-execstat.c: Likewise.
563 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
564 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
565 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
566 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
567 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
568 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
569 * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
570 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
571 * sysdeps/unix/sysv/linux/i386/sigaction.h: Likewise.
572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
576 * sysdeps/x86_64/dl-machine.h: Likewise.
577 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
578 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
579 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
580 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
581 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
582 * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
583 * sysdeps/m68k/dl-machine.h: Likewise.
584 * sysdeps/ia64/dl-machine.h: Likewise.
585 * sysdeps/arm/dl-machine.h: Likewise.
586 * sysdeps/alpha/dl-machine.h: Likewise.
587 * generic/dl-fptr.c: Likewise.
588 * mach/hurd/dl-sysdep.c: Likewise.
589 * unix/sysv/linux/ia64/dl-static.c: Likewise.
590 * unix/sysv/linux/ia64/getpagesize.c: Likewise.
591 * unix/sysv/linux/m68k/getpagesize.c: Likewise.
592 * unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
594 2004-03-04 Ulrich Drepper <drepper@redhat.com>
596 * sysdeps/generic/ldsodefs.h: Don't define _dl_name_match_p as inline.
597 * elf/dl-misc.c: Define _dl_name_match_p here.
598 * elf/dl-open.c (check_libc_caller): Don't use _dl_name_match_p.
600 * elf/dl-open.c (dl_open_worker): Check that _dl_open is called
601 from the right place.
603 2004-01-15 Paolo Bonzini <bonzini@gnu.org>
605 * posix/regex.h (REG_STARTEND): Define.
606 * posix/regexec.c (regexec): Check for REG_STARTEND.
608 2004-02-29 Paolo Bonzini <bonzini@gnu.org>
610 * posix/regexec.c (transit_state): Don't handle state == NULL.
611 Move state log and backreference management...
612 (merge_state_with_log): ... to this function.
613 (find_recover_state): New function.
614 (check_matching): Use find_recover_state to get a non-NULL
615 state when an invalid state is reached. Compute the amount
616 of initial characters to be skipped less conservatively when
617 multi-byte character sets are in use. Do not check
618 dfa->nbackref if the state log is NULL. Initialize err.
619 (acquire_init_state_context): Expect err to be initialized.
622 2004-03-05 Jakub Jelinek <jakub@redhat.com>
624 * sysdeps/sparc/sparc32/elf/start.S: Handle PIEs.
625 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
627 2004-03-04 Jakub Jelinek <jakub@redhat.com>
629 * iconv/iconv_prog.c (process_block): Handle omit_invalid.
630 If iconv returns EILSEQ with omit_invalid, continue converting
631 and return 1 if no other errors are seen.
632 (main): Set status to EXIT_FAILURE whenever process_* returns
633 nonzero, but only stop processing further files if iy returns
636 2004-03-03 Jakub Jelinek <jakub@redhat.com>
638 * sysdeps/unix/sysv/linux/x86_64/posix_fadvise.c: New file.
639 * sysdeps/unix/sysv/linux/x86_64/posix_fadvise64.c: New file.
640 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
642 * sysdeps/unix/sysv/linux/alpha/posix_fadvise.c: New file.
643 * sysdeps/unix/sysv/linux/alpha/posix_fadvise64.c: New file.
644 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64):
646 * sysdeps/unix/sysv/linux/ia64/posix_fadvise.c: New file.
647 * sysdeps/unix/sysv/linux/ia64/posix_fadvise64.c: New file.
648 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: New file.
651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: New
653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Removed.
654 * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise.c: New file.
655 * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise64.c: New file.
656 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
657 (posix_fadvise64): Remove.
658 * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise.c: New file.
659 * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise64.c: New file.
660 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
661 (posix_fadvise64): Remove.
663 2004-03-02 Andreas Schwab <schwab@suse.de>
665 * sysdeps/unix/sysv/linux/powerpc/powerpc32/xstat.c: New file.
666 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstat.c: New file.
667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lxstat.c: New file.
669 2004-03-01 Ulrich Drepper <drepper@redhat.com>
671 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization
673 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
675 * sysdeps/unix/sysv/linux/kernel-features.h: Add support for
676 __ASSUME_GETDENTS32_D_TYPE.
677 * sysdeps/unix/sysv/linux/getdents.c: For 2.6.4+ kernels use
678 getdents syscall again since it provides d_type information.
680 2004-02-29 Andreas Jaeger <aj@suse.de>
682 * manual/install.texi (Tools for Compilation): Autoconf 2.53 is
684 (Supported Configurations): Add x86_64-*-linux.
686 2004-02-28 Ulrich Drepper <drepper@redhat.com>
688 * sysdeps/i386/i686/memcmp.S: Move table to .rodata. Patch by HJ Lu.
690 2004-02-27 Jakub Jelinek <jakub@redhat.com>
692 * elf/rtld.c (dl_main): Adjust l->l_ld of the vDSO by l->l_addr.
693 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Only set
694 GL(dl_sysinfo) if non-zero.
696 * sysdeps/unix/sysv/linux/sysconf.c: Include stdlib.h.
698 2004-02-26 Ulrich Drepper <drepper@redhat.com>
700 * nss/getXXbyYY_r.c: Pass result also to the nscd_* function. Don't
702 * nscd/nscd_proto.h: Add new argument for pointer to result pointer
703 to all nscd_* functions.
704 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add new parameter. Store result
705 pointer in the address provided by the new parameter if successful.
706 Otherwise store NULL. Return zero if no entry found.
707 (__nscd_getgrnam_r, __nscd_getgrgid_r): Add new parameter and pass
709 * nscd/nscd_gethst_r.c (nscd_gethst_r): Add new parameter. Store
710 result pointer in the address provided by the new parameter if
711 successful. Otherwise store NULL. Return zero if no entry found.
712 (__nscd_gethostbyname_r, __nscd_gethostbyname2_r,
713 __nscd_gethostbyaddr_r): Add new parameter and pass it on.
714 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add new parameter. Store result
715 pointer in the address provided by the new parameter if successful.
716 Otherwise store NULL. Return zero if no entry found.
717 (__nscd_getpwnam_r, __nscd_getpwuid_r): Add new parameter and pass
720 2004-02-26 Jakub Jelinek <jakub@redhat.com>
722 * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set
723 retval to -1 on error.
725 2004-02-26 Ulrich Drepper <drepper@redhat.com>
727 * stdlib/canonicalize.c (__realpath): Simplify.
729 * posix/regcomp.c (parse_expression): Avoid duplication in calls
730 to build_charclass_op.
732 2004-02-26 Jakub Jelinek <jakub@redhat.com>
734 * elf/rtld.c (dl_main): Correctly set up l_map_end and l_addr
735 in vDSO's link_map, don't assume l_addr == 0. Set GL(dl_sysinfo)
736 from e_entry only if AT_SYSINFO not present and adjust by l_addr.
737 Take vDSO into account when inserting rtld into _dl_loaded chain.
739 2004-02-26 Ulrich Drepper <drepper@redhat.com>
741 * sunrpc/svcauth_des.c (authdes_getucred): Removed fixed limit on
742 number of groups in the cache. Relax the disconnect between the
743 interface of authdes_getucred and netname2user a bit.
744 * sunrpc/auth_unix.c (authunix_create_default): Don't allocate
745 huge arrays on the stack.
747 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Use the official
748 not cancelable interfaces.
750 2004-02-24 Arnold D. Robbins <arnold@skeeve.com>
752 * posix/regex_internal.c (build_wcs_upper_buffer): Enclose
753 `offsets_needed' label in `#ifdef _LIBC' to silence `unused label'
756 2004-02-24 Nelson H.F. Beebe <beebe@math.utah.edu>
758 * posix/regcomp.c (parse_expression): Add cast to (const unsigned
759 char *) in calls to `build_charclass_op'.
760 * posix/regex_internal.c (build_wcs_buffer): Add cast to char* in call
762 * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
763 bitset_mask, re_string_char_size_a, re_string_wchar_at,
764 re_string_elem_size_at): Change to use prototypes.
765 (re_string_char_size_at, re_string_wchar_at,
766 re_string_elem_size_at): Declare as `internal_function'.
768 2004-02-25 Ulrich Drepper <drepper@redhat.com>
770 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle
773 2004-02-23 Jakub Jelinek <jakub@redhat.com>
775 * wcsmbs/mbrtowc.c (__mbrtowc): Cap s + n at the end of address space.
776 * stdlib/Makefile (tests): Add testmb2.
778 * stdlib/testmb2.c: New test.
780 2004-02-23 Jakub Jelinek <jakub@redhat.com>
782 * sysdeps/posix/getaddrinfo.c (gaih_inet): If _res has not been
783 inited yet, try to init it before saving old _res.options.
784 * posix/Makefile (xtests): Add bug-ga2.
785 (generated): Add bug-ga2.mtrace and bug-ga2-mem.
786 (xtests): Depend on bug-ga2-mem.
787 ($(objpfx)bug-ga2-mem, bug-ga2-ENV): New.
788 * posix/bug-ga2.c: New test.
790 2004-02-22 Ulrich Drepper <drepper@redhat.com>
792 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Pop register
793 content also in case of an overflow in the parameter.
794 Reported by Momchil Velikov <velco@fadata.bg>.
796 2004-02-21 Ulrich Drepper <drepper@redhat.com>
798 * elf/dynamic-link.h (elf_get_dynamic_info): Recognize DF_1_NOW.
799 In ld.so, neither DT_FLAGS nor DT_FLAGS_1 must be used.
801 2004-02-21 Andreas Jaeger <aj@suse.de>
803 * posix/bug-ga1.c: Include <string.h> for memset prototype.
805 * elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue.
807 * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as
810 2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
812 * sysdeps/generic/framestate.c [__USING_SJLJ_EXCEPTIONS__]
813 (__frame_state_for): Set frame_State_for to abort if the compiler
815 * sysdeps/generic/unwind-dw2.c: Allow sjlj enabled compilers to
816 build the code by removing __USING_SJLJ_EXCEPTIONS__ wrapper.
818 2004-02-20 Alexandre Oliva <aoliva@redhat.com>
820 * resolv/Versions: Remove semicolon from the end of libresolv's
821 GLIBC_2.3.2 version block.
822 * Versions.def (libresolv): Add GLIBC_2.3.2.
824 2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
826 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Fix order of fp
827 status register loads.
829 2004-02-20 Thorsten Kukuk <kukuk@suse.de>
831 * nscd/nscd.c (termination_handler): Use _exit instead of exit
833 2004-02-20 Ulrich Drepper <drepper@redhat.com>
835 * nscd/nscd.c (main): Report fork errors.
837 * dlfcn/dlsym.c: Get ld.so loading lock before the call into ld.so.
838 * dlfcn/dlvsym.c: Likewise.
839 * elf/dl-addr.c: Get loading lock while using _dl_loaded data.
840 * elf/dl-fini.c: Likewise.
841 Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
843 2004-02-20 Jakub Jelinek <jakub@redhat.com>
845 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Add ulps for the
846 2003-11-27 atan2 test.
848 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Protect
849 with #ifndef __powerpc64__.
851 * sysdeps/generic/ldsodefs.h (_dl_argv, _dl_argv_internal): If
852 DL_ARGV_NOT_RELRO defined, don't use attribute_relro.
853 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
854 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
855 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
856 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
857 * sysdeps/alpha/dl-sysdep.h: New file.
858 * sysdeps/ia64/dl-sysdep.h: New file.
859 * sysdeps/sparc/dl-sysdep.h: New file.
861 2004-02-19 Jakub Jelinek <jakub@redhat.com>
863 * sysdeps/sparc/sparc32/bits/atomic.h: Add __make_section_unallocated
864 for .gnu.linkonce.b.__sparc32_atomic_locks section.
865 (__sparc32_atomic_locks): Add __sec_comment at the end of section name.
867 2004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
869 * sysdeps/generic/libc-start.c [LIBC_START_DISABLE_INLINE] (STATIC):
871 * sysdeps/powerpc/elf/libc-start.c: Define LIBC_START_DISABLE_INLINE
872 because gcc does not allow inline of functions that call setjmp.
874 2004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
876 * sysdeps/powerpc/powerpc64/Makefile: Use -finline-limit.
878 2004-02-19 Jakub Jelinek <jakub@redhat.com>
880 * elf/rtld.c (_dl_argv): If DL_ARGV_NOT_RELRO defined, don't
881 use attribute_relro for _dl_argv.
882 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
883 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
884 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
885 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
887 2004-02-19 Ulrich Drepper <drepper@redhat.com>
889 * libio/iopopen.c (_IO_new_proc_open): It's not kosher to use
890 vfork instead of fork.
891 * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
893 * sysdeps/unix/clock_settime.c (clock_settime): Fix typo which
894 prevented system-dependent handling from being used.
896 2004-02-18 Carlos O'Donell <carlos@baldric.uwo.ca>
898 * test-skeleton.c (main): If set, use environment variable
899 TIMEOUTFACTOR to scale test TIMEOUT.
901 2004-02-18 Ulrich Drepper <drepper@redhat.com>
903 * nscd/nscd_conf.c: Include <stdio_ext.h>.
905 2004-02-16 Ulrich Drepper <drepper@redhat.com>
907 * stdlib/test-canon.c (do_test): Test realpath(,NULL) in the loop
910 * stdlib/canonicalize.c (__realpath): Remove unnecessary copy
913 * nscd/nscd_conf.c (nscd_parse_file): Little optimization.
915 2004-02-14 Thorsten Kukuk <kukuk@suse.de>
917 * nscd/dbg_log.c (set_logfile): Only save name of logfile,
919 (init_logfile): New function, open logfile if requested.
920 * nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile.
921 * nscd/nscd.c (main): Call init_logfile after forking in background.
922 * nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile.
924 2004-02-16 Ulrich Drepper <drepper@redhat.com>
926 * elf/rtld.c (dl_main): Don't fail execution if file named in
927 ld.so.preload is not present [BZ #18].
929 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended
930 changes in last patch.
932 * posix/regexec.c (transit_state): Fix typo in commented-out code
935 * sysdeps/posix/getaddrinfo.c (match_prefix): Correctly match
936 partial bytes [BZ #24].
937 * posix/Makefile (tests): Add bug-ga1.
938 * posix/bug-ga1.c: New file.
940 2004-02-13 Steven Munroe <sjmunroe@us.ibm.com>
942 * sysdeps/powerpc/powerpc64/__longjmp-common.S: New file.
943 * sysdeps/powerpc/powerpc64/__longjmp.S [NOT_IN_libc](__longjmp):
944 Non-versioned __longjmp for rtld-__longjmp.
945 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
946 default version of __longjmp.
947 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
948 (__novmx__longjmp): Original version of __longjmp.
949 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
950 Non-versioned _setjmp for rtld-_setjmp.
951 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
952 as default version of _setjmp.
953 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
954 (__novmx_setjmp): Original version of _setjmp.
955 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__vmxsetjmp): Branch to
956 __vmx__sigsetjmp and define as default version of setjmp.
957 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
958 (__novmxsetjmp): Original version of setjmp.
959 * sysdeps/powerpc/powerpc64/setjmp-common.S: New file.
960 * sysdeps/powerpc/powerpc64/setjmp.S [NOT_IN_libc](__setjmp):
961 Non-versioned __sigsetjmp for rtld-setjmp.
962 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
963 as default version of __sigsetjmp.
964 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
965 (__novmx__sigsetjmp): Original version of __sigsetjmp.
967 * sysdeps/powerpc/powerpc32/__longjmp-common.S: New File
968 * sysdeps/powerpc/powerpc32/__longjmp.S [NOT_IN_libc](__longjmp):
969 Non-versioned __longjmp for rtld-__longjmp.
970 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
971 default version of __longjmp.
972 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
973 (__novmx__longjmp): Original version of __longjmp.
974 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
975 Non-versioned _setjmp for rtld-_setjmp.
976 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
977 as default version of _setjmp.
978 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
979 (__novmx_setjmp): Original version of _setjmp.
980 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__vmxsetjmp): Branch to
981 __vmx__sigsetjmp and define as default version of setjmp.
982 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
983 (__novmxsetjmp): Original version of setjmp.
984 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: New file.
985 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S [NOT_IN_libc](__longjmp):
986 Non-versioned __longjmp for rtld-__longjmp.
987 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
988 default version of __longjmp.
989 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
990 (__novmx__longjmp): Original version of __longjmp.
991 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: New file.
992 * sysdeps/powerpc/powerpc32/fpu/setjmp.S [NOT_IN_libc](__setjmp):
993 Non-versioned __sigsetjmp for rtld-setjmp.
994 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
995 as default version of __sigsetjmp.
996 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
997 (__novmx__sigsetjmp): Original version of __sigsetjmp.
998 * sysdeps/powerpc/powerpc32/setjmp-common.S: New file.
999 * sysdeps/powerpc/powerpc32/setjmp.S [NOT_IN_libc](__setjmp):
1000 Non-versioned __sigsetjmp for rtld-setjmp.
1001 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
1002 as default version of __sigsetjmp.
1003 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1004 (__novmx__sigsetjmp): Original version of __sigsetjmp.
1006 * sysdeps/powerpc/Dist: New File.
1007 * sysdeps/powerpc/Makefile (sysdep_routines): Add novmx-longjmp.c
1009 * sysdeps/powerpc/Versions (libc): To GLIBC_2.3_4 add _longjmp,
1010 __sigsetjmp, _setjmp, longjmp, and setjmp. To GLIBC_PRIVATE add
1011 __novmx__libc_longjmp, __novmx__libc_siglongjmp, __vmx__libc_longjmp,
1012 and __vmx__libc_siglongjmp.
1013 * sysdeps/powerpc/bits/setjmp.h: Define JB_VRSAVE, JB_VRS, and adjust
1014 JB_SIZE to add VMX regs to __jmp_buf.
1015 * sysdeps/powerpc/longjmp.c: New file.
1016 * sysdeps/powerpc/novmxsetjmp.h: New file.
1017 * sysdeps/powerpc/novmx-longjmp.c: New file.
1018 * sysdeps/powerpc/novmx-sigjmp.c: New file.
1019 * sysdeps/powerpc/sigjmp.c: New file.
1021 2004-02-13 Jakub Jelinek <jakub@redhat.com>
1023 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c (__lrintf, lrintf):
1025 (__lrintl, lrintl): Remove.
1026 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c (__lrint): Fix a typo in
1027 strong_alias spelling.
1028 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: Remove.
1029 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: New file.
1031 2004-02-12 Ulrich Drepper <drepper@redhat.com>
1033 * posix/getopt.h: Add some non-gcc support. Patch by Aharon Robbins.
1035 2004-02-12 Mark Brown <bmark@us.ibm.com>
1037 * sysdeps/ia64/fpu/e_fmodf.S: Added text of Intel license.
1039 2004-02-12 Jakub Jelinek <jakub@redhat.com>
1041 * sysdeps/powerpc/fpu/s_lrint.c: Move to...
1042 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: ... here.
1043 * sysdeps/powerpc/fpu/s_llrint.c: Move to...
1044 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: ... here.
1045 * sysdeps/powerpc/fpu/s_llrintf.c: Move to...
1046 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: ... here.
1047 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
1048 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: New file.
1049 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: New file.
1051 * math/libm-test.inc (lrint_test): Add new test.
1052 (llrint_test, lround_test, llround_test): Likewise.
1053 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Fix special case
1054 with result taking up 48 bits.
1055 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1056 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
1057 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Fix special case
1058 with result taking up 31 bits.
1060 2004-02-12 Ulrich Drepper <drepper@redhat.com>
1062 * locale/programs/locale.c (show_locale_vars): Don't print a value
1063 for LANG if it is not set.
1065 2004-02-11 Jakub Jelinek <jakub@redhat.com>
1067 * posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0.
1068 (find_collation_sequence_value): Don't look beyond end of
1070 * posix/Makefile (tests): Add bug-regex23.
1071 (bug-regex23-ENV): New.
1072 * posix/bug-regex23.c: New file.
1074 2004-02-10 Roland McGrath <roland@frob.com>
1076 * sysdeps/mach/hurd/times.c (__times): Use union instead of cast.
1077 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise.
1079 * sysdeps/mach/hurd/configure.in: Move `retcode' check to ...
1080 * sysdeps/mach/configure.in: ... here.
1081 * sysdeps/mach/hurd/configure: Regenerated.
1082 * sysdeps/mach/configure.in: Regenerated.
1084 2004-02-10 Ulrich Drepper <drepper@redhat.com>
1086 * sysdeps/generic/setenv.c (__add_to_environ): Don't let the
1087 temporary copies of the variables accumulate on the stack.
1089 * stdio-common/_i18n_number.h: Finish last patch.
1091 2004-02-09 Ulrich Drepper <drepper@redhat.com>
1093 * sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu.
1095 2003-12-05 Roland McGrath <roland@redhat.com>
1097 * sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old
1098 for vm86@GLIBC_2.0 version. Add new vm86@GLIBC_2.3.4.
1099 * sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.4): Add vm86.
1100 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype.
1102 2004-02-09 Ulrich Drepper <drepper@redhat.com>
1104 * nis/ypclnt.c: Cleanup last patch.
1106 2004-02-09 Andreas Jaeger <aj@suse.de>
1108 * configure.in: Remove glibcbug creation.
1109 * configure: Regenerated.
1111 * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes.
1113 2004-02-03 Thorsten Kukuk <kukuk@suse.de>
1115 * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
1116 of duplicated code from __yp_bind.
1117 (__yp_bind_file): New, binding dir code from __yp_bind.
1118 (__yp_bind_client_create): New, ypbind code from __yp_bind.
1119 (__ypclnt_call): New, make NIS query.
1120 (do_ypcall): At first use cached data, then try data from
1121 binding directory, after this ask ypbind for a working ypserv.
1122 Based on a patch from Jeff Bastian <jmbastia@ti.com> and
1123 Chris Barrera <cbarrera@ti.com>
1125 2004-01-19 Roland McGrath <roland@redhat.com>
1127 * configure.in: Don't set CCVERSION.
1128 * configure: Regenerated.
1129 * glibcbug.in: File removed.
1130 * Makefile (install-bin-script): Remove glibcbug.
1131 (glibcbug): Target removed.
1132 (distclean-1): Don't rm glibcbug.
1133 (distribute): Remove glibcbug.in.
1135 2004-02-09 Roland McGrath <roland@redhat.com>
1137 * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
1140 2004-01-29 Roland McGrath <roland@redhat.com>
1142 * io/ftwtest-sh: Use $tmp consistently, not literal /tmp.
1143 Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
1145 2004-02-09 Ulrich Drepper <drepper@redhat.com>
1147 * libio/genops.c (_IO_cleanup): Do not use locking when flushing
1148 the buffers. Some thread might be using a stream.
1150 2004-02-09 Andreas Jaeger <aj@suse.de>
1152 * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7].
1153 Patch by Jan Beulich <jbeulich@novell.com>.
1155 2004-02-09 Andreas Schwab <schwab@suse.de>
1157 * include/rpc/rpc.h: Declare thread variables with their correct type.
1158 * sunrpc/clnt_perr.c: Don't cast thread variables.
1159 * sunrpc/clnt_raw.c: Likewise.
1160 * sunrpc/clnt_simp.c: Likewise.
1161 * sunrpc/key_call.c: Likewise.
1162 * sunrpc/svcauth_des.c: Likewise.
1163 * sunrpc/svc.c: Likewise.
1164 * sunrpc/svc_raw.c: Likewise.
1165 * sunrpc/svc_simple.c: Likewise.
1167 2004-02-09 Ulrich Drepper <drepper@redhat.com>
1169 * stdio-common/_i18n_number.h: Support printing localized decimal
1170 point and thousand separator.
1171 * wctype/wctrans.c: Add __wctrans alias.
1172 * include/wctype.h: Declare __wctrans.
1173 Based on a patch by Hamed Malek.
1175 * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
1176 other than the status bits [BZ #10].
1178 2004-02-08 Ulrich Drepper <drepper@redhat.com>
1180 Make stream locking operations really work.
1181 * misc/Makefile (CFLAGS-mntent_r.c): Define.
1182 * shadow/Makefile (CFLAGS-fgetspent_r.c): Define.
1183 (CFLAGS-putspent.c): Define.
1184 * grp/Makefile (CFLAGS-fgetgrent_r.c): Define.
1185 (CFLAGS-putgrent.c): Define.
1186 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define.
1187 Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
1189 * elf/dl-load.c (lose): Use noinline attribute instead of silly
1190 alloca to prevent inlining.
1191 * elf/dl-runtime.c (fixup): Likewise.
1192 (profile_fixup): Likewise.
1194 * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11.
1195 Initialize width correctly.
1197 2004-02-07 Andreas Jaeger <aj@suse.de>
1199 * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as
1201 (internal_ucs4le_loop_single): Likewise.
1202 (ucs4_internal_loop): Likewise.
1204 (internal_ucs4_loop_single): Likewise.
1205 * iconvdata/iso8859-1.c (BODY): Likewise.
1206 * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise.
1207 * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise.
1208 * iconvdata/gb18030.c (BODY): Likewise.
1209 * iconvdata/armscii-8.c (BODY): Likewise.
1210 * stdlib/msort.c (msort_with_tmp): Likewise.
1212 * iconv/gconv_open.c (__gconv_open): Remove conditional expression
1215 2004-02-06 Steven Munroe <sjmunroe@us.ibm.com>
1217 * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as
1219 (__elf_machine_runtime_setup): Invalidate the instruction cache over
1220 the whole range of the PLT.
1222 2004-02-06 Andreas Schwab <schwab@suse.de>
1224 * posix/regcomp.c (build_range_exp): Fix off-by-one.
1225 (parse_bracket_exp): Likewise.
1227 2004-02-05 Ulrich Drepper <drepper@redhat.com>
1229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define
1230 _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard.
1232 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
1234 * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter.
1235 (re_search_internal): Pass new parameter to check_matching.
1236 (check_matching): Unless a parenthesized group is found at the
1237 beginning of the regexp, advance P_MATCH_FIRST until we entered
1238 a state different from the initial state.
1240 2004-02-01 Ulrich Drepper <drepper@redhat.com>
1242 * math/libm-test.inc (lround_test): Add new test.
1243 (llround_test): Likewise.
1244 (lrint_test): Likewise.
1245 (llrint_test): Likewise.
1246 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case
1247 with result taking up 20 bits.
1248 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1249 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise..
1250 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special
1251 case with result taking up 31 bits.
1252 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1254 * po/nl.po: Update from translation team.
1256 2004-01-30 Andreas Schwab <schwab@suse.de>
1258 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
1259 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
1260 SEGV_PSTKOVF): Remove underscore prefix from definition.
1262 2004-01-28 Paolo Bonzini <bonzini@gnu.org>
1264 Merge regex changes in gawk.
1265 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
1266 of collation elements.
1267 * posix/regex.c: Include limits.h.
1268 * posix/regex.h: Document REG_ECOLLATE correctly.
1269 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
1271 2004-01-24 Andreas Jaeger <aj@suse.de>
1273 * malloc/obstack.h: Import gnulib version.
1274 * malloc/obstack.c: Likewise.
1276 2004-01-26 David Mosberger <davidm@hpl.hp.com>
1278 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
1279 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
1280 increment dl_load_adds.
1281 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
1282 with equivalent GL(dl_load_adds - GL(dl_nloaded).
1283 (dl_iterate_phdr): Likewise.
1284 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
1285 * elf/dl-support.c: Remove global variable _dl_load_subs.
1286 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1287 _dl_load_subs member.
1289 2004-01-27 Jakub Jelinek <jakub@redhat.com>
1291 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
1292 (_dl_start): And neither here.
1293 (dl_main): Set GL(dl_loaded)->l_relro_* and
1294 GL(dl_rtld_map)->l_relro_*.
1296 2004-01-23 David Mosberger <davidm@hpl.hp.com>
1298 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
1299 _dl_load_adds and _dl_load_subs.
1300 * elf/dl-support.c (_dl_load_adds): New variable.
1301 (_dl_load_subs): Likewise.
1302 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
1303 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
1304 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
1306 * include/link.h: Likewise.
1307 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
1308 and dlpi_subs members.
1309 (dl_iterate_phdr): Likewise.
1310 * elf/tst-dlmodcount.c: New file.
1311 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
1312 (tests): If build-shared, mention tst-dlmodcount.
1313 ($(objpfx)tst-dlmodcount): If build-shared, build and
1316 2004-01-22 Jakub Jelinek <jakub@redhat.com>
1318 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
1320 (_dl_protect_relro): New routine.
1321 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
1322 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
1324 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
1325 Call _dl_protect_relro for libraries if prelinking.
1327 2004-01-23 Richard Henderson <rth@redhat.com>
1329 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
1330 * sysdeps/alpha/fpu/Versions (libm): Likewise.
1331 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
1332 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
1334 2004-01-22 Andreas Jaeger <aj@suse.de>
1336 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
1337 avoid warnings for builtin function log2.
1339 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
1342 2004-01-20 Ulrich Drepper <drepper@redhat.com>
1344 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
1345 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1346 Patch by Davide Libenzi.
1348 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1349 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
1351 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
1353 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
1354 instead of loff_t. Include <fcntl.h>.
1355 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
1356 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
1357 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
1358 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
1359 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1360 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1361 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
1362 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1363 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1364 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1365 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1366 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1368 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
1370 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
1372 2003-12-31 Bruno Haible <bruno@clisp.org>
1374 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
1375 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
1376 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
1377 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
1378 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
1379 0x00 0x20. Don't map U+2500..U+25E3.
1381 2004-01-19 Jakub Jelinek <jakub@redhat.com>
1383 * posix/regexec.c (get_subexp): Remove bkref_str variable.
1384 Extend buffers if needed before comparisons.
1385 (get_subexp_sub): Handle clean_state_log_if_needed failure.
1387 2004-01-17 Ulrich Drepper <drepper@redhat.com>
1389 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
1390 atomic_decrement. Patch by Davin McCall.
1392 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
1394 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
1395 (__sim_disabled_exceptions, __sim_round_mode): Declare with
1396 hidden data and nocommon.
1397 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
1398 (__sim_disabled_exceptions, __sim_round_mode): Use
1400 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
1401 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
1403 2004-01-16 Ulrich Drepper <drepper@redhat.com>
1405 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
1408 2004-01-16 Richard Henderson <rth@redhat.com>
1410 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
1411 (__libc_enable_secure_internal): Likewise.
1413 * elf/dl-load.c: Don't declare __libc_stack_end.
1414 * sysdeps/generic/libc-start.c: Likewise.
1415 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
1416 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
1417 * sysdeps/generic/backtrace.c: Likewise.
1419 2004-01-15 Ulrich Drepper <drepper@redhat.com>
1421 * Versions.def: Add GLIBC_2.3.4.
1423 2004-01-15 Richard Henderson <rth@redhat.com>
1425 * sysdeps/unix/alpha/sysdep.h: Revert last change.
1427 2004-01-15 Richard Henderson <rth@redhat.com>
1429 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
1431 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
1434 2004-01-15 Richard Henderson <rth@redhat.com>
1436 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
1437 ucontext-offsets.sym.
1438 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
1439 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
1440 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
1441 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
1442 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
1444 2004-01-15 Richard Henderson <rth@redhat.com>
1446 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
1447 __syscall_, move nop inside, adjust users by +4.
1449 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1451 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
1452 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
1453 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
1455 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
1456 gen-as-const-headers.
1457 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
1458 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
1459 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
1460 * sysdeps/unix/sysv/linux/kernel-features.h
1461 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
1462 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
1463 Declare mcontext_t inline and include altivec state for 64-bit.
1464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
1465 versions for setcontext, getcontext, and swapcontext.
1467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
1468 versions for setcontext, getcontext, swapcontext, and makecontext.
1469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1470 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
1471 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
1472 Compatible with GLIBC_2.3.3 release.
1473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1474 (__makecontext): Use parm save area instead of compiler_dw to hold
1476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1477 (__setcontext): Upgrade to restore Altivec regs and version
1479 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
1480 Compatible with GLIBC_2.3.3 release.
1481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1482 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
1483 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
1484 Compatible with GLIBC_2.3.3 release.
1485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
1486 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
1488 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
1490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
1491 versions for setcontext, getcontext, swapcontext, and makecontext.
1492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1493 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
1494 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
1495 Compatible with GLIBC_2.3.3 release.
1496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
1497 (__makecontext): Upgrade to align for Altivec regs and version
1499 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
1500 Compatible with GLIBC_2.3.3 release.
1501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1502 (__setcontext): Upgrade to restore Altivec regs and version
1504 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
1505 Compatible with GLIBC_2.3.3 release.
1506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1507 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
1508 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
1509 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
1510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
1511 (_UC_VSCR, _UC_VRSAVE): Define.
1512 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
1513 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
1515 2004-01-15 Ulrich Drepper <drepper@redhat.com>
1517 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
1519 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
1521 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
1524 2004-01-15 Ulrich Drepper <drepper@redhat.com>
1526 * elf/elf.h: Fix typo in comment.
1528 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
1529 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
1531 * resolv/resolv.h: Add RES_USEBSTRING.
1532 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
1533 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
1534 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
1535 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
1536 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
1537 Otherwise use the two nibble formats.
1539 2004-01-14 Ulrich Drepper <drepper@redhat.com>
1541 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
1542 * config.h.in: Add entry for HAVE_Z_RELRO.
1543 * include/libc-symbols.h: Define attribute_relro.
1544 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
1545 max_capstrlen, and max_dirnamelen definitions.
1546 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
1547 load_time, start_time, library_path, preloadlist, version_info,
1549 Remove rtld_total_time. Make it a local variable. Pass pointer to
1550 it to print_statistics. Change print_statistics accordingly.
1551 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
1552 attribute_relro instead of explicitly assigning variable to the
1553 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
1554 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
1555 _dl_argv, _dl_argv_internal with attribute_relro.
1557 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
1559 * Makerules (gen-as-const): Don't silently continue on failure.
1561 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1563 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
1564 rtld_hidden_data_def.
1566 2004-01-14 Ulrich Drepper <drepper@redhat.com>
1568 * libio/libio.h: Add const to function tables types.
1569 * libio/libioP.h: Likewise.
1570 * login/utmp-private.h: Likewise.
1571 * libio/fileops.c: Add const to jump table variable definition.
1572 * libio/genops.c: Likewise.
1573 * libio/iofopncook.c: Likewise.
1574 * libio/iopopen.c: Likewise.
1575 * libio/memstream.c: Likewise.
1576 * libio/obprintf.c: Likewise.
1577 * libio/oldfileops.c: Likewise.
1578 * libio/oldiopopen.c: Likewise.
1579 * libio/strops.c: Likewise.
1580 * libio/vsnprintf.c: Likewise.
1581 * libio/vswprintf.c: Likewise.
1582 * libio/wfileops.c: Likewise.
1583 * libio/wstrops.c: Likewise.
1584 * login/getutent_r.c: Likewise.
1585 * login/getutid_r.c Likewise.
1586 * login/getutline_r.c: Likewise.
1587 * sysdeps/generic/utmp_file.c: Likewise.
1589 2004-01-09 Bruno Haible <bruno@clisp.org>
1591 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
1592 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
1593 (_nl_load_domain): Treat major revision 1 like major revision 0.
1595 2004-01-11 Bruno Haible <bruno@clisp.org>
1597 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
1598 width or precision has been seen.
1600 2004-01-08 Bruno Haible <bruno@clisp.org>
1602 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
1603 dependent segment not known to this version of the library, ignore
1604 the string pair instead of crashing.
1606 2004-01-13 Ulrich Drepper <drepper@redhat.com>
1608 * configure.in: Rewrite test to give gcc to clean up after itself.
1609 Patch by Greg Schafer.
1611 * posix/regex.c: Support crappy compilers and platforms which have
1612 problems with alloca.
1613 * posix/regex_internal.h: Likewise.
1614 Patch by Paolo Bonzini.
1616 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
1618 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
1619 Drop code to support this, it is never true.
1620 (build_range_exp) [!_LIBC]: Do not create a range
1621 in MBCSET for a single-byte character set.
1622 (build_range_exp) [_LIBC]: Do not create a range
1623 in MBCSET for a single-byte character set without
1625 (init_dfa): Do not conditionalize on _LIBC, it
1626 just makes the code less clear.
1627 (parse_bracket_exp): Use NON_MATCH variable in
1628 addition to "mbcset->non_match", not as an
1630 (build_charclass_op): rename NOT parameter to
1631 NON_MATCH, use it instead of declaring a variable.
1632 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
1633 if the character set is single-byte.
1635 2004-01-14 Jakub Jelinek <jakub@redhat.com>
1637 * posix/regcomp.c (peek_token_bracket): Check remaining
1638 string length before re_string_peek_byte (x, 1).
1639 (parse_bracket_symbol): Likewise.
1640 * posix/regex_internal.h (re_string_is_single_byte_char): Return
1641 true at last byte in the string.
1642 * posix/bug-regex22.c (main): Add new test.
1644 2004-01-13 Ulrich Drepper <drepper@redhat.com>
1646 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
1649 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
1651 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
1652 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
1653 rtld_hidden_def and move into .data.rel.ro section.
1654 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
1656 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
1659 2004-01-13 Richard Henderson <rth@redhat.com>
1661 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
1663 2004-01-13 Ulrich Drepper <drepper@redhat.com>
1665 * sysdeps/unix/sysv/linux/dl-execstack.c
1666 (_dl_make_stack_executable): Move common code in front. Use
1669 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
1670 challenge for caller.
1671 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
1672 member in rtld_global appropriately.
1673 * elf/dl-support.c: Likewise.
1674 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
1675 Pass it on to the changed function.
1676 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
1678 2004-01-13 Richard Henderson <rth@redhat.com>
1680 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
1681 Cast old up to uint64_t before back down to inner width.
1682 (__arch_compare_and_exchange_xxx_16_int): Likewise.
1683 (__arch_compare_and_exchange_xxx_32_int): Likewise.
1684 (__arch_compare_and_exchange_xxx_64_int): Likewise.
1685 (__arch_compare_and_exchange_val_8_int): Cast result to
1686 the type of the memory.
1687 (__arch_compare_and_exchange_val_16_int): Likewise.
1688 (__arch_compare_and_exchange_val_32_int): Likewise.
1689 (__arch_compare_and_exchange_val_64_int): Likewise.
1690 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
1691 (atomic_compare_and_exchange_bool_rel): Likewise.
1693 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
1694 based on HAVE___THREAD instead of USE_TLS.
1696 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
1697 (__adjtimex_tv64): Use it.
1699 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
1700 to void* rather than directly to the compatibility structure type.
1701 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
1703 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
1706 2004-01-13 Richard Henderson <rth@redhat.com>
1708 * Versions.def (libm): Add GLIBC_2.3.3.
1709 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
1710 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
1711 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
1712 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
1713 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
1714 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
1715 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
1716 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
1717 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
1718 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
1719 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
1720 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
1721 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
1722 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
1723 functions for gcc 3.3.
1725 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
1726 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
1727 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
1728 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
1729 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
1730 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
1731 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
1732 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
1733 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
1734 weak_alias if the function name has been #defined.
1736 * math/cabsf.c: Move ...
1737 * sysdeps/generic/cabsf.c: ... here.
1738 * math/cargf.c: Move ...
1739 * sysdeps/generic/cargf.c: ... here.
1740 * math/cimagf.c: Move ...
1741 * sysdeps/generic/cimagf.c: ... here.
1742 * math/conjf.c: Move ...
1743 * sysdeps/generic/conjf.c: ... here.
1744 * math/crealf.c: Move ...
1745 * sysdeps/generic/crealf.c: ... here.
1747 2004-01-13 Ulrich Drepper <drepper@redhat.com>
1749 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
1750 LDFLAGS.so and LDFLAGS-rtld.
1751 (+link): Add relro-LDFLAGS.
1752 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
1753 __libc_thread_subfreeres sections after .jcr section.
1754 * config.make.in: Add have-z-relro.
1755 * configure.in: Add check for -z relro option.
1756 * include/link.h (struct link_map): Add relro_addr and relro_size
1758 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
1759 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
1760 part of loaded segments read-only.
1761 * elf/elf.h: Define PT_GNU_RELRO.
1762 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
1763 (dl_main): Recognize PT_GNU_RELRO of the application. Call
1764 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
1767 2004-01-12 Jakub Jelinek <jakub@redhat.com>
1769 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
1771 2004-01-11 Andreas Jaeger <aj@suse.de>
1773 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
1775 2004-01-10 Andreas Jaeger <aj@suse.de>
1777 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
1778 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
1779 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1780 * sysdeps/x86_64/strcspn.S: Likewise.
1781 * sysdeps/x86_64/strspn.S: Likewise.
1783 2004-01-08 Jakub Jelinek <jakub@redhat.com>
1785 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
1786 right before syscall and cfi_startproc before PSEUDO_END.
1787 Clear %rbp in thread_start.
1789 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1791 * posix/regcomp.c (regcomp): Fix comment typo.
1792 (regfree): Free preg->translate, clear buffer, allocated, fastmap
1793 and translate fields.
1795 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
1796 argument to unsigned RE_TRANSLATE_TYPE.
1797 * posix/regex_internal.h (re_string_t): Change trans type to
1798 unsigned RE_TRANSLATE_TYPE.
1799 * posix/regex_internal.c (re_string_construct_common): Cast
1800 trans to unsigned RE_TRANSLATE_TYPE.
1801 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
1802 path if pstr->trans. Never translate the character through
1804 * posix/Makefile (tests): Add bug-regex22.
1805 (bug-regex22-ENV): Set.
1806 * posix/bug-regex22.c: New test.
1808 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
1810 * posix/regex_internal.c (re_node_set_add_intersect,
1811 re_node_set_merge): Rewritten.
1812 (re_node_set_insert, re_node_set_remove_at):
1813 Avoid memmove, we know what direction we should copy and that we
1814 are copying 32-bit words.
1815 (re_node_set_compare): Iterate backwards.
1817 2003-12-30 Paul Eggert <eggert@twinsun.com>
1819 * time/mktime.c (verify): New macro.
1820 (time_t_is_integer, twos_complement_arithmetic,
1821 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
1822 C99_integer_division): Document these longstanding assumptions in the
1823 code, and verify them at compile-time.
1825 2004-01-02 Jakub Jelinek <jakub@redhat.com>
1827 * posix/regex_internal.h (re_match_context_t): Add dfa member.
1828 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
1829 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
1830 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
1831 sift_states_backward, update_cur_sifted_state, check_dst_limits,
1832 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
1833 check_subexp_matching_top, transit_state_sb, transit_state_mb,
1834 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
1835 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
1836 Remove dfa parameter. Get dfa from mctx. Adjust callers.
1837 (re_search_internal): Initialize mctx.dfa.
1839 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
1841 * posix/regex_internal.h (re_dfa_t): Add syntax field.
1842 * posix/regcomp.c (parse): Initialize dfa->syntax.
1843 * posix/regexec.c (acquire_init_state_context,
1844 prune_impossible_nodes, check_matching, check_halt_state_context,
1845 proceed_next_node, sift_states_iter_mb, sift_states_backward,
1846 update_cur_sifted_state, sift_states_bkref, transit_state,
1847 transit_state_sb, transit_state_mb, transit_state_bkref,
1848 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
1849 build_trtable): Remove preg argument, add dfa argument instead
1850 and remove dfa = preg->buffer initialization in the body.
1852 (check_node_accept_bytes, group_nodes_into_DFAstates,
1853 check_node_accept): Likewise. Use dfa->syntax instead of
1855 (check_arrival_add_next_nodes): Remove preg argument.
1857 * posix/regex_internal.h (re_match_context_t): Make input
1858 re_string_t instead of a pointer to it.
1859 * posix/regex_internal.c (re_string_construct_common): Don't clear
1861 (re_string_construct): ... but only here.
1862 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
1863 initialize fields to zero.
1864 (re_search_internal): Move input into mctx.input.
1865 (acquire_init_state_context, check_matching,
1866 check_halt_state_context, proceed_next_node,
1867 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
1868 transit_state, transit_state_sb, transit_state_mb,
1869 transit_state_bkref, get_subexp, check_arrival,
1870 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
1871 Change mctx->input into &mctx->input and mctx->input->field into
1874 2004-01-02 Jakub Jelinek <jakub@redhat.com>
1875 Paolo Bonzini <bonzini@gnu.org>
1877 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
1878 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
1879 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
1880 (re_string_context_at, re_string_reconstruct): Remove last argument.
1881 * posix/regex_internal.c (re_string_allocate): Initialize
1882 pstr->word_char and pstr->word_ops_used.
1883 (re_string_context_at): Remove newline_anchor argument.
1884 Use input->newline_anchor instead, swap && conditions.
1885 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
1886 Use input->word_char bitmap instead of IS_WORD_CHAR.
1887 (re_string_reconstruct): Likewise.
1888 Adjust re_string_context_at caller.
1889 * posix/regexec.c (acquire_init_state_context,
1890 check_halt_state_context, transit_state, transit_state_sb,
1891 transit_state_mb, transit_state_bkref, check_arrival,
1892 check_node_accept): Adjust re_string_context_at and
1893 re_string_reconstruct callers.
1894 (re_search_internal): Likewise. Set input.newline_anchor.
1895 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
1896 * posix/regcomp.c (init_word_char): Change return type to void.
1897 Set dfa->word_ops_used.
1898 (free_dfa_content): Don't free dfa->word_char.
1899 (parse_expression): Remove error handling for init_word_char.
1901 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
1903 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
1906 * posix/regex_internal.c (re_node_set_insert): Rewrite.
1908 2004-01-01 Ulrich Drepper <drepper@redhat.com>
1910 * posix/getconf.c: Update copyright year.
1911 * nss/getent.c: Likewise.
1912 * nscd/nscd_nischeck.c: Likewise.
1913 * iconv/iconvconfig.c: Likewise.
1914 * iconv/iconv_prog.c: Likewise.
1915 * elf/ldconfig.c: Likewise.
1916 * catgets/gencat.c: Likewise.
1917 * csu/version.c: Likewise.
1918 * elf/ldd.bash.in: Likewise.
1919 * elf/sprof.c (print_version): Likewise.
1920 * locale/programs/locale.c: Likewise.
1921 * locale/programs/localedef.c: Likewise.
1922 * nscd/nscd.c (print_version): Likewise.
1923 * debug/xtrace.sh: Likewise.
1924 * malloc/memusage.sh: Likewise.
1925 * malloc/mtrace.pl: Likewise.
1927 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
1929 * stdlib/strfmon.c: Make formatting of left-justified currency
1930 values match the the POSIX standard. When using format string
1931 "[%-14#5.4n]" to print -123.45, the result should be
1932 "[-$ 123.4500 ]", not "[-$123.4500 ]".
1934 2004-01-01 Andreas Jaeger <aj@suse.de>
1936 * resolv/Makefile (generated): New.
1938 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
1940 * CONFORMANCE: Update.
1942 2003-12-30 Paul Eggert <eggert@twinsun.com>
1944 * time/mktime.c: (my_mktime_localtime_r):
1945 Remove. All uses changed to __localtime_r.
1946 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
1947 get its implementation.
1948 Fix compile-command to allow for TIME_R_POSIX.
1950 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
1951 Remove. All uses changed to __localtime_r and __gmtime_r.
1952 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
1953 Include "time_r.h" to get their implementations.
1955 * time/timegm.c: Allow use in GNU applications outside glibc.
1956 [defined HAVE_CONFIG_H]: Include <config.h>.
1957 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
1958 Define __gmtime_r, and declare __mktime_internal.
1959 (timegm): Define via a prototype, since we can safely assume C89 now.
1961 * time/mktime.c (check_result): Use less-confusing report format.
1962 "long" -> "long int", as per usual GNU style.
1964 Don't loop if the iteration overflows time_t.
1965 Allow a negative step in the iteration.
1967 * time/mktime.c: Assume freestanding C89 or better.
1968 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
1970 (__P): Remove; not used.
1971 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
1972 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
1973 Prototypes use const * where appropriate.
1974 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
1975 which caused the testing code to dump core on some hosts.
1977 2003-12-31 Ulrich Drepper <drepper@redhat.com>
1979 * locale/setlocale.c (setlocale): Avoid duplicating locale names
1980 if we can reuse old strings.
1982 * inet/rcmd.c: Provide better error message in case of unknown
1983 host. Remove USE_IN_LIBIO.
1985 * nscd/nscd.init: Updated version, more conforming with current
1986 init file standards.
1988 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
1989 /var/run/nscd directory.
1990 (_PATH_NSCDSOCKET): Likewise.
1992 * test-skeleton.c (timeout_handler): Fix error message.
1994 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
1997 2003-12-30 Jakub Jelinek <jakub@redhat.com>
1999 * posix/regexec.c (get_subexp): Only set bkref_str after the first
2000 loop, use buf + bkref_str_off in the loop instead.
2001 * posix/bug-regex11.c (tests): Add 3 new tests.
2003 * posix/regexec.c (clean_state_log_if_need): Rename to...
2004 (clean_state_log_if_needed): ...this.
2005 (transit_state_mb, get_subexp_sub): Adjust callers.
2007 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
2008 failed. Reported by Steve Grubb.
2010 2003-12-29 Ulrich Drepper <drepper@redhat.com>
2012 * elf/elf.h: Add a few definitions from Solaris 9.
2014 2003-12-29 Andreas Schwab <schwab@suse.de>
2016 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
2017 $(fno_unit_at_a_time) to avoid reordering assembler output.
2019 2003-12-29 Jakub Jelinek <jakub@redhat.com>
2021 * posix/regexec.c (re_copy_regs): Revert comment change.
2022 Avoid memory leak if realloc fails.
2023 (proceed_next_node): Return -2 if re_node_set_insert fails.
2024 Return -2 if push_fail_stack fails.
2025 (push_fail_stack): Change fs->alloc only after successful realloc.
2026 (pop_fail_stack): Formatting.
2027 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
2028 (check_arrival_add_next_nodes): Merge identical statements
2031 * signal/Makefile (tests): Add tst-raise.
2032 * signal/tst-raise.c: New test.
2034 2003-12-28 Ulrich Drepper <drepper@redhat.com>
2036 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
2038 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
2039 (push_fail_stack): Add missing check for failed memory allocation.
2041 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
2042 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
2045 2003-12-28 Andreas Jaeger <aj@suse.de>
2047 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
2048 overflow for 0 as argument. Raise Invalid exception for negative args.
2049 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2050 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
2051 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
2052 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
2053 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
2054 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
2055 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
2056 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
2057 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2058 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
2059 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
2061 * math/libm-test.inc (yn_test): Expect invalid exception for
2063 (y0_test): Likewise.
2064 (y1_test): Likewise.
2066 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
2067 execptions for exp(NaN).
2069 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
2071 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
2072 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
2073 among the tokens, rather than among the epsilon-transiting nodes.
2074 (re_token_t): Add the opt_subexp flag.
2075 * posix/regcomp.c (optimize_utf8, calc_first,
2076 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
2077 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
2078 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
2079 OP_DUP_ASTERISK and marking optional subexpressions
2080 as such using mark_opt_subexp.
2081 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
2082 and pass it to update_regs.
2083 (update_regs): Use the PREV_INDEX_MATCH parameter, together
2084 with the opt_subexp flag, in order to discard a final empty
2085 match of a repeated subexpression.
2086 * posix/BOOST.tests: Adjust test vectors.
2087 * posix/PCRE.tests: Likewise.
2088 * posix/rxspencer/tests: Likewise.
2090 2000-05-22 Jakub Jelinek <jakub@redhat.com>
2092 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
2093 with omitted middle operand.
2095 2003-12-22 Jakub Jelinek <jakub@redhat.com>
2097 * posix/regcomp.c: Remove C99-ism.
2098 * posix/tst-rxspencer.c: Likewise.
2099 Based on a patch by Alex Davis <alex14641@yahoo.com>.
2101 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
2103 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
2104 (re_string_allocate, re_string_construct, re_string_reconstruct,
2105 re_string_realloc_buffers, build_wcs_buffer,
2106 build_wcs_upper_buffer, build_upper_buffer,
2107 re_string_translate_buffer, re_string_destruct,
2108 re_string_elem_size_at, re_string_char_size_at,
2109 re_string_wchar_at, re_string_context_at,
2110 re_node_set_alloc, re_node_set_init_1
2111 re_node_set_init_2, re_node_set_init_copy,
2112 re_node_set_add_intersect, re_node_set_init_union,
2113 re_node_set_merge, re_node_set_insert
2114 re_node_set_compare, re_node_set_contains
2115 re_node_set_remove_at, re_dfa_add_node,
2116 re_acquire_state, re_acquire_state_context,
2117 free_state): Add internal_function to declaration.
2119 * posix/regexec.c (match_ctx_init, match_ctx_clean,
2120 match_ctx_free, match_ctx_free_subtops,
2121 match_ctx_add_entry, search_cur_bkref_entry,
2122 match_ctx_clear_flag, match_ctx_add_subtop,
2123 match_ctx_add_sublast, sift_ctx_init,
2124 re_search_internal, re_search_2_stub, re_search_stub,
2125 re_copy_regs, acquire_init_state_context,
2126 prune_impossible_nodes, check_matching,
2127 check_halt_node_context, check_halt_state_context
2128 update_regs, proceed_next_node, push_fail_stack,
2129 pop_fail_stack, set_regs, free_fail_stack_return,
2130 sift_states_iter_mb, sift_states_backward
2131 update_cur_sifted_state, add_epsilon_src_nodes,
2132 sub_epsilon_src_nodes, check_dst_limits,
2133 check_dst_limits_calc_pos, check_subexp_limits,
2134 sift_states_bkref, clean_state_log_if_need,
2135 merge_state_array, transit_state,
2136 check_subexp_matching_top, transit_state_sb,
2137 transit_state_mb, transit_state_bkref,
2138 get_subexp, get_subexp_sub, find_subexp_node,
2139 check_arrival, check_arrival_add_next_nodes,
2140 find_collation_sequence_value, check_arrival_expand_ecl,
2141 check_arrival_expand_ecl_sub, expand_bkref_cache,
2142 build_trtable, check_node_accept_bytes, extend_buffers,
2143 group_nodes_into_DFAstates, check_node_accept): Likewise.
2145 * posix/regex_internal.c (re_string_construct_common,
2146 re_string_skip_chars, create_newstate_common,
2147 register_state, create_ci_newstate, create_cd_newstate,
2148 calc_state_hash): Likewise.
2149 (re_string_peek_byte_case, re_fetch_byte_case): Change
2150 declaration from ANSI to K&R.
2152 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
2154 * posix/regexec.c (build_trtable): Don't allocate the trtable
2155 until state->word_trtable is known. Don't hardcode UINT_BITS
2156 iterations on each bitset item.
2158 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2160 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
2161 Initialize REF before passing it to _dl_lookup_symbol.
2163 2003-12-21 Roland McGrath <roland@frob.com>
2165 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
2167 2003-12-21 Jakub Jelinek <jakub@redhat.com>
2169 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
2171 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
2172 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
2173 * posix/bug-regex19.c (tests): Add new tests.
2175 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
2177 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
2178 after checking syntax. Optimize.
2179 (calc_first): Fix comment.
2180 * posix/bug-regex13.c (tests): Add new tests.
2182 2003-12-21 Roland McGrath <roland@redhat.com>
2184 * manual/arith.texi (Parsing of Integers): Typo fix.
2186 2003-12-20 Roland McGrath <roland@frob.com>
2188 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
2189 add missing dereference of IFREQS before counting loop.
2191 2003-12-21 Andreas Schwab <schwab@suse.de>
2193 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
2196 2003-12-20 Ulrich Drepper <drepper@redhat.com>
2198 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
2200 2003-12-18 Ulrich Drepper <drepper@redhat.com>
2202 * stdio-common/printf_fp.c: Add support to use alternative decimal
2204 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
2205 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
2207 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2209 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
2210 reload PIC if we need to call __syscall_error, cleanup asm.
2212 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
2214 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
2215 FE_ALL_EXCEPT before complimenting.
2216 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
2217 and gcc '+r' constraint.
2218 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
2219 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
2220 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
2221 exception bits, OR with envp, pass to fesetenv.
2222 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
2223 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
2224 triggered by M_PI/69.69 converted to single precision.
2225 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
2226 bits not raised exception bits.
2228 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
2229 correct build strings.
2230 * sysdeps/hppa/dl-fptr.h: New file.
2231 * sysdeps/hppa/dl-fptr.c: Removed.
2232 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
2233 remove const qualifier for map.
2234 (_dl_function_address): Removed.
2235 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
2236 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
2237 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
2238 DL_DT_FINI_ADDRESS use the previous two macros.
2240 2003-12-17 Jakub Jelinek <jakub@redhat.com>
2242 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
2243 (tr_memalignhook): New function.
2244 (mtrace): Register tr_memalignhook.
2245 (muntrace): Deregister tr_memalignhook.
2246 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
2247 call it directly instead of memalign_internal.
2249 2003-12-17 Ulrich Drepper <drepper@redhat.com>
2251 * misc/mntent_r.c: Change encoding to match recently changed decoder.
2252 Patch by Alexander Achenbach <xela@slit.de>.
2254 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
2256 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
2259 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
2261 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
2262 conditional to include typedef elf_vrreg_t.
2264 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
2266 * posix/regexec.c (re_search_internal): Limit search to the
2267 beginning of the buffer if the initial states are empty for
2268 contexts that do not include CONTEXT_BEGBUF or, if
2269 !preg->newline_anchor, that do not include any one of
2270 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
2272 2003-12-17 Andreas Jaeger <aj@suse.de>
2274 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
2275 Kevin Pedretti <pedretti@ieee.org>.
2277 2003-12-17 Ulrich Drepper <drepper@redhat.com>
2279 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
2280 removes the visibility attributes which might be defined earlier
2281 for some gcc versions. Instead spell out what strong_alias does
2282 plus the visibility.
2284 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
2286 * posix/regex_internal.h: Make sure the regex code compile
2287 with non-GCC compilers by hiding attributes.
2289 2003-12-16 Jakub Jelinek <jakub@redhat.com>
2290 Paolo Bonzini <bonzini@gnu.org>
2292 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
2293 dests_ch items that are empty.
2295 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
2297 * posix/regexec.c (check_arrival): Remove duplicate test.
2299 2003-12-15 Ulrich Drepper <drepper@redhat.com>
2301 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
2302 * posix/regex_internal.c: Likewise.
2303 * posix/regexec.c: Likewise.
2304 Patch by Paolo Bonzini.
2306 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
2308 * posix/regex_internal.c (re_acquire_state_context):
2309 Compare the node sets after all the other comparisons.
2311 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
2313 * posix/regexec.c (find_subexp_node, check_arrival,
2314 check_arrival_add_next_nodes, check_arrival_expand_ecl,
2315 check_arrival_expand_ecl_sub, expand_bkref_cache):
2316 Rename the FL_OPEN parameter to TYPE, which is either
2317 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
2319 2003-12-12 Andreas Jaeger <aj@suse.de>
2321 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
2324 2003-12-11 Ulrich Drepper <drepper@redhat.com>
2326 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
2327 There might always be processes which have no vDSO.
2328 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
2329 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2331 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
2333 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
2336 2003-12-01 Jes Sorensen <jes@wildopensource.com>
2338 * rt/tst-clock.c (do_test): Print message when skipping
2339 CLOCK_PROCESS_CPUTIME_ID test.
2341 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
2342 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
2344 2003-12-02 David Mosberger <davidm@hpl.hp.com>
2346 * sysdeps/ia64/elf/initfini.c: Add unwind info.
2348 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
2350 (elf_machine_dynamic): Mark with attributes "unused" and "const".
2351 (elf_machine_runtime_setup): Likewise.
2353 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
2354 attribute "always_inline".
2355 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
2358 * configure.in: Check whether compiler has libunwind support.
2359 * config.make.in (have-cc-with-libunwind): New variable.
2360 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
2361 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
2364 2003-11-12 David Mosberger <davidm@hpl.hp.com>
2366 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
2367 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
2368 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
2371 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
2372 instead of DO_CALL().
2374 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
2377 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
2378 to take advantage of DO_CALL() macro.
2379 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
2380 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
2382 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
2383 program header. On ia64, the check failed previously because
2384 there are two program headers.
2386 2003-12-10 Andreas Jaeger <aj@suse.de>
2387 Ruediger Oertel <ro@suse.de>
2389 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
2391 2003-12-07 Ulrich Drepper <drepper@redhat.com>
2393 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
2394 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2395 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2396 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2397 * sysdeps/generic/s_nexttowardf.c: Likewise.
2398 * math/Makefile (tests): Add bug-nexttoward.
2399 * math/bug-nexttoward.c: New file.
2401 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
2402 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2403 * math/bug-nextafter.c (main): Add tests for overflow and negative
2406 2003-12-06 Ulrich Drepper <drepper@redhat.com>
2408 * math/Makefile (tests): Add bug-nextafter.
2409 * math/bug-nextafter.c: New file.
2410 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
2411 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2412 * math/libm-test.inc (nextafter_test): Add test for overflow after
2415 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
2417 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
2419 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
2421 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2423 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
2425 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
2426 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
2427 (END): Add cfi_endproc directive.
2428 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
2429 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
2430 cfi_startproc and cfi_endproc directive.
2431 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
2432 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
2433 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
2434 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
2435 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2437 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2439 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
2440 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
2441 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
2442 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
2443 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
2444 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
2445 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
2446 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
2447 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
2449 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
2451 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
2452 directives. Move thread_start out of ENTRY/PSEUDO_END block to
2453 make backchain terminate.
2454 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2456 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
2457 (unwind_backtrace, unwind_getip): New variables.
2458 (init, __backchain_backtrace, backtrace_helper): New functions.
2459 (__backtrace): Use unwind info for backtrace instead of backchain
2460 walking if the unwind functions can be found.
2461 * sysdeps/s390/s390-64/backtrace.c: Likewise.
2463 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
2465 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
2466 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
2467 (elf_prstatus32, elf_prpsinfo32): New structures.
2468 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
2470 * scripts/data/c++-types-s390-linux-gnu.data: New file.
2471 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
2473 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
2475 * stdlib/strfmon.c: Correct formatting of international currency
2476 values. The international currency formatting should prefer the
2477 int_* values if they are set for a locale, and use the domestic
2478 values if the int_* values are unset.
2480 2003-12-03 Jakub Jelinek <jakub@redhat.com>
2482 * posix/Makefile (distribute): Add BOOST.tests.
2483 (tests): Add tst-boost, depend on tst-boost-mem.
2484 (generated): Add tst-boost-mem and tst-boost.mtrace.
2485 (tst-boost-ARGS, tst-boost-ENV): Set.
2486 ($(objpfx)tst-boost-mem): New.
2487 * posix/tst-boost.c: New test.
2488 * posix/BOOST.tests: New file.
2490 * posix/Makefile (distribute): Add PCRE.tests.
2491 (tests): Add tst-pcre, depend on tst-pcre-mem.
2492 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
2493 (tst-pcre-ARGS, tst-pcre-ENV): Set.
2494 ($(objpfx)tst-pcre-mem): New.
2495 * posix/tst-pcre.c: New test.
2496 * posix/PCRE.tests: New file.
2498 2003-12-02 Jakub Jelinek <jakub@redhat.com>
2500 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
2502 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
2503 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2505 2003-12-03 Ulrich Drepper <drepper@redhat.com>
2507 * locale/programs/locarchive.c (enlarge_archive): Print size info
2508 only in verbose mode.
2510 * locale/iso-3166.def: Three letter code of Romania changed.
2512 2003-12-02 Roland McGrath <roland@redhat.com>
2514 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
2515 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
2517 2003-11-30 Andreas Jaeger <aj@suse.de>
2519 * config.make.in (fno-unit-at-a-time): Define.
2521 * configure.in: Add test for -fno-unit-at-a-time.
2524 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
2525 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
2527 2003-12-01 Automatic
2529 * version.h (VERSION): Bump to 2.3.3.
2531 2003-11-30 Andreas Jaeger <aj@suse.de>
2533 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
2534 decrease stack usage.
2536 2003-11-30 Andreas Schwab <schwab@suse.de>
2538 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
2539 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2541 2003-11-29 Ulrich Drepper <drepper@redhat.com>
2543 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
2544 recognize \134 as well.
2546 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
2548 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
2550 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
2552 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
2554 (struct ia64_fpreg): New definition.
2556 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
2558 (ELF_NGREG): New #define.
2559 (ELF_NFPREG): Likewise.
2560 (elf_greg_t): New type.
2561 (elf_gregset_t): Likewise.
2562 (elf_fpreg_t): Likewise.
2563 (elf_fpregset_t): Likewise.
2565 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
2567 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
2569 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
2570 (pt_all_user_regs): New type.
2572 2003-10-10 Simon Josefsson <jas@extundo.com>
2574 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
2575 strchrnul.h, strndup.h (from gnulib).
2576 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
2578 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
2579 Autoconf manual version.
2580 * argp/argp.h: Map __restrict to restrict or empty string when
2581 necessary, copied verbatim from posix/regex.h.
2583 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
2585 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
2586 addition to c++-types-$(base-machine)-$(config-os).data.
2587 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
2588 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
2590 2003-11-28 Ulrich Drepper <drepper@redhat.com>
2592 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
2594 * manual/sysinfo.texi (mtab): Adjust description accordingly.
2595 Reported by Andries.Brouwer@cwi.nl.
2597 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
2598 to compensate other setup.
2600 2003-11-27 Andreas Jaeger <aj@suse.de>
2602 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
2604 * math/libm-test.inc (atan2_test): Add test that run infinitly.
2605 Reported by "Willus" <etc231etc231@willus.com>.
2607 2003-11-27 Michael Matz <matz@suse.de>
2609 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
2612 2003-11-28 Jakub Jelinek <jakub@redhat.com>
2614 * posix/regexec.c (acquire_init_state_context): Make inline.
2615 Add always_inline attribute.
2616 (check_matching): Add BE macro. Move if (cur_state->has_backref)
2617 into if (dfa->nbackref).
2618 (sift_states_backward): Fix comment.
2619 (transit_state): Add BE macro. Move if (next_state->has_backref)
2620 into if (dfa->nbackref && next_state). Don't check for next_state
2622 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
2624 (parse_expression): Only call init_word_char if word context will be
2627 * posix/bug-regex11.c (tests): Add new tests.
2629 * posix/tst-regex.c: Include getopt.h.
2630 (timing): New variable.
2631 (main): Set timing to 1 if --timing argument is present.
2633 (run_test, run_test_backwards): Handle timing.
2635 2003-11-27 Jakub Jelinek <jakub@redhat.com>
2637 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
2638 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
2639 offsets_needed fields. Change icase, is_utf8 and map_notascii
2640 type from int bitfield to unsigned char.
2641 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
2642 (build_wcs_upper_buffer): Change prototype to return int.
2643 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
2644 defines, add prototypes.
2645 * posix/regex_internal.c (re_string_allocate): Don't initialize
2646 stop here. Don't initialize mbs_case. Set valid_raw_len.
2647 Use mbs_allocated instead of MBS_* macros.
2648 (re_string_construct): Don't initialize stop and valid_len here.
2649 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
2650 macros. Reallocate buffers if build_wcs_upper_buffer converted
2651 too few bytes. Set valid_len to bufs_len only for single byte
2652 no translation and set in that case valid_raw_len as well.
2653 (re_string_realloc_buffers): Reallocate offsets if not NULL.
2654 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
2656 (re_string_construct_common): Initialize raw_len, mbs_allocated,
2658 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
2659 after it. Set valid_raw_len. Don't set mbs_case.
2660 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
2661 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
2662 before mbrtowc instead of after it. If upper case character
2663 uses different number of bytes than lower case, goto to the
2664 slow path. Don't call towupper unnecessarily twice. Set
2665 valid_raw_len as well. Handle in the slow path the case if
2666 lower and upper case use different number of characters.
2668 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
2669 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
2671 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
2673 (re_string_reconstruct): Use raw_len/raw_stop to initialize
2674 len/stop. Clear valid_raw_len and offsets_needed when clearing
2675 valid_len. Use mbs_allocated instead of MBS_* macros.
2676 Check original offset against valid_raw_len instead of valid_len.
2677 Remove mbs_case handling. Adjust valid_raw_len together with
2678 valid_len. If is_utf8 and looking for tip context, apply
2679 pstr->trans first. If buffers start with partial multi-byte
2680 character, initialize mbs array as well if mbs_allocated.
2681 Check return value of build_wcs_upper_buffer.
2682 (re_string_peek_byte_case): New function.
2683 (re_string_fetch_byte_case): New function.
2684 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
2685 Don't free mbs_case. Free offsets.
2686 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
2688 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
2689 as well. Use valid_raw_len instead of valid_len when looking
2690 through fastmap. Adjust registers through input.offsets.
2691 (extend_buffers): Allow build_wcs_upper_buffer to fail.
2692 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
2695 2003-11-26 Jakub Jelinek <jakub@redhat.com>
2697 * posix/regexec.c (check_subexp_limits): Only check close
2698 subexpression limitation if one is found. Formatting.
2699 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
2701 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
2704 2003-11-26 Ulrich Drepper <drepper@redhat.com>
2706 * sysdeps/unix/sysv/linux/kernel-features.h
2707 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
2708 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
2709 if __ASSUME_PROT_GROWSUPDOWN is defined.
2711 2003-11-26 Andreas Jaeger <aj@suse.de>
2713 * sysdeps/unix/sysv/linux/dl-execstack.c
2714 (_dl_make_stack_executable): Set dl_stack_flags always for
2717 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
2719 * locale/program/ld-monetary.c: Only check the first three
2720 characters in int_curr_symbol against ISO-4217, to make the
2721 separator character used by a locale independent of the content
2723 * locale/iso-4217.def: Remove the space character from all
2724 currency values to get the new test code in ld-monetary.c working.
2726 2003-11-21 David Mosberger <davidm@hpl.hp.com>
2728 * elf/soinit.c (_fini): Put _fini() in .init_array section if
2729 HAVE_INITFINI_ARRAY is defined.
2731 2003-11-25 Ulrich Drepper <drepper@redhat.com>
2733 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
2734 Define it appropriately after last change. Use it where __sqrtl
2737 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
2739 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
2740 sqrt for gcc 3.3 and above.
2742 2003-11-25 Ulrich Drepper <drepper@redhat.com>
2744 * posix/runptests.c (main): Make errors fatal.
2745 * posix/PTESTS: One test in GA135 and GA136 check functionality
2746 which seems not guaranteed.
2748 2003-11-25 Jakub Jelinek <jakub@redhat.com>
2750 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
2751 returned REG_NOMATCH, set match_last to -1. Don't initialize
2752 pmatch[0] needlessly. Fix comment.
2753 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
2754 (set_regs): Fix comment.
2755 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
2756 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
2757 (build_charclass_op): Set has_plural_match if adding both
2758 SIMPLE_BRACKET and COMPLEX_BRACKET.
2759 * posix/bug-regex11.c (tests): Fix register values for one commented
2760 out test. Add new tests.
2762 * posix/regex_internal.c (re_string_allocate): Make sure init_len
2763 is at least dfa->mb_cur_max.
2764 (re_string_reconstruct): If is_utf8, don't fall back into
2765 re_string_skip_chars just because idx points into a middle of
2766 valid UTF-8 character. Instead, set the wcs bytes which correspond
2767 to the partial character bytes to WEOF.
2768 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
2769 instead of dfa->nodes_len + 1 state_log entries initially.
2770 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
2773 2003-11-24 Jakub Jelinek <jakub@redhat.com>
2775 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
2777 (re_dfa_t): Add sb_char field.
2778 (bitset_mask): New function.
2779 * posix/regcomp.c (free_dfa_content): Free sb_char.
2780 (init_dfa): Don't initialize word_char unnecessarily.
2782 (duplicate_node): Don't duplicate !word_char CHARACTERs with
2783 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
2784 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
2785 (duplicate_node_closure): Handle clone_dest == -1 from
2787 (peek_token): Initialize word_char bit.
2788 (parse_expression, parse_dup_op): Add comments.
2789 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
2790 starting bytes here at the beginning. Mask off the bits right
2791 before creating SIMPLE_BRACKET.
2792 (build_charclass_op): Likewise.
2793 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
2794 set accept bits for single-byte characters.
2795 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
2796 being single byte encoded and the rest multi-byte.
2797 * posix/bug-regex19.c (tests): Add new tests.
2798 (do_mb_tests): Initialize t to *test.
2799 (main): Fail even on do_mb_tests errors.
2801 2003-11-23 Ulrich Drepper <drepper@redhat.com>
2803 * posix/regexec.c: Correct several memory allocation problems.
2805 * posix/regex_internal.c: Likewise.
2806 * posix/regcomp.c: Likewise.
2808 * posix/regexec.c: Add const in a number of places.
2809 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
2810 debugging. Its value isn't important.
2812 2003-11-22 Ulrich Drepper <drepper@redhat.com>
2814 * posix/PTESTS: Fix first test of GA143.
2816 2003-11-21 Ulrich Drepper <drepper@redhat.com>
2818 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
2821 * locale/programs/charmap.c (charmap_read): If encoding is found
2822 not ASCII compatible, set enc_not_ascii_compatible.
2823 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
2824 * locale/programs/ld-ctype.c (ctype_startup): If
2825 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
2827 2003-11-22 Jakub Jelinek <jakub@redhat.com>
2829 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
2830 if !__libc_enable_secure.
2832 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
2834 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
2835 (dl_main): Set GL(dl_use_load_bias) default.
2836 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
2837 Add EXTRA_LD_ENVVARS_13.
2838 * elf/dl-support.c (_dl_use_load_bias): New variable.
2839 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
2840 with GL(dl_use_load_bias).
2841 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
2843 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
2844 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
2845 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
2846 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
2847 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
2849 2003-11-21 Ulrich Drepper <drepper@redhat.com>
2851 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
2853 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
2854 pointer. Adjust callers.
2856 * posix/regcomp.c (fetch_token): Change interface to match
2857 peek_token. This avoids some copying and reduces code size.
2859 2003-11-21 Jakub Jelinek <jakub@redhat.com>
2861 * posix/bug-regex19.c (tests): Add more tests.
2863 * posix/bug-regex11.c: And one more commented out test.
2865 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
2866 tests multiple times unnecessarily.
2868 * posix/bug-regex19.c (BRE, ERE): Define.
2869 (tests): Add many new tests, remove UTF-8 ones.
2870 (do_one_test, do_mb_tests): New functions.
2871 (main): Rewritten using do_one_test and do_mb_tests.
2873 2003-11-20 Ulrich Drepper <drepper@redhat.com>
2875 * posix/PTESTS: Fix first test in GA143.
2877 2003-11-20 Jakub Jelinek <jakub@redhat.com>
2879 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
2881 * posix/regex_internal.c (create_newstate_common, free_state):
2882 Don't free trtable_search.
2883 * posix/regexec.c (check_matching): Remove fl_search argument.
2884 (transit_state_sb): Likewise. #ifdef out as unused.
2885 (build_trtable): Remove fl_search argument. Set state->word_trtable
2886 and state->trtable. Build separate word and non-word tables if
2887 multi-byte and they differ for some character.
2888 (transit_state): Remove fl_search argument. Don't update
2889 state->trtable here. Handle state->word_trtable.
2890 #ifdef out unused call to transit_state_sb.
2891 (re_search_internal): Update check_matching caller.
2892 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
2893 bitmask for multi-byte locales.
2894 * posix/bug-regex19.c (tests): Enable some commented out tests, add
2896 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
2897 multi-byte. Don't run identical multi-byte tests multiple times
2899 (main): Check setlocale return value.
2900 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
2901 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
2902 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
2903 here, without --utf8 argument but with MALLOC_TRACE.
2905 2003-11-19 Jakub Jelinek <jakub@redhat.com>
2907 * posix/regexec.c (extend_buffers): Don't allocate
2908 twice as big state_log as needed. Don't modify pstr->valid_len
2909 for mb_cur_max == 1 !icase !trans.
2911 * posix/regcomp.c (free_bin_tree): Removed.
2912 (create_tree): Add dfa argument. Don't call re_malloc for
2913 each tree, instead allocate from str_tree_storage.
2914 (re_dfa_add_tree_node): New function.
2915 (free_dfa_content): Handle freeing if dfa->nodes == NULL
2916 or dfa->state_table == NULL.
2917 (re_compile_internal): Call free_dfa_content if init_dfa
2918 fails. Call free_workarea_compile, re_string_destruct
2919 and free_dfa_content for most of the other failure paths.
2920 (init_dfa): Initialize str_tree_storage_idx.
2921 Don't clear any fields on allocation failure.
2922 (free_workarea_compile): Free str_tree_storage chunks
2923 instead of free_bin_tree (dfa->str_tree).
2924 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
2925 followed by create_tree. Add dfa argument to remaining
2926 create_tree calls. Remove new_idx variable. Remove calls
2928 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
2929 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
2930 (duplicate_tree): Remove calls to free_bin_tree, add dfa
2931 argument to create_tree.
2932 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
2933 (bin_tree_storage_t): New type.
2934 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
2936 * posix/Makefile (tests): Add bug-regex21.
2937 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
2938 tst-rxspencer-mem and tst-rxspencer.mtrace.
2939 (tests): Depend on $(objpfx)bug-regex21-mem
2940 and $(objpfx)tst-rxspencer-mem.
2941 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
2942 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
2943 * posix/tst-rxspencer.c (main): Add call to mtrace.
2944 Free line at the end.
2945 * posix/bug-regex21.c: New test.
2947 2003-11-19 Ulrich Drepper <drepper@redhat.com>
2949 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
2951 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
2952 fails, just use the byte, do no fancy conversions.
2954 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
2956 (re_string_is_single_byte_char): Likewise.
2958 2003-11-18 Ulrich Drepper <drepper@redhat.com>
2960 * posix/regexec.c (get_subexp): After calling get_subexp_sub
2961 reload buf and bkref_str. Little optimization by avoiding memcmp.
2963 2003-11-14 David Mosberger <davidm@hpl.hp.com>
2965 * sysdeps/unix/sysv/linux/ia64/sysdep.h
2966 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
2967 that all existing GAS versions have a problem with .align inside
2969 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
2970 * sysdeps/ia64/memcpy.S: Likewise.
2971 * sysdeps/ia64/memset.S: Likewise.
2972 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
2973 out of .text into .rodata, where it belongs.
2975 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
2976 save/restore input-arguments, because they're necessarily
2977 preserved by the kernel to support syscall-restart.
2979 2003-11-18 Jakub Jelinek <jakub@redhat.com>
2981 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
2982 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
2984 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
2985 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
2986 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
2987 Handle OP_UTF8_PERIOD.
2988 (re_string_reconstruct): Set valid_len for single byte char searching
2989 with no translation and case sensitivity.
2990 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
2992 (re_compile_internal): Don't call optimize_utf8 if preg->translate
2994 (optimize_utf8): Remove BACK_SLASH case.
2995 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
2997 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
2998 any bits set and COMPLEX_BRACKET is used.
2999 * posix/regexec.c (transit_state_mb): Fix comment typo.
3000 (group_nodes_into_DFAstates, check_node_accept): Handle
3002 (check_node_accept_bytes): Likewise. Reorder slightly so that
3003 re_string_char_size_at and re_string_elem_size_at are called
3005 * posix/bug-regex20.c (BRE, ERE): Define.
3006 (tests): Use them to make lines shorter. Expect . to be
3007 optimized. Add lots of new tests.
3008 (main): Run (ATM just case sensitive) test with backwards searching
3011 2003-11-18 Jakub Jelinek <jakub@redhat.com>
3013 * io/bug-ftw4.c: Include string.h.
3014 * posix/fnmatch.c (mbsinit): Remove define.
3016 2003-11-17 Jakub Jelinek <jakub@redhat.com>
3018 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
3020 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
3021 followed by dup operator is expected to be optimized.
3023 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
3024 variables to the block where they are only used, initialize
3025 nrules only immediately before using it.
3027 2003-11-15 Andreas Jaeger <aj@suse.de>
3029 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
3030 * sysdeps/x86_64/fpu/s_truncl.S: New file.
3031 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
3032 * sysdeps/x86_64/fpu/s_floorl.S: New file.
3033 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
3034 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
3036 * math/libm-test.inc (floor_test): Test also ±0.25.
3037 (ceil_test): Test -0.25.
3039 2003-11-17 Ulrich Drepper <drepper@redhat.com>
3041 * sysdeps/posix/getaddrinfo.c: Add support for destination address
3042 selection according to RFC 3484.
3044 2003-11-15 Ulrich Drepper <drepper@redhat.com>
3046 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
3047 Replace last two parameters of re_string_allocate and
3048 re_string_construct with pointer to DFA.
3049 (re_dfa_t): Add map_notascii field.
3050 * posix/regcomp.c (re_compile_internal): Add call of
3051 re_string_construct.
3052 (init_dfa): Initialize map_notascii.
3053 * posix/regex_internal.c: Adjust definitions of re_string_allocate
3054 and re_string_construct.
3055 Pass DFA to re_string_construct. Adjust definition. Initialize
3057 (build_wcs_upper_buffer): If map_notascii is zero use simplified
3058 method to map ASCII values to upper case.
3059 * posix/regex.c: Include localeinfo.h.
3060 * posix/regexec.c: Adjust call of re_string_allocate.
3062 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
3063 * locale/localeinfo.h (LIMAGIC): Change value.
3064 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
3065 * locale/C-ctype.h: Likewise.
3066 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
3067 ASCII to non-ASCII value. Write out that value.
3069 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
3070 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
3072 2003-11-14 Jakub Jelinek <jakub@redhat.com>
3074 * posix/tst-rxspencer.c (check_match): @ without any following
3075 characters must match only end of string.
3076 (main): Fix filename in error message.
3078 2003-11-12 David Mosberger <davidm@hpl.hp.com>
3080 * sysdeps/ia64/dl-machine.h: Force inlining of
3081 elf_machine_runtime_setup().
3083 2003-11-13 Andreas Jaeger <aj@suse.de>
3085 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
3086 (CFLAGS-test-double.c): Likewise.
3087 (CFLAGS-test-ldouble.c): Likewise.
3088 (CPPFLAGS-test-ifloat.c): Likewise.
3089 (CPPFLAGS-test-idouble.c): Likewise.
3090 (CPPFLAGS-test-ildoubl.c): Likewise.
3092 * math/libm-test.inc (ceil_test): Test ceil (0.25).
3094 2003-11-04 Ulrich Drepper <drepper@redhat.com>
3096 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
3097 sends the netlink data.
3098 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
3100 2003-11-13 Jakub Jelinek <jakub@redhat.com>
3102 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
3103 with no bits set for >= 0x80 chars is seen.
3104 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
3106 (main): Run all tests with RE_ICASE as well.
3108 2003-11-13 Ulrich Drepper <drepper@redhat.com>
3110 * posix/Makefile: Add rules to build and run tst-rxspencer.
3111 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
3112 * posix/tst-rxspencer.c: New file.
3113 * posix/rxspencer/tests: New file.
3114 * posix/rxspencer/COPYRIGHT: New file.
3115 Patch mostly by Jakub Jelinek.
3117 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
3118 this is no option given the first token.
3120 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
3121 hyphen in range expression. Return EBRACK in this case.
3123 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
3124 we expect them or it's the last element in the bracket expression.
3125 Indicated by new parameter. Adjust all callers.
3127 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
3128 Prettier error messages.
3130 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
3131 number in {,} expression is larger.
3133 2003-11-13 Andreas Jaeger <aj@suse.de>
3135 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3136 Define appropriately for x86_64.
3137 (__ASSUME_UTIMES): Likewise.
3138 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
3140 * sysdeps/x86_64/fpu/s_ceill.S: New file.
3142 2003-11-13 Ulrich Drepper <drepper@redhat.com>
3144 * posix/regcomp.c (parse_expression): In BRE consecutive
3145 duplications are not allowed.
3147 2003-11-12 Ulrich Drepper <drepper@redhat.com>
3149 * posix/regcomp.c (parse_bracket_exp): If end of expression is
3150 seen, return EBRACK error, not BADPAT.
3152 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
3153 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
3154 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
3155 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
3157 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
3160 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
3161 * posix/runptests.c (main): Handle comments.
3162 * posix/PTESTS2C.sed: Handle comments.
3164 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3166 * posix/regcomp.c (optimize_utf8): New function.
3167 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
3169 (re_compile_internal): Call optimize_utf8 if not case insensitive
3170 and in UTF-8 locale.
3171 * posix/regex_internal.h: Ifdef out some prototypes if
3172 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
3173 * posix/Makefile (tests): Add bug-regex20.
3174 (bug-regex20-ENV): Add LOCPATH.
3175 * posix/bug-regex20.c: New test.
3177 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3179 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
3181 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3183 * posix/tst-regex.c (umemlen): New variable.
3184 (test_expr): Add expectedicase argument. Test case insensitive
3185 searches as well as backwards searches (case sensitive and
3187 (run_test): Add icase argument. Use it to compute regcomp flags.
3188 (run_test_backwards): New function.
3189 (main): Cast read to size_t to avoid warning. Set umemlen.
3190 Add expectedicase arguments to test_expr.
3191 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
3192 find previous character by walking back instead of converting
3193 all chars from beginning.
3195 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3197 * posix/regex_internal.h (struct re_string_t): Add is_utf8
3198 and mb_cur_max fields.
3199 (struct re_dfa_t): Likewise. Reorder fields to make structure
3200 smaller on 64-bit arches.
3201 (re_string_allocate, re_string_construct): Add mb_cur_max and
3203 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
3204 instead of MB_CUR_MAX.
3205 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
3206 instead of MB_CUR_MAX.
3207 (re_compile_internal): Pass new arguments to re_string_construct.
3208 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
3209 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
3211 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
3212 dfa->mb_cur_max instead of MB_CUR_MAX.
3213 * posix/regex_internal.c (re_string_construct_common): Add
3214 mb_cur_max and is_utf8 arguments. Initialize fields with them.
3215 (re_string_allocate, re_string_construct): Add mb_cur_max and
3216 is_utf8 arguments, pass them to re_string_construct_common.
3217 Use mb_cur_max instead of MB_CUR_MAX.
3218 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
3220 (re_string_reconstruct): Likewise.
3221 (re_string_context_at): Use input->mb_cur_max instead of
3223 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
3224 instead of MB_CUR_MAX.
3225 * posix/regexec.c (re_search_internal): Likewise.
3226 Pass new arguments to re_string_allocate.
3227 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
3229 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
3231 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3233 * posix/Makefile (tests): Add bug-regex19.
3234 (bug-regex19-ENV): Add LOCPATH.
3235 * posix/bug-regex19.c: New test.
3237 2003-11-11 Jakub Jelinek <jakub@redhat.com>
3239 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
3240 with MB_CUR_MAX > 1 locales in the fastmap.
3242 2003-11-11 Jakub Jelinek <jakub@redhat.com>
3244 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
3245 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
3247 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
3248 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
3249 * posix/bug-regex17.c: New file
3250 * posix/bug-regex18.c: New file.
3252 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
3254 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
3255 Define __NR_pread/__NR_pwrite if not done in kernel headers
3257 2003-11-11 Roland McGrath <roland@redhat.com>
3259 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
3261 * manual/Makefile (info): Don't depend on dir-add.info.
3262 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
3263 (dir-add.info): Target removed, replaced with ...
3264 (dir-add.texi): New target.
3265 (distribute): Add it.
3266 (install): Remove variant with --section arguments.
3267 Let the @dircategory directives do their work.
3268 (mostlyclean): Don't remove dir-add.info here.
3269 (realclean): Remove dir-add.texi here.
3270 * manual/libc.texinfo: @include dir-add.texi
3271 * configure.in: Remove check for old Debian install-info.
3272 * configure: Regenerated.
3273 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
3275 2003-11-08 Andreas Schwab <schwab@suse.de>
3277 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
3279 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
3281 * io/ftwtest-sh: Fix nested sed commands.
3283 2003-11-10 Jakub Jelinek <jakub@redhat.com>
3285 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
3286 valid_len wide chars.
3288 2003-11-09 Roland McGrath <roland@redhat.com>
3290 * manual/examples/dir2.c (one): Add const to argument type.
3291 Reported by J de Haan <j.de.haan@home.nl>.
3293 2003-11-07 Ulrich Drepper <drepper@redhat.com>
3295 * po/pl.po: Update from translation team.
3297 2003-11-07 Jakub Jelinek <jakub@redhat.com>
3299 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
3300 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
3301 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
3302 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
3304 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
3305 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
3306 and nftw64@@GLIBC_2.3.3.
3308 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
3309 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
3310 * io/ftw.c (ftw_dir): Add old_dir argument.
3311 Clear result if it was FTW_SKIP_SIBLINGS after processing all
3312 dir entries. Change cwd back if old_dir != NULL.
3313 (process_entry): Adjust caller. Don't change cwd back here.
3314 Change FTW_SKIP_SUBTREE result to 0.
3315 (ftw_startup): Adjust ftw_dir caller.
3316 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
3317 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
3318 (options, main): Add --skip-subtree and --skip-siblings options.
3319 (cb): Use return FTW_CONTINUE instead of return 0.
3320 Handle --skip-subtree and --skip-siblings.
3321 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
3322 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
3324 2003-11-04 Jakub Jelinek <jakub@redhat.com>
3326 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
3328 * io/Makefile (tests): Add bug-ftw4.
3329 * io/bug-ftw4.c: New test.
3331 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
3333 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
3334 (struct _IO_FILE_complete_plus): New type.
3335 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
3336 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
3337 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
3338 Call _IO_old_init instead of _IO_init.
3340 2003-11-03 Ulrich Drepper <drepper@redhat.com>
3342 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
3344 * locale/iso-639.def: Add Blin.
3345 Patch by Daniel Yacob <locales@geez.org>.
3347 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
3349 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
3350 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
3352 2003-11-01 Randolph Chung <tausq@debian.org>
3354 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
3355 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
3356 Add missing parentheses.
3358 2003-11-01 Roland McGrath <roland@redhat.com>
3360 * libio/bug-ftell.c (do_test): Add a cast.
3362 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
3364 * Makerules (shlib.lds): Make sure that ld doesn't try to link
3365 anything while generating the linker script.
3367 2003-10-31 Roland McGrath <roland@redhat.com>
3369 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
3372 2003-10-29 Ulrich Drepper <drepper@redhat.com>
3374 * po/be.po: Update from translation team.
3376 2003-10-27 Ulrich Drepper <drepper@redhat.com>
3378 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
3381 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
3384 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
3385 rest of line. We use getline which means this cannot happen.
3387 2003-10-26 Ulrich Drepper <drepper@redhat.com>
3389 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
3390 Avoid infinite loops in case the mounts file is hosed.
3391 * io/Makefile: Add rules to build and run tst-statvfs.
3392 * io/tst-statvfs.c: New file.
3394 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
3395 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
3396 executables unless __RTLD_OPENEXEC flag is present.
3397 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
3398 _dl_map_object when loading the executable.
3400 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
3402 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
3404 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
3405 reverse lookup format for IPv6 addresses is using bitstring and
3407 * resolv/ns_name.c: Implement encoding and decoding bitstring in
3410 2003-10-23 Jakub Jelinek <jakub@redhat.com>
3412 * locale/programs/locale.c (show_info): Fix printing word values on
3413 64-bit big-endian architectures.
3415 2003-10-19 Bruno Haible <bruno@clisp.org>
3417 * intl/hash-string.c (hash_string): Zero-extend each char from the
3418 string; the old code did a sign-extend on some platforms.
3420 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
3422 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
3423 append options to these.
3424 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
3426 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
3428 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
3430 2003-10-15 Roland McGrath <roland@redhat.com>
3432 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
3433 Fake an entry for the main executable and then call __dl_iterate_phdr.
3434 * elf/Makefile (routines): Remove dl-iteratephdr-static.
3435 (elide-routines.os): Likewise.
3436 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
3437 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
3438 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
3440 2003-10-15 Jakub Jelinek <jakub@redhat.com>
3442 * elf/rtld.c (print_statistics): Print also number of relative
3445 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
3447 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
3448 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
3449 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
3450 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
3451 and undef JUMPTARGET before use.
3452 [PIC]: Save pic register around syscall.
3453 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
3454 Cleanup asm statment.
3456 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3458 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
3459 after trapa instruction.
3461 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3463 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
3465 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
3467 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
3469 2003-10-09 Roland McGrath <roland@redhat.com>
3471 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
3474 2003-10-08 Jakub Jelinek <jakub@redhat.com>
3476 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
3477 two identical copies of strings.
3479 2003-10-06 Ulrich Drepper <drepper@redhat.com>
3481 * posix/bug-regex11.c: Add some more tests which fail so far.
3482 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
3484 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
3486 * posix/bug-regex11.c: Add more backreference-related test cases.
3487 (main): Show the failing regex in the error messages.
3488 * posix/regexec.c (check_dst_limits_calc_pos):
3489 Simplify some nested conditionals. Replace if's with a switch
3491 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
3492 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
3493 does not change in the recursive invocation, fixing an infinite loop
3494 in the ()\1*\1* regex.
3495 (sift_states_backward): Fix function comment.
3496 * posix/regcomp.c (calc_epsdest): Add an assertion.
3498 2003-10-06 Ulrich Drepper <drepper@redhat.com>
3500 * manual/examples/testopt.c: Fix warnings. Better error message
3501 for missing -c argument.
3502 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
3504 * timezone/asia: Update from tzdata2003d.
3505 * timezone/australasia: Likewise.
3506 * timezone/backward: Likewise.
3507 * timezone/europe: Likewise.
3508 * timezone/iso3166.tab: Likewise.
3509 * timezone/northamerica: Likewise.
3510 * timezone/southamerica: Likewise.
3511 * timezone/zone.tab: Likewise.
3513 2003-10-05 Jakub Jelinek <jakub@redhat.com>
3515 * sysdeps/ia64/backtrace.c: New file.
3516 * sysdeps/x86_64/backtrace.c: New file.
3517 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
3518 (_Unwind_Backtrace): New prototype.
3520 2003-10-03 Ulrich Drepper <drepper@redhat.com>
3522 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
3523 * sysdeps/i386/elf/setjmp.S: Likewise.
3525 2003-10-02 Roland McGrath <roland@redhat.com>
3527 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
3528 * argp/argp-namefrob.h
3529 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
3530 (__argp_short_program_name): Don't declare fn, define it as a macro.
3532 2003-08-22 Simon Josefsson <jas@extundo.com>
3534 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
3536 * argp/argp-help.c: Don't include malloc.h, some platforms
3537 complain and it doesn't appear to be used.
3538 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
3540 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
3542 (hol_entry_long_iterate): Change __attribute to __attribute__.
3543 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
3544 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
3545 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
3546 modified after comments from Ulrich Drepper.
3547 (__argp_short_program_name): Ditto.
3548 (__argp_state_help, __argp_error, __argp_failure): Use it.
3549 (__argp_failure): Use strerror when necessary.
3551 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
3552 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
3553 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
3554 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
3555 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
3556 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
3557 non-unlocked functions.
3558 [!_LIBC]: Add prototypes for __argp_basename and
3559 __argp_short_program_name.
3561 * argp/argp-parse.c (argp_default_parser): Only use
3562 program_invocation{_short,}_name if declared.
3563 (parser_init): Use __argp_short_program_name.
3565 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
3566 '#include features.h'.
3568 * argp/argp.h [!__attribute__]: Define to nothing.
3570 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
3572 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
3573 for the first token in a subexpression as well.
3575 2003-10-02 Jakub Jelinek <jakub@redhat.com>
3577 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
3579 (parse_reg_exp): Likewise.
3580 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
3582 * posix/bug-regex11.c (tests): Add new tests.
3583 * posix/bug-regex12.c (tests): Add new test.
3585 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
3587 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
3588 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
3590 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
3592 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
3593 the old thread-m.h header too.
3595 2003-10-02 Ulrich Drepper <drepper@redhat.com>
3597 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
3598 back to 131027 since this is what the kernel enforces.
3600 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
3601 define it with libc_freeres_ptr.
3603 2003-10-01 Roland McGrath <roland@redhat.com>
3605 * elf/rtld.c (dl_main): Add cast in last change.
3607 2003-09-10 Chris Demetriou <cgd@broadcom.com>
3609 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
3610 "#if 0" surrounding most of contents.
3611 (SYSCALL_ERROR_LABEL): Define.
3612 (__SYSCALL_CLOBBERS): Add $10.
3613 (internal_syscall7): Remove.
3614 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3616 2003-09-30 Ulrich Drepper <drepper@redhat.com>
3618 * elf/rtld.c (dl_main): Also set l_map_start.
3620 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
3622 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
3623 to work around kernel problem.
3625 2003-09-27 Wolfram Gloger <wg@malloc.de>
3627 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
3628 "thread-m.h", so that default parameters can be overridden in a
3629 system-specific malloc-machine.h. Remove extra ; from extern "C"
3631 * sysdeps/generic/malloc-machine.h: New file.
3632 * sysdeps/mach/hurd/malloc-machine.h: New file.
3633 * malloc/thread-m.h: Removed.
3634 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
3635 is in sysdeps/generic/malloc-machine.h now.
3637 2003-09-29 Ulrich Drepper <drepper@redhat.com>
3639 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
3640 variables only used if TLS_TCB_AT_TP is defined into the #if
3643 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
3644 well to cover using long long in C90.
3646 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
3648 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
3649 Redefine and use __libc_cleanup_region_end instead.
3651 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
3653 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
3654 fix prototypes for picky C++ compilers.
3656 2003-09-27 Ulrich Drepper <drepper@redhat.com>
3658 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
3659 the device ID is invalid and return -1.
3660 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
3662 2003-09-26 Andreas Schwab <schwab@suse.de>
3664 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
3665 rt_sigprocmask system call.
3667 2003-09-25 Roland McGrath <roland@redhat.com>
3669 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
3670 Don't check for zero __libc_stack_end, it should be initialized.
3671 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
3672 and fall back if it fails with EINVAL.
3673 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
3675 2003-09-25 Jakub Jelinek <jakub@redhat.com>
3677 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
3678 sysdeps/i386/dl-procinfo.c instead of
3679 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
3680 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
3683 2003-09-25 Ulrich Drepper <drepper@redhat.com>
3685 * posix/regcomp.c (peek_token): Remove recent changes for anchor
3687 (parse_reg_exp): Likewise.
3688 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
3690 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
3693 * nis/nis_table.c (nis_list): Always strdup string used with
3694 ibreq->ibr_name. Add several NULL pointer checks.
3696 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
3698 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
3699 * nis/nss_nisplus/nisplus-grp.c: Likewise.
3700 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
3701 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
3702 * nis/nss_nisplus/nisplus-network.c: Likewise.
3703 * nis/nss_nisplus/nisplus-proto.c: Likewise.
3704 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
3705 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
3706 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
3707 * nis/nss_nisplus/nisplus-service.c: Likewise.
3708 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
3710 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
3712 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3713 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
3714 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
3715 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3716 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
3717 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3718 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
3719 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3720 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3721 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3722 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
3724 2003-09-25 Jakub Jelinek <jakub@redhat.com>
3726 * misc/syslog.c: Include locale.h.
3727 (vsyslog): Add date always in C locale %h %e %T format.
3729 2003-09-24 Paul Eggert <eggert@twinsun.com>
3731 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
3732 size_t overflow when reallocating storage.
3733 * argp/argp-help.c (make_hol, hol_append): Likewise.
3734 (SIZE_MAX): New macro.
3736 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
3738 * sysdeps/mach/hurd/bits/libc-lock.h
3739 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
3741 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
3743 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
3744 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
3745 #include_next dl-procinfo.h to get them.
3746 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
3747 (_DL_PLATFORMS_COUNT): Likewise.
3748 (_DL_FIRST_PLATFORM): Likewise.
3749 (_DL_HWCAP_PLATFORM): Likewise.
3750 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
3751 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
3752 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
3753 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
3754 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
3755 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
3756 HWCAP_IMPORTANT): Likewise.
3757 (_DL_PROCINFO_H_): Likewise.
3758 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
3759 (_dl_string_platform): Likewise.
3760 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
3761 * sysdeps/i386/dl-procinfo.c: ... here, new file.
3763 2003-09-24 Ulrich Drepper <drepper@redhat.com>
3765 * sysdeps/unix/sysv/linux/dl-execstack.c
3766 (_dl_make_stack_executable): Remember that we changed the permission.
3768 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
3769 __libc_stack_end. Patch by David Mosberger.
3771 2003-09-24 Jakub Jelinek <jakub@redhat.com>
3773 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
3774 __libc_stack_end@GLIBC_PRIVATE.
3776 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
3777 (_dl_sysdep_start): Set __libc_stack_end here.
3778 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
3780 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
3781 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
3782 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
3783 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
3784 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
3785 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
3786 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
3787 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
3788 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
3789 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
3790 (RTLD_START): Remove setting of __libc_stack_end.
3791 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
3792 (RTLD_START): Remove setting of __libc_stack_end.
3794 2003-09-24 Ulrich Drepper <drepper@redhat.com>
3796 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
3797 function definitions. Adjust macro expansions accordingly.
3798 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
3799 minor, makedev name.
3800 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
3802 2003-09-24 Jakub Jelinek <jakub@redhat.com>
3804 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
3807 2003-09-24 Jakub Jelinek <jakub@redhat.com>
3809 * nscd/Makefile (others): Add nscd before including ../Rules.
3811 2003-09-24 Ulrich Drepper <drepper@redhat.com>
3813 * nscd/Makefile: Add rules to build nscd as a PIE.
3814 * configure.in: Check for -fpie and -pie compiler options.
3815 * config.make.in (have-fpie): Define.
3817 2003-09-23 Ulrich Drepper <drepper@redhat.com>
3819 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
3821 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
3822 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
3823 * sysdeps/unix/sysv/linux/makedev.c: New file.
3824 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
3825 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
3826 (sysdep_routines): Add makedev.
3827 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
3828 major, minor, makedev.
3829 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
3831 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
3832 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
3833 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
3834 Code by Alexander Viro <aviro@redhat.com>.
3836 2003-09-23 Ulrich Drepper <drepper@redhat.com>
3838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
3839 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
3841 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
3842 for include Altivec support for PPC32. It was not compatible.
3843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
3844 offsets for ucontext_t change.
3845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
3846 for ucontext_t change. Add compatibility code.
3847 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
3848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3849 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3850 Patch by Paul Mackerras <paulus@samba.org>.
3852 2003-02-25 Randolph Chung <tausq@debian.org>
3854 * sysdeps/hppa/Makefile: Include compat code in build.
3855 * sysdeps/hppa/libgcc-compat.c: New file.
3856 * sysdeps/hppa/Dist: Add libgcc-compat.c.
3857 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
3859 2003-09-23 Roland McGrath <roland@redhat.com>
3861 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
3862 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
3863 Move GL(dl_make_stack_executable_hook) initialization up.
3864 * elf/tst-execstack-prog.c: New file.
3865 * elf/Makefile (tests-execstack-yes): Add it.
3866 (LDFLAGS-tst-execstack-prog): New variable.
3868 2003-09-23 Jakub Jelinek <jakub@redhat.com>
3870 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
3871 before calling _dl_start, using %rip relative access.
3872 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
3875 2003-09-23 Roland McGrath <roland@redhat.com>
3877 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
3878 calling _dl_start, using GOTOFF access.
3880 * configure.in (libc_cv_z_execstack): New check.
3881 * configure: Regenerated.
3882 * config.make.in (have-z-execstack): New variable set by it.
3883 * elf/tst-execstack.c: New file.
3884 * elf/tst-execstack-mod.c: New file.
3885 * elf/tst-execstack-needed.c: New file.
3886 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
3888 (tests, modules-names): Conditionally include them.
3889 (distribute): Add tst-execstack-mod.c here.
3890 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
3891 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
3892 ($(objpfx)tst-execstack-needed): New target.
3893 (LDFLAGS-tst-execstack-needed): New variable.
3895 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
3896 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
3897 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
3898 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
3899 Initialize _dl_make_stack_executable_hook.
3900 * elf/dl-support.c: Define those new variables.
3901 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
3902 (_dl_phdr): Fix type.
3903 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
3904 enable execute permission for the stack if necessary.
3905 * sysdeps/generic/dl-execstack.c: New file.
3906 * elf/Makefile (dl-routines): Add it.
3907 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
3908 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
3910 2003-09-23 Ulrich Drepper <drepper@redhat.com>
3912 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
3914 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
3916 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
3917 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
3920 2003-09-22 Ulrich Drepper <drepper@redhat.com>
3922 * malloc/malloc.c: Include <stdint.h>.
3924 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
3926 * posix/regcomp.c (build_word_op): Rename like...
3927 (build_charclass_op): ...this. Accept two extra parameters,
3928 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
3929 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
3930 (parse_expression): Replace build_word_op with
3931 build_charclass_op, add new arguments, accept OP_SPACE
3933 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
3936 * posix/regcomp.c (peek_token): Don't look back for ( or |
3937 to check whether to treat a caret as special. It fails
3938 for the (extended) regex \(^.
3939 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
3940 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
3942 * posix/regexec.c: Check out of bounds value before shifting.
3944 * posix/regex_internal.h: Define __attribute for non-gcc.
3946 2003-09-22 Jakub Jelinek <jakub@redhat.com>
3948 * include/atomic.h (atomic_compare_and_exchange_val_rel,
3949 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
3952 * sysdeps/unix/opendir.c: Include string.h.
3954 2003-09-22 Ulrich Drepper <drepper@redhat.com>
3956 * timezone/zdump.c: Update from tzcode2003c.
3957 * timezone/zic.c: Likewise.
3958 * timezone/leapseconds: Update from tzdata2003c.
3960 2003-09-19 Ulrich Drepper <drepper@redhat.com>
3962 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
3963 final build to ease quality control.
3965 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
3966 ld.so, don't include NULL buffer pointer handling.
3968 2003-09-19 Jakub Jelinek <jakub@redhat.com>
3970 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
3972 2003-09-18 Jakub Jelinek <jakub@redhat.com>
3974 * libio/memstream.c (open_memstream): Use _IO_init instead of
3977 2003-09-17 Ulrich Drepper <drepper@redhat.com>
3979 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
3980 have to recognize octal and hexadecimal numbers as well. Simplify
3981 function, signs are handled in strtol.
3982 * posix/wordexp-test.c: Add tests for octal and hexadecimal
3983 numbers in arithmetic expressions.
3985 2003-09-17 Jakub Jelinek <jakub@redhat.com>
3987 * elf/Makefile (distribute): Add tst-alignmod.c.
3988 (tests): Add tst-align.
3989 (modules-names): Add tst-alignmod.
3990 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
3991 $(stack-align-test-flags).
3992 ($(objpfx)tst-align): Depend on libdl.
3993 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
3994 * elf/tst-align.c: New file.
3995 * elf/tst-alignmod.c: New file.
3996 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
3997 * misc/tst-tsearch.c: Include tst-stack-align.h.
3998 (stack_align_check): New array.
3999 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
4000 (main): Report error if stack was not enough aligned
4001 in cmp_fn or walk_action.
4002 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
4003 * stdlib/tst-qsort.c: Include tst-stack-align.h.
4004 (align_check): New var.
4005 (compare): Use TEST_STACK_ALIGN () macro.
4006 (main): Report error if stack was not enough aligned in compare.
4007 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
4008 unneeded -mpreferred-stack-boundary=4.
4009 * sysdeps/x86_64/tst-stack-align.h: New file.
4011 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
4012 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
4014 2003-09-17 Philip Blundell <philb@gnu.org>
4016 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
4018 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
4020 * sysdeps/arm/sysdep.h (DO_RET): New.
4022 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
4023 required but not defined. Improve test of error code.
4025 2003-09-17 Jakub Jelinek <jakub@redhat.com>
4027 * sysdeps/i386/Makefile (stack-align-test-flags): Add
4028 -malign-double -mpreferred-stack-boundary=4.
4030 2003-09-17 Ulrich Drepper <drepper@redhat.com>
4032 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
4033 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
4035 2003-09-15 Jakub Jelinek <jakub@redhat.com>
4037 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
4038 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
4040 2003-09-17 Jakub Jelinek <jakub@redhat.com>
4042 * Makeconfig (stack-align-test-flags): Set.
4043 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
4044 $(stack-align-test-flags).
4045 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
4046 (align_check): New var.
4047 (comp): Use TEST_STACK_ALIGN macro.
4048 (do_test): Fail if align_check != 1.
4049 * sysdeps/generic/tst-stack-align.h: New file.
4050 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
4051 * sysdeps/i386/i686/tst-stack-align.h: New file.
4053 2003-09-17 Ulrich Drepper <drepper@redhat.com>
4055 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
4056 stack which is aligned (mod 16).
4058 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
4059 Hans-Peter Nilsson <hp@axis.com>
4061 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
4062 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
4064 2003-09-17 Jakub Jelinek <jakub@redhat.com>
4066 * dirent/scandir.c: Include bits/libc-lock.h.
4067 (struct scandir_cancel_struct): New type.
4068 (cancel_handler): New function.
4069 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
4070 scandir_cancel_struct.
4072 2003-09-16 Ulrich Drepper <drepper@redhat.com>
4074 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
4075 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4076 Add internal_statvfs.
4077 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
4078 instead of including "internal_statvfs.c".
4079 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
4080 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
4081 Add code to avoid the stat calls on all the reported mount points
4082 when we can determine mismatch in advance.
4083 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
4084 USBDEVFS_SUPER_MAGIC.
4086 2003-09-16 Jakub Jelinek <jakub@redhat.com>
4088 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
4089 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
4091 2003-09-16 Bruno Haible <bruno@clisp.org>
4093 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
4094 invoking msgfmt, not before.
4096 2003-09-15 Jakub Jelinek <jakub@redhat.com>
4098 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
4099 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
4101 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
4102 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
4103 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
4104 * elf/dl-iteratephdr.c (cancel_handler): New function.
4105 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
4106 * elf/link.h (dl_iterate_phdr): Remove __THROW.
4107 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
4108 Add $(uses-callbacks).
4109 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
4110 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
4111 $(exceptions) to $(uses-callbacks).
4112 * Makeconfig (uses-callbacks): Set to $(exceptions).
4113 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
4115 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
4118 2003-09-15 Andreas Schwab <schwab@suse.de>
4120 * sysdeps/m68k/setjmp.c: Add hidden_def.
4122 2003-09-14 Ulrich Drepper <drepper@redhat.com>
4124 * libio/memstream.c (open_memstream): Don't allow wide char operations.
4126 * dirent/dirent.h: Remove __THROW from scandir.
4128 2003-09-14 Philip Blundell <philb@gnu.org>
4130 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
4133 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
4135 * sysdeps/arm/memset.S: Rewrite.
4137 2003-09-12 Jakub Jelinek <jakub@redhat.com>
4139 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
4140 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
4141 __SLONGWORD_TYPE otherwise.
4143 2003-09-14 Ulrich Drepper <drepper@redhat.com>
4145 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
4146 (CFLAGS-ftw64.c): Likewise.
4148 2003-09-13 Ulrich Drepper <drepper@redhat.com>
4150 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
4151 (CFLAGS-nscd_getgr_r.c): Likewise.
4152 (CFLAGS-nscd_gethst_r.c): Likewise.
4154 2003-09-12 Ulrich Drepper <drepper@redhat.com>
4156 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
4159 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
4160 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
4161 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
4162 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
4163 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
4164 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
4166 * misc/Makefile (CFLAGS-err.c): Likewise.
4167 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
4168 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
4169 CFLAGS-glob64.c): Likewise.
4170 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
4171 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
4172 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
4173 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
4174 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
4176 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
4178 * libio/stdio.h: Remove __THROW from cuserid prototype.
4180 * locale/loadarchive.c: Use only non-cancelable interfaces.
4181 * resolv/herror.c (herror): Likewise.
4183 * malloc/hooks.c: Before using IO stream mark stream so it uses
4184 only non-cancelable interfaces.
4185 * malloc/malloc.c: Likewise.
4186 * posix/getopt.c: Likewise.
4189 2003-09-11 Jakub Jelinek <jakub@redhat.com>
4191 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
4193 2003-09-12 Ulrich Drepper <drepper@redhat.com>
4195 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
4197 * misc/err.h: Remove __THROW from all prototypes.
4199 * posix/getopt.h (__THROW): Define if not already defined. Add
4200 __THROW to the getopt functions.
4202 2003-09-11 Ulrich Drepper <drepper@redhat.com>
4204 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
4205 (CFLAGS-fts.c): Likewise.
4206 * io/fcntl.h: Remove __THROW from lockf prototypes.
4207 * io/fts.h: Remove most __THROW.
4209 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
4211 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
4215 2003-09-11 Jakub Jelinek <jakub@redhat.com>
4217 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
4218 _IO_free_backup_area call.
4220 2003-09-10 Chris Demetriou <cgd@broadcom.com>
4222 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
4224 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
4225 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
4226 Also, only assert off_t size is 4 for N32 and O32, and clean up
4228 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
4230 2003-09-10 Roland McGrath <roland@redhat.com>
4232 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
4233 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
4234 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
4235 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
4236 Reported by Daniel Jacobowitz <drow@mvista.com>.
4238 2003-09-10 Jakub Jelinek <jakub@redhat.com>
4240 * string/Makefile (strop-tests): Add memccpy.
4241 * string/test-memccpy.c: New test.
4243 2003-09-09 Jakub Jelinek <jakub@redhat.com>
4245 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
4246 siginfo_t * argument before, change into struct ucontext *.
4247 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
4248 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
4249 instead of structure.
4250 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
4253 2003-09-09 Ulrich Drepper <drepper@redhat.com>
4255 * string/stratcliff.c (main): Check memccpy.
4257 2003-04-11 Jes Sorensen <jes@wildopensource.com>
4259 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
4260 character is found during recovery, use correct register when
4261 determining the position of the found character.
4263 2003-04-01 Jes Sorensen <jes@wildopensource.com>
4265 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
4266 avoid segfaults when reading from unmapped pages. For aligned
4267 reload and continue, for misaligned, roll back and use byte copy.
4268 Save ar.ec on entry and restore on exit.
4270 2003-09-09 Chris Demetriou <cgd@broadcom.com>
4272 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
4274 2003-09-08 Chris Demetriou <cgd@broadcom.com>
4276 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
4277 the top of the list.
4278 * sysdeps/mips/mips64/n64/Implies: Likewise.
4280 2003-09-08 Roland McGrath <roland@frob.com>
4282 * sysdeps/unix/sysv/linux/speed.c
4283 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
4284 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
4285 * sysdeps/unix/sysv/linux/bits/termios.h
4286 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
4287 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4288 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4290 2003-09-08 Ulrich Drepper <drepper@redhat.com>
4292 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
4293 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
4295 2003-09-08 Jakub Jelinek <jakub@redhat.com>
4297 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
4298 (__u_quad_t): Make unsigned long int if 64-bit.
4299 (__SQUAD_TYPE): Make long int if 64-bit.
4300 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
4301 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
4303 2003-09-08 Ulrich Drepper <drepper@redhat.com>
4305 * Makefile (tests): Run check-c++-types.sh if possible.
4306 * scripts/check-c++-types.h: New file.
4307 * scripts/data/c++-types-i386-linux-gnu.data: New file.
4309 2003-09-08 Andreas Jaeger <aj@suse.de>
4311 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4312 Use struct sigcontext.
4314 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
4315 Use struct sigcontext.
4317 (GET_FRAME): Likewise.
4318 (GET_STACK): Likewise.
4320 2003-09-08 Wolfram Gloger <wg@malloc.de>
4322 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
4323 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
4324 (mALLOPt): Avoid requirement of C99.
4326 2003-09-08 Ulrich Drepper <drepper@redhat.com>
4328 * libio/bug-ftell.c: Include <sys/types.h>.
4329 (main): Mark cp as const.
4331 2003-09-07 Jakub Jelinek <jakub@redhat.com>
4333 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
4334 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
4336 2003-09-05 Roland McGrath <roland@redhat.com>
4338 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
4339 and c_ospeed fields.
4340 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
4341 (cfsetispeed): Set c_ispeed field.
4342 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
4343 to match corresponding speed.c code.
4345 2003-09-06 Ulrich Drepper <drepper@redhat.com>
4347 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
4348 narrow character buffer.
4349 * libio/Makefile: Add rules to build and run bug-ftell.
4350 * libio/bug-ftell.c: New file.
4352 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
4354 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
4355 matching the decimal point and possibly leading the thousands
4356 separator. This caused the recognition of thousands separators to
4359 2003-09-05 Ulrich Drepper <drepper@redhat.com>
4361 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
4362 write mode from read in backup buffer.
4363 * libio/Makefile (tests): Add bug-ungetc2.
4364 * libio/bug-ungetc2.c: New file.
4366 2003-09-05 Roland McGrath <roland@redhat.com>
4368 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
4370 2003-09-04 Roland McGrath <roland@frob.com>
4372 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
4373 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
4375 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
4377 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
4380 2003-09-05 Andreas Jaeger <aj@suse.de>
4382 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
4383 to make it conforming C.
4384 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
4386 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
4387 prototype to use variable argument lists and get the possible one
4388 argument via va_arg.
4389 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
4390 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
4392 2003-09-04 Ulrich Drepper <drepper@redhat.com>
4394 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
4396 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
4397 Report correct value for vxfs.
4398 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
4400 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
4403 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
4404 over the place. It would be allowed to have these functions as
4405 cancellation points but the cleanup would be ugly and a lot of
4408 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
4409 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
4411 * include/fcntl.h (__fcntl_nocancel): Declare.
4412 * sysdeps/unix/sysv/linux/fcntl.c: New file.
4413 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
4414 cancellation if absolutely needed.
4415 (__fcntl_nocancel): Define.
4417 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
4418 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
4420 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
4423 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
4426 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
4427 unnecessary errno handling.
4429 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
4430 Initialize it in all cases. Change it to be a bit more like the
4433 2003-09-04 Jakub Jelinek <jakub@redhat.com>
4435 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
4437 (_IO_file_open): Likewise. Use close_not_cancel.
4439 2003-09-04 Ulrich Drepper <drepper@redhat.com>
4441 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
4442 * libio/fileops.c [_LIBC]: Remove close macro.
4443 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
4444 (_IO_new_file_open): Recognize 'c' flag in mode string.
4445 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
4446 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
4448 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
4449 * inet/rcmd.c: Likewise.
4450 * inet/ruserpass.c: Likewise.
4451 * intl/localealias.c: Likewise.
4452 * malloc/mtrace.c: Likewise.
4453 * misc/getpass.c: Likewise.
4454 * misc/getttyent.c: Likewise.
4455 * misc/mntent_r.c: Likewise.
4456 * misc/getusershell.c: Likewise.
4457 * nss/nsswitch.c: Likewise.
4458 * resolv/res_hconf.c: Likewise.
4459 * resolv/res_init.c: Likewise.
4460 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4461 * time/getdate.c: Likewise.
4462 * time/tzfile.c: Likewise.
4463 * misc/fstab.h: Undo last change.
4464 * misc/mntent.h: Likewise.
4465 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
4466 CFLAGS-fstab.c definition.
4468 2003-09-04 Jakub Jelinek <jakub@redhat.com>
4470 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
4472 2003-09-03 Ulrich Drepper <drepper@redhat.com>
4474 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
4475 returning ERANGE if this wasn't intended.
4477 2003-09-03 Jakub Jelinek <jakub@redhat.com>
4479 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
4480 function-like macros.
4482 2003-09-03 Ulrich Drepper <drepper@redhat.com>
4484 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
4485 (CFLAGS-getgrent.c): Likewise.
4486 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
4487 (CFLAGS-getpwent.c): Likewise.
4488 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
4489 (CFLAGS-getspent.c): Likewise.
4491 * inet/Makefile: Add -fexceptions to CFLAGS for the various
4492 getXXent and getXXbyYY functions.
4494 * locale/loadlocale.c: Use not-cancelable variants of open, close,
4497 2003-09-02 Jakub Jelinek <jakub@redhat.com>
4499 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
4500 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
4502 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
4504 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
4505 unused __syscall_ stubs.
4506 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
4508 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
4509 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
4510 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
4511 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
4512 unused __syscall_ stubs.
4513 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
4514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
4515 (__syscall_*): Remove unused __syscall_ stubs.
4516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
4517 (__syscall_*): Likewise.
4518 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
4520 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
4521 Remove unused __syscall_ stubs.
4522 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
4523 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
4524 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
4525 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
4526 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
4527 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
4528 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
4529 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
4530 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
4531 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
4532 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
4533 __syscall_* prototypes.
4534 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
4535 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
4536 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
4537 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
4538 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4539 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4540 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
4541 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4542 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4543 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
4544 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
4545 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
4546 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
4547 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4548 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
4549 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4550 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4551 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4552 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4553 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
4554 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4555 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
4556 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4557 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
4558 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4559 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
4560 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
4561 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4562 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
4563 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
4564 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
4565 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4566 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4567 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4568 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4569 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4570 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4571 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4572 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4573 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4574 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4575 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4576 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4577 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4578 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4579 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
4580 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4581 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4582 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
4583 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4584 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4585 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4586 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4587 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
4588 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4589 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
4590 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
4591 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4592 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4593 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
4594 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
4595 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
4596 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
4597 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4598 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4599 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4600 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4601 * sysdeps/unix/sysv/linux/execve.c: Likewise.
4602 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4603 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
4604 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
4605 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
4606 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4607 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4608 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
4609 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
4610 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4611 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4612 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4613 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4614 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
4615 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4616 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
4617 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4618 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4619 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4620 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
4621 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4622 * sysdeps/unix/sysv/linux/poll.c: Likewise.
4623 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4624 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4625 * sysdeps/unix/sysv/linux/pread.c: Likewise.
4626 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4627 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4628 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4629 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4630 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4631 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4632 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4633 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4634 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4635 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4637 2003-09-02 Jakub Jelinek <jakub@redhat.com>
4639 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
4640 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
4641 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
4643 2003-09-02 Ulrich Drepper <drepper@redhat.com>
4645 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
4647 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
4648 open, close, and read.
4650 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
4653 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
4655 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
4656 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
4657 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
4659 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
4661 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
4662 (CFLAGS-fstatfs.c): Likewise.
4663 (CFLAGS-statvfs.c): Likewise.
4664 (CFLAGS-fstatvfs.c): Likewise.
4666 2003-09-01 Ulrich Drepper <drepper@redhat.com>
4668 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
4669 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
4671 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
4672 (CFLAGS-pathconf.c): Likewise.
4673 (CFLAGS-fpathconf.c): Likewise.
4675 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
4676 * misc/fstab.h: Remove all __THROW.
4677 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
4678 (CFLAGS-mntent_r.c): Likewise.
4679 * misc/mntent.h: Remove most __THROW.
4681 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4682 (CFLAGS-mkstemp64.c): Likewise.
4684 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
4685 around call to exec_comm.
4686 * posix/wordexp.h: Remove __THROW from wordexp.
4687 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
4689 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
4690 not-cancelable functions.
4692 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
4693 (CFLAGS-iofopen.c): Likewise.
4694 (CFLAGS-iofopen64.c): Likewise.
4696 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
4698 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
4699 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
4701 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
4702 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
4704 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
4706 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
4707 NSS_STATUS_SUCCESS if entry was found.
4708 (getspent_next_file): Store user in blacklist after entry
4709 was found, use innetgr.
4711 2003-09-01 Jakub Jelinek <jakub@redhat.com>
4713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
4714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
4716 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
4717 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
4718 DTV_AT_TP, optimize.
4720 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4722 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
4723 posix_fallocate64 at GLIBC_2.3.3.
4724 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
4725 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
4727 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4729 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
4732 2003-08-31 Ulrich Drepper <drepper@redhat.com>
4734 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
4735 Code by Richard Henderson.
4737 2003-08-31 Philip Blundell <philb@gnu.org>
4739 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
4740 posix_fallocate64 at GLIBC_2.3.3.
4742 2003-08-31 Ulrich Drepper <drepper@redhat.com>
4744 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
4745 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
4747 2003-08-30 Jakub Jelinek <jakub@redhat.com>
4749 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
4750 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
4751 included multiple times.
4752 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
4753 ptid, tls, ctid arguments to the kernel.
4754 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4755 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
4756 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4757 (__libc_sigaction): Use INLINE_SYSCALL instead of
4758 __syscall_rt_sigaction.
4759 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
4760 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
4761 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
4762 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
4763 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
4764 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
4765 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
4766 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
4767 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
4768 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
4769 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
4770 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4771 (__CLONE_SYSCALL_STRING): Define.
4772 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
4774 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4775 (__CLONE_SYSCALL_STRING): Define.
4776 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
4778 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
4780 2003-08-30 Ulrich Drepper <drepper@redhat.com>
4782 * sunrpc/rpc/clnt.h: Remove a few __THROW.
4783 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
4784 (CFLAGS-key_call.c): Likewise.
4785 (CFLAGS-pmap_rmt.c): Likewise.
4786 (CFLAGS-clnt_perr.c): Likewise.
4787 * sunrpc/rpc/auth.h: Remove serveral __THROW.
4789 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
4790 (CFLAGS-gethstbynm_r.c): Likewise.
4791 (CFLAGS-gethstbynm2_r.c): Likewise.
4792 (CFLAGS-rcmd.c): Likewise.
4793 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
4795 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
4796 (CFLAGS-argp-fmtstream.c): Likewise.
4797 * argp/argp.h: Remove a number of __THROW.
4799 * misc/sys/syslog.h (vsyslog): Remove __THROW.
4801 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
4802 * misc/getpass.c (getpass): Add cleanup handler to ensure the
4803 stream is closed even if the thread is canceled.
4804 (call_fclose): New function.
4805 * posix/unistd.h: Remove __THROW from getpass prototype.
4807 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
4809 * signal/signal.h (psignal): Remove __THROW.
4810 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
4812 * misc/Makefile (CFLAGS-error.c): Define.
4813 * misc/error.c (error): Disable cancellation handling around the
4814 actual output. The message should in any case be printed.
4815 (error_at_line): Likewise.
4817 * misc/error.h: Protect parameter names with leading __.
4819 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
4821 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
4823 2003-08-29 Jakub Jelinek <jakub@redhat.com>
4825 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
4828 2003-08-29 Ulrich Drepper <drepper@redhat.com>
4830 * libio/stdio.h: Remove a few more __THROW.
4832 2003-08-29 Jakub Jelinek <jakub@redhat.com>
4834 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
4835 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
4836 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
4837 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
4838 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
4839 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
4840 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
4841 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
4842 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
4843 putwchar.c and rewind.c with exceptions.
4844 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
4845 _IO_release_lock): Define.
4846 * libio/fileops.c (_IO_new_file_underflow): Use it.
4847 * libio/fputc.c (fputc): Likewise.
4848 * libio/fputwc.c (fputwc): Likewise.
4849 * libio/freopen64.c (freopen64):
4850 * libio/freopen.c (freopen): Likewise.
4851 * libio/fseek.c (fseek): Likewise.
4852 * libio/fseeko64.c (fseeko64): Likewise.
4853 * libio/fseeko.c (fseeko): Likewise.
4854 * libio/ftello64.c (ftello64): Likewise.
4855 * libio/ftello.c (ftello): Likewise.
4856 * libio/fwide.c (fwide): Likewise.
4857 * libio/getc.c (_IO_getc): Likewise.
4858 * libio/getchar.c (getchar): Likewise.
4859 * libio/getwc.c (_IO_getwc): Likewise.
4860 * libio/getwchar.c (getwchar): Likewise.
4861 * libio/iofclose.c (_IO_new_fclose):
4862 * libio/iofflush.c (_IO_fflush): Likewise.
4863 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
4864 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
4865 * libio/iofgets.c (_IO_fgets): Likewise.
4866 * libio/iofgetws.c (fgetws): Likewise.
4867 * libio/iofputs.c (_IO_fputs): Likewise.
4868 * libio/iofputws.c (fputws): Likewise.
4869 * libio/iofread.c (_IO_fread): Likewise.
4870 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
4871 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
4872 * libio/ioftell.c (_IO_ftell): Likewise.
4873 * libio/iofwrite.c (_IO_fwrite): Likewise.
4874 * libio/iogetdelim.c (_IO_getdelim): Likewise.
4875 * libio/iogets.c (_IO_gets): Likewise.
4876 * libio/ioputs.c (_IO_puts): Likewise.
4877 * libio/ioseekoff.c (_IO_seekoff): Likewise.
4878 * libio/ioseekpos.c (_IO_seekpos): Likewise.
4879 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
4880 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
4881 * libio/ioungetc.c (_IO_ungetc): Likewise.
4882 * libio/ioungetwc.c (ungetwc): Likewise.
4883 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
4884 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
4885 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
4886 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
4887 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
4888 * libio/peekc.c (_IO_peekc_locked): Likewise.
4889 * libio/putc.c (_IO_putc): Likewise.
4890 * libio/putchar.c (putchar): Likewise.
4891 * libio/putwc.c (putwc): Likewise.
4892 * libio/putwchar.c (putwchar): Likewise.
4893 * libio/rewind.c (rewind): Likewise.
4894 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
4896 2003-08-29 Ulrich Drepper <drepper@redhat.com>
4898 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
4899 available in XPG4.2.
4901 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
4902 Jakub Jelinek <jakub@redhat.com>
4904 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
4905 big endian arches. Don't read beyond end of fds_bits array.
4907 2003-04-27 Bruno Haible <bruno@clisp.org>
4909 * manual/message.texi (Advanced gettext functions): Add information
4910 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
4911 Add section about Lithuanian, reported by Ricardas Cepas
4912 <rch@richard.eu.org>.
4913 Add information about Croatian.
4914 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
4915 Remove remark about continuation lines that is not true for PO files.
4916 Fix formula for Slovenian, reported by Roman Maurer
4917 <roman.maurer@amis.net>.
4919 2003-08-27 Ulrich Drepper <drepper@redhat.com>
4921 * math/math_private.h: Declare __copysignf.
4922 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
4925 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
4926 __signbit, and __signbitl inline functions.
4928 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
4929 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
4931 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
4932 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
4934 2003-08-27 Jakub Jelinek <jakub@redhat.com>
4936 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
4938 2003-08-27 Ulrich Drepper <drepper@redhat.com>
4940 * include/stdio.h: Add declarations for __builtin_fwrite and
4941 __builtin_fwrite_unlocked.
4943 2003-08-27 Jakub Jelinek <jakub@redhat.com>
4945 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
4946 fits into allocation. Add padding on 32-bit arches so that
4947 dirp->data is enough aligned for struct dirent64.
4948 Avoid clearing of the buffer, just clear DIR structure.
4950 2003-08-26 Ulrich Drepper <drepper@redhat.com>
4952 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
4953 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
4955 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
4957 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
4959 2003-08-26 Jakub Jelinek <jakub@redhat.com>
4961 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
4962 to match format string.
4963 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
4965 (__new_semctl): Shut up warning.
4966 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
4967 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
4969 2003-08-26 Jakub Jelinek <jakub@redhat.com>
4971 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
4972 link file use the real file name, not the resolved name we got by
4973 following the symlinks.
4975 2003-08-25 Ulrich Drepper <drepper@redhat.com>
4977 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
4978 if the object size is large enough.
4980 2003-08-25 Jakub Jelinek <jakub@redhat.com>
4982 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4983 if it won't point to itself unless it is .so symlink for the linker.
4985 2003-08-25 Ulrich Drepper <drepper@redhat.com>
4987 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
4988 use _mode if _IO_fwide_maybe_incompatible.
4989 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
4990 the compatibility test.
4992 2003-08-25 Jakub Jelinek <jakub@redhat.com>
4994 * elf/cache.c (save_cache): Don't write beyond end of file_entries
4996 Duplicate last old cache entry if the count would be odd.
4998 2003-08-25 Andreas Jaeger <aj@suse.de>
5000 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
5001 __LONG_LONG_PAIR to long.
5003 2003-08-25 Philip Blundell <philb@gnu.org>
5005 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
5006 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
5008 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
5010 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
5011 and use __libc_cleanup_region_end instead.
5013 2003-08-25 Ulrich Drepper <drepper@redhat.com>
5015 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
5017 2003-08-22 Ulrich Drepper <drepper@redhat.com>
5019 * io/fcntl.h (posix_fallocate): Change type of third parameter to
5021 (posix_fallocate64): Change type of third parameter to off64_t.
5022 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
5023 * sysdeps/posix/posix_fallocate.c: Likewise.
5024 * sysdeps/generic/posix_fallocate64.c: Likewise.
5025 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
5026 code for 32-bit platforms.
5027 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
5029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
5030 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5031 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5033 2003-08-19 Ulrich Drepper <drepper@redhat.com>
5035 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
5036 the type, not to name.
5038 * stdio-common/test-vfprintf.c (main): Don't write temporary file
5039 into source directory.
5041 * malloc/malloc.c (_int_free): Add cheap test for some invalid
5044 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
5047 2003-08-18 Ulrich Drepper <drepper@redhat.com>
5049 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
5052 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
5054 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
5055 (elf_machine_lazy_rel): Likewise.
5057 2003-08-18 Art Haas <ahaas@airmail.net>
5059 * malloc/malloc.h: Remove unneeded ';' where closing the C++
5062 2003-08-18 Ulrich Drepper <drepper@redhat.com>
5064 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
5065 loading big binaries where @gprel(sym) cannot be handled in 'add'
5066 but instead has to be used with 'movl'.
5068 2003-08-17 Juergen Kreileder <jk@blackdown.de>
5069 Andreas Jaeger <aj@suse.de>
5071 * sysdeps/x86_64/bits/byteswap.h: New file.
5073 2003-08-17 Andreas Jaeger <aj@suse.de>
5075 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
5077 2003-08-16 Jakub Jelinek <jakub@redhat.com>
5079 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
5080 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5081 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
5082 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5083 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
5084 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5085 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
5086 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5087 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
5088 ret_ERRVAL): Define.
5089 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
5090 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5091 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
5092 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5093 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
5095 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
5096 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5097 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
5099 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
5100 posix_fadvise64_64): Remove.
5101 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
5103 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
5105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
5106 (posix_fadvise64): Likewise.
5107 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
5108 (posix_fadvise64): Likewise.
5109 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
5110 (posix_fadvise64): Likewise.
5111 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
5113 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
5114 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
5115 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
5116 (__posix_fadvise64_l32): New function.
5117 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
5118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
5119 posix_fadvise64@@GLIBC_2.3.3.
5120 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
5121 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
5122 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
5124 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
5126 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5127 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
5129 2003-08-15 Jakub Jelinek <jakub@redhat.com>
5131 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
5132 (elf_machine_matches_host): Remove weak extern stuff.
5133 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
5134 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
5135 stuff. Use GL(dl_hwcap) unconditionally.
5137 2003-08-16 Alan Modra <amodra@bigpond.net.au>
5139 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
5140 __libc_start_main branch.
5142 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
5143 Andreas Jaeger <aj@suse.de>
5145 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
5146 instead of setting errno.
5147 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
5149 2003-08-16 Andreas Jaeger <aj@suse.de>
5151 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
5152 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
5154 2003-08-15 Ulrich Drepper <drepper@redhat.com>
5156 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
5158 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
5159 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
5160 description indicating the error value is returned, not -1.
5161 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
5162 __ASSUME_FADVISE64_64_SYSCALL.
5163 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
5164 posix_madvise in one file. Have posix_madvise defined with error
5166 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
5168 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
5169 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
5170 PSEUDO_END_ERRVAL, and ret_ERRVAL.
5171 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
5172 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5173 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
5176 * posix/Makefile (routines): Add posix_madvise.
5177 * sysdeps/generic/madvise.c: Don't define posix_madvise.
5178 * sysdeps/generic/posix_madvise.c: New file.
5179 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
5180 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
5181 Add posix_fadvise64_64.
5183 2003-08-15 Jakub Jelinek <jakub@redhat.com>
5185 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
5186 3.0, not for !gcc or gcc < 3.0.
5188 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
5190 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
5191 Address passed to test_in_mod1 and test_in_mod2 without casting.
5192 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
5193 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
5194 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
5195 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
5197 2003-08-15 Jakub Jelinek <jakub@redhat.com>
5199 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
5200 Change quotes before using [].
5202 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
5204 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
5206 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
5207 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
5208 argument. Select one of 64 locks from address bits.
5209 (atomic_compare_and_exchange_val_acq,
5210 atomic_compare_and_exchange_bool_acq): Pass memory address to
5211 __sparc32_atomic_do_{,un}lock.
5213 2003-08-14 Ulrich Drepper <drepper@redhat.com>
5215 * assert/assert.h (assert): Use !! in front of expression to allow
5218 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
5219 Changed conversion of JIS X 0201 from using a table to calculating.
5220 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
5221 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
5223 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
5224 * iconvdata/CP932.irreversible: New file.
5225 * iconvdata/EUC-JP-MS.irreversible: New file.
5226 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
5228 2003-08-13 Ulrich Drepper <drepper@redhat.com>
5230 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
5232 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
5233 text processing tools.
5235 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
5236 element unless BROKEN_THREAD_SIGNALS is defined.
5237 (struct requestlist): Likewise.
5238 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
5239 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
5240 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
5241 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
5242 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
5243 Pass current PID to __aio_sigqueue.
5244 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
5245 call. Don't initialize caller_pid field of waitlist element.
5247 2003-08-12 Jakub Jelinek <jakub@redhat.com>
5249 * libio/libioP.h (_IO_vtable_offset): Define.
5250 * libio/freopen.c (freopen): Use it.
5251 * libio/ioputs.c (_IO_puts): Likewise.
5252 * libio/freopen64.c (freopen64): Likewise.
5253 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
5255 * libio/iofclose.c (_IO_new_fclose): Likewise.
5256 * libio/iofputs.c (_IO_fputs): Likewise.
5257 * libio/ioftell.c (_IO_ftell): Likewise.
5258 * libio/iofwrite.c (_IO_fwrite): Likewise.
5259 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
5260 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
5261 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
5262 * stdio-common/vfscanf.c (ORIENT): Likewise.
5264 2003-08-11 Ulrich Drepper <drepper@redhat.com>
5266 * assert/assert.h: Use __builtin_expect in assert and
5267 assert_perror definitions if possible.
5269 2003-08-07 Jakub Jelinek <jakub@redhat.com>
5271 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
5272 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
5273 * elf/rtld.c (rtld_lock_default_lock_recursive,
5274 rtld_lock_default_unlock_recursive): New functions.
5275 (dl_main): Initialize _dl_rtld_lock_recursive and
5276 _dl_rtld_unlock_recursive.
5278 2003-08-05 Jakub Jelinek <jakub@redhat.com>
5280 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
5281 config_file directories instead of prepending.
5283 2003-08-02 Ulrich Drepper <drepper@redhat.com>
5285 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5286 __ASSUME_CLONE_STOPPED.
5288 2003-08-01 Ulrich Drepper <drepper@redhat.com>
5290 * sysdeps/generic/bits/libc-lock.h
5291 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
5293 2003-08-01 Roland McGrath <roland@frob.com>
5295 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
5297 2003-07-31 Jakub Jelinek <jakub@redhat.com>
5299 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
5300 instead of __SWORD_TYPE.
5301 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
5302 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
5303 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
5305 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
5307 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
5309 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
5311 * dlfcn/dlerror.c (once): New.
5312 (dlerror): Call __libc_once.
5313 (_dlerror_run): Remove once.
5315 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
5316 Sync with 2.5.7 and 2.5.73 kernel changes.
5318 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
5319 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
5321 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
5322 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
5323 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
5324 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
5325 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
5326 difference argument.
5327 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
5329 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
5330 %d format and cast expected value to int.
5331 * sysdeps/generic/libc-start.c (STATIC): Add
5332 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
5333 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
5334 to ieee_float_shape_type.
5335 (__sqrt): Avoid type punning.
5336 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
5337 to ieee_float_shape_type.
5338 (__sqrtf): Avoid type punning.
5339 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
5340 refsym if in dl-conflict.c.
5341 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
5342 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
5343 (__new_semctl): Shut up warning.
5344 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
5345 (__new_semctl): Shut up warning.
5346 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
5347 Change old into union of __old_shmid_ds and __old_shminfo structs.
5349 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
5351 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
5352 modtime computation.
5353 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
5354 * sysdeps/posix/utimes.c (__utimes): Likewise.
5356 2003-07-30 Jakub Jelinek <jakub@redhat.com>
5358 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
5359 call dl_signal_error directly. If already relocated, call
5360 GL(dl_init_static_tls) directly, otherwise queue it for later.
5361 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
5362 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
5363 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
5364 for all static TLS initializations delayed in _dl_allocate_static_tls.
5365 * elf/dl-support.c (_dl_init_static_tls): New variable.
5366 * include/link.h (struct link_map): Add l_need_tls_init.
5367 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
5368 (_dl_nothread_init_static_tls): New prototype.
5369 (_dl_allocate_static_tls): Adjust prototype.
5371 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
5373 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
5375 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
5376 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
5377 reloc_addr is aligned.
5378 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
5379 elf_machine_rela_relative): Adjust.
5380 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
5381 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
5382 * sysdeps/cris/dl-machine.h (elf_machine_rela,
5383 elf_machine_rela_relative): Adjust.
5384 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
5385 elf_machine_rela_relative): Adjust.
5386 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
5387 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
5388 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
5389 elf_machine_rela_relative): Adjust.
5390 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
5391 elf_machine_rela_relative): Adjust.
5392 * sysdeps/mips/dl-machine.h (elf_machine_rela,
5393 elf_machine_rela_relative): Adjust.
5394 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
5395 elf_machine_rela_relative): Adjust.
5396 * sysdeps/powerpc/powerpc64/dl-machine.h
5397 (elf_machine_rela_relative, elf_machine_rela): Adjust.
5398 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
5399 elf_machine_rela_relative): Adjust.
5400 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
5401 elf_machine_rela_relative): Adjust.
5402 * sysdeps/sh/dl-machine.h (elf_machine_rela,
5403 elf_machine_rela_relative): Adjust.
5404 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
5405 elf_machine_rela_relative): Adjust.
5406 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
5407 elf_machine_rela_relative): Adjust.
5408 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
5409 elf_machine_rela_relative): Adjust.
5411 2003-07-29 Ulrich Drepper <drepper@redhat.com>
5413 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
5414 alignment of TCB used before the last change so that it matches
5415 ld's output for IE code.
5417 2003-07-29 Jakub Jelinek <jakub@redhat.com>
5419 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
5420 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
5421 break strict-aliasing rules" warnings.
5423 2003-07-29 Roland McGrath <roland@redhat.com>
5425 * elf/Makefile: Revert accidental changes in last commit.
5426 * elf/dl-support.c: Likewise.
5428 * rt/tst-timer2.c: New file.
5429 * rt/Makefile (tests): Add it.
5431 2003-07-25 Jakub Jelinek <jakub@redhat.com>
5433 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
5435 2003-07-29 Roland McGrath <roland@redhat.com>
5437 * elf/Makefile (tests) [$(build-shared) = yes]:
5438 Depend on $(test-modules).
5439 * dlfcn/Makefile: Likewise.
5441 2003-07-28 Roland McGrath <roland@redhat.com>
5443 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
5444 Use that instead of `typedef' when using __*_TYPE macros in rhs.
5446 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
5447 * elf/tst-tlsmod14a.c: Likewise.
5449 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
5450 before <linux/sysctl.h>.
5452 2003-07-27 Ulrich Drepper <drepper@redhat.com>
5454 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
5455 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
5456 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
5457 * sysdeps/unix/syscalls.list: umask syscall never fails.
5459 2003-07-27 Andreas Jaeger <aj@suse.de>
5461 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
5463 2003-07-25 Jakub Jelinek <jakub@redhat.com>
5465 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
5466 Include bits/a.out.h.
5467 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5469 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
5470 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
5471 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
5472 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
5473 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
5474 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
5475 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
5476 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
5478 2003-07-24 Jakub Jelinek <jakub@redhat.com>
5480 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
5481 if aiocbp != NULL and has already completed. Return -1/EINVAL if
5482 aiocbp->aio_fildes does not match fildes.
5484 2003-07-24 Ulrich Drepper <drepper@redhat.com>
5486 * timezone/zic.c (rpytime): Replace cheap overflow check with a
5489 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
5490 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
5491 Fix calculation of offsets to take misalignment of first byte in
5493 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
5494 l_tls_firstbyte_offset field.
5495 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
5496 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
5497 Take l_tls_firstbyte_offset information into account.
5498 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
5499 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
5500 * elf/Makefile: Add rules to build and run tst-tls14.
5501 * elf/tst-tls14.c: New file.
5502 * elf/tst-tlsmod14a.c: New file.
5503 * elf/tst-tlsmod14b.c: New file.
5505 2003-07-23 Jakub Jelinek <jakub@redhat.com>
5507 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
5508 (lio_listio): Use it.
5509 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
5510 after few defines to avoid duplication.
5512 2003-07-22 Jakub Jelinek <jakub@redhat.com>
5514 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
5515 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
5517 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
5518 Add libc_hidden_def.
5519 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
5520 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5521 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
5522 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
5523 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
5524 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
5525 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
5527 * sysdeps/generic/unwind.inc: Removed.
5529 * include/resolv.h (__resp): Declare. Define to __libc_resp
5531 (_res): If USE___THREAD, define to (*__resp).
5532 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
5533 even if USE___THREAD.
5534 (__resp): New __thread variable.
5535 (__libc_resp): New alias.
5536 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
5537 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
5538 * sysdeps/generic/res-state.c (__res_state): Return __resp
5541 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
5543 * elf/dl-support.c (_dl_hwcap): New variable.
5544 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
5546 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
5547 and <dl-procinfo.h>.
5548 (__feclearexcept): Clear MXCSR if needed.
5549 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5551 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
5552 that newer hardware needs more than these macros.
5554 * sysdeps/i386/setfpucw.c: New file.
5556 2003-07-22 Jakub Jelinek <jakub@redhat.com>
5558 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
5559 * elf/ldconfig.c: Include dl-procinfo.c.
5560 (PROCINFO_CLASS): Define.
5561 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
5562 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
5563 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
5564 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
5565 Define if not yet defined. Use it instead of EXTERN. Undefine
5566 at the end of the file.
5567 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
5569 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
5570 (PROCINFO_CLASS): Likewise.
5571 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
5572 (PROCINFO_CLASS): Likewise.
5574 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
5576 * elf/ldconfig.c (main): Issue a fatal error if relative path
5577 is used to build cache.
5579 2003-07-22 Ulrich Drepper <drepper@redhat.com>
5581 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
5583 2003-07-21 Art Haas <ahaas@airmail.net>
5585 * manual/charset.texi (Converting a Character): Fix example code so a
5586 valid pointer is returned.
5588 2003-07-22 Andreas Jaeger <aj@suse.de>
5590 * elf/readlib.c (process_file): Check that file is a shared
5593 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
5594 will not optimize it away.
5595 (__DTOR_END__): Likewise.
5596 (__CTOR_END__): Likewise.
5598 * include/libc-symbols.h (_elf_set_element): Use attribute used so
5599 that gcc will not optimize it away.
5600 (link_warning): Likewise.
5602 2003-07-22 Ulrich Drepper <drepper@redhat.com>
5604 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
5605 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
5606 * wcsmbs/tst-wcpncpy.c: New file.
5608 2003-07-21 Ulrich Drepper <drepper@redhat.com>
5610 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
5612 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
5613 stmxcsr and ldmxcsr.
5615 * Makerules (build-module-helper): Add -z defs unless explicitly said
5617 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
5618 which has undefined symbols.
5619 * elf/Makefile: Likewise.
5621 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
5622 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
5623 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
5624 * sysdeps/i386/fpu/fesetround.c: Likewise.
5625 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
5627 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
5629 * elf/ldconfig.c (search_dir): Treat symlink as regular file
5630 if it won't point to itself.
5632 2003-07-20 Ulrich Drepper <drepper@redhat.com>
5634 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
5636 2003-07-20 Andreas Jaeger <aj@suse.de>
5638 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
5639 STANDARD_TO_LOOP_ERR_HANDLER.
5640 * iconvdata/euc-jp-ms.c (BODY): Likewise.
5642 2003-07-19 Ulrich Drepper <drepper@redhat.com>
5644 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
5646 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
5648 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
5649 Andreas Jaeger <aj@suse.de>
5651 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
5652 256K, remove unneeded declaration of __getpagesize.
5654 2003-07-16 Andreas Schwab <schwab@suse.de>
5656 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
5658 2003-07-15 Ulrich Drepper <drepper@redhat.com>
5660 * io/test-utime.c (main): Make test yet more robust.
5662 2003-07-14 Ulrich Drepper <drepper@redhat.com>
5664 More cancellation handling fixups.
5665 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
5666 * sysdeps/generic/not-cancel.h: Likewise.
5667 * catgets/open_catalog.c: Use not-cancelable syscalls.
5668 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
5669 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
5670 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
5671 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
5672 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
5673 * libio/fileops.c: Use not-cancelable syscalls for fclose.
5674 * libio/iopopen.c: Use no-cancelable syscalls.
5675 * libio/stdio.h: Mark popen and pclose with __THROW again.
5676 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
5677 * misc/syslog.c: Fix locking and cancellation cleanup handling.
5678 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
5679 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
5680 CFLAGS-tempname.c): Add -fexceptions.
5681 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
5682 * string/string.h: Mark strerror and strerror_r with _THROW again.
5683 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
5684 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
5685 #ifs since we now need all the code compiled.
5686 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
5687 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
5688 * sysdeps/unix/opendir.c: Likewise.
5690 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
5691 Add rule for EUC-JP-MS dependency.
5692 * iconvdata/cp932.c: New file.
5693 * iconvdata/eucjp-ms.c: New file.
5694 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
5695 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
5697 2003-07-15 Jakub Jelinek <jakub@redhat.com>
5699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
5702 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5704 * sysdeps/unix/sysv/linux/kernel-features.h
5705 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
5706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
5708 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
5710 2003-07-14 Ulrich Drepper <drepper@redhat.com>
5712 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5713 __ASSUME_TGKILL for Alpha appropriately.
5715 2003-07-12 Ulrich Drepper <drepper@redhat.com>
5717 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
5718 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
5720 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
5723 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5724 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
5726 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
5727 second parameter == NULL.
5728 * sysdeps/unix/sysv/linux/utimes.c: New file.
5730 2003-07-12 Jakub Jelinek <jakub@redhat.com>
5732 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
5733 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
5736 2003-07-12 Ulrich Drepper <drepper@redhat.com>
5738 * time/sys/time.h: Namespace cleanup.
5739 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5740 __ASSUME_UTIMES for the architectures which always had the syscall.
5741 * sysdeps/unix/sysv/linux/futimes.c: New file.
5743 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5745 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
5746 register across CENABLE and CDISABLE.
5748 2003-07-11 Jakub Jelinek <jakub@redhat.com>
5750 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
5751 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5752 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5753 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
5754 int before assigning to max to avoid warnings.
5756 2003-07-11 Jakub Jelinek <jakub@redhat.com>
5758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
5760 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
5761 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
5763 2003-07-10 Jakub Jelinek <jakub@redhat.com>
5765 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
5766 .data.rel.ro.local to "aw".
5768 2003-07-10 Ulrich Drepper <drepper@redhat.com>
5770 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
5771 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
5772 (PIC-ccflag): Define.
5774 2003-07-04 Jakub Jelinek <jakub@redhat.com>
5776 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
5778 * sysdeps/s390/s390-64/elf/start.S: Likewise.
5780 2003-07-07 Jakub Jelinek <jakub@redhat.com>
5782 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
5783 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
5785 2003-07-07 Ulrich Drepper <drepper@redhat.com>
5787 * sysdeps/unix/sysv/linux/kernel-features.h: Version
5788 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
5790 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
5791 compilation with HAVE_AUX_SECURE defined.
5793 2003-07-05 Richard Henderson <rth@redhat.com>
5795 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
5797 2003-07-03 Ulrich Drepper <drepper@redhat.com>
5799 * configure.in: Also check for .cfi_rel_offset pseudo-op.
5801 2003-07-03 Jakub Jelinek <jakub@redhat.com>
5803 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
5806 2003-07-03 Ulrich Drepper <drepper@redhat.com>
5808 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
5810 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
5812 2003-07-02 Jakub Jelinek <jakub@redhat.com>
5814 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
5815 decl and use with #ifdef NEED_DL_SYSINFO.
5817 2003-07-02 Ulrich Drepper <drepper@redhat.com>
5819 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
5820 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
5821 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5822 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
5823 vsyscall DSO was added.
5825 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
5826 depending on selected standard.
5827 (NGROUPS_MAX): Define to 8 if not defined.
5829 2003-07-02 Andreas Jaeger <aj@suse.de>
5831 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
5833 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
5835 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
5836 * malloc/thread-m.h: Include <atomic.h>.
5837 (atomic_full_barrier): Provide default.
5838 (atomic_read_barrier): Likewise.
5839 (atomic_write_barrier): Likewise.
5840 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
5842 2003-06-30 Ulrich Drepper <drepper@redhat.com>
5844 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
5846 2003-06-30 Richard Henderson <rth@redhat.com>
5848 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
5849 Invert the sense of the return value.
5850 (__arch_exchange_16_int): Fix paste-o.
5851 (__arch_exchange_{32,64}_int): Fix think-o.
5853 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
5855 2003-06-30 Richard Henderson <rth@redhat.com>
5857 * include/sys/resource.h (__getrusage): Mark hidden.
5858 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
5859 * include/sys/wait.h (__wait4): Likewise.
5861 2003-06-17 Guido Guenther <agx@sigxcpu.org>
5863 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
5865 (xstat_conv): Rename to __xstat_conv and remove static inline.
5866 (xstat64_conv): Likewise.
5868 2003-06-29 Ulrich Drepper <drepper@redhat.com>
5870 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
5871 values which cannot be handled in one nanosleep call.
5873 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
5875 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
5876 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
5878 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
5880 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5882 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
5885 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
5887 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
5888 Conditionalize function definitions that use struct kernel_stat.
5889 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
5890 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
5891 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
5893 2003-06-28 Ulrich Drepper <drepper@redhat.com>
5895 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
5898 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
5900 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
5901 (getgrent_next_file): Don't store group name to early in blacklist.
5903 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
5904 and use memcpy instead of strcpy.
5906 2003-06-28 Ulrich Drepper <drepper@redhat.com>
5908 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
5910 * nis/nss_compat/compat-initgroups.c: Likewise.
5911 * nis/nss_compat/compat-pwd.c: Likewise.
5912 * nis/nss_compat/compat-spwd.c: Likewise.
5914 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
5916 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
5917 functions, dlopen corresponding NSS module instead.
5919 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
5921 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
5922 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5923 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5924 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5926 2003-06-27 Ulrich Drepper <drepper@redhat.com>
5928 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
5930 2003-06-26 Roland McGrath <roland@frob.com>
5932 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
5933 * sysdeps/mach/configure: Regenerated.
5934 * sysdeps/mach/hurd/times.c (times_init): Function removed.
5935 (__times): Assume `creation_time' field is available.
5936 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
5937 Don't append set-init.
5938 * sysdeps/mach/hurd/set-init.c: File removed.
5940 2003-06-26 Roland McGrath <roland@redhat.com>
5942 * elf/elf.h (AT_SECURE): New macro.
5943 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
5944 set __libc_enable_secure.
5945 (_dl_show_auxv): Add AT_SECURE to name table.
5946 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
5947 __libc_enable_secure and __libc_enable_secure_decided.
5948 * sysdeps/unix/sysv/linux/ldsodefs.h
5949 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
5950 * sysdeps/unix/sysv/linux/kernel-features.h
5951 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
5953 2003-06-26 Ulrich Drepper <drepper@redhat.com>
5955 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
5956 boundary test to take rounding of nanoseconds into account.
5958 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
5959 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5960 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
5961 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
5962 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5963 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5964 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5966 2003-06-26 Andreas Schwab <schwab@suse.de>
5968 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
5969 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
5970 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
5972 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
5974 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
5975 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
5976 dlopen corresponding NSS module instead.
5977 * nis/nss_compat/compat-pwd.c: Likewise.
5978 * nis/nss_compat/compat-spwd.c: Likewise.
5979 * nis/nss_compat/compat-initgroups.c: Disabled for now.
5980 * nss/Versions: Export __nss_lookup_function.
5982 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5984 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
5985 for the SH architecture.
5987 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
5989 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
5991 2003-06-25 Andreas Jaeger <aj@suse.de>
5993 * stdlib/tst-strtod.c (main): Declare constant long double as
5994 suggested by Jakub Jelinek and Andreas Schwab.
5996 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
5999 * stdio-common/tst-fphex.c: Fix format string.
6001 * posix/transbug.c: Include <string.h> for memset and strlen
6004 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
6006 * stdlib/tst-strtod.c (main): Pass long double value.
6008 * test-skeleton.c: Include <time.h> for nanosleep declaration.
6010 2003-06-25 Ulrich Drepper <drepper@redhat.com>
6012 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
6015 2003-06-11 Jakub Jelinek <jakub@redhat.com>
6017 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
6018 * elf/dl-libc.c (struct dl_open_hook): New.
6019 (_dl_open_hook): New variable.
6020 (do_dlsym_private): New function.
6021 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
6022 and initialize it if found.
6023 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
6024 call dlopen_mode hook.
6025 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
6027 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
6030 2003-06-25 Ulrich Drepper <drepper@redhat.com>
6032 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
6033 result to long int so that extensions to long long int work.
6034 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
6036 2003-06-19 Jakub Jelinek <jakub@redhat.com>
6038 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
6039 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
6040 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
6042 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
6043 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
6044 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
6045 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
6047 2003-06-19 Jakub Jelinek <jakub@redhat.com>
6049 * test-skeleton.c (timeout_handler): If waitpid returned 0,
6050 retry once after a second. If killed == 0, assume
6051 WTERMSIG (status) == SIGKILL.
6053 2003-06-18 Roland McGrath <roland@redhat.com>
6055 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
6056 elements in the table instead of printing an empty name string.
6058 2003-06-05 Roland McGrath <roland@redhat.com>
6060 * elf/elf.h (PT_GNU_STACK): New macro.
6062 2003-06-24 Ulrich Drepper <drepper@redhat.com>
6064 * include/time.h: Define CLOCK_IDFIELD_SIZE.
6065 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
6066 * sysdeps/unix/clock_gettime.c: Likewise.
6067 * sysdeps/unix/clock_settime.c: Likewise.
6068 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
6069 clock id for thread CPU clocks.
6071 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
6072 for the fstatfs64 syscall.
6073 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
6074 the statfs64 syscall.
6076 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6077 __ASSUME_STATFS64 appropriately.
6079 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
6080 from statfs structure if it has been filled in.
6082 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
6084 (struct statfs64): Likewise.
6085 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
6086 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
6088 2003-06-24 Richard Henderson <rth@redhat.com>
6090 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
6091 the 64-bit syscall name.
6093 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
6095 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
6096 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
6098 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
6099 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
6101 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
6102 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
6105 * sysdeps/alpha/bits/atomic.h: New file.
6107 2003-06-24 Andreas Schwab <schwab@suse.de>
6109 * sysdeps/m68k/fpu/libm-test-ulps: Update.
6111 2003-06-24 Andreas Jaeger <aj@suse.de>
6113 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
6114 redeclaration with 32-bit code.
6116 2003-05-19 Ed Connell <ed.connell@sas.com>
6118 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
6119 floating point mask.
6120 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
6122 2003-06-23 Ulrich Drepper <drepper@redhat.com>
6124 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
6125 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
6126 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
6128 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
6129 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
6130 instead of __libc_cleanup_region_*.
6132 2003-06-20 Richard Henderson <rth@redhat.com>
6134 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
6135 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
6137 2003-06-20 Richard Henderson <rth@redhat.com>
6139 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
6140 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
6142 (__ASSUME_TIMEVAL64): Set for alpha.
6143 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
6144 adjtimex, osf_sigprocmask, old_adjtimex.
6145 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
6146 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
6147 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
6148 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
6149 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6150 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
6151 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
6152 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
6153 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
6154 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
6155 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
6157 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
6158 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
6159 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
6160 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
6161 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
6162 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
6163 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
6164 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
6165 defer to __syscall_name; error for rt_sigaction.
6166 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
6168 2003-06-18 Ulrich Drepper <drepper@redhat.com>
6170 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
6171 hasn't happened yet.
6173 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6174 Fix completely broken implementation. The second parameter is of
6175 type struct ucontext*.
6177 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
6180 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
6181 * sysdeps/generic/dl-hash.h: Likewise.
6183 * sysdeps/generic/memcmp.c: Remove inline from
6184 memcmp_common_alignment and memcmp_not_common_alignment definition.
6186 * intl/localealias.c (read_alias_file): Determine whether line is
6187 read incompletely early, before we modify the line.
6189 2003-06-17 Jakub Jelinek <jakub@redhat.com>
6191 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
6192 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
6194 2003-06-17 Paul Mackerras <paulus@samba.org>
6196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
6197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
6198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
6199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
6200 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
6201 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
6203 2003-06-17 Jakub Jelinek <jakub@redhat.com>
6205 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
6207 2003-06-17 Ulrich Drepper <drepper@redhat.com>
6209 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
6210 takes care of enabling cancellation.
6212 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
6213 cancelable. It's not correct to disable cancellation. Instead of
6216 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
6217 and part of the incoming set, create a temporary set without this
6219 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6220 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6222 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
6223 returning because seconds==0. Add __builtin_expect.
6225 2003-06-16 Ulrich Drepper <drepper@redhat.com>
6227 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
6229 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
6232 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
6234 * include/libc-symbols.h: Add static_link_warning macro.
6235 * grp/initgroups.c: Print linker warning if this function
6236 is called in a static linked binary.
6237 * nss/getXXbyYY.c: Likewise.
6238 * nss/getXXbyYY_r.c: Likewise.
6239 * nss/getXXent.c: Likewise.
6240 * nss/getXXent_r.c: Likewise.
6241 * sysdeps/posix/getaddrinfo.c: Likewise.
6243 2003-06-16 Bruno Haible <bruno@clisp.org>
6245 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
6247 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
6248 (IBM1047): Add alias IBM-1047.
6249 (GBK): Add aliases MS936, WINDOWS-936.
6251 2003-06-16 Jakub Jelinek <jakub@redhat.com>
6253 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
6254 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
6255 (__xstat64_conv): Change xstat_conv to __xstat_conv.
6257 2003-06-16 Ulrich Drepper <drepper@redhat.com>
6259 * locale/iso-639.def: Update from current official ISO 639.
6261 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
6263 2003-06-15 Andreas Jaeger <aj@suse.de>
6265 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
6267 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6268 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
6269 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
6271 * math/tgmath.h (carg): Handle real arguments.
6277 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
6278 (tests): Add test-tgmath-ret.
6279 * math/test-tgmath-ret.c: New file.
6281 * math/tgmath.h (ilogb): Return always an int.
6283 2003-06-16 Ulrich Drepper <drepper@redhat.com>
6285 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
6286 computation so that prelinking works.
6288 2003-06-15 Ulrich Drepper <drepper@redhat.com>
6290 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
6292 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
6293 dynamic linker's map.
6295 Fix cancellation point handling wrt exception based cleanup.
6296 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
6297 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
6299 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
6300 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
6301 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
6303 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
6304 sigwait.c, and sigwaitinfo.c with exceptions.
6305 * stdlib/Makefile: Compile system.c with exceptions.
6306 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
6307 * termios/Makefile: Compile tcdrain.c with exceptions.
6308 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
6310 * sysdeps/generic/pselect.c: Likewise.
6311 * sysdeps/posix/sigpause.c: Likewise.
6312 * sysdeps/posix/system.c: Likewise.
6313 * sysdeps/posix/waitid.c: Likewise.
6314 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
6315 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
6316 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
6317 INTERNAL_SYSCALL to not use push inside asm statement so that
6318 unwind info is correct around the syscall.
6319 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
6320 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
6322 2003-06-15 Andreas Jaeger <aj@suse.de>
6324 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
6327 2003-06-15 Guido Guenther <agx@sigxcpu.org>
6329 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
6332 2003-06-14 Ulrich Drepper <drepper@redhat.com>
6334 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
6337 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
6338 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
6341 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
6342 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
6343 * inet/Makefile (routines): Add inet6_option.
6344 * inet/inet6_option.c: New file.
6345 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
6346 inet6_option_init, inet6_option_append, inet6_option_alloc,
6347 inet6_option_next, and inet6_option_find.
6349 2003-06-13 Ulrich Drepper <drepper@redhat.com>
6351 * inet/netinet/ip6.h (struct ip6_ext): Define.
6353 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
6355 Fixing gcc 3.3 warnings, part II.
6356 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
6357 * elf/dl-load.c (cache_rpath): Don't inline.
6358 * iconvdata/cns11642l2.h: Always inline all functions.
6359 * iconvdata/iso-ir-165.h: Likewise.
6360 * locale/Makefile (aux): Add coll-lookup.
6361 * locale/coll-lookup.c: New file.
6362 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
6363 (collseq_table_lookup): Likewise.
6364 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
6365 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
6367 * posix/regcomp.c: Likewise.
6368 * posix/regexec.c: Likewise.
6369 * locale/programs/3level.h (*_get): Always inline.
6370 * locale/programs/locfile.h: Move definition of handle_copy to...
6371 * locale/programs/locfile.c: ...here.
6372 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
6373 (obstack_int32_grow_fast): Likewise.
6374 (utf8_encode): Likewise.
6375 (find_element): Avoid aliasing problems.
6376 (insert_value): Likewise.
6377 (collate_read): Likewise.
6378 * nss/getent.c (print_hosts): Don't inline
6379 (print_networks): Likewise.
6380 (print_shadow): Likewise.
6381 (build_doc): Likewise.
6382 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
6384 * posix/regcomp.c (re_set_fastmap): Always inline.
6385 (seek_collating_symbol_entry): Likewise.
6386 (lookup_collation_sequence_value): Likewise.
6387 (build_range_exp): Likewise.
6388 (build_collating_symbol): Likewise.
6389 * posix/regexec.c (acquire_init_state_context): Don't inline.
6390 (clean_state_log_if_need): Likewise.
6391 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
6393 (evConsTime): Likewise.
6394 (evAddTime): Likewise.
6395 (evSubTime): Likewise.
6396 (evNowTime): Likewise.
6397 (evTimeSpec): Removed.
6398 (__libc_res_nsend): Avoid aliasing problem.
6399 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
6400 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
6401 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
6403 (_dl_string_platform): Likewise.
6404 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
6405 (wcwidth_table_lookup): Likewise.
6406 (wctrans_table_lookup): Likewise.
6408 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
6410 2003-06-12 Ulrich Drepper <drepper@redhat.com>
6412 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
6414 2003-05-29 Jim Meyering <jim@meyering.net>
6416 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
6417 && HAVE_STRFTIME]: Use underlying_strftime for %r.
6418 Suggested by Daniel Yacob <locales@geez.org>.
6420 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
6422 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
6423 @got notation with @toc.
6424 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
6425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
6427 2003-06-12 Ulrich Drepper <drepper@redhat.com>
6429 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
6430 if only PF_INET address is needed.
6432 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
6435 * scripts/config.guess: Update from upstream version.
6436 * scripts/config.sub: Likewise.
6438 2003-06-12 Jakub Jelinek <jakub@redhat.com>
6440 * locale/programs/ld-time.c (time_output): Also copy the era format,
6443 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
6445 * posix/transbug.c (run_test): Return 1 for failure.
6446 (do_test): Compare only if run_test is successful.
6448 2003-06-12 Simon Josefsson <jas@extundo.com>
6450 * argp/argp.h [!__THROW]: Define if undefined.
6452 2003-06-12 Ulrich Drepper <drepper@redhat.com>
6454 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
6455 more than four parameters.
6456 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
6458 2003-06-12 Jakub Jelinek <jakub@redhat.com>
6460 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6461 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
6462 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
6464 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
6466 2003-06-12 Roland McGrath <roland@redhat.com>
6468 * Makerules ($(objpfx)stubs): Rewrite sed magic.
6470 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
6472 * posix/regcomp.c (parse_expression): Deliver translation to
6473 build_word_op, and build_charclass.
6474 (build_charclass): Apply translation for character classes too.
6475 (build_word_op): Deliver translation to build_charclass.
6476 * posix/transbug.c: New file.
6477 * posix/Makefile (tests): Add transbug.
6479 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
6481 * posix/regexec.c (group_nodes_into_DFAstates): Check for
6482 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
6483 'continue' before the others.
6485 2003-06-11 Ulrich Drepper <drepper@redhat.com>
6487 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
6488 function [PR libc/5045].
6490 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
6493 * time/tzfile.c: Add a couple of __builtin_expect.
6495 Remove warnings gcc 3.3 shows.
6496 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
6497 * elf/dl-load.c (fillin_rpath): Likewise.
6498 (add_path): Likewise.
6499 * elf/dl-version.c (find_needed): Always inline.
6500 * elf/do-lookup.c (FCT): Don't inline.
6501 * iconv/Makefile: Extend vpath to intl subdir.
6502 (iconvconfig-modules): Add hash-string.
6503 * iconv/gconv_charset.h (strip): Don't inline.
6504 (upstr): Always inline.
6505 Move __gconv_compare_alias prototype to...
6506 * iconv/gconv_int.h: ...here.
6507 * iconv/gconv_db.c: Don't include gconv_charset.h.
6508 * iconv/gconv_conf.c (add_alias): Don't inline.
6509 (insert_module): Likewise.
6510 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
6511 (internal_ucs4_loop_unaligned): Likewise.
6512 (internal_ucs4_loop_single): Likewise.
6513 (ucs4_internal_loop): Likewise.
6514 (ucs4_internal_loop_unaligned): Likewise.
6515 (ucs4_internal_loop_single): Likewise.
6516 (internal_ucs4le_loop): Always inline.
6517 (internal_ucs4le_loop_unaligned): Likewise.
6518 (internal_ucs4le_loop_single): Likewise.
6519 (ucs4le_internal_loop): Likewise.
6520 (ucs4le_internal_loop_unaligned): Likewise.
6521 (ucs4le_internal_loop_single): Likewise.
6522 * iconv/loop.c: Always inline the defined functions.
6523 * iconvdata/cns11642.h: Likewise.
6524 * iconvdata/cns11642l1.h: Likewise.
6525 * iconvdata/euc-kr.c: Likewise.
6526 * iconvdata/gb2312.h: Likewise.
6527 * iconvdata/jis0201.h: Likewise.
6528 * iconvdata/jis0208.h: Likewise.
6529 * iconvdata/jis0212.h: Likewise.
6530 * iconvdata/jisx0213.h: Likewise.
6531 * iconvdata/ksc5601.h: Likewise.
6532 * iconvdata/utf-7.c (base64): Don't inline.
6533 * include/libc-symbols.h (symbol_set_first_element): Add cast
6534 (symbol_set_end_p): Likewise.
6535 * include/set-hooks (RUN_HOOK): Likewise.
6536 * inet/Makefile (aux): Add ifreq.
6537 * intl/Makefile (aux): Add some entries from routines. Add
6539 * intl/hash-string.c: New file.
6540 * intl/hash-string.h: Remove hash_string definition. Declare
6542 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
6543 * iconv/iconvconfig.c (new_name): Likewise.
6544 * intl/dcigettext.c (_nl_find_msg): Likewise.
6545 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
6546 * io/ftw.c (open_dir_stream): Always inline.
6547 (process_entry): Don't inline.
6548 * locale/findlocale.c: Include gconv_int.h.
6549 * locale/setlocale.c (new_composite_name): Don't inline.
6550 * locale/weight.h (findidx): Always inline.
6551 * locale/weightwc.h (findidx): Likewise.
6552 * locale/programs/linereader.c (lr_ignore_rest): Define here.
6553 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
6555 (lr_getc): Always inline.
6556 (lr_ungetc): Likewise.
6557 * nss/nss_files/files-parse.c (parse_list): Likewise.
6558 * stdio-common/Makefile (aux): Add printf-parsemb and
6560 * stdio-common/_itoa.h (_itoa_word): Always inline.
6561 (_fitoa_word, _fitoa): Don't define here, only declare.
6562 * stdio-common/_itoa.c (_iftoa_word): Add here.
6564 * stdio-common/_itowa.h (_itowa_word): Always inline.
6565 * stdio-common/printf-parse.h (read_int): Don't inline.
6566 (find_spec): Don't define.
6567 Declare __find_specmb and __find_specwc.
6568 (parse_one_spec): Don't define.
6569 Declare __parse_one_specmb and __parse_one_specwc.
6570 * stdio-common/printf-parsemb.c: New file.
6571 * stdio-common/printf-parsewc.c: New file.
6572 * stdio-common/vfprintf.c: Update calls to find_spec and
6573 parse_one_spec for new names.
6574 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
6575 * stdlib/Makefile (aux): Add grouping and groupingwc.
6576 * stdlib/grouping.c: New file.
6577 * stdlib/groupingwc.c: New file.
6578 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
6580 * stdlib/rpmatch.c (try): Don't inline.
6581 * stdlib/strtod.c (round_and_return): Don't line.
6582 (str_to_mpn): Likewise.
6583 (__mpn_lshift_1): Always inline. Optimize only for constant count.
6584 Adjust for name change of correctly_grouped_prefix.
6585 * sysdeps/generic/strtol.c: Adjust for name change of
6586 correctly_grouped_prefix.
6587 * string/strxfrm.c (utf8_encode): Don't inline.
6588 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
6589 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
6590 * sysdeps/generic/ifreq.c: New file.
6591 * sysdeps/unix/sysv/linux/ifreq.c: New file.
6592 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
6593 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
6594 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
6595 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
6596 (fde_split): Likewise.
6597 (fde_merge): Likewise.
6598 (end_fde_sort): Likewise.
6599 (init_object): Likewise.
6600 (binary_search_unencoded_fdes): Likewise.
6601 (binary_search_single_encoding_fdes): Likewise.
6602 (binary_search_mixed_encoding_fdes): Likewise.
6603 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
6604 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
6605 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
6606 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6608 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
6609 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
6610 Export them. Prepend __ to name.
6611 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
6612 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
6613 conversion functions.
6614 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6615 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6616 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6617 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
6618 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
6619 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6620 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6621 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
6622 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
6623 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
6624 to name. Change callers.
6625 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
6626 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
6628 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
6629 * time/tzfile.c (decode): Always inline.
6630 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
6631 Remove cast in tomb function call.
6632 * wcsmbs/wcsrtombs.c Likewise.
6633 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
6636 2003-06-10 Ulrich Drepper <drepper@redhat.com>
6638 * po/zh_CN.po: Update from translation team.
6640 2003-06-10 Jakub Jelinek <jakub@redhat.com>
6642 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
6643 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
6645 2003-06-10 Ulrich Drepper <drepper@redhat.com>
6647 * inet/Makefile (aux): Add check_pf.
6648 * include/ifaddrs.h: Add prototype for __check_pf.
6649 * sysdeps/generic/check_pf.c: New file.
6650 * sysdeps/unix/sysv/linux/check_pf.c: New file.
6651 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
6652 from no_netlink_support. Export.
6653 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
6656 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
6658 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
6659 from getifaddr calls.
6661 2003-06-09 Jakub Jelinek <jakub@redhat.com>
6663 * sysdeps/unix/sysv/linux/kernel-features.h
6664 (__ASSUME_SETRESGID_SYSCALL): Define.
6665 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
6666 instead of __ASSUME_SETRESUID_SYSCALL.
6667 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
6669 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
6670 inline syscall if __NR_setresuid32 is defined.
6671 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
6672 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
6673 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
6674 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
6675 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
6676 code handling non-existant setresgid32 syscall with
6677 #if __ASSUME_SETRESGID_SYSCALL == 0.
6679 2003-06-09 Andreas Schwab <schwab@suse.de>
6681 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
6682 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
6683 $(objpfx)rpc-proto.d.
6684 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
6685 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
6686 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
6688 2003-06-08 Ulrich Drepper <drepper@redhat.com>
6690 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
6691 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
6692 defined drop compatibility code.
6693 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
6694 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
6695 defined drop compatibility code.
6696 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
6697 setresuid32 syscall directly if possible.
6698 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
6699 setresgid32 syscall directly if possible.
6700 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
6701 compliant. Don't change sgid.
6702 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
6703 compliant. Don't change suid.
6705 * config.h.in: Add have-forced-unwind.
6706 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
6708 2003-06-07 Ulrich Drepper <drepper@redhat.com>
6710 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
6711 returned status from child matches.
6713 * Makeconfig (gnulib): Add -lgcc_eh once again.
6715 2003-06-06 Ulrich Drepper <drepper@redhat.com>
6717 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
6719 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
6720 %edx for first parameter. This means no pushl and therefore the
6721 unwind info isn't screwed up.
6723 2003-06-04 Richard Henderson <rth@redhat.com>
6725 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
6726 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
6727 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
6728 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
6729 entry sequence and explicit relocs. Add unwind info for sigreturn
6731 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
6733 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
6734 Annotate some parameters.
6735 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
6737 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
6739 * include/libc-symbols.h (symbol_set_declare): Use arrays
6740 of unspecified size.
6742 2003-06-04 Jakub Jelinek <jakub@redhat.com>
6744 * config.make.in (ASFLAGS-config): New.
6745 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
6746 * configure.in (libc_cv_as_noexecstack): New check.
6747 (ASFLAGS_config): Substitute.
6749 2003-06-04 Jakub Jelinek <jakub@redhat.com>
6751 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
6752 hypot, logb): Protect with #ifdef __FAST_MATH__.
6754 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
6756 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
6757 #ifdef __FAST_MATH__.
6759 2003-06-03 Ulrich Drepper <drepper@redhat.com>
6761 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
6762 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
6763 * posix/globtest.sh: Adjust for this change.
6765 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
6766 to get the actual PID value used in the records passed up.
6767 (getifaddrs): Don't initialize nh.pid here.
6769 2003-06-02 Ulrich Drepper <drepper@redhat.com>
6771 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
6774 * po/zh_CN.po: Update from translation team.
6776 * posix/getconf.c (main): Also recognize names without the
6779 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
6781 2003-06-02 Bernd Schmidt <bernds@redhat.com>
6783 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
6784 ldexpf, ldexpl): Only define if __FAST_MATH__.
6786 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
6788 Replace hard-coded offsets into struct sigcontext with generated file.
6789 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
6790 * sysdeps/unix/sysv/linux/ia64/Makefile
6791 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
6792 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
6793 defining SC_* macros here.
6795 2003-06-02 Jakub Jelinek <jakub@redhat.com>
6797 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
6799 2003-06-01 Jakub Jelinek <jakub@redhat.com>
6801 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
6803 2003-06-01 Ulrich Drepper <drepper@redhat.com>
6805 * test-skeleton.c (main): Request getopt to not reorder the
6808 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
6810 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
6813 2003-05-31 Ulrich Drepper <drepper@redhat.com>
6815 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
6817 2003-05-31 Jakub Jelinek <jakub@redhat.com>
6819 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
6821 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
6822 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
6823 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
6825 2003-05-31 Ulrich Drepper <drepper@redhat.com>
6827 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
6830 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
6832 * libio/fileops.c (_IO_file_open): Don't mark as inline.
6834 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
6837 2003-05-30 Ulrich Drepper <drepper@redhat.com>
6839 * scripts/config.guess: Update from master copy.
6840 * scripts/config.sub: Likewise.
6842 2003-05-30 Guido Guenther <agx@sigxcpu.org>
6844 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
6845 SETUP_GP64 and friends.
6846 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
6847 names in internal_syscall{6,7}.
6848 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
6849 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
6850 number of syscall arguments.
6851 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6852 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6853 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6855 2003-05-30 Andreas Jaeger <aj@suse.de>
6857 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
6860 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
6863 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
6865 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6868 2003-05-30 Jakub Jelinek <jakub@redhat.com>
6870 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
6873 2003-05-11 Andreas Schwab <schwab@suse.de>
6875 * Makerules: Always use -MP together with -MD.
6876 (sed-remove-dotot): Substitute $(..) also at start of line.
6877 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
6878 Generated defines with a single compiler call.
6879 Use $(sed-remove-dotdot).
6880 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
6881 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
6882 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
6883 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
6884 * sysdeps/unix/sysv/linux/mips/Makefile
6885 ($(objpfx)syscall-%.h): Likewise.
6887 2003-05-28 Roland McGrath <roland@redhat.com>
6889 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
6891 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
6893 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
6895 2003-05-28 Roland McGrath <roland@redhat.com>
6897 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
6898 rt_sigprocmask system call.
6899 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
6900 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
6902 2003-05-28 Ulrich Drepper <drepper@redhat.com>
6904 * include/libc-symbols.h: Define hidden attribute for real also if
6905 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
6907 * csu/Makefile: Add rules to build Scrt1.o.
6908 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
6909 * sysdeps/x86_64/elf/start.S: Likewise.
6911 2003-05-27 Jakub Jelinek <jakub@redhat.com>
6913 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
6914 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
6915 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
6916 pa_short_int, pa_u_short_int and pa_float.
6918 2003-05-26 Jakub Jelinek <jakub@redhat.com>
6920 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
6921 _IO_str_init_static_internal.
6922 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
6923 change size argument to _IO_size_t, don't limit sprintf to 64M.
6924 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
6925 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
6926 _IO_size_t, don't limit swprintf to 256M.
6927 (_IO_wstr_init_readonly): Remove.
6928 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
6930 (_IO_wstr_init_readonly): Remove prototype.
6931 * libio/iovsprintf.c (_IO_vsprintf): Use
6932 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
6933 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
6934 * libio/memstream.c (open_memstream): Likewise.
6935 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
6936 * libio/vasprintf.c (_IO_vasprintf): Likewise.
6937 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
6938 * stdio-common/tst-sprintf.c (main): Add new test.
6940 2003-05-26 Ulrich Drepper <drepper@redhat.com>
6942 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
6943 other implementation in respect of multiple uses of parameter with
6946 2003-05-25 Ulrich Drepper <drepper@redhat.com>
6948 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6949 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
6951 2003-05-22 Andreas Jaeger <aj@suse.de>
6953 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
6955 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
6956 * sysdeps/x86_64/strtok.S: Likewise.
6958 2003-05-20 Guido Guenther <agx@sigxcpu.org>
6960 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
6961 to -60 and define SI_TKILL.
6963 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
6965 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
6966 (feexcp_mask_test): Likewise.
6968 2003-05-21 Ulrich Drepper <drepper@redhat.com>
6970 * locale/programs/locale.c (main): Fix typo in last patch.
6972 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
6973 __init_array_start, __init_array_end, __fini_array_start, and
6974 __fini_array_end as hidden.
6976 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
6978 * locale/programs/locale.c (main): Report an error if setlocale()
6979 fails [PR libc/2254].
6981 2003-05-21 Jakub Jelinek <jakub@redhat.com>
6983 * sysdeps/unix/sysv/linux/s390/system.c: New file.
6985 2003-05-21 Jakub Jelinek <jakub@redhat.com>
6987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
6988 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
6989 LOADARGS_6): Don't error if syscall argument is a string literal.
6990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
6991 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
6992 LOADARGS_6): Likewise.
6994 2003-05-21 Andreas Jaeger <aj@suse.de>
6996 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
6997 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
6998 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
7000 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
7004 * configure.in: Test for asm cfi directives.
7006 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
7008 2003-05-17 Andreas Jaeger <aj@suse.de>
7010 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
7012 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
7014 2003-05-16 Ulrich Drepper <drepper@redhat.com>
7016 * rt/Makefile (tests): Add tst-clock_nanosleep.
7017 * rt/tst-clock_nanosleep.c: New file.
7018 * posix/Makefile (tests): Add tst-nanosleep.
7019 * posix/tst-nanosleep.c: New file.
7021 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
7023 * include/features.h (__USE_XOPEN2K): Define also for
7024 _POSIX_C_SOURCE>=200112L.
7026 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
7027 SI_TKILL code into SI_USER.
7028 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
7030 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
7032 2003-05-15 Jakub Jelinek <jakub@redhat.com>
7034 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
7035 Remove sym argument, always use refsym.
7036 (__process_machine_rela): Adjust callers.
7037 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
7039 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
7041 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
7043 2003-05-15 Ulrich Drepper <drepper@redhat.com>
7045 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
7046 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
7047 print numeric values.
7049 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
7051 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
7053 2003-05-14 Andreas Schwab <schwab@suse.de>
7055 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
7057 2003-05-14 Jakub Jelinek <jakub@redhat.com>
7059 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
7060 even if no DT_NEEDED is present.
7062 2003-05-13 David Mosberger <davidm@hpl.hp.com>
7064 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
7065 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
7066 __sigjmp_save) so we can't keep the saved unat value in a scratch
7067 register (r16). Use loc2 instead.
7069 2003-05-13 Ulrich Drepper <drepper@redhat.com>
7071 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
7072 binaries it has to be relocatable.
7074 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
7076 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
7078 * sysdeps/powerpc/bits/atomic.h
7079 (__arch_compare_and_exchange_bool_8_rel): Define.
7080 (__arch_compare_and_exchange_bool_16_rel): Define.
7081 (__ARCH_REL_INSTR): Define if not already defined.
7082 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
7083 (__arch_atomic_decrement_if_positive_32):
7084 Add "memory" to clobber list.
7085 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
7086 (__arch_compare_and_exchange_val_32_rel): Define.
7087 (__arch_atomic_exchange_32): Remove.
7088 (__arch_atomic_exchange_32_acq): Define.
7089 (__arch_atomic_exchange_32_rel): Define.
7090 (atomic_compare_and_exchange_val_rel): Define.
7091 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
7092 (atomic_exchange_rel): Define.
7093 * sysdeps/powerpc/powerpc32/bits/atomic.h
7094 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
7095 (__arch_compare_and_exchange_bool_32_rel): Define.
7096 (__arch_compare_and_exchange_bool_64_rel): Define.
7097 (__arch_compare_and_exchange_val_64_rel): Define.
7098 (__arch_atomic_exchange_64): Remove.
7099 (__arch_atomic_exchange_64_acq): Define.
7100 (__arch_atomic_exchange_64_rel): Define.
7101 * sysdeps/powerpc/powerpc64/bits/atomic.h
7102 (__arch_compare_and_exchange_bool_32_rel): Define.
7103 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
7104 (__arch_compare_and_exchange_bool_64_rel): Define.
7105 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
7106 (__arch_compare_and_exchange_val_64_rel): Define.
7107 (__arch_atomic_exchange_64): Remove.
7108 (__arch_atomic_exchange_64_acq): Define.
7109 (__arch_atomic_exchange_64_rel): Define.
7110 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
7111 (__arch_atomic_decrement_if_positive_64):
7112 Add "memory" to clobber list.
7113 [!UP](__ARCH_REL_INSTR): Define as lwsync.
7115 2003-05-11 Andreas Schwab <schwab@suse.de>
7117 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
7119 2003-05-11 Ulrich Drepper <drepper@redhat.com>
7121 * time/tst-strftime.c (do_test): Add tests for - flag.
7123 2003-05-11 Jim Meyering <jim@meyering.net>
7125 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
7126 the space-padded-by-default conversion specifiers, %e, %k, %l.
7128 2003-05-11 Andreas Schwab <schwab@suse.de>
7130 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
7132 2003-05-10 Ulrich Drepper <drepper@redhat.com>
7134 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
7135 already defined and when really needed.
7136 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7138 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
7140 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
7141 headers, add defines from kernel header, move it from here...
7142 * inet/netinet/igmp.h: ... to here.
7143 * inet/Makefile (headers): Add netinet/igmp.h.
7144 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
7145 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
7147 2003-05-10 Ulrich Drepper <drepper@redhat.com>
7149 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
7150 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
7152 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
7154 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
7155 (remove __THROW from possible cancellation points).
7157 2003-05-10 Ulrich Drepper <drepper@redhat.com>
7159 * posix/sched.h (CPU_SETSIZE): Define.
7161 2003-05-09 Ulrich Drepper <drepper@redhat.com>
7163 * Makeconfig (gnulib): Remove -lgcc_eh again.
7165 * posix/sched.h: Change prototypes of sched_getaffinity and
7166 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
7167 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
7168 * sysdeps/generic/sched_setaffinity.c: Likewise.
7169 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
7170 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
7171 __CPU_CLR, and __CPU_ISSET.
7172 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7173 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
7174 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
7176 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
7177 (atomic_exchange_rel): New #define.
7178 * sysdeps/ia64/bits/atomic.h: Likewise.
7179 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
7181 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
7182 * sysdeps/powerpc/bits/atomic.h: Likewise.
7183 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
7184 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
7185 * sysdeps/x86_64/bits/atomic.h: Likewise.
7186 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
7188 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
7190 2003-05-08 Ulrich Drepper <drepper@redhat.com>
7192 * malloc/thread-m.h: Remove special handling of thread_atfork if
7193 HAVE_register_atfork_malloc is defined.
7195 2003-05-07 Andreas Jaeger <aj@suse.de>
7197 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
7200 2003-05-06 Ulrich Drepper <drepper@redhat.com>
7202 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
7203 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
7204 * libio/libioP.h: Declare _IO_old_init.
7205 * libio/genops.c (_IO_no_init): Split in two. New function
7208 2003-05-05 Ulrich Drepper <drepper@redhat.com>
7210 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
7212 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
7214 * include/unistd.h: Declare __libc_enable_secure_decided.
7215 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
7216 and AT_EGID. If all found, set __libc_enable_secure and
7217 __libc_enable_secure_decided.
7219 * sysdeps/generic/libc-start.c [!SHARED]: Call
7220 __libc_check_standard_fds after __libc_init_first.
7222 2003-05-05 Roland McGrath <roland@redhat.com>
7224 * Makerules (common-before-compile): New variable.
7225 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
7226 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
7227 to after all setting of before-compile.
7229 2003-05-05 Jakub Jelinek <jakub@redhat.com>
7231 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
7232 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
7233 * sysdeps/powerpc/powerpc32/bits/atomic.h
7234 (__arch_compare_and_exchange_val_64_acq): Likewise.
7235 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
7236 (__arch_compare_and_exchange_val_8_acq,
7237 __arch_compare_and_exchange_val_16_acq,
7238 __arch_compare_and_exchange_val_64_acq): Likewise.
7239 * sysdeps/sparc/sparc64/bits/atomic.h
7240 (__arch_compare_and_exchange_val_8_acq,
7241 __arch_compare_and_exchange_val_16_acq): Likewise.
7242 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
7243 __arch_compare_and_exchange_val_16_acq,
7244 __arch_compare_and_exchange_val_64_acq): Likewise.
7245 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
7246 (__arch_compare_and_exchange_val_64_acq): Likewise.
7247 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
7249 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
7251 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
7252 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
7253 Return long instead of int.
7254 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
7255 0xfffff001u with -4095UL.
7257 2003-05-05 Andreas Jaeger <aj@suse.de>
7259 * sysdeps/x86_64/fpu_control.h: New from i386.
7261 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
7262 Define if not defined.
7264 * sunrpc/Makefile (generated-dirs): New variable.
7265 * resolv/Makefile (generated): New variable.
7267 2003-05-04 Roland McGrath <roland@redhat.com>
7269 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
7270 Depend on $(before-compile).
7272 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
7273 pattern rule. The implicit rule could be ruled out when $(objpfx)
7274 didn't exist at the time of its consideration (ugh!).
7276 * Makerules (+make-deps): Fix target matching.
7277 Use $(sed-remove-dotdot).
7279 2003-05-03 Ulrich Drepper <drepper@redhat.com>
7281 * nscd/nscd.c (main): Parse config file right after parsing
7282 parameters. Then, if get_stats is true, call receive_print_stats.
7283 Drop parameter from nscd_init call.
7284 (get_stats): New variable.
7285 (parse_opt): Set get_stats, don't call receive_print_stats here.
7286 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
7288 * nscd/connections.c (stat_user, stat_uid): New variables.
7290 (nscd_init): Don't read configuration file here. Drop parameter.
7291 (handle_request): Cleanup handling of non-database lookup requests.
7292 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
7293 Get UID of the specified user. Use xstrdup instead of strdup.
7294 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
7296 * nscd/Makefile (nscd-modules): Add xstrdup.
7297 * nscd/nscd.conf: Document stat-user entry.
7299 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
7301 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
7304 2003-04-22 Roland McGrath <roland@redhat.com>
7306 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
7307 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7308 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
7309 * elf/dl-support.c: Update defn.
7310 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
7311 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
7312 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
7313 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
7314 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
7315 set, set up a link_map for the preloaded, prelinked object.
7317 2003-05-03 Roland McGrath <roland@redhat.com>
7319 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
7320 * stdio-common/Makefile: ... not here.
7322 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
7323 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
7325 2003-05-02 Ulrich Drepper <drepper@redhat.com>
7327 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
7329 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
7331 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
7332 comparing ftab elements.
7333 (_dl_unmap): Fix typo in test.
7334 (_dl_make_fptr): Fix typos introduced in last change.
7336 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
7337 original patch. Use non-exported symbols. Mark translatable
7338 strings. Pretty printing.
7340 2003-05-02 Roland McGrath <roland@redhat.com>
7342 * Makerules (do-stamp): Do $(make-target-directory).
7344 2003-04-07 H.J. Lu <hjl@gnu.org>
7346 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
7348 2003-04-03 H.J. Lu <hjl@gnu.org>
7350 * sysdeps/ia64/dl-fptr.c: Moved to ...
7351 * sysdeps/generic/dl-fptr.c: Here.
7353 * sysdeps/generic/dl-fptr.h: New.
7354 * sysdeps/ia64/dl-fptr.h: New.
7356 * sysdeps/ia64/dl-symaddr.c: Moved to ...
7357 * sysdeps/generic/dl-symaddr.c: here.
7359 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
7360 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
7361 (ia64_fdesc): Likewise.
7362 (ia64_fdesc_table): Likewise.
7363 (__ia64_make_fptr): Likewise.
7364 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
7365 with _dl_boot_fptr_table.
7366 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
7368 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
7370 2003-05-01 Roland McGrath <roland@redhat.com>
7372 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
7373 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
7375 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
7376 Use $(make-target-directory).
7377 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
7379 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
7380 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
7381 (compile-command.s, compile-command.c): Likewise.
7382 ($(objpfx)%.d): All such pattern rules removed.
7383 ($(+sysdir_pfx)sysd-rules): Don't generate them.
7384 ($(common-objpfx)dummy.d): Target removed.
7385 (make-dummy-dep): Variable removed.
7386 (generate-md5): Likewise.
7387 (%.d: %.dt): New pattern rule.
7388 (+depfiles): Use $(wildcard) function to get just existing *.d files
7389 and .d files for existing *.dt files.
7390 (common-clean): Remove all *.d and *.dt files.
7391 (before-compile): Add $(objpfx). when it doesn't exist,
7392 regardless of $(no_deps).
7393 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
7394 (rtld-depfiles): Use .os.d instead of .d names.
7395 Include existing *.d files and .d files for existing *.dt files.
7397 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
7398 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
7400 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
7401 Do s-*.d includes only if we have some syscall routines in this subdir.
7403 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
7404 @nobits. The former is accepted by gas on any ELF platform.
7406 2003-05-01 Ulrich Drepper <drepper@redhat.com>
7408 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
7410 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
7412 2003-04-29 Andreas Schwab <schwab@suse.de>
7414 * string/test-strcat.c (do_one_test): Fix attribute name.
7416 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
7418 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
7419 uc_flags long for all ABIs.
7421 2003-04-30 Andreas Jaeger <aj@suse.de>
7423 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
7424 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
7425 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
7426 Add bi-arch support.
7428 2003-04-30 Ulrich Drepper <drepper@redhat.com>
7430 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
7431 (__posix_memalign): Use __memalign_internal instead of memalign.
7433 2003-04-29 Roland McGrath <roland@redhat.com>
7435 * configure.in: Search for AUTOCONF unconditionally.
7436 Just don't complain about missing it under --without-cvs.
7438 * include/libc-symbols.h (__symbol_set_attribute): New macro,
7439 give hidden for [SHARED] and weak for [! SHARED].
7440 (symbol_set_declare): Use that. Never need weak_extern these days.
7441 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
7442 Depend on $(..)Makerules.
7444 2003-04-29 Ulrich Drepper <drepper@redhat.com>
7446 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
7447 variants of socket, bind, recvmsg, and sendto.
7449 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
7451 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
7452 * signal/sigaddset.c: Add libc_hidden_def.
7453 * signal/sigdelset.c: Likewise.
7455 2003-04-29 Jakub Jelinek <jakub@redhat.com>
7457 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
7458 to the end of the file.
7460 * configure.in: Change __oline__ to $LINENO.
7461 (HAVE_BUILTIN_REDIRECTION): New check.
7462 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
7463 * include/libc-symbols.h (libc_hidden_builtin_proto,
7464 libc_hidden_builtin_def, libc_hidden_builtin_weak,
7465 libc_hidden_builtin_ver): Define.
7466 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
7467 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
7468 strspn, strstr): Add libc_hidden_builtin_proto.
7469 * intl/plural.y: Include string.h.
7470 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
7471 libc_hidden_builtin_def.
7472 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
7473 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
7474 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
7475 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
7476 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
7477 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
7478 * sysdeps/alpha/memchr.S (memchr): Likewise.
7479 * sysdeps/alpha/memset.S (memset): Likewise.
7480 * sysdeps/alpha/strcat.S (strcat): Likewise.
7481 * sysdeps/alpha/strchr.S (strchr): Likewise.
7482 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
7483 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
7484 * sysdeps/alpha/strlen.S (strlen): Likewise.
7485 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
7486 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
7487 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
7488 * sysdeps/arm/memset.S (memset): Likewise.
7489 * sysdeps/arm/strlen.S (strlen): Likewise.
7490 * sysdeps/generic/memchr.c (memchr): Likewise.
7491 * sysdeps/generic/memcpy.c (memcpy): Likewise.
7492 * sysdeps/generic/memmove.c (memmove): Likewise.
7493 * sysdeps/generic/memset.c (memset): Likewise.
7494 * sysdeps/generic/strcat.c (strcat): Likewise.
7495 * sysdeps/generic/strchr.c (strchr): Likewise.
7496 * sysdeps/generic/strcmp.c (strcmp): Likewise.
7497 * sysdeps/generic/strcpy.c (strcpy): Likewise.
7498 * sysdeps/generic/strcspn.c (strcspn): Likewise.
7499 * sysdeps/generic/strlen.c (strlen): Likewise.
7500 * sysdeps/generic/strncmp.c (strncmp): Likewise.
7501 * sysdeps/generic/strncpy.c (strncpy): Likewise.
7502 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
7503 * sysdeps/generic/strrchr.c (strrchr): Likewise.
7504 * sysdeps/generic/strspn.c (strspn): Likewise.
7505 * sysdeps/generic/strstr.c (strstr): Likewise.
7506 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
7507 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
7508 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
7509 * sysdeps/i386/i586/memset.S (memset): Likewise.
7510 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
7511 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
7512 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
7513 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
7514 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
7515 * sysdeps/i386/i686/memset.S (memset): Likewise.
7516 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
7517 * sysdeps/i386/memchr.S (memchr): Likewise.
7518 * sysdeps/i386/memset.c (memset): Likewise.
7519 * sysdeps/i386/strchr.S (strchr): Likewise.
7520 * sysdeps/i386/strcspn.S (strcspn): Likewise.
7521 * sysdeps/i386/strlen.c (strlen): Likewise.
7522 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
7523 * sysdeps/i386/strrchr.S (strrchr): Likewise.
7524 * sysdeps/i386/strspn.S (strspn): Likewise.
7525 * sysdeps/ia64/memchr.S (memchr): Likewise.
7526 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
7527 * sysdeps/ia64/memmove.S (memmove): Likewise.
7528 * sysdeps/ia64/memset.S (memset): Likewise.
7529 * sysdeps/ia64/strcat.S (strcat): Likewise.
7530 * sysdeps/ia64/strchr.S (strchr): Likewise.
7531 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
7532 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
7533 * sysdeps/ia64/strlen.S (strlen): Likewise.
7534 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
7535 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
7536 * sysdeps/m68k/memchr.S (memchr): Likewise.
7537 * sysdeps/m68k/strchr.S (strchr): Likewise.
7538 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
7539 * sysdeps/mips/mips64/memset.S (memset): Likewise.
7540 * sysdeps/mips/memcpy.S (memcpy): Likewise.
7541 * sysdeps/mips/memset.S (memset): Likewise.
7542 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
7543 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
7544 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
7545 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
7546 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
7547 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
7548 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
7549 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
7550 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
7551 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
7552 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
7553 * sysdeps/powerpc/strcat.c (strcat): Likewise.
7554 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
7555 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
7556 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
7557 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
7558 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
7559 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
7560 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
7561 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
7562 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
7563 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
7564 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
7565 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
7566 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
7567 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
7568 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
7569 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
7570 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
7571 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
7572 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
7573 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
7574 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
7575 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
7576 * sysdeps/sh/memcpy.S (memcpy): Likewise.
7577 * sysdeps/sh/memset.S (memset): Likewise.
7578 * sysdeps/sh/strlen.S (strlen): Likewise.
7579 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
7580 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
7581 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
7582 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
7583 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
7584 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
7585 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
7586 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
7587 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
7588 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
7589 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
7590 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
7591 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
7592 * sysdeps/x86_64/memset.S (memset): Likewise.
7593 * sysdeps/x86_64/strcat.S (strcat): Likewise.
7594 * sysdeps/x86_64/strchr.S (strchr): Likewise.
7595 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
7596 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
7597 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
7598 * sysdeps/x86_64/strlen.S (strlen): Likewise.
7599 * sysdeps/x86_64/strspn.S (strspn): Likewise.
7600 * string/string-inlines.c: Move...
7601 * sysdeps/generic/string-inlines.c: ...here.
7602 (__memcpy_g, __strchr_g): Remove.
7603 (__NO_INLINE__): Define before including <string.h>,
7604 undefine after. Include bits/string.h and bits/string2.h.
7605 * sysdeps/i386/i486/string-inlines.c: New file.
7606 * sysdeps/i386/string-inlines.c: New file.
7607 * sysdeps/i386/i486/Versions: Remove.
7608 All GLIBC_2.1.1 symbols moved...
7609 * sysdeps/i386/Versions (libc): ...here.
7611 2003-04-29 Ulrich Drepper <drepper@redhat.com>
7613 * sysdeps/i386/fpu/Makefile: New file.
7614 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
7615 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
7616 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
7617 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
7620 2003-04-28 Ulrich Drepper <drepper@redhat.com>
7622 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
7623 * nscd/nscd_getpw_r.c: Likewise.
7624 * nscd/nscd_gethst_r.c: Likewise.
7626 2003-04-27 Ulrich Drepper <drepper@redhat.com>
7628 * nscd/pwdcache.c: Initialize .version element in result.
7629 * nscd/grpcache.c: Likewise.
7630 * nscd/pwdcache.c: Likewise.
7632 2003-04-27 Andreas Schwab <schwab@suse.de>
7634 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
7637 2003-04-27 Andreas Schwab <schwab@suse.de>
7639 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
7641 2003-04-27 Ulrich Drepper <drepper@redhat.com>
7643 * nscd/connections.c (client_queued): New variable.
7644 (nscd_run): Revamp the loop. Don't call poll except for cleanup
7645 threads. Keep track of the number of delays caused because of busy
7647 * nscd/nscd.h: Declare client_queued.
7648 * nscd/nscd_stat.c: Transmit and print client_queued information.
7650 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
7652 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
7653 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
7655 2003-04-26 Ulrich Drepper <drepper@redhat.com>
7657 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
7658 tracking of freed memory in static TLS block.
7659 * elf/Makefile: Add rules to build and run tst-tls13.
7660 * elf/tst-tls13.c: New file.
7661 * elf/tst-tlsmod13.c: New file.
7662 * elf/tst-tlsmod13a.c: New file.
7664 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
7666 * elf/dl-reloc.c: Pretty printing.
7668 2003-04-26 Roland McGrath <roland@redhat.com>
7670 * Makerules ($(common-objpfx)shlib.lds): New target.
7671 (common-generated): Add it.
7672 (build-shlib, build-module): Use that instead of generating every time.
7673 ($(common-objpfx)libc.so): Depend on it.
7674 (lib%.so rule): Likewise.
7675 (build-module-helper-objlist): Remove %.lds.
7676 (LDSEDCMD-c.so): Variable removed.
7677 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
7678 Depend on $(common-objpfx)shlib.lds.
7679 * dlfcn/Makefile ($(test-modules)): Likewise.
7681 2003-04-26 Roland McGrath <roland@frob.com>
7683 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
7685 2003-04-26 Andreas Schwab <schwab@suse.de>
7687 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
7689 2003-04-25 Ulrich Drepper <drepper@redhat.com>
7691 * nscd/cache.c (cache_search): Keep track of how many chain links
7692 we searched and update table statistics.
7693 (cache_add): Keep track of how many values are in the table.
7694 (prune_cache): Likewise. Keep track of locking success.
7695 Print messages about removed entries in separate pass.
7696 * nscd/connections.c (handle_request): Don't print debug message here.
7697 The caller will do it. Keep track of locking success.
7698 (nscd_run): Print debug message. Also print PID of the client process.
7699 * nscd/nscd.c (start_time): New variable.
7700 (main): Remember start time.
7701 * nscd/nscd.h: Declare start_time.
7702 (struct database): Add more members for new statistics.
7703 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
7706 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
7708 2003-04-22 Jakub Jelinek <jakub@redhat.com>
7710 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
7711 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
7712 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
7714 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
7715 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
7716 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
7717 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
7720 2003-04-24 Ulrich Drepper <drepper@redhat.com>
7722 * nss/getent.c: Implement alternative host database lookup via
7725 * include/ifaddrs.h: New file.
7726 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
7728 * resolv/netdb.h: ...here.
7729 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
7730 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7731 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
7734 2003-04-24 Roland McGrath <roland@redhat.com>
7736 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
7738 2003-04-24 Jakub Jelinek <jakub@redhat.com>
7740 * elf/dl-reloc.c (allocate_static_tls): Rename to...
7741 (_dl_allocate_static_tls): ... this function. No longer static.
7742 (CHECK_STATIC_TLS): Adjust.
7743 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
7744 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
7745 Add SYM_MAP argument.
7746 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
7747 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
7748 TLS relocs here. #ifdef out relocs which never appear in
7749 .gnu.conflict section from dl-conflict.c processing.
7750 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
7751 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
7753 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
7754 out relocs which never appear in .gnu.conflict section from
7755 dl-conflict.c processing.
7756 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7757 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7758 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
7759 Use r_type in RESOLVE macro.
7761 2003-04-23 Ulrich Drepper <drepper@redhat.com>
7763 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
7764 NULL. Remove code made redundant by this assumption.
7765 (__yp_unbind): Add call to free. Adjust all callers.
7767 * nis/ypclnt.c (yp_all): Free the dom_binding object after
7770 * grp/initgroups.c (getgrouplist): Don't copy too much into the
7771 user buffer if more groups are found than fit into it.
7773 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
7776 2003-04-23 Jakub Jelinek <jakub@redhat.com>
7778 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
7779 not rc == errno. Use extend_alloca.
7781 * elf/tst-tls12.c (main): Fix declaration.
7782 * elf/tst-tls10.c (dummy): Make hidden instead of static.
7783 * elf/tst-tlsmod7.c (dummy): Likewise.
7784 * elf/tst-tlsmod8.c (dummy): Likewise.
7785 * elf/tst-tlsmod9.c (dummy): Likewise.
7787 2003-04-22 Roland McGrath <roland@redhat.com>
7789 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
7790 (open_not_cancel): Make last argument non-optional.
7791 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
7792 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7793 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7795 * include/tls.h: Protect against multiple inclusion.
7797 2003-04-22 Ulrich Drepper <drepper@redhat.com>
7799 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
7800 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
7801 open_socket. Not static anymore.
7802 (nscd_gethst_r): Use __nscd_open_socket.
7803 * nscd/nscd_getgr_r.c (open_socket): Removed.
7804 (nscd_getgr_r): Use __nscd_open_socket.
7805 * nscd/nscd_getpw_r.c (open_socket): Removed.
7806 (nscd_getpw_r): Use __nscd_open_socket.
7808 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
7809 * nscd/connections.c (handle_request): Add cast to avoid warning.
7811 2003-04-21 Ulrich Drepper <drepper@redhat.com>
7813 * signal/sigfillset.c: Moved to...
7814 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
7815 do not set the corresponding bit.
7817 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
7819 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
7820 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
7821 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
7822 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
7823 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
7825 2003-04-20 Ulrich Drepper <drepper@redhat.com>
7827 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
7828 first syscall parameter to const char*.
7830 2003-04-19 Ulrich Drepper <drepper@redhat.com>
7832 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
7834 * configure.in: Add AC_PROG_CXX.
7835 * config.make.in (CXX): Define.
7837 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
7838 __len to size_t to avoid warnings.
7840 2003-04-18 Jes Sorensen <jes@wildopensource.com>
7842 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
7844 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7846 2003-04-19 Ulrich Drepper <drepper@redhat.com>
7848 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
7849 UNREGISTER_ATFORK if d == NULL.
7851 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
7852 * dirent/dirent.h: Likewise.
7853 * dlfcn/dlfcn.h: Likewise.
7854 * grp/grp.h: Likewise.
7855 * iconv/iconv.h: Likewise.
7856 * io/fcntl.h: Likewise.
7857 * io/ftw.h: Likewise.
7858 * libio/stdio.h: Likewise.
7859 * misc/sys/mman.h: Likewise.
7860 * misc/sys/select.h: Likewise.
7861 * misc/sys/syslog.h: Likewise.
7862 * misc/sys/uio.h: Likewise.
7863 * posix/spawn.h: Likewise.
7864 * posix/unistd.h: Likewise.
7865 * posix/sys/wait.h: Likewise.
7866 * pwd/pwd.h: Likewise.
7867 * resolv/netdb.h: Likewise.
7868 * rt/aio.h: Likewise.
7869 * shadow/shadow.h: Likewise.
7870 * signal/signal.h: Likewise.
7871 * socket/sys/socket.h: Likewise.
7872 * stdlib/stdlib.h: Likewise.
7873 * streams/stropts.h: Likewise.
7874 * string/string.h: Likewise.
7875 * sysdeps/gnu/utmpx.h: Likewise.
7876 * sysvipc/sys/msg.h: Likewise.
7877 * termios/termios.h: Likewise.
7878 * time/time.h: Likewise.
7879 * wcsmbs/wchar.h: Likewise.
7880 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
7882 * misc/daemon.c: Likewise.
7883 * sysdeps/generic/backtracesymsfd.c: Likewise.
7884 * sysdeps/generic/check_fds.c: Likewise.
7885 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
7886 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
7887 * sysdeps/generic/not-cancel.h: New file.
7888 * csu/Makefile (distribute): Add not-cancel.h.
7889 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
7890 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
7891 for assert.c and assert-perr.c to include <fatal-prepare.h>.
7892 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
7894 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
7895 errno and unlink first.
7897 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
7899 2003-04-18 Ulrich Drepper <drepper@redhat.com>
7901 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
7902 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
7904 2003-04-17 Ulrich Drepper <drepper@redhat.com>
7906 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
7908 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
7909 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
7912 * signal/Makefile (tests): Add tst-sigsimple.
7913 * signal/tst-sigsimple.c: New file.
7915 2003-04-16 Jakub Jelinek <jakub@redhat.com>
7917 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
7919 (tests): Add tst-tls1[0-2].
7920 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
7921 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
7922 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
7923 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
7924 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
7925 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
7926 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
7927 * elf/tst-tls10.c: New test.
7928 * elf/tst-tls11.c: New test.
7929 * elf/tst-tls12.c: New test.
7930 * elf/tst-tls10.h: New file.
7931 * elf/tst-tlsmod7.c: New file.
7932 * elf/tst-tlsmod8.c: New file.
7933 * elf/tst-tlsmod9.c: New file.
7934 * elf/tst-tlsmod10.c: New file.
7935 * elf/tst-tlsmod11.c: New file.
7936 * elf/tst-tlsmod12.c: New file.
7938 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
7940 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
7941 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
7942 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
7944 2003-04-17 Ulrich Drepper <drepper@redhat.com>
7946 * posix/regex.h: Include <sys/types.h>.
7948 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
7949 The signal number must be checked.
7950 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
7951 The signal number must be checked [PR libc/5004].
7953 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
7954 don't do anything fancy.
7956 * sysdeps/generic/bits/libc-lock.h: Define
7957 __rtld_lock_define_initialized_recursive.
7959 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
7960 contacting nscd if NOT_USENSCD_NAME > 0.
7961 * nss/nsswitch.c (__nss_disable_nscd): New function.
7962 * nss/nsswitch.h: Declare it.
7963 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
7964 * nscd/nscd.c (main): Call __nss_disable_nscd.
7966 2003-04-16 Ulrich Drepper <drepper@redhat.com>
7968 * stdio-common/perror.c (perror): We don't need to set the offset
7969 to _IO_pos_bad, this is how streams are initialized.
7971 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
7972 (time_output): If necessary, allocate new buffer for .name string if
7973 padding is required.
7975 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
7976 before copying. This might leave holes in the list. Adjust
7977 pointers if necessary.
7978 (netlink_receive): Allocate only one block.
7979 (free_netlink_handle): Adjust appropriately.
7980 (getifaddrs): Lots of cleanups.
7982 * string/test-strncpy.c (do_one_test): Mark start and stop as
7984 * string/test-memchr.c: Likewise.
7985 * string/test-memcmp.c: Likewise.
7986 * string/test-memcpy.c: Likewise.
7987 * string/test-memmove.c: Likewise.
7988 * string/test-memset.c: Likewise.
7989 * string/test-strcat.c: Likewise.
7990 * string/test-strchr.c: Likewise.
7991 * string/test-strcmp.c: Likewise.
7992 * string/test-strcpy.c: Likewise.
7993 * string/test-strlen.c: Likewise.
7994 * string/test-strncmp.c: Likewise.
7995 * string/test-strpbrk.c: Likewise.
7996 * string/test-strrchr.c: Likewise.
7997 * string/test-strspn.c: Likewise.
7999 2003-04-15 Roland McGrath <roland@redhat.com>
8001 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
8003 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
8004 INTUSE(__register_frame_info_bases).
8006 2003-04-15 Ulrich Drepper <drepper@redhat.com>
8008 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
8009 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
8010 AT_SYSINFO_EH_FRAME. Adjust string width.
8011 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
8012 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
8013 Add _dl_sysinfo_eh_frame field.
8014 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
8015 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
8017 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
8018 if _dl_sysinfo_eh_frame is non-NULL.
8020 * Makeconfig (gnulib): Add -lgcc_eh.
8022 * config.h.in: Define HAVE_FORCED_UNWIND.
8024 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
8026 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
8027 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
8029 2003-04-15 Jakub Jelinek <jakub@redhat.com>
8031 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
8032 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
8033 against local symbol in conflict processing.
8035 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
8037 * sysdeps/powerpc/bits/atomic.h
8038 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
8039 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
8041 (__arch_compare_and_exchange_val_32_acq): Define.
8042 (atomic_compare_and_exchange_val_acq): Define.
8044 2003-04-15 Ulrich Drepper <drepper@redhat.com>
8046 * include/atomic.h: Pretty printing.
8048 2003-04-14 Ulrich Drepper <drepper@redhat.com>
8050 * stdio-common/vfscanf.c: Add casts to avoid warnings.
8052 2003-04-14 Jakub Jelinek <jakub@redhat.com>
8054 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
8055 * sysdeps/x86_64/bits/atomic.h: Likewise.
8057 2003-04-14 Ulrich Drepper <drepper@redhat.com>
8059 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
8060 POPARGS_1 to emit labels for the mov instructions.
8062 2003-04-14 Jakub Jelinek <jakub@redhat.com>
8064 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
8066 2003-04-14 Roland McGrath <roland@redhat.com>
8068 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
8071 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
8073 2003-04-14 Ulrich Drepper <drepper@redhat.com>
8075 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
8076 position. Reported by jreiser@BitWagon.com.
8078 2003-04-13 Ulrich Drepper <drepper@redhat.com>
8080 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
8081 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
8082 * sysdeps/generic/unwind-dw2.c: Likewise.
8083 * sysdeps/generic/unwind-pe.h: Likewise.
8085 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
8087 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
8088 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
8089 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
8090 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
8091 (mcontext_t): Make it match the 32-bit mips kernel in o32.
8092 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
8093 the mips and mips64 headers.
8094 (struct user): Port to n32/n64.
8096 2003-04-12 Ulrich Drepper <drepper@redhat.com>
8098 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
8101 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
8102 __ASSUME_VSYSCALL is defined don't add restorer.
8103 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8104 __ASSUME_VSYSCALL for 2.5.53.
8106 2003-04-11 Ulrich Drepper <drepper@redhat.com>
8108 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
8109 Remove HAVE_CANCELBUF code. Replace with code using the new
8110 initializers for unwind-based cleanup handling.
8111 * sysdeps/generic/unwind.h: Update from latest gcc version.
8112 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
8113 places to allow unwind data generation.
8114 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
8115 * sysdeps/x86_64/bits/setjmp.h: Likewise.
8116 * sysdeps/sh/bits/setjmp.h: Likewise.
8117 * sysdeps/powerpc/bits/setjmp.h: Likewise.
8118 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
8119 * sysdeps/alpha/bits/setjmp.h: Likewise.
8121 2003-04-11 Roland McGrath <roland@redhat.com>
8123 * csu/tst-empty.c: New file.
8124 * csu/Makefile (tests, tests-static): Add it.
8126 2003-04-11 Jakub Jelinek <jakub@redhat.com>
8128 * string/test-strcmp.c (do_random_tests): Test whether return value
8129 has been promoted to wordsize if the ABI requires caller to do so.
8130 * string/test-strncmp.c (do_random_tests): Likewise.
8131 * string/test-memcmp.c (do_random_tests): Likewise.
8133 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
8136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8137 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
8138 is not defined, but the prctl constants are.
8140 * string/tester.c (test_strcmp): Fix a typo.
8142 2003-04-09 Ulrich Drepper <drepper@redhat.com>
8144 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
8145 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
8147 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
8149 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
8151 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
8153 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
8155 * sysdeps/mips/mips64/memset.S: Likewise.
8156 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
8157 Use t0 instead of t4 as temporary.
8159 2003-04-07 Ulrich Drepper <drepper@redhat.com>
8161 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
8162 feof_unlocked instead of feof.
8163 (add_dir): Ignore trailing whitespace.
8165 2003-04-07 Jakub Jelinek <jakub@redhat.com>
8167 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
8168 sum of SIZE1 and SIZE2 arguments.
8170 2003-04-06 Ulrich Drepper <drepper@redhat.com>
8172 * iconv/iconv_prog.c (process_block): Don't print message about
8173 invalid input if the -c option is used.
8174 (main): Correctly append IGNORE string for -c option.
8176 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8178 * sysdeps/sh/bits/atomic.h: Moved to ...
8179 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
8180 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
8182 (atomic_bit_set, atomic_bit_test_set): Likewise.
8183 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
8185 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
8187 2003-04-06 Roland McGrath <roland@redhat.com>
8189 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
8190 restoration as done for setcontext yesterday.
8192 2003-04-06 Jakub Jelinek <jakub@redhat.com>
8194 * elf/rtld.c: Revert 2003-03-14 change.
8195 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
8196 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
8198 2003-04-05 Ulrich Drepper <drepper@redhat.com>
8200 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
8202 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8203 Always initialize *signgamp before returning an error.
8205 2003-04-05 Roland McGrath <roland@redhat.com>
8207 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
8208 below the stack pointer even if switching to the same context we are
8211 2003-04-05 Ulrich Drepper <drepper@redhat.com>
8213 * catgets/gencat.c (read_input_file): Make sure that \n is not
8214 alone on the line before testing for continuation.
8216 * math/test-tgmath.c (compile_test): Initialize c.
8218 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
8220 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
8221 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
8222 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
8224 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
8225 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
8226 structure on n32 as well.
8227 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
8228 data types on n32 and n64.
8230 2003-04-05 Ulrich Drepper <drepper@redhat.com>
8232 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
8235 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
8236 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
8237 instead of __register_atfork.
8239 2003-04-05 Jakub Jelinek <jakub@redhat.com>
8241 * stdio-common/reg-printf.c (__register_printf_function): Calloc
8242 instead of malloc __printf_arginfo_table and __printf_function_table.
8243 Reported by John Reiser <jreiser@BitWagon.com>.
8245 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
8247 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
8248 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
8250 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
8253 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
8255 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
8258 2003-04-03 Roland McGrath <roland@redhat.com>
8260 * configure.in: Fix up use of compilation flags to match the build:
8261 For .s files, $ASFLAGS;
8262 For .S files, $CPPFLAGS $ASFLAGS;
8263 For .c files, $CFLAGS $CPPFLAGS;
8264 when linking, add $LDFLAGS.
8265 * configure: Regenerated.
8267 2003-04-03 Jakub Jelinek <jakub@redhat.com>
8269 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
8270 for atomic_compare_and_exchange_bool_acq failure.
8272 2003-04-03 Ulrich Drepper <drepper@redhat.com>
8274 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
8275 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
8276 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
8277 Remove declaration of pthread_atfork.
8279 2003-04-02 Ulrich Drepper <drepper@redhat.com>
8281 * locale/iso-639.def: Add many more languages from the current ISO 639.
8283 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
8284 * sysdeps/generic/semtimedop.c: New file.
8285 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
8286 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
8287 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8288 * sysvipc/Makefile (routines): Add semtimedop.
8289 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
8290 * sysvipc/sys/sem.h: Declare semtimedop.
8292 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
8294 * configure.in: Check for __register_frame_info in both
8296 * configure: Regenerated.
8298 2003-04-01 Roland McGrath <roland@redhat.com>
8300 * scripts/abilist.awk: Allow dots in soname suffix.
8302 * scripts/abilist.awk (emit): Fix bailout condition.
8304 2003-04-01 Jakub Jelinek <jakub@redhat.com>
8306 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
8309 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
8310 register as input to asm.
8312 2003-04-01 Jakub Jelinek <jakub@redhat.com>
8314 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
8316 2003-04-01 Andreas Jaeger <aj@suse.de>
8318 * configure.in: Output as/ld as name if version is too old.
8320 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
8322 * configure.in: Don't require an installed C library in the test
8323 for ".set" assembler support.
8325 2003-03-31 Roland McGrath <roland@redhat.com>
8327 * signal/tst-sigset.c: New file.
8328 * signal/Makefile (tests): Add it.
8330 2003-03-31 Ulrich Drepper <drepper@redhat.com>
8332 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
8333 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
8334 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
8335 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
8336 (__SIGRTMAX): Adjust accordingly.
8337 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
8338 second compatibility symbol set.
8339 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
8341 2003-03-31 Andreas Schwab <schwab@suse.de>
8343 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
8345 (atomic_decrement_and_test): Fix test.
8347 2003-03-31 Jakub Jelinek <jakub@redhat.com>
8349 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
8350 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
8351 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
8352 * sysdeps/sparc/sparc32/atomicity.h: Removed.
8353 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
8354 * sysdeps/sparc/sparc64/atomicity.h: Removed.
8356 2003-03-30 Roland McGrath <roland@redhat.com>
8358 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
8360 * intl/po2test.sed: Anchor substitution regexps to fix last change.
8362 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
8364 * intl/po2test.sed: Unify the transformations for msgid and msgstr
8365 and remove a useless s/// command.
8367 2003-03-27 David Mosberger <davidm@hpl.hp.com>
8369 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
8370 directive into empty .prologue region to ensure that call-chain
8371 is terminated even for the first instruction.
8373 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
8374 to terminate call-chain right from the get-go.
8376 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
8377 stop bit between compare & branch.
8379 2003-03-29 Ulrich Drepper <drepper@redhat.com>
8381 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
8382 point correctly [PR libc/4993].
8384 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
8385 netlink_open calls if netlink is known to not be available.
8387 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
8389 * configure.in: Add mips64* support.
8390 * sysdeps/mips/bits/endian.h: Make it bi-endian.
8391 * sysdeps/mips/mipsel/bits/endian.h: Removed.
8392 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
8393 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
8394 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
8395 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
8396 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
8397 * sysdeps/mips/Implies: Moved wordsize-32 to...
8398 * sysdeps/mips/mips32/Implies: New file.
8399 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
8401 (ret, PSEUDO_END): Moved past END.
8402 (PSEUDO): Moved to...
8403 * sysdeps/unix/mips/mips32/sysdep.h: New file.
8404 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
8405 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
8406 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
8407 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
8408 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
8410 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
8413 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
8415 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
8416 * inet/test-ifaddrs.c: Allow AF_PACKET.
8417 * sysdeps/unix/sysv/linux/kernel-features.h: Add
8418 __ASSUME_NETLINK_SUPPORT.
8420 2003-03-28 Ulrich Drepper <drepper@redhat.com>
8422 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
8424 2003-03-26 H.J. Lu <hjl@gnu.org>
8426 * elf/vismod.h (getvarlocal1): Return const char **.
8427 (getvarinmod1): Likewise.
8428 (getvaritcpt1): Likewise.
8429 (getvarlocal2): Likewise.
8430 (getvarinmod2): Likewise.
8431 (getvaritcpt2): Likewise.
8432 (getvaritcpt3): Likewise.
8433 * elf/vismain.c (do_test): Adjusted.
8434 * elf/vismod1.c (getvarlocal1): Return address.
8435 (getvarinmod1): Likewise.
8436 (getvaritcpt1): Likewise.
8437 * elf/vismod2.c (getvarlocal2): Likewise.
8438 (getvarinmod2): Likewise.
8439 (getvaritcpt2): Likewise.
8440 * elf/vismod3.c (getvaritcpt3): Likewise.
8442 2003-03-28 Roland McGrath <roland@redhat.com>
8444 * elf/vismain.c (do_test): Print both addresses when they don't match.
8446 * scripts/abilist.awk: If given -v filename_regexp and/or -v
8447 libname_regexp when parsing names, then produce output only
8448 for those matching the given regexps. In combine mode, save all
8449 stanzas for a final sorting by stanza header at the end.
8450 Emit a blank line between stanzas.
8452 * scripts/abilist.awk: When given -v combine=1, do parse_names and
8453 emit a single output stream with lib name in stanza header lines.
8455 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
8457 2003-03-27 Roland McGrath <roland@redhat.com>
8459 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
8460 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
8462 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8464 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
8465 Return old value. Make asm output reg constraint earlyclobber.
8467 (__arch_compare_and_exchange_8_acq): ... this.
8468 (__arch_compare_and_exchange_val_16_acq):
8469 Return old value. Make asm output reg constraint earlyclobber.
8471 (__arch_compare_and_exchange_16_acq): ... this.
8472 (__arch_compare_and_exchange_val_32_acq):
8473 Return old value. Make asm output reg constraint earlyclobber.
8475 (__arch_compare_and_exchange_32_acq): ... this.
8476 (__arch_compare_and_exchange_val_64_acq):
8478 (__arch_compare_and_exchange_64_acq): ... this.
8479 (atomic_exchange_and_add): Use local variables and
8480 __arch_compare_and_exchange_val_64_acq.
8481 (atomic_add): Likewise.
8482 (atomic_add_negative, atomic_add_zero): Use local variables.
8484 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
8486 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
8488 2003-03-27 Ulrich Drepper <drepper@redhat.com>
8490 * Makefile: Remove libmd5crypt goal.
8492 2003-03-25 Jakub Jelinek <jakub@redhat.com>
8494 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
8495 special handling of relocations against local symbols.
8497 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
8499 * sysdeps/powerpc/bits/atomic.h
8500 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
8501 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
8502 Define PPC64 specific version.
8503 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
8504 Change (mem) constraint to "b".
8505 [__powerpc64__] (__arch_atomic_exchange_and add_64):
8506 Replace addi with add. Change (value) contraint to "r".
8507 Change (mem) constraint to "b".
8508 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
8509 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
8510 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
8511 (__arch_atomic_decrement_if_positive_32): New macro.
8512 (atomic_decrement_if_positive): Use __arch* macros.
8514 2003-03-27 Jakub Jelinek <jakub@redhat.com>
8516 * sysdeps/ia64/fpu/libm-test-ulps: Update.
8518 2003-03-27 Roland McGrath <roland@redhat.com>
8520 * scripts/rpm2dynsym.sh: New file.
8521 * Makefile (distribute): Add it.
8523 2003-03-27 David Mosberger <davidm@hpl.hp.com>
8525 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
8526 ar.unat before returning. Add missing .mem.offset directives
8527 to ensure file gets assembled without warnings.
8528 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
8530 2003-03-27 Jakub Jelinek <jakub@redhat.com>
8532 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
8533 Return -1 instead of 0 if clock_getres failed.
8535 2003-03-27 Roland McGrath <roland@redhat.com>
8537 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
8538 header lines and write out foo.symlist files for each foo.so.NN listed.
8540 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
8541 This symbol is exported, and we don't want to hide it.
8542 Add libc_hidden_proto instead.
8543 (_IO_file_jumps): Add libc_hidden_proto.
8544 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
8546 * libio/fileops.c (_IO_file_jumps): Likewise.
8547 * libio/stdfiles.c: Don't use INTUSE on them.
8548 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8549 * libio/iofopen.c (__fopen_internal): Likewise.
8550 * libio/freopen.c (freopen): Likewise.
8551 * libio/freopen64.c (freopen64): Likewise.
8552 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8554 * Makerules (check-abi) [$(enable-check-abi) = warn]:
8555 Ignore exit status from diff.
8556 * configure.in (enable_check_abi): Document possible value "warn".
8557 Change default to no for now.
8558 * configure: Regenerated.
8560 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
8561 macro calls and a #include <stub-tag.h> at the end.
8562 * Makerules ($(objpfx)stubs): Tweak sed commands.
8564 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
8565 caller column for *xattr syscalls, since they are in sysdeps/generic.
8567 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
8568 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
8570 2003-03-26 Roland McGrath <roland@redhat.com>
8572 * Makerules (check-abi-config): Use /thread instead of /tls when
8573 use-thread and not just use-tls is set.
8575 * Makerules (update-abi): Put quotes around $(update-abi-config).
8577 * elf/Makefile (check-abi): Depend on check-abi-ld.
8578 (update-abi): Depend on update-abi-ld.
8580 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
8582 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
8583 do not check for errors (unless testing for 32bit variant).
8584 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
8586 2003-03-27 Philip Blundell <philb@gnu.org>
8588 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
8589 unconditional mov. Remove nop.
8591 * sysdeps/unix/sysv/linux/kernel-features.h
8592 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
8593 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
8594 when __ASSUME_VFORK_SYSCALL is defined.
8595 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
8596 __ASSUME_MMAP2_SYSCALL.
8597 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
8598 __ASSUME_REALTIME_SIGNALS.
8600 2003-03-26 Ulrich Drepper <drepper@redhat.com>
8602 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
8603 only if DL_NO_COPY_RELOCS is not defined.
8604 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
8606 2003-03-26 Roland McGrath <roland@redhat.com>
8608 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
8609 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
8610 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
8611 (sysdep_routines): Add stub-syscalls.
8612 ($(objpfx)stub-syscalls.c): New target.
8613 (generated): Add stub-syscalls.c.
8615 * tls.make.c: Also define use-tls according to USE_TLS macro.
8617 2003-03-26 Ulrich Drepper <drepper@redhat.com>
8619 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
8620 no-op padding element.
8621 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8622 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8623 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8624 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8626 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
8628 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
8629 condition check for the return value of getgroups32.
8631 2003-03-26 Jakub Jelinek <jakub@redhat.com>
8633 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
8635 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
8636 PSEUDO_END_NOERRNO): Define.
8637 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
8638 Define to PSEUDO_END.
8640 2003-03-26 Ulrich Drepper <drepper@redhat.com>
8642 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
8644 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
8646 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
8647 * iconvdata/bug-iconv4.c: New file.
8648 * iconvdata/Makefile (tests): Add bug-iconv4.
8650 2003-03-25 H.J. Lu <hjl@gnu.org>
8652 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
8654 (_dl_lookup_versioned_symbol): Likewise.
8656 2003-03-26 Jakub Jelinek <jakub@redhat.com>
8658 * csu/tst-atomic.c (do_test): Add some new
8659 atomic_compare_and_exchange_val_acq, atomic_add_zero,
8660 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
8661 * include/atomic.h (atomic_add_negative, atomic_add_zero):
8662 Prefix local variable so that it doesn't clash with the one
8663 in atomic_exchange_and_add.
8664 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
8666 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
8667 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
8668 value into register.
8669 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
8670 Cast newval to long.
8671 * sysdeps/x86_64/bits/atomic.h
8672 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
8674 (atomic_exchange): Cast newvalue to long if sizeof == 8.
8675 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
8676 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
8677 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
8679 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
8681 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
8682 bit from backtrace addresses.
8684 2003-03-21 Andreas Schwab <schwab@suse.de>
8686 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
8689 2003-03-25 Roland McGrath <roland@redhat.com>
8691 * config.make.in (enable-check-abi): New variable from configure.
8692 * configure.in (enable_check_abi): New substituted variable,
8693 controlled by --{enable,disable}-check-abi (default yes).
8694 * configure: Regenerated.
8695 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
8696 on check-abi dependency.
8698 2003-03-26 Andreas Schwab <schwab@suse.de>
8700 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
8701 * include/atomic.h: Likewise.
8703 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
8705 2003-03-25 Roland McGrath <roland@redhat.com>
8707 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
8708 (__arch_atomic_exchange_64): New macro.
8709 (atomic_exchange): Use them.
8710 (__arch_atomic_exchange_and_add_32): New macro.
8711 (__arch_atomic_exchange_and_add_64): New macro.
8712 (atomic_exchange_and_add): Use them.
8713 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
8715 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
8717 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
8719 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
8721 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
8722 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
8723 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
8724 to decide whether to add padding.
8725 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
8726 to decide whether to add padding.
8727 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
8728 old_kernel_sigaction): Likewise.
8730 2003-03-25 Ulrich Drepper <drepper@redhat.com>
8732 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
8733 atomic_add_zero were supposed to do.
8734 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
8737 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
8738 This matches the new timer implementation.
8739 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
8741 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
8743 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
8744 timer info for what the kernel provides these days.
8745 (struct sigevent): Add _tid field.
8746 Define SIGEV_THREAD_ID.
8747 Remove struct __pthread_attr_s forward declaration.
8748 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
8749 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8750 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8751 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8753 * Versions.def (librt): Add GLIBC_2.3.3.
8755 * abilist/libpthread.abilist: Update for nptl.
8757 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
8759 * inet/netinet/in.h: Add IPPROTO_SCTP.
8761 2003-03-24 Ulrich Drepper <drepper@redhat.com>
8763 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
8765 2003-03-24 Philip Blundell <philb@gnu.org>
8767 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
8768 Remove a1 from clobber list.
8770 2003-03-24 Ulrich Drepper <drepper@redhat.com>
8772 * timezone/antarctica: Update from tzdata2003a.
8773 * timezone/asia: Likewise.
8774 * timezone/australasia: Likewise.
8775 * timezone/europe: Likewise.
8776 * timezone/iso3166.tab: Likewise.
8777 * timezone/northamerica: Likewise.
8778 * timezone/southamerica: Likewise.
8779 * timezone/zone.tab: Likewise.
8781 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
8783 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
8785 2003-03-23 Ulrich Drepper <drepper@redhat.com>
8787 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
8788 unwanted expansion by definining to ret. Patch by Ian Wienand.
8790 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
8791 the parameter description to denote no error checking. Generate
8792 appropriate pseudo asm code.
8793 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
8794 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
8795 getpgrp, and getppid with 'E'.
8796 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
8797 PSEUDO_END_NOERRNO, and ret_NOERRNO.
8798 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
8799 * sysdeps/unix/sysdep.h: Likewise.
8800 * sysdeps/unix/alpha/sysdep.h: Likewise.
8801 * sysdeps/unix/sparc/sysdep.h: Likewise.
8802 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
8803 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
8804 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
8805 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8806 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
8807 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
8808 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8809 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8810 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
8811 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8812 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8814 2003-03-23 Roland McGrath <roland@redhat.com>
8816 * Makeconfig (+includes): Don't use $(last-includes).
8818 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
8820 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
8821 * sysdeps/unix/sysv/linux/configure: Rebuilt.
8823 2003-03-23 Jakub Jelinek <jakub@redhat.com>
8825 * sysdeps/alpha/fpu/libm-test-ulps: Update.
8826 * sysdeps/arm/libm-test-ulps: Update.
8827 * sysdeps/hppa/fpu/libm-test-ulps: Update.
8828 * sysdeps/ia64/fpu/libm-test-ulps: Update.
8829 * sysdeps/mips/fpu/libm-test-ulps: Update.
8830 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8831 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8832 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
8833 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
8834 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
8835 * sysdeps/s390/fpu/libm-test-ulps: Update.
8836 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8838 2003-03-22 Roland McGrath <roland@redhat.com>
8840 * include/atomic.h: Put parens around all macro arguments.
8841 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
8842 (atomic_compare_and_exchange_val_acq): Use it.
8843 (atomic_compare_and_exchange_bool_acq): Likewise.
8844 (atomic_increment_and_test): Invert sense of test.
8845 (atomic_decrement_and_test): Likewise.
8846 * csu/tst-atomic.c: Update those tests to match.
8848 2003-03-22 Jakub Jelinek <jakub@redhat.com>
8850 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
8851 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
8852 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
8853 __oldval variable in the macro, since it might be macro argument.
8854 (atomic_decrement_if_positive): Initialize __memp, remove setting
8855 of non-existent variable.
8856 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
8857 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
8858 using atomic_compare_and_exchange_val_acq.
8859 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
8860 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
8862 (__arch_compare_and_exchange_bool_8_acq): ... this.
8863 (__arch_compare_and_exchange_val_16_acq): Renamed from...
8864 (__arch_compare_and_exchange_bool_16_acq): ... this.
8865 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
8867 (__arch_compare_and_exchange_bool_32_acq): ... this.
8868 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
8870 (__arch_compare_and_exchange_bool_64_acq): ... this.
8871 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
8872 variables types instead of assuming int.
8873 Change prefix of local variables to __arch.
8874 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
8876 (atomic_compare_and_exchange_val_acq,
8877 atomic_compare_and_exchange_bool_acq): Define.
8879 * csu/tst-atomic.c: New test.
8880 * csu/tst-atomic-long.c: New test.
8881 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
8883 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
8885 * sysdeps/s390/Versions: Add trailing newline.
8887 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
8888 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
8890 2003-03-22 Andreas Schwab <schwab@suse.de>
8892 * sysdeps/m68k/fpu/libm-test-ulps: Update.
8894 * sysdeps/m68k/m68020/bits/atomic.h: New file.
8895 * sysdeps/m68k/m68020/atomicity.h: Removed.
8897 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
8899 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
8900 data structures and macros. Protect from multiple inclusion.
8902 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
8905 2003-03-21 Andreas Jaeger <aj@suse.de>
8907 * sysdeps/i386/fpu/libm-test-ulps: Update.
8909 * math/libm-test.inc (tgamma_test): Recompute some constants with
8910 36 digits precision.
8911 (lgamma_test): Likewise.
8912 (ccos_test): Likewise.
8913 (ccosh_test): Likewise.
8914 (clog10_test): Likewise.
8915 (csin_test): Likewise.
8916 (csinh_test): Likewise.
8917 (ctan_test): Likewise.
8918 (ctanh_test): Likewise.
8920 2003-03-19 Jakub Jelinek <jakub@redhat.com>
8922 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
8924 2003-03-21 Roland McGrath <roland@redhat.com>
8926 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
8927 constraint to permit non-constant BIT argument.
8928 (atomic_bit_test_set): Likewise.
8929 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
8930 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
8931 For quadword case, use "i" constraint if __builtin_constant_p and < 32
8932 or "r" constraint otherwise.
8934 * configure.in: Move AC_PROG_CC and other program-finding before all
8936 * configure: Regenerated.
8938 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
8940 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
8941 unaligned copying of 8-15 bytes. From Chris Demetriou
8942 <cgd@broadcom.com>. Fix label names.
8943 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
8944 change as to memcpy.S.
8945 * sysdeps/mips/memcpy.S: Formatting changes.
8946 * sysdeps/mips/memset.S: Likewise.
8948 2003-03-21 Roland McGrath <roland@redhat.com>
8950 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
8952 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
8954 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
8955 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
8957 2003-03-21 Roland McGrath <roland@redhat.com>
8959 * sysdeps/i386/i486/bits/atomic.h
8960 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
8961 version of the macro to avoid compile-time warnings.
8962 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
8963 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
8964 (atomic_increment, atomic_decrement): Likewise.
8966 2003-03-21 Ulrich Drepper <drepper@redhat.com>
8968 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
8969 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8971 2003-03-21 Roland McGrath <roland@redhat.com>
8973 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
8975 2003-03-20 Ulrich Drepper <drepper@redhat.com>
8977 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
8978 atomic_compare_and_exchange_val_rel,
8979 atomic_compare_and_exchange_bool_acq, and
8980 atomic_compare_and_exchange_bool_rel instead of
8981 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
8982 * sysdeps/i386/i486/bits/atomic.h: Define
8983 __arch_compare_and_exchange_val_*_acq instead of
8984 __arch_compare_and_exchange_*_acq.
8985 * sysdeps/x86_64/bits/atomic.h: Likewise.
8986 * sysdeps/ia64/bits/atomic.h: Define
8987 __arch_compare_and_exchange_bool_*_acq instead of
8988 __arch_compare_and_exchange_*_acq.
8989 * sysdeps/powerpc/bits/atomic.h: Likewise.
8990 * sysdeps/s390/bits/atomic.h: Likewise.
8991 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
8992 * malloc/set-freeres.c: Likewise.
8993 * nscd/cache.c: Likewise.
8994 * stdlib/cxa_finalize.c: Likewise.
8995 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
8997 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
8999 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
9000 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
9001 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9003 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
9004 into high and low halves on n64.
9005 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9006 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9007 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9009 2003-03-20 Ulrich Drepper <drepper@redhat.com>
9011 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
9012 correct atomic_compare_and_exchange_acq semantics.
9014 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
9016 * sysdeps/mips/ieee754.h: Remove excess #endif.
9018 2003-03-20 Roland McGrath <roland@redhat.com>
9020 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
9021 variable. Remove superfluous memory clobber.
9023 * include/atomic.h: Syntax braino fix.
9025 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
9026 in decimal. Don't bail if niced at start. Just check that nice call
9027 bumps the total at all.
9029 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
9031 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
9032 including pc, gp, sp and fp, as long long.
9033 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
9034 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
9035 Add gp argument, and set gp in the jmpbuf to it.
9036 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
9038 2003-03-20 Ulrich Drepper <drepper@redhat.com>
9040 * include/atomic.h: Define atomic_exchange and
9041 atomic_decrement_if_positive if not already defined. Add some
9043 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
9044 * sysdeps/x86_64/bits/atomic.h: Likewise.
9045 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
9046 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
9047 atomic_exchange, atomic_exchange_and_add, and
9048 atomic_decrement_if_positive
9050 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
9052 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
9053 with a single instruction.
9055 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
9057 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
9059 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
9060 Word before comparing with gotsym. Take reloc_addr argument as
9061 void*. Remove the code added for the compiler to drop any
9062 alignment assumptions.
9064 2003-03-19 Ulrich Drepper <drepper@redhat.com>
9066 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
9067 * include/atomic.h: New file.
9068 * sysdeps/i386/i486/bits/atomic.h: New file.
9069 * sysdeps/x86_64/bits/atomic.h: New file.
9070 * sysdeps/s390/bits/atomic.h: New file.
9071 * sysdeps/sh/bits/atomic.h: New file.
9072 * sysdeps/ia64/bits/atomic.h: New file.
9073 * sysdeps/powerpc/bits/atomic.h: New file.
9074 * sysdeps/generic/bits/atomic.h: New file.
9075 * sysdeps/i386/i486/atomicity.h: Removed.
9076 * sysdeps/x86_64/atomicity.h: Removed.
9077 * sysdeps/s390/s390-32/atomicity.h: Removed.
9078 * sysdeps/s390/s390-64/atomicity.h: Removed.
9079 * sysdeps/ia64/atomicity.h: Removed.
9080 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
9081 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
9082 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
9083 use of macros from atomicity.h to new names and semantics.
9084 * gmon_mcount.c: Likewise.
9085 * malloc/set-freeres.c: Likewise.
9086 * nscd/cache.c: Likewise.
9087 * stdlib/cxa_finalize.c: Likewise.
9088 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
9090 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
9092 * sysdeps/mips/ieee754.h: New file, suitable to replace both
9093 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
9094 mips-specific for now.
9096 2003-03-19 Ulrich Drepper <drepper@redhat.com>
9098 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
9099 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
9100 * stdlib/tst-strtod.c: Add test for the bug.
9102 * posix/tst-nice.c (do_test): Remove invalid of return value.
9103 Don't run test if initial level != 0.
9105 2003-03-19 Amos Waterland <apw@us.ibm.com>
9107 * posix/tst-nice.c: New file.
9108 * posix/Makefile (tests): Add tst-nice.
9110 2003-03-18 Roland McGrath <roland@redhat.com>
9112 * abilist: New directory of libfoo.abilist files maintained using
9113 scripts/merge-abilist.awk and "make update-abi" rules.
9114 * Makefile (distribute): Add abilist/*.abilist.
9115 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
9116 Depend on check-abi.
9118 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
9119 * configure: Regenerated.
9121 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
9123 2003-03-18 Ulrich Drepper <drepper@redhat.com>
9125 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
9128 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
9130 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
9132 2003-03-18 Ulrich Drepper <drepper@redhat.com>
9134 * Versions.def: Add GLIBC_2.3.3 for libpthread.
9136 2003-03-17 Ulrich Drepper <drepper@redhat.com>
9138 * sysdeps/generic/libc-start.c [!SHARED &&
9139 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
9141 2003-03-17 Roland McGrath <roland@redhat.com>
9143 * include/ctype.h: Revert last change.
9145 2003-03-17 Ulrich Drepper <drepper@redhat.com>
9147 * argp/tst-argp1.c: Use test-skeleton.c.
9148 * locale/tst-C-locale.c: Likewise.
9150 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
9152 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
9153 * sysdeps/mips/mips64/n64/Implies: New file.
9154 * sysdeps/mips/mips64/n64/Makefile: New file.
9155 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
9156 * sysdeps/mips/mips64/n32/Implies: New file.
9157 * sysdeps/mips/mips64/n32/Makefile: New file.
9158 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
9159 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
9160 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
9161 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
9162 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
9163 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
9164 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
9165 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
9166 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
9167 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
9168 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
9169 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
9170 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
9171 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
9173 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
9174 lib64 for mips64/n64 and lib32 for mips64/n32.
9175 (ldd_rewrite_script): Needed for all mips64 configurations.
9176 * sysdeps/unix/sysv/linux/configure: Rebuilt.
9177 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
9178 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
9180 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
9183 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
9184 asm/unistd.h into asm-unistd.h.
9185 * sysdeps/unix/sysv/linux/mips/configure: Generated.
9186 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
9188 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
9189 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
9192 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
9193 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
9194 long type for registers on n32.
9196 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
9198 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
9199 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
9200 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
9201 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
9202 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
9203 * sysdeps/unix/mips/brk.S: Likewise.
9204 * sysdeps/unix/mips/sysdep.S: Likewise.
9205 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
9206 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
9207 * sysdeps/mips/sys/ucontext.h: Likewise.
9208 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
9209 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
9210 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
9211 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9212 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
9213 * sysdeps/mips/mips64/setjmp.S: Likewise.
9214 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
9215 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
9218 2003-03-16 Ulrich Drepper <drepper@redhat.com>
9220 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
9221 not at function level.
9222 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
9224 2003-03-15 Roland McGrath <roland@redhat.com>
9226 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
9227 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
9228 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
9229 * nis/nis_table.c (__create_ib_request): Likewise.
9231 * posix/fnmatch_loop.c: Add casts for signedness.
9232 * nss/nss_files/files-hosts.c: Likewise.
9233 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
9234 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
9235 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
9237 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
9238 get errors into the log file.
9239 (libc_cv_broken_visibility_attribute): Likewise.
9240 (libc_cv_broken_alias_attribute): Likewise.
9241 (libc_cv_asm_weak_directive): Likewise.
9242 (libc_cv_need_minus_P): Likewise.
9243 (libc_cv_dot_text): Likewise.
9244 (libc_cv_asm_global_directive): Likewise.
9245 (libc_cv_asm_type_prefix): Likewise.
9246 * configure: Regenerated.
9248 * nscd/cache.c (cache_search): Give first arg type `request_type'.
9249 * nscd/nscd.h: Update decl.
9251 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
9252 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9253 * elf/dl-close.c (_dl_close): Likewise.
9254 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
9255 * io/fts.c (fts_build): Likewise.
9256 * elf/cache.c (add_to_cache): Likewise.
9257 * locale/programs/locarchive.c (show_archive_content): Likewise.
9259 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
9261 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
9263 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
9265 2003-03-15 Ulrich Drepper <drepper@redhat.com>
9267 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
9268 code for most parts.
9270 2003-03-15 Roland McGrath <roland@redhat.com>
9272 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
9273 * sysdeps/unix/sysv/linux/system.c: ... here.
9274 (FORK): Don't #define if already #define'd.
9275 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
9276 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
9277 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
9279 * dlfcn/tst-dlinfo.c: New file.
9280 * dlfcn/Makefile (tests): Add tst-dlinfo.
9281 ($(objpfx)tst-dlinfo): New target.
9283 * dlfcn/dlinfo.c: New file.
9284 * dlfcn/Makefile (libdl-routines): Add it.
9285 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
9286 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
9287 [__USE_GNU] (RTLD_DI_*): New enum constants.
9288 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
9289 * elf/dl-load.c (cache_rpath): New inline function.
9290 (_dl_map_object): Use it.
9291 (_dl_rtld_di_serinfo): New function.
9292 * sysdeps/generic/ldsodefs.h: Declare it.
9293 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
9295 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
9296 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
9297 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
9298 (__libc_start_main): Just call the generic one for most of the work.
9300 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
9301 static function by that name instead of BP_SYM (__libc_start_main).
9302 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
9303 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
9304 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
9306 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
9307 Use this macro for extra AT_* cases.
9308 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
9309 New macro, guts from ...
9310 (__aux_init_cache): ... here, function removed.
9311 (DL_PLATFORM_INIT): Don't define this.
9313 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
9314 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
9316 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
9318 2003-03-14 Roland McGrath <roland@redhat.com>
9320 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
9322 2003-03-14 Jakub Jelinek <jakub@redhat.com>
9324 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
9326 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9327 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
9329 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
9331 * sysdeps/mips/fpu/bits/mathdef.h: New.
9332 (__NO_LONG_DOUBLE_MATH): Define for o32.
9334 * sysdeps/mips/sys/asm.h: Formatting changes.
9335 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
9336 (CPADD): Define for all of them.
9337 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
9338 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
9339 NARGSAVE): Define per ABI spec.
9340 (END): Don't redefine.
9341 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
9342 LONG_SRAV): Remove duplicate definitions.
9343 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
9344 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
9345 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
9346 (PTR_LA): Define for all 3 ABIs.
9348 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
9349 (elf_machine_matches_host): Prevent linking of o32 and n32
9351 (elf_machine_dynamic): Document assumption on $gp.
9352 (STRINGXP, STRINGXV, STRINGV_): New macros.
9353 (elf_machine_load_address): Use them to stringize PTR_LA and
9355 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
9356 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
9357 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
9358 (__dl_runtime_resolve): Cast the symtab initializer to the
9360 (RTLD_START): Use it. Adjust it for all 3 ABIs.
9361 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
9362 Handle 64-bit R_MIPS_REL composite relocation and accept
9363 R_MIPS_64 relocations to shift addend size to 64 bits.
9364 Document assumption regarding local GOT entries. Document
9365 backward-compatibility departing from the ABI behavior in
9366 applying relocations that reference section symbols, no longer
9367 used. Support relocations to mis-aligned offsets.
9368 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
9370 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
9372 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
9373 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
9374 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
9375 restore_rt functions. Use them.
9377 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
9378 .set mips2 on new abis.
9380 2003-03-13 Ulrich Drepper <drepper@redhat.com>
9382 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
9383 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
9384 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
9385 * sysdeps/posix/pathconf.c: Likewise.
9386 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
9387 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
9388 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
9390 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
9393 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
9395 * include/gmp.h: Include/gmp-mparam.h.
9396 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
9399 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
9400 ELF_MACHINE_NO_RELA is set.
9401 * elf/rtld.c (dl_main): No prelink support for REL-only.
9403 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
9404 FLAG_MIPS64_LIBN64): Define.
9405 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
9407 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
9408 * sysdeps/mips/memset.S: Likewise.
9409 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
9410 depending on the ABI.
9412 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
9413 Don't .set mips2 on new abi.
9414 (compare_and_swap): Likewise. Support 64-bit longs on n64.
9416 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
9418 2003-03-13 Roland McGrath <roland@redhat.com>
9420 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
9421 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
9423 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
9425 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
9427 * stdlib/fpioconst.c: Likewise.
9428 * stdlib/strtod.c: Likewise.
9430 * sysdeps/mips/add_n.S: Use L macro for local labels.
9431 * sysdeps/mips/addmul_1.S: Likewise.
9432 * sysdeps/mips/lshift.S: Likewise.
9433 * sysdeps/mips/memcpy.S: Likewise.
9434 * sysdeps/mips/memset.S: Likewise.
9435 * sysdeps/mips/mul_1.S: Likewise.
9436 * sysdeps/mips/rshift.S: Likewise.
9437 * sysdeps/mips/sub_n.S: Likewise.
9438 * sysdeps/mips/submul_1.S: Likewise.
9439 * sysdeps/mips/mips64/add_n.S: Likewise.
9440 * sysdeps/mips/mips64/addmul_1.S: Likewise.
9441 * sysdeps/mips/mips64/lshift.S: Likewise.
9442 * sysdeps/mips/mips64/mul_1.S: Likewise.
9443 * sysdeps/mips/mips64/rshift.S: Likewise.
9444 * sysdeps/mips/mips64/sub_n.S: Likewise.
9445 * sysdeps/mips/mips64/submul_1.S: Likewise.
9446 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
9447 conventions. Define END as in sys/asm.h.
9448 * sysdeps/unix/mips/sysdep.S: Likewise.
9449 * sysdeps/unix/mips/wait.S: Likewise.
9450 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
9452 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
9453 Cast shifted values that may be too narrow to mp_limb_t.
9454 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
9456 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
9458 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
9459 (__mpn_extract_long_double): Likewise.
9460 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
9461 (__mpn_construct_long_double): Likewise.
9462 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
9463 (__mpn_extract_long_double): Likewise.
9464 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
9465 (__mpn_construct_long_double): Likewise.
9467 2003-03-13 Roland McGrath <roland@redhat.com>
9469 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
9470 entries in the map file match too.
9472 2003-03-13 Guido Guenther <agx@sigxcpu.org>
9474 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
9475 label .Lthread_start since current binutils don't allow branches
9476 to globally visible symbols.
9478 2003-03-13 Jakub Jelinek <jakub@redhat.com>
9480 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
9481 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
9482 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
9483 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
9484 clobbered by the syscall.
9485 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
9486 ASM_ARGS_6): Change constraints from r to index of corresponding
9488 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
9489 ptid and ctid to match kernel.
9490 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
9492 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
9494 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
9495 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
9496 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
9498 2003-03-11 Roland McGrath <roland@redhat.com>
9500 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9501 Check SYM_MAP rather than SYM as definedness check.
9502 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
9503 Don't handle R_PPC64_REL24 reloc.
9504 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
9506 * sysdeps/powerpc/powerpc64/dl-machine.h
9507 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
9508 block, so we cover all the TPREL16* flavors without 6 ||s.
9509 [USE_TLS] (elf_machine_tprel): New function.
9510 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
9511 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
9512 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
9514 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
9516 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
9517 instead of jalr to invoke subroutine so restoring the $gp register
9520 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
9522 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
9523 to __NR_pread if not defined.
9524 (__NR_pwrite64): Define to __NR_pwrite if not defined.
9526 2003-03-11 Jakub Jelinek <jakub@redhat.com>
9528 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
9529 * sysdeps/unix/sysv/linux/kernel-features.h
9530 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
9533 2003-03-11 Jakub Jelinek <jakub@redhat.com>
9535 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
9536 allocate space even for the trailing '/'.
9537 Reported by John Reiser <jreiser@BitWagon.com>.
9539 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
9540 ASM_CLOBBERS_6): Define.
9541 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
9542 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
9543 to match IA-32 order.
9544 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
9546 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
9548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
9549 Copy extra params for NPTL to registers used in clone syscall.
9551 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9553 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
9554 call names for pread and pwrite.
9556 2003-03-10 Roland McGrath <roland@redhat.com>
9558 * dlfcn/Makefile (libdl-routines): Add dladdr1.
9559 * dlfcn/dladdr1.c: New file.
9560 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
9561 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
9562 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
9563 a const ElfNN_Sym ** to fill in.
9564 * include/dlfcn.h: Update decl. Include <link.h>.
9565 * dlfcn/dladdr.c (dladdr): Update caller.
9566 * malloc/mtrace.c (tr_where): Likewise.
9567 * sysdeps/generic/elf/backtracesyms.c: Likewise.
9568 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9569 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
9570 * Versions.def (libdl): Define GLIBC_2.3.3 set.
9572 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
9574 * sysdeps/unix/Makefile (compile-syscall): New variable.
9575 Pass -g0 to compiler for assembling syscall stubs from stdin.
9577 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
9578 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
9579 Define these to do nothing.
9581 * configure.in: New check for -g on .S files.
9582 * configure: Regenerated.
9583 * config.make.in (have-cpp-asm-debuginfo): New variable.
9584 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
9585 * Makeconfig (ASFLAGS): New variable, if undefined and
9586 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
9587 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
9589 2003-03-09 Roland McGrath <roland@redhat.com>
9591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
9592 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
9594 2003-03-09 Ulrich Drepper <drepper@redhat.com>
9596 * po/fi.po: Update from translation team.
9597 * po/ca.po: Likewise.
9598 * po/da.po: Likewise.
9600 2003-03-08 Ulrich Drepper <drepper@redhat.com>
9602 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
9604 2003-03-07 Ulrich Drepper <drepper@redhat.com>
9606 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
9608 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
9610 2003-03-07 Roland McGrath <roland@redhat.com>
9612 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
9613 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
9615 2003-03-04 Guido Guenther <agx@sigxcpu.org>
9617 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
9618 stubs, we have INLINE_SYSCALL.
9619 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
9622 2003-03-06 Roland McGrath <roland@redhat.com>
9624 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
9625 permanent extent and add a comment about testing its implicit teardown.
9627 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9629 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
9631 2003-03-05 Ulrich Drepper <drepper@redhat.com>
9633 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
9634 reversed __builtin_expect expectation.
9636 2003-03-05 Roland McGrath <roland@redhat.com>
9638 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
9639 * libio/swscanf.c: Likewise.
9640 * libio/swprintf.c: Likewise.
9642 2003-03-04 Roland McGrath <roland@redhat.com>
9644 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
9645 (elf_machine_rela): Always use RESOLVE_MAP, needed for
9646 R_PPC64_JMP_SLOT as well as TLS cases.
9647 (BIT_INSERT): Move parenthesis where it ought to have been.
9648 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
9650 * posix/confstr.c (confstr): Correct STRING_LEN values for
9651 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
9652 break. Reported by Alexandre Julliard <julliard@winehq.com>.
9654 2003-03-04 Jakub Jelinek <jakub@redhat.com>
9656 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
9658 2003-03-04 Ulrich Drepper <drepper@redhat.com>
9660 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
9663 * po/sv.po: Update from translation team.
9665 2003-03-04 Andreas Jaeger <aj@suse.de>
9666 Ulrich Drepper <drepper@redhat.com>
9668 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
9670 2003-03-03 Ulrich Drepper <drepper@redhat.com>
9672 * sysdeps/generic/dl-sysdep.h: Add double include protection.
9674 * po/tr.po: Update from translation team.
9676 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
9677 are holes between the segments. Only call mprotect to set
9678 proection to PROT_NONE if there are some.
9680 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
9683 * include/sched.h (__clone2): Use ... instead of adding all the
9686 2003-03-03 Roland McGrath <roland@redhat.com>
9688 * elf/dl-load.c (struct filebuf): Fix typo in last change.
9690 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
9691 PI_STATIC_AND_HIDDEN.
9693 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
9695 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
9697 * include/sched.h: Update clone2 prototype.
9699 2003-03-03 Andreas Jaeger <aj@suse.de>
9701 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
9702 (llrint): Use it to correct return type.
9705 (llround): Likewise.
9707 2003-03-03 Ulrich Drepper <drepper@redhat.com>
9709 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
9712 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
9713 if ccs parameter isn't valid. Reported by Andreas Schwab.
9715 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
9717 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
9718 for system call numbers > 255.
9719 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
9720 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
9721 INTERNAL_SYSCALL): Likewise.
9722 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
9723 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
9724 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
9725 INTERNAL_SYSCALL): Likewise.
9727 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
9729 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
9730 array if it is the initial dtv.
9732 2003-03-03 Ulrich Drepper <drepper@redhat.com>
9734 * po/es.po: Update from translation team.
9735 * po/fr.po: Likewise.
9736 * po/gl.po: Likewise.
9737 * po/sk.po: Likewise.
9738 * po/sv.po: Likewise.
9740 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
9741 * misc/sys/mman.h: Add prototype for remap_file_pages.
9742 * sysdeps/generic/remap_file_pages.c: New file.
9743 * misc/Makefile (routines): Add remap_file_pages.
9744 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
9746 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
9748 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9749 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
9750 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9751 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9752 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
9753 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
9754 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9755 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9757 2003-03-03 Roland McGrath <roland@redhat.com>
9759 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
9760 * sysdeps/ia64/dl-machine.h: Likewise.
9761 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
9763 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
9765 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
9766 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
9767 * locale/Versions (libc: GLIBC_2.3): Move those to ...
9768 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
9769 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
9770 * Versions.def (libc): Add GLIBC_2.3.3 set.
9772 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
9773 * sysdeps/ia64/dl-machine.h: Update decl.
9775 2003-03-03 Andreas Jaeger <aj@suse.de>
9777 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
9779 2003-03-02 Roland McGrath <roland@redhat.com>
9781 * scripts/abilist.awk: Reject data items with apparent 0 size.
9783 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
9784 after foo.* as if it were a duplicate.
9786 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
9788 2003-03-02 Ulrich Drepper <drepper@redhat.com>
9790 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
9792 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
9793 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
9794 if not already defined. Use SYSDEP_GETRES to allow other files to
9795 provide alternative implementations.
9796 * sysdeps/unix/sysv/linux/clock_getres.c: New file
9797 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
9798 if not already defined. Use SYSDEP_GETTIME to allow other files to
9799 provide alternative implementations.
9800 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
9801 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
9802 if not already defined. Use SYSDEP_GETTIME to allow other files to
9803 provide alternative implementations.
9804 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
9805 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
9806 other files to provide alternative implementations. Rearrange
9807 tests for invalid parameters.
9808 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
9809 * sysdeps/unix/sysv/linux/sysconf.c: New file.
9810 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9811 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
9812 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
9813 _POSIX_MONOTONIC_CLOCK.
9815 2003-03-02 Roland McGrath <roland@redhat.com>
9817 * scripts/merge-abilist.awk: More checks for bogus input.
9818 Uniquify duplicate config names.
9820 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
9822 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
9823 from dl_reloc_overflow, make global.
9824 (__process_machine_rela): Update callers.
9825 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
9826 Add attribute_hidden to __process_machine_rela decl.
9827 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
9829 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
9832 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
9833 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
9834 (elf_machine_rela): Clean up.
9836 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
9838 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
9839 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
9840 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
9841 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
9842 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
9843 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
9846 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
9847 macros out of [SHARED].
9848 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
9850 * elf/elf.h: Define R_PPC_* relocs for TLS support.
9851 Clean up R_PPC64_* macro definition comments.
9853 * configure.in: In "running configure fragment for" message,
9854 omit $srcdir from the name if we prepended it.
9855 * configure: Regenerated.
9857 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
9858 From Jakub Jelinek <jakub@redhat.com>.
9860 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
9861 which duplicated the O_DIRECT defn.
9863 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
9865 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
9868 2003-03-01 Andreas Schwab <schwab@suse.de>
9870 * resolv/Makefile (tests): Don't depend on
9871 $(objpfx)mtrace-tst-leaks when cross compiling.
9873 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
9874 __libc_stack_end through GOT since it is a global symbol.
9876 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
9878 * argp/argp.h: Fix a typo.
9879 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
9881 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
9883 2003-02-27 Pat Rankin <rankin@pactechdata.com>
9885 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
9887 (get_subexp): Likewise.
9889 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
9891 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
9893 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
9895 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
9897 2003-02-27 Roland McGrath <roland@redhat.com>
9899 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
9900 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
9901 repeat it and avoids the test for the common case.
9902 Clean up and fix calculations for TLS relocs.
9904 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
9905 * sysdeps/powerpc/dl-tls.h: ... here.
9906 (TLS_TP_OFFSET): New macro.
9908 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
9910 2003-02-27 Ulrich Drepper <drepper@redhat.com>
9912 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
9913 code generation changes in recent gcc.
9915 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
9917 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
9918 Rename argument to avoid symbol conflict.
9920 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
9921 [__USE_GNU] (O_DIRECT): New macro.
9923 2003-02-24 David Mosberger <davidm@hpl.hp.com>
9925 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
9928 2003-02-27 Ulrich Drepper <drepper@redhat.com>
9930 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
9931 initializer anymore now that res_thread_freeres is more careful.
9933 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
9934 except the PKTINFO. Reset interface in PKTINFO.
9935 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
9937 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
9939 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
9940 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
9942 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
9943 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
9944 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
9945 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
9947 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
9948 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
9950 2003-02-25 Andreas Jaeger <aj@suse.de>
9952 * manual/memory.texi (Malloc Tunable Parameters): Clarify
9953 behaviour of M_MMAP_THRESHOLD.
9955 2003-02-25 Roland McGrath <roland@redhat.com>
9957 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
9958 zero, inidicating _res was not initialized yet.
9960 2003-02-24 Ulrich Drepper <drepper@redhat.com>
9962 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
9965 2003-02-24 Roland McGrath <roland@redhat.com>
9967 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
9969 2003-02-23 Roland McGrath <roland@redhat.com>
9971 * sysdeps/posix/pause.c: New file.
9972 * sysdeps/unix/common/pause.c: File removed.
9974 2003-02-23 Ulrich Drepper <drepper@redhat.com>
9976 * sysdeps/generic/bits/confname.h: Remove #ifs.
9978 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
9979 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
9981 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
9984 2003-02-22 Ulrich Drepper <drepper@redhat.com>
9986 * sysdeps/generic/dl-sysdep.c: Avoid warning.
9988 2003-02-22 Roland McGrath <roland@redhat.com>
9990 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
9991 * resolv/Makefile (tests): Add tst-leaks.
9992 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
9993 (tst-leaks-ENV): New variable.
9994 ($(objpfx)mtrace-tst-leaks): New target.
9995 (tests): Depend on it.
9997 * include/libc-internal.h: Declare __libc_thread_freeres.
9999 * Makerules: Fix last change to use $($(subdir)-version) when set.
10001 * Makerules (install-lib-nosubdir): Depend on installed
10002 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
10003 regardless of the libfoo.so target's dependencies.
10005 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
10006 Use that in $(MAKE) calls.
10008 2003-02-22 Ulrich Drepper <drepper@redhat.com>
10010 * catgets/gencat.c (read_input_file): Collision between
10011 auto-assigned numbers and user-defined nubmers is not fatal.
10013 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
10014 * catgets/Makefile: Add rules to run test2.msg test.
10015 * catgets/test2.msg: New file.
10017 * catgets/gencat.c (main): Return 1 if messages have been printed.
10019 * iconv/iconv_prog.c (main): Unify messages.
10021 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
10022 when shifting retval.
10023 * stdlib/tst-strtod.c (main): Add strtold test case.
10024 Reported by Fred J. Tydeman <tydeman@tybor.com>.
10026 2003-02-21 Roland McGrath <roland@redhat.com>
10028 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
10029 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
10030 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
10032 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
10033 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
10034 (res_thread_freeres): New function, on __libc_thread_subfreeres and
10037 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
10038 * malloc/thread-freeres.c: New file.
10039 * malloc/Makefile (aux): Add it.
10040 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
10041 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
10042 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
10044 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
10045 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
10047 2003-02-21 Roland McGrath <roland@frob.com>
10049 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
10051 * iconvdata/Makefile (tests): Add bug-iconv3 only if
10052 [$(have-thread-library) = yes].
10054 2003-02-21 Ulrich Drepper <drepper@redhat.com>
10056 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
10058 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
10059 not chechk for errors (unless testing for 32bit variant).
10060 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
10061 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
10062 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
10064 2003-02-21 Jakub Jelinek <jakub@redhat.com>
10066 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
10067 Check for signed overflow, not unsigned.
10069 * sysdeps/sparc/sparc64/elf/configure.in: New file.
10070 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
10071 Use -fcall-used-g6, not -fcall-used-g7.
10073 2003-02-21 Andreas Jaeger <aj@suse.de>
10075 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
10078 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
10079 clear whole mxcsr but only exceptions.
10081 2003-02-21 Roland McGrath <roland@redhat.com>
10083 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
10084 for libfoo.so that need $(make-link) rules.
10086 2003-02-21 Roland McGrath <roland@frob.com>
10088 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
10089 to match existing struct stat layout in mig protocols.
10091 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10093 * version.h (VERSION): Bump to 2.3.2.
10095 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
10096 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
10098 * sysdeps/generic/Dist: Add sysdep-cancel.h.
10099 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
10100 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
10101 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
10102 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
10103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
10105 * Makefile (distribute): Add include/stubs-prologue.h,
10106 include/gnu/stubs.h, scripts/merge-abilist.awk, and
10107 scripts/extract-abilist.awk.
10109 2003-02-20 Roland McGrath <roland@redhat.com>
10111 * math/Makefile (distribute): Don't add generated files.
10113 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10115 * math/Makefile: Rearrange variable definitions slightly to get
10116 definition in the right order.
10118 2003-02-20 Roland McGrath <roland@redhat.com>
10120 * Makerules: Clean up conditional around include of tls.make.
10121 * Make-dist: Export generating=t to prevent using that.
10122 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
10124 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10126 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
10127 around in search if port IPPORT_RESERVED/2 has been test.
10129 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
10131 * posix/regcomp.c: Remove inclusions.
10132 * posix/regexec.c: Likewise.
10133 * posix/regex_internal.c: Likewise.
10134 * posix/regex_internal.h: Add inclusions here.
10135 * posix/regex.c: Only include sys/types.h before regex.h. Include
10136 regex_internal.h here. Include regex_internal.c before regcomp.c
10137 and regexec.c (might expose more opportunities to the C compiler).
10139 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
10141 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
10142 [!_LIBC] (__wcrtomb): New definition.
10143 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
10144 HAVE_LOCALE_H as well.
10146 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10148 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
10149 patch to check for system call errors.
10151 2002-07-24 Philip Blundell <philb@gnu.org>
10153 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
10154 on unknown systems.
10156 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10158 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
10159 * sysdeps/unix/sysv/linux/kernel-features.h
10160 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
10161 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
10163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
10164 interprocedure branches.
10165 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
10166 * sysdeps/powerpc/nofpu/Dist: ...here.
10167 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
10168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
10169 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
10170 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
10171 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
10173 2003-02-18 Alan Modra <amodra@bigpond.net.au>
10175 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
10177 2003-02-20 Philip Blundell <philb@gnu.org>
10179 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
10180 missing arguments to INTERNAL_SYSCALL_ERROR_P and
10181 INTERNAL_SYSCALL_ERRNO.
10183 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10185 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
10186 for __ASSUME_32BITUIDS.
10188 2003-02-20 Andreas Schwab <schwab@suse.de>
10190 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
10191 POSIX_MADV_* constants.
10193 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10195 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
10196 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
10197 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
10198 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
10200 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
10202 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
10204 2003-02-16 Roland McGrath <roland@redhat.com>
10206 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
10208 2003-02-19 Ulrich Drepper <drepper@redhat.com>
10210 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
10211 decimal input digits.
10212 * stdlib/tst-strtod.c (main): Add test for strtof bug.
10214 2003-02-18 Ulrich Drepper <drepper@redhat.com>
10216 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
10217 invalid file descriptors and missing access permissions.
10219 2003-02-17 Ulrich Drepper <drepper@redhat.com>
10221 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
10224 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
10225 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
10226 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
10227 and LOGIN_NAME_MAX.
10229 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
10230 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10232 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
10233 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
10234 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
10235 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
10236 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
10238 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10240 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
10241 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
10242 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
10243 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
10244 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
10245 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
10247 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
10248 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
10249 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
10250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
10252 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
10253 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
10254 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
10255 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
10257 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
10259 * nss/getent.c (print_hosts): Print all IP addresses of one host.
10261 2003-02-15 Roland McGrath <roland@frob.com>
10263 * sysdeps/mach/hurd/tls.h: New file.
10264 * sysdeps/mach/hurd/i386/tls.h: New file.
10266 * mach/errsystems.awk: Include <errno.h> in generated output.
10268 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
10269 use target mach-before-compile instead of generated.
10270 (mach-before-compile): New target.
10271 * Makerules: Disable use of tls.make if $(generating) is set.
10272 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
10273 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
10274 mach-shortcuts.h so mach/ generation happens before hurd/.
10276 2003-02-14 Ulrich Drepper <drepper@redhat.com>
10278 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
10279 of demorm correctly if low word is zero.
10280 Reported by Fred J. Tydeman <tydeman@tybor.com>.
10281 * math/libm-test.inc (nextafter_test): New test, but disabled due
10284 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
10285 counter and only call __exit_thread if this is not the last thread.
10287 2003-02-13 Jakub Jelinek <jakub@redhat.com>
10289 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
10290 subtracting map->l_tls_offset.
10292 2003-02-12 Ulrich Drepper <drepper@redhat.com>
10294 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
10295 _CS_GNU_LIBPTHREAD_VERSION.
10296 * posix/conststr.c: Handle these new values.
10297 * posix/getconf.c: Likewise.
10299 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
10300 masking of version index.
10301 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
10303 2003-02-11 Ulrich Drepper <drepper@redhat.com>
10305 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
10306 correctly. Reported by Thorsten Kukuk.
10308 2003-02-10 Ulrich Drepper <drepper@redhat.com>
10310 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
10311 _BSD_SOURCE to compiler.
10312 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
10313 Patches by Alan Modra.
10315 2003-02-08 Ulrich Drepper <drepper@redhat.com>
10317 * io/ftwtest.c: Get current working directory before and after the
10318 nftw call and make sure they match.
10320 2003-02-08 Jim Meyering <jim@meyering.net>
10322 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
10323 the current directory, not just when DIR contains a slash.
10324 Reported by Manoj Srivastava.
10326 2003-02-07 Jim Meyering <jim@meyering.net>
10328 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
10329 Include autoconf-recommended block of dirent/NAMELEN-related
10330 definitions and includes. Use NAMELEN throughout, rather than
10332 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
10333 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
10334 (stpcpy): Declare, if necessary.
10335 (mempcpy): Define, if necessary.
10336 [!_LIBC] (__stpcpy, __mempcpy): Define.
10337 [!_LIBC] (LXSTAT, XSTAT): Define.
10338 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
10339 (find_object): Don't use c99-style struct initializer.
10340 Tweak wording in a couple comments.
10342 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10344 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
10346 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
10347 after the trapa instruction.
10348 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
10350 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
10351 (NEED_SYSCALL_INST_PAD): Define.
10352 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
10353 avoid to use definition for the kernel.
10354 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
10355 Save and restore the frame pointer.
10356 (SYSCALL_INST_PAD): Define.
10357 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
10358 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
10359 after trapa instruction.
10360 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
10361 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
10363 2003-02-07 Jakub Jelinek <jakub@redhat.com>
10365 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
10366 so that it can have aliases.
10367 * inet/herrno.c (h_errno): Put it into .bss not .data section.
10369 2003-02-07 Ulrich Drepper <drepper@redhat.com>
10371 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
10372 (profile_fixup): Likewise.
10373 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
10375 2002-11-24 Robert Love <rml@tech9.net>
10377 * posix/sched.h: Second parameter of sched_setaffinity and
10378 sched_getaffinity is `unsigned int', not `unsigned long'.
10379 * sysdeps/generic/sched_setaffinity.c: Likewise.
10380 * sysdeps/generic/sched_getaffinity.c: Likewise.
10382 2003-02-05 Ulrich Drepper <drepper@redhat.com>
10384 * debug/catchsegv.sh: Fix typo in error messsage.
10385 Reported by John Levon <levon@movementarian.org>.
10387 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
10388 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
10389 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
10390 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
10392 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10393 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10395 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
10396 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
10398 2003-02-05 Jim Meyering <jim@meyering.net>
10400 Fix a heap-corrupting bug.
10401 * io/ftw.c: Include <limits.h>.
10402 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
10403 (process_entry): Allocate enough space to hold the resulting
10404 file name. Don't presume that 2*dirbufsize is enough.
10405 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
10406 it is guaranteed to be defined.
10408 2003-02-04 Ulrich Drepper <drepper@redhat.com>
10410 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
10411 * iconvdata/bug-iconv3.c: New file.
10413 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
10415 * sysdeps/unix/sysv/linux/s390/system.c: New file.
10417 2003-02-03 Jakub Jelinek <jakub@redhat.com>
10419 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
10421 * config.h.in (BROKEN_SPARC_WDISP22): Add.
10423 2003-02-03 Ulrich Drepper <drepper@redhat.com>
10425 * sysdeps/i386/i686/memmove.S: New file.
10427 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
10429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
10430 Include kernel-features.h
10431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
10432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
10433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
10434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
10436 2003-02-02 Jakub Jelinek <jakub@redhat.com>
10438 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
10440 2003-01-25 Jim Meyering <jim@meyering.net>
10442 * io/ftw.c (object_compare): Compare inode numbers before device
10443 numbers, since the former are much more likely to differ.
10445 2003-02-01 Ulrich Drepper <drepper@redhat.com>
10447 * time/tzfile.c (__tzfile_compute): Change return value type to
10448 void. Adjust return statements.
10449 * include/time.h (__tzfile_compute): Adjust prototype.
10451 2003-02-01 Jim Meyering <jim@meyering.net>
10453 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
10456 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
10458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
10459 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
10461 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
10463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
10464 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
10465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10466 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
10467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
10468 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
10469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
10470 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
10472 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
10474 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
10475 back to 2.4.19 for powerpc64.
10476 * sysdeps/unix/sysv/linux/kernel-features.h
10477 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
10478 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
10480 2003-02-01 Ulrich Drepper <drepper@redhat.com>
10482 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
10483 platforms with strange alignment requirements on wchar_t.
10485 2003-01-31 Andreas Schwab <schwab@suse.de>
10487 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
10488 aliases, already added by make-syscalls.sh.
10489 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10490 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
10491 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
10492 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10493 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10494 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10495 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10496 * sysdeps/unix/inet/syscalls.list: Likewise.
10497 * sysdeps/unix/syscalls.list: Likewise.
10499 2003-01-31 Andreas Schwab <schwab@suse.de>
10501 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
10504 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10506 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
10507 not l to load tls from stack.
10509 2003-01-30 Roland McGrath <roland@redhat.com>
10511 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
10512 null argument before all else.
10513 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
10515 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10517 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
10518 Move to RESOLVE protected part of the header.
10519 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
10522 2003-01-30 Ulrich Drepper <drepper@redhat.com>
10524 * stdio-common/Makefile (tests): Add bug15.
10525 (bug15-ENV): Define.
10526 * stdio-common/bug15.c: New file.
10528 2002-10-07 Wolfram Gloger <wg@malloc.de>
10530 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
10531 to foreign sbrk()'s if arena is contiguous. Bug report from
10532 Bruno Haible <bruno@clisp.org>.
10534 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10536 * sysdeps/s390/libc-tls.c: Include stdlib.h.
10538 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10540 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
10543 2003-01-30 Ulrich Drepper <drepper@redhat.com>
10545 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
10547 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
10549 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
10551 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10553 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
10554 (allocate_static_tls): ...here. Add __attribute_noinline__.
10555 Don't return on failure.
10556 (_dl_reloc_bad_type): Add __attribute_noinline__.
10557 * elf/do-rel.h (elf_dynamic_do_rel): Add
10558 __attribute__((always_inline)).
10559 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
10560 elf_machine_rel_relative, elf_machine_rela_relative,
10561 elf_machine_lazy_rel): Add prototypes with
10562 __attribute__((always_inline)).
10564 2003-01-29 David Mosberger <davidm@hpl.hp.com>
10566 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
10568 2003-01-29 Roland McGrath <roland@redhat.com>
10570 * configure.in: Barf if configured in $srcdir.
10572 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
10574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
10575 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
10577 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
10579 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
10580 clone parameters to match the order used on ia32.
10581 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
10583 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
10585 * elf/elf.h: Add new s390 relocs.
10586 * elf/tls-macros.h: Add s390 versions.
10587 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
10588 * sysdeps/s390/dl-tls.h: New file.
10589 * sysdeps/s390/libc-tls.c: New file.
10590 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
10591 relocs for class PLT.
10592 (elf_machine_rela): Handle TLS relocs.
10593 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10594 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
10595 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10596 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
10597 CLONE_CHILD_*TID flags.
10598 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
10599 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
10601 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10602 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10603 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
10604 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
10605 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
10607 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
10608 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
10609 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
10611 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
10612 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
10613 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
10614 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
10617 2003-01-28 Ulrich Drepper <drepper@redhat.com>
10619 * sysdeps/unix/common/pause.c (do_pause): New function. Split
10620 from __libc_pause. Implement using sigsuspend.
10621 (__libc_pause): Call do_pause to do the real work.
10623 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
10624 sig_or_mask parameter is is_sig != 0.
10626 2003-01-21 Philip Blundell <philb@gnu.org>
10628 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
10630 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
10632 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
10634 2003-01-27 Ulrich Drepper <drepper@redhat.com>
10636 * stdio-common/bug14.c: Use official name for the locale.
10638 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
10639 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
10640 instead of __libc_cleanup_region_end.
10642 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
10643 as first parameter to __libc_cleanup_region_start.
10645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
10646 (__fe_nomask_env): Use __prctl not prctl.
10647 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
10650 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
10652 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
10654 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
10655 wrap-around in test.
10657 2003-01-26 Andreas Schwab <schwab@suse.de>
10659 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
10660 compatibility symbols. Remove INTDEF for __divdi3.
10661 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
10662 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
10663 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
10665 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
10667 2003-01-24 Jakub Jelinek <jakub@redhat.com>
10669 * elf/tls-macros.h: Add SPARC 32-bit definitions.
10670 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
10671 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
10672 for the first half of the header. Include tls.h.
10673 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
10675 (elf_machine_rela): Handle TLS relocs.
10676 * sysdeps/sparc/dl-tls.h: New file.
10678 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
10681 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
10682 * sysdeps/sparc/sparc32/memchr.S: Likewise.
10683 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
10684 * sysdeps/sparc/sparc32/strcat.S: Likewise.
10685 * sysdeps/sparc/sparc32/strchr.S: Likewise.
10686 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
10687 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
10688 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
10689 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10690 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10691 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
10692 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
10693 * sysdeps/sparc/sparc64/strcat.S: Likewise.
10694 * sysdeps/sparc/sparc64/strchr.S: Likewise.
10695 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
10696 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
10697 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
10698 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
10699 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10700 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10702 2003-01-24 Andreas Schwab <schwab@suse.de>
10704 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
10705 elements, and process them backwards.
10706 * elf/Makefile ($(objpfx)tst-array4): New target.
10707 ($(objpfx)tst-array4.out): Likewise.
10708 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
10709 * elf/tst-array4.c: New file.
10710 * elf/tst-array4.exp: Likewise.
10712 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
10714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
10716 2003-01-27 Guido Guenther <agx@sigxcpu.org>
10718 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
10719 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
10720 cancellation handling and handle both __NR_pread64 and __NR_pread.
10721 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10722 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
10723 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
10724 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10725 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
10726 case, use register names consistently.
10728 2003-01-27 Wolfram Gloger <wg@malloc.de>
10730 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
10731 pointer, not of the computed chunk. Bug report from Carlos
10732 O'Donell <carlos@baldric.uwo.ca>.
10734 2003-01-25 Andreas Schwab <schwab@suse.de>
10736 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
10737 addressing to save GOT entries.
10739 2003-01-21 Jakub Jelinek <jakub@redhat.com>
10741 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
10742 inline_syscall1, inline_syscall2, inline_syscall3,
10743 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
10744 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
10745 __attribute__((unused)) to ChEcK.
10747 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10749 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
10750 Fix inline assembler constraints.
10751 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
10754 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
10757 2003-01-20 Segher Boessenkool <segher@koffie.nl>
10759 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
10760 compute the cosine, not the sine, even if x > 0.8.
10762 2003-01-19 Ulrich Drepper <drepper@redhat.com>
10764 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
10765 _nss_nis_setspent. Work around the different prototypes.
10766 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
10767 internal_nis_endrpcent.
10768 (internal_nis_endrpcent): Change return type to void. Change callers.
10769 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
10770 _nss_nis_setpwent. Work around the different prototypes.
10771 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
10772 of the function to...
10773 (internal_nis_endprotoent): ... here. New function.
10774 (internal_nis_setprotoent): Use internal_nis_endprotoent.
10775 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
10776 _nss_nis_setnetent. Work around the different prototypes.
10777 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
10778 of the function to...
10779 (internal_nis_endnetgrent): ... here. New function.
10780 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
10782 2003-01-19 Jim Meyering <jim@meyering.net>
10784 * time/strftime.c: (widen): Merge nearly-identical definitions.
10785 (nl_get_alt_digit) [! defined my_strftime]: Define.
10786 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
10787 _nl_get_alt_digit and _nl_get_walt_digit.
10789 2003-01-19 Ulrich Drepper <drepper@redhat.com>
10791 * time/strftime.c (my_strftime): Handle very large width
10792 specifications for numeric values correctly. Improve checks for
10794 * time/Makefile (tests): Add tst-strftime.
10795 * time/tst-strftime.c: New file.
10797 2003-01-18 Ulrich Drepper <drepper@redhat.com>
10799 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
10800 _nss_nis_sethostent. Work around the different prototypes.
10801 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
10802 _nss_nis_setgrent. Work around the different prototypes.
10803 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
10804 function. Split out from _nss_nis_endetherent.
10805 (internal_nis_setetherent): Use internal_nis_endetherent instead of
10806 duplicating the code.
10807 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
10808 of _nss_nis_setaliasent.
10809 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
10810 internal_nis_endservent code, don't duplicate it.
10812 * inet/rexec.c (rexec_af): Protect socket operations with
10813 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
10814 * inet/rcmd.c (rcmd_af): Likewise.
10816 2003-01-17 Roland McGrath <roland@redhat.com>
10818 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
10819 Add test of value 0.80190127184058835.
10821 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
10823 2003-01-17 Richard Henderson <rth@redhat.com>
10825 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
10826 relocs for class PLT.
10827 * sysdeps/alpha/libc-tls.c: New file.
10828 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
10829 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
10831 2003-01-17 Jakub Jelinek <jakub@redhat.com>
10833 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
10834 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
10835 on _dl_static_lock.
10837 2003-01-17 Andreas Jaeger <aj@suse.de>
10839 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
10841 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
10843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
10844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
10845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
10846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
10847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
10848 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
10849 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
10852 2003-01-16 Ulrich Drepper <drepper@redhat.com>
10854 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
10855 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
10858 * sysdeps/generic/sysconf.c: Unconditionally implement
10859 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
10860 * sysdeps/posix/sysconf.c: Likewise.
10862 2003-01-16 Jakub Jelinek <jakub@redhat.com>
10864 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
10865 set *err to the returned error, not to REG_ESPACE unconditionally.
10866 (build_word_op): Likewise.
10867 * posix/Makefile (tests): Add bug-regex16.
10868 * posix/bug-regex16.c: New test.
10870 2003-01-16 Jakub Jelinek <jakub@redhat.com>
10872 * elf/dl-load.c (_dl_map_object_from_fd): Use
10873 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
10874 been already initialized.
10876 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
10878 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
10880 2003-01-16 Jakub Jelinek <jakub@redhat.com>
10882 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
10883 allocated too. Reported by Al Viro <aviro@redhat.com>.
10885 2003-01-16 Roland McGrath <roland@redhat.com>
10887 Tweak merged .abilist file format to merge duplicate symbols in
10888 different sets into multi-version stanzas with new "| SET regexp..."
10889 header continuation lines.
10890 * scripts/merge-abilist.awk: Rewritten for new format.
10891 * scripts/extract-abilist.awk: Likewise.
10893 2003-01-15 Ulrich Drepper <drepper@redhat.com>
10895 * nscd/connections.c (nscd_run): Remove bogus return which isn't
10896 necessary with gcc 3.2+.
10897 (nscd_init): Don't use error() to print message, use dbg_log.
10899 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
10900 expected size into state.
10901 (UNPACK_BYTES): Do the reverse.
10902 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
10903 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
10904 Reported by Al Viro <aviro@redhat.com>.
10906 * stdio-common/Makefile (tests): Add bug14.
10907 * stdio-common/bug14.c: New file.
10909 * stdio-common/vfscanf.c: When recognizing multibyte characters in
10910 string reset the byte counter after mbrtowc reported it is not a
10911 partial character. Reported by Al Viro <aviro@redhat.com>.
10913 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
10915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
10916 sysdep-cancel.h, not sysdep.h.
10918 2003-01-15 Ulrich Drepper <drepper@redhat.com>
10920 * nscd/connections.c (nscd_run): Protect accept call with
10921 TEMP_FAILURE_RETRY.
10923 2003-01-15 Andreas Schwab <schwab@suse.de>
10925 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
10926 (common-generated): Add s-proto-bp.d.
10927 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
10929 * sysdeps/unix/s-proto-bp.S: New file.
10930 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
10931 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
10932 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
10934 2003-01-15 Roland McGrath <roland@redhat.com>
10936 * Makerules: Use -include for tls.make, suppresses warning.
10937 Move gen-as-const-headers rules up so before-compile is set in time.
10938 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
10940 2003-01-15 Ulrich Drepper <drepper@redhat.com>
10942 * nscd/nscd.c (main): Make code to close all file descriptors
10943 faster and more robust.
10945 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
10946 request with one writev call. Protect all read calls with
10947 TEMP_FAILURE_RETRY.
10948 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10949 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10951 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
10952 Protect writev calls with TEMP_FAILURE_RETRY.
10953 * nscd/grpcache.c: Likewise.
10954 * nscd/pwdcache.c: Likewise.
10956 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
10957 IPv6 address in debug output.
10959 2003-01-14 Roland McGrath <roland@redhat.com>
10961 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
10962 $(objpfx) directories, and get rid of vpath directives. The previous
10963 arrangement resulted in files being written to the source directories
10964 when run in a clean build. Find all .abilist files in $(..)abilist/.
10965 (update-abi-%): Likewise.
10966 (generated): Don't add .symlist files, they'll be intermediates.
10968 * sysdeps/generic/init-first.c: Add a comment.
10970 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
10972 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
10973 #includes and expressions.
10975 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
10976 config list when it already contains cpu-.*-os.* without / part.
10978 * Makerules (sed-remove-dotdot): New variable.
10979 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
10980 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
10981 (check-abi-config): New variable, append /tls or /notls to the tuple.
10982 (check-abi-%): Use that for -v config value.
10983 Find .abilist files in abilist/libfoo.abilist, not in subdir.
10984 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
10986 2003-01-14 Ulrich Drepper <drepper@redhat.com>
10988 * manual/install.texi: Correct description of header preparation for
10989 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
10991 2003-01-14 Guido Guenther <agx@sigxcpu.org>
10993 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
10994 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
10995 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
10997 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
10999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11000 (INTERNAL_SYSCALL): Make use of ERR parameter.
11001 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11002 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
11003 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
11004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
11006 2003-01-14 Ulrich Drepper <drepper@redhat.com>
11008 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
11010 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
11012 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
11013 Fix entry for bit 31.
11015 * iconvdata/Makefile: Add rules to build IBM866NAV.
11016 * iconvdata/ibm866nav.c: New file.
11017 * iconvdata/tst-tables.sh: Add IBM866NAV.
11018 * iconvdata/gconv-modules: Add entries for IBM866NAV.
11020 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11022 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
11023 to test void* parameters.
11025 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
11026 source pointer before dereferencing.
11027 (__STRING_SMALLL_GET32): Likewise.
11028 (__memset_gc): Add missing parenthesis around macro arguments.
11029 Patch by Denis Zaitsev <zzz@cd-club.ru>.
11031 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
11032 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
11034 2003-01-14 Jakub Jelinek <jakub@redhat.com>
11036 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
11039 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
11041 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
11042 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
11044 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
11046 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
11048 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
11050 (PSEUDO): ... to here.
11051 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
11053 (PSEUDO): ... to here.
11055 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11057 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
11058 dirent64 instead of struct dirent for dirent. Call readdir64
11059 instead of readdir.
11061 * locale/programs/locfile.c (siblings_uncached): Use struct
11062 dirent64 instead of struct dirent for other_dentry. Call
11063 readdir64 instead of readdir.
11065 * elf/ldconfig.c (direntry): Change type to struct dirent64.
11066 (search_dir): Use readdir64 instead of readdir.
11067 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
11069 2003-01-12 Roland McGrath <roland@redhat.com>
11071 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
11072 not strtol. The former is usable in ld.so, the latter not.
11074 * include/fcntl.h: Declare __libc_creat.
11076 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
11077 libhurduser-link.so-no-z-defs): New variables.
11079 * malloc/malloc.c: Revert last change.
11080 * malloc/malloc.h (_int_*): Move these decls to ...
11081 * include/malloc.h: ... here. Add attribute_hidden.
11082 (_int_valloc): Declare it too.
11084 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11086 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
11087 search for removed searchlist. Reported by Roland McGrath.
11089 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
11090 given as start file.
11092 * io/ftw.c (ftw_startup): Use correct name in check for symlink
11093 without existing target. Patch by Jim Meyering.
11095 * Makerules (build-shlib-helper): Don't use -z defs linker option
11096 if no-z-defs is defined either.
11098 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
11100 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
11103 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
11105 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
11106 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11108 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11110 * io/ftwtest-sh: Add test case for relative path with /. at the end.
11112 2003-01-12 Jim Meyering <jim@meyering.net>
11114 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
11115 use the basename if we've already chdir'd into its parent directory.
11117 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11119 * io/ftw.c (process_entry): Use relative path when using chdir()
11120 to change directory after call to ftw_dir.
11121 * io/ftwtest-sh: Add test for relative path argument to nftw()
11122 with FTW_CHDIR option.
11124 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11126 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
11127 Define for powerpc.
11128 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
11130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11131 (INTERNAL_SYSCALL): Make use of ERR parameter.
11132 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11133 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
11134 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
11135 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
11137 2003-01-09 Richard Henderson <rth@redhat.com>
11139 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
11140 DTPREL64 and TPREL64 without loadbase applied.
11142 2003-01-09 Richard Henderson <rth@redhat.com>
11144 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
11147 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
11148 * sysdeps/unix/alpha/sysdep.h: ... here.
11149 (PSEUDO_LOADGP): Remove.
11150 (PSEUDO_PROLOGUE): Load GP in non-pic case.
11151 (SYSCALL_ERROR_LABEL): New.
11152 (PSEUDO): Use it in error branch.
11153 (PSEUDO_END): Add $syscall_error label.
11155 2003-01-12 Andreas Jaeger <aj@suse.de>
11157 * math/bits/mathcalls.h: Round is a const function.
11159 2003-01-11 Jim Meyering <jim@meyering.net>
11161 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
11162 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
11163 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
11164 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
11165 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
11166 [!_LIBC] (internal_function, dirent64, MAX): Define.
11167 (__set_errno): Define if not already defined.
11168 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
11169 the basename, not the entire file name.
11170 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
11171 the basename, not the entire file name.
11173 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11175 * string/tester.c (test_strcpy): Disable last added strcpy until
11178 2003-01-11 Philip Blundell <philb@gnu.org>
11180 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
11182 2003-01-11 Andreas Schwab <schwab@suse.de>
11184 * Makerules: Add vpath for %.dynsym and %.so so that the
11185 implicit rule chaining for check-abi works.
11187 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11189 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
11192 2003-01-11 Jakub Jelinek <jakub@redhat.com>
11194 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
11195 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
11197 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
11198 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
11199 Ensure libc.so in DT_NEEDED.
11200 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
11201 CHECK_STATIC_TLS before l_tls_offset use.
11202 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
11204 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11205 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
11206 Allocate TLS_PRE_TCB_SIZE bytes below result.
11207 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
11208 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
11209 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
11210 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
11211 bytes below result and add tcb_offset to memsz.
11212 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
11213 * sysdeps/ia64/dl-machine.h: Include tls.h.
11214 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
11216 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
11217 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
11218 * sysdeps/ia64/libc-tls.c: New file.
11220 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
11222 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
11223 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
11224 Fix type. Move definition out of #if.
11225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
11226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
11227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
11228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
11229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
11230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
11232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
11233 ftruncate64, pread64, pwrite64, truncate64 entries.
11234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11235 (INLINE_SYSCALL): New version that supports function call like
11236 syscalls. Add __builtin_expect.
11237 (LOADARGS_n): Add argument size safety checks.
11238 (INTERNAL_SYSCALL): New Macro.
11239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
11240 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
11241 redefinition of elf_fpreg_t and elf_fpregset_t.
11243 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11245 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
11246 simplify test for unloading. If loader of a DSO is unloaded do not
11247 use its scope anymore. Fall back to own scope and adjust opencounts.
11248 Fix several comments.
11249 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
11250 the l_searchlist, not only for l_initfini.
11252 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
11253 dependencies if objects cannot be removed. Remove object with the
11254 definition as not unloadable if necessary.
11256 * elf/reldep6.c: Create relocation dependency before closing the first
11259 2003-01-10 Guido Günther <agx@sigxcpu.org>
11261 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
11262 * sysdeps/unix/mips/brk.S: Likewise.
11263 * sysdeps/unix/mips/pipe.S: Likewise.
11265 2003-01-10 Andreas Schwab <schwab@suse.de>
11267 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
11269 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
11270 are known to have the vfork syscall.
11272 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
11274 * sysdeps/unix/sysv/linux/kernel-features.h
11275 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
11276 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
11277 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
11279 2003-01-09 Jakub Jelinek <jakub@redhat.com>
11281 * elf/Makefile: Add rules to build and run reldep9 test.
11282 * elf/reldep9.c: New file.
11283 * elf/reldep9mod1.c: New file.
11284 * elf/reldep9mod2.c: New file.
11285 * elf/reldep9mod3.c: New file.
11287 2003-01-09 Jakub Jelinek <jakub@redhat.com>
11289 * elf/Makefile: Add rules to build and run nodelete2 test.
11290 * elf/nodelete2.c: New file.
11291 * elf/nodel2mod1.c: New file.
11292 * elf/nodel2mod2.c: New file.
11293 * elf/nodel2mod3.c: New file.
11295 2003-01-09 Jakub Jelinek <jakub@redhat.com>
11297 * posix/test-vfork.c (noop): Add __attribute_noinline__.
11298 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
11299 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
11301 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
11302 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
11303 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
11304 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
11305 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
11307 2003-01-09 Andreas Schwab <schwab@suse.de>
11309 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
11311 2003-01-08 Ulrich Drepper <drepper@redhat.com>
11313 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
11314 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
11316 (INTERNAL_SYSCALL_DECL): Define.
11318 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11320 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
11321 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
11323 (INTERNAL_SYSCALL_DECL): Define.
11324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11325 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11326 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
11327 (INLINE_SYSCALL): Adjust.
11328 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
11329 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
11330 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
11331 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11332 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
11333 add err argument to INTERNAL_SYSCALL* macros.
11334 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
11335 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
11336 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
11337 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
11339 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
11340 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
11341 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
11343 2003-01-07 Ulrich Drepper <drepper@redhat.com>
11345 Unify symbols in user namespace exported by libc.so and libc.a.
11346 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
11347 argp_fmtstream_free, and argp_fmtstream_printf.
11348 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
11349 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
11350 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
11351 argp_fmtstream_point.
11352 * gmon/gmon.c: Don't define write_profiling.
11353 * libio/genops.c: Don't define _cleanup.
11355 * intl/explodename.c (_nl_find_language.c): Mark as static.
11356 * intl/loadinfo.h: Remove _nl_find_language prototype.
11358 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
11359 * libio/libioP.h: Remove declaration.
11361 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
11362 * libio/libioP.h: Remove declaration.
11364 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
11365 * sysdeps/generic/framestate.c: Define STATIC before including
11368 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
11370 2003-01-06 Philip Blundell <philb@gnu.org>
11372 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
11373 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
11375 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
11377 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
11378 (SYSCALL_ERROR): New.
11379 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
11381 (INTERNAL_SYSCALL): Define.
11382 (INLINE_SYSCALL): Use it.
11383 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
11384 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
11385 SYSCALL_ERROR in place of __syscall_error.
11387 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11389 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
11390 __bswap_32, __bswap_64): Put x into temporary variable
11392 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
11393 (inline) functions.
11394 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
11395 __bswap_32, __bswap_64): Put x into temporary variable
11397 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
11398 (inline) functions.
11399 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
11402 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11404 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
11407 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11409 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
11410 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
11412 2003-01-07 Ulrich Drepper <drepper@redhat.com>
11414 * math/libm-test.inc (significand_test): New function.
11417 2003-01-06 Roland McGrath <roland@redhat.com>
11419 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
11421 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
11422 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
11423 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
11425 * string/tester.c (test_strcpy): Add test with `void *' arguments.
11427 2003-01-06 Ulrich Drepper <drepper@redhat.com>
11429 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
11430 return significand and not the exponent.
11431 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11433 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
11434 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
11436 * malloc/malloc.c: Mark all _int_* functions as static.
11438 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11440 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
11441 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
11443 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
11445 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11447 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
11448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
11450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
11451 ftruncate64, truncate64, pread64 and pwrite64 entries.
11452 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11453 (INLINE_SYSCALL): Add __builtin_expect.
11454 (LOADARGS_n): Add argument size safety checks.
11455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
11456 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
11457 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
11458 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
11459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
11460 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
11462 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11464 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
11465 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
11466 (LIBC_CANCEL_HANDLED): Add.
11468 * sysdeps/unix/sysv/linux/alpha/sysdep.h
11469 (inline_syscall_r0_constraint): Rename to...
11470 (inline_syscall_r0_out_constraint): ... this. Add =.
11471 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
11473 2003-01-06 Andreas Schwab <schwab@suse.de>
11475 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
11476 sure this is always inlined.
11477 (elf_machine_rela): Likewise.
11479 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
11481 2003-01-04 Roland McGrath <roland@redhat.com>
11483 * Makeconfig (+mkdep): Add -MP flag.
11484 Suggested by Art Haas <ahaas@airmail.net>.
11486 2003-01-05 Andreas Schwab <schwab@suse.de>
11488 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
11490 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11492 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
11493 SYSCALL_ERROR_HANDLER.
11494 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
11495 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
11496 Add support for cancellation handling.
11497 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
11498 SYSCALL_ERROR_HANDLER.
11499 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
11500 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
11501 Add support for cancellation handling.
11502 (SYSCALL_ERROR_HANDLER): Define PIC variants.
11504 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
11507 __syscall_pread64 and __syscall_pwrite64 cancelable.
11508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11509 (INTERNAL_SYSCALL): New macro.
11510 (LOADARGS_0, LOADARGS_1): Fix.
11512 2003-01-05 Ulrich Drepper <drepper@redhat.com>
11514 * Makerules (build-shlip-helper): Unless told otherwise, add
11515 -Wl,-z,defs to linker command line.
11516 * rt/Makefile (librt.so): Link with ld.so.
11517 * dlfcn/Makefile (libdl.so): Likewise.
11519 2003-01-05 Jakub Jelinek <jakub@redhat.com>
11521 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
11522 cancellation handling.
11523 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
11524 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
11526 2003-01-04 Ulrich Drepper <drepper@redhat.com>
11528 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
11529 order of parameters passed to kill.
11531 2003-01-04 Andreas Schwab <schwab@suse.de>
11533 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
11535 2003-01-03 Paul Eggert <eggert@twinsun.com>
11537 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
11538 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
11539 when compiling Bison 1.875's `bitset bset = obstack_alloc
11540 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
11542 2003-01-04 Ulrich Drepper <drepper@redhat.com>
11544 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
11546 Correct reference counter in case SIGQUIT handler installation failed.
11548 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11550 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
11551 Define using _Pragma(weak ...).
11553 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
11555 * resolv/res_libc.c: Provide declaration for __res_init_weak and
11556 reorder declarations.
11558 2003-01-03 Art Haas <ahaas@airmail.net>
11560 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
11561 initializer syntax to C99.
11562 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
11563 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
11564 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
11565 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
11566 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
11567 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
11568 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
11569 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
11570 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
11571 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
11572 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
11573 * localedata/tests-mbwc/dat_mblen.c: Likewise.
11574 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
11575 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
11576 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
11577 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
11578 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
11579 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
11580 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
11581 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
11582 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
11583 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
11584 * localedata/tests-mbwc/dat_towlower.c: Likewise.
11585 * localedata/tests-mbwc/dat_towupper.c: Likewise.
11586 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
11587 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
11588 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
11589 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
11590 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
11591 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
11592 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
11593 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
11594 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
11595 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
11596 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
11597 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
11598 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
11599 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
11600 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
11601 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
11602 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
11603 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
11604 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
11605 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
11606 * localedata/tests-mbwc/dat_wctob.c: Likewise.
11607 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
11608 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
11609 * localedata/tests-mbwc/dat_wctype.c: Likewise.
11610 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
11612 2003-01-03 Richard Henderson <rth@redhat.com>
11614 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
11615 (inline_syscall_r0_constraint): New.
11616 (inline_syscall[0-6]): Use them.
11618 2003-01-03 Jakub Jelinek <jakub@redhat.com>
11620 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
11621 Add rtld_hidden_proto.
11622 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
11623 (_dl_allocate_tls): Likewise. Remove INTDEF.
11625 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11627 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
11628 Morita <toshiyasu.morita@hsa.hitachi.com>.
11629 * sysdeps/sh/memcpy.S: Likewise.
11631 2003-01-02 Ulrich Drepper <drepper@redhat.com>
11633 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
11634 any, but unify the test.
11636 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11638 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
11639 sigaction): Protect weak_alias and libc_hidden_weak with
11640 #ifndef LIBC_SIGACTION.
11641 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
11642 sigaction): Likewise.
11643 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
11644 sigaction): Likewise.
11645 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
11646 sigaction): Likewise.
11647 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
11648 sigaction): Likewise.
11649 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
11650 sigaction): Likewise.
11651 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
11652 sigaction): Likewise.
11653 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
11654 sigaction): Likewise. Remove SIGCANCEL handling here.
11655 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
11658 2003-01-02 Art Haas <ahaas@airmail.net>
11660 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
11662 2003-01-02 Ulrich Drepper <drepper@redhat.com>
11664 * posix/getconf.c: Update copyright year.
11665 * nss/getent.c: Likewise.
11666 * nscd/nscd_nischeck.c: Likewise.
11667 * iconv/iconvconfig.c: Likewise.
11668 * iconv/iconv_prog.c: Likewise.
11669 * elf/ldconfig.c: Likewise.
11670 * catgets/gencat.c: Likewise.
11671 * csu/version.c: Likewise.
11672 * elf/ldd.bash.in: Likewise.
11673 * elf/sprof.c (print_version): Likewise.
11674 * locale/programs/locale.c: Likewise.
11675 * locale/programs/localedef.c: Likewise.
11676 * nscd/nscd.c (print_version): Likewise.
11677 * debug/xtrace.sh: Likewise.
11678 * malloc/memusage.sh: Likewise.
11679 * malloc/mtrace.pl: Likewise.
11681 2003-01-01 Jakub Jelinek <jakub@redhat.com>
11683 * io/sys/stat.h: Include time.h with __need_timespec even if
11684 __USE_MISC is defined but __USE_XOPEN is not.
11686 2003-01-01 Andreas Jaeger <aj@suse.de>
11688 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
11689 type to avoid strict aliasing problem.
11690 (_nss_dns_gethostbyname2_r): Likewise.
11691 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
11692 (_nss_dns_getnetbyname_r): Likewise.
11693 * resolv/gethnamaddr.c (_gethtent): Likewise.
11694 (gethostbyname2): Likewise.
11696 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11698 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
11699 to avoid using the exported symbols. Define aliases with the
11700 original names separately.
11702 * include/time.h: Add libc_hidden_proto for __strftime_l.
11703 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
11704 * time/strftime.c: Always use libc_hidden_def if _LIBC.
11706 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
11707 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
11709 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
11712 * csu/Makefile (routines): Add dso_handle.
11713 * csu/dso_handle.c: New file.
11715 2002-12-31 Roland McGrath <roland@redhat.com>
11717 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
11718 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
11719 (S-CPPFLAGS): Add -DASSEMBLER here instead.
11720 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
11722 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11724 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
11727 2002-12-31 Andreas Jaeger <aj@suse.de>
11729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
11731 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11732 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
11733 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
11735 * sysdeps/unix/sysv/linux/kernel_stat.h
11736 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
11738 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
11739 __unused[1-3] since they're needed by some platforms. Handle
11740 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
11742 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
11743 for structs stat and stat64.
11744 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11745 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11746 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11747 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11749 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
11751 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
11752 nsec resolution changes.
11753 (xstat64_conv): Likewise.
11754 (xstat32_conv): Likewise.
11756 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
11757 struct kernel_stat.
11759 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
11760 structs stat and stat64.
11762 * time/time.h (__timespec_defined): Define for __USE_MISC.
11764 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11766 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
11767 and __libc_current_sigrtmax.
11769 2002-12-31 Jakub Jelinek <jakub@redhat.com>
11771 * include/errno.h (__errno_location): Add prototype.
11772 Use libc_hidden_proto unconditionally.
11773 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
11775 * include/resolv.h (__res_state): Likewise.
11777 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
11778 * include/sys/socket.h (accept): Add libc_hidden_proto.
11779 * include/errno.h (__errno_location): Likewise.
11780 * include/netdb.h (__h_errno_location): Likewise.
11781 * include/resolv.h (__res_state): Likewise.
11782 * include/unistd.h (__lseek): Likewise.
11783 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
11784 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
11785 * sysdeps/generic/res-state.c (__res_state): Likewise.
11786 * sysdeps/generic/accept.c (accept): Likewise.
11787 * sysdeps/generic/lseek.c (__lseek): Likewise.
11788 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
11789 __libc_current_sigrtmax): Likewise.
11790 * sysdeps/mach/hurd/accept.c (accept): Likewise.
11791 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
11792 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
11793 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
11794 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
11795 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
11796 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
11797 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
11798 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
11800 (__GI_accept): New alias to accept.
11801 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
11802 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
11803 New alias to llseek.
11804 (__GI_accept): New alias to accept.
11805 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
11807 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
11809 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
11811 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
11812 strong_alias (name, __GI_name).
11813 * sysdeps/arm/bsd-_setjmp.S : Likewise.
11814 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
11815 * sysdeps/i386/bsd-_setjmp.S : Likewise.
11816 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
11817 * sysdeps/mips/bsd-_setjmp.S : Likewise.
11818 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
11819 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
11820 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
11821 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
11822 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
11823 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
11824 * sysdeps/sh/bsd-_setjmp.S : Likewise.
11825 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
11826 * sysdeps/unix/arm/fork.S : Likewise.
11827 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
11828 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
11829 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
11830 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
11831 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
11832 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
11833 * sysdeps/unix/i386/fork.S : Likewise.
11834 * sysdeps/unix/mips/fork.S : Likewise.
11835 * sysdeps/unix/sparc/fork.S : Likewise.
11836 * sysdeps/unix/sparc/vfork.S : Likewise.
11837 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
11838 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
11839 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
11840 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
11841 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
11842 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
11843 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
11844 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
11845 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
11846 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
11847 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
11848 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
11849 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
11850 * sysdeps/unix/fork.S : Likewise.
11851 * sysdeps/vax/bsd-_setjmp.S : Likewise.
11852 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
11854 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
11857 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11859 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
11860 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
11861 * sysdeps/mach/hurd/fork.c: Likewise.
11862 * sysdeps/unix/sysv/aix/fork.c: Likewise.
11863 * sysdeps/unix/fork.S: Add __GI___fork alias.
11864 * sysdeps/unix/arm/fork.S: Likewise.
11865 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
11866 * sysdeps/unix/i386/fork.S: Likewise.
11867 * sysdeps/unix/mips/fork.S: Likewise.
11868 * sysdeps/unix/sparc/fork.S: Likewise.
11869 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
11870 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
11871 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11872 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
11873 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
11874 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
11875 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
11876 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
11877 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
11878 * sysdeps/unix/sparc/vfork.S: Likewise.
11879 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
11880 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
11881 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11882 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
11883 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
11884 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
11885 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
11886 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11888 * include/time.h: Add libc_hidden_proto for __nanosleep.
11889 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
11890 * sysdeps/mach/nanosleep.c: Likewise.
11891 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
11892 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
11894 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
11895 _IO_list_unlock, and _IO_list_resetlock.
11896 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
11897 _IO_list_unlock, and _IO_list_resetlock.
11899 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
11900 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
11901 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
11902 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
11904 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
11905 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
11906 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
11907 __GI___longjmp alias.
11909 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
11910 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
11911 * sysdeps/arm/bsd-_setjmp.S: Likewise.
11912 * sysdeps/generic/bsd-_setjmp.c: Likewise.
11913 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
11914 * sysdeps/i386/bsd-_setjmp.S: Likewise.
11915 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11916 * sysdeps/mips/bsd-_setjmp.S: Likewise.
11917 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
11918 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
11919 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
11920 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
11921 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
11922 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
11923 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
11924 * sysdeps/sh/bsd-_setjmp.S: Likewise.
11925 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
11926 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
11927 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
11928 * sysdeps/vax/bsd-_setjmp.S: Likewise.
11929 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
11931 2002-12-30 Ulrich Drepper <drepper@redhat.com>
11933 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
11935 2002-12-30 Roland McGrath <roland@redhat.com>
11937 * Rules (generated): Target removed.
11938 * mach/Makefile (generated): Define it here instead.
11940 * math/Makefile (generated): Add m_*l and m_*f variants too.
11942 2002-12-30 Ulrich Drepper <drepper@redhat.com>
11944 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
11945 the to-be-deleted objects right away instead of later separately.
11946 The latter fails because the scope data structures of the DSO
11947 might already be gone.
11949 * elf/Makefile: Add rules to build and run reldep8 test.
11950 * elf/reldep8.c: New file.
11951 * elf/reldep8mod1.c: New file.
11952 * elf/reldep8mod2.c: New file.
11953 * elf/reldep8mod3.c: New file.
11954 Contributed by Jakub Jelinek.
11956 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
11958 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
11959 checking of return value ENOSYS from getdents64.
11961 2002-12-28 Andreas Schwab <schwab@suse.de>
11963 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
11964 ($(common-objpfx)s-%.d): Generalized from
11965 $(common-objpfx)s-proto.d rule.
11966 (common-generated): Add s-proto-cancel.d.
11967 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
11968 cancellable syscalls.
11969 * sysdeps/unix/s-proto-cancel.S: New file.
11971 2002-12-29 Roland McGrath <roland@redhat.com>
11973 * resolv/res_libc.c: Move _res defn magic after res_init defn
11974 so _res macro is in effect for that code.
11976 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
11977 pattern for prepending $(..) so it doesn't affect $(foo).
11979 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
11981 2002-12-29 Jakub Jelinek <jakub@redhat.com>
11983 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
11986 2002-12-28 Ulrich Drepper <drepper@redhat.com>
11988 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
11990 2002-12-28 Andreas Jaeger <aj@suse.de>
11992 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
11994 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
11996 2002-12-27 Jakub Jelinek <jakub@redhat.com>
11998 * inet/herrno.c (__h_errno_location): Remove.
11999 * inet/Makefile (routines): Add herrno-loc.
12000 * resolv/res_libc.c (__res_state): Remove.
12001 * resolv/Makefile (routines): Add res-state.
12002 * sysdeps/generic/herrno-loc.c: New file.
12003 * sysdeps/generic/res-state.c: New file.
12005 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12007 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
12008 Only define if USE_DL_SYSINFO is defined.
12010 2002-12-22 Jakub Jelinek <jakub@redhat.com>
12012 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
12013 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
12014 Define. Patch by Richard Henderson and Jes Sorensen.
12015 (PSEUDO): Remove unnecessary ;;.
12016 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
12017 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
12018 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
12019 if not initializing thread pointer.
12020 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
12021 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
12022 make it weak also if NONTLS_INIT_TP.
12023 * sysdeps/unix/common/pause.c: Handle cancellation.
12024 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
12025 (LOADSYSCALL): Remove.
12026 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
12027 (SYSCALL_ERROR_HANDLER): Use it.
12028 (PSEUDO): Don't jump around error handler.
12029 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
12030 jump around error handler.
12031 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
12032 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
12033 to __syscall_error_handler on failure.
12034 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
12035 (LOADSYSCALL): Remove.
12036 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
12037 (SYSCALL_ERROR_HANDLER): Use it.
12038 (PSEUDO): Don't jump around error handler.
12039 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
12040 jump around error handler.
12041 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
12042 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
12043 to __syscall_error_handler on failure.
12045 2002-12-27 Roland McGrath <roland@redhat.com>
12047 * scripts/gen-as-const.awk: New file.
12048 * Makefile (distribute): Add it.
12049 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
12050 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
12052 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
12054 2002-12-27 Andreas Schwab <schwab@suse.de>
12056 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
12058 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12060 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
12063 2002-12-27 Andreas Schwab <schwab@suse.de>
12065 * Makerules ($(common-objpfx)%.make): Filter through
12066 $(sed-remove-objpfx).
12068 2002-12-23 Roland McGrath <roland@redhat.com>
12070 * scripts/abilist.awk: Produce a more compact format, divided into
12071 stanzas for each version set, the set name listed only once.
12072 * scripts/extract-abilist.awk: New file.
12073 * scripts/merge-abilist.awk: New file.
12074 * Makerules (check-abi-%, update-abi-%): New pattern rules.
12075 (update-abi, check-abi): New targets.
12076 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
12078 2002-12-19 Roland McGrath <roland@redhat.com>
12080 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
12082 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
12085 2002-12-21 Andreas Schwab <schwab@suse.de>
12087 * elf/check-textrel.c (handle_file): Swap p_type.
12089 2002-12-21 Andreas Schwab <schwab@suse.de>
12091 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
12092 (INLINE_SYSCALL): Use it.
12093 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
12094 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12096 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
12097 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
12099 2002-12-20 Art Haas <ahaas@airmail.net>
12101 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
12104 2002-12-21 Philip Blundell <philb@gnu.org>
12106 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
12107 top as seventh arg to __libc_start_main.
12108 Reported by paulnash@wildseed.com.
12110 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
12112 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
12113 compatibility cruft when new enough kernel is assumed.
12115 2002-12-20 Jakub Jelinek <jakub@redhat.com>
12117 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
12118 instead of INLINE_SYSCALL.
12120 2002-12-20 Ulrich Drepper <drepper@redhat.com>
12122 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
12125 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
12126 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
12127 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
12128 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
12129 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
12130 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
12131 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12132 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12133 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
12134 Patch by William Lee Irwin <wli@holomorphy.com>.
12136 2002-12-20 Andreas Schwab <schwab@suse.de>
12138 * locale/programs/ld-measurement.c (measurement_output): Fix
12141 2002-12-20 Ulrich Drepper <drepper@redhat.com>
12143 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
12144 Redefine _IO_flockifle and _IO_funlockfile as inlines.
12146 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
12147 builds add "tls" in the search path.
12148 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
12149 (path_hwcap): Recognize "tls".
12151 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12153 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
12154 __waitpid instead of waitpid.
12156 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
12158 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
12159 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
12160 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
12162 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
12163 information for system calls.
12165 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
12168 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
12170 2002-12-19 Roland McGrath <roland@redhat.com>
12172 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
12173 * iconvdata/ibm922.h: Likewise.
12174 * iconvdata/ibm930.h: Likewise.
12175 * iconvdata/ibm932.h: Likewise.
12176 * iconvdata/ibm933.h: Likewise.
12177 * iconvdata/ibm935.h: Likewise.
12178 * iconvdata/ibm937.h: Likewise.
12179 * iconvdata/ibm939.h: Likewise.
12180 * iconvdata/ibm943.h: Likewise.
12181 * iconvdata/isiri-3342.h: Likewise.
12183 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12185 * test-skeleton.c (main): Make sure correct value is seen as
12186 argv[0] after adjustment of argv, and argc.
12188 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
12189 RTLD_CORRECT_DYNAMIC_WEAK is defined.
12191 2002-12-19 Jakub Jelinek <jakub@redhat.com>
12193 * nscd/connections.c (nscd_run): Shut up warning.
12194 * tst-ungetc.c (assert): Undefined before redefining.
12196 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12198 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
12201 2002-12-17 Art Haas <ahaas@airmail.net>
12203 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
12204 * iconvdata/cp775.h: Likewise.
12205 * iconvdata/ibm1046.h: Likewise.
12206 * iconvdata/ibm1124.h: Likewise.
12207 * iconvdata/ibm1129.h: Likewise.
12208 * iconvdata/ibm1132.h: Likewise.
12209 * iconvdata/ibm1133.h: Likewise.
12210 * iconvdata/ibm1160.h: Likewise.
12211 * iconvdata/ibm1161.h: Likewise.
12212 * iconvdata/ibm1162.h: Likewise.
12213 * iconvdata/ibm1163.h: Likewise.
12214 * iconvdata/ibm1164.h: Likewise.
12216 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12218 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
12219 __ASSUME_CLONE_THREAD_FLAGS is defined.
12220 * sysdeps/unix/sysv/linux/kernel-features.h
12221 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
12223 2002-12-18 Ulrich Drepper <drepper@redhat.com>
12225 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
12227 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12229 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
12231 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
12233 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
12235 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
12237 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
12238 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
12239 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
12242 2002-12-18 Jakub Jelinek <jakub@redhat.com>
12244 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
12245 __libc_writev to...
12246 [libc: GLIBC_PRIVATE]: ...here.
12247 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
12248 __libc_msgsnd to...
12249 [libc: GLIBC_PRIVATE]: ...here.
12251 2002-12-18 Ulrich Drepper <drepper@redhat.com>
12253 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
12254 Use it instead of directly int $0x80.
12255 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
12256 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
12257 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
12258 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12259 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
12260 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
12262 2002-12-17 Ulrich Drepper <drepper@redhat.com>
12264 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
12266 * elf/elf.h (AT_SYSINFO): New define.
12267 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
12270 2002-12-17 Jakub Jelinek <jakub@redhat.com>
12272 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
12274 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
12276 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
12278 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
12280 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
12282 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
12284 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
12285 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
12286 available, otherwise __libc_maybe_call.
12287 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
12288 cancellation handling.
12289 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
12291 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
12293 * posix/regcomp.c (free_workarea_compile): Free the new member
12295 (analyze): Initialize ORG_INDICES.
12296 (duplicate_node_closure): Search for a existing node, which is
12297 duplicated from the node ORG_DEST and satisfies the constraint
12298 CONSTRAINT. And use it to avoid inifimite loop.
12299 (search_duplicated_node): New function.
12300 (duplicate_node): Store the index of the original node.
12301 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
12303 * posix/regex_internal.h (re_dfa_t): Add new members.
12305 2002-12-17 Ulrich Drepper <drepper@redhat.com>
12307 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
12309 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12311 * sysdeps/posix/system.c (do_system): Add support for installation
12312 of cancellation handlers.
12313 * sysdeps/unix/sysv/linux/i386/system.c: New file.
12315 * stdlib/Makefile (tests): Add tst-system.
12316 * stdlib/tst-system.c: New file.
12318 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
12319 CENABLE]: Don't lose content of %ebx.
12321 2002-12-17 Jakub Jelinek <jakub@redhat.com>
12323 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
12324 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
12326 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12328 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
12329 fails to return a function pointer don't use it.
12331 2002-12-16 Art Haas <ahaas@airmail.net>
12333 * io/ftw.c: Convert GCC extension initializer syntax to C99.
12334 * iconvdata/iso-ir-165.c: Likewise.
12335 * iconvdata/jis0208.c: Likewise.
12336 * iconvdata/jis0212.c: Likewise.
12338 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12340 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
12341 epoll_ctl, and epoll_wait.
12342 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
12343 epoll_create, epoll_ctl, and epoll_wait.
12344 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
12345 Davide Libenzi <davidel@xmailserver.org>.
12346 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
12347 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
12350 2002-12-16 Art Haas <ahaas@airmail.net>
12352 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
12354 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
12355 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
12356 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
12358 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12360 * stdio-common/Makefile (routines): Remove lockfile. Add
12361 flockfile, ftrylockfile, and funlockfile.
12362 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
12363 * sysdeps/generic/flockfile.c: New file.
12364 * sysdeps/generic/ftrylockfile.c: New file.
12365 * sysdeps/generic/funlockfile.c: New file.
12367 2002-12-16 Jakub Jelinek <jakub@redhat.com>
12369 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
12370 macros instead of doing the calls directly.
12371 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
12372 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
12375 2002-12-16 Jakub Jelinek <jakub@redhat.com>
12377 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
12378 * sysdeps/ieee754/bits/nan.h: Likewise.
12380 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
12381 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
12383 2002-12-16 Roland McGrath <roland@redhat.com>
12385 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
12386 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
12387 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
12389 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
12390 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
12392 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
12393 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
12394 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
12395 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
12396 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
12397 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
12398 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
12399 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
12401 2002-12-13 Paul Eggert <eggert@twinsun.com>
12403 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
12404 is now u_int, not int.
12405 (struct XDR.x_handy): Now u_int, not int.
12406 * sunrpc/xdr_mem.c: Include <limits.h>.
12407 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
12408 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
12409 x_handy is now unsigned, not signed.
12410 Do not decrement x_handy if no change is made.
12411 (xdrmem_setpos): Check for int overflow.
12412 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
12413 (xdr_sizeof): Remove cast that is now unnecessary, now that
12414 x_handy is unsigned.
12416 2002-12-15 Art Haas <ahaas@airmail.net>
12418 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
12419 * iconvdata/gap.awk: Likewise.
12420 * iconvdata/gen-8bit-gap-1.sh: Likewise.
12421 * iconvdata/gen-8bit-gap.sh: Likewise.
12422 * locale/C-address.c: Likewise.
12423 * locale/C-collate.c: Likewise.
12424 * locale/C-ctype.c: Likewise.
12425 * locale/C-identification.c: Likewise.
12426 * locale/C-measurement.c: Likewise.
12427 * locale/C-messages.c: Likewise.
12428 * locale/C-monetary.c: Likewise.
12429 * locale/C-name.c: Likewise.
12430 * locale/C-numeric.c: Likewise.
12431 * locale/C-paper.c: Likewise.
12432 * locale/C-telephone.c: Likewise.
12433 * locale/C-time.c: Likewise.
12434 * nscd/connections.c: Likewise.
12435 * nscd/grpcache.c: Likewise.
12436 * nscd/hstcache.c: Likewise.
12437 * nscd/pwdcache.c: Likewise.
12438 * stdio-common/vfprintf.c: Likewise.
12439 * stdlib/random.c: Likewise.
12440 * sysdeps/generic/siglist.c: Likewise.
12441 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
12442 * sysdeps/ieee754/bits/nan.h: Likewise.
12443 * sysdeps/posix/sprofil.c: Likewise.
12444 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
12445 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
12446 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
12448 2002-12-15 Roland McGrath <roland@redhat.com>
12450 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
12452 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
12453 <tls.h> here, no need for it.
12454 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
12456 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
12457 parameter, not varargs parameter.
12459 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
12460 argument so it's not an unused variable.
12462 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
12463 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
12466 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
12468 2002-12-15 Ulrich Drepper <drepper@redhat.com>
12470 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
12471 original __libc_fcntl code. Just renamed.
12473 2002-12-15 Andreas Schwab <schwab@suse.de>
12475 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
12477 2002-12-14 Olaf Hering <olh@suse.de>
12479 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
12480 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
12482 2002-12-15 Ulrich Drepper <drepper@redhat.com>
12484 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
12486 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
12487 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
12489 * sysdeps/unix/sysv/linux/open64.c: New file.
12491 * sysdeps/generic/pselect.c: Add support for cancellation handling.
12492 * sysdeps/posix/open64.c: Likewise.
12493 * sysdeps/posix/sigpause.c: Likewise.
12494 * sysdeps/posix/sigwait.c: Likewise.
12495 * sysdeps/posix/system.c: Likewise.
12496 * sysdeps/posix/waitid.c: Likewise.
12497 * sysdeps/unix/sysv/linux/accept.S: Likewise.
12498 * sysdeps/unix/sysv/linux/connect.S: Likewise.
12499 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
12500 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12501 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
12502 * sysdeps/unix/sysv/linux/poll.c: Likewise.
12503 * sysdeps/unix/sysv/linux/pread.c: Likewise.
12504 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
12505 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
12506 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12507 * sysdeps/unix/sysv/linux/readv.c: Likewise.
12508 * sysdeps/unix/sysv/linux/recv.S: Likewise.
12509 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
12510 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
12511 * sysdeps/unix/sysv/linux/send.S: Likewise.
12512 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
12513 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
12514 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
12515 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
12516 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
12517 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
12518 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
12519 * sysdeps/unix/sysv/linux/wait.c: Likewise.
12520 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
12521 * sysdeps/unix/sysv/linux/writev.c: Likewise.
12522 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
12523 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
12525 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12527 * sysdeps/generic/sysdep-cancel.h: New file.
12528 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
12529 cancelable syscall.
12530 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
12531 recvmsg, send, sendmsg, sendto): Make cancelable.
12532 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
12533 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
12534 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
12535 sendto, osf_select): Likewise.
12536 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
12537 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
12538 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
12539 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
12541 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
12542 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
12543 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
12544 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
12546 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
12547 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
12548 sendto, select): Likewise.
12549 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
12550 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
12552 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
12553 select, fcntl): Likewise.
12554 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
12555 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
12556 read, readv, select, sigsuspend, write, writev): Likewise.
12558 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12560 * dirent/bug-readdir1.c: Include unistd.h.
12562 2002-12-13 Jakub Jelinek <jakub@redhat.com>
12564 * locale/programs/locale.c: Include locarchive.h.
12565 (ARCHIVE_NAME): Define.
12566 (write_archive_locales): New function.
12567 (write_locales): Use it. Ensure the same locale is not printed
12568 multiple times in verbose mode.
12569 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
12570 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
12572 (struct nameent): New type.
12573 (nameentcmp): New function.
12575 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12577 * posix/regex_internal.c (re_string_context_at): Guard wide char
12578 code with #ifdef RE_ENABLE_I18N.
12580 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
12582 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
12584 2002-12-13 Roland McGrath <roland@redhat.com>
12586 * posix/bug-regex15.c: New file.
12587 * posix/Makefile (tests): Add it.
12589 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
12590 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
12592 2002-12-13 Ulrich Drepper <drepper@redhat.com>
12594 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
12596 * misc/syslog.c (log_cleanup): Don't use parameter in
12597 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
12598 pass NULL instead of a pointer to syslog_lock.
12600 2002-12-12 Ulrich Drepper <drepper@redhat.com>
12602 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
12603 linker map for all iconv modules.
12604 (distribute): Add gconv.map.
12605 * iconvdata/gconv.map: New file.
12607 * elf/Makefile: Also check all iconv modules for text relocations.
12609 * stdlib/Makefile: Remove code to automatically import GMP.
12611 * elf/Makefile (tests): Add rules to build and run check-textrel.
12612 * elf/check-textrel.c: New file.
12614 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
12617 2002-12-11 Jakub Jelinek <jakub@redhat.com>
12619 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
12622 2002-04-30 Bruno Haible <bruno@clisp.org>
12624 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
12625 the encoding if it already has slashes.
12626 Reported by Perry Rapp <prapp@erols.com>.
12628 2002-12-11 Roland McGrath <roland@redhat.com>
12630 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
12631 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
12632 Turn off PIC for compiling this file.
12634 2002-12-11 Ulrich Drepper <drepper@redhat.com>
12636 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
12637 definitions. Not needed.
12638 [_LIBC]: Use definitions from libc-lock.h instead of referencing
12639 pthread routines directly.
12640 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
12642 (arena_get2): Don't look at return value of mutex_lock.
12644 2002-12-11 Roland McGrath <roland@redhat.com>
12646 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
12647 elf-init.o instead of compiling a PIC version.
12649 2002-12-11 Bruno Haible <bruno@clisp.org>
12651 * intl/gettext.h: Renamed to ...
12652 * intl/gmo.h: ... here.
12653 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
12654 * intl/gettextP.h: Update.
12655 * intl/loadmsgcat.c: Update.
12657 * intl/gettextP.h (PARAMS): Make more portable.
12658 (attribute_hidden): Define as empty macro if not already defined.
12659 * intl/hash-string.h (PARAMS): Make more portable.
12660 * intl/loadinfo.h (PARAMS): Likewise.
12661 * intl/plural-exp.h (PARAMS): Likewise.
12662 (attribute_hidden): Move definition near the definition of
12665 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
12666 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
12668 2002-07-13 Bruno Haible <bruno@clisp.org>
12670 * intl/dcigettext.c (freea): New macro.
12671 (FREE_BLOCKS): Free also the registered blocks.
12672 (DCIGETTEXT): Free the 'search' variable.
12673 Reported by Andreas Fischer <a.fischer@asentics.de>.
12675 2002-04-27 Bruno Haible <bruno@clisp.org>
12677 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
12678 * intl/dcigettext.c: Likewise.
12679 * intl/dcgettext.c: Likewise.
12680 * intl/dgettext.c: Likewise.
12681 * intl/gettext.c: Likewise.
12682 * intl/dcngettext.c: Likewise.
12683 * intl/dngettext.c: Likewise.
12684 * intl/ngettext.c: Likewise.
12685 * intl/textdomain.c: Likewise.
12686 * intl/bindtextdom.c: Likewise.
12687 * intl/plural-exp.h: Likewise.
12689 2002-01-02 Bruno Haible <bruno@clisp.org>
12691 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
12693 2001-04-30 Bruno Haible <bruno@clisp.org>
12695 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
12696 default macro definitions. Needed for mingw32.
12698 2002-12-10 Ulrich Drepper <drepper@redhat.com>
12700 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
12701 __builtin_constant_p to macro parameter.
12703 * sysdeps/generic/sigpause.c: Define all functions as weak.
12704 * sysdeps/posix/sigpause.c: Likewise.
12706 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
12709 2002-12-10 Jakub Jelinek <jakub@redhat.com>
12711 * elf/tst-array1.c (preinit_array, init_array, fini_array):
12712 Explicitly align the array to sizeof (void *).
12713 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
12715 * include/libc-symbols.h: Fix a comment typo.
12717 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
12718 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
12720 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
12722 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
12723 (__libc_sigsuspend): Likewise.
12724 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
12725 (__libc_sigsuspend): Likewise.
12726 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
12727 (creat): New weak alias.
12729 2002-12-10 Roland McGrath <roland@redhat.com>
12731 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
12732 contributes a manual chapter.
12733 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
12736 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
12737 and move contents to ...
12738 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
12739 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
12740 it instead of duplicating its contents.
12741 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
12743 2002-12-09 Jakub Jelinek <jakub@redhat.com>
12745 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
12747 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
12749 (EXTRA_LD_ENVVARS): Use it.
12750 (DL_OSVERSION_INIT): Define.
12751 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
12753 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
12755 2002-12-10 Ulrich Drepper <drepper@redhat.com>
12757 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
12759 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
12760 call. It is not allowed to destroy pthread mutexes which are
12761 still in use even though it is safe for our implementations. If
12762 somebody still uses the descriptor it is a bug.
12764 2002-12-09 Richard Henderson <rth@redhat.com>
12766 * csu/abi-note.S: Use .p2align, not .align.
12768 2002-12-09 Ulrich Drepper <drepper@redhat.com>
12770 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
12771 __libc_select aliases.
12773 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
12776 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
12778 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
12780 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
12782 * sysdeps/unix/syscalls.list: Define __libc_select alias.
12784 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
12786 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
12787 __libc___xpg_sigpause aliases.
12789 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
12791 * misc/error.c: Remove use of USE_IN_LIBIO.
12793 2002-12-08 Roland McGrath <roland@redhat.com>
12795 * elf/Makefile (tests): Uncomment tst-array[123].
12796 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
12797 * csu/elf-init.c: New file.
12798 * csu/Makefile (routines, static-only-routines): Add elf-init.
12799 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
12800 and __libc_csu_fini in place of _fini.
12801 * sysdeps/arm/elf/start.S: Likewise.
12802 * sysdeps/cris/elf/start.S: Likewise.
12803 * sysdeps/hppa/elf/start.S: Likewise.
12804 * sysdeps/i386/elf/start.S: Likewise.
12805 * sysdeps/ia64/elf/start.S: Likewise.
12806 * sysdeps/m68k/elf/start.S: Likewise.
12807 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
12808 * sysdeps/mips/elf/start.S: Likewise.
12809 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
12810 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
12811 * sysdeps/s390/s390-32/elf/start.S: Likewise.
12812 * sysdeps/s390/s390-64/elf/start.S: Likewise.
12813 * sysdeps/sh/elf/start.S: Likewise.
12814 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12815 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12816 * sysdeps/x86_64/elf/start.S: Likewise.
12818 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
12819 struct containing function ptr and value, free it.
12820 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
12821 It's not safe to let the new thread use the SIGEV pointer.
12823 2001-10-20 Paul Eggert <eggert@twinsun.com>
12825 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
12826 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
12827 Use strerror_r that is only a macro, even if it is not a function.
12828 (strerror): Check for HAVE_DECL_STRERROR before declaring.
12829 (private_strerror): Use prototypes, not old-style function definition.
12830 (print_errno_message): New function.
12831 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
12832 char*-flavored one.
12833 (error_tail, error, error_at_line): Use it.
12835 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
12837 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
12839 2002-12-08 Ulrich Drepper <drepper@redhat.com>
12841 * scripts/output-format.sed: Fix bug in one of the s expressions
12842 which used / for one too many things.
12844 * include/unistd.h: Declare __libc_close.
12846 2002-12-07 Ulrich Drepper <drepper@redhat.com>
12848 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
12850 2002-12-07 Roland McGrath <roland@redhat.com>
12852 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
12853 from 2002-12-06, but remove unnecessary memset call without removing
12854 necessary copy of initialization image.
12856 * Makerules ($(common-objpfx)format.lds): New target.
12857 (common-generated): Add it.
12858 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
12859 * scripts/output-format.sed: New file.
12860 * Makefile (distribute): Add it.
12862 2002-12-07 Ulrich Drepper <drepper@redhat.com>
12864 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
12865 Reported by Art Haas <ahaas@airmail.net>.
12867 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
12869 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
12871 2002-12-07 Jakub Jelinek <jakub@redhat.com>
12873 * string/test-strncpy.c (do_random_tests): Improve test coverage.
12875 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12877 * test-skeleton.c (timeout_handler): Allow expected signal to be
12880 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
12882 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
12884 2002-12-07 Jakub Jelinek <jakub@redhat.com>
12886 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
12887 (SYSCALL_ERROR_HANDLER): Fix a pasto.
12888 Reported by Jeff Bailey <jbailey@nisa.net>.
12890 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12892 * sysdeps/generic/libc-tls.c: Undo last patch.
12894 * include/wctype.h: Define iswalnum with libc_hidden_proto.
12896 * include/signal.h: Define raise with libc_hidden_proto.
12898 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
12899 __execve instead of snprintf and execve.
12901 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
12904 2002-12-06 Jakub Jelinek <jakub@redhat.com>
12906 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
12907 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
12909 2002-12-06 Ulrich Drepper <drepper@redhat.com>
12911 * misc/syslog.c (log_cleanup): New function.
12912 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
12913 (closelog): Likewise.
12915 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
12916 * elf/dl-iteratephdr.c: Likewise.
12917 * elf/dl-lookup.c: Likewise.
12918 * elf/dl-misc.c: Likewise.
12919 * elf/dl-open.c: Likewise.
12920 * elf/dl-support.c: Likewise.
12921 * elf/rtld.c: Likewise.
12922 * sysdeps/generic/ldsodefs.h: Likewise.
12923 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
12924 * sysdeps/mach/bits/libc-lock.h: Likewise.
12925 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
12927 2002-12-06 Roland McGrath <roland@redhat.com>
12929 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
12931 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
12932 (malloc_starter, memalign_starter, free_starter): Don't define these.
12933 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
12934 Don't declare them either.
12935 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
12936 __pthread_initialize, so no need to set hooks to *_starter.
12937 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
12938 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
12939 (__libc_malloc_pthread_startup): New function.
12940 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
12942 * malloc/hooks.c (memalign_starter): New function.
12943 * malloc/malloc.c: Declare it.
12944 * malloc/arena.c (save_memalign_hook): New variable.
12945 (ptmalloc_init): Set __memalign_hook to memalign_starter.
12947 * elf/dl-minimal.c (free): Clear the memory.
12948 (calloc): Just call malloc, knowing all memory it returns is cleared.
12950 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
12951 malloc and memset; calloc can avoid the zeroing when redundant.
12952 (_dl_tls_setup): Likewise.
12953 * elf/dl-load.c (decompose_rpath): Likewise.
12954 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
12955 call, since memory from sbrk at startup is already zero.
12957 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
12958 error string for failure, null for success. Update callers.
12959 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
12960 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12962 2002-12-05 Jakub Jelinek <jakub@redhat.com>
12964 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
12966 (readahead): Change args to i:iii.
12967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
12968 Change args to i:iii.
12969 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
12972 2002-12-05 Roland McGrath <roland@redhat.com>
12974 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
12975 call all functions rather than none.
12976 Reported by Mark P. Mitchell <mark@codesourcery.com>.
12978 2002-12-04 Roland McGrath <roland@redhat.com>
12980 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
12981 on _nl_current_LC_* variables.
12983 2002-12-05 Ulrich Drepper <drepper@redhat.com>
12985 * dirent/bug-readdir1.c (main): Don't call closedir, just close
12986 the file descriptor. This is testing what the bug report was about.
12988 2002-12-04 Ulrich Drepper <drepper@redhat.com>
12990 * po/be.po: New file.
12992 * argp/Makefile (tests): Add tst-argp1.
12994 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
12995 Change type of _attribute to void*.
12996 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12997 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
12998 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
12999 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13000 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13002 2002-12-04 Roland McGrath <roland@redhat.com>
13004 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
13005 members to the end, so a libpthread compiled with !USE_TLS will still
13006 find other members properly.
13008 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
13009 operand for DEST memory. Fix dummy input operand to use SRC.
13010 Reported by Davin McCall <davmac@ozonline.com.au>.
13012 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
13013 alignment when initializing the DTV entry.
13015 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
13016 when TLS has not been set up, try to set it up if we can.
13017 * elf/tst-tls4.c: Revert last change.
13018 * elf/tst-tls5.c: Likewise.
13019 * elf/tst-tls6.c: Likewise.
13020 * elf/tst-tls7.c: Likewise.
13021 * elf/tst-tls8.c: Likewise.
13022 * elf/tst-tls9.c: Likewise.
13024 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
13025 * sysdeps/generic/ldsodefs.h: Declare it.
13026 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
13027 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
13028 function, broken out of __libc_setup_tls.
13029 (init_static_tls): Likewise.
13030 (__libc_setup_tls): Call them.
13031 (_dl_tls_setup): New function, uses new subroutines.
13033 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
13034 Clear the pointer when returning true.
13035 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
13036 first element of the slotinfo list too.
13038 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
13041 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
13042 (_dl_determine_tlsoffset): Likewise.
13044 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
13045 startup_error_tsd, made global.
13046 (dl_main): Update initialization.
13047 * elf/dl-tsd.c: Likewise.
13048 * sysdeps/generic/ldsodefs.h: Declare it.
13050 2002-12-03 Ulrich Drepper <drepper@redhat.com>
13052 * manual/texinfo.tex: Update from latest upstream version.
13054 2002-12-03 Roland McGrath <roland@redhat.com>
13056 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
13057 area surplus in calculation for sbrk call.
13059 * iconvdata/cp1125.c: New file.
13060 * iconvdata/Makefile (distribute): Add it.
13061 (modules): Add CP1125.
13062 (gen-8bit-gap-modules): Add cp1125.
13063 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
13064 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
13066 2002-12-03 Andreas Jaeger <aj@suse.de>
13068 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13070 2002-12-03 Ulrich Drepper <drepper@redhat.com>
13072 * sysdeps/posix/system.c (do_system): Make signal handler
13073 installation thread safe.
13075 2002-12-02 Roland McGrath <roland@redhat.com>
13077 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
13078 caller from EXTRA to -.
13079 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13080 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
13081 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
13083 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
13085 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
13086 bits of RM are cleared.
13088 2002-12-02 Roland McGrath <roland@redhat.com>
13090 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
13091 TLS setup is required.
13092 * elf/tst-tls5.c: Likewise.
13093 * elf/tst-tls6.c: Likewise.
13094 * elf/tst-tls7.c: Likewise.
13095 * elf/tst-tls8.c: Likewise.
13096 * elf/tst-tls9.c: Likewise.
13098 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
13099 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
13100 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
13101 for being null before calling free_slotinfo.
13102 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
13103 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
13105 2002-11-30 Bruno Haible <bruno@clisp.org>
13107 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
13108 (struct __gconv_step): New field __btowc_fct.
13109 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
13110 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
13112 (__gconv_btwoc_ascii): New declaration.
13113 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
13114 (__gconv_btwoc_ascii): New function.
13115 * iconv/gconv_builtin.h: Add BtowcFct argument to all
13116 BUILTIN_TRANSFORMATION invocations.
13117 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
13118 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
13119 * iconv/gconv_builtin.c (map): New field btowc_fct.
13120 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
13122 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
13123 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
13124 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
13125 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
13126 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
13127 (gconv_init): Initialize __btowc_fct field.
13128 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
13129 * iconv/loop.c: Document ONEBYTE_BODY.
13130 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
13131 Undefine ONEBYTE_BODY at the end.
13132 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
13133 * iconvdata/8bit-gap.c (NONNUL): New macro.
13134 (BODY for FROM_LOOP): Use it.
13135 (ONEBYTE_BODY): New macro.
13136 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
13137 (NONNUL): New macro.
13138 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
13139 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
13140 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
13141 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
13142 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
13143 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
13144 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
13145 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
13146 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
13147 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
13148 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
13149 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
13150 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
13151 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
13152 * iconvdata/ibm932.c: Include <stdbool.h>.
13153 (TRUE, FALSE): Remove macros.
13154 (BODY for FROM_LOOP): Remove unused variable rp1.
13155 (ONEBYTE_BODY): New macro.
13156 (BODY for TO_LOOP): Use bool.
13157 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
13158 * iconvdata/ibm943.c: Include <stdbool.h>.
13159 (TRUE, FALSE): Remove macros.
13160 (BODY for FROM_LOOP): Remove unused variable rp1.
13161 (ONEBYTE_BODY): New macro.
13162 (BODY for TO_LOOP): Use bool.
13163 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
13164 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
13165 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
13166 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
13167 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
13168 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
13169 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
13170 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
13171 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
13172 * iconvdata/gbbig5.c: Tweak comment.
13174 2002-12-02 Ulrich Drepper <drepper@redhat.com>
13176 * po/fi.po: Update from translation team.
13178 2002-12-01 Roland McGrath <roland@redhat.com>
13180 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
13181 testing getdents64 return value.
13183 * scripts/versions.awk: Don't pass -n flag to sort command.
13185 * posix/bug-regex13.c: Include <string.h>.
13187 * sysdeps/generic/libc-start.c (__libc_start_main): Do
13188 DL_SYSDEP_OSCHECK here.
13189 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
13190 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
13192 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
13193 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
13195 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
13196 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
13198 * include/link.h: Comment typo fix.
13200 2002-12-01 Roland McGrath <roland@frob.com>
13202 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
13203 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
13204 _POSIX_MEMORY_PROTECTION): Likewise.
13205 (_POSIX_POLL, _POSIX_SELECT): Removed.
13207 2002-11-28 Ulrich Drepper <drepper@redhat.com>
13209 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
13210 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
13212 2002-11-28 Jakub Jelinek <jakub@redhat.com>
13214 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
13216 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
13219 2002-11-28 Ulrich Drepper <drepper@redhat.com>
13221 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
13222 branch prediction buffers by using unpaired call/ret.
13224 2002-11-27 Ulrich Drepper <drepper@redhat.com>
13226 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
13227 first parameters constraint string.
13228 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
13230 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
13232 * posix/regcomp.c (parse_expression): Set the bit since the back
13233 reference is used in the regular expression.
13234 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
13236 (re_node_set_init_copy): Likewise.
13237 * posix/regex_internal.h (state_array_t): New structure.
13238 (re_sub_match_last_t): Likewise.
13239 (re_sub_match_top_t): Likewise.
13240 (re_match_context_t): Add new members.
13241 (re_dfa_t): Likewise.
13242 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
13243 to check the matching is really correct, and retry if failed.
13244 Move the routin pruning the impossible nodes from here, ...
13245 (prune_impossible_nodes): To this function.
13246 (check_matching): Invoke check_subexp_matching_top, and replace
13247 redundant checking with transit_state_bkref invocation.
13248 (proceed_next_node): Replace strncmp with memcmp. Reported by
13249 Paolo Bonzini <bonzini@gnu.org>.
13250 (update_cur_sifted_state): Remove search_subexp invocation.
13251 (search_subexp): Remove this function.
13252 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
13254 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
13255 Remove unused invocation of match_ctx_add_entry.
13256 (transit_state): Invoke check_subexp_matching_top.
13257 (check_subexp_matching_top): New function.
13258 (transit_state_bkref): Remove unused array.
13259 Merge transit_state_bkref_loop.
13260 (transit_state_bkref_loop): Use get_subexp instead of
13261 sift_states_backward. Use search_cur_bkref_entry for optimization.
13262 Merge this function to transit_state_bkref.
13263 (get_subexp): New function.
13264 (get_subexp_sub): Likewise.
13265 (find_subexp_node): Likewise.
13266 (check_arrival): Likewise.
13267 (check_arrival_expand_ecl): Likewise.
13268 (check_arrival_expand_ecl_sub): Likewise.
13269 (expand_bkref_cache): Likewise.
13270 (match_ctx_init): Initialize new members.
13271 (match_ctx_clean): New function.
13272 (match_ctx_free): Release new members.
13273 (match_ctx_free_subtops): New function.
13274 (match_ctx_add_entry): Fix indent.
13275 (search_cur_bkref_entry): New function.
13276 (match_ctx_add_subtop): Likewise.
13277 (match_ctx_add_sublast): Likewise.
13279 2002-11-25 Ulrich Drepper <drepper@redhat.com>
13281 * iconv/Makefile (tests): Remove tst-iconv4.c
13282 * iconv/tst-iconv4.c: Moved to...
13283 * iconvdata/tst-iconv4.c: ...here. New file.
13284 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
13286 2002-11-25 Roland McGrath <roland@redhat.com>
13288 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
13289 Grok AF_LINK if defined.
13290 From Momchil Velikov <velco@fadata.bg>.
13292 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
13293 brdaddr, or dstaddr, just set those pointers to null and don't fail.
13294 Reported by Momchil Velikov <velco@fadata.bg>.
13296 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
13297 is > sizeof IFR->ifa_addr, advance past the whole longer length.
13298 (__ifreq): Count up NIFS that way too.
13299 Reported by Momchil Velikov <velco@fadata.bg>.
13301 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
13303 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
13304 and <fpu_control.h>.
13306 2002-11-24 Ulrich Drepper <drepper@redhat.com>
13308 * elf/elf.h (EM_ST19): Fix typo.
13310 2002-11-25 Jakub Jelinek <jakub@redhat.com>
13312 * include/errno.h (__set_errno): Define as errno = val
13315 2002-11-24 Roland McGrath <roland@redhat.com>
13317 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
13318 * sysdeps/posix/writev.c: Likewise.
13319 From Momchil Velikov <velco@fadata.bg>.
13321 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
13322 calling *GL(dl_error_catch_tsd) for a thread-local location.
13323 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
13324 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
13325 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
13327 * libio/iofflush.c: Add libc_hidden_def.
13328 * libio/iofwrite.c: Likewise.
13329 * sysdeps/generic/sigtimedwait.c: Likewise.
13330 * sysdeps/generic/sigwaitinfo.c: Likewise.
13331 * sysdeps/posix/sigwait.c: Likewise.
13332 Reported by Momchil Velikov <velco@fadata.bg>.
13334 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
13335 to match <arpa/inet.h> declaration.
13336 * inet/inet_netof.c (inet_netof): Likewise.
13337 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
13338 Reported by Momchil Velikov <velco@fadata.bg>.
13340 * configure.in: Skip AUTOCONF check under --without-cvs.
13341 * configure: Regenerated.
13343 * posix/Makefile (headers): Add bits/pthreadtypes.h.
13344 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
13345 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
13347 2002-11-24 Andreas Schwab <schwab@suse.de>
13349 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
13350 with six arguments.
13352 2002-11-19 Jim Meyering <jim@meyering.net>
13354 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
13356 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
13358 2002-11-23 Roland McGrath <roland@redhat.com>
13360 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
13361 Just produce hex output for datum sizes.
13363 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
13364 Reported by Luca Barbieri <ldb@ldb.ods.org>.
13366 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
13368 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
13369 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
13370 and __unused3 fields.
13371 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
13372 [__WORDSIZE == 32]: Only PPC32 requires __unused1
13373 and __unused2 fields.
13374 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
13375 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
13376 __unused3, and __unused4 fields.
13378 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
13379 obtain lowest address for profiling in __monstartup call.
13381 2002-11-21 Roland McGrath <roland@redhat.com>
13383 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
13384 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
13386 * locale/localeinfo.h (struct locale_data): Revert last change.
13388 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
13389 From Ian Wienand <ianw@gelato.unsw.edu.au>.
13391 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
13392 __NR_pread64 if not defined.
13393 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
13394 From Ian Wienand <ianw@gelato.unsw.edu.au>.
13396 2002-11-21 Roland McGrath <roland@frob.com>
13398 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
13399 __libc_multiple_libcs here. Call __setfpucw.
13401 2002-11-21 Ulrich Drepper <drepper@redhat.com>
13403 * elf/Makefile (tests): Don't run test-arrayX tests for now.
13405 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
13406 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
13407 CLONE_CHILD_*TID flags.
13409 2002-11-20 Andreas Jaeger <aj@suse.de>
13411 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
13412 We pass struct ucontext on x86-64.
13414 (GET_FRAME): Adjust.
13415 (GET_STACK): Adjust.
13417 2002-11-20 Roland McGrath <roland@redhat.com>
13419 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
13420 conditionalize [! DO_VERSIONING] #error.
13422 * scripts/abilist.awk: Grok function descriptor symbols.
13424 * intl/tst-gettext.c (main): Check return values from setlocale.
13425 Add necessary unsetenv's to make LANG=existing-locale check work.
13427 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
13428 so aborted prior runs don't confuse things.
13430 * locale/localeinfo.h (struct locale_data: union locale_data_value):
13431 Use uintptr_t instead of unsigned int for `word' member.
13432 (_NL_CURRENT_WORD): Cast to uint32_t.
13434 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
13437 2002-11-20 Ulrich Drepper <drepper@redhat.com>
13439 * elf/tls-macros.h: Add IA-64 definitions.
13440 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
13442 * iconv/Makefile (tests): Add tst-iconv4.
13443 * iconv/tst-iconv4.c: New file.
13445 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
13446 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
13447 __GCONV_INCOMPLETE_INPUT.
13448 (ucs4le_internal_loop): Likewise.
13449 (ucs4le_internal_loop_unaligned): Likewise.
13450 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
13451 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
13452 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
13454 * iconv/loop.c (LOOPFCT): First test for empty input then for full
13457 * inet/getnameinfo.c: Use extend_alloca where appropriate.
13458 * sysdeps/posix/getaddrinfo.c: Likewise.
13460 * include/alloca.h (extend_alloca): New define. Based on stack
13461 direction it'll try to append to the previouls allocated buffer.
13463 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
13465 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
13466 use the same service for AF_INET and AF_INET6.
13468 2002-11-19 Ulrich Drepper <drepper@redhat.com>
13470 * intl/localealias.c (read_alias_file): Use only about 400 bytes
13471 of stack space instead of 16k.
13473 2002-11-18 Wolfram Gloger <wg@malloc.de>
13476 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
13477 nothing if not initialized. Bug report from Marcus Brinkmann
13478 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
13480 2002-11-19 Roland McGrath <roland@redhat.com>
13482 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
13485 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
13486 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
13487 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
13488 * configure: Regenerated.
13490 2002-11-19 Ulrich Drepper <drepper@redhat.com>
13492 * include/dlfcn.h: __libc_dlopen is now a macro calling
13493 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
13494 (__libc_dlopen_mode): New prototype.
13495 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
13496 new parameter. Store new parameter in mode field of structure passed
13498 (struct do_dlopen_args): Add new field mode.
13499 (do_dlopen): Pass mode from parameter structure to _dl_open.
13501 2002-11-11 Randolf Chung <tausq@debian.org>
13503 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
13504 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
13505 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
13507 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
13509 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
13510 Set -mdisable-fpregs for this file.
13512 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
13514 * sysdeps/unix/sysv/linux/configure.in:
13515 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
13516 from gcc-3.0 era for backwards compatibility.
13517 * sysdeps/unix/sysv/linux/configure: Regenerate.
13519 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
13520 Define mcontext_t as a sigcontext.
13522 2002-11-18 Roland McGrath <roland@redhat.com>
13524 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
13525 Free memory in `last_result' if it was used.
13527 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
13528 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
13529 Do the parsing inline instead of copying strings and calling
13530 inet_network, and properly skip all alias names not matching the form.
13532 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
13534 2002-11-17 Ulrich Drepper <drepper@redhat.com>
13536 * manual/pattern.texi (Wordexp Example): Fix sample code.
13538 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
13539 childs stack which will be loaded into the %esi register.
13541 2002-11-14 Paul Eggert <eggert@twinsun.com>
13543 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
13544 overflow when skipping the question part and when unpacking aliases.
13546 2002-11-15 Roland McGrath <roland@redhat.com>
13548 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
13549 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
13550 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
13552 2002-11-15 Jakub Jelinek <jakub@redhat.com>
13554 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
13555 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
13557 2002-11-15 Roland McGrath <roland@redhat.com>
13559 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
13560 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
13561 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
13562 (+make-include-of-dep): New canned sequence.
13564 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
13565 From Dmitry V. Levin <ldv@altlinux.org>.
13567 2002-11-14 Roland McGrath <roland@redhat.com>
13569 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
13570 * inet/herrno.c (__libc_h_errno): Likewise.
13571 * resolv/res_libc.c (__libc_res): Likewise.
13572 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
13573 (__res_state) [! USE___THREAD]: Don't define as weak.
13574 * csu/Versions: Revert last change.
13575 * resolv/Versions: Revert last change.
13577 * Makerules ($(common-objpfx)%.make): New pattern rule.
13578 * tls.make.c: New file.
13579 * Makefile (distribute): Add it.
13581 * sysdeps/generic/errno.c [! USE___THREAD]
13582 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
13583 with compat_symbol so they are not link-time visible.
13584 [! USE___THREAD] (__libc_errno): New alias for errno.
13585 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
13586 Add __libc_errno here.
13587 * inet/herrno.c [USE___THREAD]: Use this conditional
13588 in place of [USE_TLS && HAVE___THREAD].
13589 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
13590 (h_errno, _h_errno): Declare these with compat_symbol so they are not
13592 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
13593 * resolv/res_libc.c [! USE___THREAD]
13594 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
13595 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
13596 (__libc_res): Define as alias for _res.
13597 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
13598 Add __libc_h_errno and __libc_res here.
13600 2002-11-14 Jakub Jelinek <jakub@redhat.com>
13602 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
13603 * resolv/Versions (h_errno, _res): Likewise.
13605 2002-11-14 Roland McGrath <roland@redhat.com>
13607 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
13608 (%.symlist): Likewise.
13610 2002-11-13 Roland McGrath <roland@redhat.com>
13612 * scripts/abilist.awk: New file.
13613 * Makefile (distribute): Add it.
13614 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
13615 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
13616 [$(subdir) = elf] (tests): Depend on libc.symlist.
13617 (generated, common-generated): Add those files.
13619 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
13620 * configure: Regenerated.
13621 * config.make.in (OBJDUMP): New variable, substituted by configure.
13623 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
13624 (mallochook, reallochook): Set them up.
13625 (checkhdr): Check HDR->magic2 value.
13626 (freehook): Reset HDR->magic2.
13627 (memalignhook): New static function.
13628 (old_memalign_hook): New static variable.
13629 (mcheck, reallochook): Set __memalign_hook to memalignhook.
13631 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
13634 2002-11-13 Andreas Jaeger <aj@suse.de>
13636 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
13638 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13640 2002-11-11 Paul Eggert <eggert@twinsun.com>
13642 * manual/crypt.texi (Cryptographic Functions): Mention that
13643 the MD5 one-way algorithm is compatible with BSD's.
13645 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
13647 * posix/regex_internal.c (re_string_skip_chars): Also return the last
13649 (re_string_reconstruct): Calculate the context by itself when the
13650 offset points out of the valid range.
13651 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
13652 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
13653 (IS_WIDE_WORD_CHAR): New macro.
13654 (IS_WIDE_NEWLINE): New macro.
13656 2002-11-12 Andreas Jaeger <aj@suse.de>
13658 * sysdeps/x86_64/strchr.S: Don't use one register for two
13659 purposes, this fixes a bug noticed by test-strchr.c.
13661 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
13664 2002-11-12 Roland McGrath <roland@redhat.com>
13666 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
13667 (_G_IO_NO_BACKWARD_COMPAT): Define it.
13669 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
13670 instead of <pt-machine.h>.
13671 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
13673 From Ian Wienand <ianw@gelato.unsw.edu.au>.
13675 2002-11-10 Roland McGrath <roland@redhat.com>
13677 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
13678 Call fputs instead of fwprintf (simpler to follow in debugger).
13680 * crypt/md5-crypt.c: Doc fix.
13682 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
13683 the beginning of generated target commands.
13685 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
13686 dependencies for these in case implicit rule search skipped the
13687 nonexistent source directory.
13688 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
13689 files with $(object-suffixes) as targets too.
13690 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
13691 and a target for it using $(make-target-directory).
13693 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
13695 2002-11-10 Roland McGrath <roland@frob.com>
13697 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
13698 * sysdeps/generic/bits/pthreadtypes.h: ... here.
13700 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
13701 l_start == 0 and l_len == 1 as we do l_len == 0.
13703 2002-11-10 Ulrich Drepper <drepper@redhat.com>
13705 * po/da.po: Update from translation team.
13707 2002-11-10 Roland McGrath <roland@redhat.com>
13709 * config.make.in (includedir): New variable, substituted by configure.
13710 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
13711 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
13713 2002-11-10 Andreas Jaeger <aj@suse.de>
13715 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
13716 REG_OLDMASK and REG_CR2 to synch with kernel header.
13719 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
13721 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
13722 * nss/getnssent_r.c (__nss_getent_r): Likewise.
13723 (__nss_setent): Likewise.
13724 (__nss_getent_r): Likewise.
13725 * inet/getnetgrent_r.c (innetgr): Likewise.
13726 (__internal_setnetgrent_reuse): Likewise.
13727 (internal_getnetgrent_r): Likewise.
13728 * inet/ether_hton.c (ether_hostton): Likewise.
13729 * inet/ether_ntoh.c (ether_ntohost): Likewise.
13730 * sunrpc/netname.c (netname2user): Likewise.
13731 * sunrpc/publickey.c (getpublickey): Likewise.
13732 (getsecretkey): Likewise.
13734 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
13736 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
13737 error in range calculation.
13739 2002-10-09 Jakub Jelinek <jakub@redhat.com>
13741 * string/test-strspn.c (do_test): Ensure zero termination.
13742 * string/test-strpbrk.c (do_test): Likewise.
13743 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
13744 * string/test-strncpy.c (stupid_strncpy): Likewise.
13745 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
13747 2002-10-08 Roland McGrath <roland@redhat.com>
13749 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
13750 nonzero characters.
13752 2002-09-22 H.J. Lu <hjl@gnu.org>
13754 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
13755 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
13756 only if __NR_mmap2 is defined.
13758 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
13759 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
13760 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
13761 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
13763 2002-11-08 Jakub Jelinek <jakub@redhat.com>
13765 * posix/bug-regex13.c (tests): Add new test.
13767 * string/test-strchr.c (stupid_strchr): New function.
13768 (do_random_tests): Make sure the string is zero terminated.
13769 * string/test-strpbrk.c (stupid_strpbrk): New function.
13770 (do_random_tests): Make sure the string is zero terminated.
13771 * string/test-strcmp.c (stupid_strcmp): New function.
13772 (do_random_tests): Make sure the strings are zero terminated.
13773 * string/test-strspn.c (stupid_strspn): New function.
13774 (simple_strspn): Rename rej argument to acc.
13775 (do_random_tests): Make sure the string is zero terminated.
13776 * string/test-strcspn.c (stupid_strcspn): New function.
13777 * string/test-strncpy.c (stupid_strncpy): New function.
13778 * string/test-stpncpy.c (stupid_stpncpy): New function.
13779 * string/test-strncmp.c (stupid_strncmp): New function.
13780 (do_random_tests): Make sure the strings are zero terminated.
13781 * string/test-string.h (impl_t): Change test into long.
13782 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
13784 2002-11-08 Roland McGrath <roland@redhat.com>
13786 * sysdeps/ia64/elf/configure.in: Add TLS check.
13787 From Ian Wienand <ianw@cse.unsw.edu.au>.
13788 * sysdeps/ia64/elf/configure: Regenerated.
13790 2002-11-07 Roland McGrath <roland@redhat.com>
13792 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
13793 place of _IO_new_do_write.
13794 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
13795 #undef before versioned_symbol use.
13797 2002-11-07 Richard Henderson <rth@redhat.com>
13799 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
13800 * configure: Regenerated.
13801 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
13802 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
13803 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
13804 _dl_fini via gp-relative relocations.
13805 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
13807 * elf/tls-macros.h: Add alpha versions.
13808 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
13809 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
13810 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
13811 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
13812 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
13813 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
13814 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
13815 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
13816 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
13817 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
13818 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
13819 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
13820 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
13821 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
13822 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
13823 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
13824 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
13825 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
13827 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
13828 Kill argument registers across the inline syscall.
13830 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
13832 * linuxthreads/sysdeps/alpha/tls.h: New file.
13833 * sysdeps/alpha/dl-tls.h: New file.
13835 2002-10-29 David Mosberger <davidm@hpl.hp.com>
13837 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
13838 (gmon_initializer): New function.
13839 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
13840 __gmon_start__ here. Call it from gmon_initializer() instead.
13842 2002-03-12 H.J. Lu <hjl@gnu.org>
13844 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
13845 tst-array2, and tst-array3.
13846 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
13847 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
13848 ($(objpfx)tst-array1.out): New target.
13849 ($(objpfx)tst-array2): Likewise.
13850 ($(objpfx)tst-array2.out): Likewise.
13851 ($(objpfx)tst-array3.out): Likewise.
13852 * elf/tst-array1.c: New file.
13853 * elf/tst-array1.exp: Likewise.
13854 * elf/tst-array2.c: Likewise.
13855 * elf/tst-array2dep.c: Likewise.
13856 * elf/tst-array2.exp: Likewise.
13857 * elf/tst-array3.c: Likewise.
13859 2002-10-28 David Mosberger <davidm@hpl.hp.com>
13861 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
13862 Don't add L->l_addr to array entry values.
13864 2002-11-07 Jakub Jelinek <jakub@redhat.com>
13866 * string/test-string.h: New file.
13867 * string/test-strlen.c: New file.
13868 * string/test-string.h: New file.
13869 * string/test-strcmp.c: New file.
13870 * string/test-strchr.c: New file.
13871 * string/test-strrchr.c: New file.
13872 * string/test-strcpy.c: New file.
13873 * string/test-stpcpy.c: New file.
13874 * string/test-strncpy.c: New file.
13875 * string/test-stpncpy.c: New file.
13876 * string/test-strpbrk.c: New file.
13877 * string/test-strcspn.c: New file.
13878 * string/test-strspn.c: New file.
13879 * string/test-strcat.c: New file.
13880 * string/test-strncmp.c: New file.
13881 * string/test-memchr.c: New file.
13882 * string/test-memcmp.c: New file.
13883 * string/test-memset.c: New file.
13884 * string/test-memcpy.c: New file.
13885 * string/test-mempcpy.c: New file.
13886 * string/test-memmove.c: New file.
13887 * string/Makefile (strop-tests): New variable.
13888 (tests): Add strop-tests.
13889 (distribute): Add test-string.h.
13891 2002-11-06 Ulrich Drepper <drepper@redhat.com>
13893 * posix/regcomp.c: Use tabs instead of spaces.
13894 * posix/regexec.c: Likewise.
13895 * posix/regex_internal.h: Likewise.
13897 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
13899 2002-11-06 Jakub Jelinek <jakub@redhat.com>
13901 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
13903 (regcomp): Don't set can_be_null here.
13904 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
13905 (re_compile_internal): Clear can_be_null, set regs_allocated.
13907 * posix/regcomp.c (re_set_fastmap): New function.
13908 (re_compile_fastmap_iter): Use it. Remove redundant type ==
13909 COMPLEX_BRACKET check.
13910 * posix/regexec.c (re_search_internal): Optimize searching with
13911 fastmap. Call re_string_reconstruct even if match_first is
13912 smaller than raw_mbs_idx.
13914 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
13916 * posix/regcomp (free_dfa_content): Use free_state.
13917 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
13918 pointers in case that realloc failed.
13919 (re_node_set_merge): Likewise.
13920 (register_state): Likewise.
13921 (create_newstate_common): Invoke memory release functions in case of
13923 (create_ci_newstate): Likewise.
13924 (create_cd_newstate): Likewise.
13925 (free_state): New function.
13926 * posix/regexec.c (re_search_internal): Invoke memory release
13927 functions in case of error conditions.
13928 (sift_states_backward): Likewise.
13929 (merge_state_array): Likewise.
13930 (add_epsilon_src_nodes): Likewise.
13931 (sub_epsilon_src_nodes): Likewise.
13932 (search_subexp): Likewise.
13933 (sift_states_bkref): Likewise.
13934 (transit_state_sb): Likewise.
13935 (transit_state_mb): Likewise.
13936 (transit_state_bkref_loop): Likewise.
13937 (group_nodes_into_DFAstates): Likewise.
13938 (push_fail_stack): Don't edit pointers in case that realloc failed.
13939 (extend_buffers): Likewise.
13940 (match_ctx_add_entry): Likewise.
13942 2002-11-06 Roland McGrath <roland@redhat.com>
13944 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
13945 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13947 * configure.in: Add checks on as and ld for binutils 2.13 or later.
13948 * configure: Regenerated.
13950 2002-11-06 Ulrich Drepper <drepper@redhat.com>
13952 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
13953 If re_compile_internal failed free fastmap buffer.
13954 (free_dfa_content): Broken out of regfree function. Frees all dfa
13956 (regfree): Add free_dfa_content.
13957 (re_compile_internal): If any of the called functions fails free
13958 all dfa related memory.
13960 2002-11-05 Ulrich Drepper <drepper@redhat.com>
13962 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
13963 warnings from the kernel headers.
13965 2002-11-05 Roland McGrath <roland@redhat.com>
13967 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
13968 From Johannes Stezenbach <js@convergence.de>.
13970 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
13971 #errlist-compat magic comment to give 123 as size.
13972 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
13973 (libc: GLIBC_2.2): ... here.
13974 (libc: GLIBC_2.3): Likewise.
13976 2002-11-05 Ulrich Drepper <drepper@redhat.com>
13978 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
13979 which happens at the beginning so that we can unload modules in
13982 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
13984 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
13985 under [__USE_MISC || _ASM].
13987 * elf/elf.h: Remove the obsolete SH TLS relocations.
13989 2002-11-05 Ulrich Drepper <drepper@redhat.com>
13991 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
13993 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
13996 __NR_pread64 and __NR_pwrite64.
13997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13998 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
14000 Revert change to use INLINE_SYSCALL.
14001 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14002 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
14003 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14004 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
14006 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
14008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14009 Update clobber list and add a comment about the syscall ABI.
14011 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
14012 s_pwrite64, s_ftruncate, s_truncate): Re-add.
14014 2002-11-05 Jakub Jelinek <jakub@redhat.com>
14016 * iconv/gconv_dl.c (free_mem): Clear loaded.
14017 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
14020 2002-11-05 Ulrich Drepper <drepper@redhat.com>
14022 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
14024 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
14025 as old code without locking. _IO_seekoff calls this function after
14026 locking the stream.
14027 * libio/ioseekpos.c: Likewise for _IO_seekpos.
14028 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
14029 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
14031 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
14032 of _IO_seekoff_internal.
14033 (_IO_rewind): Likewise.
14034 * libio/ioftell.c: Likewise.
14035 * libio/ftello.c: Likewise.
14036 * libio/ftello64.c: Likewise.
14037 * libio/iofgetpos.c: Likewise.
14038 * libio/iofgetpos64.c: Likewise.
14039 * libio/oldiofgetpos.c: Likewise.
14040 * libio/oldiofgetpos64.c: Likewise.
14041 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
14042 _IO_seekpos_internal.
14043 * libio/iofsetpos64.c: Likewise.
14044 * libio/oldiofsetpos.c: Likewise.
14045 * libio/oldiofsetpos64.c: Likewise.
14047 2002-11-04 Roland McGrath <roland@redhat.com>
14049 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
14050 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
14051 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
14052 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
14053 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14054 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
14055 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14056 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
14057 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
14058 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
14059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
14060 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
14061 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
14062 Remove these, no longer used.
14064 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
14067 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
14068 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
14069 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
14070 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
14071 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
14074 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
14075 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
14076 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
14078 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14079 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
14081 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14083 2002-11-03 Roland McGrath <roland@redhat.com>
14085 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
14086 `_dl_tls_static_used'.
14087 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
14088 (__libc_setup_tls): Initialize it. Let the initial value of
14089 _dl_tls_static_size indicate some surplus space in the computed value.
14090 * elf/dl-open.c (_dl_tls_static_size): New variable.
14091 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
14092 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
14093 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
14094 (CHECK_STATIC_TLS): Use it.
14095 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
14096 closed objects occupied a trailing contiguous chunk of static TLS area.
14098 2002-10-18 Bruno Haible <bruno@clisp.org>
14100 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
14102 2002-11-04 Ulrich Drepper <drepper@redhat.com>
14104 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
14105 _wide_data->_IO_read_end if adjustment can be made in the current
14108 * sysdeps/unix/sysv/linux/fexecve.c: New file.
14110 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
14111 wide oriented streams are used.
14113 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
14114 service hasn't been used [PR libc/4744].
14116 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
14117 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
14119 * manual/examples/dir.c: Don't include <stddef.h>.
14120 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
14121 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
14123 2002-11-02 H.J. Lu <hjl@gnu.org>
14125 * stdio-common/reg-printf.c: Include <stddef.h>.
14127 2002-11-03 Ulrich Drepper <drepper@redhat.com>
14129 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
14131 * po/ca.po: Update from translation team.
14132 * po/es.po: Likewise.
14134 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
14135 is defined write out memory map.
14136 * sysdeps/unix/sysv/linux/segfault.c: New file.
14138 2002-11-02 Roland McGrath <roland@redhat.com>
14140 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
14141 pointers that can alias.
14142 Reported by Daniel Jacobowitz <drow@mvista.com>.
14144 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
14146 2002-11-02 Roland McGrath <roland@redhat.com>
14148 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
14149 description to be clearer and to say that *RESULT is set to ENTRY.
14151 2002-10-30 Jakub Jelinek <jakub@redhat.com>
14153 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
14154 dests_ch arrays together. Alloca or malloc dest_states,
14155 dest_states_word and dest_states_nl arrays together. Free memory on
14158 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
14160 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
14161 and current_saltbits.
14163 2002-11-02 Roland McGrath <roland@redhat.com>
14165 * stdio-common/reg-printf.c: Include <stdlib.h>.
14167 2002-11-02 H.J. Lu <hjl@gnu.org>
14169 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
14170 caller to EXTRA instead of execve.
14172 2002-11-01 Roland McGrath <roland@redhat.com>
14174 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
14175 in place of [!(USE_TLS && HAVE___THREAD)].
14176 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
14178 2002-10-31 Roger Sayle <roger@eyesopen.com>
14180 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
14182 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
14184 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
14185 without defining FP_ROUNDMODE.
14187 2002-10-29 Jakub Jelinek <jakub@redhat.com>
14189 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
14190 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
14192 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
14193 (OLD_SIGLIST_SIZE): Define.
14194 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
14195 (OLD_SIGLIST_SIZE): Define.
14196 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
14198 2002-11-01 Jakub Jelinek <jakub@redhat.com>
14200 * sysdeps/ia64/strncpy.S: Fix recovery code.
14202 2002-10-30 Jakub Jelinek <jakub@redhat.com>
14204 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
14206 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
14208 * elf/dl-libc.c (free_mem): Likewise.
14209 * iconv/gconv_conf.c (free_mem): Likewise.
14210 * iconv/gconv_db.c (free_mem): Likewise.
14211 * iconv/gconv_dl.c (free_mem): Likewise.
14212 * iconv/gconv_cache.c (free_mem): Likewise.
14213 * intl/finddomain.c (free_mem): Likewise.
14214 * intl/dcigettext.c (free_mem): Likewise.
14215 * locale/setlocale.c (free_mem): Likewise.
14216 * misc/fstab.c (fstab_free): Likewise.
14217 * nss/nsswitch.c (free_mem): Likewise.
14218 * posix/regcomp.c (free_mem): Likewise.
14219 * resolv/gai_misc.c (free_res): Likewise.
14220 * stdlib/fmtmsg.c (free_mem): Likewise.
14221 * sunrpc/clnt_perr.c (free_mem): Likewise.
14222 * sysdeps/generic/setenv.c (free_mem): Likewise.
14223 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
14224 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
14225 * time/tzset.c (free_mem): Likewise.
14226 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
14227 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
14228 * malloc/set-freeres.c (__libc_freeres): Likewise.
14230 * login/getutent.c: Include stdlib.h instead of stddef.h.
14231 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
14232 (__getutent): Allocate buffer the first time it is run.
14233 * login/getutid.c: Include stdlib.h instead of stddef.h.
14234 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
14235 (__getutid): Allocate buffer the first time it is run.
14236 * login/getutline.c: Include stdlib.h instead of stddef.h.
14237 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
14238 (__getutline): Allocate buffer the first time it is run.
14239 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
14240 (mtrace): Allocate malloc_trace_buffer.
14241 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
14242 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
14243 * string/strerror.c: Include libintl.h and errno.h.
14244 (buf): New variable.
14245 (strerror): Only allocate buffer if actually needed (unknown error).
14246 * time/tzfile.c (transitions): Add libc_freeres_ptr.
14249 2002-10-25 Jakub Jelinek <jakub@redhat.com>
14251 * include/libc-symbols.h (libc_freeres_ptr): New macro.
14252 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
14254 (__libc_freeres): Free all pointers in that section.
14255 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
14256 commands when creating .lds script.
14257 (LDSEDCMD-c.so): New variable.
14258 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
14259 (rcmd_af): Use strdup to allocate ahostbuf.
14260 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
14261 (rexec_af): Use strdup to allocate ahostbuf.
14262 * stdio-common/reg-printf.c (printf_funcs): Remove.
14263 (__printf_arginfo_table): Change into printf_arginfo_function **.
14264 Add libc_freeres_ptr.
14265 (__register_printf_function): Allocate __printf_arginfo_table
14266 and __printf_function_table the first time it is called.
14267 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
14268 printf_arginfo_function **.
14269 (parse_one_spec): Add __builtin_expect.
14270 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
14271 (free_mem): Remove.
14272 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
14273 (free_mem): Remove.
14274 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
14275 (string_space, map): Add libc_freeres_ptr.
14276 (free_mem): Remove.
14277 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
14278 (free_mem): Remove.
14279 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
14280 (free_mem): Remove.
14281 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
14282 (buffer): Add libc_freeres_ptr.
14283 (free_mem): Remove for _LIBC.
14284 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
14285 (free_mem): Remove.
14286 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
14287 (free_mem): Remove.
14288 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
14289 (free_mem): Remove.
14290 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
14291 (free_mem): Remove.
14292 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
14293 (free_mem): Remove.
14294 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
14295 (free_mem): Remove.
14296 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
14298 (free_mem): Remove.
14299 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
14301 (free_mem): Remove.
14303 2002-10-30 Jakub Jelinek <jakub@redhat.com>
14305 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
14306 instead of duplicating the whole function in libc.
14308 2002-10-31 Roland McGrath <roland@redhat.com>
14310 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
14311 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
14313 2002-10-30 Jakub Jelinek <jakub@redhat.com>
14315 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
14316 32bit-predefine when creating .new32 list and -U for each
14317 32bit-predefine when creating .new64 list.
14318 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
14320 2002-10-29 Andreas Schwab <schwab@suse.de>
14322 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
14323 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
14325 2002-10-25 Roland McGrath <roland@redhat.com>
14327 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
14328 * sysdeps/unix/sysv/linux/configure: Regenerated.
14330 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
14331 _dl_starting_up decl.
14333 2002-10-20 H.J. Lu <hjl@gnu.org>
14335 * sysdeps/unix/sysv/linux/configure.in: Don't check
14336 /lib/modules/`uname -r`/build/include for kernel headers if
14338 * sysdeps/unix/sysv/linux/configure: Regenerated.
14340 2002-10-25 Roland McGrath <roland@redhat.com>
14342 * math/math.h (M_LOG2El): Correct the value.
14343 From Stephen L Moshier <steve@moshier.net>.
14345 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
14346 conditional from __libc_multiple_libcs access. Remove kludge for weak
14347 symbol access with old compilers we no longer support.
14348 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
14349 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
14351 2002-10-25 Roland McGrath <roland@redhat.com>
14353 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
14354 implement SV_RESETHAND by translating it to SA_RESETHAND.
14356 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
14358 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
14359 type on ELF64 platforms.
14361 2002-10-24 Ulrich Drepper <drepper@redhat.com>
14363 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
14365 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
14367 2002-10-24 Jakub Jelinek <jakub@redhat.com>
14369 * elf/dl-misc.c: Include <sysdep.h>.
14370 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
14372 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
14373 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
14374 (INLINE_SYSCALL): Use that.
14375 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
14376 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
14377 (INLINE_SYSCALL): Use that.
14378 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
14379 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
14380 (INLINE_SYSCALL): Use that.
14381 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
14383 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
14384 (__INTERNAL_SYSCALL_STRING): Define.
14385 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
14387 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
14388 (__INTERNAL_SYSCALL_STRING): Define.
14389 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
14390 __SYSCALL_STRING to inline_syscall*.
14391 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
14393 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
14394 inline_syscall4, inline_syscall5, inline_syscall6): Add string
14397 2002-10-24 Roland McGrath <roland@redhat.com>
14399 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
14400 * sysdeps/unix/sysv/linux/init-first.c: Not here.
14401 * sysdeps/powerpc/elf/libc-start.c: Or here.
14402 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
14403 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
14404 * sysdeps/unix/sysv/aix/init-first.c: Or here.
14405 * sysdeps/generic/libc-start.c: Or here.
14406 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
14407 access with [! SHARED].
14408 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
14410 * libio/bug-wfflush.c: New file.
14411 * libio/Makefile (tests): Add bug-wfflush.
14413 2002-10-23 Roland McGrath <roland@redhat.com>
14415 * stdio-common/tst-fphex.c: New file.
14416 * stdio-common/Makefile (tests): Add tst-fphex.
14417 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
14418 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
14419 chars always before the value digits.
14420 Reported by James Antill <james.antill@redhat.com>.
14422 2002-10-24 Jakub Jelinek <jakub@redhat.com>
14424 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
14425 (free_mem): New function.
14426 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
14427 if not cross compiling.
14428 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
14429 (bug-regex14-ENV): Set.
14430 (bug-regex14-mem): New target.
14431 * posix/bug-regex14.c: New file.
14433 2002-10-23 Roland McGrath <roland@redhat.com>
14435 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
14436 target, so we don't touch it when the link fails.
14438 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
14439 Check for the result overflowing off_t and fail with EOVERFLOW.
14440 * libio/ioftell.c (_IO_ftell): Likewise.
14441 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
14443 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
14444 use a temporary timeval on the stack for gettimeofday and copy it.
14445 * login/logout.c (logout): Likewise.
14446 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
14448 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
14449 Use __SWORD_TYPE instead of int for member types.
14450 (struct statfs64): Likewise.
14451 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
14452 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
14453 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
14454 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
14455 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
14457 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
14458 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
14459 (ST_NODIRATIME): Restore fixed value of 2048.
14460 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
14461 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
14463 Rearranged <bits/types.h> definitions to reduce duplication.
14464 * sysdeps/generic/bits/types.h: Rewritten, using macros from
14465 <bits/wordsize.h> and new header <bits/typesizes.h>.
14466 * posix/Makefile (headers): Add bits/typesizes.h here.
14467 * sysdeps/generic/bits/typesizes.h: New file.
14468 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
14469 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
14470 * sysdeps/mach/hurd/bits/typesizes.h: New file.
14471 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
14472 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
14473 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
14474 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
14475 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
14476 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
14477 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
14478 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
14479 <bits/pthreadtypes.h> here, not in <bits/types.h>.
14480 * signal/signal.h: Likewise.
14482 * streams/stropts.h: Include <bits/xtitypes.h>.
14483 * streams/Makefile (headers): Add bits/xtitypes.h here.
14484 * sysdeps/generic/bits/xtitypes.h: New file.
14485 * sysdeps/s390/bits/xtitypes.h: New file.
14486 * sysdeps/ia64/bits/xtitypes.h: New file.
14487 * sysdeps/x86_64/bits/xtitypes.h: New file.
14489 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
14490 * sysdeps/generic/bits/ipctypes.h: New file.
14491 * sysdeps/mips/bits/ipctypes.h: New file.
14492 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
14493 * sysdeps/gnu/bits/msq.h: Likewise.
14494 * sysvipc/sys/ipc.h: Likewise.
14496 2002-10-22 Ulrich Drepper <drepper@redhat.com>
14498 * elf/dl-load.c (struct filebuf): For buf element to have the
14499 alignment of ElfXX_Ehdr since this is what will be stored in it.
14501 2002-10-22 Jakub Jelinek <jakub@redhat.com>
14503 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
14504 into pointer to locrec_offset.
14505 (add_locale_to_archive): Adjust callers. Free normalized_name right
14506 before returning, not immediately after add_locale, pass it to
14507 add_alias if not NULL instead of name. Rename second normalized_name
14508 occurence to nnormalized_codeset_name.
14510 * locale/programs/locarchive.c (enlarge_archive): Make sure
14511 string_size is always a multiple of 4.
14512 Reported by Andreas Schwab <schwab@suse.de>.
14514 2002-10-21 Andreas Schwab <schwab@suse.de>
14516 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
14517 caller to EXTRA instead of execve, since the latter has a
14518 higher-priority implementation in linuxthreads.
14520 2002-10-21 Roland McGrath <roland@redhat.com>
14522 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
14523 slotinfo list's len member to the proper size, not just 1.
14524 Initialize static_map.l_tls_initimage.
14526 * elf/dl-open.c (dl_open_worker): Fix loop searching for
14527 dtv_slotinfo_list element containing new modules' l_tls_modid.
14529 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
14530 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
14531 * elf/Makefile (tests): Add tst-tls9.
14532 (tests-static): Add tst-tls9-static.
14533 (tst-tls9-static-ENV): New variable.
14534 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
14536 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
14537 modids used by partially loaded modules being closed can't be known.
14539 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
14541 * posix/Makefile: Add a test case for the bug reported by Aharon
14542 Robbins <arnold@skeeve.com>.
14543 * posix/bug-regex13.c: New file.
14544 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
14546 2002-10-21 Ulrich Drepper <drepper@redhat.com>
14548 * csu/gmon-start.c: Pretty printing.
14550 2002-10-19 Art Haas <ahaas@neosoft.com>
14552 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
14553 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
14554 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
14555 * configure: Regenerated.
14557 2002-10-19 Roland McGrath <roland@redhat.com>
14559 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
14560 and then set $subdirs directly, because the new Autoconf breaks
14561 compatibility in every way imaginable and insists on whining
14562 about usage that worked since the dawn of time.
14563 * configure: Regenerated.
14565 * configure: Regenerated (using Autoconf 2.54).
14566 * sysdeps/alpha/elf/configure: Likewise.
14567 * sysdeps/generic/configure: Likewise.
14568 * sysdeps/i386/elf/configure: Likewise.
14569 * sysdeps/ia64/elf/configure: Likewise.
14570 * sysdeps/mach/hurd/configure: Likewise.
14571 * sysdeps/mach/configure: Likewise.
14572 * sysdeps/unix/configure: Likewise.
14573 * sysdeps/unix/common/configure: Likewise.
14574 * sysdeps/unix/sysv/aix/configure: Likewise.
14575 * sysdeps/unix/sysv/linux/configure: Likewise.
14576 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
14577 * sysdeps/x86_64/elf/configure: Likewise.
14579 * config.make.in: Nix completely-soft nonsense.
14580 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
14581 of machine directories instead of fpu subdirectory.
14582 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
14583 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
14584 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
14585 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
14586 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
14587 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
14588 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
14589 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
14590 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
14591 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
14592 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
14593 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
14594 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
14595 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
14596 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
14597 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
14598 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
14599 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
14600 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
14601 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
14602 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
14603 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
14604 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
14605 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
14606 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
14607 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
14608 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
14609 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
14610 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
14611 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
14612 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
14613 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
14614 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
14615 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
14616 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
14617 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
14618 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
14619 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
14620 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
14621 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
14623 2002-10-19 Bruno Haible <bruno@clisp.org>
14625 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
14627 2002-10-18 Roland McGrath <roland@redhat.com>
14629 * io/Makefile (routines): Add lchmod.
14630 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
14631 * sysdeps/generic/lchmod.c: New file.
14632 * sysdeps/mach/hurd/lchmod.c: New file.
14633 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
14635 2002-10-18 Art Haas <ahaas@neosoft.com>
14637 * configure.in: Remove remaining AC_FD_CC macros, and replace
14638 AC_FD_MSG with AS_MESSAGE_FD.
14640 2002-10-18 Roland McGrath <roland@redhat.com>
14642 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
14643 typos: VALUE -> FINALADDR.
14645 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
14646 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
14647 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
14648 (inline_syscall6): Move these macros ...
14649 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
14651 * configure.in (libc_link_dests, libc_link_sources): Remove these
14652 variables and the AC_LINK_FILES call.
14654 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
14655 change to put new symbols here instead of in GLIBC_2.2.
14656 * sysdeps/powerpc/Subdirs: Move this file ...
14657 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
14659 2002-10-07 Roland McGrath <roland@redhat.com>
14661 * sysdeps/generic/bits/time.h: Replaced with contents of the
14662 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
14663 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
14664 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
14665 macros is ok even for architectures that don't now implement them.
14666 * sysdeps/mach/hurd/bits/time.h: File removed.
14667 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
14668 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
14669 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
14670 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
14671 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
14673 2002-10-18 Jeff Bailey <jbailey@gnu.org>
14675 * configure.in: Replace obsolete AC_OUTPUT syntax with
14676 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
14678 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
14679 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
14681 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
14682 * sysdeps/alpha/elf/configure.in: Likewise.
14683 * sysdeps/i386/elf/configure.in: Likewise.
14684 * sysdeps/mach/hurd/configure.in: Likewise.
14685 * sysdeps/x86_64/elf/configure.in: Likewise.
14687 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
14689 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
14690 * sysdeps/generic/configure.in: Likewise.
14691 * sysdeps/i386/elf/configure.in: Likewise.
14692 * sysdeps/ia64/elf/configure.in: Likewise.
14693 * sysdeps/mach/configure.in: Likewise.
14694 * sysdeps/mach/hurd/configure.in: Likewise.
14695 * sysdeps/unix/configure.in: Likewise.
14696 * sysdeps/unix/common/configure.in: Likewise.
14697 * sysdeps/unix/sysv/aix/configure.in: Likewise.
14698 * sysdeps/unix/sysv/linux/configure.in: Likewise.
14699 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
14700 * sysdeps/x86_64/elf/configure.in: Likewise.
14702 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
14703 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
14704 that it's obvious when extra autoconf machinery is being dragged in.
14706 2002-10-18 Roland McGrath <roland@redhat.com>
14708 * configure.in: Remove bogus echo included in
14709 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
14710 * configure: Regenerated.
14712 2002-10-18 Jakub Jelinek <jakub@redhat.com>
14714 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
14715 (statfs_filesize_max): New function.
14716 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
14717 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
14718 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
14719 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
14720 statfs_filesize_max.
14721 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
14722 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
14723 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
14725 2002-10-17 Roland McGrath <roland@redhat.com>
14727 * configure.in (MIG): Just AC_SUBST it here.
14728 * configure: Regenerated.
14729 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
14730 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
14731 * sysdeps/mach/configure: Regenerated.
14733 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
14734 and AC_PROVIDE([_AS_CR_PREPARE]).
14736 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
14737 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
14739 * elf/dl-support.c: Move _dl_tls_* variables to ...
14740 * sysdeps/generic/libc-tls.c: ... here.
14742 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
14743 allow IDX to be one past the current last slotinfo entry.
14744 (_dl_close): Pass IMAP->l_init_called for that parameter.
14746 2002-10-07 Andreas Schwab <schwab@suse.de>
14748 * aclocal.m4: Fix for autoconf 2.53.
14749 * configure.in: Likewise. Require autoconf 2.53.
14751 2002-10-08 Richard Henderson <rth@redhat.com>
14753 * soft-fp/op-4.h: Handle carry correctly in
14754 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
14755 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
14756 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
14758 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
14760 * configure.in: Compute completely-soft.
14761 * config.make.in: Make completely-soft available to sub-makes.
14762 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
14763 gcc-double-routines. Add sim-full.c. Add fenv_const and
14764 fe_nomask to libm-support.
14765 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
14766 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
14767 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
14768 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
14769 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
14770 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
14771 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
14772 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
14773 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
14774 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
14775 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
14776 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
14777 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
14778 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
14779 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
14780 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
14781 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
14782 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
14783 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
14784 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
14786 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
14787 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
14788 FP_HANDLE_EXCEPTIONS.
14789 Define FP_ROUNDMODE.
14790 Redefine FP_* macros to correspond to the FE_* bit positions.
14791 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
14792 Define externs for __sim_exceptions, __sim_disabled_exceptions,
14793 __sim_round_mode, __simulate_exceptions.
14794 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
14795 * sysdeps/powerpc/bits/fenv.h: ...to here.
14797 2002-10-06 Jakub Jelinek <jakub@redhat.com>
14799 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
14800 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
14801 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
14802 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
14805 2002-10-15 Jakub Jelinek <jakub@redhat.com>
14807 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
14808 __libc_res_nsend): New prototypes.
14809 * resolv/res_query.c (QUERYSIZE): Define.
14810 (__libc_res_nquery): Renamed from res_nquery. Added answerp
14811 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
14812 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
14813 res_nsend, pass answerp.
14814 (res_nquery): Changed into wrapper around __libc_res_nquery.
14815 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
14816 argument. Call __libc_res_nquerydomain and __libc_res_nquery
14817 instead of the non-__libc_ variants, pass them answerp.
14818 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
14819 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
14820 Added answerp argument. Call __libc_res_nquery instead of
14821 res_nquery, pass answerp.
14822 (res_nquerydomain): Changed into wrapper around
14823 __libc_res_nquerydomain.
14824 * resolv/res_send.c: Include sys/ioctl.h.
14825 (MAXPACKET): Define.
14826 (send_vc): Change arguments. Reallocate answer buffer if it is
14828 (send_dg): Likewise.
14829 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
14830 Reallocate answer buffer if it is too small and hooks are in use.
14831 Adjust calls to send_vc and send_dg.
14832 (res_nsend): Changed into wrapper around __libc_res_nsend.
14833 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
14834 just 1K answer buffer on the stack, use __libc_res_nsearch instead
14836 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
14837 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
14838 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
14839 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
14840 (gethostbyaddr): Similarly with __libc_res_nquery.
14841 * resolv/Versions (libresolv): Export __libc_res_nquery and
14842 __libc_res_nsearch at GLIBC_PRIVATE.
14844 2002-10-17 Roland McGrath <roland@redhat.com>
14846 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
14847 * configure: Regenerated.
14849 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
14850 before performing the reloc, not after.
14851 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14853 2002-10-17 Ulrich Drepper <drepper@redhat.com>
14855 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
14856 * locale/programs/linereader.c (lr_open): Likewise.
14857 * locale/programs/charmap-dir.c (charmap_open): Likewise.
14858 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14860 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
14862 * posix/bug-regex11.c: Add a test case for the bug reported by
14863 Paolo Bonzini <bonzini@gnu.org>.
14864 * posix/regexec.c (sift_states_bkref): Use correct destination of
14865 the back reference.
14867 2002-10-17 Roland McGrath <roland@redhat.com>
14869 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
14870 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
14871 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
14872 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
14873 Call it after performing TPOFF relocs.
14874 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14875 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14876 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
14878 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
14879 when closing a partially-initialized object.
14881 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
14882 instead of _dl_fatal_printf when we see PT_TLS.
14884 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
14885 instead of $(libof-$<).
14887 2002-10-16 Roland McGrath <roland@redhat.com>
14889 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
14890 instead of += to append, to be sure $(lib) gets expanded at defn time.
14891 (libof-$(cpp-src)): New variable, define this instead.
14892 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
14893 (lib): Don't use override.
14894 (CPPFLAGS-$(lib)): New variable, put -D's here.
14895 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
14896 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
14897 LIB found by $(libof-*) for basename, target, or source.
14898 * Makerules (CPPFLAGS-nonlib): New variable.
14899 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
14900 * locale/Makefile (lib): Likewise.
14901 * sunrpc/Makefile (lib): Likewise.
14903 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
14904 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
14905 * sysdeps/unix/sysv/linux/pathconf.h: New file.
14906 (statfs_link_max): New function, guts from fpathconf.c.
14907 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
14908 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
14909 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
14910 to use the linux/pathconf.c code by #include rather than duplication.
14911 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
14913 2002-10-16 Jakub Jelinek <jakub@redhat.com>
14915 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14916 Use __libc_errno only for libc itself.
14918 2002-10-16 Andreas Jaeger <aj@suse.de>
14920 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
14922 2002-10-16 Ulrich Drepper <drepper@redhat.com>
14924 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14925 Use __libc_errno only for libc itself.
14927 2002-10-15 Roland McGrath <roland@redhat.com>
14928 Jakub Jelinek <jakub@redhat.com>
14930 * sysdeps/unix/sysv/linux/Makefile
14931 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
14932 sparc/Makefile to produce a bi-arch file as needed.
14933 That's now parameterized by the variable $(64bit-predefine).
14934 Use LC_ALL=C for `comm' commands in that rule.
14935 No longer conditional on [$(no_syscall_list_h)].
14936 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
14937 (64bit-predefine): New variable.
14938 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
14939 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
14940 * sysdeps/unix/sysv/linux/powerpc/Makefile
14941 (64bit-predefine): New variable.
14943 2002-10-15 Roland McGrath <roland@redhat.com>
14945 * sysdeps/unix/sysv/linux/Makefile
14946 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
14948 * login/utmp-private.h: Declare __libc_utmp_lock.
14949 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
14950 and call __libc_utmp_jump_table functions directly, instead of using
14953 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
14954 * sysdeps/unix/sysv/linux/configure: Regenerated.
14956 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
14957 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
14958 Use int32_t for ll_time.
14959 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
14960 Use int32_t instead of long int for ut_session.
14961 Use an anonymous struct with 32-bit fields for ut_tv.
14962 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
14963 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
14964 here as in utmp.h for `struct utmp'.
14965 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
14966 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
14967 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
14968 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
14969 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
14970 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
14972 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
14973 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
14974 All the following files were identical or equivalent to it.
14975 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
14976 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
14977 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
14978 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
14979 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
14980 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
14981 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
14982 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
14983 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
14984 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
14986 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
14987 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
14988 Other than the previously incorrect sign of msg_iovlen, this is a
14989 no-op on 32-bit platforms. On 64-bit platforms it makes this header
14990 match their layouts as well, so the following are now identical to it.
14991 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
14992 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
14993 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
14994 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
14995 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
14997 2002-10-15 Ulrich Drepper <drepper@redhat.com>
14999 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
15000 Define for 2.4+ kernels.
15002 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
15003 are known to have the vfork syscall. Don't confuse the CPUs
15004 branch prediction unit by jumping to the return address.
15006 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
15007 support for reiserfs and xfs.
15009 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
15011 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
15013 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
15015 2002-10-16 Jakub Jelinek <jakub@redhat.com>
15017 * include/libc-symbols.h (attribute_tls_model_ie): Define.
15018 * include/errno.h (errno): Define to __libc_errno in libc.so.
15019 Add attribute_tls_model_ie.
15020 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
15021 Add attribute_tls_model_ie.
15022 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
15023 attribute_tls_model_ie.
15024 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
15026 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
15028 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
15029 attribute_tls_model_ie.
15030 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
15032 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
15033 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
15034 __libc_errno in USE___THREAD case.
15035 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
15037 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
15038 __attribute__((tls_model (""))).
15039 * configure: Rebuilt.
15040 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
15042 2002-10-15 Ulrich Drepper <drepper@redhat.com>
15044 * timezone/asia: Update from tzdata2002d.
15045 * timezone/australasia: Likewise.
15046 * timezone/iso3166.tab: Likewise.
15047 * timezone/southamerica: Likewise.
15048 * timezone/zone-tab: Likewise.
15050 2002-10-15 Roland McGrath <roland@redhat.com>
15052 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
15053 Adjust TCB pointer before calling free, so we get the whole block.
15055 2002-10-14 Roland McGrath <roland@redhat.com>
15057 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
15058 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
15059 extern using attribute_hidden instead of static, avoids warning.
15061 2002-10-09 Jakub Jelinek <jakub@redhat.com>
15063 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
15064 * sysdeps/unix/sysv/linux/configure: Rebuilt.
15066 2002-10-14 Ulrich Drepper <drepper@redhat.com>
15068 * po/sv.po: Update from translation team.
15070 2002-10-12 H.J. Lu <hjl@gnu.org>
15072 * sunrpc/thrsvc.c (PROCQUIT): New.
15073 (struct rpc_arg): New.
15074 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
15075 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
15076 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
15077 (main): Modified for struct rpc_arg *.
15079 2002-10-14 Ulrich Drepper <drepper@redhat.com>
15081 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
15083 2002-10-14 Jakub Jelinek <jakub@redhat.com>
15085 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
15086 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
15087 in ld.so even if __thread is supported.
15089 2002-10-13 Jakub Jelinek <jakub@redhat.com>
15091 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
15092 Add hack to prevent the compiler from clobbering the signal context.
15093 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
15095 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
15098 2002-10-14 Andreas Jaeger <aj@suse.de>
15100 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
15101 Guido Guenther <agx@sigxcpu.org>.
15103 2002-10-14 Ulrich Drepper <drepper@redhat.com>
15105 * po/sk.po: Update from translation team.
15107 2002-09-26 Roland McGrath <roland@redhat.com>
15109 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
15110 dynamic string tag.
15111 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
15112 DL_DST_LIB based on $(slibdir).
15114 2002-10-13 Roland McGrath <roland@frob.com>
15116 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
15118 * sysdeps/mach/hurd/getresuid.c: New file.
15119 * sysdeps/mach/hurd/getresgid.c: New file.
15120 * sysdeps/mach/hurd/setresuid.c: New file.
15121 * sysdeps/mach/hurd/setresgid.c: New file.
15123 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
15124 setresgid): Declare them.
15125 * NEWS: Mention it.
15127 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
15128 add libc_hidden_proto.
15129 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
15130 getresuid, getresgid, setresuid, setresgid here.
15131 * Versions.def (libc): Define GLIBC_2.3.2 set.
15132 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
15133 Add libc_hidden_def.
15134 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
15135 * sysdeps/generic/setresgid.c: New file.
15136 * sysdeps/generic/setresuid.c: New file.
15137 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
15138 (sysdep_routines): Don't add getresuid and getresgid here.
15139 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
15140 (sysdep_routines): Don't add setresuid and setresgid here.
15141 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
15142 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
15143 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
15144 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
15145 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
15146 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
15147 * posix/Makefile (routines): Add them all here instead.
15148 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
15149 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
15150 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
15151 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
15152 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
15153 [! __NR_setresuid]: Include generic file.
15154 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
15155 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
15156 [! __NR_setresuid]: Include generic file.
15157 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
15158 Caller is - now, not EXTRA.
15159 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
15160 (setresuid, setresgid, getresuid, getresgid): Likewise.
15161 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
15162 Add these calls here.
15163 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
15164 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
15165 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
15166 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
15167 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
15168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
15170 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
15171 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
15173 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
15174 (sysdep_routines): Add setfsuid and setfsgid here.
15175 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
15176 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
15177 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
15178 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
15179 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
15180 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
15181 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
15182 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
15184 * hurd/errno.c: Renamed to ...
15185 * hurd/errno-loc.c: ... this.
15186 * hurd/Makefile (routines): errno -> errno-loc
15188 2002-10-13 Ulrich Drepper <drepper@redhat.com>
15190 * po/de.po: Update from translation team.
15192 * MakeTAGS: Add -E flag to xgettext runs.
15194 2002-10-12 Ulrich Drepper <drepper@redhat.com>
15196 * po/fr.po: Update from translation team.
15198 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
15199 Optimize a bit for use in glibc.
15201 2002-10-12 Roland McGrath <roland@redhat.com>
15203 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
15204 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
15206 2002-10-12 Ulrich Drepper <drepper@redhat.com>
15208 * po/sv.po: Update from translation team.
15210 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
15212 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
15214 (regfree): Likewise.
15215 (create_initial_state): Likewise.
15216 (analyze): Remove the substitutions which became useless.
15217 (calc_first): Likewise.
15218 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
15219 epsilon destination.
15220 (duplicate_node_closure): New function.
15221 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
15222 (calc_inveclosure): Likewise.
15223 (calc_eclosure): Likewise.
15224 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
15225 direct invocation of duplicate_node.
15226 (parse): Don't use comma operator in the return to avoid compiler
15228 (parse_reg_exp): Likewise.
15229 (parse_branch): Likewise.
15230 (parse_expression): Likewise.
15231 (parse_sub_exp): Likewise.
15232 (parse_dup_op): Likewise.
15233 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
15234 which became useless.
15235 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
15236 (create_cd_newstate): Likewise.
15237 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
15238 (re_token_t): Likewise.
15239 (re_dfa_t): Likewise.
15240 (re_node_set_remove): New macro.
15241 * posix/regexec.c (check_matching): Remove the handling
15243 (check_halt_node_context): Likewise.
15244 (proceed_next_node): Likewise.
15245 (pop_fail_stack): Fix the memory leak.
15246 (set_regs): Likewise.
15247 (free_fail_stack_return): New function.
15248 (sift_states_backward): Fix the memory leak. Remove the handling
15250 (update_cur_sifted_state): Append some if clause to avoid redundant
15252 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
15254 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
15255 (check_subexp_limits): Likewise.
15256 (search_subexp): Likewise.
15257 (sift_states_bkref): Likewise.
15258 (transit_state_mb): Likewise.
15259 (transit_state_bkref_loop): Likewise.
15260 (transit_state_bkref_loop): Likewise.
15261 (group_nodes_into_DFAstates): Likewise.
15262 (check_node_accept): Likewise.
15263 (sift_ctx_init): Add initializing.
15265 2002-10-12 Ulrich Drepper <drepper@redhat.com>
15267 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
15270 2002-10-11 Ulrich Drepper <drepper@redhat.com>
15272 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
15273 duplicated variable c.
15275 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
15278 * sysdeps/unix/sysv/linux/i386/sysdep.h
15279 (INTERNAL_SYSCALL_ERROR_P): New define.
15280 (INTERNAL_SYSCALL_ERRNO): Likewise.
15282 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
15283 Add hack to prevent the compiler from clobbering the signal context.
15285 2002-10-11 Roland McGrath <roland@redhat.com>
15287 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
15290 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
15291 * sysdeps/sh/dl-lookupcfg.h: File removed.
15292 * sysdeps/i386/dl-lookupcfg.h: File removed.
15294 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
15295 missing labels and ; from last change.
15297 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
15298 number literals, so they are doubles instead of ints.
15300 2002-10-09 Roland McGrath <roland@redhat.com>
15302 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
15303 changed from [USE_TLS && HAVE___THREAD].
15305 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
15306 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
15307 * sysdeps/x86_64/dl-machine.h
15308 (elf_machine_type_class, elf_machine_rela): Likewise.
15309 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
15312 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
15313 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
15314 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
15316 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
15317 instead of ___tls_get_addr.
15318 (___tls_get_addr_internal): Add attribute_hidden to decl.
15320 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
15321 _dl_error_catch_tsd.
15322 * elf/rtld.c (startup_error_tsd): New function.
15323 (dl_main): Point _dl_error_catch_tsd at that.
15324 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
15325 use new function pointer instead.
15326 * elf/dl-tsd.c: New file.
15327 * elf/Makefile (routines): Add it.
15329 2002-10-07 Roland McGrath <roland@redhat.com>
15331 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
15332 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
15333 take _dl_load_lock around calling __writev.
15335 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
15336 (INLINE_SYSCALL): Use that.
15338 * sysdeps/generic/dl-sysdep.h: New file.
15339 * sysdeps/mach/hurd/dl-sysdep.h: New file.
15340 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
15341 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
15342 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
15343 access it directly.
15344 * elf/dl-minimal.c (__errno_location): Removed.
15345 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
15346 Use GOTOFF access for errno.
15347 * sysdeps/unix/sysv/linux/i386/sysdep.h
15348 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
15350 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
15351 Use PC-relative access for errno.
15352 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
15353 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
15355 * include/tls.h: New file.
15356 (USE___THREAD): New macro.
15357 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
15358 libc or libpthread.
15359 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
15360 changed from [USE_TLS && HAVE___THREAD].
15361 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15362 * sysdeps/unix/i386/sysdep.S: Likewise.
15363 * sysdeps/unix/x86_64/sysdep.S: Likewise.
15364 * include/errno.h: Likewise.
15365 * include/netdb.h: Likewise.
15366 * include/resolv.h: Likewise.
15368 * sysdeps/generic/errno.c: New file.
15369 * csu/Makefile (aux): New variable, list errno.
15370 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
15371 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
15372 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
15373 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15374 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15375 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
15376 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
15377 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
15378 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15379 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
15380 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
15381 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
15382 * sysdeps/unix/alpha/sysdep.S: Likewise.
15383 * sysdeps/generic/start.c: Likewise.
15384 * sysdeps/unix/start.c: Likewise.
15385 * sysdeps/unix/arm/start.c: Likewise.
15386 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
15387 * sysdeps/unix/sparc/start.c: Likewise.
15388 * sysdeps/unix/sysv/irix4/start.c: Likewise.
15389 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
15391 * manual/search.texi (Tree Search Function, Hash Search Function):
15392 Mention search.h clearly.
15394 2002-10-05 Roland McGrath <roland@redhat.com>
15396 * elf/dl-fxstat64.c: File removed.
15397 * elf/dl-xstat64.c: File removed.
15398 * elf/Makefile (rtld-routines): Remove them.
15399 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
15400 Instead, use strong_alias instead of versioned_symbol in the
15401 !SHLIB_COMPAT case.
15402 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
15403 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
15405 * include/shlib-compat.h
15406 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
15407 [! NOT_IN_libc] (IS_IN_libc): Define it.
15408 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
15409 * elf/Makefile (CPPFLAGS-.os): Likewise.
15411 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
15412 Return the status instead of calling exit.
15414 * Makeconfig (CFLAGS): Prepend -std=gnu99.
15415 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
15416 Remove superfluous rm command, whose @ plus make bugs hid
15417 all these commands from the make output.
15419 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
15420 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
15421 Use that file's contents instead of literal echo's for the prologue.
15422 * include/features.h: Include <gnu/stubs.h> unconditionally.
15423 * include/gnu/stubs.h: New file.
15425 2002-09-30 Roland McGrath <roland@redhat.com>
15427 * elf/rtld-Rules: New file.
15428 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
15429 $(objpfx)rtld-libc.a): New targets.
15430 (generated): Add them.
15431 (reloc-link): Remove -o $@ from the variable.
15432 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
15433 (distribute): Add rtld-Rules.
15434 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
15435 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
15436 (common-mostlyclean, common-clean): Clean up rtld-* files.
15437 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
15439 2003-05-20 Jakub Jelinek <jakub@redhat.com>
15441 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
15442 If temp != NULL, copy dynamic entries which need relocation to temp
15443 array before relocating.
15444 (DL_RO_DYN_TEMP_CNT): Define.
15445 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
15446 * elf/rtld.c (_dl_start): Likewise.
15447 (dl_main): Likewise. Add dyn_temp static variable.
15449 2002-10-11 Roland McGrath <roland@redhat.com>
15451 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
15452 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
15454 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
15455 proper set of no-op insn prefixes.
15457 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
15459 2002-10-11 Ulrich Drepper <drepper@redhat.com>
15461 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
15462 __pthread_kill_other_threads_np.
15464 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
15466 2002-10-08 Roland McGrath <roland@redhat.com>
15468 * locale/newlocale.c (__newlocale): If setting all categories to "C",
15469 just return &_nl_C_locobj instead of copying it.
15470 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
15471 * locale/duplocale.c (__duplocale): Likewise.
15473 2002-10-07 Roland McGrath <roland@frob.com>
15475 * config.h.in (HAVE_I386_SET_GDT): New #undef.
15476 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
15477 * sysdeps/mach/configure: Regenerated.
15479 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
15482 Add all necessary register outputs for syscall-clobbered registers.
15484 2002-10-02 David Mosberger <davidm@hpl.hp.com>
15486 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
15487 Itanium 2 (and Itanium).
15488 Fix unwind directives and make it fit in 80 columns.
15489 * sysdeps/ia64/memset.S: Likewise.
15490 * sysdeps/ia64/memcpy.S: Likewise.
15491 Move jump table to .rodata section.
15493 2002-10-03 Roland McGrath <roland@frob.com>
15495 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
15498 2002-10-10 Andreas Jaeger <aj@suse.de>
15500 * sysdeps/x86_64/_mcount.S: Restore correct registers.
15502 2002-10-10 Ulrich Drepper <drepper@redhat.com>
15504 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
15506 2002-10-09 Ulrich Drepper <drepper@redhat.com>
15508 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
15509 _dl_allocate_tls_init. Add rtld_hidden_proto.
15510 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
15512 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
15514 * version.h (VERSION): Bump to 2.3.1.
15516 * Make-dist: Add back one of the tar invocations removed before.
15518 * stdlib/Makefile (distribute): Add allocalim.h.
15520 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
15521 (__libc_tsd_address): Use correct variable name.
15522 Patch by Stefan Jones <stefan.jones@multigig.com>.
15524 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
15525 Reported by edwardsg@sgi.com [PR libc/4678].
15527 * Versions.def (libc): Add GLIBC_2.3.1.
15528 (libpthread): Add GLIBC_2.3.1.
15530 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
15531 and __sigtimedwait.
15532 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
15533 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
15535 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
15536 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
15538 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
15539 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
15540 and make old name an alias.
15541 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
15542 and make old name an alias.
15543 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
15546 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
15547 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
15549 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
15551 * sysdeps/posix/readv.c: Likewise
15552 * sysdeps/unix/sysv/aix/readv.c: Likewise.
15553 * sysdeps/unix/sysv/linux/readv.c: Likewise.
15554 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
15556 * sysdeps/posix/writev.c: Likewise
15557 * sysdeps/unix/sysv/aix/writev.c: Likewise.
15558 * sysdeps/unix/sysv/linux/writev.c: Likewise.
15560 * include/sys/wait.h: Declare __waitid.
15561 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
15562 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
15564 * sysdeps/posix/waitid.c: Likewise.
15565 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
15567 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
15569 2002-10-07 Jakub Jelinek <jakub@redhat.com>
15571 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
15573 (__MAX_ALLOCA_CUTOFF): Define.
15574 Include allocalim.h.
15575 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
15576 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
15577 host_buffer depending on __libc_use_alloca.
15578 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
15579 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
15580 net_buffer depending on __libc_use_alloca.
15581 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
15582 buf depending on __libc_use_alloca.
15583 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
15584 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
15585 instead of hardcoded constants.
15586 Pass proper size argument to alloca and compute end for wide char
15588 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
15589 instead of hardcoded constants.
15590 * string/strcoll.c (strcoll): Likewise.
15591 * string/strxfrm.c (strxfrm): Likewise.
15592 * sysdeps/posix/readv.c (__readv): Likewise.
15593 * sysdeps/posix/writev.c (__writev): Likewise.
15594 * sysdeps/generic/allocalim.h: New file.
15596 2002-10-08 Roland McGrath <roland@redhat.com>
15598 * configure.in (aux_missing warning): Change "too old" to
15599 "incompatible versions", since for autoconf it's "too new" right now.
15600 * configure: Regenerated.
15602 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
15603 one found doesn't work on our configure.in.
15604 * configure: Regenerated.
15605 * config.make.in (AUTOCONF): New substituted variable.
15606 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
15607 (autoconf-it): ... here, use that instead of defining conditionally.
15608 Use $(AUTOCONF) instead of literal autoconf.
15609 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
15610 with this condition.
15611 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
15613 2002-10-08 Ulrich Drepper <drepper@redhat.com>
15615 * Make-dist (dist): Cleanup a bit. We are not interested in the
15616 14 char filename limit anymore. Remove intermediate files and
15619 2002-10-05 Ulrich Drepper <drepper@redhat.com>
15621 * po/sk.po: Update from translation team.
15622 * po/tr.po: Likewise.
15623 * po/gl.po: Likewise.
15625 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
15627 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
15629 2002-10-03 Ulrich Drepper <drepper@redhat.com>
15631 * version.h (RELEASE): Change to stable.
15633 2002-10-03 Jakub Jelinek <jakub@redhat.com>
15635 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
15636 __syscall_exit_group): New prototypes.
15638 2002-10-03 Ulrich Drepper <drepper@redhat.com>
15640 * glibc 2.3 released.
15643 See ChangeLog.13 for earlier changes.