.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2002-08-02  Roland McGrath  <roland@redhat.com>
2
3         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4
5 2002-08-02  Roland McGrath  <roland@frob.com>
6
7         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
8         since it sets the variables we use in a -D switch.
9
10 2002-08-02  Roland McGrath  <roland@redhat.com>
11
12         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
13         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
14         matches long int, not int.
15
16         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
17         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
18         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
19         * wctype/wctrans.c (wctrans): Likewise.
20         * wctype/wctype.c (__wctype): Likewise.
21         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
22
23 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
24
25         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
26         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
27
28         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
29         previous patch.
30
31 2002-06-29  Todd Fries  <todd@openbsd.org>
32
33         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
34
35 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
36
37         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
38
39 2002-07-30  Roland McGrath  <roland@redhat.com>
40
41         * resolv/resolv.h (_res): Define macro unconditionally.
42         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
43         * include/resolv.h: ... here.
44         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
45         as a __thread variable.
46         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
47         a __thread variable instead of a global.
48         * resolv/res_data.c [_LIBC]: Don't #undef _res.
49
50         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
51         time we test it.
52
53         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
54
55         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
56         decls of memset and memcpy.
57
58         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
59         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
60
61         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
62
63         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
64         (__libc_tsd_define): Define using __thread.
65
66         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
67         (__rpc_thread_variables): Use __libc_tsd_get.
68         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
69         __rpc_thread_variables, which might allocate what we're about to free.
70
71         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
72         thread-local variable.
73         * resolv/netdb.h (h_errno): Define macro unconditionally.
74         [_LIBC] (__set_h_errno): Macro moved to ...
75         * include/netdb.h: ... here.
76         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
77         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
78         [! _LIBC_REENTRANT]: #undef h_errno here.
79
80         * include/errno.h: Protect from multiple inclusion.
81
82         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
83         before defining them, since Linux's <linux/posix_types.h> might have
84         defined them.
85
86 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
87
88         * malloc/malloc.c (public_cALLOc): Check for overflow on
89         multiplication.
90         * sunrpc/xdr_array.c (xdr_array): Likewise.
91         * sunrpc/rpc/types.h (mem_free): Add comment.
92         Patch by Solar Designer <solar@openwall.com>.
93
94 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
95
96         * sysdeps/unix/sysv/linux/kernel-features.h
97         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
98
99 2002-08-01  Roland McGrath  <roland@redhat.com>
100
101         * libio/fileops.c (_IO_file_sync_mmap): New function.
102         (_IO_file_jumps_mmap): Use it.
103         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
104         repeat the stat check and resize the mapped buffer as necessary.
105
106 2002-07-31  Roland McGrath  <roland@redhat.com>
107
108         * libio/fileops.c (decide_maybe_mmap): New static function.
109         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
110         mmap the file contents.  Then switch the jump tables to the mmap
111         tables if it worked, or the vanilla file tables if not.
112         (_IO_file_underflow_maybe_mmap): New function.
113         (_IO_file_seekoff_maybe_mmap): New function.
114         (_IO_file_xsgetn_maybe_mmap): New function.
115         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
116         * libio/libioP.h: Declare those.
117         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
118         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
119         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
120         If the stream is read-only, set its jump tables to those new ones.
121         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
122         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
123         We need the tables set before _IO_file_attach.
124
125         * libio/tst-mmap-eofsync.c: New file.
126         * libio/tst-mmap-fflushsync.c: New file.
127         * libio/bug-mmap-fflush.c: New file.
128         * libio/tst-mmap2-eofsync.c: New file.
129         * libio/Makefile (tests): Add them.
130
131         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
132         _IO_file_underflow_mmap fails, it already set the appropriate bit.
133
134 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
135
136         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
137         Declarations moved to <bits/sys_errlist.h>.  Include that file.
138         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
139         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
140         declare sys_errlist and sys_nerr.
141         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
142         provide declarations.
143
144 2002-07-31  Roland McGrath  <roland@redhat.com>
145
146         * elf/rtld.c (dl_main): Fix typo in error message.
147
148 2002-07-31  Roland McGrath  <roland@frob.com>
149
150         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
151         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
152         sysdeps/mach/hurd/dl-sysdep.c change.
153
154 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
155
156         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
157         -r`/build/include for kernel headers.
158
159         * po/fi.po: New file.
160
161 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
162
163         * configure.in (static_nss): Set to `yes' if --disable-shared.
164
165 2002-07-23  Bruno Haible  <bruno@clisp.org>
166
167         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
168         is set.
169
170 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
171
172         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
173         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
174         arguments.
175
176 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
177
178         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
179         alias.
180
181 2002-07-21  Bruno Haible  <bruno@clisp.org>
182
183         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
184         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
185         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
186         trans_sysdep_tab_offset.
187         (struct sysdep_segment): New type.
188         (struct sysdep_string): New type.
189         (SEGMENTS_END): New macro.
190         * intl/gettextP.h (struct sysdep_string_desc): New type.
191         (struct loaded_domain): New fields malloced, n_sysdep_strings,
192         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
193         orig_tab, trans_tab, hash_tab to const pointers because they point
194         into read-only memory.
195         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
196         (PRI*): Define fallback values.
197         (get_sysdep_segment_value): New function.
198         (_nl_load_domain): Distinguish major and minor revision parts. Add
199         support for minor revision 1 with system dependent strings.
200         (_nl_unload_domain): Also free the 'malloced' field.
201         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
202         now done in loadmsgcat.c. Add support for system dependent strings.
203
204 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
205
206         * posix/bug-regex7.c: New file.
207         * posix/bug-regex8.c: New file.
208         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
209
210 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
211
212         * posix/bug-regex4.c (main): Fix typos.
213         * posix/bug-regex6.c (main): Likewise.
214
215 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
216
217         * posix/bug-regex6.c (main): Fix warnings.
218
219         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
220
221         * iconv/iconv_prog.c (main): Improve error message for the cases
222         where -t and/or -f parameter are missing.
223
224 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
225
226         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
227         (re_search): Likewise.
228         (re_match_2): Likewise.
229         (re_search_2): Likewise.
230         (re_search_stub): New function.
231         (re_search_2_stub): New function.
232         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
233
234 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
235
236         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
237         (re_string_eoi): Use STOP instead of LEN.
238         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
239         (re_string_construct): Likewise.
240         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
241         * posix/regexec.c (re_search_internal): Add a new argument STOP
242         so that it can handle the argument STOP of re_search_2 and re_match_2
243         correctly.
244         (regexec): Adapt to new I/F of re_search_internal.
245         (re_search_stub): Likewise.
246
247 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
248
249         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
250
251         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
252
253         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
254         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
255         of __divdi3.
256
257         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
258         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
259         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
260         alias for adjtimex syscall.
261
262         * elf/dl-minimal.c: Define __assert_fail_internal.
263         * assert/assert.c: Likewise.
264         * include/assert.h: Define __assert_file macro if !SHARED and not
265         NOT_IN_libc.
266
267         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
268         programs.
269         * locale/Makefile: Likewise.
270         * nscd/Makefile: Likewise.
271         * catgets/Makefile: Likewise.
272
273 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
274
275         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
276         compute current position.
277
278         * stdio-common/tst-fseek.c (main): Improve error messages.
279
280         * libio/tst-freopen.c (main): Remove unused variable.
281
282         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
283         succesful seek call.  Simplify error checking.
284
285 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
286
287         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
288         * sysdeps/ia64/fpu/libm_support.h: Likewise.
289
290 2002-07-19  Roland McGrath  <roland@frob.com>
291
292         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
293         __libc_enable_secure is set.
294
295 2002-07-24  Roland McGrath  <roland@frob.com>
296
297         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
298         This implementation supports only IPv4.
299         * inet/ifaddrs.h: New file.
300         * sysdeps/generic/ifaddrs.c: New file.
301         * sysdeps/gnu/ifaddrs.c: New file.
302         * inet/test-ifaddrs.c: New file.
303         * inet/Makefile (routines): Add ifaddrs.
304         (headers): Add ifaddrs.h here.
305         (tests): Add test-ifaddrs.
306         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
307
308         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
309         socket call to get an AF_INET socket, instead of using __opensock.
310         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
311
312         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
313         if not -1 use it instead of calling __opensock.
314         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
315         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
316         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
317
318         * sysdeps/mach/hurd/ifreq.h: New file.
319         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
320         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
321         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
322
323         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
324         which gets moved around.  Calculate size of mmap'd buffer instead.
325
326 2002-07-24  Philip Blundell  <philb@gnu.org>
327
328         * sysdeps/unix/arm/brk.S: Improve schedule.
329         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
330         efficient instruction.
331         (__socket): Optimize return sequence.
332
333 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
334
335         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
336         sockets on old kernels.
337
338 2002-07-22  Philip Blundell  <philb@gnu.org>
339
340         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
341         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
342         alias.
343
344 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
345
346         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
347         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
348
349         * locale/programs/locarchive.c (add_locale_to_archive): Correct
350         test to detect duplicate locales.
351
352         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
353         position would be before beginning of file.
354         (_IO_file_seekoff_mmap): Likewise.
355         * libio/Makefile (tests): Add bug-fseek.
356         * libio/bug-fseek.c: New file.
357
358         * intl/explodename.c: Remove support for CEN-style locale variables.
359         It was never used and shouldn't be since it's not portable.
360         * intl/finddomain.c: Likewise.
361         * intl/l10nflist.c: Likewise.
362         * intl/loadinfo.h: Likewise.
363         * locale/findlocale.c: Likewise.
364
365 2002-07-24  Roland McGrath  <roland@frob.com>
366
367         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
368         position, calculate it to take into account an active pushback buffer.
369
370         * libio/Makefile (tests): Add bug-ungetc.
371         * libio/bug-ungetc.c: New file.
372
373 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
374
375         * sysdeps/generic/libc-tls.c: New file.
376         * csu/Makefile (routines): Add libc-tls.
377         (static-only-routines): Add libc-tls.
378         * elf/dl-support.c (_dl_phdr): New variable.
379         (_dl_phnum): New variable.
380         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
381         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
382         for !SHARED.  First look through auxiliary vector.  If TLS always
383         call __pthread_initialize_minimal.
384
385         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
386         in mmap call is never zero.
387
388 2002-07-23  Andreas Jaeger  <aj@suse.de>
389
390         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
391         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
392
393 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
394
395         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
396         creation and removal of the temp file.
397
398         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
399         file creation.
400         * test-skeleton.c (create_temp_file): New function.
401
402 2002-07-22  Andreas Jaeger  <aj@suse.de>
403
404         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
405         local label.
406
407 2002-07-21  Roland McGrath  <roland@frob.com>
408
409         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
410         put -I../include before -I../stdlib so we get the right errno.h et al.
411         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
412         (CFLAGS-wcstof.c): Likewise.
413         (CFLAGS-wcstold.c): Likewise.
414         (CFLAGS-wcstod_l.c): Likewise.
415         (CFLAGS-wcstof_l.c): Likewise.
416         (CFLAGS-wcstold_l.c): Likewise.
417
418 2002-07-19  Roland McGrath  <roland@frob.com>
419
420         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
421
422 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
423
424         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
425         __ASSUME_AT_XID is defined.
426         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
427         for 2.4.1 and up.
428         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
429         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
430
431         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
432         (CFLAGS-wcstof.c): Likewise.
433         (CFLAGS-wcstold.c): Likewise.
434         (CFLAGS-wcstod_l.c): Likewise.
435         (CFLAGS-wcstof_l.c): Likewise.
436         (CFLAGS-wcstold_l.c): Likewise.
437
438 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
439
440         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
441         __priority_which_t): Always typedef to int for C++.
442
443 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
444
445         * configure.in: Add test for __thread support in compiler.
446         * config.h.in: Add HAVE___THREAD.
447         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
448         * include/sys/errno.h: Moved to...
449         * stdlib/sys/errno.h: ...here.  New file.
450         * stdlib/errno.h: New file.  Moved from...
451         * include/errno.h: ...here.  Changed into an internal header defining
452         libc-local things like __set_errno.
453         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
454         bits/errno.h.
455         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
456         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
457         either.
458         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
459         from...
460         (_dl_start_final): ...here.  Add code to initialize tls elements from
461         bootstrap_map.
462         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
463         if USE_TLS && HAVE___THREAD.
464         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
465         * sysdeps/mach/hurd/bits/errno.h: Likewise.
466         * sysdeps/standalone/arm/bits/errno.h: Likewise.
467         * sysdeps/standalone/bits/errno.h: Likewise.
468         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
469         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
470         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
471         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
472         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
473         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
474         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
475         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
476         use GL(dl_rtld_map), use map parameter.
477         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
478         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
479         USE_TLS && HAVE___THREAD.
480         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
481         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
482         TLS code sequence.
483         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
484
485         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
486         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
487         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
488         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
489         * sysdeps/unix/sysv/linux/readv.c: Likewise.
490         * sysdeps/unix/sysv/linux/writev.c: Likewise.
491
492 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
493
494         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
495         MS_INVALIDATE values.
496
497 2002-07-17  Andreas Schwab  <schwab@suse.de>
498             Ulrich Drepper  <drepper@redhat.com>
499
500         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
501         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
502         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
503         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
504
505 2002-07-01  H.J. Lu  <hjl@gnu.org>
506
507         * elf/circleload1.c (load_dso): Call "circlemod1" and check
508         return value.
509
510         * elf/circlemod1.c (circlemod1): Return int.
511         * elf/circlemod2.c (circlemod2): Likewise.
512         * elf/circlemod2a.c (circlemod2): Likewise.
513         * elf/circlemod3.c (circlemod3): Likewise.
514         (circlemod3a): A new function.
515
516 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
517
518         * catgets/tst-catgets.c (main): Don't expect results for
519         untranslated messages.
520
521         * glibcbug.in: Fix little typo.  Remove STDIO.
522
523         * config.h.in: Fail if __FAST_MATH__ is defined.
524         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
525         (CPPFLAGS-test-idouble.c): Likewise.
526         (CPPFLAGS-test-ildouble.c): Likewise.
527
528 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
529
530         * intl/tst-gettext.sh: Pass -f option to msgfmt.
531         * intl/tst-gettext.c: Correctly handle untranslated messages in
532         positive tests.
533
534         * po/de.po: Update from translation team.
535
536 2002-07-02  H.J. Lu  <hjl@gnu.org>
537
538         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
539         use ll/sc.
540         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
541
542         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
543         to 2.4.0 for mips.
544
545 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
546
547         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
548         TLS fail if USE_TLS is not defined.
549
550         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
551         and adjust state for seek position.  [PR libc/4070]
552         * libio/Makefile (tests): Add bug-rewind.
553         * libio/bug-rewind.c: New file.
554
555 2002-07-12  Philip Blundell  <philb@gnu.org>
556
557         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
558         (__backtrace): Use it.
559         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
560
561 2002-07-12  Philip Blundell  <philb@gnu.org>
562
563         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
564         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
565         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
566         (elf_machine_rela): Remove unused variable.
567
568         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
569         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
570         define.
571
572 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
573
574         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
575
576 2002-07-14  Andreas Jaeger  <aj@suse.de>
577
578         * sysdeps/x86_64/bits/link.h: Add biarch support.
579
580 2002-07-13  Andreas Jaeger  <aj@suse.de>
581
582         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
583         Use correct indices.
584         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
585
586 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
587
588         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
589         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
590         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
591         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
592         * sysdeps/s390/s390-32/bits/link.h: Remove.
593         * sysdeps/s390/s390-64/bits/link.h: Remove.
594         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
595         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
596         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
597         * sysdeps/s390/bits/wordsize.h: New file.
598         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
599         elfclass.h.
600         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
601         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
602         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
603         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
604         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
605         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
606         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
607         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
608         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
609         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
610         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
611         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
612         resource.h.
613         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
614         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
615         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
616         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
617         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
618         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
619         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
620         sigaction.h.
621         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
622         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
623         siginfo.h.
624         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
625         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
626         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
627         socket.h.
628         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
629         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
630         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
631         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
632         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
633         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
634         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
635         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
636         procfs.h.
637         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
638         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
639         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
640         ucontext.h.
641         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
642         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
643
644 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
645
646         * Versions.def (libc): Add GLIBC_2.3.
647         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
648         * stdlib/canonicalize.c: Add compatibility version for realpath
649         and make new code available in GLIBC_2.3.
650
651 2002-07-06  Bruno Haible  <bruno@clisp.org>
652
653         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
654
655 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
656
657         * resolv/res_hconf.c (_res_hconf_init): Move code into new
658         function do_init.  Use __libc_once.
659         (do_init): New function.
660
661         * iconvdata/iso8859-11.h: Removed.
662         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
663         (distribute): Remove iso8859-11.h.
664         * iconvdata/tst-tables.sh: Add ISO-8859-11.
665
666         * stdio-common/vfscanf.c (inchar): Restore errno from previous
667         underflow operation if c == (W)EOF.
668
669 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
670
671         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
672         non-zero, adjust exponent.
673         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
674         Remove NO_LONG_DOUBLE aliases.
675         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
676         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
677         (__log1pl): Raise divide by zero and invalid exceptions when needed.
678         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
679         1**y and -1**+-Inf.
680         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
681         Fix BITS_PER_MP_LIMB 32 extraction.
682         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
683         exceptions for qNaNs.
684         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
685         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
686         Raise exceptions when needed.  Don't recurse unnecessarily.
687         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
688         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
689         exceptions for qNaNs.
690         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
691         to fix *quo return value sign.
692         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
693         case -Inf argument.
694         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
695
696 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
697
698         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
699         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
700         -DNDEBUG.
701
702 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
703
704         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
705         the result.
706
707         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
708         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
709
710         * Versions.def (libthread_db): Add GLIBC_2.3.
711
712 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
713
714         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
715         new stream if possible.
716         * libio/freopen64.c (freopen64): Likewise.
717         * libio/Makefile (tests): Add tst-freopen.
718         * libio/tst-freopen.c: New file.
719
720 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
721
722         * libio/stdio.h (obstack_printf): Add format attribute.
723         (obstack_vprintf): Likewise.
724
725 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
726
727         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
728         resp. 16 bytes on 32-bit resp. 64-bit platforms.
729         (re_charset_t, re_string_t): Reorder structure members for 64-bit
730         architectures.
731
732 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
733
734         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
735         (init_dfa): ...here.
736
737 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
738
739         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
740         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
741         nodes in parse trees.
742         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
743         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
744         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
745         nodes which can epsilon transit.
746         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
747         to IS_EPSILON_NODE macro.
748         * posix/regexec.c (update_regs): New function to update registers
749         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
750         (proceed_next_node): Use the entities of the nodes to determine
751         whether the node can transit to.
752         (set_regs): Use update_regs function to update registers.
753
754 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
755
756         * posix/bug-regex4.c (main): Remove duplicate setlocale.
757         * posix/bug-regex6.c: New file.
758         * posix/Makefile (tests): Add bug-regex6.
759         (bug-regex6-ENV): Set LOCPATH.
760
761 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
762
763         * Versions.def [libpthread]: Add GLIBC_2.2.6.
764         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
765
766 2002-07-06  Bruno Haible  <bruno@clisp.org>
767
768         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
769
770 2002-07-06  Bruno Haible  <bruno@clisp.org>
771
772         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
773         declarations.
774
775         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
776
777         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
778
779         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
780         not _UTSNAME_H.
781         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
782
783         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
784         * sysdeps/generic/bits/ustat.h: Likewise.
785
786         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
787
788 2002-07-08  Andreas Jaeger  <aj@suse.de>
789
790         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
791
792 2002-07-08  Andreas Jaeger  <aj@suse.de>
793
794         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
795
796 2002-07-06  Andreas Jaeger  <aj@suse.de>
797
798         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
799         * sysdeps/x86_64/fpu/s_copysign.S: New.
800         * sysdeps/x86_64/fpu/s_copysignf.S: New.
801         * sysdeps/x86_64/fpu/s_copysignl.S: New.
802         * sysdeps/x86_64/fpu/s_finitel.S: New.
803         * sysdeps/x86_64/fpu/s_fmax.S: New.
804         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
805         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
806         * sysdeps/x86_64/fpu/s_fmin.S: New.
807         * sysdeps/x86_64/fpu/s_fminf.S: New.
808         * sysdeps/x86_64/fpu/s_fminl.S: New.
809
810 2002-06-05  Brian Youmans <3diff@gnu.org>
811
812         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
813         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
814         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
815         * sysdeps/ia64/fpu/e_asin.S: Likewise.
816         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
817         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
818         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
819         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
820         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
821         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
822         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
823         * sysdeps/ia64/fpu/e_exp.S: Likewise.
824         * sysdeps/ia64/fpu/e_expf.S: Likewise.
825         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
826         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
827         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
828         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
829         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
830         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
831         * sysdeps/ia64/fpu/e_log.S: Likewise.
832         * sysdeps/ia64/fpu/e_logf.S: Likewise.
833         * sysdeps/ia64/fpu/e_pow.S: Likewise.
834         * sysdeps/ia64/fpu/e_powf.S: Likewise.
835         * sysdeps/ia64/fpu/e_powl.S: Likewise.
836         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
837         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
838         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
839         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
840         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
841         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
842         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
843         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
844         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
845         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
846         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
847         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
848         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
849         * sysdeps/ia64/fpu/libm_error.c: Likewise.
850         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
851         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
852         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
853         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
854         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
855         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
856         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
857         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
858         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
859         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
860         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
861         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
862         * sysdeps/ia64/fpu/s_logb.S: Likewise.
863         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
864         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
865         * sysdeps/ia64/fpu/s_modf.S: Likewise.
866         * sysdeps/ia64/fpu/s_modff.S: Likewise.
867         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
868         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
869         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
870         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
871         * sysdeps/ia64/fpu/s_rint.S: Likewise.
872         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
873         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
874         * sysdeps/ia64/fpu/s_round.S: Likewise.
875         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
876         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
877         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
878         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
879         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
880         * sysdeps/ia64/fpu/s_significand.S: Likewise.
881         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
882         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
883         * sysdeps/ia64/fpu/s_tan.S: Likewise.
884         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
885         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
886         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
887         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
888         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
889         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
890         reflect IBM donation of math library to FSF
891         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
892         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
893         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
894         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
895         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
896         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
897         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
898         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
899         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
900         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
901         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
902         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
903         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
904         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
905         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
906         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
907         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
908         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
909         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
910         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
911         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
912         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
913         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
914         * sysdeps/vax/__longjmp.c: Likewise.
915         * sysdeps/vax/setjmp.c: Likewise.
916         * libio/filedoalloc.c: Fixed BSD copying permission notice to
917         remove advertising clause
918         * sysdeps/vax/htonl.s: Likewise.
919         * sysdeps/vax/htons.s: Likewise.
920         * libio/wfiledoalloc.c: Likewise.
921         * stdlib/random.c: Likewise.
922         * stdlib/random_r.c: Likewise.
923         * sysdeps/mach/sys/reboot.h: Likewise.
924         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
925         * sysdeps/posix/getaddrinfo.c: Likewise.
926         * sunrpc/des_impl.c: Updated license permission notice to Lesser
927         GPL and corrected pointer to point to the correct license.
928
929 2002-07-04  Andreas Jaeger  <aj@suse.de>
930
931         * scripts/config.guess: New upstream version.
932         * scripts/config.sub: Likewise.
933
934 2002-07-02  Andreas Schwab  <schwab@suse.de>
935
936         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
937         in parallel to bumping up the buffer pointer.
938
939 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
940
941         * math/libm-test.inc (acos_test): Add missing L suffix for
942         expected result.
943         (cpow_test): Likewise.
944         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
945         error for acos (0.0625).
946
947 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
948
949         * locale/iso-639.def: Add entry for Ganda.
950         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
951         definition.
952         (address_finish): Handle entries with two letter ISO 639 code.
953
954         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
955         directory if it existed before.
956         * iconv/iconvconfig.c: Implement --prefix option.
957
958         * math/libm-test.inc (cexp_test): Add missing L suffix for
959         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
960         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
961         1.25 i).
962
963 2002-05-29  H.J. Lu  <hjl@gnu.org>
964
965         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
966         is turned on.
967
968 2002-05-28  H.J. Lu  <hjl@gnu.org>
969
970         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
971         are not dlopened on the dependency list of a dlopened object.
972
973 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
974
975         * elf/dl-lookup.c (add_dependency): It is not necessary to add
976         dependencies if they are created between objects which are created
977         while processing RTLD_NOW for objects loaded as part of the same
978         dlopen call.
979
980 2002-06-14  H.J. Lu  <hjl@gnu.org>
981
982         * elf/Makefile (tests): Add circleload1.
983         (modules-names): Add circlemod1, circlemod2, circlemod3,
984         circlemod1a, circlemod2a and circlemod3a.
985         ($(objpfx)circleload1): New target.
986         ($(objpfx)circleload1.out): Likewise.
987         ($(objpfx)circlemod1.so): Likewise.
988         ($(objpfx)circlemod2.so): Likewise.
989         ($(objpfx)circlemod1a.so): Likewise.
990         ($(objpfx)circlemod2a.so): Likewise.
991         * elf/circleload1.c: New file.
992         * elf/circlemod1.c: New file.
993         * elf/circlemod1a.c: New file.
994         * elf/circlemod2.c: New file.
995         * elf/circlemod2a.c: New file.
996         * elf/circlemod3.c: New file.
997         * elf/circlemod3a.c: New file.
998
999 2002-06-18  Amos Waterland  <apw@us.ibm.com>
1000
1001         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
1002         file descriptor.
1003         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
1004         add check for fd not open for writing.
1005
1006         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
1007         completed element(s) and do not suspend thread if so.  Patch
1008         heavily modified by drepper.
1009
1010         * rt/tst-aio7.c: New file.  Regression test for problems which the
1011         above three changes fix.
1012         * rt/Makefile (tests): Add tst-aio7.
1013
1014 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
1015
1016         * rt/tst-aio6.c: Fix comment.
1017
1018         * catgets/gencat.c (read_input_file): Handle more than one slash
1019         at end of line correctly [PR libc/3926].
1020         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
1021
1022         * catgets/sample.SJIS: Add test case for above bug.
1023         * catgets/test-gencat.c: Adjust test code.
1024         * catgets/test-gencat.sh: Adjust expected results.
1025
1026         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
1027         to skip relative relocations.
1028         Patch by Geoff Keating <geoffk@redhat.com>.
1029
1030 2002-05-26  Bruno Haible  <bruno@clisp.org>
1031
1032         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
1033         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
1034         All callers changed.
1035         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
1036         STANDARD_FROM_LOOP_ERR_HANDLER.
1037         (utf8_internal_loop): Likewise.
1038         (ucs2_internal_loop): Likewise.
1039         (internal_ucs2_loop): Perform error handling like in
1040         STANDARD_FROM_LOOP_ERR_HANDLER.
1041         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
1042         in STANDARD_FROM_LOOP_ERR_HANDLER.
1043         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1044         handling.
1045         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
1046         in STANDARD_FROM_LOOP_ERR_HANDLER.
1047         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1048         handling.
1049         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
1050         in STANDARD_FROM_LOOP_ERR_HANDLER.
1051         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1052         handling.
1053         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
1054         STANDARD_FROM_LOOP_ERR_HANDLER.
1055         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1056         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
1057         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
1058         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
1059         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
1060         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
1061         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
1062         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
1063         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
1064         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
1065         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
1066         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
1067         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
1068         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
1069         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
1070         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
1071         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
1072         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
1073         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1074         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
1075         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
1076         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
1077         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
1078         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1079         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
1080         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
1081         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
1082         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
1083         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
1084         an error, still set result = __GCONV_ILLEGAL_INPUT.
1085         (BODY for TO_LOOP): Likewise.
1086         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
1087         STANDARD_FROM_LOOP_ERR_HANDLER.
1088         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1089         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
1090         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1091         handling.
1092         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1093         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
1094         STANDARD_FROM_LOOP_ERR_HANDLER.
1095         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1096         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
1097         STANDARD_FROM_LOOP_ERR_HANDLER.
1098         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1099         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
1100         STANDARD_FROM_LOOP_ERR_HANDLER.
1101         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1102         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
1103         STANDARD_FROM_LOOP_ERR_HANDLER.
1104         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1105         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
1106         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1107         handling.
1108         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1109         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
1110         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
1111         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
1112
1113 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1114
1115         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
1116         labels in assembler instructions.
1117
1118 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
1119
1120         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
1121         not enough content is available.
1122         * libio/tst-eof.c: New file.
1123         * libio/Makefile (tests): Add tst-eof.
1124
1125         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
1126         update atime.
1127         * libio/tst-atime.c: New file.
1128         * libio/Makefile (tests): Add tst-atime.
1129
1130         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
1131         handling of overly long words.
1132
1133 2002-06-25  Andreas Jaeger  <aj@suse.de>
1134
1135         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
1136         to not use 32-bit pc relative relocations.
1137         (elf_machine_dynamic): Likewise.
1138
1139 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
1140
1141         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
1142         (__GETDENTS): Check for failed getdents64 syscall.
1143         * dirent/Makefile (tests): Add bug-readdir1.
1144         * dirent/bug-readdir1.c: New file.
1145
1146 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
1147
1148         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
1149         lookups.
1150         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
1151         code.  Print TLS modid and offset for modules containing PT_TLS
1152         segments.
1153
1154 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
1155
1156         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1157         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1158         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1159         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1160
1161 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
1162
1163         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
1164         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
1165         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
1166         * nss/getXXent_r.c (NEW, NEW1): Define.
1167         (NEW (REENTRANT_GETNAME)): Strong alias to
1168         INTERNAL (REENTRANT_GETNAME).
1169         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
1170
1171 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
1172
1173         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
1174         (_IO_file_jumps_mmap): Use it.
1175         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
1176         * libio/libioP.h: Remove _IO_wdefault_setbuf and
1177         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
1178         prototype.
1179         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
1180         (_IO_wfile_jumps_mmap): Don't use it anymore.
1181         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
1182         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
1183         _IO_wdefault_setbuf.
1184         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
1185         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
1186         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
1187
1188 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
1189
1190         * libio/Makefile (tests): Add tst-mmap-setvbuf.
1191         * libio/tst-mmap-setvbuf.c: New test.
1192
1193 2002-06-21  Andreas Jaeger  <aj@suse.de>
1194
1195         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
1196
1197 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
1198
1199         * include/unistd.h (__fork_internal): Remove.
1200         (__fork): Don't define to __fork_internal.
1201         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
1202         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
1203         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
1204         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
1205         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
1206
1207 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
1208
1209         * po/hr.po: New file.
1210
1211 2002-06-11  Wolfram Gloger  <wg@malloc.de>
1212
1213         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
1214         Reported by Michael Meissner <meissner@redhat.com>.
1215
1216 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
1217
1218         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
1219         Patch by Hans Boehm <hans_boehm@hp.com>.
1220
1221 2002-06-20  Andreas Jaeger  <aj@suse.de>
1222
1223         * math/libm-test.inc: Use exact values as input parameters,
1224         compute output parameters with 36 digits for 128-bit long doubles.
1225         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1226         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
1227         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
1228
1229 2002-06-13  Stephen L Moshier  <steve@moshier.net>
1230
1231         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
1232         argument or result is subnormal.
1233
1234 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
1235
1236         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
1237         quotient.
1238         * sysdeps/i386/fpu/s_remquof.S: Likewise.
1239         * sysdeps/i386/fpu/s_remquol.S: Likewise.
1240
1241         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
1242
1243 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
1244
1245         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
1246         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
1247         Reported by Peter A. Buhr.
1248
1249 2002-06-15  Roland McGrath  <roland@frob.com>
1250
1251         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
1252         warning.
1253
1254         * sysdeps/mach/hurd/getcwd.c
1255         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
1256
1257         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
1258         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
1259
1260         * sysdeps/alpha/divrem.h: Use local label instead of global one for
1261         jump to local subroutine.
1262
1263 2002-06-14  Roland McGrath  <roland@frob.com>
1264
1265         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
1266         * sysdeps/mach/hurd/Makeconfig: ... here.
1267
1268 2002-06-13  Andreas Schwab  <schwab@suse.de>
1269
1270         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
1271         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
1272         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
1273
1274 2002-06-13  Roland McGrath  <roland@frob.com>
1275
1276         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
1277         * hurd/hurdstartup.c (_hurd_startup): Likewise.
1278         Use intptr_t instead of int for argc in stack layout.
1279         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
1280         (_dl_init_first): Likewise.
1281         (_hurd_stack_setup): Likewise.
1282         (init1): Add a cast.
1283         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
1284
1285         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
1286         argument to pfinet_siocgifconf RPC.
1287
1288 2002-06-13  Andreas Schwab  <schwab@suse.de>
1289
1290         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
1291         expansion order.
1292
1293 2002-06-12  Roland McGrath  <roland@frob.com>
1294
1295         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
1296         if already defined.
1297         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
1298         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
1299
1300 2002-06-11  Roland McGrath  <roland@frob.com>
1301
1302         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
1303         file on [!RTLD_STAT64].
1304         * sysdeps/mach/hurd/fxstat64.c: Likewise.
1305
1306         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
1307         (__fdopen): Use INTUSE.
1308         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
1309
1310         * stdio-common/tmpfile64.c: File removed.
1311         * sysdeps/generic/tmpfile64.c: New file.
1312         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
1313         if not already defined.
1314         (tmpfile): Use it in place of __GT_FILE.
1315
1316         * include/unistd.h: Declare __chown_internal.
1317
1318         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
1319         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
1320
1321 2002-06-09  Roland McGrath  <roland@frob.com>
1322
1323         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
1324         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
1325         value of HURD_INTERFACE_VERSION >= 20020609.
1326         * sysdeps/mach/hurd/configure: Regenerated.
1327         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
1328         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
1329         convert a struct stat64 into a struct stat and return 0 or -1
1330         with errno set to EOVERFLOW.
1331         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
1332         for struct statfs64 to struct statfs.
1333         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
1334         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
1335         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
1336         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
1337         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
1338         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
1339         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1340         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
1341         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
1342         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
1343         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
1344         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
1345         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
1346         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
1347         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
1348         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
1349         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
1350         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
1351         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
1352         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
1353         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
1354         Use struct stat64 for io_stat argument.
1355         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
1356         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
1357         to io_seek.
1358         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
1359         * hurd/fd-write.c (_hurd_fd_write): Likewise.
1360         * hurd/hurd/fd.h: Update decls.
1361         * sysdeps/mach/hurd/getcwd.c
1362         (_hurd_canonicalize_directory_name_internal): Use ino64_t
1363         and struct dirent64.
1364         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
1365         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
1366         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
1367         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
1368
1369 2002-06-08  Roland McGrath  <roland@frob.com>
1370
1371         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
1372         instead of unsigned long int for __allocation and __size members.
1373
1374 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
1375
1376         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1377         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1378         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1379         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1380
1381 2002-06-07  Roland McGrath  <roland@frob.com>
1382
1383         * sysdeps/mach/hurd/bits/environments.h: File removed.
1384
1385 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
1386
1387         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
1388         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
1389         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
1390         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
1391         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
1392         (sendfile64): Likewise.
1393         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
1394         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
1395         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
1396         Likewise.
1397         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
1398
1399         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
1400         already defined.
1401
1402 2002-06-04  Bruno Haible  <bruno@clisp.org>
1403
1404         * sysdeps/cris/stackinfo.h: New file.
1405
1406         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
1407         to an integer type before performing bit operations on it.
1408
1409 2002-06-05  Roland McGrath  <roland@frob.com>
1410
1411         * sysdeps/generic/sendfile.c: Include <errno.h>.
1412         * sysdeps/generic/sendfile64.c: Likewise.
1413
1414         * io/Makefile (routines): Add sendfile and sendfile64.
1415         (headers): Add sys/sendfile.h to the list.
1416         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
1417         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
1418         * io/sys/sendfile.h: ... here.
1419         * sysdeps/generic/sendfile.c: New file.
1420         * sysdeps/generic/sendfile64.c: New file.
1421
1422         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
1423         Move sendfile, sendfile64 to ...
1424         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
1425         * sysdeps/mach/hurd/sendfile.c: New file.
1426         * sysdeps/mach/hurd/sendfile64.c: New file.
1427
1428         * sysdeps/mach/nanosleep.c: New file.
1429
1430 2002-06-04  Roland McGrath  <roland@frob.com>
1431
1432         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
1433         * sysdeps/alpha/elf/configure: New file (generated).
1434
1435 2002-06-02  Roland McGrath  <roland@frob.com>
1436
1437         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
1438
1439 2002-06-01  Roland McGrath  <roland@frob.com>
1440
1441         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
1442         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
1443
1444 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1445
1446         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
1447         Add nsmap.
1448         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
1449         Remove nstimes setting.
1450         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
1451         * resolv/res_send.c (res_nsend): Don't close unconditionally if
1452         there is mix of IPv6 and IPv4 nameservers.
1453         Use nsmap array to find free slots and preserve nameserver ordering.
1454         Fix RES_ROTATE.
1455
1456 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
1457
1458         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
1459         use this header with LFS.
1460
1461         * po/sk.po: Update from translation team.
1462
1463 2002-05-28  Andreas Schwab  <schwab@suse.de>
1464
1465         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
1466         message when finding object of wrong class.
1467
1468 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
1469
1470         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
1471         Patch by <radu@netsoft.ro>.
1472
1473 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
1474
1475         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
1476         Add readahead.
1477         * sysdeps/unix/sysv/linux/readahead.c: New file.
1478         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
1479         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
1480         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
1481         Add sendfile64 alias to sendfile syscall.
1482         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1483         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1484         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1485         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
1486         syscall.
1487
1488         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
1489         special section for PIC register loading.
1490         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1491
1492         * config.h.in: Define HAVE_HIDDEN.
1493         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
1494
1495         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
1496
1497 2002-05-28  Roland McGrath  <roland@frob.com>
1498
1499         * sysdeps/mach/alpha/setfpucw.c: New file.
1500
1501 2002-05-26  Roland McGrath  <roland@frob.com>
1502
1503         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
1504         Use integer_t instead of int for IOC_VOID case.
1505
1506 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
1507
1508         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
1509
1510 2002-05-26  Bruno Haible  <bruno@clisp.org>
1511
1512         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
1513         end of the ISO-8859-7 from idx table.
1514
1515 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
1516
1517         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
1518
1519 2002-05-24  David S. Miller  <davem@redhat.com>
1520
1521         * string/bits/string2.h (memset): Do not try to optimize when
1522         not _STRING_ARCH_unaligned if GCC will do the right thing.
1523
1524 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
1525
1526         * posix/regex.c: Define `inline' as a macro into nothing for the
1527         compilers which lack the keyword.
1528         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
1529         for the compatibility of gawk.
1530         * posix/regcomp.c: Add fake implementation of isblank() for the
1531         environments which lack the function.
1532         Don't use free_charset() in case of non-i18n envs.
1533         (build_range_exp): Don't use i18n related code in case of non-i18n
1534         envs.
1535         (build_collating_symbol): Likewise.
1536         (build_equiv_class): Likewise.
1537         (build_charclass): Likewise.
1538         (re_compile_fastmap_iter): Likewise.
1539         (parse_bracket_exp): Likewise.
1540         (build_word_op): Likewise.
1541         (regfree): Don't use free_charset() in case of non-i18n envs.
1542         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
1543         re_token_type_t in case of non-i18n envs.
1544         Don't define re_charset_t in case of non-i18n envs.
1545         Change the type of wcs of re_string_t from wchar_t to wint_t,
1546         since we store also WEOF.
1547         * posix/regex_internal.c: (re_string_realloc_buffers): Change
1548         the type of wcs of re_string_t from wchar_t to wint_t.
1549         (re_string_reconstruct): Likewise.
1550         (create_ci_newstate): Don't use i18n related code in case of
1551         non-i18n envs.
1552         (create_cd_newstate): Likewise.
1553
1554 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
1555
1556         * iconv/loop.c: Fix typo.
1557
1558 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1559
1560         * inet/ether_line.c (ether_line): Fix a typo causing only
1561         lower 4 bits of each ethernet address byte being assigned.
1562         Don't modify what line points to.
1563         * inet/tst-ether_aton.c (main): Add ether_line tests.
1564
1565 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
1566
1567         * manual/filesys.texi: Don't make readlink example leak memory
1568         when readlink fails.
1569
1570 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
1571
1572         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
1573         some more security checks.
1574
1575 2002-05-17  David S. Miller  <davem@redhat.com>
1576
1577         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
1578
1579 2002-05-16  David S. Miller  <davem@redhat.com>
1580
1581         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
1582         (elf_machine_dynamic): Use it to force PIC register to be loaded.
1583         (elf_machine_load_address): Likewise.
1584         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
1585
1586         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
1587         is unaligned, do not forget to fully initialize %g1 magic value.
1588
1589         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
1590         register definitions and provide 32-bit variants of structures
1591         during 64-bit builds.
1592
1593         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
1594         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
1595         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
1596         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
1597         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
1598         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
1599         Do not clear implicit one bit here, it must be done post-rounding.
1600         Only pad to the left using left shift if value uses less than the
1601         available fractional bits.
1602
1603 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1604
1605         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
1606         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
1607         (shared-only-routines): Likewise.
1608         * sysdeps/powerpc/libgcc-compat.c: New file.
1609         * sysdeps/wordsize-32/cmpdi2.c: Removed.
1610         * sysdeps/wordsize-32/fixdfdi.c: Removed.
1611         * sysdeps/wordsize-32/fixsfdi.c: Removed.
1612         * sysdeps/wordsize-32/shdi3.c: Removed.
1613
1614 2002-05-16  Bruno Haible  <bruno@clisp.org>
1615
1616         * MakeTAGS (libc.pot): Don't sort the output.
1617         * po/header.pot: Update to match xgettext 0.11 output.
1618
1619 2002-05-16  Bruno Haible  <bruno@clisp.org>
1620
1621         * MakeTAGS (subdirs): Remove duplicates.
1622
1623 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1624
1625         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
1626         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1627         alias.
1628
1629 2002-05-19  Andreas Jaeger  <aj@suse.de>
1630
1631         * sysdeps/unix/sysv/linux/configure.in: Warn against an
1632         installation in /usr/local.
1633
1634 2002-05-16  Bruno Haible  <bruno@clisp.org>
1635
1636         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
1637         string as argument of #error.
1638
1639 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
1640
1641         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
1642         don't define static.  Remove old __realpath function.  TC1 of
1643         POSIX 2001 will allow the second parameter to be NULL.
1644         * stdlib/test-canon.c: Comment out test for NULL as second
1645         parameter of realpath.
1646
1647         * time/offtime.c (__offtime): Set errno if overflow is detected.
1648
1649         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
1650         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
1651         dl-brk and dl-sbrk.
1652
1653         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
1654         (fdimf): Likewise.
1655
1656 2002-05-15  Roland McGrath  <roland@frob.com>
1657
1658         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
1659
1660 2002-05-12  Bruno Haible  <bruno@clisp.org>
1661
1662         * iconvdata/testdata/EUC-JISX0213: New file.
1663         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
1664         * iconvdata/testdata/SHIFT_JISX0213: New file.
1665         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
1666         * iconvdata/testdata/ISO-2022-JP-3: New file.
1667         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
1668         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
1669         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
1670         contains comments indicating precomposed characters.
1671
1672 2002-04-21  Bruno Haible  <bruno@clisp.org>
1673
1674         * iconvdata/iso-2022-jp-3.c: New file.
1675         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
1676         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
1677         (LDFLAGS-ISO-2022-JP-3.so): New variable.
1678         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
1679         (distribute): Add iso-2022-jp-3.c.
1680
1681 2002-05-12  Bruno Haible  <bruno@clisp.org>
1682
1683         * iconvdata/tst-table-to.c (main): Restore handling of
1684         transliterations, broken by last patch.
1685
1686 2002-05-12  Bruno Haible  <bruno@clisp.org>
1687
1688         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
1689
1690 2002-05-12  Bruno Haible  <bruno@clisp.org>
1691
1692         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
1693         when there is not enough room in the output buffer.
1694         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1695
1696 2002-04-20  Bruno Haible  <bruno@clisp.org>
1697
1698         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
1699         macros.
1700         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1701         Also make this macro work if FROM_DIRECTION evaluates to 0.
1702         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1703         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
1704         of consume_incomplete.
1705         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1706         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
1707         4, not 8.
1708         * iconvdata/cp1258.c: Likewise.
1709         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1710         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
1711         not 2.
1712         * iconvdata/ibm933.c: Likewise.
1713         * iconvdata/ibm935.c: Likewise.
1714         * iconvdata/ibm937.c: Likewise.
1715         * iconvdata/ibm939.c: Likewise.
1716         * iconvdata/iso-2022-cn.c: Define
1717         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1718         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
1719         * iconvdata/iso-2022-cn-ext.c: Likewise.
1720         * iconvdata/iso-2022-jp.c: Define
1721         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1722         {MIN,MAX}_NEEDED_{FROM,TO}.
1723         * iconvdata/tcvn5712-1.c: Define
1724         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1725         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
1726         * iconvdata/euc-jisx0213.c: Define
1727         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1728         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
1729         * iconvdata/shift_jisx0213.c: Likewise.
1730
1731 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1732
1733         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
1734         shdi3, fixdfdi, fixsfdi in csu dir.
1735         (shared-only-routines): Likewise.
1736         * sysdeps/wordsize-32/cmpdi2.c: New file.
1737         * sysdeps/wordsize-32/shdi3.c: New file.
1738         * sysdeps/wordsize-32/fixdfdi.c: New file.
1739         * sysdeps/wordsize-32/fixsfdi.c: New file.
1740         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
1741         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
1742         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
1743
1744         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
1745         Only use va_arg if the argument will be used [PR libc/3259].
1746
1747 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
1748
1749         * catgets/catgets.c (catopen): Free buffer if internal catalog
1750         open fails.
1751
1752 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
1753
1754         * debug/xtrace.sh: Make more robust.  For realtime tracking use
1755         non-buffering methods.
1756         * debug/pcprofiledump.c: Implement -u option.
1757         Patch by Roger Luethi <rl@hellgate.ch>.
1758
1759 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
1760
1761         * include/netinet/in.h (bindresvport_internal): Add prototype.
1762         * include/rpc/auth.h  (authunix_create_internal,
1763         authunix_create_default_internal, authnone_create_internal,
1764         authdes_pk_create_internal): Add prototypes.
1765         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
1766         clntudp_create_internal, clntudp_bufcreate_internal,
1767         clntunix_create_internal): Add prototypes.
1768         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
1769         svc_getreq_internal, svc_getreq_common_internal,
1770         svc_getreqset_internal, svc_getreq_poll_internal,
1771         svc_register_internal, svc_unregister_internal,
1772         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
1773         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
1774         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
1775         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
1776         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
1777         * inet/rcmd.c (rcmd_af): Use __listen.
1778         (rresvport_af): Use __bind.
1779         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
1780         authunix_create, authunix_create_default, authnone_create,
1781         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
1782         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
1783         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
1784         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
1785         _authenticate, add INTDEF after such function definitions.
1786         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
1787         __setsockopt, __getsockname instead of non-__ variants.
1788         * sunrpc/pmap_rmt.c: Likewise.
1789         * sunrpc/rtime.c: Likewise.
1790         * sunrpc/svc_udp.c: Likewise.
1791         * sunrpc/clnt_unix.c: Likewise.
1792         * sunrpc/svc_unix.c: Likewise.
1793         * sunrpc/bindrsvprt.c: Likewise.
1794         * sunrpc/svc_tcp.c: Likewise.
1795         * sunrpc/auth_none.c: Likewise.
1796         * sunrpc/clnt_raw.c: Likewise.
1797         * sunrpc/clnt_tcp.c: Likewise.
1798         * sunrpc/auth_unix.c: Likewise.
1799         * sunrpc/key_call.c: Likewise.
1800         * sunrpc/clnt_gen.c: Likewise.
1801         * sunrpc/pm_getmaps.c: Likewise.
1802         * sunrpc/clnt_simp.c: Likewise.
1803         * sunrpc/pmap_clnt.c: Likewise.
1804         * sunrpc/svc_run.c: Likewise.
1805         * sunrpc/svc.c: Likewise.
1806         * sunrpc/svc_simple.c: Likewise.
1807         * sunrpc/pm_getport.c: Likewise.
1808         * sunrpc/auth_des.c: Likewise.
1809         * sunrpc/svc_auth.c: Likewise.
1810         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
1811         __register_frame_info_table_bases, __deregister_frame_info_bases):
1812         Add INTDEF.
1813         (__register_frame_info_bases_internal,
1814         __register_frame_info_table_bases_internal,
1815         __deregister_frame_info_bases_internal): Add prototypes.
1816         (__register_frame_info, __register_frame): Use INTUSE in call to
1817         __register_frame_info_bases.
1818         (__register_frame_info_table): Similarly.
1819         (__deregister_frame_info, __deregister_frame): Similarly.
1820         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
1821         sendto as weak alias.
1822         * sysdeps/mach/hurd/sendto.c: Likewise.
1823         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
1824         recvfrom as weak alias.
1825         * sysdeps/mach/hurd/recvfrom.c: Likewise.
1826         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
1827         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
1828         recvmsg as weak alias.
1829         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
1830         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
1831         sendmsg as weak alias.
1832         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
1833         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
1834         setsockopt, add setsockopt as weak alias.
1835         * sysdeps/mach/hurd/setsockopt.c: Likewise.
1836         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
1837         weak alias.
1838         * sysdeps/mach/hurd/bind.c: Likewise.
1839         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
1840         as weak alias.
1841         * sysdeps/mach/hurd/listen.c: Likewise.
1842         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
1843         getsockname, add getsockname as weak alias.
1844         * sysdeps/mach/hurd/getsockname.c: Likewise.
1845         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
1846         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
1847         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
1848         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
1849         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
1850         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
1851         Add aliases.
1852         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1853         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1854         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1855         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1856         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
1857         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
1858         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
1859         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
1860         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
1861         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
1862         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
1863         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
1864
1865 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1866
1867         * locale/programs/localedef.h (show_archive_content): Add verbose
1868         argument.
1869         * locale/programs/localedef.c (main): Adjust caller.
1870         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
1871         (nameentcmp, dataentcmp): New functions.
1872         (xstrcmp): Remove.
1873         (show_archive_content): Print verbose listing with --list-archive -v.
1874
1875 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
1876
1877         * locale/programs/locarchive.c (open_archive): Take extra argument
1878         readonly.  If true open file with O_RDONLY and don't create the
1879         archive if it doesn't exist.
1880         Adapt all callers.
1881         (close_archive): Don't do anything if fd element is -1.
1882         * locale/programs/localedef.h (open_archive): Adjust prototype.
1883         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
1884         call.
1885
1886         * malloc/malloc.c (__posix_memalign): Correct check for size of
1887         alignment value [PR libc/3444].
1888
1889         * include/stdio.h: Remove references to old stdio implementation.
1890
1891         * libio/Makefile (bug-ungetwc2-ENV): Define.
1892
1893 2002-05-13  Roland McGrath  <roland@frob.com>
1894
1895         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
1896
1897         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
1898
1899 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
1900
1901         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1902         Allocate three, not two, more than LEN when appending '/.'.
1903         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
1904         if NAME ends with '/.' if it is shorter than 2 chars.
1905
1906 2002-05-12  Roland McGrath  <roland@frob.com>
1907
1908         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
1909         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
1910
1911         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
1912         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
1913
1914 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1915
1916         * sysdeps/ia64/Makefile: Remove extra endif.
1917         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
1918
1919 2002-05-10  Andreas Schwab  <schwab@suse.de>
1920
1921         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
1922
1923 2002-05-09  Andreas Jaeger  <aj@suse.de>
1924
1925         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
1926         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
1927         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
1928
1929         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
1930         * sysdeps/wordsize-64/glob.c: ...here.
1931         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
1932         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
1933         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
1934
1935 2002-05-08  Roland McGrath  <roland@frob.com>
1936
1937         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
1938         O_NOTRANS flag in "." lookup.
1939
1940 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
1941
1942         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
1943
1944 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
1945
1946         * locale/duplocale.c (__duplocale): Update special members only
1947         when allocation succeeded.
1948
1949 2002-05-03  Roland McGrath  <roland@frob.com>
1950
1951         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
1952         we can only build libc.so.0.3(GLIBC_2.2.6) now.
1953
1954 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
1955
1956         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
1957         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
1958         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
1959         * sysdeps/ia64/ia64libgcc.S: New file.
1960
1961 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
1962
1963         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
1964
1965         * malloc/memusage.c: Distinguish anonymous mmap.
1966
1967 2002-05-01  Roland McGrath  <roland@frob.com>
1968
1969         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
1970         and use INTDEF on it.
1971         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
1972
1973         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
1974
1975         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
1976
1977 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
1978
1979         * malloc/memusage.c: Add support for tracking mmap & friends.
1980         * malloc/memusage.sh: Implement -m/--mmap option.
1981
1982 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
1983
1984         * locale/programs/locarchive.c (create_archive): Add archivefname
1985         argument, create fname from it.
1986         (enlarge_archive): Honour output_prefix.
1987         (open_archive): Likewise.
1988
1989 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
1990
1991         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
1992         too many stpcpy macros.
1993
1994 2002-04-26  Bruno Haible  <bruno@clisp.org>
1995
1996         * locale/programs/ld-collate.c (collate_read): Cast first argument
1997         for "%.*s" to int.
1998
1999 2002-04-26  Bruno Haible  <bruno@clisp.org>
2000
2001         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
2002         __dcngettext_internal): New declarations.
2003         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
2004         attribute declarations.
2005
2006 2002-04-30  Roland McGrath  <roland@frob.com>
2007
2008         Removed old GNU stdio implementation; GNU libio is now the only option.
2009         * configure.in: Removed --enable-libio option and @stdio@ subst var.
2010         Define USE_IN_LIBIO unconditionally.
2011         * configure: Regenerated.
2012         * Makeconfig (stdio): Set to libio by default.
2013         * config.make.in (stdio): Variable removed.
2014         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
2015         * sysdeps/unix/sysv/linux/configure: Regenerated.
2016         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
2017         * sysdeps/mach/hurd/configure: Regenerated.
2018         * stdio/.cvsignore: File removed.
2019         * stdio/Makefile: File removed.
2020         * stdio/Versions: File removed.
2021         * stdio/__fbufsize.c: File removed.
2022         * stdio/__flbf.c: File removed.
2023         * stdio/__fpending.c: File removed.
2024         * stdio/__fpurge.c: File removed.
2025         * stdio/__freadable.c: File removed.
2026         * stdio/__freading.c: File removed.
2027         * stdio/__fsetlocking.c: File removed.
2028         * stdio/__fwritable.c: File removed.
2029         * stdio/__fwriting.c: File removed.
2030         * stdio/clearerr.c: File removed.
2031         * stdio/fclose.c: File removed.
2032         * stdio/fcloseall.c: File removed.
2033         * stdio/feof.c: File removed.
2034         * stdio/ferror.c: File removed.
2035         * stdio/fflush.c: File removed.
2036         * stdio/fgetc.c: File removed.
2037         * stdio/fgetpos.c: File removed.
2038         * stdio/fgets.c: File removed.
2039         * stdio/fileno.c: File removed.
2040         * stdio/fmemopen.c: File removed.
2041         * stdio/fopen.c: File removed.
2042         * stdio/fopncook.c: File removed.
2043         * stdio/fputc.c: File removed.
2044         * stdio/fputs.c: File removed.
2045         * stdio/fread.c: File removed.
2046         * stdio/freopen.c: File removed.
2047         * stdio/fseek.c: File removed.
2048         * stdio/fsetpos.c: File removed.
2049         * stdio/ftell.c: File removed.
2050         * stdio/fwrite.c: File removed.
2051         * stdio/getc.c: File removed.
2052         * stdio/getchar.c: File removed.
2053         * stdio/getdelim.c: File removed.
2054         * stdio/gets.c: File removed.
2055         * stdio/glue.c: File removed.
2056         * stdio/internals.c: File removed.
2057         * stdio/linewrap.c: File removed.
2058         * stdio/linewrap.h: File removed.
2059         * stdio/memstream.c: File removed.
2060         * stdio/newstream.c: File removed.
2061         * stdio/obstream.c: File removed.
2062         * stdio/putc.c: File removed.
2063         * stdio/putchar.c: File removed.
2064         * stdio/puts.c: File removed.
2065         * stdio/rewind.c: File removed.
2066         * stdio/setbuf.c: File removed.
2067         * stdio/setbuffer.c: File removed.
2068         * stdio/setlinebuf.c: File removed.
2069         * stdio/setvbuf.c: File removed.
2070         * stdio/stdio.h: File removed.
2071         * stdio/ungetc.c: File removed.
2072         * stdio/vasprintf.c: File removed.
2073         * stdio/vscanf.c: File removed.
2074         * stdio/vsnprintf.c: File removed.
2075         * stdio/vsprintf.c: File removed.
2076         * stdio/vsscanf.c: File removed.
2077         * sysdeps/generic/defs.c: File removed.
2078         * sysdeps/generic/fdopen.c: File removed.
2079         * sysdeps/generic/pipestream.c: File removed.
2080         * sysdeps/generic/stdio_init.c: File removed.
2081         * sysdeps/generic/sysd-stdio.c: File removed.
2082         * sysdeps/generic/vdprintf.c: File removed.
2083         * sysdeps/mach/hurd/defs.c: File removed.
2084         * sysdeps/mach/hurd/fdopen.c: File removed.
2085         * sysdeps/mach/hurd/pipestream.c: File removed.
2086         * sysdeps/mach/hurd/stdio_init.c: File removed.
2087         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
2088         * sysdeps/mach/hurd/vdprintf.c: File removed.
2089         * sysdeps/posix/defs.c: File removed.
2090         * sysdeps/posix/fdopen.c: File removed.
2091         * sysdeps/posix/pipestream.c: File removed.
2092         * sysdeps/posix/stdio_init.c: File removed.
2093         * sysdeps/posix/vdprintf.c: File removed.
2094         * sysdeps/unix/pipestream.c: File removed.
2095         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
2096         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
2097         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
2098
2099 2002-04-29  Roland McGrath  <roland@frob.com>
2100
2101         * include/libc-symbols.h (link_warning): Use `unused' attribute.
2102
2103 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
2104
2105         * sysdeps/generic/tls.h: Describe what must be defined.
2106
2107         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
2108         glob_in_dir [PR libc/3385].
2109         * posix/globtest.sh: Add test case.
2110
2111         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
2112         //TRANSLIT twice.
2113
2114 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
2115
2116         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
2117         _internal symbol handling.
2118         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2119
2120 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
2121
2122         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
2123         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
2124
2125 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
2126
2127         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
2128         not _LIBC and RE_ENABLE_I18N.
2129         (build_range_exp): Implement for not _LIBC.
2130         (build_collating_symbol): Likewise.
2131         (parse_bracket_exp): Unify redundant error handlings.
2132         Don't erase mbcset for non matching list in multibyte envs.
2133         (build_word_op): Add '_' to matching list for \w operator.
2134         * posix/regex_internal.c (re_string_construct): Invoke
2135         build_upper_buffer in case of not RE_ENABLE_I18N.
2136         (re_string_reconstruct): Don't touch cur_state in case of not
2137         RE_ENABLE_I18N.
2138         * posix/regex_internal.h (attribute_hidden): New macro in case of
2139         not _LIBC.
2140         (re_charset_t): Define range_starts/ends in case of not _LIBC.
2141         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
2142         RE_ENABLE_I18N.
2143         (transit_state_mb): Likewise.
2144         (check_node_accept_bytes): Implement the code evaluating range
2145         expression in case of not _LIBC.
2146         (find_collation_sequence_value): Hide in case of not _LIBC.
2147
2148 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
2149
2150         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
2151         i386/semctl.c.
2152         (__old_semctl, __new_semctl): Only use va_arg if the argument will
2153         be used.
2154
2155 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
2156
2157         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
2158
2159         * sysdeps/ia64/strncpy.S: Fix recovery code.
2160         Patch by David Mosberger <davidm@hpl.hp.com>.
2161
2162 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
2163
2164         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
2165         GLIBC_2.2.6.
2166
2167 2002-04-14  Bruno Haible  <bruno@clisp.org>
2168
2169         * posix/regex.c (re_max_failures): Add back symbol for binary
2170         compatibility.
2171
2172 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
2173
2174         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
2175         of buffer building functions.
2176         * posix/regex_internal.c (re_string_allocate): New function.
2177         (re_string_realloc_buffers): New function.
2178         (re_string_skip_chars): New function.
2179         (re_string_reconstruct): New function.
2180         (re_string_construct): Adapt it to new interface of buffer building
2181         functions.
2182         (re_string_construct_common): Likewise.
2183         (build_wcs_buffer): Likewise.
2184         (build_wcs_upper_buffer): Likewise.
2185         (build_upper_buffer): Likewise.
2186         (re_string_translate_buffer): Likewise.
2187         (re_string_context_at): Adapt it to variable length buffers.
2188         * posix/regex_internal.h (re_string_t): Add new fields to handle
2189         variable length buffers.
2190         (re_match_context_t): Likewise.
2191         * posix/regexec.c (re_search_internal): Adapt it to new interface
2192         of re_string_t and re_match_context_t.
2193         (acquire_init_state_context): Likewise.
2194         (check_matching): Likewise.
2195         (check_halt_state_context): Likewise.
2196         (proceed_next_node): Likewise.
2197         (set_regs): Likewise.
2198         (sift_states_backward): Likewise.
2199         (clean_state_log_if_need): Likewise.
2200         (sift_states_iter_mb): Likewise.
2201         (sift_states_iter_bkref): Likewise.
2202         (add_epsilon_backreference): Likewise.
2203         (transit_state): Likewise.
2204         (transit_state_sb): Likewise.
2205         (transit_state_mb): Likewise.
2206         (transit_state_bkref): Likewise.
2207         (transit_state_bkref_loop): Likewise.
2208         (check_node_accept): Likewise.
2209         (match_ctx_init): Likewise.
2210         (extend_buffers): New function.
2211
2212 2002-04-21  Bruno Haible  <bruno@clisp.org>
2213
2214         * iconvdata/tst-table.sh: For the second check, use the truncated
2215         GB18030 charmap table, like for the first check.
2216
2217 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
2218
2219         * elf/dl-load.c (open_verify): Correct __lseek parameters.
2220         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
2221
2222 2002-04-23  H.J. Lu  <hjl@gnu.org>
2223
2224         * include/math.h (isfinite): Fix a typo.
2225
2226 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
2227
2228         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
2229         which is created by the test suite.
2230
2231 2002-04-20  Bruno Haible  <bruno@clisp.org>
2232
2233         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
2234         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
2235
2236 2002-04-20  Bruno Haible  <bruno@clisp.org>
2237
2238         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
2239         to avoid gcc warning.
2240
2241 2002-04-20  Bruno Haible  <bruno@clisp.org>
2242
2243         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
2244         of data->__statep->__count.
2245
2246 2002-04-20  Bruno Haible  <bruno@clisp.org>
2247
2248         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
2249         tag characters.
2250         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
2251
2252 2002-04-24  Roland McGrath  <roland@frob.com>
2253
2254         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
2255         use END macro instead of our own .end directive.
2256         Use `callsys' insn mnemonic instead of `call_pal'.
2257
2258         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
2259
2260         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
2261         macro; we need this for Hurd.
2262
2263         Log entry was missing for 2002/03/24 commit of rev 1.8,
2264         goes with 2002-03-17 changes.
2265         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
2266         (sysdep_routines): Append ioperm here.
2267         (sysdep_headers): Append sys/io.h here.
2268
2269 2002-04-23  Roland McGrath  <roland@frob.com>
2270
2271         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
2272         * sysdeps/mach/hurd/sendto.c: Likewise.
2273         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
2274         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
2275         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
2276
2277 2002-04-22  Roland McGrath  <roland@frob.com>
2278
2279         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
2280         failure from i386_io_perm_* RPCs to ENOSYS.
2281
2282 2002-04-22  Andreas Jaeger  <aj@suse.de>
2283
2284         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
2285
2286         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
2287
2288         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
2289         register instead of destroying %rbx.
2290
2291 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
2292
2293         * string/string.h: Declare strerror_r also for XPG6.
2294
2295 2002-04-19  Roland McGrath  <roland@frob.com>
2296
2297         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
2298
2299 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
2300
2301         * Makefile: Add handling of xtests and xcheck targets.
2302         * MakeTAGS: Likewise.
2303         * Makeconfig: Likewise.
2304         * Makerules: Likewise.
2305         * Rules: Likewise.
2306         * manual/Makefile: Likewise.
2307         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
2308         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
2309
2310 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
2311
2312         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
2313         authnone_private_s.
2314         * sunrpc/auth_none.c: Include bits/libc-lock.h.
2315         Delete #ifdef _RPC_THREAD_SAFE_ block.
2316         (authnone_private): Make a struct, not a pointer to struct.
2317         (authnone_private_guard): New once-control variable.
2318         (authnone_create_once): New function, split out of
2319         authnone_create.  No need to allocate memory.
2320         (authnone_create): Just call authnone_create_once via
2321         __libc_once, then return &authnone_private->no_client.
2322         (authnone_marshal): Access private data via CLIENT argument,
2323         not authnone_private pointer.
2324         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
2325         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
2326         authnone_private_s.
2327
2328 2002-04-12  H.J. Lu  <hjl@gnu.org>
2329
2330         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
2331
2332 2002-04-18  Bruno Haible  <bruno@clisp.org>
2333
2334         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
2335         FROM_DIRECTION): Make the FROM direction stateless.
2336         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
2337         FROM_DIRECTION): Likewise.
2338
2339 2002-04-15  Bruno Haible  <bruno@clisp.org>
2340
2341         * iconvdata/JISX0213.TXT: New file.
2342         * iconvdata/jisx0213.h: New file.
2343         * iconvdata/jisx0213.c: New file.
2344         * iconvdata/euc-jisx0213.c: New file.
2345         * iconvdata/shift_jisx0213.c: New file.
2346         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
2347         * iconvdata/EUC-JISX0213.precomposed: New file.
2348         * iconvdata/SHIFT_JISX0213.precomposed: New file.
2349         * iconvdata/SHIFT_JISX0213.irreversible: New file.
2350         * iconvdata/tst-table-to.c (main): Make it work for encodings for
2351         which the "to" direction is stateful.
2352         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
2353         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
2354         SHIFT_JISX0213.
2355         (libJISX0213-routines): New variable.
2356         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
2357         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
2358         (LDFLAGS-libJISX0213.so): New variable.
2359         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
2360         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
2361         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
2362
2363 2002-04-15  Bruno Haible  <bruno@clisp.org>
2364
2365         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
2366         uint32_t.  Update to Unicode 3.2.
2367         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
2368         (BODY for TO_LOOP): Handle the ASCII range specially.
2369         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
2370         * iconvdata/testdata/BIG5HKSCS: Remove a character.
2371         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
2372
2373 2002-04-15  Bruno Haible  <bruno@clisp.org>
2374
2375         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
2376         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
2377
2378 2002-04-15  Bruno Haible  <bruno@clisp.org>
2379
2380         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
2381         (ucs4_to_cns11643): Update.
2382         * iconvdata/cns11643.c: Update to Unicode 3.2.
2383         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
2384         __cns11643_from_ucs4p2_tab): Regenerated.
2385         (__cns11643_from_ucs4p2c_tab): New array.
2386         * iconvdata/cvs11643l1.c: Update comments.
2387         * iconvdata/EUC-TW.irreversible: Remove two entries.
2388
2389 2002-04-15  Bruno Haible  <bruno@clisp.org>
2390
2391         * locale/C-translit.h.in: Update to Unicode 3.2.
2392         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
2393         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
2394
2395 2002-04-15  Bruno Haible  <bruno@clisp.org>
2396
2397         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
2398         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
2399
2400 2002-04-15  Bruno Haible  <bruno@clisp.org>
2401
2402         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
2403         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
2404         always one byte, not 0 bytes in some cases and 2 bytes in others.
2405
2406         * iconvdata/tst-table-from.c (main): Correct the usage message.
2407
2408 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
2409
2410         * posix/regcomp.c (parse_expression): Fix incorrect error code.
2411         (parse_dup_op): Fix error handling like "a{}".
2412         (parse_bracket_exp): Add error handling.
2413         (fetch_number): Add error handling for "a{<very_large_number>}".
2414
2415 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
2416
2417         * posix/regcomp.c (parse_bracket_symbol): Add error handling
2418         in case that the symbol name is too long.
2419         (build_charclass): Handle [:lower:]/[:uppper:] correctly
2420         in case of REG_ICASE.
2421
2422 2002-04-19  Andreas Jaeger  <aj@suse.de>
2423
2424         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
2425         <hartvige@mips.com>.
2426
2427 2002-04-15  H.J. Lu  <hjl@gnu.org>
2428
2429         * include/math.h (__finitel_internal): Declare only if
2430         __NO_LONG_DOUBLE_MATH is not defined.
2431         (__isinfl_internal): Likewise.
2432         (__isnanl_internal): Likewise.
2433
2434         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
2435         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2436         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2437         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2438         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2439         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2440         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2441
2442         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
2443         __fcntl_internal.
2444
2445         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
2446         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
2447
2448 2002-04-15  Bruno Haible  <bruno@clisp.org>
2449
2450         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
2451         (BODY for TO_LOOP): Likewise.
2452         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
2453         * iconvdata/tst-table.sh: Add support for encodings which contain
2454         precomposed Unicode characters, known to the iconv converter in both
2455         directions but not listed in the charmap.
2456         * iconvdata/IBM856.irreversible: New file.
2457         * iconvdata/IBM922.irreversible: New file.
2458         * iconvdata/IBM1132.irreversible: New file.
2459         * iconvdata/IBM1133.irreversible: New file.
2460         * iconvdata/IBM1160.irreversible: New file.
2461         * iconvdata/IBM1161.irreversible: New file.
2462         * iconvdata/IBM1163.irreversible: New file.
2463         * iconvdata/IBM1164.irreversible: New file.
2464         * iconvdata/ARMSCII-8.irreversible: New file.
2465         * iconvdata/TCVN5712-1.precomposed: New file.
2466         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
2467         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
2468         ARMSCII-8, TCVN5712-1.
2469         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
2470         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
2471         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
2472         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
2473
2474 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2475
2476         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
2477         for EVENING69.  Include offsets in TZ environment variable.
2478
2479 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
2480
2481         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
2482         avoid compiler warnings.
2483
2484         * locale/programs/localedef.c (main): Always call
2485         construct_output_path.
2486
2487         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
2488
2489         * locale/programs/locfile.c (to_archive): New variable.  To collect
2490         data which has to be added to the locale archive.
2491         (write_all_categories): Take new third parameter with locale name.
2492         Unless no_archive flag set add new locale data to the archive
2493         (write_locale_data): Unless no-archive flag set store generated data
2494         in to_archive data structure instead of generation output file.
2495         Add new parameter with locale category index.
2496         * locale/programs/locfile.h: Add new parameters in declaractions of
2497         write_all_categories and write_locale_data.
2498         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
2499         --add-to-archive, and --delete-from-archive options.  Pass extra
2500         parameter to write_all_categories.
2501         * locale/programs/localedef.h: Add prototypes for functions in
2502         locarchive.c.
2503         * locale/locarchive.h: New file.
2504         * locale/programs/locarchive.c: New file.
2505         * locale/Makefile (distribute): Add programs/locarchive.c and
2506         locarchive.h.
2507         (localedef-modules): Add md5 and locarchive.
2508         Add vpath to crypt subdir for md5.c.
2509
2510         * locale/programs/ld-address.c: Pass locale category ID as new second
2511         parameter to write_locale_data.
2512         * locale/programs/ld-collate.c: Likewise.
2513         * locale/programs/ld-ctype.c: Likewise.
2514         * locale/programs/ld-identification.c: Likewise.
2515         * locale/programs/ld-measurement.c: Likewise.
2516         * locale/programs/ld-messages.c: Likewise.
2517         * locale/programs/ld-monetary.c: Likewise.
2518         * locale/programs/ld-name.c: Likewise.
2519         * locale/programs/ld-numeric.c: Likewise.
2520         * locale/programs/ld-paper.c: Likewise.
2521         * locale/programs/ld-telephone.c: Likewise.
2522         * locale/programs/ld-time.c: Likewise.
2523
2524         * locale/simple-hash.c: Move compute_hashval function from here...
2525         * locale/hashval.h: ...to here.  New file.
2526         * locale/simple-hash.h: Add prototype for compute_hashval.
2527
2528         * include/libintl.h: Minor cleanups.
2529
2530 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
2531
2532         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
2533
2534 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
2535
2536         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
2537
2538 2002-04-14  Bruno Haible  <bruno@clisp.org>
2539
2540         * locale/programs/charmap.c (charmap_read): Don't access result if
2541         result == NULL.
2542
2543 2002-02-17  Andreas Schwab  <schwab@suse.de>
2544
2545         * elf/reldep7.c: New file.
2546         * elf/reldep7mod1.c: New file.
2547         * elf/reldep7mod2.c: New file.
2548         * elf/Makefile: Add rules to build and run reldep7.
2549
2550 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
2551
2552         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
2553         the end of the function.  Pass original flags to recursive call if
2554         add_dependency failed.
2555         (_dl_lookup_versioned_symbol): Likewise.
2556
2557 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
2558
2559         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
2560         early, but check whether it overflowed afterwards.
2561         * time/tst-mktime.c (main): Add new tests.
2562
2563 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
2564
2565         * debug/xtrace.sh: Fix program name in help message.
2566         Patch by Roger Luethi <rl@hellgate.ch>.
2567
2568         * include/sys/stat.h: Add prototypes for __lxstat_internal and
2569         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
2570         NOT_IN_libc.
2571         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
2572         * sysdeps/mach/hurd/lxstat.c: Likewise.
2573         * sysdeps/unix/common/lxstat.c: Likewise.
2574         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
2575         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2576         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2577         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2578         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
2579         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
2580         * sysdeps/mach/hurd/lxstat64.c: Likewise.
2581         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
2582         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2583
2584         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
2585         prototypes.  Add __mbrlen and __mbrtowc macros.
2586         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
2587         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
2588
2589         * include/unistd.h: Add prototype for __write_internal and add
2590         __libc_write macro is SHARED.
2591         * sysdeps/generic/write.c: Use INTDEF for __write.
2592         * sysdeps/mach/hurd/write.c: Likewise.
2593         * sysdeps/unix/sysv/aix/write.c: Likewise.
2594         * sysdeps/unix/syscalls.list: Add __libc_write alias.
2595
2596         * assert/assert.c: Replace STR_N_SIZE with something usable in
2597         macro arguments.
2598         * assert/assert-perr.c: Likewise.
2599
2600         * include/sys/socket.h: Declare __libc_sa_len_internal and define
2601         SA_LEN macro to use it if not NOT_IN_libc.
2602         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
2603
2604         * include/fcntl.h: Declare __open_internal and define __open and
2605         __libc_open macros if not NOT_IN_libc.
2606         * sysdeps/generic/open.c: Use INTDEF for __open.
2607         * sysdeps/mach/hurd/open.c: Likewise.
2608         * sysdeps/unix/sysv/aix/open.c: Likewise.
2609         * sysdeps/unix/syscalls.list: Add __open_internal alias.
2610
2611         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
2612         has correct number.
2613
2614         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
2615         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
2616         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2617         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2618
2619         * include/wctype.h: Declare __iswalpha_l_internal,
2620         __iswdigit_l_internal, __iswspace_l_internal,
2621         __iswxdigit_l_internal, and __iswctype_internal.  Define
2622         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
2623         __iswxdigit_l macros if not NOT_IN_libc.
2624         * wctype/iswctype.c: Use INTDEF for __iswctype.
2625         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
2626
2627         * include/math.h: Declare __isinf_internal, __isinfl_internal,
2628         __isnan_internal, and __isnanl_internal.
2629         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
2630         __isnan, and __isnanl.
2631         * stdio-common/printf_size.c: Likewise.
2632         * sysdeps/generic/printf_fphex.c: Likewise.
2633         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
2634         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2635         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
2636         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
2637         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2638         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2639         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2640         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2641         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2642         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2643         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2644         * sysdeps/m68k/s_isinfl.c: Likewise.
2645         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
2646         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2647
2648         * include/sys/time.h: Declare __gettimeofday_internal and define
2649         __gettimeofday macro if not NOT_IN_libc.
2650         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
2651         * sysdeps/mach/gettimeofday.c: Likewise.
2652         * sysdeps/posix/gettimeofday.c: Likewise.
2653         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2654         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
2655         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2656         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
2657
2658         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
2659         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
2660         Remove __lstat and __fstat inline functions.
2661         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
2662         * sysdeps/mach/hurd/fxstat.c: Likewise.
2663         * sysdeps/unix/fxstat.c: Likewise.
2664         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
2665         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2666         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2667         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2668         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
2669         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
2670         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2671         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
2672         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2673
2674         * include/unistd.h: Declare __getpid_internal and define
2675         __getpid macro if not NOT_IN_libc.
2676         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
2677         * sysdeps/generic/getpid.c: Likewise.
2678         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
2679         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
2680
2681         * include/unistd.h: Declare __getpgid_internal and define
2682         __getpgid macro if not NOT_IN_libc.
2683         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
2684         * sysdeps/mach/hurd/getpgid.c: Likewise.
2685         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
2686         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
2687         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
2688         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
2689
2690         * include/unistd.h: Declare __getpagesize_internal and define
2691         __getpagesize macro if not NOT_IN_libc.
2692         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
2693         __getpagesize.
2694         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
2695         * sysdeps/mach/getpagesize.c: Likewise.
2696         * sysdeps/posix/getpagesize.c: Likewise.
2697         * sysdeps/unix/getpagesize.c: Likewise.
2698         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2699         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2700         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
2701         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
2702
2703 2002-04-13  Andreas Jaeger  <aj@suse.de>
2704
2705         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
2706         as clobber to reduce register pressure.
2707         (__strpbrk_cg): Likewise.
2708         (__mempcpy_by4): Likewise.
2709         (__strstr_cg): Likewise.
2710         Add prototype for __memrchr.
2711
2712 2002-04-13  Andreas Schwab  <schwab@suse.de>
2713
2714         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
2715         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2716         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2717
2718 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
2719
2720         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
2721         check whether the caller prefers getting the most recent version of
2722         a symbol of the earliest version.
2723         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
2724         _dl_do_lookup to also take the new parameter and pass it on.
2725         Change 'explicit' parameter of _dl_lookup_symbol and
2726         _dl_lookup_versioned_symbol to flags.  Adjust tests.
2727         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2728         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
2729         _dl_lookup_versioned_symbol.
2730         * elf/dl-reloc.c: Likewise.
2731         * elf/dl-runtime.c: Likewise.
2732         * elf/dl-sym.c: Likewise.
2733         * sysdeps/mips/dl-machine.h: Likewise.
2734
2735 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2736
2737         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
2738         in a token.
2739         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
2740
2741 2002-04-10  Andreas Jaeger  <aj@suse.de>
2742
2743         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
2744
2745         * include/argz.h: Remove extra char from last patch.
2746
2747 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
2748
2749         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
2750         * sysdeps/unix/sysv/aix/chown.c: Likewise.
2751         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
2752         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2753         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2754         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
2755         __chown_internal.
2756         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2757
2758         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
2759         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
2760         * intl/ngettext.c: Likewise.
2761
2762         * include/sys/socket.h: Declare __connect_internal and define
2763         __connect macro if not NOT_IN_libc.
2764         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
2765         * sysdeps/unix/sysv/aix/connect.c: Likewise.
2766         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
2767
2768         * include/unistd.h: Declare __close_internal and define __close macro
2769         if not NOT_IN_libc.
2770         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
2771         WJUMP3): Add extra parenthesis to avoid expanding element names with
2772         macors like __close.
2773         * sysdeps/unix/syscalls.list: Add __close_internal alias.
2774
2775         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
2776         if not NOT_IN_libc.
2777         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
2778         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
2779         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
2780
2781         * include/unistd.h: Declare __fork_internal and define __fork macro
2782         if not NOT_IN_libc.
2783         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
2784         * sysdeps/unix/sysv/aix/fork.c: Likewise.
2785         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
2786
2787         * include/stdio_ext.h: Declare __fsetlocking_internal and define
2788         __fsetlocking macro to use it if not NOT_IN_libc.
2789         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
2790
2791         * libio/__fbufsize.c: Correct copyright.
2792         * libio/__flbf.c: Likewise.
2793         * libio/__fpending.c: Likewise.
2794         * libio/__fpurge.c: Likewise.
2795         * libio/__freadable.c: Likewise.
2796         * libio/__freading.c: Likewise.
2797         * libio/__fsetlocking.c: Likewise.
2798         * libio/__fwritable.c: Likewise.
2799         * libio/__fwriting.c: Likewise.
2800
2801         * include/stdio.h: Declare __asprintf_internal and define __asprintf
2802         macro to use it if not NOT_IN_libc.
2803         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
2804
2805         * include/mntent.h: Declare __setmntent_internal,
2806         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
2807         __getmntent_r, and __endmntent macros to use these functions if not
2808         NOT_IN_libc.
2809         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
2810         __endmntent.
2811
2812         * include/math.h: Declare __finite_internal, __finitef_internal, and
2813         __finitel_internal.  Redefine isfinite macro if in libc or libm using
2814         these functions.
2815         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
2816         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
2817         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
2818         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
2819         * sysdeps/i386/fpu/s_finitef.S: Likewise.
2820         * sysdeps/i386/fpu/s_finitel.S: Likewise.
2821         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2822         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2823         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2824         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2825
2826         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
2827         to use this function if not NOT_IN_libc.
2828         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
2829         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
2830         * sysdeps/mach/hurd/fcntl.c: Likewise.
2831         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2832         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2833
2834         * include/argz.h: Declare __argz_count_internal and
2835         __argz_stringify_internal.
2836         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
2837         __argz_stringify.
2838         * string/argz-count.c: Use INTDEF for __argz_count.
2839         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
2840
2841         * include/stdlib.h: Declare __cxa_atexit_internal and define
2842         __cxa_atexit macro if not NOT_IN_libc.
2843         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
2844         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
2845
2846         * assert/assert.c: Use INTDEF for __assert_fail.
2847         * assert/__assert.c: Use INTUSE for call to __assert_fail.
2848         * include/assert.h: Declare __assert_fail_internal.
2849
2850         * extra-lib.mk: Mark assignment to lib with override.
2851
2852 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2853
2854         * Makerules: Use cppflags-iterator.mk to add defines for all test
2855         source files.
2856
2857 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2858
2859         * elf/elf.h: Define R_SH_TLS_xxx macros.
2860         * elf/rtld.c: Remove an extra parenthesis.
2861         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
2862         TLS_GD macros.
2863         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
2864         * sysdeps/sh/dl-lookupcfg.h: New file.
2865         * sysdeps/sh/dl-tls.h: New file.
2866         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
2867         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
2868         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
2869         R_SH_TLS_TPOFF32 relocations.
2870
2871 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2872
2873         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
2874         of NOT_IN_LIBC.
2875         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
2876         * include/stdlib.h: Likewise.
2877
2878 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
2879
2880         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
2881         instead of _RTLD_LOCAL.
2882         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
2883         * include/unistd.h: Likewise.
2884         * sysdeps/generic/ldsodefs.h: Likewise.
2885
2886         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
2887         if in libc or ld.so.
2888
2889 2002-04-08  Andreas Jaeger  <aj@suse.de>
2890
2891         * elf/cache.c (print_entry): Support x86-64.
2892
2893 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2894
2895         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
2896         with one accessing the locale data structures directly.
2897         * stdio-common/printf-prs.c: Include localeinfo.h for new
2898         MB_CUR_MAX definition.
2899
2900         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
2901         is the name of the source file without extension.
2902         * Makefile (distribute): Add cppflags-iterator.mk.
2903         * cppflags-iterator.mk: New file.
2904         * extra-lib.mk: For the sources of the library run
2905         cppflags-iterator.mk.
2906
2907         * include/libintl.h: Declare __dcgettext_internal and
2908         _libc_intl_domainname_internal.  Define __dcgettext using these
2909         two symbols if used in libc itself.
2910         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
2911         _libc_intl_domainname_internal.
2912         * argp/argp-parse.c: Likewise.
2913         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
2914         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
2915         * intl/gettext.c: Likewise.
2916         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
2917         alias.
2918         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
2919         __dcgettext.
2920         * posix/regex_internal.c (gettext): Likewise.
2921
2922 2002-04-08  Andreas Jaeger  <aj@suse.de>
2923
2924         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
2925
2926         * sysdeps/x86_64/fpu/s_llrint.S: New.
2927         * sysdeps/x86_64/fpu/s_llrintf.S: New.
2928         * sysdeps/x86_64/fpu/s_llrintl.S: New.
2929         * sysdeps/x86_64/fpu/s_lrint.S: New.
2930         * sysdeps/x86_64/fpu/s_lrintf.S: New
2931         * sysdeps/x86_64/fpu/s_lrintl.S: New.
2932
2933 2002-04-08  Roland McGrath  <roland@frob.com>
2934
2935         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
2936         widening __hurd_fail value.
2937
2938 2002-04-07  Roland McGrath  <roland@frob.com>
2939
2940         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
2941         <mach/machine/alpha_instruction.h>.
2942         (_hurd_setup_sighandler): Take proper arguments for current decls.
2943         Update code to use _hurdsig_catch_fault.
2944         Use `callsys' instruction instead of `call_pal'.
2945         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
2946
2947         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
2948         (ALIGN, at, AT, fp): New macros.
2949
2950 2002-04-06  Roland McGrath  <roland@frob.com>
2951
2952         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
2953
2954         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
2955         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
2956
2957         * sysdeps/mach/hurd/bind.c: Use prototype definition.
2958         * sysdeps/mach/hurd/connect.c: Likewise.
2959         * sysdeps/mach/hurd/getsockopt.c: Likewise.
2960         * sysdeps/mach/hurd/setsockopt.c: Likewise.
2961
2962         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
2963         __msg_sig_post RPC.
2964
2965         * hurd/catch-exc.c: Use integer_t instead of int.
2966         * hurd/hurdfault.c: Likewise.
2967
2968         * sysdeps/mach/hurd/alpha/exc2signal.c
2969         (_hurd_exception2signal): Rewritten.
2970         * sysdeps/mach/hurd/alpha/longjmp-ts.c
2971         (_hurd_longjmp_thread_state): Rewritten.
2972
2973 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
2974
2975         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
2976         DB_LOOKUP_FCT prototype.
2977         * nss/getXXent_r.c: Likewise.
2978         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
2979         * inet/getaliasname_r.c: Likewise.
2980         * inet/getnetbyad_r.c: Likewise.
2981         * inet/getnetbynm_r.c: Likewise.
2982         * inet/getnetent_r.c: Likewise.
2983         * inet/getproto_r.c: Likewise.
2984         * inet/getprtent_r.c: Likewise.
2985         * inet/getprtname_r.c: Likewise.
2986         * inet/getrpcbyname_r.c: Likewise.
2987         * inet/getrpcbynumber_r.c: Likewise.
2988         * inet/getrpcent_r.c: Likewise.
2989         * inet/getservent_r.c: Likewise.
2990         * inet/getsrvbynm_r.c: Likewise.
2991         * inet/getsrvbypt_r.c: Likewise.
2992         * shadow/getspent_r.c: Likewise.
2993         * shadow/getspnam_r.c: Likewise.
2994
2995         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
2996
2997         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
2998         Use i686-friendly PIC code.
2999         * sysdeps/i386/elf/setjmp.S: Likewise.
3000
3001         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
3002
3003         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
3004         list.
3005         * elf/Versions: Remove it here.
3006
3007 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
3008
3009         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
3010         direction.  Reported by H . J . Lu <hjl@lucon.org>.
3011
3012 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
3013
3014         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
3015         test just before the test runs.
3016         * intl/tst-translit.sh: Likewise.
3017         * intl/tst-codeset.sh: Likewise.
3018
3019         * timezone/zic.c: Update from tzcode2002c.
3020         * timezone/asia: Update from tzdata2002c.
3021         * timezone/backward: Likewise.
3022         * timezone/europe: Likewise.
3023         * timezone/northamerica: Likewise.
3024         * timezone/northamerica: Likewise.
3025         * timezone/northamerica: Likewise.
3026         * timezone/southamerica: Likewise.
3027         * timezone/zone.tab: Likewise.
3028
3029 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
3030
3031         * sysdeps/generic/brk.c (__curbrk): Declare.
3032         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
3033         * sysdeps/generic/dl-sbrk.c: Likewise.
3034         * sysdeps/unix/arm/dl-brk.S: New file.
3035         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
3036         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
3037         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
3038         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
3039         * sysdeps/unix/i386/dl-brk.S: New file.
3040         * sysdeps/unix/mips/dl-brk.S: New file.
3041         * sysdeps/unix/sparc/dl-brk.S: New file.
3042         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
3043         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
3044         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
3045         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
3046
3047 2002-04-03  Andreas Schwab  <schwab@suse.de>
3048
3049         * Makefile (headers): Add gnu/lib-names.h here instead of
3050         install-others.
3051         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
3052         installation rule.
3053         (install-headers): Add dependency on install-headers-nosubdir.
3054         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
3055         instead of install-others.
3056         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
3057         installation rule.
3058
3059 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
3060
3061         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
3062         Reported by Sam Roberts <sroberts@uniserve.com>.
3063
3064 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3065
3066         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
3067         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
3068         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
3069         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
3070
3071 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
3072
3073         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
3074         (RTLD_START): Ditto.
3075         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
3076         dependency violation.
3077
3078 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3079
3080         * time/mktime.c (__mktime_internal): Move check for year < 70 below
3081         all variable declarations.
3082
3083 2002-04-04  Andreas Schwab  <schwab@suse.de>
3084
3085         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
3086
3087 2002-04-04  Andreas Jaeger  <aj@suse.de>
3088
3089         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
3090         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
3091
3092         * sysdeps/x86_64/fpu/s_fabs.c: New file.
3093         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
3094         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
3095
3096         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
3097
3098         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
3099
3100         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
3101         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
3102
3103         * configure.in: Handle all mips entries the same.
3104
3105         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
3106         * sysdeps/mips/mips3/*: Likewise.
3107         * sysdeps/mips/p40/bits/endian.h: Likewise.
3108
3109 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
3110
3111         * misc/dirname.c (dirname): Ignore trailing slashes at end of
3112         non-null result [PR libc/2600].
3113
3114         * misc/tst-dirname.c: Add more tests.
3115
3116 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
3117
3118         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
3119         define a code_set_name provide one based on the filename.
3120
3121         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
3122
3123 2001-12-28  Andreas Jaeger  <aj@suse.de>
3124
3125         * time/mktime.c (__mktime_internal): Check for year < 70
3126         [PR libc/2738].
3127
3128 2002-04-03  Andreas Jaeger  <aj@suse.de>
3129
3130         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
3131         shmat.
3132         Reported by Andi Kleen <ak@suse.de>.
3133
3134 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
3135
3136         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
3137         * sysdeps/generic/w_lgammaf.c: Likewise.
3138         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
3139
3140         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
3141         Adjust for new output format of the backtrace functions.
3142
3143         * misc/syslog.c (vsyslog): Only use cleanup handler if
3144         _LIBC_REENTRANT is defined [PR libc/2924].
3145
3146         * libio/Makefile (tests): Add bug-ungetwc2.
3147         * libio/bug-ungetwc2.c: New file.
3148
3149         * manual/install.texi: Typographical and grammatical cleanup.
3150         Patch by Dennis Grace <dgrace@us.ibm.com>.
3151
3152         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
3153         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
3154
3155         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
3156         always "&".  Adjust callers.
3157         Add "_" prefix to several generated definitions.
3158         Patch by paul@serice.net [PR libc/3158].
3159
3160 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
3161
3162         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
3163         size of _dl_arm_cap_flags.
3164         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
3165
3166         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
3167         Define as 8.
3168
3169 2002-03-22  H.J. Lu  <hjl@gnu.org>
3170
3171         * scripts/firstversions.awk: Check the first version.
3172
3173 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
3174
3175         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
3176         dependencies must be stable to work correctly.
3177         Reported by martin.lubich@datacon.at.
3178
3179         * libio/bug-ungetwc1.c: New file.
3180         * libio/Makefile (tests): Add bug-ungetwc1.
3181
3182         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
3183         if stream was last used for writing.
3184
3185         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
3186         number [PR libc/3111].
3187
3188         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
3189         to ...
3190         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
3191
3192 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
3193
3194         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
3195         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
3196         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
3197         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
3198         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
3199
3200 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3201
3202         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
3203         dynamic tags.
3204
3205 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3206
3207         * sysdeps/i386/fpu/s_fabs.S: New file.
3208         * sysdeps/i386/fpu/s_fabsf.S: New file.
3209         * sysdeps/i386/fpu/s_fabsl.S: New file.
3210         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
3211         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
3212         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
3213
3214 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
3215
3216         * rt/tst-shm.c (do_test): Add one more test for size of shared
3217         memory object.
3218
3219 2002-03-29  Wolfram Gloger  <wg@malloc.de>
3220
3221         * malloc/malloc.c: Add short description and prototypes for
3222         malloc_get_state, malloc_set_state and posix_memalign, for
3223         consistency and to avoid warnings with -Wstrict-prototypes.
3224         Reported by Andreas Jaeger <aj@suse.de>.
3225
3226 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
3227
3228         * po/gl.po: Update from translation team.
3229
3230 2002-03-31  Roland McGrath  <roland@frob.com>
3231
3232         * hurd/hurdselect.c (_hurd_select): Fix
3233         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
3234         Use a union rather than casts to compare mach_msg_type_t as int.
3235
3236 2002-03-25  Roland McGrath  <roland@frob.com>
3237
3238         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
3239         check off the end of NAME when it's shorter than 2 chars.
3240         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
3241
3242 2002-03-17  Roland McGrath  <roland@frob.com>
3243
3244         * sysdeps/mach/hurd/i386/sys/io.h: New file.
3245         * sysdeps/mach/hurd/i386/ioperm.c: New file.
3246         * sysdeps/mach/hurd/i386/Dist: Add them.
3247         * sysdeps/mach/hurd/i386/Versions
3248         (libc: GLIBC_2.2.6): New set, add ioperm.
3249         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
3250         (mach_interface_list): Check for mach_i386.defs.
3251         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
3252         * sysdeps/mach/configure: Regenerated.
3253
3254 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
3255
3256         * po/fr.po: Update from translation team.
3257
3258 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3259
3260         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
3261         getpriority from syscalls list.
3262
3263 2002-03-28  Andreas Jaeger  <aj@suse.de>
3264
3265         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
3266         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
3267         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
3268         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
3269
3270 2002-03-27  Andreas Jaeger  <aj@suse.de>
3271
3272         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3273         sigcontext): Follow further kernel change.
3274
3275         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
3276         kernel change.
3277
3278         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
3279         Change for struct sigcontext change.
3280
3281         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3282         Follow changes in struct sigcontext.
3283
3284         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
3285         sysycall, use wrapper instead.
3286
3287 2002-03-26  Andreas Jaeger  <aj@suse.de>
3288
3289         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
3290         read and write accesses as detailed as possible.
3291         (__memcpy_by2): Likewise.
3292         (__memcpy_g): Likewise.
3293         (memmove): Likewise.
3294         (memcmp): Likewise.
3295         (__memset_ccn_by4): Likewise.
3296         (__memset_ccn_by2): Likewise.
3297         (__memset_gcn_by4): Likewise.
3298         (__memset_gcn_by2): Likewise.
3299         (memchr): Likewise.
3300         (__memrchr): Likewise.
3301         (rawmemchr): Likewise.
3302         (__strlen_g): Likewise.
3303         (__strcpy_g): Likewise.
3304         (__mempcpy_by4): Likewise.
3305         (__mempcpy_by2): Likewise.
3306         (__mempcpy_byn): Likewise.
3307         (__stpcpy_g): Likewise.
3308         (__strncpy_by4): Likewise.
3309         (__strncpy_by2): Likewise.
3310         (__strncpy_byn): Likewise.
3311         (__strncpy_gg): Likewise.
3312         (__strcat_c): Likewise.
3313         (__strcat_g): Likewise.
3314         (__strncat_g): Likewise.
3315         (__strcmp_gg): Likewise.
3316         (__strncmp_g): Likewise.
3317         (__strchr_c): Likewise.
3318         (__strchr_g): Likewise.
3319         (__strchrnul_c): Likewise.
3320         (__strchrnul_g): Likewise.
3321         (__strrchr_c): Likewise.
3322         (__strrchr_g): Likewise.
3323         (__strrchr_c): Likewise.
3324         (__strrchr_g): Likewise.
3325         (__strcspn_c1): Likewise.
3326         (__strcspn_cg): Likewise.
3327         (__strcspn_g): Likewise.
3328         (__strcspn_g): Likewise.
3329         (__strspn_c1): Likewise.
3330         (__strspn_cg): Likewise.
3331         (__strspn_g): Likewise.
3332         (__strspn_g): Likewise.
3333         (__strpbrk_cg): Likewise.
3334         (__strpbrk_g): Likewise.
3335         (__strstr_cg): Likewise.
3336         (__strstr_g): Likewise.
3337
3338         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
3339         Michal Ludvig <mludvig@suse.cz>.
3340
3341         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
3342         compatibilty, adjust for kernel changes.
3343
3344         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3345         sigcontext): Adjust for kernel changes.
3346
3347 2002-03-25  Andreas Jaeger  <aj@suse.de>
3348
3349         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
3350         little endian.
3351         Reported by Artur Zaprzala <zybi@talex.com.pl>.
3352
3353 2002-03-24  Andreas Jaeger  <aj@suse.de>
3354
3355         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
3356
3357         * stdio-common/tst-fdopen.c (main): Remove unused variable.
3358
3359         * iconv/tst-iconv3.c (main): Use correct printf strings.
3360
3361 2002-03-18  Roland McGrath  <roland@frob.com>
3362
3363         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
3364         (CMGROUP_MAX): New macro.
3365
3366 2002-03-23  Roland McGrath  <roland@frob.com>
3367
3368         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
3369         * sysdeps/posix/shm_unlink.c: Likewise.
3370
3371 2002-03-22  Roland McGrath  <roland@frob.com>
3372
3373         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
3374         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
3375         under --enable-libio.
3376         * sysdeps/mach/hurd/configure: Regenerated.
3377
3378 2002-03-23  Roland McGrath  <roland@frob.com>
3379
3380         * sysdeps/mach/hurd/i386/Makefile
3381         (sysdep_routines, shared-only-routines): Don't add framestate,
3382         reverting 2001-10-02 change.
3383         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
3384         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
3385         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3386         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3387         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3388         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
3389         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3390         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
3391         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
3392         Do it here instead, only if [$(unwind-find-fde) = yes].
3393
3394 2002-03-23  Andreas Jaeger  <aj@suse.de>
3395
3396         * signal/signal.h: Fix typo. Patch by Steve Kemp
3397         <skx@tardis.ed.ac.uk>.
3398
3399 2002-03-22  Andreas Jaeger  <aj@suse.de>
3400
3401         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
3402         getresuid.
3403
3404         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3405         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
3406         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3407         user_fpregs_struct): Rename fwd.
3408
3409         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3410         Follow sigcontext changes.
3411
3412 2002-03-22  Andreas Jaeger  <aj@suse.de>
3413
3414         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
3415         changes for NaNs on MIPS.
3416         Patch by Hartvig Ekner <hartvige@mips.com>.
3417
3418 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
3419
3420         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
3421         Use realloc if too large.
3422         (addgrbyid): Likewise.
3423         * nscd/hstcache.c (addhstbyname): Likewise.
3424         (addhstbyaddr): Likewise.
3425         (addhstbynamev6): Likewise.
3426         (addhstbyaddrv6): Likewise.
3427         * nscd/pwdcache.c (addpwbyname): Likewise.
3428         (addpwbyuid): Likewise.
3429
3430 2002-03-21  Andreas Jaeger  <aj@suse.de>
3431
3432         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3433         _fpstate): Add separate struct for x86-64.
3434
3435         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3436         user_fpregs_struct): Change member names to follow kernel.
3437
3438 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
3439
3440         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
3441         Correctly close the UDP connection right away [PR libc/3120].
3442
3443 2002-03-20  Andreas Jaeger  <aj@suse.de>
3444
3445         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3446         user_fpregs_struct): Fix for changed kernel struct.
3447         (struct user_regs_struct): Likewise.
3448         (struct user): Likewise.
3449         Add 32-bit x86 compatibility.
3450
3451         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
3452
3453 2002-03-19  Andreas Jaeger  <aj@suse.de>
3454
3455         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
3456
3457 2002-03-18  Andreas Jaeger  <aj@suse.de>
3458
3459         * iconvdata/Makefile: Only run tests when shared libs are
3460         available.
3461
3462 2002-03-17  Andreas Jaeger  <aj@suse.de>
3463
3464         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
3465
3466         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
3467
3468         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
3469         bits.
3470
3471         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
3472         (CAUSE_SHIFT): New.
3473         Patch by Hartvig Ekner <hartvige@mips.com>.
3474
3475         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
3476         * sysdeps/generic/unwind-pe.h: Likewise.
3477
3478         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
3479         type to _IO_setb.
3480
3481         * libio/stdio.c (AL2): Define variant when visibility attribute is
3482         not supported.
3483
3484         * include/libc-symbols.h (_INTVARDEF): Define variant when
3485         visibility attribute is not supported.
3486
3487 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
3488
3489         * po/fr.po: Update from translation team.
3490
3491 2002-02-25  Bruno Haible  <bruno@clisp.org>
3492
3493         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
3494
3495 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3496
3497         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
3498         buffers if _IO_file_attach failed.
3499
3500         * libio/fileops.c (_IO_file_open): Close file descriptor if
3501         _IO_SEEKOFF call failed.
3502
3503 2002-03-15  H.J. Lu  <hjl@gnu.org>
3504             Ulrich Drepper  <drepper@redhat.com>
3505
3506         * configure.in: Check for availability of
3507         init_array/fini_array/preinit_array handling in binutils.
3508         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
3509         * config.make.in (have-initfini-array): New variable.
3510
3511 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3512
3513         * stdio-common/tst-printf.c (main): Comment out one test which
3514         checked the compiler's ability to fold floating-point constants
3515         but not really printf.
3516         (rfg3): Make s const.
3517         * stdio-common/tst-printf.sh: Adjust for removed test.
3518
3519         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
3520         internal function.  Adjust for internal_function calling convention.
3521         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
3522         as internal_function.
3523
3524         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
3525         hidden.
3526