1 2004-03-20 Andreas Jaeger <aj@suse.de>
3 * sysdeps/unix/sysv/linux/sched_getaffinity.c
4 (__sched_getaffinity_old): Fix interface.
5 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6 (__sched_setaffinity_old): Likewise.
8 * sysdeps/unix/sysv/linux/sched_setaffinity.c: Include <alloca.h>.
10 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12 * sysdeps/unix/sysv/linux/kernel-features.h
13 (__ASSUME_CLONE_THREAD_FLAGS ): Define for newer SH kernel.
14 (__ASSUME_TGKILL, __ASSUME_UTIMES): Likewise.
15 * sysdeps/unix/sysv/linux/sh/socket.S: Add unwind information.
17 2004-03-19 Ulrich Drepper <drepper@redhat.com>
19 * time/tzfile.c (__tzfile_default): Correct setting of rule_stdoff
20 and rule_dstoff after reading the posixrules file.
22 2004-03-18 Ulrich Drepper <drepper@redhat.com>
24 * malloc/malloc.c (__posix_memalign): Correct alignment check.
25 Reported by Don Heller <dheller@cse.psu.edu>.
27 2004-03-18 Jakub Jelinek <jakub@redhat.com>
29 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Remove hwcap
30 variable and weak_extern for _dl_hwcap.
31 (_DL_HWCAP_TLS_MASK): Define.
32 (HWCAP_CHECK): Fix checking of non-platform hwcap bits. Use
33 lib->osversion instead of cache_new->libs[middle].osversion.
35 * stdio-common/asprintf.c: Remove USE_IN_LIBIO conditionals.
36 * stdio-common/dprintf.c: Likewise.
37 * stdio-common/fprintf.c: Likewise.
38 * stdio-common/getline.c: Likewise.
39 * stdio-common/getw.c: Likewise.
40 * stdio-common/perror.c: Likewise.
41 * stdio-common/printf-prs.c: Likewise.
42 * stdio-common/printf.c: Likewise.
43 * stdio-common/printf_size.c: Likewise.
44 * stdio-common/psignal.c: Likewise.
45 * stdio-common/putw.c: Likewise.
46 * stdio-common/scanf.c: Likewise.
47 * stdio-common/snprintf.c: Likewise.
48 * stdio-common/sprintf.c: Likewise.
49 * stdio-common/sscanf.c: Likewise.
50 * stdio-common/tstgetln.c: Likewise.
51 * stdio-common/vfprintf.c: Likewise.
53 2004-03-18 Paul Eggert <eggert@cs.ucla.edu>
55 * posix/getopt.h (__GNUC_PREREQ) [!defined __THROW]: Define
56 if not defined, fixing a typo (it used to be defined if
57 __GNUC__ was not defined).
59 2004-03-18 Ulrich Drepper <drepper@redhat.com>
61 * posix/sched.h: Change sched_getaffinity and sched_setaffinity
62 interfaces: add new second parameter.
63 * sysdeps/generic/sched_getaffinity.c: Implement interface change.
64 * sysdeps/generic/sched_setaffinity.c: Likewise.
65 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Likewise. Add
66 compatibility interface.
67 * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
68 * sysdeps/unix/sysv/linux/Versions: Add versions for changed
71 2004-03-18 Roland McGrath <roland@redhat.com>
73 * manual/Makefile (stamp-summary): Use -k option to sort,
74 not traditional key selection syntax.
75 Reported by Jim Gifford <giffordj@linkline.com>.
77 2004-03-18 Jakub Jelinek <jakub@redhat.com>
79 * elf/ldconfig.c: Include stdbool.h.
81 2004-03-18 Roland McGrath <roland@redhat.com>
83 * elf/ldconfig.c (parse_conf_include): New function.
84 (parse_conf): Call it to parse lines starting with "include".
85 Remaining words are glob patterns for more config files to read.
86 Take additional bool argument to disable opt_chroot processing.
87 (main): Update caller.
89 2004-03-17 Ulrich Drepper <drepper@redhat.com>
91 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_iopl): Match EPERM error
92 the x86 code produces in case of mission permissions.
93 Patch by Bernd Schmidt <bernds@redhat.com>.
95 * resolv/netdb.h: Define AI_IDN_ALLOW_UNASSIGNED,
96 AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED, and
97 NI_IDN_USE_STD3_ASCII_RULES.
98 * inet/getnameinfo.c (getnameinfo): Implement handling of
99 NI_IDN_ALLOW_UNASSIGNED and NI_IDN_USE_STD3_ASCII_RULES.
100 * sysdeps/posix/getaddrinfo.c (gaih_inet): Implement handling of
101 AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES.
103 2004-03-17 Jakub Jelinek <jakub@redhat.com>
105 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW): Make asm volatile.
107 2004-03-16 Jakub Jelinek <jakub@redhat.com>
109 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Spelling.
110 (JB_SIZE): Undefine before including __longjmp-common.S again.
111 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Spelling.
112 (JB_SIZE): Undefine before including setjmp-common.S again.
113 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Spelling.
114 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Spelling.
115 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Spelling.
116 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Spelling.
117 * sysdeps/powerpc/sigjmp.c: Spelling.
119 2004-03-16 Ulrich Drepper <drepper@redhat.com>
121 * include/ctype.h: For libc, define isdigit, isdigit_l, and
122 __isdigit_l as simple comparison macros.
123 * include/wctype.h: For libc, define iswdigit, iswdigit_l, and
124 __iswdigit_l as simple comparison macros.
125 * wctype/wcfuncs_l.c: #undef iswdigit and __iswdigit.
127 2004-03-15 Ulrich Drepper <drepper@redhat.com>
129 * sysdeps/sparc/fpu/bits/mathinline.h: Restore missing #ifdef.
130 Patch by Richard Henderson.
132 2004-03-16 Jakub Jelinek <jakub@redhat.com>
134 * sysdeps/generic/strtold_l.c (STRING_TYPE, STRTOLD, __STRTOLD,
135 __STRTOD, INTERNAL, INTERNAL1): Define, use them.
136 [! USE_WIDE_CHAR] (INTERNAL (__STRTOLD)): Add libc_hidden_def.
138 * inet/getnameinfo.c: Include stdlib.h.
140 2004-03-15 Richard Henderson <rth@redhat.com>
142 * math/Makefile (headers): Add bits/huge_valf.h, bits/huge_vall.h,
144 * math/math.h: Include them.
146 * sysdeps/alpha/fpu/bits/mathdef.h: Remove INFINITY.
147 * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
148 * sysdeps/generic/bits/mathdef.h: Likewise.
149 * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
150 * sysdeps/ia64/fpu/bits/mathdef.h: Likewise.
151 * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
152 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
153 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
154 * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise.
155 * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
156 * sysdeps/x86_64/fpu/bits/mathdef.h: Likewise.
158 * sysdeps/arm/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val.
159 (HUGE_VALF, HUGE_VALL): Remove.
160 * sysdeps/ieee754/bits/huge_val.h: Likewise.
161 * sysdeps/sh/bits/huge_val.h: Likewise.
163 * sysdeps/generic/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val.
164 * sysdeps/generic/bits/huge_valf.h: New file.
165 * sysdeps/generic/bits/huge_vall.h: New file.
166 * sysdeps/generic/bits/inf.h: New file.
167 * sysdeps/ieee754/bits/huge_valf.h: New file.
168 * sysdeps/ieee754/bits/inf.h: New file.
169 * sysdeps/i386/bits/huge_val.h: Remove file.
170 * sysdeps/i386/bits/huge_vall.h: New file.
171 * sysdeps/ia64/bits/huge_val.h: Remove file.
172 * sysdeps/ia64/bits/huge_vall.h: New file.
173 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: New file.
174 * sysdeps/m68k/bits/huge_val.h: Remove file.
175 * sysdeps/m68k/bits/huge_vall.h: New file.
176 * sysdeps/s390/bits/huge_val.h: Remove file.
177 * sysdeps/sh/sh4/fpu/bits/huge_val.h: Remove file.
178 * sysdeps/sparc/bits/huge_vall.h: New file.
179 * sysdeps/sparc/sparc32/fpu/bits/huge_val.h: Remove file.
180 * sysdeps/sparc/sparc64/fpu/bits/huge_val.h: Remove file.
182 * sysdeps/ieee754/bits/nan.h (NAN): Use __builtin_nanf.
183 * sysdeps/mips/bits/nan.h (NAN): Likewise.
185 2004-03-15 Ulrich Drepper <drepper@redhat.com>
187 * iconv/gconv_simple.c (__gconv_transform_utf8_internal): Use only
188 one copy of error handling code.
190 * stdio-common/vfscanf.c: Simplify error handling macros. Use
191 direct locale access functions.
193 * sysdeps/generic/strcasestr.c (__strcasestr): Optimize use of
196 2004-03-13 Jakub Jelinek <jakub@redhat.com>
198 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add const.
199 (handle_amd): New function.
200 (__sysconf): Handle _SC_LEVEL4_CACHE_LINESIZE here, not in
201 linux_sysconf. Call handle_amd on AuthenticAMD.
202 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Likewise.
204 2004-03-14 Ulrich Drepper <drepper@redhat.com>
206 * wcsmbs/mbsrtowcs.c: Just a wrapper around __mbsrtowcs_l.
207 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add real implementation here.
209 Make the non-_l functions wrappers around the _l functions.
210 * include/monetary.h: Declare __vstrmon_l.
211 * include/string.h: Add libc_hidden_proto for __strcoll_l and
213 * include/time.h: Define ptime_locale_status. Declare
215 * include/wchar.h: Add libc_hidden_proto for __wcscoll_l and
217 * stdlib/strfmon.c: Move the code to strfmon_l.c. Add little
218 wrapper around __vstrfmon_l.
219 * stdlib/strfmon_l.c: Add real implementation. Split into new
220 function __vstrfmon_l to allow calling it from strfmon.
221 * stdlib/strtod.c: Move real code to strtod_l.c and add wrapper.
222 * stdlib/strtod_l.c: Add real implementation.
223 * stdlib/strtof.c: Adjust to changed strtod.c.
224 * stdlib/strtof_l.c: Include strtod_l.c now.
225 * stdlib/strtold.c: New file.
226 * stdlib/strtold_l.c: Removed.
227 * string/strcoll.c: Move real code to strcoll_l.c: Add wrapper.
228 * string/strcoll_l.c: Add real implementation.
229 * string/strxfrm.c: Move real code to strxfrm_l.c: Add wrapper.
230 * string/strxfrm_l.c: Add real implementation.
231 * sysdeps/generic/strtol.c: Move real implementation to strtol_l.c.
233 * sysdeps/generic/strtol_l.c: Add real implementation.
234 * sysdeps/generic/strtold.c: Removed.
235 * sysdeps/generic/strtold_l.c: New file.
236 * sysdeps/generic/strtoll_l.c: Include strtol_l.c now. Adjust
238 * sysdeps/generic/strtoul_l.c: Likewise.
239 * sysdeps/generic/strtoull_l.c: Likewise.
240 * sysdeps/generic/wcstol_l.c: Likewise.
241 * sysdeps/generic/wcstoll_l.c: Likewise.
242 * sysdeps/generic/wcstoul_l.c: Likewise.
243 * sysdeps/generic/wcstoull_l.c: Likewise.
244 * sysdeps/ieee754/ldbl-128/strtold.c: Removed.
245 * sysdeps/ieee754/ldbl-128/strtold_l.c: New file.
246 * sysdeps/ieee754/ldbl-96/strtold.c: Removed.
247 * sysdeps/ieee754/ldbl-96/strtold_l.c: New file.
248 * sysdeps/m68k/strtold.c: Removed.
249 * sysdeps/m68k/strtold_l.c: New file.
250 * time/strftime.c: Move real code to strftime_l.c. Add wrapper.
251 * time/strftime_l.c: Add real implementation.
252 * time/strptime.c: Move real code to strptime_l.c. Add wrapper.
253 * time/strptime_l.c: Add real implementation.
254 * time/wcsftime.c: Simplify since only wrappers are defined in
256 * time/wcsftime_l.c: Include strftime_l.c.
257 * wcsmbs/wcscoll.c: Simplify since the file is not used by wcscoll_l.c
259 * wcsmbs/wcscoll_l.c: Include strcoll_l.c.
260 * wcsmbs/wcsxfrm.c: Simplify since the file is not used by wcsxfrm_l.c
262 * wcsmbs/wcsxfrm_l.c: Include strxfrm_l.c.
263 * wcsmbs/wcstod.c: Prepare to include new strtod.c.
264 * wcsmbs/wcstod_l.c: Include strtod_l.c.
265 * wcsmbs/wcstof.c: Prepare to include new strtof.c.
266 * wcsmbs/wcstof_l.c: Include strtof_l.c.
267 * wcsmbs/wcstold.c: Prepare to include new strtold.c.
268 * wcsmbs/wcstold_l.c: Include strtold_l.c.
270 * locale/uselocale.c: Use _NL_CURRENT_LOCALE instead of __libc_tsd_get.
272 * sysdeps/generic/strcasecmp.c: Optimize a bit. It's better to get
273 a reference to the current locale and then use the _l functions.
274 * sysdeps/generic/strncase.c: Likewise.
276 2004-03-11 Jeroen Dekkers <jeroen@dekkers.cx>
278 * cppflags-iterator.mk: Change libof-$(cpp-src) to
279 libof-$(notdir $(cpp-src)).
281 2004-03-13 Ulrich Drepper <drepper@redhat.com>
283 * resolv/netdb.h (EAI_OVERFLOW): Define.
285 * inet/getnameinfo.c (getnameinfo): Return error in case argument
286 buffers overflow. Implement NI_IDN.
288 2004-03-12 Ulrich Drepper <drepper@redhat.com>
290 * resolv/netdb.h: Define AI_CANONIDN.
291 * sysdeps/posix/getaddrinfo.c: Implement AI_CANONIDN.
293 2004-03-12 Richard Henderson <rth@redhat.com>
295 * sysdeps/unix/sysv/linux/alpha/select.S: Fix unwind. Propagate
296 oldvalue from CENABLE to CDISABLE.
298 2004-03-12 Ulrich Drepper <drepper@redhat.com>
300 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: New file.
302 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
304 * posix/getconf.c (vars): Add _SC_ values for cache information.
305 * sysdeps/generic/bits/confname.h: Add _SC_* values for cache
307 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Reorganize to
308 allow yet another sysconf function to include the one in this file.
309 * sysdeps/unix/sysv/linux/i386/sysconf.c: New file.
310 * sysdeps/generic/sysconf.c: Add default handling for cache line info.
312 2004-03-11 Ulrich Drepper <drepper@redhat.com>
314 * sysdeps/posix/sysconf.c (__sysconf): Add missing support for
317 2004-03-10 Chris Heath <chris@heathens.co.nz>
319 * iconvdata/gconv.map: Add gconv_end (fixes memory leak).
321 2004-03-11 Jakub Jelinek <jakub@redhat.com>
323 * sysdeps/powerpc/powerpc32/__longjmp.S (JB_SIZE): Undefine before
324 including __longjmp-common.S again.
325 * sysdeps/powerpc/powerpc64/__longjmp.S (JB_SIZE): Likewise.
326 * sysdeps/powerpc/powerpc32/setjmp.S (JB_SIZE): Undefine before
327 including setjmp-common.S again.
328 * sysdeps/powerpc/powerpc64/setjmp.S (JB_SIZE): Likewise.
329 * sysdeps/powerpc/novmxsetjmp.h (__novmx__longjmp): Fix type of
330 first argument in the prototype.
331 * sysdeps/powerpc/longjmp.c (__vmx__longjmp, __vmx__libc_longjmp):
332 Remove bogus semicolons.
334 * sysdeps/s390/dl-tls.h: Only add __tls_get_offset assembly if
336 (__TLS_GET_ADDR): Use __tls_get_offset, not __tls_get_addr.
338 2004-03-11 Ulrich Drepper <drepper@redhat.com>
340 * resolv/ns_ttl.c: Don't add ns_parse_ttl for libresolv.so.
342 2004-03-10 Ulrich Drepper <drepper@redhat.com>
344 * sysdeps/generic/errno.c: Include <dl-sysdep.h>. Use
345 RTLD_PRIVATE_ERRNO to decide whether errno compat symbols are needed.
347 * elf/dl-sym.c: Unify _dl_sym and _dl_vsym code and make the entry
348 points wrappers around the unified code.
350 2004-03-11 Richard Henderson <rth@redhat.com>
352 * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (kernel_stat64): New.
354 * sysdeps/unix/sysv/linux/alpha/fxstat.c: New file.
355 * sysdeps/unix/sysv/linux/alpha/lxstat.c: New file.
356 * sysdeps/unix/sysv/linux/alpha/xstat.c: New file.
357 * sysdeps/unix/sysv/linux/alpha/xstatconv.c (__xstat_conv): Add
358 code for _STAT_VER_GLIBC2_3_4.
359 (__libc_missing_axp_stat64): New.
360 * sysdeps/unix/sysv/linux/alpha/xstatconv.h: New file.
361 * sysdeps/unix/sysv/linux/alpha/bits/stat.h (__ST_TIME): New.
362 (_STAT_VER_GLIBC2_3_4, _STAT_VER_KERNEL64): New.
363 (struct stat, struct stat64): Update to new format.
364 (_STATBUF_ST_NSEC): New.
366 2004-03-11 Jakub Jelinek <jakub@redhat.com>
368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
369 (__novec_swapcontext): Branch to novec_* labels.
371 2004-03-10 Ulrich Drepper <drepper@redhat.com>
373 * posix/getopt.c (_): Don't define here for glibc.
375 2004-03-10 Jakub Jelinek <jakub@redhat.com>
377 * include/libc-symbols.h [__ASSEMBLY__] (compat_text_section,
378 compat_data_section): Define.
379 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): Add
380 attribute_compat_text_section.
381 * sysdeps/unix/sysv/linux/alpha/wordexp.c (__old_wordexp): Likewise.
382 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob,
383 __old_globfree): Likewise.
384 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown_is_lchown):
386 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c
387 (__posix_fadvise64_l32): Likewise.
388 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Likewise.
389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c
390 (__posix_fadvise64_l32): Likewise.
391 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (__old_semctl):
393 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl): Likewise.
394 * sysdeps/unix/sysv/linux/posix_fadvise64.c (__posix_fadvise64_l32):
396 * sysdeps/unix/sysv/linux/shmctl.c (__old_shmctl): Likewise.
397 * hurd/compat-20.c (_hurd_proc_init_compat_20): Likewise.
398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
399 (__swapcontext, __novec_swapcontext): Use END instead of PSEUDO_END.
400 (__novec_swapcontext, __swapcontext_stub): Add compat_text_section.
401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
402 (__makecontext_stub): Likewise.
403 (__novec_makecontext): Likewise. Fix name in END () to match
405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
406 (__setcontext): Use END instead of PSEUDO_END.
407 (__novec_setcontext): Add compat_text_section. Use END instead of
408 PSEUDO_END, fix the name in END () to match function name.
409 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
410 (__getcontext, __novec_getcontext): Use END instead of PSEUDO_END.
411 (__novec_getcontext, __getcontext_stub): Add compat_text_section.
413 2004-03-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
415 * sysdeps/sh/dl-machine.h: Don't use GL macro if not appropriate.
416 (COPY_UNALIGNED_WORD): Remove cast used as lvalue.
418 2004-03-10 Ulrich Drepper <drepper@redhat.com>
420 * sysdeps/i386/dl-procinfo.h (HWCAP_IMPORTANT): Remove mmx, add sse2.
422 2004-03-10 Richard Henderson <rth@redhat.com>
424 * sysdeps/generic/errno.c: Disable versioning for rtld.
426 * sysdeps/generic/Makefile (elf/shared): Add unwind-pe.
427 * sysdeps/generic/unwind-pe.c: New file.
428 * sysdeps/generic/unwind-pe.h: Only prototypes for _LIBC without
431 2004-03-10 Ulrich Drepper <drepper@redhat.com>
433 * include/libc-symbols.h: Define attribute_compat_text_section and
434 attribute_compat_data_section.
435 * io/ftw.c: Mark compat code with attribute_compat_text_section.
436 * libio/iofopncook.c: Likewise.
437 * libio/oldfileops.c: Likewise.
438 * libio/oldiofclose.c: Likewise.
439 * libio/oldiofdopen.c: Likewise.
440 * libio/oldiofgetpos.c: Likewise.
441 * libio/oldiofgetpos64.c: Likewise.
442 * libio/oldiofopen.c: Likewise.
443 * libio/oldiofsetpos.c: Likewise.
444 * libio/oldiofsetpos64.c: Likewise.
445 * libio/oldiopopen.c: Likewise.
446 * libio/oldpclose.c: Likewise.
447 * libio/oldtmpfile.c: Likewise.
448 * nptl/forward.c: Likewise.
449 * nss/getXXbyYY_r.c: Likewise.
450 * nss/getXXent_r.c: Likewise.
451 * posix/tst-vfork1.c: Likewise.
452 * stdlib/canonicalize.c: Likewise.
453 * stdlib/old_atexit.c: Likewise.
454 * sysdeps/generic/glob.c: Likewise.
455 * sysdeps/posix/posix_fallocate64.c: Likewise.
456 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
457 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
458 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
459 * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
460 * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
461 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
462 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
463 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
464 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
465 * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
466 * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
467 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
468 * posix/regexec.c: Likewise.
470 * sysdeps/unix/sysv/linux/i386/syscalls.list: vm86@@GLIBC_2.3.4
471 should be the default symbol. Having none misses the point.
473 2004-03-09 Ulrich Drepper <drepper@redhat.com>
475 * stdlib/qsort.c (_quicksort): Initialize first stack element [BZ #16].
477 2004-03-05 Jakub Jelinek <jakub@redhat.com>
479 * posix/regexec.c (regexec): Return with error on unknown eflags.
480 Replace weak_alias with versioned_symbol.
481 (__compat_regexec): New.
482 * posix/Versions (libc): Add regexec@GLIBC_2.3.4.
484 2004-03-09 Richard Henderson <rth@redhat.com>
486 * math/math.h (isgreater, isgreaterequal, isless, islessequal,
487 islessgreater, isunordered): Use builtins if available.
488 * sysdeps/i386/fpu/bits/mathinline.h: Don't define via builtins.
489 * sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
490 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
491 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
492 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
493 * sysdeps/alpha/fpu/bits/mathinline.h (isgreater, isgreaterequal,
494 isless, islessequal, islessgreater): Remove; use default.
495 (isunordered): Convert inputs to double.
497 2004-02-09 Jakub Jelinek <jakub@redhat.com>
499 * posix/Makefile (tests): Add tst-vfork2.
500 * posix/tst-vfork1.c (do_test): Fix comment.
501 * posix/tst-vfork2.c: New test.
503 2004-03-09 Ulrich Drepper <drepper@redhat.com>
505 * elf/dl-lookup.c (_dl_lookup_symbol_x): Fix possible NULL pointer
506 derefernce in error message. Pretty printing.
508 * po/nl.po: Update from translation team.
510 2004-03-08 Andreas Schwab <schwab@suse.de>
512 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't truncate
513 sysinfo pointer value.
515 2004-03-08 Paul Eggert <eggert@cs.ucla.edu>
517 Merge from gnulib. We now assume C89 or better.
518 * posix/getopt1.c (const): Remove.
519 * posix/getopt.c (const): Likewise.
520 * posix/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
521 _getopt_long_only_r, main): Use prototypes, not old-style definitions.
522 * posix/getopt.c (exchange, _getopt_initialize, _getopt_internal_r,
523 _getopt_internal, getopt, main): Likewise.
524 * posix/getopt.h (getopt, getopt_long, getopt_long_only): Likewise.
525 * posix/getopt.c [!defined VMS || !HAVE_STRING_H]:
526 Include <string.h> regardless. No need for <strings.h>.
527 [!defined _LIBC]: Include "gettext.h" rather than rolling it ourselves.
528 (_): Define to gettext always.
529 (my_index): Remove: all uses changed to strchr.
530 (strlen): Remove declaration.
531 * posix/getopt.h (struct option.name): Always const char *.
533 2004-03-08 Marcus Brinkmann <marcus@gnu.org>
535 * posix/getopt.h (_getopt_internal): Move to ...
536 * posix/getopt_int.h: ... here. New file.
537 * include/getopt_int.h: New file.
538 * include/getopt.h: Remove libc_hidden_proto for getopt_long
539 and getopt_long_only.
540 * posix/getopt1.c: Include "getopt_int.h". Remove
541 libc_hidden_def for getopt_long and getopt_long_only.
542 (_getopt_long_r, _getopt_long_only_r): New functions.
543 * posix/getopt.c: Include "getopt_int.h".
544 (__getopt_initialized): Variable removed.
545 (nextchar, ordering, posixly_correct, first_nonopt, last_nonopt):
546 Static variables removed.
547 (nonoption_flags_max_len, nonoption_flags_len) [_LIBC &&
548 USE_NONOPTION_FLAGS]: Static variables removed.
549 (getopt_data): New static variable.
550 (SWAP_FLAGS): Use d->__nonoption_flags_len instead
552 (exchange): Add new argument D of type struct getopt_data *.
553 Replace optind with d->optind, optarg with d->optarg, opterr with
554 d->opterr, optopt with d->optopt, nextchar with d->__nextchar,
555 first_nonopt with d->__first_nonopt, last_nonopt with
556 d->__last_nonopt, d->ordering with d->__ordering,
557 d->posixly_correct with d->__posixly_correct (which is now an
558 int instead a string, so fix users), nonoption_flags_len
559 with d->__nonoption_flags_len, nonoption_flags_max_len with
560 d->__nonoption_flags_max_len.
561 (_getopt_initialize): Likewise.
562 (_getopt_internal): Rename to ...
563 (_getopt_internal_r): ... this. Also add new argument D of type
564 struct getopt_data * and use of members of D rather than global or
565 static variables as described for exchange() above. Add new argument
566 to invocations of _getopt_initialize and exchange.
567 (_getopt_internal): Reimplement in terms of _getopt_internal_r.
568 * argp/argp-parse.c: Include <getopt_int.h>.
569 [_LIBC]: Do not include <bits/libc-lock.h>.
570 [!_LIBC && HAVE_CTHREADS_H]: Do not include <cthreads.h>.
571 [!_LIBC] (_argp_hang): Make static.
572 (getopt_lock, LOCK_GETOPT, UNLOCK_GETOPT): Remove.
573 (_argp_unlock_xxx): Remove.
574 (parser_init): Do not use LOCK_GETOPT.
575 (parser_finalize): Do not use UNLOCK_GETOPT.
576 (struct parser): New member OPT_DATA.
577 (parser_init): Initialize parser->opt_data. Use
578 parser->opt_data.opterr instead of opterr.
579 (parser_parse_opt): Use parser->opt_data.optarg instead optarg.
580 (parser_parse_next): Likewise. Use parser->opt_data.optind
581 instead optind. Use parser->opt_data.optopt instead of optopt.
582 Call _getopt_long_only_r and _getopt_long_r instead of
583 getopt_long_only and getopt_long, and pass the extra argument.
585 2004-03-09 Ulrich Drepper <drepper@redhat.com>
587 * iconv/gconv_db.c: Don't define lock as static. Rename to
588 __gconv_lock and export from the file.
589 * iconv/gconv_int.h: Declare __gconv_lock.
590 * libio/iofclose.c [_LIBC] (_IO_new_fclose): Lock gconv lock
591 before __gconv_release_step calls.
592 Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
594 * iconv/gconv_simple.c (internal_ucs4_loop): Fix typo in last change.
596 * posix/Makefile (tests): Add tst-vfork1.
597 * posix/tst-vfork1.c: New file.
599 2004-03-08 Ulrich Drepper <drepper@redhat.com>
601 * sysdeps/i386/dl-machine.h: Define ARCH_FIXUP_ATTRIBUTE and use
602 it in the fixup function declarations.
603 * elf/dl-runtime.c: If ARCH_FIXUP_ATTRIBUTE is not defined,
604 provide dummy definition. Use macro in fixup function
607 * sysdeps/unix/sysv/linux/i386/vfork.S: If SAVE_PID and
608 RESTORE_PID are defined, use it.
609 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
611 * sysdeps/posix/gai_strerror.c: Add error string for EAI_IDN_ENCODE.
613 * Makerules: Use extra-modules.mk if modules-names is defined.
614 * extra-modules.mk: New file.
615 * dlfcn/Makefile (CPPFLAGS-modcxaatexit.c): Removed.
616 * elf/Makefile (CFLAGS-interp.c): Add -DNOT_IN_libc=1.
617 * csu/Makefile ($(objpfx)version-info.h): Pass -DNOT_IN_libc=1 to
619 * Makefile (distribute): Add symbol-hacks.h and extra-modules.mk.
620 * sysdeps/generic/symbol-hacks.h: New file.
621 * sysdeps/wordsize-32/symbol-hacks.h: New file.
622 * sysdeps/wordsize-32/divdi3.c: Define *_internal aliases for __divdi3,
623 __moddi3, __udivdi3, and __umoddi3.
624 * include/libc-symbols.h: Include <symbol-hacks.h>.
626 2004-03-08 Jeroen Dekkers <jeroen@dekkers.cx>
628 * elf/rtld.c (_rtld_global_ro) [MAP_COPY]: Don't set _dl_unload_cache.
630 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps):
631 Don't use INTUSE with _dl_signal_error.
633 2004-03-08 Ulrich Drepper <drepper@redhat.com>
635 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
636 Don't use INTUSE with _dl_signal_error.
638 2004-03-08 Richard Henderson <rth@redhat.com>
640 * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Fix typo
643 2004-03-07 Ulrich Drepper <drepper@redhat.com>
645 * config.h.in: Add entry for HAVE_LIBIDN.
646 * configure.in: If libidn add-on present define HAVE_LIBIDN.
647 * Versions.def: Add entry for libcidn.
649 2004-03-07 Simon Josefsson <jas@extundo.com>
651 * resolv/netdb.h [__USE_GNU]: Add new AI_IDN ai_flags for addrinfo.
652 [__USE_GNU]: Add new error code EAI_IDN_ENCODE for getaddrinfo.
653 * sysdeps/posix/getaddrinfo.c: Add prototype for __idna_to_ascii_lz
654 and define IDNA_SUCCESS.
655 (gaih_inet): If ai_flags have AI_IDN, invoke __idna_to_ascii_lz.
656 (getaddrinfo): Fix EAI_BADFLAGS test to include AI_IDN.
657 All changes only applicable when glibc is compiled with the libidn
660 2004-03-07 Ulrich Drepper <drepper@redhat.com>
662 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Call
663 _dl_lookup_symbol_x not _dl_lookup_symbol.
665 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Adjust for moving
666 _dl_hwcap into _rtld_global_ro.
667 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
668 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
669 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
670 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
674 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
676 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
678 2004-03-07 Andreas Schwab <schwab@suse.de>
680 * elf/dl-sym.c: Include <dl-tls.h> only when USE_TLS.
682 2004-03-07 Andreas Jaeger <aj@suse.de>
684 * iconvdata/iso-2022-cn-ext.c (BODY): Remove cast used as lvalue.
685 * iconvdata/tcvn5712-1.c (EMIT_SHIFT_TO_INIT): Likewise.
686 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise.
687 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise.
688 * iconvdata/tscii.c (EMIT_SHIFT_TO_INIT): Likewise.
690 2004-03-07 Ulrich Drepper <drepper@redhat.com>
692 * sysdeps/generic/ldsodefs.h: Move _dl_initial_searclist,
693 _dl_hp_timing_overhead, _dl_init_all_dirs, and the content of
694 dl-procinfo.c from _rtld_global to _rtld_global_ro.
695 * elf/rtld.c: Adjust initializer for _rtld_global_ro.
696 * elf/dl-close.c: Use GLRO instead of GL where appropriate.
697 * elf/dl-libc.c: Likewise.
698 * elf/dl-load.c: Likewise.
699 * sysdeps/i386/dl-procinfo.h: Likewise.
700 * sysdeps/i386/i686/hp-timing.h: Likewise.
701 * sysdeps/ia64/hp-timing.h: Likewise.
702 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
703 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
704 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
705 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
706 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Likewise.
707 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
708 * string/test-string.h: Define GLRO.
710 2004-03-06 Ulrich Drepper <drepper@redhat.com>
712 * elf/dl-lookup.c: We don't need for specialized lookup functions.
713 Combining the functionality does not slow down relocation processing,
714 it might even speed it up a little.
715 * sysdeps/generic/ldsodefs.h: Adjust prototypes for lookup function.
716 Add only one function pointer to rtlf_global_ro.
717 * elf/do-lookup.h: Replace #ifs with ifs.
718 * elf/dl-libc.c: Adjust _dl_lookup_* callers.
719 * elf/dl-reloc.c: Likewise.
720 * elf/dl-runtime.c: Likewise.
721 * elf/dl-sym.c: Likewise.
722 * elf/rtld.c: Likewise. Adjust _rtld_global_ro initialization.
724 2004-03-06 Richard Henderson <rth@redhat.com>
726 * sysdeps/generic/ldsodefs.h (__rtld_local_attribute__,
727 __rtld_global_attribute__): Undef after use.
728 (_rtld_local_ro): Define __rtld_local_attribute__ with just hidden
731 * soft-fp/quad.h (union _FP_UNION_Q): Add longs structure.
732 * sysdeps/alpha/Implies: Add alpha/soft-fp.
733 * sysdeps/alpha/soft-fp/sfp-machine.h: Rewrite for GEM interface.
734 * sysdeps/alpha/Subdirs: New file.
735 * sysdeps/alpha/soft-fp/Makefile: New file.
736 * sysdeps/alpha/soft-fp/Versions: New file.
737 * sysdeps/alpha/soft-fp/local-soft-fp.h: New file.
738 * sysdeps/alpha/soft-fp/ots_add.c: New file.
739 * sysdeps/alpha/soft-fp/ots_cmp.c: new file.
740 * sysdeps/alpha/soft-fp/ots_cmpe.c: New file.
741 * sysdeps/alpha/soft-fp/ots_cvtqux.c: New file.
742 * sysdeps/alpha/soft-fp/ots_cvtqx.c: New file.
743 * sysdeps/alpha/soft-fp/ots_cvttx.c: New file.
744 * sysdeps/alpha/soft-fp/ots_cvtxq.c: New file.
745 * sysdeps/alpha/soft-fp/ots_cvtxt.c: New file.
746 * sysdeps/alpha/soft-fp/ots_div.c: New file.
747 * sysdeps/alpha/soft-fp/ots_mul.c: New file.
748 * sysdeps/alpha/soft-fp/ots_nintxq.c: New file.
749 * sysdeps/alpha/soft-fp/ots_sub.c: New file.
751 2004-03-06 Ulrich Drepper <drepper@redhat.com>
753 * configure.in: Recognize --enable-bind-now.
754 * elf/dynamic-link.h (elf_get_dynamic_info): Allow bind-now flags
756 * Makerules (LDFLAGS-c.so): Add -z now if so configured.
757 * elf/Makefile ($(objpfx)ld.so): Likewise.
758 * config.make.in (bind-now): New definition.
760 * elf/dl-fini.c (_dl_fini): Combine _dl_debug_printf calls.
761 * elf/rtld.c (print_statistics): Likewise.
763 * elf/dl-open.c: No need to pass any parameter to _dl_start_profile.
764 They are the same in both places.
765 * elf/dl-profile.c: Likewise.
766 * elf/rtld.c: Likewise.
767 * sysdeps/generic/ldsodefs.h: Likewise.
768 * elf/dl-support.c: Define _dl_profile_output variable. Initialize it.
770 2004-03-05 Ulrich Drepper <drepper@redhat.com>
772 * elf/Versions: Remove functions which are not exported anymore.
773 * dlfcn/dlerror.c: Call ld.so functions through GLSO.
774 * dlfcn/dlinfo.c: Likewise.
775 * elf/dl-close.c: Likewise.
776 * elf/dl-libc.c: Likewise.
777 * elf/dl-open.c: Likewise.
778 * elf/dl-sym.c: Likewise.
779 * sysdeps/generic/libc-start.c: Likewise.
780 * elf/dl-debug.c: Remove *_internal definition. Don't use INTUSE for
781 functions which are not exported anymore.
782 * elf/dl-deps.c: Likewise.
783 * elf/dl-dst.h: Likewise.
784 * elf/dl-error.c: Likewise.
785 * elf/dl-fini.c: Likewise.
786 * elf/dl-init.c: Likewise.
787 * elf/dl-load.c: Likewise.
788 * elf/dl-lookup.c: Likewise.
789 * elf/dl-misc.c: Likewise.
790 * elf/dl-profile.c: Likewise.
791 * elf/dl-profstub.c: Likewise.
792 * elf/dl-reloc.c: Likewise.
793 * elf/dl-runtime.c: Likewise.
794 * elf/dl-version.c: Likewise.
795 * elf/do-lookup.h: Likewise.
796 * include/dlfcn.h: Likewise.
797 * sysdeps/generic/dl-cache.c: Likewise.
798 * sysdeps/generic/dl-fptr.c: Likewise.
799 * sysdeps/generic/dl-origin.c: Likewise.
800 * sysdeps/generic/dl-sysdep.c: Likewise.
801 * sysdeps/generic/dl-tls.c: Likewise.
802 * sysdeps/generic/ldsodefs.h: Likewise.
803 * sysdeps/i386/dl-tls.h: Likewise.
804 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
805 * elf/rtld.c: Likewise. Export function though _rtld_global_ro.
807 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move
808 dl_debug_fd to rtld_global_ro.
809 * elf/rtld.c: Use GLRO instead of GL for dl_debug_fd.
810 * elf/dl-misc.c: Likewise.
812 * malloc/malloc.c: Don't call exported interface in the implementation.
814 * include/wctype.h: Add libc_hidden_proto for __towctrans.
815 * wctype/towctrans.c: Add libc_hidden_def.
817 * libio/memstream.c (open_memstream): Use _IO_init with INTUSE.
819 * posix/regexec.c (transit_state): Remove unused variable
822 * posix/regcomp.c (init_dfa): Use __btowc instead of btowc.
824 * sysdeps/generic/ldsodefs.h: Define new structure rtld_global_ro.
825 Declare _rtld_global_ro and _rtld_local_ro. Move members of
826 rtld_global structure into the new one if they are modified only
827 at startup time. Define GLRO to access _rtld_global_ro.
828 * elf/Versions: Export _rtld_global_ro.
829 * elf/dl-close.c: Use GLRO instead of GL where appropriate.
830 * elf/dl-conflict.c: Likewise.
831 * elf/dl-deps.c: Likewise.
832 * elf/dl-dst.h: Likewise.
833 * elf/dl-error.c: Likewise.
834 * elf/dl-fini.c: Likewise.
835 * elf/dl-init.c: Likewise.
836 * elf/dl-load.c: Likewise.
837 * elf/dl-lookup.c: Likewise.
838 * elf/dl-minimal.c: Likewise.
839 * elf/dl-open.c: Likewise.
840 * elf/dl-profile.c: Likewise.
841 * elf/dl-reloc.c: Likewise.
842 * elf/dl-runtime.c: Likewise.
843 * elf/dl-support.c: Likewise.
844 * elf/dl-version.c: Likewise.
845 * elf/do-lookup.h: Likewise.
846 * elf/rtld.c: Likewise.
847 * sysdeps/generic/dl-cache.c: Likewise.
848 * sysdeps/generic/dl-origin.c: Likewise.
849 * sysdeps/generic/dl-sysdep.c: Likewise.
850 * sysdeps/generic/libc-start.c: Likewise.
851 * sysdeps/generic/dl-cache.c: Likewise.
852 * sysdeps/i386/dl-machine.h: Likewise.
853 * sysdeps/i386/setfpucw.c: Likewise.
854 * sysdeps/i386/fpu/fclrexcpt.c: Likewise.
855 * sysdeps/i386/fpu/fedisblexcpt.c: Likewise.
856 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
857 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
858 * sysdeps/i386/fpu/fesetround.c: Likewise.
859 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
860 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
861 * sysdeps/unix/sysv/linux/dl-execstat.c: Likewise.
862 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
863 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
864 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
865 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
866 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
867 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
868 * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
869 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
870 * sysdeps/unix/sysv/linux/i386/sigaction.h: Likewise.
871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
875 * sysdeps/x86_64/dl-machine.h: Likewise.
876 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
877 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
878 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
879 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
880 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
881 * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
882 * sysdeps/m68k/dl-machine.h: Likewise.
883 * sysdeps/ia64/dl-machine.h: Likewise.
884 * sysdeps/arm/dl-machine.h: Likewise.
885 * sysdeps/alpha/dl-machine.h: Likewise.
886 * generic/dl-fptr.c: Likewise.
887 * mach/hurd/dl-sysdep.c: Likewise.
888 * unix/sysv/linux/ia64/dl-static.c: Likewise.
889 * unix/sysv/linux/ia64/getpagesize.c: Likewise.
890 * unix/sysv/linux/m68k/getpagesize.c: Likewise.
891 * unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
893 2004-03-04 Ulrich Drepper <drepper@redhat.com>
895 * sysdeps/generic/ldsodefs.h: Don't define _dl_name_match_p as inline.
896 * elf/dl-misc.c: Define _dl_name_match_p here.
897 * elf/dl-open.c (check_libc_caller): Don't use _dl_name_match_p.
899 * elf/dl-open.c (dl_open_worker): Check that _dl_open is called
900 from the right place.
902 2004-01-15 Paolo Bonzini <bonzini@gnu.org>
904 * posix/regex.h (REG_STARTEND): Define.
905 * posix/regexec.c (regexec): Check for REG_STARTEND.
907 2004-02-29 Paolo Bonzini <bonzini@gnu.org>
909 * posix/regexec.c (transit_state): Don't handle state == NULL.
910 Move state log and backreference management...
911 (merge_state_with_log): ... to this function.
912 (find_recover_state): New function.
913 (check_matching): Use find_recover_state to get a non-NULL
914 state when an invalid state is reached. Compute the amount
915 of initial characters to be skipped less conservatively when
916 multi-byte character sets are in use. Do not check
917 dfa->nbackref if the state log is NULL. Initialize err.
918 (acquire_init_state_context): Expect err to be initialized.
921 2004-03-05 Jakub Jelinek <jakub@redhat.com>
923 * sysdeps/sparc/sparc32/elf/start.S: Handle PIEs.
924 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
926 2004-03-04 Jakub Jelinek <jakub@redhat.com>
928 * iconv/iconv_prog.c (process_block): Handle omit_invalid.
929 If iconv returns EILSEQ with omit_invalid, continue converting
930 and return 1 if no other errors are seen.
931 (main): Set status to EXIT_FAILURE whenever process_* returns
932 nonzero, but only stop processing further files if iy returns
935 2004-03-03 Jakub Jelinek <jakub@redhat.com>
937 * sysdeps/unix/sysv/linux/x86_64/posix_fadvise.c: New file.
938 * sysdeps/unix/sysv/linux/x86_64/posix_fadvise64.c: New file.
939 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
941 * sysdeps/unix/sysv/linux/alpha/posix_fadvise.c: New file.
942 * sysdeps/unix/sysv/linux/alpha/posix_fadvise64.c: New file.
943 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64):
945 * sysdeps/unix/sysv/linux/ia64/posix_fadvise.c: New file.
946 * sysdeps/unix/sysv/linux/ia64/posix_fadvise64.c: New file.
947 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: New file.
950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: New
952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Removed.
953 * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise.c: New file.
954 * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise64.c: New file.
955 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
956 (posix_fadvise64): Remove.
957 * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise.c: New file.
958 * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise64.c: New file.
959 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
960 (posix_fadvise64): Remove.
962 2004-03-02 Andreas Schwab <schwab@suse.de>
964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/xstat.c: New file.
965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstat.c: New file.
966 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lxstat.c: New file.
968 2004-03-01 Ulrich Drepper <drepper@redhat.com>
970 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization
972 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
974 * sysdeps/unix/sysv/linux/kernel-features.h: Add support for
975 __ASSUME_GETDENTS32_D_TYPE.
976 * sysdeps/unix/sysv/linux/getdents.c: For 2.6.4+ kernels use
977 getdents syscall again since it provides d_type information.
979 2004-02-29 Andreas Jaeger <aj@suse.de>
981 * manual/install.texi (Tools for Compilation): Autoconf 2.53 is
983 (Supported Configurations): Add x86_64-*-linux.
985 2004-02-28 Ulrich Drepper <drepper@redhat.com>
987 * sysdeps/i386/i686/memcmp.S: Move table to .rodata. Patch by HJ Lu.
989 2004-02-27 Jakub Jelinek <jakub@redhat.com>
991 * elf/rtld.c (dl_main): Adjust l->l_ld of the vDSO by l->l_addr.
992 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Only set
993 GL(dl_sysinfo) if non-zero.
995 * sysdeps/unix/sysv/linux/sysconf.c: Include stdlib.h.
997 2004-02-26 Ulrich Drepper <drepper@redhat.com>
999 * nss/getXXbyYY_r.c: Pass result also to the nscd_* function. Don't
1001 * nscd/nscd_proto.h: Add new argument for pointer to result pointer
1002 to all nscd_* functions.
1003 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add new parameter. Store result
1004 pointer in the address provided by the new parameter if successful.
1005 Otherwise store NULL. Return zero if no entry found.
1006 (__nscd_getgrnam_r, __nscd_getgrgid_r): Add new parameter and pass
1008 * nscd/nscd_gethst_r.c (nscd_gethst_r): Add new parameter. Store
1009 result pointer in the address provided by the new parameter if
1010 successful. Otherwise store NULL. Return zero if no entry found.
1011 (__nscd_gethostbyname_r, __nscd_gethostbyname2_r,
1012 __nscd_gethostbyaddr_r): Add new parameter and pass it on.
1013 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add new parameter. Store result
1014 pointer in the address provided by the new parameter if successful.
1015 Otherwise store NULL. Return zero if no entry found.
1016 (__nscd_getpwnam_r, __nscd_getpwuid_r): Add new parameter and pass
1019 2004-02-26 Jakub Jelinek <jakub@redhat.com>
1021 * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set
1022 retval to -1 on error.
1024 2004-02-26 Ulrich Drepper <drepper@redhat.com>
1026 * stdlib/canonicalize.c (__realpath): Simplify.
1028 * posix/regcomp.c (parse_expression): Avoid duplication in calls
1029 to build_charclass_op.
1031 2004-02-26 Jakub Jelinek <jakub@redhat.com>
1033 * elf/rtld.c (dl_main): Correctly set up l_map_end and l_addr
1034 in vDSO's link_map, don't assume l_addr == 0. Set GL(dl_sysinfo)
1035 from e_entry only if AT_SYSINFO not present and adjust by l_addr.
1036 Take vDSO into account when inserting rtld into _dl_loaded chain.
1038 2004-02-26 Ulrich Drepper <drepper@redhat.com>
1040 * sunrpc/svcauth_des.c (authdes_getucred): Removed fixed limit on
1041 number of groups in the cache. Relax the disconnect between the
1042 interface of authdes_getucred and netname2user a bit.
1043 * sunrpc/auth_unix.c (authunix_create_default): Don't allocate
1044 huge arrays on the stack.
1046 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Use the official
1047 not cancelable interfaces.
1049 2004-02-24 Arnold D. Robbins <arnold@skeeve.com>
1051 * posix/regex_internal.c (build_wcs_upper_buffer): Enclose
1052 `offsets_needed' label in `#ifdef _LIBC' to silence `unused label'
1055 2004-02-24 Nelson H.F. Beebe <beebe@math.utah.edu>
1057 * posix/regcomp.c (parse_expression): Add cast to (const unsigned
1058 char *) in calls to `build_charclass_op'.
1059 * posix/regex_internal.c (build_wcs_buffer): Add cast to char* in call
1061 * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
1062 bitset_mask, re_string_char_size_a, re_string_wchar_at,
1063 re_string_elem_size_at): Change to use prototypes.
1064 (re_string_char_size_at, re_string_wchar_at,
1065 re_string_elem_size_at): Declare as `internal_function'.
1067 2004-02-25 Ulrich Drepper <drepper@redhat.com>
1069 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle
1072 2004-02-23 Jakub Jelinek <jakub@redhat.com>
1074 * wcsmbs/mbrtowc.c (__mbrtowc): Cap s + n at the end of address space.
1075 * stdlib/Makefile (tests): Add testmb2.
1077 * stdlib/testmb2.c: New test.
1079 2004-02-23 Jakub Jelinek <jakub@redhat.com>
1081 * sysdeps/posix/getaddrinfo.c (gaih_inet): If _res has not been
1082 inited yet, try to init it before saving old _res.options.
1083 * posix/Makefile (xtests): Add bug-ga2.
1084 (generated): Add bug-ga2.mtrace and bug-ga2-mem.
1085 (xtests): Depend on bug-ga2-mem.
1086 ($(objpfx)bug-ga2-mem, bug-ga2-ENV): New.
1087 * posix/bug-ga2.c: New test.
1089 2004-02-22 Ulrich Drepper <drepper@redhat.com>
1091 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Pop register
1092 content also in case of an overflow in the parameter.
1093 Reported by Momchil Velikov <velco@fadata.bg>.
1095 2004-02-21 Ulrich Drepper <drepper@redhat.com>
1097 * elf/dynamic-link.h (elf_get_dynamic_info): Recognize DF_1_NOW.
1098 In ld.so, neither DT_FLAGS nor DT_FLAGS_1 must be used.
1100 2004-02-21 Andreas Jaeger <aj@suse.de>
1102 * posix/bug-ga1.c: Include <string.h> for memset prototype.
1104 * elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue.
1106 * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as
1109 2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
1111 * sysdeps/generic/framestate.c [__USING_SJLJ_EXCEPTIONS__]
1112 (__frame_state_for): Set frame_State_for to abort if the compiler
1114 * sysdeps/generic/unwind-dw2.c: Allow sjlj enabled compilers to
1115 build the code by removing __USING_SJLJ_EXCEPTIONS__ wrapper.
1117 2004-02-20 Alexandre Oliva <aoliva@redhat.com>
1119 * resolv/Versions: Remove semicolon from the end of libresolv's
1120 GLIBC_2.3.2 version block.
1121 * Versions.def (libresolv): Add GLIBC_2.3.2.
1123 2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
1125 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Fix order of fp
1126 status register loads.
1128 2004-02-20 Thorsten Kukuk <kukuk@suse.de>
1130 * nscd/nscd.c (termination_handler): Use _exit instead of exit
1132 2004-02-20 Ulrich Drepper <drepper@redhat.com>
1134 * nscd/nscd.c (main): Report fork errors.
1136 * dlfcn/dlsym.c: Get ld.so loading lock before the call into ld.so.
1137 * dlfcn/dlvsym.c: Likewise.
1138 * elf/dl-addr.c: Get loading lock while using _dl_loaded data.
1139 * elf/dl-fini.c: Likewise.
1140 Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
1142 2004-02-20 Jakub Jelinek <jakub@redhat.com>
1144 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Add ulps for the
1145 2003-11-27 atan2 test.
1147 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Protect
1148 with #ifndef __powerpc64__.
1150 * sysdeps/generic/ldsodefs.h (_dl_argv, _dl_argv_internal): If
1151 DL_ARGV_NOT_RELRO defined, don't use attribute_relro.
1152 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1153 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1154 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1155 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1156 * sysdeps/alpha/dl-sysdep.h: New file.
1157 * sysdeps/ia64/dl-sysdep.h: New file.
1158 * sysdeps/sparc/dl-sysdep.h: New file.
1160 2004-02-19 Jakub Jelinek <jakub@redhat.com>
1162 * sysdeps/sparc/sparc32/bits/atomic.h: Add __make_section_unallocated
1163 for .gnu.linkonce.b.__sparc32_atomic_locks section.
1164 (__sparc32_atomic_locks): Add __sec_comment at the end of section name.
1166 2004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1168 * sysdeps/generic/libc-start.c [LIBC_START_DISABLE_INLINE] (STATIC):
1170 * sysdeps/powerpc/elf/libc-start.c: Define LIBC_START_DISABLE_INLINE
1171 because gcc does not allow inline of functions that call setjmp.
1173 2004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1175 * sysdeps/powerpc/powerpc64/Makefile: Use -finline-limit.
1177 2004-02-19 Jakub Jelinek <jakub@redhat.com>
1179 * elf/rtld.c (_dl_argv): If DL_ARGV_NOT_RELRO defined, don't
1180 use attribute_relro for _dl_argv.
1181 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1182 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1183 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1184 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1186 2004-02-19 Ulrich Drepper <drepper@redhat.com>
1188 * libio/iopopen.c (_IO_new_proc_open): It's not kosher to use
1189 vfork instead of fork.
1190 * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
1192 * sysdeps/unix/clock_settime.c (clock_settime): Fix typo which
1193 prevented system-dependent handling from being used.
1195 2004-02-18 Carlos O'Donell <carlos@baldric.uwo.ca>
1197 * test-skeleton.c (main): If set, use environment variable
1198 TIMEOUTFACTOR to scale test TIMEOUT.
1200 2004-02-18 Ulrich Drepper <drepper@redhat.com>
1202 * nscd/nscd_conf.c: Include <stdio_ext.h>.
1204 2004-02-16 Ulrich Drepper <drepper@redhat.com>
1206 * stdlib/test-canon.c (do_test): Test realpath(,NULL) in the loop
1209 * stdlib/canonicalize.c (__realpath): Remove unnecessary copy
1212 * nscd/nscd_conf.c (nscd_parse_file): Little optimization.
1214 2004-02-14 Thorsten Kukuk <kukuk@suse.de>
1216 * nscd/dbg_log.c (set_logfile): Only save name of logfile,
1218 (init_logfile): New function, open logfile if requested.
1219 * nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile.
1220 * nscd/nscd.c (main): Call init_logfile after forking in background.
1221 * nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile.
1223 2004-02-16 Ulrich Drepper <drepper@redhat.com>
1225 * elf/rtld.c (dl_main): Don't fail execution if file named in
1226 ld.so.preload is not present [BZ #18].
1228 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended
1229 changes in last patch.
1231 * posix/regexec.c (transit_state): Fix typo in commented-out code
1234 * sysdeps/posix/getaddrinfo.c (match_prefix): Correctly match
1235 partial bytes [BZ #24].
1236 * posix/Makefile (tests): Add bug-ga1.
1237 * posix/bug-ga1.c: New file.
1239 2004-02-13 Steven Munroe <sjmunroe@us.ibm.com>
1241 * sysdeps/powerpc/powerpc64/__longjmp-common.S: New file.
1242 * sysdeps/powerpc/powerpc64/__longjmp.S [NOT_IN_libc](__longjmp):
1243 Non-versioned __longjmp for rtld-__longjmp.
1244 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
1245 default version of __longjmp.
1246 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
1247 (__novmx__longjmp): Original version of __longjmp.
1248 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
1249 Non-versioned _setjmp for rtld-_setjmp.
1250 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
1251 as default version of _setjmp.
1252 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
1253 (__novmx_setjmp): Original version of _setjmp.
1254 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__vmxsetjmp): Branch to
1255 __vmx__sigsetjmp and define as default version of setjmp.
1256 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
1257 (__novmxsetjmp): Original version of setjmp.
1258 * sysdeps/powerpc/powerpc64/setjmp-common.S: New file.
1259 * sysdeps/powerpc/powerpc64/setjmp.S [NOT_IN_libc](__setjmp):
1260 Non-versioned __sigsetjmp for rtld-setjmp.
1261 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
1262 as default version of __sigsetjmp.
1263 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
1264 (__novmx__sigsetjmp): Original version of __sigsetjmp.
1266 * sysdeps/powerpc/powerpc32/__longjmp-common.S: New File
1267 * sysdeps/powerpc/powerpc32/__longjmp.S [NOT_IN_libc](__longjmp):
1268 Non-versioned __longjmp for rtld-__longjmp.
1269 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
1270 default version of __longjmp.
1271 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1272 (__novmx__longjmp): Original version of __longjmp.
1273 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
1274 Non-versioned _setjmp for rtld-_setjmp.
1275 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
1276 as default version of _setjmp.
1277 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1278 (__novmx_setjmp): Original version of _setjmp.
1279 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__vmxsetjmp): Branch to
1280 __vmx__sigsetjmp and define as default version of setjmp.
1281 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1282 (__novmxsetjmp): Original version of setjmp.
1283 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: New file.
1284 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S [NOT_IN_libc](__longjmp):
1285 Non-versioned __longjmp for rtld-__longjmp.
1286 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
1287 default version of __longjmp.
1288 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1289 (__novmx__longjmp): Original version of __longjmp.
1290 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: New file.
1291 * sysdeps/powerpc/powerpc32/fpu/setjmp.S [NOT_IN_libc](__setjmp):
1292 Non-versioned __sigsetjmp for rtld-setjmp.
1293 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
1294 as default version of __sigsetjmp.
1295 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1296 (__novmx__sigsetjmp): Original version of __sigsetjmp.
1297 * sysdeps/powerpc/powerpc32/setjmp-common.S: New file.
1298 * sysdeps/powerpc/powerpc32/setjmp.S [NOT_IN_libc](__setjmp):
1299 Non-versioned __sigsetjmp for rtld-setjmp.
1300 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
1301 as default version of __sigsetjmp.
1302 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1303 (__novmx__sigsetjmp): Original version of __sigsetjmp.
1305 * sysdeps/powerpc/Dist: New File.
1306 * sysdeps/powerpc/Makefile (sysdep_routines): Add novmx-longjmp.c
1308 * sysdeps/powerpc/Versions (libc): To GLIBC_2.3_4 add _longjmp,
1309 __sigsetjmp, _setjmp, longjmp, and setjmp. To GLIBC_PRIVATE add
1310 __novmx__libc_longjmp, __novmx__libc_siglongjmp, __vmx__libc_longjmp,
1311 and __vmx__libc_siglongjmp.
1312 * sysdeps/powerpc/bits/setjmp.h: Define JB_VRSAVE, JB_VRS, and adjust
1313 JB_SIZE to add VMX regs to __jmp_buf.
1314 * sysdeps/powerpc/longjmp.c: New file.
1315 * sysdeps/powerpc/novmxsetjmp.h: New file.
1316 * sysdeps/powerpc/novmx-longjmp.c: New file.
1317 * sysdeps/powerpc/novmx-sigjmp.c: New file.
1318 * sysdeps/powerpc/sigjmp.c: New file.
1320 2004-02-13 Jakub Jelinek <jakub@redhat.com>
1322 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c (__lrintf, lrintf):
1324 (__lrintl, lrintl): Remove.
1325 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c (__lrint): Fix a typo in
1326 strong_alias spelling.
1327 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: Remove.
1328 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: New file.
1330 2004-02-12 Ulrich Drepper <drepper@redhat.com>
1332 * posix/getopt.h: Add some non-gcc support. Patch by Aharon Robbins.
1334 2004-02-12 Mark Brown <bmark@us.ibm.com>
1336 * sysdeps/ia64/fpu/e_fmodf.S: Added text of Intel license.
1338 2004-02-12 Jakub Jelinek <jakub@redhat.com>
1340 * sysdeps/powerpc/fpu/s_lrint.c: Move to...
1341 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: ... here.
1342 * sysdeps/powerpc/fpu/s_llrint.c: Move to...
1343 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: ... here.
1344 * sysdeps/powerpc/fpu/s_llrintf.c: Move to...
1345 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: ... here.
1346 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
1347 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: New file.
1348 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: New file.
1350 * math/libm-test.inc (lrint_test): Add new test.
1351 (llrint_test, lround_test, llround_test): Likewise.
1352 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Fix special case
1353 with result taking up 48 bits.
1354 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1355 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
1356 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Fix special case
1357 with result taking up 31 bits.
1359 2004-02-12 Ulrich Drepper <drepper@redhat.com>
1361 * locale/programs/locale.c (show_locale_vars): Don't print a value
1362 for LANG if it is not set.
1364 2004-02-11 Jakub Jelinek <jakub@redhat.com>
1366 * posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0.
1367 (find_collation_sequence_value): Don't look beyond end of
1369 * posix/Makefile (tests): Add bug-regex23.
1370 (bug-regex23-ENV): New.
1371 * posix/bug-regex23.c: New file.
1373 2004-02-10 Roland McGrath <roland@frob.com>
1375 * sysdeps/mach/hurd/times.c (__times): Use union instead of cast.
1376 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise.
1378 * sysdeps/mach/hurd/configure.in: Move `retcode' check to ...
1379 * sysdeps/mach/configure.in: ... here.
1380 * sysdeps/mach/hurd/configure: Regenerated.
1381 * sysdeps/mach/configure.in: Regenerated.
1383 2004-02-10 Ulrich Drepper <drepper@redhat.com>
1385 * sysdeps/generic/setenv.c (__add_to_environ): Don't let the
1386 temporary copies of the variables accumulate on the stack.
1388 * stdio-common/_i18n_number.h: Finish last patch.
1390 2004-02-09 Ulrich Drepper <drepper@redhat.com>
1392 * sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu.
1394 2003-12-05 Roland McGrath <roland@redhat.com>
1396 * sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old
1397 for vm86@GLIBC_2.0 version. Add new vm86@GLIBC_2.3.4.
1398 * sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.4): Add vm86.
1399 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype.
1401 2004-02-09 Ulrich Drepper <drepper@redhat.com>
1403 * nis/ypclnt.c: Cleanup last patch.
1405 2004-02-09 Andreas Jaeger <aj@suse.de>
1407 * configure.in: Remove glibcbug creation.
1408 * configure: Regenerated.
1410 * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes.
1412 2004-02-03 Thorsten Kukuk <kukuk@suse.de>
1414 * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
1415 of duplicated code from __yp_bind.
1416 (__yp_bind_file): New, binding dir code from __yp_bind.
1417 (__yp_bind_client_create): New, ypbind code from __yp_bind.
1418 (__ypclnt_call): New, make NIS query.
1419 (do_ypcall): At first use cached data, then try data from
1420 binding directory, after this ask ypbind for a working ypserv.
1421 Based on a patch from Jeff Bastian <jmbastia@ti.com> and
1422 Chris Barrera <cbarrera@ti.com>
1424 2004-01-19 Roland McGrath <roland@redhat.com>
1426 * configure.in: Don't set CCVERSION.
1427 * configure: Regenerated.
1428 * glibcbug.in: File removed.
1429 * Makefile (install-bin-script): Remove glibcbug.
1430 (glibcbug): Target removed.
1431 (distclean-1): Don't rm glibcbug.
1432 (distribute): Remove glibcbug.in.
1434 2004-02-09 Roland McGrath <roland@redhat.com>
1436 * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
1439 2004-01-29 Roland McGrath <roland@redhat.com>
1441 * io/ftwtest-sh: Use $tmp consistently, not literal /tmp.
1442 Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
1444 2004-02-09 Ulrich Drepper <drepper@redhat.com>
1446 * libio/genops.c (_IO_cleanup): Do not use locking when flushing
1447 the buffers. Some thread might be using a stream.
1449 2004-02-09 Andreas Jaeger <aj@suse.de>
1451 * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7].
1452 Patch by Jan Beulich <jbeulich@novell.com>.
1454 2004-02-09 Andreas Schwab <schwab@suse.de>
1456 * include/rpc/rpc.h: Declare thread variables with their correct type.
1457 * sunrpc/clnt_perr.c: Don't cast thread variables.
1458 * sunrpc/clnt_raw.c: Likewise.
1459 * sunrpc/clnt_simp.c: Likewise.
1460 * sunrpc/key_call.c: Likewise.
1461 * sunrpc/svcauth_des.c: Likewise.
1462 * sunrpc/svc.c: Likewise.
1463 * sunrpc/svc_raw.c: Likewise.
1464 * sunrpc/svc_simple.c: Likewise.
1466 2004-02-09 Ulrich Drepper <drepper@redhat.com>
1468 * stdio-common/_i18n_number.h: Support printing localized decimal
1469 point and thousand separator.
1470 * wctype/wctrans.c: Add __wctrans alias.
1471 * include/wctype.h: Declare __wctrans.
1472 Based on a patch by Hamed Malek.
1474 * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
1475 other than the status bits [BZ #10].
1477 2004-02-08 Ulrich Drepper <drepper@redhat.com>
1479 Make stream locking operations really work.
1480 * misc/Makefile (CFLAGS-mntent_r.c): Define.
1481 * shadow/Makefile (CFLAGS-fgetspent_r.c): Define.
1482 (CFLAGS-putspent.c): Define.
1483 * grp/Makefile (CFLAGS-fgetgrent_r.c): Define.
1484 (CFLAGS-putgrent.c): Define.
1485 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define.
1486 Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
1488 * elf/dl-load.c (lose): Use noinline attribute instead of silly
1489 alloca to prevent inlining.
1490 * elf/dl-runtime.c (fixup): Likewise.
1491 (profile_fixup): Likewise.
1493 * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11.
1494 Initialize width correctly.
1496 2004-02-07 Andreas Jaeger <aj@suse.de>
1498 * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as
1500 (internal_ucs4le_loop_single): Likewise.
1501 (ucs4_internal_loop): Likewise.
1503 (internal_ucs4_loop_single): Likewise.
1504 * iconvdata/iso8859-1.c (BODY): Likewise.
1505 * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise.
1506 * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise.
1507 * iconvdata/gb18030.c (BODY): Likewise.
1508 * iconvdata/armscii-8.c (BODY): Likewise.
1509 * stdlib/msort.c (msort_with_tmp): Likewise.
1511 * iconv/gconv_open.c (__gconv_open): Remove conditional expression
1514 2004-02-06 Steven Munroe <sjmunroe@us.ibm.com>
1516 * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as
1518 (__elf_machine_runtime_setup): Invalidate the instruction cache over
1519 the whole range of the PLT.
1521 2004-02-06 Andreas Schwab <schwab@suse.de>
1523 * posix/regcomp.c (build_range_exp): Fix off-by-one.
1524 (parse_bracket_exp): Likewise.
1526 2004-02-05 Ulrich Drepper <drepper@redhat.com>
1528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define
1529 _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard.
1531 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
1533 * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter.
1534 (re_search_internal): Pass new parameter to check_matching.
1535 (check_matching): Unless a parenthesized group is found at the
1536 beginning of the regexp, advance P_MATCH_FIRST until we entered
1537 a state different from the initial state.
1539 2004-02-01 Ulrich Drepper <drepper@redhat.com>
1541 * math/libm-test.inc (lround_test): Add new test.
1542 (llround_test): Likewise.
1543 (lrint_test): Likewise.
1544 (llrint_test): Likewise.
1545 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case
1546 with result taking up 20 bits.
1547 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1548 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise..
1549 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special
1550 case with result taking up 31 bits.
1551 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1553 * po/nl.po: Update from translation team.
1555 2004-01-30 Andreas Schwab <schwab@suse.de>
1557 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
1558 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
1559 SEGV_PSTKOVF): Remove underscore prefix from definition.
1561 2004-01-28 Paolo Bonzini <bonzini@gnu.org>
1563 Merge regex changes in gawk.
1564 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
1565 of collation elements.
1566 * posix/regex.c: Include limits.h.
1567 * posix/regex.h: Document REG_ECOLLATE correctly.
1568 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
1570 2004-01-24 Andreas Jaeger <aj@suse.de>
1572 * malloc/obstack.h: Import gnulib version.
1573 * malloc/obstack.c: Likewise.
1575 2004-01-26 David Mosberger <davidm@hpl.hp.com>
1577 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
1578 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
1579 increment dl_load_adds.
1580 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
1581 with equivalent GL(dl_load_adds - GL(dl_nloaded).
1582 (dl_iterate_phdr): Likewise.
1583 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
1584 * elf/dl-support.c: Remove global variable _dl_load_subs.
1585 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
1586 _dl_load_subs member.
1588 2004-01-27 Jakub Jelinek <jakub@redhat.com>
1590 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
1591 (_dl_start): And neither here.
1592 (dl_main): Set GL(dl_loaded)->l_relro_* and
1593 GL(dl_rtld_map)->l_relro_*.
1595 2004-01-23 David Mosberger <davidm@hpl.hp.com>
1597 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
1598 _dl_load_adds and _dl_load_subs.
1599 * elf/dl-support.c (_dl_load_adds): New variable.
1600 (_dl_load_subs): Likewise.
1601 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
1602 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
1603 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
1605 * include/link.h: Likewise.
1606 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
1607 and dlpi_subs members.
1608 (dl_iterate_phdr): Likewise.
1609 * elf/tst-dlmodcount.c: New file.
1610 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
1611 (tests): If build-shared, mention tst-dlmodcount.
1612 ($(objpfx)tst-dlmodcount): If build-shared, build and
1615 2004-01-22 Jakub Jelinek <jakub@redhat.com>
1617 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
1619 (_dl_protect_relro): New routine.
1620 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
1621 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
1623 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
1624 Call _dl_protect_relro for libraries if prelinking.
1626 2004-01-23 Richard Henderson <rth@redhat.com>
1628 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
1629 * sysdeps/alpha/fpu/Versions (libm): Likewise.
1630 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
1631 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
1633 2004-01-22 Andreas Jaeger <aj@suse.de>
1635 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
1636 avoid warnings for builtin function log2.
1638 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
1641 2004-01-20 Ulrich Drepper <drepper@redhat.com>
1643 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
1644 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1645 Patch by Davide Libenzi.
1647 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1648 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
1650 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
1652 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
1653 instead of loff_t. Include <fcntl.h>.
1654 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
1655 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
1656 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
1657 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
1658 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1659 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1660 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
1661 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1662 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1663 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1664 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1665 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1667 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
1669 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
1671 2003-12-31 Bruno Haible <bruno@clisp.org>
1673 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
1674 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
1675 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
1676 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
1677 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
1678 0x00 0x20. Don't map U+2500..U+25E3.
1680 2004-01-19 Jakub Jelinek <jakub@redhat.com>
1682 * posix/regexec.c (get_subexp): Remove bkref_str variable.
1683 Extend buffers if needed before comparisons.
1684 (get_subexp_sub): Handle clean_state_log_if_needed failure.
1686 2004-01-17 Ulrich Drepper <drepper@redhat.com>
1688 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
1689 atomic_decrement. Patch by Davin McCall.
1691 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
1693 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
1694 (__sim_disabled_exceptions, __sim_round_mode): Declare with
1695 hidden data and nocommon.
1696 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
1697 (__sim_disabled_exceptions, __sim_round_mode): Use
1699 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
1700 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
1702 2004-01-16 Ulrich Drepper <drepper@redhat.com>
1704 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
1707 2004-01-16 Richard Henderson <rth@redhat.com>
1709 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
1710 (__libc_enable_secure_internal): Likewise.
1712 * elf/dl-load.c: Don't declare __libc_stack_end.
1713 * sysdeps/generic/libc-start.c: Likewise.
1714 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
1715 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
1716 * sysdeps/generic/backtrace.c: Likewise.
1718 2004-01-15 Ulrich Drepper <drepper@redhat.com>
1720 * Versions.def: Add GLIBC_2.3.4.
1722 2004-01-15 Richard Henderson <rth@redhat.com>
1724 * sysdeps/unix/alpha/sysdep.h: Revert last change.
1726 2004-01-15 Richard Henderson <rth@redhat.com>
1728 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
1730 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
1733 2004-01-15 Richard Henderson <rth@redhat.com>
1735 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
1736 ucontext-offsets.sym.
1737 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
1738 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
1739 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
1740 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
1741 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
1743 2004-01-15 Richard Henderson <rth@redhat.com>
1745 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
1746 __syscall_, move nop inside, adjust users by +4.
1748 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1750 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
1751 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
1752 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
1754 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
1755 gen-as-const-headers.
1756 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
1757 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
1758 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
1759 * sysdeps/unix/sysv/linux/kernel-features.h
1760 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
1761 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
1762 Declare mcontext_t inline and include altivec state for 64-bit.
1763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
1764 versions for setcontext, getcontext, and swapcontext.
1766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
1767 versions for setcontext, getcontext, swapcontext, and makecontext.
1768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1769 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
1770 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
1771 Compatible with GLIBC_2.3.3 release.
1772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1773 (__makecontext): Use parm save area instead of compiler_dw to hold
1775 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1776 (__setcontext): Upgrade to restore Altivec regs and version
1778 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
1779 Compatible with GLIBC_2.3.3 release.
1780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1781 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
1782 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
1783 Compatible with GLIBC_2.3.3 release.
1784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
1785 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
1787 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
1789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
1790 versions for setcontext, getcontext, swapcontext, and makecontext.
1791 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1792 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
1793 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
1794 Compatible with GLIBC_2.3.3 release.
1795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
1796 (__makecontext): Upgrade to align for Altivec regs and version
1798 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
1799 Compatible with GLIBC_2.3.3 release.
1800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1801 (__setcontext): Upgrade to restore Altivec regs and version
1803 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
1804 Compatible with GLIBC_2.3.3 release.
1805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1806 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
1807 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
1808 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
1809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
1810 (_UC_VSCR, _UC_VRSAVE): Define.
1811 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
1812 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
1814 2004-01-15 Ulrich Drepper <drepper@redhat.com>
1816 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
1818 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
1820 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
1823 2004-01-15 Ulrich Drepper <drepper@redhat.com>
1825 * elf/elf.h: Fix typo in comment.
1827 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
1828 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
1830 * resolv/resolv.h: Add RES_USEBSTRING.
1831 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
1832 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
1833 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
1834 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
1835 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
1836 Otherwise use the two nibble formats.
1838 2004-01-14 Ulrich Drepper <drepper@redhat.com>
1840 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
1841 * config.h.in: Add entry for HAVE_Z_RELRO.
1842 * include/libc-symbols.h: Define attribute_relro.
1843 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
1844 max_capstrlen, and max_dirnamelen definitions.
1845 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
1846 load_time, start_time, library_path, preloadlist, version_info,
1848 Remove rtld_total_time. Make it a local variable. Pass pointer to
1849 it to print_statistics. Change print_statistics accordingly.
1850 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
1851 attribute_relro instead of explicitly assigning variable to the
1852 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
1853 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
1854 _dl_argv, _dl_argv_internal with attribute_relro.
1856 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
1858 * Makerules (gen-as-const): Don't silently continue on failure.
1860 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1862 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
1863 rtld_hidden_data_def.
1865 2004-01-14 Ulrich Drepper <drepper@redhat.com>
1867 * libio/libio.h: Add const to function tables types.
1868 * libio/libioP.h: Likewise.
1869 * login/utmp-private.h: Likewise.
1870 * libio/fileops.c: Add const to jump table variable definition.
1871 * libio/genops.c: Likewise.
1872 * libio/iofopncook.c: Likewise.
1873 * libio/iopopen.c: Likewise.
1874 * libio/memstream.c: Likewise.
1875 * libio/obprintf.c: Likewise.
1876 * libio/oldfileops.c: Likewise.
1877 * libio/oldiopopen.c: Likewise.
1878 * libio/strops.c: Likewise.
1879 * libio/vsnprintf.c: Likewise.
1880 * libio/vswprintf.c: Likewise.
1881 * libio/wfileops.c: Likewise.
1882 * libio/wstrops.c: Likewise.
1883 * login/getutent_r.c: Likewise.
1884 * login/getutid_r.c Likewise.
1885 * login/getutline_r.c: Likewise.
1886 * sysdeps/generic/utmp_file.c: Likewise.
1888 2004-01-09 Bruno Haible <bruno@clisp.org>
1890 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
1891 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
1892 (_nl_load_domain): Treat major revision 1 like major revision 0.
1894 2004-01-11 Bruno Haible <bruno@clisp.org>
1896 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
1897 width or precision has been seen.
1899 2004-01-08 Bruno Haible <bruno@clisp.org>
1901 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
1902 dependent segment not known to this version of the library, ignore
1903 the string pair instead of crashing.
1905 2004-01-13 Ulrich Drepper <drepper@redhat.com>
1907 * configure.in: Rewrite test to give gcc to clean up after itself.
1908 Patch by Greg Schafer.
1910 * posix/regex.c: Support crappy compilers and platforms which have
1911 problems with alloca.
1912 * posix/regex_internal.h: Likewise.
1913 Patch by Paolo Bonzini.
1915 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
1917 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
1918 Drop code to support this, it is never true.
1919 (build_range_exp) [!_LIBC]: Do not create a range
1920 in MBCSET for a single-byte character set.
1921 (build_range_exp) [_LIBC]: Do not create a range
1922 in MBCSET for a single-byte character set without
1924 (init_dfa): Do not conditionalize on _LIBC, it
1925 just makes the code less clear.
1926 (parse_bracket_exp): Use NON_MATCH variable in
1927 addition to "mbcset->non_match", not as an
1929 (build_charclass_op): rename NOT parameter to
1930 NON_MATCH, use it instead of declaring a variable.
1931 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
1932 if the character set is single-byte.
1934 2004-01-14 Jakub Jelinek <jakub@redhat.com>
1936 * posix/regcomp.c (peek_token_bracket): Check remaining
1937 string length before re_string_peek_byte (x, 1).
1938 (parse_bracket_symbol): Likewise.
1939 * posix/regex_internal.h (re_string_is_single_byte_char): Return
1940 true at last byte in the string.
1941 * posix/bug-regex22.c (main): Add new test.
1943 2004-01-13 Ulrich Drepper <drepper@redhat.com>
1945 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
1948 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
1950 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
1951 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
1952 rtld_hidden_def and move into .data.rel.ro section.
1953 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
1955 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
1958 2004-01-13 Richard Henderson <rth@redhat.com>
1960 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
1962 2004-01-13 Ulrich Drepper <drepper@redhat.com>
1964 * sysdeps/unix/sysv/linux/dl-execstack.c
1965 (_dl_make_stack_executable): Move common code in front. Use
1968 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
1969 challenge for caller.
1970 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
1971 member in rtld_global appropriately.
1972 * elf/dl-support.c: Likewise.
1973 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
1974 Pass it on to the changed function.
1975 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
1977 2004-01-13 Richard Henderson <rth@redhat.com>
1979 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
1980 Cast old up to uint64_t before back down to inner width.
1981 (__arch_compare_and_exchange_xxx_16_int): Likewise.
1982 (__arch_compare_and_exchange_xxx_32_int): Likewise.
1983 (__arch_compare_and_exchange_xxx_64_int): Likewise.
1984 (__arch_compare_and_exchange_val_8_int): Cast result to
1985 the type of the memory.
1986 (__arch_compare_and_exchange_val_16_int): Likewise.
1987 (__arch_compare_and_exchange_val_32_int): Likewise.
1988 (__arch_compare_and_exchange_val_64_int): Likewise.
1989 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
1990 (atomic_compare_and_exchange_bool_rel): Likewise.
1992 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
1993 based on HAVE___THREAD instead of USE_TLS.
1995 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
1996 (__adjtimex_tv64): Use it.
1998 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
1999 to void* rather than directly to the compatibility structure type.
2000 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
2002 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
2005 2004-01-13 Richard Henderson <rth@redhat.com>
2007 * Versions.def (libm): Add GLIBC_2.3.3.
2008 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
2009 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
2010 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
2011 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
2012 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
2013 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
2014 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
2015 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
2016 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
2017 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
2018 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
2019 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
2020 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
2021 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
2022 functions for gcc 3.3.
2024 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
2025 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
2026 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
2027 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
2028 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
2029 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
2030 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
2031 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
2032 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
2033 weak_alias if the function name has been #defined.
2035 * math/cabsf.c: Move ...
2036 * sysdeps/generic/cabsf.c: ... here.
2037 * math/cargf.c: Move ...
2038 * sysdeps/generic/cargf.c: ... here.
2039 * math/cimagf.c: Move ...
2040 * sysdeps/generic/cimagf.c: ... here.
2041 * math/conjf.c: Move ...
2042 * sysdeps/generic/conjf.c: ... here.
2043 * math/crealf.c: Move ...
2044 * sysdeps/generic/crealf.c: ... here.
2046 2004-01-13 Ulrich Drepper <drepper@redhat.com>
2048 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
2049 LDFLAGS.so and LDFLAGS-rtld.
2050 (+link): Add relro-LDFLAGS.
2051 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
2052 __libc_thread_subfreeres sections after .jcr section.
2053 * config.make.in: Add have-z-relro.
2054 * configure.in: Add check for -z relro option.
2055 * include/link.h (struct link_map): Add relro_addr and relro_size
2057 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
2058 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
2059 part of loaded segments read-only.
2060 * elf/elf.h: Define PT_GNU_RELRO.
2061 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
2062 (dl_main): Recognize PT_GNU_RELRO of the application. Call
2063 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
2066 2004-01-12 Jakub Jelinek <jakub@redhat.com>
2068 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
2070 2004-01-11 Andreas Jaeger <aj@suse.de>
2072 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
2074 2004-01-10 Andreas Jaeger <aj@suse.de>
2076 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
2077 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
2078 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2079 * sysdeps/x86_64/strcspn.S: Likewise.
2080 * sysdeps/x86_64/strspn.S: Likewise.
2082 2004-01-08 Jakub Jelinek <jakub@redhat.com>
2084 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
2085 right before syscall and cfi_startproc before PSEUDO_END.
2086 Clear %rbp in thread_start.
2088 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2090 * posix/regcomp.c (regcomp): Fix comment typo.
2091 (regfree): Free preg->translate, clear buffer, allocated, fastmap
2092 and translate fields.
2094 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
2095 argument to unsigned RE_TRANSLATE_TYPE.
2096 * posix/regex_internal.h (re_string_t): Change trans type to
2097 unsigned RE_TRANSLATE_TYPE.
2098 * posix/regex_internal.c (re_string_construct_common): Cast
2099 trans to unsigned RE_TRANSLATE_TYPE.
2100 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
2101 path if pstr->trans. Never translate the character through
2103 * posix/Makefile (tests): Add bug-regex22.
2104 (bug-regex22-ENV): Set.
2105 * posix/bug-regex22.c: New test.
2107 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
2109 * posix/regex_internal.c (re_node_set_add_intersect,
2110 re_node_set_merge): Rewritten.
2111 (re_node_set_insert, re_node_set_remove_at):
2112 Avoid memmove, we know what direction we should copy and that we
2113 are copying 32-bit words.
2114 (re_node_set_compare): Iterate backwards.
2116 2003-12-30 Paul Eggert <eggert@twinsun.com>
2118 * time/mktime.c (verify): New macro.
2119 (time_t_is_integer, twos_complement_arithmetic,
2120 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
2121 C99_integer_division): Document these longstanding assumptions in the
2122 code, and verify them at compile-time.
2124 2004-01-02 Jakub Jelinek <jakub@redhat.com>
2126 * posix/regex_internal.h (re_match_context_t): Add dfa member.
2127 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
2128 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
2129 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
2130 sift_states_backward, update_cur_sifted_state, check_dst_limits,
2131 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
2132 check_subexp_matching_top, transit_state_sb, transit_state_mb,
2133 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
2134 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
2135 Remove dfa parameter. Get dfa from mctx. Adjust callers.
2136 (re_search_internal): Initialize mctx.dfa.
2138 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
2140 * posix/regex_internal.h (re_dfa_t): Add syntax field.
2141 * posix/regcomp.c (parse): Initialize dfa->syntax.
2142 * posix/regexec.c (acquire_init_state_context,
2143 prune_impossible_nodes, check_matching, check_halt_state_context,
2144 proceed_next_node, sift_states_iter_mb, sift_states_backward,
2145 update_cur_sifted_state, sift_states_bkref, transit_state,
2146 transit_state_sb, transit_state_mb, transit_state_bkref,
2147 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
2148 build_trtable): Remove preg argument, add dfa argument instead
2149 and remove dfa = preg->buffer initialization in the body.
2151 (check_node_accept_bytes, group_nodes_into_DFAstates,
2152 check_node_accept): Likewise. Use dfa->syntax instead of
2154 (check_arrival_add_next_nodes): Remove preg argument.
2156 * posix/regex_internal.h (re_match_context_t): Make input
2157 re_string_t instead of a pointer to it.
2158 * posix/regex_internal.c (re_string_construct_common): Don't clear
2160 (re_string_construct): ... but only here.
2161 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
2162 initialize fields to zero.
2163 (re_search_internal): Move input into mctx.input.
2164 (acquire_init_state_context, check_matching,
2165 check_halt_state_context, proceed_next_node,
2166 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
2167 transit_state, transit_state_sb, transit_state_mb,
2168 transit_state_bkref, get_subexp, check_arrival,
2169 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
2170 Change mctx->input into &mctx->input and mctx->input->field into
2173 2004-01-02 Jakub Jelinek <jakub@redhat.com>
2174 Paolo Bonzini <bonzini@gnu.org>
2176 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
2177 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
2178 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
2179 (re_string_context_at, re_string_reconstruct): Remove last argument.
2180 * posix/regex_internal.c (re_string_allocate): Initialize
2181 pstr->word_char and pstr->word_ops_used.
2182 (re_string_context_at): Remove newline_anchor argument.
2183 Use input->newline_anchor instead, swap && conditions.
2184 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
2185 Use input->word_char bitmap instead of IS_WORD_CHAR.
2186 (re_string_reconstruct): Likewise.
2187 Adjust re_string_context_at caller.
2188 * posix/regexec.c (acquire_init_state_context,
2189 check_halt_state_context, transit_state, transit_state_sb,
2190 transit_state_mb, transit_state_bkref, check_arrival,
2191 check_node_accept): Adjust re_string_context_at and
2192 re_string_reconstruct callers.
2193 (re_search_internal): Likewise. Set input.newline_anchor.
2194 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
2195 * posix/regcomp.c (init_word_char): Change return type to void.
2196 Set dfa->word_ops_used.
2197 (free_dfa_content): Don't free dfa->word_char.
2198 (parse_expression): Remove error handling for init_word_char.
2200 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
2202 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
2205 * posix/regex_internal.c (re_node_set_insert): Rewrite.
2207 2004-01-01 Ulrich Drepper <drepper@redhat.com>
2209 * posix/getconf.c: Update copyright year.
2210 * nss/getent.c: Likewise.
2211 * nscd/nscd_nischeck.c: Likewise.
2212 * iconv/iconvconfig.c: Likewise.
2213 * iconv/iconv_prog.c: Likewise.
2214 * elf/ldconfig.c: Likewise.
2215 * catgets/gencat.c: Likewise.
2216 * csu/version.c: Likewise.
2217 * elf/ldd.bash.in: Likewise.
2218 * elf/sprof.c (print_version): Likewise.
2219 * locale/programs/locale.c: Likewise.
2220 * locale/programs/localedef.c: Likewise.
2221 * nscd/nscd.c (print_version): Likewise.
2222 * debug/xtrace.sh: Likewise.
2223 * malloc/memusage.sh: Likewise.
2224 * malloc/mtrace.pl: Likewise.
2226 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
2228 * stdlib/strfmon.c: Make formatting of left-justified currency
2229 values match the the POSIX standard. When using format string
2230 "[%-14#5.4n]" to print -123.45, the result should be
2231 "[-$ 123.4500 ]", not "[-$123.4500 ]".
2233 2004-01-01 Andreas Jaeger <aj@suse.de>
2235 * resolv/Makefile (generated): New.
2237 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
2239 * CONFORMANCE: Update.
2241 2003-12-30 Paul Eggert <eggert@twinsun.com>
2243 * time/mktime.c: (my_mktime_localtime_r):
2244 Remove. All uses changed to __localtime_r.
2245 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
2246 get its implementation.
2247 Fix compile-command to allow for TIME_R_POSIX.
2249 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
2250 Remove. All uses changed to __localtime_r and __gmtime_r.
2251 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
2252 Include "time_r.h" to get their implementations.
2254 * time/timegm.c: Allow use in GNU applications outside glibc.
2255 [defined HAVE_CONFIG_H]: Include <config.h>.
2256 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
2257 Define __gmtime_r, and declare __mktime_internal.
2258 (timegm): Define via a prototype, since we can safely assume C89 now.
2260 * time/mktime.c (check_result): Use less-confusing report format.
2261 "long" -> "long int", as per usual GNU style.
2263 Don't loop if the iteration overflows time_t.
2264 Allow a negative step in the iteration.
2266 * time/mktime.c: Assume freestanding C89 or better.
2267 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
2269 (__P): Remove; not used.
2270 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
2271 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
2272 Prototypes use const * where appropriate.
2273 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
2274 which caused the testing code to dump core on some hosts.
2276 2003-12-31 Ulrich Drepper <drepper@redhat.com>
2278 * locale/setlocale.c (setlocale): Avoid duplicating locale names
2279 if we can reuse old strings.
2281 * inet/rcmd.c: Provide better error message in case of unknown
2282 host. Remove USE_IN_LIBIO.
2284 * nscd/nscd.init: Updated version, more conforming with current
2285 init file standards.
2287 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
2288 /var/run/nscd directory.
2289 (_PATH_NSCDSOCKET): Likewise.
2291 * test-skeleton.c (timeout_handler): Fix error message.
2293 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
2296 2003-12-30 Jakub Jelinek <jakub@redhat.com>
2298 * posix/regexec.c (get_subexp): Only set bkref_str after the first
2299 loop, use buf + bkref_str_off in the loop instead.
2300 * posix/bug-regex11.c (tests): Add 3 new tests.
2302 * posix/regexec.c (clean_state_log_if_need): Rename to...
2303 (clean_state_log_if_needed): ...this.
2304 (transit_state_mb, get_subexp_sub): Adjust callers.
2306 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
2307 failed. Reported by Steve Grubb.
2309 2003-12-29 Ulrich Drepper <drepper@redhat.com>
2311 * elf/elf.h: Add a few definitions from Solaris 9.
2313 2003-12-29 Andreas Schwab <schwab@suse.de>
2315 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
2316 $(fno_unit_at_a_time) to avoid reordering assembler output.
2318 2003-12-29 Jakub Jelinek <jakub@redhat.com>
2320 * posix/regexec.c (re_copy_regs): Revert comment change.
2321 Avoid memory leak if realloc fails.
2322 (proceed_next_node): Return -2 if re_node_set_insert fails.
2323 Return -2 if push_fail_stack fails.
2324 (push_fail_stack): Change fs->alloc only after successful realloc.
2325 (pop_fail_stack): Formatting.
2326 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
2327 (check_arrival_add_next_nodes): Merge identical statements
2330 * signal/Makefile (tests): Add tst-raise.
2331 * signal/tst-raise.c: New test.
2333 2003-12-28 Ulrich Drepper <drepper@redhat.com>
2335 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
2337 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
2338 (push_fail_stack): Add missing check for failed memory allocation.
2340 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
2341 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
2344 2003-12-28 Andreas Jaeger <aj@suse.de>
2346 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
2347 overflow for 0 as argument. Raise Invalid exception for negative args.
2348 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2349 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
2350 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
2351 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
2352 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
2353 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
2354 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
2355 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
2356 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2357 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
2358 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
2360 * math/libm-test.inc (yn_test): Expect invalid exception for
2362 (y0_test): Likewise.
2363 (y1_test): Likewise.
2365 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
2366 execptions for exp(NaN).
2368 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
2370 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
2371 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
2372 among the tokens, rather than among the epsilon-transiting nodes.
2373 (re_token_t): Add the opt_subexp flag.
2374 * posix/regcomp.c (optimize_utf8, calc_first,
2375 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
2376 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
2377 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
2378 OP_DUP_ASTERISK and marking optional subexpressions
2379 as such using mark_opt_subexp.
2380 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
2381 and pass it to update_regs.
2382 (update_regs): Use the PREV_INDEX_MATCH parameter, together
2383 with the opt_subexp flag, in order to discard a final empty
2384 match of a repeated subexpression.
2385 * posix/BOOST.tests: Adjust test vectors.
2386 * posix/PCRE.tests: Likewise.
2387 * posix/rxspencer/tests: Likewise.
2389 2000-05-22 Jakub Jelinek <jakub@redhat.com>
2391 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
2392 with omitted middle operand.
2394 2003-12-22 Jakub Jelinek <jakub@redhat.com>
2396 * posix/regcomp.c: Remove C99-ism.
2397 * posix/tst-rxspencer.c: Likewise.
2398 Based on a patch by Alex Davis <alex14641@yahoo.com>.
2400 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
2402 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
2403 (re_string_allocate, re_string_construct, re_string_reconstruct,
2404 re_string_realloc_buffers, build_wcs_buffer,
2405 build_wcs_upper_buffer, build_upper_buffer,
2406 re_string_translate_buffer, re_string_destruct,
2407 re_string_elem_size_at, re_string_char_size_at,
2408 re_string_wchar_at, re_string_context_at,
2409 re_node_set_alloc, re_node_set_init_1
2410 re_node_set_init_2, re_node_set_init_copy,
2411 re_node_set_add_intersect, re_node_set_init_union,
2412 re_node_set_merge, re_node_set_insert
2413 re_node_set_compare, re_node_set_contains
2414 re_node_set_remove_at, re_dfa_add_node,
2415 re_acquire_state, re_acquire_state_context,
2416 free_state): Add internal_function to declaration.
2418 * posix/regexec.c (match_ctx_init, match_ctx_clean,
2419 match_ctx_free, match_ctx_free_subtops,
2420 match_ctx_add_entry, search_cur_bkref_entry,
2421 match_ctx_clear_flag, match_ctx_add_subtop,
2422 match_ctx_add_sublast, sift_ctx_init,
2423 re_search_internal, re_search_2_stub, re_search_stub,
2424 re_copy_regs, acquire_init_state_context,
2425 prune_impossible_nodes, check_matching,
2426 check_halt_node_context, check_halt_state_context
2427 update_regs, proceed_next_node, push_fail_stack,
2428 pop_fail_stack, set_regs, free_fail_stack_return,
2429 sift_states_iter_mb, sift_states_backward
2430 update_cur_sifted_state, add_epsilon_src_nodes,
2431 sub_epsilon_src_nodes, check_dst_limits,
2432 check_dst_limits_calc_pos, check_subexp_limits,
2433 sift_states_bkref, clean_state_log_if_need,
2434 merge_state_array, transit_state,
2435 check_subexp_matching_top, transit_state_sb,
2436 transit_state_mb, transit_state_bkref,
2437 get_subexp, get_subexp_sub, find_subexp_node,
2438 check_arrival, check_arrival_add_next_nodes,
2439 find_collation_sequence_value, check_arrival_expand_ecl,
2440 check_arrival_expand_ecl_sub, expand_bkref_cache,
2441 build_trtable, check_node_accept_bytes, extend_buffers,
2442 group_nodes_into_DFAstates, check_node_accept): Likewise.
2444 * posix/regex_internal.c (re_string_construct_common,
2445 re_string_skip_chars, create_newstate_common,
2446 register_state, create_ci_newstate, create_cd_newstate,
2447 calc_state_hash): Likewise.
2448 (re_string_peek_byte_case, re_fetch_byte_case): Change
2449 declaration from ANSI to K&R.
2451 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
2453 * posix/regexec.c (build_trtable): Don't allocate the trtable
2454 until state->word_trtable is known. Don't hardcode UINT_BITS
2455 iterations on each bitset item.
2457 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2459 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
2460 Initialize REF before passing it to _dl_lookup_symbol.
2462 2003-12-21 Roland McGrath <roland@frob.com>
2464 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
2466 2003-12-21 Jakub Jelinek <jakub@redhat.com>
2468 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
2470 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
2471 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
2472 * posix/bug-regex19.c (tests): Add new tests.
2474 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
2476 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
2477 after checking syntax. Optimize.
2478 (calc_first): Fix comment.
2479 * posix/bug-regex13.c (tests): Add new tests.
2481 2003-12-21 Roland McGrath <roland@redhat.com>
2483 * manual/arith.texi (Parsing of Integers): Typo fix.
2485 2003-12-20 Roland McGrath <roland@frob.com>
2487 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
2488 add missing dereference of IFREQS before counting loop.
2490 2003-12-21 Andreas Schwab <schwab@suse.de>
2492 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
2495 2003-12-20 Ulrich Drepper <drepper@redhat.com>
2497 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
2499 2003-12-18 Ulrich Drepper <drepper@redhat.com>
2501 * stdio-common/printf_fp.c: Add support to use alternative decimal
2503 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
2504 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
2506 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2508 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
2509 reload PIC if we need to call __syscall_error, cleanup asm.
2511 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
2513 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
2514 FE_ALL_EXCEPT before complimenting.
2515 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
2516 and gcc '+r' constraint.
2517 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
2518 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
2519 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
2520 exception bits, OR with envp, pass to fesetenv.
2521 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
2522 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
2523 triggered by M_PI/69.69 converted to single precision.
2524 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
2525 bits not raised exception bits.
2527 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
2528 correct build strings.
2529 * sysdeps/hppa/dl-fptr.h: New file.
2530 * sysdeps/hppa/dl-fptr.c: Removed.
2531 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
2532 remove const qualifier for map.
2533 (_dl_function_address): Removed.
2534 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
2535 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
2536 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
2537 DL_DT_FINI_ADDRESS use the previous two macros.
2539 2003-12-17 Jakub Jelinek <jakub@redhat.com>
2541 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
2542 (tr_memalignhook): New function.
2543 (mtrace): Register tr_memalignhook.
2544 (muntrace): Deregister tr_memalignhook.
2545 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
2546 call it directly instead of memalign_internal.
2548 2003-12-17 Ulrich Drepper <drepper@redhat.com>
2550 * misc/mntent_r.c: Change encoding to match recently changed decoder.
2551 Patch by Alexander Achenbach <xela@slit.de>.
2553 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
2555 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
2558 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
2560 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
2561 conditional to include typedef elf_vrreg_t.
2563 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
2565 * posix/regexec.c (re_search_internal): Limit search to the
2566 beginning of the buffer if the initial states are empty for
2567 contexts that do not include CONTEXT_BEGBUF or, if
2568 !preg->newline_anchor, that do not include any one of
2569 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
2571 2003-12-17 Andreas Jaeger <aj@suse.de>
2573 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
2574 Kevin Pedretti <pedretti@ieee.org>.
2576 2003-12-17 Ulrich Drepper <drepper@redhat.com>
2578 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
2579 removes the visibility attributes which might be defined earlier
2580 for some gcc versions. Instead spell out what strong_alias does
2581 plus the visibility.
2583 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
2585 * posix/regex_internal.h: Make sure the regex code compile
2586 with non-GCC compilers by hiding attributes.
2588 2003-12-16 Jakub Jelinek <jakub@redhat.com>
2589 Paolo Bonzini <bonzini@gnu.org>
2591 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
2592 dests_ch items that are empty.
2594 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
2596 * posix/regexec.c (check_arrival): Remove duplicate test.
2598 2003-12-15 Ulrich Drepper <drepper@redhat.com>
2600 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
2601 * posix/regex_internal.c: Likewise.
2602 * posix/regexec.c: Likewise.
2603 Patch by Paolo Bonzini.
2605 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
2607 * posix/regex_internal.c (re_acquire_state_context):
2608 Compare the node sets after all the other comparisons.
2610 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
2612 * posix/regexec.c (find_subexp_node, check_arrival,
2613 check_arrival_add_next_nodes, check_arrival_expand_ecl,
2614 check_arrival_expand_ecl_sub, expand_bkref_cache):
2615 Rename the FL_OPEN parameter to TYPE, which is either
2616 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
2618 2003-12-12 Andreas Jaeger <aj@suse.de>
2620 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
2623 2003-12-11 Ulrich Drepper <drepper@redhat.com>
2625 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
2626 There might always be processes which have no vDSO.
2627 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
2628 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2630 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
2632 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
2635 2003-12-01 Jes Sorensen <jes@wildopensource.com>
2637 * rt/tst-clock.c (do_test): Print message when skipping
2638 CLOCK_PROCESS_CPUTIME_ID test.
2640 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
2641 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
2643 2003-12-02 David Mosberger <davidm@hpl.hp.com>
2645 * sysdeps/ia64/elf/initfini.c: Add unwind info.
2647 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
2649 (elf_machine_dynamic): Mark with attributes "unused" and "const".
2650 (elf_machine_runtime_setup): Likewise.
2652 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
2653 attribute "always_inline".
2654 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
2657 * configure.in: Check whether compiler has libunwind support.
2658 * config.make.in (have-cc-with-libunwind): New variable.
2659 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
2660 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
2663 2003-11-12 David Mosberger <davidm@hpl.hp.com>
2665 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
2666 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
2667 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
2670 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
2671 instead of DO_CALL().
2673 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
2676 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
2677 to take advantage of DO_CALL() macro.
2678 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
2679 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
2681 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
2682 program header. On ia64, the check failed previously because
2683 there are two program headers.
2685 2003-12-10 Andreas Jaeger <aj@suse.de>
2686 Ruediger Oertel <ro@suse.de>
2688 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
2690 2003-12-07 Ulrich Drepper <drepper@redhat.com>
2692 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
2693 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2694 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2695 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2696 * sysdeps/generic/s_nexttowardf.c: Likewise.
2697 * math/Makefile (tests): Add bug-nexttoward.
2698 * math/bug-nexttoward.c: New file.
2700 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
2701 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2702 * math/bug-nextafter.c (main): Add tests for overflow and negative
2705 2003-12-06 Ulrich Drepper <drepper@redhat.com>
2707 * math/Makefile (tests): Add bug-nextafter.
2708 * math/bug-nextafter.c: New file.
2709 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
2710 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2711 * math/libm-test.inc (nextafter_test): Add test for overflow after
2714 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
2716 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
2718 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
2720 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2722 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
2724 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
2725 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
2726 (END): Add cfi_endproc directive.
2727 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
2728 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
2729 cfi_startproc and cfi_endproc directive.
2730 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
2731 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
2732 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
2733 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
2734 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2736 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2738 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
2739 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
2740 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
2741 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
2742 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
2743 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
2744 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
2745 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
2746 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
2748 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
2750 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
2751 directives. Move thread_start out of ENTRY/PSEUDO_END block to
2752 make backchain terminate.
2753 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2755 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
2756 (unwind_backtrace, unwind_getip): New variables.
2757 (init, __backchain_backtrace, backtrace_helper): New functions.
2758 (__backtrace): Use unwind info for backtrace instead of backchain
2759 walking if the unwind functions can be found.
2760 * sysdeps/s390/s390-64/backtrace.c: Likewise.
2762 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
2764 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
2765 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
2766 (elf_prstatus32, elf_prpsinfo32): New structures.
2767 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
2769 * scripts/data/c++-types-s390-linux-gnu.data: New file.
2770 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
2772 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
2774 * stdlib/strfmon.c: Correct formatting of international currency
2775 values. The international currency formatting should prefer the
2776 int_* values if they are set for a locale, and use the domestic
2777 values if the int_* values are unset.
2779 2003-12-03 Jakub Jelinek <jakub@redhat.com>
2781 * posix/Makefile (distribute): Add BOOST.tests.
2782 (tests): Add tst-boost, depend on tst-boost-mem.
2783 (generated): Add tst-boost-mem and tst-boost.mtrace.
2784 (tst-boost-ARGS, tst-boost-ENV): Set.
2785 ($(objpfx)tst-boost-mem): New.
2786 * posix/tst-boost.c: New test.
2787 * posix/BOOST.tests: New file.
2789 * posix/Makefile (distribute): Add PCRE.tests.
2790 (tests): Add tst-pcre, depend on tst-pcre-mem.
2791 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
2792 (tst-pcre-ARGS, tst-pcre-ENV): Set.
2793 ($(objpfx)tst-pcre-mem): New.
2794 * posix/tst-pcre.c: New test.
2795 * posix/PCRE.tests: New file.
2797 2003-12-02 Jakub Jelinek <jakub@redhat.com>
2799 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
2801 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
2802 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2804 2003-12-03 Ulrich Drepper <drepper@redhat.com>
2806 * locale/programs/locarchive.c (enlarge_archive): Print size info
2807 only in verbose mode.
2809 * locale/iso-3166.def: Three letter code of Romania changed.
2811 2003-12-02 Roland McGrath <roland@redhat.com>
2813 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
2814 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
2816 2003-11-30 Andreas Jaeger <aj@suse.de>
2818 * config.make.in (fno-unit-at-a-time): Define.
2820 * configure.in: Add test for -fno-unit-at-a-time.
2823 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
2824 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
2826 2003-12-01 Automatic
2828 * version.h (VERSION): Bump to 2.3.3.
2830 2003-11-30 Andreas Jaeger <aj@suse.de>
2832 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
2833 decrease stack usage.
2835 2003-11-30 Andreas Schwab <schwab@suse.de>
2837 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
2838 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2840 2003-11-29 Ulrich Drepper <drepper@redhat.com>
2842 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
2843 recognize \134 as well.
2845 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
2847 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
2849 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
2851 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
2853 (struct ia64_fpreg): New definition.
2855 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
2857 (ELF_NGREG): New #define.
2858 (ELF_NFPREG): Likewise.
2859 (elf_greg_t): New type.
2860 (elf_gregset_t): Likewise.
2861 (elf_fpreg_t): Likewise.
2862 (elf_fpregset_t): Likewise.
2864 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
2866 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
2868 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
2869 (pt_all_user_regs): New type.
2871 2003-10-10 Simon Josefsson <jas@extundo.com>
2873 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
2874 strchrnul.h, strndup.h (from gnulib).
2875 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
2877 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
2878 Autoconf manual version.
2879 * argp/argp.h: Map __restrict to restrict or empty string when
2880 necessary, copied verbatim from posix/regex.h.
2882 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
2884 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
2885 addition to c++-types-$(base-machine)-$(config-os).data.
2886 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
2887 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
2889 2003-11-28 Ulrich Drepper <drepper@redhat.com>
2891 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
2893 * manual/sysinfo.texi (mtab): Adjust description accordingly.
2894 Reported by Andries.Brouwer@cwi.nl.
2896 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
2897 to compensate other setup.
2899 2003-11-27 Andreas Jaeger <aj@suse.de>
2901 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
2903 * math/libm-test.inc (atan2_test): Add test that run infinitly.
2904 Reported by "Willus" <etc231etc231@willus.com>.
2906 2003-11-27 Michael Matz <matz@suse.de>
2908 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
2911 2003-11-28 Jakub Jelinek <jakub@redhat.com>
2913 * posix/regexec.c (acquire_init_state_context): Make inline.
2914 Add always_inline attribute.
2915 (check_matching): Add BE macro. Move if (cur_state->has_backref)
2916 into if (dfa->nbackref).
2917 (sift_states_backward): Fix comment.
2918 (transit_state): Add BE macro. Move if (next_state->has_backref)
2919 into if (dfa->nbackref && next_state). Don't check for next_state
2921 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
2923 (parse_expression): Only call init_word_char if word context will be
2926 * posix/bug-regex11.c (tests): Add new tests.
2928 * posix/tst-regex.c: Include getopt.h.
2929 (timing): New variable.
2930 (main): Set timing to 1 if --timing argument is present.
2932 (run_test, run_test_backwards): Handle timing.
2934 2003-11-27 Jakub Jelinek <jakub@redhat.com>
2936 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
2937 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
2938 offsets_needed fields. Change icase, is_utf8 and map_notascii
2939 type from int bitfield to unsigned char.
2940 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
2941 (build_wcs_upper_buffer): Change prototype to return int.
2942 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
2943 defines, add prototypes.
2944 * posix/regex_internal.c (re_string_allocate): Don't initialize
2945 stop here. Don't initialize mbs_case. Set valid_raw_len.
2946 Use mbs_allocated instead of MBS_* macros.
2947 (re_string_construct): Don't initialize stop and valid_len here.
2948 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
2949 macros. Reallocate buffers if build_wcs_upper_buffer converted
2950 too few bytes. Set valid_len to bufs_len only for single byte
2951 no translation and set in that case valid_raw_len as well.
2952 (re_string_realloc_buffers): Reallocate offsets if not NULL.
2953 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
2955 (re_string_construct_common): Initialize raw_len, mbs_allocated,
2957 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
2958 after it. Set valid_raw_len. Don't set mbs_case.
2959 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
2960 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
2961 before mbrtowc instead of after it. If upper case character
2962 uses different number of bytes than lower case, goto to the
2963 slow path. Don't call towupper unnecessarily twice. Set
2964 valid_raw_len as well. Handle in the slow path the case if
2965 lower and upper case use different number of characters.
2967 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
2968 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
2970 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
2972 (re_string_reconstruct): Use raw_len/raw_stop to initialize
2973 len/stop. Clear valid_raw_len and offsets_needed when clearing
2974 valid_len. Use mbs_allocated instead of MBS_* macros.
2975 Check original offset against valid_raw_len instead of valid_len.
2976 Remove mbs_case handling. Adjust valid_raw_len together with
2977 valid_len. If is_utf8 and looking for tip context, apply
2978 pstr->trans first. If buffers start with partial multi-byte
2979 character, initialize mbs array as well if mbs_allocated.
2980 Check return value of build_wcs_upper_buffer.
2981 (re_string_peek_byte_case): New function.
2982 (re_string_fetch_byte_case): New function.
2983 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
2984 Don't free mbs_case. Free offsets.
2985 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
2987 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
2988 as well. Use valid_raw_len instead of valid_len when looking
2989 through fastmap. Adjust registers through input.offsets.
2990 (extend_buffers): Allow build_wcs_upper_buffer to fail.
2991 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
2994 2003-11-26 Jakub Jelinek <jakub@redhat.com>
2996 * posix/regexec.c (check_subexp_limits): Only check close
2997 subexpression limitation if one is found. Formatting.
2998 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
3000 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
3003 2003-11-26 Ulrich Drepper <drepper@redhat.com>
3005 * sysdeps/unix/sysv/linux/kernel-features.h
3006 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
3007 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
3008 if __ASSUME_PROT_GROWSUPDOWN is defined.
3010 2003-11-26 Andreas Jaeger <aj@suse.de>
3012 * sysdeps/unix/sysv/linux/dl-execstack.c
3013 (_dl_make_stack_executable): Set dl_stack_flags always for
3016 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
3018 * locale/program/ld-monetary.c: Only check the first three
3019 characters in int_curr_symbol against ISO-4217, to make the
3020 separator character used by a locale independent of the content
3022 * locale/iso-4217.def: Remove the space character from all
3023 currency values to get the new test code in ld-monetary.c working.
3025 2003-11-21 David Mosberger <davidm@hpl.hp.com>
3027 * elf/soinit.c (_fini): Put _fini() in .init_array section if
3028 HAVE_INITFINI_ARRAY is defined.
3030 2003-11-25 Ulrich Drepper <drepper@redhat.com>
3032 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
3033 Define it appropriately after last change. Use it where __sqrtl
3036 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
3038 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
3039 sqrt for gcc 3.3 and above.
3041 2003-11-25 Ulrich Drepper <drepper@redhat.com>
3043 * posix/runptests.c (main): Make errors fatal.
3044 * posix/PTESTS: One test in GA135 and GA136 check functionality
3045 which seems not guaranteed.
3047 2003-11-25 Jakub Jelinek <jakub@redhat.com>
3049 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
3050 returned REG_NOMATCH, set match_last to -1. Don't initialize
3051 pmatch[0] needlessly. Fix comment.
3052 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
3053 (set_regs): Fix comment.
3054 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
3055 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
3056 (build_charclass_op): Set has_plural_match if adding both
3057 SIMPLE_BRACKET and COMPLEX_BRACKET.
3058 * posix/bug-regex11.c (tests): Fix register values for one commented
3059 out test. Add new tests.
3061 * posix/regex_internal.c (re_string_allocate): Make sure init_len
3062 is at least dfa->mb_cur_max.
3063 (re_string_reconstruct): If is_utf8, don't fall back into
3064 re_string_skip_chars just because idx points into a middle of
3065 valid UTF-8 character. Instead, set the wcs bytes which correspond
3066 to the partial character bytes to WEOF.
3067 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
3068 instead of dfa->nodes_len + 1 state_log entries initially.
3069 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
3072 2003-11-24 Jakub Jelinek <jakub@redhat.com>
3074 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
3076 (re_dfa_t): Add sb_char field.
3077 (bitset_mask): New function.
3078 * posix/regcomp.c (free_dfa_content): Free sb_char.
3079 (init_dfa): Don't initialize word_char unnecessarily.
3081 (duplicate_node): Don't duplicate !word_char CHARACTERs with
3082 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
3083 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
3084 (duplicate_node_closure): Handle clone_dest == -1 from
3086 (peek_token): Initialize word_char bit.
3087 (parse_expression, parse_dup_op): Add comments.
3088 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
3089 starting bytes here at the beginning. Mask off the bits right
3090 before creating SIMPLE_BRACKET.
3091 (build_charclass_op): Likewise.
3092 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
3093 set accept bits for single-byte characters.
3094 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
3095 being single byte encoded and the rest multi-byte.
3096 * posix/bug-regex19.c (tests): Add new tests.
3097 (do_mb_tests): Initialize t to *test.
3098 (main): Fail even on do_mb_tests errors.
3100 2003-11-23 Ulrich Drepper <drepper@redhat.com>
3102 * posix/regexec.c: Correct several memory allocation problems.
3104 * posix/regex_internal.c: Likewise.
3105 * posix/regcomp.c: Likewise.
3107 * posix/regexec.c: Add const in a number of places.
3108 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
3109 debugging. Its value isn't important.
3111 2003-11-22 Ulrich Drepper <drepper@redhat.com>
3113 * posix/PTESTS: Fix first test of GA143.
3115 2003-11-21 Ulrich Drepper <drepper@redhat.com>
3117 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
3120 * locale/programs/charmap.c (charmap_read): If encoding is found
3121 not ASCII compatible, set enc_not_ascii_compatible.
3122 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
3123 * locale/programs/ld-ctype.c (ctype_startup): If
3124 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
3126 2003-11-22 Jakub Jelinek <jakub@redhat.com>
3128 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
3129 if !__libc_enable_secure.
3131 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
3133 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
3134 (dl_main): Set GL(dl_use_load_bias) default.
3135 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
3136 Add EXTRA_LD_ENVVARS_13.
3137 * elf/dl-support.c (_dl_use_load_bias): New variable.
3138 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
3139 with GL(dl_use_load_bias).
3140 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
3142 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
3143 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
3144 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
3145 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
3146 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
3148 2003-11-21 Ulrich Drepper <drepper@redhat.com>
3150 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
3152 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
3153 pointer. Adjust callers.
3155 * posix/regcomp.c (fetch_token): Change interface to match
3156 peek_token. This avoids some copying and reduces code size.
3158 2003-11-21 Jakub Jelinek <jakub@redhat.com>
3160 * posix/bug-regex19.c (tests): Add more tests.
3162 * posix/bug-regex11.c: And one more commented out test.
3164 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
3165 tests multiple times unnecessarily.
3167 * posix/bug-regex19.c (BRE, ERE): Define.
3168 (tests): Add many new tests, remove UTF-8 ones.
3169 (do_one_test, do_mb_tests): New functions.
3170 (main): Rewritten using do_one_test and do_mb_tests.
3172 2003-11-20 Ulrich Drepper <drepper@redhat.com>
3174 * posix/PTESTS: Fix first test in GA143.
3176 2003-11-20 Jakub Jelinek <jakub@redhat.com>
3178 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
3180 * posix/regex_internal.c (create_newstate_common, free_state):
3181 Don't free trtable_search.
3182 * posix/regexec.c (check_matching): Remove fl_search argument.
3183 (transit_state_sb): Likewise. #ifdef out as unused.
3184 (build_trtable): Remove fl_search argument. Set state->word_trtable
3185 and state->trtable. Build separate word and non-word tables if
3186 multi-byte and they differ for some character.
3187 (transit_state): Remove fl_search argument. Don't update
3188 state->trtable here. Handle state->word_trtable.
3189 #ifdef out unused call to transit_state_sb.
3190 (re_search_internal): Update check_matching caller.
3191 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
3192 bitmask for multi-byte locales.
3193 * posix/bug-regex19.c (tests): Enable some commented out tests, add
3195 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
3196 multi-byte. Don't run identical multi-byte tests multiple times
3198 (main): Check setlocale return value.
3199 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
3200 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
3201 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
3202 here, without --utf8 argument but with MALLOC_TRACE.
3204 2003-11-19 Jakub Jelinek <jakub@redhat.com>
3206 * posix/regexec.c (extend_buffers): Don't allocate
3207 twice as big state_log as needed. Don't modify pstr->valid_len
3208 for mb_cur_max == 1 !icase !trans.
3210 * posix/regcomp.c (free_bin_tree): Removed.
3211 (create_tree): Add dfa argument. Don't call re_malloc for
3212 each tree, instead allocate from str_tree_storage.
3213 (re_dfa_add_tree_node): New function.
3214 (free_dfa_content): Handle freeing if dfa->nodes == NULL
3215 or dfa->state_table == NULL.
3216 (re_compile_internal): Call free_dfa_content if init_dfa
3217 fails. Call free_workarea_compile, re_string_destruct
3218 and free_dfa_content for most of the other failure paths.
3219 (init_dfa): Initialize str_tree_storage_idx.
3220 Don't clear any fields on allocation failure.
3221 (free_workarea_compile): Free str_tree_storage chunks
3222 instead of free_bin_tree (dfa->str_tree).
3223 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
3224 followed by create_tree. Add dfa argument to remaining
3225 create_tree calls. Remove new_idx variable. Remove calls
3227 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
3228 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
3229 (duplicate_tree): Remove calls to free_bin_tree, add dfa
3230 argument to create_tree.
3231 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
3232 (bin_tree_storage_t): New type.
3233 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
3235 * posix/Makefile (tests): Add bug-regex21.
3236 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
3237 tst-rxspencer-mem and tst-rxspencer.mtrace.
3238 (tests): Depend on $(objpfx)bug-regex21-mem
3239 and $(objpfx)tst-rxspencer-mem.
3240 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
3241 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
3242 * posix/tst-rxspencer.c (main): Add call to mtrace.
3243 Free line at the end.
3244 * posix/bug-regex21.c: New test.
3246 2003-11-19 Ulrich Drepper <drepper@redhat.com>
3248 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
3250 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
3251 fails, just use the byte, do no fancy conversions.
3253 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
3255 (re_string_is_single_byte_char): Likewise.
3257 2003-11-18 Ulrich Drepper <drepper@redhat.com>
3259 * posix/regexec.c (get_subexp): After calling get_subexp_sub
3260 reload buf and bkref_str. Little optimization by avoiding memcmp.
3262 2003-11-14 David Mosberger <davidm@hpl.hp.com>
3264 * sysdeps/unix/sysv/linux/ia64/sysdep.h
3265 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
3266 that all existing GAS versions have a problem with .align inside
3268 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
3269 * sysdeps/ia64/memcpy.S: Likewise.
3270 * sysdeps/ia64/memset.S: Likewise.
3271 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
3272 out of .text into .rodata, where it belongs.
3274 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
3275 save/restore input-arguments, because they're necessarily
3276 preserved by the kernel to support syscall-restart.
3278 2003-11-18 Jakub Jelinek <jakub@redhat.com>
3280 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
3281 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
3283 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
3284 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
3285 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
3286 Handle OP_UTF8_PERIOD.
3287 (re_string_reconstruct): Set valid_len for single byte char searching
3288 with no translation and case sensitivity.
3289 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
3291 (re_compile_internal): Don't call optimize_utf8 if preg->translate
3293 (optimize_utf8): Remove BACK_SLASH case.
3294 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
3296 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
3297 any bits set and COMPLEX_BRACKET is used.
3298 * posix/regexec.c (transit_state_mb): Fix comment typo.
3299 (group_nodes_into_DFAstates, check_node_accept): Handle
3301 (check_node_accept_bytes): Likewise. Reorder slightly so that
3302 re_string_char_size_at and re_string_elem_size_at are called
3304 * posix/bug-regex20.c (BRE, ERE): Define.
3305 (tests): Use them to make lines shorter. Expect . to be
3306 optimized. Add lots of new tests.
3307 (main): Run (ATM just case sensitive) test with backwards searching
3310 2003-11-18 Jakub Jelinek <jakub@redhat.com>
3312 * io/bug-ftw4.c: Include string.h.
3313 * posix/fnmatch.c (mbsinit): Remove define.
3315 2003-11-17 Jakub Jelinek <jakub@redhat.com>
3317 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
3319 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
3320 followed by dup operator is expected to be optimized.
3322 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
3323 variables to the block where they are only used, initialize
3324 nrules only immediately before using it.
3326 2003-11-15 Andreas Jaeger <aj@suse.de>
3328 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
3329 * sysdeps/x86_64/fpu/s_truncl.S: New file.
3330 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
3331 * sysdeps/x86_64/fpu/s_floorl.S: New file.
3332 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
3333 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
3335 * math/libm-test.inc (floor_test): Test also ±0.25.
3336 (ceil_test): Test -0.25.
3338 2003-11-17 Ulrich Drepper <drepper@redhat.com>
3340 * sysdeps/posix/getaddrinfo.c: Add support for destination address
3341 selection according to RFC 3484.
3343 2003-11-15 Ulrich Drepper <drepper@redhat.com>
3345 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
3346 Replace last two parameters of re_string_allocate and
3347 re_string_construct with pointer to DFA.
3348 (re_dfa_t): Add map_notascii field.
3349 * posix/regcomp.c (re_compile_internal): Add call of
3350 re_string_construct.
3351 (init_dfa): Initialize map_notascii.
3352 * posix/regex_internal.c: Adjust definitions of re_string_allocate
3353 and re_string_construct.
3354 Pass DFA to re_string_construct. Adjust definition. Initialize
3356 (build_wcs_upper_buffer): If map_notascii is zero use simplified
3357 method to map ASCII values to upper case.
3358 * posix/regex.c: Include localeinfo.h.
3359 * posix/regexec.c: Adjust call of re_string_allocate.
3361 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
3362 * locale/localeinfo.h (LIMAGIC): Change value.
3363 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
3364 * locale/C-ctype.h: Likewise.
3365 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
3366 ASCII to non-ASCII value. Write out that value.
3368 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
3369 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
3371 2003-11-14 Jakub Jelinek <jakub@redhat.com>
3373 * posix/tst-rxspencer.c (check_match): @ without any following
3374 characters must match only end of string.
3375 (main): Fix filename in error message.
3377 2003-11-12 David Mosberger <davidm@hpl.hp.com>
3379 * sysdeps/ia64/dl-machine.h: Force inlining of
3380 elf_machine_runtime_setup().
3382 2003-11-13 Andreas Jaeger <aj@suse.de>
3384 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
3385 (CFLAGS-test-double.c): Likewise.
3386 (CFLAGS-test-ldouble.c): Likewise.
3387 (CPPFLAGS-test-ifloat.c): Likewise.
3388 (CPPFLAGS-test-idouble.c): Likewise.
3389 (CPPFLAGS-test-ildoubl.c): Likewise.
3391 * math/libm-test.inc (ceil_test): Test ceil (0.25).
3393 2003-11-04 Ulrich Drepper <drepper@redhat.com>
3395 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
3396 sends the netlink data.
3397 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
3399 2003-11-13 Jakub Jelinek <jakub@redhat.com>
3401 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
3402 with no bits set for >= 0x80 chars is seen.
3403 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
3405 (main): Run all tests with RE_ICASE as well.
3407 2003-11-13 Ulrich Drepper <drepper@redhat.com>
3409 * posix/Makefile: Add rules to build and run tst-rxspencer.
3410 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
3411 * posix/tst-rxspencer.c: New file.
3412 * posix/rxspencer/tests: New file.
3413 * posix/rxspencer/COPYRIGHT: New file.
3414 Patch mostly by Jakub Jelinek.
3416 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
3417 this is no option given the first token.
3419 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
3420 hyphen in range expression. Return EBRACK in this case.
3422 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
3423 we expect them or it's the last element in the bracket expression.
3424 Indicated by new parameter. Adjust all callers.
3426 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
3427 Prettier error messages.
3429 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
3430 number in {,} expression is larger.
3432 2003-11-13 Andreas Jaeger <aj@suse.de>
3434 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3435 Define appropriately for x86_64.
3436 (__ASSUME_UTIMES): Likewise.
3437 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
3439 * sysdeps/x86_64/fpu/s_ceill.S: New file.
3441 2003-11-13 Ulrich Drepper <drepper@redhat.com>
3443 * posix/regcomp.c (parse_expression): In BRE consecutive
3444 duplications are not allowed.
3446 2003-11-12 Ulrich Drepper <drepper@redhat.com>
3448 * posix/regcomp.c (parse_bracket_exp): If end of expression is
3449 seen, return EBRACK error, not BADPAT.
3451 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
3452 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
3453 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
3454 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
3456 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
3459 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
3460 * posix/runptests.c (main): Handle comments.
3461 * posix/PTESTS2C.sed: Handle comments.
3463 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3465 * posix/regcomp.c (optimize_utf8): New function.
3466 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
3468 (re_compile_internal): Call optimize_utf8 if not case insensitive
3469 and in UTF-8 locale.
3470 * posix/regex_internal.h: Ifdef out some prototypes if
3471 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
3472 * posix/Makefile (tests): Add bug-regex20.
3473 (bug-regex20-ENV): Add LOCPATH.
3474 * posix/bug-regex20.c: New test.
3476 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3478 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
3480 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3482 * posix/tst-regex.c (umemlen): New variable.
3483 (test_expr): Add expectedicase argument. Test case insensitive
3484 searches as well as backwards searches (case sensitive and
3486 (run_test): Add icase argument. Use it to compute regcomp flags.
3487 (run_test_backwards): New function.
3488 (main): Cast read to size_t to avoid warning. Set umemlen.
3489 Add expectedicase arguments to test_expr.
3490 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
3491 find previous character by walking back instead of converting
3492 all chars from beginning.
3494 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3496 * posix/regex_internal.h (struct re_string_t): Add is_utf8
3497 and mb_cur_max fields.
3498 (struct re_dfa_t): Likewise. Reorder fields to make structure
3499 smaller on 64-bit arches.
3500 (re_string_allocate, re_string_construct): Add mb_cur_max and
3502 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
3503 instead of MB_CUR_MAX.
3504 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
3505 instead of MB_CUR_MAX.
3506 (re_compile_internal): Pass new arguments to re_string_construct.
3507 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
3508 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
3510 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
3511 dfa->mb_cur_max instead of MB_CUR_MAX.
3512 * posix/regex_internal.c (re_string_construct_common): Add
3513 mb_cur_max and is_utf8 arguments. Initialize fields with them.
3514 (re_string_allocate, re_string_construct): Add mb_cur_max and
3515 is_utf8 arguments, pass them to re_string_construct_common.
3516 Use mb_cur_max instead of MB_CUR_MAX.
3517 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
3519 (re_string_reconstruct): Likewise.
3520 (re_string_context_at): Use input->mb_cur_max instead of
3522 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
3523 instead of MB_CUR_MAX.
3524 * posix/regexec.c (re_search_internal): Likewise.
3525 Pass new arguments to re_string_allocate.
3526 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
3528 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
3530 2003-11-12 Jakub Jelinek <jakub@redhat.com>
3532 * posix/Makefile (tests): Add bug-regex19.
3533 (bug-regex19-ENV): Add LOCPATH.
3534 * posix/bug-regex19.c: New test.
3536 2003-11-11 Jakub Jelinek <jakub@redhat.com>
3538 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
3539 with MB_CUR_MAX > 1 locales in the fastmap.
3541 2003-11-11 Jakub Jelinek <jakub@redhat.com>
3543 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
3544 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
3546 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
3547 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
3548 * posix/bug-regex17.c: New file
3549 * posix/bug-regex18.c: New file.
3551 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
3553 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
3554 Define __NR_pread/__NR_pwrite if not done in kernel headers
3556 2003-11-11 Roland McGrath <roland@redhat.com>
3558 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
3560 * manual/Makefile (info): Don't depend on dir-add.info.
3561 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
3562 (dir-add.info): Target removed, replaced with ...
3563 (dir-add.texi): New target.
3564 (distribute): Add it.
3565 (install): Remove variant with --section arguments.
3566 Let the @dircategory directives do their work.
3567 (mostlyclean): Don't remove dir-add.info here.
3568 (realclean): Remove dir-add.texi here.
3569 * manual/libc.texinfo: @include dir-add.texi
3570 * configure.in: Remove check for old Debian install-info.
3571 * configure: Regenerated.
3572 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
3574 2003-11-08 Andreas Schwab <schwab@suse.de>
3576 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
3578 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
3580 * io/ftwtest-sh: Fix nested sed commands.
3582 2003-11-10 Jakub Jelinek <jakub@redhat.com>
3584 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
3585 valid_len wide chars.
3587 2003-11-09 Roland McGrath <roland@redhat.com>
3589 * manual/examples/dir2.c (one): Add const to argument type.
3590 Reported by J de Haan <j.de.haan@home.nl>.
3592 2003-11-07 Ulrich Drepper <drepper@redhat.com>
3594 * po/pl.po: Update from translation team.
3596 2003-11-07 Jakub Jelinek <jakub@redhat.com>
3598 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
3599 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
3600 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
3601 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
3603 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
3604 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
3605 and nftw64@@GLIBC_2.3.3.
3607 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
3608 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
3609 * io/ftw.c (ftw_dir): Add old_dir argument.
3610 Clear result if it was FTW_SKIP_SIBLINGS after processing all
3611 dir entries. Change cwd back if old_dir != NULL.
3612 (process_entry): Adjust caller. Don't change cwd back here.
3613 Change FTW_SKIP_SUBTREE result to 0.
3614 (ftw_startup): Adjust ftw_dir caller.
3615 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
3616 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
3617 (options, main): Add --skip-subtree and --skip-siblings options.
3618 (cb): Use return FTW_CONTINUE instead of return 0.
3619 Handle --skip-subtree and --skip-siblings.
3620 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
3621 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
3623 2003-11-04 Jakub Jelinek <jakub@redhat.com>
3625 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
3627 * io/Makefile (tests): Add bug-ftw4.
3628 * io/bug-ftw4.c: New test.
3630 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
3632 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
3633 (struct _IO_FILE_complete_plus): New type.
3634 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
3635 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
3636 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
3637 Call _IO_old_init instead of _IO_init.
3639 2003-11-03 Ulrich Drepper <drepper@redhat.com>
3641 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
3643 * locale/iso-639.def: Add Blin.
3644 Patch by Daniel Yacob <locales@geez.org>.
3646 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
3648 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
3649 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
3651 2003-11-01 Randolph Chung <tausq@debian.org>
3653 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
3654 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
3655 Add missing parentheses.
3657 2003-11-01 Roland McGrath <roland@redhat.com>
3659 * libio/bug-ftell.c (do_test): Add a cast.
3661 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
3663 * Makerules (shlib.lds): Make sure that ld doesn't try to link
3664 anything while generating the linker script.
3666 2003-10-31 Roland McGrath <roland@redhat.com>
3668 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
3671 2003-10-29 Ulrich Drepper <drepper@redhat.com>
3673 * po/be.po: Update from translation team.
3675 2003-10-27 Ulrich Drepper <drepper@redhat.com>
3677 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
3680 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
3683 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
3684 rest of line. We use getline which means this cannot happen.
3686 2003-10-26 Ulrich Drepper <drepper@redhat.com>
3688 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
3689 Avoid infinite loops in case the mounts file is hosed.
3690 * io/Makefile: Add rules to build and run tst-statvfs.
3691 * io/tst-statvfs.c: New file.
3693 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
3694 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
3695 executables unless __RTLD_OPENEXEC flag is present.
3696 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
3697 _dl_map_object when loading the executable.
3699 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
3701 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
3703 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
3704 reverse lookup format for IPv6 addresses is using bitstring and
3706 * resolv/ns_name.c: Implement encoding and decoding bitstring in
3709 2003-10-23 Jakub Jelinek <jakub@redhat.com>
3711 * locale/programs/locale.c (show_info): Fix printing word values on
3712 64-bit big-endian architectures.
3714 2003-10-19 Bruno Haible <bruno@clisp.org>
3716 * intl/hash-string.c (hash_string): Zero-extend each char from the
3717 string; the old code did a sign-extend on some platforms.
3719 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
3721 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
3722 append options to these.
3723 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
3725 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
3727 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
3729 2003-10-15 Roland McGrath <roland@redhat.com>
3731 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
3732 Fake an entry for the main executable and then call __dl_iterate_phdr.
3733 * elf/Makefile (routines): Remove dl-iteratephdr-static.
3734 (elide-routines.os): Likewise.
3735 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
3736 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
3737 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
3739 2003-10-15 Jakub Jelinek <jakub@redhat.com>
3741 * elf/rtld.c (print_statistics): Print also number of relative
3744 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
3746 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
3747 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
3748 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
3749 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
3750 and undef JUMPTARGET before use.
3751 [PIC]: Save pic register around syscall.
3752 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
3753 Cleanup asm statment.
3755 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3757 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
3758 after trapa instruction.
3760 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3762 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
3764 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
3766 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
3768 2003-10-09 Roland McGrath <roland@redhat.com>
3770 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
3773 2003-10-08 Jakub Jelinek <jakub@redhat.com>
3775 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
3776 two identical copies of strings.
3778 2003-10-06 Ulrich Drepper <drepper@redhat.com>
3780 * posix/bug-regex11.c: Add some more tests which fail so far.
3781 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
3783 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
3785 * posix/bug-regex11.c: Add more backreference-related test cases.
3786 (main): Show the failing regex in the error messages.
3787 * posix/regexec.c (check_dst_limits_calc_pos):
3788 Simplify some nested conditionals. Replace if's with a switch
3790 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
3791 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
3792 does not change in the recursive invocation, fixing an infinite loop
3793 in the ()\1*\1* regex.
3794 (sift_states_backward): Fix function comment.
3795 * posix/regcomp.c (calc_epsdest): Add an assertion.
3797 2003-10-06 Ulrich Drepper <drepper@redhat.com>
3799 * manual/examples/testopt.c: Fix warnings. Better error message
3800 for missing -c argument.
3801 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
3803 * timezone/asia: Update from tzdata2003d.
3804 * timezone/australasia: Likewise.
3805 * timezone/backward: Likewise.
3806 * timezone/europe: Likewise.
3807 * timezone/iso3166.tab: Likewise.
3808 * timezone/northamerica: Likewise.
3809 * timezone/southamerica: Likewise.
3810 * timezone/zone.tab: Likewise.
3812 2003-10-05 Jakub Jelinek <jakub@redhat.com>
3814 * sysdeps/ia64/backtrace.c: New file.
3815 * sysdeps/x86_64/backtrace.c: New file.
3816 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
3817 (_Unwind_Backtrace): New prototype.
3819 2003-10-03 Ulrich Drepper <drepper@redhat.com>
3821 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
3822 * sysdeps/i386/elf/setjmp.S: Likewise.
3824 2003-10-02 Roland McGrath <roland@redhat.com>
3826 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
3827 * argp/argp-namefrob.h
3828 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
3829 (__argp_short_program_name): Don't declare fn, define it as a macro.
3831 2003-08-22 Simon Josefsson <jas@extundo.com>
3833 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
3835 * argp/argp-help.c: Don't include malloc.h, some platforms
3836 complain and it doesn't appear to be used.
3837 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
3839 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
3841 (hol_entry_long_iterate): Change __attribute to __attribute__.
3842 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
3843 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
3844 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
3845 modified after comments from Ulrich Drepper.
3846 (__argp_short_program_name): Ditto.
3847 (__argp_state_help, __argp_error, __argp_failure): Use it.
3848 (__argp_failure): Use strerror when necessary.
3850 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
3851 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
3852 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
3853 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
3854 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
3855 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
3856 non-unlocked functions.
3857 [!_LIBC]: Add prototypes for __argp_basename and
3858 __argp_short_program_name.
3860 * argp/argp-parse.c (argp_default_parser): Only use
3861 program_invocation{_short,}_name if declared.
3862 (parser_init): Use __argp_short_program_name.
3864 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
3865 '#include features.h'.
3867 * argp/argp.h [!__attribute__]: Define to nothing.
3869 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
3871 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
3872 for the first token in a subexpression as well.
3874 2003-10-02 Jakub Jelinek <jakub@redhat.com>
3876 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
3878 (parse_reg_exp): Likewise.
3879 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
3881 * posix/bug-regex11.c (tests): Add new tests.
3882 * posix/bug-regex12.c (tests): Add new test.
3884 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
3886 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
3887 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
3889 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
3891 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
3892 the old thread-m.h header too.
3894 2003-10-02 Ulrich Drepper <drepper@redhat.com>
3896 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
3897 back to 131027 since this is what the kernel enforces.
3899 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
3900 define it with libc_freeres_ptr.
3902 2003-10-01 Roland McGrath <roland@redhat.com>
3904 * elf/rtld.c (dl_main): Add cast in last change.
3906 2003-09-10 Chris Demetriou <cgd@broadcom.com>
3908 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
3909 "#if 0" surrounding most of contents.
3910 (SYSCALL_ERROR_LABEL): Define.
3911 (__SYSCALL_CLOBBERS): Add $10.
3912 (internal_syscall7): Remove.
3913 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3915 2003-09-30 Ulrich Drepper <drepper@redhat.com>
3917 * elf/rtld.c (dl_main): Also set l_map_start.
3919 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
3921 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
3922 to work around kernel problem.
3924 2003-09-27 Wolfram Gloger <wg@malloc.de>
3926 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
3927 "thread-m.h", so that default parameters can be overridden in a
3928 system-specific malloc-machine.h. Remove extra ; from extern "C"
3930 * sysdeps/generic/malloc-machine.h: New file.
3931 * sysdeps/mach/hurd/malloc-machine.h: New file.
3932 * malloc/thread-m.h: Removed.
3933 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
3934 is in sysdeps/generic/malloc-machine.h now.
3936 2003-09-29 Ulrich Drepper <drepper@redhat.com>
3938 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
3939 variables only used if TLS_TCB_AT_TP is defined into the #if
3942 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
3943 well to cover using long long in C90.
3945 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
3947 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
3948 Redefine and use __libc_cleanup_region_end instead.
3950 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
3952 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
3953 fix prototypes for picky C++ compilers.
3955 2003-09-27 Ulrich Drepper <drepper@redhat.com>
3957 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
3958 the device ID is invalid and return -1.
3959 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
3961 2003-09-26 Andreas Schwab <schwab@suse.de>
3963 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
3964 rt_sigprocmask system call.
3966 2003-09-25 Roland McGrath <roland@redhat.com>
3968 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
3969 Don't check for zero __libc_stack_end, it should be initialized.
3970 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
3971 and fall back if it fails with EINVAL.
3972 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
3974 2003-09-25 Jakub Jelinek <jakub@redhat.com>
3976 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
3977 sysdeps/i386/dl-procinfo.c instead of
3978 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
3979 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
3982 2003-09-25 Ulrich Drepper <drepper@redhat.com>
3984 * posix/regcomp.c (peek_token): Remove recent changes for anchor
3986 (parse_reg_exp): Likewise.
3987 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
3989 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
3992 * nis/nis_table.c (nis_list): Always strdup string used with
3993 ibreq->ibr_name. Add several NULL pointer checks.
3995 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
3997 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
3998 * nis/nss_nisplus/nisplus-grp.c: Likewise.
3999 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
4000 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
4001 * nis/nss_nisplus/nisplus-network.c: Likewise.
4002 * nis/nss_nisplus/nisplus-proto.c: Likewise.
4003 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4004 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
4005 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
4006 * nis/nss_nisplus/nisplus-service.c: Likewise.
4007 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
4009 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
4011 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
4012 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
4013 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
4014 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4015 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
4016 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
4017 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
4018 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4019 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4020 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4021 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
4023 2003-09-25 Jakub Jelinek <jakub@redhat.com>
4025 * misc/syslog.c: Include locale.h.
4026 (vsyslog): Add date always in C locale %h %e %T format.
4028 2003-09-24 Paul Eggert <eggert@twinsun.com>
4030 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
4031 size_t overflow when reallocating storage.
4032 * argp/argp-help.c (make_hol, hol_append): Likewise.
4033 (SIZE_MAX): New macro.
4035 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
4037 * sysdeps/mach/hurd/bits/libc-lock.h
4038 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
4040 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
4042 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
4043 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
4044 #include_next dl-procinfo.h to get them.
4045 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
4046 (_DL_PLATFORMS_COUNT): Likewise.
4047 (_DL_FIRST_PLATFORM): Likewise.
4048 (_DL_HWCAP_PLATFORM): Likewise.
4049 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
4050 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
4051 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
4052 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
4053 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
4054 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
4055 HWCAP_IMPORTANT): Likewise.
4056 (_DL_PROCINFO_H_): Likewise.
4057 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
4058 (_dl_string_platform): Likewise.
4059 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
4060 * sysdeps/i386/dl-procinfo.c: ... here, new file.
4062 2003-09-24 Ulrich Drepper <drepper@redhat.com>
4064 * sysdeps/unix/sysv/linux/dl-execstack.c
4065 (_dl_make_stack_executable): Remember that we changed the permission.
4067 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
4068 __libc_stack_end. Patch by David Mosberger.
4070 2003-09-24 Jakub Jelinek <jakub@redhat.com>
4072 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
4073 __libc_stack_end@GLIBC_PRIVATE.
4075 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
4076 (_dl_sysdep_start): Set __libc_stack_end here.
4077 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
4079 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
4080 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
4081 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
4082 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
4083 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
4084 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
4085 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
4086 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
4087 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
4088 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
4089 (RTLD_START): Remove setting of __libc_stack_end.
4090 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
4091 (RTLD_START): Remove setting of __libc_stack_end.
4093 2003-09-24 Ulrich Drepper <drepper@redhat.com>
4095 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
4096 function definitions. Adjust macro expansions accordingly.
4097 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
4098 minor, makedev name.
4099 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
4101 2003-09-24 Jakub Jelinek <jakub@redhat.com>
4103 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
4106 2003-09-24 Jakub Jelinek <jakub@redhat.com>
4108 * nscd/Makefile (others): Add nscd before including ../Rules.
4110 2003-09-24 Ulrich Drepper <drepper@redhat.com>
4112 * nscd/Makefile: Add rules to build nscd as a PIE.
4113 * configure.in: Check for -fpie and -pie compiler options.
4114 * config.make.in (have-fpie): Define.
4116 2003-09-23 Ulrich Drepper <drepper@redhat.com>
4118 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
4120 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
4121 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
4122 * sysdeps/unix/sysv/linux/makedev.c: New file.
4123 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
4124 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
4125 (sysdep_routines): Add makedev.
4126 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
4127 major, minor, makedev.
4128 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
4130 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
4131 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
4132 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
4133 Code by Alexander Viro <aviro@redhat.com>.
4135 2003-09-23 Ulrich Drepper <drepper@redhat.com>
4137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
4138 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
4140 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
4141 for include Altivec support for PPC32. It was not compatible.
4142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
4143 offsets for ucontext_t change.
4144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
4145 for ucontext_t change. Add compatibility code.
4146 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
4147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
4148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
4149 Patch by Paul Mackerras <paulus@samba.org>.
4151 2003-02-25 Randolph Chung <tausq@debian.org>
4153 * sysdeps/hppa/Makefile: Include compat code in build.
4154 * sysdeps/hppa/libgcc-compat.c: New file.
4155 * sysdeps/hppa/Dist: Add libgcc-compat.c.
4156 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
4158 2003-09-23 Roland McGrath <roland@redhat.com>
4160 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
4161 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
4162 Move GL(dl_make_stack_executable_hook) initialization up.
4163 * elf/tst-execstack-prog.c: New file.
4164 * elf/Makefile (tests-execstack-yes): Add it.
4165 (LDFLAGS-tst-execstack-prog): New variable.
4167 2003-09-23 Jakub Jelinek <jakub@redhat.com>
4169 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
4170 before calling _dl_start, using %rip relative access.
4171 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
4174 2003-09-23 Roland McGrath <roland@redhat.com>
4176 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
4177 calling _dl_start, using GOTOFF access.
4179 * configure.in (libc_cv_z_execstack): New check.
4180 * configure: Regenerated.
4181 * config.make.in (have-z-execstack): New variable set by it.
4182 * elf/tst-execstack.c: New file.
4183 * elf/tst-execstack-mod.c: New file.
4184 * elf/tst-execstack-needed.c: New file.
4185 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
4187 (tests, modules-names): Conditionally include them.
4188 (distribute): Add tst-execstack-mod.c here.
4189 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
4190 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
4191 ($(objpfx)tst-execstack-needed): New target.
4192 (LDFLAGS-tst-execstack-needed): New variable.
4194 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
4195 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
4196 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
4197 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
4198 Initialize _dl_make_stack_executable_hook.
4199 * elf/dl-support.c: Define those new variables.
4200 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
4201 (_dl_phdr): Fix type.
4202 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
4203 enable execute permission for the stack if necessary.
4204 * sysdeps/generic/dl-execstack.c: New file.
4205 * elf/Makefile (dl-routines): Add it.
4206 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
4207 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
4209 2003-09-23 Ulrich Drepper <drepper@redhat.com>
4211 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
4213 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
4215 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
4216 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
4219 2003-09-22 Ulrich Drepper <drepper@redhat.com>
4221 * malloc/malloc.c: Include <stdint.h>.
4223 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
4225 * posix/regcomp.c (build_word_op): Rename like...
4226 (build_charclass_op): ...this. Accept two extra parameters,
4227 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
4228 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
4229 (parse_expression): Replace build_word_op with
4230 build_charclass_op, add new arguments, accept OP_SPACE
4232 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
4235 * posix/regcomp.c (peek_token): Don't look back for ( or |
4236 to check whether to treat a caret as special. It fails
4237 for the (extended) regex \(^.
4238 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
4239 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
4241 * posix/regexec.c: Check out of bounds value before shifting.
4243 * posix/regex_internal.h: Define __attribute for non-gcc.
4245 2003-09-22 Jakub Jelinek <jakub@redhat.com>
4247 * include/atomic.h (atomic_compare_and_exchange_val_rel,
4248 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
4251 * sysdeps/unix/opendir.c: Include string.h.
4253 2003-09-22 Ulrich Drepper <drepper@redhat.com>
4255 * timezone/zdump.c: Update from tzcode2003c.
4256 * timezone/zic.c: Likewise.
4257 * timezone/leapseconds: Update from tzdata2003c.
4259 2003-09-19 Ulrich Drepper <drepper@redhat.com>
4261 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
4262 final build to ease quality control.
4264 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
4265 ld.so, don't include NULL buffer pointer handling.
4267 2003-09-19 Jakub Jelinek <jakub@redhat.com>
4269 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
4271 2003-09-18 Jakub Jelinek <jakub@redhat.com>
4273 * libio/memstream.c (open_memstream): Use _IO_init instead of
4276 2003-09-17 Ulrich Drepper <drepper@redhat.com>
4278 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
4279 have to recognize octal and hexadecimal numbers as well. Simplify
4280 function, signs are handled in strtol.
4281 * posix/wordexp-test.c: Add tests for octal and hexadecimal
4282 numbers in arithmetic expressions.
4284 2003-09-17 Jakub Jelinek <jakub@redhat.com>
4286 * elf/Makefile (distribute): Add tst-alignmod.c.
4287 (tests): Add tst-align.
4288 (modules-names): Add tst-alignmod.
4289 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
4290 $(stack-align-test-flags).
4291 ($(objpfx)tst-align): Depend on libdl.
4292 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
4293 * elf/tst-align.c: New file.
4294 * elf/tst-alignmod.c: New file.
4295 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
4296 * misc/tst-tsearch.c: Include tst-stack-align.h.
4297 (stack_align_check): New array.
4298 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
4299 (main): Report error if stack was not enough aligned
4300 in cmp_fn or walk_action.
4301 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
4302 * stdlib/tst-qsort.c: Include tst-stack-align.h.
4303 (align_check): New var.
4304 (compare): Use TEST_STACK_ALIGN () macro.
4305 (main): Report error if stack was not enough aligned in compare.
4306 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
4307 unneeded -mpreferred-stack-boundary=4.
4308 * sysdeps/x86_64/tst-stack-align.h: New file.
4310 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
4311 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
4313 2003-09-17 Philip Blundell <philb@gnu.org>
4315 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
4317 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
4319 * sysdeps/arm/sysdep.h (DO_RET): New.
4321 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
4322 required but not defined. Improve test of error code.
4324 2003-09-17 Jakub Jelinek <jakub@redhat.com>
4326 * sysdeps/i386/Makefile (stack-align-test-flags): Add
4327 -malign-double -mpreferred-stack-boundary=4.
4329 2003-09-17 Ulrich Drepper <drepper@redhat.com>
4331 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
4332 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
4334 2003-09-15 Jakub Jelinek <jakub@redhat.com>
4336 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
4337 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
4339 2003-09-17 Jakub Jelinek <jakub@redhat.com>
4341 * Makeconfig (stack-align-test-flags): Set.
4342 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
4343 $(stack-align-test-flags).
4344 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
4345 (align_check): New var.
4346 (comp): Use TEST_STACK_ALIGN macro.
4347 (do_test): Fail if align_check != 1.
4348 * sysdeps/generic/tst-stack-align.h: New file.
4349 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
4350 * sysdeps/i386/i686/tst-stack-align.h: New file.
4352 2003-09-17 Ulrich Drepper <drepper@redhat.com>
4354 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
4355 stack which is aligned (mod 16).
4357 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
4358 Hans-Peter Nilsson <hp@axis.com>
4360 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
4361 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
4363 2003-09-17 Jakub Jelinek <jakub@redhat.com>
4365 * dirent/scandir.c: Include bits/libc-lock.h.
4366 (struct scandir_cancel_struct): New type.
4367 (cancel_handler): New function.
4368 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
4369 scandir_cancel_struct.
4371 2003-09-16 Ulrich Drepper <drepper@redhat.com>
4373 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
4374 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4375 Add internal_statvfs.
4376 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
4377 instead of including "internal_statvfs.c".
4378 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
4379 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
4380 Add code to avoid the stat calls on all the reported mount points
4381 when we can determine mismatch in advance.
4382 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
4383 USBDEVFS_SUPER_MAGIC.
4385 2003-09-16 Jakub Jelinek <jakub@redhat.com>
4387 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
4388 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
4390 2003-09-16 Bruno Haible <bruno@clisp.org>
4392 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
4393 invoking msgfmt, not before.
4395 2003-09-15 Jakub Jelinek <jakub@redhat.com>
4397 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
4398 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
4400 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
4401 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
4402 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
4403 * elf/dl-iteratephdr.c (cancel_handler): New function.
4404 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
4405 * elf/link.h (dl_iterate_phdr): Remove __THROW.
4406 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
4407 Add $(uses-callbacks).
4408 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
4409 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
4410 $(exceptions) to $(uses-callbacks).
4411 * Makeconfig (uses-callbacks): Set to $(exceptions).
4412 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
4414 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
4417 2003-09-15 Andreas Schwab <schwab@suse.de>
4419 * sysdeps/m68k/setjmp.c: Add hidden_def.
4421 2003-09-14 Ulrich Drepper <drepper@redhat.com>
4423 * libio/memstream.c (open_memstream): Don't allow wide char operations.
4425 * dirent/dirent.h: Remove __THROW from scandir.
4427 2003-09-14 Philip Blundell <philb@gnu.org>
4429 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
4432 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
4434 * sysdeps/arm/memset.S: Rewrite.
4436 2003-09-12 Jakub Jelinek <jakub@redhat.com>
4438 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
4439 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
4440 __SLONGWORD_TYPE otherwise.
4442 2003-09-14 Ulrich Drepper <drepper@redhat.com>
4444 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
4445 (CFLAGS-ftw64.c): Likewise.
4447 2003-09-13 Ulrich Drepper <drepper@redhat.com>
4449 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
4450 (CFLAGS-nscd_getgr_r.c): Likewise.
4451 (CFLAGS-nscd_gethst_r.c): Likewise.
4453 2003-09-12 Ulrich Drepper <drepper@redhat.com>
4455 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
4458 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
4459 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
4460 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
4461 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
4462 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
4463 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
4465 * misc/Makefile (CFLAGS-err.c): Likewise.
4466 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
4467 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
4468 CFLAGS-glob64.c): Likewise.
4469 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
4470 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
4471 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
4472 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
4473 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
4475 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
4477 * libio/stdio.h: Remove __THROW from cuserid prototype.
4479 * locale/loadarchive.c: Use only non-cancelable interfaces.
4480 * resolv/herror.c (herror): Likewise.
4482 * malloc/hooks.c: Before using IO stream mark stream so it uses
4483 only non-cancelable interfaces.
4484 * malloc/malloc.c: Likewise.
4485 * posix/getopt.c: Likewise.
4488 2003-09-11 Jakub Jelinek <jakub@redhat.com>
4490 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
4492 2003-09-12 Ulrich Drepper <drepper@redhat.com>
4494 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
4496 * misc/err.h: Remove __THROW from all prototypes.
4498 * posix/getopt.h (__THROW): Define if not already defined. Add
4499 __THROW to the getopt functions.
4501 2003-09-11 Ulrich Drepper <drepper@redhat.com>
4503 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
4504 (CFLAGS-fts.c): Likewise.
4505 * io/fcntl.h: Remove __THROW from lockf prototypes.
4506 * io/fts.h: Remove most __THROW.
4508 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
4510 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
4514 2003-09-11 Jakub Jelinek <jakub@redhat.com>
4516 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
4517 _IO_free_backup_area call.
4519 2003-09-10 Chris Demetriou <cgd@broadcom.com>
4521 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
4523 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
4524 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
4525 Also, only assert off_t size is 4 for N32 and O32, and clean up
4527 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
4529 2003-09-10 Roland McGrath <roland@redhat.com>
4531 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
4532 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
4533 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
4534 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
4535 Reported by Daniel Jacobowitz <drow@mvista.com>.
4537 2003-09-10 Jakub Jelinek <jakub@redhat.com>
4539 * string/Makefile (strop-tests): Add memccpy.
4540 * string/test-memccpy.c: New test.
4542 2003-09-09 Jakub Jelinek <jakub@redhat.com>
4544 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
4545 siginfo_t * argument before, change into struct ucontext *.
4546 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
4547 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
4548 instead of structure.
4549 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
4552 2003-09-09 Ulrich Drepper <drepper@redhat.com>
4554 * string/stratcliff.c (main): Check memccpy.
4556 2003-04-11 Jes Sorensen <jes@wildopensource.com>
4558 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
4559 character is found during recovery, use correct register when
4560 determining the position of the found character.
4562 2003-04-01 Jes Sorensen <jes@wildopensource.com>
4564 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
4565 avoid segfaults when reading from unmapped pages. For aligned
4566 reload and continue, for misaligned, roll back and use byte copy.
4567 Save ar.ec on entry and restore on exit.
4569 2003-09-09 Chris Demetriou <cgd@broadcom.com>
4571 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
4573 2003-09-08 Chris Demetriou <cgd@broadcom.com>
4575 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
4576 the top of the list.
4577 * sysdeps/mips/mips64/n64/Implies: Likewise.
4579 2003-09-08 Roland McGrath <roland@frob.com>
4581 * sysdeps/unix/sysv/linux/speed.c
4582 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
4583 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
4584 * sysdeps/unix/sysv/linux/bits/termios.h
4585 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
4586 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4587 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4589 2003-09-08 Ulrich Drepper <drepper@redhat.com>
4591 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
4592 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
4594 2003-09-08 Jakub Jelinek <jakub@redhat.com>
4596 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
4597 (__u_quad_t): Make unsigned long int if 64-bit.
4598 (__SQUAD_TYPE): Make long int if 64-bit.
4599 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
4600 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
4602 2003-09-08 Ulrich Drepper <drepper@redhat.com>
4604 * Makefile (tests): Run check-c++-types.sh if possible.
4605 * scripts/check-c++-types.h: New file.
4606 * scripts/data/c++-types-i386-linux-gnu.data: New file.
4608 2003-09-08 Andreas Jaeger <aj@suse.de>
4610 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4611 Use struct sigcontext.
4613 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
4614 Use struct sigcontext.
4616 (GET_FRAME): Likewise.
4617 (GET_STACK): Likewise.
4619 2003-09-08 Wolfram Gloger <wg@malloc.de>
4621 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
4622 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
4623 (mALLOPt): Avoid requirement of C99.
4625 2003-09-08 Ulrich Drepper <drepper@redhat.com>
4627 * libio/bug-ftell.c: Include <sys/types.h>.
4628 (main): Mark cp as const.
4630 2003-09-07 Jakub Jelinek <jakub@redhat.com>
4632 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
4633 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
4635 2003-09-05 Roland McGrath <roland@redhat.com>
4637 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
4638 and c_ospeed fields.
4639 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
4640 (cfsetispeed): Set c_ispeed field.
4641 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
4642 to match corresponding speed.c code.
4644 2003-09-06 Ulrich Drepper <drepper@redhat.com>
4646 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
4647 narrow character buffer.
4648 * libio/Makefile: Add rules to build and run bug-ftell.
4649 * libio/bug-ftell.c: New file.
4651 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
4653 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
4654 matching the decimal point and possibly leading the thousands
4655 separator. This caused the recognition of thousands separators to
4658 2003-09-05 Ulrich Drepper <drepper@redhat.com>
4660 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
4661 write mode from read in backup buffer.
4662 * libio/Makefile (tests): Add bug-ungetc2.
4663 * libio/bug-ungetc2.c: New file.
4665 2003-09-05 Roland McGrath <roland@redhat.com>
4667 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
4669 2003-09-04 Roland McGrath <roland@frob.com>
4671 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
4672 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
4674 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
4676 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
4679 2003-09-05 Andreas Jaeger <aj@suse.de>
4681 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
4682 to make it conforming C.
4683 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
4685 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
4686 prototype to use variable argument lists and get the possible one
4687 argument via va_arg.
4688 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
4689 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
4691 2003-09-04 Ulrich Drepper <drepper@redhat.com>
4693 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
4695 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
4696 Report correct value for vxfs.
4697 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
4699 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
4702 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
4703 over the place. It would be allowed to have these functions as
4704 cancellation points but the cleanup would be ugly and a lot of
4707 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
4708 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
4710 * include/fcntl.h (__fcntl_nocancel): Declare.
4711 * sysdeps/unix/sysv/linux/fcntl.c: New file.
4712 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
4713 cancellation if absolutely needed.
4714 (__fcntl_nocancel): Define.
4716 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
4717 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
4719 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
4722 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
4725 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
4726 unnecessary errno handling.
4728 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
4729 Initialize it in all cases. Change it to be a bit more like the
4732 2003-09-04 Jakub Jelinek <jakub@redhat.com>
4734 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
4736 (_IO_file_open): Likewise. Use close_not_cancel.
4738 2003-09-04 Ulrich Drepper <drepper@redhat.com>
4740 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
4741 * libio/fileops.c [_LIBC]: Remove close macro.
4742 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
4743 (_IO_new_file_open): Recognize 'c' flag in mode string.
4744 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
4745 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
4747 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
4748 * inet/rcmd.c: Likewise.
4749 * inet/ruserpass.c: Likewise.
4750 * intl/localealias.c: Likewise.
4751 * malloc/mtrace.c: Likewise.
4752 * misc/getpass.c: Likewise.
4753 * misc/getttyent.c: Likewise.
4754 * misc/mntent_r.c: Likewise.
4755 * misc/getusershell.c: Likewise.
4756 * nss/nsswitch.c: Likewise.
4757 * resolv/res_hconf.c: Likewise.
4758 * resolv/res_init.c: Likewise.
4759 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
4760 * time/getdate.c: Likewise.
4761 * time/tzfile.c: Likewise.
4762 * misc/fstab.h: Undo last change.
4763 * misc/mntent.h: Likewise.
4764 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
4765 CFLAGS-fstab.c definition.
4767 2003-09-04 Jakub Jelinek <jakub@redhat.com>
4769 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
4771 2003-09-03 Ulrich Drepper <drepper@redhat.com>
4773 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
4774 returning ERANGE if this wasn't intended.
4776 2003-09-03 Jakub Jelinek <jakub@redhat.com>
4778 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
4779 function-like macros.
4781 2003-09-03 Ulrich Drepper <drepper@redhat.com>
4783 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
4784 (CFLAGS-getgrent.c): Likewise.
4785 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
4786 (CFLAGS-getpwent.c): Likewise.
4787 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
4788 (CFLAGS-getspent.c): Likewise.
4790 * inet/Makefile: Add -fexceptions to CFLAGS for the various
4791 getXXent and getXXbyYY functions.
4793 * locale/loadlocale.c: Use not-cancelable variants of open, close,
4796 2003-09-02 Jakub Jelinek <jakub@redhat.com>
4798 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
4799 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
4801 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
4803 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
4804 unused __syscall_ stubs.
4805 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
4807 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
4808 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
4809 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
4810 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
4811 unused __syscall_ stubs.
4812 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
4813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
4814 (__syscall_*): Remove unused __syscall_ stubs.
4815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
4816 (__syscall_*): Likewise.
4817 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
4819 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
4820 Remove unused __syscall_ stubs.
4821 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
4822 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
4823 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
4824 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
4825 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
4826 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
4827 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
4828 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
4829 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
4830 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
4831 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
4832 __syscall_* prototypes.
4833 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
4834 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
4835 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
4836 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
4837 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4838 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4839 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
4840 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4841 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4842 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
4843 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
4844 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
4845 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
4846 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4847 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
4848 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4849 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4850 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4851 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4852 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
4853 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4854 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
4855 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4856 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
4857 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
4858 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
4859 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
4860 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4861 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
4862 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
4863 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
4864 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4865 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4866 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4867 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4868 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4869 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4870 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4871 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4872 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4873 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4874 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4875 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4876 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4877 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4878 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
4879 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4880 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4881 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
4882 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4883 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4884 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4885 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4886 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
4887 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4888 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
4889 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
4890 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4891 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4892 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
4893 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
4894 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
4895 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
4896 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4897 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4898 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4899 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4900 * sysdeps/unix/sysv/linux/execve.c: Likewise.
4901 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4902 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
4903 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
4904 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
4905 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4906 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4907 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
4908 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
4909 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4910 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4911 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4912 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4913 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
4914 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4915 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
4916 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4917 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4918 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4919 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
4920 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4921 * sysdeps/unix/sysv/linux/poll.c: Likewise.
4922 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4923 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4924 * sysdeps/unix/sysv/linux/pread.c: Likewise.
4925 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4926 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4927 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4928 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4929 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4930 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4931 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4932 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4933 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4934 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4936 2003-09-02 Jakub Jelinek <jakub@redhat.com>
4938 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
4939 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
4940 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
4942 2003-09-02 Ulrich Drepper <drepper@redhat.com>
4944 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
4946 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
4947 open, close, and read.
4949 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
4952 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
4954 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
4955 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
4956 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
4958 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
4960 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
4961 (CFLAGS-fstatfs.c): Likewise.
4962 (CFLAGS-statvfs.c): Likewise.
4963 (CFLAGS-fstatvfs.c): Likewise.
4965 2003-09-01 Ulrich Drepper <drepper@redhat.com>
4967 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
4968 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
4970 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
4971 (CFLAGS-pathconf.c): Likewise.
4972 (CFLAGS-fpathconf.c): Likewise.
4974 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
4975 * misc/fstab.h: Remove all __THROW.
4976 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
4977 (CFLAGS-mntent_r.c): Likewise.
4978 * misc/mntent.h: Remove most __THROW.
4980 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4981 (CFLAGS-mkstemp64.c): Likewise.
4983 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
4984 around call to exec_comm.
4985 * posix/wordexp.h: Remove __THROW from wordexp.
4986 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
4988 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
4989 not-cancelable functions.
4991 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
4992 (CFLAGS-iofopen.c): Likewise.
4993 (CFLAGS-iofopen64.c): Likewise.
4995 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
4997 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
4998 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
5000 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
5001 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
5003 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
5005 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
5006 NSS_STATUS_SUCCESS if entry was found.
5007 (getspent_next_file): Store user in blacklist after entry
5008 was found, use innetgr.
5010 2003-09-01 Jakub Jelinek <jakub@redhat.com>
5012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
5013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
5015 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
5016 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
5017 DTV_AT_TP, optimize.
5019 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5021 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
5022 posix_fallocate64 at GLIBC_2.3.3.
5023 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
5024 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
5026 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
5028 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
5031 2003-08-31 Ulrich Drepper <drepper@redhat.com>
5033 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
5034 Code by Richard Henderson.
5036 2003-08-31 Philip Blundell <philb@gnu.org>
5038 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
5039 posix_fallocate64 at GLIBC_2.3.3.
5041 2003-08-31 Ulrich Drepper <drepper@redhat.com>
5043 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
5044 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
5046 2003-08-30 Jakub Jelinek <jakub@redhat.com>
5048 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
5049 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
5050 included multiple times.
5051 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
5052 ptid, tls, ctid arguments to the kernel.
5053 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
5054 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
5055 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5056 (__libc_sigaction): Use INLINE_SYSCALL instead of
5057 __syscall_rt_sigaction.
5058 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
5059 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
5060 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
5061 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
5062 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
5063 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
5064 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
5065 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
5066 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
5067 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
5068 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
5069 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5070 (__CLONE_SYSCALL_STRING): Define.
5071 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
5073 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5074 (__CLONE_SYSCALL_STRING): Define.
5075 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
5077 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
5079 2003-08-30 Ulrich Drepper <drepper@redhat.com>
5081 * sunrpc/rpc/clnt.h: Remove a few __THROW.
5082 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
5083 (CFLAGS-key_call.c): Likewise.
5084 (CFLAGS-pmap_rmt.c): Likewise.
5085 (CFLAGS-clnt_perr.c): Likewise.
5086 * sunrpc/rpc/auth.h: Remove serveral __THROW.
5088 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
5089 (CFLAGS-gethstbynm_r.c): Likewise.
5090 (CFLAGS-gethstbynm2_r.c): Likewise.
5091 (CFLAGS-rcmd.c): Likewise.
5092 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
5094 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
5095 (CFLAGS-argp-fmtstream.c): Likewise.
5096 * argp/argp.h: Remove a number of __THROW.
5098 * misc/sys/syslog.h (vsyslog): Remove __THROW.
5100 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
5101 * misc/getpass.c (getpass): Add cleanup handler to ensure the
5102 stream is closed even if the thread is canceled.
5103 (call_fclose): New function.
5104 * posix/unistd.h: Remove __THROW from getpass prototype.
5106 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
5108 * signal/signal.h (psignal): Remove __THROW.
5109 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
5111 * misc/Makefile (CFLAGS-error.c): Define.
5112 * misc/error.c (error): Disable cancellation handling around the
5113 actual output. The message should in any case be printed.
5114 (error_at_line): Likewise.
5116 * misc/error.h: Protect parameter names with leading __.
5118 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
5120 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
5122 2003-08-29 Jakub Jelinek <jakub@redhat.com>
5124 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
5127 2003-08-29 Ulrich Drepper <drepper@redhat.com>
5129 * libio/stdio.h: Remove a few more __THROW.
5131 2003-08-29 Jakub Jelinek <jakub@redhat.com>
5133 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
5134 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
5135 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
5136 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
5137 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
5138 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
5139 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
5140 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
5141 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
5142 putwchar.c and rewind.c with exceptions.
5143 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
5144 _IO_release_lock): Define.
5145 * libio/fileops.c (_IO_new_file_underflow): Use it.
5146 * libio/fputc.c (fputc): Likewise.
5147 * libio/fputwc.c (fputwc): Likewise.
5148 * libio/freopen64.c (freopen64):
5149 * libio/freopen.c (freopen): Likewise.
5150 * libio/fseek.c (fseek): Likewise.
5151 * libio/fseeko64.c (fseeko64): Likewise.
5152 * libio/fseeko.c (fseeko): Likewise.
5153 * libio/ftello64.c (ftello64): Likewise.
5154 * libio/ftello.c (ftello): Likewise.
5155 * libio/fwide.c (fwide): Likewise.
5156 * libio/getc.c (_IO_getc): Likewise.
5157 * libio/getchar.c (getchar): Likewise.
5158 * libio/getwc.c (_IO_getwc): Likewise.
5159 * libio/getwchar.c (getwchar): Likewise.
5160 * libio/iofclose.c (_IO_new_fclose):
5161 * libio/iofflush.c (_IO_fflush): Likewise.
5162 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
5163 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
5164 * libio/iofgets.c (_IO_fgets): Likewise.
5165 * libio/iofgetws.c (fgetws): Likewise.
5166 * libio/iofputs.c (_IO_fputs): Likewise.
5167 * libio/iofputws.c (fputws): Likewise.
5168 * libio/iofread.c (_IO_fread): Likewise.
5169 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
5170 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
5171 * libio/ioftell.c (_IO_ftell): Likewise.
5172 * libio/iofwrite.c (_IO_fwrite): Likewise.
5173 * libio/iogetdelim.c (_IO_getdelim): Likewise.
5174 * libio/iogets.c (_IO_gets): Likewise.
5175 * libio/ioputs.c (_IO_puts): Likewise.
5176 * libio/ioseekoff.c (_IO_seekoff): Likewise.
5177 * libio/ioseekpos.c (_IO_seekpos): Likewise.
5178 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
5179 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
5180 * libio/ioungetc.c (_IO_ungetc): Likewise.
5181 * libio/ioungetwc.c (ungetwc): Likewise.
5182 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
5183 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
5184 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
5185 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
5186 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
5187 * libio/peekc.c (_IO_peekc_locked): Likewise.
5188 * libio/putc.c (_IO_putc): Likewise.
5189 * libio/putchar.c (putchar): Likewise.
5190 * libio/putwc.c (putwc): Likewise.
5191 * libio/putwchar.c (putwchar): Likewise.
5192 * libio/rewind.c (rewind): Likewise.
5193 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
5195 2003-08-29 Ulrich Drepper <drepper@redhat.com>
5197 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
5198 available in XPG4.2.
5200 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
5201 Jakub Jelinek <jakub@redhat.com>
5203 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
5204 big endian arches. Don't read beyond end of fds_bits array.
5206 2003-04-27 Bruno Haible <bruno@clisp.org>
5208 * manual/message.texi (Advanced gettext functions): Add information
5209 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
5210 Add section about Lithuanian, reported by Ricardas Cepas
5211 <rch@richard.eu.org>.
5212 Add information about Croatian.
5213 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
5214 Remove remark about continuation lines that is not true for PO files.
5215 Fix formula for Slovenian, reported by Roman Maurer
5216 <roman.maurer@amis.net>.
5218 2003-08-27 Ulrich Drepper <drepper@redhat.com>
5220 * math/math_private.h: Declare __copysignf.
5221 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
5224 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
5225 __signbit, and __signbitl inline functions.
5227 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
5228 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
5230 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
5231 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
5233 2003-08-27 Jakub Jelinek <jakub@redhat.com>
5235 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
5237 2003-08-27 Ulrich Drepper <drepper@redhat.com>
5239 * include/stdio.h: Add declarations for __builtin_fwrite and
5240 __builtin_fwrite_unlocked.
5242 2003-08-27 Jakub Jelinek <jakub@redhat.com>
5244 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
5245 fits into allocation. Add padding on 32-bit arches so that
5246 dirp->data is enough aligned for struct dirent64.
5247 Avoid clearing of the buffer, just clear DIR structure.
5249 2003-08-26 Ulrich Drepper <drepper@redhat.com>
5251 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
5252 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
5254 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
5256 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
5258 2003-08-26 Jakub Jelinek <jakub@redhat.com>
5260 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
5261 to match format string.
5262 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
5264 (__new_semctl): Shut up warning.
5265 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
5266 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
5268 2003-08-26 Jakub Jelinek <jakub@redhat.com>
5270 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
5271 link file use the real file name, not the resolved name we got by
5272 following the symlinks.
5274 2003-08-25 Ulrich Drepper <drepper@redhat.com>
5276 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
5277 if the object size is large enough.
5279 2003-08-25 Jakub Jelinek <jakub@redhat.com>
5281 * elf/ldconfig.c (search_dir): Treat symlink as regular file
5282 if it won't point to itself unless it is .so symlink for the linker.
5284 2003-08-25 Ulrich Drepper <drepper@redhat.com>
5286 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
5287 use _mode if _IO_fwide_maybe_incompatible.
5288 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
5289 the compatibility test.
5291 2003-08-25 Jakub Jelinek <jakub@redhat.com>
5293 * elf/cache.c (save_cache): Don't write beyond end of file_entries
5295 Duplicate last old cache entry if the count would be odd.
5297 2003-08-25 Andreas Jaeger <aj@suse.de>
5299 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
5300 __LONG_LONG_PAIR to long.
5302 2003-08-25 Philip Blundell <philb@gnu.org>
5304 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
5305 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
5307 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
5309 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
5310 and use __libc_cleanup_region_end instead.
5312 2003-08-25 Ulrich Drepper <drepper@redhat.com>
5314 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
5316 2003-08-22 Ulrich Drepper <drepper@redhat.com>
5318 * io/fcntl.h (posix_fallocate): Change type of third parameter to
5320 (posix_fallocate64): Change type of third parameter to off64_t.
5321 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
5322 * sysdeps/posix/posix_fallocate.c: Likewise.
5323 * sysdeps/generic/posix_fallocate64.c: Likewise.
5324 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
5325 code for 32-bit platforms.
5326 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
5328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
5329 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5330 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5332 2003-08-19 Ulrich Drepper <drepper@redhat.com>
5334 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
5335 the type, not to name.
5337 * stdio-common/test-vfprintf.c (main): Don't write temporary file
5338 into source directory.
5340 * malloc/malloc.c (_int_free): Add cheap test for some invalid
5343 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
5346 2003-08-18 Ulrich Drepper <drepper@redhat.com>
5348 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
5351 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
5353 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
5354 (elf_machine_lazy_rel): Likewise.
5356 2003-08-18 Art Haas <ahaas@airmail.net>
5358 * malloc/malloc.h: Remove unneeded ';' where closing the C++
5361 2003-08-18 Ulrich Drepper <drepper@redhat.com>
5363 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
5364 loading big binaries where @gprel(sym) cannot be handled in 'add'
5365 but instead has to be used with 'movl'.
5367 2003-08-17 Juergen Kreileder <jk@blackdown.de>
5368 Andreas Jaeger <aj@suse.de>
5370 * sysdeps/x86_64/bits/byteswap.h: New file.
5372 2003-08-17 Andreas Jaeger <aj@suse.de>
5374 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
5376 2003-08-16 Jakub Jelinek <jakub@redhat.com>
5378 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
5379 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5380 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
5381 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5382 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
5383 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5384 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
5385 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5386 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
5387 ret_ERRVAL): Define.
5388 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
5389 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5390 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
5391 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5392 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
5394 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
5395 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5396 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
5398 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
5399 posix_fadvise64_64): Remove.
5400 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
5402 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
5404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
5405 (posix_fadvise64): Likewise.
5406 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
5407 (posix_fadvise64): Likewise.
5408 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
5409 (posix_fadvise64): Likewise.
5410 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
5412 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
5413 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
5414 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
5415 (__posix_fadvise64_l32): New function.
5416 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
5417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
5418 posix_fadvise64@@GLIBC_2.3.3.
5419 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
5420 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
5421 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
5423 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
5425 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5426 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
5428 2003-08-15 Jakub Jelinek <jakub@redhat.com>
5430 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
5431 (elf_machine_matches_host): Remove weak extern stuff.
5432 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
5433 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
5434 stuff. Use GL(dl_hwcap) unconditionally.
5436 2003-08-16 Alan Modra <amodra@bigpond.net.au>
5438 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
5439 __libc_start_main branch.
5441 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
5442 Andreas Jaeger <aj@suse.de>
5444 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
5445 instead of setting errno.
5446 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
5448 2003-08-16 Andreas Jaeger <aj@suse.de>
5450 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
5451 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
5453 2003-08-15 Ulrich Drepper <drepper@redhat.com>
5455 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
5457 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
5458 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
5459 description indicating the error value is returned, not -1.
5460 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
5461 __ASSUME_FADVISE64_64_SYSCALL.
5462 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
5463 posix_madvise in one file. Have posix_madvise defined with error
5465 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
5467 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
5468 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
5469 PSEUDO_END_ERRVAL, and ret_ERRVAL.
5470 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
5471 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5472 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
5475 * posix/Makefile (routines): Add posix_madvise.
5476 * sysdeps/generic/madvise.c: Don't define posix_madvise.
5477 * sysdeps/generic/posix_madvise.c: New file.
5478 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
5479 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
5480 Add posix_fadvise64_64.
5482 2003-08-15 Jakub Jelinek <jakub@redhat.com>
5484 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
5485 3.0, not for !gcc or gcc < 3.0.
5487 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
5489 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
5490 Address passed to test_in_mod1 and test_in_mod2 without casting.
5491 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
5492 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
5493 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
5494 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
5496 2003-08-15 Jakub Jelinek <jakub@redhat.com>
5498 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
5499 Change quotes before using [].
5501 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
5503 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
5505 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
5506 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
5507 argument. Select one of 64 locks from address bits.
5508 (atomic_compare_and_exchange_val_acq,
5509 atomic_compare_and_exchange_bool_acq): Pass memory address to
5510 __sparc32_atomic_do_{,un}lock.
5512 2003-08-14 Ulrich Drepper <drepper@redhat.com>
5514 * assert/assert.h (assert): Use !! in front of expression to allow
5517 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
5518 Changed conversion of JIS X 0201 from using a table to calculating.
5519 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
5520 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
5522 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
5523 * iconvdata/CP932.irreversible: New file.
5524 * iconvdata/EUC-JP-MS.irreversible: New file.
5525 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
5527 2003-08-13 Ulrich Drepper <drepper@redhat.com>
5529 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
5531 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
5532 text processing tools.
5534 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
5535 element unless BROKEN_THREAD_SIGNALS is defined.
5536 (struct requestlist): Likewise.
5537 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
5538 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
5539 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
5540 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
5541 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
5542 Pass current PID to __aio_sigqueue.
5543 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
5544 call. Don't initialize caller_pid field of waitlist element.
5546 2003-08-12 Jakub Jelinek <jakub@redhat.com>
5548 * libio/libioP.h (_IO_vtable_offset): Define.
5549 * libio/freopen.c (freopen): Use it.
5550 * libio/ioputs.c (_IO_puts): Likewise.
5551 * libio/freopen64.c (freopen64): Likewise.
5552 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
5554 * libio/iofclose.c (_IO_new_fclose): Likewise.
5555 * libio/iofputs.c (_IO_fputs): Likewise.
5556 * libio/ioftell.c (_IO_ftell): Likewise.
5557 * libio/iofwrite.c (_IO_fwrite): Likewise.
5558 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
5559 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
5560 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
5561 * stdio-common/vfscanf.c (ORIENT): Likewise.
5563 2003-08-11 Ulrich Drepper <drepper@redhat.com>
5565 * assert/assert.h: Use __builtin_expect in assert and
5566 assert_perror definitions if possible.
5568 2003-08-07 Jakub Jelinek <jakub@redhat.com>
5570 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
5571 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
5572 * elf/rtld.c (rtld_lock_default_lock_recursive,
5573 rtld_lock_default_unlock_recursive): New functions.
5574 (dl_main): Initialize _dl_rtld_lock_recursive and
5575 _dl_rtld_unlock_recursive.
5577 2003-08-05 Jakub Jelinek <jakub@redhat.com>
5579 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
5580 config_file directories instead of prepending.
5582 2003-08-02 Ulrich Drepper <drepper@redhat.com>
5584 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5585 __ASSUME_CLONE_STOPPED.
5587 2003-08-01 Ulrich Drepper <drepper@redhat.com>
5589 * sysdeps/generic/bits/libc-lock.h
5590 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
5592 2003-08-01 Roland McGrath <roland@frob.com>
5594 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
5596 2003-07-31 Jakub Jelinek <jakub@redhat.com>
5598 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
5599 instead of __SWORD_TYPE.
5600 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
5601 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
5602 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
5604 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
5606 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
5608 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
5610 * dlfcn/dlerror.c (once): New.
5611 (dlerror): Call __libc_once.
5612 (_dlerror_run): Remove once.
5614 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
5615 Sync with 2.5.7 and 2.5.73 kernel changes.
5617 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
5618 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
5620 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
5621 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
5622 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
5623 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
5624 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
5625 difference argument.
5626 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
5628 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
5629 %d format and cast expected value to int.
5630 * sysdeps/generic/libc-start.c (STATIC): Add
5631 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
5632 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
5633 to ieee_float_shape_type.
5634 (__sqrt): Avoid type punning.
5635 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
5636 to ieee_float_shape_type.
5637 (__sqrtf): Avoid type punning.
5638 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
5639 refsym if in dl-conflict.c.
5640 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
5641 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
5642 (__new_semctl): Shut up warning.
5643 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
5644 (__new_semctl): Shut up warning.
5645 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
5646 Change old into union of __old_shmid_ds and __old_shminfo structs.
5648 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
5650 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
5651 modtime computation.
5652 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
5653 * sysdeps/posix/utimes.c (__utimes): Likewise.
5655 2003-07-30 Jakub Jelinek <jakub@redhat.com>
5657 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
5658 call dl_signal_error directly. If already relocated, call
5659 GL(dl_init_static_tls) directly, otherwise queue it for later.
5660 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
5661 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
5662 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
5663 for all static TLS initializations delayed in _dl_allocate_static_tls.
5664 * elf/dl-support.c (_dl_init_static_tls): New variable.
5665 * include/link.h (struct link_map): Add l_need_tls_init.
5666 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
5667 (_dl_nothread_init_static_tls): New prototype.
5668 (_dl_allocate_static_tls): Adjust prototype.
5670 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
5672 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
5674 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
5675 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
5676 reloc_addr is aligned.
5677 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
5678 elf_machine_rela_relative): Adjust.
5679 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
5680 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
5681 * sysdeps/cris/dl-machine.h (elf_machine_rela,
5682 elf_machine_rela_relative): Adjust.
5683 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
5684 elf_machine_rela_relative): Adjust.
5685 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
5686 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
5687 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
5688 elf_machine_rela_relative): Adjust.
5689 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
5690 elf_machine_rela_relative): Adjust.
5691 * sysdeps/mips/dl-machine.h (elf_machine_rela,
5692 elf_machine_rela_relative): Adjust.
5693 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
5694 elf_machine_rela_relative): Adjust.
5695 * sysdeps/powerpc/powerpc64/dl-machine.h
5696 (elf_machine_rela_relative, elf_machine_rela): Adjust.
5697 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
5698 elf_machine_rela_relative): Adjust.
5699 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
5700 elf_machine_rela_relative): Adjust.
5701 * sysdeps/sh/dl-machine.h (elf_machine_rela,
5702 elf_machine_rela_relative): Adjust.
5703 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
5704 elf_machine_rela_relative): Adjust.
5705 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
5706 elf_machine_rela_relative): Adjust.
5707 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
5708 elf_machine_rela_relative): Adjust.
5710 2003-07-29 Ulrich Drepper <drepper@redhat.com>
5712 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
5713 alignment of TCB used before the last change so that it matches
5714 ld's output for IE code.
5716 2003-07-29 Jakub Jelinek <jakub@redhat.com>
5718 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
5719 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
5720 break strict-aliasing rules" warnings.
5722 2003-07-29 Roland McGrath <roland@redhat.com>
5724 * elf/Makefile: Revert accidental changes in last commit.
5725 * elf/dl-support.c: Likewise.
5727 * rt/tst-timer2.c: New file.
5728 * rt/Makefile (tests): Add it.
5730 2003-07-25 Jakub Jelinek <jakub@redhat.com>
5732 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
5734 2003-07-29 Roland McGrath <roland@redhat.com>
5736 * elf/Makefile (tests) [$(build-shared) = yes]:
5737 Depend on $(test-modules).
5738 * dlfcn/Makefile: Likewise.
5740 2003-07-28 Roland McGrath <roland@redhat.com>
5742 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
5743 Use that instead of `typedef' when using __*_TYPE macros in rhs.
5745 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
5746 * elf/tst-tlsmod14a.c: Likewise.
5748 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
5749 before <linux/sysctl.h>.
5751 2003-07-27 Ulrich Drepper <drepper@redhat.com>
5753 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
5754 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
5755 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
5756 * sysdeps/unix/syscalls.list: umask syscall never fails.
5758 2003-07-27 Andreas Jaeger <aj@suse.de>
5760 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
5762 2003-07-25 Jakub Jelinek <jakub@redhat.com>
5764 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
5765 Include bits/a.out.h.
5766 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5768 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
5769 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
5770 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
5771 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
5772 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
5773 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
5774 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
5775 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
5777 2003-07-24 Jakub Jelinek <jakub@redhat.com>
5779 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
5780 if aiocbp != NULL and has already completed. Return -1/EINVAL if
5781 aiocbp->aio_fildes does not match fildes.
5783 2003-07-24 Ulrich Drepper <drepper@redhat.com>
5785 * timezone/zic.c (rpytime): Replace cheap overflow check with a
5788 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
5789 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
5790 Fix calculation of offsets to take misalignment of first byte in
5792 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
5793 l_tls_firstbyte_offset field.
5794 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
5795 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
5796 Take l_tls_firstbyte_offset information into account.
5797 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
5798 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
5799 * elf/Makefile: Add rules to build and run tst-tls14.
5800 * elf/tst-tls14.c: New file.
5801 * elf/tst-tlsmod14a.c: New file.
5802 * elf/tst-tlsmod14b.c: New file.
5804 2003-07-23 Jakub Jelinek <jakub@redhat.com>
5806 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
5807 (lio_listio): Use it.
5808 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
5809 after few defines to avoid duplication.
5811 2003-07-22 Jakub Jelinek <jakub@redhat.com>
5813 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
5814 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
5816 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
5817 Add libc_hidden_def.
5818 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
5819 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5820 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
5821 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
5822 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
5823 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
5824 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
5826 * sysdeps/generic/unwind.inc: Removed.
5828 * include/resolv.h (__resp): Declare. Define to __libc_resp
5830 (_res): If USE___THREAD, define to (*__resp).
5831 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
5832 even if USE___THREAD.
5833 (__resp): New __thread variable.
5834 (__libc_resp): New alias.
5835 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
5836 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
5837 * sysdeps/generic/res-state.c (__res_state): Return __resp
5840 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
5842 * elf/dl-support.c (_dl_hwcap): New variable.
5843 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
5845 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
5846 and <dl-procinfo.h>.
5847 (__feclearexcept): Clear MXCSR if needed.
5848 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5850 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
5851 that newer hardware needs more than these macros.
5853 * sysdeps/i386/setfpucw.c: New file.
5855 2003-07-22 Jakub Jelinek <jakub@redhat.com>
5857 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
5858 * elf/ldconfig.c: Include dl-procinfo.c.
5859 (PROCINFO_CLASS): Define.
5860 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
5861 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
5862 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
5863 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
5864 Define if not yet defined. Use it instead of EXTERN. Undefine
5865 at the end of the file.
5866 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
5868 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
5869 (PROCINFO_CLASS): Likewise.
5870 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
5871 (PROCINFO_CLASS): Likewise.
5873 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
5875 * elf/ldconfig.c (main): Issue a fatal error if relative path
5876 is used to build cache.
5878 2003-07-22 Ulrich Drepper <drepper@redhat.com>
5880 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
5882 2003-07-21 Art Haas <ahaas@airmail.net>
5884 * manual/charset.texi (Converting a Character): Fix example code so a
5885 valid pointer is returned.
5887 2003-07-22 Andreas Jaeger <aj@suse.de>
5889 * elf/readlib.c (process_file): Check that file is a shared
5892 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
5893 will not optimize it away.
5894 (__DTOR_END__): Likewise.
5895 (__CTOR_END__): Likewise.
5897 * include/libc-symbols.h (_elf_set_element): Use attribute used so
5898 that gcc will not optimize it away.
5899 (link_warning): Likewise.
5901 2003-07-22 Ulrich Drepper <drepper@redhat.com>
5903 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
5904 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
5905 * wcsmbs/tst-wcpncpy.c: New file.
5907 2003-07-21 Ulrich Drepper <drepper@redhat.com>
5909 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
5911 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
5912 stmxcsr and ldmxcsr.
5914 * Makerules (build-module-helper): Add -z defs unless explicitly said
5916 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
5917 which has undefined symbols.
5918 * elf/Makefile: Likewise.
5920 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
5921 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
5922 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
5923 * sysdeps/i386/fpu/fesetround.c: Likewise.
5924 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
5926 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
5928 * elf/ldconfig.c (search_dir): Treat symlink as regular file
5929 if it won't point to itself.
5931 2003-07-20 Ulrich Drepper <drepper@redhat.com>
5933 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
5935 2003-07-20 Andreas Jaeger <aj@suse.de>
5937 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
5938 STANDARD_TO_LOOP_ERR_HANDLER.
5939 * iconvdata/euc-jp-ms.c (BODY): Likewise.
5941 2003-07-19 Ulrich Drepper <drepper@redhat.com>
5943 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
5945 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
5947 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
5948 Andreas Jaeger <aj@suse.de>
5950 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
5951 256K, remove unneeded declaration of __getpagesize.
5953 2003-07-16 Andreas Schwab <schwab@suse.de>
5955 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
5957 2003-07-15 Ulrich Drepper <drepper@redhat.com>
5959 * io/test-utime.c (main): Make test yet more robust.
5961 2003-07-14 Ulrich Drepper <drepper@redhat.com>
5963 More cancellation handling fixups.
5964 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
5965 * sysdeps/generic/not-cancel.h: Likewise.
5966 * catgets/open_catalog.c: Use not-cancelable syscalls.
5967 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
5968 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
5969 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
5970 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
5971 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
5972 * libio/fileops.c: Use not-cancelable syscalls for fclose.
5973 * libio/iopopen.c: Use no-cancelable syscalls.
5974 * libio/stdio.h: Mark popen and pclose with __THROW again.
5975 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
5976 * misc/syslog.c: Fix locking and cancellation cleanup handling.
5977 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
5978 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
5979 CFLAGS-tempname.c): Add -fexceptions.
5980 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
5981 * string/string.h: Mark strerror and strerror_r with _THROW again.
5982 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
5983 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
5984 #ifs since we now need all the code compiled.
5985 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
5986 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
5987 * sysdeps/unix/opendir.c: Likewise.
5989 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
5990 Add rule for EUC-JP-MS dependency.
5991 * iconvdata/cp932.c: New file.
5992 * iconvdata/eucjp-ms.c: New file.
5993 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
5994 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
5996 2003-07-15 Jakub Jelinek <jakub@redhat.com>
5998 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
6001 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6003 * sysdeps/unix/sysv/linux/kernel-features.h
6004 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
6005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
6007 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
6009 2003-07-14 Ulrich Drepper <drepper@redhat.com>
6011 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6012 __ASSUME_TGKILL for Alpha appropriately.
6014 2003-07-12 Ulrich Drepper <drepper@redhat.com>
6016 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
6017 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
6019 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
6022 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6023 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
6025 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
6026 second parameter == NULL.
6027 * sysdeps/unix/sysv/linux/utimes.c: New file.
6029 2003-07-12 Jakub Jelinek <jakub@redhat.com>
6031 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
6032 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
6035 2003-07-12 Ulrich Drepper <drepper@redhat.com>
6037 * time/sys/time.h: Namespace cleanup.
6038 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6039 __ASSUME_UTIMES for the architectures which always had the syscall.
6040 * sysdeps/unix/sysv/linux/futimes.c: New file.
6042 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6044 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
6045 register across CENABLE and CDISABLE.
6047 2003-07-11 Jakub Jelinek <jakub@redhat.com>
6049 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
6050 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6051 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6052 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
6053 int before assigning to max to avoid warnings.
6055 2003-07-11 Jakub Jelinek <jakub@redhat.com>
6057 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
6059 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
6060 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
6062 2003-07-10 Jakub Jelinek <jakub@redhat.com>
6064 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
6065 .data.rel.ro.local to "aw".
6067 2003-07-10 Ulrich Drepper <drepper@redhat.com>
6069 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
6070 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
6071 (PIC-ccflag): Define.
6073 2003-07-04 Jakub Jelinek <jakub@redhat.com>
6075 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
6077 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6079 2003-07-07 Jakub Jelinek <jakub@redhat.com>
6081 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
6082 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
6084 2003-07-07 Ulrich Drepper <drepper@redhat.com>
6086 * sysdeps/unix/sysv/linux/kernel-features.h: Version
6087 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
6089 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
6090 compilation with HAVE_AUX_SECURE defined.
6092 2003-07-05 Richard Henderson <rth@redhat.com>
6094 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
6096 2003-07-03 Ulrich Drepper <drepper@redhat.com>
6098 * configure.in: Also check for .cfi_rel_offset pseudo-op.
6100 2003-07-03 Jakub Jelinek <jakub@redhat.com>
6102 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
6105 2003-07-03 Ulrich Drepper <drepper@redhat.com>
6107 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
6109 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
6111 2003-07-02 Jakub Jelinek <jakub@redhat.com>
6113 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
6114 decl and use with #ifdef NEED_DL_SYSINFO.
6116 2003-07-02 Ulrich Drepper <drepper@redhat.com>
6118 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
6119 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
6120 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6121 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
6122 vsyscall DSO was added.
6124 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
6125 depending on selected standard.
6126 (NGROUPS_MAX): Define to 8 if not defined.
6128 2003-07-02 Andreas Jaeger <aj@suse.de>
6130 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
6132 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
6134 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
6135 * malloc/thread-m.h: Include <atomic.h>.
6136 (atomic_full_barrier): Provide default.
6137 (atomic_read_barrier): Likewise.
6138 (atomic_write_barrier): Likewise.
6139 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
6141 2003-06-30 Ulrich Drepper <drepper@redhat.com>
6143 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
6145 2003-06-30 Richard Henderson <rth@redhat.com>
6147 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
6148 Invert the sense of the return value.
6149 (__arch_exchange_16_int): Fix paste-o.
6150 (__arch_exchange_{32,64}_int): Fix think-o.
6152 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
6154 2003-06-30 Richard Henderson <rth@redhat.com>
6156 * include/sys/resource.h (__getrusage): Mark hidden.
6157 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
6158 * include/sys/wait.h (__wait4): Likewise.
6160 2003-06-17 Guido Guenther <agx@sigxcpu.org>
6162 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
6164 (xstat_conv): Rename to __xstat_conv and remove static inline.
6165 (xstat64_conv): Likewise.
6167 2003-06-29 Ulrich Drepper <drepper@redhat.com>
6169 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
6170 values which cannot be handled in one nanosleep call.
6172 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
6174 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
6175 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
6177 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
6179 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
6181 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
6184 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
6186 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
6187 Conditionalize function definitions that use struct kernel_stat.
6188 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
6189 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
6190 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
6192 2003-06-28 Ulrich Drepper <drepper@redhat.com>
6194 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
6197 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
6199 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
6200 (getgrent_next_file): Don't store group name to early in blacklist.
6202 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
6203 and use memcpy instead of strcpy.
6205 2003-06-28 Ulrich Drepper <drepper@redhat.com>
6207 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
6209 * nis/nss_compat/compat-initgroups.c: Likewise.
6210 * nis/nss_compat/compat-pwd.c: Likewise.
6211 * nis/nss_compat/compat-spwd.c: Likewise.
6213 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
6215 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
6216 functions, dlopen corresponding NSS module instead.
6218 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
6220 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
6221 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6222 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6223 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6225 2003-06-27 Ulrich Drepper <drepper@redhat.com>
6227 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
6229 2003-06-26 Roland McGrath <roland@frob.com>
6231 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
6232 * sysdeps/mach/configure: Regenerated.
6233 * sysdeps/mach/hurd/times.c (times_init): Function removed.
6234 (__times): Assume `creation_time' field is available.
6235 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
6236 Don't append set-init.
6237 * sysdeps/mach/hurd/set-init.c: File removed.
6239 2003-06-26 Roland McGrath <roland@redhat.com>
6241 * elf/elf.h (AT_SECURE): New macro.
6242 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
6243 set __libc_enable_secure.
6244 (_dl_show_auxv): Add AT_SECURE to name table.
6245 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
6246 __libc_enable_secure and __libc_enable_secure_decided.
6247 * sysdeps/unix/sysv/linux/ldsodefs.h
6248 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
6249 * sysdeps/unix/sysv/linux/kernel-features.h
6250 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
6252 2003-06-26 Ulrich Drepper <drepper@redhat.com>
6254 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
6255 boundary test to take rounding of nanoseconds into account.
6257 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
6258 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6259 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
6260 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
6261 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6262 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6263 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6265 2003-06-26 Andreas Schwab <schwab@suse.de>
6267 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
6268 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
6269 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
6271 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
6273 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
6274 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
6275 dlopen corresponding NSS module instead.
6276 * nis/nss_compat/compat-pwd.c: Likewise.
6277 * nis/nss_compat/compat-spwd.c: Likewise.
6278 * nis/nss_compat/compat-initgroups.c: Disabled for now.
6279 * nss/Versions: Export __nss_lookup_function.
6281 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6283 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
6284 for the SH architecture.
6286 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
6288 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
6290 2003-06-25 Andreas Jaeger <aj@suse.de>
6292 * stdlib/tst-strtod.c (main): Declare constant long double as
6293 suggested by Jakub Jelinek and Andreas Schwab.
6295 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
6298 * stdio-common/tst-fphex.c: Fix format string.
6300 * posix/transbug.c: Include <string.h> for memset and strlen
6303 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
6305 * stdlib/tst-strtod.c (main): Pass long double value.
6307 * test-skeleton.c: Include <time.h> for nanosleep declaration.
6309 2003-06-25 Ulrich Drepper <drepper@redhat.com>
6311 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
6314 2003-06-11 Jakub Jelinek <jakub@redhat.com>
6316 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
6317 * elf/dl-libc.c (struct dl_open_hook): New.
6318 (_dl_open_hook): New variable.
6319 (do_dlsym_private): New function.
6320 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
6321 and initialize it if found.
6322 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
6323 call dlopen_mode hook.
6324 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
6326 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
6329 2003-06-25 Ulrich Drepper <drepper@redhat.com>
6331 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
6332 result to long int so that extensions to long long int work.
6333 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
6335 2003-06-19 Jakub Jelinek <jakub@redhat.com>
6337 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
6338 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
6339 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
6341 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
6342 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
6343 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
6344 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
6346 2003-06-19 Jakub Jelinek <jakub@redhat.com>
6348 * test-skeleton.c (timeout_handler): If waitpid returned 0,
6349 retry once after a second. If killed == 0, assume
6350 WTERMSIG (status) == SIGKILL.
6352 2003-06-18 Roland McGrath <roland@redhat.com>
6354 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
6355 elements in the table instead of printing an empty name string.
6357 2003-06-05 Roland McGrath <roland@redhat.com>
6359 * elf/elf.h (PT_GNU_STACK): New macro.
6361 2003-06-24 Ulrich Drepper <drepper@redhat.com>
6363 * include/time.h: Define CLOCK_IDFIELD_SIZE.
6364 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
6365 * sysdeps/unix/clock_gettime.c: Likewise.
6366 * sysdeps/unix/clock_settime.c: Likewise.
6367 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
6368 clock id for thread CPU clocks.
6370 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
6371 for the fstatfs64 syscall.
6372 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
6373 the statfs64 syscall.
6375 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6376 __ASSUME_STATFS64 appropriately.
6378 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
6379 from statfs structure if it has been filled in.
6381 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
6383 (struct statfs64): Likewise.
6384 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
6385 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
6387 2003-06-24 Richard Henderson <rth@redhat.com>
6389 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
6390 the 64-bit syscall name.
6392 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
6394 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
6395 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
6397 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
6398 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
6400 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
6401 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
6404 * sysdeps/alpha/bits/atomic.h: New file.
6406 2003-06-24 Andreas Schwab <schwab@suse.de>
6408 * sysdeps/m68k/fpu/libm-test-ulps: Update.
6410 2003-06-24 Andreas Jaeger <aj@suse.de>
6412 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
6413 redeclaration with 32-bit code.
6415 2003-05-19 Ed Connell <ed.connell@sas.com>
6417 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
6418 floating point mask.
6419 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
6421 2003-06-23 Ulrich Drepper <drepper@redhat.com>
6423 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
6424 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
6425 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
6427 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
6428 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
6429 instead of __libc_cleanup_region_*.
6431 2003-06-20 Richard Henderson <rth@redhat.com>
6433 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
6434 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
6436 2003-06-20 Richard Henderson <rth@redhat.com>
6438 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
6439 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
6441 (__ASSUME_TIMEVAL64): Set for alpha.
6442 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
6443 adjtimex, osf_sigprocmask, old_adjtimex.
6444 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
6445 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
6446 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
6447 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
6448 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6449 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
6450 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
6451 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
6452 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
6453 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
6454 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
6456 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
6457 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
6458 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
6459 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
6460 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
6461 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
6462 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
6463 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
6464 defer to __syscall_name; error for rt_sigaction.
6465 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
6467 2003-06-18 Ulrich Drepper <drepper@redhat.com>
6469 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
6470 hasn't happened yet.
6472 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
6473 Fix completely broken implementation. The second parameter is of
6474 type struct ucontext*.
6476 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
6479 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
6480 * sysdeps/generic/dl-hash.h: Likewise.
6482 * sysdeps/generic/memcmp.c: Remove inline from
6483 memcmp_common_alignment and memcmp_not_common_alignment definition.
6485 * intl/localealias.c (read_alias_file): Determine whether line is
6486 read incompletely early, before we modify the line.
6488 2003-06-17 Jakub Jelinek <jakub@redhat.com>
6490 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
6491 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
6493 2003-06-17 Paul Mackerras <paulus@samba.org>
6495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
6496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
6497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
6498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
6499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
6500 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
6502 2003-06-17 Jakub Jelinek <jakub@redhat.com>
6504 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
6506 2003-06-17 Ulrich Drepper <drepper@redhat.com>
6508 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
6509 takes care of enabling cancellation.
6511 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
6512 cancelable. It's not correct to disable cancellation. Instead of
6515 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
6516 and part of the incoming set, create a temporary set without this
6518 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6519 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6521 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
6522 returning because seconds==0. Add __builtin_expect.
6524 2003-06-16 Ulrich Drepper <drepper@redhat.com>
6526 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
6528 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
6531 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
6533 * include/libc-symbols.h: Add static_link_warning macro.
6534 * grp/initgroups.c: Print linker warning if this function
6535 is called in a static linked binary.
6536 * nss/getXXbyYY.c: Likewise.
6537 * nss/getXXbyYY_r.c: Likewise.
6538 * nss/getXXent.c: Likewise.
6539 * nss/getXXent_r.c: Likewise.
6540 * sysdeps/posix/getaddrinfo.c: Likewise.
6542 2003-06-16 Bruno Haible <bruno@clisp.org>
6544 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
6546 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
6547 (IBM1047): Add alias IBM-1047.
6548 (GBK): Add aliases MS936, WINDOWS-936.
6550 2003-06-16 Jakub Jelinek <jakub@redhat.com>
6552 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
6553 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
6554 (__xstat64_conv): Change xstat_conv to __xstat_conv.
6556 2003-06-16 Ulrich Drepper <drepper@redhat.com>
6558 * locale/iso-639.def: Update from current official ISO 639.
6560 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
6562 2003-06-15 Andreas Jaeger <aj@suse.de>
6564 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
6566 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6567 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
6568 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
6570 * math/tgmath.h (carg): Handle real arguments.
6576 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
6577 (tests): Add test-tgmath-ret.
6578 * math/test-tgmath-ret.c: New file.
6580 * math/tgmath.h (ilogb): Return always an int.
6582 2003-06-16 Ulrich Drepper <drepper@redhat.com>
6584 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
6585 computation so that prelinking works.
6587 2003-06-15 Ulrich Drepper <drepper@redhat.com>
6589 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
6591 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
6592 dynamic linker's map.
6594 Fix cancellation point handling wrt exception based cleanup.
6595 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
6596 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
6598 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
6599 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
6600 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
6602 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
6603 sigwait.c, and sigwaitinfo.c with exceptions.
6604 * stdlib/Makefile: Compile system.c with exceptions.
6605 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
6606 * termios/Makefile: Compile tcdrain.c with exceptions.
6607 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
6609 * sysdeps/generic/pselect.c: Likewise.
6610 * sysdeps/posix/sigpause.c: Likewise.
6611 * sysdeps/posix/system.c: Likewise.
6612 * sysdeps/posix/waitid.c: Likewise.
6613 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
6614 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
6615 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
6616 INTERNAL_SYSCALL to not use push inside asm statement so that
6617 unwind info is correct around the syscall.
6618 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
6619 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
6621 2003-06-15 Andreas Jaeger <aj@suse.de>
6623 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
6626 2003-06-15 Guido Guenther <agx@sigxcpu.org>
6628 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
6631 2003-06-14 Ulrich Drepper <drepper@redhat.com>
6633 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
6636 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
6637 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
6640 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
6641 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
6642 * inet/Makefile (routines): Add inet6_option.
6643 * inet/inet6_option.c: New file.
6644 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
6645 inet6_option_init, inet6_option_append, inet6_option_alloc,
6646 inet6_option_next, and inet6_option_find.
6648 2003-06-13 Ulrich Drepper <drepper@redhat.com>
6650 * inet/netinet/ip6.h (struct ip6_ext): Define.
6652 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
6654 Fixing gcc 3.3 warnings, part II.
6655 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
6656 * elf/dl-load.c (cache_rpath): Don't inline.
6657 * iconvdata/cns11642l2.h: Always inline all functions.
6658 * iconvdata/iso-ir-165.h: Likewise.
6659 * locale/Makefile (aux): Add coll-lookup.
6660 * locale/coll-lookup.c: New file.
6661 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
6662 (collseq_table_lookup): Likewise.
6663 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
6664 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
6666 * posix/regcomp.c: Likewise.
6667 * posix/regexec.c: Likewise.
6668 * locale/programs/3level.h (*_get): Always inline.
6669 * locale/programs/locfile.h: Move definition of handle_copy to...
6670 * locale/programs/locfile.c: ...here.
6671 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
6672 (obstack_int32_grow_fast): Likewise.
6673 (utf8_encode): Likewise.
6674 (find_element): Avoid aliasing problems.
6675 (insert_value): Likewise.
6676 (collate_read): Likewise.
6677 * nss/getent.c (print_hosts): Don't inline
6678 (print_networks): Likewise.
6679 (print_shadow): Likewise.
6680 (build_doc): Likewise.
6681 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
6683 * posix/regcomp.c (re_set_fastmap): Always inline.
6684 (seek_collating_symbol_entry): Likewise.
6685 (lookup_collation_sequence_value): Likewise.
6686 (build_range_exp): Likewise.
6687 (build_collating_symbol): Likewise.
6688 * posix/regexec.c (acquire_init_state_context): Don't inline.
6689 (clean_state_log_if_need): Likewise.
6690 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
6692 (evConsTime): Likewise.
6693 (evAddTime): Likewise.
6694 (evSubTime): Likewise.
6695 (evNowTime): Likewise.
6696 (evTimeSpec): Removed.
6697 (__libc_res_nsend): Avoid aliasing problem.
6698 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
6699 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
6700 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
6702 (_dl_string_platform): Likewise.
6703 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
6704 (wcwidth_table_lookup): Likewise.
6705 (wctrans_table_lookup): Likewise.
6707 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
6709 2003-06-12 Ulrich Drepper <drepper@redhat.com>
6711 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
6713 2003-05-29 Jim Meyering <jim@meyering.net>
6715 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
6716 && HAVE_STRFTIME]: Use underlying_strftime for %r.
6717 Suggested by Daniel Yacob <locales@geez.org>.
6719 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
6721 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
6722 @got notation with @toc.
6723 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
6724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
6726 2003-06-12 Ulrich Drepper <drepper@redhat.com>
6728 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
6729 if only PF_INET address is needed.
6731 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
6734 * scripts/config.guess: Update from upstream version.
6735 * scripts/config.sub: Likewise.
6737 2003-06-12 Jakub Jelinek <jakub@redhat.com>
6739 * locale/programs/ld-time.c (time_output): Also copy the era format,
6742 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
6744 * posix/transbug.c (run_test): Return 1 for failure.
6745 (do_test): Compare only if run_test is successful.
6747 2003-06-12 Simon Josefsson <jas@extundo.com>
6749 * argp/argp.h [!__THROW]: Define if undefined.
6751 2003-06-12 Ulrich Drepper <drepper@redhat.com>
6753 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
6754 more than four parameters.
6755 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
6757 2003-06-12 Jakub Jelinek <jakub@redhat.com>
6759 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6760 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
6761 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
6763 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
6765 2003-06-12 Roland McGrath <roland@redhat.com>
6767 * Makerules ($(objpfx)stubs): Rewrite sed magic.
6769 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
6771 * posix/regcomp.c (parse_expression): Deliver translation to
6772 build_word_op, and build_charclass.
6773 (build_charclass): Apply translation for character classes too.
6774 (build_word_op): Deliver translation to build_charclass.
6775 * posix/transbug.c: New file.
6776 * posix/Makefile (tests): Add transbug.
6778 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
6780 * posix/regexec.c (group_nodes_into_DFAstates): Check for
6781 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
6782 'continue' before the others.
6784 2003-06-11 Ulrich Drepper <drepper@redhat.com>
6786 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
6787 function [PR libc/5045].
6789 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
6792 * time/tzfile.c: Add a couple of __builtin_expect.
6794 Remove warnings gcc 3.3 shows.
6795 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
6796 * elf/dl-load.c (fillin_rpath): Likewise.
6797 (add_path): Likewise.
6798 * elf/dl-version.c (find_needed): Always inline.
6799 * elf/do-lookup.c (FCT): Don't inline.
6800 * iconv/Makefile: Extend vpath to intl subdir.
6801 (iconvconfig-modules): Add hash-string.
6802 * iconv/gconv_charset.h (strip): Don't inline.
6803 (upstr): Always inline.
6804 Move __gconv_compare_alias prototype to...
6805 * iconv/gconv_int.h: ...here.
6806 * iconv/gconv_db.c: Don't include gconv_charset.h.
6807 * iconv/gconv_conf.c (add_alias): Don't inline.
6808 (insert_module): Likewise.
6809 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
6810 (internal_ucs4_loop_unaligned): Likewise.
6811 (internal_ucs4_loop_single): Likewise.
6812 (ucs4_internal_loop): Likewise.
6813 (ucs4_internal_loop_unaligned): Likewise.
6814 (ucs4_internal_loop_single): Likewise.
6815 (internal_ucs4le_loop): Always inline.
6816 (internal_ucs4le_loop_unaligned): Likewise.
6817 (internal_ucs4le_loop_single): Likewise.
6818 (ucs4le_internal_loop): Likewise.
6819 (ucs4le_internal_loop_unaligned): Likewise.
6820 (ucs4le_internal_loop_single): Likewise.
6821 * iconv/loop.c: Always inline the defined functions.
6822 * iconvdata/cns11642.h: Likewise.
6823 * iconvdata/cns11642l1.h: Likewise.
6824 * iconvdata/euc-kr.c: Likewise.
6825 * iconvdata/gb2312.h: Likewise.
6826 * iconvdata/jis0201.h: Likewise.
6827 * iconvdata/jis0208.h: Likewise.
6828 * iconvdata/jis0212.h: Likewise.
6829 * iconvdata/jisx0213.h: Likewise.
6830 * iconvdata/ksc5601.h: Likewise.
6831 * iconvdata/utf-7.c (base64): Don't inline.
6832 * include/libc-symbols.h (symbol_set_first_element): Add cast
6833 (symbol_set_end_p): Likewise.
6834 * include/set-hooks (RUN_HOOK): Likewise.
6835 * inet/Makefile (aux): Add ifreq.
6836 * intl/Makefile (aux): Add some entries from routines. Add
6838 * intl/hash-string.c: New file.
6839 * intl/hash-string.h: Remove hash_string definition. Declare
6841 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
6842 * iconv/iconvconfig.c (new_name): Likewise.
6843 * intl/dcigettext.c (_nl_find_msg): Likewise.
6844 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
6845 * io/ftw.c (open_dir_stream): Always inline.
6846 (process_entry): Don't inline.
6847 * locale/findlocale.c: Include gconv_int.h.
6848 * locale/setlocale.c (new_composite_name): Don't inline.
6849 * locale/weight.h (findidx): Always inline.
6850 * locale/weightwc.h (findidx): Likewise.
6851 * locale/programs/linereader.c (lr_ignore_rest): Define here.
6852 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
6854 (lr_getc): Always inline.
6855 (lr_ungetc): Likewise.
6856 * nss/nss_files/files-parse.c (parse_list): Likewise.
6857 * stdio-common/Makefile (aux): Add printf-parsemb and
6859 * stdio-common/_itoa.h (_itoa_word): Always inline.
6860 (_fitoa_word, _fitoa): Don't define here, only declare.
6861 * stdio-common/_itoa.c (_iftoa_word): Add here.
6863 * stdio-common/_itowa.h (_itowa_word): Always inline.
6864 * stdio-common/printf-parse.h (read_int): Don't inline.
6865 (find_spec): Don't define.
6866 Declare __find_specmb and __find_specwc.
6867 (parse_one_spec): Don't define.
6868 Declare __parse_one_specmb and __parse_one_specwc.
6869 * stdio-common/printf-parsemb.c: New file.
6870 * stdio-common/printf-parsewc.c: New file.
6871 * stdio-common/vfprintf.c: Update calls to find_spec and
6872 parse_one_spec for new names.
6873 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
6874 * stdlib/Makefile (aux): Add grouping and groupingwc.
6875 * stdlib/grouping.c: New file.
6876 * stdlib/groupingwc.c: New file.
6877 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
6879 * stdlib/rpmatch.c (try): Don't inline.
6880 * stdlib/strtod.c (round_and_return): Don't line.
6881 (str_to_mpn): Likewise.
6882 (__mpn_lshift_1): Always inline. Optimize only for constant count.
6883 Adjust for name change of correctly_grouped_prefix.
6884 * sysdeps/generic/strtol.c: Adjust for name change of
6885 correctly_grouped_prefix.
6886 * string/strxfrm.c (utf8_encode): Don't inline.
6887 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
6888 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
6889 * sysdeps/generic/ifreq.c: New file.
6890 * sysdeps/unix/sysv/linux/ifreq.c: New file.
6891 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
6892 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
6893 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
6894 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
6895 (fde_split): Likewise.
6896 (fde_merge): Likewise.
6897 (end_fde_sort): Likewise.
6898 (init_object): Likewise.
6899 (binary_search_unencoded_fdes): Likewise.
6900 (binary_search_single_encoding_fdes): Likewise.
6901 (binary_search_mixed_encoding_fdes): Likewise.
6902 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
6903 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
6904 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
6905 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6907 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
6908 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
6909 Export them. Prepend __ to name.
6910 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
6911 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
6912 conversion functions.
6913 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6914 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6915 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6916 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
6917 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
6918 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6919 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6920 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
6921 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
6922 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
6923 to name. Change callers.
6924 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
6925 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
6927 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
6928 * time/tzfile.c (decode): Always inline.
6929 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
6930 Remove cast in tomb function call.
6931 * wcsmbs/wcsrtombs.c Likewise.
6932 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
6935 2003-06-10 Ulrich Drepper <drepper@redhat.com>
6937 * po/zh_CN.po: Update from translation team.
6939 2003-06-10 Jakub Jelinek <jakub@redhat.com>
6941 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
6942 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
6944 2003-06-10 Ulrich Drepper <drepper@redhat.com>
6946 * inet/Makefile (aux): Add check_pf.
6947 * include/ifaddrs.h: Add prototype for __check_pf.
6948 * sysdeps/generic/check_pf.c: New file.
6949 * sysdeps/unix/sysv/linux/check_pf.c: New file.
6950 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
6951 from no_netlink_support. Export.
6952 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
6955 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
6957 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
6958 from getifaddr calls.
6960 2003-06-09 Jakub Jelinek <jakub@redhat.com>
6962 * sysdeps/unix/sysv/linux/kernel-features.h
6963 (__ASSUME_SETRESGID_SYSCALL): Define.
6964 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
6965 instead of __ASSUME_SETRESUID_SYSCALL.
6966 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
6968 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
6969 inline syscall if __NR_setresuid32 is defined.
6970 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
6971 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
6972 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
6973 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
6974 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
6975 code handling non-existant setresgid32 syscall with
6976 #if __ASSUME_SETRESGID_SYSCALL == 0.
6978 2003-06-09 Andreas Schwab <schwab@suse.de>
6980 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
6981 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
6982 $(objpfx)rpc-proto.d.
6983 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
6984 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
6985 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
6987 2003-06-08 Ulrich Drepper <drepper@redhat.com>
6989 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
6990 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
6991 defined drop compatibility code.
6992 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
6993 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
6994 defined drop compatibility code.
6995 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
6996 setresuid32 syscall directly if possible.
6997 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
6998 setresgid32 syscall directly if possible.
6999 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
7000 compliant. Don't change sgid.
7001 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
7002 compliant. Don't change suid.
7004 * config.h.in: Add have-forced-unwind.
7005 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
7007 2003-06-07 Ulrich Drepper <drepper@redhat.com>
7009 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
7010 returned status from child matches.
7012 * Makeconfig (gnulib): Add -lgcc_eh once again.
7014 2003-06-06 Ulrich Drepper <drepper@redhat.com>
7016 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
7018 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
7019 %edx for first parameter. This means no pushl and therefore the
7020 unwind info isn't screwed up.
7022 2003-06-04 Richard Henderson <rth@redhat.com>
7024 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
7025 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7026 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
7027 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
7028 entry sequence and explicit relocs. Add unwind info for sigreturn
7030 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
7032 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
7033 Annotate some parameters.
7034 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
7036 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
7038 * include/libc-symbols.h (symbol_set_declare): Use arrays
7039 of unspecified size.
7041 2003-06-04 Jakub Jelinek <jakub@redhat.com>
7043 * config.make.in (ASFLAGS-config): New.
7044 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
7045 * configure.in (libc_cv_as_noexecstack): New check.
7046 (ASFLAGS_config): Substitute.
7048 2003-06-04 Jakub Jelinek <jakub@redhat.com>
7050 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
7051 hypot, logb): Protect with #ifdef __FAST_MATH__.
7053 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
7055 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
7056 #ifdef __FAST_MATH__.
7058 2003-06-03 Ulrich Drepper <drepper@redhat.com>
7060 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
7061 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
7062 * posix/globtest.sh: Adjust for this change.
7064 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
7065 to get the actual PID value used in the records passed up.
7066 (getifaddrs): Don't initialize nh.pid here.
7068 2003-06-02 Ulrich Drepper <drepper@redhat.com>
7070 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
7073 * po/zh_CN.po: Update from translation team.
7075 * posix/getconf.c (main): Also recognize names without the
7078 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
7080 2003-06-02 Bernd Schmidt <bernds@redhat.com>
7082 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
7083 ldexpf, ldexpl): Only define if __FAST_MATH__.
7085 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
7087 Replace hard-coded offsets into struct sigcontext with generated file.
7088 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
7089 * sysdeps/unix/sysv/linux/ia64/Makefile
7090 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
7091 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
7092 defining SC_* macros here.
7094 2003-06-02 Jakub Jelinek <jakub@redhat.com>
7096 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
7098 2003-06-01 Jakub Jelinek <jakub@redhat.com>
7100 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
7102 2003-06-01 Ulrich Drepper <drepper@redhat.com>
7104 * test-skeleton.c (main): Request getopt to not reorder the
7107 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
7109 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
7112 2003-05-31 Ulrich Drepper <drepper@redhat.com>
7114 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
7116 2003-05-31 Jakub Jelinek <jakub@redhat.com>
7118 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
7120 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
7121 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
7122 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
7124 2003-05-31 Ulrich Drepper <drepper@redhat.com>
7126 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
7129 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
7131 * libio/fileops.c (_IO_file_open): Don't mark as inline.
7133 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
7136 2003-05-30 Ulrich Drepper <drepper@redhat.com>
7138 * scripts/config.guess: Update from master copy.
7139 * scripts/config.sub: Likewise.
7141 2003-05-30 Guido Guenther <agx@sigxcpu.org>
7143 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
7144 SETUP_GP64 and friends.
7145 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
7146 names in internal_syscall{6,7}.
7147 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
7148 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
7149 number of syscall arguments.
7150 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7151 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7152 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7154 2003-05-30 Andreas Jaeger <aj@suse.de>
7156 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7159 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
7162 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
7164 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7167 2003-05-30 Jakub Jelinek <jakub@redhat.com>
7169 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
7172 2003-05-11 Andreas Schwab <schwab@suse.de>
7174 * Makerules: Always use -MP together with -MD.
7175 (sed-remove-dotot): Substitute $(..) also at start of line.
7176 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
7177 Generated defines with a single compiler call.
7178 Use $(sed-remove-dotdot).
7179 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
7180 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
7181 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
7182 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
7183 * sysdeps/unix/sysv/linux/mips/Makefile
7184 ($(objpfx)syscall-%.h): Likewise.
7186 2003-05-28 Roland McGrath <roland@redhat.com>
7188 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
7190 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
7192 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
7194 2003-05-28 Roland McGrath <roland@redhat.com>
7196 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
7197 rt_sigprocmask system call.
7198 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
7199 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
7201 2003-05-28 Ulrich Drepper <drepper@redhat.com>
7203 * include/libc-symbols.h: Define hidden attribute for real also if
7204 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
7206 * csu/Makefile: Add rules to build Scrt1.o.
7207 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
7208 * sysdeps/x86_64/elf/start.S: Likewise.
7210 2003-05-27 Jakub Jelinek <jakub@redhat.com>
7212 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
7213 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
7214 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
7215 pa_short_int, pa_u_short_int and pa_float.
7217 2003-05-26 Jakub Jelinek <jakub@redhat.com>
7219 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
7220 _IO_str_init_static_internal.
7221 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
7222 change size argument to _IO_size_t, don't limit sprintf to 64M.
7223 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
7224 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
7225 _IO_size_t, don't limit swprintf to 256M.
7226 (_IO_wstr_init_readonly): Remove.
7227 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
7229 (_IO_wstr_init_readonly): Remove prototype.
7230 * libio/iovsprintf.c (_IO_vsprintf): Use
7231 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
7232 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
7233 * libio/memstream.c (open_memstream): Likewise.
7234 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
7235 * libio/vasprintf.c (_IO_vasprintf): Likewise.
7236 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
7237 * stdio-common/tst-sprintf.c (main): Add new test.
7239 2003-05-26 Ulrich Drepper <drepper@redhat.com>
7241 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
7242 other implementation in respect of multiple uses of parameter with
7245 2003-05-25 Ulrich Drepper <drepper@redhat.com>
7247 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7248 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
7250 2003-05-22 Andreas Jaeger <aj@suse.de>
7252 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
7254 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
7255 * sysdeps/x86_64/strtok.S: Likewise.
7257 2003-05-20 Guido Guenther <agx@sigxcpu.org>
7259 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
7260 to -60 and define SI_TKILL.
7262 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
7264 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
7265 (feexcp_mask_test): Likewise.
7267 2003-05-21 Ulrich Drepper <drepper@redhat.com>
7269 * locale/programs/locale.c (main): Fix typo in last patch.
7271 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
7272 __init_array_start, __init_array_end, __fini_array_start, and
7273 __fini_array_end as hidden.
7275 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
7277 * locale/programs/locale.c (main): Report an error if setlocale()
7278 fails [PR libc/2254].
7280 2003-05-21 Jakub Jelinek <jakub@redhat.com>
7282 * sysdeps/unix/sysv/linux/s390/system.c: New file.
7284 2003-05-21 Jakub Jelinek <jakub@redhat.com>
7286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
7287 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
7288 LOADARGS_6): Don't error if syscall argument is a string literal.
7289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
7290 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
7291 LOADARGS_6): Likewise.
7293 2003-05-21 Andreas Jaeger <aj@suse.de>
7295 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
7296 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
7297 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
7299 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
7303 * configure.in: Test for asm cfi directives.
7305 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
7307 2003-05-17 Andreas Jaeger <aj@suse.de>
7309 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
7311 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
7313 2003-05-16 Ulrich Drepper <drepper@redhat.com>
7315 * rt/Makefile (tests): Add tst-clock_nanosleep.
7316 * rt/tst-clock_nanosleep.c: New file.
7317 * posix/Makefile (tests): Add tst-nanosleep.
7318 * posix/tst-nanosleep.c: New file.
7320 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
7322 * include/features.h (__USE_XOPEN2K): Define also for
7323 _POSIX_C_SOURCE>=200112L.
7325 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
7326 SI_TKILL code into SI_USER.
7327 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
7329 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
7331 2003-05-15 Jakub Jelinek <jakub@redhat.com>
7333 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
7334 Remove sym argument, always use refsym.
7335 (__process_machine_rela): Adjust callers.
7336 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
7338 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
7340 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
7342 2003-05-15 Ulrich Drepper <drepper@redhat.com>
7344 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
7345 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
7346 print numeric values.
7348 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
7350 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
7352 2003-05-14 Andreas Schwab <schwab@suse.de>
7354 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
7356 2003-05-14 Jakub Jelinek <jakub@redhat.com>
7358 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
7359 even if no DT_NEEDED is present.
7361 2003-05-13 David Mosberger <davidm@hpl.hp.com>
7363 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
7364 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
7365 __sigjmp_save) so we can't keep the saved unat value in a scratch
7366 register (r16). Use loc2 instead.
7368 2003-05-13 Ulrich Drepper <drepper@redhat.com>
7370 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
7371 binaries it has to be relocatable.
7373 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
7375 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
7377 * sysdeps/powerpc/bits/atomic.h
7378 (__arch_compare_and_exchange_bool_8_rel): Define.
7379 (__arch_compare_and_exchange_bool_16_rel): Define.
7380 (__ARCH_REL_INSTR): Define if not already defined.
7381 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
7382 (__arch_atomic_decrement_if_positive_32):
7383 Add "memory" to clobber list.
7384 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
7385 (__arch_compare_and_exchange_val_32_rel): Define.
7386 (__arch_atomic_exchange_32): Remove.
7387 (__arch_atomic_exchange_32_acq): Define.
7388 (__arch_atomic_exchange_32_rel): Define.
7389 (atomic_compare_and_exchange_val_rel): Define.
7390 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
7391 (atomic_exchange_rel): Define.
7392 * sysdeps/powerpc/powerpc32/bits/atomic.h
7393 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
7394 (__arch_compare_and_exchange_bool_32_rel): Define.
7395 (__arch_compare_and_exchange_bool_64_rel): Define.
7396 (__arch_compare_and_exchange_val_64_rel): Define.
7397 (__arch_atomic_exchange_64): Remove.
7398 (__arch_atomic_exchange_64_acq): Define.
7399 (__arch_atomic_exchange_64_rel): Define.
7400 * sysdeps/powerpc/powerpc64/bits/atomic.h
7401 (__arch_compare_and_exchange_bool_32_rel): Define.
7402 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
7403 (__arch_compare_and_exchange_bool_64_rel): Define.
7404 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
7405 (__arch_compare_and_exchange_val_64_rel): Define.
7406 (__arch_atomic_exchange_64): Remove.
7407 (__arch_atomic_exchange_64_acq): Define.
7408 (__arch_atomic_exchange_64_rel): Define.
7409 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
7410 (__arch_atomic_decrement_if_positive_64):
7411 Add "memory" to clobber list.
7412 [!UP](__ARCH_REL_INSTR): Define as lwsync.
7414 2003-05-11 Andreas Schwab <schwab@suse.de>
7416 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
7418 2003-05-11 Ulrich Drepper <drepper@redhat.com>
7420 * time/tst-strftime.c (do_test): Add tests for - flag.
7422 2003-05-11 Jim Meyering <jim@meyering.net>
7424 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
7425 the space-padded-by-default conversion specifiers, %e, %k, %l.
7427 2003-05-11 Andreas Schwab <schwab@suse.de>
7429 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
7431 2003-05-10 Ulrich Drepper <drepper@redhat.com>
7433 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
7434 already defined and when really needed.
7435 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7437 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
7439 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
7440 headers, add defines from kernel header, move it from here...
7441 * inet/netinet/igmp.h: ... to here.
7442 * inet/Makefile (headers): Add netinet/igmp.h.
7443 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
7444 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
7446 2003-05-10 Ulrich Drepper <drepper@redhat.com>
7448 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
7449 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
7451 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
7453 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
7454 (remove __THROW from possible cancellation points).
7456 2003-05-10 Ulrich Drepper <drepper@redhat.com>
7458 * posix/sched.h (CPU_SETSIZE): Define.
7460 2003-05-09 Ulrich Drepper <drepper@redhat.com>
7462 * Makeconfig (gnulib): Remove -lgcc_eh again.
7464 * posix/sched.h: Change prototypes of sched_getaffinity and
7465 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
7466 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
7467 * sysdeps/generic/sched_setaffinity.c: Likewise.
7468 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
7469 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
7470 __CPU_CLR, and __CPU_ISSET.
7471 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7472 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
7473 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
7475 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
7476 (atomic_exchange_rel): New #define.
7477 * sysdeps/ia64/bits/atomic.h: Likewise.
7478 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
7480 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
7481 * sysdeps/powerpc/bits/atomic.h: Likewise.
7482 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
7483 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
7484 * sysdeps/x86_64/bits/atomic.h: Likewise.
7485 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
7487 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
7489 2003-05-08 Ulrich Drepper <drepper@redhat.com>
7491 * malloc/thread-m.h: Remove special handling of thread_atfork if
7492 HAVE_register_atfork_malloc is defined.
7494 2003-05-07 Andreas Jaeger <aj@suse.de>
7496 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
7499 2003-05-06 Ulrich Drepper <drepper@redhat.com>
7501 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
7502 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
7503 * libio/libioP.h: Declare _IO_old_init.
7504 * libio/genops.c (_IO_no_init): Split in two. New function
7507 2003-05-05 Ulrich Drepper <drepper@redhat.com>
7509 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
7511 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
7513 * include/unistd.h: Declare __libc_enable_secure_decided.
7514 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
7515 and AT_EGID. If all found, set __libc_enable_secure and
7516 __libc_enable_secure_decided.
7518 * sysdeps/generic/libc-start.c [!SHARED]: Call
7519 __libc_check_standard_fds after __libc_init_first.
7521 2003-05-05 Roland McGrath <roland@redhat.com>
7523 * Makerules (common-before-compile): New variable.
7524 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
7525 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
7526 to after all setting of before-compile.
7528 2003-05-05 Jakub Jelinek <jakub@redhat.com>
7530 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
7531 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
7532 * sysdeps/powerpc/powerpc32/bits/atomic.h
7533 (__arch_compare_and_exchange_val_64_acq): Likewise.
7534 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
7535 (__arch_compare_and_exchange_val_8_acq,
7536 __arch_compare_and_exchange_val_16_acq,
7537 __arch_compare_and_exchange_val_64_acq): Likewise.
7538 * sysdeps/sparc/sparc64/bits/atomic.h
7539 (__arch_compare_and_exchange_val_8_acq,
7540 __arch_compare_and_exchange_val_16_acq): Likewise.
7541 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
7542 __arch_compare_and_exchange_val_16_acq,
7543 __arch_compare_and_exchange_val_64_acq): Likewise.
7544 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
7545 (__arch_compare_and_exchange_val_64_acq): Likewise.
7546 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
7548 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
7550 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
7551 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
7552 Return long instead of int.
7553 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
7554 0xfffff001u with -4095UL.
7556 2003-05-05 Andreas Jaeger <aj@suse.de>
7558 * sysdeps/x86_64/fpu_control.h: New from i386.
7560 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
7561 Define if not defined.
7563 * sunrpc/Makefile (generated-dirs): New variable.
7564 * resolv/Makefile (generated): New variable.
7566 2003-05-04 Roland McGrath <roland@redhat.com>
7568 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
7569 Depend on $(before-compile).
7571 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
7572 pattern rule. The implicit rule could be ruled out when $(objpfx)
7573 didn't exist at the time of its consideration (ugh!).
7575 * Makerules (+make-deps): Fix target matching.
7576 Use $(sed-remove-dotdot).
7578 2003-05-03 Ulrich Drepper <drepper@redhat.com>
7580 * nscd/nscd.c (main): Parse config file right after parsing
7581 parameters. Then, if get_stats is true, call receive_print_stats.
7582 Drop parameter from nscd_init call.
7583 (get_stats): New variable.
7584 (parse_opt): Set get_stats, don't call receive_print_stats here.
7585 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
7587 * nscd/connections.c (stat_user, stat_uid): New variables.
7589 (nscd_init): Don't read configuration file here. Drop parameter.
7590 (handle_request): Cleanup handling of non-database lookup requests.
7591 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
7592 Get UID of the specified user. Use xstrdup instead of strdup.
7593 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
7595 * nscd/Makefile (nscd-modules): Add xstrdup.
7596 * nscd/nscd.conf: Document stat-user entry.
7598 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
7600 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
7603 2003-04-22 Roland McGrath <roland@redhat.com>
7605 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
7606 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7607 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
7608 * elf/dl-support.c: Update defn.
7609 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
7610 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
7611 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
7612 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
7613 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
7614 set, set up a link_map for the preloaded, prelinked object.
7616 2003-05-03 Roland McGrath <roland@redhat.com>
7618 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
7619 * stdio-common/Makefile: ... not here.
7621 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
7622 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
7624 2003-05-02 Ulrich Drepper <drepper@redhat.com>
7626 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
7628 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
7630 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
7631 comparing ftab elements.
7632 (_dl_unmap): Fix typo in test.
7633 (_dl_make_fptr): Fix typos introduced in last change.
7635 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
7636 original patch. Use non-exported symbols. Mark translatable
7637 strings. Pretty printing.
7639 2003-05-02 Roland McGrath <roland@redhat.com>
7641 * Makerules (do-stamp): Do $(make-target-directory).
7643 2003-04-07 H.J. Lu <hjl@gnu.org>
7645 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
7647 2003-04-03 H.J. Lu <hjl@gnu.org>
7649 * sysdeps/ia64/dl-fptr.c: Moved to ...
7650 * sysdeps/generic/dl-fptr.c: Here.
7652 * sysdeps/generic/dl-fptr.h: New.
7653 * sysdeps/ia64/dl-fptr.h: New.
7655 * sysdeps/ia64/dl-symaddr.c: Moved to ...
7656 * sysdeps/generic/dl-symaddr.c: here.
7658 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
7659 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
7660 (ia64_fdesc): Likewise.
7661 (ia64_fdesc_table): Likewise.
7662 (__ia64_make_fptr): Likewise.
7663 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
7664 with _dl_boot_fptr_table.
7665 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
7667 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
7669 2003-05-01 Roland McGrath <roland@redhat.com>
7671 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
7672 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
7674 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
7675 Use $(make-target-directory).
7676 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
7678 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
7679 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
7680 (compile-command.s, compile-command.c): Likewise.
7681 ($(objpfx)%.d): All such pattern rules removed.
7682 ($(+sysdir_pfx)sysd-rules): Don't generate them.
7683 ($(common-objpfx)dummy.d): Target removed.
7684 (make-dummy-dep): Variable removed.
7685 (generate-md5): Likewise.
7686 (%.d: %.dt): New pattern rule.
7687 (+depfiles): Use $(wildcard) function to get just existing *.d files
7688 and .d files for existing *.dt files.
7689 (common-clean): Remove all *.d and *.dt files.
7690 (before-compile): Add $(objpfx). when it doesn't exist,
7691 regardless of $(no_deps).
7692 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
7693 (rtld-depfiles): Use .os.d instead of .d names.
7694 Include existing *.d files and .d files for existing *.dt files.
7696 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
7697 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
7699 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
7700 Do s-*.d includes only if we have some syscall routines in this subdir.
7702 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
7703 @nobits. The former is accepted by gas on any ELF platform.
7705 2003-05-01 Ulrich Drepper <drepper@redhat.com>
7707 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
7709 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
7711 2003-04-29 Andreas Schwab <schwab@suse.de>
7713 * string/test-strcat.c (do_one_test): Fix attribute name.
7715 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
7717 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
7718 uc_flags long for all ABIs.
7720 2003-04-30 Andreas Jaeger <aj@suse.de>
7722 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
7723 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
7724 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
7725 Add bi-arch support.
7727 2003-04-30 Ulrich Drepper <drepper@redhat.com>
7729 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
7730 (__posix_memalign): Use __memalign_internal instead of memalign.
7732 2003-04-29 Roland McGrath <roland@redhat.com>
7734 * configure.in: Search for AUTOCONF unconditionally.
7735 Just don't complain about missing it under --without-cvs.
7737 * include/libc-symbols.h (__symbol_set_attribute): New macro,
7738 give hidden for [SHARED] and weak for [! SHARED].
7739 (symbol_set_declare): Use that. Never need weak_extern these days.
7740 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
7741 Depend on $(..)Makerules.
7743 2003-04-29 Ulrich Drepper <drepper@redhat.com>
7745 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
7746 variants of socket, bind, recvmsg, and sendto.
7748 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
7750 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
7751 * signal/sigaddset.c: Add libc_hidden_def.
7752 * signal/sigdelset.c: Likewise.
7754 2003-04-29 Jakub Jelinek <jakub@redhat.com>
7756 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
7757 to the end of the file.
7759 * configure.in: Change __oline__ to $LINENO.
7760 (HAVE_BUILTIN_REDIRECTION): New check.
7761 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
7762 * include/libc-symbols.h (libc_hidden_builtin_proto,
7763 libc_hidden_builtin_def, libc_hidden_builtin_weak,
7764 libc_hidden_builtin_ver): Define.
7765 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
7766 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
7767 strspn, strstr): Add libc_hidden_builtin_proto.
7768 * intl/plural.y: Include string.h.
7769 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
7770 libc_hidden_builtin_def.
7771 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
7772 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
7773 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
7774 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
7775 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
7776 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
7777 * sysdeps/alpha/memchr.S (memchr): Likewise.
7778 * sysdeps/alpha/memset.S (memset): Likewise.
7779 * sysdeps/alpha/strcat.S (strcat): Likewise.
7780 * sysdeps/alpha/strchr.S (strchr): Likewise.
7781 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
7782 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
7783 * sysdeps/alpha/strlen.S (strlen): Likewise.
7784 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
7785 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
7786 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
7787 * sysdeps/arm/memset.S (memset): Likewise.
7788 * sysdeps/arm/strlen.S (strlen): Likewise.
7789 * sysdeps/generic/memchr.c (memchr): Likewise.
7790 * sysdeps/generic/memcpy.c (memcpy): Likewise.
7791 * sysdeps/generic/memmove.c (memmove): Likewise.
7792 * sysdeps/generic/memset.c (memset): Likewise.
7793 * sysdeps/generic/strcat.c (strcat): Likewise.
7794 * sysdeps/generic/strchr.c (strchr): Likewise.
7795 * sysdeps/generic/strcmp.c (strcmp): Likewise.
7796 * sysdeps/generic/strcpy.c (strcpy): Likewise.
7797 * sysdeps/generic/strcspn.c (strcspn): Likewise.
7798 * sysdeps/generic/strlen.c (strlen): Likewise.
7799 * sysdeps/generic/strncmp.c (strncmp): Likewise.
7800 * sysdeps/generic/strncpy.c (strncpy): Likewise.
7801 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
7802 * sysdeps/generic/strrchr.c (strrchr): Likewise.
7803 * sysdeps/generic/strspn.c (strspn): Likewise.
7804 * sysdeps/generic/strstr.c (strstr): Likewise.
7805 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
7806 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
7807 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
7808 * sysdeps/i386/i586/memset.S (memset): Likewise.
7809 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
7810 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
7811 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
7812 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
7813 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
7814 * sysdeps/i386/i686/memset.S (memset): Likewise.
7815 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
7816 * sysdeps/i386/memchr.S (memchr): Likewise.
7817 * sysdeps/i386/memset.c (memset): Likewise.
7818 * sysdeps/i386/strchr.S (strchr): Likewise.
7819 * sysdeps/i386/strcspn.S (strcspn): Likewise.
7820 * sysdeps/i386/strlen.c (strlen): Likewise.
7821 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
7822 * sysdeps/i386/strrchr.S (strrchr): Likewise.
7823 * sysdeps/i386/strspn.S (strspn): Likewise.
7824 * sysdeps/ia64/memchr.S (memchr): Likewise.
7825 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
7826 * sysdeps/ia64/memmove.S (memmove): Likewise.
7827 * sysdeps/ia64/memset.S (memset): Likewise.
7828 * sysdeps/ia64/strcat.S (strcat): Likewise.
7829 * sysdeps/ia64/strchr.S (strchr): Likewise.
7830 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
7831 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
7832 * sysdeps/ia64/strlen.S (strlen): Likewise.
7833 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
7834 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
7835 * sysdeps/m68k/memchr.S (memchr): Likewise.
7836 * sysdeps/m68k/strchr.S (strchr): Likewise.
7837 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
7838 * sysdeps/mips/mips64/memset.S (memset): Likewise.
7839 * sysdeps/mips/memcpy.S (memcpy): Likewise.
7840 * sysdeps/mips/memset.S (memset): Likewise.
7841 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
7842 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
7843 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
7844 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
7845 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
7846 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
7847 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
7848 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
7849 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
7850 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
7851 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
7852 * sysdeps/powerpc/strcat.c (strcat): Likewise.
7853 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
7854 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
7855 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
7856 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
7857 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
7858 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
7859 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
7860 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
7861 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
7862 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
7863 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
7864 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
7865 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
7866 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
7867 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
7868 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
7869 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
7870 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
7871 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
7872 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
7873 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
7874 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
7875 * sysdeps/sh/memcpy.S (memcpy): Likewise.
7876 * sysdeps/sh/memset.S (memset): Likewise.
7877 * sysdeps/sh/strlen.S (strlen): Likewise.
7878 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
7879 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
7880 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
7881 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
7882 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
7883 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
7884 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
7885 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
7886 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
7887 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
7888 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
7889 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
7890 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
7891 * sysdeps/x86_64/memset.S (memset): Likewise.
7892 * sysdeps/x86_64/strcat.S (strcat): Likewise.
7893 * sysdeps/x86_64/strchr.S (strchr): Likewise.
7894 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
7895 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
7896 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
7897 * sysdeps/x86_64/strlen.S (strlen): Likewise.
7898 * sysdeps/x86_64/strspn.S (strspn): Likewise.
7899 * string/string-inlines.c: Move...
7900 * sysdeps/generic/string-inlines.c: ...here.
7901 (__memcpy_g, __strchr_g): Remove.
7902 (__NO_INLINE__): Define before including <string.h>,
7903 undefine after. Include bits/string.h and bits/string2.h.
7904 * sysdeps/i386/i486/string-inlines.c: New file.
7905 * sysdeps/i386/string-inlines.c: New file.
7906 * sysdeps/i386/i486/Versions: Remove.
7907 All GLIBC_2.1.1 symbols moved...
7908 * sysdeps/i386/Versions (libc): ...here.
7910 2003-04-29 Ulrich Drepper <drepper@redhat.com>
7912 * sysdeps/i386/fpu/Makefile: New file.
7913 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
7914 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
7915 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
7916 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
7919 2003-04-28 Ulrich Drepper <drepper@redhat.com>
7921 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
7922 * nscd/nscd_getpw_r.c: Likewise.
7923 * nscd/nscd_gethst_r.c: Likewise.
7925 2003-04-27 Ulrich Drepper <drepper@redhat.com>
7927 * nscd/pwdcache.c: Initialize .version element in result.
7928 * nscd/grpcache.c: Likewise.
7929 * nscd/pwdcache.c: Likewise.
7931 2003-04-27 Andreas Schwab <schwab@suse.de>
7933 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
7936 2003-04-27 Andreas Schwab <schwab@suse.de>
7938 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
7940 2003-04-27 Ulrich Drepper <drepper@redhat.com>
7942 * nscd/connections.c (client_queued): New variable.
7943 (nscd_run): Revamp the loop. Don't call poll except for cleanup
7944 threads. Keep track of the number of delays caused because of busy
7946 * nscd/nscd.h: Declare client_queued.
7947 * nscd/nscd_stat.c: Transmit and print client_queued information.
7949 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
7951 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
7952 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
7954 2003-04-26 Ulrich Drepper <drepper@redhat.com>
7956 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
7957 tracking of freed memory in static TLS block.
7958 * elf/Makefile: Add rules to build and run tst-tls13.
7959 * elf/tst-tls13.c: New file.
7960 * elf/tst-tlsmod13.c: New file.
7961 * elf/tst-tlsmod13a.c: New file.
7963 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
7965 * elf/dl-reloc.c: Pretty printing.
7967 2003-04-26 Roland McGrath <roland@redhat.com>
7969 * Makerules ($(common-objpfx)shlib.lds): New target.
7970 (common-generated): Add it.
7971 (build-shlib, build-module): Use that instead of generating every time.
7972 ($(common-objpfx)libc.so): Depend on it.
7973 (lib%.so rule): Likewise.
7974 (build-module-helper-objlist): Remove %.lds.
7975 (LDSEDCMD-c.so): Variable removed.
7976 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
7977 Depend on $(common-objpfx)shlib.lds.
7978 * dlfcn/Makefile ($(test-modules)): Likewise.
7980 2003-04-26 Roland McGrath <roland@frob.com>
7982 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
7984 2003-04-26 Andreas Schwab <schwab@suse.de>
7986 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
7988 2003-04-25 Ulrich Drepper <drepper@redhat.com>
7990 * nscd/cache.c (cache_search): Keep track of how many chain links
7991 we searched and update table statistics.
7992 (cache_add): Keep track of how many values are in the table.
7993 (prune_cache): Likewise. Keep track of locking success.
7994 Print messages about removed entries in separate pass.
7995 * nscd/connections.c (handle_request): Don't print debug message here.
7996 The caller will do it. Keep track of locking success.
7997 (nscd_run): Print debug message. Also print PID of the client process.
7998 * nscd/nscd.c (start_time): New variable.
7999 (main): Remember start time.
8000 * nscd/nscd.h: Declare start_time.
8001 (struct database): Add more members for new statistics.
8002 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
8005 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
8007 2003-04-22 Jakub Jelinek <jakub@redhat.com>
8009 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
8010 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
8011 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
8013 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
8014 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
8015 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
8016 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
8019 2003-04-24 Ulrich Drepper <drepper@redhat.com>
8021 * nss/getent.c: Implement alternative host database lookup via
8024 * include/ifaddrs.h: New file.
8025 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
8027 * resolv/netdb.h: ...here.
8028 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
8029 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8030 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
8033 2003-04-24 Roland McGrath <roland@redhat.com>
8035 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
8037 2003-04-24 Jakub Jelinek <jakub@redhat.com>
8039 * elf/dl-reloc.c (allocate_static_tls): Rename to...
8040 (_dl_allocate_static_tls): ... this function. No longer static.
8041 (CHECK_STATIC_TLS): Adjust.
8042 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
8043 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
8044 Add SYM_MAP argument.
8045 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
8046 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
8047 TLS relocs here. #ifdef out relocs which never appear in
8048 .gnu.conflict section from dl-conflict.c processing.
8049 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8050 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
8052 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
8053 out relocs which never appear in .gnu.conflict section from
8054 dl-conflict.c processing.
8055 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
8056 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8057 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
8058 Use r_type in RESOLVE macro.
8060 2003-04-23 Ulrich Drepper <drepper@redhat.com>
8062 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
8063 NULL. Remove code made redundant by this assumption.
8064 (__yp_unbind): Add call to free. Adjust all callers.
8066 * nis/ypclnt.c (yp_all): Free the dom_binding object after
8069 * grp/initgroups.c (getgrouplist): Don't copy too much into the
8070 user buffer if more groups are found than fit into it.
8072 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
8075 2003-04-23 Jakub Jelinek <jakub@redhat.com>
8077 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
8078 not rc == errno. Use extend_alloca.
8080 * elf/tst-tls12.c (main): Fix declaration.
8081 * elf/tst-tls10.c (dummy): Make hidden instead of static.
8082 * elf/tst-tlsmod7.c (dummy): Likewise.
8083 * elf/tst-tlsmod8.c (dummy): Likewise.
8084 * elf/tst-tlsmod9.c (dummy): Likewise.
8086 2003-04-22 Roland McGrath <roland@redhat.com>
8088 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
8089 (open_not_cancel): Make last argument non-optional.
8090 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
8091 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8092 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8094 * include/tls.h: Protect against multiple inclusion.
8096 2003-04-22 Ulrich Drepper <drepper@redhat.com>
8098 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
8099 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
8100 open_socket. Not static anymore.
8101 (nscd_gethst_r): Use __nscd_open_socket.
8102 * nscd/nscd_getgr_r.c (open_socket): Removed.
8103 (nscd_getgr_r): Use __nscd_open_socket.
8104 * nscd/nscd_getpw_r.c (open_socket): Removed.
8105 (nscd_getpw_r): Use __nscd_open_socket.
8107 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
8108 * nscd/connections.c (handle_request): Add cast to avoid warning.
8110 2003-04-21 Ulrich Drepper <drepper@redhat.com>
8112 * signal/sigfillset.c: Moved to...
8113 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
8114 do not set the corresponding bit.
8116 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
8118 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
8119 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
8120 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
8121 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
8122 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
8124 2003-04-20 Ulrich Drepper <drepper@redhat.com>
8126 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
8127 first syscall parameter to const char*.
8129 2003-04-19 Ulrich Drepper <drepper@redhat.com>
8131 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
8133 * configure.in: Add AC_PROG_CXX.
8134 * config.make.in (CXX): Define.
8136 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
8137 __len to size_t to avoid warnings.
8139 2003-04-18 Jes Sorensen <jes@wildopensource.com>
8141 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
8143 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8145 2003-04-19 Ulrich Drepper <drepper@redhat.com>
8147 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
8148 UNREGISTER_ATFORK if d == NULL.
8150 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
8151 * dirent/dirent.h: Likewise.
8152 * dlfcn/dlfcn.h: Likewise.
8153 * grp/grp.h: Likewise.
8154 * iconv/iconv.h: Likewise.
8155 * io/fcntl.h: Likewise.
8156 * io/ftw.h: Likewise.
8157 * libio/stdio.h: Likewise.
8158 * misc/sys/mman.h: Likewise.
8159 * misc/sys/select.h: Likewise.
8160 * misc/sys/syslog.h: Likewise.
8161 * misc/sys/uio.h: Likewise.
8162 * posix/spawn.h: Likewise.
8163 * posix/unistd.h: Likewise.
8164 * posix/sys/wait.h: Likewise.
8165 * pwd/pwd.h: Likewise.
8166 * resolv/netdb.h: Likewise.
8167 * rt/aio.h: Likewise.
8168 * shadow/shadow.h: Likewise.
8169 * signal/signal.h: Likewise.
8170 * socket/sys/socket.h: Likewise.
8171 * stdlib/stdlib.h: Likewise.
8172 * streams/stropts.h: Likewise.
8173 * string/string.h: Likewise.
8174 * sysdeps/gnu/utmpx.h: Likewise.
8175 * sysvipc/sys/msg.h: Likewise.
8176 * termios/termios.h: Likewise.
8177 * time/time.h: Likewise.
8178 * wcsmbs/wchar.h: Likewise.
8179 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
8181 * misc/daemon.c: Likewise.
8182 * sysdeps/generic/backtracesymsfd.c: Likewise.
8183 * sysdeps/generic/check_fds.c: Likewise.
8184 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
8185 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
8186 * sysdeps/generic/not-cancel.h: New file.
8187 * csu/Makefile (distribute): Add not-cancel.h.
8188 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
8189 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
8190 for assert.c and assert-perr.c to include <fatal-prepare.h>.
8191 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
8193 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
8194 errno and unlink first.
8196 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
8198 2003-04-18 Ulrich Drepper <drepper@redhat.com>
8200 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
8201 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
8203 2003-04-17 Ulrich Drepper <drepper@redhat.com>
8205 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
8207 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
8208 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
8211 * signal/Makefile (tests): Add tst-sigsimple.
8212 * signal/tst-sigsimple.c: New file.
8214 2003-04-16 Jakub Jelinek <jakub@redhat.com>
8216 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
8218 (tests): Add tst-tls1[0-2].
8219 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
8220 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
8221 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
8222 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
8223 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
8224 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
8225 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
8226 * elf/tst-tls10.c: New test.
8227 * elf/tst-tls11.c: New test.
8228 * elf/tst-tls12.c: New test.
8229 * elf/tst-tls10.h: New file.
8230 * elf/tst-tlsmod7.c: New file.
8231 * elf/tst-tlsmod8.c: New file.
8232 * elf/tst-tlsmod9.c: New file.
8233 * elf/tst-tlsmod10.c: New file.
8234 * elf/tst-tlsmod11.c: New file.
8235 * elf/tst-tlsmod12.c: New file.
8237 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
8239 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
8240 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
8241 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
8243 2003-04-17 Ulrich Drepper <drepper@redhat.com>
8245 * posix/regex.h: Include <sys/types.h>.
8247 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
8248 The signal number must be checked.
8249 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
8250 The signal number must be checked [PR libc/5004].
8252 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
8253 don't do anything fancy.
8255 * sysdeps/generic/bits/libc-lock.h: Define
8256 __rtld_lock_define_initialized_recursive.
8258 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
8259 contacting nscd if NOT_USENSCD_NAME > 0.
8260 * nss/nsswitch.c (__nss_disable_nscd): New function.
8261 * nss/nsswitch.h: Declare it.
8262 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
8263 * nscd/nscd.c (main): Call __nss_disable_nscd.
8265 2003-04-16 Ulrich Drepper <drepper@redhat.com>
8267 * stdio-common/perror.c (perror): We don't need to set the offset
8268 to _IO_pos_bad, this is how streams are initialized.
8270 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
8271 (time_output): If necessary, allocate new buffer for .name string if
8272 padding is required.
8274 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
8275 before copying. This might leave holes in the list. Adjust
8276 pointers if necessary.
8277 (netlink_receive): Allocate only one block.
8278 (free_netlink_handle): Adjust appropriately.
8279 (getifaddrs): Lots of cleanups.
8281 * string/test-strncpy.c (do_one_test): Mark start and stop as
8283 * string/test-memchr.c: Likewise.
8284 * string/test-memcmp.c: Likewise.
8285 * string/test-memcpy.c: Likewise.
8286 * string/test-memmove.c: Likewise.
8287 * string/test-memset.c: Likewise.
8288 * string/test-strcat.c: Likewise.
8289 * string/test-strchr.c: Likewise.
8290 * string/test-strcmp.c: Likewise.
8291 * string/test-strcpy.c: Likewise.
8292 * string/test-strlen.c: Likewise.
8293 * string/test-strncmp.c: Likewise.
8294 * string/test-strpbrk.c: Likewise.
8295 * string/test-strrchr.c: Likewise.
8296 * string/test-strspn.c: Likewise.
8298 2003-04-15 Roland McGrath <roland@redhat.com>
8300 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
8302 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
8303 INTUSE(__register_frame_info_bases).
8305 2003-04-15 Ulrich Drepper <drepper@redhat.com>
8307 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
8308 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
8309 AT_SYSINFO_EH_FRAME. Adjust string width.
8310 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
8311 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
8312 Add _dl_sysinfo_eh_frame field.
8313 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
8314 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
8316 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
8317 if _dl_sysinfo_eh_frame is non-NULL.
8319 * Makeconfig (gnulib): Add -lgcc_eh.
8321 * config.h.in: Define HAVE_FORCED_UNWIND.
8323 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
8325 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
8326 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
8328 2003-04-15 Jakub Jelinek <jakub@redhat.com>
8330 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
8331 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
8332 against local symbol in conflict processing.
8334 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
8336 * sysdeps/powerpc/bits/atomic.h
8337 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
8338 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
8340 (__arch_compare_and_exchange_val_32_acq): Define.
8341 (atomic_compare_and_exchange_val_acq): Define.
8343 2003-04-15 Ulrich Drepper <drepper@redhat.com>
8345 * include/atomic.h: Pretty printing.
8347 2003-04-14 Ulrich Drepper <drepper@redhat.com>
8349 * stdio-common/vfscanf.c: Add casts to avoid warnings.
8351 2003-04-14 Jakub Jelinek <jakub@redhat.com>
8353 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
8354 * sysdeps/x86_64/bits/atomic.h: Likewise.
8356 2003-04-14 Ulrich Drepper <drepper@redhat.com>
8358 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
8359 POPARGS_1 to emit labels for the mov instructions.
8361 2003-04-14 Jakub Jelinek <jakub@redhat.com>
8363 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
8365 2003-04-14 Roland McGrath <roland@redhat.com>
8367 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
8370 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
8372 2003-04-14 Ulrich Drepper <drepper@redhat.com>
8374 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
8375 position. Reported by jreiser@BitWagon.com.
8377 2003-04-13 Ulrich Drepper <drepper@redhat.com>
8379 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
8380 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
8381 * sysdeps/generic/unwind-dw2.c: Likewise.
8382 * sysdeps/generic/unwind-pe.h: Likewise.
8384 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
8386 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
8387 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
8388 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
8389 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
8390 (mcontext_t): Make it match the 32-bit mips kernel in o32.
8391 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
8392 the mips and mips64 headers.
8393 (struct user): Port to n32/n64.
8395 2003-04-12 Ulrich Drepper <drepper@redhat.com>
8397 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
8400 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
8401 __ASSUME_VSYSCALL is defined don't add restorer.
8402 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8403 __ASSUME_VSYSCALL for 2.5.53.
8405 2003-04-11 Ulrich Drepper <drepper@redhat.com>
8407 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
8408 Remove HAVE_CANCELBUF code. Replace with code using the new
8409 initializers for unwind-based cleanup handling.
8410 * sysdeps/generic/unwind.h: Update from latest gcc version.
8411 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
8412 places to allow unwind data generation.
8413 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
8414 * sysdeps/x86_64/bits/setjmp.h: Likewise.
8415 * sysdeps/sh/bits/setjmp.h: Likewise.
8416 * sysdeps/powerpc/bits/setjmp.h: Likewise.
8417 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
8418 * sysdeps/alpha/bits/setjmp.h: Likewise.
8420 2003-04-11 Roland McGrath <roland@redhat.com>
8422 * csu/tst-empty.c: New file.
8423 * csu/Makefile (tests, tests-static): Add it.
8425 2003-04-11 Jakub Jelinek <jakub@redhat.com>
8427 * string/test-strcmp.c (do_random_tests): Test whether return value
8428 has been promoted to wordsize if the ABI requires caller to do so.
8429 * string/test-strncmp.c (do_random_tests): Likewise.
8430 * string/test-memcmp.c (do_random_tests): Likewise.
8432 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
8435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8436 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
8437 is not defined, but the prctl constants are.
8439 * string/tester.c (test_strcmp): Fix a typo.
8441 2003-04-09 Ulrich Drepper <drepper@redhat.com>
8443 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
8444 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
8446 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
8448 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
8450 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
8452 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
8454 * sysdeps/mips/mips64/memset.S: Likewise.
8455 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
8456 Use t0 instead of t4 as temporary.
8458 2003-04-07 Ulrich Drepper <drepper@redhat.com>
8460 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
8461 feof_unlocked instead of feof.
8462 (add_dir): Ignore trailing whitespace.
8464 2003-04-07 Jakub Jelinek <jakub@redhat.com>
8466 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
8467 sum of SIZE1 and SIZE2 arguments.
8469 2003-04-06 Ulrich Drepper <drepper@redhat.com>
8471 * iconv/iconv_prog.c (process_block): Don't print message about
8472 invalid input if the -c option is used.
8473 (main): Correctly append IGNORE string for -c option.
8475 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8477 * sysdeps/sh/bits/atomic.h: Moved to ...
8478 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
8479 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
8481 (atomic_bit_set, atomic_bit_test_set): Likewise.
8482 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
8484 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
8486 2003-04-06 Roland McGrath <roland@redhat.com>
8488 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
8489 restoration as done for setcontext yesterday.
8491 2003-04-06 Jakub Jelinek <jakub@redhat.com>
8493 * elf/rtld.c: Revert 2003-03-14 change.
8494 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
8495 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
8497 2003-04-05 Ulrich Drepper <drepper@redhat.com>
8499 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
8501 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8502 Always initialize *signgamp before returning an error.
8504 2003-04-05 Roland McGrath <roland@redhat.com>
8506 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
8507 below the stack pointer even if switching to the same context we are
8510 2003-04-05 Ulrich Drepper <drepper@redhat.com>
8512 * catgets/gencat.c (read_input_file): Make sure that \n is not
8513 alone on the line before testing for continuation.
8515 * math/test-tgmath.c (compile_test): Initialize c.
8517 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
8519 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
8520 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
8521 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
8523 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
8524 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
8525 structure on n32 as well.
8526 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
8527 data types on n32 and n64.
8529 2003-04-05 Ulrich Drepper <drepper@redhat.com>
8531 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
8534 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
8535 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
8536 instead of __register_atfork.
8538 2003-04-05 Jakub Jelinek <jakub@redhat.com>
8540 * stdio-common/reg-printf.c (__register_printf_function): Calloc
8541 instead of malloc __printf_arginfo_table and __printf_function_table.
8542 Reported by John Reiser <jreiser@BitWagon.com>.
8544 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
8546 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
8547 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
8549 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
8552 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
8554 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
8557 2003-04-03 Roland McGrath <roland@redhat.com>
8559 * configure.in: Fix up use of compilation flags to match the build:
8560 For .s files, $ASFLAGS;
8561 For .S files, $CPPFLAGS $ASFLAGS;
8562 For .c files, $CFLAGS $CPPFLAGS;
8563 when linking, add $LDFLAGS.
8564 * configure: Regenerated.
8566 2003-04-03 Jakub Jelinek <jakub@redhat.com>
8568 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
8569 for atomic_compare_and_exchange_bool_acq failure.
8571 2003-04-03 Ulrich Drepper <drepper@redhat.com>
8573 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
8574 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
8575 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
8576 Remove declaration of pthread_atfork.
8578 2003-04-02 Ulrich Drepper <drepper@redhat.com>
8580 * locale/iso-639.def: Add many more languages from the current ISO 639.
8582 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
8583 * sysdeps/generic/semtimedop.c: New file.
8584 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
8585 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
8586 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8587 * sysvipc/Makefile (routines): Add semtimedop.
8588 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
8589 * sysvipc/sys/sem.h: Declare semtimedop.
8591 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
8593 * configure.in: Check for __register_frame_info in both
8595 * configure: Regenerated.
8597 2003-04-01 Roland McGrath <roland@redhat.com>
8599 * scripts/abilist.awk: Allow dots in soname suffix.
8601 * scripts/abilist.awk (emit): Fix bailout condition.
8603 2003-04-01 Jakub Jelinek <jakub@redhat.com>
8605 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
8608 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
8609 register as input to asm.
8611 2003-04-01 Jakub Jelinek <jakub@redhat.com>
8613 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
8615 2003-04-01 Andreas Jaeger <aj@suse.de>
8617 * configure.in: Output as/ld as name if version is too old.
8619 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
8621 * configure.in: Don't require an installed C library in the test
8622 for ".set" assembler support.
8624 2003-03-31 Roland McGrath <roland@redhat.com>
8626 * signal/tst-sigset.c: New file.
8627 * signal/Makefile (tests): Add it.
8629 2003-03-31 Ulrich Drepper <drepper@redhat.com>
8631 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
8632 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
8633 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
8634 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
8635 (__SIGRTMAX): Adjust accordingly.
8636 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
8637 second compatibility symbol set.
8638 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
8640 2003-03-31 Andreas Schwab <schwab@suse.de>
8642 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
8644 (atomic_decrement_and_test): Fix test.
8646 2003-03-31 Jakub Jelinek <jakub@redhat.com>
8648 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
8649 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
8650 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
8651 * sysdeps/sparc/sparc32/atomicity.h: Removed.
8652 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
8653 * sysdeps/sparc/sparc64/atomicity.h: Removed.
8655 2003-03-30 Roland McGrath <roland@redhat.com>
8657 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
8659 * intl/po2test.sed: Anchor substitution regexps to fix last change.
8661 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
8663 * intl/po2test.sed: Unify the transformations for msgid and msgstr
8664 and remove a useless s/// command.
8666 2003-03-27 David Mosberger <davidm@hpl.hp.com>
8668 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
8669 directive into empty .prologue region to ensure that call-chain
8670 is terminated even for the first instruction.
8672 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
8673 to terminate call-chain right from the get-go.
8675 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
8676 stop bit between compare & branch.
8678 2003-03-29 Ulrich Drepper <drepper@redhat.com>
8680 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
8681 point correctly [PR libc/4993].
8683 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
8684 netlink_open calls if netlink is known to not be available.
8686 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
8688 * configure.in: Add mips64* support.
8689 * sysdeps/mips/bits/endian.h: Make it bi-endian.
8690 * sysdeps/mips/mipsel/bits/endian.h: Removed.
8691 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
8692 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
8693 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
8694 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
8695 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
8696 * sysdeps/mips/Implies: Moved wordsize-32 to...
8697 * sysdeps/mips/mips32/Implies: New file.
8698 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
8700 (ret, PSEUDO_END): Moved past END.
8701 (PSEUDO): Moved to...
8702 * sysdeps/unix/mips/mips32/sysdep.h: New file.
8703 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
8704 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
8705 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
8706 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
8707 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
8709 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
8712 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
8714 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
8715 * inet/test-ifaddrs.c: Allow AF_PACKET.
8716 * sysdeps/unix/sysv/linux/kernel-features.h: Add
8717 __ASSUME_NETLINK_SUPPORT.
8719 2003-03-28 Ulrich Drepper <drepper@redhat.com>
8721 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
8723 2003-03-26 H.J. Lu <hjl@gnu.org>
8725 * elf/vismod.h (getvarlocal1): Return const char **.
8726 (getvarinmod1): Likewise.
8727 (getvaritcpt1): Likewise.
8728 (getvarlocal2): Likewise.
8729 (getvarinmod2): Likewise.
8730 (getvaritcpt2): Likewise.
8731 (getvaritcpt3): Likewise.
8732 * elf/vismain.c (do_test): Adjusted.
8733 * elf/vismod1.c (getvarlocal1): Return address.
8734 (getvarinmod1): Likewise.
8735 (getvaritcpt1): Likewise.
8736 * elf/vismod2.c (getvarlocal2): Likewise.
8737 (getvarinmod2): Likewise.
8738 (getvaritcpt2): Likewise.
8739 * elf/vismod3.c (getvaritcpt3): Likewise.
8741 2003-03-28 Roland McGrath <roland@redhat.com>
8743 * elf/vismain.c (do_test): Print both addresses when they don't match.
8745 * scripts/abilist.awk: If given -v filename_regexp and/or -v
8746 libname_regexp when parsing names, then produce output only
8747 for those matching the given regexps. In combine mode, save all
8748 stanzas for a final sorting by stanza header at the end.
8749 Emit a blank line between stanzas.
8751 * scripts/abilist.awk: When given -v combine=1, do parse_names and
8752 emit a single output stream with lib name in stanza header lines.
8754 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
8756 2003-03-27 Roland McGrath <roland@redhat.com>
8758 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
8759 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
8761 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8763 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
8764 Return old value. Make asm output reg constraint earlyclobber.
8766 (__arch_compare_and_exchange_8_acq): ... this.
8767 (__arch_compare_and_exchange_val_16_acq):
8768 Return old value. Make asm output reg constraint earlyclobber.
8770 (__arch_compare_and_exchange_16_acq): ... this.
8771 (__arch_compare_and_exchange_val_32_acq):
8772 Return old value. Make asm output reg constraint earlyclobber.
8774 (__arch_compare_and_exchange_32_acq): ... this.
8775 (__arch_compare_and_exchange_val_64_acq):
8777 (__arch_compare_and_exchange_64_acq): ... this.
8778 (atomic_exchange_and_add): Use local variables and
8779 __arch_compare_and_exchange_val_64_acq.
8780 (atomic_add): Likewise.
8781 (atomic_add_negative, atomic_add_zero): Use local variables.
8783 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
8785 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
8787 2003-03-27 Ulrich Drepper <drepper@redhat.com>
8789 * Makefile: Remove libmd5crypt goal.
8791 2003-03-25 Jakub Jelinek <jakub@redhat.com>
8793 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
8794 special handling of relocations against local symbols.
8796 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
8798 * sysdeps/powerpc/bits/atomic.h
8799 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
8800 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
8801 Define PPC64 specific version.
8802 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
8803 Change (mem) constraint to "b".
8804 [__powerpc64__] (__arch_atomic_exchange_and add_64):
8805 Replace addi with add. Change (value) contraint to "r".
8806 Change (mem) constraint to "b".
8807 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
8808 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
8809 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
8810 (__arch_atomic_decrement_if_positive_32): New macro.
8811 (atomic_decrement_if_positive): Use __arch* macros.
8813 2003-03-27 Jakub Jelinek <jakub@redhat.com>
8815 * sysdeps/ia64/fpu/libm-test-ulps: Update.
8817 2003-03-27 Roland McGrath <roland@redhat.com>
8819 * scripts/rpm2dynsym.sh: New file.
8820 * Makefile (distribute): Add it.
8822 2003-03-27 David Mosberger <davidm@hpl.hp.com>
8824 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
8825 ar.unat before returning. Add missing .mem.offset directives
8826 to ensure file gets assembled without warnings.
8827 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
8829 2003-03-27 Jakub Jelinek <jakub@redhat.com>
8831 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
8832 Return -1 instead of 0 if clock_getres failed.
8834 2003-03-27 Roland McGrath <roland@redhat.com>
8836 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
8837 header lines and write out foo.symlist files for each foo.so.NN listed.
8839 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
8840 This symbol is exported, and we don't want to hide it.
8841 Add libc_hidden_proto instead.
8842 (_IO_file_jumps): Add libc_hidden_proto.
8843 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
8845 * libio/fileops.c (_IO_file_jumps): Likewise.
8846 * libio/stdfiles.c: Don't use INTUSE on them.
8847 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8848 * libio/iofopen.c (__fopen_internal): Likewise.
8849 * libio/freopen.c (freopen): Likewise.
8850 * libio/freopen64.c (freopen64): Likewise.
8851 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8853 * Makerules (check-abi) [$(enable-check-abi) = warn]:
8854 Ignore exit status from diff.
8855 * configure.in (enable_check_abi): Document possible value "warn".
8856 Change default to no for now.
8857 * configure: Regenerated.
8859 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
8860 macro calls and a #include <stub-tag.h> at the end.
8861 * Makerules ($(objpfx)stubs): Tweak sed commands.
8863 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
8864 caller column for *xattr syscalls, since they are in sysdeps/generic.
8866 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
8867 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
8869 2003-03-26 Roland McGrath <roland@redhat.com>
8871 * Makerules (check-abi-config): Use /thread instead of /tls when
8872 use-thread and not just use-tls is set.
8874 * Makerules (update-abi): Put quotes around $(update-abi-config).
8876 * elf/Makefile (check-abi): Depend on check-abi-ld.
8877 (update-abi): Depend on update-abi-ld.
8879 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
8881 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
8882 do not check for errors (unless testing for 32bit variant).
8883 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
8885 2003-03-27 Philip Blundell <philb@gnu.org>
8887 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
8888 unconditional mov. Remove nop.
8890 * sysdeps/unix/sysv/linux/kernel-features.h
8891 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
8892 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
8893 when __ASSUME_VFORK_SYSCALL is defined.
8894 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
8895 __ASSUME_MMAP2_SYSCALL.
8896 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
8897 __ASSUME_REALTIME_SIGNALS.
8899 2003-03-26 Ulrich Drepper <drepper@redhat.com>
8901 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
8902 only if DL_NO_COPY_RELOCS is not defined.
8903 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
8905 2003-03-26 Roland McGrath <roland@redhat.com>
8907 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
8908 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
8909 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
8910 (sysdep_routines): Add stub-syscalls.
8911 ($(objpfx)stub-syscalls.c): New target.
8912 (generated): Add stub-syscalls.c.
8914 * tls.make.c: Also define use-tls according to USE_TLS macro.
8916 2003-03-26 Ulrich Drepper <drepper@redhat.com>
8918 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
8919 no-op padding element.
8920 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
8921 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8922 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8923 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8925 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
8927 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
8928 condition check for the return value of getgroups32.
8930 2003-03-26 Jakub Jelinek <jakub@redhat.com>
8932 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
8934 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
8935 PSEUDO_END_NOERRNO): Define.
8936 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
8937 Define to PSEUDO_END.
8939 2003-03-26 Ulrich Drepper <drepper@redhat.com>
8941 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
8943 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
8945 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
8946 * iconvdata/bug-iconv4.c: New file.
8947 * iconvdata/Makefile (tests): Add bug-iconv4.
8949 2003-03-25 H.J. Lu <hjl@gnu.org>
8951 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
8953 (_dl_lookup_versioned_symbol): Likewise.
8955 2003-03-26 Jakub Jelinek <jakub@redhat.com>
8957 * csu/tst-atomic.c (do_test): Add some new
8958 atomic_compare_and_exchange_val_acq, atomic_add_zero,
8959 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
8960 * include/atomic.h (atomic_add_negative, atomic_add_zero):
8961 Prefix local variable so that it doesn't clash with the one
8962 in atomic_exchange_and_add.
8963 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
8965 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
8966 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
8967 value into register.
8968 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
8969 Cast newval to long.
8970 * sysdeps/x86_64/bits/atomic.h
8971 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
8973 (atomic_exchange): Cast newvalue to long if sizeof == 8.
8974 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
8975 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
8976 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
8978 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
8980 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
8981 bit from backtrace addresses.
8983 2003-03-21 Andreas Schwab <schwab@suse.de>
8985 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
8988 2003-03-25 Roland McGrath <roland@redhat.com>
8990 * config.make.in (enable-check-abi): New variable from configure.
8991 * configure.in (enable_check_abi): New substituted variable,
8992 controlled by --{enable,disable}-check-abi (default yes).
8993 * configure: Regenerated.
8994 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
8995 on check-abi dependency.
8997 2003-03-26 Andreas Schwab <schwab@suse.de>
8999 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
9000 * include/atomic.h: Likewise.
9002 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
9004 2003-03-25 Roland McGrath <roland@redhat.com>
9006 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
9007 (__arch_atomic_exchange_64): New macro.
9008 (atomic_exchange): Use them.
9009 (__arch_atomic_exchange_and_add_32): New macro.
9010 (__arch_atomic_exchange_and_add_64): New macro.
9011 (atomic_exchange_and_add): Use them.
9012 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
9014 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
9016 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
9018 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
9020 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
9021 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
9022 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
9023 to decide whether to add padding.
9024 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
9025 to decide whether to add padding.
9026 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
9027 old_kernel_sigaction): Likewise.
9029 2003-03-25 Ulrich Drepper <drepper@redhat.com>
9031 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
9032 atomic_add_zero were supposed to do.
9033 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
9036 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
9037 This matches the new timer implementation.
9038 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
9040 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
9042 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
9043 timer info for what the kernel provides these days.
9044 (struct sigevent): Add _tid field.
9045 Define SIGEV_THREAD_ID.
9046 Remove struct __pthread_attr_s forward declaration.
9047 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
9048 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9049 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9050 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9052 * Versions.def (librt): Add GLIBC_2.3.3.
9054 * abilist/libpthread.abilist: Update for nptl.
9056 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
9058 * inet/netinet/in.h: Add IPPROTO_SCTP.
9060 2003-03-24 Ulrich Drepper <drepper@redhat.com>
9062 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
9064 2003-03-24 Philip Blundell <philb@gnu.org>
9066 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
9067 Remove a1 from clobber list.
9069 2003-03-24 Ulrich Drepper <drepper@redhat.com>
9071 * timezone/antarctica: Update from tzdata2003a.
9072 * timezone/asia: Likewise.
9073 * timezone/australasia: Likewise.
9074 * timezone/europe: Likewise.
9075 * timezone/iso3166.tab: Likewise.
9076 * timezone/northamerica: Likewise.
9077 * timezone/southamerica: Likewise.
9078 * timezone/zone.tab: Likewise.
9080 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
9082 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
9084 2003-03-23 Ulrich Drepper <drepper@redhat.com>
9086 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
9087 unwanted expansion by definining to ret. Patch by Ian Wienand.
9089 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
9090 the parameter description to denote no error checking. Generate
9091 appropriate pseudo asm code.
9092 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
9093 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
9094 getpgrp, and getppid with 'E'.
9095 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
9096 PSEUDO_END_NOERRNO, and ret_NOERRNO.
9097 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
9098 * sysdeps/unix/sysdep.h: Likewise.
9099 * sysdeps/unix/alpha/sysdep.h: Likewise.
9100 * sysdeps/unix/sparc/sysdep.h: Likewise.
9101 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9102 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
9103 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9104 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9105 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9106 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9107 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9108 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9109 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9110 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9111 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9113 2003-03-23 Roland McGrath <roland@redhat.com>
9115 * Makeconfig (+includes): Don't use $(last-includes).
9117 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
9119 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
9120 * sysdeps/unix/sysv/linux/configure: Rebuilt.
9122 2003-03-23 Jakub Jelinek <jakub@redhat.com>
9124 * sysdeps/alpha/fpu/libm-test-ulps: Update.
9125 * sysdeps/arm/libm-test-ulps: Update.
9126 * sysdeps/hppa/fpu/libm-test-ulps: Update.
9127 * sysdeps/ia64/fpu/libm-test-ulps: Update.
9128 * sysdeps/mips/fpu/libm-test-ulps: Update.
9129 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9130 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9131 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9132 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9133 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
9134 * sysdeps/s390/fpu/libm-test-ulps: Update.
9135 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9137 2003-03-22 Roland McGrath <roland@redhat.com>
9139 * include/atomic.h: Put parens around all macro arguments.
9140 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
9141 (atomic_compare_and_exchange_val_acq): Use it.
9142 (atomic_compare_and_exchange_bool_acq): Likewise.
9143 (atomic_increment_and_test): Invert sense of test.
9144 (atomic_decrement_and_test): Likewise.
9145 * csu/tst-atomic.c: Update those tests to match.
9147 2003-03-22 Jakub Jelinek <jakub@redhat.com>
9149 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
9150 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
9151 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
9152 __oldval variable in the macro, since it might be macro argument.
9153 (atomic_decrement_if_positive): Initialize __memp, remove setting
9154 of non-existent variable.
9155 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
9156 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
9157 using atomic_compare_and_exchange_val_acq.
9158 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
9159 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
9161 (__arch_compare_and_exchange_bool_8_acq): ... this.
9162 (__arch_compare_and_exchange_val_16_acq): Renamed from...
9163 (__arch_compare_and_exchange_bool_16_acq): ... this.
9164 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
9166 (__arch_compare_and_exchange_bool_32_acq): ... this.
9167 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
9169 (__arch_compare_and_exchange_bool_64_acq): ... this.
9170 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
9171 variables types instead of assuming int.
9172 Change prefix of local variables to __arch.
9173 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
9175 (atomic_compare_and_exchange_val_acq,
9176 atomic_compare_and_exchange_bool_acq): Define.
9178 * csu/tst-atomic.c: New test.
9179 * csu/tst-atomic-long.c: New test.
9180 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
9182 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
9184 * sysdeps/s390/Versions: Add trailing newline.
9186 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
9187 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
9189 2003-03-22 Andreas Schwab <schwab@suse.de>
9191 * sysdeps/m68k/fpu/libm-test-ulps: Update.
9193 * sysdeps/m68k/m68020/bits/atomic.h: New file.
9194 * sysdeps/m68k/m68020/atomicity.h: Removed.
9196 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
9198 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
9199 data structures and macros. Protect from multiple inclusion.
9201 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
9204 2003-03-21 Andreas Jaeger <aj@suse.de>
9206 * sysdeps/i386/fpu/libm-test-ulps: Update.
9208 * math/libm-test.inc (tgamma_test): Recompute some constants with
9209 36 digits precision.
9210 (lgamma_test): Likewise.
9211 (ccos_test): Likewise.
9212 (ccosh_test): Likewise.
9213 (clog10_test): Likewise.
9214 (csin_test): Likewise.
9215 (csinh_test): Likewise.
9216 (ctan_test): Likewise.
9217 (ctanh_test): Likewise.
9219 2003-03-19 Jakub Jelinek <jakub@redhat.com>
9221 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
9223 2003-03-21 Roland McGrath <roland@redhat.com>
9225 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
9226 constraint to permit non-constant BIT argument.
9227 (atomic_bit_test_set): Likewise.
9228 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
9229 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
9230 For quadword case, use "i" constraint if __builtin_constant_p and < 32
9231 or "r" constraint otherwise.
9233 * configure.in: Move AC_PROG_CC and other program-finding before all
9235 * configure: Regenerated.
9237 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
9239 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
9240 unaligned copying of 8-15 bytes. From Chris Demetriou
9241 <cgd@broadcom.com>. Fix label names.
9242 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
9243 change as to memcpy.S.
9244 * sysdeps/mips/memcpy.S: Formatting changes.
9245 * sysdeps/mips/memset.S: Likewise.
9247 2003-03-21 Roland McGrath <roland@redhat.com>
9249 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
9251 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
9253 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
9254 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
9256 2003-03-21 Roland McGrath <roland@redhat.com>
9258 * sysdeps/i386/i486/bits/atomic.h
9259 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
9260 version of the macro to avoid compile-time warnings.
9261 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
9262 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
9263 (atomic_increment, atomic_decrement): Likewise.
9265 2003-03-21 Ulrich Drepper <drepper@redhat.com>
9267 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
9268 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9270 2003-03-21 Roland McGrath <roland@redhat.com>
9272 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
9274 2003-03-20 Ulrich Drepper <drepper@redhat.com>
9276 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
9277 atomic_compare_and_exchange_val_rel,
9278 atomic_compare_and_exchange_bool_acq, and
9279 atomic_compare_and_exchange_bool_rel instead of
9280 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
9281 * sysdeps/i386/i486/bits/atomic.h: Define
9282 __arch_compare_and_exchange_val_*_acq instead of
9283 __arch_compare_and_exchange_*_acq.
9284 * sysdeps/x86_64/bits/atomic.h: Likewise.
9285 * sysdeps/ia64/bits/atomic.h: Define
9286 __arch_compare_and_exchange_bool_*_acq instead of
9287 __arch_compare_and_exchange_*_acq.
9288 * sysdeps/powerpc/bits/atomic.h: Likewise.
9289 * sysdeps/s390/bits/atomic.h: Likewise.
9290 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
9291 * malloc/set-freeres.c: Likewise.
9292 * nscd/cache.c: Likewise.
9293 * stdlib/cxa_finalize.c: Likewise.
9294 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
9296 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
9298 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
9299 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
9300 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9302 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
9303 into high and low halves on n64.
9304 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9305 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9306 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9308 2003-03-20 Ulrich Drepper <drepper@redhat.com>
9310 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
9311 correct atomic_compare_and_exchange_acq semantics.
9313 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
9315 * sysdeps/mips/ieee754.h: Remove excess #endif.
9317 2003-03-20 Roland McGrath <roland@redhat.com>
9319 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
9320 variable. Remove superfluous memory clobber.
9322 * include/atomic.h: Syntax braino fix.
9324 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
9325 in decimal. Don't bail if niced at start. Just check that nice call
9326 bumps the total at all.
9328 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
9330 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
9331 including pc, gp, sp and fp, as long long.
9332 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
9333 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
9334 Add gp argument, and set gp in the jmpbuf to it.
9335 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
9337 2003-03-20 Ulrich Drepper <drepper@redhat.com>
9339 * include/atomic.h: Define atomic_exchange and
9340 atomic_decrement_if_positive if not already defined. Add some
9342 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
9343 * sysdeps/x86_64/bits/atomic.h: Likewise.
9344 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
9345 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
9346 atomic_exchange, atomic_exchange_and_add, and
9347 atomic_decrement_if_positive
9349 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
9351 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
9352 with a single instruction.
9354 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
9356 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
9358 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
9359 Word before comparing with gotsym. Take reloc_addr argument as
9360 void*. Remove the code added for the compiler to drop any
9361 alignment assumptions.
9363 2003-03-19 Ulrich Drepper <drepper@redhat.com>
9365 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
9366 * include/atomic.h: New file.
9367 * sysdeps/i386/i486/bits/atomic.h: New file.
9368 * sysdeps/x86_64/bits/atomic.h: New file.
9369 * sysdeps/s390/bits/atomic.h: New file.
9370 * sysdeps/sh/bits/atomic.h: New file.
9371 * sysdeps/ia64/bits/atomic.h: New file.
9372 * sysdeps/powerpc/bits/atomic.h: New file.
9373 * sysdeps/generic/bits/atomic.h: New file.
9374 * sysdeps/i386/i486/atomicity.h: Removed.
9375 * sysdeps/x86_64/atomicity.h: Removed.
9376 * sysdeps/s390/s390-32/atomicity.h: Removed.
9377 * sysdeps/s390/s390-64/atomicity.h: Removed.
9378 * sysdeps/ia64/atomicity.h: Removed.
9379 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
9380 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
9381 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
9382 use of macros from atomicity.h to new names and semantics.
9383 * gmon_mcount.c: Likewise.
9384 * malloc/set-freeres.c: Likewise.
9385 * nscd/cache.c: Likewise.
9386 * stdlib/cxa_finalize.c: Likewise.
9387 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
9389 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
9391 * sysdeps/mips/ieee754.h: New file, suitable to replace both
9392 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
9393 mips-specific for now.
9395 2003-03-19 Ulrich Drepper <drepper@redhat.com>
9397 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
9398 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
9399 * stdlib/tst-strtod.c: Add test for the bug.
9401 * posix/tst-nice.c (do_test): Remove invalid of return value.
9402 Don't run test if initial level != 0.
9404 2003-03-19 Amos Waterland <apw@us.ibm.com>
9406 * posix/tst-nice.c: New file.
9407 * posix/Makefile (tests): Add tst-nice.
9409 2003-03-18 Roland McGrath <roland@redhat.com>
9411 * abilist: New directory of libfoo.abilist files maintained using
9412 scripts/merge-abilist.awk and "make update-abi" rules.
9413 * Makefile (distribute): Add abilist/*.abilist.
9414 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
9415 Depend on check-abi.
9417 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
9418 * configure: Regenerated.
9420 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
9422 2003-03-18 Ulrich Drepper <drepper@redhat.com>
9424 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
9427 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
9429 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
9431 2003-03-18 Ulrich Drepper <drepper@redhat.com>
9433 * Versions.def: Add GLIBC_2.3.3 for libpthread.
9435 2003-03-17 Ulrich Drepper <drepper@redhat.com>
9437 * sysdeps/generic/libc-start.c [!SHARED &&
9438 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
9440 2003-03-17 Roland McGrath <roland@redhat.com>
9442 * include/ctype.h: Revert last change.
9444 2003-03-17 Ulrich Drepper <drepper@redhat.com>
9446 * argp/tst-argp1.c: Use test-skeleton.c.
9447 * locale/tst-C-locale.c: Likewise.
9449 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
9451 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
9452 * sysdeps/mips/mips64/n64/Implies: New file.
9453 * sysdeps/mips/mips64/n64/Makefile: New file.
9454 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
9455 * sysdeps/mips/mips64/n32/Implies: New file.
9456 * sysdeps/mips/mips64/n32/Makefile: New file.
9457 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
9458 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
9459 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
9460 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
9461 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
9462 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
9463 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
9464 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
9465 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
9466 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
9467 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
9468 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
9469 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
9470 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
9472 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
9473 lib64 for mips64/n64 and lib32 for mips64/n32.
9474 (ldd_rewrite_script): Needed for all mips64 configurations.
9475 * sysdeps/unix/sysv/linux/configure: Rebuilt.
9476 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
9477 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
9479 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
9482 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
9483 asm/unistd.h into asm-unistd.h.
9484 * sysdeps/unix/sysv/linux/mips/configure: Generated.
9485 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
9487 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
9488 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
9491 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
9492 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
9493 long type for registers on n32.
9495 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
9497 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
9498 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
9499 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
9500 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
9501 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
9502 * sysdeps/unix/mips/brk.S: Likewise.
9503 * sysdeps/unix/mips/sysdep.S: Likewise.
9504 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
9505 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
9506 * sysdeps/mips/sys/ucontext.h: Likewise.
9507 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
9508 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
9509 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
9510 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9511 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
9512 * sysdeps/mips/mips64/setjmp.S: Likewise.
9513 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
9514 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
9517 2003-03-16 Ulrich Drepper <drepper@redhat.com>
9519 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
9520 not at function level.
9521 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
9523 2003-03-15 Roland McGrath <roland@redhat.com>
9525 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
9526 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
9527 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
9528 * nis/nis_table.c (__create_ib_request): Likewise.
9530 * posix/fnmatch_loop.c: Add casts for signedness.
9531 * nss/nss_files/files-hosts.c: Likewise.
9532 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
9533 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
9534 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
9536 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
9537 get errors into the log file.
9538 (libc_cv_broken_visibility_attribute): Likewise.
9539 (libc_cv_broken_alias_attribute): Likewise.
9540 (libc_cv_asm_weak_directive): Likewise.
9541 (libc_cv_need_minus_P): Likewise.
9542 (libc_cv_dot_text): Likewise.
9543 (libc_cv_asm_global_directive): Likewise.
9544 (libc_cv_asm_type_prefix): Likewise.
9545 * configure: Regenerated.
9547 * nscd/cache.c (cache_search): Give first arg type `request_type'.
9548 * nscd/nscd.h: Update decl.
9550 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
9551 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9552 * elf/dl-close.c (_dl_close): Likewise.
9553 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
9554 * io/fts.c (fts_build): Likewise.
9555 * elf/cache.c (add_to_cache): Likewise.
9556 * locale/programs/locarchive.c (show_archive_content): Likewise.
9558 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
9560 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
9562 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
9564 2003-03-15 Ulrich Drepper <drepper@redhat.com>
9566 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
9567 code for most parts.
9569 2003-03-15 Roland McGrath <roland@redhat.com>
9571 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
9572 * sysdeps/unix/sysv/linux/system.c: ... here.
9573 (FORK): Don't #define if already #define'd.
9574 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
9575 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
9576 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
9578 * dlfcn/tst-dlinfo.c: New file.
9579 * dlfcn/Makefile (tests): Add tst-dlinfo.
9580 ($(objpfx)tst-dlinfo): New target.
9582 * dlfcn/dlinfo.c: New file.
9583 * dlfcn/Makefile (libdl-routines): Add it.
9584 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
9585 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
9586 [__USE_GNU] (RTLD_DI_*): New enum constants.
9587 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
9588 * elf/dl-load.c (cache_rpath): New inline function.
9589 (_dl_map_object): Use it.
9590 (_dl_rtld_di_serinfo): New function.
9591 * sysdeps/generic/ldsodefs.h: Declare it.
9592 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
9594 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
9595 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
9596 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
9597 (__libc_start_main): Just call the generic one for most of the work.
9599 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
9600 static function by that name instead of BP_SYM (__libc_start_main).
9601 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
9602 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
9603 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
9605 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
9606 Use this macro for extra AT_* cases.
9607 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
9608 New macro, guts from ...
9609 (__aux_init_cache): ... here, function removed.
9610 (DL_PLATFORM_INIT): Don't define this.
9612 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
9613 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
9615 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
9617 2003-03-14 Roland McGrath <roland@redhat.com>
9619 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
9621 2003-03-14 Jakub Jelinek <jakub@redhat.com>
9623 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
9625 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9626 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
9628 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
9630 * sysdeps/mips/fpu/bits/mathdef.h: New.
9631 (__NO_LONG_DOUBLE_MATH): Define for o32.
9633 * sysdeps/mips/sys/asm.h: Formatting changes.
9634 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
9635 (CPADD): Define for all of them.
9636 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
9637 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
9638 NARGSAVE): Define per ABI spec.
9639 (END): Don't redefine.
9640 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
9641 LONG_SRAV): Remove duplicate definitions.
9642 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
9643 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
9644 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
9645 (PTR_LA): Define for all 3 ABIs.
9647 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
9648 (elf_machine_matches_host): Prevent linking of o32 and n32
9650 (elf_machine_dynamic): Document assumption on $gp.
9651 (STRINGXP, STRINGXV, STRINGV_): New macros.
9652 (elf_machine_load_address): Use them to stringize PTR_LA and
9654 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
9655 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
9656 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
9657 (__dl_runtime_resolve): Cast the symtab initializer to the
9659 (RTLD_START): Use it. Adjust it for all 3 ABIs.
9660 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
9661 Handle 64-bit R_MIPS_REL composite relocation and accept
9662 R_MIPS_64 relocations to shift addend size to 64 bits.
9663 Document assumption regarding local GOT entries. Document
9664 backward-compatibility departing from the ABI behavior in
9665 applying relocations that reference section symbols, no longer
9666 used. Support relocations to mis-aligned offsets.
9667 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
9669 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
9671 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
9672 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
9673 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
9674 restore_rt functions. Use them.
9676 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
9677 .set mips2 on new abis.
9679 2003-03-13 Ulrich Drepper <drepper@redhat.com>
9681 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
9682 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
9683 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
9684 * sysdeps/posix/pathconf.c: Likewise.
9685 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
9686 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
9687 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
9689 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
9692 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
9694 * include/gmp.h: Include/gmp-mparam.h.
9695 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
9698 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
9699 ELF_MACHINE_NO_RELA is set.
9700 * elf/rtld.c (dl_main): No prelink support for REL-only.
9702 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
9703 FLAG_MIPS64_LIBN64): Define.
9704 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
9706 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
9707 * sysdeps/mips/memset.S: Likewise.
9708 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
9709 depending on the ABI.
9711 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
9712 Don't .set mips2 on new abi.
9713 (compare_and_swap): Likewise. Support 64-bit longs on n64.
9715 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
9717 2003-03-13 Roland McGrath <roland@redhat.com>
9719 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
9720 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
9722 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
9724 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
9726 * stdlib/fpioconst.c: Likewise.
9727 * stdlib/strtod.c: Likewise.
9729 * sysdeps/mips/add_n.S: Use L macro for local labels.
9730 * sysdeps/mips/addmul_1.S: Likewise.
9731 * sysdeps/mips/lshift.S: Likewise.
9732 * sysdeps/mips/memcpy.S: Likewise.
9733 * sysdeps/mips/memset.S: Likewise.
9734 * sysdeps/mips/mul_1.S: Likewise.
9735 * sysdeps/mips/rshift.S: Likewise.
9736 * sysdeps/mips/sub_n.S: Likewise.
9737 * sysdeps/mips/submul_1.S: Likewise.
9738 * sysdeps/mips/mips64/add_n.S: Likewise.
9739 * sysdeps/mips/mips64/addmul_1.S: Likewise.
9740 * sysdeps/mips/mips64/lshift.S: Likewise.
9741 * sysdeps/mips/mips64/mul_1.S: Likewise.
9742 * sysdeps/mips/mips64/rshift.S: Likewise.
9743 * sysdeps/mips/mips64/sub_n.S: Likewise.
9744 * sysdeps/mips/mips64/submul_1.S: Likewise.
9745 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
9746 conventions. Define END as in sys/asm.h.
9747 * sysdeps/unix/mips/sysdep.S: Likewise.
9748 * sysdeps/unix/mips/wait.S: Likewise.
9749 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
9751 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
9752 Cast shifted values that may be too narrow to mp_limb_t.
9753 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
9755 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
9757 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
9758 (__mpn_extract_long_double): Likewise.
9759 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
9760 (__mpn_construct_long_double): Likewise.
9761 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
9762 (__mpn_extract_long_double): Likewise.
9763 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
9764 (__mpn_construct_long_double): Likewise.
9766 2003-03-13 Roland McGrath <roland@redhat.com>
9768 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
9769 entries in the map file match too.
9771 2003-03-13 Guido Guenther <agx@sigxcpu.org>
9773 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
9774 label .Lthread_start since current binutils don't allow branches
9775 to globally visible symbols.
9777 2003-03-13 Jakub Jelinek <jakub@redhat.com>
9779 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
9780 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
9781 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
9782 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
9783 clobbered by the syscall.
9784 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
9785 ASM_ARGS_6): Change constraints from r to index of corresponding
9787 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
9788 ptid and ctid to match kernel.
9789 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
9791 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
9793 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
9794 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
9795 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
9797 2003-03-11 Roland McGrath <roland@redhat.com>
9799 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9800 Check SYM_MAP rather than SYM as definedness check.
9801 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
9802 Don't handle R_PPC64_REL24 reloc.
9803 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
9805 * sysdeps/powerpc/powerpc64/dl-machine.h
9806 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
9807 block, so we cover all the TPREL16* flavors without 6 ||s.
9808 [USE_TLS] (elf_machine_tprel): New function.
9809 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
9810 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
9811 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
9813 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
9815 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
9816 instead of jalr to invoke subroutine so restoring the $gp register
9819 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
9821 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
9822 to __NR_pread if not defined.
9823 (__NR_pwrite64): Define to __NR_pwrite if not defined.
9825 2003-03-11 Jakub Jelinek <jakub@redhat.com>
9827 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
9828 * sysdeps/unix/sysv/linux/kernel-features.h
9829 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
9832 2003-03-11 Jakub Jelinek <jakub@redhat.com>
9834 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
9835 allocate space even for the trailing '/'.
9836 Reported by John Reiser <jreiser@BitWagon.com>.
9838 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
9839 ASM_CLOBBERS_6): Define.
9840 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
9841 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
9842 to match IA-32 order.
9843 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
9845 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
9847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
9848 Copy extra params for NPTL to registers used in clone syscall.
9850 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9852 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
9853 call names for pread and pwrite.
9855 2003-03-10 Roland McGrath <roland@redhat.com>
9857 * dlfcn/Makefile (libdl-routines): Add dladdr1.
9858 * dlfcn/dladdr1.c: New file.
9859 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
9860 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
9861 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
9862 a const ElfNN_Sym ** to fill in.
9863 * include/dlfcn.h: Update decl. Include <link.h>.
9864 * dlfcn/dladdr.c (dladdr): Update caller.
9865 * malloc/mtrace.c (tr_where): Likewise.
9866 * sysdeps/generic/elf/backtracesyms.c: Likewise.
9867 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9868 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
9869 * Versions.def (libdl): Define GLIBC_2.3.3 set.
9871 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
9873 * sysdeps/unix/Makefile (compile-syscall): New variable.
9874 Pass -g0 to compiler for assembling syscall stubs from stdin.
9876 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
9877 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
9878 Define these to do nothing.
9880 * configure.in: New check for -g on .S files.
9881 * configure: Regenerated.
9882 * config.make.in (have-cpp-asm-debuginfo): New variable.
9883 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
9884 * Makeconfig (ASFLAGS): New variable, if undefined and
9885 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
9886 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
9888 2003-03-09 Roland McGrath <roland@redhat.com>
9890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
9891 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
9893 2003-03-09 Ulrich Drepper <drepper@redhat.com>
9895 * po/fi.po: Update from translation team.
9896 * po/ca.po: Likewise.
9897 * po/da.po: Likewise.
9899 2003-03-08 Ulrich Drepper <drepper@redhat.com>
9901 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
9903 2003-03-07 Ulrich Drepper <drepper@redhat.com>
9905 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
9907 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
9909 2003-03-07 Roland McGrath <roland@redhat.com>
9911 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
9912 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
9914 2003-03-04 Guido Guenther <agx@sigxcpu.org>
9916 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
9917 stubs, we have INLINE_SYSCALL.
9918 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
9921 2003-03-06 Roland McGrath <roland@redhat.com>
9923 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
9924 permanent extent and add a comment about testing its implicit teardown.
9926 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9928 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
9930 2003-03-05 Ulrich Drepper <drepper@redhat.com>
9932 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
9933 reversed __builtin_expect expectation.
9935 2003-03-05 Roland McGrath <roland@redhat.com>
9937 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
9938 * libio/swscanf.c: Likewise.
9939 * libio/swprintf.c: Likewise.
9941 2003-03-04 Roland McGrath <roland@redhat.com>
9943 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
9944 (elf_machine_rela): Always use RESOLVE_MAP, needed for
9945 R_PPC64_JMP_SLOT as well as TLS cases.
9946 (BIT_INSERT): Move parenthesis where it ought to have been.
9947 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
9949 * posix/confstr.c (confstr): Correct STRING_LEN values for
9950 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
9951 break. Reported by Alexandre Julliard <julliard@winehq.com>.
9953 2003-03-04 Jakub Jelinek <jakub@redhat.com>
9955 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
9957 2003-03-04 Ulrich Drepper <drepper@redhat.com>
9959 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
9962 * po/sv.po: Update from translation team.
9964 2003-03-04 Andreas Jaeger <aj@suse.de>
9965 Ulrich Drepper <drepper@redhat.com>
9967 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
9969 2003-03-03 Ulrich Drepper <drepper@redhat.com>
9971 * sysdeps/generic/dl-sysdep.h: Add double include protection.
9973 * po/tr.po: Update from translation team.
9975 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
9976 are holes between the segments. Only call mprotect to set
9977 proection to PROT_NONE if there are some.
9979 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
9982 * include/sched.h (__clone2): Use ... instead of adding all the
9985 2003-03-03 Roland McGrath <roland@redhat.com>
9987 * elf/dl-load.c (struct filebuf): Fix typo in last change.
9989 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
9990 PI_STATIC_AND_HIDDEN.
9992 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
9994 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
9996 * include/sched.h: Update clone2 prototype.
9998 2003-03-03 Andreas Jaeger <aj@suse.de>
10000 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
10001 (llrint): Use it to correct return type.
10003 (lround): Likewise.
10004 (llround): Likewise.
10006 2003-03-03 Ulrich Drepper <drepper@redhat.com>
10008 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
10011 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
10012 if ccs parameter isn't valid. Reported by Andreas Schwab.
10014 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
10016 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
10017 for system call numbers > 255.
10018 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
10019 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
10020 INTERNAL_SYSCALL): Likewise.
10021 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
10022 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
10023 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
10024 INTERNAL_SYSCALL): Likewise.
10026 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
10028 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
10029 array if it is the initial dtv.
10031 2003-03-03 Ulrich Drepper <drepper@redhat.com>
10033 * po/es.po: Update from translation team.
10034 * po/fr.po: Likewise.
10035 * po/gl.po: Likewise.
10036 * po/sk.po: Likewise.
10037 * po/sv.po: Likewise.
10039 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
10040 * misc/sys/mman.h: Add prototype for remap_file_pages.
10041 * sysdeps/generic/remap_file_pages.c: New file.
10042 * misc/Makefile (routines): Add remap_file_pages.
10043 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
10045 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
10047 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10048 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
10049 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
10050 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
10051 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10052 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
10053 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
10054 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
10056 2003-03-03 Roland McGrath <roland@redhat.com>
10058 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
10059 * sysdeps/ia64/dl-machine.h: Likewise.
10060 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
10062 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
10064 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
10065 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
10066 * locale/Versions (libc: GLIBC_2.3): Move those to ...
10067 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
10068 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
10069 * Versions.def (libc): Add GLIBC_2.3.3 set.
10071 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
10072 * sysdeps/ia64/dl-machine.h: Update decl.
10074 2003-03-03 Andreas Jaeger <aj@suse.de>
10076 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
10078 2003-03-02 Roland McGrath <roland@redhat.com>
10080 * scripts/abilist.awk: Reject data items with apparent 0 size.
10082 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
10083 after foo.* as if it were a duplicate.
10085 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
10087 2003-03-02 Ulrich Drepper <drepper@redhat.com>
10089 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
10091 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
10092 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
10093 if not already defined. Use SYSDEP_GETRES to allow other files to
10094 provide alternative implementations.
10095 * sysdeps/unix/sysv/linux/clock_getres.c: New file
10096 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
10097 if not already defined. Use SYSDEP_GETTIME to allow other files to
10098 provide alternative implementations.
10099 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
10100 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
10101 if not already defined. Use SYSDEP_GETTIME to allow other files to
10102 provide alternative implementations.
10103 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
10104 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
10105 other files to provide alternative implementations. Rearrange
10106 tests for invalid parameters.
10107 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
10108 * sysdeps/unix/sysv/linux/sysconf.c: New file.
10109 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10110 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
10111 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
10112 _POSIX_MONOTONIC_CLOCK.
10114 2003-03-02 Roland McGrath <roland@redhat.com>
10116 * scripts/merge-abilist.awk: More checks for bogus input.
10117 Uniquify duplicate config names.
10119 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
10121 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
10122 from dl_reloc_overflow, make global.
10123 (__process_machine_rela): Update callers.
10124 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
10125 Add attribute_hidden to __process_machine_rela decl.
10126 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
10128 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
10131 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
10132 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
10133 (elf_machine_rela): Clean up.
10135 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
10137 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
10138 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
10139 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
10140 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
10141 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
10142 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
10143 new relocs for TLS.
10145 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
10146 macros out of [SHARED].
10147 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
10149 * elf/elf.h: Define R_PPC_* relocs for TLS support.
10150 Clean up R_PPC64_* macro definition comments.
10152 * configure.in: In "running configure fragment for" message,
10153 omit $srcdir from the name if we prepended it.
10154 * configure: Regenerated.
10156 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
10157 From Jakub Jelinek <jakub@redhat.com>.
10159 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
10160 which duplicated the O_DIRECT defn.
10162 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
10164 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
10167 2003-03-01 Andreas Schwab <schwab@suse.de>
10169 * resolv/Makefile (tests): Don't depend on
10170 $(objpfx)mtrace-tst-leaks when cross compiling.
10172 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
10173 __libc_stack_end through GOT since it is a global symbol.
10175 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
10177 * argp/argp.h: Fix a typo.
10178 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
10180 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
10182 2003-02-27 Pat Rankin <rankin@pactechdata.com>
10184 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
10186 (get_subexp): Likewise.
10188 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
10190 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
10192 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
10194 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
10196 2003-02-27 Roland McGrath <roland@redhat.com>
10198 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
10199 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
10200 repeat it and avoids the test for the common case.
10201 Clean up and fix calculations for TLS relocs.
10203 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
10204 * sysdeps/powerpc/dl-tls.h: ... here.
10205 (TLS_TP_OFFSET): New macro.
10207 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
10209 2003-02-27 Ulrich Drepper <drepper@redhat.com>
10211 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
10212 code generation changes in recent gcc.
10214 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
10216 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
10217 Rename argument to avoid symbol conflict.
10219 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
10220 [__USE_GNU] (O_DIRECT): New macro.
10222 2003-02-24 David Mosberger <davidm@hpl.hp.com>
10224 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
10227 2003-02-27 Ulrich Drepper <drepper@redhat.com>
10229 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
10230 initializer anymore now that res_thread_freeres is more careful.
10232 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
10233 except the PKTINFO. Reset interface in PKTINFO.
10234 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
10236 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
10238 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
10239 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
10241 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
10242 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
10243 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
10244 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
10246 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
10247 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
10249 2003-02-25 Andreas Jaeger <aj@suse.de>
10251 * manual/memory.texi (Malloc Tunable Parameters): Clarify
10252 behaviour of M_MMAP_THRESHOLD.
10254 2003-02-25 Roland McGrath <roland@redhat.com>
10256 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
10257 zero, inidicating _res was not initialized yet.
10259 2003-02-24 Ulrich Drepper <drepper@redhat.com>
10261 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
10264 2003-02-24 Roland McGrath <roland@redhat.com>
10266 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
10268 2003-02-23 Roland McGrath <roland@redhat.com>
10270 * sysdeps/posix/pause.c: New file.
10271 * sysdeps/unix/common/pause.c: File removed.
10273 2003-02-23 Ulrich Drepper <drepper@redhat.com>
10275 * sysdeps/generic/bits/confname.h: Remove #ifs.
10277 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
10278 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
10280 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
10283 2003-02-22 Ulrich Drepper <drepper@redhat.com>
10285 * sysdeps/generic/dl-sysdep.c: Avoid warning.
10287 2003-02-22 Roland McGrath <roland@redhat.com>
10289 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
10290 * resolv/Makefile (tests): Add tst-leaks.
10291 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
10292 (tst-leaks-ENV): New variable.
10293 ($(objpfx)mtrace-tst-leaks): New target.
10294 (tests): Depend on it.
10296 * include/libc-internal.h: Declare __libc_thread_freeres.
10298 * Makerules: Fix last change to use $($(subdir)-version) when set.
10300 * Makerules (install-lib-nosubdir): Depend on installed
10301 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
10302 regardless of the libfoo.so target's dependencies.
10304 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
10305 Use that in $(MAKE) calls.
10307 2003-02-22 Ulrich Drepper <drepper@redhat.com>
10309 * catgets/gencat.c (read_input_file): Collision between
10310 auto-assigned numbers and user-defined nubmers is not fatal.
10312 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
10313 * catgets/Makefile: Add rules to run test2.msg test.
10314 * catgets/test2.msg: New file.
10316 * catgets/gencat.c (main): Return 1 if messages have been printed.
10318 * iconv/iconv_prog.c (main): Unify messages.
10320 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
10321 when shifting retval.
10322 * stdlib/tst-strtod.c (main): Add strtold test case.
10323 Reported by Fred J. Tydeman <tydeman@tybor.com>.
10325 2003-02-21 Roland McGrath <roland@redhat.com>
10327 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
10328 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
10329 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
10331 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
10332 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
10333 (res_thread_freeres): New function, on __libc_thread_subfreeres and
10336 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
10337 * malloc/thread-freeres.c: New file.
10338 * malloc/Makefile (aux): Add it.
10339 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
10340 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
10341 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
10343 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
10344 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
10346 2003-02-21 Roland McGrath <roland@frob.com>
10348 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
10350 * iconvdata/Makefile (tests): Add bug-iconv3 only if
10351 [$(have-thread-library) = yes].
10353 2003-02-21 Ulrich Drepper <drepper@redhat.com>
10355 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
10357 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
10358 not chechk for errors (unless testing for 32bit variant).
10359 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
10360 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
10361 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
10363 2003-02-21 Jakub Jelinek <jakub@redhat.com>
10365 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
10366 Check for signed overflow, not unsigned.
10368 * sysdeps/sparc/sparc64/elf/configure.in: New file.
10369 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
10370 Use -fcall-used-g6, not -fcall-used-g7.
10372 2003-02-21 Andreas Jaeger <aj@suse.de>
10374 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
10377 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
10378 clear whole mxcsr but only exceptions.
10380 2003-02-21 Roland McGrath <roland@redhat.com>
10382 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
10383 for libfoo.so that need $(make-link) rules.
10385 2003-02-21 Roland McGrath <roland@frob.com>
10387 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
10388 to match existing struct stat layout in mig protocols.
10390 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10392 * version.h (VERSION): Bump to 2.3.2.
10394 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
10395 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
10397 * sysdeps/generic/Dist: Add sysdep-cancel.h.
10398 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
10399 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
10400 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
10401 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
10402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
10404 * Makefile (distribute): Add include/stubs-prologue.h,
10405 include/gnu/stubs.h, scripts/merge-abilist.awk, and
10406 scripts/extract-abilist.awk.
10408 2003-02-20 Roland McGrath <roland@redhat.com>
10410 * math/Makefile (distribute): Don't add generated files.
10412 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10414 * math/Makefile: Rearrange variable definitions slightly to get
10415 definition in the right order.
10417 2003-02-20 Roland McGrath <roland@redhat.com>
10419 * Makerules: Clean up conditional around include of tls.make.
10420 * Make-dist: Export generating=t to prevent using that.
10421 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
10423 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10425 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
10426 around in search if port IPPORT_RESERVED/2 has been test.
10428 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
10430 * posix/regcomp.c: Remove inclusions.
10431 * posix/regexec.c: Likewise.
10432 * posix/regex_internal.c: Likewise.
10433 * posix/regex_internal.h: Add inclusions here.
10434 * posix/regex.c: Only include sys/types.h before regex.h. Include
10435 regex_internal.h here. Include regex_internal.c before regcomp.c
10436 and regexec.c (might expose more opportunities to the C compiler).
10438 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
10440 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
10441 [!_LIBC] (__wcrtomb): New definition.
10442 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
10443 HAVE_LOCALE_H as well.
10445 2003-02-20 Ulrich Drepper <drepper@redhat.com>
10447 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
10448 patch to check for system call errors.
10450 2002-07-24 Philip Blundell <philb@gnu.org>
10452 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
10453 on unknown systems.
10455 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10457 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
10458 * sysdeps/unix/sysv/linux/kernel-features.h
10459 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
10460 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
10462 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
10463 interprocedure branches.
10464 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
10465 * sysdeps/powerpc/nofpu/Dist: ...here.
10466 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
10467 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
10468 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
10469 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
10470 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
10472 2003-02-18 Alan Modra <amodra@bigpond.net.au>
10474 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
10476 2003-02-20 Philip Blundell <philb@gnu.org>
10478 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
10479 missing arguments to INTERNAL_SYSCALL_ERROR_P and
10480 INTERNAL_SYSCALL_ERRNO.
10482 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10484 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
10485 for __ASSUME_32BITUIDS.
10487 2003-02-20 Andreas Schwab <schwab@suse.de>
10489 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
10490 POSIX_MADV_* constants.
10492 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10494 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
10495 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
10496 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
10497 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
10499 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
10501 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
10503 2003-02-16 Roland McGrath <roland@redhat.com>
10505 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
10507 2003-02-19 Ulrich Drepper <drepper@redhat.com>
10509 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
10510 decimal input digits.
10511 * stdlib/tst-strtod.c (main): Add test for strtof bug.
10513 2003-02-18 Ulrich Drepper <drepper@redhat.com>
10515 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
10516 invalid file descriptors and missing access permissions.
10518 2003-02-17 Ulrich Drepper <drepper@redhat.com>
10520 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
10523 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
10524 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
10525 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
10526 and LOGIN_NAME_MAX.
10528 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
10529 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10531 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
10532 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
10533 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
10534 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
10535 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
10537 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10539 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
10540 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
10541 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
10542 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
10543 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
10544 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
10546 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
10547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
10548 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
10549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
10551 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
10552 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
10553 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
10554 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
10556 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
10558 * nss/getent.c (print_hosts): Print all IP addresses of one host.
10560 2003-02-15 Roland McGrath <roland@frob.com>
10562 * sysdeps/mach/hurd/tls.h: New file.
10563 * sysdeps/mach/hurd/i386/tls.h: New file.
10565 * mach/errsystems.awk: Include <errno.h> in generated output.
10567 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
10568 use target mach-before-compile instead of generated.
10569 (mach-before-compile): New target.
10570 * Makerules: Disable use of tls.make if $(generating) is set.
10571 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
10572 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
10573 mach-shortcuts.h so mach/ generation happens before hurd/.
10575 2003-02-14 Ulrich Drepper <drepper@redhat.com>
10577 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
10578 of demorm correctly if low word is zero.
10579 Reported by Fred J. Tydeman <tydeman@tybor.com>.
10580 * math/libm-test.inc (nextafter_test): New test, but disabled due
10583 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
10584 counter and only call __exit_thread if this is not the last thread.
10586 2003-02-13 Jakub Jelinek <jakub@redhat.com>
10588 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
10589 subtracting map->l_tls_offset.
10591 2003-02-12 Ulrich Drepper <drepper@redhat.com>
10593 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
10594 _CS_GNU_LIBPTHREAD_VERSION.
10595 * posix/conststr.c: Handle these new values.
10596 * posix/getconf.c: Likewise.
10598 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
10599 masking of version index.
10600 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
10602 2003-02-11 Ulrich Drepper <drepper@redhat.com>
10604 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
10605 correctly. Reported by Thorsten Kukuk.
10607 2003-02-10 Ulrich Drepper <drepper@redhat.com>
10609 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
10610 _BSD_SOURCE to compiler.
10611 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
10612 Patches by Alan Modra.
10614 2003-02-08 Ulrich Drepper <drepper@redhat.com>
10616 * io/ftwtest.c: Get current working directory before and after the
10617 nftw call and make sure they match.
10619 2003-02-08 Jim Meyering <jim@meyering.net>
10621 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
10622 the current directory, not just when DIR contains a slash.
10623 Reported by Manoj Srivastava.
10625 2003-02-07 Jim Meyering <jim@meyering.net>
10627 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
10628 Include autoconf-recommended block of dirent/NAMELEN-related
10629 definitions and includes. Use NAMELEN throughout, rather than
10631 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
10632 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
10633 (stpcpy): Declare, if necessary.
10634 (mempcpy): Define, if necessary.
10635 [!_LIBC] (__stpcpy, __mempcpy): Define.
10636 [!_LIBC] (LXSTAT, XSTAT): Define.
10637 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
10638 (find_object): Don't use c99-style struct initializer.
10639 Tweak wording in a couple comments.
10641 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10643 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
10645 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
10646 after the trapa instruction.
10647 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
10649 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
10650 (NEED_SYSCALL_INST_PAD): Define.
10651 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
10652 avoid to use definition for the kernel.
10653 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
10654 Save and restore the frame pointer.
10655 (SYSCALL_INST_PAD): Define.
10656 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
10657 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
10658 after trapa instruction.
10659 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
10660 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
10662 2003-02-07 Jakub Jelinek <jakub@redhat.com>
10664 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
10665 so that it can have aliases.
10666 * inet/herrno.c (h_errno): Put it into .bss not .data section.
10668 2003-02-07 Ulrich Drepper <drepper@redhat.com>
10670 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
10671 (profile_fixup): Likewise.
10672 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
10674 2002-11-24 Robert Love <rml@tech9.net>
10676 * posix/sched.h: Second parameter of sched_setaffinity and
10677 sched_getaffinity is `unsigned int', not `unsigned long'.
10678 * sysdeps/generic/sched_setaffinity.c: Likewise.
10679 * sysdeps/generic/sched_getaffinity.c: Likewise.
10681 2003-02-05 Ulrich Drepper <drepper@redhat.com>
10683 * debug/catchsegv.sh: Fix typo in error messsage.
10684 Reported by John Levon <levon@movementarian.org>.
10686 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
10687 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
10688 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
10689 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
10691 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10692 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10694 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
10695 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
10697 2003-02-05 Jim Meyering <jim@meyering.net>
10699 Fix a heap-corrupting bug.
10700 * io/ftw.c: Include <limits.h>.
10701 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
10702 (process_entry): Allocate enough space to hold the resulting
10703 file name. Don't presume that 2*dirbufsize is enough.
10704 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
10705 it is guaranteed to be defined.
10707 2003-02-04 Ulrich Drepper <drepper@redhat.com>
10709 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
10710 * iconvdata/bug-iconv3.c: New file.
10712 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
10714 * sysdeps/unix/sysv/linux/s390/system.c: New file.
10716 2003-02-03 Jakub Jelinek <jakub@redhat.com>
10718 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
10720 * config.h.in (BROKEN_SPARC_WDISP22): Add.
10722 2003-02-03 Ulrich Drepper <drepper@redhat.com>
10724 * sysdeps/i386/i686/memmove.S: New file.
10726 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
10728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
10729 Include kernel-features.h
10730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
10731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
10732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
10733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
10735 2003-02-02 Jakub Jelinek <jakub@redhat.com>
10737 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
10739 2003-01-25 Jim Meyering <jim@meyering.net>
10741 * io/ftw.c (object_compare): Compare inode numbers before device
10742 numbers, since the former are much more likely to differ.
10744 2003-02-01 Ulrich Drepper <drepper@redhat.com>
10746 * time/tzfile.c (__tzfile_compute): Change return value type to
10747 void. Adjust return statements.
10748 * include/time.h (__tzfile_compute): Adjust prototype.
10750 2003-02-01 Jim Meyering <jim@meyering.net>
10752 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
10755 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
10757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
10758 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
10760 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
10762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
10763 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
10764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10765 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
10766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
10767 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
10768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
10769 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
10771 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
10773 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
10774 back to 2.4.19 for powerpc64.
10775 * sysdeps/unix/sysv/linux/kernel-features.h
10776 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
10777 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
10779 2003-02-01 Ulrich Drepper <drepper@redhat.com>
10781 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
10782 platforms with strange alignment requirements on wchar_t.
10784 2003-01-31 Andreas Schwab <schwab@suse.de>
10786 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
10787 aliases, already added by make-syscalls.sh.
10788 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
10789 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
10790 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
10791 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10792 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
10793 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10794 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10795 * sysdeps/unix/inet/syscalls.list: Likewise.
10796 * sysdeps/unix/syscalls.list: Likewise.
10798 2003-01-31 Andreas Schwab <schwab@suse.de>
10800 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
10803 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10805 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
10806 not l to load tls from stack.
10808 2003-01-30 Roland McGrath <roland@redhat.com>
10810 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
10811 null argument before all else.
10812 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
10814 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10816 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
10817 Move to RESOLVE protected part of the header.
10818 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
10821 2003-01-30 Ulrich Drepper <drepper@redhat.com>
10823 * stdio-common/Makefile (tests): Add bug15.
10824 (bug15-ENV): Define.
10825 * stdio-common/bug15.c: New file.
10827 2002-10-07 Wolfram Gloger <wg@malloc.de>
10829 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
10830 to foreign sbrk()'s if arena is contiguous. Bug report from
10831 Bruno Haible <bruno@clisp.org>.
10833 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10835 * sysdeps/s390/libc-tls.c: Include stdlib.h.
10837 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10839 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
10842 2003-01-30 Ulrich Drepper <drepper@redhat.com>
10844 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
10846 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
10848 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
10850 2003-01-30 Jakub Jelinek <jakub@redhat.com>
10852 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
10853 (allocate_static_tls): ...here. Add __attribute_noinline__.
10854 Don't return on failure.
10855 (_dl_reloc_bad_type): Add __attribute_noinline__.
10856 * elf/do-rel.h (elf_dynamic_do_rel): Add
10857 __attribute__((always_inline)).
10858 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
10859 elf_machine_rel_relative, elf_machine_rela_relative,
10860 elf_machine_lazy_rel): Add prototypes with
10861 __attribute__((always_inline)).
10863 2003-01-29 David Mosberger <davidm@hpl.hp.com>
10865 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
10867 2003-01-29 Roland McGrath <roland@redhat.com>
10869 * configure.in: Barf if configured in $srcdir.
10871 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
10873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
10874 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
10876 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
10878 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
10879 clone parameters to match the order used on ia32.
10880 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
10882 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
10884 * elf/elf.h: Add new s390 relocs.
10885 * elf/tls-macros.h: Add s390 versions.
10886 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
10887 * sysdeps/s390/dl-tls.h: New file.
10888 * sysdeps/s390/libc-tls.c: New file.
10889 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
10890 relocs for class PLT.
10891 (elf_machine_rela): Handle TLS relocs.
10892 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10893 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
10894 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10895 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
10896 CLONE_CHILD_*TID flags.
10897 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
10898 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
10900 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10901 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10902 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
10903 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
10904 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
10906 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
10907 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
10908 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
10910 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
10911 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
10912 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
10913 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
10916 2003-01-28 Ulrich Drepper <drepper@redhat.com>
10918 * sysdeps/unix/common/pause.c (do_pause): New function. Split
10919 from __libc_pause. Implement using sigsuspend.
10920 (__libc_pause): Call do_pause to do the real work.
10922 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
10923 sig_or_mask parameter is is_sig != 0.
10925 2003-01-21 Philip Blundell <philb@gnu.org>
10927 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
10929 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
10931 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
10933 2003-01-27 Ulrich Drepper <drepper@redhat.com>
10935 * stdio-common/bug14.c: Use official name for the locale.
10937 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
10938 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
10939 instead of __libc_cleanup_region_end.
10941 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
10942 as first parameter to __libc_cleanup_region_start.
10944 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
10945 (__fe_nomask_env): Use __prctl not prctl.
10946 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
10949 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
10951 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
10953 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
10954 wrap-around in test.
10956 2003-01-26 Andreas Schwab <schwab@suse.de>
10958 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
10959 compatibility symbols. Remove INTDEF for __divdi3.
10960 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
10961 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
10962 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
10964 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
10966 2003-01-24 Jakub Jelinek <jakub@redhat.com>
10968 * elf/tls-macros.h: Add SPARC 32-bit definitions.
10969 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
10970 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
10971 for the first half of the header. Include tls.h.
10972 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
10974 (elf_machine_rela): Handle TLS relocs.
10975 * sysdeps/sparc/dl-tls.h: New file.
10977 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
10980 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
10981 * sysdeps/sparc/sparc32/memchr.S: Likewise.
10982 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
10983 * sysdeps/sparc/sparc32/strcat.S: Likewise.
10984 * sysdeps/sparc/sparc32/strchr.S: Likewise.
10985 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
10986 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
10987 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
10988 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10989 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10990 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
10991 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
10992 * sysdeps/sparc/sparc64/strcat.S: Likewise.
10993 * sysdeps/sparc/sparc64/strchr.S: Likewise.
10994 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
10995 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
10996 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
10997 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
10998 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10999 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11001 2003-01-24 Andreas Schwab <schwab@suse.de>
11003 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
11004 elements, and process them backwards.
11005 * elf/Makefile ($(objpfx)tst-array4): New target.
11006 ($(objpfx)tst-array4.out): Likewise.
11007 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
11008 * elf/tst-array4.c: New file.
11009 * elf/tst-array4.exp: Likewise.
11011 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
11013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
11015 2003-01-27 Guido Guenther <agx@sigxcpu.org>
11017 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
11018 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
11019 cancellation handling and handle both __NR_pread64 and __NR_pread.
11020 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11021 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
11022 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
11023 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11024 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
11025 case, use register names consistently.
11027 2003-01-27 Wolfram Gloger <wg@malloc.de>
11029 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
11030 pointer, not of the computed chunk. Bug report from Carlos
11031 O'Donell <carlos@baldric.uwo.ca>.
11033 2003-01-25 Andreas Schwab <schwab@suse.de>
11035 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
11036 addressing to save GOT entries.
11038 2003-01-21 Jakub Jelinek <jakub@redhat.com>
11040 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
11041 inline_syscall1, inline_syscall2, inline_syscall3,
11042 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
11043 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
11044 __attribute__((unused)) to ChEcK.
11046 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11048 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
11049 Fix inline assembler constraints.
11050 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
11053 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
11056 2003-01-20 Segher Boessenkool <segher@koffie.nl>
11058 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
11059 compute the cosine, not the sine, even if x > 0.8.
11061 2003-01-19 Ulrich Drepper <drepper@redhat.com>
11063 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
11064 _nss_nis_setspent. Work around the different prototypes.
11065 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
11066 internal_nis_endrpcent.
11067 (internal_nis_endrpcent): Change return type to void. Change callers.
11068 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
11069 _nss_nis_setpwent. Work around the different prototypes.
11070 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
11071 of the function to...
11072 (internal_nis_endprotoent): ... here. New function.
11073 (internal_nis_setprotoent): Use internal_nis_endprotoent.
11074 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
11075 _nss_nis_setnetent. Work around the different prototypes.
11076 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
11077 of the function to...
11078 (internal_nis_endnetgrent): ... here. New function.
11079 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
11081 2003-01-19 Jim Meyering <jim@meyering.net>
11083 * time/strftime.c: (widen): Merge nearly-identical definitions.
11084 (nl_get_alt_digit) [! defined my_strftime]: Define.
11085 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
11086 _nl_get_alt_digit and _nl_get_walt_digit.
11088 2003-01-19 Ulrich Drepper <drepper@redhat.com>
11090 * time/strftime.c (my_strftime): Handle very large width
11091 specifications for numeric values correctly. Improve checks for
11093 * time/Makefile (tests): Add tst-strftime.
11094 * time/tst-strftime.c: New file.
11096 2003-01-18 Ulrich Drepper <drepper@redhat.com>
11098 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
11099 _nss_nis_sethostent. Work around the different prototypes.
11100 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
11101 _nss_nis_setgrent. Work around the different prototypes.
11102 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
11103 function. Split out from _nss_nis_endetherent.
11104 (internal_nis_setetherent): Use internal_nis_endetherent instead of
11105 duplicating the code.
11106 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
11107 of _nss_nis_setaliasent.
11108 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
11109 internal_nis_endservent code, don't duplicate it.
11111 * inet/rexec.c (rexec_af): Protect socket operations with
11112 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
11113 * inet/rcmd.c (rcmd_af): Likewise.
11115 2003-01-17 Roland McGrath <roland@redhat.com>
11117 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
11118 Add test of value 0.80190127184058835.
11120 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
11122 2003-01-17 Richard Henderson <rth@redhat.com>
11124 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
11125 relocs for class PLT.
11126 * sysdeps/alpha/libc-tls.c: New file.
11127 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
11128 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
11130 2003-01-17 Jakub Jelinek <jakub@redhat.com>
11132 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
11133 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
11134 on _dl_static_lock.
11136 2003-01-17 Andreas Jaeger <aj@suse.de>
11138 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
11140 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
11142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
11143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
11144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
11145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
11146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
11147 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
11148 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
11151 2003-01-16 Ulrich Drepper <drepper@redhat.com>
11153 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
11154 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
11157 * sysdeps/generic/sysconf.c: Unconditionally implement
11158 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
11159 * sysdeps/posix/sysconf.c: Likewise.
11161 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11163 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
11164 set *err to the returned error, not to REG_ESPACE unconditionally.
11165 (build_word_op): Likewise.
11166 * posix/Makefile (tests): Add bug-regex16.
11167 * posix/bug-regex16.c: New test.
11169 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11171 * elf/dl-load.c (_dl_map_object_from_fd): Use
11172 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
11173 been already initialized.
11175 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
11177 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
11179 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11181 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
11182 allocated too. Reported by Al Viro <aviro@redhat.com>.
11184 2003-01-16 Roland McGrath <roland@redhat.com>
11186 Tweak merged .abilist file format to merge duplicate symbols in
11187 different sets into multi-version stanzas with new "| SET regexp..."
11188 header continuation lines.
11189 * scripts/merge-abilist.awk: Rewritten for new format.
11190 * scripts/extract-abilist.awk: Likewise.
11192 2003-01-15 Ulrich Drepper <drepper@redhat.com>
11194 * nscd/connections.c (nscd_run): Remove bogus return which isn't
11195 necessary with gcc 3.2+.
11196 (nscd_init): Don't use error() to print message, use dbg_log.
11198 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
11199 expected size into state.
11200 (UNPACK_BYTES): Do the reverse.
11201 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
11202 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
11203 Reported by Al Viro <aviro@redhat.com>.
11205 * stdio-common/Makefile (tests): Add bug14.
11206 * stdio-common/bug14.c: New file.
11208 * stdio-common/vfscanf.c: When recognizing multibyte characters in
11209 string reset the byte counter after mbrtowc reported it is not a
11210 partial character. Reported by Al Viro <aviro@redhat.com>.
11212 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
11214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
11215 sysdep-cancel.h, not sysdep.h.
11217 2003-01-15 Ulrich Drepper <drepper@redhat.com>
11219 * nscd/connections.c (nscd_run): Protect accept call with
11220 TEMP_FAILURE_RETRY.
11222 2003-01-15 Andreas Schwab <schwab@suse.de>
11224 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
11225 (common-generated): Add s-proto-bp.d.
11226 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
11228 * sysdeps/unix/s-proto-bp.S: New file.
11229 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
11230 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
11231 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
11233 2003-01-15 Roland McGrath <roland@redhat.com>
11235 * Makerules: Use -include for tls.make, suppresses warning.
11236 Move gen-as-const-headers rules up so before-compile is set in time.
11237 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
11239 2003-01-15 Ulrich Drepper <drepper@redhat.com>
11241 * nscd/nscd.c (main): Make code to close all file descriptors
11242 faster and more robust.
11244 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
11245 request with one writev call. Protect all read calls with
11246 TEMP_FAILURE_RETRY.
11247 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11248 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11250 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
11251 Protect writev calls with TEMP_FAILURE_RETRY.
11252 * nscd/grpcache.c: Likewise.
11253 * nscd/pwdcache.c: Likewise.
11255 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
11256 IPv6 address in debug output.
11258 2003-01-14 Roland McGrath <roland@redhat.com>
11260 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
11261 $(objpfx) directories, and get rid of vpath directives. The previous
11262 arrangement resulted in files being written to the source directories
11263 when run in a clean build. Find all .abilist files in $(..)abilist/.
11264 (update-abi-%): Likewise.
11265 (generated): Don't add .symlist files, they'll be intermediates.
11267 * sysdeps/generic/init-first.c: Add a comment.
11269 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
11271 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
11272 #includes and expressions.
11274 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
11275 config list when it already contains cpu-.*-os.* without / part.
11277 * Makerules (sed-remove-dotdot): New variable.
11278 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
11279 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
11280 (check-abi-config): New variable, append /tls or /notls to the tuple.
11281 (check-abi-%): Use that for -v config value.
11282 Find .abilist files in abilist/libfoo.abilist, not in subdir.
11283 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
11285 2003-01-14 Ulrich Drepper <drepper@redhat.com>
11287 * manual/install.texi: Correct description of header preparation for
11288 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
11290 2003-01-14 Guido Guenther <agx@sigxcpu.org>
11292 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
11293 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11294 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
11296 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11299 (INTERNAL_SYSCALL): Make use of ERR parameter.
11300 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11301 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
11302 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
11303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
11305 2003-01-14 Ulrich Drepper <drepper@redhat.com>
11307 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
11309 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
11311 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
11312 Fix entry for bit 31.
11314 * iconvdata/Makefile: Add rules to build IBM866NAV.
11315 * iconvdata/ibm866nav.c: New file.
11316 * iconvdata/tst-tables.sh: Add IBM866NAV.
11317 * iconvdata/gconv-modules: Add entries for IBM866NAV.
11319 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11321 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
11322 to test void* parameters.
11324 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
11325 source pointer before dereferencing.
11326 (__STRING_SMALLL_GET32): Likewise.
11327 (__memset_gc): Add missing parenthesis around macro arguments.
11328 Patch by Denis Zaitsev <zzz@cd-club.ru>.
11330 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
11331 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
11333 2003-01-14 Jakub Jelinek <jakub@redhat.com>
11335 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
11338 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
11340 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
11341 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
11343 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
11345 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
11347 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
11349 (PSEUDO): ... to here.
11350 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
11352 (PSEUDO): ... to here.
11354 2003-01-13 Ulrich Drepper <drepper@redhat.com>
11356 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
11357 dirent64 instead of struct dirent for dirent. Call readdir64
11358 instead of readdir.
11360 * locale/programs/locfile.c (siblings_uncached): Use struct
11361 dirent64 instead of struct dirent for other_dentry. Call
11362 readdir64 instead of readdir.
11364 * elf/ldconfig.c (direntry): Change type to struct dirent64.
11365 (search_dir): Use readdir64 instead of readdir.
11366 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
11368 2003-01-12 Roland McGrath <roland@redhat.com>
11370 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
11371 not strtol. The former is usable in ld.so, the latter not.
11373 * include/fcntl.h: Declare __libc_creat.
11375 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
11376 libhurduser-link.so-no-z-defs): New variables.
11378 * malloc/malloc.c: Revert last change.
11379 * malloc/malloc.h (_int_*): Move these decls to ...
11380 * include/malloc.h: ... here. Add attribute_hidden.
11381 (_int_valloc): Declare it too.
11383 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11385 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
11386 search for removed searchlist. Reported by Roland McGrath.
11388 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
11389 given as start file.
11391 * io/ftw.c (ftw_startup): Use correct name in check for symlink
11392 without existing target. Patch by Jim Meyering.
11394 * Makerules (build-shlib-helper): Don't use -z defs linker option
11395 if no-z-defs is defined either.
11397 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
11399 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
11402 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
11404 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
11405 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11407 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11409 * io/ftwtest-sh: Add test case for relative path with /. at the end.
11411 2003-01-12 Jim Meyering <jim@meyering.net>
11413 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
11414 use the basename if we've already chdir'd into its parent directory.
11416 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11418 * io/ftw.c (process_entry): Use relative path when using chdir()
11419 to change directory after call to ftw_dir.
11420 * io/ftwtest-sh: Add test for relative path argument to nftw()
11421 with FTW_CHDIR option.
11423 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11425 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
11426 Define for powerpc.
11427 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
11429 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11430 (INTERNAL_SYSCALL): Make use of ERR parameter.
11431 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11432 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
11433 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
11434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
11436 2003-01-09 Richard Henderson <rth@redhat.com>
11438 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
11439 DTPREL64 and TPREL64 without loadbase applied.
11441 2003-01-09 Richard Henderson <rth@redhat.com>
11443 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
11446 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
11447 * sysdeps/unix/alpha/sysdep.h: ... here.
11448 (PSEUDO_LOADGP): Remove.
11449 (PSEUDO_PROLOGUE): Load GP in non-pic case.
11450 (SYSCALL_ERROR_LABEL): New.
11451 (PSEUDO): Use it in error branch.
11452 (PSEUDO_END): Add $syscall_error label.
11454 2003-01-12 Andreas Jaeger <aj@suse.de>
11456 * math/bits/mathcalls.h: Round is a const function.
11458 2003-01-11 Jim Meyering <jim@meyering.net>
11460 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
11461 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
11462 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
11463 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
11464 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
11465 [!_LIBC] (internal_function, dirent64, MAX): Define.
11466 (__set_errno): Define if not already defined.
11467 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
11468 the basename, not the entire file name.
11469 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
11470 the basename, not the entire file name.
11472 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11474 * string/tester.c (test_strcpy): Disable last added strcpy until
11477 2003-01-11 Philip Blundell <philb@gnu.org>
11479 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
11481 2003-01-11 Andreas Schwab <schwab@suse.de>
11483 * Makerules: Add vpath for %.dynsym and %.so so that the
11484 implicit rule chaining for check-abi works.
11486 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11488 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
11491 2003-01-11 Jakub Jelinek <jakub@redhat.com>
11493 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
11494 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
11496 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
11497 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
11498 Ensure libc.so in DT_NEEDED.
11499 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
11500 CHECK_STATIC_TLS before l_tls_offset use.
11501 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
11503 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11504 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
11505 Allocate TLS_PRE_TCB_SIZE bytes below result.
11506 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
11507 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
11508 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
11509 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
11510 bytes below result and add tcb_offset to memsz.
11511 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
11512 * sysdeps/ia64/dl-machine.h: Include tls.h.
11513 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
11515 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
11516 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
11517 * sysdeps/ia64/libc-tls.c: New file.
11519 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
11521 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
11522 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
11523 Fix type. Move definition out of #if.
11524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
11525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
11526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
11527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
11528 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
11529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
11531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
11532 ftruncate64, pread64, pwrite64, truncate64 entries.
11533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11534 (INLINE_SYSCALL): New version that supports function call like
11535 syscalls. Add __builtin_expect.
11536 (LOADARGS_n): Add argument size safety checks.
11537 (INTERNAL_SYSCALL): New Macro.
11538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
11539 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
11540 redefinition of elf_fpreg_t and elf_fpregset_t.
11542 2003-01-12 Ulrich Drepper <drepper@redhat.com>
11544 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
11545 simplify test for unloading. If loader of a DSO is unloaded do not
11546 use its scope anymore. Fall back to own scope and adjust opencounts.
11547 Fix several comments.
11548 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
11549 the l_searchlist, not only for l_initfini.
11551 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
11552 dependencies if objects cannot be removed. Remove object with the
11553 definition as not unloadable if necessary.
11555 * elf/reldep6.c: Create relocation dependency before closing the first
11558 2003-01-10 Guido Günther <agx@sigxcpu.org>
11560 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
11561 * sysdeps/unix/mips/brk.S: Likewise.
11562 * sysdeps/unix/mips/pipe.S: Likewise.
11564 2003-01-10 Andreas Schwab <schwab@suse.de>
11566 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
11568 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
11569 are known to have the vfork syscall.
11571 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
11573 * sysdeps/unix/sysv/linux/kernel-features.h
11574 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
11575 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
11576 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
11578 2003-01-09 Jakub Jelinek <jakub@redhat.com>
11580 * elf/Makefile: Add rules to build and run reldep9 test.
11581 * elf/reldep9.c: New file.
11582 * elf/reldep9mod1.c: New file.
11583 * elf/reldep9mod2.c: New file.
11584 * elf/reldep9mod3.c: New file.
11586 2003-01-09 Jakub Jelinek <jakub@redhat.com>
11588 * elf/Makefile: Add rules to build and run nodelete2 test.
11589 * elf/nodelete2.c: New file.
11590 * elf/nodel2mod1.c: New file.
11591 * elf/nodel2mod2.c: New file.
11592 * elf/nodel2mod3.c: New file.
11594 2003-01-09 Jakub Jelinek <jakub@redhat.com>
11596 * posix/test-vfork.c (noop): Add __attribute_noinline__.
11597 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
11598 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
11600 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
11601 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
11602 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
11603 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
11604 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
11606 2003-01-09 Andreas Schwab <schwab@suse.de>
11608 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
11610 2003-01-08 Ulrich Drepper <drepper@redhat.com>
11612 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
11613 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
11615 (INTERNAL_SYSCALL_DECL): Define.
11617 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11619 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
11620 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
11622 (INTERNAL_SYSCALL_DECL): Define.
11623 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11624 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11625 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
11626 (INLINE_SYSCALL): Adjust.
11627 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
11628 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
11629 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
11630 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11631 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
11632 add err argument to INTERNAL_SYSCALL* macros.
11633 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
11634 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
11635 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
11636 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
11638 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
11639 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
11640 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
11642 2003-01-07 Ulrich Drepper <drepper@redhat.com>
11644 Unify symbols in user namespace exported by libc.so and libc.a.
11645 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
11646 argp_fmtstream_free, and argp_fmtstream_printf.
11647 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
11648 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
11649 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
11650 argp_fmtstream_point.
11651 * gmon/gmon.c: Don't define write_profiling.
11652 * libio/genops.c: Don't define _cleanup.
11654 * intl/explodename.c (_nl_find_language.c): Mark as static.
11655 * intl/loadinfo.h: Remove _nl_find_language prototype.
11657 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
11658 * libio/libioP.h: Remove declaration.
11660 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
11661 * libio/libioP.h: Remove declaration.
11663 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
11664 * sysdeps/generic/framestate.c: Define STATIC before including
11667 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
11669 2003-01-06 Philip Blundell <philb@gnu.org>
11671 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
11672 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
11674 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
11676 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
11677 (SYSCALL_ERROR): New.
11678 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
11680 (INTERNAL_SYSCALL): Define.
11681 (INLINE_SYSCALL): Use it.
11682 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
11683 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
11684 SYSCALL_ERROR in place of __syscall_error.
11686 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11688 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
11689 __bswap_32, __bswap_64): Put x into temporary variable
11691 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
11692 (inline) functions.
11693 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
11694 __bswap_32, __bswap_64): Put x into temporary variable
11696 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
11697 (inline) functions.
11698 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
11701 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11703 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
11706 2003-01-07 Jakub Jelinek <jakub@redhat.com>
11708 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
11709 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
11711 2003-01-07 Ulrich Drepper <drepper@redhat.com>
11713 * math/libm-test.inc (significand_test): New function.
11716 2003-01-06 Roland McGrath <roland@redhat.com>
11718 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
11720 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
11721 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
11722 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
11724 * string/tester.c (test_strcpy): Add test with `void *' arguments.
11726 2003-01-06 Ulrich Drepper <drepper@redhat.com>
11728 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
11729 return significand and not the exponent.
11730 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11732 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
11733 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
11735 * malloc/malloc.c: Mark all _int_* functions as static.
11737 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11739 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
11740 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
11742 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
11744 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11746 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
11747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
11749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
11750 ftruncate64, truncate64, pread64 and pwrite64 entries.
11751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11752 (INLINE_SYSCALL): Add __builtin_expect.
11753 (LOADARGS_n): Add argument size safety checks.
11754 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
11755 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
11756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
11757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
11758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
11759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
11761 2003-01-06 Jakub Jelinek <jakub@redhat.com>
11763 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
11764 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
11765 (LIBC_CANCEL_HANDLED): Add.
11767 * sysdeps/unix/sysv/linux/alpha/sysdep.h
11768 (inline_syscall_r0_constraint): Rename to...
11769 (inline_syscall_r0_out_constraint): ... this. Add =.
11770 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
11772 2003-01-06 Andreas Schwab <schwab@suse.de>
11774 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
11775 sure this is always inlined.
11776 (elf_machine_rela): Likewise.
11778 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
11780 2003-01-04 Roland McGrath <roland@redhat.com>
11782 * Makeconfig (+mkdep): Add -MP flag.
11783 Suggested by Art Haas <ahaas@airmail.net>.
11785 2003-01-05 Andreas Schwab <schwab@suse.de>
11787 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
11789 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11791 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
11792 SYSCALL_ERROR_HANDLER.
11793 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
11794 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
11795 Add support for cancellation handling.
11796 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
11797 SYSCALL_ERROR_HANDLER.
11798 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
11799 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
11800 Add support for cancellation handling.
11801 (SYSCALL_ERROR_HANDLER): Define PIC variants.
11803 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
11806 __syscall_pread64 and __syscall_pwrite64 cancelable.
11807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11808 (INTERNAL_SYSCALL): New macro.
11809 (LOADARGS_0, LOADARGS_1): Fix.
11811 2003-01-05 Ulrich Drepper <drepper@redhat.com>
11813 * Makerules (build-shlip-helper): Unless told otherwise, add
11814 -Wl,-z,defs to linker command line.
11815 * rt/Makefile (librt.so): Link with ld.so.
11816 * dlfcn/Makefile (libdl.so): Likewise.
11818 2003-01-05 Jakub Jelinek <jakub@redhat.com>
11820 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
11821 cancellation handling.
11822 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
11823 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
11825 2003-01-04 Ulrich Drepper <drepper@redhat.com>
11827 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
11828 order of parameters passed to kill.
11830 2003-01-04 Andreas Schwab <schwab@suse.de>
11832 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
11834 2003-01-03 Paul Eggert <eggert@twinsun.com>
11836 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
11837 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
11838 when compiling Bison 1.875's `bitset bset = obstack_alloc
11839 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
11841 2003-01-04 Ulrich Drepper <drepper@redhat.com>
11843 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
11845 Correct reference counter in case SIGQUIT handler installation failed.
11847 2003-01-03 Ulrich Drepper <drepper@redhat.com>
11849 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
11850 Define using _Pragma(weak ...).
11852 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
11854 * resolv/res_libc.c: Provide declaration for __res_init_weak and
11855 reorder declarations.
11857 2003-01-03 Art Haas <ahaas@airmail.net>
11859 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
11860 initializer syntax to C99.
11861 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
11862 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
11863 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
11864 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
11865 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
11866 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
11867 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
11868 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
11869 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
11870 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
11871 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
11872 * localedata/tests-mbwc/dat_mblen.c: Likewise.
11873 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
11874 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
11875 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
11876 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
11877 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
11878 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
11879 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
11880 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
11881 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
11882 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
11883 * localedata/tests-mbwc/dat_towlower.c: Likewise.
11884 * localedata/tests-mbwc/dat_towupper.c: Likewise.
11885 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
11886 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
11887 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
11888 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
11889 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
11890 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
11891 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
11892 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
11893 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
11894 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
11895 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
11896 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
11897 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
11898 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
11899 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
11900 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
11901 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
11902 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
11903 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
11904 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
11905 * localedata/tests-mbwc/dat_wctob.c: Likewise.
11906 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
11907 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
11908 * localedata/tests-mbwc/dat_wctype.c: Likewise.
11909 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
11911 2003-01-03 Richard Henderson <rth@redhat.com>
11913 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
11914 (inline_syscall_r0_constraint): New.
11915 (inline_syscall[0-6]): Use them.
11917 2003-01-03 Jakub Jelinek <jakub@redhat.com>
11919 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
11920 Add rtld_hidden_proto.
11921 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
11922 (_dl_allocate_tls): Likewise. Remove INTDEF.
11924 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11926 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
11927 Morita <toshiyasu.morita@hsa.hitachi.com>.
11928 * sysdeps/sh/memcpy.S: Likewise.
11930 2003-01-02 Ulrich Drepper <drepper@redhat.com>
11932 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
11933 any, but unify the test.
11935 2003-01-02 Jakub Jelinek <jakub@redhat.com>
11937 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
11938 sigaction): Protect weak_alias and libc_hidden_weak with
11939 #ifndef LIBC_SIGACTION.
11940 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
11941 sigaction): Likewise.
11942 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
11943 sigaction): Likewise.
11944 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
11945 sigaction): Likewise.
11946 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
11947 sigaction): Likewise.
11948 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
11949 sigaction): Likewise.
11950 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
11951 sigaction): Likewise.
11952 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
11953 sigaction): Likewise. Remove SIGCANCEL handling here.
11954 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
11957 2003-01-02 Art Haas <ahaas@airmail.net>
11959 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
11961 2003-01-02 Ulrich Drepper <drepper@redhat.com>
11963 * posix/getconf.c: Update copyright year.
11964 * nss/getent.c: Likewise.
11965 * nscd/nscd_nischeck.c: Likewise.
11966 * iconv/iconvconfig.c: Likewise.
11967 * iconv/iconv_prog.c: Likewise.
11968 * elf/ldconfig.c: Likewise.
11969 * catgets/gencat.c: Likewise.
11970 * csu/version.c: Likewise.
11971 * elf/ldd.bash.in: Likewise.
11972 * elf/sprof.c (print_version): Likewise.
11973 * locale/programs/locale.c: Likewise.
11974 * locale/programs/localedef.c: Likewise.
11975 * nscd/nscd.c (print_version): Likewise.
11976 * debug/xtrace.sh: Likewise.
11977 * malloc/memusage.sh: Likewise.
11978 * malloc/mtrace.pl: Likewise.
11980 2003-01-01 Jakub Jelinek <jakub@redhat.com>
11982 * io/sys/stat.h: Include time.h with __need_timespec even if
11983 __USE_MISC is defined but __USE_XOPEN is not.
11985 2003-01-01 Andreas Jaeger <aj@suse.de>
11987 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
11988 type to avoid strict aliasing problem.
11989 (_nss_dns_gethostbyname2_r): Likewise.
11990 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
11991 (_nss_dns_getnetbyname_r): Likewise.
11992 * resolv/gethnamaddr.c (_gethtent): Likewise.
11993 (gethostbyname2): Likewise.
11995 2002-12-31 Ulrich Drepper <drepper@redhat.com>
11997 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
11998 to avoid using the exported symbols. Define aliases with the
11999 original names separately.
12001 * include/time.h: Add libc_hidden_proto for __strftime_l.
12002 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
12003 * time/strftime.c: Always use libc_hidden_def if _LIBC.
12005 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
12006 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
12008 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
12011 * csu/Makefile (routines): Add dso_handle.
12012 * csu/dso_handle.c: New file.
12014 2002-12-31 Roland McGrath <roland@redhat.com>
12016 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
12017 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
12018 (S-CPPFLAGS): Add -DASSEMBLER here instead.
12019 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
12021 2002-12-31 Ulrich Drepper <drepper@redhat.com>
12023 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
12026 2002-12-31 Andreas Jaeger <aj@suse.de>
12028 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
12030 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
12031 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
12032 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
12034 * sysdeps/unix/sysv/linux/kernel_stat.h
12035 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
12037 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
12038 __unused[1-3] since they're needed by some platforms. Handle
12039 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
12041 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
12042 for structs stat and stat64.
12043 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
12044 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
12045 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
12046 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
12048 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
12050 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
12051 nsec resolution changes.
12052 (xstat64_conv): Likewise.
12053 (xstat32_conv): Likewise.
12055 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
12056 struct kernel_stat.
12058 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
12059 structs stat and stat64.
12061 * time/time.h (__timespec_defined): Define for __USE_MISC.
12063 2002-12-31 Ulrich Drepper <drepper@redhat.com>
12065 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
12066 and __libc_current_sigrtmax.
12068 2002-12-31 Jakub Jelinek <jakub@redhat.com>
12070 * include/errno.h (__errno_location): Add prototype.
12071 Use libc_hidden_proto unconditionally.
12072 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
12074 * include/resolv.h (__res_state): Likewise.
12076 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
12077 * include/sys/socket.h (accept): Add libc_hidden_proto.
12078 * include/errno.h (__errno_location): Likewise.
12079 * include/netdb.h (__h_errno_location): Likewise.
12080 * include/resolv.h (__res_state): Likewise.
12081 * include/unistd.h (__lseek): Likewise.
12082 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
12083 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
12084 * sysdeps/generic/res-state.c (__res_state): Likewise.
12085 * sysdeps/generic/accept.c (accept): Likewise.
12086 * sysdeps/generic/lseek.c (__lseek): Likewise.
12087 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
12088 __libc_current_sigrtmax): Likewise.
12089 * sysdeps/mach/hurd/accept.c (accept): Likewise.
12090 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
12091 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
12092 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
12093 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
12094 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
12095 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
12096 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
12097 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
12099 (__GI_accept): New alias to accept.
12100 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
12101 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
12102 New alias to llseek.
12103 (__GI_accept): New alias to accept.
12104 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
12106 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
12108 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
12110 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
12111 strong_alias (name, __GI_name).
12112 * sysdeps/arm/bsd-_setjmp.S : Likewise.
12113 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
12114 * sysdeps/i386/bsd-_setjmp.S : Likewise.
12115 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
12116 * sysdeps/mips/bsd-_setjmp.S : Likewise.
12117 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
12118 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
12119 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
12120 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
12121 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
12122 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
12123 * sysdeps/sh/bsd-_setjmp.S : Likewise.
12124 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
12125 * sysdeps/unix/arm/fork.S : Likewise.
12126 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
12127 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
12128 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
12129 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
12130 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
12131 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
12132 * sysdeps/unix/i386/fork.S : Likewise.
12133 * sysdeps/unix/mips/fork.S : Likewise.
12134 * sysdeps/unix/sparc/fork.S : Likewise.
12135 * sysdeps/unix/sparc/vfork.S : Likewise.
12136 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
12137 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
12138 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
12139 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
12140 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
12141 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
12142 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
12143 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
12144 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
12145 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
12146 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
12147 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
12148 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
12149 * sysdeps/unix/fork.S : Likewise.
12150 * sysdeps/vax/bsd-_setjmp.S : Likewise.
12151 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
12153 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
12156 2002-12-31 Ulrich Drepper <drepper@redhat.com>
12158 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
12159 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
12160 * sysdeps/mach/hurd/fork.c: Likewise.
12161 * sysdeps/unix/sysv/aix/fork.c: Likewise.
12162 * sysdeps/unix/fork.S: Add __GI___fork alias.
12163 * sysdeps/unix/arm/fork.S: Likewise.
12164 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
12165 * sysdeps/unix/i386/fork.S: Likewise.
12166 * sysdeps/unix/mips/fork.S: Likewise.
12167 * sysdeps/unix/sparc/fork.S: Likewise.
12168 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
12169 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
12170 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
12171 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
12172 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
12173 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
12174 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
12175 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
12176 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
12177 * sysdeps/unix/sparc/vfork.S: Likewise.
12178 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
12179 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
12180 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
12181 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
12182 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
12183 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
12184 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
12185 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
12187 * include/time.h: Add libc_hidden_proto for __nanosleep.
12188 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
12189 * sysdeps/mach/nanosleep.c: Likewise.
12190 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
12191 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
12193 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
12194 _IO_list_unlock, and _IO_list_resetlock.
12195 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
12196 _IO_list_unlock, and _IO_list_resetlock.
12198 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
12199 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
12200 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
12201 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
12203 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
12204 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
12205 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
12206 __GI___longjmp alias.
12208 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
12209 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
12210 * sysdeps/arm/bsd-_setjmp.S: Likewise.
12211 * sysdeps/generic/bsd-_setjmp.c: Likewise.
12212 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
12213 * sysdeps/i386/bsd-_setjmp.S: Likewise.
12214 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12215 * sysdeps/mips/bsd-_setjmp.S: Likewise.
12216 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
12217 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
12218 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
12219 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
12220 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
12221 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
12222 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
12223 * sysdeps/sh/bsd-_setjmp.S: Likewise.
12224 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
12225 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
12226 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
12227 * sysdeps/vax/bsd-_setjmp.S: Likewise.
12228 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
12230 2002-12-30 Ulrich Drepper <drepper@redhat.com>
12232 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
12234 2002-12-30 Roland McGrath <roland@redhat.com>
12236 * Rules (generated): Target removed.
12237 * mach/Makefile (generated): Define it here instead.
12239 * math/Makefile (generated): Add m_*l and m_*f variants too.
12241 2002-12-30 Ulrich Drepper <drepper@redhat.com>
12243 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
12244 the to-be-deleted objects right away instead of later separately.
12245 The latter fails because the scope data structures of the DSO
12246 might already be gone.
12248 * elf/Makefile: Add rules to build and run reldep8 test.
12249 * elf/reldep8.c: New file.
12250 * elf/reldep8mod1.c: New file.
12251 * elf/reldep8mod2.c: New file.
12252 * elf/reldep8mod3.c: New file.
12253 Contributed by Jakub Jelinek.
12255 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
12257 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
12258 checking of return value ENOSYS from getdents64.
12260 2002-12-28 Andreas Schwab <schwab@suse.de>
12262 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
12263 ($(common-objpfx)s-%.d): Generalized from
12264 $(common-objpfx)s-proto.d rule.
12265 (common-generated): Add s-proto-cancel.d.
12266 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
12267 cancellable syscalls.
12268 * sysdeps/unix/s-proto-cancel.S: New file.
12270 2002-12-29 Roland McGrath <roland@redhat.com>
12272 * resolv/res_libc.c: Move _res defn magic after res_init defn
12273 so _res macro is in effect for that code.
12275 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
12276 pattern for prepending $(..) so it doesn't affect $(foo).
12278 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
12280 2002-12-29 Jakub Jelinek <jakub@redhat.com>
12282 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
12285 2002-12-28 Ulrich Drepper <drepper@redhat.com>
12287 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
12289 2002-12-28 Andreas Jaeger <aj@suse.de>
12291 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
12293 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
12295 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12297 * inet/herrno.c (__h_errno_location): Remove.
12298 * inet/Makefile (routines): Add herrno-loc.
12299 * resolv/res_libc.c (__res_state): Remove.
12300 * resolv/Makefile (routines): Add res-state.
12301 * sysdeps/generic/herrno-loc.c: New file.
12302 * sysdeps/generic/res-state.c: New file.
12304 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12306 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
12307 Only define if USE_DL_SYSINFO is defined.
12309 2002-12-22 Jakub Jelinek <jakub@redhat.com>
12311 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
12312 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
12313 Define. Patch by Richard Henderson and Jes Sorensen.
12314 (PSEUDO): Remove unnecessary ;;.
12315 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
12316 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
12317 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
12318 if not initializing thread pointer.
12319 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
12320 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
12321 make it weak also if NONTLS_INIT_TP.
12322 * sysdeps/unix/common/pause.c: Handle cancellation.
12323 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
12324 (LOADSYSCALL): Remove.
12325 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
12326 (SYSCALL_ERROR_HANDLER): Use it.
12327 (PSEUDO): Don't jump around error handler.
12328 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
12329 jump around error handler.
12330 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
12331 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
12332 to __syscall_error_handler on failure.
12333 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
12334 (LOADSYSCALL): Remove.
12335 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
12336 (SYSCALL_ERROR_HANDLER): Use it.
12337 (PSEUDO): Don't jump around error handler.
12338 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
12339 jump around error handler.
12340 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
12341 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
12342 to __syscall_error_handler on failure.
12344 2002-12-27 Roland McGrath <roland@redhat.com>
12346 * scripts/gen-as-const.awk: New file.
12347 * Makefile (distribute): Add it.
12348 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
12349 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
12351 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
12353 2002-12-27 Andreas Schwab <schwab@suse.de>
12355 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
12357 2002-12-27 Jakub Jelinek <jakub@redhat.com>
12359 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
12362 2002-12-27 Andreas Schwab <schwab@suse.de>
12364 * Makerules ($(common-objpfx)%.make): Filter through
12365 $(sed-remove-objpfx).
12367 2002-12-23 Roland McGrath <roland@redhat.com>
12369 * scripts/abilist.awk: Produce a more compact format, divided into
12370 stanzas for each version set, the set name listed only once.
12371 * scripts/extract-abilist.awk: New file.
12372 * scripts/merge-abilist.awk: New file.
12373 * Makerules (check-abi-%, update-abi-%): New pattern rules.
12374 (update-abi, check-abi): New targets.
12375 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
12377 2002-12-19 Roland McGrath <roland@redhat.com>
12379 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
12381 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
12384 2002-12-21 Andreas Schwab <schwab@suse.de>
12386 * elf/check-textrel.c (handle_file): Swap p_type.
12388 2002-12-21 Andreas Schwab <schwab@suse.de>
12390 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
12391 (INLINE_SYSCALL): Use it.
12392 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
12393 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12395 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
12396 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
12398 2002-12-20 Art Haas <ahaas@airmail.net>
12400 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
12403 2002-12-21 Philip Blundell <philb@gnu.org>
12405 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
12406 top as seventh arg to __libc_start_main.
12407 Reported by paulnash@wildseed.com.
12409 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
12411 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
12412 compatibility cruft when new enough kernel is assumed.
12414 2002-12-20 Jakub Jelinek <jakub@redhat.com>
12416 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
12417 instead of INLINE_SYSCALL.
12419 2002-12-20 Ulrich Drepper <drepper@redhat.com>
12421 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
12424 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
12425 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
12426 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
12427 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
12428 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
12429 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
12430 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12431 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12432 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
12433 Patch by William Lee Irwin <wli@holomorphy.com>.
12435 2002-12-20 Andreas Schwab <schwab@suse.de>
12437 * locale/programs/ld-measurement.c (measurement_output): Fix
12440 2002-12-20 Ulrich Drepper <drepper@redhat.com>
12442 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
12443 Redefine _IO_flockifle and _IO_funlockfile as inlines.
12445 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
12446 builds add "tls" in the search path.
12447 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
12448 (path_hwcap): Recognize "tls".
12450 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12452 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
12453 __waitpid instead of waitpid.
12455 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
12457 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
12458 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
12459 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
12461 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
12462 information for system calls.
12464 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
12467 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
12469 2002-12-19 Roland McGrath <roland@redhat.com>
12471 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
12472 * iconvdata/ibm922.h: Likewise.
12473 * iconvdata/ibm930.h: Likewise.
12474 * iconvdata/ibm932.h: Likewise.
12475 * iconvdata/ibm933.h: Likewise.
12476 * iconvdata/ibm935.h: Likewise.
12477 * iconvdata/ibm937.h: Likewise.
12478 * iconvdata/ibm939.h: Likewise.
12479 * iconvdata/ibm943.h: Likewise.
12480 * iconvdata/isiri-3342.h: Likewise.
12482 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12484 * test-skeleton.c (main): Make sure correct value is seen as
12485 argv[0] after adjustment of argv, and argc.
12487 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
12488 RTLD_CORRECT_DYNAMIC_WEAK is defined.
12490 2002-12-19 Jakub Jelinek <jakub@redhat.com>
12492 * nscd/connections.c (nscd_run): Shut up warning.
12493 * tst-ungetc.c (assert): Undefined before redefining.
12495 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12497 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
12500 2002-12-17 Art Haas <ahaas@airmail.net>
12502 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
12503 * iconvdata/cp775.h: Likewise.
12504 * iconvdata/ibm1046.h: Likewise.
12505 * iconvdata/ibm1124.h: Likewise.
12506 * iconvdata/ibm1129.h: Likewise.
12507 * iconvdata/ibm1132.h: Likewise.
12508 * iconvdata/ibm1133.h: Likewise.
12509 * iconvdata/ibm1160.h: Likewise.
12510 * iconvdata/ibm1161.h: Likewise.
12511 * iconvdata/ibm1162.h: Likewise.
12512 * iconvdata/ibm1163.h: Likewise.
12513 * iconvdata/ibm1164.h: Likewise.
12515 2002-12-19 Ulrich Drepper <drepper@redhat.com>
12517 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
12518 __ASSUME_CLONE_THREAD_FLAGS is defined.
12519 * sysdeps/unix/sysv/linux/kernel-features.h
12520 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
12522 2002-12-18 Ulrich Drepper <drepper@redhat.com>
12524 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
12526 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12528 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
12530 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
12532 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
12534 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
12536 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
12537 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
12538 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
12541 2002-12-18 Jakub Jelinek <jakub@redhat.com>
12543 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
12544 __libc_writev to...
12545 [libc: GLIBC_PRIVATE]: ...here.
12546 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
12547 __libc_msgsnd to...
12548 [libc: GLIBC_PRIVATE]: ...here.
12550 2002-12-18 Ulrich Drepper <drepper@redhat.com>
12552 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
12553 Use it instead of directly int $0x80.
12554 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
12555 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
12556 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
12557 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12558 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
12559 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
12561 2002-12-17 Ulrich Drepper <drepper@redhat.com>
12563 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
12565 * elf/elf.h (AT_SYSINFO): New define.
12566 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
12569 2002-12-17 Jakub Jelinek <jakub@redhat.com>
12571 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
12573 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
12575 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
12577 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
12579 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
12581 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
12583 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
12584 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
12585 available, otherwise __libc_maybe_call.
12586 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
12587 cancellation handling.
12588 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
12590 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
12592 * posix/regcomp.c (free_workarea_compile): Free the new member
12594 (analyze): Initialize ORG_INDICES.
12595 (duplicate_node_closure): Search for a existing node, which is
12596 duplicated from the node ORG_DEST and satisfies the constraint
12597 CONSTRAINT. And use it to avoid inifimite loop.
12598 (search_duplicated_node): New function.
12599 (duplicate_node): Store the index of the original node.
12600 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
12602 * posix/regex_internal.h (re_dfa_t): Add new members.
12604 2002-12-17 Ulrich Drepper <drepper@redhat.com>
12606 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
12608 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12610 * sysdeps/posix/system.c (do_system): Add support for installation
12611 of cancellation handlers.
12612 * sysdeps/unix/sysv/linux/i386/system.c: New file.
12614 * stdlib/Makefile (tests): Add tst-system.
12615 * stdlib/tst-system.c: New file.
12617 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
12618 CENABLE]: Don't lose content of %ebx.
12620 2002-12-17 Jakub Jelinek <jakub@redhat.com>
12622 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
12623 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
12625 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12627 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
12628 fails to return a function pointer don't use it.
12630 2002-12-16 Art Haas <ahaas@airmail.net>
12632 * io/ftw.c: Convert GCC extension initializer syntax to C99.
12633 * iconvdata/iso-ir-165.c: Likewise.
12634 * iconvdata/jis0208.c: Likewise.
12635 * iconvdata/jis0212.c: Likewise.
12637 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12639 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
12640 epoll_ctl, and epoll_wait.
12641 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
12642 epoll_create, epoll_ctl, and epoll_wait.
12643 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
12644 Davide Libenzi <davidel@xmailserver.org>.
12645 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
12646 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
12649 2002-12-16 Art Haas <ahaas@airmail.net>
12651 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
12653 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
12654 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
12655 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
12657 2002-12-16 Ulrich Drepper <drepper@redhat.com>
12659 * stdio-common/Makefile (routines): Remove lockfile. Add
12660 flockfile, ftrylockfile, and funlockfile.
12661 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
12662 * sysdeps/generic/flockfile.c: New file.
12663 * sysdeps/generic/ftrylockfile.c: New file.
12664 * sysdeps/generic/funlockfile.c: New file.
12666 2002-12-16 Jakub Jelinek <jakub@redhat.com>
12668 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
12669 macros instead of doing the calls directly.
12670 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
12671 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
12674 2002-12-16 Jakub Jelinek <jakub@redhat.com>
12676 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
12677 * sysdeps/ieee754/bits/nan.h: Likewise.
12679 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
12680 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
12682 2002-12-16 Roland McGrath <roland@redhat.com>
12684 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
12685 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
12686 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
12688 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
12689 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
12691 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
12692 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
12693 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
12694 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
12695 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
12696 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
12697 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
12698 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
12700 2002-12-13 Paul Eggert <eggert@twinsun.com>
12702 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
12703 is now u_int, not int.
12704 (struct XDR.x_handy): Now u_int, not int.
12705 * sunrpc/xdr_mem.c: Include <limits.h>.
12706 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
12707 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
12708 x_handy is now unsigned, not signed.
12709 Do not decrement x_handy if no change is made.
12710 (xdrmem_setpos): Check for int overflow.
12711 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
12712 (xdr_sizeof): Remove cast that is now unnecessary, now that
12713 x_handy is unsigned.
12715 2002-12-15 Art Haas <ahaas@airmail.net>
12717 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
12718 * iconvdata/gap.awk: Likewise.
12719 * iconvdata/gen-8bit-gap-1.sh: Likewise.
12720 * iconvdata/gen-8bit-gap.sh: Likewise.
12721 * locale/C-address.c: Likewise.
12722 * locale/C-collate.c: Likewise.
12723 * locale/C-ctype.c: Likewise.
12724 * locale/C-identification.c: Likewise.
12725 * locale/C-measurement.c: Likewise.
12726 * locale/C-messages.c: Likewise.
12727 * locale/C-monetary.c: Likewise.
12728 * locale/C-name.c: Likewise.
12729 * locale/C-numeric.c: Likewise.
12730 * locale/C-paper.c: Likewise.
12731 * locale/C-telephone.c: Likewise.
12732 * locale/C-time.c: Likewise.
12733 * nscd/connections.c: Likewise.
12734 * nscd/grpcache.c: Likewise.
12735 * nscd/hstcache.c: Likewise.
12736 * nscd/pwdcache.c: Likewise.
12737 * stdio-common/vfprintf.c: Likewise.
12738 * stdlib/random.c: Likewise.
12739 * sysdeps/generic/siglist.c: Likewise.
12740 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
12741 * sysdeps/ieee754/bits/nan.h: Likewise.
12742 * sysdeps/posix/sprofil.c: Likewise.
12743 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
12744 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
12745 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
12747 2002-12-15 Roland McGrath <roland@redhat.com>
12749 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
12751 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
12752 <tls.h> here, no need for it.
12753 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
12755 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
12756 parameter, not varargs parameter.
12758 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
12759 argument so it's not an unused variable.
12761 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
12762 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
12765 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
12767 2002-12-15 Ulrich Drepper <drepper@redhat.com>
12769 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
12770 original __libc_fcntl code. Just renamed.
12772 2002-12-15 Andreas Schwab <schwab@suse.de>
12774 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
12776 2002-12-14 Olaf Hering <olh@suse.de>
12778 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
12779 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
12781 2002-12-15 Ulrich Drepper <drepper@redhat.com>
12783 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
12785 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
12786 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
12788 * sysdeps/unix/sysv/linux/open64.c: New file.
12790 * sysdeps/generic/pselect.c: Add support for cancellation handling.
12791 * sysdeps/posix/open64.c: Likewise.
12792 * sysdeps/posix/sigpause.c: Likewise.
12793 * sysdeps/posix/sigwait.c: Likewise.
12794 * sysdeps/posix/system.c: Likewise.
12795 * sysdeps/posix/waitid.c: Likewise.
12796 * sysdeps/unix/sysv/linux/accept.S: Likewise.
12797 * sysdeps/unix/sysv/linux/connect.S: Likewise.
12798 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
12799 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12800 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
12801 * sysdeps/unix/sysv/linux/poll.c: Likewise.
12802 * sysdeps/unix/sysv/linux/pread.c: Likewise.
12803 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
12804 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
12805 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12806 * sysdeps/unix/sysv/linux/readv.c: Likewise.
12807 * sysdeps/unix/sysv/linux/recv.S: Likewise.
12808 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
12809 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
12810 * sysdeps/unix/sysv/linux/send.S: Likewise.
12811 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
12812 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
12813 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
12814 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
12815 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
12816 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
12817 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
12818 * sysdeps/unix/sysv/linux/wait.c: Likewise.
12819 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
12820 * sysdeps/unix/sysv/linux/writev.c: Likewise.
12821 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
12822 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
12824 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12826 * sysdeps/generic/sysdep-cancel.h: New file.
12827 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
12828 cancelable syscall.
12829 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
12830 recvmsg, send, sendmsg, sendto): Make cancelable.
12831 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
12832 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
12833 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
12834 sendto, osf_select): Likewise.
12835 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
12836 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
12837 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
12838 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
12840 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
12841 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
12842 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
12843 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
12845 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
12846 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
12847 sendto, select): Likewise.
12848 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
12849 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
12851 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
12852 select, fcntl): Likewise.
12853 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
12854 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
12855 read, readv, select, sigsuspend, write, writev): Likewise.
12857 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12859 * dirent/bug-readdir1.c: Include unistd.h.
12861 2002-12-13 Jakub Jelinek <jakub@redhat.com>
12863 * locale/programs/locale.c: Include locarchive.h.
12864 (ARCHIVE_NAME): Define.
12865 (write_archive_locales): New function.
12866 (write_locales): Use it. Ensure the same locale is not printed
12867 multiple times in verbose mode.
12868 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
12869 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
12871 (struct nameent): New type.
12872 (nameentcmp): New function.
12874 2002-12-14 Jakub Jelinek <jakub@redhat.com>
12876 * posix/regex_internal.c (re_string_context_at): Guard wide char
12877 code with #ifdef RE_ENABLE_I18N.
12879 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
12881 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
12883 2002-12-13 Roland McGrath <roland@redhat.com>
12885 * posix/bug-regex15.c: New file.
12886 * posix/Makefile (tests): Add it.
12888 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
12889 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
12891 2002-12-13 Ulrich Drepper <drepper@redhat.com>
12893 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
12895 * misc/syslog.c (log_cleanup): Don't use parameter in
12896 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
12897 pass NULL instead of a pointer to syslog_lock.
12899 2002-12-12 Ulrich Drepper <drepper@redhat.com>
12901 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
12902 linker map for all iconv modules.
12903 (distribute): Add gconv.map.
12904 * iconvdata/gconv.map: New file.
12906 * elf/Makefile: Also check all iconv modules for text relocations.
12908 * stdlib/Makefile: Remove code to automatically import GMP.
12910 * elf/Makefile (tests): Add rules to build and run check-textrel.
12911 * elf/check-textrel.c: New file.
12913 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
12916 2002-12-11 Jakub Jelinek <jakub@redhat.com>
12918 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
12921 2002-04-30 Bruno Haible <bruno@clisp.org>
12923 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
12924 the encoding if it already has slashes.
12925 Reported by Perry Rapp <prapp@erols.com>.
12927 2002-12-11 Roland McGrath <roland@redhat.com>
12929 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
12930 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
12931 Turn off PIC for compiling this file.
12933 2002-12-11 Ulrich Drepper <drepper@redhat.com>
12935 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
12936 definitions. Not needed.
12937 [_LIBC]: Use definitions from libc-lock.h instead of referencing
12938 pthread routines directly.
12939 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
12941 (arena_get2): Don't look at return value of mutex_lock.
12943 2002-12-11 Roland McGrath <roland@redhat.com>
12945 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
12946 elf-init.o instead of compiling a PIC version.
12948 2002-12-11 Bruno Haible <bruno@clisp.org>
12950 * intl/gettext.h: Renamed to ...
12951 * intl/gmo.h: ... here.
12952 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
12953 * intl/gettextP.h: Update.
12954 * intl/loadmsgcat.c: Update.
12956 * intl/gettextP.h (PARAMS): Make more portable.
12957 (attribute_hidden): Define as empty macro if not already defined.
12958 * intl/hash-string.h (PARAMS): Make more portable.
12959 * intl/loadinfo.h (PARAMS): Likewise.
12960 * intl/plural-exp.h (PARAMS): Likewise.
12961 (attribute_hidden): Move definition near the definition of
12964 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
12965 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
12967 2002-07-13 Bruno Haible <bruno@clisp.org>
12969 * intl/dcigettext.c (freea): New macro.
12970 (FREE_BLOCKS): Free also the registered blocks.
12971 (DCIGETTEXT): Free the 'search' variable.
12972 Reported by Andreas Fischer <a.fischer@asentics.de>.
12974 2002-04-27 Bruno Haible <bruno@clisp.org>
12976 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
12977 * intl/dcigettext.c: Likewise.
12978 * intl/dcgettext.c: Likewise.
12979 * intl/dgettext.c: Likewise.
12980 * intl/gettext.c: Likewise.
12981 * intl/dcngettext.c: Likewise.
12982 * intl/dngettext.c: Likewise.
12983 * intl/ngettext.c: Likewise.
12984 * intl/textdomain.c: Likewise.
12985 * intl/bindtextdom.c: Likewise.
12986 * intl/plural-exp.h: Likewise.
12988 2002-01-02 Bruno Haible <bruno@clisp.org>
12990 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
12992 2001-04-30 Bruno Haible <bruno@clisp.org>
12994 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
12995 default macro definitions. Needed for mingw32.
12997 2002-12-10 Ulrich Drepper <drepper@redhat.com>
12999 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
13000 __builtin_constant_p to macro parameter.
13002 * sysdeps/generic/sigpause.c: Define all functions as weak.
13003 * sysdeps/posix/sigpause.c: Likewise.
13005 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
13008 2002-12-10 Jakub Jelinek <jakub@redhat.com>
13010 * elf/tst-array1.c (preinit_array, init_array, fini_array):
13011 Explicitly align the array to sizeof (void *).
13012 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
13014 * include/libc-symbols.h: Fix a comment typo.
13016 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
13017 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
13019 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
13021 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
13022 (__libc_sigsuspend): Likewise.
13023 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
13024 (__libc_sigsuspend): Likewise.
13025 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
13026 (creat): New weak alias.
13028 2002-12-10 Roland McGrath <roland@redhat.com>
13030 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
13031 contributes a manual chapter.
13032 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
13035 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
13036 and move contents to ...
13037 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
13038 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
13039 it instead of duplicating its contents.
13040 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
13042 2002-12-09 Jakub Jelinek <jakub@redhat.com>
13044 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
13046 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
13048 (EXTRA_LD_ENVVARS): Use it.
13049 (DL_OSVERSION_INIT): Define.
13050 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
13052 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
13054 2002-12-10 Ulrich Drepper <drepper@redhat.com>
13056 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
13058 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
13059 call. It is not allowed to destroy pthread mutexes which are
13060 still in use even though it is safe for our implementations. If
13061 somebody still uses the descriptor it is a bug.
13063 2002-12-09 Richard Henderson <rth@redhat.com>
13065 * csu/abi-note.S: Use .p2align, not .align.
13067 2002-12-09 Ulrich Drepper <drepper@redhat.com>
13069 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
13070 __libc_select aliases.
13072 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
13075 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
13077 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
13079 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
13081 * sysdeps/unix/syscalls.list: Define __libc_select alias.
13083 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
13085 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
13086 __libc___xpg_sigpause aliases.
13088 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
13090 * misc/error.c: Remove use of USE_IN_LIBIO.
13092 2002-12-08 Roland McGrath <roland@redhat.com>
13094 * elf/Makefile (tests): Uncomment tst-array[123].
13095 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
13096 * csu/elf-init.c: New file.
13097 * csu/Makefile (routines, static-only-routines): Add elf-init.
13098 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
13099 and __libc_csu_fini in place of _fini.
13100 * sysdeps/arm/elf/start.S: Likewise.
13101 * sysdeps/cris/elf/start.S: Likewise.
13102 * sysdeps/hppa/elf/start.S: Likewise.
13103 * sysdeps/i386/elf/start.S: Likewise.
13104 * sysdeps/ia64/elf/start.S: Likewise.
13105 * sysdeps/m68k/elf/start.S: Likewise.
13106 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
13107 * sysdeps/mips/elf/start.S: Likewise.
13108 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
13109 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
13110 * sysdeps/s390/s390-32/elf/start.S: Likewise.
13111 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13112 * sysdeps/sh/elf/start.S: Likewise.
13113 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13114 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13115 * sysdeps/x86_64/elf/start.S: Likewise.
13117 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
13118 struct containing function ptr and value, free it.
13119 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
13120 It's not safe to let the new thread use the SIGEV pointer.
13122 2001-10-20 Paul Eggert <eggert@twinsun.com>
13124 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
13125 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
13126 Use strerror_r that is only a macro, even if it is not a function.
13127 (strerror): Check for HAVE_DECL_STRERROR before declaring.
13128 (private_strerror): Use prototypes, not old-style function definition.
13129 (print_errno_message): New function.
13130 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
13131 char*-flavored one.
13132 (error_tail, error, error_at_line): Use it.
13134 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
13136 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
13138 2002-12-08 Ulrich Drepper <drepper@redhat.com>
13140 * scripts/output-format.sed: Fix bug in one of the s expressions
13141 which used / for one too many things.
13143 * include/unistd.h: Declare __libc_close.
13145 2002-12-07 Ulrich Drepper <drepper@redhat.com>
13147 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
13149 2002-12-07 Roland McGrath <roland@redhat.com>
13151 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
13152 from 2002-12-06, but remove unnecessary memset call without removing
13153 necessary copy of initialization image.
13155 * Makerules ($(common-objpfx)format.lds): New target.
13156 (common-generated): Add it.
13157 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
13158 * scripts/output-format.sed: New file.
13159 * Makefile (distribute): Add it.
13161 2002-12-07 Ulrich Drepper <drepper@redhat.com>
13163 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
13164 Reported by Art Haas <ahaas@airmail.net>.
13166 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
13168 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
13170 2002-12-07 Jakub Jelinek <jakub@redhat.com>
13172 * string/test-strncpy.c (do_random_tests): Improve test coverage.
13174 2002-12-06 Ulrich Drepper <drepper@redhat.com>
13176 * test-skeleton.c (timeout_handler): Allow expected signal to be
13179 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
13181 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
13183 2002-12-07 Jakub Jelinek <jakub@redhat.com>
13185 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
13186 (SYSCALL_ERROR_HANDLER): Fix a pasto.
13187 Reported by Jeff Bailey <jbailey@nisa.net>.
13189 2002-12-06 Ulrich Drepper <drepper@redhat.com>
13191 * sysdeps/generic/libc-tls.c: Undo last patch.
13193 * include/wctype.h: Define iswalnum with libc_hidden_proto.
13195 * include/signal.h: Define raise with libc_hidden_proto.
13197 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
13198 __execve instead of snprintf and execve.
13200 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
13203 2002-12-06 Jakub Jelinek <jakub@redhat.com>
13205 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
13206 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
13208 2002-12-06 Ulrich Drepper <drepper@redhat.com>
13210 * misc/syslog.c (log_cleanup): New function.
13211 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
13212 (closelog): Likewise.
13214 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
13215 * elf/dl-iteratephdr.c: Likewise.
13216 * elf/dl-lookup.c: Likewise.
13217 * elf/dl-misc.c: Likewise.
13218 * elf/dl-open.c: Likewise.
13219 * elf/dl-support.c: Likewise.
13220 * elf/rtld.c: Likewise.
13221 * sysdeps/generic/ldsodefs.h: Likewise.
13222 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
13223 * sysdeps/mach/bits/libc-lock.h: Likewise.
13224 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
13226 2002-12-06 Roland McGrath <roland@redhat.com>
13228 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
13230 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
13231 (malloc_starter, memalign_starter, free_starter): Don't define these.
13232 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
13233 Don't declare them either.
13234 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
13235 __pthread_initialize, so no need to set hooks to *_starter.
13236 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
13237 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
13238 (__libc_malloc_pthread_startup): New function.
13239 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
13241 * malloc/hooks.c (memalign_starter): New function.
13242 * malloc/malloc.c: Declare it.
13243 * malloc/arena.c (save_memalign_hook): New variable.
13244 (ptmalloc_init): Set __memalign_hook to memalign_starter.
13246 * elf/dl-minimal.c (free): Clear the memory.
13247 (calloc): Just call malloc, knowing all memory it returns is cleared.
13249 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
13250 malloc and memset; calloc can avoid the zeroing when redundant.
13251 (_dl_tls_setup): Likewise.
13252 * elf/dl-load.c (decompose_rpath): Likewise.
13253 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
13254 call, since memory from sbrk at startup is already zero.
13256 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
13257 error string for failure, null for success. Update callers.
13258 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
13259 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
13261 2002-12-05 Jakub Jelinek <jakub@redhat.com>
13263 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
13265 (readahead): Change args to i:iii.
13266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
13267 Change args to i:iii.
13268 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
13271 2002-12-05 Roland McGrath <roland@redhat.com>
13273 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
13274 call all functions rather than none.
13275 Reported by Mark P. Mitchell <mark@codesourcery.com>.
13277 2002-12-04 Roland McGrath <roland@redhat.com>
13279 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
13280 on _nl_current_LC_* variables.
13282 2002-12-05 Ulrich Drepper <drepper@redhat.com>
13284 * dirent/bug-readdir1.c (main): Don't call closedir, just close
13285 the file descriptor. This is testing what the bug report was about.
13287 2002-12-04 Ulrich Drepper <drepper@redhat.com>
13289 * po/be.po: New file.
13291 * argp/Makefile (tests): Add tst-argp1.
13293 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
13294 Change type of _attribute to void*.
13295 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
13296 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
13297 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
13298 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13299 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13301 2002-12-04 Roland McGrath <roland@redhat.com>
13303 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
13304 members to the end, so a libpthread compiled with !USE_TLS will still
13305 find other members properly.
13307 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
13308 operand for DEST memory. Fix dummy input operand to use SRC.
13309 Reported by Davin McCall <davmac@ozonline.com.au>.
13311 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
13312 alignment when initializing the DTV entry.
13314 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
13315 when TLS has not been set up, try to set it up if we can.
13316 * elf/tst-tls4.c: Revert last change.
13317 * elf/tst-tls5.c: Likewise.
13318 * elf/tst-tls6.c: Likewise.
13319 * elf/tst-tls7.c: Likewise.
13320 * elf/tst-tls8.c: Likewise.
13321 * elf/tst-tls9.c: Likewise.
13323 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
13324 * sysdeps/generic/ldsodefs.h: Declare it.
13325 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
13326 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
13327 function, broken out of __libc_setup_tls.
13328 (init_static_tls): Likewise.
13329 (__libc_setup_tls): Call them.
13330 (_dl_tls_setup): New function, uses new subroutines.
13332 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
13333 Clear the pointer when returning true.
13334 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
13335 first element of the slotinfo list too.
13337 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
13340 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
13341 (_dl_determine_tlsoffset): Likewise.
13343 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
13344 startup_error_tsd, made global.
13345 (dl_main): Update initialization.
13346 * elf/dl-tsd.c: Likewise.
13347 * sysdeps/generic/ldsodefs.h: Declare it.
13349 2002-12-03 Ulrich Drepper <drepper@redhat.com>
13351 * manual/texinfo.tex: Update from latest upstream version.
13353 2002-12-03 Roland McGrath <roland@redhat.com>
13355 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
13356 area surplus in calculation for sbrk call.
13358 * iconvdata/cp1125.c: New file.
13359 * iconvdata/Makefile (distribute): Add it.
13360 (modules): Add CP1125.
13361 (gen-8bit-gap-modules): Add cp1125.
13362 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
13363 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
13365 2002-12-03 Andreas Jaeger <aj@suse.de>
13367 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13369 2002-12-03 Ulrich Drepper <drepper@redhat.com>
13371 * sysdeps/posix/system.c (do_system): Make signal handler
13372 installation thread safe.
13374 2002-12-02 Roland McGrath <roland@redhat.com>
13376 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
13377 caller from EXTRA to -.
13378 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13379 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
13380 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
13382 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
13384 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
13385 bits of RM are cleared.
13387 2002-12-02 Roland McGrath <roland@redhat.com>
13389 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
13390 TLS setup is required.
13391 * elf/tst-tls5.c: Likewise.
13392 * elf/tst-tls6.c: Likewise.
13393 * elf/tst-tls7.c: Likewise.
13394 * elf/tst-tls8.c: Likewise.
13395 * elf/tst-tls9.c: Likewise.
13397 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
13398 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
13399 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
13400 for being null before calling free_slotinfo.
13401 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
13402 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
13404 2002-11-30 Bruno Haible <bruno@clisp.org>
13406 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
13407 (struct __gconv_step): New field __btowc_fct.
13408 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
13409 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
13411 (__gconv_btwoc_ascii): New declaration.
13412 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
13413 (__gconv_btwoc_ascii): New function.
13414 * iconv/gconv_builtin.h: Add BtowcFct argument to all
13415 BUILTIN_TRANSFORMATION invocations.
13416 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
13417 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
13418 * iconv/gconv_builtin.c (map): New field btowc_fct.
13419 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
13421 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
13422 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
13423 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
13424 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
13425 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
13426 (gconv_init): Initialize __btowc_fct field.
13427 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
13428 * iconv/loop.c: Document ONEBYTE_BODY.
13429 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
13430 Undefine ONEBYTE_BODY at the end.
13431 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
13432 * iconvdata/8bit-gap.c (NONNUL): New macro.
13433 (BODY for FROM_LOOP): Use it.
13434 (ONEBYTE_BODY): New macro.
13435 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
13436 (NONNUL): New macro.
13437 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
13438 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
13439 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
13440 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
13441 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
13442 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
13443 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
13444 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
13445 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
13446 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
13447 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
13448 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
13449 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
13450 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
13451 * iconvdata/ibm932.c: Include <stdbool.h>.
13452 (TRUE, FALSE): Remove macros.
13453 (BODY for FROM_LOOP): Remove unused variable rp1.
13454 (ONEBYTE_BODY): New macro.
13455 (BODY for TO_LOOP): Use bool.
13456 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
13457 * iconvdata/ibm943.c: Include <stdbool.h>.
13458 (TRUE, FALSE): Remove macros.
13459 (BODY for FROM_LOOP): Remove unused variable rp1.
13460 (ONEBYTE_BODY): New macro.
13461 (BODY for TO_LOOP): Use bool.
13462 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
13463 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
13464 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
13465 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
13466 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
13467 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
13468 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
13469 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
13470 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
13471 * iconvdata/gbbig5.c: Tweak comment.
13473 2002-12-02 Ulrich Drepper <drepper@redhat.com>
13475 * po/fi.po: Update from translation team.
13477 2002-12-01 Roland McGrath <roland@redhat.com>
13479 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
13480 testing getdents64 return value.
13482 * scripts/versions.awk: Don't pass -n flag to sort command.
13484 * posix/bug-regex13.c: Include <string.h>.
13486 * sysdeps/generic/libc-start.c (__libc_start_main): Do
13487 DL_SYSDEP_OSCHECK here.
13488 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
13489 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
13491 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
13492 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
13494 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
13495 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
13497 * include/link.h: Comment typo fix.
13499 2002-12-01 Roland McGrath <roland@frob.com>
13501 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
13502 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
13503 _POSIX_MEMORY_PROTECTION): Likewise.
13504 (_POSIX_POLL, _POSIX_SELECT): Removed.
13506 2002-11-28 Ulrich Drepper <drepper@redhat.com>
13508 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
13509 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
13511 2002-11-28 Jakub Jelinek <jakub@redhat.com>
13513 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
13515 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
13518 2002-11-28 Ulrich Drepper <drepper@redhat.com>
13520 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
13521 branch prediction buffers by using unpaired call/ret.
13523 2002-11-27 Ulrich Drepper <drepper@redhat.com>
13525 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
13526 first parameters constraint string.
13527 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
13529 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
13531 * posix/regcomp.c (parse_expression): Set the bit since the back
13532 reference is used in the regular expression.
13533 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
13535 (re_node_set_init_copy): Likewise.
13536 * posix/regex_internal.h (state_array_t): New structure.
13537 (re_sub_match_last_t): Likewise.
13538 (re_sub_match_top_t): Likewise.
13539 (re_match_context_t): Add new members.
13540 (re_dfa_t): Likewise.
13541 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
13542 to check the matching is really correct, and retry if failed.
13543 Move the routin pruning the impossible nodes from here, ...
13544 (prune_impossible_nodes): To this function.
13545 (check_matching): Invoke check_subexp_matching_top, and replace
13546 redundant checking with transit_state_bkref invocation.
13547 (proceed_next_node): Replace strncmp with memcmp. Reported by
13548 Paolo Bonzini <bonzini@gnu.org>.
13549 (update_cur_sifted_state): Remove search_subexp invocation.
13550 (search_subexp): Remove this function.
13551 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
13553 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
13554 Remove unused invocation of match_ctx_add_entry.
13555 (transit_state): Invoke check_subexp_matching_top.
13556 (check_subexp_matching_top): New function.
13557 (transit_state_bkref): Remove unused array.
13558 Merge transit_state_bkref_loop.
13559 (transit_state_bkref_loop): Use get_subexp instead of
13560 sift_states_backward. Use search_cur_bkref_entry for optimization.
13561 Merge this function to transit_state_bkref.
13562 (get_subexp): New function.
13563 (get_subexp_sub): Likewise.
13564 (find_subexp_node): Likewise.
13565 (check_arrival): Likewise.
13566 (check_arrival_expand_ecl): Likewise.
13567 (check_arrival_expand_ecl_sub): Likewise.
13568 (expand_bkref_cache): Likewise.
13569 (match_ctx_init): Initialize new members.
13570 (match_ctx_clean): New function.
13571 (match_ctx_free): Release new members.
13572 (match_ctx_free_subtops): New function.
13573 (match_ctx_add_entry): Fix indent.
13574 (search_cur_bkref_entry): New function.
13575 (match_ctx_add_subtop): Likewise.
13576 (match_ctx_add_sublast): Likewise.
13578 2002-11-25 Ulrich Drepper <drepper@redhat.com>
13580 * iconv/Makefile (tests): Remove tst-iconv4.c
13581 * iconv/tst-iconv4.c: Moved to...
13582 * iconvdata/tst-iconv4.c: ...here. New file.
13583 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
13585 2002-11-25 Roland McGrath <roland@redhat.com>
13587 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
13588 Grok AF_LINK if defined.
13589 From Momchil Velikov <velco@fadata.bg>.
13591 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
13592 brdaddr, or dstaddr, just set those pointers to null and don't fail.
13593 Reported by Momchil Velikov <velco@fadata.bg>.
13595 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
13596 is > sizeof IFR->ifa_addr, advance past the whole longer length.
13597 (__ifreq): Count up NIFS that way too.
13598 Reported by Momchil Velikov <velco@fadata.bg>.
13600 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
13602 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
13603 and <fpu_control.h>.
13605 2002-11-24 Ulrich Drepper <drepper@redhat.com>
13607 * elf/elf.h (EM_ST19): Fix typo.
13609 2002-11-25 Jakub Jelinek <jakub@redhat.com>
13611 * include/errno.h (__set_errno): Define as errno = val
13614 2002-11-24 Roland McGrath <roland@redhat.com>
13616 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
13617 * sysdeps/posix/writev.c: Likewise.
13618 From Momchil Velikov <velco@fadata.bg>.
13620 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
13621 calling *GL(dl_error_catch_tsd) for a thread-local location.
13622 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
13623 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
13624 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
13626 * libio/iofflush.c: Add libc_hidden_def.
13627 * libio/iofwrite.c: Likewise.
13628 * sysdeps/generic/sigtimedwait.c: Likewise.
13629 * sysdeps/generic/sigwaitinfo.c: Likewise.
13630 * sysdeps/posix/sigwait.c: Likewise.
13631 Reported by Momchil Velikov <velco@fadata.bg>.
13633 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
13634 to match <arpa/inet.h> declaration.
13635 * inet/inet_netof.c (inet_netof): Likewise.
13636 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
13637 Reported by Momchil Velikov <velco@fadata.bg>.
13639 * configure.in: Skip AUTOCONF check under --without-cvs.
13640 * configure: Regenerated.
13642 * posix/Makefile (headers): Add bits/pthreadtypes.h.
13643 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
13644 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
13646 2002-11-24 Andreas Schwab <schwab@suse.de>
13648 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
13649 with six arguments.
13651 2002-11-19 Jim Meyering <jim@meyering.net>
13653 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
13655 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
13657 2002-11-23 Roland McGrath <roland@redhat.com>
13659 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
13660 Just produce hex output for datum sizes.
13662 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
13663 Reported by Luca Barbieri <ldb@ldb.ods.org>.
13665 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
13667 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
13668 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
13669 and __unused3 fields.
13670 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
13671 [__WORDSIZE == 32]: Only PPC32 requires __unused1
13672 and __unused2 fields.
13673 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
13674 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
13675 __unused3, and __unused4 fields.
13677 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
13678 obtain lowest address for profiling in __monstartup call.
13680 2002-11-21 Roland McGrath <roland@redhat.com>
13682 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
13683 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
13685 * locale/localeinfo.h (struct locale_data): Revert last change.
13687 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
13688 From Ian Wienand <ianw@gelato.unsw.edu.au>.
13690 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
13691 __NR_pread64 if not defined.
13692 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
13693 From Ian Wienand <ianw@gelato.unsw.edu.au>.
13695 2002-11-21 Roland McGrath <roland@frob.com>
13697 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
13698 __libc_multiple_libcs here. Call __setfpucw.
13700 2002-11-21 Ulrich Drepper <drepper@redhat.com>
13702 * elf/Makefile (tests): Don't run test-arrayX tests for now.
13704 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
13705 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
13706 CLONE_CHILD_*TID flags.
13708 2002-11-20 Andreas Jaeger <aj@suse.de>
13710 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
13711 We pass struct ucontext on x86-64.
13713 (GET_FRAME): Adjust.
13714 (GET_STACK): Adjust.
13716 2002-11-20 Roland McGrath <roland@redhat.com>
13718 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
13719 conditionalize [! DO_VERSIONING] #error.
13721 * scripts/abilist.awk: Grok function descriptor symbols.
13723 * intl/tst-gettext.c (main): Check return values from setlocale.
13724 Add necessary unsetenv's to make LANG=existing-locale check work.
13726 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
13727 so aborted prior runs don't confuse things.
13729 * locale/localeinfo.h (struct locale_data: union locale_data_value):
13730 Use uintptr_t instead of unsigned int for `word' member.
13731 (_NL_CURRENT_WORD): Cast to uint32_t.
13733 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
13736 2002-11-20 Ulrich Drepper <drepper@redhat.com>
13738 * elf/tls-macros.h: Add IA-64 definitions.
13739 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
13741 * iconv/Makefile (tests): Add tst-iconv4.
13742 * iconv/tst-iconv4.c: New file.
13744 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
13745 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
13746 __GCONV_INCOMPLETE_INPUT.
13747 (ucs4le_internal_loop): Likewise.
13748 (ucs4le_internal_loop_unaligned): Likewise.
13749 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
13750 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
13751 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
13753 * iconv/loop.c (LOOPFCT): First test for empty input then for full
13756 * inet/getnameinfo.c: Use extend_alloca where appropriate.
13757 * sysdeps/posix/getaddrinfo.c: Likewise.
13759 * include/alloca.h (extend_alloca): New define. Based on stack
13760 direction it'll try to append to the previouls allocated buffer.
13762 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
13764 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
13765 use the same service for AF_INET and AF_INET6.
13767 2002-11-19 Ulrich Drepper <drepper@redhat.com>
13769 * intl/localealias.c (read_alias_file): Use only about 400 bytes
13770 of stack space instead of 16k.
13772 2002-11-18 Wolfram Gloger <wg@malloc.de>
13775 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
13776 nothing if not initialized. Bug report from Marcus Brinkmann
13777 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
13779 2002-11-19 Roland McGrath <roland@redhat.com>
13781 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
13784 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
13785 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
13786 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
13787 * configure: Regenerated.
13789 2002-11-19 Ulrich Drepper <drepper@redhat.com>
13791 * include/dlfcn.h: __libc_dlopen is now a macro calling
13792 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
13793 (__libc_dlopen_mode): New prototype.
13794 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
13795 new parameter. Store new parameter in mode field of structure passed
13797 (struct do_dlopen_args): Add new field mode.
13798 (do_dlopen): Pass mode from parameter structure to _dl_open.
13800 2002-11-11 Randolf Chung <tausq@debian.org>
13802 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
13803 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
13804 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
13806 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
13808 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
13809 Set -mdisable-fpregs for this file.
13811 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
13813 * sysdeps/unix/sysv/linux/configure.in:
13814 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
13815 from gcc-3.0 era for backwards compatibility.
13816 * sysdeps/unix/sysv/linux/configure: Regenerate.
13818 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
13819 Define mcontext_t as a sigcontext.
13821 2002-11-18 Roland McGrath <roland@redhat.com>
13823 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
13824 Free memory in `last_result' if it was used.
13826 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
13827 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
13828 Do the parsing inline instead of copying strings and calling
13829 inet_network, and properly skip all alias names not matching the form.
13831 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
13833 2002-11-17 Ulrich Drepper <drepper@redhat.com>
13835 * manual/pattern.texi (Wordexp Example): Fix sample code.
13837 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
13838 childs stack which will be loaded into the %esi register.
13840 2002-11-14 Paul Eggert <eggert@twinsun.com>
13842 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
13843 overflow when skipping the question part and when unpacking aliases.
13845 2002-11-15 Roland McGrath <roland@redhat.com>
13847 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
13848 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
13849 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
13851 2002-11-15 Jakub Jelinek <jakub@redhat.com>
13853 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
13854 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
13856 2002-11-15 Roland McGrath <roland@redhat.com>
13858 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
13859 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
13860 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
13861 (+make-include-of-dep): New canned sequence.
13863 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
13864 From Dmitry V. Levin <ldv@altlinux.org>.
13866 2002-11-14 Roland McGrath <roland@redhat.com>
13868 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
13869 * inet/herrno.c (__libc_h_errno): Likewise.
13870 * resolv/res_libc.c (__libc_res): Likewise.
13871 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
13872 (__res_state) [! USE___THREAD]: Don't define as weak.
13873 * csu/Versions: Revert last change.
13874 * resolv/Versions: Revert last change.
13876 * Makerules ($(common-objpfx)%.make): New pattern rule.
13877 * tls.make.c: New file.
13878 * Makefile (distribute): Add it.
13880 * sysdeps/generic/errno.c [! USE___THREAD]
13881 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
13882 with compat_symbol so they are not link-time visible.
13883 [! USE___THREAD] (__libc_errno): New alias for errno.
13884 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
13885 Add __libc_errno here.
13886 * inet/herrno.c [USE___THREAD]: Use this conditional
13887 in place of [USE_TLS && HAVE___THREAD].
13888 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
13889 (h_errno, _h_errno): Declare these with compat_symbol so they are not
13891 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
13892 * resolv/res_libc.c [! USE___THREAD]
13893 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
13894 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
13895 (__libc_res): Define as alias for _res.
13896 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
13897 Add __libc_h_errno and __libc_res here.
13899 2002-11-14 Jakub Jelinek <jakub@redhat.com>
13901 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
13902 * resolv/Versions (h_errno, _res): Likewise.
13904 2002-11-14 Roland McGrath <roland@redhat.com>
13906 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
13907 (%.symlist): Likewise.
13909 2002-11-13 Roland McGrath <roland@redhat.com>
13911 * scripts/abilist.awk: New file.
13912 * Makefile (distribute): Add it.
13913 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
13914 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
13915 [$(subdir) = elf] (tests): Depend on libc.symlist.
13916 (generated, common-generated): Add those files.
13918 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
13919 * configure: Regenerated.
13920 * config.make.in (OBJDUMP): New variable, substituted by configure.
13922 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
13923 (mallochook, reallochook): Set them up.
13924 (checkhdr): Check HDR->magic2 value.
13925 (freehook): Reset HDR->magic2.
13926 (memalignhook): New static function.
13927 (old_memalign_hook): New static variable.
13928 (mcheck, reallochook): Set __memalign_hook to memalignhook.
13930 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
13933 2002-11-13 Andreas Jaeger <aj@suse.de>
13935 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
13937 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13939 2002-11-11 Paul Eggert <eggert@twinsun.com>
13941 * manual/crypt.texi (Cryptographic Functions): Mention that
13942 the MD5 one-way algorithm is compatible with BSD's.
13944 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
13946 * posix/regex_internal.c (re_string_skip_chars): Also return the last
13948 (re_string_reconstruct): Calculate the context by itself when the
13949 offset points out of the valid range.
13950 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
13951 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
13952 (IS_WIDE_WORD_CHAR): New macro.
13953 (IS_WIDE_NEWLINE): New macro.
13955 2002-11-12 Andreas Jaeger <aj@suse.de>
13957 * sysdeps/x86_64/strchr.S: Don't use one register for two
13958 purposes, this fixes a bug noticed by test-strchr.c.
13960 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
13963 2002-11-12 Roland McGrath <roland@redhat.com>
13965 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
13966 (_G_IO_NO_BACKWARD_COMPAT): Define it.
13968 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
13969 instead of <pt-machine.h>.
13970 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
13972 From Ian Wienand <ianw@gelato.unsw.edu.au>.
13974 2002-11-10 Roland McGrath <roland@redhat.com>
13976 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
13977 Call fputs instead of fwprintf (simpler to follow in debugger).
13979 * crypt/md5-crypt.c: Doc fix.
13981 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
13982 the beginning of generated target commands.
13984 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
13985 dependencies for these in case implicit rule search skipped the
13986 nonexistent source directory.
13987 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
13988 files with $(object-suffixes) as targets too.
13989 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
13990 and a target for it using $(make-target-directory).
13992 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
13994 2002-11-10 Roland McGrath <roland@frob.com>
13996 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
13997 * sysdeps/generic/bits/pthreadtypes.h: ... here.
13999 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
14000 l_start == 0 and l_len == 1 as we do l_len == 0.
14002 2002-11-10 Ulrich Drepper <drepper@redhat.com>
14004 * po/da.po: Update from translation team.
14006 2002-11-10 Roland McGrath <roland@redhat.com>
14008 * config.make.in (includedir): New variable, substituted by configure.
14009 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
14010 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
14012 2002-11-10 Andreas Jaeger <aj@suse.de>
14014 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
14015 REG_OLDMASK and REG_CR2 to synch with kernel header.
14018 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
14020 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
14021 * nss/getnssent_r.c (__nss_getent_r): Likewise.
14022 (__nss_setent): Likewise.
14023 (__nss_getent_r): Likewise.
14024 * inet/getnetgrent_r.c (innetgr): Likewise.
14025 (__internal_setnetgrent_reuse): Likewise.
14026 (internal_getnetgrent_r): Likewise.
14027 * inet/ether_hton.c (ether_hostton): Likewise.
14028 * inet/ether_ntoh.c (ether_ntohost): Likewise.
14029 * sunrpc/netname.c (netname2user): Likewise.
14030 * sunrpc/publickey.c (getpublickey): Likewise.
14031 (getsecretkey): Likewise.
14033 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
14035 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
14036 error in range calculation.
14038 2002-10-09 Jakub Jelinek <jakub@redhat.com>
14040 * string/test-strspn.c (do_test): Ensure zero termination.
14041 * string/test-strpbrk.c (do_test): Likewise.
14042 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
14043 * string/test-strncpy.c (stupid_strncpy): Likewise.
14044 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
14046 2002-10-08 Roland McGrath <roland@redhat.com>
14048 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
14049 nonzero characters.
14051 2002-09-22 H.J. Lu <hjl@gnu.org>
14053 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
14054 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
14055 only if __NR_mmap2 is defined.
14057 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
14058 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
14059 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
14060 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
14062 2002-11-08 Jakub Jelinek <jakub@redhat.com>
14064 * posix/bug-regex13.c (tests): Add new test.
14066 * string/test-strchr.c (stupid_strchr): New function.
14067 (do_random_tests): Make sure the string is zero terminated.
14068 * string/test-strpbrk.c (stupid_strpbrk): New function.
14069 (do_random_tests): Make sure the string is zero terminated.
14070 * string/test-strcmp.c (stupid_strcmp): New function.
14071 (do_random_tests): Make sure the strings are zero terminated.
14072 * string/test-strspn.c (stupid_strspn): New function.
14073 (simple_strspn): Rename rej argument to acc.
14074 (do_random_tests): Make sure the string is zero terminated.
14075 * string/test-strcspn.c (stupid_strcspn): New function.
14076 * string/test-strncpy.c (stupid_strncpy): New function.
14077 * string/test-stpncpy.c (stupid_stpncpy): New function.
14078 * string/test-strncmp.c (stupid_strncmp): New function.
14079 (do_random_tests): Make sure the strings are zero terminated.
14080 * string/test-string.h (impl_t): Change test into long.
14081 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
14083 2002-11-08 Roland McGrath <roland@redhat.com>
14085 * sysdeps/ia64/elf/configure.in: Add TLS check.
14086 From Ian Wienand <ianw@cse.unsw.edu.au>.
14087 * sysdeps/ia64/elf/configure: Regenerated.
14089 2002-11-07 Roland McGrath <roland@redhat.com>
14091 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
14092 place of _IO_new_do_write.
14093 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
14094 #undef before versioned_symbol use.
14096 2002-11-07 Richard Henderson <rth@redhat.com>
14098 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
14099 * configure: Regenerated.
14100 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
14101 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
14102 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
14103 _dl_fini via gp-relative relocations.
14104 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
14106 * elf/tls-macros.h: Add alpha versions.
14107 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
14108 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
14109 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
14110 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
14111 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
14112 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
14113 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
14114 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
14115 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
14116 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
14117 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
14118 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
14119 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
14120 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
14121 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
14122 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
14123 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
14124 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
14126 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
14127 Kill argument registers across the inline syscall.
14129 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
14131 * linuxthreads/sysdeps/alpha/tls.h: New file.
14132 * sysdeps/alpha/dl-tls.h: New file.
14134 2002-10-29 David Mosberger <davidm@hpl.hp.com>
14136 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
14137 (gmon_initializer): New function.
14138 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
14139 __gmon_start__ here. Call it from gmon_initializer() instead.
14141 2002-03-12 H.J. Lu <hjl@gnu.org>
14143 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
14144 tst-array2, and tst-array3.
14145 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
14146 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
14147 ($(objpfx)tst-array1.out): New target.
14148 ($(objpfx)tst-array2): Likewise.
14149 ($(objpfx)tst-array2.out): Likewise.
14150 ($(objpfx)tst-array3.out): Likewise.
14151 * elf/tst-array1.c: New file.
14152 * elf/tst-array1.exp: Likewise.
14153 * elf/tst-array2.c: Likewise.
14154 * elf/tst-array2dep.c: Likewise.
14155 * elf/tst-array2.exp: Likewise.
14156 * elf/tst-array3.c: Likewise.
14158 2002-10-28 David Mosberger <davidm@hpl.hp.com>
14160 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
14161 Don't add L->l_addr to array entry values.
14163 2002-11-07 Jakub Jelinek <jakub@redhat.com>
14165 * string/test-string.h: New file.
14166 * string/test-strlen.c: New file.
14167 * string/test-string.h: New file.
14168 * string/test-strcmp.c: New file.
14169 * string/test-strchr.c: New file.
14170 * string/test-strrchr.c: New file.
14171 * string/test-strcpy.c: New file.
14172 * string/test-stpcpy.c: New file.
14173 * string/test-strncpy.c: New file.
14174 * string/test-stpncpy.c: New file.
14175 * string/test-strpbrk.c: New file.
14176 * string/test-strcspn.c: New file.
14177 * string/test-strspn.c: New file.
14178 * string/test-strcat.c: New file.
14179 * string/test-strncmp.c: New file.
14180 * string/test-memchr.c: New file.
14181 * string/test-memcmp.c: New file.
14182 * string/test-memset.c: New file.
14183 * string/test-memcpy.c: New file.
14184 * string/test-mempcpy.c: New file.
14185 * string/test-memmove.c: New file.
14186 * string/Makefile (strop-tests): New variable.
14187 (tests): Add strop-tests.
14188 (distribute): Add test-string.h.
14190 2002-11-06 Ulrich Drepper <drepper@redhat.com>
14192 * posix/regcomp.c: Use tabs instead of spaces.
14193 * posix/regexec.c: Likewise.
14194 * posix/regex_internal.h: Likewise.
14196 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
14198 2002-11-06 Jakub Jelinek <jakub@redhat.com>
14200 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
14202 (regcomp): Don't set can_be_null here.
14203 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
14204 (re_compile_internal): Clear can_be_null, set regs_allocated.
14206 * posix/regcomp.c (re_set_fastmap): New function.
14207 (re_compile_fastmap_iter): Use it. Remove redundant type ==
14208 COMPLEX_BRACKET check.
14209 * posix/regexec.c (re_search_internal): Optimize searching with
14210 fastmap. Call re_string_reconstruct even if match_first is
14211 smaller than raw_mbs_idx.
14213 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
14215 * posix/regcomp (free_dfa_content): Use free_state.
14216 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
14217 pointers in case that realloc failed.
14218 (re_node_set_merge): Likewise.
14219 (register_state): Likewise.
14220 (create_newstate_common): Invoke memory release functions in case of
14222 (create_ci_newstate): Likewise.
14223 (create_cd_newstate): Likewise.
14224 (free_state): New function.
14225 * posix/regexec.c (re_search_internal): Invoke memory release
14226 functions in case of error conditions.
14227 (sift_states_backward): Likewise.
14228 (merge_state_array): Likewise.
14229 (add_epsilon_src_nodes): Likewise.
14230 (sub_epsilon_src_nodes): Likewise.
14231 (search_subexp): Likewise.
14232 (sift_states_bkref): Likewise.
14233 (transit_state_sb): Likewise.
14234 (transit_state_mb): Likewise.
14235 (transit_state_bkref_loop): Likewise.
14236 (group_nodes_into_DFAstates): Likewise.
14237 (push_fail_stack): Don't edit pointers in case that realloc failed.
14238 (extend_buffers): Likewise.
14239 (match_ctx_add_entry): Likewise.
14241 2002-11-06 Roland McGrath <roland@redhat.com>
14243 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
14244 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
14246 * configure.in: Add checks on as and ld for binutils 2.13 or later.
14247 * configure: Regenerated.
14249 2002-11-06 Ulrich Drepper <drepper@redhat.com>
14251 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
14252 If re_compile_internal failed free fastmap buffer.
14253 (free_dfa_content): Broken out of regfree function. Frees all dfa
14255 (regfree): Add free_dfa_content.
14256 (re_compile_internal): If any of the called functions fails free
14257 all dfa related memory.
14259 2002-11-05 Ulrich Drepper <drepper@redhat.com>
14261 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
14262 warnings from the kernel headers.
14264 2002-11-05 Roland McGrath <roland@redhat.com>
14266 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
14267 From Johannes Stezenbach <js@convergence.de>.
14269 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
14270 #errlist-compat magic comment to give 123 as size.
14271 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
14272 (libc: GLIBC_2.2): ... here.
14273 (libc: GLIBC_2.3): Likewise.
14275 2002-11-05 Ulrich Drepper <drepper@redhat.com>
14277 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
14278 which happens at the beginning so that we can unload modules in
14281 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14283 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
14284 under [__USE_MISC || _ASM].
14286 * elf/elf.h: Remove the obsolete SH TLS relocations.
14288 2002-11-05 Ulrich Drepper <drepper@redhat.com>
14290 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
14292 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
14295 __NR_pread64 and __NR_pwrite64.
14296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14297 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
14299 Revert change to use INLINE_SYSCALL.
14300 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14301 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
14302 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14303 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
14305 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
14307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14308 Update clobber list and add a comment about the syscall ABI.
14310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
14311 s_pwrite64, s_ftruncate, s_truncate): Re-add.
14313 2002-11-05 Jakub Jelinek <jakub@redhat.com>
14315 * iconv/gconv_dl.c (free_mem): Clear loaded.
14316 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
14319 2002-11-05 Ulrich Drepper <drepper@redhat.com>
14321 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
14323 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
14324 as old code without locking. _IO_seekoff calls this function after
14325 locking the stream.
14326 * libio/ioseekpos.c: Likewise for _IO_seekpos.
14327 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
14328 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
14330 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
14331 of _IO_seekoff_internal.
14332 (_IO_rewind): Likewise.
14333 * libio/ioftell.c: Likewise.
14334 * libio/ftello.c: Likewise.
14335 * libio/ftello64.c: Likewise.
14336 * libio/iofgetpos.c: Likewise.
14337 * libio/iofgetpos64.c: Likewise.
14338 * libio/oldiofgetpos.c: Likewise.
14339 * libio/oldiofgetpos64.c: Likewise.
14340 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
14341 _IO_seekpos_internal.
14342 * libio/iofsetpos64.c: Likewise.
14343 * libio/oldiofsetpos.c: Likewise.
14344 * libio/oldiofsetpos64.c: Likewise.
14346 2002-11-04 Roland McGrath <roland@redhat.com>
14348 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
14349 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
14350 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
14351 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
14352 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14353 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
14354 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14355 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
14356 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
14357 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
14358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
14359 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
14360 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
14361 Remove these, no longer used.
14363 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
14366 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
14367 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
14368 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
14369 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
14370 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
14373 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
14374 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
14375 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
14377 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14378 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
14380 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14382 2002-11-03 Roland McGrath <roland@redhat.com>
14384 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
14385 `_dl_tls_static_used'.
14386 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
14387 (__libc_setup_tls): Initialize it. Let the initial value of
14388 _dl_tls_static_size indicate some surplus space in the computed value.
14389 * elf/dl-open.c (_dl_tls_static_size): New variable.
14390 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
14391 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
14392 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
14393 (CHECK_STATIC_TLS): Use it.
14394 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
14395 closed objects occupied a trailing contiguous chunk of static TLS area.
14397 2002-10-18 Bruno Haible <bruno@clisp.org>
14399 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
14401 2002-11-04 Ulrich Drepper <drepper@redhat.com>
14403 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
14404 _wide_data->_IO_read_end if adjustment can be made in the current
14407 * sysdeps/unix/sysv/linux/fexecve.c: New file.
14409 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
14410 wide oriented streams are used.
14412 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
14413 service hasn't been used [PR libc/4744].
14415 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
14416 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
14418 * manual/examples/dir.c: Don't include <stddef.h>.
14419 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
14420 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
14422 2002-11-02 H.J. Lu <hjl@gnu.org>
14424 * stdio-common/reg-printf.c: Include <stddef.h>.
14426 2002-11-03 Ulrich Drepper <drepper@redhat.com>
14428 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
14430 * po/ca.po: Update from translation team.
14431 * po/es.po: Likewise.
14433 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
14434 is defined write out memory map.
14435 * sysdeps/unix/sysv/linux/segfault.c: New file.
14437 2002-11-02 Roland McGrath <roland@redhat.com>
14439 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
14440 pointers that can alias.
14441 Reported by Daniel Jacobowitz <drow@mvista.com>.
14443 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
14445 2002-11-02 Roland McGrath <roland@redhat.com>
14447 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
14448 description to be clearer and to say that *RESULT is set to ENTRY.
14450 2002-10-30 Jakub Jelinek <jakub@redhat.com>
14452 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
14453 dests_ch arrays together. Alloca or malloc dest_states,
14454 dest_states_word and dest_states_nl arrays together. Free memory on
14457 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
14459 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
14460 and current_saltbits.
14462 2002-11-02 Roland McGrath <roland@redhat.com>
14464 * stdio-common/reg-printf.c: Include <stdlib.h>.
14466 2002-11-02 H.J. Lu <hjl@gnu.org>
14468 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
14469 caller to EXTRA instead of execve.
14471 2002-11-01 Roland McGrath <roland@redhat.com>
14473 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
14474 in place of [!(USE_TLS && HAVE___THREAD)].
14475 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
14477 2002-10-31 Roger Sayle <roger@eyesopen.com>
14479 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
14481 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
14483 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
14484 without defining FP_ROUNDMODE.
14486 2002-10-29 Jakub Jelinek <jakub@redhat.com>
14488 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
14489 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
14491 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
14492 (OLD_SIGLIST_SIZE): Define.
14493 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
14494 (OLD_SIGLIST_SIZE): Define.
14495 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
14497 2002-11-01 Jakub Jelinek <jakub@redhat.com>
14499 * sysdeps/ia64/strncpy.S: Fix recovery code.
14501 2002-10-30 Jakub Jelinek <jakub@redhat.com>
14503 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
14505 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
14507 * elf/dl-libc.c (free_mem): Likewise.
14508 * iconv/gconv_conf.c (free_mem): Likewise.
14509 * iconv/gconv_db.c (free_mem): Likewise.
14510 * iconv/gconv_dl.c (free_mem): Likewise.
14511 * iconv/gconv_cache.c (free_mem): Likewise.
14512 * intl/finddomain.c (free_mem): Likewise.
14513 * intl/dcigettext.c (free_mem): Likewise.
14514 * locale/setlocale.c (free_mem): Likewise.
14515 * misc/fstab.c (fstab_free): Likewise.
14516 * nss/nsswitch.c (free_mem): Likewise.
14517 * posix/regcomp.c (free_mem): Likewise.
14518 * resolv/gai_misc.c (free_res): Likewise.
14519 * stdlib/fmtmsg.c (free_mem): Likewise.
14520 * sunrpc/clnt_perr.c (free_mem): Likewise.
14521 * sysdeps/generic/setenv.c (free_mem): Likewise.
14522 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
14523 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
14524 * time/tzset.c (free_mem): Likewise.
14525 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
14526 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
14527 * malloc/set-freeres.c (__libc_freeres): Likewise.
14529 * login/getutent.c: Include stdlib.h instead of stddef.h.
14530 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
14531 (__getutent): Allocate buffer the first time it is run.
14532 * login/getutid.c: Include stdlib.h instead of stddef.h.
14533 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
14534 (__getutid): Allocate buffer the first time it is run.
14535 * login/getutline.c: Include stdlib.h instead of stddef.h.
14536 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
14537 (__getutline): Allocate buffer the first time it is run.
14538 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
14539 (mtrace): Allocate malloc_trace_buffer.
14540 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
14541 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
14542 * string/strerror.c: Include libintl.h and errno.h.
14543 (buf): New variable.
14544 (strerror): Only allocate buffer if actually needed (unknown error).
14545 * time/tzfile.c (transitions): Add libc_freeres_ptr.
14548 2002-10-25 Jakub Jelinek <jakub@redhat.com>
14550 * include/libc-symbols.h (libc_freeres_ptr): New macro.
14551 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
14553 (__libc_freeres): Free all pointers in that section.
14554 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
14555 commands when creating .lds script.
14556 (LDSEDCMD-c.so): New variable.
14557 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
14558 (rcmd_af): Use strdup to allocate ahostbuf.
14559 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
14560 (rexec_af): Use strdup to allocate ahostbuf.
14561 * stdio-common/reg-printf.c (printf_funcs): Remove.
14562 (__printf_arginfo_table): Change into printf_arginfo_function **.
14563 Add libc_freeres_ptr.
14564 (__register_printf_function): Allocate __printf_arginfo_table
14565 and __printf_function_table the first time it is called.
14566 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
14567 printf_arginfo_function **.
14568 (parse_one_spec): Add __builtin_expect.
14569 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
14570 (free_mem): Remove.
14571 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
14572 (free_mem): Remove.
14573 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
14574 (string_space, map): Add libc_freeres_ptr.
14575 (free_mem): Remove.
14576 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
14577 (free_mem): Remove.
14578 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
14579 (free_mem): Remove.
14580 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
14581 (buffer): Add libc_freeres_ptr.
14582 (free_mem): Remove for _LIBC.
14583 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
14584 (free_mem): Remove.
14585 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
14586 (free_mem): Remove.
14587 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
14588 (free_mem): Remove.
14589 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
14590 (free_mem): Remove.
14591 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
14592 (free_mem): Remove.
14593 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
14594 (free_mem): Remove.
14595 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
14597 (free_mem): Remove.
14598 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
14600 (free_mem): Remove.
14602 2002-10-30 Jakub Jelinek <jakub@redhat.com>
14604 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
14605 instead of duplicating the whole function in libc.
14607 2002-10-31 Roland McGrath <roland@redhat.com>
14609 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
14610 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
14612 2002-10-30 Jakub Jelinek <jakub@redhat.com>
14614 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
14615 32bit-predefine when creating .new32 list and -U for each
14616 32bit-predefine when creating .new64 list.
14617 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
14619 2002-10-29 Andreas Schwab <schwab@suse.de>
14621 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
14622 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
14624 2002-10-25 Roland McGrath <roland@redhat.com>
14626 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
14627 * sysdeps/unix/sysv/linux/configure: Regenerated.
14629 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
14630 _dl_starting_up decl.
14632 2002-10-20 H.J. Lu <hjl@gnu.org>
14634 * sysdeps/unix/sysv/linux/configure.in: Don't check
14635 /lib/modules/`uname -r`/build/include for kernel headers if
14637 * sysdeps/unix/sysv/linux/configure: Regenerated.
14639 2002-10-25 Roland McGrath <roland@redhat.com>
14641 * math/math.h (M_LOG2El): Correct the value.
14642 From Stephen L Moshier <steve@moshier.net>.
14644 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
14645 conditional from __libc_multiple_libcs access. Remove kludge for weak
14646 symbol access with old compilers we no longer support.
14647 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
14648 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
14650 2002-10-25 Roland McGrath <roland@redhat.com>
14652 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
14653 implement SV_RESETHAND by translating it to SA_RESETHAND.
14655 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
14657 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
14658 type on ELF64 platforms.
14660 2002-10-24 Ulrich Drepper <drepper@redhat.com>
14662 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
14664 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
14666 2002-10-24 Jakub Jelinek <jakub@redhat.com>
14668 * elf/dl-misc.c: Include <sysdep.h>.
14669 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
14671 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
14672 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
14673 (INLINE_SYSCALL): Use that.
14674 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
14675 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
14676 (INLINE_SYSCALL): Use that.
14677 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
14678 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
14679 (INLINE_SYSCALL): Use that.
14680 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
14682 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
14683 (__INTERNAL_SYSCALL_STRING): Define.
14684 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
14686 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
14687 (__INTERNAL_SYSCALL_STRING): Define.
14688 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
14689 __SYSCALL_STRING to inline_syscall*.
14690 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
14692 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
14693 inline_syscall4, inline_syscall5, inline_syscall6): Add string
14696 2002-10-24 Roland McGrath <roland@redhat.com>
14698 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
14699 * sysdeps/unix/sysv/linux/init-first.c: Not here.
14700 * sysdeps/powerpc/elf/libc-start.c: Or here.
14701 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
14702 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
14703 * sysdeps/unix/sysv/aix/init-first.c: Or here.
14704 * sysdeps/generic/libc-start.c: Or here.
14705 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
14706 access with [! SHARED].
14707 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
14709 * libio/bug-wfflush.c: New file.
14710 * libio/Makefile (tests): Add bug-wfflush.
14712 2002-10-23 Roland McGrath <roland@redhat.com>
14714 * stdio-common/tst-fphex.c: New file.
14715 * stdio-common/Makefile (tests): Add tst-fphex.
14716 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
14717 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
14718 chars always before the value digits.
14719 Reported by James Antill <james.antill@redhat.com>.
14721 2002-10-24 Jakub Jelinek <jakub@redhat.com>
14723 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
14724 (free_mem): New function.
14725 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
14726 if not cross compiling.
14727 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
14728 (bug-regex14-ENV): Set.
14729 (bug-regex14-mem): New target.
14730 * posix/bug-regex14.c: New file.
14732 2002-10-23 Roland McGrath <roland@redhat.com>
14734 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
14735 target, so we don't touch it when the link fails.
14737 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
14738 Check for the result overflowing off_t and fail with EOVERFLOW.
14739 * libio/ioftell.c (_IO_ftell): Likewise.
14740 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
14742 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
14743 use a temporary timeval on the stack for gettimeofday and copy it.
14744 * login/logout.c (logout): Likewise.
14745 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
14747 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
14748 Use __SWORD_TYPE instead of int for member types.
14749 (struct statfs64): Likewise.
14750 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
14751 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
14752 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
14753 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
14754 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
14756 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
14757 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
14758 (ST_NODIRATIME): Restore fixed value of 2048.
14759 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
14760 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
14762 Rearranged <bits/types.h> definitions to reduce duplication.
14763 * sysdeps/generic/bits/types.h: Rewritten, using macros from
14764 <bits/wordsize.h> and new header <bits/typesizes.h>.
14765 * posix/Makefile (headers): Add bits/typesizes.h here.
14766 * sysdeps/generic/bits/typesizes.h: New file.
14767 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
14768 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
14769 * sysdeps/mach/hurd/bits/typesizes.h: New file.
14770 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
14771 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
14772 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
14773 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
14774 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
14775 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
14776 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
14777 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
14778 <bits/pthreadtypes.h> here, not in <bits/types.h>.
14779 * signal/signal.h: Likewise.
14781 * streams/stropts.h: Include <bits/xtitypes.h>.
14782 * streams/Makefile (headers): Add bits/xtitypes.h here.
14783 * sysdeps/generic/bits/xtitypes.h: New file.
14784 * sysdeps/s390/bits/xtitypes.h: New file.
14785 * sysdeps/ia64/bits/xtitypes.h: New file.
14786 * sysdeps/x86_64/bits/xtitypes.h: New file.
14788 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
14789 * sysdeps/generic/bits/ipctypes.h: New file.
14790 * sysdeps/mips/bits/ipctypes.h: New file.
14791 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
14792 * sysdeps/gnu/bits/msq.h: Likewise.
14793 * sysvipc/sys/ipc.h: Likewise.
14795 2002-10-22 Ulrich Drepper <drepper@redhat.com>
14797 * elf/dl-load.c (struct filebuf): For buf element to have the
14798 alignment of ElfXX_Ehdr since this is what will be stored in it.
14800 2002-10-22 Jakub Jelinek <jakub@redhat.com>
14802 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
14803 into pointer to locrec_offset.
14804 (add_locale_to_archive): Adjust callers. Free normalized_name right
14805 before returning, not immediately after add_locale, pass it to
14806 add_alias if not NULL instead of name. Rename second normalized_name
14807 occurence to nnormalized_codeset_name.
14809 * locale/programs/locarchive.c (enlarge_archive): Make sure
14810 string_size is always a multiple of 4.
14811 Reported by Andreas Schwab <schwab@suse.de>.
14813 2002-10-21 Andreas Schwab <schwab@suse.de>
14815 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
14816 caller to EXTRA instead of execve, since the latter has a
14817 higher-priority implementation in linuxthreads.
14819 2002-10-21 Roland McGrath <roland@redhat.com>
14821 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
14822 slotinfo list's len member to the proper size, not just 1.
14823 Initialize static_map.l_tls_initimage.
14825 * elf/dl-open.c (dl_open_worker): Fix loop searching for
14826 dtv_slotinfo_list element containing new modules' l_tls_modid.
14828 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
14829 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
14830 * elf/Makefile (tests): Add tst-tls9.
14831 (tests-static): Add tst-tls9-static.
14832 (tst-tls9-static-ENV): New variable.
14833 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
14835 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
14836 modids used by partially loaded modules being closed can't be known.
14838 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
14840 * posix/Makefile: Add a test case for the bug reported by Aharon
14841 Robbins <arnold@skeeve.com>.
14842 * posix/bug-regex13.c: New file.
14843 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
14845 2002-10-21 Ulrich Drepper <drepper@redhat.com>
14847 * csu/gmon-start.c: Pretty printing.
14849 2002-10-19 Art Haas <ahaas@neosoft.com>
14851 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
14852 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
14853 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
14854 * configure: Regenerated.
14856 2002-10-19 Roland McGrath <roland@redhat.com>
14858 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
14859 and then set $subdirs directly, because the new Autoconf breaks
14860 compatibility in every way imaginable and insists on whining
14861 about usage that worked since the dawn of time.
14862 * configure: Regenerated.
14864 * configure: Regenerated (using Autoconf 2.54).
14865 * sysdeps/alpha/elf/configure: Likewise.
14866 * sysdeps/generic/configure: Likewise.
14867 * sysdeps/i386/elf/configure: Likewise.
14868 * sysdeps/ia64/elf/configure: Likewise.
14869 * sysdeps/mach/hurd/configure: Likewise.
14870 * sysdeps/mach/configure: Likewise.
14871 * sysdeps/unix/configure: Likewise.
14872 * sysdeps/unix/common/configure: Likewise.
14873 * sysdeps/unix/sysv/aix/configure: Likewise.
14874 * sysdeps/unix/sysv/linux/configure: Likewise.
14875 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
14876 * sysdeps/x86_64/elf/configure: Likewise.
14878 * config.make.in: Nix completely-soft nonsense.
14879 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
14880 of machine directories instead of fpu subdirectory.
14881 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
14882 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
14883 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
14884 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
14885 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
14886 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
14887 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
14888 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
14889 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
14890 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
14891 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
14892 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
14893 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
14894 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
14895 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
14896 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
14897 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
14898 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
14899 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
14900 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
14901 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
14902 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
14903 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
14904 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
14905 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
14906 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
14907 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
14908 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
14909 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
14910 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
14911 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
14912 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
14913 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
14914 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
14915 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
14916 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
14917 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
14918 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
14919 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
14920 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
14922 2002-10-19 Bruno Haible <bruno@clisp.org>
14924 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
14926 2002-10-18 Roland McGrath <roland@redhat.com>
14928 * io/Makefile (routines): Add lchmod.
14929 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
14930 * sysdeps/generic/lchmod.c: New file.
14931 * sysdeps/mach/hurd/lchmod.c: New file.
14932 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
14934 2002-10-18 Art Haas <ahaas@neosoft.com>
14936 * configure.in: Remove remaining AC_FD_CC macros, and replace
14937 AC_FD_MSG with AS_MESSAGE_FD.
14939 2002-10-18 Roland McGrath <roland@redhat.com>
14941 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
14942 typos: VALUE -> FINALADDR.
14944 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
14945 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
14946 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
14947 (inline_syscall6): Move these macros ...
14948 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
14950 * configure.in (libc_link_dests, libc_link_sources): Remove these
14951 variables and the AC_LINK_FILES call.
14953 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
14954 change to put new symbols here instead of in GLIBC_2.2.
14955 * sysdeps/powerpc/Subdirs: Move this file ...
14956 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
14958 2002-10-07 Roland McGrath <roland@redhat.com>
14960 * sysdeps/generic/bits/time.h: Replaced with contents of the
14961 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
14962 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
14963 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
14964 macros is ok even for architectures that don't now implement them.
14965 * sysdeps/mach/hurd/bits/time.h: File removed.
14966 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
14967 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
14968 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
14969 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
14970 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
14972 2002-10-18 Jeff Bailey <jbailey@gnu.org>
14974 * configure.in: Replace obsolete AC_OUTPUT syntax with
14975 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
14977 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
14978 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
14980 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
14981 * sysdeps/alpha/elf/configure.in: Likewise.
14982 * sysdeps/i386/elf/configure.in: Likewise.
14983 * sysdeps/mach/hurd/configure.in: Likewise.
14984 * sysdeps/x86_64/elf/configure.in: Likewise.
14986 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
14988 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
14989 * sysdeps/generic/configure.in: Likewise.
14990 * sysdeps/i386/elf/configure.in: Likewise.
14991 * sysdeps/ia64/elf/configure.in: Likewise.
14992 * sysdeps/mach/configure.in: Likewise.
14993 * sysdeps/mach/hurd/configure.in: Likewise.
14994 * sysdeps/unix/configure.in: Likewise.
14995 * sysdeps/unix/common/configure.in: Likewise.
14996 * sysdeps/unix/sysv/aix/configure.in: Likewise.
14997 * sysdeps/unix/sysv/linux/configure.in: Likewise.
14998 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
14999 * sysdeps/x86_64/elf/configure.in: Likewise.
15001 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
15002 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
15003 that it's obvious when extra autoconf machinery is being dragged in.
15005 2002-10-18 Roland McGrath <roland@redhat.com>
15007 * configure.in: Remove bogus echo included in
15008 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
15009 * configure: Regenerated.
15011 2002-10-18 Jakub Jelinek <jakub@redhat.com>
15013 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
15014 (statfs_filesize_max): New function.
15015 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
15016 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
15017 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
15018 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
15019 statfs_filesize_max.
15020 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
15021 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
15022 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
15024 2002-10-17 Roland McGrath <roland@redhat.com>
15026 * configure.in (MIG): Just AC_SUBST it here.
15027 * configure: Regenerated.
15028 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
15029 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
15030 * sysdeps/mach/configure: Regenerated.
15032 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
15033 and AC_PROVIDE([_AS_CR_PREPARE]).
15035 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
15036 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
15038 * elf/dl-support.c: Move _dl_tls_* variables to ...
15039 * sysdeps/generic/libc-tls.c: ... here.
15041 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
15042 allow IDX to be one past the current last slotinfo entry.
15043 (_dl_close): Pass IMAP->l_init_called for that parameter.
15045 2002-10-07 Andreas Schwab <schwab@suse.de>
15047 * aclocal.m4: Fix for autoconf 2.53.
15048 * configure.in: Likewise. Require autoconf 2.53.
15050 2002-10-08 Richard Henderson <rth@redhat.com>
15052 * soft-fp/op-4.h: Handle carry correctly in
15053 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
15054 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
15055 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
15057 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
15059 * configure.in: Compute completely-soft.
15060 * config.make.in: Make completely-soft available to sub-makes.
15061 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
15062 gcc-double-routines. Add sim-full.c. Add fenv_const and
15063 fe_nomask to libm-support.
15064 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
15065 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
15066 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
15067 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
15068 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
15069 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
15070 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
15071 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
15072 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
15073 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
15074 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
15075 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
15076 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
15077 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
15078 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
15079 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
15080 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
15081 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
15082 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
15083 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
15085 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
15086 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
15087 FP_HANDLE_EXCEPTIONS.
15088 Define FP_ROUNDMODE.
15089 Redefine FP_* macros to correspond to the FE_* bit positions.
15090 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
15091 Define externs for __sim_exceptions, __sim_disabled_exceptions,
15092 __sim_round_mode, __simulate_exceptions.
15093 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
15094 * sysdeps/powerpc/bits/fenv.h: ...to here.
15096 2002-10-06 Jakub Jelinek <jakub@redhat.com>
15098 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
15099 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
15100 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
15101 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
15104 2002-10-15 Jakub Jelinek <jakub@redhat.com>
15106 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
15107 __libc_res_nsend): New prototypes.
15108 * resolv/res_query.c (QUERYSIZE): Define.
15109 (__libc_res_nquery): Renamed from res_nquery. Added answerp
15110 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
15111 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
15112 res_nsend, pass answerp.
15113 (res_nquery): Changed into wrapper around __libc_res_nquery.
15114 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
15115 argument. Call __libc_res_nquerydomain and __libc_res_nquery
15116 instead of the non-__libc_ variants, pass them answerp.
15117 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
15118 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
15119 Added answerp argument. Call __libc_res_nquery instead of
15120 res_nquery, pass answerp.
15121 (res_nquerydomain): Changed into wrapper around
15122 __libc_res_nquerydomain.
15123 * resolv/res_send.c: Include sys/ioctl.h.
15124 (MAXPACKET): Define.
15125 (send_vc): Change arguments. Reallocate answer buffer if it is
15127 (send_dg): Likewise.
15128 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
15129 Reallocate answer buffer if it is too small and hooks are in use.
15130 Adjust calls to send_vc and send_dg.
15131 (res_nsend): Changed into wrapper around __libc_res_nsend.
15132 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
15133 just 1K answer buffer on the stack, use __libc_res_nsearch instead
15135 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
15136 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
15137 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
15138 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
15139 (gethostbyaddr): Similarly with __libc_res_nquery.
15140 * resolv/Versions (libresolv): Export __libc_res_nquery and
15141 __libc_res_nsearch at GLIBC_PRIVATE.
15143 2002-10-17 Roland McGrath <roland@redhat.com>
15145 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
15146 * configure: Regenerated.
15148 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
15149 before performing the reloc, not after.
15150 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15152 2002-10-17 Ulrich Drepper <drepper@redhat.com>
15154 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
15155 * locale/programs/linereader.c (lr_open): Likewise.
15156 * locale/programs/charmap-dir.c (charmap_open): Likewise.
15157 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15159 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
15161 * posix/bug-regex11.c: Add a test case for the bug reported by
15162 Paolo Bonzini <bonzini@gnu.org>.
15163 * posix/regexec.c (sift_states_bkref): Use correct destination of
15164 the back reference.
15166 2002-10-17 Roland McGrath <roland@redhat.com>
15168 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
15169 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
15170 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
15171 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
15172 Call it after performing TPOFF relocs.
15173 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15174 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15175 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
15177 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
15178 when closing a partially-initialized object.
15180 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
15181 instead of _dl_fatal_printf when we see PT_TLS.
15183 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
15184 instead of $(libof-$<).
15186 2002-10-16 Roland McGrath <roland@redhat.com>
15188 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
15189 instead of += to append, to be sure $(lib) gets expanded at defn time.
15190 (libof-$(cpp-src)): New variable, define this instead.
15191 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
15192 (lib): Don't use override.
15193 (CPPFLAGS-$(lib)): New variable, put -D's here.
15194 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
15195 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
15196 LIB found by $(libof-*) for basename, target, or source.
15197 * Makerules (CPPFLAGS-nonlib): New variable.
15198 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
15199 * locale/Makefile (lib): Likewise.
15200 * sunrpc/Makefile (lib): Likewise.
15202 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
15203 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
15204 * sysdeps/unix/sysv/linux/pathconf.h: New file.
15205 (statfs_link_max): New function, guts from fpathconf.c.
15206 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
15207 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
15208 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
15209 to use the linux/pathconf.c code by #include rather than duplication.
15210 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
15212 2002-10-16 Jakub Jelinek <jakub@redhat.com>
15214 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
15215 Use __libc_errno only for libc itself.
15217 2002-10-16 Andreas Jaeger <aj@suse.de>
15219 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
15221 2002-10-16 Ulrich Drepper <drepper@redhat.com>
15223 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
15224 Use __libc_errno only for libc itself.
15226 2002-10-15 Roland McGrath <roland@redhat.com>
15227 Jakub Jelinek <jakub@redhat.com>
15229 * sysdeps/unix/sysv/linux/Makefile
15230 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
15231 sparc/Makefile to produce a bi-arch file as needed.
15232 That's now parameterized by the variable $(64bit-predefine).
15233 Use LC_ALL=C for `comm' commands in that rule.
15234 No longer conditional on [$(no_syscall_list_h)].
15235 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
15236 (64bit-predefine): New variable.
15237 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
15238 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
15239 * sysdeps/unix/sysv/linux/powerpc/Makefile
15240 (64bit-predefine): New variable.
15242 2002-10-15 Roland McGrath <roland@redhat.com>
15244 * sysdeps/unix/sysv/linux/Makefile
15245 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
15247 * login/utmp-private.h: Declare __libc_utmp_lock.
15248 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
15249 and call __libc_utmp_jump_table functions directly, instead of using
15252 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
15253 * sysdeps/unix/sysv/linux/configure: Regenerated.
15255 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
15256 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
15257 Use int32_t for ll_time.
15258 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
15259 Use int32_t instead of long int for ut_session.
15260 Use an anonymous struct with 32-bit fields for ut_tv.
15261 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
15262 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
15263 here as in utmp.h for `struct utmp'.
15264 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
15265 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
15266 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
15267 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
15268 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
15269 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
15271 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
15272 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
15273 All the following files were identical or equivalent to it.
15274 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
15275 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
15276 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
15277 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
15278 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
15279 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
15280 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
15281 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
15282 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
15283 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
15285 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
15286 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
15287 Other than the previously incorrect sign of msg_iovlen, this is a
15288 no-op on 32-bit platforms. On 64-bit platforms it makes this header
15289 match their layouts as well, so the following are now identical to it.
15290 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
15291 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
15292 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
15293 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
15294 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
15296 2002-10-15 Ulrich Drepper <drepper@redhat.com>
15298 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
15299 Define for 2.4+ kernels.
15301 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
15302 are known to have the vfork syscall. Don't confuse the CPUs
15303 branch prediction unit by jumping to the return address.
15305 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
15306 support for reiserfs and xfs.
15308 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
15310 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
15312 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
15314 2002-10-16 Jakub Jelinek <jakub@redhat.com>
15316 * include/libc-symbols.h (attribute_tls_model_ie): Define.
15317 * include/errno.h (errno): Define to __libc_errno in libc.so.
15318 Add attribute_tls_model_ie.
15319 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
15320 Add attribute_tls_model_ie.
15321 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
15322 attribute_tls_model_ie.
15323 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
15325 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
15327 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
15328 attribute_tls_model_ie.
15329 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
15331 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
15332 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
15333 __libc_errno in USE___THREAD case.
15334 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
15336 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
15337 __attribute__((tls_model (""))).
15338 * configure: Rebuilt.
15339 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
15341 2002-10-15 Ulrich Drepper <drepper@redhat.com>
15343 * timezone/asia: Update from tzdata2002d.
15344 * timezone/australasia: Likewise.
15345 * timezone/iso3166.tab: Likewise.
15346 * timezone/southamerica: Likewise.
15347 * timezone/zone-tab: Likewise.
15349 2002-10-15 Roland McGrath <roland@redhat.com>
15351 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
15352 Adjust TCB pointer before calling free, so we get the whole block.
15354 2002-10-14 Roland McGrath <roland@redhat.com>
15356 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
15357 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
15358 extern using attribute_hidden instead of static, avoids warning.
15360 2002-10-09 Jakub Jelinek <jakub@redhat.com>
15362 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
15363 * sysdeps/unix/sysv/linux/configure: Rebuilt.
15365 2002-10-14 Ulrich Drepper <drepper@redhat.com>
15367 * po/sv.po: Update from translation team.
15369 2002-10-12 H.J. Lu <hjl@gnu.org>
15371 * sunrpc/thrsvc.c (PROCQUIT): New.
15372 (struct rpc_arg): New.
15373 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
15374 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
15375 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
15376 (main): Modified for struct rpc_arg *.
15378 2002-10-14 Ulrich Drepper <drepper@redhat.com>
15380 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
15382 2002-10-14 Jakub Jelinek <jakub@redhat.com>
15384 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
15385 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
15386 in ld.so even if __thread is supported.
15388 2002-10-13 Jakub Jelinek <jakub@redhat.com>
15390 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
15391 Add hack to prevent the compiler from clobbering the signal context.
15392 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
15394 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
15397 2002-10-14 Andreas Jaeger <aj@suse.de>
15399 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
15400 Guido Guenther <agx@sigxcpu.org>.
15402 2002-10-14 Ulrich Drepper <drepper@redhat.com>
15404 * po/sk.po: Update from translation team.
15406 2002-09-26 Roland McGrath <roland@redhat.com>
15408 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
15409 dynamic string tag.
15410 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
15411 DL_DST_LIB based on $(slibdir).
15413 2002-10-13 Roland McGrath <roland@frob.com>
15415 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
15417 * sysdeps/mach/hurd/getresuid.c: New file.
15418 * sysdeps/mach/hurd/getresgid.c: New file.
15419 * sysdeps/mach/hurd/setresuid.c: New file.
15420 * sysdeps/mach/hurd/setresgid.c: New file.
15422 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
15423 setresgid): Declare them.
15424 * NEWS: Mention it.
15426 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
15427 add libc_hidden_proto.
15428 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
15429 getresuid, getresgid, setresuid, setresgid here.
15430 * Versions.def (libc): Define GLIBC_2.3.2 set.
15431 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
15432 Add libc_hidden_def.
15433 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
15434 * sysdeps/generic/setresgid.c: New file.
15435 * sysdeps/generic/setresuid.c: New file.
15436 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
15437 (sysdep_routines): Don't add getresuid and getresgid here.
15438 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
15439 (sysdep_routines): Don't add setresuid and setresgid here.
15440 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
15441 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
15442 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
15443 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
15444 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
15445 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
15446 * posix/Makefile (routines): Add them all here instead.
15447 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
15448 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
15449 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
15450 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
15451 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
15452 [! __NR_setresuid]: Include generic file.
15453 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
15454 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
15455 [! __NR_setresuid]: Include generic file.
15456 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
15457 Caller is - now, not EXTRA.
15458 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
15459 (setresuid, setresgid, getresuid, getresgid): Likewise.
15460 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
15461 Add these calls here.
15462 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
15463 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
15464 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
15465 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
15466 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
15467 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
15469 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
15470 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
15472 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
15473 (sysdep_routines): Add setfsuid and setfsgid here.
15474 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
15475 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
15476 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
15477 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
15478 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
15479 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
15480 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
15481 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
15483 * hurd/errno.c: Renamed to ...
15484 * hurd/errno-loc.c: ... this.
15485 * hurd/Makefile (routines): errno -> errno-loc
15487 2002-10-13 Ulrich Drepper <drepper@redhat.com>
15489 * po/de.po: Update from translation team.
15491 * MakeTAGS: Add -E flag to xgettext runs.
15493 2002-10-12 Ulrich Drepper <drepper@redhat.com>
15495 * po/fr.po: Update from translation team.
15497 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
15498 Optimize a bit for use in glibc.
15500 2002-10-12 Roland McGrath <roland@redhat.com>
15502 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
15503 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
15505 2002-10-12 Ulrich Drepper <drepper@redhat.com>
15507 * po/sv.po: Update from translation team.
15509 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
15511 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
15513 (regfree): Likewise.
15514 (create_initial_state): Likewise.
15515 (analyze): Remove the substitutions which became useless.
15516 (calc_first): Likewise.
15517 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
15518 epsilon destination.
15519 (duplicate_node_closure): New function.
15520 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
15521 (calc_inveclosure): Likewise.
15522 (calc_eclosure): Likewise.
15523 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
15524 direct invocation of duplicate_node.
15525 (parse): Don't use comma operator in the return to avoid compiler
15527 (parse_reg_exp): Likewise.
15528 (parse_branch): Likewise.
15529 (parse_expression): Likewise.
15530 (parse_sub_exp): Likewise.
15531 (parse_dup_op): Likewise.
15532 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
15533 which became useless.
15534 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
15535 (create_cd_newstate): Likewise.
15536 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
15537 (re_token_t): Likewise.
15538 (re_dfa_t): Likewise.
15539 (re_node_set_remove): New macro.
15540 * posix/regexec.c (check_matching): Remove the handling
15542 (check_halt_node_context): Likewise.
15543 (proceed_next_node): Likewise.
15544 (pop_fail_stack): Fix the memory leak.
15545 (set_regs): Likewise.
15546 (free_fail_stack_return): New function.
15547 (sift_states_backward): Fix the memory leak. Remove the handling
15549 (update_cur_sifted_state): Append some if clause to avoid redundant
15551 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
15553 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
15554 (check_subexp_limits): Likewise.
15555 (search_subexp): Likewise.
15556 (sift_states_bkref): Likewise.
15557 (transit_state_mb): Likewise.
15558 (transit_state_bkref_loop): Likewise.
15559 (transit_state_bkref_loop): Likewise.
15560 (group_nodes_into_DFAstates): Likewise.
15561 (check_node_accept): Likewise.
15562 (sift_ctx_init): Add initializing.
15564 2002-10-12 Ulrich Drepper <drepper@redhat.com>
15566 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
15569 2002-10-11 Ulrich Drepper <drepper@redhat.com>
15571 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
15572 duplicated variable c.
15574 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
15577 * sysdeps/unix/sysv/linux/i386/sysdep.h
15578 (INTERNAL_SYSCALL_ERROR_P): New define.
15579 (INTERNAL_SYSCALL_ERRNO): Likewise.
15581 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
15582 Add hack to prevent the compiler from clobbering the signal context.
15584 2002-10-11 Roland McGrath <roland@redhat.com>
15586 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
15589 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
15590 * sysdeps/sh/dl-lookupcfg.h: File removed.
15591 * sysdeps/i386/dl-lookupcfg.h: File removed.
15593 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
15594 missing labels and ; from last change.
15596 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
15597 number literals, so they are doubles instead of ints.
15599 2002-10-09 Roland McGrath <roland@redhat.com>
15601 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
15602 changed from [USE_TLS && HAVE___THREAD].
15604 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
15605 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
15606 * sysdeps/x86_64/dl-machine.h
15607 (elf_machine_type_class, elf_machine_rela): Likewise.
15608 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
15611 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
15612 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
15613 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
15615 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
15616 instead of ___tls_get_addr.
15617 (___tls_get_addr_internal): Add attribute_hidden to decl.
15619 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
15620 _dl_error_catch_tsd.
15621 * elf/rtld.c (startup_error_tsd): New function.
15622 (dl_main): Point _dl_error_catch_tsd at that.
15623 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
15624 use new function pointer instead.
15625 * elf/dl-tsd.c: New file.
15626 * elf/Makefile (routines): Add it.
15628 2002-10-07 Roland McGrath <roland@redhat.com>
15630 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
15631 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
15632 take _dl_load_lock around calling __writev.
15634 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
15635 (INLINE_SYSCALL): Use that.
15637 * sysdeps/generic/dl-sysdep.h: New file.
15638 * sysdeps/mach/hurd/dl-sysdep.h: New file.
15639 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
15640 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
15641 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
15642 access it directly.
15643 * elf/dl-minimal.c (__errno_location): Removed.
15644 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
15645 Use GOTOFF access for errno.
15646 * sysdeps/unix/sysv/linux/i386/sysdep.h
15647 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
15649 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
15650 Use PC-relative access for errno.
15651 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
15652 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
15654 * include/tls.h: New file.
15655 (USE___THREAD): New macro.
15656 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
15657 libc or libpthread.
15658 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
15659 changed from [USE_TLS && HAVE___THREAD].
15660 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15661 * sysdeps/unix/i386/sysdep.S: Likewise.
15662 * sysdeps/unix/x86_64/sysdep.S: Likewise.
15663 * include/errno.h: Likewise.
15664 * include/netdb.h: Likewise.
15665 * include/resolv.h: Likewise.
15667 * sysdeps/generic/errno.c: New file.
15668 * csu/Makefile (aux): New variable, list errno.
15669 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
15670 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
15671 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
15672 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15673 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15674 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
15675 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
15676 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
15677 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15678 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
15679 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
15680 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
15681 * sysdeps/unix/alpha/sysdep.S: Likewise.
15682 * sysdeps/generic/start.c: Likewise.
15683 * sysdeps/unix/start.c: Likewise.
15684 * sysdeps/unix/arm/start.c: Likewise.
15685 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
15686 * sysdeps/unix/sparc/start.c: Likewise.
15687 * sysdeps/unix/sysv/irix4/start.c: Likewise.
15688 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
15690 * manual/search.texi (Tree Search Function, Hash Search Function):
15691 Mention search.h clearly.
15693 2002-10-05 Roland McGrath <roland@redhat.com>
15695 * elf/dl-fxstat64.c: File removed.
15696 * elf/dl-xstat64.c: File removed.
15697 * elf/Makefile (rtld-routines): Remove them.
15698 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
15699 Instead, use strong_alias instead of versioned_symbol in the
15700 !SHLIB_COMPAT case.
15701 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
15702 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
15704 * include/shlib-compat.h
15705 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
15706 [! NOT_IN_libc] (IS_IN_libc): Define it.
15707 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
15708 * elf/Makefile (CPPFLAGS-.os): Likewise.
15710 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
15711 Return the status instead of calling exit.
15713 * Makeconfig (CFLAGS): Prepend -std=gnu99.
15714 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
15715 Remove superfluous rm command, whose @ plus make bugs hid
15716 all these commands from the make output.
15718 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
15719 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
15720 Use that file's contents instead of literal echo's for the prologue.
15721 * include/features.h: Include <gnu/stubs.h> unconditionally.
15722 * include/gnu/stubs.h: New file.
15724 2002-09-30 Roland McGrath <roland@redhat.com>
15726 * elf/rtld-Rules: New file.
15727 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
15728 $(objpfx)rtld-libc.a): New targets.
15729 (generated): Add them.
15730 (reloc-link): Remove -o $@ from the variable.
15731 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
15732 (distribute): Add rtld-Rules.
15733 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
15734 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
15735 (common-mostlyclean, common-clean): Clean up rtld-* files.
15736 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
15738 2003-05-20 Jakub Jelinek <jakub@redhat.com>
15740 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
15741 If temp != NULL, copy dynamic entries which need relocation to temp
15742 array before relocating.
15743 (DL_RO_DYN_TEMP_CNT): Define.
15744 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
15745 * elf/rtld.c (_dl_start): Likewise.
15746 (dl_main): Likewise. Add dyn_temp static variable.
15748 2002-10-11 Roland McGrath <roland@redhat.com>
15750 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
15751 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
15753 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
15754 proper set of no-op insn prefixes.
15756 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
15758 2002-10-11 Ulrich Drepper <drepper@redhat.com>
15760 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
15761 __pthread_kill_other_threads_np.
15763 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
15765 2002-10-08 Roland McGrath <roland@redhat.com>
15767 * locale/newlocale.c (__newlocale): If setting all categories to "C",
15768 just return &_nl_C_locobj instead of copying it.
15769 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
15770 * locale/duplocale.c (__duplocale): Likewise.
15772 2002-10-07 Roland McGrath <roland@frob.com>
15774 * config.h.in (HAVE_I386_SET_GDT): New #undef.
15775 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
15776 * sysdeps/mach/configure: Regenerated.
15778 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
15781 Add all necessary register outputs for syscall-clobbered registers.
15783 2002-10-02 David Mosberger <davidm@hpl.hp.com>
15785 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
15786 Itanium 2 (and Itanium).
15787 Fix unwind directives and make it fit in 80 columns.
15788 * sysdeps/ia64/memset.S: Likewise.
15789 * sysdeps/ia64/memcpy.S: Likewise.
15790 Move jump table to .rodata section.
15792 2002-10-03 Roland McGrath <roland@frob.com>
15794 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
15797 2002-10-10 Andreas Jaeger <aj@suse.de>
15799 * sysdeps/x86_64/_mcount.S: Restore correct registers.
15801 2002-10-10 Ulrich Drepper <drepper@redhat.com>
15803 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
15805 2002-10-09 Ulrich Drepper <drepper@redhat.com>
15807 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
15808 _dl_allocate_tls_init. Add rtld_hidden_proto.
15809 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
15811 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
15813 * version.h (VERSION): Bump to 2.3.1.
15815 * Make-dist: Add back one of the tar invocations removed before.
15817 * stdlib/Makefile (distribute): Add allocalim.h.
15819 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
15820 (__libc_tsd_address): Use correct variable name.
15821 Patch by Stefan Jones <stefan.jones@multigig.com>.
15823 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
15824 Reported by edwardsg@sgi.com [PR libc/4678].
15826 * Versions.def (libc): Add GLIBC_2.3.1.
15827 (libpthread): Add GLIBC_2.3.1.
15829 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
15830 and __sigtimedwait.
15831 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
15832 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
15834 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
15835 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
15837 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
15838 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
15839 and make old name an alias.
15840 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
15841 and make old name an alias.
15842 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
15845 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
15846 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
15848 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
15850 * sysdeps/posix/readv.c: Likewise
15851 * sysdeps/unix/sysv/aix/readv.c: Likewise.
15852 * sysdeps/unix/sysv/linux/readv.c: Likewise.
15853 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
15855 * sysdeps/posix/writev.c: Likewise
15856 * sysdeps/unix/sysv/aix/writev.c: Likewise.
15857 * sysdeps/unix/sysv/linux/writev.c: Likewise.
15859 * include/sys/wait.h: Declare __waitid.
15860 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
15861 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
15863 * sysdeps/posix/waitid.c: Likewise.
15864 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
15866 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
15868 2002-10-07 Jakub Jelinek <jakub@redhat.com>
15870 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
15872 (__MAX_ALLOCA_CUTOFF): Define.
15873 Include allocalim.h.
15874 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
15875 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
15876 host_buffer depending on __libc_use_alloca.
15877 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
15878 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
15879 net_buffer depending on __libc_use_alloca.
15880 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
15881 buf depending on __libc_use_alloca.
15882 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
15883 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
15884 instead of hardcoded constants.
15885 Pass proper size argument to alloca and compute end for wide char
15887 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
15888 instead of hardcoded constants.
15889 * string/strcoll.c (strcoll): Likewise.
15890 * string/strxfrm.c (strxfrm): Likewise.
15891 * sysdeps/posix/readv.c (__readv): Likewise.
15892 * sysdeps/posix/writev.c (__writev): Likewise.
15893 * sysdeps/generic/allocalim.h: New file.
15895 2002-10-08 Roland McGrath <roland@redhat.com>
15897 * configure.in (aux_missing warning): Change "too old" to
15898 "incompatible versions", since for autoconf it's "too new" right now.
15899 * configure: Regenerated.
15901 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
15902 one found doesn't work on our configure.in.
15903 * configure: Regenerated.
15904 * config.make.in (AUTOCONF): New substituted variable.
15905 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
15906 (autoconf-it): ... here, use that instead of defining conditionally.
15907 Use $(AUTOCONF) instead of literal autoconf.
15908 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
15909 with this condition.
15910 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
15912 2002-10-08 Ulrich Drepper <drepper@redhat.com>
15914 * Make-dist (dist): Cleanup a bit. We are not interested in the
15915 14 char filename limit anymore. Remove intermediate files and
15918 2002-10-05 Ulrich Drepper <drepper@redhat.com>
15920 * po/sk.po: Update from translation team.
15921 * po/tr.po: Likewise.
15922 * po/gl.po: Likewise.
15924 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
15926 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
15928 2002-10-03 Ulrich Drepper <drepper@redhat.com>
15930 * version.h (RELEASE): Change to stable.
15932 2002-10-03 Jakub Jelinek <jakub@redhat.com>
15934 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
15935 __syscall_exit_group): New prototypes.
15937 2002-10-03 Ulrich Drepper <drepper@redhat.com>
15939 * glibc 2.3 released.
15942 See ChangeLog.13 for earlier changes.