Update.
[glibc.git] / ChangeLog
blob0ce2f6b95f4af64ed0f42983fabea626b41e3c8a
1 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4         duplication with generated name, not the name of the first
5         character.
6         Patch by Yong Li <yong.li@asu.edu>.
8         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
9         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
11 2000-07-21  Wolfram Gloger  <wg@malloc.de>
13         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
14         allocations only if a non-main arena cannot be extended.
16 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
18         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
19         in DF_1_NODEFLIB handling.
21 2000-07-21  Andreas Jaeger  <aj@suse.de>
23         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
24         own rule.
26         * libio/fwide.c: Include <wchar.h> for prototype.
28 2000-07-21  Greg McGary  <greg@mcgary.org>
30         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
31         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
32         Define in terms of chunk_at_offset.
33         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
34         (next_bin, prev_bin): offset by size of real array elements.
35         (chunk_align): Make `m' a scalar, since that's how it's used.
37 2000-07-21  Greg McGary  <greg@mcgary.org>
39         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
40         UNCHECK_BOUNDS.
41         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
42         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
43         Wrap bounds around argv & envp and each of their string members.
44         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
45         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
46         symbol in BP_SYM ().  Discard bounds of address arg.
47         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
48         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
49         Discard bounds on address arg, add bounds to return value.
51 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
53         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
54         * elf/filter.c: New file.
55         * elf/filtmod1.c: New file.
56         * elf/filtmod2.c: New file.
58         * elf/rtld.c: Define _dl_bind_not variable.
59         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
60         * elf/dl-support.c: Likewise.
61         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
62         * elf/dl-runtime.c (fixup): Don't remember looked up value if
63         _dl_bind_not.
64         (profile_fixup): Likewise.
66         * libio/Makefile (routines): Add fwide.
67         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
68         fwide now.  Internal calls to _IO_fwide must do locking themselves
69         or don't need locking.
70         * libio/fwide.c: New file.
72         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
74         * elf/Makefile: Add no modules for nodelete test.
75         * elf/nodelmod3.c: New file.
76         * elf/nodelmod4.c: New file.
77         * elf/nodelete.c: Also test case where dependency of dlopen() object
78         is marked nodelete.
80         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
81         * elf/nodlopen.c: New file.
82         * elf/nodlopenmod.c: New file.
83         * include/dlfcn.h: Define __RTLD_DLOPEN.
84         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
85         and this is a dlopen() call, do not load the binary.
86         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
87         * dlfcn/dlopenold.c: Likewise.
88         * configure.in: Add test for -z nodelete option.
89         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
91 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
93         Make Hesiod NSS module thread-safe.
95         * hesiod/README.hesiod: Update.
97         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
98         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
99         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
100         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
101         hesiod-proto.
102         * hesiod/nss_hesiod/hesiod-init.c: New file.
103         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
104         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
105         * hesiod/nss_hesiod/nss_hesiod.h: New file.
106         * hesiod/nss_hesiod/hesiod-service.c
107         (_nss_hesiod_getservbyport_r): New function.  Provide support for
108         looking up services by port number.
109         * hesiod/nss_hesiod/hesiod-proto.c: New file.
111         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
112         * hesiod/hesiod.h: Likewise.
113         * hesiod/hesiod_p.h: Likewise.
115 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
117         Fix problems with `struct __res_state' getting too big.
118         * resolv/resolv.h (struct __sockaddr_in): New definition.
119         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
120         the private parts of the structure to save some space.
121         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
122         (struct sockaddr_in *) in call to sock_eq.
123         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
125 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
127         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
128         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
129         with nodelete.
130         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
131         to _dl_map_object.  Return immediately if no object loaded.
132         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
133         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
134         if it exists into l_flags_1 word.
135         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
136         it to determine whether loading is wanted or not.
137         (_dl_map_object): Likewise.
138         Call _dl_map_object_from_fd with new parameter.
139         * sysdeps/generic/ldsodefs.h: Update prototype.
140         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
141         * elf/rtld.c: Likewise.
142         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
143         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
144         * elf/noload.c: New file.
145         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
146         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
147         * sysdeps/mips/bits/dlfcn.h: Likewise.
148         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
149         (tests-nodelete-yes): Define.
150         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
151         Add rules to build nodelete and modules.
152         * elf/nodelete.c: New file.
153         * elf/nodelmod1.c: New file.
154         * elf/nodelmod2.c: New file.
155         * configure.in: Add test for -z nodelete option.
156         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
158         * libio/Makefile (tests): Add tst_wprintf2.
159         (tst_wprintf2-ARGS): Define.
160         * libio/tst_wprintf2.c: New file.
161         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
163         * libio/wfiledoalloc.c: Only allocate external buffer if this
164         hasn't happened yet.
166         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
167         something in the buffer.  gconv call can write up to end of the
168         buffer, not only _IO_write_end.
169         (_IO_wfile_overflow): Allocate also external buffer.
171 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
173         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
174         strings with precision in vfwprintf correctly.
175         * stdio-common/vfprintf.c: Fix completely broken handling of
176         unbuffered wide character streams.
177         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
179         * resolv/Makefile (distribute): Add README.
181         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
183 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
185         Update resolver code to BIND 8.2.3-T5B.
187         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
188         __res_nclose.
189         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
190         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
191         __res_search.
192         * resolv/Banner: BIND-8.2.3-T5B.
194         * resolv/base64.c: Update from BIND 8.2.3-T5B.
195         * resolv/herror.c: Likewise.
196         * resolv/inet_addr.c: Likewise.
197         * resolv/inet_net_ntop.c: Likewise.
198         * resolv/inet_net_pton.c: Likewise.
199         * resolv/inet_neta.c: Likewise.
200         * resolv/inet_ntop.c: Likewise.
201         * resolv/nsap_addr.c: Likewise.
202         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
203         IPv6 addresses (ISC bug #520).
205         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
206         * resolv/ns_parse.c: Likewise.
207         * resolv/ns_netint.c: Likewise.
208         * resolv/ns_samedomain.c: Likewise.
209         * resolv/ns_ttl.c: Likewise.
210         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
211         RCS ID in object file.
213         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
214         * resolv/res_mkquery.c: Likewise.
215         * resolv/res_query.c: Likewise.
216         * resolv/res_init.c: Likewise.
217         (res_setoptions): Mark internal.
218         * resolv/res_send.c: Likewise.
219         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
220         by using poll instead.
221         * resolv/res_comp.c: Likewise.
222         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
223         weak alias for __dn_expand.
224         * resolv/res_data.c: Likewise.
225         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
226         in _res.options.  Avoids a potential security risk by avoiding a
227         close (0).
228         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
229         res_mkquery, res_query, res_querydomain adn res_search weak
230         aliases for __res_mkquery, __res_query, __res_querydomain and
231         __res_search.
232         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
233         instead to avoid close(0).
234         (res_init): Always use the static resolver context.
235         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
236         alias for __res_init.
238         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
239         RES_SET_H_ERRNO and accompanying comment to...
240         * include/resolv.h: ... here.
242         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
243         * resolv/arpa/nameser_compat.h: Likewise.
245 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
247         * nss/makedb.c (main): Compare result of load_db with
248         NSS_STATUS_SUCCESS and not 0.
249         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
251         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
253 2000-07-18  Greg McGary  <greg@mcgary.org>
255         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
256         (EXTEND_BUFFER): Use it.
258 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
260         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
261         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
262         __builtin_return_address.
263         * dlfcn/dlopenold.c: Likewise.
264         * dlfcn/dlsym.c: Likewise.
265         * dlfcn/dlvsym.c: Likewise.
266         * elf/dl-profstub.c: Likewise.
267         * malloc/malloc.c: Likewise.
268         * sysdeps/generic/machine-gmon.h: Likewise.
269         Based on a patch by schwidefsky@de.ibm.com.
271 2000-07-18  Andreas Jaeger  <aj@suse.de>
273         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
274         NULL to elf_machine_fixup_plt t argument to silence GCC.
276         * include/string.h: Add prototype for __memchr.
278         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
280         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
281         instead of memrchr.
283 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
285         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
287         * locale/C-ctype.c: Add initializers for gap elements.
288         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
289         for gap elements.
291 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
293         * nscd/nscd.c (print_version): Update copyright year.
295 2000-07-17  Greg McGary  <greg@mcgary.org>
297         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
298         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
299         signature argnames with angle-brackets for use as word delimiters,
300         and to induce syntax errors for any args not handled.  Split
301         multi-echo echoes and comment each stage.
302         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
303         * sysdeps/unix/inet/syscalls.list: Likewise.
304         * sysdeps/unix/mman/syscalls.list: Likewise.
305         * sysdeps/unix/syscalls.list: Likewise.
306         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
307         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
308         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
309         * sysdeps/unix/sysv/syscalls.list: Likewise.
310         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
312         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
313         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
314         qualifiers.  Don't check NULL-terminator of argv & envp.
315         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
316         unbounded pointer type in word-size assertion.
317         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
318         cases to stifle warnings.
320         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
321         _IO_file_attach.
322         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
324         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
325         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
326         ptr as __unbouned.
328         * Makerules (o-objects): Supplement with $(o-objects$o).
329         * string/Makefile (o-objects.ob): Add variable to pull
330         unbounded versions of memcpy, memset and memchr into libc_b.
332         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
333         rather than non-existent __ubp_memchr.
334         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
335         (_CHECK_STRING, _CHECK_N): New macros.
336         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
337         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
338         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
339         Add weak alias "memchr".
340         * sysdeps/generic/memchr.c: Likewise.
341         * sysdeps/i386/memchr.S: Likewise.
342         * sysdeps/ia64/memchr.S: Likewise.
343         * sysdeps/m68k/memchr.S: Likewise.
344         * sysdeps/sparc/sparc32/memchr.S: Likewise.
345         * sysdeps/sparc/sparc64/memchr.S: Likewise.
346         * sysdeps/vax/memchr.s: Likewise.
348         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
350         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
351         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
352         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
353         __BOUNDED_POINTERS__.
354         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
355         for __BOUNDED_POINTERS__.
357 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
359         * iconv/gconv_open.c (__gconv_open): Initialize the __data
360         field of struct __gconv_trans_data differently.  Don't pass NULL to
361         trans_init_fct.  Simplify list append operation.
363 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
365         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
366         not only those having tsearch.
368 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
370         * locale/langinfo.h: Add placeholder values in enum for removed
371         LC_CTYPE entries.
373 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
375         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
376         chain if the PHDR check fails.
378 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
380         * nss/getent.c (print_hosts): Make sure we always print a space
381         between numeric addresses and hostnames.
383 2000-07-17  Wolfram Gloger  <wg@malloc.de>
385         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
386         i.e. if n_mmaps_max>0.
388 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
390         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
391         values to remove possible clash with other AI_* constants.
392         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
393         hexadecimal constants to stress the fact they're in fact
394         bit flags.
396 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
398         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
399         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
400         instead of res_init.
402 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
404         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
405         parameters of memset calls to avoid warnings.
407 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
409         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
410         necessary.
412         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
413         Patch by Greg McGary <greg@mcgary.org>.
415         * io/Makefile (tests): Add tst-getcwd.
416         * io/tst-getcwd.c: New file.
418         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
420 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
422         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
423         structure.
425 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
427         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
428         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
430 2000-07-12  H.J. Lu  <hjl@gnu.org>
432         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
433         GLIBC_2.2.
434         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
435         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
436         (sysdep-routines): Add clone2.
437         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
439 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
441         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
442         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
444 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
446         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
447         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
448         Change type of si_band from "int" to "long".
449         (si_imm) [USE_GNU]: Define
450         (si_isr) [USE_GNU]: Ditto.
451         (ILL_BREAK) [USE_GNU]: Ditto.
452         (FPE_DECOVF) [USE_GNU]: Ditto.
453         (FPE_DECDIV) [USE_GNU]: Ditto.
454         (FPE_DECERR) [USE_GNU]: Ditto.
455         (FPE_INVASC) [USE_GNU]: Ditto.
456         (FPE_INVDEC) [USE_GNU]: Ditto.
457         (TRAP_BRANCH) [USE_GNU]: Ditto.
458         (TRAP_HWBKPT) [USE_GNU]: Ditto.
460 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
462         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
463         bits/sigcontext as struct mcontext does not depend on it.
465         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
467 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
469         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
471 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
473         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
475 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
477         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
479 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
481         * intl/Makefile (test-srcs): Add tst-translit.
482         (tests): Likewise.
483         Add rules to build and run tst-translit.
484         * intl/tst-translit.c: New file.
485         * intl/tst-translit.sh: New file.
486         * intl/translit.po: New file.
488 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
490         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
491         transliteration function did its job, continue, don't stop.
493         * iconvdata/iso646.c: Little optimizations in body for conversion
494         from UCS4.
496 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
498         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
500 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
502         * configure.in: Check for pwd binary.
503         * config.make.in: Add PWD_P to be subsituted.
504         * Makerules: Use $(PWD_P) instead of /bin/pwd.
506 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
508         * iconvdata/Makefile (modules): Add GB18030.
509         (distribute): Add gb18030.c.
510         * iconvdata/gconv-modules: Add entries for GB18030 module.
511         * iconvdata/gb18030.c: New file.
512         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
513         and Wu Jian.
515 2000-07-13  Andreas Jaeger  <aj@suse.de>
517         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
518         patch.
520         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
521         * inet/getnetgrent.c (free_mem): Likewise.
522         * misc/mntent.c (free_mem): Likewise.
523         * nss/getXXbyYY.c (free_mem): Likewise.
524         * nss/getXXent.c (free_mem): Likewise.
525         * pwd/fgetpwent.c (free_mem): Likewise.
526         * shadow/fgetspent.c (free_mem): Likewise.
528 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
530         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
531         64-bit architecture correctly [PR libc/1794].
533 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
535         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
536         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
537         report that we are out of memory.
538         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
539         * elf/dl-libc.c (dlerror_run): Likewise.
540         * elf/dl-open.c (_dl_open): Likewise.
541         * elf/rtld.c (dl_main): Likewise.
542         * elf/dl-error.c: Define _dl_out_of_memory.
543         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
544         the error string.
545         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
546         [PR libc/1813].
548         * dlfcn/dlerror.c (free_key_mem): Also free error string.
550         * iconv/loop.c: Fix comment.
552         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
554 2000-07-13  Andreas Jaeger  <aj@suse.de>
556         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
557         getcwd (NULL, size) with size > 0.
558         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
560 2000-07-13  Andreas Jaeger  <aj@suse.de>
562         * posix/Makefile: Remove build rules for libposix.
564 2000-07-13  Andreas Schwab  <schwab@suse.de>
566         * sysdeps/generic/glob.c (glob): Fix memory leak.
567         [SHELL]: Remove reference to undefined variable `files'.
568         Fixes PR libc/1782.
570 2000-07-13  Andreas Jaeger  <aj@suse.de>
572         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
573         functions.
575         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
576         memory if it was allocated.
578 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
580         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
581         step.
583         * iconv/gconv_open.c (__gconv_open): Reapply
584         2000-07-12 Bruno Haible <haible@clisp.cons.org>
586                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
588         * iconv/gconv_open.c: Undo last two changes for now.  They break
589         everything.
591 2000-07-12  Andreas Jaeger  <aj@suse.de>
593         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
594         compiler.
595         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
596         (CFLAGS-dl-cache.c): Likewise.
597         (CFLAGS-ldconfig.c): Added, passes directory locations.
599         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
600         locate cache.
601         * elf/ldconfig.c (LD_SO_CONF): Likewise.
602         (main): Use configured LIBDIR and SLIBDIR.
604 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
606         * math/bits/cmathcalls.h (cimag): Add __THROW.
607         (creal, conj): Likewise.
608         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
609         by negative value.
611 2000-07-12  H.J. Lu  <hjl@gnu.org>
613         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
614         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
616 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
618         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
619         it is wrong.
621 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
623         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
625 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
627         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
628         __modname.
630 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
632         * iconv/gconv_open.c (__gconv_open): Initialize
633         result->__steps[cnt].__data.
635 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
637         * nss/getent.c (services_keys): Pass port number in network byte
638         order in call to getservbyport.
640 2000-07-11  Andreas Jaeger  <aj@suse.de>
642         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
643         source dir.
644         * intl/Makefile (do-gettext-test): Likewise.
645         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
647 2000-07-11  Andreas Schwab  <schwab@suse.de>
649         * Makeconfig (run-program-prefix): New rule.
650         (built-program-cmd): Use run-program-prefix.
652 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
654         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
655         and NOEXPR unconditionally available.
657 2000-07-12  Greg McGary  <greg@mcgary.org>
659         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
660         * sysdeps/posix/open64.c: Likewise.
661         * sysdeps/generic/fegetenv.c: Likewise.
662         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
663         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
664         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
665         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
666         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
667         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
669 2000-07-11  Greg McGary  <greg@mcgary.org>
671         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
672         Add extra level of macro expansion.
673         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
674         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
675         is available at the time `select' prototype is declared.
676         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
677         Collect non-versioned weak aliases.  Consider only non-versioned
678         aliases for the user-visible systemcall name.  Do checks inline with
679         call to primitive system call.
680         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
681         stand-alone bounds checks to suppress unused value warnings.
682         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
684 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
686         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
687         file descriptor checking in SUID programs for the Hurd.
689         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
690         res_hostalias instead of __hostalias for thread-safety.
692 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
694         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
695         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
697 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
699         * include/features.h: Include ISO C99 features if the compiler used
700         is an ISO C99 compiler.
701         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
703 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
705         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
707 2000-07-10  Andreas Jaeger  <aj@suse.de>
709         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
710         it's overridden by libpthreads.
711         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
712         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
713         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
714         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
715         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
717         * malloc/Makefile: Run tst-mtrace only with shared libs.
719         * stdio-common/Makefile: Run unbputc and tst-printf tests only
720         with shared libs.
722 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
724         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
725         that gpreg really points to the GOT section of the calling object.
726         Scan all PT_LOAD segments of objects for stub_pc, instead of only
727         checking a start address of first one.
728         Fix typos.
729         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
730         Likewise.
732         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
734 2000-07-10  Andreas Jaeger  <aj@suse.de>
736         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
737         (string_alias->strong_alias).
739 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
741         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
743 2000-07-07  Greg McGary  <greg@mcgary.org>
745         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
746         have no names without leading underscores.
748 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
750         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
751         U007E.
753         * stdio-common/Makefile (tests): Remove tst-printf here...
754         (tests-srcs): ...and add it here.
755         (distribute): Add tst-unbputc.sh and tst-printf.sh.
756         Add rules to run tst-printf.sh.
757         * stdio-common/tst-printf.c: Move code around so that there is really
758         no further output where it's stated.
759         * stdio-common/tst-printf.sh: New file.
761 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
763         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
764         (do_write): Renamed from pwrite.
765         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
766         `struct _IO_cookie_file'.
768 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
770         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
771         detected.
772         * malloc/tst-mtrace.sh: Run mtrace script.
774 2000-07-07  Greg McGary  <greg@mcgary.org>
776         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
777         Move all three components of a bounded pointer.
779 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
781         * locale/programs/locale.c (write_locales): Don't simply add all
782         directories found in the subdir, test whether at least the
783         LC_CTYPE file is in there.
785 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
787         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
788         * iconvdata/euc-kr.c: Likewise.
790         * stdio-common/vfprintf.c (process_string_arg): Check result of
791         wcrtomb call and bail out if it failed.
793         * malloc/Makefile (test-srcs): Add tst-mtrace.
794         (distribute): Add tst-mtrace.sh.
795         Add rule to run tst-mtrace.sh.
796         * malloc/tst-mtrace.c: New file.
797         * malloc/tst-mtrace.sh: New file.
799         * include/signal.h: Declare __libc_sigaction.
800         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
801         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
802         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
803         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
804         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
805         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
806         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
808         * configure.in: Fix CFLAGS-memprofstat.c definition after
809         2000-06-19 change.
810         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
812 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
814         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
815         instead of NULL to elf_machine_fixup_plt t argument.
816         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
817         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
818         cast.
820 2000-07-06  Andreas Jaeger  <aj@suse.de>
822         * crypt/Makefile (LDLIBS-cert): Removed.
823         (LDLIBS-md5c-test): Removed.
824         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
825         ($(objpfx)md5c-test): Likewise for md5c-test.out.
827 2000-07-06  Andreas Jaeger  <aj@suse.de>
829         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
830         of the proc system is "proc".
832         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
833         thread library for static programs.
835 2000-07-06  Greg McGary  <greg@mcgary.org>
837         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
838         New macros.
839         * sysdeps/generic/strcpy.c: Add bounds checks.
840         * sysdeps/unix/fxstat.c: Likewise.
841         * sysdeps/unix/xstat.c: Likewise.
842         * sysdeps/unix/common/lxstat.c: Likewise.
843         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
844         * sysdeps/unix/sysv/linux/execve.c: Likewise.
845         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
846         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
847         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
848         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
849         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
850         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
851         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
852         * sysdeps/unix/sysv/linux/poll.c: Likewise.
853         * sysdeps/unix/sysv/linux/pread.c: Likewise.
854         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
855         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
856         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
857         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
858         * sysdeps/unix/sysv/linux/readv.c: Likewise.
859         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
860         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
861         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
862         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
863         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
864         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
865         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
866         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
867         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
868         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
869         * sysdeps/unix/sysv/linux/writev.c: Likewise.
870         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
871         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
872         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
873         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
874         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
875         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
876         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
877         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
878         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
879         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
880         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
881         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
882         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
883         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
884         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
885         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
886         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
887         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
888         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
889         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
890         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
891         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
892         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
893         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
894         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
895         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
896         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
897         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
898         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
899         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
900         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
901         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
902         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
903         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
904         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
905         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
906         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
908         * string/endian.h (__LONG_LONG_PAIR): New macro.
909         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
910         * sysdeps/unix/sysv/linux/pread.c: Likewise.
911         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
912         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
913         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
914         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
915         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
916         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
917         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
918         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
919         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
920         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
922         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
924 2000-07-06  Andreas Jaeger  <aj@suse.de>
926         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
927         Initialize result.
929         * math/test-fpucw.c: Include <stdio.h> for printf.
931 2000-07-05  Greg McGary  <greg@mcgary.org>
933         * sysdeps/generic/bp-checks.h: New file.
934         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
935         with list of #include files.
936         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
937         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
938         Don't generate BP thunk if `V' appears in signature.
939         Generate thunks with complete bounds checks.
940         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
941         * sysdeps/unix/inet/syscalls.list: Likewise.
942         * sysdeps/unix/mman/syscalls.list: Likewise.
943         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
944         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
945         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
946         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
948 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
950         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
951         result.  Search first in /etc/mtab (proc/mounts would be stupid).
952         If mount not in the file fall back on /proc.
954         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
955         string got copied in.
956         Patch by Solar Designer <solar@false.com>.
958 2000-07-05  Andreas Jaeger  <aj@suse.de>
960         * manual/install.texi (Installation): Update information about
961         add-ons.
962         (Configuring and compiling): Update for glibc 2.2.
964 2000-07-04  Andreas Jaeger  <aj@suse.de>
966         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
967         (_FPU_IEEE): Likewise.
969         * math/Makefile (tests): Add test-fpucw.
971         * math/test-fpucw.c (main): New file.
973 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
975         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
977         * locale/programs/ld-collate.c (collate_output): Also write out the
978         collation sequence values and the wide character string for the
979         collation symbol table.
981         * posix/fnmatch.c: Include "../locale/elem-hash.h".
982         * posix/fnmatch_loop.c: Implement collating symbol handling.
983         * posix/tst-fnmatch.input: Add more tests, especially for collating
984         symbol handling.
986         * posix/regex.c: Fix comment.
988 2000-07-05  Andreas Jaeger  <aj@suse.de>
990         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
991         (_FPU_GETCW): Remove extra colon.
992         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
994         * posix/fnmatch_loop.c (FCT): Only declare len if
995         !WIDE_CHAR_VERSION to silence GCC.
997         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
998         prototype.
999         * sysdeps/generic/strchrnul.c: Likewise.
1000         * sysdeps/generic/strlen.c: Likewise.
1001         * sysdeps/generic/strchr.c: Likewise.
1002         * sysdeps/generic/memchr.c: Likewise.
1004 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
1006         * posix/fnmatch_loop.c: Implement equivalence class handling.
1007         * posix/tst-fnmatch.input: Add tests for equivalence class
1008         handling.
1010         * posix/fnmatch_loop.c: Improve performance for single-byte
1011         character sets by not using btowc.
1013         * posix/tst-fnmatch.input: Add tests for locale dependent
1014         behaviour.
1015         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
1017         * posix/tst-fnmatch.input: Add more test cases.
1019         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
1020         are not aligned to alignof(md5_uint32) do it before calling
1021         __md5_process_bytes.
1022         * crypt/md5.c: Make sure buffers are aligned.
1023         * crypt/md5.h: Likewise.
1024         Reported by Solar Designer <solar@false.com>.
1026         * crypt/Makefile: Add dependencies for test programs.
1028         * Rules: Define LC_ALL=C in environments of all programs we run.
1030         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
1032 2000-07-03  H.J. Lu  <hjl@gnu.org>
1034         * locale/programs/ld-ctype.c (ctype_output): The size of iov
1035         is 2 + elem + offset, not 2 + elem + offset + 2.
1037 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
1039         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
1040         suite.
1041         * posix/Makefile (tests): Add tst-fnmatch.
1042         (tst-fnmatch-ENV): Define.
1043         * posix/tst-fnmatch.c: New file.
1044         * posix/tst-fnmatch.sh: New file.
1046 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
1048         * locale/programs/charmap.c (charmap_read): Prepend
1049         the condition filename == NULL.
1051 2000-07-03  Greg McGary  <greg@mcgary.org>
1053         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
1055         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
1056         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
1058         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
1059         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
1060         (FILEBUF_LITERAL): Add cast for CHAIN init.
1061         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
1062         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
1063         Revert type of `fp' to _IO_FILE*.
1064         (_IO_iter_file): Remove cast.
1065         (_IO_iter_next): Elide intermediate member reference.
1067         * sysdeps/powerpc/strchr.S:  Check bounds.
1068         Wrap extern symbols in BP_SYM ().
1070 2000-07-03  Andreas Jaeger  <aj@suse.de>
1072         * dlfcn/Makefile (generated): New.
1074 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
1076         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
1077         (__uflow): Likewise.
1078         (__underflow): Likewise.
1079         * libio/wgenops.c (__wunderflow): Likewise.
1080         * stdio-common/tst-unbputc.c: New file.
1081         * stdio-common/tst-unbputc.sh: New file.
1082         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
1084         * po/en_GB.po: New file.
1085         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
1087 2000-07-01  Andreas Jaeger  <aj@suse.de>
1089         * intl/Makefile (generated-dirs): New.
1091         * elf/Makefile (generated): trusted-dirs.h is always generated,
1092         move out of build-shared condition.
1093         (generated): Merge the two entries for build-shared.
1095 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
1097         * debug/Makefile (distribute): Add xtrace.sh.
1099 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1101         * version.h (VERSION): Bump to 2.1.91.
1103         * configure.in: Update warning comment.  glibc should not be
1104         broken anymore.
1106         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
1107         ioperm.c, sys/procfs.h, and sys/io.h.
1109         * sysdeps/powerpc/Dist: Add bp-asm.h.
1111         * assert/Depend: Add localedata.
1112         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
1113         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
1115         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
1116         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
1117         relocation address to prevent unaligned trap.
1118         Suggested by Richard Henderson <rth@cygnus.com>.
1120 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
1122         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
1123         if redirecting and either redirection is done using defines or
1124         not optimizing.
1126 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1128         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
1129         generated expressions.
1130         Patch by Darren McClelland <dmcclell@zetec.com>.
1132         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
1133         since zic uses setlocale and gettext but we cannot make it use the
1134         new locale data since zic calls a shell which might not use the
1135         new libc.
1137         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
1138         handling the internation currency symbol.  POSIX says that the
1139         fourth character is used to separate the currency symbol from the
1140         value.  Therefore it does not have to be printed.  But we cannot
1141         remove the space if the currency symbol is printed before the
1142         number since this is what many locales expect.
1144         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
1145         whether this information is available.
1147         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
1148         buffers in case the translation is too large.  Remember allocated
1149         memory blocks in a list.
1150         (free_mem): Free memory for translations.
1152         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
1154         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
1155         information is available set the string length to zero.
1157         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
1159 2000-06-30  Greg McGary  <greg@mcgary.org>
1161         * sysdeps/powerpc/bp-asm.h: New file.
1162         * sysdeps/powerpc/__longjmp.S:  Check bounds.
1163         Wrap extern symbols in BP_SYM ().
1164         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
1165         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
1166         * sysdeps/powerpc/setjmp.S: Likewise.
1167         * sysdeps/powerpc/add_n.S: Likewise.
1168         * sysdeps/powerpc/addmul_1.S: Likewise.
1169         * sysdeps/powerpc/lshift.S: Likewise.
1170         * sysdeps/powerpc/rshift.S: Likewise.
1171         * sysdeps/powerpc/mul_1.S: Likewise.
1172         * sysdeps/powerpc/sub_n.S: Likewise.
1173         * sysdeps/powerpc/submul_1.S: Likewise.
1174         * sysdeps/powerpc/strlen.S: Likewise.
1175         * sysdeps/powerpc/memset.S: Likewise.
1176         * sysdeps/powerpc/stpcpy.S: Likewise.
1177         * sysdeps/powerpc/strcmp.S: Likewise.
1178         * sysdeps/powerpc/strcpy.S: Likewise.
1179         * sysdeps/powerpc/elf/bzero.S: Likewise.
1181         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
1182         Line up operands column with tabs.
1184 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1186         * elf/Makefile (LDFLAGS-origtest): Actually add it.
1188         * sysdeps/ia64/htonl.S: New file.
1189         * sysdeps/ia64/htons.S: New file.
1190         * sysdeps/ia64/memcpy.S: Replace with version which does not use
1191         floating point registers.
1192         Patches by Dan Pop <Dan.Pop@cern.ch>.
1194 2000-06-30  Andreas Jaeger  <aj@suse.de>
1196         * posix/Makefile (tests): tst-exec and tst-spawn only work with
1197         shared libraries.
1199         * io/Makefile (CFLAGS-test-lfs.c): New.
1200         (tests): Add test-lfs.
1202         * io/test-lfs.c: New file.
1204 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
1206         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
1207         instruction.
1209 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
1211         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
1213 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
1215         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
1216         alias to the fstatfs call.
1218         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
1219         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
1221         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
1222         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
1224         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
1225         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
1226         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
1227         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
1229         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
1230         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
1232         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
1233         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
1235         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
1236         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
1238         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
1240 2000-06-29  Andreas Jaeger  <aj@suse.de>
1242         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
1243         with syslog.
1244         (print_err_message): Likewise.
1245         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
1247 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1249         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
1250         used as words is properly aligned.
1252         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
1253         data files.
1255 2000-06-29  Greg McGary  <greg@mcgary.org>
1257         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
1258         * sysdeps/unix/make-syscalls.sh: Handle signatures of
1259         length 7..9, just in case...
1260         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
1262         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
1263         (POP_ERRNO_LOCATION_RETURN): Fold insns.
1264         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
1265         (PUSH_SIGNAL_MASK): New macro.
1266         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
1267         LEAVE is unnecessary.  Check bounds of jmp_buf.
1268         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
1269         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
1270         immediately before tail-call.
1271         * sysdeps/i386/setjmp.S: Likewise.
1272         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1273         * sysdeps/i386/bsd-setjmp.S: Likewise.
1275 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
1277         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
1278         versioned_symbol.
1279         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
1280         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
1281         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
1282         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
1283         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
1284         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
1285         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
1286         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
1288 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1290         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
1291         we later need to calling free().
1292         Patch by Matt Wilson <msw@redhat.com>.
1294         * stdio-common/tst-printf.c: Add test for above problem.
1296 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
1298         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
1299         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
1301 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
1303         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
1304         prototype for abs().
1305         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
1307 2000-06-23  Andreas Jaeger  <aj@suse.de>
1309         * config.h.in: Don't use regparm with bounded pointers.
1311 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1313         * stdlib/grouping.h: Correctly handle multibyte thousands
1314         separator and decimal point.
1315         * stdlib/stdtod.c: Likewise.
1316         * sysdeps/generic/strtol.c: Likewise.
1318         * locale/categories.def: Add entries for wide character decimal point
1319         and thousands separator in numeric and monetary category.
1321 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1323         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
1324         second definition and initialization of decimal.
1326 2000-06-28  Greg McGary  <greg@mcgary.org>
1328         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
1329         out.
1330         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
1331         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
1332         in.
1333         (_IO_JUMPS): Don't cast THIS--expect arg to be a
1334         (struct _IO_FILE_plus *).
1335         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
1336         THIS, since _IO_JUMPS no longer does it implicitly.
1337         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
1338         arg type as (struct _IO_FILE_plus *).
1339         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
1340         arg as (_IO_strfile *).
1341         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
1342         Declare 1st arg as (_IO_strfile *).
1343         * libio/fileops.c (_IO_new_file_init): Declare
1344         arg type as (struct _IO_FILE_plus *).
1345         * libio/oldfileops.c (_IO_old_file_init): Likewise.
1346         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
1347         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
1348         Declare iteration pointer as (struct _IO_FILE_plus *).
1349         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
1350                 (struct _IO_FILE_plus *).
1351         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
1352         * libio/oldstdfiles.c (_IO_list_all): Likewise.
1353         (_IO_check_libio): Set user-visible handles to
1354         (struct _IO_FILE_plus *).
1355         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
1356         to (struct _IO_FILE_plus *).
1358         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
1359         whose high bound includes vtable to all functions that will use
1360         vtable.  For streambufs, pass pointer whose bounds include struct
1361         _IO_strfile.
1362         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
1363         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
1364         * libio/iofopen.c (_IO_new_fopen): Likewise.
1365         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
1366         * libio/iofopen64.c (_IO_fopen64): Likewise.
1367         * libio/iopopen.c (_IO_new_popen): Likewise.
1368         * libio/oldiopopen.c (_IO_old_popen): Likewise.
1369         * libio/memstream.c (open_memstream): Likewise.
1370         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
1371         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
1372         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
1373         * libio/iofopncook.c (_IO_cookie_init): Likewise.
1374         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
1375         * libio/vasprintf.c (_IO_vasprintf): Likewise.
1376         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
1377         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
1378         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
1379         * stdlib/strfmon.c (__strfmon_l): Likewise.
1380         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
1381         (vfprintf): Qualify computed-goto targets as unbounded.
1383 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1385         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
1386         thousands separator correctly.
1388         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
1389         * stdio-common/vfwscanf.c: Likewise.
1391 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
1393         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
1394         count into signatures for most calls.
1396 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1398         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
1399         the generic parser now.
1401 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
1403         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
1404         table entries are 32 bit on the ia64 (as specified by the ABI),
1405         not 64 bit as on the Alpha.
1407         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
1408         change of objects to use 32 bit hash table indices (see above).
1410 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
1412         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
1413         prototype for abs().
1415 2000-06-28  Wolfram Gloger  <wg@malloc.de>
1417         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
1418         fails, try mmap_chunk() as a last resort even though n_mmaps_max
1419         may have been reached.
1421 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1423         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
1424         symbols in multi-character weights correctly.
1426         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
1427         depending on whether the input string is empty or not.
1429         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
1430         given state and not avoiding this by modifying a local object.
1431         * wcsmbs/wcrtomb.c: Likewise.
1433         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
1434         object since some incomplete characters might be in there.
1436         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
1437         sequences with first byte 0x8e correctly.
1439         * iconvdata/jis0208.h: Remove redundant test.
1441 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
1443         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
1444         Add it where it is needed now.
1446         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
1447         the input charset into account when generating the hash table.
1448         (allocate_arrays): Correct setting default width.  Not all empty slots
1449         in the table are filled, only those not covert explicitly by the
1450         locale description and in the charset.
1452         * wctype/towctrans.c (__towctrans): Be graceful and accept error
1453         return values from the wctrans function.
1455         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
1456         wide character version.
1457         For %C handling, test correct pointer variable for NULL.
1459         * wcsmbs/wctob.c: Handle WEOF special.
1461         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
1463         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
1464         always-true test to avoid warning.
1466 2000-06-27  Greg McGary  <greg@mcgary.org>
1468         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
1469         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
1470         (symbol_version, default_symbol_version): Factor redundant
1471         definitions out of conditional.
1473 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
1475         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
1476         not obstack_blank.
1478 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
1480         * include/libc-symbols.h (symbol_version): Add extra level of
1481         macro expansion.
1482         (default_symbol_version): Likewise.
1484 2000-06-26  Greg McGary  <greg@mcgary.org>
1486         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
1487         for BP return value & push implicit struct-return pointer to
1488         __errno_location.
1489         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1490         (SYSCALL_ERROR_HANDLER): Likewise.
1491         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
1492         (SYSCALL_ERROR_HANDLER): Likewise.
1494         * Makeconfig: Add missing comment.
1495         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
1496         BP-flavored startup object.
1497         ($(objpfx)b$(start-installed-name)): New rule.
1498         * include/libc-symbols.h (symbol_set_declare): Change type
1499         of `__start_##set' and `__stop_##set' to pointer-to-function.
1500         (symbol_set_declare): Change type of `set' to array of
1501         pointer-to-function.
1502         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
1503         pointer-to-function.
1505         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
1507         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
1508         Remove clock_* and timer_* entries.
1509         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
1510         arg-count with signatures.
1512         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
1513         Check bounds of arguments.
1514         * sysdeps/i386/addmul_1.S: Likewise.
1515         * sysdeps/i386/lshift.S: Likewise.
1516         * sysdeps/i386/mul_1.S: Likewise.
1517         * sysdeps/i386/rshift.S: Likewise.
1518         * sysdeps/i386/sub_n.S: Likewise.
1519         * sysdeps/i386/submul_1.S: Likewise.
1520         * sysdeps/i386/i586/add_n.S: Likewise.
1521         * sysdeps/i386/i586/addmul_1.S: Likewise.
1522         * sysdeps/i386/i586/lshift.S: Likewise.
1523         * sysdeps/i386/i586/rshift.S: Likewise.
1524         * sysdeps/i386/i586/sub_n.S: Likewise.
1525         * sysdeps/i386/i686/add_n.S: Likewise.
1527         * sysdeps/i386/memchr.S: Likewise.
1528         * sysdeps/i386/memcmp.S: Likewise.
1529         * sysdeps/i386/rawmemchr.S: Likewise.
1530         * sysdeps/i386/i586/bzero.S: Likewise.
1531         * sysdeps/i386/i586/memcpy.S: Likewise.
1532         * sysdeps/i386/i586/mempcpy.S: Likewise.
1533         * sysdeps/i386/i586/memset.S: Likewise.
1534         * sysdeps/i386/i686/bzero.S: Likewise.
1535         * sysdeps/i386/i686/memcpy.S: Likewise.
1536         * sysdeps/i386/i686/mempcpy.S: Likewise.
1537         * sysdeps/i386/i686/memset.S: Likewise.
1539         * sysdeps/i386/stpcpy.S: Likewise.
1540         * sysdeps/i386/stpncpy.S: Likewise.
1541         * sysdeps/i386/strchr.S: Likewise.
1542         * sysdeps/i386/strchrnul.S: Likewise.
1543         * sysdeps/i386/strcspn.S: Likewise.
1544         * sysdeps/i386/strpbrk.S: Likewise.
1545         * sysdeps/i386/strrchr.S: Likewise.
1546         * sysdeps/i386/strspn.S: Likewise.
1547         * sysdeps/i386/strtok.S: Likewise.
1548         * sysdeps/i386/strtok_r.S: Likewise.
1549         * sysdeps/i386/i486/strcat.S: Likewise.
1550         * sysdeps/i386/i486/strlen.S: Likewise.
1551         * sysdeps/i386/i586/strchr.S: Likewise.
1552         * sysdeps/i386/i586/strcpy.S: Likewise.
1553         * sysdeps/i386/i586/strlen.S: Likewise.
1554         * sysdeps/i386/i686/strcmp.S: Likewise.
1555         * sysdeps/i386/i686/strtok.S: Likewise.
1556         * sysdeps/i386/i686/strtok_r.S: Likewise.
1558         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
1559         * sysdeps/i386/fpu/fesetenv.c: Likewise.
1560         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
1561         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
1562         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1564         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
1565         * sysdeps/i386/mul_1.S: Likewise.
1566         * sysdeps/i386/submul_1.S: Likewise.
1567         * sysdeps/i386/i586/add_n.S: Likewise.
1568         * sysdeps/i386/i586/addmul_1.S: Likewise.
1569         * sysdeps/i386/i586/lshift.S: Likewise.
1570         * sysdeps/i386/i586/mul_1.S: Likewise.
1571         * sysdeps/i386/i586/rshift.S: Likewise.
1572         * sysdeps/i386/i586/sub_n.S: Likewise.
1573         * sysdeps/i386/i586/submul_1.S: Likewise.
1575 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
1577         * rt/Makefile (librt-routines): Add clock_nanosleep.
1578         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
1579         * sysdeps/generic/clock_nanosleep.c: New file.
1580         * sysdeps/unix/clock_nanosleep.c: New file.
1581         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
1582         * time/time.h: Declare clock_nanosleep.
1584 2000-06-26  Greg McGary  <greg@mcgary.org>
1586         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
1587         INSN1, INSN2, TEXT, GLOBL): Remove macros.
1588         (ALIGN): Cleanup surrounding conditionals.
1590         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
1591         Call ENTER/LEAVE macros.
1592         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
1593         * sysdeps/i386/submul_1.S: Likewise.
1595         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
1596         syntax.  Define & use symbolic argument stack offsets.  Call
1597         ENTER/LEAVE macros.
1598         * sysdeps/i386/i586/mul_1.S: Likewise.
1599         * sysdeps/i386/i586/submul_1.S: Likewise.
1601 2000-06-25  Greg McGary  <greg@mcgary.org>
1603         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
1604         not as bcopy.
1606 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
1608         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
1609         * iconvdata/gen-8bit-gap.sh: Likewise.
1610         * iconvdata/gen-8bit.sh: Likewise.
1612         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
1614         * locale/programs/ld-collate.c (collate_read): Don't actually read
1615         the copy locale if we are ignoring the content.
1617         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
1618         unknown character.
1620         * locale/programs/ld-collate.c: Correct handling of different
1621         collation sections.
1622         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
1623         as extra parameter from which to copy category information.
1624         Change all callers.
1625         (load_locale): Likewise.
1626         * locale/programs/localedef.h: Update prototypes of add_to_readlist
1627         and load_locale.
1628         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
1629         * locale/programs/locfile.h: Likewise.
1630         * locale/programs/locfile-kw.gperf: Add entry for script.
1631         * locale/programs/locfile-token.h: Add tok_script.
1633         * locale/programs/locale.c: Update copyright year.
1634         * locale/programs/localedef.c: Likewise.
1636 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
1638         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
1639         Jens Moeller <jens.moeller@waii.com>.
1641 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
1643         * locale/programs/ld-name.c (name_finish): Add missing format
1644         specifier to test for name_fmt.
1646         * locale/programs/ld-address.c (iso639): Correct length of string
1647         elements.
1648         (iso3166): Likewise.
1650         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
1652         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
1653         Define.
1655         * elf/elf.h (NT_PRFPXREG): Define.
1657 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
1659         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
1660         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
1662 2000-06-23  Andreas Schwab  <schwab@suse.de>
1664         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
1665         with signatures.
1667 2000-06-23  Andreas Jaeger  <aj@suse.de>
1669         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
1671         * io/test-stat.c: Add copyright header, mention Maciej.
1673         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
1674         SYS_mincore, SYS_madvise): Added.
1676         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
1677         execve.
1679 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
1681         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
1682         (CFLAGS-tst_putwc.c): New definition.
1683         * libio/tst_getwc.c: New file.
1684         * libio/tst_getwc.input: New file.
1685         * libio/tst_putwc.c: New file.
1687         * include/string.h: Add prototype for __strdup.
1689 2000-06-22  Greg McGary  <greg@mcgary.org>
1691         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
1692         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
1693         Fix signatures.
1695 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
1697         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
1699 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
1701         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
1703 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
1705         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
1706         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
1708 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
1710         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
1711         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
1712         and __S_TYPEISSHM.
1713         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1714         * sysdeps/unix/bsd/bits/stat.h: Likewise.
1715         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
1716         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1717         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
1718         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
1719         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
1720         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1721         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1722         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
1723         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
1724         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
1725         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
1726         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
1727         S_TYPEISSHM.
1729 2000-06-22  Andreas Jaeger  <aj@suse.de>
1731         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
1732         with signatures.
1734         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
1736         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
1738 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
1740         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
1741         ahead.
1743 2000-06-21  Greg McGary  <greg@mcgary.org>
1745         * Makerules (elide-routines.*, elide-bp-thunks):
1746         Define unconditionally.
1748 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
1750         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
1752 2000-06-21  Andreas Jaeger  <aj@suse.de>
1754         * io/Makefile (tests): Add test-stat.
1755         (CFLAGS-test-stat.c): New.
1757         * io/test-stat.c: New file from Maciej W. Rozycki
1758         <macro@ds2.pg.gda.pl>.
1760 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
1762         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
1763         in __rlimit_resource to make them match the kernel order.
1764         rlim_t is always 64 bit, use __rlim64_t to declare it
1765         unconditionally.
1767 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
1769         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
1770         RLIM_INFINITY before defining it to avoid clash with kernel header
1772 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
1774         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
1776 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
1778         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
1780 2000-06-21  Andreas Jaeger  <aj@suse.de>
1782         * stdio-common/temptest.c: Include <stdlib.h>.
1783         * stdio-common/tst-fileno.c: Likewise.
1784         * stdio-common/scanf4.c: Likewise.
1785         * stdio-common/scanf5.c: Likewise.
1786         * time/clocktest.c: Likewise.
1787         * posix/test-vfork.c: Likewise.
1788         * posix/globtest.c: Likewise.
1789         * io/test-utime.c: Likewise.
1790         * wctype/test_wcfuncs.c: Likewise.
1791         * crypt/cert.c: Likewise.
1793         * stdio-common/tst-printfsz.c: Include <string.h>.
1794         * libio/tst_swscanf.c: Likewise.
1795         * libio/tst_wscanf.c: Likewise.
1796         * posix/runtests.c: Likewise.
1797         * posix/tst-getaddrinfo.c: Likewise.
1798         * posix/wordexp-test.c: Likewise.
1799         * misc/tst-efgcvt.c: Likewise.
1801         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
1802         * nss/test-netdb.c: Likewise.
1804         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
1805         supported kernel for MIPS.
1807         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
1808         * rt/aio_suspend.c: Likewise.
1810 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
1812         * math/libm-test.inc: Include <string.h>.
1814 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
1816         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
1818 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
1820         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
1821         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
1823 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
1825         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
1827 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
1829         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
1831 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
1833         * locale/programs/ld-collate.c (insert_value): Now take string and
1834         length instead of struct token* parameter.  Adjust use of token.
1835         (handle_ellipsis): Likewise.
1836         (collate_read): Allow <Uxxxx> names and transform them into names
1837         to be passed to insert_value and handle_ellipsis.
1839         * locale/programs/ld-ctype.c (uninames): New array with names of
1840         digits in <Uxxxxxxxx> format.
1841         (ctype_finish): Correct search for space character value.  Likewise
1842         for default outdigits values.
1844 2000-06-20  Greg McGary  <greg@mcgary.org>
1846         * Makerules (objects): Add BP thunks.
1848 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
1850         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
1851         in width definitions.
1853 2000-06-20  Andreas Jaeger  <aj@suse.de>
1855         * sysdeps/mips/fpu/libm-test-ulps: New file.
1857         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
1858         first.
1860         * sysdeps/mips/fpu/feholdexcpt.c: New file.
1862         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
1864 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
1866         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
1867         change in gconv_builtin.h.
1869         * malloc/Makefile: Change all references to memprof into memusage.
1870         * malloc/memprof.c: Rename to...
1871         * malloc/memusage.c: ...this.  New file.
1872         * malloc/memprof.sh: Rename to...
1873         * malloc/memusage.sh: ...this.  New file.
1874         * malloc/memprofstat.c: Rename to...
1875         * malloc/memusagestat.c: ...this.  New file.
1876         * sysdeps/alpha/memprof.h: Rename to..
1877         * sysdeps/alpha/memusage.h: ...this.  New file.
1878         * sysdeps/arm/memprof.h: Rename to..
1879         * sysdeps/arm/memusage.h: ...this.  New file.
1880         * sysdeps/generic/memprof.h: Rename to..
1881         * sysdeps/generic/memusage.h: ...this.  New file.
1882         * sysdeps/i386/memprof.h: Rename to..
1883         * sysdeps/i386/memusage.h: ...this.  New file.
1884         * sysdeps/ia64/memprof.h: Rename to..
1885         * sysdeps/ia64/memusage.h: ...this.  New file.
1886         * sysdeps/m68k/memprof.h: Rename to..
1887         * sysdeps/m68k/memusage.h: ...this.  New file.
1888         * sysdeps/mips/memprof.h: Rename to..
1889         * sysdeps/mips/memusage.h: ...this.  New file.
1890         * sysdeps/powerpc/memprof.h: Rename to..
1891         * sysdeps/powerpc/memusage.h: ...this.  New file.
1892         * sysdeps/sparc/memprof.h: Rename to..
1893         * sysdeps/sparc/memusage.h: ...this.  New file.
1894         * sysdeps/sh/memprof.h: Rename to..
1895         * sysdeps/sh/memusage.h: ...this.  New file.
1897         * elf/sprof.c (print_version): Update year.
1899         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
1900         table entry values.  Use D_PTR.
1901         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
1902         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
1904 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
1906         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
1907         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
1908         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
1909         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
1911 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
1913         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
1915 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
1917         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
1918         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
1919         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
1921         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
1923         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
1924         kernel change.
1926         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
1927         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
1928         structure.
1929         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
1930         implementation.
1932 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
1934         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
1936 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
1938         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
1940 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
1942         * iconv/gconv_int.h (strict gconv_module): Remove all members
1943         associated with regular expressions.  Use a simple string as the
1944         from name.
1945         * iconv/gconv_db.c: Remove code handling regular expressions.
1946         * iconv/gconv_conf.c: Likewise.
1947         * iconv/iconv_prog.c: Likewise.
1948         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
1950         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
1951         General namespace cleanup.
1952         (struct __gconv_trans_data): Add next field.
1953         (struct __gconv_step_data): Make __trans a pointer.
1954         * iconv/gconv_conf.c: Split out code to find gconv directories from
1955         __gconv_read_conf in new functions.
1956         * iconv/gconv_int.h: Define new data structure and declare new
1957         functions for handling of gconv directory list.
1958         * iconv/gconv_open.c: Allow more than one error handling step being
1959         used.  Call function to load error handling module if it is none
1960         of the builtin transformations.
1961         * iconv/gconv_close.c: Add code to free transliteration data.
1962         * iconv/gconv_trans.c: Add functions to load and unload modules
1963         implementing transliteration etc.
1964         * iconv/skeleton.c: Call all context functions now that more than
1965         one module is allowed.
1966         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
1967         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
1968         where the full error handling using transliteration is needed.
1969         * iconvdata/8bit-gap.c: Likewise.
1970         * iconvdata/8bit-generic.c: Likewise.
1971         * iconvdata/ansi_x3.110.c: Likewise.
1972         * iconvdata/big5.c: Likewise.
1973         * iconvdata/big5hkscs.c: Likewise.
1974         * iconvdata/euc-cn.c: Likewise.
1975         * iconvdata/euc-jp.c: Likewise.
1976         * iconvdata/euc-kr.c: Likewise.
1977         * iconvdata/euc-tw.c: Likewise.
1978         * iconvdata/gbgbk.c: Likewise.
1979         * iconvdata/gbk.c: Likewise.
1980         * iconvdata/iso-2022-cn.c: Likewise.
1981         * iconvdata/iso-2022-jp.c: Likewise.
1982         * iconvdata/iso-2022-kr.c: Likewise.
1983         * iconvdata/iso646.c: Likewise.
1984         * iconvdata/iso8859-1.c: Likewise.
1985         * iconvdata/iso_6937-2.c: Likewise.
1986         * iconvdata/iso_6937.c: Likewise.
1987         * iconvdata/johab.c: Likewise.
1988         * iconvdata/sjis.c: Likewise.
1989         * iconvdata/t.61.c: Likewise.
1990         * iconvdata/uhc.c: Likewise.
1991         * iconvdata/unicode.c: Likewise.
1992         * iconvdata/utf-16.c: Likewise.
1993         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
1994         structure correctly after last change.
1995         * wcsmbs/btowc.c: Likewise.
1996         * wcsmbs/mbrtowc.c: Likewise.
1997         * wcsmbs/mbsnrtowcs.c: Likewise.
1998         * wcsmbs/mbsrtowcs.c: Likewise.
1999         * wcsmbs/wcrtomb.c: Likewise.
2000         * wcsmbs/wcsnrtombs.c: Likewise.
2001         * wcsmbs/wcsrtombs.c: Likewise.
2002         * wcsmbs/wctob.c: Likewise.
2004         * localedata/Makefile: Set -Wno-format for some files since gcc does
2005         not know all the format specifiers.
2007 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
2009         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
2010         unneeded code.
2011         * locale/lc-time.c (_nl_init_era_entries): Likewise.
2013 2000-06-18  Andreas Jaeger  <aj@suse.de>
2015         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
2016         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
2018 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
2020         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
2021         LINUX_LINK_MAX.
2022         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
2024         * locale/programs/ld-ctype.c (ctype_output): Really write out
2025         mboutdigits information.
2026         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
2027         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
2028         * localedata/tests/trans.def: Add outdigit information.
2030         * localedata/tst-mbswcs3.c: Remove comment.
2032         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
2033         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
2034         * libio/tst_wprintf.c (main): Add test for I flag.
2036         * iconv/gconv_trans.c: Implement handling if translit_ignore.
2037         * locale/langinfo.h: Add entries for translit_ignore information.
2038         * locale/categories.def: Add entries for new LC_CTYPE elements.
2039         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
2040         pointer instead of "" where possible.
2041         * locale/programs/ld-ctype.c: Write out translit_ignore information.
2042         * intl/Depend: Add localedata.
2043         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
2044         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
2046 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
2048         * locale/langinfo.h: Add entries for default_missing information.
2049         * locale/C-ctype.c: Add initializers for new fields.
2050         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
2051         information.
2052         * locale/categories.h: Add entries for all LC_CTYPE values.
2053         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
2054         information.
2056         * localedata/tst-trans.c: Write out an error message if class is
2057         not found.
2059         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
2060         * iconv/gconv_open.c: Remove error handling specification from `from'
2061         character set name.
2062         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
2063         new parameter to always enable transliteration.
2064         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
2065         change.
2066         (struct locale_data): Add new members use_translit and options.
2067         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
2068         character set name contained modifier TRANSLIT.
2069         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
2070         and options fields.
2071         (_nl_unload_locale): Free options string if necessary.
2072         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
2073         the locale names suggested this.
2074         * locale/C-address.c: Add two new initialilzers to adjust data
2075         structure for new format.
2076         * locale/C-collate.c: Likewise.
2077         * locale/C-ctype.c: Likewise.
2078         * locale/C-identification.c: Likewise.
2079         * locale/C-measurement.c: Likewise.
2080         * locale/C-messages.c: Likewise.
2081         * locale/C-monetary.c: Likewise.
2082         * locale/C-name.c: Likewise.
2083         * locale/C-numeric.c: Likewise.
2084         * locale/C-paper.c: Likewise.
2085         * locale/C-telephone.c: Likewise.
2086         * locale/C-time.c: Likewise.
2088         * locale/setlocale.c: Add some more __builtin_expect.
2090 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
2092         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
2093         unsigned char **.
2094         (__gconv_init_fct): Remove two parameters.
2095         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
2096         gconv_transliterate.  Remove two parameters.
2097         Change prototypes of builtin functions according to __gconv_fct change.
2098         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
2099         != NULL only during error handling.  Stop in this case after the
2100         conversion.
2101         * iconv/gconv_trans.c: Replace with real implementation for
2102         __gconv_transliterate.
2103         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
2104         * iconv/gconv.c: Change calls to downstream functions once again.
2105         Use NULL for the fifth parameter instead of pointer to output buffer.
2106         * libio/iofwide.c: Likewise.
2107         * wcsmbs/btowc.c: Likewise.
2108         * wcsmbs/mbrtowc.c: Likewise.
2109         * wcsmbs/mbsnrtowcs.c: Likewise.
2110         * wcsmbs/mbsrtowcs.c: Likewise.
2111         * wcsmbs/wcrtomb.c: Likewise.
2112         * wcsmbs/wcsnrtombs.c: Likewise.
2113         * wcsmbs/wcsrtombs.c: Likewise.
2114         * wcsmbs/wctob.c: Likewise.
2115         * iconv/gconv_simple.c: Remove two parameters from error handling
2116         function call.
2117         * iconvdata/8bit-gap.c: Likewise.
2118         * iconvdata/8bit-generic.c: Likewise.
2119         * iconvdata/ansi_x3.110.c: Likewise.
2120         * iconvdata/big5.c: Likewise.
2121         * iconvdata/big5hkscs.c: Likewise.
2122         * iconvdata/euc-cn.c: Likewise.
2123         * iconvdata/euc-jp.c: Likewise.
2124         * iconvdata/euc-kr.c: Likewise.
2125         * iconvdata/euc-tw.c: Likewise.
2126         * iconvdata/gbgbk.c: Likewise.
2127         * iconvdata/gbk.c: Likewise.
2128         * iconvdata/iso-2022-cn.c: Likewise.
2129         * iconvdata/iso-2022-jp.c: Likewise.
2130         * iconvdata/iso-2022-kr.c: Likewise.
2131         * iconvdata/iso646.c: Likewise.
2132         * iconvdata/iso8859-1.c: Likewise.
2133         * iconvdata/iso_6937-2.c: Likewise.
2134         * iconvdata/iso_6937.c: Likewise.
2135         * iconvdata/johab.c: Likewise.
2136         * iconvdata/sjis.c: Likewise.
2137         * iconvdata/t.61.c: Likewise.
2138         * iconvdata/uhc.c: Likewise.
2139         * iconvdata/unicode.c: Likewise.
2140         * iconvdata/utf-16.c: Likewise.
2142 2000-06-15  Greg McGary  <greg@mcgary.org>
2144         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
2145         of callnum assignment.  Tolerate callnum expressions containing
2146         parens.
2148 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
2150         * login/Makefile (utmpd): Remove rule to build utmpd.
2152         * csu/Versions: Move libgcc frame handling functions from here...
2153         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
2154         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
2155         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
2156         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
2157         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
2158         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
2159         New file.
2160         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
2162         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
2164         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
2166 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
2168         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
2169         compatibility.
2170         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
2171         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
2172         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
2173         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
2175 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
2177         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
2178         defined, terminate quotes and read them after the comment char.
2179         * configure.in (HAVE_SECTION_QUOTES): Test whether
2180         __attribute__((section ("x"))) puts quotes around x or not.
2181         * config.h.in (HAVE_SECTION_QUOTES): Add.
2182         * configure: Rebuilt.
2184 2000-06-14  Andreas Jaeger  <aj@suse.de>
2186         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
2187         depending on the configure option --sysconfdir.
2188         Closes PR libc/1762.
2189         Patch by Andreas Schwab <schwab@suse.de>.
2191         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
2192         entry point.
2193         Reported by Jim Pick <jim@jimpick.com>.
2195 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
2197         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
2198         crashing the application.  Emit some simple error message.
2199         Reported by mju@panasas.com [PR libc/1769].
2201 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
2203         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
2205         * crypt/Makefile (distribute): Add md5.h.
2207         * Makefile (distribute): Add include/shlib-compat.h.
2209         * Make-dist: Search for tests also in sysdeps hierachy.
2211         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
2212         ufc.c, speeds.c, README.ufc-crypt, and Banner.
2214         * sysdeps/sparc/Subdirs: New file.
2216         * locale/Makefile (distribute): Add weightwc.h and
2217         programs/localedef.h.
2219         * time/Makefile (distribute): Add datemsk.
2221         * sysdeps/ia64/Dist: Add softpipe.h.
2223         * sysdeps/unix/sysv/aix/Dist: New file.
2225         * posix/setpgrp.c: Moved to...
2226         * sysdeps/generic/setpgrp.c: ...here.  New file.
2227         * io/mknod.c: Moved to...
2228         * sysdeps/generic/mknod.c: ...here.  New file.
2230         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
2232         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
2234         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
2236         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
2237         gprsave0.S, gprrest1.S, and gprrest0.S.
2239         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
2241         * posix/Makefile (routines): Add spawnattr_getsigmask,
2242         spawnattr_getschedpolicy, spawnattr_getschedparam,
2243         spawnattr_setsigmask, spawnattr_setschedpolicy, and
2244         spawnattr_setschedparam.
2245         * posix/Versions: Add posix_spawnattr_getschedpolicy,
2246         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
2247         posix_spawnattr_setschedparam.
2249         * posix/spawnattr_setschedparam.c: Fix typo.
2251         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
2252         Correct typo.
2254         * login/programs/utmpd.c: Removed.
2255         * login/programs/utmpd.h: Removed.
2256         * login/programs/utmpd-private.h: Removed.
2258         * Makefile (distribute): Add include/db_185.h and include/db.h.
2260         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
2261         iso-ir-165.h.
2263         * elf/Makefile (distribute): Add missing files.
2265         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
2266         * elf/eval.c: Moved to...
2267         * dlfcn/eval.c: ...here.  New file.
2269         * Makefile (distribute): Also distribute ChangeLog.1?.
2271         * Make-dist (+tsrcs): Remove .args handling here as well.
2273         * rt/Makefile (tests): Add tst-timer.
2274         * sysdeps/generic/tst-timer.c: New file.
2276         * Makerules (sources): Don't add BP sources here.
2278         * login/Makefile (distribute): Remove xtmp.h.
2280         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
2281         is true.  Reported by Bruno Haible <haible@ilog.fr>.
2283 2000-06-13  Andreas Jaeger  <aj@suse.de>
2285         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
2286         Patch by Ralf Baechle <ralf@gnu.org>.
2288 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
2290         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
2291         for mincore syscall.
2293         * misc/sys/cdefs.h: Define __bounded and __unbounded if
2294         __BOUNDED_POINTERS__ is not defined.
2296 2000-06-07  Greg McGary  <greg@mcgary.org>
2298         * sysdeps/generic/bp-sym.h: New file.
2299         * sysdeps/generic/bp-start.h: New file.
2300         * sysdeps/i386/elf/start.S: Designate BP symbols.
2301         * sysdeps/generic/libc-start.c: Wrap bounds around
2302         argv & envp and each of their string members.
2304 2000-06-07  Greg McGary  <greg@mcgary.org>
2306         * sysdeps/unix/make-syscalls.sh: Add comments to
2307         output that aid debugging & comprehension.
2308         Map simple syscall signatures to number of args.
2309         Generate BP syscall thunk definitions.
2310         * sysdeps/generic/bp-thunks.h: New file.
2311         * sysdeps/unix/syscalls.list: Replace arg-count with
2312         simple return+arg signature.
2313         * sysdeps/unix/common/syscalls.list: Likewise.
2314         * sysdeps/unix/inet/syscalls.list: Likewise.
2315         * sysdeps/unix/mman/syscalls.list: Likewise.
2316         * sysdeps/unix/sysv/syscalls.list: Likewise.
2317         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2318         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2320 2000-06-07  Greg McGary  <greg@mcgary.org>
2322         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
2323         for all files *.[cS].
2324         (CFLAGS-.ob): Don't optimize sibling calls.
2325         (bppfx): New variable.
2326         * Makerules (elide-bp-thunks): New variable.
2327         (elide-routines.*): Elide BP-* files for all but *.ob.
2328         (sources): Include bp-thunks.
2330 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2332         * iconv/gconv_simple.c: Remove unnecessary prototype.
2334         * iconv/gconv_trans.c: Pretty print.
2336         * elf/elf.h (R_SH_NUM): Got accidently dropped.
2338         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
2339         minimal kernel versions.  Add information about IA-64 kernel.
2341         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
2342         specific minimal supported kernel versions to be specified.
2344         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
2345         step data structure.
2346         * wcsmbs/btowc.c: Likewise.
2347         * wcsmbs/mbrtowc.c: Likewise.
2348         * wcsmbs/mbsnrtowcs.c: Likewise.
2349         * wcsmbs/mbsrtowcs.c: Likewise.
2350         * wcsmbs/wcrtomb.c: Likewise.
2351         * wcsmbs/wcsnrtombs.c: Likewise.
2352         * wcsmbs/wcsrtombs.c: Likewise.
2353         * wcsmbs/wctob.c: Likewise.
2355         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
2356         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
2358         * shlib-versions: Earliest backward compatible version for SH is 2.2.
2360         * misc/sys/cdefs.h: Remove one more __P.
2362         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
2363         Reported by HJ Lu.
2365         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
2366         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
2367         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
2369 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
2370             Yutaka Niibe  <gniibe@chroot.org>
2372         * configure.in: Add machine sh3, sh4.
2373         * elf/elf.h: Add SH specific declarations of relocations.
2374         * shlib-versions: Add sh*-*-linux* cases.
2376 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2378         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
2379         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
2380         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
2381         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
2382         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
2383         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
2385         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
2386         instead of KERNEL_MATH_EMULATION.
2387         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
2388         KERNEL_MATH_EMULATION.
2390         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
2391         * sysdeps/sh/sh3/dl-machine.h: Moved to...
2392         * sysdeps/sh/dl-machine.h: ...here.  New file.
2393         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
2394         and include generic SH version.
2395         * sysdeps/sh/sh3/bits/endian.h: Move to...
2396         * sysdeps/sh/bits/endian.h: ...here.  New file.
2397         * sysdeps/sh/sh4/bits/endian.h: Removed.
2398         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
2399         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
2400         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
2402         * include/libc-symbols.h (link_warning): Work around a change in
2403         GAS which warns about changing section attributes.
2404         Proposed by Nick Clifton <nickc@redhat.com>.
2406 2000-06-12  H.J. Lu  <hjl@gnu.org>
2408         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
2410 2000-06-11  H.J. Lu  <hjl@gnu.org>
2412         * sysdeps/i386/fpu/Versions: New file.
2414 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2416         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
2417         parameters.
2418         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
2419         exists.
2421 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
2423         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2424         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
2425         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
2427         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
2428         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
2429         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
2431 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
2432             Yutaka Niibe  <gniibe@chroot.org>
2434         * sysdeps/sh/Dist: New file.
2435         * sysdeps/sh/Implies: New file.
2436         * sysdeps/sh/elf/initfini.c: New file.
2437         * sysdeps/sh/gmp-mparam.h: New file.
2438         * sysdeps/sh/init-first.c: New file.
2439         * sysdeps/sh/machine-gmon.h: New file.
2440         * sysdeps/sh/memcpy.S: New file.
2441         * sysdeps/sh/memprof.h: New file.
2442         * sysdeps/sh/memset.S: New file.
2443         * sysdeps/sh/sh3/__longjmp.S: New file.
2444         * sysdeps/sh/sh3/bits/endian.h: New file.
2445         * sysdeps/sh/sh3/bits/huge_val.h: New file.
2446         * sysdeps/sh/sh3/bits/setjmp.h: New file.
2447         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
2448         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
2449         * sysdeps/sh/sh3/dl-machine.h: New file.
2450         * sysdeps/sh/sh3/setjmp.S: New file.
2451         * sysdeps/sh/sh4/__longjmp.S: New file.
2452         * sysdeps/sh/sh4/bits/endian.h: New file.
2453         * sysdeps/sh/sh4/bits/huge_val.h: New file.
2454         * sysdeps/sh/sh4/bits/setjmp.h: New file.
2455         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
2456         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
2457         * sysdeps/sh/sh4/dl-machine.h: New file.
2458         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
2459         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
2460         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
2461         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
2462         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
2463         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
2464         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
2465         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
2466         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
2467         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
2468         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
2469         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
2470         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
2471         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
2472         * sysdeps/sh/sh4/setjmp.S: New file.
2473         * sysdeps/sh/elf/start.S: New file.
2474         * sysdeps/sh/sys/ucontext.h: New file.
2475         * sysdeps/sh/strlen.S: New file.
2476         * sysdeps/sh/sysdep.h: New file.
2477         * sysdeps/unix/sh/sysdep.S: New file.
2478         * sysdeps/unix/sh/sysdep.h: New file.
2479         * sysdeps/unix/sysv/linux/sh/Dist: New file.
2480         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
2481         * sysdeps/unix/sysv/linux/sh/Versions: New file.
2482         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
2483         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
2484         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
2485         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
2486         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
2487         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
2488         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
2489         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
2490         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
2491         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
2492         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
2493         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
2494         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
2495         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
2496         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
2497         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
2498         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
2499         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
2500         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
2501         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
2502         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
2503         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
2504         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
2505         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
2506         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
2507         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
2508         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
2509         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
2510         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
2511         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
2512         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
2513         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
2514         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
2515         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
2516         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
2517         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
2518         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
2519         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
2520         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
2521         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
2522         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
2523         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
2524         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
2525         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
2526         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
2527         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
2528         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
2530 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2532         * Rules (%.out): Define GCONV_PATH in the environment.
2533         * assert/Depend: New file.
2534         * iconvdata/Depend: New file.
2535         * intl/Depend: New file.
2536         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
2537         * intl/tst-gettext.sh: Likewise.
2538         * iconv/Makefile (routines): Add gconv_trans.
2539         * iconv/gconv_trans.c: New file.
2540         * iconv/gconv.h (struct __gconv_trans_data): New type.
2541         (__gconv_fct): New parameter with starting position in output buffer.
2542         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
2543         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
2544         (struct __gconv_step): Add new member __trans.
2545         * iconv/gconv_int.h: Pretty print prototypes.
2546         (gconv_transliterate): New prototype.
2547         (__BUILTIN_TRANS): Update for new conversion function interface.
2548         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
2549         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
2550         in names, find appropriate function, and install in the conversion
2551         steps it can be used.
2552         * iconv/skeleton.c: Add additional parameter for beginning of output
2553         buffer.  Change calls of downstream functions.
2554         * iconv/loop.c: Change loop function interface completely.  Pass in
2555         step and step_data structure.  Remove optimization for BODY with
2556         NEED_LENGTH_TEST == 0.
2557         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
2558         appropriate error handling code to use transliteration steps.  Remove
2559         optimization for BODY with NEED_LENGTH_TEST == 0.
2560         * iconvdata/8bit-gap.c: Likewise.
2561         * iconvdata/8bit-generic.c: Likewise.
2562         * iconvdata/ansi_x3.110.c: Likewise.
2563         * iconvdata/big5.c: Likewise.
2564         * iconvdata/big5hkscs.c: Likewise.
2565         * iconvdata/euc-cn.c: Likewise.
2566         * iconvdata/euc-jp.c: Likewise.
2567         * iconvdata/euc-kr.c: Likewise.
2568         * iconvdata/euc-tw.c: Likewise.
2569         * iconvdata/gbgbk.c: Likewise.
2570         * iconvdata/gbk.c: Likewise.
2571         * iconvdata/iso-2022-cn.c: Likewise.
2572         * iconvdata/iso-2022-jp.c: Likewise.
2573         * iconvdata/iso-2022-kr.c: Likewise.
2574         * iconvdata/iso646.c: Likewise.
2575         * iconvdata/iso8859-1.c: Likewise.
2576         * iconvdata/iso_6937-2.c: Likewise.
2577         * iconvdata/iso_6937.c: Likewise.
2578         * iconvdata/johab.c: Likewise.
2579         * iconvdata/sjis.c: Likewise.
2580         * iconvdata/t.61.c: Likewise.
2581         * iconvdata/uhc.c: Likewise.
2582         * iconvdata/unicode.c: Likewise.
2583         * iconvdata/utf-16.c: Likewise.
2584         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
2585         DL_CALL_FCT.
2586         * wcsmbs/btowc.c: Likewise.
2587         * wcsmbs/mbrtowc.c: Likewise.
2588         * wcsmbs/mbsnrtowcs.c: Likewise.
2589         * wcsmbs/mbsrtowcs.c: Likewise.
2590         * wcsmbs/wcrtomb.c: Likewise.
2591         * wcsmbs/wcsnrtombs.c: Likewise.
2592         * wcsmbs/wcsrtombs.c: Likewise.
2593         * wcsmbs/wctob.c: Likewise.
2595 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
2597         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
2598         other header files.  Mention about 128-byte cache line sizes.
2599         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
2600         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
2601         for current calling sequence.
2602         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
2604         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
2605         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2607         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
2608         and setrlimit syscalls for backwards compatibility.
2610 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
2612         * iconv/skeleton.c:  Rename converted written to correcter name
2613         irreversible.
2614         * iconv/gconv.c: Rename converted variable to correcter name
2615         irreversible.
2616         * iconv/gconv_int.h: Likewise.
2617         * iconv/gconv_simple.c: Likewise.
2618         * iconv/iconv.c: Likewise.
2619         * iconv/loop.c: Likewise.
2620         * iconvdata/8bit-gap.c: Likewise.
2621         * iconvdata/8bit-generic.c: Likewise.
2622         * iconvdata/ansi_x3.110.c: Likewise.
2623         * iconvdata/big5.c: Likewise.
2624         * iconvdata/big5hkscs.c: Likewise.
2625         * iconvdata/euc-cn.c: Likewise.
2626         * iconvdata/euc-jp.c: Likewise.
2627         * iconvdata/euc-kr.c: Likewise.
2628         * iconvdata/gbgbk.c: Likewise.
2629         * iconvdata/gbk.c: Likewise.
2630         * iconvdata/iso-2022-cn.c: Likewise.
2631         * iconvdata/iso-2022-jp.c: Likewise.
2632         * iconvdata/iso-2022-kr.c: Likewise.
2633         * iconvdata/iso646.c: Likewise.
2634         * iconvdata/iso8859-1.c: Likewise.
2635         * iconvdata/iso_6937-2.c: Likewise.
2636         * iconvdata/iso_6937.c: Likewise.
2637         * iconvdata/johab.c: Likewise.
2638         * iconvdata/sjis.c: Likewise.
2639         * iconvdata/t.61.c: Likewise.
2640         * iconvdata/uhc.c: Likewise.
2641         * iconvdata/unicode.c: Likewise.
2642         * iconvdata/utf-16.c: Likewise.
2644         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
2645         __cmsg_data field with __extension__.
2647 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
2649         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
2651 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
2653         * iconv/gconv_simple.c: Fix various small bugs in several
2654         functions.
2656         * iconv/loop.c: Fix comment.
2658 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
2660         * elf/link.h: Remove libc internal declarations.
2661         * include/link.h: Move them here.
2663 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
2665         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
2666         Patch by Dan Pop <Dan.Pop@cern.ch>.
2668         Rewrite error message handling.
2669         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
2670         _dl_catch_error.
2671         * elf/dl-error (struct catch): Add objname member.
2672         (_dl_signal_error): Take new parameter with object name.  When
2673         passing message on simply store object name and duplicate error
2674         message.
2675         (_dl_catch_error): Take new parameter.  Store object name in the
2676         place pointed to.
2677         * include/dlfcn.h: Adjust _dl_catch_error prototype.
2678         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
2679         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
2680         (dlerror): Add objname to asprintf() parameters.
2681         (_dl_error_run): Pass new parameter to _dl_catch_error.
2682         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
2683         * elf/dl-open.c (_dl_open): Likewise.
2684         * elf/rtld.c (dl_main): Likewise.
2685         * elf/dl-close.c: Mark error messages with N_().
2686         * elf/dl-deps.c: Likewise.
2687         * elf/dl-error.c: Likewise.
2688         * elf/dl-load.c: Likewise.
2689         * elf/dl-open.c: Likewise.
2690         * elf/dl-reloc.c: Likewise.
2691         * elf/dl-support.c: Likewise.
2692         * elf/dl-sym.c: Likewise.
2693         * elf/dl-version.c: Likewise.
2694         * elf/dl-lookup.c: Add comments about problems with error message
2695         translations.
2696         * elf/dl-reloc.c: Likewise.
2697         * elf/dl-version.c: Likewise.
2699 2000-06-09  H.J. Lu  <hjl@gnu.org>
2701         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
2702         after freeing it.
2704         * dlfcn/Makefile (distribute): Add failtestmod.c.
2705         (tests): Add failtest.
2706         Add rules to build and run failtest.
2707         * dlfcn/failtest.c: New file.
2708         * dlfcn/failtestmod.c: New file.
2710 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
2712         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
2713         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
2714         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
2715         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
2716         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
2718 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
2720         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
2721         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
2723 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
2724             Ulrich Drepper  <drepper@redhat.com>
2726         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
2727         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
2728         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
2729         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
2730         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
2731         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
2733 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
2735         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
2736         to find correct mount point despite wrong information from the
2737         kernel.
2739 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
2741         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
2742         the address of a symbol so function pointers are handled properly.
2744 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
2746         * sysdeps/i386/Dist: Add bp-asm.h.
2748         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
2749         defaultdir variable instead of "/var/shm" everywhere.
2750         (defaultdir): Change to /dev/shm/.
2752 2000-06-08  Greg McGary  <greg@mcgary.org>
2754         * sysdeps/i386/bp-asm.h: New file.
2755         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
2756         offsets.  Add ENTER/LEAVE macros for optionally maintaining
2757         frame-pointer chain when debugging.
2758         * sysdeps/i386/add_n.S: Likewise.
2759         * sysdeps/i386/addmul_1.S: Likewise.
2760         * sysdeps/i386/lshift.S: Likewise.
2761         * sysdeps/i386/memchr.S: Likewise.
2762         * sysdeps/i386/memcmp.S: Likewise.
2763         * sysdeps/i386/mul_1.S: Likewise.
2764         * sysdeps/i386/rawmemchr.S: Likewise.
2765         * sysdeps/i386/rshift.S: Likewise.
2766         * sysdeps/i386/stpcpy.S: Likewise.
2767         * sysdeps/i386/stpncpy.S: Likewise.
2768         * sysdeps/i386/strchr.S: Likewise.
2769         * sysdeps/i386/strchrnul.S: Likewise.
2770         * sysdeps/i386/strcspn.S: Likewise.
2771         * sysdeps/i386/strpbrk.S: Likewise.
2772         * sysdeps/i386/strrchr.S: Likewise.
2773         * sysdeps/i386/strspn.S: Likewise.
2774         * sysdeps/i386/strtok.S: Likewise.
2775         * sysdeps/i386/sub_n.S: Likewise.
2776         * sysdeps/i386/submul_1.S: Likewise.
2777         * sysdeps/i386/elf/setjmp.S: Likewise.
2778         * sysdeps/i386/i486/strcat.S: Likewise.
2779         * sysdeps/i386/i486/strlen.S: Likewise.
2780         * sysdeps/i386/i586/add_n.S: Likewise.
2781         * sysdeps/i386/i586/lshift.S: Likewise.
2782         * sysdeps/i386/i586/memcpy.S: Likewise.
2783         * sysdeps/i386/i586/memset.S: Likewise.
2784         * sysdeps/i386/i586/rshift.S: Likewise.
2785         * sysdeps/i386/i586/strchr.S: Likewise.
2786         * sysdeps/i386/i586/strcpy.S: Likewise.
2787         * sysdeps/i386/i586/strlen.S: Likewise.
2788         * sysdeps/i386/i586/sub_n.S: Likewise.
2789         * sysdeps/i386/i686/add_n.S: Likewise.
2790         * sysdeps/i386/i686/memcpy.S: Likewise.
2791         * sysdeps/i386/i686/mempcpy.S: Likewise.
2792         * sysdeps/i386/i686/memset.S: Likewise.
2793         * sysdeps/i386/i686/strcmp.S: Likewise.
2795 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
2797         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
2799         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
2800         256 and don't use OPEN_MAX.
2802         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
2803         use it instead of LINK_MAX.
2804         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
2806 2000-06-08  Andreas Jaeger  <aj@suse.de>
2808         * libio/genops.c (_IO_list_lock): Only compile body if we're
2809         thread safe.
2810         (_IO_list_unlock): Likewise.
2811         (_IO_list_resetlock): Likewise.
2813 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
2815         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
2816         unless user defined it.
2818         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
2819         if not defined by the user.
2821         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
2822         * libio/iofwrite.c (_IO_fwrite): Likewise.
2824         * time/time.h: Add missing __THROW for clock_getcpuclockid
2825         prototype.
2827         * elf/Makefile (distribute): Add dl-dtprocnum.h.
2828         * include/elf.h: Include also <dl-dtprocnum.h>.
2829         * elf/dl-deps.c: Likewise.
2830         * elf/dl-lookup.c: Likewise.
2831         * elf/dl-runtime.c: Likewise.
2832         * elf/dl-version.c: Likewise.
2833         * elf/do-rel.h: Likewise.
2834         * elf/dynamic-link.h: Likewise.
2835         * elf/link.h: Likewise.
2836         * elf/rtld.c: Likewise.
2837         * sysdeps/generic/dl-dtprocnum.h: New file.
2838         * sysdeps/ia64/dl-dtprocnum.h: New file.
2839         * sysdeps/mips/dl-dtprocnum.h: New file.
2840         * sysdeps/sparc/dl-dtprocnum.h: New file.
2842         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
2844         * elf/do-lookup.h: Add some __builtin_expect.
2846         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
2848         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
2849         (_dl_dynamic_weak): New variable.
2850         * elf/dl-support.c: Likewise.
2851         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
2852         * elf/do-lookup.h: If we find a weak definition treat it like a
2853         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
2854         case treat it like before.
2856         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
2857         is in main program.
2858         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
2860         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
2861         using l_map_start and l_map_end.
2863         * elf/dl-version.c: Add __builtin_expect in many places.
2865         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
2866         Update.
2868 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
2870         Lock for stdio stream list becomes global, for use in LinuxThreads.
2872         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
2873         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
2874         _IO_list_resetlock): New interface for iterating global list of
2875         streams without accessing the _IO_list_all global variable,
2876         and for manipulating the lock which protects this list.
2877         * libio/libioP.h: Likewise.
2878         * libio/Version: Add entries for the new functions.
2880         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
2881         pointer to _IO_FILE.
2883 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
2885         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
2886         BIT() must actually be BITw().
2888         * locale/programs/ld-ctype.c: Handle SP and space consistently.
2890         * locale/programs/charmap.c: Allow string arguments for
2891         code_set_name and repertoiremap.
2893 2000-06-07  Andreas Jaeger  <aj@suse.de>
2895         * elf/Makefile: Build ldconfig only when building shared libraries.
2897 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
2899         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
2900         __USE_ISOC99.
2901         (fdimf, __fdim, fdim): Likewise.
2903 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
2905         * locale/findlocale.c: Add __builtin_expect in many places.
2906         * locale/loadlocale.c: Likewise.
2908 2000-06-06  Greg McGary  <greg@mcgary.org>
2910         * sysdeps/mips/elf/start.S: Trim redundant code.
2912         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
2913         Use C comments throughout.  Line up operands column with tabs.
2914         * sysdeps/powerpc/strchr.S: Likewise.
2915         * sysdeps/powerpc/strcmp.S: Likewise.
2916         * sysdeps/powerpc/strcpy.S: Likewise.
2917         * sysdeps/powerpc/strlen.S: Likewise.
2919         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
2920         Get low part of &__curbrk with @l.
2922 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
2924         * iconvdata/utf-16.c: Add __builtin_expect in many places.
2925         * iconvdata/unicode.c: Likewise.
2926         * iconvdata/uhc.c: Likewise.
2927         * iconvdata/t.61.c: Likewise.
2928         * iconvdata/sjis.c: Likewise.
2929         * iconvdata/johab.c: Likewise.
2930         * iconvdata/iso_6937.c: Likewise.
2931         * iconvdata/iso_6937-2.c: Likewise.
2932         * iconvdata/iso8859-1.c: Likewise.
2933         * iconvdata/iso646.c: Likewise.
2934         * iconvdata/iso-2022-kr.c: Likewise.
2935         * iconvdata/iso-2022-jp.c: Likewise.
2936         * iconvdata/iso-2022-cn.c: Likewise.
2937         * iconvdata/gbgbk.c: Likewise.
2938         * iconvdata/gbk.c: Likewise.
2939         * iconvdata/euc-kr.c: Likewise.
2940         * iconvdata/euc-jp.c: Likewise.
2941         * iconvdata/euc-cn.c: Likewise.
2943 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
2945         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
2946         * iconvdata/big5.c: Likewise.
2947         * iconvdata/ansi_x3.110.c: Likewise.
2948         * iconvdata/8bit-generic.c: Likewise.
2949         * iconvdata/8bit-gap.c: Likewise.
2950         * iconv/loop.c: Likewise.
2951         * iconv/gconv_db.c: Likewise.
2952         * iconv/gconv_dl.c: Likewise.
2953         * iconv/gconv_simple.c: Likewise.
2954         * iconv/skeleton.c: Likewise.
2956         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
2957         (struct __gconv_step_data): Rename __is_last to __flags.
2958         * iconv/gconv_close.c: Change all uses of __is_last.
2959         * iconv/skeleton.c: Likewise.
2960         * iconvdata/iso-2022-cn.c: Likewise.
2961         * iconvdata/iso-2022-jp.c: Likewise.
2962         * iconvdata/iso-2022-kr.c: Likewise.
2963         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
2964         Recognize IGNORE error handling, set flag, and remove from name.
2965         * iconv/loop.c (ignore_errors_p): Define.
2966         Add flags parameter to both functions.
2967         * iconv/skeleton.c: Pass flags to all conversion functions.
2968         * iconv/gconv_simple.c: Add flags parameter to all functions.
2969         Don't return error for invald error if ignore flag is set.
2970         (ucs4_internal_loop_single): Add missing pointer increment.
2971         (internal_ucs4le_loop_single): Likewise.
2972         * iconv/iconv_prog.c: Implement handling of -c parameter.
2973         * iconvdata/8bit-gap.c: Don't return error for invald error if
2974         ignore flag is set.
2975         * iconvdata/8bit-generic.c: Likewise.
2976         * iconvdata/ansi_x3.110.c: Likewise.
2977         * iconvdata/big5.c: Likewise.
2978         * iconvdata/big5hkscs.c: Likewise.
2979         * iconvdata/euc-cn.c: Likewise.
2980         * iconvdata/euc-jp.c: Likewise.
2981         * iconvdata/euc-kr.c: Likewise.
2982         * iconvdata/gbgbk.c: Likewise.
2983         * iconvdata/gbk.c: Likewise.
2984         * iconvdata/iso-2022-cn.c: Likewise.
2985         * iconvdata/iso-2022-jp.c: Likewise.
2986         * iconvdata/iso-2022-kr.c: Likewise.
2987         * iconvdata/iso646.c: Likewise.
2988         * iconvdata/iso8859-1.c: Likewise.
2989         * iconvdata/iso_6937-2.c: Likewise.
2990         * iconvdata/iso_6937.c: Likewise.
2991         * iconvdata/johab.c: Likewise.
2992         * iconvdata/sjis.c: Likewise.
2993         * iconvdata/t.61.c: Likewise.
2994         * iconvdata/uhc.c: Likewise.
2995         * iconvdata/unicode.c: Likewise.
2996         * iconvdata/utf-16.c: Likewise.
2997         * libio/fileops.c: Likewise.
2998         * libio/iofwide.c: Likewise.
2999         * wcsmbs/btowc.c: Likewise.
3000         * wcsmbs/mbrtowc.c: Likewise.
3001         * wcsmbs/mbsnrtowcs.c: Likewise.
3002         * wcsmbs/mbsrtowcs.c: Likewise.
3003         * wcsmbs/wcrtomb.c: Likewise.
3004         * wcsmbs/wcsnrtombs.c: Likewise.
3005         * wcsmbs/wcsrtombs.c: Likewise.
3006         * wcsmbs/wctob.c: Likewise.
3008         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
3009         an error.
3011 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
3013         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
3014         counter for the object we are releasing, just decrement it.
3015         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
3017 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
3019         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
3020         if -ffast-math.
3022 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
3024         * iconvdata/big5hkscs.c: New file.
3025         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
3027         * iconvdata/gconv-modules: Add entry for new module.
3028         * iconvdata/Makefile (modules): Add BIG5HKSCS.
3029         (distribute): Add big5hkscs.c.
3031 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
3033         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
3034         inlines to match prototypes in mathcalls.h.
3035         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3036         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
3037         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3038         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3040 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
3042         * elf/elf.h (SHT_SUNW_move): Define.
3044         * elf/elf.h: Add more Solaris compatiblity definitions.
3046 2000-06-03  Andreas Jaeger  <aj@suse.de>
3048         * sysdeps/powerpc/dl-start.S: Close open comment.
3050 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
3052         * inet/Versions: Fix typo in rresvport_af export.
3054 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
3056         * math/tgmath.h: Pretty print.
3058 2000-06-02  Andreas Jaeger  <aj@suse.de>
3060         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
3061         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3063 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
3065         * elf/rtld.c (process_envvars): Test for = after variable name.
3067 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
3069         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
3070         have extra call to __gmon_start__, use the pointer we already have.
3072         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
3073         shifting.
3075         * sysdeps/i386/elf/setjmp.S: Work around change is recent
3076         binutils.  gas now emits a jump through the PLT instead of a
3077         relative jump if the jump target is an exported symbol.
3079 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
3081         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
3083 2000-05-31  Andreas Jaeger  <aj@suse.de>
3085         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
3086         gregset_t.
3088         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
3089         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3091         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
3092         syscall.
3093         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3095 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
3097         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
3099         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
3100         * locale/localeconv.c: Make function versioned (with same definition).
3102         * elf/Makefile (modules-names): Strip before using it.
3104 2000-05-30  Andreas Jaeger  <aj@suse.de>
3106         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
3107         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
3108         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
3109         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
3110         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
3111         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
3113 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
3115         * Makefile: Add GNU make magic.
3117         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
3118         Removed.
3119         * inet/rcmd.c: Remove __P.  Remove unused variables.
3120         (iruserfopen): Make first parameter const.
3121         (ruserok_sa): Return result of ruserok2_sa.
3122         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
3123         * inet/rexec.c: Remove unused variables.  Other small cleanups.
3124         * inet/ruserpass.c: Remove __P.  Remove unused variables.
3125         (ruserpass): Check results of memory allocation.
3126         * include/netdb.h: Add prototype for ruserpass.
3128 2000-05-29  Andreas Jaeger  <aj@suse.de>
3130         * elf/readlib.c (interpreters): Use LD_SO since this is supported
3131         for all platforms.
3133 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
3135         * inet/rcmd.c (rresvport_af): Use correct port number.
3137 2000-05-26  Andreas Schwab  <schwab@suse.de>
3139         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
3140         entries in all-sonames.
3141         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
3142         preserving the old name if different for compatibility.
3144 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
3146         * posix/Makefile (tests): Add tst-spawn.
3147         (tst-spawn-ARGS): New variable.
3148         * posix/tst-spawn.c: New file.
3150         * posix/spawn_faction_addclose.c: Correctly account for new entry.
3151         * posix/spawn_faction_adddup2.c: Likewise.
3152         * posix/spawn_faction_addopen.c: Likewise.
3153         * posix/spawni.c: Correctly test for success of dup2 calls.
3155         * posix/tst-preadwrite.c: Check success of malloc call.
3157 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3159         * posix/Makefile (tests): Add tst-exec.
3160         (tst-exec-ARGS): New variable.
3161         * posix/tst-exec.c: New file.
3163         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
3165 2000-05-04  Andreas Jaeger  <aj@suse.de>
3167         * string/string.h: Remove __strdup prototype, it's not needed in
3168         this file anymore.
3170 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3172         * posix/Makefile (tests): Add tst-fork.
3173         * posix/tst-fork.c: New file.
3175         * resolv/inet_pton.c: Loose __P.
3177 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
3179         * libio/libioP.h (_IO_CHECK_WIDE): Define.
3180         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
3181         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3182         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
3183         _IO_CHECK_WIDE fails.
3185 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3187         * po/da.po: New file.
3189         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
3190         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
3192         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
3193         (Other iconv Implementations): Fix typo.
3194         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
3196 2000-05-27  Andreas Jaeger  <aj@suse.de>
3198         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
3199         normal version now.
3200         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
3201         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
3202         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3203         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3204         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
3205         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
3207         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
3208         endianness to decide how to pass arguments.
3209         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
3211         * elf/vismain.c: Use test-skeleton interface.
3212         (TEST_FUNCTION): New macro.
3213         (do_test): Renamed from main.
3215 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
3217         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
3218         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
3220         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
3221         handling of AI_V4MAPPED flag.
3223         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
3224         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
3225         perform lookup for T_A type and tell getanswer_r to convert the
3226         result with new argument.
3227         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
3228         Don't convert addresses from IPv4 to IPv6 here.
3229         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
3230         IPv6 is wanted.  Allow qtype and type from reply to disagree if
3231         IPv4 mapping has to be done.  Perform mappings if required by the
3232         caller and not if RES_USE_INET6 bit in _res.options is set.
3233         Add several __builtin_expect.
3235 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
3237         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
3239         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
3240         NULL.
3242         * posix/tst-preadwrite.c: Allow parallel execution of
3243         tst-preadwrite and tst-preadwrite64.
3245         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
3246         * posix/tst-truncate.c: New file.
3247         * posix/tst-truncate64.c: New file.
3249         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
3250         was switched.
3252         * posix/Makefile (tests): Add tst-preadwrite64.
3253         * posix/tst-preadwrite.c: Alloc file being used also for testing
3254         pread64 and pwrite64.
3255         * posix/tst-preadwrite64.c: New file.
3257 2000-05-26  Andreas Jaeger  <aj@suse.de>
3259         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
3260         of arguments dependend on endianness.
3261         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3263         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
3264         normal version now.
3265         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3266         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3267         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3268         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3270         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
3271         endianness to check how to pass argument.
3272         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
3274         * elf/ldconfig.h: Update parameter list for process_elf_file.
3276         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
3277         Add parameter file_length and pass it ot process_elf*file.
3279         * sysdeps/generic/readelflib.c (check_ptr): New.
3280         (process_elf_file): Use check_ptr to check all accesses to the
3281         mmapped file. Add parameter file_length.
3283         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
3284         library names.
3286         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
3287         Closes PR libc/1573, reported by Bradley White
3288         <bww@laurelnetworks.com>.
3290 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
3292         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
3293         __FAST_MATH__ is defined.
3295 2000-05-22  Andreas Jaeger  <aj@suse.de>
3297         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
3298         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
3300         * manual/math.texi (FP Function Optimizations): Document gcc
3301         -ffast-math behaviour with mathinlines.
3303         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
3304         functions unless -ffast-math is given to gcc.
3306 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
3308         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
3309         __sincosl): Guard with __USE_GNU.
3311 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
3313         * csu/Makefile (routines): Add check_fds.
3314         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
3315         binaries.  Add various __builtin_expect.
3316         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
3317         * sysdeps/generic/check_fds.c: ...here.  New file.
3319         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
3320         binaries if file /etc/suid-debug is available.
3322         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
3323         and wcseqorder members.
3324         (struct locale_collate_t): Likewise.
3325         (collate_finish): Assign collation sequence value to each character.
3326         Create tables for output.
3327         (collate_output): Write out tables with collation sequence information.
3328         * locale/C-collate.c: Provide C locale data for collation sequence
3329         table.
3330         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
3331         _NL_COLLATE_COLLSEQWC.
3332         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
3333         _NL_COLLATE_COLLSEQWC.
3334         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
3335         include fnmatch_loop.c.
3336         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
3337         character is matched by range expression.  Use collation sequence
3338         table.  Outside glibc fall back on simple character value comparison.
3340 2000-05-24  Andreas Jaeger  <aj@suse.de>
3342         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
3343         words.
3345         * intl/Makefile: Run gettext-test only if msgfmt is available.
3347         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
3348         Define it for newer kernels.
3350 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
3352         * elf/dl-sym.c: Minor cleanups.
3354         * configure.in: Add test for .protected.
3355         * config.make.in: Add have-protected variable.
3356         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
3357         (tests-vis-yes): Add vismain.
3358         (modules-names): Add $(modules-vis-$(have-protected)).
3359         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
3360         Add rules to generate and run vismain.
3361         * elf/vismain.c: New file.
3362         * elf/vismod1.c: New file.
3363         * elf/vismod2.c: New file.
3364         * elf/vismod3.c: New file.
3366 2000-05-23  Andreas Jaeger  <aj@suse.de>
3368         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
3370         * manual/search.texi (Array Sort Function): Document that qsort is
3371         not necessarily in-place.
3373         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
3374         Closes PR libc/1731.
3376         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
3377         * dirent/scandir64.c: Likewise.
3378         * pwd/getpw.c: Likewise.
3379         * stdlib/bsearch.c (bsearch): Likewise.
3380         * stdlib/tst-strtoll.c: Likewise.
3381         * localedata/collate-test.c: Likewise.
3382         * localedata/xfrm-test.c: Likewise.
3383         * posix/bsd-getpgrp.c: Likewise.
3384         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
3385         * sysdeps/generic/bits/siginfo.h: Likewise.
3386         * sysdeps/generic/bits/sockaddr.h: Likewise.
3387         * sysdeps/generic/sys/swap.h: Likewise.
3388         * sysdeps/generic/sys/sysinfo.h: Likewise.
3389         * sysdeps/generic/vfork.c: Likewise.
3390         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
3391         * sysdeps/mach/hurd/fdopen.c: Likewise.
3392         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
3393         * sysdeps/unix/sysv/linux/poll.c: Likewise.
3394         * sysdeps/unix/sysv/linux/readv.c: Likewise.
3395         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3396         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3397         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3398         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
3400         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
3401         * shadow/lckpwdf.c: Likewise.
3402         * stdlib/tst-strtol.c: Likewise.
3403         * sysdeps/generic/tcsetattr.c: Likewise.
3404         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
3405         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
3407 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
3409         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
3410         free it and set to (void *) -1.
3412 2000-05-22  Jakub Jelinek <jakub@redhat.com>
3414         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
3415         not the second character in the range.
3416         * stdio-common/tstscanf.c (main): Add testcase for the above.
3417         Reported by jik@kamens.brookline.ma.us.
3419 2000-05-21  H.J. Lu  <hjl@gnu.org>
3421         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
3422         with noexec and noplt parameter.
3423         (do_lookup): Likewise.
3425         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
3426         do_lookup.  Support STV_PROTECTED.
3427         (_dl_lookup_symbol_skip): Likewise.
3428         (_dl_lookup_versioned_symbol): Likewise.
3429         (_dl_lookup_versioned_symbol_skip): Likewise.
3431         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
3433         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
3435 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
3437         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
3438         * sysdeps/i386/bits/huge_val.h: Likewise.
3439         * sysdeps/ieee754/bits/huge_val.h: Likewise.
3440         * sysdeps/m68k/bits/huge_val.h: Likewise.
3441         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
3442         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
3444 2000-05-22  Andreas Jaeger  <aj@suse.de>
3446         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
3447         change in iconv.h.
3449 2000-05-19  Andreas Jaeger  <aj@suse.de>
3451         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
3452         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
3453         breaks compilation without linuxthreads.
3455 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
3457         * sysdeps/ia64/memccpy.S: New file.
3458         * sysdeps/ia64/memchr.S: New file.
3459         * sysdeps/ia64/memcmp.S: New file.
3460         * sysdeps/ia64/memcpy.S: New file.
3461         * sysdeps/ia64/memmove.S: New file.
3462         * sysdeps/ia64/memset.S: New file.
3463         * sysdeps/ia64/strcat.S: New file.
3464         * sysdeps/ia64/strchr.S: New file.
3465         * sysdeps/ia64/strcmp.S: New file.
3466         * sysdeps/ia64/strcpy.S: New file.
3467         * sysdeps/ia64/strlen.S: New file.
3468         * sysdeps/ia64/strncmp.S: New file.
3469         * sysdeps/ia64/strncpy.S: New file.
3470         * sysdeps/ia64/softpipe.h: New file.
3471         Patches by Dan Pop <Dan.Pop@cern.ch>.
3473         * manual/memory.texi: Document memory handling functions (mlock,
3474         munlock, mlockall, munlockall, brk, and sbrk)
3475         * manual/time.texi: Document timespec and friends.
3476         * manual/conf.texi: Fix references.
3477         * manual/ctype.texi: Likewise.
3478         * manual/errno.texi: Likewise.
3479         * manual/intro.texi: Likewise.
3480         * manual/locale.texi: Likewise.
3481         * manual/sysinfo.texi: Likewise.
3482         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
3484 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
3486         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
3487         * sysdeps/ia64/dl-lookupcfg.h: ...here.
3489 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
3491         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
3492         dxfer_direction.
3494 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
3496         * locale/locale.h (struct lconv): Add new elements from ISO C99.
3497         * locale/localeconv.c: Initialize new elements from ISO C99.
3498         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
3499         new standard elements.
3500         * locale/categories.def: Adjust accordingly.
3502         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
3503         * iconv/iconv.c: Likewise.
3504         * conform/data/iconv.h-data: Likewise.
3505         * iconv/iconv_prog.c (process_block): Remove const from second
3506         parameter.
3507         (main): Remove const from addr definition.
3508         * manual/charset.texi (Generic Conversion Interface): Remove from
3509         inbuf parameter of iconv.
3511         * intl/dcigettext.c: Fix typo in comment.
3513 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
3515         * resolv/res_libc.c (_res): Initialize _sock to -1.
3517 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
3519         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
3520         (fopencookie@@GLIBC_2.2): New.
3521         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
3522         (fopencookie@GLIBC_2.0): New.
3523         * libio/Versions: Add fopencookie to GLIBC_2.2.
3525 2000-05-18  Andreas Jaeger  <aj@suse.de>
3527         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
3528         Closes PR libc/1731.
3530         * manual/arith.texi (Parsing of Integers): Fix typo.
3531         Closes PR libc/1744, reported by blp@gnu.org.
3533 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
3535         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
3536         __extension__ to hexadecimal floating constant notation.
3537         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
3538         Likewise.
3539         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
3540         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
3541         Likewise.
3542         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
3543         HUGE_VALL): Likewise.
3544         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
3545         HUGE_VALL): Likewise.
3546         (HUGE_VALL): Set to HUGE_VAL on sparc32.
3548 2000-05-17  Andreas Jaeger  <aj@suse.de>
3550         * string/envz.h: Add pure attributes if possible.
3552         * string/argz.h: argz_count is a pure function.
3554         * string/strings.h: Add pure and const attributes if possible.
3556         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
3557         possibly searching through the whole memory.
3558         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
3560 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
3562         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
3563         not yet defined.
3564         (_dl_cache_check_flags): Likewise.
3565         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
3566         dl-cache.h.
3568 2000-05-17  Andreas Jaeger  <aj@suse.de>
3570         * manual/creature.texi (Feature Test Macros): Remove paragraph
3571         since the description is wrong.
3572         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
3574         * scripts/config.sub: New version.
3575         * scripts/config.guess: Likewise.
3576         * manual/texinfo.tex: Likewise.
3578         * time/test_time.args: Removed.
3579         * time/Makefile (test_time-ARGS): Added contents here instead.
3581         * posix/tstgetopt.args: Removed.
3582         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
3584         * Rules: Allow arguments for test files to be specified in
3585         Makefile with testname-ARGS; remove rules with .args in it.
3587         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
3588         remove old bogus rule for opendir-tst1.args.
3590         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
3592         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
3593         into objdir.  This allows a readonly sourcetree.
3594         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
3596 2000-05-16  Andreas Jaeger  <aj@suse.de>,
3597             David Huggins-Daines <dhd@linuxcare.com>
3599         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
3600         cache_data in case of only new cache format correctly.
3602         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
3603         cache_file_new.
3605         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
3606         struct cache_file_new.
3608         * elf/cache.c (save_cache): Fix str_offset if only new cache is
3609         present.
3611         * elf/cache.c (save_cache): Align struct new_file_cache.
3612         (print_cache): Likewise.
3614 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
3616         * elf/soinit.c (__libc_global_ctors): Move
3617         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
3618         * resolv/resolv.h (__res_state): Added __attribute__((const)).
3619         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
3620         variable, don't define it to __res_state call.
3622 2000-05-13  Andreas Jaeger  <aj@suse.de>
3624         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
3625         Linux 2.3.99pre7.
3626         (AF_PPPOX): Likewise.
3627         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
3628         (AF_PPPOX): Likewise.
3630 2000-05-12  Andreas Jaeger  <aj@suse.de>
3632         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
3633         Reported by tmoestl@gmx.net, closes PR libc/1732.
3635 2000-05-11  Jan Hubicka  <jh@suse.cz>
3637         * misc/sys/cdefs.h: Add support for pure attribute.
3639         * include/string.h: Add __attribute_pure__ to various functions.
3640         * string/string.h: Likewise.
3642 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
3644         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
3645         argument.
3646         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3647         R_SPARC_UA64.
3648         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
3650 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
3652         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
3653         at proper place.  Compute the high nibble correctly.
3655 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
3657         * elf/ldconfig.c: Include elf.h.
3659         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
3660         (_dl_vsym): Likewise.
3661         Reported by Owen Taylor <otaylor@redhat.com>.
3663         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
3664         always.
3666 2000-05-08  Andreas Jaeger  <aj@suse.de>
3668         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
3670         * intl/bindtextdom.c (set_binding_values): Add prototype.
3672 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
3674         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
3675         call to elf_machine_fixup_plt.
3676         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3677         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3679 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
3681         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
3682         they are not dlclose'd from underneath us.
3684 2000-05-08  Andreas Schwab  <schwab@suse.de>
3686         * posix/execle.c: Fix size parameter of memcpy.
3688 2000-05-08  Andreas Schwab  <schwab@suse.de>
3690         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
3691         getpagesize syscall if available.
3693 2000-05-08  Andreas Jaeger  <aj@suse.de>
3695         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
3696         set errno.
3698 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
3700         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
3701         sizeof(struct link_map *) chunks, not in bytes.
3703 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
3705         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
3706         only needed for locale.
3707         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
3708         It's only needed for catgets.
3709         Patches by Greg McGary <gkm@eng.ascend.com>.
3711 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
3713         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
3714         Remove duplicate <errno.h> include.  Remove inclusion of
3715         <libintl.h> and "nsswitch.h".
3716         (set_cloexec_flag): New function, broken out of dbopen.
3717         (dbopen): Changed return type to `enum
3718         nss_status'.  Mostly rewritten to make sure that we do not report
3719         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
3720         (internal_setent): Change return type to nss_status.
3721         Document, and make sure that the function
3722         behaves accordingly.  Make dynamically loading the database
3723         library really thread-safe and return NSS_STATUS_UNAVAIL if it
3724         failed.
3725         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
3726         unecessary casts.
3727         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
3728         documentation.
3729         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
3730         c_get function member.
3731         * nss/nss_db/nss_db.h: Add and tweak some comments.
3732         (DBT): Move typedef before NSS_DBC typedef.
3733         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
3735 2000-05-07  H.J. Lu  <hjl@gnu.org>
3737         * csu/initfini.c: Moved to ....
3738         * sysdeps/generic/initfini.c: ...here.
3740         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
3742 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
3744         * manual/resource.texi: Document POSIX scheduling functions.
3745         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
3747         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
3748         reading anything.  Reported by Andries.Brouwer@cwi.nl.
3750         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
3751         for x since promotion in comparison might leads to unexpected
3752         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
3754         * iconv/Makefile (tests): Add tst-iconv1.
3755         * iconv/tst-iconv1.c: New file.
3756         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
3757         empty input buffer over full output buffer.
3758         (ucs4_internal_loop): Likewise.
3759         (ucs4_internal_loop_unaligned): Likewise.
3760         (internal_ucs4le_loop): Likewise.
3761         (internal_ucs4le_loop_unaligned): Likewise.
3762         (ucs4le_internal_loop): Likewise.
3763         (ucs4le_internal_loop_unaligned): Likewise.
3764         Reported by yaoz@nih.gov.
3766 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
3768         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
3769         returned != __GCONV_OK, there is nothing to clean up.
3771 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
3773         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
3774         OUTPUT_CHARSET environment variables.
3776 2000-05-06  Andreas Jaeger  <aj@suse.de>
3778         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
3779         (struct cache_file_new): New.
3780         (struct file_entry): New (moved from cache.c).
3781         (struct cache_file): New (moved from cache.c).
3783         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
3784         from _dl_load_cache_lookup.
3785         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
3786         the different cache formats.
3787         New variable cache_new for new format.
3789         * elf/ldconfig.h: Change according to changes in cache.c and
3790         ldconfig.c; remove cache_libcmp; add opt_format.
3792         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
3793         stuff that's defined in those headers.
3794         Add hwcap to struct lib_entry.
3795         (opt_format): New variable to select cache format.
3796         (options): Add format parameter.
3797         (is_hwcap): New function.
3798         (path_hwcap): New function.
3799         (parse_opt): Handle new format parameter.
3800         (search_dir): Handle hwcap, search also subdirectories with hwcap.
3802         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
3803         ldconfig is part of glibc.
3804         Include dl-cache.h and remove stuff that's defined there.
3805         (struct cache_entry): Add new member hwcap.
3806         (print_entry): Print hwcap, cleanup a bit.
3807         (print_cache): Print new and old formats.
3808         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
3809         (save_cache): Save new and old formats.
3810         (add_to_cache): Handle hwcap.
3812         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
3813         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
3814         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
3815         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
3816         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
3817         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
3819 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
3821         * intl/dcigettext.c (alignof): New macro.
3822         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
3823         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
3824         freemem_size to 0.
3826 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
3828         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
3829         return value.
3831 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
3833         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
3834         (mempcpy): Correct typo is parameter list.
3836 2000-05-06  Andreas Jaeger  <aj@suse.de>
3838         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
3839         functions unless -ffast-math is given to gcc.
3841 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
3843         * po/ko.po: Update from translation team.
3845 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
3847         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
3848         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
3849         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
3850         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
3851         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
3852         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
3854         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
3855         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
3856         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
3858         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
3859         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
3860         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
3861         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
3863         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
3864         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
3866 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
3868         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
3869         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
3871         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
3872         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
3874         * sysdeps/ia64/Implies: New file.
3875         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
3876         * sysdeps/ia64/Makefile: New file.
3877         * sysdeps/ia64/gmp-mparam.h: New file,
3879         * sysdeps/ia64/elf/start.S: New file.
3881         * sysdeps/ia64/bits/fenv.h: New file.
3883 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
3885         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
3887 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
3889         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
3890         ia64 has 64 bit .hash entries just as the Alpha.
3892 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
3894         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
3896 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
3898         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
3899         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
3900         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
3901         * sysdeps/ia64/fpu/fegetenv.c: New file.
3902         * sysdeps/ia64/fpu/fegetexcept.c: New file.
3903         * sysdeps/ia64/fpu/fegetround.c: New file.
3904         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
3905         * sysdeps/ia64/fpu/fesetenv.c: New file.
3906         * sysdeps/ia64/fpu/fesetround.c: New file.
3907         * sysdeps/ia64/fpu/feupdateenv.c: New file.
3908         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
3909         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
3910         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
3911         * sysdeps/ia64/fpu/ftestexcept.c: New file.
3913 2000-05-05  Andreas Jaeger  <aj@suse.de>
3915         * misc/tst-tsearch.c (main): Correct type for initstate argument.
3917         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
3918         (_dl_string_hwcap): New, does nothing.
3920         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
3921         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
3922         (_dl_string_hwcap): New function, converts from string to hwcap
3923         encoding.
3924         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3925         (_DL_HWCAP_COUNT): New.
3926         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
3927         (_dl_string_hwcap): New function, converts from string to hwcap
3928         encoding.
3929         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
3930         (_DL_HWCAP_COUNT): New.
3931         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
3932         (_dl_string_hwcap): New function, converts from string to hwcap
3933         encoding.
3935 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
3937         * elf/Makefile (distribute): Add dl-lookupcfg.h.
3938         * sysdeps/ia64/Dist: New file.
3940         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
3941         parameter to mprotect and for variable assignments.
3943 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
3945         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
3946         validity of map before dereferencing it.
3948         * elf/dl-reloc.c (RESOLVE_MAP): Define.
3950 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
3952         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
3953         lookup to the arguments to elf_machine_fixup_plt().
3955         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
3956         of the symbol being resolved to input argument list and make the
3957         function return the pointer to the reloc.
3959         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
3960         return valuie to lookup_t and return the value.
3961         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
3962         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
3963         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
3964         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
3965         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
3966         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
3968         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
3969         Make it an inline function returning value after calling
3970         __elf_machine_fixup_plt().
3972         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
3973         symbol address.
3975         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
3976         obtain the symbol address.
3978         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
3979         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
3981         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
3982         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
3983         inline on non ia64.
3985 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
3987         * elf/dl-runtime.c (fixup): Use the portable macros to get the
3988         symbol address of an object.
3990         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
3991         the symbol address of an object.
3993         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
3994         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
3995         (_dl_lookup_symbol_skip): Likewise.
3996         (_dl_lookup_versioned_symbol): Likewise.
3997         (_dl_lookup_versioned_symbol_skip): Likewise.
3999 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
4001         * elf/rtld.c (_dl_start): Get the function pointer return address
4002         via _dl_start_address for architectures that need a function
4003         pointer descriptor rather than just a pointer (ia64).
4005         * sysdeps/generic/dl-lookupcfg.h: New file.
4006         * sysdeps/ia64/dl-lookupcfg.h: New file.
4007         * sysdeps/ia64/dl-machine.h: New file.
4008         * sysdeps/ia64/dl-symaddr.c: New file.
4009         * sysdeps/ia64/dl-fptr.c: New file.
4011         * elf/elf.h: Add IA-64 specific definitions.
4013 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
4015         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
4016         end of enum.
4018 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
4020         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
4021         happy.
4023 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
4025         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
4026         symbol.  Call _dl_init rather than the old way.
4028 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
4030         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
4031         test for pointer in range of DSO address space.
4033 2000-05-04  Andreas Jaeger  <aj@suse.de>
4035         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
4037 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4039         * locale/findlocale.c (_nl_find_locale): Add new parameter to
4040         calls of _nl_make_l10nflist.
4042         * libio/stdio.h: Make fseeko and ftello prototypes available is
4043         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
4045         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
4046         real unsetenv implementation from 1999-07-29 [PR libc/1714].
4048 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
4050         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
4051         before calling tfind.
4053 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
4055         * resolv/resolv.h (res_querydomain): Remove redefinition to
4056         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
4058 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4060         * po/gl.po: Update from translation team.
4062         * manual/intro.texi (Program Basics): Change section title.
4063         * manual/process.texi: Fix reference.
4064         (Executing a File): Add reference exec in other section.
4065         * manual/signal.texi: Fix reference.
4066         * manual/startup.texi: Document syscall function.
4067         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4069 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4071         * intl/libintl.h (bind_textdomain_codeset): New declaration.
4072         * intl/bindtextdom.c (set_binding_values): New function.
4073         (bindtextdomain): Call it.
4074         (bind_textdomain_codeset): New function.
4075         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
4076         (free_mem): Free each binding's codeset.
4077         * intl/gettextP.h (struct binding): Add codeset field.
4078         (_nl_find_domain): Add domainbinding argument.
4079         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
4080         Pass it to _nl_make_l10nflist.
4081         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
4082         (_nl_make_l10nflist): Add domainbinding argument.
4083         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
4084         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
4085         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
4086         locale_charset().
4087         * manual/message.texi: New node "Charset conversion in gettext".
4089 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
4091         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
4092         appropriate.  Handle possible __read error.
4094 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4096         * intl/gettextP.h (__builtin_expect): Define as empty if not a
4097         compiler builtin.
4098         * intl/loadinfo.h (__builtin_expect): Likewise.
4099         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
4100         __builtin_expect where appropriate.
4101         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
4102         * intl/localealias.c (extend_alias_table): Return an error indicator.
4103         (read_alias_file): Bail out if extend_alias_table fails.
4105 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4107         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
4108         * intl/localealias.c: Likewise.
4110 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4112         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
4113         Initialize domain->plural and domain->nplurals even if there is no
4114         nullentry.
4116 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4118         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
4119         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
4120         In case of failure, goto converted.
4122 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4124         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
4125         * iconv/gconv_int.h (norm_add_slashes): Move to here.
4126         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
4127         __gconv_open.
4129 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4131         * intl/dcigettext.c (transcmp): Compare the domains as well.
4132         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
4133         not before.
4134         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
4135         <errno.h>.
4137 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4139         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
4140         Reported by Bruno Haible.
4142 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4144         * manual/arith.texi: Remove @w from @itemize.
4146 2000-05-02  Andreas Jaeger  <aj@suse.de>
4148         * conform/data/tar.h-data: Add some checks for specific values.
4150         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
4151         and RAND_MAX.
4153         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
4154         FOPEN_MAX.
4156         * conform/data/netinet/in.h-data: Add exact checks for the values
4157         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
4159         * conform/data/float.h-data: Add some minimal values.
4161         * conform/conformtest.pl: Test for macros with string constants,
4162         check for minimum and maximum values.
4163         Add limits.h to headers.
4165         * conform/data/cpio.h-data: Test for value of MAGIC.
4167         * conform/data/limits.h-data: New file.
4169 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
4171         * math/Makefile (headers): Add bits/fenvinline.h.
4173 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
4175         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
4176         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
4178         * posix/Versions: Change posix_spawnattr_getdefault and
4179         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
4180         and posix_spawnattr_setsigdefault respectively.
4181         * posix/spawn.h: Likewise.
4182         * posix/spawnattr_getdefault.h: Likewise.
4183         * posix/spawnattr_setdefault.h: Likewise.
4184         * conform/data/spawn.h-data: Likewise.
4186 2000-05-01  Andreas Jaeger  <aj@suse.de>
4188         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
4190 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
4192         * manual/sysinfo.texi: Document getdomainname, setdomainname
4193         and sysctl.
4194         * manual/string.texi: Fix typo.
4195         * manual/terminal.texi: Document gtty and stty.
4196         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4198 2000-04-30  Andreas Jaeger  <aj@suse.de>
4200         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
4201         accordance with Austin Draft.
4203 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
4205         * catgets/gencat.c (read_input_file): Use isblank and not isspace
4206         to recognize second character in comment line.
4208         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
4209         ENOBUFS if we are out of memory.
4211         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
4212         available if __USE_XOPEN2K.
4213         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
4214         * sysdeps/unix/common/bits/fcntl.h: Likewise.
4215         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4216         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4217         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
4218         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4219         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
4220         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
4222 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
4224         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
4225         Recognize option -s, -c, and -l.
4227 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
4229         * nscd/nscd.c: Start new session for nscd, drop privilegs
4230         to configured user if requested and no -S parameter are used.
4231         * nscd/nscd.conf: Add new option "server-user".
4232         * nscd/nscd_conf.c: Add support for new "server-user" option.
4233         * nscd/nscd.h: Add declaration for server_user variable.
4234         Based on patch by Chris Wing <wingc@engin.umich.edu>
4236 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4238         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
4239         that changing the __restore and __restore_rt signal return code
4240         will break GDB.
4242 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4244         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
4245         <sys/user.h>.
4247 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4249         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
4251 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
4253         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
4254         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
4255         arpa/inet.h.
4256         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
4257         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
4258         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
4259         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
4260         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
4261         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
4262         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
4263         posix_fallocate, and posix_madvise.
4264         * conform/data/netdb.h-data: New file.
4265         * conform/data/pthread.h-data: Add pthread_barrier_t,
4266         pthread_barrierattr_t, pthread_barrier_destroy,
4267         pthread_barrier_init, pthread_barrier_wait,
4268         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
4269         pthread_barrierattr_init, pthread_barrierattr_setpshared,
4270         pthread_condattr_getclock, pthread_condattr_setclock,
4271         pthread_getcpuclockid, pthread_mutex_timedlock,
4272         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4273         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
4274         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
4275         * conform/data/sched.h-data: Add sched_ss_low_priority,
4276         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
4277         SCHED_SPORADIC.
4278         * conform/data/semaphore.h-data: Add sem_timedwait.
4279         * conform/data/signal.h-data: Add SIGIO.
4280         * conform/data/spawn.h-data: New file.
4281         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
4282         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
4283         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
4284         Fix typo in gmtime_r definition.
4285         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
4286         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
4287         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
4288         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
4289         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
4290         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
4291         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
4292         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
4293         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
4294         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
4295         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
4296         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
4297         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
4298         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
4299         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
4300         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
4301         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
4302         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
4303         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
4304         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
4305         typo in off_t definition.
4306         * conform/data/net/if.h-data: New file.
4307         * conform/data/netinet/in.h-data: New file.
4308         * conform/data/netinet/tcp.h-data: New file.
4309         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
4310         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
4311         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
4312         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
4313         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
4314         and posix_typed_mem_open.
4315         * conform/data/sys/socket.h-data: New file.
4316         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
4317         * conform/data/sys/types.h-data: Add pthread_barrier_t,
4318         pthread_barrierattr_t, and pthread_spinlock_t.
4319         * conform/data/sys/un.h-data: New file.
4320         * conform/data/sys/utsname.h-data: New file.
4322         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
4323         parameter.
4324         * inet/gethstbyad.c (gethostbyname): Likewise.
4325         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
4326         * inet/getipnodebyad.c (getipnodebyad): Likewise.
4327         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
4328         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
4329         Likewise.
4330         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
4331         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
4332         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
4333         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
4334         * resolv/gethnamaddr.c (gethostbyname): Likewise.
4335         * resolv/netdb.h (struct hostent): Fix type of h_length member.
4336         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
4337         and second parameter.
4339         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
4340         == NULL.
4342 2000-04-29  Andreas Jaeger  <aj@suse.de>
4344         * conform/data/arpa/inet.h-data: New file.
4346 2000-04-28  Geoff Clare <gwc@unisoft.com>
4348         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
4349         path passed to ftw() or nftw() is an empty string.
4350         Closes PR libc/1710.
4352 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
4354         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
4355         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
4356         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
4357         * localedata/tst-mbswcs4.c: New file.
4358         * localedata/tst-mbswcs5.c: New file.
4360         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
4361         == NULL.  Little optimization.
4363         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
4364         DT_PREINIT_ARRAYSZ).
4365         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
4367         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
4368         overflows in conversion from ASCII.
4370 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
4372         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
4373         * Makerules (full_config_sysdirs): Likewise.
4374         * MakeTAGS (full_config_sysdirs): Likewise.
4376 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
4378         * .cvsignore: Remove linuxthreads.
4379         * po/.cvsignore: Remove *.pot.
4380         * posix/glob/.cvsignore: Removed.
4381         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
4383 2000-04-25  Andreas Jaeger  <aj@suse.de>
4385         * conform/Makefile (distribute): Also distribute contents of
4386         subdirectories.
4388         * Makerules (no_deps): Remove abi-versions.h.
4390         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
4392 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
4394         * sysdeps/sparc/sparc64/elf/Dist: Remove.
4395         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
4396         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
4397         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
4398         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
4399         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
4400         objects.
4402 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
4404         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
4406 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
4408         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
4409         * intl/l10nflist.c: Likewise.
4411 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
4413         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
4414         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
4415         * intl/textdomain.c [!_LIBC]: Likewise.
4416         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
4417         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
4418         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
4419         syntax error.
4421 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
4423         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
4424         character set conversion also in the case the translation was found
4425         after a hash collision or through binary search.  Store the maximum
4426         index together with the converted message.  Use iconv() when available.
4427         In case of out of memory during conversion, return the unconverted
4428         translated string, not NULL.
4430 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
4432         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
4433         to avoid name clashes with the ia32 linker.
4435 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
4437         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
4438         handling.
4440 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
4442         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
4443         strtoumax, strfry, and memfrob.
4444         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
4445         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4447         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
4448         if this function is available.
4450         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
4451         all values.
4453 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
4455         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
4457 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
4459         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
4460         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
4461         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
4462         * localedata/tst-mbswcs3.c: New file.
4464 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
4466         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
4467         characters.  Don't handle incomplete characters as errors.
4468         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
4469         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
4470         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
4471         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
4472         * localedata/tst-mbswcs2.c: New file.
4474         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
4475         stored character in state in UNPACK_BYTES macro.
4476         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
4477         test for available characters, handle result of BODY code correctly.
4478         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
4479         (distribute): Add tst-mbswcs.sh.
4480         Add rule to run tst-mbswcs.sh.
4481         * localedata/tst-mbswcs.sh: New file.
4482         * localedata/tst-mbswcs1.c: New file.
4484 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
4486         * nis/nis_callback.c (__nis_create_callback): Do failed memory
4487         allocation fixups centrally, fix __builtin_expect call, return NULL
4488         on failure, not NIS_NOMEMORY.
4490 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
4492         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
4494         * intl/loadinfo.h (internal_function): Define if not already defined.
4496 2000-04-27  Andreas Jaeger  <aj@suse.de>
4498         * intl/libintl.h: Fix typo, reported by Bruno Haible
4499         <haible@clisp.cons.org>.
4501 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
4503         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
4504         setting the state to GMON_PROF_BUSY.
4506 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
4508         * elf/dl-profile.c (_dl_start_profile): define all variables which
4509         do not have to be global as local variables.
4511         * nis/nis_callback.c (__nis_create_callback): Partially undo last
4512         patch.  Keep needed tests for failed memory allocation.
4514         * elf/dl-reloc.c (_dl_relocate_object): Add one more
4515         __builtin_expect saying that we don't normally expect to profile.
4517         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
4518         __builtin_expect where desirable.
4520 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
4522         * manual/Makefile (chapters): Add syslog.
4523         * manual/syslog.texi: New file.
4524         * manual/math.texi: Fix references.
4525         * manual/terminal.texi: Likewise.
4526         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4528 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
4530         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
4531         stdlib.h was not included or __USE_XOPEN not defined.
4533 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
4535         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
4536         Patch by Zack Weinberg <zack@wolery.cumb.org>.
4538 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
4540         * manual/examples/subopt.c (mount_opts): Add missing terminating
4541         entry.
4542         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
4544         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
4545         * libio/ftello.c: Likewise.
4546         * libio/ftello64.c: Likewise.
4547         * libio/ioftell.c: Likewise.
4548         * sysdeps/generic/memrchr.c: Likewise.
4549         * sysdeps/posix/libc_fatal.c: Likewise.
4550         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4551         * misc/fstab.c: Include <string.h> for strcmp prototype.
4552         * sysdeps/generic/ldsodefs.h: Likewise.
4553         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4554         Patch by Kurt Roeckx <Q@ping.be>.
4556         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
4557         Remove db-open.  Change all uses.
4558         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
4560 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
4562         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
4563         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
4564         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
4565         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
4566         with .set noat/at to shut up warnings.
4567         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
4568         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
4569         compilation if __NR_pciconfig_iobase is not defined.
4570         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
4571         Add alias.
4573 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
4575         * manual/sysinfo.texi: Fix typo.
4576         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
4577         Replace "high precision time" with "high accuracy clock".
4578         Fix language.
4579         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4581         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
4582         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
4583         instead of malloc.
4584         * nis/nis_subr.c: Use __builtin_expect.
4585         * nis/ypclnt.c: Likewise.
4586         * nis/nis_getservlist.c: Likewise.
4587         * nis/nis_creategroup.c: Likewise.
4589         * nis/nis_callback.c (__nis_create_callback): Check result of
4590         memory allocation.  Fix memory leaks.  Use __builtin_expect.
4591         (__nis_destroy_callback): Fix memory leaks.
4593 2000-04-21  Andreas Jaeger  <aj@suse.de>
4595         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
4596         * sysdeps/mips/mips64/add_n.S: Likewise.
4597         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
4598         * sysdeps/mips/mips64/lshift.S: Likewise.
4599         * sysdeps/mips/mips64/mul_1.S: Likewise.
4600         * sysdeps/mips/mips64/rshift.S: Likewise.
4601         * sysdeps/mips/mips64/setjmp.S: Likewise.
4602         * sysdeps/mips/mips64/sub_n.S: Likewise.
4603         * sysdeps/mips/mips64/submul_1.S: Likewise
4604         * sysdeps/unix/mips/sysdep.S: Likewise.
4606         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
4607         and update comment.  The strtab from _dl_relocate_object can be
4608         used.
4610 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
4612         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
4613         * iconv/iconv_close.c (iconv_close): Likewise.
4614         * iconv/iconv_open.c (iconv_open): Likewise.
4616         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
4617         __builtin_expect where useful.
4619         * grp/initgroups.c (initgroups): Test for result of memory
4620         allocation and punt if it fails.
4622         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
4623         * grp/fgetgrent.c (fgetfrent): Likewise.
4624         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
4626 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
4628         * libio/vasprintf.c: Include string.h to get memcpy prototype.
4630 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
4632         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
4633         don't search for NUL byte to decrement counter.
4634         Reported by Ulrich.Brink@sap.com.
4636         * iconv/gconv_simple.c: Define separate functions to convert from
4637         UCS4/UCS4-LE to the internal encoding.
4638         * iconv/gconv_builtin.h: Use separate functions to convert from
4639         UCS4/UCS4-LE to the internal encoding.
4640         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
4641         __gconv_transform_ucs4le_internal.
4643         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
4644         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
4646         * iconv/skeleton.c: Add some more __builtin_expect.
4647         * iconv/loop.c: Likewise.
4649 2000-03-08  H.J. Lu  <hjl@gnu.org>
4651         * posix/regex.c (regex_compile): Correctly handle "\{" when
4652         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
4654 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
4656         * manual/stdio.texi: Give advise about handling error when using
4657         stream functions.
4658         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
4660 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
4662         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
4663         field to nelems * sizeof (uint32_t).
4664         * locale/programs/ld-address.c (address_output): Align word fields
4665         properly.
4666         * locale/programs/ld-monetary.c (monetary_output): Likewise.
4667         Don't restart idx pointers to idx end at the duo_int_curr_symbol
4668         field.
4669         Avoid giving arbitrary garbage in the crncystr field.
4670         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
4671         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
4672         fields.
4673         * locale/programs/ld-numeric.c (numeric_output): Likewise.
4674         Don't restart idx pointers to idx end at the decimal_point_wc field.
4675         * locale/programs/ld-time.c (time_output): week_1stday should be
4676         word, not byte.  Align it properly.
4678 2000-04-19  H.J. Lu  <hjl@gnu.org>
4680         * csu/gmon-start.c (_start): Declared as "extern void".
4681         (etext): Likewise.
4683 2000-04-18  Andreas Jaeger  <aj@suse.de>
4685         * manual/install.texi (Running make install): Don't mention utmpd
4686         anymore.
4688 2000-04-18  Andreas Jaeger  <aj@suse.de>
4690         * linuxthreads/Versions: Use ld instead of ld.so.
4692         * elf/Makefile (ld-map): Use ld.map.
4694         * Versions.def: Use ld instead of ld.so.
4695         * elf/Versions: Likewise.
4696         * sysdeps/mach/hurd/Versions: Likewise.
4698 2000-04-20  Andreas Jaeger  <aj@suse.de>
4700         * elf/rtld.c (print_statistics): Move ifndef further up.
4701         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
4702         (dl_main): Likewise.
4704 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
4706         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
4707         * gmon/Versions: Move moncontrol to GLIBC_2.2.
4709         * po/cs.po: Update from translation team.
4711         * sysdeps/generic/updwtmp.c: Remove daemon support.
4713         * login/Makefile (routines): Remove utmp_daemon.
4715         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
4716         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
4717         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
4718         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
4720         * elf/rtld.c: Display statitics option also if hp timing is not
4721         available.
4723         * login/programs/connection.c: Removed.
4724         * login/programs/database.c Removed.
4725         * login/programs/error.c: Removed.
4726         * login/programs/request.c: Removed.
4727         * login/programs/xtmp.c: Removed.
4728         * login/programs/xtmp.h: Removed.
4729         * login/Makefile: Remove rules for utmpd.
4730         * login/README.utmpd: Removed.
4731         * login/utmp_daemon.c: Removed.
4732         * login/getutent_r.c: Remove references to daemon functions.
4733         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
4734         declaration.
4736 2000-04-18  Andreas Jaeger  <aj@suse.de>
4738         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
4739         2.2 for libnsl, libresolv, librt, libnss_*.
4741         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
4743         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
4745 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
4747         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
4748         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
4749         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
4750         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
4751         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
4752         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
4753         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
4754         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
4755         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
4756         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
4757         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
4758         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
4759         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
4760         it here.
4761         * sysdeps/unix/sysv/aix/msync.c: New file.
4762         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
4763         * sysdeps/unix/sysv/aix/net/if.h: New file.
4764         * sysdeps/unix/sysv/aix/pipe.c: New file.
4765         * sysdeps/unix/sysv/aix/poll.c: New file.
4766         * sysdeps/unix/sysv/aix/rename.c: New file.
4767         * sysdeps/unix/sysv/aix/rmdir.c: New file.
4768         * sysdeps/unix/sysv/aix/select.c: New file.
4769         * sysdeps/unix/sysv/aix/semctl.c: New file.
4770         * sysdeps/unix/sysv/aix/semget.c: New file.
4771         * sysdeps/unix/sysv/aix/semop.c: New file.
4772         * sysdeps/unix/sysv/aix/sendto.c: New file.
4773         * sysdeps/unix/sysv/aix/setgroups.c: New file.
4774         * sysdeps/unix/sysv/aix/setpgid.c: New file.
4775         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
4776         * sysdeps/unix/sysv/aix/setpriority.c: New file.
4777         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
4778         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
4779         * sysdeps/unix/sysv/aix/setsid.c: New file.
4780         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
4781         * sysdeps/unix/sysv/aix/shmat.c: New file.
4782         * sysdeps/unix/sysv/aix/shmctl.c: New file.
4783         * sysdeps/unix/sysv/aix/shmdt.c: New file.
4784         * sysdeps/unix/sysv/aix/shmget.c: New file.
4785         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
4786         * sysdeps/unix/sysv/aix/sigstack.c: New file.
4787         * sysdeps/unix/sysv/aix/socket.c: New file.
4788         * sysdeps/unix/sysv/aix/socketpair.c: New file.
4789         * sysdeps/unix/sysv/aix/speed.c: New file.
4790         * sysdeps/unix/sysv/aix/symlink.c: New file.
4791         * sysdeps/unix/sysv/aix/sync.c: New file.
4792         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
4793         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
4794         * sysdeps/unix/sysv/aix/times.c: New file.
4795         * sysdeps/unix/sysv/aix/ulimit.c: New file.
4796         * sysdeps/unix/sysv/aix/umask.c: New file.
4797         * sysdeps/unix/sysv/aix/unlink.c: New file.
4798         * sysdeps/unix/sysv/aix/ustat.c: New file.
4799         * sysdeps/unix/sysv/aix/utimes.c: New file.
4801 2000-04-18  Andreas Jaeger  <aj@suse.de>
4803         * manual/startup.texi (Environment Access): Fix putenv prototype
4804         according to recent changes.
4805         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
4806         PR libc/1692.
4808         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
4809         needed.
4811 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
4813         * posix/Makefile (tests): Add tst-getaddrinfo.
4814         * posix/tst-getaddrinfo.c: New file.
4816 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
4818         * manual/sysinfo.texi: Document that umount2 is not widely available.
4820         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
4821         signal timing is not really implemented.
4823 2000-04-17  Andreas Jaeger  <aj@suse.de>
4825         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
4827 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
4829         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
4830         and inst_libdir.
4832 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
4834         * manual/intro.texi: Change reference from System Information to
4835         System Management.
4836         * manual/users.texi: Likewise.
4837         * manual/conf.texi: Likewise.
4838         * manual/sysinfo.texi: Document mount, umount, and umount2.
4839         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4841 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
4843         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
4844         Create wnumstr as well as numstr to support wide character output
4845         correctly.
4847 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
4849         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
4850         modification and move it...
4851         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
4852         Add -melf64_sparc switch to $(LD) on sparc64-linux.
4853         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
4854         switch to $(LD) on sparc-linux.
4856 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
4858         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
4859         and setresuid from sysdep_routines.
4861 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
4863         * manual/Makefile (chapters): Add resource.
4865         * manual/time.texi: Move section on resources to...
4866         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
4867         and vtimes.
4868         * manual/setjmp.texi: Adjust back reference.
4869         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4871         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
4872         definition.
4873         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
4874         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
4875         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
4876         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
4877         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
4878         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
4879         * sysdeps/unix/sysv/aix/close.c: Add copyright.
4880         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
4881         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
4882         * sysdeps/unix/sysv/aix/access.c: Add copyright.
4883         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
4884         * sysdeps/unix/sysv/aix/Implies: New file.
4885         * sysdeps/unix/sysv/aix/Versions: New file.
4886         * sysdeps/unix/sysv/aix/bind.c: New file.
4887         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
4888         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
4889         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
4890         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
4891         * sysdeps/unix/sysv/aix/chdir.c: New file.
4892         * sysdeps/unix/sysv/aix/chmod.c: New file.
4893         * sysdeps/unix/sysv/aix/chroot.c: New file.
4894         * sysdeps/unix/sysv/aix/creat.c: New file.
4895         * sysdeps/unix/sysv/aix/dl-close.c: New file.
4896         * sysdeps/unix/sysv/aix/dl-open.c: New file.
4897         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
4898         * sysdeps/unix/sysv/aix/fchdir.c: New file.
4899         * sysdeps/unix/sysv/aix/fchmod.c: New file.
4900         * sysdeps/unix/sysv/aix/getgroups.c: New file.
4901         * sysdeps/unix/sysv/aix/gethostname.c: New file.
4902         * sysdeps/unix/sysv/aix/getpriority.c: New file.
4903         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
4904         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
4905         * sysdeps/unix/sysv/aix/getrusage.c: New file.
4906         * sysdeps/unix/sysv/aix/link.c: New file.
4907         * sysdeps/unix/sysv/aix/madvise.c: New file.
4908         * sysdeps/unix/sysv/aix/mkdir.c: New file.
4909         * sysdeps/unix/sysv/aix/mknod.c: New file.
4910         * sysdeps/unix/sysv/aix/mprotect.c: New file.
4911         * sysdeps/unix/sysv/aix/msgctl.c: New file.
4912         * sysdeps/unix/sysv/aix/msgget.c: New file.
4913         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
4915 2000-04-17  Andreas Jaeger  <aj@suse.de>
4917         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
4918         as suggested by Ulrich Drepper.
4919         (__dl_runtime_resolve): Remove unused variable, initialize sym
4920         directly.
4921         (RTLD_START): Document OFFSET_GP_GOT.
4922         (OFFSET_GP_GOT): New magic value.
4923         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
4924         (elf_machine_got_rel): Only declare strtab if needed.
4925         (elf_machine_relplt): Removed, it's not needed.
4926         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
4928         * sysdeps/mips/add_n.S: Add newline at EOF.
4929         * sysdeps/mips/rshift.S: Likewise.
4930         * sysdeps/mips/mul_1.S: Likewise.
4931         * sysdeps/mips/lshift.S: Likewise.
4932         * sysdeps/mips/addmul_1.S: Likewise.
4934 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
4936         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
4938         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
4939         * elf/dl-lookup.c: Likewise.
4940         * elf/dl-init.c (_dl_init): Likewise.
4941         * elf/dl-fini.c (_dl_fini): Likewise.
4942         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4943         * elf/dl-close.c (_dl_close): Likewise.
4944         * elf/rtld.c (_dl_start_final): Likewise.
4946         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
4948 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
4950         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
4951         only fall back on using Linux.
4953         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
4954         Before testing versions check that we actually loaded the object
4955         and whether we are in trace mode.  If not loaded during tracing don't
4956         test versions in this object.
4957         (_dl_check_all_versions): Take new parameter and pass to
4958         _dl_check_map_versions.
4959         * sysdeps/generic/ldsodefs.h: Update prototypes for
4960         _dl_check_all_versions and _dl_check_map_versions.
4961         * elf/rtld.c (struct version_check_args): Add dotrace.
4962         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
4963         (dl_main): Pass info about trace mode to version_check_doit.
4964         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
4965         _dl_check_all_versions.
4967         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
4968         and getutmpx.
4969         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4971         * manual/argp.texi: Document index parameter of argp_parse.
4972         Fix typo.
4973         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
4975 2000-04-14  Andreas Jaeger  <aj@suse.de>
4977         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
4978         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
4980         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
4982 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
4984         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
4985         compat_symbol call for old adjtime.
4987         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
4988         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
4990         * posix/Makefile (headers): Add spawn.h.
4991         (distribute): Add spawn_int.h.
4992         (routines): Add spawn_faction_init, spawn_faction_destroy,
4993         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
4994         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
4995         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
4996         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
4997         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
4998         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
4999         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
5000         posix_spawnattr_init, posix_spawnattr_destroy,
5001         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
5002         posix_spawnattr_getflags, posix_spawnattr_setflags,
5003         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
5004         and posix_spawnp.
5005         * posix/spawn.c: New file.
5006         * posix/spawn.h: New file.
5007         * posix/spawn_faction_addclose.c: New file.
5008         * posix/spawn_faction_adddup2.c: New file.
5009         * posix/spawn_faction_addopen.c: New file.
5010         * posix/spawn_faction_destroy.c: New file.
5011         * posix/spawn_faction_init.c: New file.
5012         * posix/spawn_int.h: New file.
5013         * posix/spawnattr_destroy.c: New file.
5014         * posix/spawnattr_getdefault.c: New file.
5015         * posix/spawnattr_getflags.c: New file.
5016         * posix/spawnattr_getpgroup.c: New file.
5017         * posix/spawnattr_getschedparam.c: New file.
5018         * posix/spawnattr_getschedpolicy.c: New file.
5019         * posix/spawnattr_getsigmask.c: New file.
5020         * posix/spawnattr_init.c: New file.
5021         * posix/spawnattr_setdefault.c: New file.
5022         * posix/spawnattr_setflags.c: New file.
5023         * posix/spawnattr_setpgroup.c: New file.
5024         * posix/spawnattr_setschedparam.c: New file.
5025         * posix/spawnattr_setschedpolicy.c: New file.
5026         * posix/spawnattr_setsigmask.c: New file.
5027         * posix/spawni.c: New file.
5028         * posix/spawnp.c: New file.
5030         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
5031         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5033 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
5035         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
5036         * malloc/malloc.c: Implement posix_memalign for glibc.
5037         * include/stdlib.h: Add prototype for __posix_memalign.
5038         * stdlib/stdlib.h: Add prototype for posix_memalign.
5040 2000-04-14  Andreas Jaeger  <aj@suse.de>
5042         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
5043         symidx correctly.
5044         (elf_machine_got_rel): Cast sym correctly.
5046         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
5047         * sysdeps/mips/addmul_1.S: Likewise.
5048         * sysdeps/mips/lshift.S: Likewise.
5049         * sysdeps/mips/mul_1.S: Likewise.
5050         * sysdeps/mips/rshift.S: Likewise.
5051         * sysdeps/mips/sub_n.S: Likewise.
5052         * sysdeps/mips/submul_1.S: Likewise.
5054         * stdlib/stdlib.h: Fix typo in comment.
5056         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5057         2.2 for libdl, ld and libm.
5059         * sysdeps/generic/madvise.c: Fix typos.
5061         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
5063         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
5065         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
5066         warnings.
5068 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
5070         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
5071         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
5072         Make old name weak alias.
5073         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5074         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
5075         Make old name weak alias.
5076         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5078         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
5079         posix_fallocate, and posix_fallocate64.
5080         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
5081         posix_fallocate, and posix_fallocate64.
5082         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
5083         posix_fallocate, and posix_fallocate64.
5084         * sysdeps/generic/fadvise.c: New file.
5085         * sysdeps/generic/fadvise64.c: New file.
5086         * sysdeps/generic/fallocate.c: New file.
5087         * sysdeps/generic/fallocate64.c: New file.
5088         * sysdeps/posix/fallocate.c: New file.
5089         * sysdeps/posix/fallocate64.c: New file.
5090         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
5091         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
5092         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
5093         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
5094         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5095         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
5096         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5097         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5098         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5100         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
5101         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5103 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
5105         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
5106         * misc/sys/mman.h (posix_madvise): Add prototype.
5107         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
5108         old name and posix_madvise weak aliases.
5109         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5110         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
5111         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5112         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5113         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5114         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
5115         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5117 2000-04-13  Andreas Jaeger  <aj@suse.de>
5119         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
5120         versioning.
5121         (elf_machine_got_rel): Only add runtime display if needed.
5122         (elf_machine_got_rel): Handle symbol versioning.
5124 2000-04-13  Andreas Jaeger  <aj@suse.de>
5126         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
5128         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
5129         default.
5131         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
5132         with some applications.
5133         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
5135         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
5136         * sysdeps/mips/bsd-_setjmp.S: Likewise.
5137         * sysdeps/mips/setjmp.S: Likewise.
5139         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
5141 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
5143         * posix/globtest.sh: Work around inconsistency with expanding ~/
5144         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
5146 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
5148         * posix/getconf.c: Add support for many more POSIX options.
5149         * sysdeps/posix/sysconf.c: Likewise.
5150         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
5151         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
5152         _POSIX_SHELL.
5153         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5154         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
5155         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
5156         CLOCK_THREAD_CPUTIME_ID.
5157         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
5158         CLOCK_PROCESS_CPUTIME_ID.
5159         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
5160         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
5161         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
5162         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
5164         * malloc/Makefile (tests): Add tst-calloc.
5165         * malloc/tst-calloc.c: New file.
5167         * sysdeps/arm/libm-test-ulps: New file.
5169         * malloc/malloc.c: Undo all of today's changes.
5171         * locale/programs/locale.c (show_info): Don't try to look into
5172         data for LC_ALL (there is none).
5174         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
5175         avoid writing over boundary.
5176         Patch by Greg McGary <gkm@eng.ascend.com>.
5178         * sysdeps/arm/memprof.h: New file.
5180 2000-04-12  Andreas Jaeger  <aj@suse.de>
5182         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
5184         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
5185         for memmem declaration.
5187 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
5189         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
5190         to -1.
5191         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
5193         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
5194         mode is invalid.
5195         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
5196         Patch by Bart Veer <bartv@redhat.com>.
5198         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
5199         function interface.
5201 2000-04-11  Andreas Jaeger  <aj@suse.de>
5203         * sysdeps/mips/dl-machine.h: Update some comments.
5204         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
5206 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5208         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
5209         _POSIX_SHARED_MEMORY_OBJECTS.
5211         * rt/Makefile (tests): Add tst-shm.
5212         Add rules to generate tst-shm.
5213         * rt/tst-shm.c: New file.
5215         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
5216         for descriptor.
5218         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
5219         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
5220         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
5221         * sysdeps/generic/shm_open.c: New file.
5222         * sysdeps/generic/shm_unlink.c: New file.
5223         * sysdeps/unix/sysv/linux/shm_open.c: New file.
5224         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
5225         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
5226          __endmntent, __getmntent_r, __setmntent, and __statfs.
5228         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
5229         fragmentation by allocating new memory at the end instead of
5230         reallocating.
5232         * posix/globtest.sh: Fix last change.
5234 2000-04-10  Philip Blundell  <philb@gnu.org>
5236         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
5237         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
5238         IPV6_DROP_MEMBERSHIP.
5239         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
5240         Likewise.
5242 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5244         * elf/readlib (process_file): Close streams in case of an error.
5246 2000-04-09  Andreas Jaeger  <aj@suse.de>
5248         * elf/readlib.c (process_file): Check if file is big enough to
5249         contain aout and ELF headers.
5250         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
5252 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
5254         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
5256 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5258         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
5259         stream unbuffered.
5260         * rt/Makefile (tests): Add tst-clock.
5261         Add rules to build tst-clock.
5262         * rt/tst-clock.c: New file.
5263         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
5264         about initialization of nsec.
5265         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
5266         about initialization of freq.  Set retval to zero if successful.
5267         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
5269 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
5271         * Versions.def (librt): Add GLIBC_2.2.
5272         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
5273         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
5274         timer_getoverr, timer_gettime, and timer_settime.
5275         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
5276         clock_settime, timer_create, timer_delete, timer_getoverrun,
5277         timer_gettime, and timer_settime.
5278         * sysdeps/generic/clock_getcpuclockid.c: New file.
5279         * sysdeps/generic/get_clockfreq.c: New file.
5280         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
5281         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
5282         * sysdeps/mach/hurd/i386/bits/time.h: New file.
5283         * sysdeps/unix/i386/i586/clock_getres.c: New file.
5284         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
5285         * sysdeps/unix/i386/i686/Implies: New file.
5286         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
5287         * time/Makefile (routines): Move clock_getres, clock_gettime,
5288         clock_settime, timer_create, timer_delete, timer_getoverr,
5289         timer_gettime, and timer_settime to rt/Makefile.
5290         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
5291         clock_settime, timer_create, timer_delete, timer_getoverrun,
5292         timer_gettime, and timer_settime.
5293         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
5295         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
5296         and not const as attribute name.
5298 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
5300         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
5302 2000-04-10  Andreas Schwab  <schwab@suse.de>
5304         * posix/globtest.sh: Skip tests that depend on unreadable
5305         directories if run as root.
5307 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
5309         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
5310         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
5312 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
5314         * sysdeps/unix/clock_gettime.c: New file.
5315         * sysdeps/unix/clock_settime.c: New file.
5316         * sysdeps/posix/clock_getres.c: New file.
5318         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
5320         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
5321         lseek call be passing in a buffer which never allow a successful
5322         first getdents syscall if not at leas the initial entry can be
5323         stored in the user buffer.
5325         * localedata/Makefile: Add rules to clean up directories created by
5326         new strfmon tests.
5328 2000-04-09  Geoff Clare  <gwc@unisoft.com>
5330         * localedata/tst-fmon.data: Added new tests for strfmon()
5331         using test locales with all combinations of cs_precedes,
5332         sign_posn and sep_by_space.
5333         * localedata/tst-fmon.sh: Updated to support the new tests.
5334         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
5335         the localedef source for the new strfmon() test locale.
5336         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
5337         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
5338         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
5339         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
5340         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
5341         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
5342         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
5343         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
5344         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
5345         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
5346         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
5347         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
5348         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
5349         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
5351         * stdlib/strfmon.c: Correct problems with missing or extra
5352         spaces for unusual combinations of sign_posn and sep_by_space.
5353         Improved left-precision alignment code.
5355 2000-04-07  Andreas Jaeger  <aj@suse.de>
5357         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
5359 2000-04-10  Andreas Jaeger  <aj@suse.de>
5361         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
5363 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
5365         Implement handling of restartable conversion functions according to
5366         ISO C.
5367         * iconv/gconv.h (__gconv_fct): Add additional parameter.
5368         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
5369         * iconv/gconv.c: Pass additional parameter to conversion function.
5370         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
5371         (internal_ucs4le_loop_single): New function.
5372         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
5373         (__gconv_transform_internal_ascii): Likewise.
5374         (__gconv_transform_internal_utf8): Likewise.
5375         (__gconv_transform_utf8_internal): Likewise.
5376         (__gconv_transform_ucs2_internal): Likewise.
5377         (__gconv_transform_internal_ucs2): Likewise.
5378         (__gconv_transform_ucs2reverse_internal): Likewise.
5379         (__gconv_transform_internal_ucs2reverse): Likewise.
5380         (internal_ucs4le_loop_unaligned): Before return
5381         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
5382         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
5383         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
5384         * iconv/loop.c: Fit in definition of function to convert one character
5385         for processing of left-over bytes from the state object.
5386         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
5387         inend to match names in loop functions.
5388         (RESET_INPUT_BUFFER): Change apprpriately.
5389         (gconv): If needed, call function to process bytes from the state
5390         object.  Similar at the end: store left over bytes if input is
5391         incomplete.
5392         Take extra argument and add new argument to all calls of the
5393         conversion function.
5394         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
5395         information in the state object to not conflict with length count.
5396         * iconvdata/iso-2022-jp.c: Likewise.
5397         * iconvdata/iso-2022-kr.c: Likewise.
5398         * iconvdata/unicode.c: Adjust for change change in parameters of
5399         skeleton function.
5400         * iconvdata/utf-16.c: Likewise.
5401         * libio/iofwide.c: Add new parameter to all calls of conversion
5402         function.
5403         * wcsmbs/btowc.c: Likewise.
5404         * wcsmbs/mbrtowc.c: Likewise.
5405         * wcsmbs/mbsnrtowcs.c: Likewise.
5406         * wcsmbs/mbsrtowcs.c: Likewise.
5407         * wcsmbs/wcrtomb.c: Likewise.
5408         * wcsmbs/wcsnrtombs.c: Likewise.
5409         * wcsmbs/wcsrtombs.c: Likewise.
5410         * wcsmbs/wctob.c: Likewise.
5412         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
5413         MAX_NEEDED_INPUT.
5415 2000-04-07  Andreas Jaeger  <aj@suse.de>
5417         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
5418         newer kernels.
5420 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
5422         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
5423         element a union to allow byte access.
5424         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
5425         mbstate_t.
5426         * iconvdata/iso-2022-jp.c: Likewise.
5427         * iconvdata/iso-2022-kr.c: Likewise.
5428         * wcsmbs/mbsinit.c: Likewise.
5429         * stdlib/mblen.c: Likewise.
5430         * stdio-common/printf-parse.h: Likewise.
5432 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
5434         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
5435         kernel does not allow relative seeks on descriptors associated
5436         with directories.  Go back to get the position in the directory
5437         every time we enter the function.  Return -1 and set errno if one
5438         entry could be read from the kernel but does not fit into the
5439         buffer passed in by the user.
5441         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
5442         Support ..(2).. ellipsis.
5443         (parse_charmap): Recognize ..(2).. etc and pass step down.
5444         Correctly generate names for UCS4 characters.
5446         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
5447         (ctype_finish): We know the wide character value for <SP>,
5448         don't search.
5449         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
5450         (charclass_ucs4_ellipsis): Likewise.
5451         (read_translit_ignore_entry): Store ellipsis step.
5452         (ctype_read): Recognize ..(2).. etc and pass step down.
5454         * locale/programs/linereader.c (lr_token): When seeing comment
5455         character ignore only rest of line in sources but stop at escaped
5456         newline.
5457         Recognize ..(2).. and ....(2).....
5459         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
5460         and tok_ellipsis4_2.
5462 2000-04-06  Andreas Jaeger  <aj@suse.de>
5464         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
5465         removed, remove it here also.
5466         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
5467         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
5468         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
5469         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
5471 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
5473         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
5474         include bits/sigcontext.h.
5475         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
5477 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
5479         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
5480         collation symbol definition.  Value in quivalence definition must
5481         be defined, don't check that it is not.
5483         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
5484         values as character names.
5486         * locale/programs/ld-ctype.c (get_character): Handle missing
5487         repertoire map correctly.
5489 2000-04-05  Cristian Gafton  <gafton@redhat.com>
5491         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
5492         because it is used in generic code.
5493         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
5494         * wcsmbs/wcwidth.h: Declare __ctype32_b.
5495         * intl/gettext.c: Include <locale.h>.
5496         * intl/ngettext.c: Likewise.
5498 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
5500         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
5501         socklen_t type for size.
5502         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
5503         init function interface.
5504         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
5505         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
5506         sys/ucontext.h.
5507         (__jmp_buf): Declare the whole type structure here, don't use
5508         ucontext.
5510 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
5512         * iconv/skeleton.c (put16u): Fix typo.
5513         Reported by Bruno Haible <haible@ilog.fr>.
5515         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
5516         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
5517         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
5518         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
5519         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
5520         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
5522         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
5523         * Makefile (distribute): Add abi-versions.awk and
5524         firstversions.awk.
5525         Patches by Torsten Duwe <duwe@caldera.de>.
5527 2000-04-05  Andreas Schwab  <schwab@suse.de>
5529         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
5531 2000-04-05  Andreas Schwab  <schwab@suse.de>
5533         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
5534         entry point, used on Hurd.
5536 2000-04-04  Andreas Jaeger  <aj@suse.de>
5538         * intl/Makefile: Only run the gettext test with shared libraries.
5540 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
5542         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
5543         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
5545 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
5547         * Makeconfig: Undo last change.
5548         * configure.in: If --disable-shared was given, don't set VERSIONING,
5549         don't define DO_VERSIONING, and don't give scare warning for no
5550         versioning.
5551         * configure: Regenerated.
5553 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
5555         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
5557 2000-04-04  Andreas Jaeger  <aj@suse.de>
5559         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
5561 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
5563         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
5564         STV_HIDDEN and STV_INTERNAL during lookup.
5565         (profile_fixup): Likewise.
5566         * elf/dl-reloc.c (RESOLVE): Likewise.
5568         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
5569         unaligned so that it compiles for system which need unaligned
5570         access handling.
5572 2000-04-04  Andreas Schwab  <schwab@suse.de>
5574         * elf/cache.c (print_entry): Only look at the type field when
5575         printing the type.
5577 2000-04-04  Andreas Schwab  <schwab@suse.de>
5579         * iconvdata/big5.c (BODY): Fix typo.
5581 2000-04-04  Andreas Schwab  <schwab@suse.de>
5583         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
5584         function interface.  Remove unused _dl_start_user entry point.
5586 2000-04-03  Andreas Jaeger  <aj@suse.de>
5588         * include/arpa/inet.h (__inet_aton): Add protoype.
5590 2000-04-01  Andreas Jaeger  <aj@suse.de>
5592         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
5594         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
5595         * sysdeps/mach/mips/thread_state.h: Likewise.
5597         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
5598         * sysdeps/generic/fegetenv.c: Likewise.
5599         * sysdeps/generic/fesetenv.c: Likewise.
5600         * sysdeps/generic/feupdateenv.c: Likewise.
5601         * sysdeps/generic/fraiseexcpt.c: Likewise.
5602         * sysdeps/generic/fsetexcptflg.c: Likewise.
5603         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
5604         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
5605         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
5606         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5608 2000-04-02  H.J. Lu  <hjl@gnu.org>
5610         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
5612 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
5614         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
5615         (add_name_to_object): Add cast in malloc call.
5616         (fillin_rpath): Optimize loop to initialize ->status a bit.
5618         * sysdeps/i386/dl-machine.h: Undo last change.
5619         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
5620         Restore %edx register after call here.
5622         * sysdeps/arm/atomicity.h: New file.
5623         Contributed by Jesper Skov <jskov@redhat.com>.
5625 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
5627         * Makeconfig (preprocess-versions): Undo last change.
5628         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
5630         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
5631         here, before we might move the stack.
5632         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
5633         (init1): And not here.
5635         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
5636         change, to restore argc value in call-clobbered register after
5637         RTLD_START_SPECIAL_INIT, which will contain a call.
5639         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
5640         allocating and initializing L->l_initfini.
5642         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
5644 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
5646         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
5647         RUNPATH, RPATH, and LD_LIBRARY_PATH.
5648         (open_path): Change type of fourth parameter.  Make pointer to array
5649         of pointers.  Create variable dirs with original type.
5650         Track whether any directory for the object exists and if not,
5651         change *DIRSP to (void*) -1 to signal there is no such search path.
5652         (_dl_map_object): Change all calls of open_path.
5653         Rewrite decompose_rpath calls.
5655 2000-03-31  Andreas Schwab  <schwab@suse.de>
5657         * string/strfry.c: Declare STATE as array of char instead of int
5658         and do not initialize it (done by initstate_r).  Pass correct
5659         size.
5661 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
5663         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
5665         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
5666         instruction out of the code.
5668 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
5670         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
5671         element at this position.
5673         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
5674         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
5675         l_reldeps elements.
5676         * elf/dl-lookup.c (add_dependency): New function.
5677         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
5678         dynamically loaded object.
5679         (_dl_lookup_symbol_skip): Likewise.
5680         (_dl_lookup_versioned_symbol): Likewise.
5681         (_dl_lookup_versioned_symbol_skip): Likewise.
5682         * elf/dl-open.c: Don't define _dl_load_lock here...
5683         * elf/rtld.c: ...but here...
5684         * elf/dl-support.c: ...and here.
5685         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
5686         through relocation.
5687         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
5688         relocations.
5689         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
5690         anymore.
5691         * dlfcn/glrefmain.c: Add one more debug message.
5693         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
5694         command line.
5695         * Makerules (sysd-versions): Use ( ) instead of { }.
5697         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
5698         optimize for the non-debugging case.
5699         * elf/dl-lookup.c: Likewise.
5700         * sysdeps/generic/libc-start.c: Likewise.
5702 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
5704         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
5705         (init1): Don't initialize __environ here, since init already does it.
5706         (first_init): New function, broken out of _init.
5707         (_hurd_stack_setup): Use it.
5708         [SHARED] (_dl_init_first): New function, renamed from old _init.
5709         (init1) [SHARED]: Don't call posixland_init here.
5710         (posixland_init): Take ENVP arg, so signature is usual for initializer.
5711         [SHARED] (_init): Define as alias for posixland_init.
5712         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
5713         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
5714         RTLD_START_SPECIAL_INIT before calling initializers.
5715         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
5716         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
5717         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
5718         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
5720         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
5721         since we define the function with the name `tmpfile'.
5723         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
5724         * hurd/Versions: Likewise.
5726 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
5728         * elf/dl-runtime.c (fixup): Fix typo in comment.
5730         * resolv/netdb.h (getnameinfo): All length parameters are of type
5731         socklen_t.
5732         * inet/getnameinfo.c: Likewise.
5734 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
5736         * posix/unistd.h (socklen_t): Define if it has not yet happened.
5737         (gethostname): Change type of second parameter to socklen_t.
5738         * include/unistd.h (__gethostname): Change type of second
5739         parameter to socklen_t.
5740         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
5741         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
5742         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
5743         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
5744         Likewise.
5745         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
5746         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
5747         Allow definition elsewhere.
5748         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
5749         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5750         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
5751         * sysdeps/generic/bits/types.h: Define __socklen_t.
5752         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
5753         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
5754         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
5755         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
5756         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
5757         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
5758         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
5760         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
5761         (inet_lnaof): Likewise.
5762         (inet_netof): Likewise.
5763         (inet_network): Likewise.
5764         (inet_aton): Likewise.
5765         (inet_makeaddr): Change parameter types to in_addr_t.
5766         (inet_neta): Likewise.
5767         (inet_ntop): Change type of last parameter to socklen_t.
5768         (inet_aton): Only make available if __USE_MISC.
5769         (inet_neta): Likewise.
5770         (inet_net_ntop): Likewise.
5771         (inet_net_pton): Likewise.
5772         (inet_nsap_ntoa): Likewise.
5774         * inet/in.h: Define in_port_t type.
5775         Define in_addr_t type.
5776         (struct in_addr): Use in_addr_t in definition.
5777         (IN_CLASSA): Use cast to in_addr_t.
5778         (IN_CLASSB): Likewise.
5779         (IN_CLASSC): Likewise.
5780         (IN_CLASSD): Likewise.
5781         (IN_EXPERIMENTAL): Likewise.
5782         (IN_BADCLASS): Likewise.
5783         (INADDR_ANY): Likewise.
5784         (INADDR_BROADCAST): Likewise.
5785         (INADDR_NONE): Likewise.
5786         (INADDR_LOOPBACK): Likewise.
5787         (INADDR_UNSPEC_GROUP): Likewise.
5788         (INADDR_ALLHOSTS_GROUP): Likewise.
5789         (INADDR_ALLRTRS_GROUP): Likewise.
5790         (INADDR_MAX_LOCAL_GROUP): Likewise.
5791         (struct sockaddr_in): Use in_port_t for sin_port element.
5792         (struct sockaddr_in6): Use in_port_t for sin6_port element.
5793         Use uint8_t instead of u_int8_t.
5795         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
5796         Call __inet_aton instead of inet_aton.
5797         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
5799         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
5800         (innetgr): Likewise.
5801         (struct addrinfo): Use socklen_t for ai_addrlen element.
5803         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
5804         IPV6_RECVERR): New defines.
5806         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
5807         * inet/getnetbyad.c: Likewise.
5808         * inet/getnetbyad_r.c: Likewise.
5809         * nis/nss_nis/nis-network.c: Likewise.
5810         * nis/nssplus_nis/nisplus-network.c: Likewise.
5811         * nss/nss_files/files-network.c: Likewise.
5812         * resolv/netdb.h: Define uint32_t if not already happened.
5813         Include bits/netdb.h.  Remove definition of struct netent.
5814         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
5815         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
5816         * sysdeps/generic/bits/netdb.h: New file.
5817         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
5819         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
5820         (tests): Add glrefmain.
5821         Add rules to build modules and run tests.  Ignore result of glrefmain
5822         for now since it fails.
5823         * dlfcn/glrefmain.c: New file.
5824         * dlfcn/glreflib1.c: New file.
5825         * dlfcn/glreflib2.c: New file.
5827         * test-skeleton.c: Include <string.h> for strsignal prototype.
5829         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
5830         to be missing.
5832         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
5833         former init-first.h.  Initialize __libc_multiple_libcs.
5835 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
5837         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
5838         #if expression for use of unaligned function to the one used in
5839         the definition of these functions.
5840         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
5841         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
5842         (internal_ucs4le_loop_unaligned): New function.
5844         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
5845         (tests): Add order.
5846         (module-names): Add dep1, dep2, dep3, and dep4.
5847         Add dependencies for dep* modules and order.
5848         Define rule for order.out which checks the result.
5849         * elf/dep1.c: New file.
5850         * elf/dep2.c: New file.
5851         * elf/dep3.c: New file.
5852         * elf/dep4.c: New file.
5853         * elf/order.c: New file.
5855         * elf/dl-init.c: Fix typo in comment.
5857 2000-03-31  Andreas Jaeger  <aj@suse.de>
5859         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
5860         init function interface.
5861         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
5863 2000-03-31  Andreas Jaeger  <aj@suse.de>
5865         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
5866         * sysdeps/mips/fpu/fegetenv.c: Likewise.
5867         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
5868         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
5869         * sysdeps/mips/fpu/fesetenv.c: Likewise.
5871         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
5872         anymore, update comment.
5874         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5876         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
5877         SHLIB_COMPAT - the struct is always needed.
5879 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
5881         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
5882         * elf/dl-support.c: Define _dl_starting_up.
5884 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
5886         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
5887         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
5889         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
5891         * elf/Makefile (dl-routines): Remove preinit.
5892         * elf/Versions: Remove _dl_preinit.
5893         * elf/dl-preinit.c: Removed.  Move content into...
5894         * elf/dl-init.c: ...here.
5895         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
5897         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
5898         elements.
5900 2000-03-29  Geoff Clare  <gwc@unisoft.com>
5902         * stdlib/strfmon.c: Corrected problems with the code that
5903         sets default values for [np]_sep_by_space and
5904         [np]_sign_posn; also the new positive/negative alignment
5905         code from the previous patch was not quite right for
5906         [np]_sign_posn = 0.
5908         * localedata/tst-fmon.data: Changes corresponding to the
5909         two sets of fixes made to stdlib/strfmon.c.
5911 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
5913         * malloc/malloc.c: Declare bit flags UL so that they will not
5914         default to int size when being inverted.
5916 2000-03-29  Andreas Jaeger  <aj@suse.de>
5918         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
5919         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
5921 2000-03-29  Andreas Jaeger  <aj@suse.de>,
5922             Ralf Baechle <ralf@uni-koblenz.de>
5924         * Makeconfig: Introduce new variable SHARED to mark code used in
5925         the shared library.
5926         * elf/dl-close.c: Use it instead of PIC.
5927         * elf/dl-load.c: Likewise.
5928         * elf/dl-open.c: Likewise.
5929         * hurd/geteuids.c: Likewise.
5930         * include/libc-symbols.h: Likewise.
5931         * include/shlib-compat.h: Likewise.
5932         * libio/freopen.c: Likewise.
5933         * linuxthreads/cancel.c: Likewise.
5934         * linuxthreads/pthread.c: Likewise.
5935         * linuxthreads/wrapsyscall.c: Likewise.
5936         * nss/nsswitch.c: Likewise.
5937         * stdio-common/vfprintf.c: Likewise.
5938         * sysdeps/arm/init-first.c: Likewise.
5939         * sysdeps/i386/init-first.c: Likewise
5940         * sysdeps/generic/init-first.c: Likewise.
5941         * sysdeps/generic/libc-start.c: Likewise.
5942         * sysdeps/mips/init-first.c: Likewise.
5943         * sysdeps/powerpc/elf/libc-start.c: Likewise.
5944         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5945         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
5946         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
5947         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5949         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
5951 2000-03-29  Andreas Jaeger  <aj@suse.de>
5953         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
5954         Use D_PTR to access relocated entries in l_info.
5955         (elf_machine_rela): Likewise.
5957         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
5958         Likewise.
5959         (elf_machine_rela): Likewise.
5961         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
5962         Likewise.
5963         (__elf_machine_fixup_plt): Likewise.
5964         (__process_machine_rela): Likewise.
5966         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
5967         (elf_machine_rela): Likewise.
5969         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
5970         (elf_machine_rel): Likewise.
5972         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
5973         (elf_machine_fixup_plt): Likewise.
5974         (elf_machine_rela): Likewise.
5976 2000-03-29  Andreas Jaeger  <aj@suse.de>
5978         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
5979         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5980         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5981         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5982         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
5983         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
5984         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
5985         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
5986         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5987         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
5988         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
5989         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
5990         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
5991         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
5992         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
5994         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
5995         macros, remove K&R prototypes.
5997 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
5999         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
6000         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
6001         (PR libc/1677).
6003 2000-03-30  Andreas Jaeger  <aj@suse.de>
6005         * misc/sys/cdefs.h: Remove K&R support.
6007 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6009         * iconv/skeleton.c: Avoid compiling unaligned versions in some
6010         more cases.
6011         * iconv/loop.c: Likewise.
6013 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
6015         * iconv/loop.c (put16): Remove __const. Fix access index.
6016         (put32): Remove __const. Use uint32_t instead of uint16_t.
6017         * iconv/skeleton.c: Likewise.
6019 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
6021         * mach/Versions (libc: GLIBC_2.0)
6022         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
6023         __vm_allocate on this.
6024         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
6025         mutex- and spinlock-related symbols on this.
6026         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
6027         New version set.  Lock-related symbols go here instead in this case.
6028         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
6029         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
6030         cthread_getspecific, cthread_setspecific, __libc_getspecific.
6031         * hurd/Versions
6032         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
6033         Put them here instead.
6034         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
6035         New version set.  Those cthreads symbols go here instead in this case.
6036         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
6038 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6040         * elf/dl-init.c (_dl_init): We don't need to call constructors
6041         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
6043         Implement dynamic determination of constructor/destructor order in
6044         the dynamic linker.
6045         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
6046         (GLIBC_2.2): Add _dl_init.
6047         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
6048         r_duplist is not anymore allocated separately.  l_initfini is and
6049         therefore free it if necessary.
6050         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
6051         malloc block.  Otherwise allocate l_initfini list only.
6052         Put dependencies for the object in l_initfini list.
6053         Sort dependencies for the object to be loaded topologically.
6054         * elf/dl-fini.c: Before running the destructors sort the topologically.
6055         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
6056         call constructors instead of iterating over the pointers.  Get list of
6057         objects for which to run constructors from l_initfini element. Accept
6058         argc, argv, and env as parameters and pass them to the constructors.
6059         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
6060         with size of dynamic section.
6061         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
6062         _dl_init_next and calling constructors ourself.
6063         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
6064         Take argc, argv, and env as parameters and pass them to the
6065         constructors.  Rewrite to call all constructors and not iterate over
6066         the pointers.
6067         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
6068         precompute l_initcount and l_preinitcount.
6069         * elf/link.h (struct link_map): Add l_ldnum member.
6070         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
6071         l_initcount, and l_preinitcount.  Add l_initfini.
6072         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
6073         one for _dl_init.
6074         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
6075         function interface.
6076         * sysdeps/unix/sysv/linux/init-first.h: Removed.
6077         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
6078         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
6079         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
6080         conventions now match.
6082         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
6083         effect for shared objects.  Don't emit message and call only for
6084         static library.
6086 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
6088         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
6089         CSA_Z243.4-1985-1..UCS2.
6090         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
6091         ISO-8859-10..UCS2.
6093 2000-03-29  Andreas Jaeger  <aj@suse.de>
6095         * include/unistd.h: Remove duplicate entry for __rmdir.
6096         Remove declaration of __mkdir since __mkdir is declared in
6097         sys/stat.h.
6099         * manual/creature.texi (Feature Test Macros): Fix typo, reported
6100         by Michael Deutschmann <michael@talamasca.ocis.net>.
6102         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
6103         * sysdeps/mips/fpu/fegetenv.c: Likewise.
6104         * sysdeps/mips/fpu/fesetenv.c: Likewise.
6105         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
6106         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
6108 2000-03-28  Andreas Jaeger  <aj@suse.de>
6110         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
6111         declaration, the prototype is defined via bits/mathcalls.h.
6112         (__sincosf): Likewise.
6113         (__sincosl): Likewise.
6114         (ldexp): Likewise.
6115         (ldexpf): Likewise.
6116         (ldexpl): Likewise.
6117         (__finite): Likewise.
6118         (__inline_mathcodeNP): New macro without prototype
6119         declarations.
6120         (__inline_mathcodeNP2): Likewise.
6121         (__inline_mathcodeNP3): Likewise.
6122         (__inline_mathcodeNP_): Likewise.
6123         (__inline_mathcodeNP2_): Likewise.
6124         (__inline_mathcodeNP3_): Likewise.
6125         (__inline_mathopNP): Likewise.
6126         (__inline_mathop_declNP): Likewise.
6127         (__inline_mathop_declNP_): Likewise.
6128         (__inline_mathcode_): Use __inline_mathcodeNP_.
6129         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
6130         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
6131         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
6132         (__expm1l): Don't define prototype, the prototype is defined via
6133         bits/mathcalls.h.
6134         (exp): Likewise.
6135         (__expl): Likewise.
6136         (tan): Likewise.
6137         (atan2): Likewise.
6138         (__atan2l): Likewise.
6139         (fmod): Likewise.
6140         (pow): Likewise.
6141         (fabsf): Likewise.
6142         (fabsl): Likewise.
6143         (__fabsl): Likewise.
6144         (asin): Likewise.
6145         (acos): Likewise.
6146         (sinh): Likewise.
6147         (cosh): Likewise.
6148         (tanh): Likewise.
6149         (floor): Likewise.
6150         (ceil): Likewise.
6151         (expm1): Likewise.
6152         (log1p): Likewise.
6153         (asinh): Likewise.
6154         (acosh): Likewise.
6155         (atanh): Likewise.
6156         (hypot): Likewise.
6157         (logb): Likewise.
6158         (fma): Likewise.
6159         (drem): Likewise.
6160         (sqrt): Likewise.
6161         (__sqrtl): Likewise.
6162         (sin): Likewise.
6163         (cos): Likewise.
6164         (atan): Likewise.
6165         (log): Likewise.
6166         (log10): Likewise.
6167         (asinh): Likewise.
6168         (log2): Likewise.
6169         (rint): Likewise.
6171 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
6173         * Makerules: If make variable md5 is defined to yes after
6174         generating dependencies generate MD5 sum for the object.
6176         * iconv/gconv_builtin.h: Fix length in transformation definition
6177         for UNICODEBIG.
6179         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
6181         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
6182         allow as well reading from/writing to unaligned addresses on machines
6183         which don't support this in hardware.  Use FCTNAME macro to define
6184         function name.  Include the file a second time for platforms which
6185         need special unaligned handling.
6186         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
6187         to access potentially unaligned addresses.  These macros are intended
6188         to be used only outside the loops.
6189         (unaligned): New definition.  In case the machine can handle unaligned
6190         access define as zero.  Otherwise as a variable which is initialized
6191         as nonzero in case the buffer passed in at runtime is unaligned with
6192         respect to the character set encoding involved.
6193         Call aligned or unaligned looop functions according to unaligned
6194         variable.
6195         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
6196         of direct casting pointer to potentially handle unaligned memory
6197         accesses.
6198         * iconvdata/8bit-generic.c: Likewise.
6199         * iconvdata/ansi_x3.110.c: Likewise.
6200         * iconvdata/big5.c: Likewise.
6201         * iconvdata/euc-cn.c: Likewise.
6202         * iconvdata/euc-jp.c: Likewise.
6203         * iconvdata/euc-kr.c: Likewise.
6204         * iconvdata/euc-tw.c: Likewise.
6205         * iconvdata/gbk.c: Likewise.
6206         * iconvdata/iso-2022-cn.c: Likewise.
6207         * iconvdata/iso-2022-jp.c: Likewise.
6208         * iconvdata/iso-2022-kr.c: Likewise.
6209         * iconvdata/iso646.c: Likewise.
6210         * iconvdata/iso_6937-2.c: Likewise.
6211         * iconvdata/iso_6937.c: Likewise.
6212         * iconvdata/johab.c: Likewise.
6213         * iconvdata/sjis.c: Likewise.
6214         * iconvdata/t.61.c: Likewise.
6215         * iconvdata/uhc.c: Likewise.
6216         * iconvdata/unicode.c: Likewise.
6217         * iconvdata/utf-16.c: Likewise.
6219         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
6220         prototypes.
6222         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
6223         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
6224         public.
6225         * malloc/mcheck.h (mcheck_check_all): Declare.
6227         * stdio-common/Makefile (tests): Add tst-obprintf.
6229 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
6231         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
6232         Declare pthread_sigmask.
6234         * csu/version.c: Add 2000 to copyright years.
6235         Remove Emacs local variables section.
6237 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
6239         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
6240         __gconv_transform_internal_ucs2little): Remove declarations.
6241         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
6242         __gconv_transform_internal_ucs2): Never need to bswap_16.
6243         (__gconv_transform_ucs2reverse_internal,
6244         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
6246 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
6248         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
6249         obsoleting version not being defined at all, in which case the
6250         result is always true.
6252         * Makeconfig (preprocess-versions): New canned sequence for running
6253         cpp on shlib-versions and the like.
6254         (soversions.i): Use it.
6255         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
6256         Versions.def and Versions files.
6258 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
6260         * stdio-common/tst-obprintf.c (main): Add another check to see
6261         obstack_printf handling all possible beginnings of the block
6262         inside an obstack chunk.
6264         * locale/programs/localedef.c: Use __malloc_initialize_hook to
6265         install mcheck handler.
6267         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
6268         handling problem.
6270 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
6272         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
6274         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
6275         on [HAVE_ELF && DO_VERSIONING].
6277 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
6279         * stdio-common/tst-obprintf.c: New file.
6281 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
6283         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
6284         _IO_OVERFLOW directly instead through __overflow.
6286         * locale/programs/localedef.c (construct_output_path): If path
6287         contains a / compute the end of the directory name correctly.
6289         * include/features.h: Undef and document __USE_XOPEN2K.
6291         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
6292         whenever a function is called.  Initiated by calling mcheck_pedantic
6293         instead of mcheck.
6294         * malloc/mcheck.h: Declare mcheck_pedantic.
6295         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
6296         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
6297         for now.
6299 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
6301         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
6302         * dlfcn/dlopenold.c: Likewise.
6303         * nss/getXXbyYY_r.c: Likewise.
6304         * nss/getXXent_r.c: Likewise.
6305         * hurd/hurdinit.c: Likewise.
6306         * hurd/compat-20.c: Likewise.
6307         * libio/oldiofopen.c: Likewise.
6308         * libio/oldiofclose.c: Likewise.
6309         * libio/oldiofdopen.c: Likewise.
6310         * libio/oldfileops.c: Likewise.
6311         * libio/oldstdfiles.c: Likewise.
6312         * libio/oldiofsetpos.c: Likewise.
6313         * libio/oldiofgetpos.c: Likewise.
6314         * libio/oldiofgetpos64.c: Likewise.
6315         * libio/oldiofsetpos64.c: Likewise.
6316         * libio/oldiopopen.c: Likewise.
6317         * libio/oldpclose.c: Likewise.
6318         * libio/oldtmpfile.c: Likewise.
6319         * libio/freopen.c (freopen): Likewise.
6320         * libio/iofclose.c (_IO_new_fclose): Likewise.
6322         * sysdeps/mach/sys/reboot.h: Include <features.h>.
6323         (reboot): Declare it.
6325         * libio/Makefile (headers): Add bits/stdio-lock.h here.
6327         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
6329         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
6331         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
6332         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
6333         We need this for the sbrk decl, which can be included without Unix98.
6335 2000-03-20  Richard Henderson  <rth@cygnus.com>
6337         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
6338         argument to yperr2nss is an int, not size_t.
6339         * posix/regex.c (print_partial_compiled_pattern): Cast all
6340         ptrdiff_t to long for printing.
6341         (print_compiled_pattern): Use Z for printing size_t.
6342         * posix/testfnm.c (tests): Avoid trigraphs.
6343         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
6344         Use a C comment, not an assembly comment.
6346         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
6347         of __ASSUME_32BITUIDS.
6349 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
6351         * libio/iofopncook.c: Remove K&R prototypes.
6353 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
6355         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
6356         an initial value of 1024 instead of RLIM_INFINITY.
6358         * Versions.def (libmachuser, libhurduser): Remove these sections,
6359         since these libraries do not presently use symbol versions.
6361         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
6362         is RLIM_INFINITY, return -1 instead.
6364 2000-03-24  Andreas Jaeger  <aj@suse.de>
6366         * Makefile (postclean): Added soversions.i.
6368 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
6370         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
6371         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
6372         and _FPU_IEEE.  Change _FPU_RESERVED.
6374 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
6376         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
6378 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
6380         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
6381         (gaih_inet): Remove unused duplicate variable.
6383         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
6384         Don't use __libc_sa_len, which only exists for Linux.  Just handle
6385         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
6386         only flavors supported by this function anyway.
6388 2000-03-24  Geoff Clare  <gwc@unisoft.com>
6390         * stdlib/strfmon.c: Corrected problems with missing signs and
6391         missing or extra spaces; allow for sign strings longer than
6392         one character; add padding to ensure positive and negative
6393         formats are aligned when a left precision is used.
6395 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
6397         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
6398         Patch by John Mizel <John.Mizel@msdw.com>.
6400 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
6402         * manual/install.texi: Remove references to crypt add-on.
6404 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
6406         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
6407         section while taking the _hurd_rlimit_lock.
6408         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
6410 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
6412         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
6413         using $(LN_S).
6415         * sysdeps/mach/hurd/if_index.c: New file.
6417         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
6418         * sysdeps/gnu/net/if.h: here.
6419         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
6420         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
6421         * sysdeps/generic/net/if.h: New file.  Declares just the standard
6422         functions and `struct if_nameindex' type.
6423         * socket/Makefile (headers): Add net/if.h here.
6424         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
6425         * sysdeps/mach/hurd/Dist: Remove it here.
6426         * sysdeps/unix/sysv/linux/Dist: And here.
6427         * sysdeps/generic/if_index.c: Include <net/if.h>.
6429 2000-03-24  Andreas Jaeger  <aj@suse.de>
6431         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
6432         access relocated entries in l_info.
6433         (elf_machine_got_rel): Likewise.
6434         (elf_machine_runtime_setup): Likewise.
6435         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
6436         (elf_machine_runtime_setup): Likewise.
6437         (__dl_runtime_resolve): Likewise.
6439 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
6441         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
6442         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
6443         according to RFC 2553.
6444         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
6445         * inet/getnameinfo.c: Likewise.
6446         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
6448 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
6450         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
6451         Remove no-op pointer increment.
6453 2000-03-23  Andreas Jaeger  <aj@suse.de>
6455         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
6456         follow change for libio.h from 2000-03-10.
6458 2000-03-23  Andreas Jaeger  <aj@suse.de>
6460         * elf/dl-addr.c: Adjust include paths for ldsodefs location
6461         change.
6462         * elf/dl-debug.c: Likewise.
6463         * elf/dl-deps.c: Likewise.
6464         * elf/dl-error.c: Likewise.
6465         * elf/dl-fini.c: Likewise.
6466         * elf/dl-init.c: Likewise.
6467         * elf/dl-load.c: Likewise.
6468         * elf/dl-lookup.c: Likewise.
6469         * elf/dl-minimal.c: Likewise.
6470         * elf/dl-object.c: Likewise.
6471         * elf/dl-open.c: Likewise.
6472         * elf/dl-preinit.c: Likewise.
6473         * elf/dl-profile.c: Likewise.
6474         * elf/dl-profstub.c: Likewise.
6475         * elf/dl-reloc.c: Likewise.
6476         * elf/dl-runtime.c: Likewise.
6477         * elf/dl-support.c: Likewise.
6478         * elf/dl-symbol.c: Likewise.
6479         * elf/dl-version.c: Likewise.
6480         * elf/rtld.c: Likewise.
6481         * elf/sprof.c: Likewise.
6482         * sysdeps/generic/dl-cache.c: Likewise.
6483         * sysdeps/generic/dl-origin.c: Likewise.
6484         * sysdeps/generic/dl-sysdep.c: Likewise.
6485         * sysdeps/generic/elf/backtracesyms.c: Likewise.
6486         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
6487         * sysdeps/generic/libc-start.c: Likewise.
6488         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6489         * sysdeps/powerpc/dl-machine.c: Likewise.
6490         * sysdeps/powerpc/elf/libc-start.c: Likewise.
6491         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6492         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6493         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6495         * elf/ldsodefs.h: Move file to ...
6496         * sysdeps/generic/ldsodefs.h: ... here.
6498         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
6500         * sysdeps/mips/elf/ldsodefs.h: New file.
6502         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
6503         entries in l_info.
6504         (_dl_check_map_versions): Likewise.
6505         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6506         * elf/dl-load.c (_dl_init_paths): Likewise.
6507         (_dl_map_object): Likewise.
6508         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
6509         (elf_get_dynamic_info): Likewise.
6510         * elf/do-lookup.h (FCT): Likewise.
6511         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
6512         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
6513         * elf/dl-addr.c (_dl_addr): Likewise.
6514         * elf/dl-runtime.c (profile_fixup): Likewise.
6515         (fixup): Likewise.
6516         * elf/dl-init.c (_dl_init_next): Likewise.
6517         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
6518         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
6519         (DISTINGUISH_LIB_VERSIONS): Likewise.
6520         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
6521         (elf_machine_rel): Likewise.
6523         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
6524         for writable dynamic section.
6526 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
6528         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
6529         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
6531 2000-03-22  Andreas Jaeger  <aj@suse.de>
6533         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
6534         from latest Linux kernel.
6536 2000-03-21  Andreas Jaeger  <aj@suse.de>
6538         * Versions.def: Add version 2.1.4.
6540 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
6542         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
6543         * libio/oldiofopen.c: Likewise.
6544         * libio/oldiofclose.c: Likewise.
6545         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
6547 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
6549         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
6550         indicating the first version set to obsolete the conditionalized code.
6551         (compat_symbol): New macro.
6552         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
6553         rhs be the ABI_* macro for the subsuming version.  Assign increasing
6554         integer values to the ABI_* macros for supported versions.
6555         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
6556         compat_symbol macro.
6558 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
6560         * nscd/connections.c (nscd_run): Pretty print.
6561         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
6563         * manual/charset.texi: Fix typos.  Rephrase.
6564         * manual/process.texi: Likewise.
6565         * manual/signal.texi: Likewise.
6566         Patches by Mike Coleman <mkc@kc.net>.
6568         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
6569         versions.
6570         * libio/iofdopen.c: Likewise.
6571         * libio/iofgetpos.c: Likewise.
6572         * libio/iofgetpos64.c: Likewise.
6573         * libio/iofopen.c: Likewise.
6574         * libio/iofsetpos.c: Likewise.
6575         * libio/iofsetpos64.c: Likewise.
6576         * libio/iopopen.c: Likewise.
6577         * libio/oldiofopen.c: Likewise.
6578         * libio/pclose.c: Likewise.
6579         * sysdeps/gnu/siglist.c: Likewise.
6580         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
6582         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
6583         chance to expand VERSION_##lib##_##version.
6585         * libio/fileops.c: Use new macros from shlib-compat.h to define
6586         versions.
6587         * libio/iofclose.c: Likewise.
6588         * libio/oldiofclose.c: Likewise.
6589         Patch by Roland McGrath <roland@frob.com>.
6591 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
6593         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
6594         Lay out struct sigcontext according to what really gets passed on
6595         the stack.
6596         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
6597         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
6598         (prgregset_t, prfpregset_t): Define to elf_* types.
6599         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
6600         Define to correct value.
6601         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
6602         sigcontext.
6603         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
6605 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
6607         * scripts/firstversions.awk: Allow multiple version sets in the
6608         "earliest version" specification, meaning that version sets in the
6609         gaps between listed versions should be folded into the earliest later
6610         version that is explicitly listed.
6611         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
6612         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
6614 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
6616         * iconv/gconv_builtin.c: Include <endian.h>.
6617         * iconv/gconv_builtin.h: Add UCS-BE aliases.
6618         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
6619         according to current platform.
6620         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
6621         __gconv_transform_internal_ucs2reverse, and
6622         __gconv_transform_internal_ucs4le.
6623         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
6624         __gconv_transform_ucs2reverse_internal and
6625         __gconv_transform_internal_ucs2reverse.
6626         * iconvdata/Makefile (modules): Add UNICODE.
6627         (distribute): Add unicode.c.
6628         * iconvdata/gconv-modules: Add definitions for UNICODE module.
6629         * iconvdata/unicode.c: New file.
6631         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
6632         determine byte order of input and convert accordingly.
6634         * iconvdata/utf-16.c (gconv_init): Fix typo.
6636 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
6638         * iconvdata/gconv-modules: Fix typo.
6640         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
6641         more messages.
6643         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
6645 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
6647         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
6649 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
6651         * misc/Makefile (routines): Add mincore.
6653 2000-03-20  Andreas Jaeger  <aj@suse.de>
6655         * sysdeps/generic/mincore.c: New stub file.
6657         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
6658         from latest Linux kernel.
6660 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
6662         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
6663         _SC_GETPW_R_SIZE_MAX.
6665 2000-03-20  Richard Henderson  <rth@cygnus.com>
6667         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
6668         in GLIBC_2.1.4.
6670 2000-03-20  Richard Henderson  <rth@cygnus.com>
6672         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
6673         of arithmetic instructions.
6675         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
6676         with the fpcr.  Protect from INV exception.
6677         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6678         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
6679         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6681         * sysdeps/alpha/fpu/s_copysign.c: New.
6682         * sysdeps/alpha/fpu/s_copysignf.c: New.
6683         * sysdeps/alpha/fpu/s_fabs.c: New.
6684         * sysdeps/alpha/fpu/s_fabsf.c: New.
6685         * sysdeps/alpha/fpu/s_rint.c: New.
6686         * sysdeps/alpha/fpu/s_rintf.c: New.
6688         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
6690         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
6691         Kill sethae.
6692         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
6693         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
6694         Use physical addresses not KSEG addresses.
6695         (io_system): Add PYXIS.
6696         (io): Remove hae.reg, sys, hae_shift.
6697         (stb_mb, stw_mb, stl_mb, __sethae): New.
6698         (inline_outb, inline_outw, inline_outl): Don't set hae.
6699         (inline_inb, inline_inw, inline_inl): Likewise.
6700         (dense_sethae): New null function.
6701         (struct cpuinfo_data): New.
6702         (process_cpuinfo): Use local and stack variables, not static.
6703         Move readlink check here from init_iosys.
6704         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
6705         (_iopl): Simplify.
6706         (_hae_shift): Calculate it here.
6707         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
6708         add pciconfig_iobase.
6710 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
6712         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
6713         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
6715         * scripts/versions.awk: Fixed version renaming code to distinguish
6716         libraries properly.
6718 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
6720         * include/stdlib.h: Add prototype for __cxa_atexit.
6722         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
6723         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
6725 2000-03-17  Cristian Gafton  <gafton@redhat.com>
6727         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
6728         existing rtld-installed-name.
6729         ($(rtld-installed-name)): Request libc-$(version) be installed too.
6730         replace existing rtld-installed-name using $(symbolic-link-prog).
6732 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
6734         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
6735         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
6736         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
6737         but not the former.
6739 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
6741         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
6742         glob64.  Since there is no glob64 in the LFS proposal applications
6743         can assume that glob handles LFS situations.  glob64 is only needed
6744         if alternative filesystem functions are used.
6746 2000-03-19  Geoff Clare  <gwc@unisoft.com>
6748         * sysdeps/generic/glob.c: Correct gl_pathc value returned
6749         when GLOB_DOOFFS is set; correct handling of patterns
6750         containing escaped wildcards (and no unescaped ones);
6751         GLOB_ERR flag was being ignored in some situations.
6753         * posix/globtest.c, posix/globtest.sh: Updated to include
6754         tests for the problems fixed by the above changes to glob.c.
6756         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
6758 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
6760         * Makeconfig (soversion.i): Use only first match for each lib.
6762         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
6764         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
6765         rather than $(sysd-dirs-done) to protect these rules.
6767         * Makerules (version-renames.def): Target removed.
6768         (Versions.all): Depend on soversions.i directly and parse it.
6770         * Makeconfig (soversions.i): New target, input-reading parts of
6771         soversions.mk generation moved here; result is a canonicalized
6772         list "LIB VERSION [SET]" for this configuration.
6773         (soversions.mk): Use that as input.  Don't emit map-firstversions.
6774         * Makerules (version-renames.def): New target, generated from
6775         soversions.i with contents that was in $(map-firstversions).
6776         (Versions.all): Don't depend on soversions.mk, depend on
6777         version-renames.def instead; just cat it into the input.
6779         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
6780         for $(map-firstversions), which better handles it being empty.
6782         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
6783         supported version for libc 0.2.90.libio to GLIBC_2.2.
6785         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
6786         and use it to emit new variable `map-firstversions'.
6787         * scripts/firstversions.awk: New file.
6788         * Makerules (Versions.all): Use scripts/firstversions.awk and
6789         the $(map-firstversions) value to generate a modified versions list
6790         that includes renames in "A = B" syntax for each version set earlier
6791         than the "earliest symbol version" named in shlib-versions.
6792         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
6793         rename version set A to B in the output to the intermediate file.
6794         * scripts/abi-versions.awk: New file.
6795         * Makerules (abi-versions.h): New target, generated by that script.
6796         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
6797         * include/shlib-compat.h: New file, uses that generated header.
6799 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
6801         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
6802         after stripping # comments, and then run it through cpp.
6803         This allows things like "%ifdef FOO" based on config.h settings.
6804         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
6806         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
6807         and other errors that indicate a pseudo-receive happened, grok through
6808         the message buffer for port rights that need references fixed up.
6810 2000-03-16  Andreas Jaeger  <aj@suse.de>
6812         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
6814         * sysdeps/unix/sysv/linux/madvise.c: Remove.
6816         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
6817         from latest Linux kernel.
6818         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
6820         * misc/sys/mman.h: Add prototype for mincore.
6822 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
6824         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
6825         entry for GLIBC_2.0 version of setrlimit.
6826         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
6828 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
6830         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
6831         * nis/nss_compat/compat-initgroups.c: Likewise.
6832         * nis/nss_nis/nis-initgroups.c: Likewise.
6833         * nis/nss_nis/nis-netgrp.c: Likewise.
6834         * nis/nss_nis/nis-proto.c: Likewise.
6835         * nis/nss_nis/nis-rpc.c: Likewise.
6836         * nis/nss_nis/nis-service.c: Likewise.
6837         * nis/ypclnt.c: Likewise.
6839 2000-03-16  Andreas Jaeger  <aj@suse.de>
6841         * manual/Makefile: MAKEINFO is set to `:' from configure if it
6842         doesn't exist, correct checks.  Fixes PR libc/1649.
6844 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
6846         * nscd/hstcache.c: Restore correct UID.
6847         * nscd/pwdcache.c: Likewise.
6848         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
6850 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
6852         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
6853         macros for register names, in line with 2000-03-14 linux change.
6855         * sysdeps/mach/sched_yield.c: New file.
6857 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
6859         * sysdeps/generic/lockfile.c: Include <stdio.h>
6860         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
6861         case <libio.h> defined them.
6862         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
6863         from __internal_*.
6864         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
6865         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
6867         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
6868         for more pleasing parse error.
6870 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
6872         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
6873         memory for eras.
6874         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
6876         * elf/Makefile: Add rules to compile and run constload1 test.
6877         * elf/constload1.c: New file.
6878         * elf/constload2.c: New file.
6879         * elf/constload3.c: New file.
6881 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
6883         * sysdeps/posix/open64.c: Make __open64 weak alias.
6884         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
6885         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6886         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
6887         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6888         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
6889         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
6890         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6891         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
6892         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6893         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
6895 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
6897         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
6898         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
6900 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
6902         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
6903         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
6905 2000-03-08  Andreas Jaeger  <aj@suse.de>
6907         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
6909 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
6911         * timezone/africa: Update from tzdata2000d.
6912         * timezone/asia: Likewise.
6913         * timezone/australasia: Likewise.
6914         * timezone/europe: Likewise.
6915         * timezone/northamerica: Likewise.
6916         * timezone/southamerica: Likewise.
6918         * po/fr.po: Update from translation team.
6919         * po/de.po: Likewise.
6921         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
6922         last parameter.  Move code to add map to global scope from here...
6923         * elf/dl-open.c (dl_open_worker): ...here.
6924         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
6925         * elf/rtld.c: Adjust call to _dl_map_object_deps.
6927         * locale/programs/ld-collate.c (collate_read): Fix warning.
6929         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
6930         values and macros for register names.
6932         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
6933         returned by seek cookie function is -1.
6935 2000-03-14  Andreas Jaeger  <aj@suse.de>
6937         * locale/localeconv.c (localeconv): Fix typo.
6938         Reported by Andre Charbonneau <andrec@corel.com>.
6940 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
6942         * iconv/skeleton.c: Increment __invocation_counter in inner loop
6943         since modules depend on it counting the number of times the conversion
6944         function got called.
6946         * iconv/gconv_open.c: Optimize loop to setup step data structure.
6948         * iconv/gconv.h: Pretty print.
6950 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
6952         * posix/wordexp-test.c: Correct one of the tests added in the last
6953         change.  Really get the root passwd entry to check again ~root.
6955 2000-03-10  Andreas Jaeger  <aj@suse.de>
6957         * manual/filesys.texi (Working Directory): Fix last patch.
6958         Patch by Martin Buchholz  <martin@xemacs.org>.
6960 2000-03-10  Andreas Jaeger  <aj@suse.de>
6962         * manual/creature.texi (Feature Test Macros): Fix language.
6964 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
6966         * mach/devstream.c (devstream_write, devstream_read): New functions.
6967         (input, output): Functions removed.
6968         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
6969         using only the vanilla fopencookie interface.
6971         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
6972         as macro for __io_functions.
6973         (funcsio): Use cookie_io_functions_t type name.
6974         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
6976         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
6977         fopencookie.
6978         (fopencookie): Use it.
6979         * libio/libio.h: Declare _IO_cookie_init.
6980         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
6981         _IO_cookie_init.
6983         * libio/libio.h (__io_seek_fn): Fix second argument type
6984         to be a pointer, in line with the manual and the old stdio.
6985         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
6987         * sysdeps/generic/bits/stdio-lock.h: New file.
6988         This is a stub with #error, but that's better than no file at all.
6990 2000-03-09  Martin Buchholz  <martin@xemacs.org>
6992         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
6993         * manual/message.texi (Using gettextized software): Doc Fixes.
6994         * manual/message.texi (Message Translation): Doc Fixes.
6995         * manual/filesys.texi (File Size): Doc Fixes.
6996         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
6997         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
6998         * iconv/gconv_db.c (find_derivation): Doc Fixes.
6999         * manual/install.texi: Doc Fixes.
7000         * manual/search.texi (Hash Search Function): Doc Fixes.
7001         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
7002         * FAQ.in: Doc Fixes.
7003         * config.h.in: Doc Fixes.
7004         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
7005         Doc Fixes.  `allows to' is not correct English.
7007         * elf/rtld.c: Doc fixes.
7008         * manual/creature.texi (Feature Test Macros): Doc fixes.
7009         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
7011         * manual/filesys.texi (Working Directory): Check for ERANGE to
7012         avoid infloop.
7014 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
7016         * string/argz-stringify.c (__argz_stringify): Fix loop termination
7017         conditions so as not to clobber the final '\0' when there is only one
7018         element in the vector.
7020 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
7022         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
7023         broken by 2000-02-27 change.
7025         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
7027 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
7029         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
7030         argument type, for 2000-02-22 change in signal/signal.h declaration.
7032 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
7034         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
7035         to getdirentries64 (no __), since the Linux implementation
7036         has no __ name, and there is no declaration for the __ name.
7038         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
7040         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
7041         sed regexp so as not to break directory names including /../ within.
7043         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
7044         The sysdeps/generic file is right for BSD.  This file was in fact the
7045         Hurd file, but the only difference was the WNOREAP flag that was never
7046         actually implemented or used anywhere.
7048         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
7049         since AC_PATH_PROG already does it for us.
7050         (PERL): Rewrite check added in 2000-02-29 change for syntactic
7051         correctness and sh portability.  I replaced the broken check
7052         with a more sensible implementation of the apparently intended
7053         semantics, which might still be questionable.  Using expr causes
7054         a non-numeric value for `perl -V:apiversion` to be accepted,
7055         refusing to use only a perl that reports a number less than 5;
7056         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
7057         * configure: Regenerated.
7059 2000-03-08  Andreas Jaeger  <aj@suse.de>
7061         * manual/crypt.texi: Fix paths.
7063 2000-03-07  Andreas Jaeger  <aj@suse.de>
7065         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
7066         were swapped.
7067         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
7068         libc/1636.
7070 2000-03-06  Andreas Jaeger  <aj@suse.de>
7072         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
7073         in __sgn1l, otherwise g++ fails to parse this.
7074         Reported by Sean Chen <sean.chen@turbolinux.com>.
7076 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
7078         * configure.in: Compute sizeof-long-double.
7079         * configure: Regenerated.
7080         * config.make.in: Make sizeof-long-double available to sub-makes.
7082 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
7084         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
7085         call.
7087 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
7089         * Makeconfig (rpath-dirs): Add crypt.
7090         (all-subdirs): Remove md5crypt.
7091         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
7092         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
7093         * sysdeps/generic/crypt-entry.c: Delete.
7094         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
7095         * sysdeps/generic/crypt.h: Delete.
7096         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
7097         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
7098         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
7099         * sysdeps/generic/des_impl.c: Delete.
7100         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
7101         * crypt/sysdeps: Delete.
7102         * crypt/crypt_util.c: Don't use `patchlevel.h'.
7103         * md5-crypt/Versions: Move to crypt/.
7104         * md5-crypt/md5-crypt.c: Move to crypt/.
7105         * md5-crypt/md5.c: Move to crypt/.
7106         * md5-crypt/md5c-test.c: Move to crypt/.
7107         * md5-crypt/md5test.c: Move to crypt/.
7108         * md5-crypt: Delete.
7109         * crypt/Makefile: Adjust for new structure.
7111 2000-03-03  Paul Eggert  <eggert@twinsun.com>
7113         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
7114         define to 1 if not defined.
7116 2000-03-03  Andreas Jaeger  <aj@suse.de>
7118         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
7120 2000-03-03  Andreas Jaeger  <aj@suse.de>
7122         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
7123         cases.
7124         (xdr_int64_t): Correctly handle lower half.
7125         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
7127 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
7129         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
7130         call.
7132 2000-03-02  Andreas Jaeger  <aj@suse.de>
7134         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
7135         2.3.43.
7137 2000-03-02  Andreas Jaeger  <aj@suse.de>
7139         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
7141 2000-03-01  Andreas Jaeger  <aj@suse.de>
7143         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
7144         (tests): Added tst-getdate.
7146         * time/tst-getdate.c: New file.
7148         * time/datemsk: New file, needed for tst-getdate.
7150 2000-02-29  Cristian Gafton  <gafton@redhat.com>
7152         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
7154 2000-02-17  H.J. Lu  <hjl@gnu.org>
7156         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
7158         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
7159         available.
7160         (svcudp_recv): Set up message with the new "xp_pad" field for
7161         IP_PKTINFO.
7162         (svcudp_reply): Support IP_PKTINFO if available.
7164 2000-03-01  Andreas Jaeger  <aj@suse.de>
7166         * time/getdate.c (check_mday): Fix check for february.
7167         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
7168         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
7170 2000-03-02  Andreas Jaeger  <aj@suse.de>
7172         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
7173         g++ fails to parse this.
7174         Reported by Sean Chen <sean.chen@turbolinux.com>.
7176 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
7178         * io/creat.c: Moved to...
7179         * sysdeps/generic/creat.c: ...here.
7180         * io/creat64.c: Moved to...
7181         * sysdeps/generic/creat64.c: ...here.
7182         * io/lockf.c: Moved to...
7183         * sysdeps/generic/lockf.c: ...here.
7185         * crypt/crypt.texi: Moved to...
7186         * manual/crypt.texi: ...here.
7187         * crypt/examples/genpass.c: Moved to...
7188         * manual/examples/genpass.c: ...here.
7189         * crypt/examples/mygenpass.c: Moved to...
7190         * manual/examples/mygenpass.c: ...here.
7191         * crypt/examples/testpass.c: Moved to...
7192         * manual/examples/testpass.c: ...here.
7194         * manual/Makefile (chapters): Add crypt.
7195         * manual/conf.texi: Add usual header for not-last chapter.
7196         * manual/crypt.texi: Add special header for last chapter.
7198 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
7200         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
7201         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
7202         complain if there is no crypt add-on.
7203         * crypt/configure: Removed.
7205         * crypt/crypt.texi: Update documentation of US export restrictions
7206         to match the 14 Jan 2000 regulations.
7208 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
7210         * crypt: New subdirectory, merged in from the crypt add-on.
7212 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
7214         * include/unistd.h: Add __rmdir and __mkdir prototypes.
7217 See ChangeLog.10 for earlier changes.