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