(INTERNAL_SYSCALL): Add LOAD_REGS_##nr. (LOAD_ARGS_0, LOAD_ARGS_1, LOAD_ARGS_2, LOAD_...
[glibc.git] / ChangeLog
blob6ac254ea837b4fe317544bd3ba740de91011e494
1 2004-04-08  Ulrich Drepper  <drepper@redhat.com>
3         * po/nl.po: Update from translation team.
5 2004-04-04  Ulrich Drepper  <drepper@redhat.com>
7         * math/test-tgmath.c: Declare compile_testl inly if we will define it.
9 2004-04-03  Ulrich Drepper  <drepper@redhat.com>
11         * sysdeps/powerpc/powerpc64/ffsll.c: New file.
13         * string/test-ffs.c: Also test ffsl and ffsll.
15         * sysdeps/powerpc/ffs.c: Don't define ffsl for ppc64.
17         * sysdeps/powerpc/powerpc64/bits/atomic.h: Never use matching
18         constraints for asm mem parameters.
19         * sysdeps/powerpc/bits/atomic.h: Likewise.
21         * sysdeps/powerpc/elf/libc-start.c: No need for a separate
22         function for __aux_init_cache.
24         * inet/test-ifaddrs.c: Fight warnings.
26         * argp/argp-help.c: Fight warnings.
28         * include/time.h: Declare __difftime.
30         * sysdeps/unix/sysv/linux/internal_statvfs.c: Restructure to avoid
31         duplication in 64-bit version.
32         * sysdeps/unix/sysv/linux/wordsize-64/internal_statvfs64.c: New file.
34 2004-04-03  Andreas Jaeger  <aj@suse.de>
36         * nis/nss-nis.c: Include <string.h> for strncmp.
38 2004-03-30  H.J. Lu  <hongjiu.lu@intel.com>
40         * Makeconfig (link-libc-static): Use $(static-gnulib) instead
41         of $(gnulib).
42         (libgcc_eh): New variable.
43         (gnulib): Use it variable.
44         (static-gnulib): New variable.
45         * Makerules (LDLIBS-c.so): Use $(static-gnulib) instead of $(gnulib).
46         * config.make.in (have-as-needed): New variable.
47         * configure.in: Check if linker supports --as-needed.
49 2004-04-02  Ulrich Drepper  <drepper@redhat.com>
51         * sysdeps/unix/sysv/linux/internal_statvfs64.c: New file.
52         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
53         Add internal_statvfs64.
54         * sysdeps/unix/sysv/linux/internal_statvfs.c: Allow to be used to
55         compile 64bit version.
56         * sysdeps/unix/sysv/linux/statvfs64.c: Use __fstatfs64 and skip
57         compatibility code if __ASSUME_STATFS64 is defined.
58         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
60         * sysdeps/unix/sysv/linux/statfs64.c: Don't add __no_statfs64 if
61         __ASSUME_STATFS64 != 0.
63 2004-04-02  Thorsten Kukuk  <kukuk@firun.suse.de>
65         * nis/nss_nis/nis-ethers.c (saveit): Fix return codes in error case.
66         * nis/nss_nis/nis-initgroups.c (saveit): Likewise.
67         * nis/nss_nis/nis-proto.c (saveit): Likewise.
68         * nis/nss_nis/nis-rpc.c (saveit): Likewise.
69         * nis/nss_nis/nis-service.c (saveit): Likewise.
71 2004-04-02  Jakub Jelinek  <jakub@redhat.com>
73         * nis/nss: Add SERVICES_AUTHORITATIVE.
74         * nis/nss-nis.h (NSS_FLAG_SET, NSS_FLAG_NETID_AUTHORITATIVE,
75         NSS_FLAG_SERVICES_AUTHORITATIVE): Define.
76         (_nis_default_nss_flags, _nis_check_default_nss): New decls.
77         (_nis_default_nss): New inline.
78         * nis/nss-nis.c: Include ctype.h, stdio.h and stdio_ext.h.
79         (_nis_default_nss_flags, default_nss): New variables.
80         (_nis_check_default_nss): New function.
81         * nis/nss_nis/nis-initgroups.c: Don't include stdio.h and
82         stdio_ext.h.
83         (check_default_nss, default_nss): Move to nss-nis.c.
84         (init): Removed.
85         (_nss_nis_initgroups_dyn): Use _nis_default_nss ().
86         * nis/nss_nis/nis-services.c (_nss_nis_getservbyname_r): If
87         NSS_FLAG_SERVICES_AUTHORITATIVE and services.byservicename lookup
88         fails, return immediately.
90 2004-04-01  Roland McGrath  <roland@redhat.com>
92         * elf/tst-execstack.c (do_test): Make F static.
94 2004-04-01  Ulrich Drepper  <drepper@redhat.com>
96         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Use
97         __sigprocmask not sigprocmask.
98         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
99         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
101         * include/string.h: Add libc_hidden_builtin_proto for memcmp.
102         * sysdeps/generic/memcmp.c: Add libc_hidden_builtin_def.
103         * sysdeps/i386/memcmp.S: Likewise.
104         * sysdeps/i386/i686/memcmp.S: Likewise.
105         * sysdeps/ia64/memcmp.S: Likewise.
106         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
108         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <string.h>.
109         * time/mktime.c: Likewise.
110         * misc/getpass.c: Likewise.
112         * time/difftime.c (__difftime): New renamed.  Make old name alias.
113         Use __difftime in recursive call.
115         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Use
116         __tcgetattr() instead of tcgetattr().
118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S [SHARED]:
119         Use __GI_exit.
121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S [SHARED]: Use
122         __GI__exit.
124         * sysdeps/powerpc/fpu/bits/mathinline.h: Add __signbitf and
125         __signbit inlines.
127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Use
128         __sigprocmask not sigprocmask.
129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
132         * elf/elf.h: Define more ppc64 specific dynamic tags.
134 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
136         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): If protocol
137         is NULL, instead of trying yp_match (name/tcp), yp_match (name/udp),
138         yp_all, try yp_match (name), yp_all.
140 2004-04-01  Ulrich Drepper  <drepper@redhat.com>
142         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add handling for
143         ignored entries.  Ignore AT_IGNOREPPC.
145 2004-03-31  Andreas Jaeger  <aj@suse.de>
147         * libio/fileops.c (new_do_write): Return _IO_size_t to make 64-bit
148         clean.
150 2004-03-31  Ulrich Drepper  <drepper@redhat.com>
152         * locale/programs/localedef.c (construct_output_path): Remove
153         remnants of CEN locale names.
155 2004-03-30  Thorsten Kukuk  <kukuk@suse.de>
157         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Add IUTF8.
158         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
159         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
160         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
161         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
163 2004-03-30  Richard Henderson  <rth@redhat.com>
165         * sysdeps/alpha/remqu.S: Detect power-of-two special case.
167 2004-03-30  Ulrich Drepper  <drepper@redhat.com>
169         * sysdeps/generic/libc-start.c (LIBC_START_MAIN)
170         [HAVE_CLEANUP_JMP_BUF]: Call __nptl_deallocate_tsd.
172 2004-03-30  Jakub Jelinek  <jakub@redhat.com>
174         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): If protocol
175         == NULL, try name/tcp and name/udp first before falling back into
176         the sequential scanning.  Use services.byname database for
177         sequential scanning.
178         (_nss_nis_getservbyport_r): Likewise.  Just allocate sizeof (int) * 3
179         chars for integer.
181         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Convert
182         proto to host by order for snprintf.
184 2004-03-30  Ulrich Drepper  <drepper@redhat.com>
186         * nss/getent.c (services_keys): Don't implement lookups with
187         missing protocol using getservent loop, just pass NULL.
189         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Avoid
190         comparison with limit if we can rely on the syscall being available.
192         * nis/nss_nis/nis-initgroups.c: Implement getting the information
193         from the netid.byname map if the system administrator allows this.
194         * nis/Makefile (distribute): Add nss.
195         * nis/nss: New file.
197         * grp/initgroups.c (initgroups): Limit the initial allocation to 64
198         entries to not allocate too much on systems with really high limits.
200 2004-03-30  Jakub Jelinek  <jakub@redhat.com>
202         * nis/nss_nis/nis-service.c (struct search_t): New type.
203         (dosearch): New function.
204         (_nss_nis_getservbyname_r): Use it.  Call yp_get_default_domain
205         unconditionally.
206         (_nss_nis_getservbyport_r): Likewise.
208 2004-03-29  Alexandre Oliva  <aoliva@redhat.com>
210         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Prepend GLIBC_ to
211         version names is SHLIB_COMPAT check.
212         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
214 2004-03-29  Ulrich Drepper  <drepper@redhat.com>
216         * nis/nss_nis/nis-rpc.c (saveit): Improve memory handling.  No need to
217         allocate multiple blocks.
218         (internal_nis_endrpcent): Adjust accordingly.
219         * nis/nss_nis/nis-proto.c (saveit): Improve memory handling.  No need
220         to allocate multiple blocks.
221         (internal_nis_endprotoent): Adjust accordingly.
222         * nis/nss_nis/nis-initgroups.c (saveit): Improve memory handling.  No
223         need to allocate multiple blocks.
224         (_nss_nis_initgroups_dyn): Adjust accordingly.
225         * nis/nss_nis/nis-ethers.c (saveit): Improve memory handling.  No need
226         to allocate multiple blocks.
227         (internal_nis_endetherent): Adjust accordingly.
228         * nis/nss_nis/nis-service.c (saveit): Improve memory handling.  No need
229         to allocate multiple blocks.
230         (internal_nis_endservent): Adjust accordingly.
232         * nss/getXXbyYY_r.c: Return 0 for NSS_STATUS_NOTFOUND.
234 2004-03-26  Thorsten Kukuk  <kukuk@suse.de>
236         * nis/nss_nis/nis-grp.c (_nss_nis_getgrnam_r): Don't
237         set errno if group does not exist.
239 2004-03-28  Ulrich Drepper  <drepper@redhat.com>
241         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle
242         _SC_SIGQUEUE_MAX.
244 2004-03-26  Ulrich Drepper  <drepper@redhat.com>
246         * elf/dl-caller.c: New file.
247         * include/caller.h: New file.
248         * Makefile (distribute): Add include/caller.h.
249         * elf/Makefile (dl-routines): Add dl-caller.
250         * elf/dl-load.c (_dl_map_object_from_fd): Record l_text_end.
251         * elf/dl-open.c (check_libc_caller): Removed.
252         (dl_open_worker): Use __check_caller instead.
253         * elf/rtld.c (_rtld_global_ro): Initialize _dl_check_caller.
254         (_dl_start_final): Record l_text_end for ld.so map.
255         (dl_main): Record l_text_end for main object and vdso.
256         * include/link.h (struct link_map): Add l_text_end field.
257         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
258         _dl_check_caller field.
259         Define enum allowmask.  Add declaration of _dl_check_caller.
260         * sysdeps/unix/sysv/linux/dl-execstack.c: Also use __check_caller test.
262 2004-03-26  Richard Henderson  <rth@redhat.com>
264         * sysdeps/alpha/Makefile <gnulib> (sysdep_routines): Merge divrem
265         variable, add unsigned variants.
266         * sysdeps/alpha/divrem.h: Remove file.
267         * sysdeps/alpha/div_libc.h: New file.
268         * sysdeps/alpha/divl.S: Rewrite from scratch.
269         * sysdeps/alpha/reml.S: Likewise.
270         * sysdeps/alpha/divq.S: Likewise.
271         * sysdeps/alpha/remq.S: Likewise.
272         * sysdeps/alpha/divlu.S: New file.
273         * sysdeps/alpha/remlu.S: New file.
274         * sysdeps/alpha/divqu.S: New file.
275         * sysdeps/alpha/remqu.S: New file.
277 2004-03-26  Ulrich Drepper  <drepper@redhat.com>
279         * elf/dl-open.c (check_libc_caller): Fix typo.
281 2004-03-26  Jakub Jelinek  <jakub@redhat.com>
283         * elf/tst-dlmodcount.c: Include stddef.h and stdlib.h.
285 2003-03-25  Richard Henderson  <rth@redhat.com>
287         * sysdeps/alpha/backtrace.c: New file.
289 2004-03-25  Ulrich Drepper  <drepper@redhat.com>
291         * iconvdata/utf-7.c: Remove inline from isdirect, isxdirect, and
292         isxbase64.
294 2004-03-25  Richard Henderson  <rth@redhat.com>
296         * sysdeps/generic/strtol_l.c (__strtol_ul_max_tab,
297         __strtol_ull_max_tab, __strtol_ull_rem_tab, __strtol_ul_rem_tab,
298         cutoff_tab, cutlim_tab, jmax_tab): New.
299         (__strtol_l): Use them to avoid runtime division.
301 2004-03-24  Roland McGrath  <roland@redhat.com>
303         * Makerules ($(common-objpfx)shlib.lds): Don't use \n in rhs of sed
304         substitutions; the semicolon terminators are enough for ld anyway.
306         * elf/dl-deps.c (_dl_map_object_deps): Use alloca instead of
307         dynamically sized auto array in function already using alloca.
308         * locale/programs/ld-ctype.c (ctype_output): Likewise.
309         * locale/programs/ld-time.c (time_output): Likewise.
310         * elf/dl-misc.c (_dl_debug_vdprintf): Use macro instead of const for
311         IOV array size.
312         * locale/programs/charmap.c (charmap_read): Avoid alloca (or strdupa)
313         when also using dynamically-sized auto array.
314         * locale/programs/locfile.c (locfile_read): Likewise.
315         * locale/programs/repertoire.c (repertoire_read): Likewise.
316         * nis/nis_print_group_entry.c (nis_print_group_entry): Likewise.
317         * locale/programs/locarchive.c (enlarge_archive): Likewise.
318         * posix/annexc.c (check_header): Likewise.
320         * iconv/gconv_int.h (norm_add_slashes): Don't handle null SUFFIX.
321         strlen ("") gets optimized away just as well.
322         * intl/loadmsgcat.c (_nl_init_domain_conv): Update caller.
323         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
325         * Makefile ($(objpfx)c++-types-check.out): Reduce duplication in
326         defining this target.  Also elide -Wstrict-prototypes from CFLAGS.
328 2004-03-24  Ulrich Drepper  <drepper@redhat.com>
330         * stdio-common/vfscanf.c [!COMPILE_WSCANF] (TOLOWER): Cast first
331         parameter to unsigned char.
332         * sysdeps/generic/strcasestr.c [_LIBC] (TOLOWER): Likewise.
334 2004-03-24  Jakub Jelinek  <jakub@redhat.com>
336         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Clear the rest of retval,
337         not just one limb if RETURN_LIMB_SIZE > 2.  Fix shifting up if
338         RETURN_LIMB_SIZE > 2.
340         * stdio-common/printf_fp.c (__printf_fp): For IEEE quad long double
341         on 32-bit architectures reserve 8 limbs instead of 4.
343 2004-03-23  Jakub Jelinek  <jakub@redhat.com>
345         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_pread, __NR_pwrite):
346         Define to __NR_p{read,write}64 if not defined.
347         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread,
348         __NR_pwrite): Define to __NR_p{read,write}64 if not defined instead
349         of defining it the other way around.
350         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Move common syscalls
351         for 64bit arches to sysdeps/unix/sysv/linux/wordsize-64/syscalls.list.
352         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
353         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
354         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
355         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
356         * sysdeps/unix/sysv/linux/alpha/pread64.c: Removed.
357         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Removed.
358         * sysdeps/unix/sysv/linux/alpha/glob64.c: Removed.
359         * sysdeps/unix/sysv/linux/alpha/truncate64.c: Removed.
360         * sysdeps/unix/sysv/linux/alpha/xstat64.c: Removed.
361         * sysdeps/unix/sysv/linux/alpha/pwrite64.c: Removed.
362         * sysdeps/unix/sysv/linux/alpha/posix_fadvise.c: Removed.
363         * sysdeps/unix/sysv/linux/alpha/mmap64.c: Removed.
364         * sysdeps/unix/sysv/linux/alpha/fxstat64.c: Removed.
365         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Removed.
366         * sysdeps/unix/sysv/linux/alpha/ftruncate64.c: Removed.
367         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: Removed.
368         * sysdeps/unix/sysv/linux/alpha/lxstat64.c: Removed.
369         * sysdeps/unix/sysv/linux/alpha/posix_fadvise64.c: Removed.
370         * sysdeps/unix/sysv/linux/alpha/statfs64.c: Removed.
371         * sysdeps/unix/sysv/linux/alpha/fstatfs64.c: Removed.
372         * sysdeps/unix/sysv/linux/s390/s390-64/pread64.c: Removed.
373         * sysdeps/unix/sysv/linux/s390/s390-64/getrlimit64.c: Removed.
374         * sysdeps/unix/sysv/linux/s390/s390-64/glob64.c: Removed.
375         * sysdeps/unix/sysv/linux/s390/s390-64/readdir64_r.c: Removed.
376         * sysdeps/unix/sysv/linux/s390/s390-64/truncate64.c: Removed.
377         * sysdeps/unix/sysv/linux/s390/s390-64/xstat64.c: Removed.
378         * sysdeps/unix/sysv/linux/s390/s390-64/pwrite64.c: Removed.
379         * sysdeps/unix/sysv/linux/s390/s390-64/getdents64.c: Removed.
380         * sysdeps/unix/sysv/linux/s390/s390-64/readdir_r.c: Removed.
381         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Removed.
382         * sysdeps/unix/sysv/linux/s390/s390-64/readdir.c: Removed.
383         * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise.c: Removed.
384         * sysdeps/unix/sysv/linux/s390/s390-64/mmap64.c: Removed.
385         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Removed.
386         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat64.c: Removed.
387         * sysdeps/unix/sysv/linux/s390/s390-64/setrlimit64.c: Removed.
388         * sysdeps/unix/sysv/linux/s390/s390-64/ftruncate64.c: Removed.
389         * sysdeps/unix/sysv/linux/s390/s390-64/getdents.c: Removed.
390         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat64.c: Removed.
391         * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise64.c: Removed.
392         * sysdeps/unix/sysv/linux/s390/s390-64/readdir64.c: Removed.
393         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Removed.
394         * sysdeps/unix/sysv/linux/s390/s390-64/statfs64.c: Removed.
395         * sysdeps/unix/sysv/linux/s390/s390-64/fstatfs64.c: Removed.
396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: Removed.
397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: Removed.
398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: Removed.
399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: Removed.
400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: Removed.
401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: Removed.
402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: Removed.
403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: Removed.
404         * sysdeps/unix/sysv/linux/sparc/sparc64/pread64.c: Removed.
405         * sysdeps/unix/sysv/linux/sparc/sparc64/getrlimit64.c: Removed.
406         * sysdeps/unix/sysv/linux/sparc/sparc64/glob64.c: Removed.
407         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir64_r.c: Removed.
408         * sysdeps/unix/sysv/linux/sparc/sparc64/truncate64.c: Removed.
409         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat64.c: Removed.
410         * sysdeps/unix/sysv/linux/sparc/sparc64/pwrite64.c: Removed.
411         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: Removed.
412         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Removed.
413         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Removed.
414         * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise.c: Removed.
415         * sysdeps/unix/sysv/linux/sparc/sparc64/mmap64.c: Removed.
416         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat64.c: Removed.
417         * sysdeps/unix/sysv/linux/sparc/sparc64/setrlimit64.c: Removed.
418         * sysdeps/unix/sysv/linux/sparc/sparc64/ftruncate64.c: Removed.
419         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: Removed.
420         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: Removed.
421         * sysdeps/unix/sysv/linux/sparc/sparc64/lxstat64.c: Removed.
422         * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise64.c: Removed.
423         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir64.c: Removed.
424         * sysdeps/unix/sysv/linux/sparc/sparc64/statfs64.c: Removed.
425         * sysdeps/unix/sysv/linux/sparc/sparc64/fstatfs64.c: Removed.
426         * sysdeps/unix/sysv/linux/ia64/pread64.c: Removed.
427         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: Removed.
428         * sysdeps/unix/sysv/linux/ia64/glob64.c: Removed.
429         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: Removed.
430         * sysdeps/unix/sysv/linux/ia64/truncate64.c: Removed.
431         * sysdeps/unix/sysv/linux/ia64/xstat64.c: Removed.
432         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: Removed.
433         * sysdeps/unix/sysv/linux/ia64/getdents64.c: Removed.
434         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Removed.
435         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Removed.
436         * sysdeps/unix/sysv/linux/ia64/readdir.c: Removed.
437         * sysdeps/unix/sysv/linux/ia64/posix_fadvise.c: Removed.
438         * sysdeps/unix/sysv/linux/ia64/mmap64.c: Removed.
439         * sysdeps/unix/sysv/linux/ia64/xstat.c: Removed.
440         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: Removed.
441         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: Removed.
442         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: Removed.
443         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: Removed.
444         * sysdeps/unix/sysv/linux/ia64/getdents.c: Removed.
445         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: Removed.
446         * sysdeps/unix/sysv/linux/ia64/posix_fadvise64.c: Removed.
447         * sysdeps/unix/sysv/linux/ia64/readdir64.c: Removed.
448         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Removed.
449         * sysdeps/unix/sysv/linux/ia64/statfs64.c: Removed.
450         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: Removed.
451         * sysdeps/unix/sysv/linux/x86_64/pread64.c: Removed.
452         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: Removed.
453         * sysdeps/unix/sysv/linux/x86_64/glob64.c: Removed.
454         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: Removed.
455         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: Removed.
456         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: Removed.
457         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: Removed.
458         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: Removed.
459         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: Removed.
460         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: Removed.
461         * sysdeps/unix/sysv/linux/x86_64/readdir.c: Removed.
462         * sysdeps/unix/sysv/linux/x86_64/posix_fadvise.c: Removed.
463         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: Removed.
464         * sysdeps/unix/sysv/linux/x86_64/xstat.c: Removed.
465         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: Removed.
466         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: Removed.
467         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: Removed.
468         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: Removed.
469         * sysdeps/unix/sysv/linux/x86_64/getdents.c: Removed.
470         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: Removed.
471         * sysdeps/unix/sysv/linux/x86_64/posix_fadvise64.c: Removed.
472         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: Removed.
473         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: Removed.
474         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: Removed.
475         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: Removed.
476         * sysdeps/unix/sysv/linux/alpha/Implies: New file.
477         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New file.
478         * sysdeps/unix/sysv/linux/s390/s390-64/Implies: New file.
479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Implies: New file.
480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
481         * sysdeps/unix/sysv/linux/sparc/sparc64/Implies: New file.
482         * sysdeps/unix/sysv/linux/sparc/sparc64/lxstat.c: New file.
483         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: New file.
484         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: New file.
485         * sysdeps/unix/sysv/linux/wordsize-64/statvfs64.c: New file.
486         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs64.c: New file.
487         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: New file.
488         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c: New file.
489         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: New file.
490         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
491         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: New file.
492         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: New file.
493         * sysdeps/unix/sysv/linux/wordsize-64/xstat64.c: New file.
494         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: New file.
495         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: New file.
496         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: New file.
497         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: New file.
498         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: New file.
499         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: New file.
500         * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: New file.
501         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: New file.
502         * sysdeps/unix/sysv/linux/wordsize-64/fxstat64.c: New file.
503         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: New file.
504         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: New file.
505         * sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c: New file.
506         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: New file.
507         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c: New file.
508         * sysdeps/unix/sysv/linux/wordsize-64/lxstat64.c: New file.
509         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: New file.
510         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: New file.
511         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: New file.
512         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: New file.
513         * sysdeps/unix/sysv/linux/wordsize-64/statfs64.c: New file.
514         * sysdeps/unix/sysv/linux/wordsize-64/fstatfs64.c: New file.
515         * sysdeps/unix/sysv/linux/ia64/Implies: New file.
516         * sysdeps/unix/sysv/linux/x86_64/Implies: New file.
518 2004-03-22  Richard Henderson  <rth@redhat.com>
520         * sysdeps/alpha/s_fabs.S: Remove file.
521         * sysdeps/alpha/s_copysign.S: Remove file.
523 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
525         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c
526         (__getpagesize): Avoid warning about writing into read-only memory.
528         * string/Makefile (routines): Add xpg-strerror.
529         * string/string.h (strerror_r): If __USE_XOPEN2K but not __USE_GNU,
530         redirect strerror_r to __xpg_strerror_r.
531         * string/Versions (libc): Add __xpg_strerror_r@@GLIBC_2.3.4.
532         * sysdeps/generic/xpg-strerror.c: New file.
533         * sysdeps/mach/xpg-strerror.c: New file.
535 2004-03-22  Joseph S. Myers  <jsm@polyomino.org.uk>
537         * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): Do not use
538         casts as lvalues.
540 2004-03-22  Andreas Jaeger  <aj@suse.de>
542         * elf/tst-dlmodcount.c (unload): Remove unused variable.
544         * misc/tst-mntent.c (main): Use tmpfile instead of tmpnam.
546 2004-03-20  Roland McGrath  <roland@frob.com>
548         * sysdeps/mach/hurd/dl-execstack.c: New file.
550 2004-03-20  Ulrich Drepper  <drepper@redhat.com>
552         * po/ca.po: Update from translation team.
554 2004-03-20  Andreas Jaeger  <aj@suse.de>
556         * sysdeps/unix/sysv/linux/sched_getaffinity.c
557         (__sched_getaffinity_old): Fix interface.
558         * sysdeps/unix/sysv/linux/sched_setaffinity.c
559         (__sched_setaffinity_old): Likewise.
561         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Include <alloca.h>.
563 2004-03-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
565         * sysdeps/unix/sysv/linux/kernel-features.h
566         (__ASSUME_CLONE_THREAD_FLAGS ): Define for newer SH kernel.
567         (__ASSUME_TGKILL, __ASSUME_UTIMES): Likewise.
568         * sysdeps/unix/sysv/linux/sh/socket.S: Add unwind information.
570 2004-03-19  Ulrich Drepper  <drepper@redhat.com>
572         * time/tzfile.c (__tzfile_default): Correct setting of rule_stdoff
573         and rule_dstoff after reading the posixrules file.
575 2004-03-18  Ulrich Drepper  <drepper@redhat.com>
577         * malloc/malloc.c (__posix_memalign): Correct alignment check.
578         Reported by Don Heller <dheller@cse.psu.edu>.
580 2004-03-18  Jakub Jelinek  <jakub@redhat.com>
582         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Remove hwcap
583         variable and weak_extern for _dl_hwcap.
584         (_DL_HWCAP_TLS_MASK): Define.
585         (HWCAP_CHECK): Fix checking of non-platform hwcap bits.  Use
586         lib->osversion instead of cache_new->libs[middle].osversion.
588         * stdio-common/asprintf.c: Remove USE_IN_LIBIO conditionals.
589         * stdio-common/dprintf.c: Likewise.
590         * stdio-common/fprintf.c: Likewise.
591         * stdio-common/getline.c: Likewise.
592         * stdio-common/getw.c: Likewise.
593         * stdio-common/perror.c: Likewise.
594         * stdio-common/printf-prs.c: Likewise.
595         * stdio-common/printf.c: Likewise.
596         * stdio-common/printf_size.c: Likewise.
597         * stdio-common/psignal.c: Likewise.
598         * stdio-common/putw.c: Likewise.
599         * stdio-common/scanf.c: Likewise.
600         * stdio-common/snprintf.c: Likewise.
601         * stdio-common/sprintf.c: Likewise.
602         * stdio-common/sscanf.c: Likewise.
603         * stdio-common/tstgetln.c: Likewise.
604         * stdio-common/vfprintf.c: Likewise.
606 2004-03-18  Paul Eggert  <eggert@cs.ucla.edu>
608         * posix/getopt.h (__GNUC_PREREQ) [!defined __THROW]: Define
609         if not defined, fixing a typo (it used to be defined if
610         __GNUC__ was not defined).
612 2004-03-18  Ulrich Drepper  <drepper@redhat.com>
614         * posix/sched.h: Change sched_getaffinity and sched_setaffinity
615         interfaces: add new second parameter.
616         * sysdeps/generic/sched_getaffinity.c: Implement interface change.
617         * sysdeps/generic/sched_setaffinity.c: Likewise.
618         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Likewise.  Add
619         compatibility interface.
620         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
621         * sysdeps/unix/sysv/linux/Versions: Add versions for changed
622         interfaces.
624 2004-03-18  Roland McGrath  <roland@redhat.com>
626         * manual/Makefile (stamp-summary): Use -k option to sort,
627         not traditional key selection syntax.
628         Reported by Jim Gifford <giffordj@linkline.com>.
630 2004-03-18  Jakub Jelinek  <jakub@redhat.com>
632         * elf/ldconfig.c: Include stdbool.h.
634 2004-03-18  Roland McGrath  <roland@redhat.com>
636         * elf/ldconfig.c (parse_conf_include): New function.
637         (parse_conf): Call it to parse lines starting with "include".
638         Remaining words are glob patterns for more config files to read.
639         Take additional bool argument to disable opt_chroot processing.
640         (main): Update caller.
642 2004-03-17  Ulrich Drepper  <drepper@redhat.com>
644         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_iopl): Match EPERM error
645         the x86 code produces in case of mission permissions.
646         Patch by Bernd Schmidt <bernds@redhat.com>.
648         * resolv/netdb.h: Define AI_IDN_ALLOW_UNASSIGNED,
649         AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED, and
650         NI_IDN_USE_STD3_ASCII_RULES.
651         * inet/getnameinfo.c (getnameinfo): Implement handling of
652         NI_IDN_ALLOW_UNASSIGNED and NI_IDN_USE_STD3_ASCII_RULES.
653         * sysdeps/posix/getaddrinfo.c (gaih_inet): Implement handling of
654         AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES.
656 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
658         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW): Make asm volatile.
660 2004-03-16  Jakub Jelinek  <jakub@redhat.com>
662         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Spelling.
663         (JB_SIZE): Undefine before including __longjmp-common.S again.
664         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Spelling.
665         (JB_SIZE): Undefine before including setjmp-common.S again.
666         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Spelling.
667         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Spelling.
668         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Spelling.
669         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Spelling.
670         * sysdeps/powerpc/sigjmp.c: Spelling.
672 2004-03-16  Ulrich Drepper  <drepper@redhat.com>
674         * include/ctype.h: For libc, define isdigit, isdigit_l, and
675         __isdigit_l as simple comparison macros.
676         * include/wctype.h: For libc, define iswdigit, iswdigit_l, and
677         __iswdigit_l as simple comparison macros.
678         * wctype/wcfuncs_l.c: #undef iswdigit and __iswdigit.
680 2004-03-15  Ulrich Drepper  <drepper@redhat.com>
682         * sysdeps/sparc/fpu/bits/mathinline.h: Restore missing #ifdef.
683         Patch by Richard Henderson.
685 2004-03-16  Jakub Jelinek  <jakub@redhat.com>
687         * sysdeps/generic/strtold_l.c (STRING_TYPE, STRTOLD, __STRTOLD,
688         __STRTOD, INTERNAL, INTERNAL1): Define, use them.
689         [! USE_WIDE_CHAR] (INTERNAL (__STRTOLD)): Add libc_hidden_def.
691         * inet/getnameinfo.c: Include stdlib.h.
693 2004-03-15  Richard Henderson  <rth@redhat.com>
695         * math/Makefile (headers): Add bits/huge_valf.h, bits/huge_vall.h,
696         and bits/inf.h.
697         * math/math.h: Include them.
699         * sysdeps/alpha/fpu/bits/mathdef.h: Remove INFINITY.
700         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
701         * sysdeps/generic/bits/mathdef.h: Likewise.
702         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
703         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise.
704         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
705         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
706         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
707         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise.
708         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
709         * sysdeps/x86_64/fpu/bits/mathdef.h: Likewise.
711         * sysdeps/arm/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val.
712         (HUGE_VALF, HUGE_VALL): Remove.
713         * sysdeps/ieee754/bits/huge_val.h: Likewise.
714         * sysdeps/sh/bits/huge_val.h: Likewise.
716         * sysdeps/generic/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val.
717         * sysdeps/generic/bits/huge_valf.h: New file.
718         * sysdeps/generic/bits/huge_vall.h: New file.
719         * sysdeps/generic/bits/inf.h: New file.
720         * sysdeps/ieee754/bits/huge_valf.h: New file.
721         * sysdeps/ieee754/bits/inf.h: New file.
722         * sysdeps/i386/bits/huge_val.h: Remove file.
723         * sysdeps/i386/bits/huge_vall.h: New file.
724         * sysdeps/ia64/bits/huge_val.h: Remove file.
725         * sysdeps/ia64/bits/huge_vall.h: New file.
726         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: New file.
727         * sysdeps/m68k/bits/huge_val.h: Remove file.
728         * sysdeps/m68k/bits/huge_vall.h: New file.
729         * sysdeps/s390/bits/huge_val.h: Remove file.
730         * sysdeps/sh/sh4/fpu/bits/huge_val.h: Remove file.
731         * sysdeps/sparc/bits/huge_vall.h: New file.
732         * sysdeps/sparc/sparc32/fpu/bits/huge_val.h: Remove file.
733         * sysdeps/sparc/sparc64/fpu/bits/huge_val.h: Remove file.
735         * sysdeps/ieee754/bits/nan.h (NAN): Use __builtin_nanf.
736         * sysdeps/mips/bits/nan.h (NAN): Likewise.
738 2004-03-15  Ulrich Drepper  <drepper@redhat.com>
740         * iconv/gconv_simple.c (__gconv_transform_utf8_internal): Use only
741         one copy of error handling code.
743         * stdio-common/vfscanf.c: Simplify error handling macros.  Use
744         direct locale access functions.
746         * sysdeps/generic/strcasestr.c (__strcasestr): Optimize use of
747         tolower function.
749 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
751         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add const.
752         (handle_amd): New function.
753         (__sysconf): Handle _SC_LEVEL4_CACHE_LINESIZE here, not in
754         linux_sysconf.  Call handle_amd on AuthenticAMD.
755         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Likewise.
757 2004-03-14  Ulrich Drepper  <drepper@redhat.com>
759         * wcsmbs/mbsrtowcs.c: Just a wrapper around __mbsrtowcs_l.
760         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add real implementation here.
762         Make the non-_l functions wrappers around the _l functions.
763         * include/monetary.h: Declare __vstrmon_l.
764         * include/string.h: Add libc_hidden_proto for __strcoll_l and
765         __strxfrm_l.
766         * include/time.h: Define ptime_locale_status.  Declare
767         __strptime_internal.
768         * include/wchar.h: Add libc_hidden_proto for __wcscoll_l and
769         __wcsxfrm_l.
770         * stdlib/strfmon.c: Move the code to strfmon_l.c.  Add little
771         wrapper around __vstrfmon_l.
772         * stdlib/strfmon_l.c: Add real implementation.  Split into new
773         function __vstrfmon_l to allow calling it from strfmon.
774         * stdlib/strtod.c: Move real code to strtod_l.c and add wrapper.
775         * stdlib/strtod_l.c: Add real implementation.
776         * stdlib/strtof.c: Adjust to changed strtod.c.
777         * stdlib/strtof_l.c: Include strtod_l.c now.
778         * stdlib/strtold.c: New file.
779         * stdlib/strtold_l.c: Removed.
780         * string/strcoll.c: Move real code to strcoll_l.c: Add wrapper.
781         * string/strcoll_l.c: Add real implementation.
782         * string/strxfrm.c: Move real code to strxfrm_l.c: Add wrapper.
783         * string/strxfrm_l.c: Add real implementation.
784         * sysdeps/generic/strtol.c: Move real implementation to strtol_l.c.
785         Add wrappers.
786         * sysdeps/generic/strtol_l.c: Add real implementation.
787         * sysdeps/generic/strtold.c: Removed.
788         * sysdeps/generic/strtold_l.c: New file.
789         * sysdeps/generic/strtoll_l.c: Include strtol_l.c now.  Adjust
790         #defines.
791         * sysdeps/generic/strtoul_l.c: Likewise.
792         * sysdeps/generic/strtoull_l.c: Likewise.
793         * sysdeps/generic/wcstol_l.c: Likewise.
794         * sysdeps/generic/wcstoll_l.c: Likewise.
795         * sysdeps/generic/wcstoul_l.c: Likewise.
796         * sysdeps/generic/wcstoull_l.c: Likewise.
797         * sysdeps/ieee754/ldbl-128/strtold.c: Removed.
798         * sysdeps/ieee754/ldbl-128/strtold_l.c: New file.
799         * sysdeps/ieee754/ldbl-96/strtold.c: Removed.
800         * sysdeps/ieee754/ldbl-96/strtold_l.c: New file.
801         * sysdeps/m68k/strtold.c: Removed.
802         * sysdeps/m68k/strtold_l.c: New file.
803         * time/strftime.c: Move real code to strftime_l.c.  Add wrapper.
804         * time/strftime_l.c: Add real implementation.
805         * time/strptime.c: Move real code to strptime_l.c.  Add wrapper.
806         * time/strptime_l.c: Add real implementation.
807         * time/wcsftime.c: Simplify since only wrappers are defined in
808         strftime.c.
809         * time/wcsftime_l.c: Include strftime_l.c.
810         * wcsmbs/wcscoll.c: Simplify since the file is not used by wcscoll_l.c
811         anymore.
812         * wcsmbs/wcscoll_l.c: Include strcoll_l.c.
813         * wcsmbs/wcsxfrm.c: Simplify since the file is not used by wcsxfrm_l.c
814         anymore.
815         * wcsmbs/wcsxfrm_l.c: Include strxfrm_l.c.
816         * wcsmbs/wcstod.c: Prepare to include new strtod.c.
817         * wcsmbs/wcstod_l.c: Include strtod_l.c.
818         * wcsmbs/wcstof.c: Prepare to include new strtof.c.
819         * wcsmbs/wcstof_l.c: Include strtof_l.c.
820         * wcsmbs/wcstold.c: Prepare to include new strtold.c.
821         * wcsmbs/wcstold_l.c: Include strtold_l.c.
823         * locale/uselocale.c: Use _NL_CURRENT_LOCALE instead of __libc_tsd_get.
825         * sysdeps/generic/strcasecmp.c: Optimize a bit.  It's better to get
826         a reference to the current locale and then use the _l functions.
827         * sysdeps/generic/strncase.c: Likewise.
829 2004-03-11  Jeroen Dekkers  <jeroen@dekkers.cx>
831         * cppflags-iterator.mk: Change libof-$(cpp-src) to
832         libof-$(notdir $(cpp-src)).
834 2004-03-13  Ulrich Drepper  <drepper@redhat.com>
836         * resolv/netdb.h (EAI_OVERFLOW): Define.
837         (NI_IDN): Define.
838         * inet/getnameinfo.c (getnameinfo): Return error in case argument
839         buffers overflow.  Implement NI_IDN.
841 2004-03-12  Ulrich Drepper  <drepper@redhat.com>
843         * resolv/netdb.h: Define AI_CANONIDN.
844         * sysdeps/posix/getaddrinfo.c: Implement AI_CANONIDN.
846 2004-03-12  Richard Henderson  <rth@redhat.com>
848         * sysdeps/unix/sysv/linux/alpha/select.S: Fix unwind.  Propagate
849         oldvalue from CENABLE to CDISABLE.
851 2004-03-12  Ulrich Drepper  <drepper@redhat.com>
853         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: New file.
855         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
857         * posix/getconf.c (vars): Add _SC_ values for cache information.
858         * sysdeps/generic/bits/confname.h: Add _SC_* values for cache
859         information.
860         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Reorganize to
861         allow yet another sysconf function to include the one in this file.
862         * sysdeps/unix/sysv/linux/i386/sysconf.c: New file.
863         * sysdeps/generic/sysconf.c: Add default handling for cache line info.
865 2004-03-11  Ulrich Drepper  <drepper@redhat.com>
867         * sysdeps/posix/sysconf.c (__sysconf): Add missing support for
868         some _SC_* values.
870 2004-03-10  Chris Heath  <chris@heathens.co.nz>
872         * iconvdata/gconv.map: Add gconv_end (fixes memory leak).
874 2004-03-11  Jakub Jelinek  <jakub@redhat.com>
876         * sysdeps/powerpc/powerpc32/__longjmp.S (JB_SIZE): Undefine before
877         including __longjmp-common.S again.
878         * sysdeps/powerpc/powerpc64/__longjmp.S (JB_SIZE): Likewise.
879         * sysdeps/powerpc/powerpc32/setjmp.S (JB_SIZE): Undefine before
880         including setjmp-common.S again.
881         * sysdeps/powerpc/powerpc64/setjmp.S (JB_SIZE): Likewise.
882         * sysdeps/powerpc/novmxsetjmp.h (__novmx__longjmp): Fix type of
883         first argument in the prototype.
884         * sysdeps/powerpc/longjmp.c (__vmx__longjmp, __vmx__libc_longjmp):
885         Remove bogus semicolons.
887         * sysdeps/s390/dl-tls.h: Only add __tls_get_offset assembly if
888         IS_IN_rtld.
889         (__TLS_GET_ADDR): Use __tls_get_offset, not __tls_get_addr.
891 2004-03-11  Ulrich Drepper  <drepper@redhat.com>
893         * resolv/ns_ttl.c: Don't add ns_parse_ttl for libresolv.so.
895 2004-03-10  Ulrich Drepper  <drepper@redhat.com>
897         * sysdeps/generic/errno.c: Include <dl-sysdep.h>.  Use
898         RTLD_PRIVATE_ERRNO to decide whether errno compat symbols are needed.
900         * elf/dl-sym.c: Unify _dl_sym and _dl_vsym code and make the entry
901         points wrappers around the unified code.
903 2004-03-11  Richard Henderson  <rth@redhat.com>
905         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (kernel_stat64): New.
906         (glibc21_stat): New.
907         * sysdeps/unix/sysv/linux/alpha/fxstat.c: New file.
908         * sysdeps/unix/sysv/linux/alpha/lxstat.c: New file.
909         * sysdeps/unix/sysv/linux/alpha/xstat.c: New file.
910         * sysdeps/unix/sysv/linux/alpha/xstatconv.c (__xstat_conv): Add
911         code for _STAT_VER_GLIBC2_3_4.
912         (__libc_missing_axp_stat64): New.
913         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: New file.
914         * sysdeps/unix/sysv/linux/alpha/bits/stat.h (__ST_TIME): New.
915         (_STAT_VER_GLIBC2_3_4, _STAT_VER_KERNEL64): New.
916         (struct stat, struct stat64): Update to new format.
917         (_STATBUF_ST_NSEC): New.
919 2004-03-11  Jakub Jelinek  <jakub@redhat.com>
921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
922         (__novec_swapcontext): Branch to novec_* labels.
924 2004-03-10  Ulrich Drepper  <drepper@redhat.com>
926         * posix/getopt.c (_): Don't define here for glibc.
928 2004-03-10  Jakub Jelinek  <jakub@redhat.com>
930         * include/libc-symbols.h [__ASSEMBLY__] (compat_text_section,
931         compat_data_section): Define.
932         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): Add
933         attribute_compat_text_section.
934         * sysdeps/unix/sysv/linux/alpha/wordexp.c (__old_wordexp): Likewise.
935         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob,
936         __old_globfree): Likewise.
937         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown_is_lchown):
938         Likewise.
939         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c
940         (__posix_fadvise64_l32): Likewise.
941         * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Likewise.
942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c
943         (__posix_fadvise64_l32): Likewise.
944         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (__old_semctl):
945         Likewise.
946         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl): Likewise.
947         * sysdeps/unix/sysv/linux/posix_fadvise64.c (__posix_fadvise64_l32):
948         Likewise.
949         * sysdeps/unix/sysv/linux/shmctl.c (__old_shmctl): Likewise.
950         * hurd/compat-20.c (_hurd_proc_init_compat_20): Likewise.
951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
952         (__swapcontext, __novec_swapcontext): Use END instead of PSEUDO_END.
953         (__novec_swapcontext, __swapcontext_stub): Add compat_text_section.
954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
955         (__makecontext_stub): Likewise.
956         (__novec_makecontext): Likewise.  Fix name in END () to match
957         function name.
958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
959         (__setcontext): Use END instead of PSEUDO_END.
960         (__novec_setcontext): Add compat_text_section.  Use END instead of
961         PSEUDO_END, fix the name in END () to match function name.
962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
963         (__getcontext, __novec_getcontext): Use END instead of PSEUDO_END.
964         (__novec_getcontext, __getcontext_stub): Add compat_text_section.
966 2004-03-10  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
968         * sysdeps/sh/dl-machine.h: Don't use GL macro if not appropriate.
969         (COPY_UNALIGNED_WORD): Remove cast used as lvalue.
971 2004-03-10  Ulrich Drepper  <drepper@redhat.com>
973         * sysdeps/i386/dl-procinfo.h (HWCAP_IMPORTANT): Remove mmx, add sse2.
975 2004-03-10  Richard Henderson  <rth@redhat.com>
977         * sysdeps/generic/errno.c: Disable versioning for rtld.
979         * sysdeps/generic/Makefile (elf/shared): Add unwind-pe.
980         * sysdeps/generic/unwind-pe.c: New file.
981         * sysdeps/generic/unwind-pe.h: Only prototypes for _LIBC without
982         _LIBC_DEFINITIONS.
984 2004-03-10  Ulrich Drepper  <drepper@redhat.com>
986         * include/libc-symbols.h: Define attribute_compat_text_section and
987         attribute_compat_data_section.
988         * io/ftw.c: Mark compat code with attribute_compat_text_section.
989         * libio/iofopncook.c: Likewise.
990         * libio/oldfileops.c: Likewise.
991         * libio/oldiofclose.c: Likewise.
992         * libio/oldiofdopen.c: Likewise.
993         * libio/oldiofgetpos.c: Likewise.
994         * libio/oldiofgetpos64.c: Likewise.
995         * libio/oldiofopen.c: Likewise.
996         * libio/oldiofsetpos.c: Likewise.
997         * libio/oldiofsetpos64.c: Likewise.
998         * libio/oldiopopen.c: Likewise.
999         * libio/oldpclose.c: Likewise.
1000         * libio/oldtmpfile.c: Likewise.
1001         * nptl/forward.c: Likewise.
1002         * nss/getXXbyYY_r.c: Likewise.
1003         * nss/getXXent_r.c: Likewise.
1004         * posix/tst-vfork1.c: Likewise.
1005         * stdlib/canonicalize.c: Likewise.
1006         * stdlib/old_atexit.c: Likewise.
1007         * sysdeps/generic/glob.c: Likewise.
1008         * sysdeps/posix/posix_fallocate64.c: Likewise.
1009         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1010         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1011         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
1012         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
1013         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
1014         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
1015         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1016         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1017         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
1018         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
1019         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
1020         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1021         * posix/regexec.c: Likewise.
1023         * sysdeps/unix/sysv/linux/i386/syscalls.list: vm86@@GLIBC_2.3.4
1024         should be the default symbol. Having none misses the point.
1026 2004-03-09  Ulrich Drepper  <drepper@redhat.com>
1028         * stdlib/qsort.c (_quicksort): Initialize first stack element [BZ #16].
1030 2004-03-05  Jakub Jelinek  <jakub@redhat.com>
1032         * posix/regexec.c (regexec): Return with error on unknown eflags.
1033         Replace weak_alias with versioned_symbol.
1034         (__compat_regexec): New.
1035         * posix/Versions (libc): Add regexec@GLIBC_2.3.4.
1037 2004-03-09  Richard Henderson  <rth@redhat.com>
1039         * math/math.h (isgreater, isgreaterequal, isless, islessequal,
1040         islessgreater, isunordered): Use builtins if available.
1041         * sysdeps/i386/fpu/bits/mathinline.h: Don't define via builtins.
1042         * sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
1043         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1044         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1045         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1046         * sysdeps/alpha/fpu/bits/mathinline.h (isgreater, isgreaterequal,
1047         isless, islessequal, islessgreater): Remove; use default.
1048         (isunordered): Convert inputs to double.
1050 2004-02-09  Jakub Jelinek  <jakub@redhat.com>
1052         * posix/Makefile (tests): Add tst-vfork2.
1053         * posix/tst-vfork1.c (do_test): Fix comment.
1054         * posix/tst-vfork2.c: New test.
1056 2004-03-09  Ulrich Drepper  <drepper@redhat.com>
1058         * elf/dl-lookup.c (_dl_lookup_symbol_x): Fix possible NULL pointer
1059         derefernce in error message.  Pretty printing.
1061         * po/nl.po: Update from translation team.
1063 2004-03-08  Andreas Schwab  <schwab@suse.de>
1065         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't truncate
1066         sysinfo pointer value.
1068 2004-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1070         Merge from gnulib.  We now assume C89 or better.
1071         * posix/getopt1.c (const): Remove.
1072         * posix/getopt.c (const): Likewise.
1073         * posix/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
1074         _getopt_long_only_r, main): Use prototypes, not old-style definitions.
1075         * posix/getopt.c (exchange, _getopt_initialize, _getopt_internal_r,
1076         _getopt_internal, getopt, main): Likewise.
1077         * posix/getopt.h (getopt, getopt_long, getopt_long_only): Likewise.
1078         * posix/getopt.c [!defined VMS || !HAVE_STRING_H]:
1079         Include <string.h> regardless.  No need for <strings.h>.
1080         [!defined _LIBC]: Include "gettext.h" rather than rolling it ourselves.
1081         (_): Define to gettext always.
1082         (my_index): Remove: all uses changed to strchr.
1083         (strlen): Remove declaration.
1084         * posix/getopt.h (struct option.name): Always const char *.
1086 2004-03-08  Marcus Brinkmann  <marcus@gnu.org>
1088         * posix/getopt.h (_getopt_internal): Move to ...
1089         * posix/getopt_int.h: ... here.  New file.
1090         * include/getopt_int.h: New file.
1091         * include/getopt.h: Remove libc_hidden_proto for getopt_long
1092         and getopt_long_only.
1093         * posix/getopt1.c: Include "getopt_int.h".  Remove
1094         libc_hidden_def for getopt_long and getopt_long_only.
1095         (_getopt_long_r, _getopt_long_only_r): New functions.
1096         * posix/getopt.c: Include "getopt_int.h".
1097         (__getopt_initialized): Variable removed.
1098         (nextchar, ordering, posixly_correct, first_nonopt, last_nonopt):
1099         Static variables removed.
1100         (nonoption_flags_max_len, nonoption_flags_len) [_LIBC &&
1101         USE_NONOPTION_FLAGS]: Static variables removed.
1102         (getopt_data): New static variable.
1103         (SWAP_FLAGS): Use d->__nonoption_flags_len instead
1104         nonoption_flags_len.
1105         (exchange): Add new argument D of type struct getopt_data *.
1106         Replace optind with d->optind, optarg with d->optarg, opterr with
1107         d->opterr, optopt with d->optopt, nextchar with d->__nextchar,
1108         first_nonopt with d->__first_nonopt, last_nonopt with
1109         d->__last_nonopt, d->ordering with d->__ordering,
1110         d->posixly_correct with d->__posixly_correct (which is now an
1111         int instead a string, so fix users), nonoption_flags_len
1112         with d->__nonoption_flags_len, nonoption_flags_max_len with
1113         d->__nonoption_flags_max_len.
1114         (_getopt_initialize): Likewise.
1115         (_getopt_internal): Rename to ...
1116         (_getopt_internal_r): ... this.  Also add new argument D of type
1117         struct getopt_data * and use of members of D rather than global or
1118         static variables as described for exchange() above.  Add new argument
1119         to invocations of _getopt_initialize and exchange.
1120         (_getopt_internal): Reimplement in terms of _getopt_internal_r.
1121         * argp/argp-parse.c: Include <getopt_int.h>.
1122         [_LIBC]: Do not include <bits/libc-lock.h>.
1123         [!_LIBC && HAVE_CTHREADS_H]: Do not include <cthreads.h>.
1124         [!_LIBC] (_argp_hang): Make static.
1125         (getopt_lock, LOCK_GETOPT, UNLOCK_GETOPT): Remove.
1126         (_argp_unlock_xxx): Remove.
1127         (parser_init): Do not use LOCK_GETOPT.
1128         (parser_finalize): Do not use UNLOCK_GETOPT.
1129         (struct parser): New member OPT_DATA.
1130         (parser_init): Initialize parser->opt_data.  Use
1131         parser->opt_data.opterr instead of opterr.
1132         (parser_parse_opt): Use parser->opt_data.optarg instead optarg.
1133         (parser_parse_next): Likewise.  Use parser->opt_data.optind
1134         instead optind.  Use parser->opt_data.optopt instead of optopt.
1135         Call _getopt_long_only_r and _getopt_long_r instead of
1136         getopt_long_only and getopt_long, and pass the extra argument.
1138 2004-03-09  Ulrich Drepper  <drepper@redhat.com>
1140         * iconv/gconv_db.c: Don't define lock as static.  Rename to
1141         __gconv_lock and export from the file.
1142         * iconv/gconv_int.h: Declare __gconv_lock.
1143         * libio/iofclose.c [_LIBC] (_IO_new_fclose): Lock gconv lock
1144         before __gconv_release_step calls.
1145         Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
1147         * iconv/gconv_simple.c (internal_ucs4_loop): Fix typo in last change.
1149         * posix/Makefile (tests): Add tst-vfork1.
1150         * posix/tst-vfork1.c: New file.
1152 2004-03-08  Ulrich Drepper  <drepper@redhat.com>
1154         * sysdeps/i386/dl-machine.h: Define ARCH_FIXUP_ATTRIBUTE and use
1155         it in the fixup function declarations.
1156         * elf/dl-runtime.c: If ARCH_FIXUP_ATTRIBUTE is not defined,
1157         provide dummy definition.  Use macro in fixup function
1158         definitions.
1160         * sysdeps/unix/sysv/linux/i386/vfork.S: If SAVE_PID and
1161         RESTORE_PID are defined, use it.
1162         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1164         * sysdeps/posix/gai_strerror.c: Add error string for EAI_IDN_ENCODE.
1166         * Makerules: Use extra-modules.mk if modules-names is defined.
1167         * extra-modules.mk: New file.
1168         * dlfcn/Makefile (CPPFLAGS-modcxaatexit.c): Removed.
1169         * elf/Makefile (CFLAGS-interp.c): Add -DNOT_IN_libc=1.
1170         * csu/Makefile ($(objpfx)version-info.h): Pass -DNOT_IN_libc=1 to
1171         compiler.
1172         * Makefile (distribute): Add symbol-hacks.h and extra-modules.mk.
1173         * sysdeps/generic/symbol-hacks.h: New file.
1174         * sysdeps/wordsize-32/symbol-hacks.h: New file.
1175         * sysdeps/wordsize-32/divdi3.c: Define *_internal aliases for __divdi3,
1176         __moddi3, __udivdi3, and __umoddi3.
1177         * include/libc-symbols.h: Include <symbol-hacks.h>.
1179 2004-03-08  Jeroen Dekkers  <jeroen@dekkers.cx>
1181         * elf/rtld.c (_rtld_global_ro) [MAP_COPY]: Don't set _dl_unload_cache.
1183         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps):
1184         Don't use INTUSE with _dl_signal_error.
1186 2004-03-08  Ulrich Drepper  <drepper@redhat.com>
1188         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
1189         Don't use INTUSE with _dl_signal_error.
1191 2004-03-08  Richard Henderson  <rth@redhat.com>
1193         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Fix typo
1194         in name.
1196 2004-03-07  Ulrich Drepper  <drepper@redhat.com>
1198         * config.h.in: Add entry for HAVE_LIBIDN.
1199         * configure.in: If libidn add-on present define HAVE_LIBIDN.
1200         * Versions.def: Add entry for libcidn.
1202 2004-03-07  Simon Josefsson  <jas@extundo.com>
1204         * resolv/netdb.h [__USE_GNU]: Add new AI_IDN ai_flags for addrinfo.
1205         [__USE_GNU]: Add new error code EAI_IDN_ENCODE for getaddrinfo.
1206         * sysdeps/posix/getaddrinfo.c: Add prototype for __idna_to_ascii_lz
1207         and define IDNA_SUCCESS.
1208         (gaih_inet): If ai_flags have AI_IDN, invoke __idna_to_ascii_lz.
1209         (getaddrinfo): Fix EAI_BADFLAGS test to include AI_IDN.
1210         All changes only applicable when glibc is compiled with the libidn
1211         add-on.
1213 2004-03-07  Ulrich Drepper  <drepper@redhat.com>
1215         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Call
1216         _dl_lookup_symbol_x not _dl_lookup_symbol.
1218         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Adjust for moving
1219         _dl_hwcap into _rtld_global_ro.
1220         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1221         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1222         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1223         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
1224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1231 2004-03-07  Andreas Schwab  <schwab@suse.de>
1233         * elf/dl-sym.c: Include <dl-tls.h> only when USE_TLS.
1235 2004-03-07  Andreas Jaeger  <aj@suse.de>
1237         * iconvdata/iso-2022-cn-ext.c (BODY): Remove cast used as lvalue.
1238         * iconvdata/tcvn5712-1.c (EMIT_SHIFT_TO_INIT): Likewise.
1239         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise.
1240         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise.
1241         * iconvdata/tscii.c (EMIT_SHIFT_TO_INIT): Likewise.
1243 2004-03-07  Ulrich Drepper  <drepper@redhat.com>
1245         * sysdeps/generic/ldsodefs.h: Move _dl_initial_searclist,
1246         _dl_hp_timing_overhead, _dl_init_all_dirs, and the content of
1247         dl-procinfo.c from _rtld_global to _rtld_global_ro.
1248         * elf/rtld.c: Adjust initializer for _rtld_global_ro.
1249         * elf/dl-close.c: Use GLRO instead of GL where appropriate.
1250         * elf/dl-libc.c: Likewise.
1251         * elf/dl-load.c: Likewise.
1252         * sysdeps/i386/dl-procinfo.h: Likewise.
1253         * sysdeps/i386/i686/hp-timing.h: Likewise.
1254         * sysdeps/ia64/hp-timing.h: Likewise.
1255         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1256         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1257         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
1258         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
1259         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Likewise.
1260         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
1261         * string/test-string.h: Define GLRO.
1263 2004-03-06  Ulrich Drepper  <drepper@redhat.com>
1265         * elf/dl-lookup.c: We don't need for specialized lookup functions.
1266         Combining the functionality does not slow down relocation processing,
1267         it might even speed it up a little.
1268         * sysdeps/generic/ldsodefs.h: Adjust prototypes for lookup function.
1269         Add only one function pointer to rtlf_global_ro.
1270         * elf/do-lookup.h: Replace #ifs with ifs.
1271         * elf/dl-libc.c: Adjust _dl_lookup_* callers.
1272         * elf/dl-reloc.c: Likewise.
1273         * elf/dl-runtime.c: Likewise.
1274         * elf/dl-sym.c: Likewise.
1275         * elf/rtld.c: Likewise.  Adjust _rtld_global_ro initialization.
1277 2004-03-06  Richard Henderson  <rth@redhat.com>
1279         * sysdeps/generic/ldsodefs.h (__rtld_local_attribute__,
1280         __rtld_global_attribute__): Undef after use.
1281         (_rtld_local_ro): Define __rtld_local_attribute__ with just hidden
1282         if available.
1284         * soft-fp/quad.h (union _FP_UNION_Q): Add longs structure.
1285         * sysdeps/alpha/Implies: Add alpha/soft-fp.
1286         * sysdeps/alpha/soft-fp/sfp-machine.h: Rewrite for GEM interface.
1287         * sysdeps/alpha/Subdirs: New file.
1288         * sysdeps/alpha/soft-fp/Makefile: New file.
1289         * sysdeps/alpha/soft-fp/Versions: New file.
1290         * sysdeps/alpha/soft-fp/local-soft-fp.h: New file.
1291         * sysdeps/alpha/soft-fp/ots_add.c: New file.
1292         * sysdeps/alpha/soft-fp/ots_cmp.c: new file.
1293         * sysdeps/alpha/soft-fp/ots_cmpe.c: New file.
1294         * sysdeps/alpha/soft-fp/ots_cvtqux.c: New file.
1295         * sysdeps/alpha/soft-fp/ots_cvtqx.c: New file.
1296         * sysdeps/alpha/soft-fp/ots_cvttx.c: New file.
1297         * sysdeps/alpha/soft-fp/ots_cvtxq.c: New file.
1298         * sysdeps/alpha/soft-fp/ots_cvtxt.c: New file.
1299         * sysdeps/alpha/soft-fp/ots_div.c: New file.
1300         * sysdeps/alpha/soft-fp/ots_mul.c: New file.
1301         * sysdeps/alpha/soft-fp/ots_nintxq.c: New file.
1302         * sysdeps/alpha/soft-fp/ots_sub.c: New file.
1304 2004-03-06  Ulrich Drepper  <drepper@redhat.com>
1306         * configure.in: Recognize --enable-bind-now.
1307         * elf/dynamic-link.h (elf_get_dynamic_info): Allow bind-now flags
1308         in ld.so.
1309         * Makerules (LDFLAGS-c.so): Add -z now if so configured.
1310         * elf/Makefile ($(objpfx)ld.so): Likewise.
1311         * config.make.in (bind-now): New definition.
1313         * elf/dl-fini.c (_dl_fini): Combine _dl_debug_printf calls.
1314         * elf/rtld.c (print_statistics): Likewise.
1316         * elf/dl-open.c: No need to pass any parameter to _dl_start_profile.
1317         They are the same in both places.
1318         * elf/dl-profile.c: Likewise.
1319         * elf/rtld.c: Likewise.
1320         * sysdeps/generic/ldsodefs.h: Likewise.
1321         * elf/dl-support.c: Define _dl_profile_output variable.  Initialize it.
1323 2004-03-05  Ulrich Drepper  <drepper@redhat.com>
1325         * elf/Versions: Remove functions which are not exported anymore.
1326         * dlfcn/dlerror.c: Call ld.so functions through GLSO.
1327         * dlfcn/dlinfo.c: Likewise.
1328         * elf/dl-close.c: Likewise.
1329         * elf/dl-libc.c: Likewise.
1330         * elf/dl-open.c: Likewise.
1331         * elf/dl-sym.c: Likewise.
1332         * sysdeps/generic/libc-start.c: Likewise.
1333         * elf/dl-debug.c: Remove *_internal definition.  Don't use INTUSE for
1334         functions which are not exported anymore.
1335         * elf/dl-deps.c: Likewise.
1336         * elf/dl-dst.h: Likewise.
1337         * elf/dl-error.c: Likewise.
1338         * elf/dl-fini.c: Likewise.
1339         * elf/dl-init.c: Likewise.
1340         * elf/dl-load.c: Likewise.
1341         * elf/dl-lookup.c: Likewise.
1342         * elf/dl-misc.c: Likewise.
1343         * elf/dl-profile.c: Likewise.
1344         * elf/dl-profstub.c: Likewise.
1345         * elf/dl-reloc.c: Likewise.
1346         * elf/dl-runtime.c: Likewise.
1347         * elf/dl-version.c: Likewise.
1348         * elf/do-lookup.h: Likewise.
1349         * include/dlfcn.h: Likewise.
1350         * sysdeps/generic/dl-cache.c: Likewise.
1351         * sysdeps/generic/dl-fptr.c: Likewise.
1352         * sysdeps/generic/dl-origin.c: Likewise.
1353         * sysdeps/generic/dl-sysdep.c: Likewise.
1354         * sysdeps/generic/dl-tls.c: Likewise.
1355         * sysdeps/generic/ldsodefs.h: Likewise.
1356         * sysdeps/i386/dl-tls.h: Likewise.
1357         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1358         * elf/rtld.c: Likewise.  Export function though _rtld_global_ro.
1360         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move
1361         dl_debug_fd to rtld_global_ro.
1362         * elf/rtld.c: Use GLRO instead of GL for dl_debug_fd.
1363         * elf/dl-misc.c: Likewise.
1365         * malloc/malloc.c: Don't call exported interface in the implementation.
1367         * include/wctype.h: Add libc_hidden_proto for __towctrans.
1368         * wctype/towctrans.c: Add libc_hidden_def.
1370         * libio/memstream.c (open_memstream): Use _IO_init with INTUSE.
1372         * posix/regexec.c (transit_state): Remove unused variable
1373         next_state.
1375         * posix/regcomp.c (init_dfa): Use __btowc instead of btowc.
1377         * sysdeps/generic/ldsodefs.h: Define new structure rtld_global_ro.
1378         Declare _rtld_global_ro and _rtld_local_ro.  Move members of
1379         rtld_global structure into the new one if they are modified only
1380         at startup time.  Define GLRO to access _rtld_global_ro.
1381         * elf/Versions: Export _rtld_global_ro.
1382         * elf/dl-close.c: Use GLRO instead of GL where appropriate.
1383         * elf/dl-conflict.c: Likewise.
1384         * elf/dl-deps.c: Likewise.
1385         * elf/dl-dst.h: Likewise.
1386         * elf/dl-error.c: Likewise.
1387         * elf/dl-fini.c: Likewise.
1388         * elf/dl-init.c: Likewise.
1389         * elf/dl-load.c: Likewise.
1390         * elf/dl-lookup.c: Likewise.
1391         * elf/dl-minimal.c: Likewise.
1392         * elf/dl-open.c: Likewise.
1393         * elf/dl-profile.c: Likewise.
1394         * elf/dl-reloc.c: Likewise.
1395         * elf/dl-runtime.c: Likewise.
1396         * elf/dl-support.c: Likewise.
1397         * elf/dl-version.c: Likewise.
1398         * elf/do-lookup.h: Likewise.
1399         * elf/rtld.c: Likewise.
1400         * sysdeps/generic/dl-cache.c: Likewise.
1401         * sysdeps/generic/dl-origin.c: Likewise.
1402         * sysdeps/generic/dl-sysdep.c: Likewise.
1403         * sysdeps/generic/libc-start.c: Likewise.
1404         * sysdeps/generic/dl-cache.c: Likewise.
1405         * sysdeps/i386/dl-machine.h: Likewise.
1406         * sysdeps/i386/setfpucw.c: Likewise.
1407         * sysdeps/i386/fpu/fclrexcpt.c: Likewise.
1408         * sysdeps/i386/fpu/fedisblexcpt.c: Likewise.
1409         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1410         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1411         * sysdeps/i386/fpu/fesetround.c: Likewise.
1412         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1413         * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1414         * sysdeps/unix/sysv/linux/dl-execstat.c: Likewise.
1415         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
1416         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1417         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1418         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
1419         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1420         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1421         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
1422         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1423         * sysdeps/unix/sysv/linux/i386/sigaction.h: Likewise.
1424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1428         * sysdeps/x86_64/dl-machine.h: Likewise.
1429         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1430         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1431         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1432         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1433         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
1434         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1435         * sysdeps/m68k/dl-machine.h: Likewise.
1436         * sysdeps/ia64/dl-machine.h: Likewise.
1437         * sysdeps/arm/dl-machine.h: Likewise.
1438         * sysdeps/alpha/dl-machine.h: Likewise.
1439         * generic/dl-fptr.c: Likewise.
1440         * mach/hurd/dl-sysdep.c: Likewise.
1441         * unix/sysv/linux/ia64/dl-static.c: Likewise.
1442         * unix/sysv/linux/ia64/getpagesize.c: Likewise.
1443         * unix/sysv/linux/m68k/getpagesize.c: Likewise.
1444         * unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1446 2004-03-04  Ulrich Drepper  <drepper@redhat.com>
1448         * sysdeps/generic/ldsodefs.h: Don't define _dl_name_match_p as inline.
1449         * elf/dl-misc.c: Define _dl_name_match_p here.
1450         * elf/dl-open.c (check_libc_caller): Don't use _dl_name_match_p.
1452         * elf/dl-open.c (dl_open_worker): Check that _dl_open is called
1453         from the right place.
1455 2004-01-15  Paolo Bonzini  <bonzini@gnu.org>
1457         * posix/regex.h (REG_STARTEND): Define.
1458         * posix/regexec.c (regexec): Check for REG_STARTEND.
1460 2004-02-29  Paolo Bonzini  <bonzini@gnu.org>
1462         * posix/regexec.c (transit_state): Don't handle state == NULL.
1463         Move state log and backreference management...
1464         (merge_state_with_log): ... to this function.
1465         (find_recover_state): New function.
1466         (check_matching): Use find_recover_state to get a non-NULL
1467         state when an invalid state is reached.  Compute the amount
1468         of initial characters to be skipped less conservatively when
1469         multi-byte character sets are in use.  Do not check
1470         dfa->nbackref if the state log is NULL.  Initialize err.
1471         (acquire_init_state_context): Expect err to be initialized.
1472         Fix spacing.
1474 2004-03-05  Jakub Jelinek  <jakub@redhat.com>
1476         * sysdeps/sparc/sparc32/elf/start.S: Handle PIEs.
1477         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1479 2004-03-04  Jakub Jelinek  <jakub@redhat.com>
1481         * iconv/iconv_prog.c (process_block): Handle omit_invalid.
1482         If iconv returns EILSEQ with omit_invalid, continue converting
1483         and return 1 if no other errors are seen.
1484         (main): Set status to EXIT_FAILURE whenever process_* returns
1485         nonzero, but only stop processing further files if iy returns
1486         negative value.
1488 2004-03-03  Jakub Jelinek  <jakub@redhat.com>
1490         * sysdeps/unix/sysv/linux/x86_64/posix_fadvise.c: New file.
1491         * sysdeps/unix/sysv/linux/x86_64/posix_fadvise64.c: New file.
1492         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1493         Remove.
1494         * sysdeps/unix/sysv/linux/alpha/posix_fadvise.c: New file.
1495         * sysdeps/unix/sysv/linux/alpha/posix_fadvise64.c: New file.
1496         * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64):
1497         Remove.
1498         * sysdeps/unix/sysv/linux/ia64/posix_fadvise.c: New file.
1499         * sysdeps/unix/sysv/linux/ia64/posix_fadvise64.c: New file.
1500         * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1501         Remove.
1502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: New file.
1503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: New
1504         file.
1505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Removed.
1506         * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise.c: New file.
1507         * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise64.c: New file.
1508         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1509         (posix_fadvise64): Remove.
1510         * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise.c: New file.
1511         * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise64.c: New file.
1512         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1513         (posix_fadvise64): Remove.
1515 2004-03-02  Andreas Schwab  <schwab@suse.de>
1517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/xstat.c: New file.
1518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstat.c: New file.
1519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lxstat.c: New file.
1521 2004-03-01  Ulrich Drepper  <drepper@redhat.com>
1523         * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization
1524         of return value.
1525         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1527         * sysdeps/unix/sysv/linux/kernel-features.h: Add support for
1528         __ASSUME_GETDENTS32_D_TYPE.
1529         * sysdeps/unix/sysv/linux/getdents.c: For 2.6.4+ kernels use
1530         getdents syscall again since it provides d_type information.
1532 2004-02-29  Andreas Jaeger  <aj@suse.de>
1534         * manual/install.texi (Tools for Compilation): Autoconf 2.53 is
1535         required.
1536         (Supported Configurations): Add x86_64-*-linux.
1538 2004-02-28  Ulrich Drepper  <drepper@redhat.com>
1540         * sysdeps/i386/i686/memcmp.S: Move table to .rodata.  Patch by HJ Lu.
1542 2004-02-27  Jakub Jelinek  <jakub@redhat.com>
1544         * elf/rtld.c (dl_main): Adjust l->l_ld of the vDSO by l->l_addr.
1545         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Only set
1546         GL(dl_sysinfo) if non-zero.
1548         * sysdeps/unix/sysv/linux/sysconf.c: Include stdlib.h.
1550 2004-02-26  Ulrich Drepper  <drepper@redhat.com>
1552         * nss/getXXbyYY_r.c: Pass result also to the nscd_* function.  Don't
1553         set *result here.
1554         * nscd/nscd_proto.h: Add new argument for pointer to result pointer
1555         to all nscd_* functions.
1556         * nscd/nscd_getgr_r.c (nscd_getgr_r): Add new parameter.  Store result
1557         pointer in the address provided by the new parameter if successful.
1558         Otherwise store NULL.  Return zero if no entry found.
1559         (__nscd_getgrnam_r, __nscd_getgrgid_r): Add new parameter and pass
1560         it on.
1561         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add new parameter.  Store
1562         result pointer in the address provided by the new parameter if
1563         successful. Otherwise store NULL.  Return zero if no entry found.
1564         (__nscd_gethostbyname_r, __nscd_gethostbyname2_r,
1565         __nscd_gethostbyaddr_r): Add new parameter and pass it on.
1566         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add new parameter.  Store result
1567         pointer in the address provided by the new parameter if successful.
1568         Otherwise store NULL.  Return zero if no entry found.
1569         (__nscd_getpwnam_r, __nscd_getpwuid_r): Add new parameter and pass
1570         it on.
1572 2004-02-26  Jakub Jelinek  <jakub@redhat.com>
1574         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set
1575         retval to -1 on error.
1577 2004-02-26  Ulrich Drepper  <drepper@redhat.com>
1579         * stdlib/canonicalize.c (__realpath): Simplify.
1581         * posix/regcomp.c (parse_expression): Avoid duplication in calls
1582         to build_charclass_op.
1584 2004-02-26  Jakub Jelinek  <jakub@redhat.com>
1586         * elf/rtld.c (dl_main): Correctly set up l_map_end and l_addr
1587         in vDSO's link_map, don't assume l_addr == 0.  Set GL(dl_sysinfo)
1588         from e_entry only if AT_SYSINFO not present and adjust by l_addr.
1589         Take vDSO into account when inserting rtld into _dl_loaded chain.
1591 2004-02-26  Ulrich Drepper  <drepper@redhat.com>
1593         * sunrpc/svcauth_des.c (authdes_getucred): Removed fixed limit on
1594         number of groups in the cache.  Relax the disconnect between the
1595         interface of authdes_getucred and netname2user a bit.
1596         * sunrpc/auth_unix.c (authunix_create_default): Don't allocate
1597         huge arrays on the stack.
1599         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Use the official
1600         not cancelable interfaces.
1602 2004-02-24  Arnold D. Robbins  <arnold@skeeve.com>
1604         * posix/regex_internal.c (build_wcs_upper_buffer): Enclose
1605         `offsets_needed' label in `#ifdef _LIBC' to silence `unused label'
1606         compiler warning.
1608 2004-02-24  Nelson H.F. Beebe  <beebe@math.utah.edu>
1610         * posix/regcomp.c (parse_expression): Add cast to (const unsigned
1611         char *) in calls to `build_charclass_op'.
1612         * posix/regex_internal.c (build_wcs_buffer): Add cast to char* in call
1613         to `wcrtomb'.
1614         * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
1615         bitset_mask, re_string_char_size_a, re_string_wchar_at,
1616         re_string_elem_size_at): Change to use prototypes.
1617         (re_string_char_size_at, re_string_wchar_at,
1618         re_string_elem_size_at): Declare as `internal_function'.
1620 2004-02-25  Ulrich Drepper  <drepper@redhat.com>
1622         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle
1623         _SC_NGROUPS_MAX.
1625 2004-02-23  Jakub Jelinek  <jakub@redhat.com>
1627         * wcsmbs/mbrtowc.c (__mbrtowc): Cap s + n at the end of address space.
1628         * stdlib/Makefile (tests): Add testmb2.
1629         (testmb2-ENV): New.
1630         * stdlib/testmb2.c: New test.
1632 2004-02-23  Jakub Jelinek  <jakub@redhat.com>
1634         * sysdeps/posix/getaddrinfo.c (gaih_inet): If _res has not been
1635         inited yet, try to init it before saving old _res.options.
1636         * posix/Makefile (xtests): Add bug-ga2.
1637         (generated): Add bug-ga2.mtrace and bug-ga2-mem.
1638         (xtests): Depend on bug-ga2-mem.
1639         ($(objpfx)bug-ga2-mem, bug-ga2-ENV): New.
1640         * posix/bug-ga2.c: New test.
1642 2004-02-22  Ulrich Drepper  <drepper@redhat.com>
1644         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Pop register
1645         content also in case of an overflow in the parameter.
1646         Reported by Momchil Velikov <velco@fadata.bg>.
1648 2004-02-21  Ulrich Drepper  <drepper@redhat.com>
1650         * elf/dynamic-link.h (elf_get_dynamic_info): Recognize DF_1_NOW.
1651         In ld.so, neither DT_FLAGS nor DT_FLAGS_1 must be used.
1653 2004-02-21  Andreas Jaeger  <aj@suse.de>
1655         * posix/bug-ga1.c: Include <string.h> for memset prototype.
1657         * elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue.
1659         * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as
1660         lvalue.
1662 2004-02-19  Carlos O'Donell  <carlos@baldric.uwo.ca>
1664         * sysdeps/generic/framestate.c [__USING_SJLJ_EXCEPTIONS__]
1665         (__frame_state_for): Set frame_State_for to abort if the compiler
1666         is using sjlj.
1667         * sysdeps/generic/unwind-dw2.c: Allow sjlj enabled compilers to
1668         build the code by removing __USING_SJLJ_EXCEPTIONS__ wrapper.
1670 2004-02-20  Alexandre Oliva  <aoliva@redhat.com>
1672         * resolv/Versions: Remove semicolon from the end of libresolv's
1673         GLIBC_2.3.2 version block.
1674         * Versions.def (libresolv): Add GLIBC_2.3.2.
1676 2004-02-19  Carlos O'Donell  <carlos@baldric.uwo.ca>
1678         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Fix order of fp
1679         status register loads.
1681 2004-02-20  Thorsten Kukuk  <kukuk@suse.de>
1683         * nscd/nscd.c (termination_handler): Use _exit instead of exit
1685 2004-02-20  Ulrich Drepper  <drepper@redhat.com>
1687         * nscd/nscd.c (main): Report fork errors.
1689         * dlfcn/dlsym.c: Get ld.so loading lock before the call into ld.so.
1690         * dlfcn/dlvsym.c: Likewise.
1691         * elf/dl-addr.c: Get loading lock while using _dl_loaded data.
1692         * elf/dl-fini.c: Likewise.
1693         Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
1695 2004-02-20  Jakub Jelinek  <jakub@redhat.com>
1697         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Add ulps for the
1698         2003-11-27 atan2 test.
1700         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Protect
1701         with #ifndef __powerpc64__.
1703         * sysdeps/generic/ldsodefs.h (_dl_argv, _dl_argv_internal): If
1704         DL_ARGV_NOT_RELRO defined, don't use attribute_relro.
1705         * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1706         * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1707         * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1708         * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1709         * sysdeps/alpha/dl-sysdep.h: New file.
1710         * sysdeps/ia64/dl-sysdep.h: New file.
1711         * sysdeps/sparc/dl-sysdep.h: New file.
1713 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
1715         * sysdeps/sparc/sparc32/bits/atomic.h: Add __make_section_unallocated
1716         for .gnu.linkonce.b.__sparc32_atomic_locks section.
1717         (__sparc32_atomic_locks): Add __sec_comment at the end of section name.
1719 2004-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
1721         * sysdeps/generic/libc-start.c [LIBC_START_DISABLE_INLINE] (STATIC):
1722         Define as static.
1723         * sysdeps/powerpc/elf/libc-start.c: Define LIBC_START_DISABLE_INLINE
1724         because gcc does not allow inline of functions that call setjmp.
1726 2004-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
1728         * sysdeps/powerpc/powerpc64/Makefile: Use -finline-limit.
1730 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
1732         * elf/rtld.c (_dl_argv): If DL_ARGV_NOT_RELRO defined, don't
1733         use attribute_relro for _dl_argv.
1734         * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1735         * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1736         * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1737         * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1739 2004-02-19  Ulrich Drepper  <drepper@redhat.com>
1741         * libio/iopopen.c (_IO_new_proc_open): It's not kosher to use
1742         vfork instead of fork.
1743         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
1745         * sysdeps/unix/clock_settime.c (clock_settime): Fix typo which
1746         prevented system-dependent handling from being used.
1748 2004-02-18  Carlos O'Donell  <carlos@baldric.uwo.ca>
1750         * test-skeleton.c (main): If set, use environment variable
1751         TIMEOUTFACTOR to scale test TIMEOUT.
1753 2004-02-18  Ulrich Drepper  <drepper@redhat.com>
1755         * nscd/nscd_conf.c: Include <stdio_ext.h>.
1757 2004-02-16  Ulrich Drepper  <drepper@redhat.com>
1759         * stdlib/test-canon.c (do_test): Test realpath(,NULL) in the loop
1760         as well.
1762         * stdlib/canonicalize.c (__realpath): Remove unnecessary copy
1763         operations.
1765         * nscd/nscd_conf.c (nscd_parse_file): Little optimization.
1767 2004-02-14  Thorsten Kukuk  <kukuk@suse.de>
1769         * nscd/dbg_log.c (set_logfile): Only save name of logfile,
1770         don't open it.
1771         (init_logfile): New function, open logfile if requested.
1772         * nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile.
1773         * nscd/nscd.c (main): Call init_logfile after forking in background.
1774         * nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile.
1776 2004-02-16  Ulrich Drepper  <drepper@redhat.com>
1778         * elf/rtld.c (dl_main): Don't fail execution if file named in
1779         ld.so.preload is not present [BZ #18].
1781         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended
1782         changes in last patch.
1784         * posix/regexec.c (transit_state): Fix typo in commented-out code
1785         [BZ #6].
1787         * sysdeps/posix/getaddrinfo.c (match_prefix): Correctly match
1788         partial bytes [BZ #24].
1789         * posix/Makefile (tests): Add bug-ga1.
1790         * posix/bug-ga1.c: New file.
1792 2004-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
1794         * sysdeps/powerpc/powerpc64/__longjmp-common.S: New file.
1795         * sysdeps/powerpc/powerpc64/__longjmp.S [NOT_IN_libc](__longjmp):
1796         Non-versioned __longjmp for rtld-__longjmp.
1797         [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
1798         default version of __longjmp.
1799         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
1800         (__novmx__longjmp): Original version of __longjmp.
1801         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
1802         Non-versioned _setjmp for rtld-_setjmp.
1803         [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
1804         as default version of _setjmp.
1805         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
1806         (__novmx_setjmp): Original version of _setjmp.
1807         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__vmxsetjmp): Branch to
1808         __vmx__sigsetjmp and define as default version of setjmp.
1809         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
1810         (__novmxsetjmp): Original version of setjmp.
1811         * sysdeps/powerpc/powerpc64/setjmp-common.S: New file.
1812         * sysdeps/powerpc/powerpc64/setjmp.S [NOT_IN_libc](__setjmp):
1813         Non-versioned __sigsetjmp for rtld-setjmp.
1814         [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
1815         as default version of __sigsetjmp.
1816         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
1817         (__novmx__sigsetjmp): Original version of __sigsetjmp.
1819         * sysdeps/powerpc/powerpc32/__longjmp-common.S: New File
1820         * sysdeps/powerpc/powerpc32/__longjmp.S [NOT_IN_libc](__longjmp):
1821         Non-versioned __longjmp for rtld-__longjmp.
1822         [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
1823         default version of __longjmp.
1824         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1825         (__novmx__longjmp): Original version of __longjmp.
1826         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
1827         Non-versioned _setjmp for rtld-_setjmp.
1828         [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
1829         as default version of _setjmp.
1830         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1831         (__novmx_setjmp): Original version of _setjmp.
1832         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__vmxsetjmp): Branch to
1833         __vmx__sigsetjmp and define as default version of setjmp.
1834         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1835         (__novmxsetjmp): Original version of setjmp.
1836         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: New file.
1837         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S [NOT_IN_libc](__longjmp):
1838         Non-versioned __longjmp for rtld-__longjmp.
1839         [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
1840         default version of __longjmp.
1841         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1842         (__novmx__longjmp): Original version of __longjmp.
1843         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: New file.
1844         * sysdeps/powerpc/powerpc32/fpu/setjmp.S [NOT_IN_libc](__setjmp):
1845         Non-versioned __sigsetjmp for rtld-setjmp.
1846         [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
1847         as default version of __sigsetjmp.
1848         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1849         (__novmx__sigsetjmp): Original version of __sigsetjmp.
1850         * sysdeps/powerpc/powerpc32/setjmp-common.S: New file.
1851         * sysdeps/powerpc/powerpc32/setjmp.S [NOT_IN_libc](__setjmp):
1852         Non-versioned __sigsetjmp for rtld-setjmp.
1853         [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
1854         as default version of __sigsetjmp.
1855         [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
1856         (__novmx__sigsetjmp): Original version of __sigsetjmp.
1858         * sysdeps/powerpc/Dist: New File.
1859         * sysdeps/powerpc/Makefile (sysdep_routines): Add novmx-longjmp.c
1860         and novmx-sigjmp.c
1861         * sysdeps/powerpc/Versions (libc): To GLIBC_2.3_4 add _longjmp,
1862         __sigsetjmp, _setjmp, longjmp, and setjmp. To GLIBC_PRIVATE add
1863         __novmx__libc_longjmp, __novmx__libc_siglongjmp, __vmx__libc_longjmp,
1864         and __vmx__libc_siglongjmp.
1865         * sysdeps/powerpc/bits/setjmp.h: Define JB_VRSAVE, JB_VRS, and adjust
1866         JB_SIZE to add VMX regs to __jmp_buf.
1867         * sysdeps/powerpc/longjmp.c: New file.
1868         * sysdeps/powerpc/novmxsetjmp.h: New file.
1869         * sysdeps/powerpc/novmx-longjmp.c: New file.
1870         * sysdeps/powerpc/novmx-sigjmp.c: New file.
1871         * sysdeps/powerpc/sigjmp.c: New file.
1873 2004-02-13  Jakub Jelinek  <jakub@redhat.com>
1875         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c (__lrintf, lrintf):
1876         Define.
1877         (__lrintl, lrintl): Remove.
1878         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c (__lrint): Fix a typo in
1879         strong_alias spelling.
1880         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: Remove.
1881         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: New file.
1883 2004-02-12  Ulrich Drepper  <drepper@redhat.com>
1885         * posix/getopt.h: Add some non-gcc support.  Patch by Aharon Robbins.
1887 2004-02-12  Mark Brown  <bmark@us.ibm.com>
1889         * sysdeps/ia64/fpu/e_fmodf.S: Added text of Intel license.
1891 2004-02-12  Jakub Jelinek  <jakub@redhat.com>
1893         * sysdeps/powerpc/fpu/s_lrint.c: Move to...
1894         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: ... here.
1895         * sysdeps/powerpc/fpu/s_llrint.c: Move to...
1896         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: ... here.
1897         * sysdeps/powerpc/fpu/s_llrintf.c: Move to...
1898         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: ... here.
1899         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
1900         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: New file.
1901         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: New file.
1903         * math/libm-test.inc (lrint_test): Add new test.
1904         (llrint_test, lround_test, llround_test): Likewise.
1905         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Fix special case
1906         with result taking up 48 bits.
1907         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1908         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
1909         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Fix special case
1910         with result taking up 31 bits.
1912 2004-02-12  Ulrich Drepper  <drepper@redhat.com>
1914         * locale/programs/locale.c (show_locale_vars): Don't print a value
1915         for LANG if it is not set.
1917 2004-02-11  Jakub Jelinek  <jakub@redhat.com>
1919         * posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0.
1920         (find_collation_sequence_value): Don't look beyond end of
1921         SYMB_EXTRAMB table.
1922         * posix/Makefile (tests): Add bug-regex23.
1923         (bug-regex23-ENV): New.
1924         * posix/bug-regex23.c: New file.
1926 2004-02-10  Roland McGrath  <roland@frob.com>
1928         * sysdeps/mach/hurd/times.c (__times): Use union instead of cast.
1929         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise.
1931         * sysdeps/mach/hurd/configure.in: Move `retcode' check to ...
1932         * sysdeps/mach/configure.in: ... here.
1933         * sysdeps/mach/hurd/configure: Regenerated.
1934         * sysdeps/mach/configure.in: Regenerated.
1936 2004-02-10  Ulrich Drepper  <drepper@redhat.com>
1938         * sysdeps/generic/setenv.c (__add_to_environ): Don't let the
1939         temporary copies of the variables accumulate on the stack.
1941         * stdio-common/_i18n_number.h: Finish last patch.
1943 2004-02-09  Ulrich Drepper  <drepper@redhat.com>
1945         * sysdeps/i386/i686/memcmp.S: New file.  Patch by HJ Lu.
1947 2003-12-05  Roland McGrath  <roland@redhat.com>
1949         * sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old
1950         for vm86@GLIBC_2.0 version.  Add new vm86@GLIBC_2.3.4.
1951         * sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.4): Add vm86.
1952         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype.
1954 2004-02-09  Ulrich Drepper  <drepper@redhat.com>
1956         * nis/ypclnt.c: Cleanup last patch.
1958 2004-02-09  Andreas Jaeger  <aj@suse.de>
1960         * configure.in: Remove glibcbug creation.
1961         * configure: Regenerated.
1963         * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes.
1965 2004-02-03  Thorsten Kukuk  <kukuk@suse.de>
1967         * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
1968         of duplicated code from __yp_bind.
1969         (__yp_bind_file): New, binding dir code from __yp_bind.
1970         (__yp_bind_client_create): New, ypbind code from __yp_bind.
1971         (__ypclnt_call): New, make NIS query.
1972         (do_ypcall): At first use cached data, then try data from
1973         binding directory, after this ask ypbind for a working ypserv.
1974         Based on a patch from Jeff Bastian <jmbastia@ti.com> and
1975         Chris Barrera <cbarrera@ti.com>
1977 2004-01-19  Roland McGrath  <roland@redhat.com>
1979         * configure.in: Don't set CCVERSION.
1980         * configure: Regenerated.
1981         * glibcbug.in: File removed.
1982         * Makefile (install-bin-script): Remove glibcbug.
1983         (glibcbug): Target removed.
1984         (distclean-1): Don't rm glibcbug.
1985         (distribute): Remove glibcbug.in.
1987 2004-02-09  Roland McGrath  <roland@redhat.com>
1989         * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
1990         24, not 23.
1992 2004-01-29  Roland McGrath  <roland@redhat.com>
1994         * io/ftwtest-sh: Use $tmp consistently, not literal /tmp.
1995         Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
1997 2004-02-09  Ulrich Drepper  <drepper@redhat.com>
1999         * libio/genops.c (_IO_cleanup): Do not use locking when flushing
2000         the buffers.  Some thread might be using a stream.
2002 2004-02-09  Andreas Jaeger  <aj@suse.de>
2004         * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7].
2005         Patch by Jan Beulich <jbeulich@novell.com>.
2007 2004-02-09  Andreas Schwab  <schwab@suse.de>
2009         * include/rpc/rpc.h: Declare thread variables with their correct type.
2010         * sunrpc/clnt_perr.c: Don't cast thread variables.
2011         * sunrpc/clnt_raw.c: Likewise.
2012         * sunrpc/clnt_simp.c: Likewise.
2013         * sunrpc/key_call.c: Likewise.
2014         * sunrpc/svcauth_des.c: Likewise.
2015         * sunrpc/svc.c: Likewise.
2016         * sunrpc/svc_raw.c: Likewise.
2017         * sunrpc/svc_simple.c: Likewise.
2019 2004-02-09  Ulrich Drepper  <drepper@redhat.com>
2021         * stdio-common/_i18n_number.h: Support printing localized decimal
2022         point and thousand separator.
2023         * wctype/wctrans.c: Add __wctrans alias.
2024         * include/wctype.h: Declare __wctrans.
2025         Based on a patch by Hamed Malek.
2027         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
2028         other than the status bits [BZ #10].
2030 2004-02-08  Ulrich Drepper  <drepper@redhat.com>
2032         Make stream locking operations really work.
2033         * misc/Makefile (CFLAGS-mntent_r.c): Define.
2034         * shadow/Makefile (CFLAGS-fgetspent_r.c): Define.
2035         (CFLAGS-putspent.c): Define.
2036         * grp/Makefile (CFLAGS-fgetgrent_r.c): Define.
2037         (CFLAGS-putgrent.c): Define.
2038         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define.
2039         Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
2041         * elf/dl-load.c (lose): Use noinline attribute instead of silly
2042         alloca to prevent inlining.
2043         * elf/dl-runtime.c (fixup): Likewise.
2044         (profile_fixup): Likewise.
2046         * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11.
2047         Initialize width correctly.
2049 2004-02-07  Andreas Jaeger  <aj@suse.de>
2051         * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as
2052         lvalue.
2053         (internal_ucs4le_loop_single): Likewise.
2054         (ucs4_internal_loop): Likewise.
2055         (BODY): Likewise.
2056         (internal_ucs4_loop_single): Likewise.
2057         * iconvdata/iso8859-1.c (BODY): Likewise.
2058         * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise.
2059         * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise.
2060         * iconvdata/gb18030.c (BODY): Likewise.
2061         * iconvdata/armscii-8.c (BODY): Likewise.
2062         * stdlib/msort.c (msort_with_tmp): Likewise.
2064         * iconv/gconv_open.c (__gconv_open): Remove conditional expression
2065         as lvalue.
2067 2004-02-06  Steven Munroe  <sjmunroe@us.ibm.com>
2069         * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as
2070         weak extern.
2071         (__elf_machine_runtime_setup): Invalidate the instruction cache over
2072         the whole range of the PLT.
2074 2004-02-06  Andreas Schwab  <schwab@suse.de>
2076         * posix/regcomp.c (build_range_exp): Fix off-by-one.
2077         (parse_bracket_exp): Likewise.
2079 2004-02-05  Ulrich Drepper  <drepper@redhat.com>
2081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define
2082         _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC.  Patch by Anton Blanchard.
2084 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
2086         * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter.
2087         (re_search_internal): Pass new parameter to check_matching.
2088         (check_matching): Unless a parenthesized group is found at the
2089         beginning of the regexp, advance P_MATCH_FIRST until we entered
2090         a state different from the initial state.
2092 2004-02-01  Ulrich Drepper  <drepper@redhat.com>
2094         * math/libm-test.inc (lround_test): Add new test.
2095         (llround_test): Likewise.
2096         (lrint_test): Likewise.
2097         (llrint_test): Likewise.
2098         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case
2099         with result taking up 20 bits.
2100         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
2101         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise..
2102         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special
2103         case with result taking up 31 bits.
2104         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
2106         * po/nl.po: Update from translation team.
2108 2004-01-30  Andreas Schwab  <schwab@suse.de>
2110         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
2111         FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
2112         SEGV_PSTKOVF): Remove underscore prefix from definition.
2114 2004-01-28  Paolo Bonzini  <bonzini@gnu.org>
2116         Merge regex changes in gawk.
2117         * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
2118         of collation elements.
2119         * posix/regex.c: Include limits.h.
2120         * posix/regex.h: Document REG_ECOLLATE correctly.
2121         * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
2123 2004-01-24  Andreas Jaeger  <aj@suse.de>
2125         * malloc/obstack.h: Import gnulib version.
2126         * malloc/obstack.c: Likewise.
2128 2004-01-26  David Mosberger  <davidm@hpl.hp.com>
2130         * elf/link.h (struct dl_phdr_info): Fix typo in comment.
2131         * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
2132         increment dl_load_adds.
2133         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
2134         with equivalent GL(dl_load_adds - GL(dl_nloaded).
2135         (dl_iterate_phdr): Likewise.
2136         * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
2137         * elf/dl-support.c: Remove global variable _dl_load_subs.
2138         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2139         _dl_load_subs member.
2141 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
2143         * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
2144         (_dl_start): And neither here.
2145         (dl_main): Set GL(dl_loaded)->l_relro_* and
2146         GL(dl_rtld_map)->l_relro_*.
2148 2004-01-23  David Mosberger  <davidm@hpl.hp.com>
2150         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
2151         _dl_load_adds and _dl_load_subs.
2152         * elf/dl-support.c (_dl_load_adds): New variable.
2153         (_dl_load_subs): Likewise.
2154         * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
2155         * elf/dl-close.c (_dl_close): Increment dl_load_subs.
2156         * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
2157         dlpi_subs.
2158         * include/link.h: Likewise.
2159         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
2160         and dlpi_subs members.
2161         (dl_iterate_phdr): Likewise.
2162         * elf/tst-dlmodcount.c: New file.
2163         * elf/Makefile (distribute): Mention tst-dlmodcount.c.
2164         (tests): If build-shared, mention tst-dlmodcount.
2165         ($(objpfx)tst-dlmodcount): If build-shared, build and
2166         run tst-dlmodcount.
2168 2004-01-22  Jakub Jelinek  <jakub@redhat.com>
2170         * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
2171         into...
2172         (_dl_protect_relro): New routine.
2173         * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
2174         * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
2175         from bootstrap_map.
2176         (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
2177         Call _dl_protect_relro for libraries if prelinking.
2179 2004-01-23  Richard Henderson  <rth@redhat.com>
2181         * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
2182         * sysdeps/alpha/fpu/Versions (libm): Likewise.
2183         * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
2184         * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
2186 2004-01-22  Andreas Jaeger  <aj@suse.de>
2188         * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
2189         avoid warnings for builtin function log2.
2191         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
2192         information.
2194 2004-01-20  Ulrich Drepper  <drepper@redhat.com>
2196         * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
2197         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2198         Patch by Davide Libenzi.
2200         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2201         __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
2203         * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
2205         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
2206         instead of loff_t.  Include <fcntl.h>.
2207         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
2208         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
2209         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
2210         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
2211         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2212         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2213         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
2214         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2215         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2216         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2217         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2218         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2220         * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
2222         * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
2224 2003-12-31  Bruno Haible  <bruno@clisp.org>
2226         * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
2227         Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
2228         (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
2229         (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
2230         (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
2231         0x00 0x20. Don't map U+2500..U+25E3.
2233 2004-01-19  Jakub Jelinek  <jakub@redhat.com>
2235         * posix/regexec.c (get_subexp): Remove bkref_str variable.
2236         Extend buffers if needed before comparisons.
2237         (get_subexp_sub): Handle clean_state_log_if_needed failure.
2239 2004-01-17  Ulrich Drepper  <drepper@redhat.com>
2241         * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
2242         atomic_decrement.  Patch by Davin McCall.
2244 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
2246         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
2247         (__sim_disabled_exceptions, __sim_round_mode): Declare with
2248         hidden data and nocommon.
2249         * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
2250         (__sim_disabled_exceptions, __sim_round_mode): Use
2251         libc_hidden_proto.
2252         * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
2253         (__sim_disabled_exceptions, __sim_round_mode): Likewise.
2255 2004-01-16  Ulrich Drepper  <drepper@redhat.com>
2257         * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
2258         PT_IA_64_HP_STACK.
2260 2004-01-16  Richard Henderson  <rth@redhat.com>
2262         * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
2263         (__libc_enable_secure_internal): Likewise.
2265         * elf/dl-load.c: Don't declare __libc_stack_end.
2266         * sysdeps/generic/libc-start.c: Likewise.
2267         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
2268         * sysdeps/generic/segfault.c: Likewise.  Include ldsodefs.h.
2269         * sysdeps/generic/backtrace.c: Likewise.
2271 2004-01-15  Ulrich Drepper  <drepper@redhat.com>
2273         * Versions.def: Add GLIBC_2.3.4.
2275 2004-01-15  Richard Henderson  <rth@redhat.com>
2277         * sysdeps/unix/alpha/sysdep.h: Revert last change.
2279 2004-01-15  Richard Henderson  <rth@redhat.com>
2281         * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
2283         * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
2284         !samegp relocation.
2286 2004-01-15  Richard Henderson  <rth@redhat.com>
2288         * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
2289         ucontext-offsets.sym.
2290         * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
2291         * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
2292         * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
2293         * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
2294         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
2296 2004-01-15  Richard Henderson  <rth@redhat.com>
2298         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
2299         __syscall_, move nop inside, adjust users by +4.
2301 2004-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
2303         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
2304         (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
2305         (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
2306         symbols.
2307         * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
2308         gen-as-const-headers.
2309         * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
2310         * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
2311         Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
2312         * sysdeps/unix/sysv/linux/kernel-features.h
2313         (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
2314         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
2315         Declare mcontext_t inline and include altivec state for 64-bit.
2316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
2317         versions for setcontext, getcontext, and swapcontext.
2319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
2320         versions for setcontext, getcontext, swapcontext, and makecontext.
2321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2322         (__getcontext):  Upgrade to save Altivec regs and version GLIBC_2_3_4.
2323         [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
2324         Compatible with GLIBC_2.3.3 release.
2325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2326         (__makecontext): Use parm save area instead of compiler_dw to hold
2327         context pointer.
2328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2329         (__setcontext):  Upgrade to restore Altivec regs and version
2330         GLIBC_2_3_4.
2331         [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
2332         Compatible with GLIBC_2.3.3 release.
2333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2334         (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
2335         [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
2336         Compatible with GLIBC_2.3.3 release.
2337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
2338         (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
2340 2004-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
2342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
2343         versions for setcontext, getcontext, swapcontext, and makecontext.
2344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2345         (__getcontext):  Upgrade to save Altivec regs and version GLIBC_2_3_4.
2346         [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
2347         Compatible with GLIBC_2.3.3 release.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
2349         (__makecontext): Upgrade to align for Altivec regs and version
2350         GLIBC_2_3_4.
2351         [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
2352         Compatible with GLIBC_2.3.3 release.
2353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2354         (__setcontext):  Upgrade to restore Altivec regs and version
2355         GLIBC_2_3_4.
2356         [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
2357         Compatible with GLIBC_2.3.3 release.
2358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2359         (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
2360         [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
2361         (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
2362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
2363         (_UC_VSCR, _UC_VRSAVE): Define.
2364         (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
2365         _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
2367 2004-01-15  Ulrich Drepper  <drepper@redhat.com>
2369         * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
2371 2004-01-16  Alfred M. Szmidt  <ams@kemisten.nu>
2373         * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
2374         parameter type.
2376 2004-01-15  Ulrich Drepper  <drepper@redhat.com>
2378         * elf/elf.h: Fix typo in comment.
2380         * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
2381         * elf/rtld.c: Initialize _dl_argv to allow aliasing.
2383         * resolv/resolv.h: Add RES_USEBSTRING.
2384         * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
2385         RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
2386         * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
2387         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
2388         bytestring IPv6 lookup with RES_USEBSTRING option is selected.
2389         Otherwise use the two nibble formats.
2391 2004-01-14  Ulrich Drepper  <drepper@redhat.com>
2393         * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
2394         * config.h.in: Add entry for HAVE_Z_RELRO.
2395         * include/libc-symbols.h: Define attribute_relro.
2396         * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
2397         max_capstrlen, and max_dirnamelen definitions.
2398         * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
2399         load_time, start_time, library_path, preloadlist, version_info,
2400         any_debug.
2401         Remove rtld_total_time.  Make it a local variable.  Pass pointer to
2402         it to print_statistics.  Change print_statistics accordingly.
2403         * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv.  Use
2404         attribute_relro instead of explicitly assigning variable to the
2405         .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
2406         * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
2407         _dl_argv, _dl_argv_internal with attribute_relro.
2409 2004-01-13  Segher Boessenkool  <boessen@de.ibm.com>
2411         * Makerules (gen-as-const): Don't silently continue on failure.
2413 2004-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
2415         * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
2416         rtld_hidden_data_def.
2418 2004-01-14  Ulrich Drepper  <drepper@redhat.com>
2420         * libio/libio.h: Add const to function tables types.
2421         * libio/libioP.h: Likewise.
2422         * login/utmp-private.h: Likewise.
2423         * libio/fileops.c: Add const to jump table variable definition.
2424         * libio/genops.c: Likewise.
2425         * libio/iofopncook.c: Likewise.
2426         * libio/iopopen.c: Likewise.
2427         * libio/memstream.c: Likewise.
2428         * libio/obprintf.c: Likewise.
2429         * libio/oldfileops.c: Likewise.
2430         * libio/oldiopopen.c: Likewise.
2431         * libio/strops.c: Likewise.
2432         * libio/vsnprintf.c: Likewise.
2433         * libio/vswprintf.c: Likewise.
2434         * libio/wfileops.c: Likewise.
2435         * libio/wstrops.c: Likewise.
2436         * login/getutent_r.c: Likewise.
2437         * login/getutid_r.c Likewise.
2438         * login/getutline_r.c: Likewise.
2439         * sysdeps/generic/utmp_file.c: Likewise.
2441 2004-01-09  Bruno Haible  <bruno@clisp.org>
2443         * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
2444         * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
2445         (_nl_load_domain): Treat major revision 1 like major revision 0.
2447 2004-01-11  Bruno Haible  <bruno@clisp.org>
2449         * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
2450         width or precision has been seen.
2452 2004-01-08  Bruno Haible  <bruno@clisp.org>
2454         * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
2455         dependent segment not known to this version of the library, ignore
2456         the string pair instead of crashing.
2458 2004-01-13  Ulrich Drepper  <drepper@redhat.com>
2460         * configure.in: Rewrite test to give gcc to clean up after itself.
2461         Patch by Greg Schafer.
2463         * posix/regex.c: Support crappy compilers and platforms which have
2464         problems with alloca.
2465         * posix/regex_internal.h: Likewise.
2466         Patch by Paolo Bonzini.
2468 2004-01-12  Paolo Bonzini  <bonzini@gnu.org>
2470         * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
2471         Drop code to support this, it is never true.
2472         (build_range_exp) [!_LIBC]: Do not create a range
2473         in MBCSET for a single-byte character set.
2474         (build_range_exp) [_LIBC]: Do not create a range
2475         in MBCSET for a single-byte character set without
2476         collation elements.
2477         (init_dfa): Do not conditionalize on _LIBC, it
2478         just makes the code less clear.
2479         (parse_bracket_exp): Use NON_MATCH variable in
2480         addition to "mbcset->non_match", not as an
2481         alternative.
2482         (build_charclass_op): rename NOT parameter to
2483         NON_MATCH, use it instead of declaring a variable.
2484         (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
2485         if the character set is single-byte.
2487 2004-01-14  Jakub Jelinek  <jakub@redhat.com>
2489         * posix/regcomp.c (peek_token_bracket): Check remaining
2490         string length before re_string_peek_byte (x, 1).
2491         (parse_bracket_symbol): Likewise.
2492         * posix/regex_internal.h (re_string_is_single_byte_char): Return
2493         true at last byte in the string.
2494         * posix/bug-regex22.c (main): Add new test.
2496 2004-01-13  Ulrich Drepper  <drepper@redhat.com>
2498         * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
2499         .data.rel.ro.
2501         * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
2503         * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
2504         * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
2505         rtld_hidden_def and move into .data.rel.ro section.
2506         * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
2507         rtld_hidden_proto.
2508         * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
2509         if !SHARED.
2511 2004-01-13  Richard Henderson  <rth@redhat.com>
2513         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
2515 2004-01-13  Ulrich Drepper  <drepper@redhat.com>
2517         * sysdeps/unix/sysv/linux/dl-execstack.c
2518         (_dl_make_stack_executable): Move common code in front.  Use
2519         __builtin_expect.
2521         * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface.  Add
2522         challenge for caller.
2523         * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
2524         member in rtld_global appropriately.
2525         * elf/dl-support.c: Likewise.
2526         * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
2527         Pass it on to the changed function.
2528         (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
2530 2004-01-13  Richard Henderson  <rth@redhat.com>
2532         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
2533         Cast old up to uint64_t before back down to inner width.
2534         (__arch_compare_and_exchange_xxx_16_int): Likewise.
2535         (__arch_compare_and_exchange_xxx_32_int): Likewise.
2536         (__arch_compare_and_exchange_xxx_64_int): Likewise.
2537         (__arch_compare_and_exchange_val_8_int): Cast result to
2538         the type of the memory.
2539         (__arch_compare_and_exchange_val_16_int): Likewise.
2540         (__arch_compare_and_exchange_val_32_int): Likewise.
2541         (__arch_compare_and_exchange_val_64_int): Likewise.
2542         (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
2543         (atomic_compare_and_exchange_bool_rel): Likewise.
2545         * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
2546         based on HAVE___THREAD instead of USE_TLS.
2548         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
2549         (__adjtimex_tv64): Use it.
2551         * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
2552         to void* rather than directly to the compatibility structure type.
2553         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
2555         * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
2556         Forward declare.
2558 2004-01-13  Richard Henderson  <rth@redhat.com>
2560         * Versions.def (libm): Add GLIBC_2.3.3.
2561         * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
2562         * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
2563         sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
2564         sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
2565         sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
2566         sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
2567         sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
2568         sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
2569         sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
2570         sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
2571         sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
2572         sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
2573         sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
2574         * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
2575         functions for gcc 3.3.
2577         * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
2578         sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
2579         sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
2580         sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
2581         sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
2582         sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
2583         sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
2584         sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
2585         sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
2586         weak_alias if the function name has been #defined.
2588         * math/cabsf.c: Move ...
2589         * sysdeps/generic/cabsf.c: ... here.
2590         * math/cargf.c: Move ...
2591         * sysdeps/generic/cargf.c: ... here.
2592         * math/cimagf.c: Move ...
2593         * sysdeps/generic/cimagf.c: ... here.
2594         * math/conjf.c: Move ...
2595         * sysdeps/generic/conjf.c: ... here.
2596         * math/crealf.c: Move ...
2597         * sysdeps/generic/crealf.c: ... here.
2599 2004-01-13  Ulrich Drepper  <drepper@redhat.com>
2601         * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes.  Add it to
2602         LDFLAGS.so and LDFLAGS-rtld.
2603         (+link): Add relro-LDFLAGS.
2604         * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
2605         __libc_thread_subfreeres sections after .jcr section.
2606         * config.make.in: Add have-z-relro.
2607         * configure.in: Add check for -z relro option.
2608         * include/link.h (struct link_map): Add relro_addr and relro_size
2609         members.
2610         * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
2611         * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
2612         part of loaded segments read-only.
2613         * elf/elf.h: Define PT_GNU_RELRO.
2614         * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
2615         (dl_main): Recognize PT_GNU_RELRO of the application.  Call
2616         _dl_debug_initialize and initialize l_info[DT_DEBUG] before
2617         relocations.
2619 2004-01-12  Jakub Jelinek  <jakub@redhat.com>
2621         * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
2623 2004-01-11  Andreas Jaeger  <aj@suse.de>
2625         * sysdeps/x86_64/__longjmp.S: Add cfi directives.
2627 2004-01-10  Andreas Jaeger  <aj@suse.de>
2629         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
2630         * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
2631         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2632         * sysdeps/x86_64/strcspn.S: Likewise.
2633         * sysdeps/x86_64/strspn.S: Likewise.
2635 2004-01-08  Jakub Jelinek  <jakub@redhat.com>
2637         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
2638         right before syscall and cfi_startproc before PSEUDO_END.
2639         Clear %rbp in thread_start.
2641 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
2643         * posix/regcomp.c (regcomp): Fix comment typo.
2644         (regfree): Free preg->translate, clear buffer, allocated, fastmap
2645         and translate fields.
2647         * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
2648         argument to unsigned RE_TRANSLATE_TYPE.
2649         * posix/regex_internal.h (re_string_t): Change trans type to
2650         unsigned RE_TRANSLATE_TYPE.
2651         * posix/regex_internal.c (re_string_construct_common): Cast
2652         trans to unsigned RE_TRANSLATE_TYPE.
2653         (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
2654         path if pstr->trans.  Never translate the character through
2655         pstr->trans.
2656         * posix/Makefile (tests): Add bug-regex22.
2657         (bug-regex22-ENV): Set.
2658         * posix/bug-regex22.c: New test.
2660 2004-01-02  Paolo Bonzini  <bonzini@gnu.org>
2662         * posix/regex_internal.c (re_node_set_add_intersect,
2663         re_node_set_merge): Rewritten.
2664         (re_node_set_insert, re_node_set_remove_at):
2665         Avoid memmove, we know what direction we should copy and that we
2666         are copying 32-bit words.
2667         (re_node_set_compare): Iterate backwards.
2669 2003-12-30  Paul Eggert  <eggert@twinsun.com>
2671         * time/mktime.c (verify): New macro.
2672         (time_t_is_integer, twos_complement_arithmetic,
2673         right_shift_propagates_sign, base_year_is_a_multiple_of_100,
2674         C99_integer_division): Document these longstanding assumptions in the
2675         code, and verify them at compile-time.
2677 2004-01-02  Jakub Jelinek  <jakub@redhat.com>
2679         * posix/regex_internal.h (re_match_context_t): Add dfa member.
2680         * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
2681         match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
2682         prune_impossible_nodes, check_halt_state_context, proceed_next_node,
2683         sift_states_backward, update_cur_sifted_state, check_dst_limits,
2684         check_dst_limits_calc_pos, sift_states_bkref, transit_state,
2685         check_subexp_matching_top, transit_state_sb, transit_state_mb,
2686         transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
2687         check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
2688         Remove dfa parameter.  Get dfa from mctx.  Adjust callers.
2689         (re_search_internal): Initialize mctx.dfa.
2691         * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
2693         * posix/regex_internal.h (re_dfa_t): Add syntax field.
2694         * posix/regcomp.c (parse): Initialize dfa->syntax.
2695         * posix/regexec.c (acquire_init_state_context,
2696         prune_impossible_nodes, check_matching, check_halt_state_context,
2697         proceed_next_node, sift_states_iter_mb, sift_states_backward,
2698         update_cur_sifted_state, sift_states_bkref, transit_state,
2699         transit_state_sb, transit_state_mb, transit_state_bkref,
2700         get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
2701         build_trtable): Remove preg argument, add dfa argument instead
2702         and remove dfa = preg->buffer initialization in the body.
2703         Adjust all callers.
2704         (check_node_accept_bytes, group_nodes_into_DFAstates,
2705         check_node_accept): Likewise.  Use dfa->syntax instead of
2706         preg->syntax.
2707         (check_arrival_add_next_nodes): Remove preg argument.
2709         * posix/regex_internal.h (re_match_context_t): Make input
2710         re_string_t instead of a pointer to it.
2711         * posix/regex_internal.c (re_string_construct_common): Don't clear
2712         pstr here...
2713         (re_string_construct): ... but only here.
2714         * posix/regexec.c (match_ctx_init): Remove input argument.  Don't
2715         initialize fields to zero.
2716         (re_search_internal): Move input into mctx.input.
2717         (acquire_init_state_context, check_matching,
2718         check_halt_state_context, proceed_next_node,
2719         clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
2720         transit_state, transit_state_sb, transit_state_mb,
2721         transit_state_bkref, get_subexp, check_arrival,
2722         check_arrival_add_next_nodes, check_node_accept, extend_buffers):
2723         Change mctx->input into &mctx->input and mctx->input->field into
2724         mctx->input.field.
2726 2004-01-02  Jakub Jelinek  <jakub@redhat.com>
2727             Paolo Bonzini  <bonzini@gnu.org>
2729         * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
2730         (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
2731         (re_dfa_t): Change word_char type to bitset.  Add word_ops_used field.
2732         (re_string_context_at, re_string_reconstruct): Remove last argument.
2733         * posix/regex_internal.c (re_string_allocate): Initialize
2734         pstr->word_char and pstr->word_ops_used.
2735         (re_string_context_at): Remove newline_anchor argument.
2736         Use input->newline_anchor instead, swap && conditions.
2737         Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
2738         Use input->word_char bitmap instead of IS_WORD_CHAR.
2739         (re_string_reconstruct): Likewise.
2740         Adjust re_string_context_at caller.
2741         * posix/regexec.c (acquire_init_state_context,
2742         check_halt_state_context, transit_state, transit_state_sb,
2743         transit_state_mb, transit_state_bkref, check_arrival,
2744         check_node_accept): Adjust re_string_context_at and
2745         re_string_reconstruct callers.
2746         (re_search_internal): Likewise.  Set input.newline_anchor.
2747         (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
2748         * posix/regcomp.c (init_word_char): Change return type to void.
2749         Set dfa->word_ops_used.
2750         (free_dfa_content): Don't free dfa->word_char.
2751         (parse_expression): Remove error handling for init_word_char.
2753 2004-01-01  Paolo Bonzini  <bonzini@gnu.org>
2755         * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
2756         bitfield.
2758         * posix/regex_internal.c (re_node_set_insert):  Rewrite.
2760 2004-01-01  Ulrich Drepper  <drepper@redhat.com>
2762         * posix/getconf.c: Update copyright year.
2763         * nss/getent.c: Likewise.
2764         * nscd/nscd_nischeck.c: Likewise.
2765         * iconv/iconvconfig.c: Likewise.
2766         * iconv/iconv_prog.c: Likewise.
2767         * elf/ldconfig.c: Likewise.
2768         * catgets/gencat.c: Likewise.
2769         * csu/version.c: Likewise.
2770         * elf/ldd.bash.in: Likewise.
2771         * elf/sprof.c (print_version): Likewise.
2772         * locale/programs/locale.c: Likewise.
2773         * locale/programs/localedef.c: Likewise.
2774         * nscd/nscd.c (print_version): Likewise.
2775         * debug/xtrace.sh: Likewise.
2776         * malloc/memusage.sh: Likewise.
2777         * malloc/mtrace.pl: Likewise.
2779 2004-01-01  Petter Reinholdtsen  <pere@hungry.com>
2781         * stdlib/strfmon.c: Make formatting of left-justified currency
2782         values match the the POSIX standard.  When using format string
2783         "[%-14#5.4n]" to print -123.45, the result should be
2784         "[-$   123.4500 ]", not "[-$123.4500    ]".
2786 2004-01-01  Andreas Jaeger  <aj@suse.de>
2788         * resolv/Makefile (generated): New.
2790 2003-12-31  Joseph S. Myers  <jsm@polyomino.org.uk>
2792         * CONFORMANCE: Update.
2794 2003-12-30  Paul Eggert  <eggert@twinsun.com>
2796         * time/mktime.c: (my_mktime_localtime_r):
2797         Remove.  All uses changed to __localtime_r.
2798         (__localtime_r) [!defined _LIBC]: New macro.  Include "time_r.h" to
2799         get its implementation.
2800         Fix compile-command to allow for TIME_R_POSIX.
2802         * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
2803         Remove.  All uses changed to __localtime_r and __gmtime_r.
2804         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
2805         Include "time_r.h" to get their implementations.
2807         * time/timegm.c: Allow use in GNU applications outside glibc.
2808         [defined HAVE_CONFIG_H]: Include <config.h>.
2809         [!defined _LIBC]: Include "timegm.h", <time_r.h>.
2810         Define __gmtime_r, and declare __mktime_internal.
2811         (timegm): Define via a prototype, since we can safely assume C89 now.
2813         * time/mktime.c (check_result): Use less-confusing report format.
2814         "long" -> "long int", as per usual GNU style.
2815         (main): Likewise.
2816         Don't loop if the iteration overflows time_t.
2817         Allow a negative step in the iteration.
2819         * time/mktime.c: Assume freestanding C89 or better.
2820         (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
2821         assume they're 1.
2822         (__P): Remove; not used.
2823         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
2824         (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
2825         Prototypes use const * where appropriate.
2826         (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
2827         which caused the testing code to dump core on some hosts.
2829 2003-12-31  Ulrich Drepper  <drepper@redhat.com>
2831         * locale/setlocale.c (setlocale): Avoid duplicating locale names
2832         if we can reuse old strings.
2834         * inet/rcmd.c: Provide better error message in case of unknown
2835         host.  Remove USE_IN_LIBIO.
2837         * nscd/nscd.init: Updated version, more conforming with current
2838         init file standards.
2840         * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
2841         /var/run/nscd directory.
2842         (_PATH_NSCDSOCKET): Likewise.
2844         * test-skeleton.c (timeout_handler): Fix error message.
2846         * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
2847         CNT == 0.
2849 2003-12-30  Jakub Jelinek  <jakub@redhat.com>
2851         * posix/regexec.c (get_subexp): Only set bkref_str after the first
2852         loop, use buf + bkref_str_off in the loop instead.
2853         * posix/bug-regex11.c (tests): Add 3 new tests.
2855         * posix/regexec.c (clean_state_log_if_need): Rename to...
2856         (clean_state_log_if_needed): ...this.
2857         (transit_state_mb, get_subexp_sub): Adjust callers.
2859         * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
2860         failed.  Reported by Steve Grubb.
2862 2003-12-29  Ulrich Drepper  <drepper@redhat.com>
2864         * elf/elf.h: Add a few definitions from Solaris 9.
2866 2003-12-29  Andreas Schwab  <schwab@suse.de>
2868         * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
2869         $(fno_unit_at_a_time) to avoid reordering assembler output.
2871 2003-12-29  Jakub Jelinek  <jakub@redhat.com>
2873         * posix/regexec.c (re_copy_regs): Revert comment change.
2874         Avoid memory leak if realloc fails.
2875         (proceed_next_node): Return -2 if re_node_set_insert fails.
2876         Return -2 if push_fail_stack fails.
2877         (push_fail_stack): Change fs->alloc only after successful realloc.
2878         (pop_fail_stack): Formatting.
2879         (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
2880         (check_arrival_add_next_nodes): Merge identical statements
2881         from if branches.
2883         * signal/Makefile (tests): Add tst-raise.
2884         * signal/tst-raise.c: New test.
2886 2003-12-28  Ulrich Drepper  <drepper@redhat.com>
2888         * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
2890         * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
2891         (push_fail_stack): Add missing check for failed memory allocation.
2893         * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
2894         _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
2895         _IO_putwc_unlocked.
2897 2003-12-28  Andreas Jaeger  <aj@suse.de>
2899         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
2900         overflow for 0 as argument. Raise Invalid exception for negative args.
2901         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2902         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
2903         * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
2904         * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
2905         * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
2906         * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
2907         * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
2908         * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
2909         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2910         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
2911         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
2913         * math/libm-test.inc (yn_test): Expect invalid exception for
2914         negative arguments.
2915         (y0_test): Likewise.
2916         (y1_test): Likewise.
2918         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
2919         execptions for exp(NaN).
2921 2003-12-23  Paolo Bonzini  <bonzini@gnu.org>
2923         * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
2924         * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
2925         among the tokens, rather than among the epsilon-transiting nodes.
2926         (re_token_t): Add the opt_subexp flag.
2927         * posix/regcomp.c (optimize_utf8, calc_first,
2928         calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
2929         (mark_opt_subexp, mark_opt_subexp_iter): New functions.
2930         (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
2931         OP_DUP_ASTERISK and marking optional subexpressions
2932         as such using mark_opt_subexp.
2933         * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
2934         and pass it to update_regs.
2935         (update_regs): Use the PREV_INDEX_MATCH parameter, together
2936         with the opt_subexp flag, in order to discard a final empty
2937         match of a repeated subexpression.
2938         * posix/BOOST.tests: Adjust test vectors.
2939         * posix/PCRE.tests: Likewise.
2940         * posix/rxspencer/tests: Likewise.
2942 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
2944         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
2945         with omitted middle operand.
2947 2003-12-22  Jakub Jelinek  <jakub@redhat.com>
2949         * posix/regcomp.c: Remove C99-ism.
2950         * posix/tst-rxspencer.c: Likewise.
2951         Based on a patch by Alex Davis <alex14641@yahoo.com>.
2953 2003-12-17  Paolo Bonzini  <bonzini@gnu.org>
2955         * posix/regex_internal.h [!_LIBC] (internal_function): Define.
2956         (re_string_allocate, re_string_construct, re_string_reconstruct,
2957         re_string_realloc_buffers, build_wcs_buffer,
2958         build_wcs_upper_buffer, build_upper_buffer,
2959         re_string_translate_buffer, re_string_destruct,
2960         re_string_elem_size_at, re_string_char_size_at,
2961         re_string_wchar_at, re_string_context_at,
2962         re_node_set_alloc, re_node_set_init_1
2963         re_node_set_init_2, re_node_set_init_copy,
2964         re_node_set_add_intersect, re_node_set_init_union,
2965         re_node_set_merge, re_node_set_insert
2966         re_node_set_compare, re_node_set_contains
2967         re_node_set_remove_at, re_dfa_add_node,
2968         re_acquire_state, re_acquire_state_context,
2969         free_state): Add internal_function to declaration.
2971         * posix/regexec.c (match_ctx_init, match_ctx_clean,
2972         match_ctx_free, match_ctx_free_subtops,
2973         match_ctx_add_entry, search_cur_bkref_entry,
2974         match_ctx_clear_flag, match_ctx_add_subtop,
2975         match_ctx_add_sublast, sift_ctx_init,
2976         re_search_internal, re_search_2_stub, re_search_stub,
2977         re_copy_regs, acquire_init_state_context,
2978         prune_impossible_nodes, check_matching,
2979         check_halt_node_context, check_halt_state_context
2980         update_regs, proceed_next_node, push_fail_stack,
2981         pop_fail_stack, set_regs, free_fail_stack_return,
2982         sift_states_iter_mb, sift_states_backward
2983         update_cur_sifted_state, add_epsilon_src_nodes,
2984         sub_epsilon_src_nodes, check_dst_limits,
2985         check_dst_limits_calc_pos, check_subexp_limits,
2986         sift_states_bkref, clean_state_log_if_need,
2987         merge_state_array, transit_state,
2988         check_subexp_matching_top, transit_state_sb,
2989         transit_state_mb, transit_state_bkref,
2990         get_subexp, get_subexp_sub, find_subexp_node,
2991         check_arrival, check_arrival_add_next_nodes,
2992         find_collation_sequence_value, check_arrival_expand_ecl,
2993         check_arrival_expand_ecl_sub, expand_bkref_cache,
2994         build_trtable, check_node_accept_bytes, extend_buffers,
2995         group_nodes_into_DFAstates, check_node_accept): Likewise.
2997         * posix/regex_internal.c (re_string_construct_common,
2998         re_string_skip_chars, create_newstate_common,
2999         register_state, create_ci_newstate, create_cd_newstate,
3000         calc_state_hash): Likewise.
3001         (re_string_peek_byte_case, re_fetch_byte_case): Change
3002         declaration from ANSI to K&R.
3004 2003-12-16  Paolo Bonzini  <bonzini@gnu.org>
3006         * posix/regexec.c (build_trtable): Don't allocate the trtable
3007         until state->word_trtable is known.  Don't hardcode UINT_BITS
3008         iterations on each bitset item.
3010 2003-12-22  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3012         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
3013         Initialize REF before passing it to _dl_lookup_symbol.
3015 2003-12-21  Roland McGrath  <roland@frob.com>
3017         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
3019 2003-12-21  Jakub Jelinek  <jakub@redhat.com>
3021         * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
3022         2003-11-24 changes.
3023         * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
3024         NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
3025         * posix/bug-regex19.c (tests): Add new tests.
3027         * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
3029         * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
3030         after checking syntax.  Optimize.
3031         (calc_first): Fix comment.
3032         * posix/bug-regex13.c (tests): Add new tests.
3034 2003-12-21  Roland McGrath  <roland@redhat.com>
3036         * manual/arith.texi (Parsing of Integers): Typo fix.
3038 2003-12-20  Roland McGrath  <roland@frob.com>
3040         * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
3041         add missing dereference of IFREQS before counting loop.
3043 2003-12-21  Andreas Schwab  <schwab@suse.de>
3045         * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
3046         constraints.
3048 2003-12-20  Ulrich Drepper  <drepper@redhat.com>
3050         * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
3052 2003-12-18  Ulrich Drepper  <drepper@redhat.com>
3054         * stdio-common/printf_fp.c: Add support to use alternative decimal
3055         digits.
3056         * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
3057         __printf_fp.  Patch by Hamed Malek <hamed@bamdad.org>.
3059 2003-12-18  Carlos O'Donell  <carlos@baldric.uwo.ca>
3061         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
3062         reload PIC if we need to call __syscall_error, cleanup asm.
3064 2003-12-17  Carlos O'Donell  <carlos@baldric.uwo.ca>
3066         * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
3067         FE_ALL_EXCEPT before complimenting.
3068         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
3069         and gcc '+r' constraint.
3070         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
3071         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
3072         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
3073         exception bits, OR with envp, pass to fesetenv.
3074         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
3075         exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
3076         triggered by M_PI/69.69 converted to single precision.
3077         * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
3078         bits not raised exception bits.
3080         * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
3081         correct build strings.
3082         * sysdeps/hppa/dl-fptr.h: New file.
3083         * sysdeps/hppa/dl-fptr.c: Removed.
3084         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
3085         remove const qualifier for map.
3086         (_dl_function_address): Removed.
3087         * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
3088         PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
3089         DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
3090         DL_DT_FINI_ADDRESS use the previous two macros.
3092 2003-12-17  Jakub Jelinek  <jakub@redhat.com>
3094         * malloc/mtrace.c (tr_old_memalign_hook): New variable.
3095         (tr_memalignhook): New function.
3096         (mtrace): Register tr_memalignhook.
3097         (muntrace): Deregister tr_memalignhook.
3098         * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
3099         call it directly instead of memalign_internal.
3101 2003-12-17  Ulrich Drepper  <drepper@redhat.com>
3103         * misc/mntent_r.c: Change encoding to match recently changed decoder.
3104         Patch by Alexander Achenbach <xela@slit.de>.
3106 2003-12-16  Steven Munroe  <sjmunroe@us.ibm.com>
3108         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
3109         vrregset_t.
3111 2003-12-16  Steven Munroe  <sjmunroe@us.ibm.com>
3113         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
3114         conditional to include typedef elf_vrreg_t.
3116 2003-12-17  Paolo Bonzini  <bonzini@gnu.org>
3118         * posix/regexec.c (re_search_internal): Limit search to the
3119         beginning of the buffer if the initial states are empty for
3120         contexts that do not include CONTEXT_BEGBUF or, if
3121         !preg->newline_anchor, that do not include any one of
3122         CONTEXT_BEGBUF and CONTEXT_NEWLINE.
3124 2003-12-17  Andreas Jaeger  <aj@suse.de>
3126         * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
3127         Kevin Pedretti <pedretti@ieee.org>.
3129 2003-12-17  Ulrich Drepper  <drepper@redhat.com>
3131         * elf/rtld.c: Don't use strong_alias to define _rtld_local.  This
3132         removes the visibility attributes which might be defined earlier
3133         for some gcc versions.  Instead spell out what strong_alias does
3134         plus the visibility.
3136 2003-12-16  Petter Reinholdtsen  <pere@hungry.com>
3138         * posix/regex_internal.h: Make sure the regex code compile
3139         with non-GCC compilers by hiding attributes.
3141 2003-12-16  Jakub Jelinek  <jakub@redhat.com>
3142             Paolo Bonzini  <bonzini@gnu.org>
3144         * posix/regexec.c (group_nodes_into_DFAstates): Never produce
3145         dests_ch items that are empty.
3147 2003-12-14  Paolo Bonzini  <bonzini@gnu.org>
3149         * posix/regexec.c (check_arrival): Remove duplicate test.
3151 2003-12-15  Ulrich Drepper  <drepper@redhat.com>
3153         * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
3154         * posix/regex_internal.c: Likewise.
3155         * posix/regexec.c: Likewise.
3156         Patch by Paolo Bonzini.
3158 2003-12-14  Paolo Bonzini  <bonzini@gnu.org>
3160         * posix/regex_internal.c (re_acquire_state_context):
3161         Compare the node sets after all the other comparisons.
3163 2003-12-13  Paolo Bonzini  <bonzini@gnu.org>
3165         * posix/regexec.c (find_subexp_node, check_arrival,
3166         check_arrival_add_next_nodes, check_arrival_expand_ecl,
3167         check_arrival_expand_ecl_sub, expand_bkref_cache):
3168         Rename the FL_OPEN parameter to TYPE, which is either
3169         OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP.  Callers adjusted.
3171 2003-12-12  Andreas Jaeger  <aj@suse.de>
3173         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
3174         to syscall.
3176 2003-12-11  Ulrich Drepper  <drepper@redhat.com>
3178         * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
3179         There might always be processes which have no vDSO.
3180         * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
3181         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3183 2003-12-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
3185         * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
3186         in the right order.
3188 2003-12-01  Jes Sorensen  <jes@wildopensource.com>
3190         * rt/tst-clock.c (do_test): Print message when skipping
3191         CLOCK_PROCESS_CPUTIME_ID test.
3193         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
3194         Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
3196 2003-12-02  David Mosberger  <davidm@hpl.hp.com>
3198         * sysdeps/ia64/elf/initfini.c: Add unwind info.
3200         * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
3201         attribute "unused".
3202         (elf_machine_dynamic): Mark with attributes "unused" and "const".
3203         (elf_machine_runtime_setup): Likewise.
3205         * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
3206         attribute "always_inline".
3207         * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
3208         Likewise.
3210         * configure.in: Check whether compiler has libunwind support.
3211         * config.make.in (have-cc-with-libunwind): New variable.
3212         * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
3213         * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
3214         mention -lunwind.
3216 2003-11-12  David Mosberger  <davidm@hpl.hp.com>
3218         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
3219         Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
3220         Likewise for DO_INLINE_SYSCALL.  Make INTERNAL_SYSCALL use
3221         DO_INLINE_SYSCALL.
3223         * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
3224         instead of DO_CALL().
3226         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
3227         of DO_CALL().
3229         * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
3230         to take advantage of DO_CALL() macro.
3231         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
3232         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
3234         * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
3235         program header.  On ia64, the check failed previously because
3236         there are two program headers.
3238 2003-12-10  Andreas Jaeger  <aj@suse.de>
3239             Ruediger Oertel  <ro@suse.de>
3241         * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
3243 2003-12-07  Ulrich Drepper  <drepper@redhat.com>
3245         * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
3246         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
3247         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3248         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
3249         * sysdeps/generic/s_nexttowardf.c: Likewise.
3250         * math/Makefile (tests): Add bug-nexttoward.
3251         * math/bug-nexttoward.c: New file.
3253         * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
3254         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3255         * math/bug-nextafter.c (main): Add tests for overflow and negative
3256         values.
3258 2003-12-06  Ulrich Drepper  <drepper@redhat.com>
3260         * math/Makefile (tests): Add bug-nextafter.
3261         * math/bug-nextafter.c: New file.
3262         * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
3263         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3264         * math/libm-test.inc (nextafter_test): Add test for overflow after
3265         +/-FLT_MAX etc.
3267 2003-12-04  Steven Munroe  <sjmunroe@us.ibm.com>
3269         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
3270         of fenv.
3271         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
3273 2003-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3275         * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
3276         statements.
3277         * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
3278         * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
3279         (END): Add cfi_endproc directive.
3280         * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
3281         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
3282         cfi_startproc and cfi_endproc directive.
3283         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
3284         * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
3285         * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
3286         * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
3287         * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3288         Likewise.
3289         * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3290         Likewise.
3291         * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
3292         * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
3293         * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
3294         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
3295         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
3296         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
3297         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
3298         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
3299         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
3300         Likewise.
3301         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
3302         Likewise.
3303         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
3304         directives. Move thread_start out of ENTRY/PSEUDO_END block to
3305         make backchain terminate.
3306         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3308         * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
3309         (unwind_backtrace, unwind_getip): New variables.
3310         (init, __backchain_backtrace, backtrace_helper): New functions.
3311         (__backtrace): Use unwind info for backtrace instead of backchain
3312         walking if the unwind functions can be found.
3313         * sysdeps/s390/s390-64/backtrace.c: Likewise.
3315         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
3317         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
3318         (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
3319         (elf_prstatus32, elf_prpsinfo32): New structures.
3320         (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
3322         * scripts/data/c++-types-s390-linux-gnu.data: New file.
3323         * scripts/data/c++-types-s390x-linux-gnu.data: New file.
3325 2003-11-30  Petter Reinholdtsen  <pere@hungry.com>
3327         * stdlib/strfmon.c: Correct formatting of international currency
3328         values.  The international currency formatting should prefer the
3329         int_* values if they are set for a locale, and use the domestic
3330         values if the int_* values are unset.
3332 2003-12-03  Jakub Jelinek  <jakub@redhat.com>
3334         * posix/Makefile (distribute): Add BOOST.tests.
3335         (tests): Add tst-boost, depend on tst-boost-mem.
3336         (generated): Add tst-boost-mem and tst-boost.mtrace.
3337         (tst-boost-ARGS, tst-boost-ENV): Set.
3338         ($(objpfx)tst-boost-mem): New.
3339         * posix/tst-boost.c: New test.
3340         * posix/BOOST.tests: New file.
3342         * posix/Makefile (distribute): Add PCRE.tests.
3343         (tests): Add tst-pcre, depend on tst-pcre-mem.
3344         (generated): Add tst-pcre-mem and tst-pcre.mtrace.
3345         (tst-pcre-ARGS, tst-pcre-ENV): Set.
3346         ($(objpfx)tst-pcre-mem): New.
3347         * posix/tst-pcre.c: New test.
3348         * posix/PCRE.tests: New file.
3350 2003-12-02  Jakub Jelinek  <jakub@redhat.com>
3352         * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
3354         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
3355         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3357 2003-12-03  Ulrich Drepper  <drepper@redhat.com>
3359         * locale/programs/locarchive.c (enlarge_archive): Print size info
3360         only in verbose mode.
3362         * locale/iso-3166.def: Three letter code of Romania changed.
3364 2003-12-02  Roland McGrath  <roland@redhat.com>
3366         * scripts/config.sub: Update from master, timestamp='2003-10-20'.
3367         * scripts/config.guess: Update from master, timestamp='2003-10-20'.
3369 2003-11-30  Andreas Jaeger  <aj@suse.de>
3371         * config.make.in (fno-unit-at-a-time): Define.
3373         * configure.in: Add test for -fno-unit-at-a-time.
3374         Fix text for -fpie.
3376         * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
3377         * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
3379 2003-12-01  Automatic
3381         * version.h (VERSION): Bump to 2.3.3.
3383 2003-11-30  Andreas Jaeger  <aj@suse.de>
3385         * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
3386         decrease stack usage.
3388 2003-11-30  Andreas Schwab  <schwab@suse.de>
3390         * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
3391         (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3393 2003-11-29  Ulrich Drepper  <drepper@redhat.com>
3395         * misc/mntent_r.c (decode_name): Be compatible with util-linux and
3396         recognize \134 as well.
3398 2003-10-09  H.J. Lu  <hongjiu.lu@intel.com>
3400         * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
3402 2003-10-08  H.J. Lu  <hongjiu.lu@intel.com>
3404         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
3405         <asm/fpu.h>.
3406         (struct ia64_fpreg): New definition.
3408         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
3409         <asm/elf.h>.
3410         (ELF_NGREG): New #define.
3411         (ELF_NFPREG): Likewise.
3412         (elf_greg_t): New type.
3413         (elf_gregset_t): Likewise.
3414         (elf_fpreg_t): Likewise.
3415         (elf_fpregset_t): Likewise.
3417 2003-10-08  H.J. Lu  <hongjiu.lu@intel.com>
3419         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
3420         <sys/ucontext.h>.
3421         (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
3422         (pt_all_user_regs): New type.
3424 2003-10-10  Simon Josefsson  <jas@extundo.com>
3426         * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
3427         strchrnul.h, strndup.h (from gnulib).
3428         * argp/argp-parse.c: Add alloca.h include snippet verbatim from
3429         Autoconf manual.
3430         * argp/argp-help.c: Replace alloca.h include snipper with verbatim
3431         Autoconf manual version.
3432         * argp/argp.h: Map __restrict to restrict or empty string when
3433         necessary, copied verbatim from posix/regex.h.
3435 2003-10-09  Steven Munroe  <sjmunroe@us.ibm.com>
3437         * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
3438         addition to c++-types-$(base-machine)-$(config-os).data.
3439         * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
3440         * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
3442 2003-11-28  Ulrich Drepper  <drepper@redhat.com>
3444         * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
3445         of newline.
3446         * manual/sysinfo.texi (mtab): Adjust description accordingly.
3447         Reported by Andries.Brouwer@cwi.nl.
3449         * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
3450         to compensate other setup.
3452 2003-11-27  Andreas Jaeger  <aj@suse.de>
3454         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
3456         * math/libm-test.inc (atan2_test): Add test that run infinitly.
3457         Reported by "Willus" <etc231etc231@willus.com>.
3459 2003-11-27  Michael Matz  <matz@suse.de>
3461         * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
3462         with wrong types.
3464 2003-11-28  Jakub Jelinek  <jakub@redhat.com>
3466         * posix/regexec.c (acquire_init_state_context): Make inline.
3467         Add always_inline attribute.
3468         (check_matching): Add BE macro.  Move if (cur_state->has_backref)
3469         into if (dfa->nbackref).
3470         (sift_states_backward): Fix comment.
3471         (transit_state): Add BE macro.  Move if (next_state->has_backref)
3472         into if (dfa->nbackref && next_state).  Don't check for next_state
3473         != NULL twice.
3474         * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
3475         for ANCHOR.
3476         (parse_expression): Only call init_word_char if word context will be
3477         needed.
3479         * posix/bug-regex11.c (tests): Add new tests.
3481         * posix/tst-regex.c: Include getopt.h.
3482         (timing): New variable.
3483         (main): Set timing to 1 if --timing argument is present.
3484         Add 2 new tests.
3485         (run_test, run_test_backwards): Handle timing.
3487 2003-11-27  Jakub Jelinek  <jakub@redhat.com>
3489         * posix/regex_internal.h (re_string_t): Remove mbs_case field.
3490         Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
3491         offsets_needed fields.  Change icase, is_utf8 and map_notascii
3492         type from int bitfield to unsigned char.
3493         (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
3494         (build_wcs_upper_buffer): Change prototype to return int.
3495         (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
3496         defines, add prototypes.
3497         * posix/regex_internal.c (re_string_allocate): Don't initialize
3498         stop here.  Don't initialize mbs_case.  Set valid_raw_len.
3499         Use mbs_allocated instead of MBS_* macros.
3500         (re_string_construct): Don't initialize stop and valid_len here.
3501         Don't initialize mbs_case.  Use mbs_allocated instead of MBS_*
3502         macros.  Reallocate buffers if build_wcs_upper_buffer converted
3503         too few bytes.  Set valid_len to bufs_len only for single byte
3504         no translation and set in that case valid_raw_len as well.
3505         (re_string_realloc_buffers): Reallocate offsets if not NULL.
3506         Use mbs_allocated instead of MBS_ALLOCATED.  Don't reallocate
3507         mbs_case.
3508         (re_string_construct_common): Initialize raw_len, mbs_allocated,
3509         stop and raw_stop.
3510         (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
3511         after it.  Set valid_raw_len.  Don't set mbs_case.
3512         (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
3513         Only use the fast path if !pstr->offsets_needed.  Apply pstr->trans
3514         before mbrtowc instead of after it.  If upper case character
3515         uses different number of bytes than lower case, goto to the
3516         slow path.  Don't call towupper unnecessarily twice.  Set
3517         valid_raw_len as well.  Handle in the slow path the case if
3518         lower and upper case use different number of characters.
3519         Don't set mbs_case.
3520         (re_string_skip_chars): Use valid_raw_len instead of valid_len.
3521         (build_upper_buffer): Don't set mbs_case.  Add BE macro.  Set
3522         valid_raw_len.
3523         (re_string_translate_buffer): Set mbs instead of mbs_case.  Set
3524         valid_raw_len.
3525         (re_string_reconstruct): Use raw_len/raw_stop to initialize
3526         len/stop.  Clear valid_raw_len and offsets_needed when clearing
3527         valid_len.  Use mbs_allocated instead of MBS_* macros.
3528         Check original offset against valid_raw_len instead of valid_len.
3529         Remove mbs_case handling.  Adjust valid_raw_len together with
3530         valid_len.  If is_utf8 and looking for tip context, apply
3531         pstr->trans first.  If buffers start with partial multi-byte
3532         character, initialize mbs array as well if mbs_allocated.
3533         Check return value of build_wcs_upper_buffer.
3534         (re_string_peek_byte_case): New function.
3535         (re_string_fetch_byte_case): New function.
3536         (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
3537         Don't free mbs_case.  Free offsets.
3538         * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
3539         if mb_cur_max == 6.
3540         * posix/regexec.c (re_search_internal): Initialize input.raw_stop
3541         as well.  Use valid_raw_len instead of valid_len when looking
3542         through fastmap.  Adjust registers through input.offsets.
3543         (extend_buffers): Allow build_wcs_upper_buffer to fail.
3544         * posix/bug-regex18.c (tests): Enable #ifdefed out tests.  Add new
3545         tests.
3547 2003-11-26  Jakub Jelinek  <jakub@redhat.com>
3549         * posix/regexec.c (check_subexp_limits): Only check close
3550         subexpression limitation if one is found.  Formatting.
3551         (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
3552         Formatting.
3553         * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
3554         Add new test.
3556 2003-11-26  Ulrich Drepper  <drepper@redhat.com>
3558         * sysdeps/unix/sysv/linux/kernel-features.h
3559         (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
3560         * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
3561         if __ASSUME_PROT_GROWSUPDOWN is defined.
3563 2003-11-26  Andreas Jaeger  <aj@suse.de>
3565         * sysdeps/unix/sysv/linux/dl-execstack.c
3566         (_dl_make_stack_executable): Set dl_stack_flags always for
3567         success.
3569 2003-06-22  Petter Reinholdtsen  <pere@hungry.com>
3571         * locale/program/ld-monetary.c: Only check the first three
3572         characters in int_curr_symbol against ISO-4217, to make the
3573         separator character used by a locale independent of the content
3574         in iso-4217.def.
3575         * locale/iso-4217.def: Remove the space character from all
3576         currency values to get the new test code in ld-monetary.c working.
3578 2003-11-21  David Mosberger  <davidm@hpl.hp.com>
3580         * elf/soinit.c (_fini): Put _fini() in .init_array section if
3581         HAVE_INITFINI_ARRAY is defined.
3583 2003-11-25  Ulrich Drepper  <drepper@redhat.com>
3585         * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
3586         Define it appropriately after last change.  Use it where __sqrtl
3587         was used.
3589 2003-11-25  H.J. Lu  <hongjiu.lu@intel.com>
3591         * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
3592         sqrt for gcc 3.3 and above.
3594 2003-11-25  Ulrich Drepper  <drepper@redhat.com>
3596         * posix/runptests.c (main): Make errors fatal.
3597         * posix/PTESTS: One test in GA135 and GA136 check functionality
3598         which seems not guaranteed.
3600 2003-11-25  Jakub Jelinek  <jakub@redhat.com>
3602         * posix/regexec.c (re_search_internal): If prune_impossible_nodes
3603         returned REG_NOMATCH, set match_last to -1.  Don't initialize
3604         pmatch[0] needlessly.  Fix comment.
3605         (prune_impossible_nodes): Don't segfault on NULL state_log entry.
3606         (set_regs): Fix comment.
3607         * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
3608         if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
3609         (build_charclass_op): Set has_plural_match if adding both
3610         SIMPLE_BRACKET and COMPLEX_BRACKET.
3611         * posix/bug-regex11.c (tests): Fix register values for one commented
3612         out test.  Add new tests.
3614         * posix/regex_internal.c (re_string_allocate): Make sure init_len
3615         is at least dfa->mb_cur_max.
3616         (re_string_reconstruct): If is_utf8, don't fall back into
3617         re_string_skip_chars just because idx points into a middle of
3618         valid UTF-8 character.  Instead, set the wcs bytes which correspond
3619         to the partial character bytes to WEOF.
3620         * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
3621         instead of dfa->nodes_len + 1 state_log entries initially.
3622         * posix/bug-regex20.c (main): Uncomment backwards case insensitive
3623         tests.
3625 2003-11-24  Jakub Jelinek  <jakub@redhat.com>
3627         * posix/regex_internal.h (re_token_t): Add word_char bit.  Add
3628         comment.
3629         (re_dfa_t): Add sb_char field.
3630         (bitset_mask): New function.
3631         * posix/regcomp.c (free_dfa_content): Free sb_char.
3632         (init_dfa): Don't initialize word_char unnecessarily.
3633         Initialize sb_char.
3634         (duplicate_node): Don't duplicate !word_char CHARACTERs with
3635         NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
3636         NEXT_NOTWORD_CONSTRAINT.  Return -1 in *new_idx instead.
3637         (duplicate_node_closure): Handle clone_dest == -1 from
3638         duplicate_node.
3639         (peek_token): Initialize word_char bit.
3640         (parse_expression, parse_dup_op): Add comments.
3641         (parse_bracket_exp): Don't set bitmask bits for multi-byte char
3642         starting bytes here at the beginning.  Mask off the bits right
3643         before creating SIMPLE_BRACKET.
3644         (build_charclass_op): Likewise.
3645         * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
3646         set accept bits for single-byte characters.
3647         (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
3648         being single byte encoded and the rest multi-byte.
3649         * posix/bug-regex19.c (tests): Add new tests.
3650         (do_mb_tests): Initialize t to *test.
3651         (main): Fail even on do_mb_tests errors.
3653 2003-11-23  Ulrich Drepper  <drepper@redhat.com>
3655         * posix/regexec.c: Correct several memory allocation problems.
3656         Add more BE.
3657         * posix/regex_internal.c: Likewise.
3658         * posix/regcomp.c: Likewise.
3660         * posix/regexec.c: Add const in a number of places.
3661         * posix/regex_internal.h: Make EPSILON_BIT a macro to help
3662         debugging.  Its value isn't important.
3664 2003-11-22  Ulrich Drepper  <drepper@redhat.com>
3666         * posix/PTESTS: Fix first test of GA143.
3668 2003-11-21  Ulrich Drepper  <drepper@redhat.com>
3670         * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
3671         isn't likely.
3673         * locale/programs/charmap.c (charmap_read): If encoding is found
3674         not ASCII compatible, set enc_not_ascii_compatible.
3675         * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
3676         * locale/programs/ld-ctype.c (ctype_startup): If
3677         enc_not_ascii_compatible is set, initialize to_nonascii to 1.
3679 2003-11-22  Jakub Jelinek  <jakub@redhat.com>
3681         * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
3682         if !__libc_enable_secure.
3684         * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
3685         field.
3686         * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
3687         (dl_main): Set GL(dl_use_load_bias) default.
3688         (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
3689         Add EXTRA_LD_ENVVARS_13.
3690         * elf/dl-support.c (_dl_use_load_bias): New variable.
3691         * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
3692         with GL(dl_use_load_bias).
3693         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
3694         LD_USE_LOAD_BIAS.
3695         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
3696         (EXTRA_LD_ENVVARS_LINUX): Renamed to...
3697         (EXTRA_LD_ENVVARS_13): ... this.  Remove case at the beginning.
3698         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
3699         Don't undefine first.  Remove EXTRA_LD_ENVVARS_LINUX.
3701 2003-11-21  Ulrich Drepper  <drepper@redhat.com>
3703         * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
3705         * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
3706         pointer.  Adjust callers.
3708         * posix/regcomp.c (fetch_token): Change interface to match
3709         peek_token.  This avoids some copying and reduces code size.
3711 2003-11-21  Jakub Jelinek  <jakub@redhat.com>
3713         * posix/bug-regex19.c (tests): Add more tests.
3715         * posix/bug-regex11.c: And one more commented out test.
3717         * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
3718         tests multiple times unnecessarily.
3720         * posix/bug-regex19.c (BRE, ERE): Define.
3721         (tests): Add many new tests, remove UTF-8 ones.
3722         (do_one_test, do_mb_tests): New functions.
3723         (main): Rewritten using do_one_test and do_mb_tests.
3725 2003-11-20  Ulrich Drepper  <drepper@redhat.com>
3727         * posix/PTESTS: Fix first test in GA143.
3729 2003-11-20  Jakub Jelinek  <jakub@redhat.com>
3731         * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
3732         Add word_trtable.
3733         * posix/regex_internal.c (create_newstate_common, free_state):
3734         Don't free trtable_search.
3735         * posix/regexec.c (check_matching): Remove fl_search argument.
3736         (transit_state_sb): Likewise.  #ifdef out as unused.
3737         (build_trtable): Remove fl_search argument.  Set state->word_trtable
3738         and state->trtable.  Build separate word and non-word tables if
3739         multi-byte and they differ for some character.
3740         (transit_state): Remove fl_search argument.  Don't update
3741         state->trtable here.  Handle state->word_trtable.
3742         #ifdef out unused call to transit_state_sb.
3743         (re_search_internal): Update check_matching caller.
3744         (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
3745         bitmask for multi-byte locales.
3746         * posix/bug-regex19.c (tests): Enable some commented out tests, add
3747         2 new tests.
3748         * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
3749         multi-byte.  Don't run identical multi-byte tests multiple times
3750         unnecessarily.
3751         (main): Check setlocale return value.
3752         * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
3753         (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
3754         ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
3755         here, without --utf8 argument but with MALLOC_TRACE.
3757 2003-11-19  Jakub Jelinek  <jakub@redhat.com>
3759         * posix/regexec.c (extend_buffers): Don't allocate
3760         twice as big state_log as needed.  Don't modify pstr->valid_len
3761         for mb_cur_max == 1 !icase !trans.
3763         * posix/regcomp.c (free_bin_tree): Removed.
3764         (create_tree): Add dfa argument.  Don't call re_malloc for
3765         each tree, instead allocate from str_tree_storage.
3766         (re_dfa_add_tree_node): New function.
3767         (free_dfa_content): Handle freeing if dfa->nodes == NULL
3768         or dfa->state_table == NULL.
3769         (re_compile_internal): Call free_dfa_content if init_dfa
3770         fails.  Call free_workarea_compile, re_string_destruct
3771         and free_dfa_content for most of the other failure paths.
3772         (init_dfa): Initialize str_tree_storage_idx.
3773         Don't clear any fields on allocation failure.
3774         (free_workarea_compile): Free str_tree_storage chunks
3775         instead of free_bin_tree (dfa->str_tree).
3776         (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
3777         followed by create_tree.  Add dfa argument to remaining
3778         create_tree calls.  Remove new_idx variable.  Remove calls
3779         to free_bin_tree.
3780         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
3781         parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
3782         (duplicate_tree): Remove calls to free_bin_tree, add dfa
3783         argument to create_tree.
3784         * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
3785         (bin_tree_storage_t): New type.
3786         (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
3787         fields.
3788         * posix/Makefile (tests): Add bug-regex21.
3789         (generated): Add bug-regex21-mem, bug-regex21.mtrace,
3790         tst-rxspencer-mem and tst-rxspencer.mtrace.
3791         (tests): Depend on $(objpfx)bug-regex21-mem
3792         and $(objpfx)tst-rxspencer-mem.
3793         (bug-regex21-ENV, tst-rxspencer-ENV): Set.
3794         ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
3795         * posix/tst-rxspencer.c (main): Add call to mtrace.
3796         Free line at the end.
3797         * posix/bug-regex21.c: New test.
3799 2003-11-19  Ulrich Drepper  <drepper@redhat.com>
3801         * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
3803         * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
3804         fails, just use the byte, do no fancy conversions.
3806         * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
3807         not ->len.
3808         (re_string_is_single_byte_char): Likewise.
3810 2003-11-18  Ulrich Drepper  <drepper@redhat.com>
3812         * posix/regexec.c (get_subexp): After calling get_subexp_sub
3813         reload buf and bkref_str.  Little optimization by avoiding memcmp.
3815 2003-11-14  David Mosberger   <davidm@hpl.hp.com>
3817         * sysdeps/unix/sysv/linux/ia64/sysdep.h
3818         (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
3819         that all existing GAS versions have a problem with .align inside
3820         a function.
3821         * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
3822         * sysdeps/ia64/memcpy.S: Likewise.
3823         * sysdeps/ia64/memset.S: Likewise.
3824         * sysdeps/ia64/memmove.S: Likewise.  Also move the jump-table to
3825         out of .text into .rodata, where it belongs.
3827         * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
3828         save/restore input-arguments, because they're necessarily
3829         preserved by the kernel to support syscall-restart.
3831 2003-11-18  Jakub Jelinek  <jakub@redhat.com>
3833         * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
3834         END_OF_RE_TOKEN_T and SUBEXP.  Reorder values.  Add OP_UTF8_PERIOD
3835         and EPSILON_BIT.
3836         (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
3837         (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
3838         * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
3839         Handle OP_UTF8_PERIOD.
3840         (re_string_reconstruct): Set valid_len for single byte char searching
3841         with no translation and case sensitivity.
3842         * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
3843         OP_UTF8_PERIOD.
3844         (re_compile_internal): Don't call optimize_utf8 if preg->translate
3845         != NULL.
3846         (optimize_utf8): Remove BACK_SLASH case.
3847         Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
3848         optimized.
3849         (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
3850         any bits set and COMPLEX_BRACKET is used.
3851         * posix/regexec.c (transit_state_mb): Fix comment typo.
3852         (group_nodes_into_DFAstates, check_node_accept): Handle
3853         OP_UTF8_PERIOD.
3854         (check_node_accept_bytes): Likewise.  Reorder slightly so that
3855         re_string_char_size_at and re_string_elem_size_at are called
3856         only when needed.
3857         * posix/bug-regex20.c (BRE, ERE): Define.
3858         (tests): Use them to make lines shorter.  Expect . to be
3859         optimized.  Add lots of new tests.
3860         (main): Run (ATM just case sensitive) test with backwards searching
3861         as well.
3863 2003-11-18  Jakub Jelinek  <jakub@redhat.com>
3865         * io/bug-ftw4.c: Include string.h.
3866         * posix/fnmatch.c (mbsinit): Remove define.
3868 2003-11-17  Jakub Jelinek  <jakub@redhat.com>
3870         * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
3871         well.
3872         * posix/bug-regex20.c (tests): Add new tests.  Multi-byte char
3873         followed by dup operator is expected to be optimized.
3875         * posix/regexec.c (check_node_accept_bytes): Move nrules and j
3876         variables to the block where they are only used, initialize
3877         nrules only immediately before using it.
3879 2003-11-15  Andreas Jaeger  <aj@suse.de>
3881         * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
3882         * sysdeps/x86_64/fpu/s_truncl.S: New file.
3883         * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
3884         * sysdeps/x86_64/fpu/s_floorl.S: New file.
3885         * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
3886         * sysdeps/x86_64/fpu/e_remainderl.S: New file.
3888         * math/libm-test.inc (floor_test): Test also Â±0.25.
3889         (ceil_test): Test -0.25.
3891 2003-11-17  Ulrich Drepper  <drepper@redhat.com>
3893         * sysdeps/posix/getaddrinfo.c: Add support for destination address
3894         selection according to RFC 3484.
3896 2003-11-15  Ulrich Drepper  <drepper@redhat.com>
3898         * posix/regex_internal.h: Add forward declaration of re_dfa_t.
3899         Replace last two parameters of re_string_allocate and
3900         re_string_construct with pointer to DFA.
3901         (re_dfa_t): Add map_notascii field.
3902         * posix/regcomp.c (re_compile_internal): Add call of
3903         re_string_construct.
3904         (init_dfa): Initialize map_notascii.
3905         * posix/regex_internal.c: Adjust definitions of re_string_allocate
3906         and re_string_construct.
3907         Pass DFA to re_string_construct.  Adjust definition.  Initialize
3908         map_notascii field.
3909         (build_wcs_upper_buffer): If map_notascii is zero use simplified
3910         method to map ASCII values to upper case.
3911         * posix/regex.c: Include localeinfo.h.
3912         * posix/regexec.c: Adjust call of re_string_allocate.
3914         * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
3915         * locale/localeinfo.h (LIMAGIC): Change value.
3916         * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
3917         * locale/C-ctype.h: Likewise.
3918         * locale/programs/ld-ctype.c: Compute whether any mapping maps from
3919         ASCII to non-ASCII value.  Write out that value.
3921         * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
3922         * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
3924 2003-11-14  Jakub Jelinek  <jakub@redhat.com>
3926         * posix/tst-rxspencer.c (check_match): @ without any following
3927         characters must match only end of string.
3928         (main): Fix filename in error message.
3930 2003-11-12  David Mosberger  <davidm@hpl.hp.com>
3932         * sysdeps/ia64/dl-machine.h: Force inlining of
3933         elf_machine_runtime_setup().
3935 2003-11-13  Andreas Jaeger  <aj@suse.de>
3937         * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
3938         (CFLAGS-test-double.c): Likewise.
3939         (CFLAGS-test-ldouble.c): Likewise.
3940         (CPPFLAGS-test-ifloat.c): Likewise.
3941         (CPPFLAGS-test-idouble.c): Likewise.
3942         (CPPFLAGS-test-ildoubl.c): Likewise.
3944         * math/libm-test.inc (ceil_test): Test ceil (0.25).
3946 2003-11-04  Ulrich Drepper  <drepper@redhat.com>
3948         * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
3949         sends the netlink data.
3950         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
3952 2003-11-13  Jakub Jelinek  <jakub@redhat.com>
3954         * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
3955         with no bits set for >= 0x80 chars is seen.
3956         * posix/bug-regex20.c (tests): Add new tests.  Expect [ABC] to be
3957         optimized.
3958         (main): Run all tests with RE_ICASE as well.
3960 2003-11-13  Ulrich Drepper  <drepper@redhat.com>
3962         * posix/Makefile: Add rules to build and run tst-rxspencer.
3963         (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
3964         * posix/tst-rxspencer.c: New file.
3965         * posix/rxspencer/tests: New file.
3966         * posix/rxspencer/COPYRIGHT: New file.
3967         Patch mostly by Jakub Jelinek.
3969         * posix/regcomp.c (parse_bracket_exp): Don't check for range if
3970         this is no option given the first token.
3972         * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
3973         hyphen in range expression.  Return EBRACK in this case.
3975         * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
3976         we expect them or it's the last element in the bracket expression.
3977         Indicated by new parameter.  Adjust all callers.
3979         * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
3980         Prettier error messages.
3982         * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
3983         number in {,} expression is larger.
3985 2003-11-13  Andreas Jaeger  <aj@suse.de>
3987         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3988         Define appropriately for x86_64.
3989         (__ASSUME_UTIMES): Likewise.
3990         (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
3992         * sysdeps/x86_64/fpu/s_ceill.S: New file.
3994 2003-11-13  Ulrich Drepper  <drepper@redhat.com>
3996         * posix/regcomp.c (parse_expression): In BRE consecutive
3997         duplications are not allowed.
3999 2003-11-12  Ulrich Drepper  <drepper@redhat.com>
4001         * posix/regcomp.c (parse_bracket_exp): If end of expression is
4002         seen, return EBRACK error, not BADPAT.
4004         * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
4005         and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
4006         * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
4007         (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
4009         * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
4010         return REG_EPAREN.
4012         * posix/PTESTS: Cleanup.  Fix typoes.  Correct bugs in 2003.2.
4013         * posix/runptests.c (main): Handle comments.
4014         * posix/PTESTS2C.sed: Handle comments.
4016 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
4018         * posix/regcomp.c (optimize_utf8): New function.
4019         (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
4020         of !icase.
4021         (re_compile_internal): Call optimize_utf8 if not case insensitive
4022         and in UTF-8 locale.
4023         * posix/regex_internal.h: Ifdef out some prototypes if
4024         RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
4025         * posix/Makefile (tests): Add bug-regex20.
4026         (bug-regex20-ENV): Add LOCPATH.
4027         * posix/bug-regex20.c: New test.
4029 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
4031         * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
4033 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
4035         * posix/tst-regex.c (umemlen): New variable.
4036         (test_expr): Add expectedicase argument.  Test case insensitive
4037         searches as well as backwards searches (case sensitive and
4038         insensitive) too.
4039         (run_test): Add icase argument.  Use it to compute regcomp flags.
4040         (run_test_backwards): New function.
4041         (main): Cast read to size_t to avoid warning.  Set umemlen.
4042         Add expectedicase arguments to test_expr.
4043         * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
4044         find previous character by walking back instead of converting
4045         all chars from beginning.
4047 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
4049         * posix/regex_internal.h (struct re_string_t): Add is_utf8
4050         and mb_cur_max fields.
4051         (struct re_dfa_t): Likewise.  Reorder fields to make structure
4052         smaller on 64-bit arches.
4053         (re_string_allocate, re_string_construct): Add mb_cur_max and
4054         is_utf8 arguments.
4055         (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
4056         instead of MB_CUR_MAX.
4057         * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
4058         instead of MB_CUR_MAX.
4059         (re_compile_internal): Pass new arguments to re_string_construct.
4060         (init_dfa): Initialize mb_cur_max and is_utf8 fields.
4061         (peek_token, peek_token_bracket): Use input->mb_cur_max instead
4062         of MB_CUR_MAX.
4063         (parse_expression, parse_bracket_exp, parse_charclass_op): Use
4064         dfa->mb_cur_max instead of MB_CUR_MAX.
4065         * posix/regex_internal.c (re_string_construct_common): Add
4066         mb_cur_max and is_utf8 arguments.  Initialize fields with them.
4067         (re_string_allocate, re_string_construct): Add mb_cur_max and
4068         is_utf8 arguments, pass them to re_string_construct_common.
4069         Use mb_cur_max instead of MB_CUR_MAX.
4070         (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
4071         MB_CUR_MAX.
4072         (re_string_reconstruct): Likewise.
4073         (re_string_context_at): Use input->mb_cur_max instead of
4074         MB_CUR_MAX.
4075         (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
4076         instead of MB_CUR_MAX.
4077         * posix/regexec.c (re_search_internal): Likewise.
4078         Pass new arguments to re_string_allocate.
4079         (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
4080         MB_CUR_MAX.
4081         (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
4083 2003-11-12  Jakub Jelinek  <jakub@redhat.com>
4085         * posix/Makefile (tests): Add bug-regex19.
4086         (bug-regex19-ENV): Add LOCPATH.
4087         * posix/bug-regex19.c: New test.
4089 2003-11-11  Jakub Jelinek  <jakub@redhat.com>
4091         * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
4092         with MB_CUR_MAX > 1 locales in the fastmap.
4094 2003-11-11  Jakub Jelinek  <jakub@redhat.com>
4096         * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
4097         (build_wcs_upper_buffer): Likewise.  Use towupper for wchar_t instead
4098         of toupper.
4099         * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
4100         (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
4101         * posix/bug-regex17.c: New file
4102         * posix/bug-regex18.c: New file.
4104 2003-10-08  Thorsten Kukuk  <kukuk@suse.de>
4106         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
4107         Define __NR_pread/__NR_pwrite if not done in kernel headers
4109 2003-11-11  Roland McGrath  <roland@redhat.com>
4111         * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
4113         * manual/Makefile (info): Don't depend on dir-add.info.
4114         (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
4115         (dir-add.info): Target removed, replaced with ...
4116         (dir-add.texi): New target.
4117         (distribute): Add it.
4118         (install): Remove variant with --section arguments.
4119         Let the @dircategory directives do their work.
4120         (mostlyclean): Don't remove dir-add.info here.
4121         (realclean): Remove dir-add.texi here.
4122         * manual/libc.texinfo: @include dir-add.texi
4123         * configure.in: Remove check for old Debian install-info.
4124         * configure: Regenerated.
4125         * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
4127 2003-11-08  Andreas Schwab  <schwab@suse.de>
4129         * scripts/data/c++-types-ia64-linux-gnu.data: New file.
4131 2003-11-10  Carlos O'Donell  <carlos@baldric.uwo.ca>
4133         * io/ftwtest-sh: Fix nested sed commands.
4135 2003-11-10  Jakub Jelinek  <jakub@redhat.com>
4137         * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
4138         valid_len wide chars.
4140 2003-11-09  Roland McGrath  <roland@redhat.com>
4142         * manual/examples/dir2.c (one): Add const to argument type.
4143         Reported by J de Haan <j.de.haan@home.nl>.
4145 2003-11-07  Ulrich Drepper  <drepper@redhat.com>
4147         * po/pl.po: Update from translation team.
4149 2003-11-07  Jakub Jelinek  <jakub@redhat.com>
4151         * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
4152         (ftw_dir, ftw_startup): Add __attribute ((noinline)).
4153         (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
4154         (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
4155         and compat_symbol.
4156         * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
4157         * io/Versions (libc): Export nftw@@GLIBC_2.3.3
4158         and nftw64@@GLIBC_2.3.3.
4160         * io/ftw.h (FTW_ACTIONRETVAL): New flag.
4161         (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
4162         * io/ftw.c (ftw_dir): Add old_dir argument.
4163         Clear result if it was FTW_SKIP_SIBLINGS after processing all
4164         dir entries.  Change cwd back if old_dir != NULL.
4165         (process_entry): Adjust caller.  Don't change cwd back here.
4166         Change FTW_SKIP_SUBTREE result to 0.
4167         (ftw_startup): Adjust ftw_dir caller.
4168         Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
4169         * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
4170         (options, main): Add --skip-subtree and --skip-siblings options.
4171         (cb): Use return FTW_CONTINUE instead of return 0.
4172         Handle --skip-subtree and --skip-siblings.
4173         * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
4174         * manual/filesys.texi: Document FTW_ACTIONRETVAL.
4176 2003-11-04  Jakub Jelinek  <jakub@redhat.com>
4178         * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
4179         non-zero.
4180         * io/Makefile (tests): Add bug-ftw4.
4181         * io/bug-ftw4.c: New test.
4183 2003-10-27  Daniel Jacobowitz  <drow@mvista.com>
4185         * libio/libioP.h [_IO_USE_OLD_IO_FILE]
4186         (struct _IO_FILE_complete_plus): New type.
4187         * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
4188         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
4189         * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
4190         Call _IO_old_init instead of _IO_init.
4192 2003-11-03  Ulrich Drepper  <drepper@redhat.com>
4194         * intl/locale.alias: nb_NO is now the correct name, not no_NO.
4196         * locale/iso-639.def: Add Blin.
4197         Patch by Daniel Yacob <locales@geez.org>.
4199 2003-10-31  Steven Munroe  <sjmunroe@us.ibm.com>
4201         * sysdeps/powerpc/powerpc32/strncmp.S: New File.
4202         * sysdeps/powerpc/powerpc64/strncmp.S: New File.
4204 2003-11-01  Randolph Chung  <tausq@debian.org>
4206         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
4207         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
4208         Add missing parentheses.
4210 2003-11-01  Roland McGrath  <roland@redhat.com>
4212         * libio/bug-ftell.c (do_test): Add a cast.
4214 2003-09-26  Daniel Jacobowitz  <drow@mvista.com>
4216         * Makerules (shlib.lds): Make sure that ld doesn't try to link
4217         anything while generating the linker script.
4219 2003-10-31  Roland McGrath  <roland@redhat.com>
4221         * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
4222         special members.
4224 2003-10-29  Ulrich Drepper  <drepper@redhat.com>
4226         * po/be.po: Update from translation team.
4228 2003-10-27  Ulrich Drepper  <drepper@redhat.com>
4230         * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
4231         _dl_map_object.
4233         * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
4234         ELF header.
4236         * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
4237         rest of line.  We use getline which means this cannot happen.
4239 2003-10-26  Ulrich Drepper  <drepper@redhat.com>
4241         * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
4242         Avoid infinite loops in case the mounts file is hosed.
4243         * io/Makefile: Add rules to build and run tst-statvfs.
4244         * io/tst-statvfs.c: New file.
4246         * include/dlfcn.h (__RTLD_OPENEXEC): Define.
4247         * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
4248         executables unless __RTLD_OPENEXEC flag is present.
4249         * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
4250         _dl_map_object when loading the executable.
4252         * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
4253         correctly.
4254         * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
4256         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
4257         reverse lookup format for IPv6 addresses is using bitstring and
4258         .ip6.arpa suffix.
4259         * resolv/ns_name.c: Implement encoding and decoding bitstring in
4260         hex format.
4262 2003-10-23  Jakub Jelinek  <jakub@redhat.com>
4264         * locale/programs/locale.c (show_info): Fix printing word values on
4265         64-bit big-endian architectures.
4267 2003-10-19  Bruno Haible  <bruno@clisp.org>
4269         * intl/hash-string.c (hash_string): Zero-extend each char from the
4270         string; the old code did a sign-extend on some platforms.
4272 2003-10-22  Steven Munroe  <sjmunroe@us.ibm.com>
4274         * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
4275         append options to these.
4276         * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
4278 2003-10-18  Carlos O'Donell  <carlos@baldric.uwo.ca>
4280         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
4282 2003-10-15  Roland McGrath  <roland@redhat.com>
4284         * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
4285         Fake an entry for the main executable and then call __dl_iterate_phdr.
4286         * elf/Makefile (routines): Remove dl-iteratephdr-static.
4287         (elide-routines.os): Likewise.
4288         (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
4289         * sysdeps/generic/dl-iteratephdr-static.c: File removed.
4290         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
4292 2003-10-15  Jakub Jelinek  <jakub@redhat.com>
4294         * elf/rtld.c (print_statistics): Print also number of relative
4295         relocations.
4297 2003-10-12  Carlos O'Donell  <carlos@baldric.uwo.ca>
4299         * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
4300         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
4301         SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
4302         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
4303         and undef JUMPTARGET before use.
4304         [PIC]: Save pic register around syscall.
4305         * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
4306         Cleanup asm statment.
4308 2003-10-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4310         * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
4311         after trapa instruction.
4313 2003-10-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4315         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
4317 2003-10-10  Carlos O'Donell  <carlos@baldric.uwo.ca>
4319         * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
4321 2003-10-09  Roland McGrath  <roland@redhat.com>
4323         * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
4324         is no file to name.
4326 2003-10-08  Jakub Jelinek  <jakub@redhat.com>
4328         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
4329         two identical copies of strings.
4331 2003-10-06  Ulrich Drepper  <drepper@redhat.com>
4333         * posix/bug-regex11.c: Add some more tests which fail so far.
4334         Disable them.  Patch by Paolo Bonzini <bonzini@gnu.org>.
4336 2003-10-05  Paolo Bonzini  <bonzini@gnu.org>
4338         * posix/bug-regex11.c: Add more backreference-related test cases.
4339         (main): Show the failing regex in the error messages.
4340         * posix/regexec.c (check_dst_limits_calc_pos):
4341         Simplify some nested conditionals.  Replace if's with a switch
4342         statement.
4343         (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
4344         FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
4345         does not change in the recursive invocation, fixing an infinite loop
4346         in the ()\1*\1* regex.
4347         (sift_states_backward): Fix function comment.
4348         * posix/regcomp.c (calc_epsdest): Add an assertion.
4350 2003-10-06  Ulrich Drepper  <drepper@redhat.com>
4352         * manual/examples/testopt.c: Fix warnings.  Better error message
4353         for missing -c argument.
4354         Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
4356         * timezone/asia: Update from tzdata2003d.
4357         * timezone/australasia: Likewise.
4358         * timezone/backward: Likewise.
4359         * timezone/europe: Likewise.
4360         * timezone/iso3166.tab: Likewise.
4361         * timezone/northamerica: Likewise.
4362         * timezone/southamerica: Likewise.
4363         * timezone/zone.tab: Likewise.
4365 2003-10-05  Jakub Jelinek  <jakub@redhat.com>
4367         * sysdeps/ia64/backtrace.c: New file.
4368         * sysdeps/x86_64/backtrace.c: New file.
4369         * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
4370         (_Unwind_Backtrace): New prototype.
4372 2003-10-03  Ulrich Drepper  <drepper@redhat.com>
4374         * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
4375         * sysdeps/i386/elf/setjmp.S: Likewise.
4377 2003-10-02  Roland McGrath  <roland@redhat.com>
4379         * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
4380         * argp/argp-namefrob.h
4381         [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
4382         (__argp_short_program_name): Don't declare fn, define it as a macro.
4384 2003-08-22  Simon Josefsson  <jas@extundo.com>
4386         * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
4388         * argp/argp-help.c: Don't include malloc.h, some platforms
4389         complain and it doesn't appear to be used.
4390         [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
4391         strerror_r.
4392         [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
4393         strerror.
4394         (hol_entry_long_iterate): Change __attribute to __attribute__.
4395         (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
4396         && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
4397         (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
4398         modified after comments from Ulrich Drepper.
4399         (__argp_short_program_name): Ditto.
4400         (__argp_state_help, __argp_error, __argp_failure): Use it.
4401         (__argp_failure): Use strerror when necessary.
4403         * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
4404         (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
4405         (clearerr_unlocked, feof_unlocked, ferror_unlocked)
4406         (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
4407         (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
4408         (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
4409         non-unlocked functions.
4410         [!_LIBC]: Add prototypes for __argp_basename and
4411         __argp_short_program_name.
4413         * argp/argp-parse.c (argp_default_parser): Only use
4414         program_invocation{_short,}_name if declared.
4415         (parser_init): Use __argp_short_program_name.
4417         * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
4418         '#include features.h'.
4420         * argp/argp.h [!__attribute__]: Define to nothing.
4422 2003-09-26  Paolo Bonzini  <bonzini@gnu.org>
4424         * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
4425         for the first token in a subexpression as well.
4427 2003-10-02  Jakub Jelinek  <jakub@redhat.com>
4429         * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
4430         handling again.
4431         (parse_reg_exp): Likewise.
4432         * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
4434         * posix/bug-regex11.c (tests): Add new tests.
4435         * posix/bug-regex12.c (tests): Add new test.
4437 2003-10-01  Thorsten Kukuk  <kukuk@suse.de>
4439         * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
4440         variables only used if TLS_DTV_AT_TP is defined into the #if branch.
4442 2003-10-02  Jeroen Dekkers  <jeroen@dekkers.cx>
4444         * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
4445         the old thread-m.h header too.
4447 2003-10-02  Ulrich Drepper  <drepper@redhat.com>
4449         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
4450         back to 131027 since this is what the kernel enforces.
4452         * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
4453         define it with libc_freeres_ptr.
4455 2003-10-01  Roland McGrath  <roland@redhat.com>
4457         * elf/rtld.c (dl_main): Add cast in last change.
4459 2003-09-10  Chris Demetriou  <cgd@broadcom.com>
4461         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
4462         "#if 0" surrounding most of contents.
4463         (SYSCALL_ERROR_LABEL): Define.
4464         (__SYSCALL_CLOBBERS): Add $10.
4465         (internal_syscall7): Remove.
4466         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
4468 2003-09-30  Ulrich Drepper  <drepper@redhat.com>
4470         * elf/rtld.c (dl_main): Also set l_map_start.
4472 2003-09-30  Daniel Jacobowitz  <drow@mvista.com>
4474         * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
4475         to work around kernel problem.
4477 2003-09-27  Wolfram Gloger  <wg@malloc.de>
4479         * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
4480         "thread-m.h", so that default parameters can be overridden in a
4481         system-specific malloc-machine.h.  Remove extra ; from extern "C"
4482         closing brace.
4483         * sysdeps/generic/malloc-machine.h: New file.
4484         * sysdeps/mach/hurd/malloc-machine.h: New file.
4485         * malloc/thread-m.h: Removed.
4486         * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
4487         is in sysdeps/generic/malloc-machine.h now.
4489 2003-09-29  Ulrich Drepper  <drepper@redhat.com>
4491         * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
4492         variables only used if TLS_TCB_AT_TP is defined into the #if
4493         branch.
4495         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
4496         well to cover using long long in C90.
4498 2003-09-28  Alfred M. Szmidt  <ams@kemisten.nu>
4500         * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
4501         Redefine and use __libc_cleanup_region_end instead.
4503 2003-09-29  Thorsten Kukuk  <kukuk@suse.de>
4505         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
4506         fix prototypes for picky C++ compilers.
4508 2003-09-27  Ulrich Drepper  <drepper@redhat.com>
4510         * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
4511         the device ID is invalid and return -1.
4512         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
4514 2003-09-26  Andreas Schwab  <schwab@suse.de>
4516         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
4517         rt_sigprocmask system call.
4519 2003-09-25  Roland McGrath  <roland@redhat.com>
4521         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
4522         Don't check for zero __libc_stack_end, it should be initialized.
4523         [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
4524         and fall back if it fails with EINVAL.
4525         [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
4527 2003-09-25  Jakub Jelinek  <jakub@redhat.com>
4529         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
4530         sysdeps/i386/dl-procinfo.c instead of
4531         sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
4532         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
4533         #include_next.
4535 2003-09-25  Ulrich Drepper  <drepper@redhat.com>
4537         * posix/regcomp.c (peek_token): Remove recent changes for anchor
4538         handling again.
4539         (parse_reg_exp): Likewise.
4540         * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
4542         * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
4543         banners.
4545         * nis/nis_table.c (nis_list): Always strdup string used with
4546         ibreq->ibr_name.  Add several NULL pointer checks.
4548         * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
4549         of nis_list.
4550         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
4551         * nis/nss_nisplus/nisplus-grp.c: Likewise.
4552         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
4553         * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
4554         * nis/nss_nisplus/nisplus-network.c: Likewise.
4555         * nis/nss_nisplus/nisplus-proto.c: Likewise.
4556         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4557         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
4558         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
4559         * nis/nss_nisplus/nisplus-service.c: Likewise.
4560         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
4562         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
4563         and PROT_GROWSUP.
4564         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
4565         * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
4566         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
4567         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4568         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
4569         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
4570         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
4571         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4572         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4573         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4574         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
4576 2003-09-25  Jakub Jelinek  <jakub@redhat.com>
4578         * misc/syslog.c: Include locale.h.
4579         (vsyslog): Add date always in C locale %h %e %T format.
4581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
4583         * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
4584         size_t overflow when reallocating storage.
4585         * argp/argp-help.c (make_hol, hol_append): Likewise.
4586         (SIZE_MAX): New macro.
4588 2003-08-07  Alfred M. Szmidt  <ams@kemisten.nu>
4590         * sysdeps/mach/hurd/bits/libc-lock.h
4591         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
4593 2003-08-01  Alfred M. Szmidt  <ams@kemisten.nu>
4595         * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
4596         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
4597         #include_next dl-procinfo.h to get them.
4598         (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
4599         (_DL_PLATFORMS_COUNT): Likewise.
4600         (_DL_FIRST_PLATFORM): Likewise.
4601         (_DL_HWCAP_PLATFORM): Likewise.
4602         (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
4603         HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
4604         HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
4605         HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
4606         HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
4607         HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
4608         HWCAP_IMPORTANT): Likewise.
4609         (_DL_PROCINFO_H_): Likewise.
4610         (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
4611         (_dl_string_platform): Likewise.
4612         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
4613         * sysdeps/i386/dl-procinfo.c: ... here, new file.
4615 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
4617         * sysdeps/unix/sysv/linux/dl-execstack.c
4618         (_dl_make_stack_executable): Remember that we changed the permission.
4620         * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
4621         __libc_stack_end.  Patch by David Mosberger.
4623 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
4625         * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
4626         __libc_stack_end@GLIBC_PRIVATE.
4628         * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
4629         (_dl_sysdep_start): Set __libc_stack_end here.
4630         * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
4631         __libc_stack_end.
4632         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
4633         * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
4634         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
4635         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
4636         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
4637         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
4638         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
4639         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
4640         * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
4641         * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
4642         (RTLD_START): Remove setting of __libc_stack_end.
4643         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
4644         (RTLD_START): Remove setting of __libc_stack_end.
4646 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
4648         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
4649         function definitions.  Adjust macro expansions accordingly.
4650         * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
4651         minor, makedev name.
4652         * sysdeps/unix/sysv/linux/makedev.c: Likewise.
4654 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
4656         * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
4657         Add __THROW.
4659 2003-09-24  Jakub Jelinek  <jakub@redhat.com>
4661         * nscd/Makefile (others): Add nscd before including ../Rules.
4663 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
4665         * nscd/Makefile: Add rules to build nscd as a PIE.
4666         * configure.in: Check for -fpie and -pie compiler options.
4667         * config.make.in (have-fpie): Define.
4669 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
4671         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
4672         kernel dev_t size.
4673         * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
4674         * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
4675         * sysdeps/unix/sysv/linux/makedev.c: New file.
4676         * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
4677         * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
4678         (sysdep_routines): Add makedev.
4679         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
4680         major, minor, makedev.
4681         * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
4682         kernel dev_t.
4683         * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
4684         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
4685         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
4686         Code by Alexander Viro <aviro@redhat.com>.
4688 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
4690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
4691         (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
4692         makecontext.
4693         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
4694         for include Altivec support for PPC32.  It was not compatible.
4695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
4696         offsets for ucontext_t change.
4697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
4698         for ucontext_t change.  Add compatibility code.
4699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
4700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
4701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
4702         Patch by Paul Mackerras <paulus@samba.org>.
4704 2003-02-25  Randolph Chung  <tausq@debian.org>
4706         * sysdeps/hppa/Makefile: Include compat code in build.
4707         * sysdeps/hppa/libgcc-compat.c: New file.
4708         * sysdeps/hppa/Dist: Add libgcc-compat.c.
4709         * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
4711 2003-09-23  Roland McGrath  <roland@redhat.com>
4713         * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
4714         GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
4715         Move GL(dl_make_stack_executable_hook) initialization up.
4716         * elf/tst-execstack-prog.c: New file.
4717         * elf/Makefile (tests-execstack-yes): Add it.
4718         (LDFLAGS-tst-execstack-prog): New variable.
4720 2003-09-23  Jakub Jelinek  <jakub@redhat.com>
4722         * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
4723         before calling _dl_start, using %rip relative access.
4724         Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
4725         and _dl_fini.
4727 2003-09-23  Roland McGrath  <roland@redhat.com>
4729         * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
4730         calling _dl_start, using GOTOFF access.
4732         * configure.in (libc_cv_z_execstack): New check.
4733         * configure: Regenerated.
4734         * config.make.in (have-z-execstack): New variable set by it.
4735         * elf/tst-execstack.c: New file.
4736         * elf/tst-execstack-mod.c: New file.
4737         * elf/tst-execstack-needed.c: New file.
4738         * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
4739         variables.
4740         (tests, modules-names): Conditionally include them.
4741         (distribute): Add tst-execstack-mod.c here.
4742         ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
4743         (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
4744         ($(objpfx)tst-execstack-needed): New target.
4745         (LDFLAGS-tst-execstack-needed): New variable.
4747         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
4748         and _dl_make_stack_executable_hook.  Declare _dl_make_stack_executable.
4749         * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
4750         (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
4751         Initialize _dl_make_stack_executable_hook.
4752         * elf/dl-support.c: Define those new variables.
4753         (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
4754         (_dl_phdr): Fix type.
4755         * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
4756         enable execute permission for the stack if necessary.
4757         * sysdeps/generic/dl-execstack.c: New file.
4758         * elf/Makefile (dl-routines): Add it.
4759         * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
4760         * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
4762 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
4764         * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
4766 2003-09-20  Alfred M. Szmidt  <ams@kemisten.nu>
4768         * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
4769         UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
4770         __fcntl_nocancel.
4772 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
4774         * malloc/malloc.c: Include <stdint.h>.
4776 2003-09-20  Paolo Bonzini  <bonzini@gnu.org>
4778         * posix/regcomp.c (build_word_op): Rename like...
4779         (build_charclass_op): ...this.  Accept two extra parameters,
4780         CLASS_NAME and EXTRA.  Add EXTRA to the result, not only _.
4781         (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
4782         (parse_expression): Replace build_word_op with
4783         build_charclass_op, add new arguments, accept OP_SPACE
4784         and OP_NOTSPACE.
4785         * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
4786         and OP_NOTSPACE.
4788         * posix/regcomp.c (peek_token): Don't look back for ( or |
4789         to check whether to treat a caret as special.  It fails
4790         for the (extended) regex \(^.
4791         (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
4792         * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
4794         * posix/regexec.c: Check out of bounds value before shifting.
4796         * posix/regex_internal.h: Define __attribute for non-gcc.
4798 2003-09-22  Jakub Jelinek  <jakub@redhat.com>
4800         * include/atomic.h (atomic_compare_and_exchange_val_rel,
4801         atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
4802         to avoid confusion.
4804         * sysdeps/unix/opendir.c: Include string.h.
4806 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
4808         * timezone/zdump.c: Update from tzcode2003c.
4809         * timezone/zic.c: Likewise.
4810         * timezone/leapseconds: Update from tzdata2003c.
4812 2003-09-19  Ulrich Drepper  <drepper@redhat.com>
4814         * elf/Makefile ($(objpfx)librtld.os): Create link map also for
4815         final build to ease quality control.
4817         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
4818         ld.so, don't include NULL buffer pointer handling.
4820 2003-09-19  Jakub Jelinek  <jakub@redhat.com>
4822         * dlfcn/dlopen.c (dlopen): Add static_link_warning.
4824 2003-09-18  Jakub Jelinek  <jakub@redhat.com>
4826         * libio/memstream.c (open_memstream): Use _IO_init instead of
4827         _IO_old_init.
4829 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
4831         * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
4832         have to recognize octal and hexadecimal numbers as well.  Simplify
4833         function, signs are handled in strtol.
4834         * posix/wordexp-test.c: Add tests for octal and hexadecimal
4835         numbers in arithmetic expressions.
4837 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
4839         * elf/Makefile (distribute): Add tst-alignmod.c.
4840         (tests): Add tst-align.
4841         (modules-names): Add tst-alignmod.
4842         (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
4843         $(stack-align-test-flags).
4844         ($(objpfx)tst-align): Depend on libdl.
4845         ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
4846         * elf/tst-align.c: New file.
4847         * elf/tst-alignmod.c: New file.
4848         * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
4849         * misc/tst-tsearch.c: Include tst-stack-align.h.
4850         (stack_align_check): New array.
4851         (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
4852         (main): Report error if stack was not enough aligned
4853         in cmp_fn or walk_action.
4854         * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
4855         * stdlib/tst-qsort.c: Include tst-stack-align.h.
4856         (align_check): New var.
4857         (compare): Use TEST_STACK_ALIGN () macro.
4858         (main): Report error if stack was not enough aligned in compare.
4859         * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
4860         unneeded -mpreferred-stack-boundary=4.
4861         * sysdeps/x86_64/tst-stack-align.h: New file.
4863         * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
4864         (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
4866 2003-09-17  Philip Blundell  <philb@gnu.org>
4868         * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
4869         (BX): Define.
4870         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
4872         * sysdeps/arm/sysdep.h (DO_RET): New.
4874         * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
4875         required but not defined.  Improve test of error code.
4877 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
4879         * sysdeps/i386/Makefile (stack-align-test-flags): Add
4880         -malign-double -mpreferred-stack-boundary=4.
4882 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
4884         * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
4885         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
4887 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
4889         * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
4890         subdir, add -mpreferred-stack-boundary=4, with few exceptions.
4892 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
4894         * Makeconfig (stack-align-test-flags): Set.
4895         * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
4896         $(stack-align-test-flags).
4897         * stdlib/tst-bsearch.c: Include tst-stack-align.h.
4898         (align_check): New var.
4899         (comp): Use TEST_STACK_ALIGN macro.
4900         (do_test): Fail if align_check != 1.
4901         * sysdeps/generic/tst-stack-align.h: New file.
4902         * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
4903         * sysdeps/i386/i686/tst-stack-align.h: New file.
4905 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
4907         * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
4908         stack which is aligned (mod 16).
4910 2003-09-17  Uwe Reimann  <Uwe_Reimann@gmx.net>
4911             Hans-Peter Nilsson  <hp@axis.com>
4913         * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
4914         R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT.  Clarify comment.
4916 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
4918         * dirent/scandir.c: Include bits/libc-lock.h.
4919         (struct scandir_cancel_struct): New type.
4920         (cancel_handler): New function.
4921         (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
4922         scandir_cancel_struct.
4924 2003-09-16  Ulrich Drepper  <drepper@redhat.com>
4926         * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
4927         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4928         Add internal_statvfs.
4929         * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
4930         instead of including "internal_statvfs.c".
4931         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
4932         * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
4933         Add code to avoid the stat calls on all the reported mount points
4934         when we can determine mismatch in advance.
4935         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
4936         USBDEVFS_SUPER_MAGIC.
4938 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
4940         * posix/Versions (sched_getaffinity, sched_setaffinity): Change
4941         from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
4943 2003-09-16  Bruno Haible  <bruno@clisp.org>
4945         * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
4946         invoking msgfmt, not before.
4948 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
4950         * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
4951         * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
4952         $(uses-callbacks).
4953         * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
4954         * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
4955         CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
4956         * elf/dl-iteratephdr.c (cancel_handler): New function.
4957         (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
4958         * elf/link.h (dl_iterate_phdr): Remove __THROW.
4959         * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
4960         Add $(uses-callbacks).
4961         (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
4962         * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
4963         $(exceptions) to $(uses-callbacks).
4964         * Makeconfig (uses-callbacks): Set to $(exceptions).
4965         * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
4966         $(uses-callbacks).
4967         * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
4968         Likewise.
4970 2003-09-15  Andreas Schwab  <schwab@suse.de>
4972         * sysdeps/m68k/setjmp.c: Add hidden_def.
4974 2003-09-14  Ulrich Drepper  <drepper@redhat.com>
4976         * libio/memstream.c (open_memstream): Don't allow wide char operations.
4978         * dirent/dirent.h: Remove __THROW from scandir.
4980 2003-09-14  Philip Blundell  <philb@gnu.org>
4982         * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
4983         to be available.
4985         * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
4987         * sysdeps/arm/memset.S: Rewrite.
4989 2003-09-12  Jakub Jelinek  <jakub@redhat.com>
4991         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
4992         (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
4993         __SLONGWORD_TYPE otherwise.
4995 2003-09-14  Ulrich Drepper  <drepper@redhat.com>
4997         * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
4998         (CFLAGS-ftw64.c): Likewise.
5000 2003-09-13  Ulrich Drepper  <drepper@redhat.com>
5002         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
5003         (CFLAGS-nscd_getgr_r.c): Likewise.
5004         (CFLAGS-nscd_gethst_r.c): Likewise.
5006 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
5008         * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
5009         interfaces.
5011         * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
5012         CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
5013         CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
5014         * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
5015         CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
5016         * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
5017         Likewise.
5018         * misc/Makefile (CFLAGS-err.c): Likewise.
5019         * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
5020         CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
5021         CFLAGS-glob64.c): Likewise.
5022         * pwd/Makefile (CFLAGS-getpw.c): Likewise.
5023         * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
5024         CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
5025         * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
5026         * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
5028         * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
5030         * libio/stdio.h: Remove __THROW from cuserid prototype.
5032         * locale/loadarchive.c: Use only non-cancelable interfaces.
5033         * resolv/herror.c (herror): Likewise.
5035         * malloc/hooks.c: Before using IO stream mark stream so it uses
5036         only non-cancelable interfaces.
5037         * malloc/malloc.c: Likewise.
5038         * posix/getopt.c: Likewise.
5041 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
5043         * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
5045 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
5047         * stdio-common/stdio_ext.h: Mark most functions with __THROW.
5049         * misc/err.h: Remove __THROW from all prototypes.
5051         * posix/getopt.h (__THROW): Define if not already defined.  Add
5052         __THROW to the getopt functions.
5054 2003-09-11  Ulrich Drepper  <drepper@redhat.com>
5056         * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
5057         (CFLAGS-fts.c): Likewise.
5058         * io/fcntl.h: Remove __THROW from lockf prototypes.
5059         * io/fts.h: Remove most __THROW.
5061 2003-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5063         * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
5064         (TLS_LD): Likewise.
5065         (TLS_GD): Likewise.
5067 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
5069         * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
5070         _IO_free_backup_area call.
5072 2003-09-10  Chris Demetriou  <cgd@broadcom.com>
5074         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
5075         syscall invocation.
5076         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
5077         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
5078         Also, only assert off_t size is 4 for N32 and O32, and clean up
5079         white space.
5080         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
5082 2003-09-10  Roland McGrath  <roland@redhat.com>
5084         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
5085         Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
5086         Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
5087         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
5088         Reported by Daniel Jacobowitz  <drow@mvista.com>.
5090 2003-09-10  Jakub Jelinek  <jakub@redhat.com>
5092         * string/Makefile (strop-tests): Add memccpy.
5093         * string/test-memccpy.c: New test.
5095 2003-09-09  Jakub Jelinek  <jakub@redhat.com>
5097         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
5098         siginfo_t * argument before, change into struct ucontext *.
5099         (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
5100         (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
5101         instead of structure.
5102         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
5103         Likewise.
5105 2003-09-09  Ulrich Drepper  <drepper@redhat.com>
5107         * string/stratcliff.c (main): Check memccpy.
5109 2003-04-11  Jes Sorensen  <jes@wildopensource.com>
5111         * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
5112         character is found during recovery, use correct register when
5113         determining the position of the found character.
5115 2003-04-01  Jes Sorensen  <jes@wildopensource.com>
5117         * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
5118         avoid segfaults when reading from unmapped pages. For aligned
5119         reload and continue, for misaligned, roll back and use byte copy.
5120         Save ar.ec on entry and restore on exit.
5122 2003-09-09  Chris Demetriou  <cgd@broadcom.com>
5124         * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
5126 2003-09-08  Chris Demetriou  <cgd@broadcom.com>
5128         * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
5129         the top of the list.
5130         * sysdeps/mips/mips64/n64/Implies: Likewise.
5132 2003-09-08  Roland McGrath  <roland@frob.com>
5134         * sysdeps/unix/sysv/linux/speed.c
5135         (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
5136         (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
5137         * sysdeps/unix/sysv/linux/bits/termios.h
5138         (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
5139         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5140         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5142 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
5144         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
5145         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
5147 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
5149         * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
5150         (__u_quad_t): Make unsigned long int if 64-bit.
5151         (__SQUAD_TYPE): Make long int if 64-bit.
5152         (__UQUAD_TYPE): Make unsigned long int if 64-bit.
5153         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
5155 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
5157         * Makefile (tests): Run check-c++-types.sh if possible.
5158         * scripts/check-c++-types.h: New file.
5159         * scripts/data/c++-types-i386-linux-gnu.data: New file.
5161 2003-09-08  Andreas Jaeger  <aj@suse.de>
5163         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5164         Use struct sigcontext.
5166         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
5167         Use struct sigcontext.
5168         (GET_PC): Adopt.
5169         (GET_FRAME): Likewise.
5170         (GET_STACK): Likewise.
5172 2003-09-08  Wolfram Gloger  <wg@malloc.de>
5174         * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
5175         contiguous case.  Bug report from Prem Gopalan <prem@mazunetworks.com>.
5176         (mALLOPt): Avoid requirement of C99.
5178 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
5180         * libio/bug-ftell.c: Include <sys/types.h>.
5181         (main): Mark cp as const.
5183 2003-09-07  Jakub Jelinek  <jakub@redhat.com>
5185         * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
5186         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
5188 2003-09-05  Roland McGrath  <roland@redhat.com>
5190         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
5191         and c_ospeed fields.
5192         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
5193         (cfsetispeed): Set c_ispeed field.
5194         * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
5195         to match corresponding speed.c code.
5197 2003-09-06  Ulrich Drepper  <drepper@redhat.com>
5199         * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
5200         narrow character buffer.
5201         * libio/Makefile: Add rules to build and run bug-ftell.
5202         * libio/bug-ftell.c: New file.
5204         * stdio-common/vfprintf.c: Don't use the first grouping number twice.
5206         * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
5207         matching the decimal point and possibly leading the thousands
5208         separator.  This caused the recognition of thousands separators to
5209         always fail.
5211 2003-09-05  Ulrich Drepper  <drepper@redhat.com>
5213         * libio/fileops.c (_IO_new_file_overflow): Handle switching to
5214         write mode from read in backup buffer.
5215         * libio/Makefile (tests): Add bug-ungetc2.
5216         * libio/bug-ungetc2.c: New file.
5218 2003-09-05  Roland McGrath  <roland@redhat.com>
5220         * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
5222 2003-09-04  Roland McGrath  <roland@frob.com>
5224         * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
5225         EOPNOTSUPP, or ENOSYS, change it to ENODEV.
5227 2003-09-04  H.J. Lu  <hongjiu.lu@intel.com>
5229         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
5230         Fix a typo.
5232 2003-09-05  Andreas Jaeger  <aj@suse.de>
5234         * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
5235         to make it conforming C.
5236         * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
5238         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
5239         prototype to use variable argument lists and get the possible one
5240         argument via va_arg.
5241         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
5242         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
5244 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
5246         * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
5248         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
5249         Report correct value for vxfs.
5250         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
5252         * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
5253         data.
5255         * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
5256         over the place.  It would be allowed to have these functions as
5257         cancellation points but the cleanup would be ugly and a lot of
5258         work.
5260         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
5261         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
5263         * include/fcntl.h (__fcntl_nocancel): Declare.
5264         * sysdeps/unix/sysv/linux/fcntl.c: New file.
5265         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
5266         cancellation if absolutely needed.
5267         (__fcntl_nocancel): Define.
5269         * posix/unistd.h (gethostid): Remove __THROW.  Clarify comment.
5270         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
5271         -fexceptions.
5272         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
5273         extend_alloca.
5275         * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
5276         instead of __close.
5278         * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts.  Remove
5279         unnecessary errno handling.
5281         * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
5282         Initialize it in all cases.  Change it to be a bit more like the
5283         code we had before.
5285 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
5287         * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
5288         __builtin_expect.
5289         (_IO_file_open): Likewise.  Use close_not_cancel.
5291 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
5293         * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
5294         * libio/fileops.c [_LIBC]: Remove close macro.
5295         (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
5296         (_IO_new_file_open): Recognize 'c' flag in mode string.
5297         (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
5298         (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
5299         write_not_cancel.
5300         * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
5301         * inet/rcmd.c: Likewise.
5302         * inet/ruserpass.c: Likewise.
5303         * intl/localealias.c: Likewise.
5304         * malloc/mtrace.c: Likewise.
5305         * misc/getpass.c: Likewise.
5306         * misc/getttyent.c: Likewise.
5307         * misc/mntent_r.c: Likewise.
5308         * misc/getusershell.c: Likewise.
5309         * nss/nsswitch.c: Likewise.
5310         * resolv/res_hconf.c: Likewise.
5311         * resolv/res_init.c: Likewise.
5312         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5313         * time/getdate.c: Likewise.
5314         * time/tzfile.c: Likewise.
5315         * misc/fstab.h: Undo last change.
5316         * misc/mntent.h: Likewise.
5317         * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
5318         CFLAGS-fstab.c definition.
5320 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
5322         * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
5324 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
5326         * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
5327         returning ERANGE if this wasn't intended.
5329 2003-09-03  Jakub Jelinek  <jakub@redhat.com>
5331         * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
5332         function-like macros.
5334 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
5336         * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
5337         (CFLAGS-getgrent.c): Likewise.
5338         * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
5339         (CFLAGS-getpwent.c): Likewise.
5340         * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
5341         (CFLAGS-getspent.c): Likewise.
5343         * inet/Makefile: Add -fexceptions to CFLAGS for the various
5344         getXXent and getXXbyYY functions.
5346         * locale/loadlocale.c: Use not-cancelable variants of open, close,
5347         and read.
5349 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
5351         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
5352         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
5353         rt_sigpending.
5354         * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
5355         New prototype.
5356         * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
5357         unused __syscall_ stubs.
5358         * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
5359         rt_*.
5360         * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
5361         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
5362         (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
5363         * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
5364         unused __syscall_ stubs.
5365         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
5366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
5367         (__syscall_*): Remove unused __syscall_ stubs.
5368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
5369         (__syscall_*): Likewise.
5370         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
5371         rt_*.
5372         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
5373         Remove unused __syscall_ stubs.
5374         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
5375         * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
5376         * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
5377         * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
5378         * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
5379         * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
5380         * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
5381         * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
5382         * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
5383         * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
5384         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
5385         __syscall_* prototypes.
5386         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
5387         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
5388         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
5389         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
5390         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5391         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5392         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
5393         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5394         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5395         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5396         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5397         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
5398         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5399         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5400         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5401         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5402         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5403         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5404         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5405         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
5406         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5407         * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
5408         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5409         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5410         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
5411         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
5412         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
5413         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5414         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
5415         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
5416         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
5417         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5418         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5419         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5420         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5421         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5422         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5423         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5424         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5425         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5426         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5427         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5428         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5429         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5430         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5431         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
5432         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5433         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5434         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
5435         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5436         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5437         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5438         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
5439         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
5440         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5441         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
5442         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
5443         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
5444         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
5445         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
5446         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
5447         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
5448         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
5449         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5450         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5451         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5452         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5453         * sysdeps/unix/sysv/linux/execve.c: Likewise.
5454         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5455         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
5456         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
5457         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
5458         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5459         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5460         * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
5461         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
5462         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
5463         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5464         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5465         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5466         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
5467         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5468         * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
5469         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5470         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5471         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5472         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
5473         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5474         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5475         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5476         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5477         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5478         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5479         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5480         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5481         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5482         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5483         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5484         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5485         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5486         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5487         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5489 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
5491         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
5492         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
5493         * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
5495 2003-09-02  Ulrich Drepper  <drepper@redhat.com>
5497         * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
5499         * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
5500         open, close, and read.
5502         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
5503         *_nocancel name.
5505         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
5507         * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
5508         * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
5509         * libio/oldtmpfile.c (__old_tmpfile): Likewise.
5511         * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
5513         * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
5514         (CFLAGS-fstatfs.c): Likewise.
5515         (CFLAGS-statvfs.c): Likewise.
5516         (CFLAGS-fstatvfs.c): Likewise.
5518 2003-09-01  Ulrich Drepper  <drepper@redhat.com>
5520         * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
5521         * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
5522         sysconf.
5523         * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
5524         (CFLAGS-pathconf.c): Likewise.
5525         (CFLAGS-fpathconf.c): Likewise.
5527         * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
5528         * misc/fstab.h: Remove all __THROW.
5529         * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
5530         (CFLAGS-mntent_r.c): Likewise.
5531         * misc/mntent.h: Remove most __THROW.
5533         * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
5534         (CFLAGS-mkstemp64.c): Likewise.
5536         * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
5537         around call to exec_comm.
5538         * posix/wordexp.h: Remove __THROW from wordexp.
5539         * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
5541         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
5542         not-cancelable functions.
5544         * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
5545         (CFLAGS-iofopen.c): Likewise.
5546         (CFLAGS-iofopen64.c): Likewise.
5548         * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
5549         functions.
5550         * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
5551         * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
5553         * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
5554         * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
5556 2003-09-01  Thorsten Kukuk  <kukuk@suse.de>
5558         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
5559         NSS_STATUS_SUCCESS if entry was found.
5560         (getspent_next_file): Store user in blacklist after entry
5561         was found, use innetgr.
5563 2003-09-01  Jakub Jelinek  <jakub@redhat.com>
5565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
5566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
5568         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
5569         computation for TCB_AT_TP.  Support l_firstbyte_offset != 0 for
5570         DTV_AT_TP, optimize.
5572 2003-08-31  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5574         * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
5575         posix_fallocate64 at GLIBC_2.3.3.
5576         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
5577         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
5579 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5581         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
5582         functions.
5584 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
5586         * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
5587         Code by Richard Henderson.
5589 2003-08-31  Philip Blundell  <philb@gnu.org>
5591         * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
5592         posix_fallocate64 at GLIBC_2.3.3.
5594 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
5596         * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
5597         * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
5599 2003-08-30  Jakub Jelinek  <jakub@redhat.com>
5601         * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
5602         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
5603         included multiple times.
5604         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
5605         ptid, tls, ctid arguments to the kernel.
5606         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
5607         Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
5608         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5609         (__libc_sigaction): Use INLINE_SYSCALL instead of
5610         __syscall_rt_sigaction.
5611         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
5612         (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
5613         __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
5614         __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
5615         __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
5616         __syscall_rt_sigpending, __syscall_rt_sigprocmask,
5617         __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
5618         __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
5619         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
5620         Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
5621         rt_sigqueueinfo, rt_sigaction and rt_sigpending.
5622         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5623         (__CLONE_SYSCALL_STRING): Define.
5624         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
5625         CFI directives.
5626         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5627         (__CLONE_SYSCALL_STRING): Define.
5628         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
5629         Define.
5630         * sysdeps/unix/sysv/linux/sparc/system.c: New file.
5632 2003-08-30  Ulrich Drepper  <drepper@redhat.com>
5634         * sunrpc/rpc/clnt.h: Remove a few __THROW.
5635         * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
5636         (CFLAGS-key_call.c): Likewise.
5637         (CFLAGS-pmap_rmt.c): Likewise.
5638         (CFLAGS-clnt_perr.c): Likewise.
5639         * sunrpc/rpc/auth.h: Remove serveral __THROW.
5641         * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
5642         (CFLAGS-gethstbynm_r.c): Likewise.
5643         (CFLAGS-gethstbynm2_r.c): Likewise.
5644         (CFLAGS-rcmd.c): Likewise.
5645         * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
5647         * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
5648         (CFLAGS-argp-fmtstream.c): Likewise.
5649         * argp/argp.h: Remove a number of __THROW.
5651         * misc/sys/syslog.h (vsyslog): Remove __THROW.
5653         * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
5654         * misc/getpass.c (getpass): Add cleanup handler to ensure the
5655         stream is closed even if the thread is canceled.
5656         (call_fclose): New function.
5657         * posix/unistd.h: Remove __THROW from getpass prototype.
5659         * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
5661         * signal/signal.h (psignal): Remove __THROW.
5662         * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
5664         * misc/Makefile (CFLAGS-error.c): Define.
5665         * misc/error.c (error): Disable cancellation handling around the
5666         actual output.  The message should in any case be printed.
5667         (error_at_line): Likewise.
5669         * misc/error.h: Protect parameter names with leading __.
5671 2003-08-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
5673         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
5675 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
5677         * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
5678         end.
5680 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
5682         * libio/stdio.h: Remove a few more __THROW.
5684 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
5686         * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
5687         fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
5688         getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
5689         iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
5690         iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
5691         iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
5692         ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
5693         oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
5694         oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
5695         putwchar.c and rewind.c with exceptions.
5696         * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
5697         _IO_release_lock): Define.
5698         * libio/fileops.c (_IO_new_file_underflow): Use it.
5699         * libio/fputc.c (fputc): Likewise.
5700         * libio/fputwc.c (fputwc): Likewise.
5701         * libio/freopen64.c (freopen64):
5702         * libio/freopen.c (freopen): Likewise.
5703         * libio/fseek.c (fseek): Likewise.
5704         * libio/fseeko64.c (fseeko64): Likewise.
5705         * libio/fseeko.c (fseeko): Likewise.
5706         * libio/ftello64.c (ftello64): Likewise.
5707         * libio/ftello.c (ftello): Likewise.
5708         * libio/fwide.c (fwide): Likewise.
5709         * libio/getc.c (_IO_getc): Likewise.
5710         * libio/getchar.c (getchar): Likewise.
5711         * libio/getwc.c (_IO_getwc): Likewise.
5712         * libio/getwchar.c (getwchar): Likewise.
5713         * libio/iofclose.c (_IO_new_fclose):
5714         * libio/iofflush.c (_IO_fflush): Likewise.
5715         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
5716         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
5717         * libio/iofgets.c (_IO_fgets): Likewise.
5718         * libio/iofgetws.c (fgetws): Likewise.
5719         * libio/iofputs.c (_IO_fputs): Likewise.
5720         * libio/iofputws.c (fputws): Likewise.
5721         * libio/iofread.c (_IO_fread): Likewise.
5722         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
5723         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
5724         * libio/ioftell.c (_IO_ftell): Likewise.
5725         * libio/iofwrite.c (_IO_fwrite): Likewise.
5726         * libio/iogetdelim.c (_IO_getdelim): Likewise.
5727         * libio/iogets.c (_IO_gets): Likewise.
5728         * libio/ioputs.c (_IO_puts): Likewise.
5729         * libio/ioseekoff.c (_IO_seekoff): Likewise.
5730         * libio/ioseekpos.c (_IO_seekpos): Likewise.
5731         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
5732         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
5733         * libio/ioungetc.c (_IO_ungetc): Likewise.
5734         * libio/ioungetwc.c (ungetwc): Likewise.
5735         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
5736         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
5737         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
5738         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
5739         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
5740         * libio/peekc.c (_IO_peekc_locked): Likewise.
5741         * libio/putc.c (_IO_putc): Likewise.
5742         * libio/putchar.c (putchar): Likewise.
5743         * libio/putwc.c (putwc): Likewise.
5744         * libio/putwchar.c (putwchar): Likewise.
5745         * libio/rewind.c (rewind): Likewise.
5746         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
5748 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
5750         * signal/signal.h: sighold, sigrelse, sigignore, sigset were
5751         available in XPG4.2.
5753 2003-08-27  Phil Knirsch  <pknirsch@redhat.com>
5754             Jakub Jelinek  <jakub@redhat.com>
5756         * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
5757         big endian arches.  Don't read beyond end of fds_bits array.
5759 2003-04-27  Bruno Haible  <bruno@clisp.org>
5761         * manual/message.texi (Advanced gettext functions): Add information
5762         about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
5763         Add section about Lithuanian, reported by Ricardas Cepas
5764         <rch@richard.eu.org>.
5765         Add information about Croatian.
5766         Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
5767         Remove remark about continuation lines that is not true for PO files.
5768         Fix formula for Slovenian, reported by Roman Maurer
5769         <roman.maurer@amis.net>.
5771 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
5773         * math/math_private.h: Declare __copysignf.
5774         * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
5775         copysignf.
5777         * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
5778         __signbit, and __signbitl inline functions.
5780         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
5781         HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
5783         * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
5784         * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
5786 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
5788         * inet/inet_mkadr.c (inet_makeaddr): Optimize.
5790 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
5792         * include/stdio.h: Add declarations for __builtin_fwrite and
5793         __builtin_fwrite_unlocked.
5795 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
5797         * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
5798         fits into allocation.  Add padding on 32-bit arches so that
5799         dirp->data is enough aligned for struct dirent64.
5800         Avoid clearing of the buffer, just clear DIR structure.
5802 2003-08-26  Ulrich Drepper  <drepper@redhat.com>
5804         * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
5805         * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
5807 2003-08-26  Steven Munroe  <sjmunroe@us.ibm.com>
5809         * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
5811 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
5813         * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
5814         to match format string.
5815         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
5816         __old_buf.
5817         (__new_semctl): Shut up warning.
5818         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
5819         (_dl_string_hwcap): Add __attribute__ ((always_inline)).
5821 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
5823         * elf/ldconfig.c (search_dir): When checking for GNU-style .so
5824         link file use the real file name, not the resolved name we got by
5825         following the symlinks.
5827 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
5829         * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
5830         if the object size is large enough.
5832 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
5834         * elf/ldconfig.c (search_dir): Treat symlink as regular file
5835         if it won't point to itself unless it is .so symlink for the linker.
5837 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
5839         * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
5840         use _mode if _IO_fwide_maybe_incompatible.
5841         * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
5842         the compatibility test.
5844 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
5846         * elf/cache.c (save_cache): Don't write beyond end of file_entries
5847         buffer.
5848         Duplicate last old cache entry if the count would be odd.
5850 2003-08-25  Andreas Jaeger  <aj@suse.de>
5852         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
5853         __LONG_LONG_PAIR to long.
5855 2003-08-25  Philip Blundell  <philb@gnu.org>
5857         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
5858         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
5860 2003-08-18  Alfred M. Szmidt  <ams@kemisten.nu>
5862         * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
5863         and use __libc_cleanup_region_end instead.
5865 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
5867         * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
5869 2003-08-22  Ulrich Drepper  <drepper@redhat.com>
5871         * io/fcntl.h (posix_fallocate): Change type of third parameter to
5872         off_t.
5873         (posix_fallocate64): Change type of third parameter to off64_t.
5874         * sysdeps/generic/posix_fallocate.c: Adjust for type change.
5875         * sysdeps/posix/posix_fallocate.c: Likewise.
5876         * sysdeps/generic/posix_fallocate64.c: Likewise.
5877         * sysdeps/posix/posix_fallocate64.c: Likewise.  Add compatibility
5878         code for 32-bit platforms.
5879         * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
5880         posix_fallocate64.
5881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
5882         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
5883         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
5885 2003-08-19  Ulrich Drepper  <drepper@redhat.com>
5887         * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
5888         the type, not to name.
5890         * stdio-common/test-vfprintf.c (main): Don't write temporary file
5891         into source directory.
5893         * malloc/malloc.c (_int_free): Add cheap test for some invalid
5894         block sizes.
5896         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
5897         syscall name.
5899 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
5901         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
5902         into EINVAL.
5904 2003-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5906         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
5907         (elf_machine_lazy_rel): Likewise.
5909 2003-08-18  Art Haas  <ahaas@airmail.net>
5911         * malloc/malloc.h: Remove unneeded ';' where closing the C++
5912         extern block.
5914 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
5916         * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
5917         loading big binaries where @gprel(sym) cannot be handled in 'add'
5918         but instead has to be used with 'movl'.
5920 2003-08-17  Juergen Kreileder <jk@blackdown.de>
5921             Andreas Jaeger  <aj@suse.de>
5923         * sysdeps/x86_64/bits/byteswap.h: New file.
5925 2003-08-17  Andreas Jaeger  <aj@suse.de>
5927         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
5929 2003-08-16  Jakub Jelinek  <jakub@redhat.com>
5931         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
5932         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5933         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
5934         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5935         * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
5936         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5937         * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
5938         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
5939         * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
5940         ret_ERRVAL): Define.
5941         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
5942         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5943         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
5944         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5945         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
5946         Define.
5947         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
5948         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
5949         * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
5951         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
5952         posix_fadvise64_64): Remove.
5953         * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
5954         V flag.
5955         * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
5956         Likewise.
5957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
5958         (posix_fadvise64): Likewise.
5959         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
5960         (posix_fadvise64): Likewise.
5961         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
5962         (posix_fadvise64): Likewise.
5963         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
5964         Likewise.
5965         * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
5966         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
5967         (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
5968         (__posix_fadvise64_l32): New function.
5969         * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
5970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
5971         posix_fadvise64@@GLIBC_2.3.3.
5972         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
5973         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
5974         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
5975         error value.
5976         * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
5978         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5979         (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
5981 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
5983         * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
5984         (elf_machine_matches_host): Remove weak extern stuff.
5985         Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
5986         (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
5987         stuff.  Use GL(dl_hwcap) unconditionally.
5989 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
5991         * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
5992         __libc_start_main branch.
5994 2003-08-16  Jakub Jelinek <jakub@redhat.com>,
5995             Andreas Jaeger  <aj@suse.de>
5997         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
5998         instead of setting errno.
5999         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
6001 2003-08-16  Andreas Jaeger  <aj@suse.de>
6003         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
6004         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
6006 2003-08-15  Ulrich Drepper  <drepper@redhat.com>
6008         * io/fcntl.h (posix_fadvise64): Change type of third parameter to
6009         off_t.
6010         * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
6011         * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
6012         description indicating the error value is returned, not -1.
6013         * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
6014         __ASSUME_FADVISE64_64_SYSCALL.
6015         * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
6016         posix_madvise in one file.  Have posix_madvise defined with error
6017         value returned.
6018         Define posix_fadvise64_64 entry.  Add version info to posix_fadvise64
6019         entry.
6020         * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
6021         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
6022         PSEUDO_END_ERRVAL, and ret_ERRVAL.
6023         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
6024         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6025         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
6026         posix_fadvise64.
6028         * posix/Makefile (routines): Add posix_madvise.
6029         * sysdeps/generic/madvise.c: Don't define posix_madvise.
6030         * sysdeps/generic/posix_madvise.c: New file.
6031         * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
6032         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
6033         Add posix_fadvise64_64.
6035 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
6037         * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
6038         3.0, not for !gcc or gcc < 3.0.
6040 2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
6042         * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
6043         Address passed to test_in_mod1 and test_in_mod2 without casting.
6044         * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
6045         (test_in_mod1): Cast dlsym loaded value to same type as mainp.
6046         * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
6047         (test_in_mod2): Cast dlsym loaded value to same type as mainp.
6049 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
6051         * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
6052         Change quotes before using [].
6054         * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
6056         * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
6057         Renamed to...
6058         (__sparc32_atomic_locks): ...this.  Change into 64-byte array.
6059         (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
6060         argument.  Select one of 64 locks from address bits.
6061         (atomic_compare_and_exchange_val_acq,
6062         atomic_compare_and_exchange_bool_acq): Pass memory address to
6063         __sparc32_atomic_do_{,un}lock.
6065 2003-08-14  Ulrich Drepper  <drepper@redhat.com>
6067         * assert/assert.h (assert): Use !! in front of expression to allow
6068         use of pointers.
6070         * iconvdata/cp932.c: Fixed checking of a few border of code areas.
6071         Changed conversion of JIS X 0201 from using a table to calculating.
6072         * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
6073         conversion routine.  Changed CHARSET_NAME definition from EUCJP-MS to
6074         EUC-JP-MS.
6075         * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
6076         * iconvdata/CP932.irreversible: New file.
6077         * iconvdata/EUC-JP-MS.irreversible: New file.
6078         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
6080 2003-08-13  Ulrich Drepper  <drepper@redhat.com>
6082         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
6084         * elf/Makefile: Use LC_ALL=C in a few cases where we call external
6085         text processing tools.
6087         * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
6088         element unless BROKEN_THREAD_SIGNALS is defined.
6089         (struct requestlist): Likewise.
6090         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
6091         caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
6092         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
6093         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
6094         parameter unless BROKEN_THREAD_SIGNALS is defined.  Adjust callers.
6095         Pass current PID to __aio_sigqueue.
6096         * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
6097         call.  Don't initialize caller_pid field of waitlist element.
6099 2003-08-12  Jakub Jelinek  <jakub@redhat.com>
6101         * libio/libioP.h (_IO_vtable_offset): Define.
6102         * libio/freopen.c (freopen): Use it.
6103         * libio/ioputs.c (_IO_puts): Likewise.
6104         * libio/freopen64.c (freopen64): Likewise.
6105         * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
6106         Likewise.
6107         * libio/iofclose.c (_IO_new_fclose): Likewise.
6108         * libio/iofputs.c (_IO_fputs): Likewise.
6109         * libio/ioftell.c (_IO_ftell): Likewise.
6110         * libio/iofwrite.c (_IO_fwrite): Likewise.
6111         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
6112         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
6113         * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
6114         * stdio-common/vfscanf.c (ORIENT): Likewise.
6116 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
6118         * assert/assert.h: Use __builtin_expect in assert and
6119         assert_perror definitions if possible.
6121 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
6123         * sysdeps/generic/ldsodefs.h (_rtld_global): Add
6124         _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
6125         * elf/rtld.c (rtld_lock_default_lock_recursive,
6126         rtld_lock_default_unlock_recursive): New functions.
6127         (dl_main): Initialize _dl_rtld_lock_recursive and
6128         _dl_rtld_unlock_recursive.
6130 2003-08-05  Jakub Jelinek  <jakub@redhat.com>
6132         * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
6133         config_file directories instead of prepending.
6135 2003-08-02  Ulrich Drepper  <drepper@redhat.com>
6137         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6138         __ASSUME_CLONE_STOPPED.
6140 2003-08-01  Ulrich Drepper  <drepper@redhat.com>
6142         * sysdeps/generic/bits/libc-lock.h
6143         (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
6145 2003-08-01  Roland McGrath  <roland@frob.com>
6147         * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
6149 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
6151         * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
6152         instead of __SWORD_TYPE.
6153         * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
6154         * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
6155         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
6156         Define.
6157         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
6158         Define.
6159         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
6160         Define.
6161         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
6163         * dlfcn/dlerror.c (once): New.
6164         (dlerror): Call __libc_once.
6165         (_dlerror_run): Remove once.
6167         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6168         Sync with 2.5.7 and 2.5.73 kernel changes.
6170         * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
6171         * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
6172         formats to size_t.
6173         * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
6174         * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
6175         * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
6176         * gmon/tst-sprofil.c (main): Add parens to shut up warning.
6177         * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
6178         difference argument.
6179         * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
6180         format to wint_t.
6181         * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
6182         %d format and cast expected value to int.
6183         * sysdeps/generic/libc-start.c (STATIC): Add
6184         __attribute__((always_inline) if LIBC_START_MAIN is already defined.
6185         * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
6186         to ieee_float_shape_type.
6187         (__sqrt): Avoid type punning.
6188         * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
6189         to ieee_float_shape_type.
6190         (__sqrtf): Avoid type punning.
6191         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
6192         refsym if in dl-conflict.c.
6193         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6194         * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
6195         (__new_semctl): Shut up warning.
6196         * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
6197         (__new_semctl): Shut up warning.
6198         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
6199         Change old into union of __old_shmid_ds and __old_shminfo structs.
6200         Adjust all users.
6201         * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
6203         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
6204         modtime computation.
6205         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
6206         * sysdeps/posix/utimes.c (__utimes): Likewise.
6208 2003-07-30  Jakub Jelinek  <jakub@redhat.com>
6210         * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
6211         call dl_signal_error directly.  If already relocated, call
6212         GL(dl_init_static_tls) directly, otherwise queue it for later.
6213         (CHECK_STATIC_TLS): Undo 2003-07-24 change.
6214         * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
6215         * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
6216         for all static TLS initializations delayed in _dl_allocate_static_tls.
6217         * elf/dl-support.c (_dl_init_static_tls): New variable.
6218         * include/link.h (struct link_map): Add l_need_tls_init.
6219         * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
6220         (_dl_nothread_init_static_tls): New prototype.
6221         (_dl_allocate_static_tls): Adjust prototype.
6223         * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
6225 2003-07-31  Alexandre Oliva  <aoliva@redhat.com>
6227         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6228         elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
6229         reloc_addr is aligned.
6230         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
6231         elf_machine_rela_relative): Adjust.
6232         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
6233         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
6234         * sysdeps/cris/dl-machine.h (elf_machine_rela,
6235         elf_machine_rela_relative): Adjust.
6236         * sysdeps/hppa/dl-machine.h (elf_machine_rela,
6237         elf_machine_rela_relative): Adjust.
6238         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
6239         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
6240         * sysdeps/ia64/dl-machine.h (elf_machine_rela,
6241         elf_machine_rela_relative): Adjust.
6242         * sysdeps/m68k/dl-machine.h (elf_machine_rela,
6243         elf_machine_rela_relative): Adjust.
6244         * sysdeps/mips/dl-machine.h (elf_machine_rela,
6245         elf_machine_rela_relative): Adjust.
6246         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
6247         elf_machine_rela_relative): Adjust.
6248         * sysdeps/powerpc/powerpc64/dl-machine.h
6249         (elf_machine_rela_relative, elf_machine_rela): Adjust.
6250         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
6251         elf_machine_rela_relative): Adjust.
6252         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
6253         elf_machine_rela_relative): Adjust.
6254         * sysdeps/sh/dl-machine.h (elf_machine_rela,
6255         elf_machine_rela_relative): Adjust.
6256         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
6257         elf_machine_rela_relative): Adjust.
6258         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
6259         elf_machine_rela_relative): Adjust.
6260         * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
6261         elf_machine_rela_relative): Adjust.
6263 2003-07-29  Ulrich Drepper  <drepper@redhat.com>
6265         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
6266         alignment of TCB used before the last change so that it matches
6267         ld's output for IE code.
6269 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
6271         * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
6272         __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
6273         break strict-aliasing rules" warnings.
6275 2003-07-29  Roland McGrath  <roland@redhat.com>
6277         * elf/Makefile: Revert accidental changes in last commit.
6278         * elf/dl-support.c: Likewise.
6280         * rt/tst-timer2.c: New file.
6281         * rt/Makefile (tests): Add it.
6283 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
6285         * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
6287 2003-07-29  Roland McGrath  <roland@redhat.com>
6289         * elf/Makefile (tests) [$(build-shared) = yes]:
6290         Depend on $(test-modules).
6291         * dlfcn/Makefile: Likewise.
6293 2003-07-28  Roland McGrath  <roland@redhat.com>
6295         * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
6296         Use that instead of `typedef' when using __*_TYPE macros in rhs.
6298         * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
6299         * elf/tst-tlsmod14a.c: Likewise.
6301         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
6302         before <linux/sysctl.h>.
6304 2003-07-27  Ulrich Drepper  <drepper@redhat.com>
6306         * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
6307         * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
6308         * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
6309         * sysdeps/unix/syscalls.list: umask syscall never fails.
6311 2003-07-27  Andreas Jaeger  <aj@suse.de>
6313         * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
6315 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
6317         * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
6318         Include bits/a.out.h.
6319         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6320         bits/a.out.h.
6321         * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
6322         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
6323         * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
6324         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
6325         * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
6326         * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
6327         * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
6328         * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
6330 2003-07-24  Jakub Jelinek  <jakub@redhat.com>
6332         * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
6333         if aiocbp != NULL and has already completed.  Return -1/EINVAL if
6334         aiocbp->aio_fildes does not match fildes.
6336 2003-07-24  Ulrich Drepper  <drepper@redhat.com>
6338         * timezone/zic.c (rpytime): Replace cheap overflow check with a
6339         functioning one.
6341         * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
6342         * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
6343         Fix calculation of offsets to take misalignment of first byte in
6344         file into account.
6345         * elf/dl-load.c (_dl_map_object_from_fd): Initialize
6346         l_tls_firstbyte_offset field.
6347         * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
6348         * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
6349         Take l_tls_firstbyte_offset information into account.
6350         (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
6351         * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
6352         * elf/Makefile: Add rules to build and run tst-tls14.
6353         * elf/tst-tls14.c: New file.
6354         * elf/tst-tlsmod14a.c: New file.
6355         * elf/tst-tlsmod14b.c: New file.
6357 2003-07-23  Jakub Jelinek  <jakub@redhat.com>
6359         * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
6360         (lio_listio): Use it.
6361         * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
6362         after few defines to avoid duplication.
6364 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
6366         * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
6367         * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
6368         Likewise.
6369         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
6370         Add libc_hidden_def.
6371         * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
6372         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
6373         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
6374         * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
6375         __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
6376         * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
6377         * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
6378         change.
6379         * sysdeps/generic/unwind.inc: Removed.
6381         * include/resolv.h (__resp): Declare.  Define to __libc_resp
6382         if in libc.so.
6383         (_res): If USE___THREAD, define to (*__resp).
6384         * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
6385         even if USE___THREAD.
6386         (__resp): New __thread variable.
6387         (__libc_resp): New alias.
6388         * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
6389         USE_TLS && HAVE___THREAD.  Export __resp@@GLIBC_PRIVATE.
6390         * sysdeps/generic/res-state.c (__res_state): Return __resp
6391         if USE___THREAD.
6393 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
6395         * elf/dl-support.c (_dl_hwcap): New variable.
6396         (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
6398         * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
6399         and <dl-procinfo.h>.
6400         (__feclearexcept): Clear MXCSR if needed.
6401         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
6403         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
6404         that newer hardware needs more than these macros.
6406         * sysdeps/i386/setfpucw.c: New file.
6408 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
6410         * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
6411         * elf/ldconfig.c: Include dl-procinfo.c.
6412         (PROCINFO_CLASS): Define.
6413         * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
6414         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
6415         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
6416         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
6417         Define if not yet defined.  Use it instead of EXTERN.  Undefine
6418         at the end of the file.
6419         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
6420         Likewise.
6421         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
6422         (PROCINFO_CLASS): Likewise.
6423         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
6424         (PROCINFO_CLASS): Likewise.
6426 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
6428         * elf/ldconfig.c (main): Issue a fatal error if relative path
6429         is used to build cache.
6431 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
6433         * elf/readlib.c (process_file): Avoid possible overflow in assignment.
6435 2003-07-21  Art Haas  <ahaas@airmail.net>
6437         * manual/charset.texi (Converting a Character): Fix example code so a
6438         valid pointer is returned.
6440 2003-07-22  Andreas Jaeger  <aj@suse.de>
6442         * elf/readlib.c (process_file): Check that file is a shared
6443         object.
6445         * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
6446         will not optimize it away.
6447         (__DTOR_END__): Likewise.
6448         (__CTOR_END__): Likewise.
6450         * include/libc-symbols.h (_elf_set_element): Use attribute used so
6451         that gcc will not optimize it away.
6452         (link_warning): Likewise.
6454 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
6456         * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
6457         * wcsmbs/Makefile (tests): Add tst-wcpncpy.
6458         * wcsmbs/tst-wcpncpy.c: New file.
6460 2003-07-21  Ulrich Drepper  <drepper@redhat.com>
6462         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
6464         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
6465         stmxcsr and ldmxcsr.
6467         * Makerules (build-module-helper): Add -z defs unless explicitly said
6468         not to do it.
6469         * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
6470         which has undefined symbols.
6471         * elf/Makefile: Likewise.
6473         * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
6474         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6475         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6476         * sysdeps/i386/fpu/fesetround.c: Likewise.
6477         * sysdeps/i386/fpu/ftestexcept.c: Likewise.
6479 2003-07-21  HJ Lu  <hongjiu.lu@intel.com>
6481         * elf/ldconfig.c (search_dir): Treat symlink as regular file
6482         if it won't point to itself.
6484 2003-07-20  Ulrich Drepper  <drepper@redhat.com>
6486         * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
6488 2003-07-20  Andreas Jaeger  <aj@suse.de>
6490         * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
6491         STANDARD_TO_LOOP_ERR_HANDLER.
6492         * iconvdata/euc-jp-ms.c (BODY): Likewise.
6494 2003-07-19  Ulrich Drepper  <drepper@redhat.com>
6496         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
6498         * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
6500 2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
6501             Andreas Jaeger  <aj@suse.de>
6503         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
6504         256K, remove unneeded declaration of __getpagesize.
6506 2003-07-16  Andreas Schwab  <schwab@suse.de>
6508         * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
6510 2003-07-15  Ulrich Drepper  <drepper@redhat.com>
6512         * io/test-utime.c (main): Make test yet more robust.
6514 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
6516         More cancellation handling fixups.
6517         * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
6518         * sysdeps/generic/not-cancel.h: Likewise.
6519         * catgets/open_catalog.c: Use not-cancelable syscalls.
6520         * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
6521         * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
6522         * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
6523         * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
6524         * io/fcntl.h: Don't mark posix_fallocate with __THROW.
6525         * libio/fileops.c: Use not-cancelable syscalls for fclose.
6526         * libio/iopopen.c: Use no-cancelable syscalls.
6527         * libio/stdio.h: Mark popen and pclose with __THROW again.
6528         * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
6529         * misc/syslog.c: Fix locking and cancellation cleanup handling.
6530         * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
6531         * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
6532         CFLAGS-tempname.c): Add -fexceptions.
6533         * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
6534         * string/string.h: Mark strerror and strerror_r with _THROW again.
6535         * sysdeps/generic/unwind.inc: New file.  Copied from gcc.
6536         * sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
6537         #ifs since we now need all the code compiled.
6538         * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
6539         * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
6540         * sysdeps/unix/opendir.c: Likewise.
6542         * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
6543         Add rule for EUC-JP-MS dependency.
6544         * iconvdata/cp932.c: New file.
6545         * iconvdata/eucjp-ms.c: New file.
6546         * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
6547         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
6549 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
6551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
6552         cfi directives.
6554 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6556         * sysdeps/unix/sysv/linux/kernel-features.h
6557         (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
6558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
6560         * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
6562 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
6564         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6565         __ASSUME_TGKILL for Alpha appropriately.
6567 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
6569         * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
6570         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
6571         Likewise.
6572         * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
6573         Likewise.
6575         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6576         __ASSUME_UTIMES for x86 and kernels > 2.5.75.
6578         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
6579         second parameter == NULL.
6580         * sysdeps/unix/sysv/linux/utimes.c: New file.
6582 2003-07-12  Jakub Jelinek  <jakub@redhat.com>
6584         * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
6585         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
6586         a typo.
6588 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
6590         * time/sys/time.h: Namespace cleanup.
6591         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6592         __ASSUME_UTIMES for the architectures which always had the syscall.
6593         * sysdeps/unix/sysv/linux/futimes.c: New file.
6595 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6597         * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
6598         register across CENABLE and CDISABLE.
6600 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
6602         * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
6603         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6604         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6605         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
6606         int before assigning to max to avoid warnings.
6608 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
6610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
6611         cfi directives.
6612         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
6613         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
6615 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
6617         * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
6618         .data.rel.ro.local to "aw".
6620 2003-07-10  Ulrich Drepper  <drepper@redhat.com>
6622         * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
6623         * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
6624         (PIC-ccflag): Define.
6626 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
6628         * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
6629         if PIC.
6630         * sysdeps/s390/s390-64/elf/start.S: Likewise.
6632 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
6634         * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
6635         into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
6637 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
6639         * sysdeps/unix/sysv/linux/kernel-features.h: Version
6640         __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
6642         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
6643         compilation with HAVE_AUX_SECURE defined.
6645 2003-07-05  Richard Henderson  <rth@redhat.com>
6647         * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
6649 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
6651         * configure.in: Also check for .cfi_rel_offset pseudo-op.
6653 2003-07-03  Jakub Jelinek  <jakub@redhat.com>
6655         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
6656         typo.
6658 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
6660         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
6661         Define.
6662         * sysdeps/unix/sysv/linux/prof-freq.h: New file.
6664 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
6666         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
6667         decl and use with #ifdef NEED_DL_SYSINFO.
6669 2003-07-02  Ulrich Drepper  <drepper@redhat.com>
6671         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
6672         GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
6673         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6674         __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
6675         vsyscall DSO was added.
6677         * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
6678         depending on selected standard.
6679         (NGROUPS_MAX): Define to 8 if not defined.
6681 2003-07-02  Andreas Jaeger  <aj@suse.de>
6683         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
6685 2003-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6687         * malloc/arena.c (arena_get2): Add atomic_write_barrier.
6688         * malloc/thread-m.h: Include <atomic.h>.
6689         (atomic_full_barrier): Provide default.
6690         (atomic_read_barrier): Likewise.
6691         (atomic_write_barrier): Likewise.
6692         * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
6694 2003-06-30  Ulrich Drepper  <drepper@redhat.com>
6696         * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
6698 2003-06-30  Richard Henderson  <rth@redhat.com>
6700         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
6701         Invert the sense of the return value.
6702         (__arch_exchange_16_int): Fix paste-o.
6703         (__arch_exchange_{32,64}_int): Fix think-o.
6705         * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
6707 2003-06-30  Richard Henderson  <rth@redhat.com>
6709         * include/sys/resource.h (__getrusage): Mark hidden.
6710         * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
6711         * include/sys/wait.h (__wait4): Likewise.
6713 2003-06-17  Guido Guenther  <agx@sigxcpu.org>
6715         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
6716         case.
6717         (xstat_conv): Rename to __xstat_conv and remove static inline.
6718         (xstat64_conv): Likewise.
6720 2003-06-29  Ulrich Drepper  <drepper@redhat.com>
6722         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
6723         values which cannot be handled in one nanosleep call.
6725 2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>
6727         * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
6728         (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
6730         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
6732 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
6734         * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
6735         fix typo.
6737 2003-06-26  Steven Munroe  <sjmunroe@us.ibm.com>
6739         * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
6740         Conditionalize function definitions that use struct kernel_stat.
6741         * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
6742         * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
6743         * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
6745 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
6747         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
6748         implementation.
6750 2003-06-07  Thorsten Kukuk  <kukuk@suse.de>
6752         * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
6753         (getgrent_next_file): Don't store group name to early in blacklist.
6755         * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
6756         and use memcpy instead of strcpy.
6758 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
6760         * nis/nss_compat/compat-grp.c: Optimize several little things.  Use
6761         stream unlocked.
6762         * nis/nss_compat/compat-initgroups.c: Likewise.
6763         * nis/nss_compat/compat-pwd.c: Likewise.
6764         * nis/nss_compat/compat-spwd.c: Likewise.
6766 2003-06-27  Thorsten Kukuk  <kukuk@suse.de>
6768         * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
6769         functions, dlopen corresponding NSS module instead.
6771 2003-06-27  Jeroen Dekkers  <jeroen@dekkers.cx>
6773         * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
6774         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6775         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6776         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6778 2003-06-27  Ulrich Drepper  <drepper@redhat.com>
6780         * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
6782 2003-06-26  Roland McGrath  <roland@frob.com>
6784         * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
6785         * sysdeps/mach/configure: Regenerated.
6786         * sysdeps/mach/hurd/times.c (times_init): Function removed.
6787         (__times): Assume `creation_time' field is available.
6788         * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
6789         Don't append set-init.
6790         * sysdeps/mach/hurd/set-init.c: File removed.
6792 2003-06-26  Roland McGrath  <roland@redhat.com>
6794         * elf/elf.h (AT_SECURE): New macro.
6795         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
6796         set __libc_enable_secure.
6797         (_dl_show_auxv): Add AT_SECURE to name table.
6798         * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
6799         __libc_enable_secure and __libc_enable_secure_decided.
6800         * sysdeps/unix/sysv/linux/ldsodefs.h
6801         [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
6802         * sysdeps/unix/sysv/linux/kernel-features.h
6803         [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
6805 2003-06-26  Ulrich Drepper  <drepper@redhat.com>
6807         * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
6808         boundary test to take rounding of nanoseconds into account.
6810         * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
6811         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6812         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
6813         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
6814         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6815         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6816         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6818 2003-06-26  Andreas Schwab  <schwab@suse.de>
6820         * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
6821         * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
6822         * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
6824 2003-06-17  Thorsten Kukuk  <kukuk@suse.de>
6826         * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
6827         * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
6828         dlopen corresponding NSS module instead.
6829         * nis/nss_compat/compat-pwd.c: Likewise.
6830         * nis/nss_compat/compat-spwd.c: Likewise.
6831         * nis/nss_compat/compat-initgroups.c: Disabled for now.
6832         * nss/Versions: Export __nss_lookup_function.
6834 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6836         * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
6837         for the SH architecture.
6839 2003-06-25  Thorsten Kukuk  <kukuk@suse.de>
6841         * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
6843 2003-06-25  Andreas Jaeger  <aj@suse.de>
6845         * stdlib/tst-strtod.c (main): Declare constant long double as
6846         suggested by Jakub Jelinek and Andreas Schwab.
6848         * posix/tst-nanosleep.c: Include <time.h> for nanosleep
6849         declaration.
6851         * stdio-common/tst-fphex.c: Fix format string.
6853         * posix/transbug.c: Include <string.h> for memset and strlen
6854         declarations.
6856         * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
6858         * stdlib/tst-strtod.c (main): Pass long double value.
6860         * test-skeleton.c: Include <time.h> for nanosleep declaration.
6862 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
6864         * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
6865         defined.
6867 2003-06-11  Jakub Jelinek  <jakub@redhat.com>
6869         * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
6870         * elf/dl-libc.c (struct dl_open_hook): New.
6871         (_dl_open_hook): New variable.
6872         (do_dlsym_private): New function.
6873         (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
6874         and initialize it if found.
6875         (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
6876         call dlopen_mode hook.
6877         (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
6878         call dlsym hook.
6879         (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
6880         call dlclose hook.
6882 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
6884         * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
6885         result to long int so that extensions to long long int work.
6886         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
6888 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
6890         * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
6891         * sysdeps/generic/dl-cache.h (add_system_dir): Define.
6892         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
6893         dl-cache.h.
6894         * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
6895         * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
6896         * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
6897         * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
6899 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
6901         * test-skeleton.c (timeout_handler): If waitpid returned 0,
6902         retry once after a second.  If killed == 0, assume
6903         WTERMSIG (status) == SIGKILL.
6905 2003-06-18  Roland McGrath  <roland@redhat.com>
6907         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
6908         elements in the table instead of printing an empty name string.
6910 2003-06-05  Roland McGrath  <roland@redhat.com>
6912         * elf/elf.h (PT_GNU_STACK): New macro.
6914 2003-06-24  Ulrich Drepper  <drepper@redhat.com>
6916         * include/time.h: Define CLOCK_IDFIELD_SIZE.
6917         * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
6918         * sysdeps/unix/clock_gettime.c: Likewise.
6919         * sysdeps/unix/clock_settime.c: Likewise.
6920         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
6921         clock id for thread CPU clocks.
6923         * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
6924         for the fstatfs64 syscall.
6925         * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
6926         the statfs64 syscall.
6928         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6929         __ASSUME_STATFS64 appropriately.
6931         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
6932         from statfs structure if it has been filled in.
6934         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
6935         field.
6936         (struct statfs64): Likewise.
6937         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
6938         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
6940 2003-06-24  Richard Henderson  <rth@redhat.com>
6942         * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
6943         the 64-bit syscall name.
6945         * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
6947         * sysdeps/alpha/fpu/bits/mathinline.h: Honor
6948         __LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
6950         * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
6951         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
6952         libc_hidden_def.
6953         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
6954         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
6955         on them.
6957         * sysdeps/alpha/bits/atomic.h: New file.
6959 2003-06-24  Andreas Schwab  <schwab@suse.de>
6961         * sysdeps/m68k/fpu/libm-test-ulps: Update.
6963 2003-06-24  Andreas Jaeger  <aj@suse.de>
6965         * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
6966         redeclaration with 32-bit code.
6968 2003-05-19  Ed Connell  <ed.connell@sas.com>
6970         * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
6971         floating point mask.
6972         * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
6974 2003-06-23  Ulrich Drepper  <drepper@redhat.com>
6976         * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
6977         __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
6978         __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
6980         * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
6981         of pthread_cond_wait if there was an error.  Use pthread_cleanup_*
6982         instead of __libc_cleanup_region_*.
6984 2003-06-20  Richard Henderson  <rth@redhat.com>
6986         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
6987         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
6989 2003-06-20  Richard Henderson  <rth@redhat.com>
6991         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
6992         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
6993         Unset for alpha.
6994         (__ASSUME_TIMEVAL64): Set for alpha.
6995         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
6996         adjtimex, osf_sigprocmask, old_adjtimex.
6997         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
6998         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
6999         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
7000         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
7001         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7002         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7003         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
7004         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
7005         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
7006         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
7007         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
7008         PIC code sequence.
7009         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7010         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
7011         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
7012         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
7013         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
7014         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
7015         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
7016         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
7017         defer to __syscall_name; error for rt_sigaction.
7018         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
7020 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
7022         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
7023         hasn't happened yet.
7025         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7026         Fix completely broken implementation.  The second parameter is of
7027         type struct ucontext*.
7029         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
7030         inline.
7032         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
7033         * sysdeps/generic/dl-hash.h: Likewise.
7035         * sysdeps/generic/memcmp.c: Remove inline from
7036         memcmp_common_alignment and memcmp_not_common_alignment definition.
7038         * intl/localealias.c (read_alias_file): Determine whether line is
7039         read incompletely early, before we modify the line.
7041 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
7043         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
7044         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
7046 2003-06-17  Paul Mackerras  <paulus@samba.org>
7048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
7049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
7050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
7051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
7052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
7053         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
7055 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
7057         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
7059 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
7061         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
7062         takes care of enabling cancellation.
7064         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
7065         cancelable.  It's not correct to disable cancellation.  Instead of
7066         a cleanup handler.
7068         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
7069         and part of the incoming set, create a temporary set without this
7070         signal.
7071         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
7072         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
7074         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
7075         returning because seconds==0.  Add __builtin_expect.
7077 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
7079         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
7081         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
7082         variable.
7084 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
7086         * include/libc-symbols.h: Add static_link_warning macro.
7087         * grp/initgroups.c: Print linker warning if this function
7088         is called in a static linked binary.
7089         * nss/getXXbyYY.c: Likewise.
7090         * nss/getXXbyYY_r.c: Likewise.
7091         * nss/getXXent.c: Likewise.
7092         * nss/getXXent_r.c: Likewise.
7093         * sysdeps/posix/getaddrinfo.c: Likewise.
7095 2003-06-16  Bruno Haible  <bruno@clisp.org>
7097         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
7098         LATIN-9.
7099         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
7100         (IBM1047): Add alias IBM-1047.
7101         (GBK): Add aliases MS936, WINDOWS-936.
7103 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
7105         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
7106         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
7107         (__xstat64_conv): Change xstat_conv to __xstat_conv.
7109 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
7111         * locale/iso-639.def: Update from current official ISO 639.
7113         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
7115 2003-06-15  Andreas Jaeger  <aj@suse.de>
7117         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
7118         of MXCSR.
7119         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7120         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
7121         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
7123         * math/tgmath.h (carg): Handle real arguments.
7124         (conj): Likewise.
7125         (cproj): Likewise.
7126         (cimag): Likewise.
7127         (creal): Likewise.
7129         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
7130         (tests): Add test-tgmath-ret.
7131         * math/test-tgmath-ret.c: New file.
7133         * math/tgmath.h (ilogb): Return always an int.
7135 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
7137         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
7138         computation so that prelinking works.
7140 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
7142         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
7143         linker's map.
7144         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
7145         dynamic linker's map.
7147         Fix cancellation point handling wrt exception based cleanup.
7148         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
7149         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
7150         with exceptions.
7151         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
7152         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
7153         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
7154         exceptions.
7155         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
7156         sigwait.c, and sigwaitinfo.c with exceptions.
7157         * stdlib/Makefile: Compile system.c with exceptions.
7158         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
7159         * termios/Makefile: Compile tcdrain.c with exceptions.
7160         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
7161         situation.
7162         * sysdeps/generic/pselect.c: Likewise.
7163         * sysdeps/posix/sigpause.c: Likewise.
7164         * sysdeps/posix/system.c: Likewise.
7165         * sysdeps/posix/waitid.c: Likewise.
7166         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
7167         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
7168         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
7169         INTERNAL_SYSCALL to not use push inside asm statement so that
7170         unwind info is correct around the syscall.
7171         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
7172         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
7174 2003-06-15  Andreas Jaeger  <aj@suse.de>
7176         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7177         Add CFI directives.
7179 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
7181         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
7182         create $(objpfx).
7184 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
7186         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
7187         not close.
7189         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
7190         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
7191         definition.
7193         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
7194         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
7195         * inet/Makefile (routines): Add inet6_option.
7196         * inet/inet6_option.c: New file.
7197         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
7198         inet6_option_init, inet6_option_append, inet6_option_alloc,
7199         inet6_option_next, and inet6_option_find.
7201 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
7203         * inet/netinet/ip6.h (struct ip6_ext): Define.
7205         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
7207         Fixing gcc 3.3 warnings, part II.
7208         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
7209         * elf/dl-load.c (cache_rpath): Don't inline.
7210         * iconvdata/cns11642l2.h: Always inline all functions.
7211         * iconvdata/iso-ir-165.h: Likewise.
7212         * locale/Makefile (aux): Add coll-lookup.
7213         * locale/coll-lookup.c: New file.
7214         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
7215         (collseq_table_lookup): Likewise.
7216         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
7217         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
7218         change.
7219         * posix/regcomp.c: Likewise.
7220         * posix/regexec.c: Likewise.
7221         * locale/programs/3level.h (*_get): Always inline.
7222         * locale/programs/locfile.h: Move definition of handle_copy to...
7223         * locale/programs/locfile.c: ...here.
7224         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
7225         (obstack_int32_grow_fast): Likewise.
7226         (utf8_encode): Likewise.
7227         (find_element): Avoid aliasing problems.
7228         (insert_value): Likewise.
7229         (collate_read): Likewise.
7230         * nss/getent.c (print_hosts): Don't inline
7231         (print_networks): Likewise.
7232         (print_shadow): Likewise.
7233         (build_doc): Likewise.
7234         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
7235         inline.
7236         * posix/regcomp.c (re_set_fastmap): Always inline.
7237         (seek_collating_symbol_entry): Likewise.
7238         (lookup_collation_sequence_value): Likewise.
7239         (build_range_exp): Likewise.
7240         (build_collating_symbol): Likewise.
7241         * posix/regexec.c (acquire_init_state_context): Don't inline.
7242         (clean_state_log_if_need): Likewise.
7243         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
7244         adjust all callers.
7245         (evConsTime): Likewise.
7246         (evAddTime): Likewise.
7247         (evSubTime): Likewise.
7248         (evNowTime): Likewise.
7249         (evTimeSpec): Removed.
7250         (__libc_res_nsend): Avoid aliasing problem.
7251         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
7252         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
7253         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
7254         Always inline.
7255         (_dl_string_platform): Likewise.
7256         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
7257         (wcwidth_table_lookup): Likewise.
7258         (wctrans_table_lookup): Likewise.
7260         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
7262 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
7264         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
7266 2003-05-29  Jim Meyering  <jim@meyering.net>
7268         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
7269         && HAVE_STRFTIME]: Use underlying_strftime for %r.
7270         Suggested by Daniel Yacob <locales@geez.org>.
7272 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
7274         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
7275         @got notation with @toc.
7276         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
7277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
7279 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
7281         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
7282         if only PF_INET address is needed.
7284         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
7285         case of an error.
7287         * scripts/config.guess: Update from upstream version.
7288         * scripts/config.sub: Likewise.
7290 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
7292         * locale/programs/ld-time.c (time_output): Also copy the era format,
7293         not only the name.
7295 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
7297         * posix/transbug.c (run_test): Return 1 for failure.
7298         (do_test): Compare only if run_test is successful.
7300 2003-06-12  Simon Josefsson  <jas@extundo.com>
7302         * argp/argp.h [!__THROW]: Define if undefined.
7304 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
7306         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
7307         more than four parameters.
7308         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
7310 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
7312         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
7313         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
7314         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
7316         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
7318 2003-06-12  Roland McGrath  <roland@redhat.com>
7320         * Makerules ($(objpfx)stubs): Rewrite sed magic.
7322 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
7324         * posix/regcomp.c (parse_expression): Deliver translation to
7325         build_word_op, and build_charclass.
7326         (build_charclass): Apply translation for character classes too.
7327         (build_word_op): Deliver translation to build_charclass.
7328         * posix/transbug.c: New file.
7329         * posix/Makefile (tests): Add transbug.
7331 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
7333         * posix/regexec.c (group_nodes_into_DFAstates): Check for
7334         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
7335         'continue' before the others.
7337 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
7339         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
7340         function [PR libc/5045].
7342         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
7343         also for P4.
7345         * time/tzfile.c: Add a couple of __builtin_expect.
7347         Remove warnings gcc 3.3 shows.
7348         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
7349         * elf/dl-load.c (fillin_rpath): Likewise.
7350         (add_path): Likewise.
7351         * elf/dl-version.c (find_needed): Always inline.
7352         * elf/do-lookup.c (FCT): Don't inline.
7353         * iconv/Makefile: Extend vpath to intl subdir.
7354         (iconvconfig-modules): Add hash-string.
7355         * iconv/gconv_charset.h (strip): Don't inline.
7356         (upstr): Always inline.
7357         Move __gconv_compare_alias prototype to...
7358         * iconv/gconv_int.h: ...here.
7359         * iconv/gconv_db.c: Don't include gconv_charset.h.
7360         * iconv/gconv_conf.c (add_alias): Don't inline.
7361         (insert_module): Likewise.
7362         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
7363         (internal_ucs4_loop_unaligned): Likewise.
7364         (internal_ucs4_loop_single): Likewise.
7365         (ucs4_internal_loop): Likewise.
7366         (ucs4_internal_loop_unaligned): Likewise.
7367         (ucs4_internal_loop_single): Likewise.
7368         (internal_ucs4le_loop): Always inline.
7369         (internal_ucs4le_loop_unaligned): Likewise.
7370         (internal_ucs4le_loop_single): Likewise.
7371         (ucs4le_internal_loop): Likewise.
7372         (ucs4le_internal_loop_unaligned): Likewise.
7373         (ucs4le_internal_loop_single): Likewise.
7374         * iconv/loop.c: Always inline the defined functions.
7375         * iconvdata/cns11642.h: Likewise.
7376         * iconvdata/cns11642l1.h: Likewise.
7377         * iconvdata/euc-kr.c: Likewise.
7378         * iconvdata/gb2312.h: Likewise.
7379         * iconvdata/jis0201.h: Likewise.
7380         * iconvdata/jis0208.h: Likewise.
7381         * iconvdata/jis0212.h: Likewise.
7382         * iconvdata/jisx0213.h: Likewise.
7383         * iconvdata/ksc5601.h: Likewise.
7384         * iconvdata/utf-7.c (base64): Don't inline.
7385         * include/libc-symbols.h (symbol_set_first_element): Add cast
7386         (symbol_set_end_p): Likewise.
7387         * include/set-hooks (RUN_HOOK): Likewise.
7388         * inet/Makefile (aux): Add ifreq.
7389         * intl/Makefile (aux): Add some entries from routines.  Add
7390         hash-string.
7391         * intl/hash-string.c: New file.
7392         * intl/hash-string.h: Remove hash_string definition.  Declare
7393         __hash_string.
7394         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
7395         * iconv/iconvconfig.c (new_name): Likewise.
7396         * intl/dcigettext.c (_nl_find_msg): Likewise.
7397         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7398         * io/ftw.c (open_dir_stream): Always inline.
7399         (process_entry): Don't inline.
7400         * locale/findlocale.c: Include gconv_int.h.
7401         * locale/setlocale.c (new_composite_name): Don't inline.
7402         * locale/weight.h (findidx): Always inline.
7403         * locale/weightwc.h (findidx): Likewise.
7404         * locale/programs/linereader.c (lr_ignore_rest): Define here.
7405         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
7406         just declare it.
7407         (lr_getc): Always inline.
7408         (lr_ungetc): Likewise.
7409         * nss/nss_files/files-parse.c (parse_list): Likewise.
7410         * stdio-common/Makefile (aux): Add printf-parsemb and
7411         printf-parsewc.
7412         * stdio-common/_itoa.h (_itoa_word): Always inline.
7413         (_fitoa_word, _fitoa): Don't define here, only declare.
7414         * stdio-common/_itoa.c (_iftoa_word): Add here.
7415         (_fitoa): Likewise.
7416         * stdio-common/_itowa.h (_itowa_word): Always inline.
7417         * stdio-common/printf-parse.h (read_int): Don't inline.
7418         (find_spec): Don't define.
7419         Declare __find_specmb and __find_specwc.
7420         (parse_one_spec): Don't define.
7421         Declare __parse_one_specmb and __parse_one_specwc.
7422         * stdio-common/printf-parsemb.c: New file.
7423         * stdio-common/printf-parsewc.c: New file.
7424         * stdio-common/vfprintf.c: Update calls to find_spec and
7425         parse_one_spec for new names.
7426         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
7427         * stdlib/Makefile (aux): Add grouping and groupingwc.
7428         * stdlib/grouping.c: New file.
7429         * stdlib/groupingwc.c: New file.
7430         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
7431         Just prototype.
7432         * stdlib/rpmatch.c (try): Don't inline.
7433         * stdlib/strtod.c (round_and_return): Don't line.
7434         (str_to_mpn): Likewise.
7435         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
7436         Adjust for name change of correctly_grouped_prefix.
7437         * sysdeps/generic/strtol.c: Adjust for name change of
7438         correctly_grouped_prefix.
7439         * string/strxfrm.c (utf8_encode): Don't inline.
7440         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
7441         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
7442         * sysdeps/generic/ifreq.c: New file.
7443         * sysdeps/unix/sysv/linux/ifreq.c: New file.
7444         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
7445         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
7446         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
7447         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
7448         (fde_split): Likewise.
7449         (fde_merge): Likewise.
7450         (end_fde_sort): Likewise.
7451         (init_object): Likewise.
7452         (binary_search_unencoded_fdes): Likewise.
7453         (binary_search_single_encoding_fdes): Likewise.
7454         (binary_search_mixed_encoding_fdes): Likewise.
7455         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
7456         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
7457         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
7458         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7459         Add xstatconv.
7460         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
7461         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
7462         Export them.  Prepend __ to name.
7463         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
7464         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
7465         conversion functions.
7466         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7467         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7468         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7469         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
7470         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
7471         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7472         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7473         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
7474         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
7475         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
7476         to name.  Change callers.
7477         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
7478         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
7479         declare.
7480         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
7481         * time/tzfile.c (decode): Always inline.
7482         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
7483         Remove cast in tomb function call.
7484         * wcsmbs/wcsrtombs.c Likewise.
7485         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
7486         tomb function call.
7488 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
7490         * po/zh_CN.po: Update from translation team.
7492 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
7494         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
7495         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
7497 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
7499         * inet/Makefile (aux): Add check_pf.
7500         * include/ifaddrs.h: Add prototype for __check_pf.
7501         * sysdeps/generic/check_pf.c: New file.
7502         * sysdeps/unix/sysv/linux/check_pf.c: New file.
7503         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
7504         from no_netlink_support.  Export.
7505         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
7506         call __check_pf.
7508         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
7510         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
7511         from getifaddr calls.
7513 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
7515         * sysdeps/unix/sysv/linux/kernel-features.h
7516         (__ASSUME_SETRESGID_SYSCALL): Define.
7517         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
7518         instead of __ASSUME_SETRESUID_SYSCALL.
7519         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
7520         defined.
7521         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
7522         inline syscall if __NR_setresuid32 is defined.
7523         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
7524         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
7525         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
7526         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
7527         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
7528         code handling non-existant setresgid32 syscall with
7529         #if __ASSUME_SETRESGID_SYSCALL == 0.
7531 2003-06-09  Andreas Schwab  <schwab@suse.de>
7533         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
7534         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
7535         $(objpfx)rpc-proto.d.
7536         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
7537         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
7538         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
7540 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
7542         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
7543         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
7544         defined drop compatibility code.
7545         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
7546         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
7547         defined drop compatibility code.
7548         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
7549         setresuid32 syscall directly if possible.
7550         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
7551         setresgid32 syscall directly if possible.
7552         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
7553         compliant.  Don't change sgid.
7554         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
7555         compliant.  Don't change suid.
7557         * config.h.in: Add have-forced-unwind.
7558         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
7560 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
7562         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
7563         returned status from child matches.
7565         * Makeconfig (gnulib): Add -lgcc_eh once again.
7567 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
7569         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
7571         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
7572         %edx for first parameter.  This means no pushl and therefore the
7573         unwind info isn't screwed up.
7575 2003-06-04  Richard Henderson  <rth@redhat.com>
7577         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
7578         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7579         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
7580         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
7581         entry sequence and explicit relocs.  Add unwind info for sigreturn
7582         and rt_sigreturn.
7583         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
7585         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
7586         Annotate some parameters.
7587         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
7589         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
7591         * include/libc-symbols.h (symbol_set_declare): Use arrays
7592         of unspecified size.
7594 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
7596         * config.make.in (ASFLAGS-config): New.
7597         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
7598         * configure.in (libc_cv_as_noexecstack): New check.
7599         (ASFLAGS_config): Substitute.
7601 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
7603         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
7604         hypot, logb): Protect with #ifdef __FAST_MATH__.
7606 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
7608         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
7609         #ifdef __FAST_MATH__.
7611 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
7613         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
7614         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
7615         * posix/globtest.sh: Adjust for this change.
7617         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
7618         to get the actual PID value used in the records passed up.
7619         (getifaddrs): Don't initialize nh.pid here.
7621 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
7623         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
7624         optimization.
7626         * po/zh_CN.po: Update from translation team.
7628         * posix/getconf.c (main): Also recognize names without the
7629         _POSIX_ prefix.
7631         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
7633 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
7635         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
7636         ldexpf, ldexpl): Only define if __FAST_MATH__.
7638 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
7640         Replace hard-coded offsets into struct sigcontext with generated file.
7641         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
7642         * sysdeps/unix/sysv/linux/ia64/Makefile
7643         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
7644         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
7645         defining SC_* macros here.
7647 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
7649         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
7651 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
7653         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
7655 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
7657         * test-skeleton.c (main): Request getopt to not reorder the
7658         command line.
7660         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
7662         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
7663         stpncpy.
7665 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
7667         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
7669 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
7671         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
7672         New function.
7673         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
7674         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
7675         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
7677 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
7679         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
7680         CFI directives.
7682         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
7684         * libio/fileops.c (_IO_file_open): Don't mark as inline.
7686         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
7687         attribute used.
7689 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
7691         * scripts/config.guess: Update from master copy.
7692         * scripts/config.sub: Likewise.
7694 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
7696         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
7697         SETUP_GP64 and friends.
7698         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
7699         names in internal_syscall{6,7}.
7700         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
7701         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
7702         number of syscall arguments.
7703         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7704         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7705         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7707 2003-05-30  Andreas Jaeger  <aj@suse.de>
7709         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7710         Add CFI directives.
7712         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
7713         directives.
7715         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
7717         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7718         Add CFI directives.
7720 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
7722         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
7723         SHARED.
7725 2003-05-11  Andreas Schwab  <schwab@suse.de>
7727         * Makerules: Always use -MP together with -MD.
7728         (sed-remove-dotot): Substitute $(..) also at start of line.
7729         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
7730         Generated defines with a single compiler call.
7731         Use $(sed-remove-dotdot).
7732         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
7733         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
7734         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
7735         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
7736         * sysdeps/unix/sysv/linux/mips/Makefile
7737         ($(objpfx)syscall-%.h): Likewise.
7739 2003-05-28  Roland McGrath  <roland@redhat.com>
7741         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
7743 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
7745         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
7747 2003-05-28  Roland McGrath  <roland@redhat.com>
7749         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
7750         rt_sigprocmask system call.
7751         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
7752         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
7754 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
7756         * include/libc-symbols.h: Define hidden attribute for real also if
7757         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
7759         * csu/Makefile: Add rules to build Scrt1.o.
7760         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
7761         * sysdeps/x86_64/elf/start.S: Likewise.
7763 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
7765         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
7766         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
7767         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
7768         pa_short_int, pa_u_short_int and pa_float.
7770 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
7772         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
7773         _IO_str_init_static_internal.
7774         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
7775         change size argument to _IO_size_t, don't limit sprintf to 64M.
7776         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
7777         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
7778         _IO_size_t, don't limit swprintf to 256M.
7779         (_IO_wstr_init_readonly): Remove.
7780         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
7781         Adjust prototypes.
7782         (_IO_wstr_init_readonly): Remove prototype.
7783         * libio/iovsprintf.c (_IO_vsprintf): Use
7784         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
7785         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
7786         * libio/memstream.c (open_memstream): Likewise.
7787         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
7788         * libio/vasprintf.c (_IO_vasprintf): Likewise.
7789         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
7790         * stdio-common/tst-sprintf.c (main): Add new test.
7792 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
7794         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
7795         other implementation in respect of multiple uses of parameter with
7796         different types.
7798 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
7800         * sysdeps/unix/sysv/linux/kernel-features.h: Define
7801         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
7803 2003-05-22  Andreas Jaeger  <aj@suse.de>
7805         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
7806         directives.
7807         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
7808         * sysdeps/x86_64/strtok.S: Likewise.
7810 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
7812         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
7813         to -60 and define SI_TKILL.
7815 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7817         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
7818         (feexcp_mask_test): Likewise.
7820 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
7822         * locale/programs/locale.c (main): Fix typo in last patch.
7824         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
7825         __init_array_start, __init_array_end, __fini_array_start, and
7826         __fini_array_end as hidden.
7828 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
7830         * locale/programs/locale.c (main): Report an error if setlocale()
7831         fails [PR libc/2254].
7833 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
7835         * sysdeps/unix/sysv/linux/s390/system.c: New file.
7837 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
7839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
7840         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
7841         LOADARGS_6): Don't error if syscall argument is a string literal.
7842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
7843         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
7844         LOADARGS_6): Likewise.
7846 2003-05-21  Andreas Jaeger  <aj@suse.de>
7848         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
7849         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
7850         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
7852         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
7853         (ENTRY): Likewise.
7854         (END): Likewise.
7856         * configure.in: Test for asm cfi directives.
7858         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
7860 2003-05-17  Andreas Jaeger  <aj@suse.de>
7862         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
7864         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
7866 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
7868         * rt/Makefile (tests): Add tst-clock_nanosleep.
7869         * rt/tst-clock_nanosleep.c: New file.
7870         * posix/Makefile (tests): Add tst-nanosleep.
7871         * posix/tst-nanosleep.c: New file.
7873         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
7875         * include/features.h (__USE_XOPEN2K): Define also for
7876         _POSIX_C_SOURCE>=200112L.
7878         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
7879         SI_TKILL code into SI_USER.
7880         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
7882         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
7884 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
7886         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
7887         Remove sym argument, always use refsym.
7888         (__process_machine_rela): Adjust callers.
7889         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
7890         Likewise.
7891         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
7892         Adjust prototype.
7893         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
7895 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
7897         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
7898         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
7899         print numeric values.
7901 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
7903         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
7905 2003-05-14  Andreas Schwab  <schwab@suse.de>
7907         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
7909 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
7911         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
7912         even if no DT_NEEDED is present.
7914 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
7916         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
7917         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
7918         __sigjmp_save) so we can't keep the saved unat value in a scratch
7919         register (r16).  Use loc2 instead.
7921 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
7923         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
7924         binaries it has to be relocatable.
7926         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
7928 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
7930         * sysdeps/powerpc/bits/atomic.h
7931         (__arch_compare_and_exchange_bool_8_rel): Define.
7932         (__arch_compare_and_exchange_bool_16_rel): Define.
7933         (__ARCH_REL_INSTR): Define if not already defined.
7934         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
7935         (__arch_atomic_decrement_if_positive_32):
7936         Add "memory" to clobber list.
7937         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
7938         (__arch_compare_and_exchange_val_32_rel): Define.
7939         (__arch_atomic_exchange_32): Remove.
7940         (__arch_atomic_exchange_32_acq): Define.
7941         (__arch_atomic_exchange_32_rel): Define.
7942         (atomic_compare_and_exchange_val_rel): Define.
7943         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
7944         (atomic_exchange_rel): Define.
7945         * sysdeps/powerpc/powerpc32/bits/atomic.h
7946         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
7947         (__arch_compare_and_exchange_bool_32_rel): Define.
7948         (__arch_compare_and_exchange_bool_64_rel): Define.
7949         (__arch_compare_and_exchange_val_64_rel): Define.
7950         (__arch_atomic_exchange_64): Remove.
7951         (__arch_atomic_exchange_64_acq): Define.
7952         (__arch_atomic_exchange_64_rel): Define.
7953         * sysdeps/powerpc/powerpc64/bits/atomic.h
7954         (__arch_compare_and_exchange_bool_32_rel): Define.
7955         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
7956         (__arch_compare_and_exchange_bool_64_rel): Define.
7957         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
7958         (__arch_compare_and_exchange_val_64_rel): Define.
7959         (__arch_atomic_exchange_64): Remove.
7960         (__arch_atomic_exchange_64_acq): Define.
7961         (__arch_atomic_exchange_64_rel): Define.
7962         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
7963         (__arch_atomic_decrement_if_positive_64):
7964         Add "memory" to clobber list.
7965         [!UP](__ARCH_REL_INSTR): Define as lwsync.
7967 2003-05-11  Andreas Schwab  <schwab@suse.de>
7969         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
7971 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
7973         * time/tst-strftime.c (do_test): Add tests for - flag.
7975 2003-05-11  Jim Meyering  <jim@meyering.net>
7977         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
7978         the space-padded-by-default conversion specifiers, %e, %k, %l.
7980 2003-05-11  Andreas Schwab  <schwab@suse.de>
7982         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
7984 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
7986         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
7987         already defined and when really needed.
7988         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7990 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
7992         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
7993         headers, add defines from kernel header, move it from here...
7994         * inet/netinet/igmp.h: ... to here.
7995         * inet/Makefile (headers): Add netinet/igmp.h.
7996         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
7997         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
7999 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
8001         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
8002         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
8004 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
8006         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
8007         (remove __THROW from possible cancellation points).
8009 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
8011         * posix/sched.h (CPU_SETSIZE): Define.
8013 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
8015         * Makeconfig (gnulib): Remove -lgcc_eh again.
8017         * posix/sched.h: Change prototypes of sched_getaffinity and
8018         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
8019         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
8020         * sysdeps/generic/sched_setaffinity.c: Likewise.
8021         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
8022         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
8023         __CPU_CLR, and __CPU_ISSET.
8024         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8025         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
8026         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
8028         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
8029         (atomic_exchange_rel): New #define.
8030         * sysdeps/ia64/bits/atomic.h: Likewise.
8031         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
8032         atomic_exchange.
8033         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
8034         * sysdeps/powerpc/bits/atomic.h: Likewise.
8035         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
8036         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
8037         * sysdeps/x86_64/bits/atomic.h: Likewise.
8038         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
8040         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
8042 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
8044         * malloc/thread-m.h: Remove special handling of thread_atfork if
8045         HAVE_register_atfork_malloc is defined.
8047 2003-05-07  Andreas Jaeger  <aj@suse.de>
8049         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
8050         information.
8052 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
8054         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
8055         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8056         * libio/libioP.h: Declare _IO_old_init.
8057         * libio/genops.c (_IO_no_init): Split in two.  New function
8058         _IO_old_init.
8060 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
8062         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
8063         variable.
8064         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
8065         is nonzero.
8066         * include/unistd.h: Declare __libc_enable_secure_decided.
8067         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
8068         and AT_EGID.  If all found, set __libc_enable_secure and
8069         __libc_enable_secure_decided.
8071         * sysdeps/generic/libc-start.c [!SHARED]: Call
8072         __libc_check_standard_fds after __libc_init_first.
8074 2003-05-05  Roland McGrath  <roland@redhat.com>
8076         * Makerules (common-before-compile): New variable.
8077         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
8078         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
8079         to after all setting of before-compile.
8081 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
8083         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
8084         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
8085         * sysdeps/powerpc/powerpc32/bits/atomic.h
8086         (__arch_compare_and_exchange_val_64_acq): Likewise.
8087         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
8088         (__arch_compare_and_exchange_val_8_acq,
8089         __arch_compare_and_exchange_val_16_acq,
8090         __arch_compare_and_exchange_val_64_acq): Likewise.
8091         * sysdeps/sparc/sparc64/bits/atomic.h
8092         (__arch_compare_and_exchange_val_8_acq,
8093         __arch_compare_and_exchange_val_16_acq): Likewise.
8094         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
8095         __arch_compare_and_exchange_val_16_acq,
8096         __arch_compare_and_exchange_val_64_acq): Likewise.
8097         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
8098         (__arch_compare_and_exchange_val_64_acq): Likewise.
8099         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
8100         up warning.
8101         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
8103         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8104         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
8105         Return long instead of int.
8106         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
8107         0xfffff001u with -4095UL.
8109 2003-05-05  Andreas Jaeger  <aj@suse.de>
8111         * sysdeps/x86_64/fpu_control.h: New from i386.
8113         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
8114         Define if not defined.
8116         * sunrpc/Makefile (generated-dirs): New variable.
8117         * resolv/Makefile (generated): New variable.
8119 2003-05-04  Roland McGrath  <roland@redhat.com>
8121         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
8122         Depend on $(before-compile).
8124         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
8125         pattern rule.  The implicit rule could be ruled out when $(objpfx)
8126         didn't exist at the time of its consideration (ugh!).
8128         * Makerules (+make-deps): Fix target matching.
8129         Use $(sed-remove-dotdot).
8131 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
8133         * nscd/nscd.c (main): Parse config file right after parsing
8134         parameters.  Then, if get_stats is true, call receive_print_stats.
8135         Drop parameter from nscd_init call.
8136         (get_stats): New variable.
8137         (parse_opt): Set get_stats, don't call receive_print_stats here.
8138         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
8139         prototype.
8140         * nscd/connections.c (stat_user, stat_uid): New variables.
8141         (dbs): Make global.
8142         (nscd_init): Don't read configuration file here.  Drop parameter.
8143         (handle_request): Cleanup handling of non-database lookup requests.
8144         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
8145         Get UID of the specified user.  Use xstrdup instead of strdup.
8146         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
8147         check stat_user.
8148         * nscd/Makefile (nscd-modules): Add xstrdup.
8149         * nscd/nscd.conf: Document stat-user entry.
8151 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8153         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
8154         if not defined.
8156 2003-04-22  Roland McGrath  <roland@redhat.com>
8158         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
8159         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8160         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
8161         * elf/dl-support.c: Update defn.
8162         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
8163         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8164         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
8165         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
8166         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
8167         set, set up a link_map for the preloaded, prelinked object.
8169 2003-05-03  Roland McGrath  <roland@redhat.com>
8171         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
8172         * stdio-common/Makefile: ... not here.
8174         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
8175         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
8177 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
8179         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
8181         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
8183         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
8184         comparing ftab elements.
8185         (_dl_unmap): Fix typo in test.
8186         (_dl_make_fptr): Fix typos introduced in last change.
8188         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
8189         original patch.  Use non-exported symbols.  Mark translatable
8190         strings.  Pretty printing.
8192 2003-05-02  Roland McGrath  <roland@redhat.com>
8194         * Makerules (do-stamp): Do $(make-target-directory).
8196 2003-04-07  H.J. Lu  <hjl@gnu.org>
8198         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
8200 2003-04-03  H.J. Lu  <hjl@gnu.org>
8202         * sysdeps/ia64/dl-fptr.c: Moved to ...
8203         * sysdeps/generic/dl-fptr.c: Here.
8205         * sysdeps/generic/dl-fptr.h: New.
8206         * sysdeps/ia64/dl-fptr.h: New.
8208         * sysdeps/ia64/dl-symaddr.c: Moved to ...
8209         * sysdeps/generic/dl-symaddr.c: here.
8211         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
8212         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
8213         (ia64_fdesc): Likewise.
8214         (ia64_fdesc_table): Likewise.
8215         (__ia64_make_fptr): Likewise.
8216         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
8217         with _dl_boot_fptr_table.
8218         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
8219         `struct fdesc'.
8220         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
8222 2003-05-01  Roland McGrath  <roland@redhat.com>
8224         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
8225         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
8227         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
8228         Use $(make-target-directory).
8229         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
8231         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
8232         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
8233         (compile-command.s, compile-command.c): Likewise.
8234         ($(objpfx)%.d): All such pattern rules removed.
8235         ($(+sysdir_pfx)sysd-rules): Don't generate them.
8236         ($(common-objpfx)dummy.d): Target removed.
8237         (make-dummy-dep): Variable removed.
8238         (generate-md5): Likewise.
8239         (%.d: %.dt): New pattern rule.
8240         (+depfiles): Use $(wildcard) function to get just existing *.d files
8241         and .d files for existing *.dt files.
8242         (common-clean): Remove all *.d and *.dt files.
8243         (before-compile): Add $(objpfx). when it doesn't exist,
8244         regardless of $(no_deps).
8245         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
8246         (rtld-depfiles): Use .os.d instead of .d names.
8247         Include existing *.d files and .d files for existing *.dt files.
8249         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
8250         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
8252         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
8253         Do s-*.d includes only if we have some syscall routines in this subdir.
8255         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
8256         @nobits.  The former is accepted by gas on any ELF platform.
8258 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
8260         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
8262         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
8264 2003-04-29  Andreas Schwab  <schwab@suse.de>
8266         * string/test-strcat.c (do_one_test): Fix attribute name.
8268 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
8270         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
8271         uc_flags long for all ABIs.
8273 2003-04-30  Andreas Jaeger  <aj@suse.de>
8275         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
8276         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
8277         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
8278         Add bi-arch support.
8280 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
8282         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
8283         (__posix_memalign): Use __memalign_internal instead of memalign.
8285 2003-04-29  Roland McGrath  <roland@redhat.com>
8287         * configure.in: Search for AUTOCONF unconditionally.
8288         Just don't complain about missing it under --without-cvs.
8290         * include/libc-symbols.h (__symbol_set_attribute): New macro,
8291         give hidden for [SHARED] and weak for [! SHARED].
8292         (symbol_set_declare): Use that.  Never need weak_extern these days.
8293         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
8294         Depend on $(..)Makerules.
8296 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
8298         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
8299         variants of socket, bind, recvmsg, and sendto.
8301         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
8303         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
8304         * signal/sigaddset.c: Add libc_hidden_def.
8305         * signal/sigdelset.c: Likewise.
8307 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
8309         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
8310         to the end of the file.
8312         * configure.in: Change __oline__ to $LINENO.
8313         (HAVE_BUILTIN_REDIRECTION): New check.
8314         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
8315         * include/libc-symbols.h (libc_hidden_builtin_proto,
8316         libc_hidden_builtin_def, libc_hidden_builtin_weak,
8317         libc_hidden_builtin_ver): Define.
8318         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
8319         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
8320         strspn, strstr): Add libc_hidden_builtin_proto.
8321         * intl/plural.y: Include string.h.
8322         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
8323         libc_hidden_builtin_def.
8324         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
8325         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
8326         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
8327         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
8328         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
8329         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
8330         * sysdeps/alpha/memchr.S (memchr): Likewise.
8331         * sysdeps/alpha/memset.S (memset): Likewise.
8332         * sysdeps/alpha/strcat.S (strcat): Likewise.
8333         * sysdeps/alpha/strchr.S (strchr): Likewise.
8334         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
8335         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
8336         * sysdeps/alpha/strlen.S (strlen): Likewise.
8337         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
8338         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
8339         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
8340         * sysdeps/arm/memset.S (memset): Likewise.
8341         * sysdeps/arm/strlen.S (strlen): Likewise.
8342         * sysdeps/generic/memchr.c (memchr): Likewise.
8343         * sysdeps/generic/memcpy.c (memcpy): Likewise.
8344         * sysdeps/generic/memmove.c (memmove): Likewise.
8345         * sysdeps/generic/memset.c (memset): Likewise.
8346         * sysdeps/generic/strcat.c (strcat): Likewise.
8347         * sysdeps/generic/strchr.c (strchr): Likewise.
8348         * sysdeps/generic/strcmp.c (strcmp): Likewise.
8349         * sysdeps/generic/strcpy.c (strcpy): Likewise.
8350         * sysdeps/generic/strcspn.c (strcspn): Likewise.
8351         * sysdeps/generic/strlen.c (strlen): Likewise.
8352         * sysdeps/generic/strncmp.c (strncmp): Likewise.
8353         * sysdeps/generic/strncpy.c (strncpy): Likewise.
8354         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
8355         * sysdeps/generic/strrchr.c (strrchr): Likewise.
8356         * sysdeps/generic/strspn.c (strspn): Likewise.
8357         * sysdeps/generic/strstr.c (strstr): Likewise.
8358         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
8359         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
8360         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
8361         * sysdeps/i386/i586/memset.S (memset): Likewise.
8362         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
8363         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
8364         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
8365         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
8366         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
8367         * sysdeps/i386/i686/memset.S (memset): Likewise.
8368         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
8369         * sysdeps/i386/memchr.S (memchr): Likewise.
8370         * sysdeps/i386/memset.c (memset): Likewise.
8371         * sysdeps/i386/strchr.S (strchr): Likewise.
8372         * sysdeps/i386/strcspn.S (strcspn): Likewise.
8373         * sysdeps/i386/strlen.c (strlen): Likewise.
8374         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
8375         * sysdeps/i386/strrchr.S (strrchr): Likewise.
8376         * sysdeps/i386/strspn.S (strspn): Likewise.
8377         * sysdeps/ia64/memchr.S (memchr): Likewise.
8378         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
8379         * sysdeps/ia64/memmove.S (memmove): Likewise.
8380         * sysdeps/ia64/memset.S (memset): Likewise.
8381         * sysdeps/ia64/strcat.S (strcat): Likewise.
8382         * sysdeps/ia64/strchr.S (strchr): Likewise.
8383         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
8384         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
8385         * sysdeps/ia64/strlen.S (strlen): Likewise.
8386         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
8387         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
8388         * sysdeps/m68k/memchr.S (memchr): Likewise.
8389         * sysdeps/m68k/strchr.S (strchr): Likewise.
8390         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
8391         * sysdeps/mips/mips64/memset.S (memset): Likewise.
8392         * sysdeps/mips/memcpy.S (memcpy): Likewise.
8393         * sysdeps/mips/memset.S (memset): Likewise.
8394         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
8395         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
8396         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
8397         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
8398         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
8399         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
8400         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
8401         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
8402         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
8403         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
8404         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
8405         * sysdeps/powerpc/strcat.c (strcat): Likewise.
8406         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
8407         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
8408         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
8409         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
8410         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
8411         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
8412         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
8413         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
8414         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
8415         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
8416         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
8417         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
8418         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
8419         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
8420         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
8421         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
8422         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
8423         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
8424         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
8425         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
8426         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
8427         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
8428         * sysdeps/sh/memcpy.S (memcpy): Likewise.
8429         * sysdeps/sh/memset.S (memset): Likewise.
8430         * sysdeps/sh/strlen.S (strlen): Likewise.
8431         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
8432         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
8433         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
8434         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
8435         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
8436         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
8437         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
8438         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
8439         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
8440         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
8441         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
8442         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
8443         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
8444         * sysdeps/x86_64/memset.S (memset): Likewise.
8445         * sysdeps/x86_64/strcat.S (strcat): Likewise.
8446         * sysdeps/x86_64/strchr.S (strchr): Likewise.
8447         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
8448         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
8449         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
8450         * sysdeps/x86_64/strlen.S (strlen): Likewise.
8451         * sysdeps/x86_64/strspn.S (strspn): Likewise.
8452         * string/string-inlines.c: Move...
8453         * sysdeps/generic/string-inlines.c: ...here.
8454         (__memcpy_g, __strchr_g): Remove.
8455         (__NO_INLINE__): Define before including <string.h>,
8456         undefine after.  Include bits/string.h and bits/string2.h.
8457         * sysdeps/i386/i486/string-inlines.c: New file.
8458         * sysdeps/i386/string-inlines.c: New file.
8459         * sysdeps/i386/i486/Versions: Remove.
8460         All GLIBC_2.1.1 symbols moved...
8461         * sysdeps/i386/Versions (libc): ...here.
8463 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
8465         * sysdeps/i386/fpu/Makefile: New file.
8466         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
8467         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
8468         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
8469         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
8470         [PR libc/4987].
8472 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
8474         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
8475         * nscd/nscd_getpw_r.c: Likewise.
8476         * nscd/nscd_gethst_r.c: Likewise.
8478 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
8480         * nscd/pwdcache.c: Initialize .version element in result.
8481         * nscd/grpcache.c: Likewise.
8482         * nscd/pwdcache.c: Likewise.
8484 2003-04-27  Andreas Schwab  <schwab@suse.de>
8486         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
8487         subdirectory.
8489 2003-04-27  Andreas Schwab  <schwab@suse.de>
8491         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
8493 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
8495         * nscd/connections.c (client_queued): New variable.
8496         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
8497         threads.  Keep track of the number of delays caused because of busy
8498         worker threads.
8499         * nscd/nscd.h: Declare client_queued.
8500         * nscd/nscd_stat.c: Transmit and print client_queued information.
8502         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
8504         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
8505         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
8507 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
8509         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
8510         tracking of freed memory in static TLS block.
8511         * elf/Makefile: Add rules to build and run tst-tls13.
8512         * elf/tst-tls13.c: New file.
8513         * elf/tst-tlsmod13.c: New file.
8514         * elf/tst-tlsmod13a.c: New file.
8516         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
8518         * elf/dl-reloc.c: Pretty printing.
8520 2003-04-26  Roland McGrath  <roland@redhat.com>
8522         * Makerules ($(common-objpfx)shlib.lds): New target.
8523         (common-generated): Add it.
8524         (build-shlib, build-module): Use that instead of generating every time.
8525         ($(common-objpfx)libc.so): Depend on it.
8526         (lib%.so rule): Likewise.
8527         (build-module-helper-objlist): Remove %.lds.
8528         (LDSEDCMD-c.so): Variable removed.
8529         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
8530         Depend on $(common-objpfx)shlib.lds.
8531         * dlfcn/Makefile ($(test-modules)): Likewise.
8533 2003-04-26  Roland McGrath  <roland@frob.com>
8535         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
8537 2003-04-26  Andreas Schwab  <schwab@suse.de>
8539         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
8541 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
8543         * nscd/cache.c (cache_search): Keep track of how many chain links
8544         we searched and update table statistics.
8545         (cache_add): Keep track of how many values are in the table.
8546         (prune_cache): Likewise.  Keep track of locking success.
8547         Print messages about removed entries in separate pass.
8548         * nscd/connections.c (handle_request): Don't print debug message here.
8549         The caller will do it.  Keep track of locking success.
8550         (nscd_run): Print debug message.  Also print PID of the client process.
8551         * nscd/nscd.c (start_time): New variable.
8552         (main): Remember start time.
8553         * nscd/nscd.h: Declare start_time.
8554         (struct database): Add more members for new statistics.
8555         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
8556         of new statistics.
8558         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
8560 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
8562         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
8563         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
8564         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
8565         NO_TLS_OFFSET.
8566         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
8567         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
8568         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
8569         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
8570         TLS_TCB_SIZE.
8572 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
8574         * nss/getent.c: Implement alternative host database lookup via
8575         getaddrinfo.
8577         * include/ifaddrs.h: New file.
8578         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
8579         AI_ADDRCONFIG...
8580         * resolv/netdb.h: ...here.
8581         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
8582         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8583         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
8584         AI_ADDRCONFIG.
8586 2003-04-24  Roland McGrath  <roland@redhat.com>
8588         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
8590 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
8592         * elf/dl-reloc.c (allocate_static_tls): Rename to...
8593         (_dl_allocate_static_tls): ... this function.  No longer static.
8594         (CHECK_STATIC_TLS): Adjust.
8595         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
8596         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
8597         Add SYM_MAP argument.
8598         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
8599         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
8600         TLS relocs here.  #ifdef out relocs which never appear in
8601         .gnu.conflict section from dl-conflict.c processing.
8602         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8603         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
8605         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
8606         out relocs which never appear in .gnu.conflict section from
8607         dl-conflict.c processing.
8608         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
8609         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8610         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
8611         Use r_type in RESOLVE macro.
8613 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
8615         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
8616         NULL.  Remove code made redundant by this assumption.
8617         (__yp_unbind): Add call to free.  Adjust all callers.
8619         * nis/ypclnt.c (yp_all): Free the dom_binding object after
8620         unbinding it.
8622         * grp/initgroups.c (getgrouplist): Don't copy too much into the
8623         user buffer if more groups are found than fit into it.
8625         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
8626         extend_alloca.
8628 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
8630         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
8631         not rc == errno.  Use extend_alloca.
8633         * elf/tst-tls12.c (main): Fix declaration.
8634         * elf/tst-tls10.c (dummy): Make hidden instead of static.
8635         * elf/tst-tlsmod7.c (dummy): Likewise.
8636         * elf/tst-tlsmod8.c (dummy): Likewise.
8637         * elf/tst-tlsmod9.c (dummy): Likewise.
8639 2003-04-22  Roland McGrath  <roland@redhat.com>
8641         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
8642         (open_not_cancel): Make last argument non-optional.
8643         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
8644         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8645         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8647         * include/tls.h: Protect against multiple inclusion.
8649 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
8651         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
8652         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
8653         open_socket.  Not static anymore.
8654         (nscd_gethst_r): Use __nscd_open_socket.
8655         * nscd/nscd_getgr_r.c (open_socket): Removed.
8656         (nscd_getgr_r): Use __nscd_open_socket.
8657         * nscd/nscd_getpw_r.c (open_socket): Removed.
8658         (nscd_getpw_r): Use __nscd_open_socket.
8660         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
8661         * nscd/connections.c (handle_request): Add cast to avoid warning.
8663 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
8665         * signal/sigfillset.c: Moved to...
8666         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
8667         do not set the corresponding bit.
8669         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
8670         SIGCANCEL.
8671         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
8672         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
8673         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
8674         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
8675         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
8677 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
8679         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
8680         first syscall parameter to const char*.
8682 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
8684         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
8686         * configure.in: Add AC_PROG_CXX.
8687         * config.make.in (CXX): Define.
8689         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
8690         __len to size_t to avoid warnings.
8692 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
8694         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
8695         2.5.67.
8696         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8698 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
8700         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
8701         UNREGISTER_ATFORK if d == NULL.
8703         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
8704         * dirent/dirent.h: Likewise.
8705         * dlfcn/dlfcn.h: Likewise.
8706         * grp/grp.h: Likewise.
8707         * iconv/iconv.h: Likewise.
8708         * io/fcntl.h: Likewise.
8709         * io/ftw.h: Likewise.
8710         * libio/stdio.h: Likewise.
8711         * misc/sys/mman.h: Likewise.
8712         * misc/sys/select.h: Likewise.
8713         * misc/sys/syslog.h: Likewise.
8714         * misc/sys/uio.h: Likewise.
8715         * posix/spawn.h: Likewise.
8716         * posix/unistd.h: Likewise.
8717         * posix/sys/wait.h: Likewise.
8718         * pwd/pwd.h: Likewise.
8719         * resolv/netdb.h: Likewise.
8720         * rt/aio.h: Likewise.
8721         * shadow/shadow.h: Likewise.
8722         * signal/signal.h: Likewise.
8723         * socket/sys/socket.h: Likewise.
8724         * stdlib/stdlib.h: Likewise.
8725         * streams/stropts.h: Likewise.
8726         * string/string.h: Likewise.
8727         * sysdeps/gnu/utmpx.h: Likewise.
8728         * sysvipc/sys/msg.h: Likewise.
8729         * termios/termios.h: Likewise.
8730         * time/time.h: Likewise.
8731         * wcsmbs/wchar.h: Likewise.
8732         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
8733         functions.
8734         * misc/daemon.c: Likewise.
8735         * sysdeps/generic/backtracesymsfd.c: Likewise.
8736         * sysdeps/generic/check_fds.c: Likewise.
8737         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
8738         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
8739         * sysdeps/generic/not-cancel.h: New file.
8740         * csu/Makefile (distribute): Add not-cancel.h.
8741         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
8742         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
8743         for assert.c and assert-perr.c to include <fatal-prepare.h>.
8744         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
8746         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
8747         errno and unlink first.
8749         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
8751 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
8753         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
8754         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
8756 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
8758         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
8760         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
8761         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
8762         replace.
8764         * signal/Makefile (tests): Add tst-sigsimple.
8765         * signal/tst-sigsimple.c: New file.
8767 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
8769         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
8770         tst-tls10.h.
8771         (tests): Add tst-tls1[0-2].
8772         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
8773         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
8774         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
8775         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
8776         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
8777         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
8778         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
8779         * elf/tst-tls10.c: New test.
8780         * elf/tst-tls11.c: New test.
8781         * elf/tst-tls12.c: New test.
8782         * elf/tst-tls10.h: New file.
8783         * elf/tst-tlsmod7.c: New file.
8784         * elf/tst-tlsmod8.c: New file.
8785         * elf/tst-tlsmod9.c: New file.
8786         * elf/tst-tlsmod10.c: New file.
8787         * elf/tst-tlsmod11.c: New file.
8788         * elf/tst-tlsmod12.c: New file.
8790 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
8792         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
8793         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
8794         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
8796 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
8798         * posix/regex.h: Include <sys/types.h>.
8800         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
8801         The signal number must be checked.
8802         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
8803         The signal number must be checked [PR libc/5004].
8805         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
8806         don't do anything fancy.
8808         * sysdeps/generic/bits/libc-lock.h: Define
8809         __rtld_lock_define_initialized_recursive.
8811         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
8812         contacting nscd if NOT_USENSCD_NAME > 0.
8813         * nss/nsswitch.c (__nss_disable_nscd): New function.
8814         * nss/nsswitch.h: Declare it.
8815         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
8816         * nscd/nscd.c (main): Call __nss_disable_nscd.
8818 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
8820         * stdio-common/perror.c (perror): We don't need to set the offset
8821         to _IO_pos_bad, this is how streams are initialized.
8823         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
8824         (time_output): If necessary, allocate new buffer for .name string if
8825         padding is required.
8827         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
8828         before copying.  This might leave holes in the list.  Adjust
8829         pointers if necessary.
8830         (netlink_receive): Allocate only one block.
8831         (free_netlink_handle): Adjust appropriately.
8832         (getifaddrs): Lots of cleanups.
8834         * string/test-strncpy.c (do_one_test): Mark start and stop as
8835         possibly unused.
8836         * string/test-memchr.c: Likewise.
8837         * string/test-memcmp.c: Likewise.
8838         * string/test-memcpy.c: Likewise.
8839         * string/test-memmove.c: Likewise.
8840         * string/test-memset.c: Likewise.
8841         * string/test-strcat.c: Likewise.
8842         * string/test-strchr.c: Likewise.
8843         * string/test-strcmp.c: Likewise.
8844         * string/test-strcpy.c: Likewise.
8845         * string/test-strlen.c: Likewise.
8846         * string/test-strncmp.c: Likewise.
8847         * string/test-strpbrk.c: Likewise.
8848         * string/test-strrchr.c: Likewise.
8849         * string/test-strspn.c: Likewise.
8851 2003-04-15  Roland McGrath  <roland@redhat.com>
8853         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
8855         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
8856         INTUSE(__register_frame_info_bases).
8858 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
8860         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
8861         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
8862         AT_SYSINFO_EH_FRAME.  Adjust string width.
8863         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
8864         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
8865         Add _dl_sysinfo_eh_frame field.
8866         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
8867         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
8868         variable.
8869         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
8870         if _dl_sysinfo_eh_frame is non-NULL.
8872         * Makeconfig (gnulib): Add -lgcc_eh.
8874         * config.h.in: Define HAVE_FORCED_UNWIND.
8876 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
8878         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
8879         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
8881 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
8883         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
8884         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
8885         against local symbol in conflict processing.
8887 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
8889         * sysdeps/powerpc/bits/atomic.h
8890         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
8891         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
8892         as abort stub.
8893         (__arch_compare_and_exchange_val_32_acq): Define.
8894         (atomic_compare_and_exchange_val_acq): Define.
8896 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
8898         * include/atomic.h: Pretty printing.
8900 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
8902         * stdio-common/vfscanf.c: Add casts to avoid warnings.
8904 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
8906         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
8907         * sysdeps/x86_64/bits/atomic.h: Likewise.
8909 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
8911         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
8912         POPARGS_1 to emit labels for the mov instructions.
8914 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
8916         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
8918 2003-04-14  Roland McGrath  <roland@redhat.com>
8920         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
8921         compiler warning.
8923         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
8925 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
8927         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
8928         position.  Reported by jreiser@BitWagon.com.
8930 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
8932         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
8933         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
8934         * sysdeps/generic/unwind-dw2.c: Likewise.
8935         * sysdeps/generic/unwind-pe.h: Likewise.
8937 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
8939         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
8940         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
8941         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
8942         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
8943         (mcontext_t): Make it match the 32-bit mips kernel in o32.
8944         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
8945         the mips and mips64 headers.
8946         (struct user): Port to n32/n64.
8948 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
8950         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
8951         avoid warning.
8953         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
8954         __ASSUME_VSYSCALL is defined don't add restorer.
8955         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8956         __ASSUME_VSYSCALL for 2.5.53.
8958 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
8960         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
8961         Remove HAVE_CANCELBUF code.  Replace with code using the new
8962         initializers for unwind-based cleanup handling.
8963         * sysdeps/generic/unwind.h: Update from latest gcc version.
8964         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
8965         places to allow unwind data generation.
8966         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
8967         * sysdeps/x86_64/bits/setjmp.h: Likewise.
8968         * sysdeps/sh/bits/setjmp.h: Likewise.
8969         * sysdeps/powerpc/bits/setjmp.h: Likewise.
8970         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
8971         * sysdeps/alpha/bits/setjmp.h: Likewise.
8973 2003-04-11  Roland McGrath  <roland@redhat.com>
8975         * csu/tst-empty.c: New file.
8976         * csu/Makefile (tests, tests-static): Add it.
8978 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
8980         * string/test-strcmp.c (do_random_tests): Test whether return value
8981         has been promoted to wordsize if the ABI requires caller to do so.
8982         * string/test-strncmp.c (do_random_tests): Likewise.
8983         * string/test-memcmp.c (do_random_tests): Likewise.
8985         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
8986         before returning.
8988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
8989         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
8990         is not defined, but the prctl constants are.
8992         * string/tester.c (test_strcmp): Fix a typo.
8994 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
8996         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
8997         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
8999 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
9001         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
9002         NewABI.
9003         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
9004         NewABI.
9005         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
9006         conventions.
9007         * sysdeps/mips/mips64/memset.S: Likewise.
9008         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
9009         Use t0 instead of t4 as temporary.
9011 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
9013         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
9014         feof_unlocked instead of feof.
9015         (add_dir): Ignore trailing whitespace.
9017 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
9019         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
9020         sum of SIZE1 and SIZE2 arguments.
9022 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
9024         * iconv/iconv_prog.c (process_block): Don't print message about
9025         invalid input if the -c option is used.
9026         (main): Correctly append IGNORE string for -c option.
9028 2003-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9030         * sysdeps/sh/bits/atomic.h: Moved to ...
9031         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
9032         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
9033         arguments.
9034         (atomic_bit_set, atomic_bit_test_set): Likewise.
9035         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
9036         twice.
9037         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
9039 2003-04-06  Roland McGrath  <roland@redhat.com>
9041         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
9042         restoration as done for setcontext yesterday.
9044 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
9046         * elf/rtld.c: Revert 2003-03-14 change.
9047         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
9048         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
9050 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
9052         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
9054         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9055         Always initialize *signgamp before returning an error.
9057 2003-04-05  Roland McGrath  <roland@redhat.com>
9059         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
9060         below the stack pointer even if switching to the same context we are
9061         running right now.
9063 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
9065         * catgets/gencat.c (read_input_file): Make sure that \n is not
9066         alone on the line before testing for continuation.
9068         * math/test-tgmath.c (compile_test): Initialize c.
9070 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
9072         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
9073         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
9074         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
9075         on mips n32.
9076         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
9077         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
9078         structure on n32 as well.
9079         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
9080         data types on n32 and n64.
9082 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
9084         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
9085         after getting them.
9087         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
9088         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
9089         instead of __register_atfork.
9091 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
9093         * stdio-common/reg-printf.c (__register_printf_function): Calloc
9094         instead of malloc __printf_arginfo_table and __printf_function_table.
9095         Reported by John Reiser <jreiser@BitWagon.com>.
9097 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
9099         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
9100         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
9102         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
9103         defining.
9105 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
9107         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
9108         for n64 abi.
9110 2003-04-03  Roland McGrath  <roland@redhat.com>
9112         * configure.in: Fix up use of compilation flags to match the build:
9113         For .s files, $ASFLAGS;
9114         For .S files, $CPPFLAGS $ASFLAGS;
9115         For .c files, $CFLAGS $CPPFLAGS;
9116         when linking, add $LDFLAGS.
9117         * configure: Regenerated.
9119 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
9121         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
9122         for atomic_compare_and_exchange_bool_acq failure.
9124 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
9126         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
9127         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
9128         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
9129         Remove declaration of pthread_atfork.
9131 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
9133         * locale/iso-639.def: Add many more languages from the current ISO 639.
9135         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
9136         * sysdeps/generic/semtimedop.c: New file.
9137         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
9138         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
9139         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9140         * sysvipc/Makefile (routines): Add semtimedop.
9141         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
9142         * sysvipc/sys/sem.h: Declare semtimedop.
9144 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
9146         * configure.in: Check for __register_frame_info in both
9147         -lgcc and -lgcc_eh.
9148         * configure: Regenerated.
9150 2003-04-01  Roland McGrath  <roland@redhat.com>
9152         * scripts/abilist.awk: Allow dots in soname suffix.
9154         * scripts/abilist.awk (emit): Fix bailout condition.
9156 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
9158         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
9159         IA-64 version.
9161         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
9162         register as input to asm.
9164 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
9166         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
9168 2003-04-01  Andreas Jaeger  <aj@suse.de>
9170         * configure.in: Output as/ld as name if version is too old.
9172 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
9174         * configure.in: Don't require an installed C library in the test
9175         for ".set" assembler support.
9177 2003-03-31  Roland McGrath  <roland@redhat.com>
9179         * signal/tst-sigset.c: New file.
9180         * signal/Makefile (tests): Add it.
9182 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
9184         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
9185         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
9186         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
9187         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
9188         (__SIGRTMAX): Adjust accordingly.
9189         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
9190         second compatibility symbol set.
9191         * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
9193 2003-03-31  Andreas Schwab  <schwab@suse.de>
9195         * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
9196         Define.
9197         (atomic_decrement_and_test): Fix test.
9199 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
9201         * sysdeps/sparc/sparc32/bits/atomic.h: New file.
9202         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
9203         * sysdeps/sparc/sparc64/bits/atomic.h: New file.
9204         * sysdeps/sparc/sparc32/atomicity.h: Removed.
9205         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
9206         * sysdeps/sparc/sparc64/atomicity.h: Removed.
9208 2003-03-30  Roland McGrath  <roland@redhat.com>
9210         * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
9212         * intl/po2test.sed: Anchor substitution regexps to fix last change.
9214 2003-03-29  Paolo Bonzini  <bonzini@gnu.org>
9216         * intl/po2test.sed: Unify the transformations for msgid and msgstr
9217         and remove a useless s/// command.
9219 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
9221         * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
9222         directive into empty .prologue region to ensure that call-chain
9223         is terminated even for the first instruction.
9225         * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
9226         to terminate call-chain right from the get-go.
9228         * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
9229         stop bit between compare & branch.
9231 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
9233         * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
9234         point correctly [PR libc/4993].
9236         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
9237         netlink_open calls if netlink is known to not be available.
9239 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
9241         * configure.in: Add mips64* support.
9242         * sysdeps/mips/bits/endian.h: Make it bi-endian.
9243         * sysdeps/mips/mipsel/bits/endian.h: Removed.
9244         * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
9245         * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
9246         * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
9247         * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
9248         * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
9249         * sysdeps/mips/Implies: Moved wordsize-32 to...
9250         * sysdeps/mips/mips32/Implies: New file.
9251         * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
9252         ret_NOERRNO): New.
9253         (ret, PSEUDO_END): Moved past END.
9254         (PSEUDO): Moved to...
9255         * sysdeps/unix/mips/mips32/sysdep.h: New file.
9256         * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
9257         * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
9258         * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
9259         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
9260         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
9262         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
9263         Re-introduce ENTRY.
9265 2003-03-28  Thorsten Kukuk  <kukuk@suse.de>
9267         * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
9268         * inet/test-ifaddrs.c: Allow AF_PACKET.
9269         * sysdeps/unix/sysv/linux/kernel-features.h: Add
9270         __ASSUME_NETLINK_SUPPORT.
9272 2003-03-28  Ulrich Drepper  <drepper@redhat.com>
9274         * elf/vismain.c (do_test): Comment out tests which fail in the moment.
9276 2003-03-26  H.J. Lu  <hjl@gnu.org>
9278         * elf/vismod.h (getvarlocal1): Return const char **.
9279         (getvarinmod1): Likewise.
9280         (getvaritcpt1): Likewise.
9281         (getvarlocal2): Likewise.
9282         (getvarinmod2): Likewise.
9283         (getvaritcpt2): Likewise.
9284         (getvaritcpt3): Likewise.
9285         * elf/vismain.c (do_test): Adjusted.
9286         * elf/vismod1.c (getvarlocal1): Return address.
9287         (getvarinmod1): Likewise.
9288         (getvaritcpt1): Likewise.
9289         * elf/vismod2.c (getvarlocal2): Likewise.
9290         (getvarinmod2): Likewise.
9291         (getvaritcpt2): Likewise.
9292         * elf/vismod3.c (getvaritcpt3): Likewise.
9294 2003-03-28  Roland McGrath  <roland@redhat.com>
9296         * elf/vismain.c (do_test): Print both addresses when they don't match.
9298         * scripts/abilist.awk: If given -v filename_regexp and/or -v
9299         libname_regexp when parsing names, then produce output only
9300         for those matching the given regexps.  In combine mode, save all
9301         stanzas for a final sorting by stanza header at the end.
9302         Emit a blank line between stanzas.
9304         * scripts/abilist.awk: When given -v combine=1, do parse_names and
9305         emit a single output stream with lib name in stanza header lines.
9307         * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
9309 2003-03-27  Roland McGrath  <roland@redhat.com>
9311         * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
9312         (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
9314 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9316         * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
9317         Return old value. Make asm output reg constraint earlyclobber.
9318         Renamed from...
9319         (__arch_compare_and_exchange_8_acq): ... this.
9320         (__arch_compare_and_exchange_val_16_acq):
9321         Return old value. Make asm output reg constraint earlyclobber.
9322         Renamed from...
9323         (__arch_compare_and_exchange_16_acq): ... this.
9324         (__arch_compare_and_exchange_val_32_acq):
9325         Return old value. Make asm output reg constraint earlyclobber.
9326         Renamed from...
9327         (__arch_compare_and_exchange_32_acq): ... this.
9328         (__arch_compare_and_exchange_val_64_acq):
9329         Renamed from...
9330         (__arch_compare_and_exchange_64_acq): ... this.
9331         (atomic_exchange_and_add): Use local variables and
9332         __arch_compare_and_exchange_val_64_acq.
9333         (atomic_add): Likewise.
9334         (atomic_add_negative, atomic_add_zero): Use local variables.
9336 2003-03-28  Alexandre Oliva  <aoliva@redhat.com>
9338         * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
9340 2003-03-27  Ulrich Drepper  <drepper@redhat.com>
9342         * Makefile: Remove libmd5crypt goal.
9344 2003-03-25  Jakub Jelinek  <jakub@redhat.com>
9346         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
9347         special handling of relocations against local symbols.
9349 2003-03-27  Steven Munroe  <sjmunroe@us.ibm.com>
9351         * sysdeps/powerpc/bits/atomic.h
9352         (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
9353         [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
9354         Define PPC64 specific version.
9355         [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
9356         Change (mem) constraint to "b".
9357         [__powerpc64__] (__arch_atomic_exchange_and add_64):
9358         Replace addi with add. Change (value) contraint to "r".
9359         Change (mem) constraint to "b".
9360         [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
9361         (__arch_atomic_exchange_32): Change (mem) constraint to "b".
9362         (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
9363         (__arch_atomic_decrement_if_positive_32): New macro.
9364         (atomic_decrement_if_positive): Use __arch* macros.
9366 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
9368         * sysdeps/ia64/fpu/libm-test-ulps: Update.
9370 2003-03-27  Roland McGrath  <roland@redhat.com>
9372         * scripts/rpm2dynsym.sh: New file.
9373         * Makefile (distribute): Add it.
9375 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
9377         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
9378         ar.unat before returning.  Add missing .mem.offset directives
9379         to ensure file gets assembled without warnings.
9380         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
9382 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
9384         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
9385         Return -1 instead of 0 if clock_getres failed.
9387 2003-03-27  Roland McGrath  <roland@redhat.com>
9389         * scripts/abilist.awk: If variable `parse_names' is set, grok the file
9390         header lines and write out foo.symlist files for each foo.so.NN listed.
9392         * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
9393         This symbol is exported, and we don't want to hide it.
9394         Add libc_hidden_proto instead.
9395         (_IO_file_jumps): Add libc_hidden_proto.
9396         * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
9397         Remove INTVARDEF.
9398         * libio/fileops.c (_IO_file_jumps): Likewise.
9399         * libio/stdfiles.c: Don't use INTUSE on them.
9400         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9401         * libio/iofopen.c (__fopen_internal): Likewise.
9402         * libio/freopen.c (freopen): Likewise.
9403         * libio/freopen64.c (freopen64): Likewise.
9404         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9406         * Makerules (check-abi) [$(enable-check-abi) = warn]:
9407         Ignore exit status from diff.
9408         * configure.in (enable_check_abi): Document possible value "warn".
9409         Change default to no for now.
9410         * configure: Regenerated.
9412         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
9413         macro calls and a #include <stub-tag.h> at the end.
9414         * Makerules ($(objpfx)stubs): Tweak sed commands.
9416         * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
9417         caller column for *xattr syscalls, since they are in sysdeps/generic.
9419         * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
9420         * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
9422 2003-03-26  Roland McGrath  <roland@redhat.com>
9424         * Makerules (check-abi-config): Use /thread instead of /tls when
9425         use-thread and not just use-tls is set.
9427         * Makerules (update-abi): Put quotes around $(update-abi-config).
9429         * elf/Makefile (check-abi): Depend on check-abi-ld.
9430         (update-abi): Depend on update-abi-ld.
9432 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
9434         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
9435         do not check for errors (unless testing for 32bit variant).
9436         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
9438 2003-03-27  Philip Blundell  <philb@gnu.org>
9440         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
9441         unconditional mov.  Remove nop.
9443         * sysdeps/unix/sysv/linux/kernel-features.h
9444         (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
9445         * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
9446         when __ASSUME_VFORK_SYSCALL is defined.
9447         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
9448         __ASSUME_MMAP2_SYSCALL.
9449         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
9450         __ASSUME_REALTIME_SIGNALS.
9452 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
9454         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
9455         only if DL_NO_COPY_RELOCS is not defined.
9456         * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
9458 2003-03-26  Roland McGrath  <roland@redhat.com>
9460         * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
9461         SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
9462         * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
9463         (sysdep_routines): Add stub-syscalls.
9464         ($(objpfx)stub-syscalls.c): New target.
9465         (generated): Add stub-syscalls.c.
9467         * tls.make.c: Also define use-tls according to USE_TLS macro.
9469 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
9471         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
9472         no-op padding element.
9473         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
9474         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9475         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9476         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9478 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
9480         * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
9481         condition check for the return value of getgroups32.
9483 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
9485         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
9486         Fix a typo.
9487         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
9488         PSEUDO_END_NOERRNO): Define.
9489         * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
9490         Define to PSEUDO_END.
9492 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
9494         * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
9496 2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>
9498         * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
9499         * iconvdata/bug-iconv4.c: New file.
9500         * iconvdata/Makefile (tests): Add bug-iconv4.
9502 2003-03-25  H.J. Lu  <hjl@gnu.org>
9504         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
9505         symbols twice.
9506         (_dl_lookup_versioned_symbol): Likewise.
9508 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
9510         * csu/tst-atomic.c (do_test): Add some new
9511         atomic_compare_and_exchange_val_acq, atomic_add_zero,
9512         atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
9513         * include/atomic.h (atomic_add_negative, atomic_add_zero):
9514         Prefix local variable so that it doesn't clash with the one
9515         in atomic_exchange_and_add.
9516         * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
9517         pointers.
9518         (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
9519         * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
9520         value into register.
9521         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
9522         Cast newval to long.
9523         * sysdeps/x86_64/bits/atomic.h
9524         (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
9525         long.
9526         (atomic_exchange): Cast newvalue to long if sizeof == 8.
9527         (atomic_exchange_and_add): Cast value to long if sizeof == 8.
9528         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
9529         (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
9531 2003-03-21  Martin Schwidefsky  <schwidefskyde.ibm.com>
9533         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
9534         bit from backtrace addresses.
9536 2003-03-21  Andreas Schwab  <schwab@suse.de>
9538         * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
9539         __chown symbols.
9541 2003-03-25  Roland McGrath  <roland@redhat.com>
9543         * config.make.in (enable-check-abi): New variable from configure.
9544         * configure.in (enable_check_abi): New substituted variable,
9545         controlled by --{enable,disable}-check-abi (default yes).
9546         * configure: Regenerated.
9547         * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
9548         on check-abi dependency.
9550 2003-03-26  Andreas Schwab  <schwab@suse.de>
9552         * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
9553         * include/atomic.h: Likewise.
9555         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
9557 2003-03-25  Roland McGrath  <roland@redhat.com>
9559         * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
9560         (__arch_atomic_exchange_64): New macro.
9561         (atomic_exchange): Use them.
9562         (__arch_atomic_exchange_and_add_32): New macro.
9563         (__arch_atomic_exchange_and_add_64): New macro.
9564         (atomic_exchange_and_add): Use them.
9565         Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
9567 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
9569         * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
9570         Define.
9571         * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
9572         ISA tests.
9573         (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
9574         (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
9575         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
9576         to decide whether to add padding.
9577         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
9578         to decide whether to add padding.
9579         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
9580         old_kernel_sigaction): Likewise.
9582 2003-03-25  Ulrich Drepper  <drepper@redhat.com>
9584         * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
9585         atomic_add_zero were supposed to do.
9586         * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
9587         to x86 behavior.
9589         * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
9590         This matches the new timer implementation.
9591         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
9592         Likewise.
9593         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
9594         Likewise.
9595         * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
9596         timer info for what the kernel provides these days.
9597         (struct sigevent): Add _tid field.
9598         Define SIGEV_THREAD_ID.
9599         Remove struct __pthread_attr_s forward declaration.
9600         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
9601         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9602         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9603         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9605         * Versions.def (librt): Add GLIBC_2.3.3.
9607         * abilist/libpthread.abilist: Update for nptl.
9609 2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>
9611         * inet/netinet/in.h: Add IPPROTO_SCTP.
9613 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
9615         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
9617 2003-03-24  Philip Blundell  <philb@gnu.org>
9619         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
9620         Remove a1 from clobber list.
9622 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
9624         * timezone/antarctica: Update from tzdata2003a.
9625         * timezone/asia: Likewise.
9626         * timezone/australasia: Likewise.
9627         * timezone/europe: Likewise.
9628         * timezone/iso3166.tab: Likewise.
9629         * timezone/northamerica: Likewise.
9630         * timezone/southamerica: Likewise.
9631         * timezone/zone.tab: Likewise.
9633 2003-03-24  Steven Munroe  <sjmunroe@us.ibm.com>
9635         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
9637 2003-03-23  Ulrich Drepper  <drepper@redhat.com>
9639         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
9640         unwanted expansion by definining to ret.  Patch by Ian Wienand.
9642         * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
9643         the parameter description to denote no error checking.  Generate
9644         appropriate pseudo asm code.
9645         * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
9646         * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
9647         getpgrp, and getppid with 'E'.
9648         * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
9649         PSEUDO_END_NOERRNO, and ret_NOERRNO.
9650         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
9651         * sysdeps/unix/sysdep.h: Likewise.
9652         * sysdeps/unix/alpha/sysdep.h: Likewise.
9653         * sysdeps/unix/sparc/sysdep.h: Likewise.
9654         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9655         * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
9656         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9657         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9658         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9659         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9660         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9661         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9662         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9663         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9664         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9666 2003-03-23  Roland McGrath  <roland@redhat.com>
9668         * Makeconfig (+includes): Don't use $(last-includes).
9670 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
9672         * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
9673         * sysdeps/unix/sysv/linux/configure: Rebuilt.
9675 2003-03-23  Jakub Jelinek  <jakub@redhat.com>
9677         * sysdeps/alpha/fpu/libm-test-ulps: Update.
9678         * sysdeps/arm/libm-test-ulps: Update.
9679         * sysdeps/hppa/fpu/libm-test-ulps: Update.
9680         * sysdeps/ia64/fpu/libm-test-ulps: Update.
9681         * sysdeps/mips/fpu/libm-test-ulps: Update.
9682         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9683         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9684         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9685         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9686         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
9687         * sysdeps/s390/fpu/libm-test-ulps: Update.
9688         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9690 2003-03-22  Roland McGrath  <roland@redhat.com>
9692         * include/atomic.h: Put parens around all macro arguments.
9693         (__atomic_val_bysize, __atomic_bool_bysize): New macros.
9694         (atomic_compare_and_exchange_val_acq): Use it.
9695         (atomic_compare_and_exchange_bool_acq): Likewise.
9696         (atomic_increment_and_test): Invert sense of test.
9697         (atomic_decrement_and_test): Likewise.
9698         * csu/tst-atomic.c: Update those tests to match.
9700 2003-03-22  Jakub Jelinek  <jakub@redhat.com>
9702         * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
9703         Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
9704         (atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
9705         __oldval variable in the macro, since it might be macro argument.
9706         (atomic_decrement_if_positive): Initialize __memp, remove setting
9707         of non-existent variable.
9708         (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
9709         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
9710         using atomic_compare_and_exchange_val_acq.
9711         (atomic_decrement_if_positive, atomic_bit_test_set): Define.
9712         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
9713         Renamed from...
9714         (__arch_compare_and_exchange_bool_8_acq): ... this.
9715         (__arch_compare_and_exchange_val_16_acq): Renamed from...
9716         (__arch_compare_and_exchange_bool_16_acq): ... this.
9717         (__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
9718         from...
9719         (__arch_compare_and_exchange_bool_32_acq): ... this.
9720         (__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
9721         from...
9722         (__arch_compare_and_exchange_bool_64_acq): ... this.
9723         (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
9724         variables types instead of assuming int.
9725         Change prefix of local variables to __arch.
9726         * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
9727         Remove.
9728         (atomic_compare_and_exchange_val_acq,
9729         atomic_compare_and_exchange_bool_acq): Define.
9731         * csu/tst-atomic.c: New test.
9732         * csu/tst-atomic-long.c: New test.
9733         * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
9735         * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
9737         * sysdeps/s390/Versions: Add trailing newline.
9739         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
9740         if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
9742 2003-03-22  Andreas Schwab  <schwab@suse.de>
9744         * sysdeps/m68k/fpu/libm-test-ulps: Update.
9746         * sysdeps/m68k/m68020/bits/atomic.h: New file.
9747         * sysdeps/m68k/m68020/atomicity.h: Removed.
9749 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
9751         * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
9752         data structures and macros.  Protect from multiple inclusion.
9754         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
9755         typo in #if test.
9757 2003-03-21  Andreas Jaeger  <aj@suse.de>
9759         * sysdeps/i386/fpu/libm-test-ulps: Update.
9761         * math/libm-test.inc (tgamma_test): Recompute some constants with
9762         36 digits precision.
9763         (lgamma_test): Likewise.
9764         (ccos_test): Likewise.
9765         (ccosh_test): Likewise.
9766         (clog10_test): Likewise.
9767         (csin_test): Likewise.
9768         (csinh_test): Likewise.
9769         (ctan_test): Likewise.
9770         (ctanh_test): Likewise.
9772 2003-03-19  Jakub Jelinek  <jakub@redhat.com>
9774         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
9776 2003-03-21  Roland McGrath  <roland@redhat.com>
9778         * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
9779         constraint to permit non-constant BIT argument.
9780         (atomic_bit_test_set): Likewise.
9781         * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
9782         (atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
9783         For quadword case, use "i" constraint if __builtin_constant_p and < 32
9784         or "r" constraint otherwise.
9786         * configure.in: Move AC_PROG_CC and other program-finding before all
9787         the version checks.
9788         * configure: Regenerated.
9790 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
9792         * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
9793         unaligned copying of 8-15 bytes.  From Chris Demetriou
9794         <cgd@broadcom.com>.  Fix label names.
9795         * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
9796         change as to memcpy.S.
9797         * sysdeps/mips/memcpy.S: Formatting changes.
9798         * sysdeps/mips/memset.S: Likewise.
9800 2003-03-21  Roland McGrath  <roland@redhat.com>
9802         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
9804 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
9806         * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
9807         * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
9809 2003-03-21  Roland McGrath  <roland@redhat.com>
9811         * sysdeps/i386/i486/bits/atomic.h
9812         (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
9813         version of the macro to avoid compile-time warnings.
9814         [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
9815         (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
9816         (atomic_increment, atomic_decrement): Likewise.
9818 2003-03-21  Ulrich Drepper  <drepper@redhat.com>
9820         * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
9821         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9823 2003-03-21  Roland McGrath  <roland@redhat.com>
9825         * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
9827 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
9829         * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
9830         atomic_compare_and_exchange_val_rel,
9831         atomic_compare_and_exchange_bool_acq, and
9832         atomic_compare_and_exchange_bool_rel instead of
9833         atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
9834         * sysdeps/i386/i486/bits/atomic.h: Define
9835         __arch_compare_and_exchange_val_*_acq instead of
9836         __arch_compare_and_exchange_*_acq.
9837         * sysdeps/x86_64/bits/atomic.h: Likewise.
9838         * sysdeps/ia64/bits/atomic.h: Define
9839         __arch_compare_and_exchange_bool_*_acq instead of
9840         __arch_compare_and_exchange_*_acq.
9841         * sysdeps/powerpc/bits/atomic.h: Likewise.
9842         * sysdeps/s390/bits/atomic.h: Likewise.
9843         * gmon/mcount.c: Adjust for new form of compare&exchange macros.
9844         * malloc/set-freeres.c: Likewise.
9845         * nscd/cache.c: Likewise.
9846         * stdlib/cxa_finalize.c: Likewise.
9847         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
9849 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
9851         * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
9852         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
9853         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9855         * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
9856         into high and low halves on n64.
9857         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9858         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9859         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9861 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
9863         * include/atomic.h (atomic_decrement_if_positive): Adjust for the
9864         correct atomic_compare_and_exchange_acq semantics.
9866 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
9868         * sysdeps/mips/ieee754.h: Remove excess #endif.
9870 2003-03-20  Roland McGrath  <roland@redhat.com>
9872         * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
9873         variable.  Remove superfluous memory clobber.
9875         * include/atomic.h: Syntax braino fix.
9877         * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
9878         in decimal.  Don't bail if niced at start.  Just check that nice call
9879         bumps the total at all.
9881 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
9883         * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
9884         including pc, gp, sp and fp, as long long.
9885         * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
9886         * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
9887         Add gp argument, and set gp in the jmpbuf to it.
9888         * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
9890 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
9892         * include/atomic.h: Define atomic_exchange and
9893         atomic_decrement_if_positive if not already defined.  Add some
9894         __builtin_expect.
9895         * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
9896         * sysdeps/x86_64/bits/atomic.h: Likewise.
9897         * sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
9898         * sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
9899         atomic_exchange, atomic_exchange_and_add, and
9900         atomic_decrement_if_positive
9902 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
9904         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
9905         with a single instruction.
9907         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
9908         properly for n64.
9909         (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
9910         type.
9911         (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
9912         Word before comparing with gotsym.  Take reloc_addr argument as
9913         void*.  Remove the code added for the compiler to drop any
9914         alignment assumptions.
9916 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
9918         * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
9919         * include/atomic.h: New file.
9920         * sysdeps/i386/i486/bits/atomic.h: New file.
9921         * sysdeps/x86_64/bits/atomic.h: New file.
9922         * sysdeps/s390/bits/atomic.h: New file.
9923         * sysdeps/sh/bits/atomic.h: New file.
9924         * sysdeps/ia64/bits/atomic.h: New file.
9925         * sysdeps/powerpc/bits/atomic.h: New file.
9926         * sysdeps/generic/bits/atomic.h: New file.
9927         * sysdeps/i386/i486/atomicity.h: Removed.
9928         * sysdeps/x86_64/atomicity.h: Removed.
9929         * sysdeps/s390/s390-32/atomicity.h: Removed.
9930         * sysdeps/s390/s390-64/atomicity.h: Removed.
9931         * sysdeps/ia64/atomicity.h: Removed.
9932         * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
9933         * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
9934         * elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
9935         use of macros from atomicity.h to new names and semantics.
9936         * gmon_mcount.c: Likewise.
9937         * malloc/set-freeres.c: Likewise.
9938         * nscd/cache.c: Likewise.
9939         * stdlib/cxa_finalize.c: Likewise.
9940         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
9942 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
9944         * sysdeps/mips/ieee754.h: New file, suitable to replace both
9945         ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
9946         mips-specific for now.
9948 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
9950         * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
9951         hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
9952         * stdlib/tst-strtod.c: Add test for the bug.
9954         * posix/tst-nice.c (do_test): Remove invalid of return value.
9955         Don't run test if initial level != 0.
9957 2003-03-19  Amos Waterland  <apw@us.ibm.com>
9959         * posix/tst-nice.c: New file.
9960         * posix/Makefile (tests): Add tst-nice.
9962 2003-03-18  Roland McGrath  <roland@redhat.com>
9964         * abilist: New directory of libfoo.abilist files maintained using
9965         scripts/merge-abilist.awk and "make update-abi" rules.
9966         * Makefile (distribute): Add abilist/*.abilist.
9967         * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
9968         Depend on check-abi.
9970         * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
9971         * configure: Regenerated.
9973         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
9975 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
9977         * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
9978         correctly.
9980 2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>
9982         * sysdeps/powerpc/powerpc64/memcpy.S: New file.
9984 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
9986         * Versions.def: Add GLIBC_2.3.3 for libpthread.
9988 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
9990         * sysdeps/generic/libc-start.c [!SHARED &&
9991         !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
9993 2003-03-17  Roland McGrath  <roland@redhat.com>
9995         * include/ctype.h: Revert last change.
9997 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
9999         * argp/tst-argp1.c: Use test-skeleton.c.
10000         * locale/tst-C-locale.c: Likewise.
10002 2003-03-17  Alexandre Oliva  <aoliva@redhat.com>
10004         * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
10005         * sysdeps/mips/mips64/n64/Implies: New file.
10006         * sysdeps/mips/mips64/n64/Makefile: New file.
10007         * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
10008         * sysdeps/mips/mips64/n32/Implies: New file.
10009         * sysdeps/mips/mips64/n32/Makefile: New file.
10010         * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
10011         * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
10012         * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
10013         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
10014         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
10015         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
10016         * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
10017         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
10018         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
10019         * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
10020         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
10021         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
10022         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
10023         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
10025         * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
10026         lib64 for mips64/n64 and lib32 for mips64/n32.
10027         (ldd_rewrite_script): Needed for all mips64 configurations.
10028         * sysdeps/unix/sysv/linux/configure: Rebuilt.
10029         * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
10030         * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
10032         * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
10033         well.
10035         * sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
10036         asm/unistd.h into asm-unistd.h.
10037         * sysdeps/unix/sysv/linux/mips/configure: Generated.
10038         * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
10039         of syscall list.
10040         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
10041         * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
10042         asm/unistd.h.
10044         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
10045         * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
10046         long type for registers on n32.
10048         * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
10049         3 ABIs.
10050         * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
10051         BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
10052         * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
10053         (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
10054         * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
10055         * sysdeps/unix/mips/brk.S: Likewise.
10056         * sysdeps/unix/mips/sysdep.S: Likewise.
10057         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
10058         * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
10059         * sysdeps/mips/sys/ucontext.h: Likewise.
10060         * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
10061         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
10062         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
10063         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10064         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
10065         * sysdeps/mips/mips64/setjmp.S: Likewise.
10066         * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
10067         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
10068         64-bit types.
10070 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
10072         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
10073         not at function level.
10074         * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
10076 2003-03-15  Roland McGrath  <roland@redhat.com>
10078         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
10079         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
10080         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
10081         * nis/nis_table.c (__create_ib_request): Likewise.
10083         * posix/fnmatch_loop.c: Add casts for signedness.
10084         * nss/nss_files/files-hosts.c: Likewise.
10085         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
10086         * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
10087         * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
10089         * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
10090         get errors into the log file.
10091         (libc_cv_broken_visibility_attribute): Likewise.
10092         (libc_cv_broken_alias_attribute): Likewise.
10093         (libc_cv_asm_weak_directive): Likewise.
10094         (libc_cv_need_minus_P): Likewise.
10095         (libc_cv_dot_text): Likewise.
10096         (libc_cv_asm_global_directive): Likewise.
10097         (libc_cv_asm_type_prefix): Likewise.
10098         * configure: Regenerated.
10100         * nscd/cache.c (cache_search): Give first arg type `request_type'.
10101         * nscd/nscd.h: Update decl.
10103         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
10104         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10105         * elf/dl-close.c (_dl_close): Likewise.
10106         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
10107         * io/fts.c (fts_build): Likewise.
10108         * elf/cache.c (add_to_cache): Likewise.
10109         * locale/programs/locarchive.c (show_archive_content): Likewise.
10111         * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
10113         * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
10114         happy.
10115         (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
10117 2003-03-15  Ulrich Drepper  <drepper@redhat.com>
10119         * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
10120         code for most parts.
10122 2003-03-15  Roland McGrath  <roland@redhat.com>
10124         * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
10125         * sysdeps/unix/sysv/linux/system.c: ... here.
10126         (FORK): Don't #define if already #define'd.
10127         * sysdeps/unix/sysv/linux/s390/system.c: File removed.
10128         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
10129         (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
10131         * dlfcn/tst-dlinfo.c: New file.
10132         * dlfcn/Makefile (tests): Add tst-dlinfo.
10133         ($(objpfx)tst-dlinfo): New target.
10135         * dlfcn/dlinfo.c: New file.
10136         * dlfcn/Makefile (libdl-routines): Add it.
10137         * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
10138         * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
10139         [__USE_GNU] (RTLD_DI_*): New enum constants.
10140         [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
10141         * elf/dl-load.c (cache_rpath): New inline function.
10142         (_dl_map_object): Use it.
10143         (_dl_rtld_di_serinfo): New function.
10144         * sysdeps/generic/ldsodefs.h: Declare it.
10145         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
10147         * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
10148         (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
10149         (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
10150         (__libc_start_main): Just call the generic one for most of the work.
10152         * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
10153         static function by that name instead of BP_SYM (__libc_start_main).
10154         [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
10155         [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
10156         [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
10158         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
10159         Use this macro for extra AT_* cases.
10160         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
10161         New macro, guts from ...
10162         (__aux_init_cache): ... here, function removed.
10163         (DL_PLATFORM_INIT): Don't define this.
10165         * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
10166         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
10168         * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
10170 2003-03-14  Roland McGrath  <roland@redhat.com>
10172         * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
10174 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
10176         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
10178         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10179         sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
10181 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
10183         * sysdeps/mips/fpu/bits/mathdef.h: New.
10184         (__NO_LONG_DOUBLE_MATH): Define for o32.
10186         * sysdeps/mips/sys/asm.h: Formatting changes.
10187         (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
10188         (CPADD): Define for all of them.
10189         (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
10190         SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
10191         NARGSAVE): Define per ABI spec.
10192         (END): Don't redefine.
10193         (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
10194         LONG_SRAV): Remove duplicate definitions.
10195         (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
10196         PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
10197         PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
10198         (PTR_LA): Define for all 3 ABIs.
10200         * sysdeps/mips/dl-machine.h: Include sys/asm.h.
10201         (elf_machine_matches_host): Prevent linking of o32 and n32
10202         together.
10203         (elf_machine_dynamic): Document assumption on $gp.
10204         (STRINGXP, STRINGXV, STRINGV_): New macros.
10205         (elf_machine_load_address): Use them to stringize PTR_LA and
10206         PTR_SUBU.
10207         (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
10208         ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
10209         (_dl_runtime_resolve): Adjust it for all 3 ABIs.
10210         (__dl_runtime_resolve): Cast the symtab initializer to the
10211         right type.
10212         (RTLD_START): Use it.  Adjust it for all 3 ABIs.
10213         (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
10214         Handle 64-bit R_MIPS_REL composite relocation and accept
10215         R_MIPS_64 relocations to shift addend size to 64 bits.
10216         Document assumption regarding local GOT entries.  Document
10217         backward-compatibility departing from the ABI behavior in
10218         applying relocations that reference section symbols, no longer
10219         used.  Support relocations to mis-aligned offsets.
10220         * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
10222         * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
10224         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
10225         (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
10226         * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
10227         restore_rt functions.  Use them.
10229         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
10230         .set mips2 on new abis.
10232 2003-03-13  Ulrich Drepper  <drepper@redhat.com>
10234         * posix/getconf.c: Recognize POSIX2_SYMLINKS.
10235         * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
10236         * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
10237         * sysdeps/posix/pathconf.c: Likewise.
10238         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
10239         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
10240         * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
10242         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
10243         words.
10245 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
10247         * include/gmp.h: Include/gmp-mparam.h.
10248         * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
10249         gmp-impl.h.
10251         * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
10252         ELF_MACHINE_NO_RELA is set.
10253         * elf/rtld.c (dl_main): No prelink support for REL-only.
10255         * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
10256         FLAG_MIPS64_LIBN64): Define.
10257         * elf/cache.c (print_entry): Handle mips64 n32 and n64.
10259         * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
10260         * sysdeps/mips/memset.S: Likewise.
10261         * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
10262         depending on the ABI.
10264         * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
10265         Don't .set mips2 on new abi.
10266         (compare_and_swap): Likewise.  Support 64-bit longs on n64.
10268         * stdlib/fpioconst.h: Include gmp.h with angle brackets.
10270 2003-03-13  Roland McGrath  <roland@redhat.com>
10272         * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
10273         found.  Reported by Alexandre Oliva <aoliva@redhat.com>.
10275 2003-03-13  Alexandre Oliva  <aoliva@redhat.com>
10277         * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
10278         literals long long.
10279         * stdlib/fpioconst.c: Likewise.
10280         * stdlib/strtod.c: Likewise.
10282         * sysdeps/mips/add_n.S: Use L macro for local labels.
10283         * sysdeps/mips/addmul_1.S: Likewise.
10284         * sysdeps/mips/lshift.S: Likewise.
10285         * sysdeps/mips/memcpy.S: Likewise.
10286         * sysdeps/mips/memset.S: Likewise.
10287         * sysdeps/mips/mul_1.S: Likewise.
10288         * sysdeps/mips/rshift.S: Likewise.
10289         * sysdeps/mips/sub_n.S: Likewise.
10290         * sysdeps/mips/submul_1.S: Likewise.
10291         * sysdeps/mips/mips64/add_n.S: Likewise.
10292         * sysdeps/mips/mips64/addmul_1.S: Likewise.
10293         * sysdeps/mips/mips64/lshift.S: Likewise.
10294         * sysdeps/mips/mips64/mul_1.S: Likewise.
10295         * sysdeps/mips/mips64/rshift.S: Likewise.
10296         * sysdeps/mips/mips64/sub_n.S: Likewise.
10297         * sysdeps/mips/mips64/submul_1.S: Likewise.
10298         * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
10299         conventions.  Define END as in sys/asm.h.
10300         * sysdeps/unix/mips/sysdep.S: Likewise.
10301         * sysdeps/unix/mips/wait.S: Likewise.
10302         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
10304         * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
10305         Cast shifted values that may be too narrow to mp_limb_t.
10306         * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
10307         Likewise.
10308         * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
10309         Likewise.
10310         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
10311         (__mpn_extract_long_double): Likewise.
10312         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
10313         (__mpn_construct_long_double): Likewise.
10314         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
10315         (__mpn_extract_long_double): Likewise.
10316         * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
10317         (__mpn_construct_long_double): Likewise.
10319 2003-03-13  Roland McGrath  <roland@redhat.com>
10321         * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
10322         entries in the map file match too.
10324 2003-03-13  Guido Guenther  <agx@sigxcpu.org>
10326         * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
10327         label .Lthread_start since current binutils don't allow branches
10328         to globally visible symbols.
10330 2003-03-13  Jakub Jelinek  <jakub@redhat.com>
10332         * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
10333         ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
10334         ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
10335         (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it.  Make syscall arguments
10336         clobbered by the syscall.
10337         (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
10338         ASM_ARGS_6): Change constraints from r to index of corresponding
10339         output register.
10340         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
10341         ptid and ctid to match kernel.
10342         * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
10344 2003-03-12  Steven Munroe  <sjmunroe@us.ibm.com>
10346         * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
10347         AC_DEFINE(PI_STATIC_AND_HIDDEN).  Not supported for PowerPC64.
10348         * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
10350 2003-03-11  Roland McGrath  <roland@redhat.com>
10352         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10353         Check SYM_MAP rather than SYM as definedness check.
10354         Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
10355         Don't handle R_PPC64_REL24 reloc.
10356         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
10358         * sysdeps/powerpc/powerpc64/dl-machine.h
10359         [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
10360         block, so we cover all the TPREL16* flavors without 6 ||s.
10361         [USE_TLS] (elf_machine_tprel): New function.
10362         (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
10363         and handle TPREL16 relocs too.  Return rather than break for DTPREL64.
10364         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
10366 2003-03-11  Ralf Baechle  <ralf@linux-mips.org>
10368         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
10369         instead of jalr to invoke subroutine so restoring the $gp register
10370         will work properly.
10372 2003-03-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10374         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
10375         to __NR_pread if not defined.
10376         (__NR_pwrite64): Define to __NR_pwrite if not defined.
10378 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
10380         * sysdeps/unix/sysv/linux/ia64/system.c: New file.
10381         * sysdeps/unix/sysv/linux/kernel-features.h
10382         (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
10383         kernel >= 2.5.64.
10385 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
10387         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
10388         allocate space even for the trailing '/'.
10389         Reported by John Reiser <jreiser@BitWagon.com>.
10391         * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
10392         ASM_CLOBBERS_6): Define.
10393         (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
10394         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
10395         to match IA-32 order.
10396         * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
10398 2003-03-10  Steven Munroe  <sjmunroe@us.ibm.com>
10400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
10401         Copy extra params for NPTL to registers used in clone syscall.
10403 2003-03-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10405         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
10406         call names for pread and pwrite.
10408 2003-03-10  Roland McGrath  <roland@redhat.com>
10410         * dlfcn/Makefile (libdl-routines): Add dladdr1.
10411         * dlfcn/dladdr1.c: New file.
10412         * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
10413         [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
10414         * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
10415         a const ElfNN_Sym ** to fill in.
10416         * include/dlfcn.h: Update decl.  Include <link.h>.
10417         * dlfcn/dladdr.c (dladdr): Update caller.
10418         * malloc/mtrace.c (tr_where): Likewise.
10419         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10420         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10421         * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
10422         * Versions.def (libdl): Define GLIBC_2.3.3 set.
10424         * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
10425         assembler command.
10426         * sysdeps/unix/Makefile (compile-syscall): New variable.
10427         Pass -g0 to compiler for assembling syscall stubs from stdin.
10429         * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
10430         (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
10431         Define these to do nothing.
10433         * configure.in: New check for -g on .S files.
10434         * configure: Regenerated.
10435         * config.make.in (have-cpp-asm-debuginfo): New variable.
10436         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
10437         * Makeconfig (ASFLAGS): New variable, if undefined and
10438         $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
10439         * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
10441 2003-03-09  Roland McGrath  <roland@redhat.com>
10443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
10444         used by NPTL on new kernels.  From Paul Mackerras <paulus@samba.org>.
10446 2003-03-09  Ulrich Drepper  <drepper@redhat.com>
10448         * po/fi.po: Update from translation team.
10449         * po/ca.po: Likewise.
10450         * po/da.po: Likewise.
10452 2003-03-08  Ulrich Drepper  <drepper@redhat.com>
10454         * rt/tst-aio7.c (do_test): Change BYTES into a #define.
10456 2003-03-07  Ulrich Drepper  <drepper@redhat.com>
10458         * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
10460         * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
10462 2003-03-07  Roland McGrath  <roland@redhat.com>
10464         * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
10465         * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
10467 2003-03-04  Guido Guenther  <agx@sigxcpu.org>
10469         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
10470         stubs, we have INLINE_SYSCALL.
10471         * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
10472         MAP_NONBLOCK.
10474 2003-03-06  Roland McGrath  <roland@redhat.com>
10476         * rt/tst-aio7.c (do_test): Revert last change.  Instead, give CB1
10477         permanent extent and add a comment about testing its implicit teardown.
10479 2003-03-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10481         * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
10483 2003-03-05  Ulrich Drepper  <drepper@redhat.com>
10485         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
10486         reversed __builtin_expect expectation.
10488 2003-03-05  Roland McGrath  <roland@redhat.com>
10490         * stdio-common/sscanf.c: Use prototype defn with ... syntax.
10491         * libio/swscanf.c: Likewise.
10492         * libio/swprintf.c: Likewise.
10494 2003-03-04  Roland McGrath  <roland@redhat.com>
10496         * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
10497         (elf_machine_rela): Always use RESOLVE_MAP, needed for
10498         R_PPC64_JMP_SLOT as well as TLS cases.
10499         (BIT_INSERT): Move parenthesis where it ought to have been.
10500         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10502         * posix/confstr.c (confstr): Correct STRING_LEN values for
10503         _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
10504         break.  Reported by Alexandre Julliard <julliard@winehq.com>.
10506 2003-03-04  Jakub Jelinek  <jakub@redhat.com>
10508         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
10510 2003-03-04  Ulrich Drepper  <drepper@redhat.com>
10512         * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
10513         clone parameters.
10515         * po/sv.po: Update from translation team.
10517 2003-03-04  Andreas Jaeger  <aj@suse.de>
10518             Ulrich Drepper  <drepper@redhat.com>
10520         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
10522 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
10524         * sysdeps/generic/dl-sysdep.h: Add double include protection.
10526         * po/tr.po: Update from translation team.
10528         * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
10529         are holes between the segments.  Only call mprotect to set
10530         proection to PROT_NONE if there are some.
10532         * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
10533         Update comment.
10535         * include/sched.h (__clone2): Use ... instead of adding all the
10536         new parameters.
10538 2003-03-03  Roland McGrath  <roland@redhat.com>
10540         * elf/dl-load.c (struct filebuf): Fix typo in last change.
10542         * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
10543         PI_STATIC_AND_HIDDEN.
10545 2003-03-03  Ian Wienand  <ianw@gelato.unsw.edu.au>
10547         * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
10548         flags.
10549         * include/sched.h: Update clone2 prototype.
10551 2003-03-03  Andreas Jaeger  <aj@suse.de>
10553         * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
10554         (llrint): Use it to correct return type.
10555         (lrint): Likewise.
10556         (lround): Likewise.
10557         (llround): Likewise.
10559 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
10561         * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
10562         byte filebuf size.
10564         * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
10565         if ccs parameter isn't valid.  Reported by Andreas Schwab.
10567 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10569         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
10570         for system call numbers > 255.
10571         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
10572         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
10573         INTERNAL_SYSCALL): Likewise.
10574         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
10575         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
10576         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
10577         INTERNAL_SYSCALL): Likewise.
10579 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10581         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
10582         array if it is the initial dtv.
10584 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
10586         * po/es.po: Update from translation team.
10587         * po/fr.po: Likewise.
10588         * po/gl.po: Likewise.
10589         * po/sk.po: Likewise.
10590         * po/sv.po: Likewise.
10592         * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
10593         * misc/sys/mman.h: Add prototype for remap_file_pages.
10594         * sysdeps/generic/remap_file_pages.c: New file.
10595         * misc/Makefile (routines): Add remap_file_pages.
10596         * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
10598         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
10599         and MAP_NONBLOCK.
10600         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10601         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
10602         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
10603         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
10604         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10605         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
10606         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
10607         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
10609 2003-03-03  Roland McGrath  <roland@redhat.com>
10611         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
10612         * sysdeps/ia64/dl-machine.h: Likewise.
10613         * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
10614         argument type.
10615         * sysdeps/ia64/dl-lookupcfg.h: Update decl.
10617         * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
10618         * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
10619         * locale/Versions (libc: GLIBC_2.3): Move those to ...
10620         * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
10621         * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
10622         * Versions.def (libc): Add GLIBC_2.3.3 set.
10624         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
10625         * sysdeps/ia64/dl-machine.h: Update decl.
10627 2003-03-03  Andreas Jaeger  <aj@suse.de>
10629         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
10631 2003-03-02  Roland McGrath  <roland@redhat.com>
10633         * scripts/abilist.awk: Reject data items with apparent 0 size.
10635         * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
10636         after foo.* as if it were a duplicate.
10638         * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
10640 2003-03-02  Ulrich Drepper  <drepper@redhat.com>
10642         * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
10644         * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
10645         * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
10646         if not already defined.  Use SYSDEP_GETRES to allow other files to
10647         provide alternative implementations.
10648         * sysdeps/unix/sysv/linux/clock_getres.c: New file
10649         * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
10650         if not already defined.  Use SYSDEP_GETTIME to allow other files to
10651         provide alternative implementations.
10652         * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
10653         * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
10654         if not already defined.  Use SYSDEP_GETTIME to allow other files to
10655         provide alternative implementations.
10656         * sysdeps/unix/sysv/linux/clock_settime.c: New file.
10657         * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
10658         other files to provide alternative implementations.  Rearrange
10659         tests for invalid parameters.
10660         * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
10661         * sysdeps/unix/sysv/linux/sysconf.c: New file.
10662         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10663         __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
10664         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
10665         _POSIX_MONOTONIC_CLOCK.
10667 2003-03-02  Roland McGrath  <roland@redhat.com>
10669         * scripts/merge-abilist.awk: More checks for bogus input.
10670         Uniquify duplicate config names.
10672         * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
10674         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
10675         from dl_reloc_overflow, make global.
10676         (__process_machine_rela): Update callers.
10677         * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
10678         Add attribute_hidden to __process_machine_rela decl.
10679         (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
10681         * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
10682         variable.
10684         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
10685         Don't use weak_extern for dl_rtld_map.  Instead check only if [SHARED].
10686         (elf_machine_rela): Clean up.
10688         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
10690         PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
10691         * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
10692         * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
10693         * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
10694         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
10695         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
10696         new relocs for TLS.
10698         * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
10699         macros out of [SHARED].
10700         (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
10702         * elf/elf.h: Define R_PPC_* relocs for TLS support.
10703         Clean up R_PPC64_* macro definition comments.
10705         * configure.in: In "running configure fragment for" message,
10706         omit $srcdir from the name if we prepended it.
10707         * configure: Regenerated.
10709         * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
10710         From Jakub Jelinek <jakub@redhat.com>.
10712         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
10713         which duplicated the O_DIRECT defn.
10715 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
10717         * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
10718         random functions.
10720 2003-03-01  Andreas Schwab  <schwab@suse.de>
10722         * resolv/Makefile (tests): Don't depend on
10723         $(objpfx)mtrace-tst-leaks when cross compiling.
10725         * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
10726         __libc_stack_end through GOT since it is a global symbol.
10728 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
10730         * argp/argp.h: Fix a typo.
10731         Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
10733         * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
10735 2003-02-27  Pat Rankin  <rankin@pactechdata.com>
10737         * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
10738         char *.
10739         (get_subexp): Likewise.
10741 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
10743         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
10745 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
10747         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
10749 2003-02-27  Roland McGrath  <roland@redhat.com>
10751         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
10752         special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
10753         repeat it and avoids the test for the common case.
10754         Clean up and fix calculations for TLS relocs.
10756         * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
10757         * sysdeps/powerpc/dl-tls.h: ... here.
10758         (TLS_TP_OFFSET): New macro.
10760         * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
10762 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
10764         * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
10765         code generation changes in recent gcc.
10767 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
10769         * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
10770         Rename argument to avoid symbol conflict.
10772         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
10773         [__USE_GNU] (O_DIRECT): New macro.
10775 2003-02-24  David Mosberger  <davidm@hpl.hp.com>
10777         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
10778         unwind info.
10780 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
10782         * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
10783         initializer anymore now that res_thread_freeres is more careful.
10785         * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
10786         except the PKTINFO.  Reset interface in PKTINFO.
10787         Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
10789 2003-02-25  Steven Munroe  <sjmunroe@us.ibm.com>
10791         * elf/elf.h: Add new R_PPC64_* relocs for TLS.
10792         * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
10793         Define.
10794         * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
10795         * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
10796         * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
10797         * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
10799         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
10800         Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
10802 2003-02-25  Andreas Jaeger  <aj@suse.de>
10804         * manual/memory.texi (Malloc Tunable Parameters): Clarify
10805         behaviour of M_MMAP_THRESHOLD.
10807 2003-02-25  Roland McGrath  <roland@redhat.com>
10809         * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
10810         zero, inidicating _res was not initialized yet.
10812 2003-02-24  Ulrich Drepper  <drepper@redhat.com>
10814         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
10815         test.
10817 2003-02-24  Roland McGrath  <roland@redhat.com>
10819         * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
10821 2003-02-23  Roland McGrath  <roland@redhat.com>
10823         * sysdeps/posix/pause.c: New file.
10824         * sysdeps/unix/common/pause.c: File removed.
10826 2003-02-23  Ulrich Drepper  <drepper@redhat.com>
10828         * sysdeps/generic/bits/confname.h: Remove #ifs.
10830         * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
10831         * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
10833         * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
10834         element to -1.
10836 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
10838         * sysdeps/generic/dl-sysdep.c: Avoid warning.
10840 2003-02-22  Roland McGrath  <roland@redhat.com>
10842         * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
10843         * resolv/Makefile (tests): Add tst-leaks.
10844         ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
10845         (tst-leaks-ENV): New variable.
10846         ($(objpfx)mtrace-tst-leaks): New target.
10847         (tests): Depend on it.
10849         * include/libc-internal.h: Declare __libc_thread_freeres.
10851         * Makerules: Fix last change to use $($(subdir)-version) when set.
10853         * Makerules (install-lib-nosubdir): Depend on installed
10854         libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
10855         regardless of the libfoo.so target's dependencies.
10857         * MakeTAGS (sub-make-vars): New variable, includes generating=t.
10858         Use that in $(MAKE) calls.
10860 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
10862         * catgets/gencat.c (read_input_file): Collision between
10863         auto-assigned numbers and user-defined nubmers is not fatal.
10864         Handle it.
10865         Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
10866         * catgets/Makefile: Add rules to run test2.msg test.
10867         * catgets/test2.msg: New file.
10869         * catgets/gencat.c (main): Return 1 if messages have been printed.
10871         * iconv/iconv_prog.c (main): Unify messages.
10873         * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
10874         when shifting retval.
10875         * stdlib/tst-strtod.c (main): Add strtold test case.
10876         Reported by Fred J. Tydeman <tydeman@tybor.com>.
10878 2003-02-21  Roland McGrath  <roland@redhat.com>
10880         * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
10881         * sunrpc/rpc_thread.c: Likewise for text_set_element use.
10882         (__rpc_thread_destroy): Add it to __libc_subfreeres too.
10884         * include/resolv.h: Add libc_hidden_proto for __res_nclose.
10885         * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
10886         (res_thread_freeres): New function, on __libc_thread_subfreeres and
10887         __libc_subfreeres.
10889         * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
10890         * malloc/thread-freeres.c: New file.
10891         * malloc/Makefile (aux): Add it.
10892         * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
10893         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
10894         "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
10896         * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
10897         * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
10899 2003-02-21  Roland McGrath  <roland@frob.com>
10901         * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
10903         * iconvdata/Makefile (tests): Add bug-iconv3 only if
10904         [$(have-thread-library) = yes].
10906 2003-02-21  Ulrich Drepper  <drepper@redhat.com>
10908         * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
10910         * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
10911         not chechk for errors (unless testing for 32bit variant).
10912         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
10913         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
10914         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
10916 2003-02-21  Jakub Jelinek  <jakub@redhat.com>
10918         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
10919         Check for signed overflow, not unsigned.
10921         * sysdeps/sparc/sparc64/elf/configure.in: New file.
10922         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
10923         Use -fcall-used-g6, not -fcall-used-g7.
10925 2003-02-21  Andreas Jaeger  <aj@suse.de>
10927         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
10928         mode.
10930         * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
10931         clear whole mxcsr but only exceptions.
10933 2003-02-21  Roland McGrath  <roland@redhat.com>
10935         * Makerules: Filter $(install-lib-ldscripts) out of list of targets
10936         for libfoo.so that need $(make-link) rules.
10938 2003-02-21  Roland McGrath  <roland@frob.com>
10940         * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
10941         to match existing struct stat layout in mig protocols.
10943 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
10945         * version.h (VERSION): Bump to 2.3.2.
10947         * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
10948         tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
10949         and dl-sysdep.h.
10950         * sysdeps/generic/Dist: Add sysdep-cancel.h.
10951         * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
10952         * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
10953         * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
10954         * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
10955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
10956         ucontext_i.h.
10957         * Makefile (distribute): Add include/stubs-prologue.h,
10958         include/gnu/stubs.h, scripts/merge-abilist.awk, and
10959         scripts/extract-abilist.awk.
10961 2003-02-20  Roland McGrath  <roland@redhat.com>
10963         * math/Makefile (distribute): Don't add generated files.
10965 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
10967         * math/Makefile: Rearrange variable definitions slightly to get
10968         definition in the right order.
10970 2003-02-20  Roland McGrath  <roland@redhat.com>
10972         * Makerules: Clean up conditional around include of tls.make.
10973         * Make-dist: Export generating=t to prevent using that.
10974         (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
10976 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
10978         * inet/rcmd.c (rresvport_af): Avoid using invliad values.  Wrap
10979         around in search if port IPPORT_RESERVED/2 has been test.
10981 2003-02-20  Paolo Bonzini  <bonzini@gnu.org>
10983         * posix/regcomp.c: Remove inclusions.
10984         * posix/regexec.c: Likewise.
10985         * posix/regex_internal.c: Likewise.
10986         * posix/regex_internal.h: Add inclusions here.
10987         * posix/regex.c: Only include sys/types.h before regex.h.  Include
10988         regex_internal.h here.  Include regex_internal.c before regcomp.c
10989         and regexec.c (might expose more opportunities to the C compiler).
10991         * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
10993         * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
10994         [!_LIBC] (__wcrtomb): New definition.
10995         [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
10996         HAVE_LOCALE_H as well.
10998 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
11000         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
11001         patch to check for system call errors.
11003 2002-07-24  Philip Blundell  <philb@gnu.org>
11005         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
11006         on unknown systems.
11008 2003-02-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11010         * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
11011         * sysdeps/unix/sysv/linux/kernel-features.h
11012         (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
11013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
11014         if possible.
11015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
11016         interprocedure branches.
11017         * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
11018         * sysdeps/powerpc/nofpu/Dist: ...here.
11019         * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
11020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
11021         * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
11022         * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
11023         * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
11025 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
11027         * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
11029 2003-02-20  Philip Blundell  <philb@gnu.org>
11031         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
11032         missing arguments to INTERNAL_SYSCALL_ERROR_P and
11033         INTERNAL_SYSCALL_ERRNO.
11035 2003-02-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11037         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
11038         for __ASSUME_32BITUIDS.
11040 2003-02-20  Andreas Schwab  <schwab@suse.de>
11042         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
11043         POSIX_MADV_* constants.
11045 2003-02-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11047         * sysdeps/unix/sysv/linux/sh/pread.c: New file.
11048         * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
11049         * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
11050         * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
11052 2003-02-19  Jiro Sekiba  <jir@yamato.ibm.com>
11054         * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
11056 2003-02-16  Roland McGrath  <roland@redhat.com>
11058         * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
11060 2003-02-19  Ulrich Drepper  <drepper@redhat.com>
11062         * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
11063         decimal input digits.
11064         * stdlib/tst-strtod.c (main): Add test for strtof bug.
11066 2003-02-18  Ulrich Drepper  <drepper@redhat.com>
11068         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
11069         invalid file descriptors and missing access permissions.
11071 2003-02-17  Ulrich Drepper  <drepper@redhat.com>
11073         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
11074         been found.
11076         * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
11077         TTY_NAME_MAX and not the _POSIX_* minimal value macros.
11078         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
11079         and LOGIN_NAME_MAX.
11081 2003-02-17  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
11082             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11084         * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
11085         * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
11086         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
11087         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11088         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
11090 2003-02-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11092         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
11093         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
11094         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
11095         * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
11096         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
11097         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
11099         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
11100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
11101         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
11102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
11104         * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
11105         * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
11106         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
11107         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
11109 2003-02-14  Thorsten Kukuk  <kukuk@suse.de>
11111         * nss/getent.c (print_hosts): Print all IP addresses of one host.
11113 2003-02-15  Roland McGrath  <roland@frob.com>
11115         * sysdeps/mach/hurd/tls.h: New file.
11116         * sysdeps/mach/hurd/i386/tls.h: New file.
11118         * mach/errsystems.awk: Include <errno.h> in generated output.
11120         * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
11121         use target mach-before-compile instead of generated.
11122         (mach-before-compile): New target.
11123         * Makerules: Disable use of tls.make if $(generating) is set.
11124         * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
11125         * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
11126         mach-shortcuts.h so mach/ generation happens before hurd/.
11128 2003-02-14  Ulrich Drepper  <drepper@redhat.com>
11130         * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
11131         of demorm correctly if low word is zero.
11132         Reported by Fred J. Tydeman <tydeman@tybor.com>.
11133         * math/libm-test.inc (nextafter_test): New test, but disabled due
11134         to gcc bug.
11136         * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
11137         counter and only call __exit_thread if this is not the last thread.
11139 2003-02-13  Jakub Jelinek  <jakub@redhat.com>
11141         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
11142         subtracting map->l_tls_offset.
11144 2003-02-12  Ulrich Drepper  <drepper@redhat.com>
11146         * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
11147         _CS_GNU_LIBPTHREAD_VERSION.
11148         * posix/conststr.c: Handle these new values.
11149         * posix/getconf.c: Likewise.
11151         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
11152         masking of version index.
11153         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
11155 2003-02-11  Ulrich Drepper  <drepper@redhat.com>
11157         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
11158         correctly.  Reported by Thorsten Kukuk.
11160 2003-02-10  Ulrich Drepper  <drepper@redhat.com>
11162         * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
11163         _BSD_SOURCE to compiler.
11164         * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
11165         Patches by Alan Modra.
11167 2003-02-08  Ulrich Drepper  <drepper@redhat.com>
11169         * io/ftwtest.c: Get current working directory before and after the
11170         nftw call and make sure they match.
11172 2003-02-08  Jim Meyering  <jim@meyering.net>
11174         * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
11175         the current directory, not just when DIR contains a slash.
11176         Reported by Manoj Srivastava.
11178 2003-02-07  Jim Meyering  <jim@meyering.net>
11180         * io/ftw.c: Add autoconf-recommended block of alloca-related code.
11181         Include autoconf-recommended block of dirent/NAMELEN-related
11182         definitions and includes.  Use NAMELEN throughout, rather than
11183         _D_EXACT_NAMLEN.
11184         [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
11185         [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
11186         (stpcpy): Declare, if necessary.
11187         (mempcpy): Define, if necessary.
11188         [!_LIBC] (__stpcpy, __mempcpy): Define.
11189         [!_LIBC] (LXSTAT, XSTAT): Define.
11190         (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
11191         (find_object): Don't use c99-style struct initializer.
11192         Tweak wording in a couple comments.
11194 2003-02-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11196         * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
11197         for SH.
11198         * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
11199         after the trapa instruction.
11200         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
11201         parameters.
11202         * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
11203         (NEED_SYSCALL_INST_PAD): Define.
11204         * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
11205         avoid to use definition for the kernel.
11206         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
11207         Save and restore the frame pointer.
11208         (SYSCALL_INST_PAD): Define.
11209         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
11210         (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
11211         after trapa instruction.
11212         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11213         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
11215 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
11217         * resolv/res_libc.c (_res): Ensure _res is not common symbol,
11218         so that it can have aliases.
11219         * inet/herrno.c (h_errno): Put it into .bss not .data section.
11221 2003-02-07  Ulrich Drepper  <drepper@redhat.com>
11223         * elf/dl-runtime.c (fixup): Correct typo in version index computation.
11224         (profile_fixup): Likewise.
11225         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
11227 2002-11-24  Robert Love  <rml@tech9.net>
11229         * posix/sched.h: Second parameter of sched_setaffinity and
11230         sched_getaffinity is `unsigned int', not `unsigned long'.
11231         * sysdeps/generic/sched_setaffinity.c: Likewise.
11232         * sysdeps/generic/sched_getaffinity.c: Likewise.
11234 2003-02-05  Ulrich Drepper  <drepper@redhat.com>
11236         * debug/catchsegv.sh: Fix typo in error messsage.
11237         Reported by John Levon <levon@movementarian.org>.
11239         * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
11240         * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
11241         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
11242         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11244         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11245         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11247         * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
11248         Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
11250 2003-02-05  Jim Meyering  <jim@meyering.net>
11252         Fix a heap-corrupting bug.
11253         * io/ftw.c: Include <limits.h>.
11254         (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
11255         (process_entry): Allocate enough space to hold the resulting
11256         file name.  Don't presume that 2*dirbufsize is enough.
11257         (ftw_startup): Always use PATH_MAX to compute buffer size, now that
11258         it is guaranteed to be defined.
11260 2003-02-04  Ulrich Drepper  <drepper@redhat.com>
11262         * iconvdata/Makefile: Add rules to build and run bug-iconv3.
11263         * iconvdata/bug-iconv3.c: New file.
11265 2003-02-04  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11267         * sysdeps/unix/sysv/linux/s390/system.c: New file.
11269 2003-02-03  Jakub Jelinek  <jakub@redhat.com>
11271         * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
11272         check.
11273         * config.h.in (BROKEN_SPARC_WDISP22): Add.
11275 2003-02-03  Ulrich Drepper  <drepper@redhat.com>
11277         * sysdeps/i386/i686/memmove.S: New file.
11279 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
11281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
11282         Include kernel-features.h
11283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
11284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
11285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
11286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
11288 2003-02-02  Jakub Jelinek  <jakub@redhat.com>
11290         * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
11292 2003-01-25  Jim Meyering  <jim@meyering.net>
11294         * io/ftw.c (object_compare): Compare inode numbers before device
11295         numbers, since the former are much more likely to differ.
11297 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
11299         * time/tzfile.c (__tzfile_compute): Change return value type to
11300         void.  Adjust return statements.
11301         * include/time.h (__tzfile_compute): Adjust prototype.
11303 2003-02-01  Jim Meyering  <jim@meyering.net>
11305         * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
11306         always returns 1.
11308 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
11310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
11311         [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
11313 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
11315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11316         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
11317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11318         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
11319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11320         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
11321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11322         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
11324 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
11326         * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
11327         back to 2.4.19 for powerpc64.
11328         * sysdeps/unix/sysv/linux/kernel-features.h
11329         (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
11330         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
11332 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
11334         * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
11335         platforms with strange alignment requirements on wchar_t.
11337 2003-01-31  Andreas Schwab  <schwab@suse.de>
11339         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
11340         aliases, already added by make-syscalls.sh.
11341         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11342         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11343         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11344         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11345         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11346         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11347         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11348         * sysdeps/unix/inet/syscalls.list: Likewise.
11349         * sysdeps/unix/syscalls.list: Likewise.
11351 2003-01-31  Andreas Schwab  <schwab@suse.de>
11353         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
11354         any more.
11356 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
11358         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
11359         not l to load tls from stack.
11361 2003-01-30  Roland McGrath  <roland@redhat.com>
11363         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
11364         null argument before all else.
11365         Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
11367 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
11369         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
11370         Move to RESOLVE protected part of the header.
11371         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
11372         Likewise.
11374 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
11376         * stdio-common/Makefile (tests): Add bug15.
11377         (bug15-ENV): Define.
11378         * stdio-common/bug15.c: New file.
11380 2002-10-07  Wolfram Gloger  <wg@malloc.de>
11382         * malloc/malloc.c (sYSMALLOc): Only check for breakage due
11383         to foreign sbrk()'s if arena is contiguous.  Bug report from
11384         Bruno Haible <bruno@clisp.org>.
11386 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
11388         * sysdeps/s390/libc-tls.c: Include stdlib.h.
11390 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
11392         * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
11393         ps.__count.
11395 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
11397         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
11398         restoring of %r6.
11399         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
11400         64-bit load.
11401         Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
11403 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
11405         * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
11406         (allocate_static_tls): ...here.  Add __attribute_noinline__.
11407         Don't return on failure.
11408         (_dl_reloc_bad_type): Add __attribute_noinline__.
11409         * elf/do-rel.h (elf_dynamic_do_rel): Add
11410         __attribute__((always_inline)).
11411         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
11412         elf_machine_rel_relative, elf_machine_rela_relative,
11413         elf_machine_lazy_rel): Add prototypes with
11414         __attribute__((always_inline)).
11416 2003-01-29  David Mosberger  <davidm@hpl.hp.com>
11418         * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
11420 2003-01-29  Roland McGrath  <roland@redhat.com>
11422         * configure.in: Barf if configured in $srcdir.
11424 2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>
11426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
11427         (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
11429 2003-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11431         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
11432         clone parameters to match the order used on ia32.
11433         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
11435 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11437         * elf/elf.h: Add new s390 relocs.
11438         * elf/tls-macros.h: Add s390 versions.
11439         * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
11440         * sysdeps/s390/dl-tls.h: New file.
11441         * sysdeps/s390/libc-tls.c: New file.
11442         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
11443         relocs for class PLT.
11444         (elf_machine_rela): Handle TLS relocs.
11445         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11446         * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
11447         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
11448         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
11449         CLONE_CHILD_*TID flags.
11450         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
11451         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
11452         bit offset.
11453         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
11454         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11455         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
11456         Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
11457         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
11458         Likewise.
11459         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
11460         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
11461         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
11462         variants.
11463         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
11464         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
11465         direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
11466         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
11467         variants.
11469 2003-01-28  Ulrich Drepper  <drepper@redhat.com>
11471         * sysdeps/unix/common/pause.c (do_pause): New function.  Split
11472         from __libc_pause.  Implement using sigsuspend.
11473         (__libc_pause): Call do_pause to do the real work.
11475         * sysdeps/posix/sigpause.c (do_sigpause): Check range of
11476         sig_or_mask parameter is is_sig != 0.
11478 2003-01-21  Philip Blundell  <philb@gnu.org>
11480         * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
11482 2003-01-27  Steven Munroe  <sjmunroe@us.ibm.com>
11484         * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
11486 2003-01-27  Ulrich Drepper  <drepper@redhat.com>
11488         * stdio-common/bug14.c: Use official name for the locale.
11490         * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
11491         instead of __libc_cleanup_region_start and _IO_cleanup_region_end
11492         instead of __libc_cleanup_region_end.
11494         * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
11495         as first parameter to __libc_cleanup_region_start.
11497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
11498         (__fe_nomask_env): Use __prctl not prctl.
11499         * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
11500         prctl syscall.
11502         * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
11504         * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
11506         * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
11507         wrap-around in test.
11509 2003-01-26  Andreas Schwab  <schwab@suse.de>
11511         * sysdeps/wordsize-32/divdi3.c: Export the functions only as
11512         compatibility symbols.  Remove INTDEF for __divdi3.
11513         * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
11514         * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
11515         * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
11516         define.
11517         * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
11519 2003-01-24  Jakub Jelinek  <jakub@redhat.com>
11521         * elf/tls-macros.h: Add SPARC 32-bit definitions.
11522         * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
11523         * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
11524         for the first half of the header.  Include tls.h.
11525         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
11526         relocs too.
11527         (elf_machine_rela): Handle TLS relocs.
11528         * sysdeps/sparc/dl-tls.h: New file.
11530         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
11531         support.
11533         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
11534         * sysdeps/sparc/sparc32/memchr.S: Likewise.
11535         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
11536         * sysdeps/sparc/sparc32/strcat.S: Likewise.
11537         * sysdeps/sparc/sparc32/strchr.S: Likewise.
11538         * sysdeps/sparc/sparc32/strcmp.S: Likewise.
11539         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
11540         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
11541         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11542         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11543         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
11544         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
11545         * sysdeps/sparc/sparc64/strcat.S: Likewise.
11546         * sysdeps/sparc/sparc64/strchr.S: Likewise.
11547         * sysdeps/sparc/sparc64/strcmp.S: Likewise.
11548         * sysdeps/sparc/sparc64/strcpy.S: Likewise.
11549         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
11550         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
11551         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11552         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11554 2003-01-24  Andreas Schwab  <schwab@suse.de>
11556         * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
11557         elements, and process them backwards.
11558         * elf/Makefile ($(objpfx)tst-array4): New target.
11559         ($(objpfx)tst-array4.out): Likewise.
11560         (tests) [$(have-initfini-array) = yes]: Add tst-array4.
11561         * elf/tst-array4.c: New file.
11562         * elf/tst-array4.exp: Likewise.
11564 2003-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
11566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
11568 2003-01-27  Guido Guenther  <agx@sigxcpu.org>
11570         * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
11571         * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
11572         cancellation handling and handle both __NR_pread64 and __NR_pread.
11573         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11574         * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
11575         cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
11576         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11577         * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
11578         case, use register names consistently.
11580 2003-01-27  Wolfram Gloger  <wg@malloc.de>
11582         * malloc/hooks.c (mem2chunk_check): Check alignment of mem
11583         pointer, not of the computed chunk.  Bug report from Carlos
11584         O'Donell <carlos@baldric.uwo.ca>.
11586 2003-01-25  Andreas Schwab  <schwab@suse.de>
11588         * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
11589         addressing to save GOT entries.
11591 2003-01-21  Jakub Jelinek  <jakub@redhat.com>
11593         * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
11594         inline_syscall1, inline_syscall2, inline_syscall3,
11595         inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
11596         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
11597         __attribute__((unused)) to ChEcK.
11599 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11601         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
11602         Fix inline assembler constraints.
11603         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
11604         Likewise.
11606         * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
11607         -fPIC.
11609 2003-01-20  Segher Boessenkool  <segher@koffie.nl>
11611         * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
11612         compute the cosine, not the sine, even if x > 0.8.
11614 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
11616         * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
11617         _nss_nis_setspent.  Work around the different prototypes.
11618         * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
11619         internal_nis_endrpcent.
11620         (internal_nis_endrpcent): Change return type to void.  Change callers.
11621         * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
11622         _nss_nis_setpwent.  Work around the different prototypes.
11623         * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
11624         of the function to...
11625         (internal_nis_endprotoent): ... here.  New function.
11626         (internal_nis_setprotoent): Use internal_nis_endprotoent.
11627         * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
11628         _nss_nis_setnetent.  Work around the different prototypes.
11629         * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
11630         of the function to...
11631         (internal_nis_endnetgrent): ... here.  New function.
11632         (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
11634 2003-01-19  Jim Meyering  <jim@meyering.net>
11636         * time/strftime.c: (widen): Merge nearly-identical definitions.
11637         (nl_get_alt_digit) [! defined my_strftime]: Define.
11638         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
11639         _nl_get_alt_digit and _nl_get_walt_digit.
11641 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
11643         * time/strftime.c (my_strftime): Handle very large width
11644         specifications for numeric values correctly.  Improve checks for
11645         overflow.
11646         * time/Makefile (tests): Add tst-strftime.
11647         * time/tst-strftime.c: New file.
11649 2003-01-18  Ulrich Drepper  <drepper@redhat.com>
11651         * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
11652         _nss_nis_sethostent.  Work around the different prototypes.
11653         * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
11654         _nss_nis_setgrent.  Work around the different prototypes.
11655         * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
11656         function.  Split out from _nss_nis_endetherent.
11657         (internal_nis_setetherent): Use internal_nis_endetherent instead of
11658         duplicating the code.
11659         * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
11660         of _nss_nis_setaliasent.
11661         * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
11662         internal_nis_endservent code, don't duplicate it.
11664         * inet/rexec.c (rexec_af): Protect socket operations with
11665         TEMP_FAILURE_RETRY.  Use writev instead of multiple write.
11666         * inet/rcmd.c (rcmd_af): Likewise.
11668 2003-01-17  Roland McGrath  <roland@redhat.com>
11670         * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
11671         Add test of value 0.80190127184058835.
11673         * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
11675 2003-01-17  Richard Henderson  <rth@redhat.com>
11677         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
11678         relocs for class PLT.
11679         * sysdeps/alpha/libc-tls.c: New file.
11680         * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
11681         (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
11683 2003-01-17  Jakub Jelinek  <jakub@redhat.com>
11685         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
11686         __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
11687         on _dl_static_lock.
11689 2003-01-17  Andreas Jaeger  <aj@suse.de>
11691         * stdio-common/bug14.c: Include stdlib.h for exit prototype.
11693 2003-01-16  Steven Munroe  <sjmunroe@us.ibm.com>
11695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
11696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
11697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
11698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
11699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
11700         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
11701         * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
11702         is 2.4.21.
11704 2003-01-16  Ulrich Drepper  <drepper@redhat.com>
11706         * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
11707         values != -1 for _LIBC.  Use extend_alloca to reallocate alloca'ed
11708         buffers.
11710         * sysdeps/generic/sysconf.c: Unconditionally implement
11711         _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
11712         * sysdeps/posix/sysconf.c: Likewise.
11714 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
11716         * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
11717         set *err to the returned error, not to REG_ESPACE unconditionally.
11718         (build_word_op): Likewise.
11719         * posix/Makefile (tests): Add bug-regex16.
11720         * posix/bug-regex16.c: New test.
11722 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
11724         * elf/dl-load.c (_dl_map_object_from_fd): Use
11725         GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
11726         been already initialized.
11728 2003-01-15  Dmitry V. Levin  <ldv@altlinux.org>
11730         * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
11732 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
11734         * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
11735         allocated too.  Reported by Al Viro <aviro@redhat.com>.
11737 2003-01-16  Roland McGrath  <roland@redhat.com>
11739         Tweak merged .abilist file format to merge duplicate symbols in
11740         different sets into multi-version stanzas with new "| SET regexp..."
11741         header continuation lines.
11742         * scripts/merge-abilist.awk: Rewritten for new format.
11743         * scripts/extract-abilist.awk: Likewise.
11745 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
11747         * nscd/connections.c (nscd_run): Remove bogus return which isn't
11748         necessary with gcc 3.2+.
11749         (nscd_init): Don't use error() to print message, use dbg_log.
11751         * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
11752         expected size into state.
11753         (UNPACK_BYTES): Do the reverse.
11754         * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
11755         * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
11756         Reported by Al Viro <aviro@redhat.com>.
11758         * stdio-common/Makefile (tests): Add bug14.
11759         * stdio-common/bug14.c: New file.
11761         * stdio-common/vfscanf.c: When recognizing multibyte characters in
11762         string reset the byte counter after mbrtowc reported it is not a
11763         partial character.  Reported by Al Viro <aviro@redhat.com>.
11765 2003-01-15  Steven Munroe  <sjmunroe@us.ibm.com>
11767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
11768         sysdep-cancel.h, not sysdep.h.
11770 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
11772         * nscd/connections.c (nscd_run): Protect accept call with
11773         TEMP_FAILURE_RETRY.
11775 2003-01-15  Andreas Schwab  <schwab@suse.de>
11777         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
11778         (common-generated): Add s-proto-bp.d.
11779         * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
11780         of bp thunks.
11781         * sysdeps/unix/s-proto-bp.S: New file.
11782         * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
11783         Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
11784         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
11786 2003-01-15  Roland McGrath  <roland@redhat.com>
11788         * Makerules: Use -include for tls.make, suppresses warning.
11789         Move gen-as-const-headers rules up so before-compile is set in time.
11790         (sed-remove-dotdot): Fix to work right for subdirs or top dir.
11792 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
11794         * nscd/nscd.c (main): Make code to close all file descriptors
11795         faster and more robust.
11797         * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
11798         request with one writev call.  Protect all read calls with
11799         TEMP_FAILURE_RETRY.
11800         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11801         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11803         * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
11804         Protect writev calls with TEMP_FAILURE_RETRY.
11805         * nscd/grpcache.c: Likewise.
11806         * nscd/pwdcache.c: Likewise.
11808         * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
11809         IPv6 address in debug output.
11811 2003-01-14  Roland McGrath  <roland@redhat.com>
11813         * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
11814         $(objpfx) directories, and get rid of vpath directives.  The previous
11815         arrangement resulted in files being written to the source directories
11816         when run in a clean build.  Find all .abilist files in $(..)abilist/.
11817         (update-abi-%): Likewise.
11818         (generated): Don't add .symlist files, they'll be intermediates.
11820         * sysdeps/generic/init-first.c: Add a comment.
11822         * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
11824         * scripts/gen-as-const.awk: Grok lone "--" as a separator between
11825         #includes and expressions.
11827         * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
11828         config list when it already contains cpu-.*-os.* without / part.
11830         * Makerules (sed-remove-dotdot): New variable.
11831         ($(common-objpfx)%.make): Use it.  Depend on $(before-compile).
11832         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
11833         (check-abi-config): New variable, append /tls or /notls to the tuple.
11834         (check-abi-%): Use that for -v config value.
11835         Find .abilist files in abilist/libfoo.abilist, not in subdir.
11836         * Rules: Move bits/stdio_lim.h generation rules to Makerules.
11838 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
11840         * manual/install.texi: Correct description of header preparation for
11841         Linux build.  Patch by mhwood@Ameritech.Net [PR libc/4941].
11843 2003-01-14  Guido Guenther  <agx@sigxcpu.org>
11845         * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
11846         INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11847         INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
11849 2003-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11852         (INTERNAL_SYSCALL): Make use of ERR parameter.
11853         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11854         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
11855         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
11856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
11858 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
11860         * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
11861         == IPPROTO_TCP.
11862         Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
11864         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
11865         Fix entry for bit 31.
11867         * iconvdata/Makefile: Add rules to build IBM866NAV.
11868         * iconvdata/ibm866nav.c: New file.
11869         * iconvdata/tst-tables.sh: Add IBM866NAV.
11870         * iconvdata/gconv-modules: Add entries for IBM866NAV.
11872 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
11874         * string/tester.c (test_strcpy): Use the previously #if 0'ed code
11875         to test void* parameters.
11877         * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
11878         source pointer before dereferencing.
11879         (__STRING_SMALLL_GET32): Likewise.
11880         (__memset_gc): Add missing parenthesis around macro arguments.
11881         Patch by Denis Zaitsev <zzz@cd-club.ru>.
11883         * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
11884         that %eax is modified.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
11886 2003-01-14  Jakub Jelinek  <jakub@redhat.com>
11888         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
11889         defining.
11891 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11893         * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
11894         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
11895         here.
11896         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
11898 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11900         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
11901         from here...
11902         (PSEUDO): ... to here.
11903         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
11904         from here...
11905         (PSEUDO): ... to here.
11907 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
11909         * locale/programs/charmap-dir.c (charmap_readdir): Use struct
11910         dirent64 instead of struct dirent for dirent.  Call readdir64
11911         instead of readdir.
11913         * locale/programs/locfile.c (siblings_uncached): Use struct
11914         dirent64 instead of struct dirent for other_dentry.  Call
11915         readdir64 instead of readdir.
11917         * elf/ldconfig.c (direntry): Change type to struct dirent64.
11918         (search_dir): Use readdir64 instead of readdir.
11919         Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
11921 2003-01-12  Roland McGrath  <roland@redhat.com>
11923         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
11924         not strtol.  The former is usable in ld.so, the latter not.
11926         * include/fcntl.h: Declare __libc_creat.
11928         * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
11929         libhurduser-link.so-no-z-defs): New variables.
11931         * malloc/malloc.c: Revert last change.
11932         * malloc/malloc.h (_int_*): Move these decls to ...
11933         * include/malloc.h: ... here.  Add attribute_hidden.
11934         (_int_valloc): Declare it too.
11936 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
11938         * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
11939         search for removed searchlist.  Reported by Roland McGrath.
11941         * io/ftwtest-sh: Add test for case of symlink to nonexisting file
11942         given as start file.
11944         * io/ftw.c (ftw_startup): Use correct name in check for symlink
11945         without existing target.  Patch by Jim Meyering.
11947         * Makerules (build-shlib-helper): Don't use -z defs linker option
11948         if no-z-defs is defined either.
11950 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11952         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
11953         file.
11955 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11957         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
11958         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11960 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
11962         * io/ftwtest-sh: Add test case for relative path with /. at the end.
11964 2003-01-12  Jim Meyering  <jim@meyering.net>
11966         * io/ftw.c (ftw_startup): When trying to stat the starting directory,
11967         use the basename if we've already chdir'd into its parent directory.
11969 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
11971         * io/ftw.c (process_entry): Use relative path when using chdir()
11972         to change directory after call to ftw_dir.
11973         * io/ftwtest-sh: Add test for relative path argument to nftw()
11974         with FTW_CHDIR option.
11976 2003-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11978         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
11979         Define for powerpc.
11980         * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
11981         into account.
11982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11983         (INTERNAL_SYSCALL): Make use of ERR parameter.
11984         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11985         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
11986         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
11987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
11989 2003-01-09  Richard Henderson  <rth@redhat.com>
11991         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
11992         DTPREL64 and TPREL64 without loadbase applied.
11994 2003-01-09  Richard Henderson  <rth@redhat.com>
11996         * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
11997         for NOT_IN_libc.
11999         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
12000         * sysdeps/unix/alpha/sysdep.h: ... here.
12001         (PSEUDO_LOADGP): Remove.
12002         (PSEUDO_PROLOGUE): Load GP in non-pic case.
12003         (SYSCALL_ERROR_LABEL): New.
12004         (PSEUDO): Use it in error branch.
12005         (PSEUDO_END): Add $syscall_error label.
12007 2003-01-12  Andreas Jaeger  <aj@suse.de>
12009         * math/bits/mathcalls.h: Round is a const function.
12011 2003-01-11  Jim Meyering  <jim@meyering.net>
12013         * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
12014         [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
12015         Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
12016         [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
12017         [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
12018         [!_LIBC] (internal_function, dirent64, MAX): Define.
12019         (__set_errno): Define if not already defined.
12020         (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
12021         the basename, not the entire file name.
12022         (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
12023         the basename, not the entire file name.
12025 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
12027         * string/tester.c (test_strcpy): Disable last added strcpy until
12028         it is fixed.
12030 2003-01-11  Philip Blundell  <philb@gnu.org>
12032         * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
12034 2003-01-11  Andreas Schwab  <schwab@suse.de>
12036         * Makerules: Add vpath for %.dynsym and %.so so that the
12037         implicit rule chaining for check-abi works.
12039 2003-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12041         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12042         Add non-PIC case.
12044 2003-01-11  Jakub Jelinek  <jakub@redhat.com>
12046         * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
12047         [__ia64__] (TLS_LE, TLS_IE): Fix typos.  Add ;; at start of asm if
12048         gp is used early.
12049         [__ia64__] (TLS_LD, TLS_GD): Likewise.  Use __TLS_CALL_CLOBBERS.
12050         * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
12051         Ensure libc.so in DT_NEEDED.
12052         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
12053         CHECK_STATIC_TLS before l_tls_offset use.
12054         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
12055         Likewise.
12056         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12057         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
12058         Allocate TLS_PRE_TCB_SIZE bytes below result.
12059         (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
12060         * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
12061         TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
12062         segment has been found.  If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
12063         bytes below result and add tcb_offset to memsz.
12064         * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
12065         * sysdeps/ia64/dl-machine.h: Include tls.h.
12066         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
12067         too.
12068         (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
12069         Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
12070         * sysdeps/ia64/libc-tls.c: New file.
12072 2003-01-10  Steven Munroe  <sjmunroe@us.ibm.com>
12074         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
12075         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
12076         Fix type.  Move definition out of #if.
12077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
12078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
12079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
12080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
12081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
12082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
12083         support.
12084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
12085         ftruncate64, pread64, pwrite64, truncate64 entries.
12086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12087         (INLINE_SYSCALL): New version that supports function call like
12088         syscalls.  Add __builtin_expect.
12089         (LOADARGS_n): Add argument size safety checks.
12090         (INTERNAL_SYSCALL): New Macro.
12091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
12092         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
12093         redefinition of elf_fpreg_t and elf_fpregset_t.
12095 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
12097         * elf/dl-close.c (_dl_close): Add several asserts.  Correct and
12098         simplify test for unloading.  If loader of a DSO is unloaded do not
12099         use its scope anymore.  Fall back to own scope and adjust opencounts.
12100         Fix several comments.
12101         * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
12102         the l_searchlist, not only for l_initfini.
12104         * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
12105         dependencies if objects cannot be removed.  Remove object with the
12106         definition as not unloadable if necessary.
12108         * elf/reldep6.c: Create relocation dependency before closing the first
12109         module.
12111 2003-01-10  Guido Günther  <agx@sigxcpu.org>
12113         * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
12114         * sysdeps/unix/mips/brk.S: Likewise.
12115         * sysdeps/unix/mips/pipe.S: Likewise.
12117 2003-01-10  Andreas Schwab  <schwab@suse.de>
12119         * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
12121         * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
12122         are known to have the vfork syscall.
12124         * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
12126         * sysdeps/unix/sysv/linux/kernel-features.h
12127         (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
12128         (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
12129         (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
12131 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
12133         * elf/Makefile: Add rules to build and run reldep9 test.
12134         * elf/reldep9.c: New file.
12135         * elf/reldep9mod1.c: New file.
12136         * elf/reldep9mod2.c: New file.
12137         * elf/reldep9mod3.c: New file.
12139 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
12141         * elf/Makefile: Add rules to build and run nodelete2 test.
12142         * elf/nodelete2.c: New file.
12143         * elf/nodel2mod1.c: New file.
12144         * elf/nodel2mod2.c: New file.
12145         * elf/nodel2mod3.c: New file.
12147 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
12149         * posix/test-vfork.c (noop): Add __attribute_noinline__.
12150         * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
12151         * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
12152         defining it.
12153         * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
12154         * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
12155         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
12156         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
12157         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
12159 2003-01-09  Andreas Schwab  <schwab@suse.de>
12161         * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
12163 2003-01-08  Ulrich Drepper  <drepper@redhat.com>
12165         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
12166         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
12167         argument.
12168         (INTERNAL_SYSCALL_DECL): Define.
12170 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
12172         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
12173         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
12174         argument.
12175         (INTERNAL_SYSCALL_DECL): Define.
12176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12177         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12178         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
12179         (INLINE_SYSCALL): Adjust.
12180         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12181         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
12182         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
12183         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12184         * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
12185         add err argument to INTERNAL_SYSCALL* macros.
12186         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
12187         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
12188         * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
12189         * sysdeps/unix/sysv/linux/m68k/getpagesize.c  (__getpagesize):
12190         Likewise.
12191         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
12192         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
12193         INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
12195 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
12197         Unify symbols in user namespace exported by libc.so and libc.a.
12198         * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
12199         argp_fmtstream_free, and argp_fmtstream_printf.
12200         * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
12201         argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
12202         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
12203         argp_fmtstream_point.
12204         * gmon/gmon.c: Don't define write_profiling.
12205         * libio/genops.c: Don't define _cleanup.
12207         * intl/explodename.c (_nl_find_language.c): Mark as static.
12208         * intl/loadinfo.h: Remove _nl_find_language prototype.
12210         * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
12211         * libio/libioP.h: Remove declaration.
12213         * libio/iopopen.c (_IO_proc_jumps): Mark as static.
12214         * libio/libioP.h: Remove declaration.
12216         * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
12217         * sysdeps/generic/framestate.c: Define STATIC before including
12218         unwind-dw2.c.
12220         * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
12222 2003-01-06  Philip Blundell  <philb@gnu.org>
12224         * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
12225         [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
12227         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
12228         directive.
12229         (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
12230         (SYSCALL_ERROR): New.
12231         (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
12232         handling code.
12233         (INTERNAL_SYSCALL): Define.
12234         (INLINE_SYSCALL): Use it.
12235         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
12236         * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
12237         SYSCALL_ERROR in place of __syscall_error.
12239 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
12241         * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
12242         __bswap_32, __bswap_64): Put x into temporary variable
12243         to avoid warnings.
12244         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
12245         (inline) functions.
12246         * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
12247         __bswap_32, __bswap_64): Put x into temporary variable
12248         to avoid warnings.
12249         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
12250         (inline) functions.
12251         * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
12252         Likewise.
12254 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
12256         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
12257         alias.
12259 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
12261         * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
12262         * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
12264 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
12266         * math/libm-test.inc (significand_test): New function.
12267         (main): Call it.
12269 2003-01-06  Roland McGrath  <roland@redhat.com>
12271         * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
12272         arguments.
12273         (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
12274         (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
12275         (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
12277         * string/tester.c (test_strcpy): Add test with `void *' arguments.
12279 2003-01-06  Ulrich Drepper  <drepper@redhat.com>
12281         * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
12282         return significand and not the exponent.
12283         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12285         * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
12286         taking address of iov in INTERNAL_SYSCALL call.  Patch by Franz Sirl.
12288         * malloc/malloc.c: Mark all _int_* functions as static.
12290 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
12292         * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
12293         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
12294         handling.
12295         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
12297 2003-01-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12299         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
12300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
12301         support.
12302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
12303         ftruncate64, truncate64, pread64 and pwrite64 entries.
12304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
12305         (INLINE_SYSCALL): Add __builtin_expect.
12306         (LOADARGS_n): Add argument size safety checks.
12307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
12308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
12309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
12310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
12311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
12312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
12314 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
12316         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
12317         * sysdeps/generic/creat.c: Include sysdep-cancel.h.
12318         (LIBC_CANCEL_HANDLED): Add.
12320         * sysdeps/unix/sysv/linux/alpha/sysdep.h
12321         (inline_syscall_r0_constraint): Rename to...
12322         (inline_syscall_r0_out_constraint): ... this.  Add =.
12323         (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
12325 2003-01-06  Andreas Schwab  <schwab@suse.de>
12327         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
12328         sure this is always inlined.
12329         (elf_machine_rela): Likewise.
12331         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
12333 2003-01-04  Roland McGrath  <roland@redhat.com>
12335         * Makeconfig (+mkdep): Add -MP flag.
12336         Suggested by Art Haas <ahaas@airmail.net>.
12338 2003-01-05  Andreas Schwab  <schwab@suse.de>
12340         * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
12342 2003-01-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12344         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
12345         SYSCALL_ERROR_HANDLER.
12346         * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
12347         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
12348         Add support for cancellation handling.
12349         * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
12350         SYSCALL_ERROR_HANDLER.
12351         * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
12352         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
12353         Add support for cancellation handling.
12354         (SYSCALL_ERROR_HANDLER): Define PIC variants.
12356 2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
12359         __syscall_pread64 and __syscall_pwrite64 cancelable.
12360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
12361         (INTERNAL_SYSCALL): New macro.
12362         (LOADARGS_0, LOADARGS_1): Fix.
12364 2003-01-05  Ulrich Drepper  <drepper@redhat.com>
12366         * Makerules (build-shlip-helper): Unless told otherwise, add
12367         -Wl,-z,defs to linker command line.
12368         * rt/Makefile (librt.so): Link with ld.so.
12369         * dlfcn/Makefile (libdl.so): Likewise.
12371 2003-01-05  Jakub Jelinek  <jakub@redhat.com>
12373         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
12374         cancellation handling.
12375         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
12376         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
12378 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
12380         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
12381         order of parameters passed to kill.
12383 2003-01-04  Andreas Schwab  <schwab@suse.de>
12385         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
12387 2003-01-03  Paul Eggert  <eggert@twinsun.com>
12389         * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
12390         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
12391         when compiling Bison 1.875's `bitset bset = obstack_alloc
12392         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
12394 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
12396         * sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
12397         unnecessary code.
12398         Correct reference counter in case SIGQUIT handler installation failed.
12400 2003-01-03  Ulrich Drepper  <drepper@redhat.com>
12402         * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
12403         Define using _Pragma(weak ...).
12405 2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
12407         * resolv/res_libc.c: Provide declaration for __res_init_weak and
12408         reorder declarations.
12410 2003-01-03  Art Haas  <ahaas@airmail.net>
12412         * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
12413         initializer syntax to C99.
12414         * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
12415         * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
12416         * localedata/tests-mbwc/dat_iswctype.c: Likewise.
12417         * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
12418         * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
12419         * localedata/tests-mbwc/dat_iswlower.c: Likewise.
12420         * localedata/tests-mbwc/dat_iswprint.c: Likewise.
12421         * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
12422         * localedata/tests-mbwc/dat_iswspace.c: Likewise.
12423         * localedata/tests-mbwc/dat_iswupper.c: Likewise.
12424         * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
12425         * localedata/tests-mbwc/dat_mblen.c: Likewise.
12426         * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
12427         * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
12428         * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
12429         * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
12430         * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
12431         * localedata/tests-mbwc/dat_strcoll.c: Likewise.
12432         * localedata/tests-mbwc/dat_strfmon.c: Likewise.
12433         * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
12434         * localedata/tests-mbwc/dat_swscanf.c: Likewise.
12435         * localedata/tests-mbwc/dat_towctrans.c: Likewise.
12436         * localedata/tests-mbwc/dat_towlower.c: Likewise.
12437         * localedata/tests-mbwc/dat_towupper.c: Likewise.
12438         * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
12439         * localedata/tests-mbwc/dat_wcscat.c: Likewise.
12440         * localedata/tests-mbwc/dat_wcschr.c: Likewise.
12441         * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
12442         * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
12443         * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
12444         * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
12445         * localedata/tests-mbwc/dat_wcslen.c: Likewise.
12446         * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
12447         * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
12448         * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
12449         * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
12450         * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
12451         * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
12452         * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
12453         * localedata/tests-mbwc/dat_wcstod.c: Likewise.
12454         * localedata/tests-mbwc/dat_wcstok.c: Likewise.
12455         * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
12456         * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
12457         * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
12458         * localedata/tests-mbwc/dat_wctob.c: Likewise.
12459         * localedata/tests-mbwc/dat_wctomb.c: Likewise.
12460         * localedata/tests-mbwc/dat_wctrans.c: Likewise.
12461         * localedata/tests-mbwc/dat_wctype.c: Likewise.
12462         * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
12464 2003-01-03  Richard Henderson  <rth@redhat.com>
12466         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
12467         (inline_syscall_r0_constraint): New.
12468         (inline_syscall[0-6]): Use them.
12470 2003-01-03  Jakub Jelinek  <jakub@redhat.com>
12472         * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
12473         Add rtld_hidden_proto.
12474         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
12475         (_dl_allocate_tls): Likewise.  Remove INTDEF.
12477 2002-07-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12479         * sysdeps/sh/memcpy.S: Optimize.  Based on a patch by Toshiyasu
12480         Morita <toshiyasu.morita@hsa.hitachi.com>.
12481         * sysdeps/sh/memcpy.S: Likewise.
12483 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
12485         * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
12486         any, but unify the test.
12488 2003-01-02  Jakub Jelinek  <jakub@redhat.com>
12490         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
12491         sigaction): Protect weak_alias and libc_hidden_weak with
12492         #ifndef LIBC_SIGACTION.
12493         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
12494         sigaction): Likewise.
12495         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
12496         sigaction): Likewise.
12497         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
12498         sigaction): Likewise.
12499         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
12500         sigaction): Likewise.
12501         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
12502         sigaction): Likewise.
12503         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
12504         sigaction): Likewise.
12505         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
12506         sigaction): Likewise.  Remove SIGCANCEL handling here.
12507         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
12508         Likewise.
12510 2003-01-02  Art Haas  <ahaas@airmail.net>
12512         * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
12514 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
12516         * posix/getconf.c: Update copyright year.
12517         * nss/getent.c: Likewise.
12518         * nscd/nscd_nischeck.c: Likewise.
12519         * iconv/iconvconfig.c: Likewise.
12520         * iconv/iconv_prog.c: Likewise.
12521         * elf/ldconfig.c: Likewise.
12522         * catgets/gencat.c: Likewise.
12523         * csu/version.c: Likewise.
12524         * elf/ldd.bash.in: Likewise.
12525         * elf/sprof.c (print_version): Likewise.
12526         * locale/programs/locale.c: Likewise.
12527         * locale/programs/localedef.c: Likewise.
12528         * nscd/nscd.c (print_version): Likewise.
12529         * debug/xtrace.sh: Likewise.
12530         * malloc/memusage.sh: Likewise.
12531         * malloc/mtrace.pl: Likewise.
12533 2003-01-01  Jakub Jelinek  <jakub@redhat.com>
12535         * io/sys/stat.h: Include time.h with __need_timespec even if
12536         __USE_MISC is defined but __USE_XOPEN is not.
12538 2003-01-01  Andreas Jaeger  <aj@suse.de>
12540         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
12541         type to avoid strict aliasing problem.
12542         (_nss_dns_gethostbyname2_r): Likewise.
12543         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
12544         (_nss_dns_getnetbyname_r): Likewise.
12545         * resolv/gethnamaddr.c (_gethtent): Likewise.
12546         (gethostbyname2): Likewise.
12548 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
12550         * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
12551         to avoid using the exported symbols.  Define aliases with the
12552         original names separately.
12554         * include/time.h: Add libc_hidden_proto for __strftime_l.
12555         * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
12556         * time/strftime.c: Always use libc_hidden_def if _LIBC.
12558         * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
12559         * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
12561         * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
12562         tr_break.
12564         * csu/Makefile (routines): Add dso_handle.
12565         * csu/dso_handle.c: New file.
12567 2002-12-31  Roland McGrath  <roland@redhat.com>
12569         * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
12570         Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
12571         (S-CPPFLAGS): Add -DASSEMBLER here instead.
12572         (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
12574 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
12576         * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
12577         is available.
12579 2002-12-31  Andreas Jaeger  <aj@suse.de>
12581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
12582         with Linux kernel.
12583         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
12584         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
12585         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
12587         * sysdeps/unix/sysv/linux/kernel_stat.h
12588         (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
12590         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
12591         __unused[1-3] since they're needed by some platforms.  Handle
12592         _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
12594         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
12595         for structs stat and stat64.
12596         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
12597         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
12598         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
12599         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
12601         * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
12603         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
12604         nsec resolution changes.
12605         (xstat64_conv): Likewise.
12606         (xstat32_conv): Likewise.
12608         * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
12609         struct kernel_stat.
12611         * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
12612         structs stat and stat64.
12614         * time/time.h (__timespec_defined): Define for __USE_MISC.
12616 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
12618         * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
12619         and __libc_current_sigrtmax.
12621 2002-12-31  Jakub Jelinek  <jakub@redhat.com>
12623         * include/errno.h (__errno_location): Add prototype.
12624         Use libc_hidden_proto unconditionally.
12625         * include/netdb.h (__h_errno_location): Use libc_hidden_proto
12626         unconditionally.
12627         * include/resolv.h (__res_state): Likewise.
12629         * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
12630         * include/sys/socket.h (accept): Add libc_hidden_proto.
12631         * include/errno.h (__errno_location): Likewise.
12632         * include/netdb.h (__h_errno_location): Likewise.
12633         * include/resolv.h (__res_state): Likewise.
12634         * include/unistd.h (__lseek): Likewise.
12635         * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
12636         * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
12637         * sysdeps/generic/res-state.c (__res_state): Likewise.
12638         * sysdeps/generic/accept.c (accept): Likewise.
12639         * sysdeps/generic/lseek.c (__lseek): Likewise.
12640         * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
12641         __libc_current_sigrtmax): Likewise.
12642         * sysdeps/mach/hurd/accept.c (accept): Likewise.
12643         * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
12644         * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
12645         * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
12646         * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
12647         * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
12648         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
12649         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
12650         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
12651         alias to llseek.
12652         (__GI_accept): New alias to accept.
12653         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
12654         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
12655         New alias to llseek.
12656         (__GI_accept): New alias to accept.
12657         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
12658         Likewise.
12659         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
12660         Likewise.
12661         * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
12663         * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
12664         strong_alias (name, __GI_name).
12665         * sysdeps/arm/bsd-_setjmp.S : Likewise.
12666         * sysdeps/hppa/bsd-_setjmp.S : Likewise.
12667         * sysdeps/i386/bsd-_setjmp.S : Likewise.
12668         * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
12669         * sysdeps/mips/bsd-_setjmp.S : Likewise.
12670         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
12671         * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
12672         * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
12673         * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
12674         * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
12675         * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
12676         * sysdeps/sh/bsd-_setjmp.S : Likewise.
12677         * sysdeps/sparc/sparc32/setjmp.S : Likewise.
12678         * sysdeps/unix/arm/fork.S : Likewise.
12679         * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
12680         * sysdeps/unix/bsd/i386/vfork.S : Likewise.
12681         * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
12682         * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
12683         * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
12684         * sysdeps/unix/bsd/vax/vfork.S : Likewise.
12685         * sysdeps/unix/i386/fork.S : Likewise.
12686         * sysdeps/unix/mips/fork.S : Likewise.
12687         * sysdeps/unix/sparc/fork.S : Likewise.
12688         * sysdeps/unix/sparc/vfork.S : Likewise.
12689         * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
12690         * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
12691         * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
12692         * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
12693         * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
12694         * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
12695         * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
12696         * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
12697         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
12698         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
12699         * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
12700         * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
12701         * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
12702         * sysdeps/unix/fork.S : Likewise.
12703         * sysdeps/vax/bsd-_setjmp.S : Likewise.
12704         * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
12706         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
12707         inclusion.
12709 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
12711         * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
12712         * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
12713         * sysdeps/mach/hurd/fork.c: Likewise.
12714         * sysdeps/unix/sysv/aix/fork.c: Likewise.
12715         * sysdeps/unix/fork.S: Add __GI___fork alias.
12716         * sysdeps/unix/arm/fork.S: Likewise.
12717         * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
12718         * sysdeps/unix/i386/fork.S: Likewise.
12719         * sysdeps/unix/mips/fork.S: Likewise.
12720         * sysdeps/unix/sparc/fork.S: Likewise.
12721         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
12722         * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
12723         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
12724         * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
12725         * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
12726         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
12727         * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
12728         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
12729         * sysdeps/unix/bsd/vax/vfork.S: Likewise.
12730         * sysdeps/unix/sparc/vfork.S: Likewise.
12731         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
12732         * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
12733         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
12734         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
12735         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
12736         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
12737         * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
12738         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
12740         * include/time.h: Add libc_hidden_proto for __nanosleep.
12741         * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
12742         * sysdeps/mach/nanosleep.c: Likewise.
12743         * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
12744         * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
12746         * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
12747         _IO_list_unlock, and _IO_list_resetlock.
12748         * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
12749         _IO_list_unlock, and _IO_list_resetlock.
12751         * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
12752         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
12753         * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
12754         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
12756         * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
12757         * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
12758         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
12759         __GI___longjmp alias.
12761         * include/setjmp.h: Add libc_hidden_proto for _setjmp.
12762         * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
12763         * sysdeps/arm/bsd-_setjmp.S: Likewise.
12764         * sysdeps/generic/bsd-_setjmp.c: Likewise.
12765         * sysdeps/hppa/bsd-_setjmp.S: Likewise.
12766         * sysdeps/i386/bsd-_setjmp.S: Likewise.
12767         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12768         * sysdeps/mips/bsd-_setjmp.S: Likewise.
12769         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
12770         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
12771         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
12772         * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
12773         * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
12774         * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
12775         * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
12776         * sysdeps/sh/bsd-_setjmp.S: Likewise.
12777         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
12778         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
12779         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
12780         * sysdeps/vax/bsd-_setjmp.S: Likewise.
12781         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
12783 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
12785         * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
12787 2002-12-30  Roland McGrath  <roland@redhat.com>
12789         * Rules (generated): Target removed.
12790         * mach/Makefile (generated): Define it here instead.
12792         * math/Makefile (generated): Add m_*l and m_*f variants too.
12794 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
12796         * elf/dl-close.c (_dl_close): Handle relocation dependencies among
12797         the to-be-deleted objects right away instead of later separately.
12798         The latter fails because the scope data structures of the DSO
12799         might already be gone.
12801         * elf/Makefile: Add rules to build and run reldep8 test.
12802         * elf/reldep8.c: New file.
12803         * elf/reldep8mod1.c: New file.
12804         * elf/reldep8mod2.c: New file.
12805         * elf/reldep8mod3.c: New file.
12806         Contributed by Jakub Jelinek.
12808 2002-12-24  GOTO Masanori  <gotom@debian.or.jp>
12810         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
12811         checking of return value ENOSYS from getdents64.
12813 2002-12-28  Andreas Schwab  <schwab@suse.de>
12815         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
12816         ($(common-objpfx)s-%.d): Generalized from
12817         $(common-objpfx)s-proto.d rule.
12818         (common-generated): Add s-proto-cancel.d.
12819         * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
12820         cancellable syscalls.
12821         * sysdeps/unix/s-proto-cancel.S: New file.
12823 2002-12-29  Roland McGrath  <roland@redhat.com>
12825         * resolv/res_libc.c: Move _res defn magic after res_init defn
12826         so _res macro is in effect for that code.
12828         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
12829         pattern for prepending $(..) so it doesn't affect $(foo).
12831         * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
12833 2002-12-29  Jakub Jelinek  <jakub@redhat.com>
12835         * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
12836         in hwcap.
12838 2002-12-28  Ulrich Drepper  <drepper@redhat.com>
12840         * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
12842 2002-12-28  Andreas Jaeger  <aj@suse.de>
12844         * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
12845         avoid warning.
12846         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
12848 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
12850         * inet/herrno.c (__h_errno_location): Remove.
12851         * inet/Makefile (routines): Add herrno-loc.
12852         * resolv/res_libc.c (__res_state): Remove.
12853         * resolv/Makefile (routines): Add res-state.
12854         * sysdeps/generic/herrno-loc.c: New file.
12855         * sysdeps/generic/res-state.c: New file.
12857 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
12859         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
12860         Only define if USE_DL_SYSINFO is defined.
12862 2002-12-22  Jakub Jelinek  <jakub@redhat.com>
12864         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
12865         INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
12866         Define. Patch by Richard Henderson and Jes Sorensen.
12867         (PSEUDO): Remove unnecessary ;;.
12868         * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
12869         are found unless TLS_INIT_TP_EXPENSIVE.  Use NONTLS_INIT_TP.
12870         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
12871         if not initializing thread pointer.
12872         [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
12873         * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
12874         make it weak also if NONTLS_INIT_TP.
12875         * sysdeps/unix/common/pause.c: Handle cancellation.
12876         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
12877         (LOADSYSCALL): Remove.
12878         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
12879         (SYSCALL_ERROR_HANDLER): Use it.
12880         (PSEUDO): Don't jump around error handler.
12881         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
12882         jump around error handler.
12883         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
12884         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
12885         to __syscall_error_handler on failure.
12886         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
12887         (LOADSYSCALL): Remove.
12888         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
12889         (SYSCALL_ERROR_HANDLER): Use it.
12890         (PSEUDO): Don't jump around error handler.
12891         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
12892         jump around error handler.
12893         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
12894         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
12895         to __syscall_error_handler on failure.
12897 2002-12-27  Roland McGrath  <roland@redhat.com>
12899         * scripts/gen-as-const.awk: New file.
12900         * Makefile (distribute): Add it.
12901         * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
12902         (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
12903         to the list.
12904         (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
12906 2002-12-27  Andreas Schwab  <schwab@suse.de>
12908         * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
12910 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
12912         * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
12913         _environ is NULL.
12915 2002-12-27  Andreas Schwab  <schwab@suse.de>
12917         * Makerules ($(common-objpfx)%.make): Filter through
12918         $(sed-remove-objpfx).
12920 2002-12-23  Roland McGrath  <roland@redhat.com>
12922         * scripts/abilist.awk: Produce a more compact format, divided into
12923         stanzas for each version set, the set name listed only once.
12924         * scripts/extract-abilist.awk: New file.
12925         * scripts/merge-abilist.awk: New file.
12926         * Makerules (check-abi-%, update-abi-%): New pattern rules.
12927         (update-abi, check-abi): New targets.
12928         * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
12930 2002-12-19  Roland McGrath  <roland@redhat.com>
12932         * Makerules (%.symlist): Use LC_ALL=C when running awk script.
12934         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
12935         INTERNAL_SYSCALL.
12937 2002-12-21  Andreas Schwab  <schwab@suse.de>
12939         * elf/check-textrel.c (handle_file): Swap p_type.
12941 2002-12-21  Andreas Schwab  <schwab@suse.de>
12943         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
12944         (INLINE_SYSCALL): Use it.
12945         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
12946         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
12948         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
12949         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
12951 2002-12-20  Art Haas  <ahaas@airmail.net>
12953         * sysdeps/gnu/siglist.c: Convert GCC extension initializer
12954         syntax to C99.
12956 2002-12-21  Philip Blundell  <philb@gnu.org>
12958         * sysdeps/arm/elf/start.S (_start): Optimise a little.  Push stack
12959         top as seventh arg to __libc_start_main.
12960         Reported by paulnash@wildseed.com.
12962         * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
12964         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
12965         compatibility cruft when new enough kernel is assumed.
12967 2002-12-20  Jakub Jelinek  <jakub@redhat.com>
12969         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
12970         instead of INLINE_SYSCALL.
12972 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
12974         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
12975         typo.
12977         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
12978         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
12979         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
12980         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
12981         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
12982         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
12983         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12984         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12985         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
12986         Patch by William Lee Irwin <wli@holomorphy.com>.
12988 2002-12-20  Andreas Schwab  <schwab@suse.de>
12990         * locale/programs/ld-measurement.c (measurement_output): Fix
12991         index calculation.
12993 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
12995         * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
12996         Redefine _IO_flockifle and _IO_funlockfile as inlines.
12998         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
12999         builds add "tls" in the search path.
13000         * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
13001         (path_hwcap): Recognize "tls".
13003 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
13005         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
13006         __waitpid instead of waitpid.
13008         * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
13009         int $0x80.
13010         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
13011         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
13012         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
13014         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
13015         information for system calls.
13017         * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
13018         for ld.so.
13020         * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
13022 2002-12-19  Roland McGrath  <roland@redhat.com>
13024         * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
13025         * iconvdata/ibm922.h: Likewise.
13026         * iconvdata/ibm930.h: Likewise.
13027         * iconvdata/ibm932.h: Likewise.
13028         * iconvdata/ibm933.h: Likewise.
13029         * iconvdata/ibm935.h: Likewise.
13030         * iconvdata/ibm937.h: Likewise.
13031         * iconvdata/ibm939.h: Likewise.
13032         * iconvdata/ibm943.h: Likewise.
13033         * iconvdata/isiri-3342.h: Likewise.
13035 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
13037         * test-skeleton.c (main): Make sure correct value is seen as
13038         argv[0] after adjustment of argv, and argc.
13040         * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
13041         RTLD_CORRECT_DYNAMIC_WEAK is defined.
13043 2002-12-19  Jakub Jelinek  <jakub@redhat.com>
13045         * nscd/connections.c (nscd_run): Shut up warning.
13046         * tst-ungetc.c (assert): Undefined before redefining.
13048 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
13050         * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
13051         is used.
13053 2002-12-17  Art Haas  <ahaas@airmail.net>
13055         * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
13056         * iconvdata/cp775.h: Likewise.
13057         * iconvdata/ibm1046.h: Likewise.
13058         * iconvdata/ibm1124.h: Likewise.
13059         * iconvdata/ibm1129.h: Likewise.
13060         * iconvdata/ibm1132.h: Likewise.
13061         * iconvdata/ibm1133.h: Likewise.
13062         * iconvdata/ibm1160.h: Likewise.
13063         * iconvdata/ibm1161.h: Likewise.
13064         * iconvdata/ibm1162.h: Likewise.
13065         * iconvdata/ibm1163.h: Likewise.
13066         * iconvdata/ibm1164.h: Likewise.
13068 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
13070         * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
13071         __ASSUME_CLONE_THREAD_FLAGS is defined.
13072         * sysdeps/unix/sysv/linux/kernel-features.h
13073         (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
13075 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
13077         * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
13078         of asm.
13079         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13081         * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
13082         _dl_sysinfo.
13083         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
13084         code.
13085         * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
13086         _rtld_global.
13087         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
13088         code.
13089         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
13090         Check for AT_SYSINFO and set _dl_sysinfo appropriately.
13091         * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
13092         Add _dl_sysinfo.
13094 2002-12-18  Jakub Jelinek  <jakub@redhat.com>
13096         * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
13097         __libc_writev to...
13098         [libc: GLIBC_PRIVATE]: ...here.
13099         * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
13100         __libc_msgsnd to...
13101         [libc: GLIBC_PRIVATE]: ...here.
13103 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
13105         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
13106         Use it instead of directly int $0x80.
13107         * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
13108         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
13109         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
13110         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13111         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
13112         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
13114 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
13116         * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
13118         * elf/elf.h (AT_SYSINFO): New define.
13119         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
13120         AT_SYSINFO.
13122 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
13124         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
13125         Make cancelable.
13126         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
13127         Likewise.
13128         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
13129         Likewise.
13130         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
13131         Likewise.
13132         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
13133         Likewise.
13134         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
13136         * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
13137         mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
13138         available, otherwise __libc_maybe_call.
13139         * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
13140         cancellation handling.
13141         * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
13143 2002-12-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
13145         * posix/regcomp.c (free_workarea_compile): Free the new member
13146         ORG_INDICES.
13147         (analyze): Initialize ORG_INDICES.
13148         (duplicate_node_closure): Search for a existing node, which is
13149         duplicated from the node ORG_DEST and satisfies the constraint
13150         CONSTRAINT.  And use it to avoid inifimite loop.
13151         (search_duplicated_node): New function.
13152         (duplicate_node): Store the index of the original node.
13153         * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
13154         if needed.
13155         * posix/regex_internal.h (re_dfa_t): Add new members.
13157 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
13159         * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
13161 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
13163         * sysdeps/posix/system.c (do_system): Add support for installation
13164         of cancellation handlers.
13165         * sysdeps/unix/sysv/linux/i386/system.c: New file.
13167         * stdlib/Makefile (tests): Add tst-system.
13168         * stdlib/tst-system.c: New file.
13170         * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
13171         CENABLE]: Don't lose content of %ebx.
13173 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
13175         * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
13176         macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
13178 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
13180         * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
13181         fails to return a function pointer don't use it.
13183 2002-12-16  Art Haas  <ahaas@airmail.net>
13185         * io/ftw.c: Convert GCC extension initializer syntax to C99.
13186         * iconvdata/iso-ir-165.c: Likewise.
13187         * iconvdata/jis0208.c: Likewise.
13188         * iconvdata/jis0212.c: Likewise.
13190 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
13192         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
13193         epoll_ctl, and epoll_wait.
13194         * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
13195         epoll_create, epoll_ctl, and epoll_wait.
13196         * sysdeps/unix/sysv/linux/sys/epoll.h: New file.  Written by
13197         Davide Libenzi <davidel@xmailserver.org>.
13198         * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
13199         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
13200         Add sys/epoll.h.
13202 2002-12-16  Art Haas  <ahaas@airmail.net>
13204         * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
13205         syntax to C99
13206         * sysdeps/unix/sysv/aix/settimer.c: Likewise.
13207         * sysdeps/unix/sysv/aix/sleep.c: Likewise.
13208         * sysdeps/unix/sysv/aix/usleep.c: Likewise.
13210 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
13212         * stdio-common/Makefile (routines): Remove lockfile.  Add
13213         flockfile, ftrylockfile, and funlockfile.
13214         * sysdeps/generic/lockfile.c: Removed.  Each function has its own file.
13215         * sysdeps/generic/flockfile.c: New file.
13216         * sysdeps/generic/ftrylockfile.c: New file.
13217         * sysdeps/generic/funlockfile.c: New file.
13219 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
13221         * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
13222         macros instead of doing the calls directly.
13223         * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
13224         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
13225         targets.
13227 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
13229         * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
13230         * sysdeps/ieee754/bits/nan.h: Likewise.
13232         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
13233         __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
13235 2002-12-16  Roland McGrath  <roland@redhat.com>
13237         * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
13238         * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
13239         * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
13241         * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
13242         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
13243         s_putpmsg.
13244         * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
13245         * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
13246         * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
13247         * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
13248         * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
13249         * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
13250         * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
13251         * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
13253 2002-12-13  Paul Eggert  <eggert@twinsun.com>
13255         * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
13256         is now u_int, not int.
13257         (struct XDR.x_handy): Now u_int, not int.
13258         * sunrpc/xdr_mem.c: Include <limits.h>.
13259         (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
13260         xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
13261         x_handy is now unsigned, not signed.
13262         Do not decrement x_handy if no change is made.
13263         (xdrmem_setpos): Check for int overflow.
13264         * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
13265         (xdr_sizeof): Remove cast that is now unnecessary, now that
13266         x_handy is unsigned.
13268 2002-12-15  Art Haas  <ahaas@airmail.net>
13270         * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
13271         * iconvdata/gap.awk: Likewise.
13272         * iconvdata/gen-8bit-gap-1.sh: Likewise.
13273         * iconvdata/gen-8bit-gap.sh: Likewise.
13274         * locale/C-address.c: Likewise.
13275         * locale/C-collate.c: Likewise.
13276         * locale/C-ctype.c: Likewise.
13277         * locale/C-identification.c: Likewise.
13278         * locale/C-measurement.c: Likewise.
13279         * locale/C-messages.c: Likewise.
13280         * locale/C-monetary.c: Likewise.
13281         * locale/C-name.c: Likewise.
13282         * locale/C-numeric.c: Likewise.
13283         * locale/C-paper.c: Likewise.
13284         * locale/C-telephone.c: Likewise.
13285         * locale/C-time.c: Likewise.
13286         * nscd/connections.c: Likewise.
13287         * nscd/grpcache.c: Likewise.
13288         * nscd/hstcache.c: Likewise.
13289         * nscd/pwdcache.c: Likewise.
13290         * stdio-common/vfprintf.c: Likewise.
13291         * stdlib/random.c: Likewise.
13292         * sysdeps/generic/siglist.c: Likewise.
13293         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
13294         * sysdeps/ieee754/bits/nan.h: Likewise.
13295         * sysdeps/posix/sprofil.c: Likewise.
13296         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
13297         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
13298         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
13300 2002-12-15  Roland McGrath  <roland@redhat.com>
13302         * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
13304         * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
13305         <tls.h> here, no need for it.
13306         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
13308         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
13309         parameter, not varargs parameter.
13311         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
13312         argument so it's not an unused variable.
13314         * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
13315         __p_type_syms, __p_rcode_syms): Remove decls, never really intended
13316         for users.
13318         * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
13320 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
13322         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
13323         original __libc_fcntl code.  Just renamed.
13325 2002-12-15  Andreas Schwab  <schwab@suse.de>
13327         * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
13329 2002-12-14  Olaf Hering  <olh@suse.de>
13331         * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
13332         * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
13334 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
13336         * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
13338         * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
13339         SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
13341         * sysdeps/unix/sysv/linux/open64.c: New file.
13343         * sysdeps/generic/pselect.c: Add support for cancellation handling.
13344         * sysdeps/posix/open64.c: Likewise.
13345         * sysdeps/posix/sigpause.c: Likewise.
13346         * sysdeps/posix/sigwait.c: Likewise.
13347         * sysdeps/posix/system.c: Likewise.
13348         * sysdeps/posix/waitid.c: Likewise.
13349         * sysdeps/unix/sysv/linux/accept.S: Likewise.
13350         * sysdeps/unix/sysv/linux/connect.S: Likewise.
13351         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
13352         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13353         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
13354         * sysdeps/unix/sysv/linux/poll.c: Likewise.
13355         * sysdeps/unix/sysv/linux/pread.c: Likewise.
13356         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
13357         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
13358         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
13359         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13360         * sysdeps/unix/sysv/linux/recv.S: Likewise.
13361         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
13362         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
13363         * sysdeps/unix/sysv/linux/send.S: Likewise.
13364         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
13365         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
13366         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
13367         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
13368         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
13369         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
13370         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
13371         * sysdeps/unix/sysv/linux/wait.c: Likewise.
13372         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
13373         * sysdeps/unix/sysv/linux/writev.c: Likewise.
13374         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
13375         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
13377 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
13379         * sysdeps/generic/sysdep-cancel.h: New file.
13380         * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
13381         cancelable syscall.
13382         * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
13383         recvmsg, send, sendmsg, sendto): Make cancelable.
13384         * sysdeps/unix/mman/syscalls.list (msync): Likewise.
13385         * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
13386         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
13387         sendto, osf_select): Likewise.
13388         * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
13389         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
13390         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
13391         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
13392         sendto): Likewise.
13393         * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
13394         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
13395         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
13396         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
13397         sendto): Likewise.
13398         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
13399         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
13400         sendto, select): Likewise.
13401         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
13402         pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
13403         Likewise.
13404         * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
13405         select, fcntl): Likewise.
13406         * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
13407         * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
13408         read, readv, select, sigsuspend, write, writev): Likewise.
13410 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
13412         * dirent/bug-readdir1.c: Include unistd.h.
13414 2002-12-13  Jakub Jelinek  <jakub@redhat.com>
13416         * locale/programs/locale.c: Include locarchive.h.
13417         (ARCHIVE_NAME): Define.
13418         (write_archive_locales): New function.
13419         (write_locales): Use it.  Ensure the same locale is not printed
13420         multiple times in verbose mode.
13421         Mode LC_IDENTIFICATION and LC_CTYPE printing into...
13422         (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
13423         functions.
13424         (struct nameent): New type.
13425         (nameentcmp): New function.
13427 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
13429         * posix/regex_internal.c (re_string_context_at): Guard wide char
13430         code with #ifdef RE_ENABLE_I18N.
13432 2002-11-22  Paolo Bonzini  <bonzini@gnu.org>
13434         * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
13436 2002-12-13  Roland McGrath  <roland@redhat.com>
13438         * posix/bug-regex15.c: New file.
13439         * posix/Makefile (tests): Add it.
13441         * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
13442         (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
13444 2002-12-13  Ulrich Drepper  <drepper@redhat.com>
13446         * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
13448         * misc/syslog.c (log_cleanup): Don't use parameter in
13449         __libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
13450         pass NULL instead of a pointer to syslog_lock.
13452 2002-12-12  Ulrich Drepper  <drepper@redhat.com>
13454         * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
13455         linker map for all iconv modules.
13456         (distribute): Add gconv.map.
13457         * iconvdata/gconv.map: New file.
13459         * elf/Makefile: Also check all iconv modules for text relocations.
13461         * stdlib/Makefile: Remove code to automatically import GMP.
13463         * elf/Makefile (tests): Add rules to build and run check-textrel.
13464         * elf/check-textrel.c: New file.
13466         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
13467         directive.
13469 2002-12-11  Jakub Jelinek  <jakub@redhat.com>
13471         * io/test-utime (main): If stnow.st[am]time is wrong, print it and
13472         not st.st[am]time.
13474 2002-04-30  Bruno Haible  <bruno@clisp.org>
13476         * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
13477         the encoding if it already has slashes.
13478         Reported by Perry Rapp <prapp@erols.com>.
13480 2002-12-11  Roland McGrath  <roland@redhat.com>
13482         * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
13483         (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
13484         Turn off PIC for compiling this file.
13486 2002-12-11  Ulrich Drepper  <drepper@redhat.com>
13488         * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
13489         definitions.  Not needed.
13490         [_LIBC]: Use definitions from libc-lock.h instead of referencing
13491         pthread routines directly.
13492         * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
13493         mutex_init calls.
13494         (arena_get2): Don't look at return value of mutex_lock.
13496 2002-12-11  Roland McGrath  <roland@redhat.com>
13498         * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
13499         elf-init.o instead of compiling a PIC version.
13501 2002-12-11  Bruno Haible  <bruno@clisp.org>
13503         * intl/gettext.h: Renamed to ...
13504         * intl/gmo.h: ... here.
13505         * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
13506         * intl/gettextP.h: Update.
13507         * intl/loadmsgcat.c: Update.
13509         * intl/gettextP.h (PARAMS): Make more portable.
13510         (attribute_hidden): Define as empty macro if not already defined.
13511         * intl/hash-string.h (PARAMS): Make more portable.
13512         * intl/loadinfo.h (PARAMS): Likewise.
13513         * intl/plural-exp.h (PARAMS): Likewise.
13514         (attribute_hidden): Move definition near the definition of
13515         internal_function.
13517         * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
13518         * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
13520 2002-07-13  Bruno Haible  <bruno@clisp.org>
13522         * intl/dcigettext.c (freea): New macro.
13523         (FREE_BLOCKS): Free also the registered blocks.
13524         (DCIGETTEXT): Free the 'search' variable.
13525         Reported by Andreas Fischer <a.fischer@asentics.de>.
13527 2002-04-27  Bruno Haible  <bruno@clisp.org>
13529         * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
13530         * intl/dcigettext.c: Likewise.
13531         * intl/dcgettext.c: Likewise.
13532         * intl/dgettext.c: Likewise.
13533         * intl/gettext.c: Likewise.
13534         * intl/dcngettext.c: Likewise.
13535         * intl/dngettext.c: Likewise.
13536         * intl/ngettext.c: Likewise.
13537         * intl/textdomain.c: Likewise.
13538         * intl/bindtextdom.c: Likewise.
13539         * intl/plural-exp.h: Likewise.
13541 2002-01-02  Bruno Haible  <bruno@clisp.org>
13543         * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
13545 2001-04-30  Bruno Haible  <bruno@clisp.org>
13547         * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
13548         default macro definitions.  Needed for mingw32.
13550 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
13552         * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
13553         __builtin_constant_p to macro parameter.
13555         * sysdeps/generic/sigpause.c: Define all functions as weak.
13556         * sysdeps/posix/sigpause.c: Likewise.
13558         * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
13559         type size_t.
13561 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
13563         * elf/tst-array1.c (preinit_array, init_array, fini_array):
13564         Explicitly align the array to sizeof (void *).
13565         * elf/tst-array2dep.c (init_array, fini_array): Likewise.
13567         * include/libc-symbols.h: Fix a comment typo.
13569         * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
13570         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
13571         Likewise.
13572         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
13573         Likewise.
13574         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
13575         (__libc_sigsuspend): Likewise.
13576         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
13577         (__libc_sigsuspend): Likewise.
13578         * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
13579         (creat): New weak alias.
13581 2002-12-10  Roland McGrath  <roland@redhat.com>
13583         * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
13584         contributes a manual chapter.
13585         * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
13586         around xref to it.
13588         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
13589         and move contents to ...
13590         (EXTRA_LD_ENVVARS_LINUX): ... this new macro.  Add break for nonmatch.
13591         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
13592         it instead of duplicating its contents.
13593         (EXTRA_LD_ENVVARS): Likewise.  Add break for nonmatch.
13595 2002-12-09  Jakub Jelinek  <jakub@redhat.com>
13597         * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
13598         defined.
13599         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
13600         function.
13601         (EXTRA_LD_ENVVARS): Use it.
13602         (DL_OSVERSION_INIT): Define.
13603         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
13604         dl-librecon.h.
13605         (EXTRA_LD_ENVVARS): Undef before defining.  Use _dl_osversion_init.
13607 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
13609         * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
13611         * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
13612         call.  It is not allowed to destroy pthread mutexes which are
13613         still in use even though it is safe for our implementations.  If
13614         somebody still uses the descriptor it is a bug.
13616 2002-12-09  Richard Henderson  <rth@redhat.com>
13618         * csu/abi-note.S: Use .p2align, not .align.
13620 2002-12-09  Ulrich Drepper  <drepper@redhat.com>
13622         * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
13623         __libc_select aliases.
13625         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
13626         alias.
13628         * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
13630         * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
13632         * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
13634         * sysdeps/unix/syscalls.list: Define __libc_select alias.
13636         * sysdeps/posix/waitid.c: Define __libc_waitid alias.
13638         * sysdeps/posix/sigpause.c: Define __libc_sigpause and
13639         __libc___xpg_sigpause aliases.
13641         * sysdeps/generic/pselect.c: Define __libc_pselect alias.
13643         * misc/error.c: Remove use of USE_IN_LIBIO.
13645 2002-12-08  Roland McGrath  <roland@redhat.com>
13647         * elf/Makefile (tests): Uncomment tst-array[123].
13648         * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
13649         * csu/elf-init.c: New file.
13650         * csu/Makefile (routines, static-only-routines): Add elf-init.
13651         * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
13652         and __libc_csu_fini in place of _fini.
13653         * sysdeps/arm/elf/start.S: Likewise.
13654         * sysdeps/cris/elf/start.S: Likewise.
13655         * sysdeps/hppa/elf/start.S: Likewise.
13656         * sysdeps/i386/elf/start.S: Likewise.
13657         * sysdeps/ia64/elf/start.S: Likewise.
13658         * sysdeps/m68k/elf/start.S: Likewise.
13659         * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
13660         * sysdeps/mips/elf/start.S: Likewise.
13661         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
13662         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
13663         * sysdeps/s390/s390-32/elf/start.S: Likewise.
13664         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13665         * sysdeps/sh/elf/start.S: Likewise.
13666         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13667         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13668         * sysdeps/x86_64/elf/start.S: Likewise.
13670         * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
13671         struct containing function ptr and value, free it.
13672         (__aio_notify_only): Allocate that and copy values from SIGEV into it.
13673         It's not safe to let the new thread use the SIGEV pointer.
13675 2001-10-20  Paul Eggert  <eggert@twinsun.com>
13677         * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
13678         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
13679         Use strerror_r that is only a macro, even if it is not a function.
13680         (strerror): Check for HAVE_DECL_STRERROR before declaring.
13681         (private_strerror): Use prototypes, not old-style function definition.
13682         (print_errno_message): New function.
13683         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
13684         char*-flavored one.
13685         (error_tail, error, error_at_line): Use it.
13687 2002-12-07  Carlos O'Donell  <carlos@baldric.uwo.ca>
13689         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
13691 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
13693         * scripts/output-format.sed: Fix bug in one of the s expressions
13694         which used / for one too many things.
13696         * include/unistd.h: Declare __libc_close.
13698 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
13700         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
13702 2002-12-07  Roland McGrath  <roland@redhat.com>
13704         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
13705         from 2002-12-06, but remove unnecessary memset call without removing
13706         necessary copy of initialization image.
13708         * Makerules ($(common-objpfx)format.lds): New target.
13709         (common-generated): Add it.
13710         ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
13711         * scripts/output-format.sed: New file.
13712         * Makefile (distribute): Add it.
13714 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
13716         * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
13717         Reported by Art Haas <ahaas@airmail.net>.
13719 2002-12-07  Kenneth W. Chen  <kenneth.w.chen@intel.com>
13721         * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec.  Fix .recovery4.
13723 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
13725         * string/test-strncpy.c (do_random_tests): Improve test coverage.
13727 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
13729         * test-skeleton.c (timeout_handler): Allow expected signal to be
13730         SIGALRM.
13732         * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
13734         * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
13736 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
13738         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
13739         (SYSCALL_ERROR_HANDLER): Fix a pasto.
13740         Reported by Jeff Bailey <jbailey@nisa.net>.
13742 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
13744         * sysdeps/generic/libc-tls.c: Undo last patch.
13746         * include/wctype.h: Define iswalnum with libc_hidden_proto.
13748         * include/signal.h: Define raise with libc_hidden_proto.
13750         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
13751         __execve instead of snprintf and execve.
13753         * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
13754         again a bit.
13756 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
13758         * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
13759         * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
13761 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
13763         * misc/syslog.c (log_cleanup): New function.
13764         (openlog): Use log_cleanup instead of __libc_mutex_unlock.
13765         (closelog): Likewise.
13767         * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
13768         * elf/dl-iteratephdr.c: Likewise.
13769         * elf/dl-lookup.c: Likewise.
13770         * elf/dl-misc.c: Likewise.
13771         * elf/dl-open.c: Likewise.
13772         * elf/dl-support.c: Likewise.
13773         * elf/rtld.c: Likewise.
13774         * sysdeps/generic/ldsodefs.h: Likewise.
13775         * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
13776         * sysdeps/mach/bits/libc-lock.h: Likewise.
13777         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
13779 2002-12-06  Roland McGrath  <roland@redhat.com>
13781         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
13783         * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
13784         (malloc_starter, memalign_starter, free_starter): Don't define these.
13785         * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
13786         Don't declare them either.
13787         * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
13788         __pthread_initialize, so no need to set hooks to *_starter.
13789         (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
13790         [_LIBC && SHARED && USE_TLS && !USE___THREAD]
13791         (__libc_malloc_pthread_startup): New function.
13792         * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
13794         * malloc/hooks.c (memalign_starter): New function.
13795         * malloc/malloc.c: Declare it.
13796         * malloc/arena.c (save_memalign_hook): New variable.
13797         (ptmalloc_init): Set __memalign_hook to memalign_starter.
13799         * elf/dl-minimal.c (free): Clear the memory.
13800         (calloc): Just call malloc, knowing all memory it returns is cleared.
13802         * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
13803         malloc and memset; calloc can avoid the zeroing when redundant.
13804         (_dl_tls_setup): Likewise.
13805         * elf/dl-load.c (decompose_rpath): Likewise.
13806         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
13807         call, since memory from sbrk at startup is already zero.
13809         * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
13810         error string for failure, null for success.  Update callers.
13811         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
13812         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
13814 2002-12-05  Jakub Jelinek  <jakub@redhat.com>
13816         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
13817         args to i:iipi.
13818         (readahead): Change args to i:iii.
13819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
13820         Change args to i:iii.
13821         * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
13822         args to i:iiii.
13824 2002-12-05  Roland McGrath  <roland@redhat.com>
13826         * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
13827         call all functions rather than none.
13828         Reported by Mark P. Mitchell <mark@codesourcery.com>.
13830 2002-12-04  Roland McGrath  <roland@redhat.com>
13832         * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
13833         on _nl_current_LC_* variables.
13835 2002-12-05  Ulrich Drepper  <drepper@redhat.com>
13837         * dirent/bug-readdir1.c (main): Don't call closedir, just close
13838         the file descriptor.  This is testing what the bug report was about.
13840 2002-12-04  Ulrich Drepper  <drepper@redhat.com>
13842         * po/be.po: New file.
13844         * argp/Makefile (tests): Add tst-argp1.
13846         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
13847         Change type of _attribute to void*.
13848         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
13849         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
13850         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
13851         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13852         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13854 2002-12-04  Roland McGrath  <roland@redhat.com>
13856         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
13857         members to the end, so a libpthread compiled with !USE_TLS will still
13858         find other members properly.
13860         * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
13861         operand for DEST memory.  Fix dummy input operand to use SRC.
13862         Reported by Davin McCall <davmac@ozonline.com.au>.
13864         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
13865         alignment when initializing the DTV entry.
13867         * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
13868         when TLS has not been set up, try to set it up if we can.
13869         * elf/tst-tls4.c: Revert last change.
13870         * elf/tst-tls5.c: Likewise.
13871         * elf/tst-tls6.c: Likewise.
13872         * elf/tst-tls7.c: Likewise.
13873         * elf/tst-tls8.c: Likewise.
13874         * elf/tst-tls9.c: Likewise.
13876         * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
13877         * sysdeps/generic/ldsodefs.h: Declare it.
13878         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
13879         * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
13880         function, broken out of __libc_setup_tls.
13881         (init_static_tls): Likewise.
13882         (__libc_setup_tls): Call them.
13883         (_dl_tls_setup): New function, uses new subroutines.
13885         * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
13886         Clear the pointer when returning true.
13887         (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
13888         first element of the slotinfo list too.
13890         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
13891         [SHARED].
13893         * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
13894         (_dl_determine_tlsoffset): Likewise.
13896         * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
13897         startup_error_tsd, made global.
13898         (dl_main): Update initialization.
13899         * elf/dl-tsd.c: Likewise.
13900         * sysdeps/generic/ldsodefs.h: Declare it.
13902 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
13904         * manual/texinfo.tex: Update from latest upstream version.
13906 2002-12-03  Roland McGrath  <roland@redhat.com>
13908         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
13909         area surplus in calculation for sbrk call.
13911         * iconvdata/cp1125.c: New file.
13912         * iconvdata/Makefile (distribute): Add it.
13913         (modules): Add CP1125.
13914         (gen-8bit-gap-modules): Add cp1125.
13915         * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
13916         * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
13918 2002-12-03  Andreas Jaeger  <aj@suse.de>
13920         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13922 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
13924         * sysdeps/posix/system.c (do_system): Make signal handler
13925         installation thread safe.
13927 2002-12-02  Roland McGrath  <roland@redhat.com>
13929         * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
13930         caller from EXTRA to -.
13931         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13932         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
13933         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
13935 2002-12-02  Carlos O'Donell  <carlos@baldric.uwo.ca>
13937         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
13938         bits of RM are cleared.
13940 2002-12-02  Roland McGrath  <roland@redhat.com>
13942         * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
13943         TLS setup is required.
13944         * elf/tst-tls5.c: Likewise.
13945         * elf/tst-tls6.c: Likewise.
13946         * elf/tst-tls7.c: Likewise.
13947         * elf/tst-tls8.c: Likewise.
13948         * elf/tst-tls9.c: Likewise.
13950         * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
13951         `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
13952         * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
13953         for being null before calling free_slotinfo.
13954         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
13955         dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
13957 2002-11-30  Bruno Haible  <bruno@clisp.org>
13959         * iconv/gconv.h (__gconv_btowc_fct): New typedef.
13960         (struct __gconv_step): New field __btowc_fct.
13961         * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
13962         * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
13963         __BUILTIN_TRANS.
13964         (__gconv_btwoc_ascii): New declaration.
13965         * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
13966         (__gconv_btwoc_ascii): New function.
13967         * iconv/gconv_builtin.h: Add BtowcFct argument to all
13968         BUILTIN_TRANSFORMATION invocations.
13969         * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
13970         * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
13971         * iconv/gconv_builtin.c (map): New field btowc_fct.
13972         (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
13973         btowc_fct field.
13974         (__gconv_get_builtin_trans): Initialize __btowc_fct field.
13975         * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
13976         * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
13977         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
13978         * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
13979         (gconv_init): Initialize __btowc_fct field.
13980         Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
13981         * iconv/loop.c: Document ONEBYTE_BODY.
13982         (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
13983         Undefine ONEBYTE_BODY at the end.
13984         * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
13985         * iconvdata/8bit-gap.c (NONNUL): New macro.
13986         (BODY for FROM_LOOP): Use it.
13987         (ONEBYTE_BODY): New macro.
13988         * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
13989         (NONNUL): New macro.
13990         * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
13991         * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
13992         * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
13993         * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
13994         * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
13995         * iconvdata/big5.c (ONEBYTE_BODY): New macro.
13996         * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
13997         * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
13998         * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
13999         * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
14000         * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
14001         * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
14002         * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
14003         * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
14004         * iconvdata/ibm932.c: Include <stdbool.h>.
14005         (TRUE, FALSE): Remove macros.
14006         (BODY for FROM_LOOP): Remove unused variable rp1.
14007         (ONEBYTE_BODY): New macro.
14008         (BODY for TO_LOOP): Use bool.
14009         * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
14010         * iconvdata/ibm943.c: Include <stdbool.h>.
14011         (TRUE, FALSE): Remove macros.
14012         (BODY for FROM_LOOP): Remove unused variable rp1.
14013         (ONEBYTE_BODY): New macro.
14014         (BODY for TO_LOOP): Use bool.
14015         * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
14016         * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
14017         * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
14018         * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
14019         * iconvdata/johab.c (ONEBYTE_BODY): New macro.
14020         * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
14021         * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
14022         * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
14023         * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
14024         * iconvdata/gbbig5.c: Tweak comment.
14026 2002-12-02  Ulrich Drepper  <drepper@redhat.com>
14028         * po/fi.po: Update from translation team.
14030 2002-12-01  Roland McGrath  <roland@redhat.com>
14032         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
14033         testing getdents64 return value.
14035         * scripts/versions.awk: Don't pass -n flag to sort command.
14037         * posix/bug-regex13.c: Include <string.h>.
14039         * sysdeps/generic/libc-start.c (__libc_start_main): Do
14040         DL_SYSDEP_OSCHECK here.
14041         * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
14042         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
14044         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
14045         argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
14047         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
14048         instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
14050         * include/link.h: Comment typo fix.
14052 2002-12-01  Roland McGrath  <roland@frob.com>
14054         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
14055         (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
14056         _POSIX_MEMORY_PROTECTION): Likewise.
14057         (_POSIX_POLL, _POSIX_SELECT): Removed.
14059 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
14061         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
14062         require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.
14064 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
14066         * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
14067         USE___THREAD.
14068         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
14069         "=v" constraints.
14071 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
14073         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
14074         branch prediction buffers by using unpaired call/ret.
14076 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
14078         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
14079         first parameters constraint string.
14080         (ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.
14082 2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
14084         * posix/regcomp.c (parse_expression): Set the bit since the back
14085         reference is used in the regular expression.
14086         * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
14087         of malloc failure.
14088         (re_node_set_init_copy): Likewise.
14089         * posix/regex_internal.h (state_array_t): New structure.
14090         (re_sub_match_last_t): Likewise.
14091         (re_sub_match_top_t): Likewise.
14092         (re_match_context_t): Add new members.
14093         (re_dfa_t): Likewise.
14094         * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
14095         to check the matching is really correct, and retry if failed.
14096         Move the routin pruning the impossible nodes from here, ...
14097         (prune_impossible_nodes): To this function.
14098         (check_matching): Invoke check_subexp_matching_top, and replace
14099         redundant checking with transit_state_bkref invocation.
14100         (proceed_next_node): Replace strncmp with memcmp.  Reported by
14101         Paolo Bonzini  <bonzini@gnu.org>.
14102         (update_cur_sifted_state): Remove search_subexp invocation.
14103         (search_subexp): Remove this function.
14104         (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
14105         optimization.
14106         (sift_states_bkref): Use search_cur_bkref_entry for optimization.
14107         Remove unused invocation of match_ctx_add_entry.
14108         (transit_state): Invoke check_subexp_matching_top.
14109         (check_subexp_matching_top): New function.
14110         (transit_state_bkref): Remove unused array.
14111         Merge transit_state_bkref_loop.
14112         (transit_state_bkref_loop): Use get_subexp instead of
14113         sift_states_backward.  Use search_cur_bkref_entry for optimization.
14114         Merge this function to transit_state_bkref.
14115         (get_subexp): New function.
14116         (get_subexp_sub): Likewise.
14117         (find_subexp_node): Likewise.
14118         (check_arrival): Likewise.
14119         (check_arrival_expand_ecl): Likewise.
14120         (check_arrival_expand_ecl_sub): Likewise.
14121         (expand_bkref_cache): Likewise.
14122         (match_ctx_init): Initialize new members.
14123         (match_ctx_clean): New function.
14124         (match_ctx_free): Release new members.
14125         (match_ctx_free_subtops): New function.
14126         (match_ctx_add_entry): Fix indent.
14127         (search_cur_bkref_entry): New function.
14128         (match_ctx_add_subtop): Likewise.
14129         (match_ctx_add_sublast): Likewise.
14131 2002-11-25  Ulrich Drepper  <drepper@redhat.com>
14133         * iconv/Makefile (tests): Remove tst-iconv4.c
14134         * iconv/tst-iconv4.c: Moved to...
14135         * iconvdata/tst-iconv4.c: ...here.  New file.
14136         * iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.
14138 2002-11-25  Roland McGrath  <roland@redhat.com>
14140         * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
14141         Grok AF_LINK if defined.
14142         From Momchil Velikov <velco@fadata.bg>.
14144         * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
14145         brdaddr, or dstaddr, just set those pointers to null and don't fail.
14146         Reported by Momchil Velikov <velco@fadata.bg>.
14148         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
14149         is > sizeof IFR->ifa_addr, advance past the whole longer length.
14150         (__ifreq): Count up NIFS that way too.
14151         Reported by Momchil Velikov <velco@fadata.bg>.
14153         * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
14155         * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
14156         and <fpu_control.h>.
14158 2002-11-24  Ulrich Drepper  <drepper@redhat.com>
14160         * elf/elf.h (EM_ST19): Fix typo.
14162 2002-11-25  Jakub Jelinek  <jakub@redhat.com>
14164         * include/errno.h (__set_errno): Define as errno = val
14165         unconditionally.
14167 2002-11-24  Roland McGrath  <roland@redhat.com>
14169         * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
14170         * sysdeps/posix/writev.c: Likewise.
14171         From Momchil Velikov <velco@fadata.bg>.
14173         * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
14174         calling *GL(dl_error_catch_tsd) for a thread-local location.
14175         * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
14176         (dl_main): Same for GL(dl_error_catch_tsd) initialization.
14177         * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
14179         * libio/iofflush.c: Add libc_hidden_def.
14180         * libio/iofwrite.c: Likewise.
14181         * sysdeps/generic/sigtimedwait.c: Likewise.
14182         * sysdeps/generic/sigwaitinfo.c: Likewise.
14183         * sysdeps/posix/sigwait.c: Likewise.
14184         Reported by Momchil Velikov <velco@fadata.bg>.
14186         * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
14187         to match <arpa/inet.h> declaration.
14188         * inet/inet_netof.c (inet_netof): Likewise.
14189         * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
14190         Reported by Momchil Velikov <velco@fadata.bg>.
14192         * configure.in: Skip AUTOCONF check under --without-cvs.
14193         * configure: Regenerated.
14195         * posix/Makefile (headers): Add bits/pthreadtypes.h.
14196         * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
14197         * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
14199 2002-11-24  Andreas Schwab  <schwab@suse.de>
14201         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
14202         with six arguments.
14204 2002-11-19  Jim Meyering  <jim@meyering.net>
14206         * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
14207         as `static'.
14208         * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
14210 2002-11-23  Roland McGrath  <roland@redhat.com>
14212         * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
14213         Just produce hex output for datum sizes.
14215         * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
14216         Reported by Luca Barbieri <ldb@ldb.ods.org>.
14218 2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>
14220         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
14221         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
14222         and __unused3 fields.
14223         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
14224         [__WORDSIZE == 32]: Only PPC32 requires __unused1
14225         and __unused2 fields.
14226         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
14227         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
14228         __unused3, and __unused4 fields.
14230         * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
14231         obtain lowest address for profiling in __monstartup call.
14233 2002-11-21  Roland McGrath  <roland@redhat.com>
14235         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
14236         $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
14238         * locale/localeinfo.h (struct locale_data): Revert last change.
14240         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
14241         From Ian Wienand <ianw@gelato.unsw.edu.au>.
14243         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
14244         __NR_pread64 if not defined.
14245         (__NR_pwrite): Define to __NR_pwrite64 if not defined.
14246         From Ian Wienand <ianw@gelato.unsw.edu.au>.
14248 2002-11-21  Roland McGrath  <roland@frob.com>
14250         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
14251         __libc_multiple_libcs here.  Call __setfpucw.
14253 2002-11-21  Ulrich Drepper  <drepper@redhat.com>
14255         * elf/Makefile (tests): Don't run test-arrayX tests for now.
14257         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
14258         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
14259         CLONE_CHILD_*TID flags.
14261 2002-11-20  Andreas Jaeger  <aj@suse.de>
14263         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
14264         We pass struct ucontext on x86-64.
14265         (GET_PC): Adjust.
14266         (GET_FRAME): Adjust.
14267         (GET_STACK): Adjust.
14269 2002-11-20  Roland McGrath  <roland@redhat.com>
14271         * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
14272         conditionalize [! DO_VERSIONING] #error.
14274         * scripts/abilist.awk: Grok function descriptor symbols.
14276         * intl/tst-gettext.c (main): Check return values from setlocale.
14277         Add necessary unsetenv's to make LANG=existing-locale check work.
14279         * intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
14280         so aborted prior runs don't confuse things.
14282         * locale/localeinfo.h (struct locale_data: union locale_data_value):
14283         Use uintptr_t instead of unsigned int for `word' member.
14284         (_NL_CURRENT_WORD): Cast to uint32_t.
14286         * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
14287         value.
14289 2002-11-20  Ulrich Drepper  <drepper@redhat.com>
14291         * elf/tls-macros.h: Add IA-64 definitions.
14292         Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
14294         * iconv/Makefile (tests): Add tst-iconv4.
14295         * iconv/tst-iconv4.c: New file.
14297         * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
14298         __GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
14299         __GCONV_INCOMPLETE_INPUT.
14300         (ucs4le_internal_loop): Likewise.
14301         (ucs4le_internal_loop_unaligned): Likewise.
14302         * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
14303         * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
14304         * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
14306         * iconv/loop.c (LOOPFCT): First test for empty input then for full
14307         output buffer.
14309         * inet/getnameinfo.c: Use extend_alloca where appropriate.
14310         * sysdeps/posix/getaddrinfo.c: Likewise.
14312         * include/alloca.h (extend_alloca): New define.  Based on stack
14313         direction it'll try to append to the previouls allocated buffer.
14315 2002-11-07  Thorsten Kukuk  <kukuk@suse.de>
14317         * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
14318         use the same service for AF_INET and AF_INET6.
14320 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
14322         * intl/localealias.c (read_alias_file): Use only about 400 bytes
14323         of stack space instead of 16k.
14325 2002-11-18  Wolfram Gloger  <wg@malloc.de>
14327         * malloc/arena.c
14328         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
14329         nothing if not initialized.  Bug report from Marcus Brinkmann
14330         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
14332 2002-11-19  Roland McGrath  <roland@redhat.com>
14334         * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
14335         sched_setaffinity.
14337         * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
14338         `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
14339         test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
14340         * configure: Regenerated.
14342 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
14344         * include/dlfcn.h: __libc_dlopen is now a macro calling
14345         __libc_dlopen_mode with the extra parameter RTLD_LAZY.
14346         (__libc_dlopen_mode): New prototype.
14347         * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
14348         new parameter.  Store new parameter in mode field of structure passed
14349         to do_dlopen.
14350         (struct do_dlopen_args): Add new field mode.
14351         (do_dlopen): Pass mode from parameter structure to _dl_open.
14353 2002-11-11  Randolf Chung  <tausq@debian.org>
14355         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
14356         (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
14357         * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
14359         * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
14361         * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
14362         Set -mdisable-fpregs for this file.
14364 2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
14366         * sysdeps/unix/sysv/linux/configure.in:
14367         Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
14368         from gcc-3.0 era for backwards compatibility.
14369         * sysdeps/unix/sysv/linux/configure: Regenerate.
14371         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
14372         Define mcontext_t as a sigcontext.
14374 2002-11-18  Roland McGrath  <roland@redhat.com>
14376         * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
14377         Free memory in `last_result' if it was used.
14379         * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
14380         all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
14381         Do the parsing inline instead of copying strings and calling
14382         inet_network, and properly skip all alias names not matching the form.
14384         * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
14386 2002-11-17  Ulrich Drepper  <drepper@redhat.com>
14388         * manual/pattern.texi (Wordexp Example): Fix sample code.
14390         * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
14391         childs stack which will be loaded into the %esi register.
14393 2002-11-14  Paul Eggert  <eggert@twinsun.com>
14395         * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
14396         overflow when skipping the question part and when unpacking aliases.
14398 2002-11-15  Roland McGrath  <roland@redhat.com>
14400         * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
14401         s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
14402         Instead add $(calls:s_%=m_%) to get m_* versions of them all.
14404 2002-11-15  Jakub Jelinek  <jakub@redhat.com>
14406         * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
14407         * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
14409 2002-11-15  Roland McGrath  <roland@redhat.com>
14411         * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
14412         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
14413         from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
14414         (+make-include-of-dep): New canned sequence.
14416         * stdlib/canonicalize.c (__realpath): Check for malloc failure.
14417         From Dmitry V. Levin <ldv@altlinux.org>.
14419 2002-11-14  Roland McGrath  <roland@redhat.com>
14421         * sysdeps/generic/errno.c (__libc_errno): Remove alias.
14422         * inet/herrno.c (__libc_h_errno): Likewise.
14423         * resolv/res_libc.c (__libc_res): Likewise.
14424         [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
14425         (__res_state) [! USE___THREAD]: Don't define as weak.
14426         * csu/Versions: Revert last change.
14427         * resolv/Versions: Revert last change.
14429         * Makerules ($(common-objpfx)%.make): New pattern rule.
14430         * tls.make.c: New file.
14431         * Makefile (distribute): Add it.
14433         * sysdeps/generic/errno.c [! USE___THREAD]
14434         [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
14435         with compat_symbol so they are not link-time visible.
14436         [! USE___THREAD] (__libc_errno): New alias for errno.
14437         * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
14438         Add __libc_errno here.
14439         * inet/herrno.c [USE___THREAD]: Use this conditional
14440         in place of [USE_TLS && HAVE___THREAD].
14441         [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
14442         (h_errno, _h_errno): Declare these with compat_symbol so they are not
14443         link-time visible.
14444         [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
14445         * resolv/res_libc.c [! USE___THREAD]
14446         [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
14447         (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
14448         (__libc_res): Define as alias for _res.
14449         * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
14450         Add __libc_h_errno and __libc_res here.
14452 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
14454         * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
14455         * resolv/Versions (h_errno, _res): Likewise.
14457 2002-11-14  Roland McGrath  <roland@redhat.com>
14459         * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
14460         (%.symlist): Likewise.
14462 2002-11-13  Roland McGrath  <roland@redhat.com>
14464         * scripts/abilist.awk: New file.
14465         * Makefile (distribute): Add it.
14466         * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
14467         (tests): Depend on .symlist file for each $(install-lib.so-versioned).
14468         [$(subdir) = elf] (tests): Depend on libc.symlist.
14469         (generated, common-generated): Add those files.
14471         * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
14472         * configure: Regenerated.
14473         * config.make.in (OBJDUMP): New variable, substituted by configure.
14475         * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
14476         (mallochook, reallochook): Set them up.
14477         (checkhdr): Check HDR->magic2 value.
14478         (freehook): Reset HDR->magic2.
14479         (memalignhook): New static function.
14480         (old_memalign_hook): New static variable.
14481         (mcheck, reallochook): Set __memalign_hook to memalignhook.
14483         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
14484         for the new TCB.
14486 2002-11-13  Andreas Jaeger  <aj@suse.de>
14488         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
14489         attribute.
14490         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
14492 2002-11-11  Paul Eggert  <eggert@twinsun.com>
14494         * manual/crypt.texi (Cryptographic Functions): Mention that
14495         the MD5 one-way algorithm is compatible with BSD's.
14497 2002-11-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
14499         * posix/regex_internal.c (re_string_skip_chars): Also return the last
14500         wide character.
14501         (re_string_reconstruct): Calculate the context by itself when the
14502         offset points out of the valid range.
14503         (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
14504         * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
14505         (IS_WIDE_WORD_CHAR): New macro.
14506         (IS_WIDE_NEWLINE): New macro.
14508 2002-11-12  Andreas Jaeger  <aj@suse.de>
14510         * sysdeps/x86_64/strchr.S: Don't use one register for two
14511         purposes, this fixes a bug noticed by test-strchr.c.
14513         * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
14514         correctly.
14516 2002-11-12  Roland McGrath  <roland@redhat.com>
14518         * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
14519         (_G_IO_NO_BACKWARD_COMPAT): Define it.
14521         * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
14522         instead of <pt-machine.h>.
14523         [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
14524         testandset.
14525         From Ian Wienand <ianw@gelato.unsw.edu.au>.
14527 2002-11-10  Roland McGrath  <roland@redhat.com>
14529         * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
14530         Call fputs instead of fwprintf (simpler to follow in debugger).
14532         * crypt/md5-crypt.c: Doc fix.
14534         * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
14535         the beginning of generated target commands.
14537         * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
14538         dependencies for these in case implicit rule search skipped the
14539         nonexistent source directory.
14540         * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
14541         files with $(object-suffixes) as targets too.
14542         * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
14543         and a target for it using $(make-target-directory).
14545         * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
14547 2002-11-10  Roland McGrath  <roland@frob.com>
14549         * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
14550         * sysdeps/generic/bits/pthreadtypes.h: ... here.
14552         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
14553         l_start == 0 and l_len == 1 as we do l_len == 0.
14555 2002-11-10  Ulrich Drepper  <drepper@redhat.com>
14557         * po/da.po: Update from translation team.
14559 2002-11-10  Roland McGrath  <roland@redhat.com>
14561         * config.make.in (includedir): New variable, substituted by configure.
14562         Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
14563         * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
14565 2002-11-10  Andreas Jaeger  <aj@suse.de>
14567         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
14568         REG_OLDMASK and REG_CR2 to synch with kernel header.
14569         (NGREG): Increase.
14571         * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
14572         aliasing problem.
14573         * nss/getXXbyYY_r.c (INTERNAL): Likewise.
14574         * nss/getnssent_r.c (__nss_getent_r): Likewise.
14575         (__nss_setent): Likewise.
14576         (__nss_getent_r): Likewise.
14577         * inet/getnetgrent_r.c (innetgr): Likewise.
14578         (__internal_setnetgrent_reuse): Likewise.
14579         (internal_getnetgrent_r): Likewise.
14580         * inet/ether_hton.c (ether_hostton): Likewise.
14581         * inet/ether_ntoh.c (ether_ntohost): Likewise.
14582         * sunrpc/netname.c (netname2user): Likewise.
14583         * sunrpc/publickey.c (getpublickey): Likewise.
14584         (getsecretkey): Likewise.
14586 2002-11-09  Marcus Brinkmann  <marcus@gnu.org>
14588         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
14589         error in range calculation.
14591 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
14593         * string/test-strspn.c (do_test): Ensure zero termination.
14594         * string/test-strpbrk.c (do_test): Likewise.
14595         * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
14596         * string/test-strncpy.c (stupid_strncpy): Likewise.
14597         * string/test-stpncpy.c (stupid_stpncpy): Likewise.
14599 2002-10-08  Roland McGrath  <roland@redhat.com>
14601         * string/test-string.h (test_init): Fill BUF1 and BUF2 with
14602         nonzero characters.
14604 2002-09-22  H.J. Lu  <hjl@gnu.org>
14606         * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
14607         from PAGE_SHIFT.  Define if not defined.  Check MMAP2_PAGE_SHIFT
14608         only if __NR_mmap2 is defined.
14610         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
14611         * sysdeps/unix/sysv/linux/mmap64.c: ... here.
14612         * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
14613         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
14615 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
14617         * posix/bug-regex13.c (tests): Add new test.
14619         * string/test-strchr.c (stupid_strchr): New function.
14620         (do_random_tests): Make sure the string is zero terminated.
14621         * string/test-strpbrk.c (stupid_strpbrk): New function.
14622         (do_random_tests): Make sure the string is zero terminated.
14623         * string/test-strcmp.c (stupid_strcmp): New function.
14624         (do_random_tests): Make sure the strings are zero terminated.
14625         * string/test-strspn.c (stupid_strspn): New function.
14626         (simple_strspn): Rename rej argument to acc.
14627         (do_random_tests): Make sure the string is zero terminated.
14628         * string/test-strcspn.c (stupid_strcspn): New function.
14629         * string/test-strncpy.c (stupid_strncpy): New function.
14630         * string/test-stpncpy.c (stupid_stpncpy): New function.
14631         * string/test-strncmp.c (stupid_strncmp): New function.
14632         (do_random_tests): Make sure the strings are zero terminated.
14633         * string/test-string.h (impl_t): Change test into long.
14634         (IMPL): Add __attribute__((aligned (sizeof (void *)))).
14636 2002-11-08  Roland McGrath  <roland@redhat.com>
14638         * sysdeps/ia64/elf/configure.in: Add TLS check.
14639         From Ian Wienand <ianw@cse.unsw.edu.au>.
14640         * sysdeps/ia64/elf/configure: Regenerated.
14642 2002-11-07  Roland McGrath  <roland@redhat.com>
14644         * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
14645         place of _IO_new_do_write.
14646         [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
14647         #undef before versioned_symbol use.
14649 2002-11-07  Richard Henderson  <rth@redhat.com>
14651         * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
14652         * configure: Regenerated.
14653         * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
14654         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
14655         (RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
14656         _dl_fini via gp-relative relocations.
14657         * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
14659         * elf/tls-macros.h: Add alpha versions.
14660         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
14661         * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
14662         * sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
14663         * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
14664         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
14665         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
14666         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
14667         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
14668         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
14669         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
14670         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
14671         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
14672         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
14673         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
14674         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
14675         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
14676         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
14677         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
14679         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
14680         Kill argument registers across the inline syscall.
14682         * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
14684         * linuxthreads/sysdeps/alpha/tls.h: New file.
14685         * sysdeps/alpha/dl-tls.h: New file.
14687 2002-10-29  David Mosberger  <davidm@hpl.hp.com>
14689         * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
14690         (gmon_initializer): New function.
14691         (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
14692         __gmon_start__ here.  Call it from gmon_initializer() instead.
14694 2002-03-12  H.J. Lu  <hjl@gnu.org>
14696         * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
14697         tst-array2, and tst-array3.
14698         [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
14699         [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
14700         ($(objpfx)tst-array1.out): New target.
14701         ($(objpfx)tst-array2): Likewise.
14702         ($(objpfx)tst-array2.out): Likewise.
14703         ($(objpfx)tst-array3.out): Likewise.
14704         * elf/tst-array1.c: New file.
14705         * elf/tst-array1.exp: Likewise.
14706         * elf/tst-array2.c: Likewise.
14707         * elf/tst-array2dep.c: Likewise.
14708         * elf/tst-array2.exp: Likewise.
14709         * elf/tst-array3.c: Likewise.
14711 2002-10-28  David Mosberger  <davidm@hpl.hp.com>
14713         * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
14714         Don't add L->l_addr to array entry values.
14716 2002-11-07  Jakub Jelinek  <jakub@redhat.com>
14718         * string/test-string.h: New file.
14719         * string/test-strlen.c: New file.
14720         * string/test-string.h: New file.
14721         * string/test-strcmp.c: New file.
14722         * string/test-strchr.c: New file.
14723         * string/test-strrchr.c: New file.
14724         * string/test-strcpy.c: New file.
14725         * string/test-stpcpy.c: New file.
14726         * string/test-strncpy.c: New file.
14727         * string/test-stpncpy.c: New file.
14728         * string/test-strpbrk.c: New file.
14729         * string/test-strcspn.c: New file.
14730         * string/test-strspn.c: New file.
14731         * string/test-strcat.c: New file.
14732         * string/test-strncmp.c: New file.
14733         * string/test-memchr.c: New file.
14734         * string/test-memcmp.c: New file.
14735         * string/test-memset.c: New file.
14736         * string/test-memcpy.c: New file.
14737         * string/test-mempcpy.c: New file.
14738         * string/test-memmove.c: New file.
14739         * string/Makefile (strop-tests): New variable.
14740         (tests): Add strop-tests.
14741         (distribute): Add test-string.h.
14743 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
14745         * posix/regcomp.c: Use tabs instead of spaces.
14746         * posix/regexec.c: Likewise.
14747         * posix/regex_internal.h: Likewise.
14749         * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
14751 2002-11-06  Jakub Jelinek  <jakub@redhat.com>
14753         * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
14754         here.
14755         (regcomp): Don't set can_be_null here.
14756         (re_comp): Clear whole re_comp_buf with the exception of fastmap.
14757         (re_compile_internal): Clear can_be_null, set regs_allocated.
14759         * posix/regcomp.c (re_set_fastmap): New function.
14760         (re_compile_fastmap_iter): Use it.  Remove redundant type ==
14761         COMPLEX_BRACKET check.
14762         * posix/regexec.c (re_search_internal): Optimize searching with
14763         fastmap.  Call re_string_reconstruct even if match_first is
14764         smaller than raw_mbs_idx.
14766 2002-11-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
14768         * posix/regcomp (free_dfa_content): Use free_state.
14769         * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
14770         pointers in case that realloc failed.
14771         (re_node_set_merge): Likewise.
14772         (register_state): Likewise.
14773         (create_newstate_common): Invoke memory release functions in case of
14774         error conditions.
14775         (create_ci_newstate): Likewise.
14776         (create_cd_newstate): Likewise.
14777         (free_state): New function.
14778         * posix/regexec.c (re_search_internal): Invoke memory release
14779         functions in case of error conditions.
14780         (sift_states_backward): Likewise.
14781         (merge_state_array): Likewise.
14782         (add_epsilon_src_nodes): Likewise.
14783         (sub_epsilon_src_nodes): Likewise.
14784         (search_subexp): Likewise.
14785         (sift_states_bkref): Likewise.
14786         (transit_state_sb): Likewise.
14787         (transit_state_mb): Likewise.
14788         (transit_state_bkref_loop): Likewise.
14789         (group_nodes_into_DFAstates): Likewise.
14790         (push_fail_stack): Don't edit pointers in case that realloc failed.
14791         (extend_buffers): Likewise.
14792         (match_ctx_add_entry): Likewise.
14794 2002-11-06  Roland McGrath  <roland@redhat.com>
14796         * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
14797         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
14799         * configure.in: Add checks on as and ld for binutils 2.13 or later.
14800         * configure: Regenerated.
14802 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
14804         * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
14805         If re_compile_internal failed free fastmap buffer.
14806         (free_dfa_content): Broken out of regfree function.  Frees all dfa
14807         related data.
14808         (regfree): Add free_dfa_content.
14809         (re_compile_internal): If any of the called functions fails free
14810         all dfa related memory.
14812 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
14814         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
14815         warnings from the kernel headers.
14817 2002-11-05  Roland McGrath  <roland@redhat.com>
14819         * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
14820         From Johannes Stezenbach <js@convergence.de>.
14822         * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
14823         #errlist-compat magic comment to give 123 as size.
14824         (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
14825         (libc: GLIBC_2.2): ... here.
14826         (libc: GLIBC_2.3): Likewise.
14828 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
14830         * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
14831         which happens at the beginning so that we can unload modules in
14832         __libc_freeres.
14834 2002-11-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14836         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
14837         under [__USE_MISC || _ASM].
14839         * elf/elf.h: Remove the obsolete SH TLS relocations.
14841 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
14843         * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
14845 2002-11-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
14848         __NR_pread64 and __NR_pwrite64.
14849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14850         * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
14851         and __NR_pwrite64.
14852         Revert change to use INLINE_SYSCALL.
14853         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14854         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
14855         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14856         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
14857         INLINE_SYSCALL.
14858         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
14860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14861         Update clobber list and add a comment about the syscall ABI.
14863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
14864         s_pwrite64, s_ftruncate, s_truncate): Re-add.
14866 2002-11-05  Jakub Jelinek  <jakub@redhat.com>
14868         * iconv/gconv_dl.c (free_mem): Clear loaded.
14869         * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
14870         cleanup if any.
14872 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
14874         * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
14876         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
14877         as old code without locking.  _IO_seekoff calls this function after
14878         locking the stream.
14879         * libio/ioseekpos.c: Likewise for _IO_seekpos.
14880         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
14881         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
14882         prototypes.
14883         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
14884         of _IO_seekoff_internal.
14885         (_IO_rewind): Likewise.
14886         * libio/ioftell.c: Likewise.
14887         * libio/ftello.c: Likewise.
14888         * libio/ftello64.c: Likewise.
14889         * libio/iofgetpos.c: Likewise.
14890         * libio/iofgetpos64.c: Likewise.
14891         * libio/oldiofgetpos.c: Likewise.
14892         * libio/oldiofgetpos64.c: Likewise.
14893         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
14894         _IO_seekpos_internal.
14895         * libio/iofsetpos64.c: Likewise.
14896         * libio/oldiofsetpos.c: Likewise.
14897         * libio/oldiofsetpos64.c: Likewise.
14899 2002-11-04  Roland McGrath  <roland@redhat.com>
14901         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
14902         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
14903         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
14904         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
14905         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14906         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
14907         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14908         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
14909         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
14910         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
14911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
14912         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
14913         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
14914         Remove these, no longer used.
14916 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
14919         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
14920         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
14921         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
14922         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
14923         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
14924         syscall stubs.
14926         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
14927         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
14928         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
14929         and __NR_pread.
14930         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
14931         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
14932         and __NR_pwrite.
14933         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
14935 2002-11-03  Roland McGrath  <roland@redhat.com>
14937         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
14938         `_dl_tls_static_used'.
14939         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
14940         (__libc_setup_tls): Initialize it.  Let the initial value of
14941         _dl_tls_static_size indicate some surplus space in the computed value.
14942         * elf/dl-open.c (_dl_tls_static_size): New variable.
14943         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
14944         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
14945         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
14946         (CHECK_STATIC_TLS): Use it.
14947         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
14948         closed objects occupied a trailing contiguous chunk of static TLS area.
14950 2002-10-18  Bruno Haible  <bruno@clisp.org>
14952         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
14954 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
14956         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
14957         _wide_data->_IO_read_end if adjustment can be made in the current
14958         buffer.
14960         * sysdeps/unix/sysv/linux/fexecve.c: New file.
14962         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
14963         wide oriented streams are used.
14965         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
14966         service hasn't been used [PR libc/4744].
14968         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
14969         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
14971         * manual/examples/dir.c: Don't include <stddef.h>.
14972         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
14973         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
14975 2002-11-02  H.J. Lu  <hjl@gnu.org>
14977         * stdio-common/reg-printf.c: Include <stddef.h>.
14979 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
14981         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
14983         * po/ca.po: Update from translation team.
14984         * po/es.po: Likewise.
14986         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
14987         is defined write out memory map.
14988         * sysdeps/unix/sysv/linux/segfault.c: New file.
14990 2002-11-02  Roland McGrath  <roland@redhat.com>
14992         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
14993         pointers that can alias.
14994         Reported by Daniel Jacobowitz <drow@mvista.com>.
14996         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
14998 2002-11-02  Roland McGrath  <roland@redhat.com>
15000         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
15001         description to be clearer and to say that *RESULT is set to ENTRY.
15003 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
15005         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
15006         dests_ch arrays together.  Alloca or malloc dest_states,
15007         dest_states_word and dest_states_nl arrays together.  Free memory on
15008         error exit.
15010 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
15012         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
15013         and current_saltbits.
15015 2002-11-02  Roland McGrath  <roland@redhat.com>
15017         * stdio-common/reg-printf.c: Include <stdlib.h>.
15019 2002-11-02  H.J. Lu  <hjl@gnu.org>
15021         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
15022         caller to EXTRA instead of execve.
15024 2002-11-01  Roland McGrath  <roland@redhat.com>
15026         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
15027         in place of [!(USE_TLS && HAVE___THREAD)].
15028         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
15030 2002-10-31  Roger Sayle  <roger@eyesopen.com>
15032         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
15033         New macros.
15034         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
15036         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
15037         without defining FP_ROUNDMODE.
15039 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
15041         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
15042         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
15043         declare_symbol.
15044         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
15045         (OLD_SIGLIST_SIZE): Define.
15046         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
15047         (OLD_SIGLIST_SIZE): Define.
15048         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
15050 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
15052         * sysdeps/ia64/strncpy.S: Fix recovery code.
15054 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
15056         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
15057         New macros.
15058         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
15059         text_set_element.
15060         * elf/dl-libc.c (free_mem): Likewise.
15061         * iconv/gconv_conf.c (free_mem): Likewise.
15062         * iconv/gconv_db.c (free_mem): Likewise.
15063         * iconv/gconv_dl.c (free_mem): Likewise.
15064         * iconv/gconv_cache.c (free_mem): Likewise.
15065         * intl/finddomain.c (free_mem): Likewise.
15066         * intl/dcigettext.c (free_mem): Likewise.
15067         * locale/setlocale.c (free_mem): Likewise.
15068         * misc/fstab.c (fstab_free): Likewise.
15069         * nss/nsswitch.c (free_mem): Likewise.
15070         * posix/regcomp.c (free_mem): Likewise.
15071         * resolv/gai_misc.c (free_res): Likewise.
15072         * stdlib/fmtmsg.c (free_mem): Likewise.
15073         * sunrpc/clnt_perr.c (free_mem): Likewise.
15074         * sysdeps/generic/setenv.c (free_mem): Likewise.
15075         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
15076         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
15077         * time/tzset.c (free_mem): Likewise.
15078         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
15079         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
15080         * malloc/set-freeres.c (__libc_freeres): Likewise.
15082         * login/getutent.c: Include stdlib.h instead of stddef.h.
15083         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
15084         (__getutent): Allocate buffer the first time it is run.
15085         * login/getutid.c: Include stdlib.h instead of stddef.h.
15086         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
15087         (__getutid): Allocate buffer the first time it is run.
15088         * login/getutline.c: Include stdlib.h instead of stddef.h.
15089         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
15090         (__getutline): Allocate buffer the first time it is run.
15091         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
15092         (mtrace): Allocate malloc_trace_buffer.
15093         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
15094         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
15095         * string/strerror.c: Include libintl.h and errno.h.
15096         (buf): New variable.
15097         (strerror): Only allocate buffer if actually needed (unknown error).
15098         * time/tzfile.c (transitions): Add libc_freeres_ptr.
15099         (freeres): Remove.
15101 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
15103         * include/libc-symbols.h (libc_freeres_ptr): New macro.
15104         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
15105         symbol_set_define.
15106         (__libc_freeres): Free all pointers in that section.
15107         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
15108         commands when creating .lds script.
15109         (LDSEDCMD-c.so): New variable.
15110         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
15111         (rcmd_af): Use strdup to allocate ahostbuf.
15112         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
15113         (rexec_af): Use strdup to allocate ahostbuf.
15114         * stdio-common/reg-printf.c (printf_funcs): Remove.
15115         (__printf_arginfo_table): Change into printf_arginfo_function **.
15116         Add libc_freeres_ptr.
15117         (__register_printf_function): Allocate __printf_arginfo_table
15118         and __printf_function_table the first time it is called.
15119         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
15120         printf_arginfo_function **.
15121         (parse_one_spec): Add __builtin_expect.
15122         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
15123         (free_mem): Remove.
15124         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
15125         (free_mem): Remove.
15126         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
15127         (string_space, map): Add libc_freeres_ptr.
15128         (free_mem): Remove.
15129         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
15130         (free_mem): Remove.
15131         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
15132         (free_mem): Remove.
15133         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
15134         (buffer): Add libc_freeres_ptr.
15135         (free_mem): Remove for _LIBC.
15136         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
15137         (free_mem): Remove.
15138         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
15139         (free_mem): Remove.
15140         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
15141         (free_mem): Remove.
15142         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
15143         (free_mem): Remove.
15144         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
15145         (free_mem): Remove.
15146         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
15147         (free_mem): Remove.
15148         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
15149         libc_freeres_ptr.
15150         (free_mem): Remove.
15151         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
15152         libc_freeres_ptr.
15153         (free_mem): Remove.
15155 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
15157         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
15158         instead of duplicating the whole function in libc.
15160 2002-10-31  Roland McGrath  <roland@redhat.com>
15162         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
15163         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
15165 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
15167         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
15168         32bit-predefine when creating .new32 list and -U for each
15169         32bit-predefine when creating .new64 list.
15170         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
15172 2002-10-29  Andreas Schwab  <schwab@suse.de>
15174         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
15175         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
15177 2002-10-25  Roland McGrath  <roland@redhat.com>
15179         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
15180         * sysdeps/unix/sysv/linux/configure: Regenerated.
15182         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
15183         _dl_starting_up decl.
15185 2002-10-20  H.J. Lu  <hjl@gnu.org>
15187         * sysdeps/unix/sysv/linux/configure.in: Don't check
15188         /lib/modules/`uname -r`/build/include for kernel headers if
15189         cross compiling.
15190         * sysdeps/unix/sysv/linux/configure: Regenerated.
15192 2002-10-25  Roland McGrath  <roland@redhat.com>
15194         * math/math.h (M_LOG2El): Correct the value.
15195         From Stephen L Moshier <steve@moshier.net>.
15197         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
15198         conditional from __libc_multiple_libcs access.  Remove kludge for weak
15199         symbol access with old compilers we no longer support.
15200         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
15201         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
15203 2002-10-25  Roland McGrath  <roland@redhat.com>
15205         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
15206         implement SV_RESETHAND by translating it to SA_RESETHAND.
15208 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
15210         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
15211         type on ELF64 platforms.
15213 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
15215         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
15217         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
15219 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
15221         * elf/dl-misc.c: Include <sysdep.h>.
15222         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
15224         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
15225         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
15226         (INLINE_SYSCALL): Use that.
15227         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
15228         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
15229         (INLINE_SYSCALL): Use that.
15230         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
15231         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
15232         (INLINE_SYSCALL): Use that.
15233         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
15234         dl-sysdep.h.
15235         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
15236         (__INTERNAL_SYSCALL_STRING): Define.
15237         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15238         dl-sysdep.h.
15239         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
15240         (__INTERNAL_SYSCALL_STRING): Define.
15241         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
15242         __SYSCALL_STRING to inline_syscall*.
15243         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
15244         New macros.
15245         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
15246         inline_syscall4, inline_syscall5, inline_syscall6): Add string
15247         argument.
15249 2002-10-24  Roland McGrath  <roland@redhat.com>
15251         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
15252         * sysdeps/unix/sysv/linux/init-first.c: Not here.
15253         * sysdeps/powerpc/elf/libc-start.c: Or here.
15254         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
15255         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
15256         * sysdeps/unix/sysv/aix/init-first.c: Or here.
15257         * sysdeps/generic/libc-start.c: Or here.
15258         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
15259         access with [! SHARED].
15260         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
15262         * libio/bug-wfflush.c: New file.
15263         * libio/Makefile (tests): Add bug-wfflush.
15265 2002-10-23  Roland McGrath  <roland@redhat.com>
15267         * stdio-common/tst-fphex.c: New file.
15268         * stdio-common/Makefile (tests): Add tst-fphex.
15269         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
15270         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
15271         chars always before the value digits.
15272         Reported by James Antill <james.antill@redhat.com>.
15274 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
15276         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
15277         (free_mem): New function.
15278         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
15279         if not cross compiling.
15280         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
15281         (bug-regex14-ENV): Set.
15282         (bug-regex14-mem): New target.
15283         * posix/bug-regex14.c: New file.
15285 2002-10-23  Roland McGrath  <roland@redhat.com>
15287         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
15288         target, so we don't touch it when the link fails.
15290         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
15291         Check for the result overflowing off_t and fail with EOVERFLOW.
15292         * libio/ioftell.c (_IO_ftell): Likewise.
15293         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
15295         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
15296         use a temporary timeval on the stack for gettimeofday and copy it.
15297         * login/logout.c (logout): Likewise.
15298         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
15300         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
15301         Use __SWORD_TYPE instead of int for member types.
15302         (struct statfs64): Likewise.
15303         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
15304         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
15305         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
15306         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
15307         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
15309         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
15310         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
15311         (ST_NODIRATIME): Restore fixed value of 2048.
15312         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
15313         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
15315         Rearranged <bits/types.h> definitions to reduce duplication.
15316         * sysdeps/generic/bits/types.h: Rewritten, using macros from
15317         <bits/wordsize.h> and new header <bits/typesizes.h>.
15318         * posix/Makefile (headers): Add bits/typesizes.h here.
15319         * sysdeps/generic/bits/typesizes.h: New file.
15320         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
15321         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
15322         * sysdeps/mach/hurd/bits/typesizes.h: New file.
15323         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
15324         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
15325         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
15326         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
15327         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
15328         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
15329         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
15330         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
15331         <bits/pthreadtypes.h> here, not in <bits/types.h>.
15332         * signal/signal.h: Likewise.
15334         * streams/stropts.h: Include <bits/xtitypes.h>.
15335         * streams/Makefile (headers): Add bits/xtitypes.h here.
15336         * sysdeps/generic/bits/xtitypes.h: New file.
15337         * sysdeps/s390/bits/xtitypes.h: New file.
15338         * sysdeps/ia64/bits/xtitypes.h: New file.
15339         * sysdeps/x86_64/bits/xtitypes.h: New file.
15341         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
15342         * sysdeps/generic/bits/ipctypes.h: New file.
15343         * sysdeps/mips/bits/ipctypes.h: New file.
15344         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
15345         * sysdeps/gnu/bits/msq.h: Likewise.
15346         * sysvipc/sys/ipc.h: Likewise.
15348 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
15350         * elf/dl-load.c (struct filebuf): For buf element to have the
15351         alignment of ElfXX_Ehdr since this is what will be stored in it.
15353 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
15355         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
15356         into pointer to locrec_offset.
15357         (add_locale_to_archive): Adjust callers.  Free normalized_name right
15358         before returning, not immediately after add_locale, pass it to
15359         add_alias if not NULL instead of name.  Rename second normalized_name
15360         occurence to nnormalized_codeset_name.
15362         * locale/programs/locarchive.c (enlarge_archive): Make sure
15363         string_size is always a multiple of 4.
15364         Reported by Andreas Schwab <schwab@suse.de>.
15366 2002-10-21  Andreas Schwab  <schwab@suse.de>
15368         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
15369         caller to EXTRA instead of execve, since the latter has a
15370         higher-priority implementation in linuxthreads.
15372 2002-10-21  Roland McGrath  <roland@redhat.com>
15374         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
15375         slotinfo list's len member to the proper size, not just 1.
15376         Initialize static_map.l_tls_initimage.
15378         * elf/dl-open.c (dl_open_worker): Fix loop searching for
15379         dtv_slotinfo_list element containing new modules' l_tls_modid.
15381         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
15382         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
15383         * elf/Makefile (tests): Add tst-tls9.
15384         (tests-static): Add tst-tls9-static.
15385         (tst-tls9-static-ENV): New variable.
15386         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
15388         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
15389         modids used by partially loaded modules being closed can't be known.
15391 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
15393         * posix/Makefile: Add a test case for the bug reported by Aharon
15394         Robbins <arnold@skeeve.com>.
15395         * posix/bug-regex13.c: New file.
15396         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
15398 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
15400         * csu/gmon-start.c: Pretty printing.
15402 2002-10-19  Art Haas  <ahaas@neosoft.com>
15404         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
15405         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
15406         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
15407         * configure: Regenerated.
15409 2002-10-19  Roland McGrath  <roland@redhat.com>
15411         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
15412         and then set $subdirs directly, because the new Autoconf breaks
15413         compatibility in every way imaginable and insists on whining
15414         about usage that worked since the dawn of time.
15415         * configure: Regenerated.
15417         * configure: Regenerated (using Autoconf 2.54).
15418         * sysdeps/alpha/elf/configure: Likewise.
15419         * sysdeps/generic/configure: Likewise.
15420         * sysdeps/i386/elf/configure: Likewise.
15421         * sysdeps/ia64/elf/configure: Likewise.
15422         * sysdeps/mach/hurd/configure: Likewise.
15423         * sysdeps/mach/configure: Likewise.
15424         * sysdeps/unix/configure: Likewise.
15425         * sysdeps/unix/common/configure: Likewise.
15426         * sysdeps/unix/sysv/aix/configure: Likewise.
15427         * sysdeps/unix/sysv/linux/configure: Likewise.
15428         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
15429         * sysdeps/x86_64/elf/configure: Likewise.
15431         * config.make.in: Nix completely-soft nonsense.
15432         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
15433         of machine directories instead of fpu subdirectory.
15434         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
15435         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
15436         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
15437         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
15438         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
15439         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
15440         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
15441         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
15442         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
15443         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
15444         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
15445         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
15446         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
15447         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
15448         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
15449         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
15450         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
15451         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
15452         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
15453         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
15454         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
15455         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
15456         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
15457         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
15458         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
15459         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
15460         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
15461         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
15462         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
15463         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
15464         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
15465         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
15466         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
15467         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
15468         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
15469         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
15470         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
15471         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
15472         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
15473         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
15475 2002-10-19  Bruno Haible  <bruno@clisp.org>
15477         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
15479 2002-10-18  Roland McGrath  <roland@redhat.com>
15481         * io/Makefile (routines): Add lchmod.
15482         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
15483         * sysdeps/generic/lchmod.c: New file.
15484         * sysdeps/mach/hurd/lchmod.c: New file.
15485         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
15487 2002-10-18  Art Haas  <ahaas@neosoft.com>
15489         * configure.in: Remove remaining AC_FD_CC macros, and replace
15490         AC_FD_MSG with AS_MESSAGE_FD.
15492 2002-10-18  Roland McGrath  <roland@redhat.com>
15494         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
15495         typos: VALUE -> FINALADDR.
15497         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
15498         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
15499         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
15500         (inline_syscall6): Move these macros ...
15501         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
15503         * configure.in (libc_link_dests, libc_link_sources): Remove these
15504         variables and the AC_LINK_FILES call.
15506         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
15507         change to put new symbols here instead of in GLIBC_2.2.
15508         * sysdeps/powerpc/Subdirs: Move this file ...
15509         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
15511 2002-10-07  Roland McGrath  <roland@redhat.com>
15513         * sysdeps/generic/bits/time.h: Replaced with contents of the
15514         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
15515         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
15516         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
15517         macros is ok even for architectures that don't now implement them.
15518         * sysdeps/mach/hurd/bits/time.h: File removed.
15519         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
15520         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
15521         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
15522         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
15523         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
15525 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
15527         * configure.in: Replace obsolete AC_OUTPUT syntax with
15528         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
15530         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
15531         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
15533         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
15534         * sysdeps/alpha/elf/configure.in: Likewise.
15535         * sysdeps/i386/elf/configure.in: Likewise.
15536         * sysdeps/mach/hurd/configure.in: Likewise.
15537         * sysdeps/x86_64/elf/configure.in: Likewise.
15539         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
15541         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
15542         * sysdeps/generic/configure.in: Likewise.
15543         * sysdeps/i386/elf/configure.in: Likewise.
15544         * sysdeps/ia64/elf/configure.in: Likewise.
15545         * sysdeps/mach/configure.in: Likewise.
15546         * sysdeps/mach/hurd/configure.in: Likewise.
15547         * sysdeps/unix/configure.in: Likewise.
15548         * sysdeps/unix/common/configure.in: Likewise.
15549         * sysdeps/unix/sysv/aix/configure.in: Likewise.
15550         * sysdeps/unix/sysv/linux/configure.in: Likewise.
15551         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
15552         * sysdeps/x86_64/elf/configure.in: Likewise.
15554         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
15555         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
15556         that it's obvious when extra autoconf machinery is being dragged in.
15558 2002-10-18  Roland McGrath  <roland@redhat.com>
15560         * configure.in: Remove bogus echo included in
15561         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
15562         * configure: Regenerated.
15564 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
15566         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
15567         (statfs_filesize_max): New function.
15568         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
15569         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
15570         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
15571         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
15572         statfs_filesize_max.
15573         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
15574         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
15575         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
15577 2002-10-17  Roland McGrath  <roland@redhat.com>
15579         * configure.in (MIG): Just AC_SUBST it here.
15580         * configure: Regenerated.
15581         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
15582         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
15583         * sysdeps/mach/configure: Regenerated.
15585         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
15586         and AC_PROVIDE([_AS_CR_PREPARE]).
15588         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
15589         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
15591         * elf/dl-support.c: Move _dl_tls_* variables to ...
15592         * sysdeps/generic/libc-tls.c: ... here.
15594         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
15595         allow IDX to be one past the current last slotinfo entry.
15596         (_dl_close): Pass IMAP->l_init_called for that parameter.
15598 2002-10-07  Andreas Schwab  <schwab@suse.de>
15600         * aclocal.m4: Fix for autoconf 2.53.
15601         * configure.in: Likewise.  Require autoconf 2.53.
15603 2002-10-08  Richard Henderson  <rth@redhat.com>
15605         * soft-fp/op-4.h: Handle carry correctly in
15606         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
15607         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
15608         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
15610 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
15612         * configure.in: Compute completely-soft.
15613         * config.make.in: Make completely-soft available to sub-makes.
15614         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
15615         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
15616         fe_nomask to libm-support.
15617         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
15618         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
15619         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
15620         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
15621         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
15622         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
15623         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
15624         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
15625         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
15626         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
15627         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
15628         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
15629         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
15630         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
15631         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
15632         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
15633         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
15634         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
15635         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
15636         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
15637         __sim_round_mode.
15638         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
15639         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
15640         FP_HANDLE_EXCEPTIONS.
15641         Define FP_ROUNDMODE.
15642         Redefine FP_* macros to correspond to the FE_* bit positions.
15643         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
15644         Define externs for __sim_exceptions, __sim_disabled_exceptions,
15645         __sim_round_mode, __simulate_exceptions.
15646         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
15647         * sysdeps/powerpc/bits/fenv.h: ...to here.
15649 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
15651         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
15652         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
15653         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
15654         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
15655         __builtin_expect.
15657 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
15659         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
15660         __libc_res_nsend): New prototypes.
15661         * resolv/res_query.c (QUERYSIZE): Define.
15662         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
15663         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
15664         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
15665         res_nsend, pass answerp.
15666         (res_nquery): Changed into wrapper around __libc_res_nquery.
15667         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
15668         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
15669         instead of the non-__libc_ variants, pass them answerp.
15670         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
15671         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
15672         Added answerp argument.  Call __libc_res_nquery instead of
15673         res_nquery, pass answerp.
15674         (res_nquerydomain): Changed into wrapper around
15675         __libc_res_nquerydomain.
15676         * resolv/res_send.c: Include sys/ioctl.h.
15677         (MAXPACKET): Define.
15678         (send_vc): Change arguments.  Reallocate answer buffer if it is
15679         too small.
15680         (send_dg): Likewise.
15681         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
15682         Reallocate answer buffer if it is too small and hooks are in use.
15683         Adjust calls to send_vc and send_dg.
15684         (res_nsend): Changed into wrapper around __libc_res_nsend.
15685         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
15686         just 1K answer buffer on the stack, use __libc_res_nsearch instead
15687         of res_nsearch.
15688         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
15689         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
15690         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
15691         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
15692         (gethostbyaddr): Similarly with __libc_res_nquery.
15693         * resolv/Versions (libresolv): Export __libc_res_nquery and
15694         __libc_res_nsearch at GLIBC_PRIVATE.
15696 2002-10-17  Roland McGrath  <roland@redhat.com>
15698         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
15699         * configure: Regenerated.
15701         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
15702         before performing the reloc, not after.
15703         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15705 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
15707         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
15708         * locale/programs/linereader.c (lr_open): Likewise.
15709         * locale/programs/charmap-dir.c (charmap_open): Likewise.
15710         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15712 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
15714         * posix/bug-regex11.c: Add a test case for the bug reported by
15715         Paolo Bonzini <bonzini@gnu.org>.
15716         * posix/regexec.c (sift_states_bkref): Use correct destination of
15717         the back reference.
15719 2002-10-17  Roland McGrath  <roland@redhat.com>
15721         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
15722         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
15723         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
15724         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
15725         Call it after performing TPOFF relocs.
15726         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15727         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15728         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
15730         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
15731         when closing a partially-initialized object.
15733         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
15734         instead of _dl_fatal_printf when we see PT_TLS.
15736         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
15737         instead of $(libof-$<).
15739 2002-10-16  Roland McGrath  <roland@redhat.com>
15741         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
15742         instead of += to append, to be sure $(lib) gets expanded at defn time.
15743         (libof-$(cpp-src)): New variable, define this instead.
15744         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
15745         (lib): Don't use override.
15746         (CPPFLAGS-$(lib)): New variable, put -D's here.
15747         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
15748         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
15749         LIB found by $(libof-*) for basename, target, or source.
15750         * Makerules (CPPFLAGS-nonlib): New variable.
15751         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
15752         * locale/Makefile (lib): Likewise.
15753         * sunrpc/Makefile (lib): Likewise.
15755         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
15756         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
15757         * sysdeps/unix/sysv/linux/pathconf.h: New file.
15758         (statfs_link_max): New function, guts from fpathconf.c.
15759         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
15760         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
15761         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
15762         to use the linux/pathconf.c code by #include rather than duplication.
15763         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
15765 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
15767         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
15768         Use __libc_errno only for libc itself.
15770 2002-10-16  Andreas Jaeger  <aj@suse.de>
15772         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
15774 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
15776         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
15777         Use __libc_errno only for libc itself.
15779 2002-10-15  Roland McGrath  <roland@redhat.com>
15780             Jakub Jelinek  <jakub@redhat.com>
15782         * sysdeps/unix/sysv/linux/Makefile
15783         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
15784         sparc/Makefile to produce a bi-arch file as needed.
15785         That's now parameterized by the variable $(64bit-predefine).
15786         Use LC_ALL=C for `comm' commands in that rule.
15787         No longer conditional on [$(no_syscall_list_h)].
15788         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
15789         (64bit-predefine): New variable.
15790         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
15791         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
15792         * sysdeps/unix/sysv/linux/powerpc/Makefile
15793         (64bit-predefine): New variable.
15795 2002-10-15  Roland McGrath  <roland@redhat.com>
15797         * sysdeps/unix/sysv/linux/Makefile
15798         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
15800         * login/utmp-private.h: Declare __libc_utmp_lock.
15801         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
15802         and call __libc_utmp_jump_table functions directly, instead of using
15803         __setutent et al.
15805         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
15806         * sysdeps/unix/sysv/linux/configure: Regenerated.
15808         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
15809         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
15810         Use int32_t for ll_time.
15811         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
15812         Use int32_t instead of long int for ut_session.
15813         Use an anonymous struct with 32-bit fields for ut_tv.
15814         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
15815         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
15816         here as in utmp.h for `struct utmp'.
15817         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
15818         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
15819         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
15820         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
15821         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
15822         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
15824         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
15825         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
15826         All the following files were identical or equivalent to it.
15827         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
15828         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
15829         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
15830         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
15831         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
15832         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
15833         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
15834         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
15835         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
15836         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
15838         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
15839         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
15840         Other than the previously incorrect sign of msg_iovlen, this is a
15841         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
15842         match their layouts as well, so the following are now identical to it.
15843         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
15844         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
15845         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
15846         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
15847         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
15849 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
15851         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
15852         Define for 2.4+ kernels.
15854         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
15855         are known to have the vfork syscall.  Don't confuse the CPUs
15856         branch prediction unit by jumping to the return address.
15858         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
15859         support for reiserfs and xfs.
15861         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
15862         XFS link count.
15863         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
15864         and XFS_LINK_MAX.
15865         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
15867 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
15869         * include/libc-symbols.h (attribute_tls_model_ie): Define.
15870         * include/errno.h (errno): Define to __libc_errno in libc.so.
15871         Add attribute_tls_model_ie.
15872         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
15873         Add attribute_tls_model_ie.
15874         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
15875         attribute_tls_model_ie.
15876         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
15877         (h_errno): Define.
15878         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
15879         (_res): Define.
15880         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
15881         attribute_tls_model_ie.
15882         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
15883         __thread.
15884         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
15885         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
15886         __libc_errno in USE___THREAD case.
15887         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
15888         Likewise.
15889         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
15890         __attribute__((tls_model (""))).
15891         * configure: Rebuilt.
15892         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
15894 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
15896         * timezone/asia: Update from tzdata2002d.
15897         * timezone/australasia: Likewise.
15898         * timezone/iso3166.tab: Likewise.
15899         * timezone/southamerica: Likewise.
15900         * timezone/zone-tab: Likewise.
15902 2002-10-15  Roland McGrath  <roland@redhat.com>
15904         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
15905         Adjust TCB pointer before calling free, so we get the whole block.
15907 2002-10-14  Roland McGrath  <roland@redhat.com>
15909         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
15910         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
15911         extern using attribute_hidden instead of static, avoids warning.
15913 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
15915         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
15916         * sysdeps/unix/sysv/linux/configure: Rebuilt.
15918 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
15920         * po/sv.po: Update from translation team.
15922 2002-10-12  H.J. Lu  <hjl@gnu.org>
15924         * sunrpc/thrsvc.c (PROCQUIT): New.
15925         (struct rpc_arg): New.
15926         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
15927         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
15928         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
15929         (main): Modified for struct rpc_arg *.
15931 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
15933         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
15935 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
15937         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
15938         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
15939         in ld.so even if __thread is supported.
15941 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
15943         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
15944         Add hack to prevent the compiler from clobbering the signal context.
15945         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
15946         Likewise.
15947         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
15948         Likewise.
15950 2002-10-14  Andreas Jaeger  <aj@suse.de>
15952         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
15953         Guido Guenther <agx@sigxcpu.org>.
15955 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
15957         * po/sk.po: Update from translation team.
15959 2002-09-26  Roland McGrath  <roland@redhat.com>
15961         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
15962         dynamic string tag.
15963         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
15964         DL_DST_LIB based on $(slibdir).
15966 2002-10-13  Roland McGrath  <roland@frob.com>
15968         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
15970         * sysdeps/mach/hurd/getresuid.c: New file.
15971         * sysdeps/mach/hurd/getresgid.c: New file.
15972         * sysdeps/mach/hurd/setresuid.c: New file.
15973         * sysdeps/mach/hurd/setresgid.c: New file.
15975         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
15976         setresgid): Declare them.
15977         * NEWS: Mention it.
15978         * include/unistd.h
15979         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
15980         add libc_hidden_proto.
15981         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
15982         getresuid, getresgid, setresuid, setresgid here.
15983         * Versions.def (libc): Define GLIBC_2.3.2 set.
15984         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
15985         Add libc_hidden_def.
15986         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
15987         * sysdeps/generic/setresgid.c: New file.
15988         * sysdeps/generic/setresuid.c: New file.
15989         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
15990         (sysdep_routines): Don't add getresuid and getresgid here.
15991         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
15992         (sysdep_routines): Don't add setresuid and setresgid here.
15993         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
15994         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
15995         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
15996         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
15997         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
15998         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
15999         * posix/Makefile (routines): Add them all here instead.
16000         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
16001         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
16002         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
16003         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
16004         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
16005         [! __NR_setresuid]: Include generic file.
16006         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
16007         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
16008         [! __NR_setresuid]: Include generic file.
16009         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
16010         Caller is - now, not EXTRA.
16011         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
16012         (setresuid, setresgid, getresuid, getresgid): Likewise.
16013         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
16014         Add these calls here.
16015         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
16016         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
16017         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
16018         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
16019         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
16020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
16022         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
16023         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
16025         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
16026         (sysdep_routines): Add setfsuid and setfsgid here.
16027         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
16028         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
16029         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
16030         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
16031         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
16032         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
16033         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
16034         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
16036         * hurd/errno.c: Renamed to ...
16037         * hurd/errno-loc.c: ... this.
16038         * hurd/Makefile (routines): errno -> errno-loc
16040 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
16042         * po/de.po: Update from translation team.
16044         * MakeTAGS: Add -E flag to xgettext runs.
16046 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
16048         * po/fr.po: Update from translation team.
16050         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
16051         Optimize a bit for use in glibc.
16053 2002-10-12  Roland McGrath  <roland@redhat.com>
16055         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
16056         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
16058 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
16060         * po/sv.po: Update from translation team.
16062 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
16064         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
16065         OP_CONTEXT_NODE.
16066         (regfree): Likewise.
16067         (create_initial_state): Likewise.
16068         (analyze): Remove the substitutions which became useless.
16069         (calc_first): Likewise.
16070         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
16071         epsilon destination.
16072         (duplicate_node_closure): New function.
16073         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
16074         (calc_inveclosure): Likewise.
16075         (calc_eclosure): Likewise.
16076         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
16077         direct invocation of duplicate_node.
16078         (parse): Don't use comma operator in the return to avoid compiler
16079         warning.
16080         (parse_reg_exp): Likewise.
16081         (parse_branch): Likewise.
16082         (parse_expression): Likewise.
16083         (parse_sub_exp): Likewise.
16084         (parse_dup_op): Likewise.
16085         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
16086         which became useless.
16087         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
16088         (create_cd_newstate): Likewise.
16089         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
16090         (re_token_t): Likewise.
16091         (re_dfa_t): Likewise.
16092         (re_node_set_remove): New macro.
16093         * posix/regexec.c (check_matching): Remove the handling
16094         OP_CONTEXT_NODE.
16095         (check_halt_node_context): Likewise.
16096         (proceed_next_node): Likewise.
16097         (pop_fail_stack): Fix the memory leak.
16098         (set_regs): Likewise.
16099         (free_fail_stack_return): New function.
16100         (sift_states_backward): Fix the memory leak.  Remove the handling
16101         OP_CONTEXT_NODE.
16102         (update_cur_sifted_state): Append some if clause to avoid redundant
16103         call.
16104         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
16105         back reference.
16106         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
16107         (check_subexp_limits): Likewise.
16108         (search_subexp): Likewise.
16109         (sift_states_bkref): Likewise.
16110         (transit_state_mb): Likewise.
16111         (transit_state_bkref_loop): Likewise.
16112         (transit_state_bkref_loop): Likewise.
16113         (group_nodes_into_DFAstates): Likewise.
16114         (check_node_accept): Likewise.
16115         (sift_ctx_init): Add initializing.
16117 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
16119         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
16120         __builtin_expect.
16122 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
16124         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
16125         duplicated variable c.
16127         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
16128         if possible.
16130         * sysdeps/unix/sysv/linux/i386/sysdep.h
16131         (INTERNAL_SYSCALL_ERROR_P): New define.
16132         (INTERNAL_SYSCALL_ERRNO): Likewise.
16134         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
16135         Add hack to prevent the compiler from clobbering the signal context.
16137 2002-10-11  Roland McGrath  <roland@redhat.com>
16139         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
16140         Fix typos.
16142         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
16143         * sysdeps/sh/dl-lookupcfg.h: File removed.
16144         * sysdeps/i386/dl-lookupcfg.h: File removed.
16146         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
16147         missing labels and ; from last change.
16149         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
16150         number literals, so they are doubles instead of ints.
16152 2002-10-09  Roland McGrath  <roland@redhat.com>
16154         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
16155         changed from [USE_TLS && HAVE___THREAD].
16157         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
16158         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
16159         * sysdeps/x86_64/dl-machine.h
16160         (elf_machine_type_class, elf_machine_rela): Likewise.
16161         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
16162         Likewise.
16164         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
16165         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
16166         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
16168         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
16169         instead of ___tls_get_addr.
16170         (___tls_get_addr_internal): Add attribute_hidden to decl.
16172         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
16173         _dl_error_catch_tsd.
16174         * elf/rtld.c (startup_error_tsd): New function.
16175         (dl_main): Point _dl_error_catch_tsd at that.
16176         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
16177         use new function pointer instead.
16178         * elf/dl-tsd.c: New file.
16179         * elf/Makefile (routines): Add it.
16181 2002-10-07  Roland McGrath  <roland@redhat.com>
16183         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
16184         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
16185         take _dl_load_lock around calling __writev.
16187         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
16188         (INLINE_SYSCALL): Use that.
16190         * sysdeps/generic/dl-sysdep.h: New file.
16191         * sysdeps/mach/hurd/dl-sysdep.h: New file.
16192         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
16193         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
16194         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
16195         access it directly.
16196         * elf/dl-minimal.c (__errno_location): Removed.
16197         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
16198         Use GOTOFF access for errno.
16199         * sysdeps/unix/sysv/linux/i386/sysdep.h
16200         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
16202         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
16203         Use PC-relative access for errno.
16204         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
16205         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
16207         * include/tls.h: New file.
16208         (USE___THREAD): New macro.
16209         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
16210         libc or libpthread.
16211         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
16212         changed from [USE_TLS && HAVE___THREAD].
16213         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16214         * sysdeps/unix/i386/sysdep.S: Likewise.
16215         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16216         * include/errno.h: Likewise.
16217         * include/netdb.h: Likewise.
16218         * include/resolv.h: Likewise.
16220         * sysdeps/generic/errno.c: New file.
16221         * csu/Makefile (aux): New variable, list errno.
16222         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
16223         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
16224         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
16225         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16226         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16227         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
16228         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
16229         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
16230         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16231         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
16232         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
16233         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
16234         * sysdeps/unix/alpha/sysdep.S: Likewise.
16235         * sysdeps/generic/start.c: Likewise.
16236         * sysdeps/unix/start.c: Likewise.
16237         * sysdeps/unix/arm/start.c: Likewise.
16238         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
16239         * sysdeps/unix/sparc/start.c: Likewise.
16240         * sysdeps/unix/sysv/irix4/start.c: Likewise.
16241         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
16243         * manual/search.texi (Tree Search Function, Hash Search Function):
16244         Mention search.h clearly.
16246 2002-10-05  Roland McGrath  <roland@redhat.com>
16248         * elf/dl-fxstat64.c: File removed.
16249         * elf/dl-xstat64.c: File removed.
16250         * elf/Makefile (rtld-routines): Remove them.
16251         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
16252         Instead, use strong_alias instead of versioned_symbol in the
16253         !SHLIB_COMPAT case.
16254         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
16255         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
16257         * include/shlib-compat.h
16258         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
16259         [! NOT_IN_libc] (IS_IN_libc): Define it.
16260         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
16261         * elf/Makefile (CPPFLAGS-.os): Likewise.
16263         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
16264         Return the status instead of calling exit.
16266         * Makeconfig (CFLAGS): Prepend -std=gnu99.
16267         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
16268         Remove superfluous rm command, whose @ plus make bugs hid
16269         all these commands from the make output.
16271         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
16272         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
16273         Use that file's contents instead of literal echo's for the prologue.
16274         * include/features.h: Include <gnu/stubs.h> unconditionally.
16275         * include/gnu/stubs.h: New file.
16277 2002-09-30  Roland McGrath  <roland@redhat.com>
16279         * elf/rtld-Rules: New file.
16280         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
16281         $(objpfx)rtld-libc.a): New targets.
16282         (generated): Add them.
16283         (reloc-link): Remove -o $@ from the variable.
16284         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
16285         (distribute): Add rtld-Rules.
16286         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
16287         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
16288         (common-mostlyclean, common-clean): Clean up rtld-* files.
16289         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
16291 2003-05-20  Jakub Jelinek  <jakub@redhat.com>
16293         * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
16294         If temp != NULL, copy dynamic entries which need relocation to temp
16295         array before relocating.
16296         (DL_RO_DYN_TEMP_CNT): Define.
16297         * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
16298         * elf/rtld.c (_dl_start): Likewise.
16299         (dl_main): Likewise.  Add dyn_temp static variable.
16301 2002-10-11  Roland McGrath  <roland@redhat.com>
16303         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
16304         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
16306         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
16307         proper set of no-op insn prefixes.
16309         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
16311 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
16313         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
16314         __pthread_kill_other_threads_np.
16316         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
16318 2002-10-08  Roland McGrath  <roland@redhat.com>
16320         * locale/newlocale.c (__newlocale): If setting all categories to "C",
16321         just return &_nl_C_locobj instead of copying it.
16322         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
16323         * locale/duplocale.c (__duplocale): Likewise.
16325 2002-10-07  Roland McGrath  <roland@frob.com>
16327         * config.h.in (HAVE_I386_SET_GDT): New #undef.
16328         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
16329         * sysdeps/mach/configure: Regenerated.
16331 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
16334         Add all necessary register outputs for syscall-clobbered registers.
16336 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
16338         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
16339         Itanium 2 (and Itanium).
16340         Fix unwind directives and make it fit in 80 columns.
16341         * sysdeps/ia64/memset.S: Likewise.
16342         * sysdeps/ia64/memcpy.S: Likewise.
16343         Move jump table to .rodata section.
16345 2002-10-03  Roland McGrath  <roland@frob.com>
16347         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
16348         clobbers to asm.
16350 2002-10-10  Andreas Jaeger  <aj@suse.de>
16352         * sysdeps/x86_64/_mcount.S: Restore correct registers.
16354 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
16356         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
16358 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
16360         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
16361         _dl_allocate_tls_init.  Add rtld_hidden_proto.
16362         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
16363         rtld_hidden_def.
16364         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
16366         * version.h (VERSION): Bump to 2.3.1.
16368         * Make-dist: Add back one of the tar invocations removed before.
16370         * stdlib/Makefile (distribute): Add allocalim.h.
16372         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
16373         (__libc_tsd_address): Use correct variable name.
16374         Patch by Stefan Jones <stefan.jones@multigig.com>.
16376         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
16377         Reported by edwardsg@sgi.com [PR libc/4678].
16379         * Versions.def (libc): Add GLIBC_2.3.1.
16380         (libpthread): Add GLIBC_2.3.1.
16382         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
16383         and __sigtimedwait.
16384         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
16385         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
16386         libc_hidden_def.
16387         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
16388         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16390         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
16391         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
16392         and make old name an alias.
16393         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
16394         and make old name an alias.
16395         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
16396         __libc_msgsnd.
16398         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
16399         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
16400         __libc_writev.
16401         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
16402         old name an alias.
16403         * sysdeps/posix/readv.c: Likewise
16404         * sysdeps/unix/sysv/aix/readv.c: Likewise.
16405         * sysdeps/unix/sysv/linux/readv.c: Likewise.
16406         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
16407         old name an alias.
16408         * sysdeps/posix/writev.c: Likewise
16409         * sysdeps/unix/sysv/aix/writev.c: Likewise.
16410         * sysdeps/unix/sysv/linux/writev.c: Likewise.
16412         * include/sys/wait.h: Declare __waitid.
16413         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
16414         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
16415         name an alias.
16416         * sysdeps/posix/waitid.c: Likewise.
16417         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
16419         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
16421 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
16423         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
16424         prototypes.
16425         (__MAX_ALLOCA_CUTOFF): Define.
16426         Include allocalim.h.
16427         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
16428         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
16429         host_buffer depending on __libc_use_alloca.
16430         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
16431         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
16432         net_buffer depending on __libc_use_alloca.
16433         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
16434         buf depending on __libc_use_alloca.
16435         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
16436         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
16437         instead of hardcoded constants.
16438         Pass proper size argument to alloca and compute end for wide char
16439         version.
16440         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
16441         instead of hardcoded constants.
16442         * string/strcoll.c (strcoll): Likewise.
16443         * string/strxfrm.c (strxfrm): Likewise.
16444         * sysdeps/posix/readv.c (__readv): Likewise.
16445         * sysdeps/posix/writev.c (__writev): Likewise.
16446         * sysdeps/generic/allocalim.h: New file.
16448 2002-10-08  Roland McGrath  <roland@redhat.com>
16450         * configure.in (aux_missing warning): Change "too old" to
16451         "incompatible versions", since for autoconf it's "too new" right now.
16452         * configure: Regenerated.
16454         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
16455         one found doesn't work on our configure.in.
16456         * configure: Regenerated.
16457         * config.make.in (AUTOCONF): New substituted variable.
16458         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
16459         (autoconf-it): ... here, use that instead of defining conditionally.
16460         Use $(AUTOCONF) instead of literal autoconf.
16461         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
16462         with this condition.
16463         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
16465 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
16467         * Make-dist (dist): Cleanup a bit.  We are not interested in the
16468         14 char filename limit anymore.  Remove intermediate files and
16469         symlinks.
16471 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
16473         * po/sk.po: Update from translation team.
16474         * po/tr.po: Likewise.
16475         * po/gl.po: Likewise.
16477 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16479         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
16481 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
16483         * version.h (RELEASE): Change to stable.
16485 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
16487         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
16488         __syscall_exit_group): New prototypes.
16490 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
16492         * glibc 2.3 released.
16495 See ChangeLog.13 for earlier changes.