Update.
[glibc.git] / ChangeLog
blob1d4b79fd8cefb49552c76ce110880622122b9daf
1 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
4         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
5         leading and trailing spaces from host, user and domain name.
7 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
9         * csu/defs.awk: Add support for need_endp.
11 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
13         * resolv/resolv.h: Remove __P from res_send_qhook and
14         res_send_rhook typedefs.
16 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
18         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
20 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
22         * iconv/gconv_builtin.h: Add WCHAR_T alias.
24 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
26         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
27         calling thread, set the cancellation flag and return success
28         instead of EINTR.
30 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
32         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
33         * libio/tst-widetext.c: New file.
34         * libio/tst-widetext.input: New file.
36         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
38         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
39         empty external buffer correctly.
41 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
43         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
44         __STRING(entry) and not #entry.
45         (_RTLD_EPILOGUE): Likewise.
46         * sysdeps/mips/mips64/dl-machine.h: Likewise.
48 2000-07-25  Andreas Jaeger  <aj@suse.de>
50         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
51         according to changes in test program, run also with static only
52         builds.
53         ($(objpfx)tst-printf.out): Likewise.
55         * stdio-common/tst-unbputc.sh: Likewise.
56         * stdio-common/tst-printf.sh: Likewise.
58 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
60         * libio/wfileops.c (_IO_wdo_write): Correct return value.
62         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
63         loop.
65         * libio/fileops.c: Pretty print.
67 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69         * wctype/wchar-lookup.h: New file.
70         * wctype/iswctype.c: Include "wchar-lookup.h".
71         (__iswctype): Support alternate locale format with 3-level tables.
72         * wctype/iswctype_l.c (__iswctype_l): Likewise.
73         * wctype/towctrans.c (__towctrans): Likewise.
74         * wctype/towctrans_l.c (__towctrans_l): Likewise.
75         * wctype/wcfuncs.c: Include "wchar-lookup.h".
76         (__ctype32_wctype, __ctype32_wctrans): Declare external.
77         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
78         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
79         __iswxdigit, towlower, towupper): Support alternate locale format
80         with 3-level tables.
81         * wctype/wcextra.c (iswblank): Likewise.
82         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
83         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
84         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
85         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
86         format with 3-level tables.
87         * wctype/wcextra_l.c (__iswblank_l): Likewise.
88         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
89         format, return a 3-level table pointer.
90         * wctype/wctype_l.c (__wctype_l): Likewise.
91         * wctype/wctrans.c (wctrans): Likewise.
92         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
93         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
94         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
95         (iswctype): Remove macro definition.
96         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
97         (internal_wcwidth): Support alternate locale format with 3-level
98         tables.
99         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
100         New nl_items.
101         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
102         Define them as being type "word".
103         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
104         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
105         __ctype32_width): New exported variables.
106         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
107         alternate locale format. Don't initialize __ctype_names and
108         __ctype_width in the alternate locale format.
109         * locale/programs/localedef.h (oldstyle_tables): New declaration.
110         * locale/programs/localedef.c (oldstyle_tables): New variable.
111         (OPT_OLDSTYLE): New macro.
112         (options): Add --old-style option.
113         (parse_opt): Handle --old-style option.
114         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
115         map_offset, class_3level, map_3level, width_3level members.
116         (ctype_output): Support for alternate locale format: Computation of
117         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
118         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
119         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
120         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
121         now contain both class and map tables.
122         (struct wctype_table): New type.
123         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
124         functions.
125         (struct wcwidth_table): New type.
126         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
127         functions.
128         (struct wctrans_table): New type.
129         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
130         functions.
131         (allocate_arrays): Support for alternate locale format: Set
132         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
133         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
134         to the first 256 characters. Compute ctype->map_3level. Set
135         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
136         instead of ctype->width.
138 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
140         * libio/iogetwline.c (_IO_getwline_info): Use wide character
141         string functions.
143 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
145         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
146         in wide characters, not bytes.
147         * libio/tst_putwc.c (do_test): Add test for writing lots of data
148         into file.
150 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
152         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
153         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
154         LC_MEASUREMENT, LC_IDENTIFICATION.
156         * locale/xlocale.h (struct __locale_struct): Increase size of
157         __locales array.
158         * locale/duplocale.c (__duplocale): Copy newly added categories as
159         well.
160         * locale/freelocale.c (__freelocale): Free newly added categories.
161         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
162         If a base is given, use it, don't simply return it.
164 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
166         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
167         variables, copied_key and copied_salt, instead of boolean variables.
169 2000-07-24  Andreas Jaeger  <aj@suse.de>
171         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
172         check for offset.
174         * grp/initgroups.c (initgroups_dyn_function): Renamed from
175         initgroups_function, adopted prototype for change from 2000-07-23.
176         (initgroups): Follow type change.
178         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
179         & PAGE_MASK case, reformat.
181         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
182         from stdin and setup environment.
184 2000-07-24  Andreas Schwab  <schwab@suse.de>
186         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
188 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
190         * string/endian.h: Explain the _*_ENDIAN constant values a bit
191         more.  Patch by scarlet@mit.edu [PR libc/1799].
193         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
194         [PR libc/1792].
196         * argp/argp-parse.c (parser_finalize): Reverse order in which
197         parsers are run for ARGP_KEY_END.  [PR libc/1755].
199         * grp/initgroups.c (initgroups): Don't limit the possible number
200         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
201         the setgroups call while the call fails and descrease the number
202         of groups each round.
203         The name of the initgroups function in the NSS modules changed.
204         (compat_call): Adapt for dynamic resizing.
205         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
206         Implement dynamic resizing.
207         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
208         Likewise.
209         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
210         * hesiod/Versions: Change exported interface name.
211         * nis/Versions: Change exported interface name.
213 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
215         * locale/iso-639.def: Some errors corrected.
216         Patch by Keld Simonsen.
218         * include/limits.h: Update non-gcc portion.
219         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
221 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
223         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
224         program's data space, reallocate only the space that was just
225         deallocated to release its backing space.
227 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
229         * stdio-common/vfprintf.c (process_string_arg): For wide character
230         version, handle precision also correctly.
232         * nss/nss_files/files-hosts.c: Correct problem with three or more
233         entries with the same name.
235         * nss/nss_files/files-hosts.c: Implement multi handling.
236         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
238 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
240         * nss/nss_files/files-parse.c: Don't pollute namespace by using
241         strcasecmp.
243         * grp/Makefile: Change Makefiles and tests to run only when necessary.
244         * malloc/Makefile: Likewise.
245         * malloc/tst-mtrace.sh: Likewise.
246         * posix/Makefile: Likewise.
247         * posix/globtest.sh: Likewise.
248         * posix/wordexp-tst.sh: Likewise.
249         * string/Makefile: Likewise.
251 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
253         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
254         size instead of LC_ALL to take into account the new locale
255         categories.
257 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
259         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
260         remainders of hash table.
261         * locale/categories.def: Remove remainders of transliteration
262         hash table.
263         * locale/langinfo.h: Likewise.
264         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
265         transliteration tables.
267         * locale/gen-translit.pl: New file.
268         * locale/C-translit.h.in: New file.
269         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
270         data pointers with data from this file.
271         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
272         and gen-translit.pl.
273         Add rule to generate C-translit.h.
274         * intl/tst-translit.c (main): Update for now performed
275         transliteration.
277         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
278         (it's no input error).
279         * stdio-common/tstscanf.c: Add test case for format %f with input --.
280         * stdio-common/scanf12.c: Correct expected result for first scanf.
282         * stdio-common/vfprintf.c (process_string_arg): Correct handling
283         of multibyte character strings in %s format with precision.
285 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
287         * locale/programs/ld-collate.c (collate_read): Allow collating
288         symbols and elements be named in reorder-after instructions.
289         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
291         * locale/programs/ld-collate.c (handle_ellipsis): Test for
292         duplication with generated name, not the name of the first
293         character.
294         Patch by Yong Li <yong.li@asu.edu>.
296         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
297         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
299 2000-07-21  Wolfram Gloger  <wg@malloc.de>
301         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
302         allocations only if a non-main arena cannot be extended.
304 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
306         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
307         in DF_1_NODEFLIB handling.
309 2000-07-21  Andreas Jaeger  <aj@suse.de>
311         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
312         own rule.
314         * libio/fwide.c: Include <wchar.h> for prototype.
316 2000-07-21  Greg McGary  <greg@mcgary.org>
318         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
319         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
320         Define in terms of chunk_at_offset.
321         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
322         (next_bin, prev_bin): offset by size of real array elements.
323         (chunk_align): Make `m' a scalar, since that's how it's used.
325 2000-07-21  Greg McGary  <greg@mcgary.org>
327         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
328         UNCHECK_BOUNDS.
329         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
330         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
331         Wrap bounds around argv & envp and each of their string members.
332         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
333         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
334         symbol in BP_SYM ().  Discard bounds of address arg.
335         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
336         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
337         Discard bounds on address arg, add bounds to return value.
339 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
341         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
342         * elf/filter.c: New file.
343         * elf/filtmod1.c: New file.
344         * elf/filtmod2.c: New file.
346         * elf/rtld.c: Define _dl_bind_not variable.
347         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
348         * elf/dl-support.c: Likewise.
349         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
350         * elf/dl-runtime.c (fixup): Don't remember looked up value if
351         _dl_bind_not.
352         (profile_fixup): Likewise.
354         * libio/Makefile (routines): Add fwide.
355         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
356         fwide now.  Internal calls to _IO_fwide must do locking themselves
357         or don't need locking.
358         * libio/fwide.c: New file.
360         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
362         * elf/Makefile: Add no modules for nodelete test.
363         * elf/nodelmod3.c: New file.
364         * elf/nodelmod4.c: New file.
365         * elf/nodelete.c: Also test case where dependency of dlopen() object
366         is marked nodelete.
368         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
369         * elf/nodlopen.c: New file.
370         * elf/nodlopenmod.c: New file.
371         * include/dlfcn.h: Define __RTLD_DLOPEN.
372         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
373         and this is a dlopen() call, do not load the binary.
374         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
375         * dlfcn/dlopenold.c: Likewise.
376         * configure.in: Add test for -z nodelete option.
377         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
379 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
381         Make Hesiod NSS module thread-safe.
383         * hesiod/README.hesiod: Update.
385         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
386         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
387         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
388         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
389         hesiod-proto.
390         * hesiod/nss_hesiod/hesiod-init.c: New file.
391         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
392         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
393         * hesiod/nss_hesiod/nss_hesiod.h: New file.
394         * hesiod/nss_hesiod/hesiod-service.c
395         (_nss_hesiod_getservbyport_r): New function.  Provide support for
396         looking up services by port number.
397         * hesiod/nss_hesiod/hesiod-proto.c: New file.
399         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
400         * hesiod/hesiod.h: Likewise.
401         * hesiod/hesiod_p.h: Likewise.
403 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
405         Fix problems with `struct __res_state' getting too big.
406         * resolv/resolv.h (struct __sockaddr_in): New definition.
407         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
408         the private parts of the structure to save some space.
409         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
410         (struct sockaddr_in *) in call to sock_eq.
411         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
413 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
415         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
416         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
417         with nodelete.
418         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
419         to _dl_map_object.  Return immediately if no object loaded.
420         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
421         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
422         if it exists into l_flags_1 word.
423         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
424         it to determine whether loading is wanted or not.
425         (_dl_map_object): Likewise.
426         Call _dl_map_object_from_fd with new parameter.
427         * sysdeps/generic/ldsodefs.h: Update prototype.
428         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
429         * elf/rtld.c: Likewise.
430         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
431         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
432         * elf/noload.c: New file.
433         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
434         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
435         * sysdeps/mips/bits/dlfcn.h: Likewise.
436         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
437         (tests-nodelete-yes): Define.
438         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
439         Add rules to build nodelete and modules.
440         * elf/nodelete.c: New file.
441         * elf/nodelmod1.c: New file.
442         * elf/nodelmod2.c: New file.
443         * configure.in: Add test for -z nodelete option.
444         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
446         * libio/Makefile (tests): Add tst_wprintf2.
447         (tst_wprintf2-ARGS): Define.
448         * libio/tst_wprintf2.c: New file.
449         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
451         * libio/wfiledoalloc.c: Only allocate external buffer if this
452         hasn't happened yet.
454         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
455         something in the buffer.  gconv call can write up to end of the
456         buffer, not only _IO_write_end.
457         (_IO_wfile_overflow): Allocate also external buffer.
459 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
461         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
462         strings with precision in vfwprintf correctly.
463         * stdio-common/vfprintf.c: Fix completely broken handling of
464         unbuffered wide character streams.
465         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
467         * resolv/Makefile (distribute): Add README.
469         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
471 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
473         Update resolver code to BIND 8.2.3-T5B.
475         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
476         __res_nclose.
477         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
478         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
479         __res_search.
480         * resolv/Banner: BIND-8.2.3-T5B.
482         * resolv/base64.c: Update from BIND 8.2.3-T5B.
483         * resolv/herror.c: Likewise.
484         * resolv/inet_addr.c: Likewise.
485         * resolv/inet_net_ntop.c: Likewise.
486         * resolv/inet_net_pton.c: Likewise.
487         * resolv/inet_neta.c: Likewise.
488         * resolv/inet_ntop.c: Likewise.
489         * resolv/nsap_addr.c: Likewise.
490         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
491         IPv6 addresses (ISC bug #520).
493         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
494         * resolv/ns_parse.c: Likewise.
495         * resolv/ns_netint.c: Likewise.
496         * resolv/ns_samedomain.c: Likewise.
497         * resolv/ns_ttl.c: Likewise.
498         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
499         RCS ID in object file.
501         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
502         * resolv/res_mkquery.c: Likewise.
503         * resolv/res_query.c: Likewise.
504         * resolv/res_init.c: Likewise.
505         (res_setoptions): Mark internal.
506         * resolv/res_send.c: Likewise.
507         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
508         by using poll instead.
509         * resolv/res_comp.c: Likewise.
510         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
511         weak alias for __dn_expand.
512         * resolv/res_data.c: Likewise.
513         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
514         in _res.options.  Avoids a potential security risk by avoiding a
515         close (0).
516         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
517         res_mkquery, res_query, res_querydomain adn res_search weak
518         aliases for __res_mkquery, __res_query, __res_querydomain and
519         __res_search.
520         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
521         instead to avoid close(0).
522         (res_init): Always use the static resolver context.
523         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
524         alias for __res_init.
526         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
527         RES_SET_H_ERRNO and accompanying comment to...
528         * include/resolv.h: ... here.
530         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
531         * resolv/arpa/nameser_compat.h: Likewise.
533 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
535         * nss/makedb.c (main): Compare result of load_db with
536         NSS_STATUS_SUCCESS and not 0.
537         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
539         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
541 2000-07-18  Greg McGary  <greg@mcgary.org>
543         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
544         (EXTEND_BUFFER): Use it.
546 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
548         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
549         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
550         __builtin_return_address.
551         * dlfcn/dlopenold.c: Likewise.
552         * dlfcn/dlsym.c: Likewise.
553         * dlfcn/dlvsym.c: Likewise.
554         * elf/dl-profstub.c: Likewise.
555         * malloc/malloc.c: Likewise.
556         * sysdeps/generic/machine-gmon.h: Likewise.
557         Based on a patch by schwidefsky@de.ibm.com.
559 2000-07-18  Andreas Jaeger  <aj@suse.de>
561         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
562         NULL to elf_machine_fixup_plt t argument to silence GCC.
564         * include/string.h: Add prototype for __memchr.
566         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
568         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
569         instead of memrchr.
571 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
573         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
575         * locale/C-ctype.c: Add initializers for gap elements.
576         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
577         for gap elements.
579 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
581         * nscd/nscd.c (print_version): Update copyright year.
583 2000-07-17  Greg McGary  <greg@mcgary.org>
585         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
586         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
587         signature argnames with angle-brackets for use as word delimiters,
588         and to induce syntax errors for any args not handled.  Split
589         multi-echo echoes and comment each stage.
590         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
591         * sysdeps/unix/inet/syscalls.list: Likewise.
592         * sysdeps/unix/mman/syscalls.list: Likewise.
593         * sysdeps/unix/syscalls.list: Likewise.
594         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
595         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
596         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
597         * sysdeps/unix/sysv/syscalls.list: Likewise.
598         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
600         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
601         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
602         qualifiers.  Don't check NULL-terminator of argv & envp.
603         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
604         unbounded pointer type in word-size assertion.
605         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
606         cases to stifle warnings.
608         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
609         _IO_file_attach.
610         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
612         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
613         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
614         ptr as __unbouned.
616         * Makerules (o-objects): Supplement with $(o-objects$o).
617         * string/Makefile (o-objects.ob): Add variable to pull
618         unbounded versions of memcpy, memset and memchr into libc_b.
620         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
621         rather than non-existent __ubp_memchr.
622         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
623         (_CHECK_STRING, _CHECK_N): New macros.
624         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
625         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
626         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
627         Add weak alias "memchr".
628         * sysdeps/generic/memchr.c: Likewise.
629         * sysdeps/i386/memchr.S: Likewise.
630         * sysdeps/ia64/memchr.S: Likewise.
631         * sysdeps/m68k/memchr.S: Likewise.
632         * sysdeps/sparc/sparc32/memchr.S: Likewise.
633         * sysdeps/sparc/sparc64/memchr.S: Likewise.
634         * sysdeps/vax/memchr.s: Likewise.
636         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
638         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
639         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
640         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
641         __BOUNDED_POINTERS__.
642         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
643         for __BOUNDED_POINTERS__.
645 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
647         * iconv/gconv_open.c (__gconv_open): Initialize the __data
648         field of struct __gconv_trans_data differently.  Don't pass NULL to
649         trans_init_fct.  Simplify list append operation.
651 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
653         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
654         not only those having tsearch.
656 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
658         * locale/langinfo.h: Add placeholder values in enum for removed
659         LC_CTYPE entries.
661 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
663         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
664         chain if the PHDR check fails.
666 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
668         * nss/getent.c (print_hosts): Make sure we always print a space
669         between numeric addresses and hostnames.
671 2000-07-17  Wolfram Gloger  <wg@malloc.de>
673         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
674         i.e. if n_mmaps_max>0.
676 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
678         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
679         values to remove possible clash with other AI_* constants.
680         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
681         hexadecimal constants to stress the fact they're in fact
682         bit flags.
684 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
686         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
687         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
688         instead of res_init.
690 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
692         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
693         parameters of memset calls to avoid warnings.
695 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
697         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
698         necessary.
700         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
701         Patch by Greg McGary <greg@mcgary.org>.
703         * io/Makefile (tests): Add tst-getcwd.
704         * io/tst-getcwd.c: New file.
706         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
708 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
710         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
711         structure.
713 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
715         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
716         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
718 2000-07-12  H.J. Lu  <hjl@gnu.org>
720         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
721         GLIBC_2.2.
722         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
723         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
724         (sysdep-routines): Add clone2.
725         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
727 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
729         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
730         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
732 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
734         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
735         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
736         Change type of si_band from "int" to "long".
737         (si_imm) [USE_GNU]: Define
738         (si_isr) [USE_GNU]: Ditto.
739         (ILL_BREAK) [USE_GNU]: Ditto.
740         (FPE_DECOVF) [USE_GNU]: Ditto.
741         (FPE_DECDIV) [USE_GNU]: Ditto.
742         (FPE_DECERR) [USE_GNU]: Ditto.
743         (FPE_INVASC) [USE_GNU]: Ditto.
744         (FPE_INVDEC) [USE_GNU]: Ditto.
745         (TRAP_BRANCH) [USE_GNU]: Ditto.
746         (TRAP_HWBKPT) [USE_GNU]: Ditto.
748 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
750         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
751         bits/sigcontext as struct mcontext does not depend on it.
753         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
755 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
757         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
759 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
761         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
763 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
765         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
767 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
769         * intl/Makefile (test-srcs): Add tst-translit.
770         (tests): Likewise.
771         Add rules to build and run tst-translit.
772         * intl/tst-translit.c: New file.
773         * intl/tst-translit.sh: New file.
774         * intl/translit.po: New file.
776 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
778         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
779         transliteration function did its job, continue, don't stop.
781         * iconvdata/iso646.c: Little optimizations in body for conversion
782         from UCS4.
784 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
786         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
788 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
790         * configure.in: Check for pwd binary.
791         * config.make.in: Add PWD_P to be subsituted.
792         * Makerules: Use $(PWD_P) instead of /bin/pwd.
794 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
796         * iconvdata/Makefile (modules): Add GB18030.
797         (distribute): Add gb18030.c.
798         * iconvdata/gconv-modules: Add entries for GB18030 module.
799         * iconvdata/gb18030.c: New file.
800         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
801         and Wu Jian.
803 2000-07-13  Andreas Jaeger  <aj@suse.de>
805         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
806         patch.
808         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
809         * inet/getnetgrent.c (free_mem): Likewise.
810         * misc/mntent.c (free_mem): Likewise.
811         * nss/getXXbyYY.c (free_mem): Likewise.
812         * nss/getXXent.c (free_mem): Likewise.
813         * pwd/fgetpwent.c (free_mem): Likewise.
814         * shadow/fgetspent.c (free_mem): Likewise.
816 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
818         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
819         64-bit architecture correctly [PR libc/1794].
821 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
823         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
824         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
825         report that we are out of memory.
826         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
827         * elf/dl-libc.c (dlerror_run): Likewise.
828         * elf/dl-open.c (_dl_open): Likewise.
829         * elf/rtld.c (dl_main): Likewise.
830         * elf/dl-error.c: Define _dl_out_of_memory.
831         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
832         the error string.
833         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
834         [PR libc/1813].
836         * dlfcn/dlerror.c (free_key_mem): Also free error string.
838         * iconv/loop.c: Fix comment.
840         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
842 2000-07-13  Andreas Jaeger  <aj@suse.de>
844         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
845         getcwd (NULL, size) with size > 0.
846         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
848 2000-07-13  Andreas Jaeger  <aj@suse.de>
850         * posix/Makefile: Remove build rules for libposix.
852 2000-07-13  Andreas Schwab  <schwab@suse.de>
854         * sysdeps/generic/glob.c (glob): Fix memory leak.
855         [SHELL]: Remove reference to undefined variable `files'.
856         Fixes PR libc/1782.
858 2000-07-13  Andreas Jaeger  <aj@suse.de>
860         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
861         functions.
863         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
864         memory if it was allocated.
866 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
868         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
869         step.
871         * iconv/gconv_open.c (__gconv_open): Reapply
872         2000-07-12 Bruno Haible <haible@clisp.cons.org>
874                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
876         * iconv/gconv_open.c: Undo last two changes for now.  They break
877         everything.
879 2000-07-12  Andreas Jaeger  <aj@suse.de>
881         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
882         compiler.
883         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
884         (CFLAGS-dl-cache.c): Likewise.
885         (CFLAGS-ldconfig.c): Added, passes directory locations.
887         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
888         locate cache.
889         * elf/ldconfig.c (LD_SO_CONF): Likewise.
890         (main): Use configured LIBDIR and SLIBDIR.
892 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
894         * math/bits/cmathcalls.h (cimag): Add __THROW.
895         (creal, conj): Likewise.
896         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
897         by negative value.
899 2000-07-12  H.J. Lu  <hjl@gnu.org>
901         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
902         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
904 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
906         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
907         it is wrong.
909 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
911         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
913 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
915         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
916         __modname.
918 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
920         * iconv/gconv_open.c (__gconv_open): Initialize
921         result->__steps[cnt].__data.
923 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
925         * nss/getent.c (services_keys): Pass port number in network byte
926         order in call to getservbyport.
928 2000-07-11  Andreas Jaeger  <aj@suse.de>
930         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
931         source dir.
932         * intl/Makefile (do-gettext-test): Likewise.
933         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
935 2000-07-11  Andreas Schwab  <schwab@suse.de>
937         * Makeconfig (run-program-prefix): New rule.
938         (built-program-cmd): Use run-program-prefix.
940 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
942         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
943         and NOEXPR unconditionally available.
945 2000-07-12  Greg McGary  <greg@mcgary.org>
947         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
948         * sysdeps/posix/open64.c: Likewise.
949         * sysdeps/generic/fegetenv.c: Likewise.
950         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
951         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
952         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
953         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
954         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
955         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
957 2000-07-11  Greg McGary  <greg@mcgary.org>
959         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
960         Add extra level of macro expansion.
961         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
962         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
963         is available at the time `select' prototype is declared.
964         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
965         Collect non-versioned weak aliases.  Consider only non-versioned
966         aliases for the user-visible systemcall name.  Do checks inline with
967         call to primitive system call.
968         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
969         stand-alone bounds checks to suppress unused value warnings.
970         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
972 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
974         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
975         file descriptor checking in SUID programs for the Hurd.
977         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
978         res_hostalias instead of __hostalias for thread-safety.
980 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
982         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
983         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
985 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
987         * include/features.h: Include ISO C99 features if the compiler used
988         is an ISO C99 compiler.
989         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
991 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
993         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
995 2000-07-10  Andreas Jaeger  <aj@suse.de>
997         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
998         it's overridden by libpthreads.
999         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1000         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1001         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1002         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1003         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1005         * malloc/Makefile: Run tst-mtrace only with shared libs.
1007         * stdio-common/Makefile: Run unbputc and tst-printf tests only
1008         with shared libs.
1010 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1012         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
1013         that gpreg really points to the GOT section of the calling object.
1014         Scan all PT_LOAD segments of objects for stub_pc, instead of only
1015         checking a start address of first one.
1016         Fix typos.
1017         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
1018         Likewise.
1020         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
1022 2000-07-10  Andreas Jaeger  <aj@suse.de>
1024         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
1025         (string_alias->strong_alias).
1027 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
1029         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
1031 2000-07-07  Greg McGary  <greg@mcgary.org>
1033         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
1034         have no names without leading underscores.
1036 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1038         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
1039         U007E.
1041         * stdio-common/Makefile (tests): Remove tst-printf here...
1042         (tests-srcs): ...and add it here.
1043         (distribute): Add tst-unbputc.sh and tst-printf.sh.
1044         Add rules to run tst-printf.sh.
1045         * stdio-common/tst-printf.c: Move code around so that there is really
1046         no further output where it's stated.
1047         * stdio-common/tst-printf.sh: New file.
1049 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
1051         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
1052         (do_write): Renamed from pwrite.
1053         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
1054         `struct _IO_cookie_file'.
1056 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1058         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
1059         detected.
1060         * malloc/tst-mtrace.sh: Run mtrace script.
1062 2000-07-07  Greg McGary  <greg@mcgary.org>
1064         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
1065         Move all three components of a bounded pointer.
1067 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1069         * locale/programs/locale.c (write_locales): Don't simply add all
1070         directories found in the subdir, test whether at least the
1071         LC_CTYPE file is in there.
1073 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
1075         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
1076         * iconvdata/euc-kr.c: Likewise.
1078         * stdio-common/vfprintf.c (process_string_arg): Check result of
1079         wcrtomb call and bail out if it failed.
1081         * malloc/Makefile (test-srcs): Add tst-mtrace.
1082         (distribute): Add tst-mtrace.sh.
1083         Add rule to run tst-mtrace.sh.
1084         * malloc/tst-mtrace.c: New file.
1085         * malloc/tst-mtrace.sh: New file.
1087         * include/signal.h: Declare __libc_sigaction.
1088         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
1089         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
1090         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1091         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1092         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1093         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1094         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1096         * configure.in: Fix CFLAGS-memprofstat.c definition after
1097         2000-06-19 change.
1098         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
1100 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
1102         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
1103         instead of NULL to elf_machine_fixup_plt t argument.
1104         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1105         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
1106         cast.
1108 2000-07-06  Andreas Jaeger  <aj@suse.de>
1110         * crypt/Makefile (LDLIBS-cert): Removed.
1111         (LDLIBS-md5c-test): Removed.
1112         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
1113         ($(objpfx)md5c-test): Likewise for md5c-test.out.
1115 2000-07-06  Andreas Jaeger  <aj@suse.de>
1117         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
1118         of the proc system is "proc".
1120         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
1121         thread library for static programs.
1123 2000-07-06  Greg McGary  <greg@mcgary.org>
1125         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
1126         New macros.
1127         * sysdeps/generic/strcpy.c: Add bounds checks.
1128         * sysdeps/unix/fxstat.c: Likewise.
1129         * sysdeps/unix/xstat.c: Likewise.
1130         * sysdeps/unix/common/lxstat.c: Likewise.
1131         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1132         * sysdeps/unix/sysv/linux/execve.c: Likewise.
1133         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1134         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1135         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
1136         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
1137         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
1138         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1139         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1140         * sysdeps/unix/sysv/linux/poll.c: Likewise.
1141         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1142         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1143         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
1144         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1145         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1146         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1147         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1148         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
1149         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1150         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
1151         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1152         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1153         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1154         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1155         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1156         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
1157         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1158         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1159         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1160         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1161         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1162         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
1163         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1164         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1165         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1166         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
1167         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
1168         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
1169         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
1170         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1171         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1172         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
1173         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1174         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1175         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1176         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1177         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1178         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
1179         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
1180         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
1181         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
1182         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1183         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1184         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1185         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1186         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1187         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1188         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
1189         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1190         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
1191         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1192         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1193         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
1194         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
1196         * string/endian.h (__LONG_LONG_PAIR): New macro.
1197         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
1198         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1199         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1200         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1201         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1202         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1203         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
1204         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1205         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1206         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1207         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1208         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1210         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
1212 2000-07-06  Andreas Jaeger  <aj@suse.de>
1214         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
1215         Initialize result.
1217         * math/test-fpucw.c: Include <stdio.h> for printf.
1219 2000-07-05  Greg McGary  <greg@mcgary.org>
1221         * sysdeps/generic/bp-checks.h: New file.
1222         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
1223         with list of #include files.
1224         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
1225         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
1226         Don't generate BP thunk if `V' appears in signature.
1227         Generate thunks with complete bounds checks.
1228         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
1229         * sysdeps/unix/inet/syscalls.list: Likewise.
1230         * sysdeps/unix/mman/syscalls.list: Likewise.
1231         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1232         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1233         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1234         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
1236 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
1238         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
1239         result.  Search first in /etc/mtab (proc/mounts would be stupid).
1240         If mount not in the file fall back on /proc.
1242         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
1243         string got copied in.
1244         Patch by Solar Designer <solar@false.com>.
1246 2000-07-05  Andreas Jaeger  <aj@suse.de>
1248         * manual/install.texi (Installation): Update information about
1249         add-ons.
1250         (Configuring and compiling): Update for glibc 2.2.
1252 2000-07-04  Andreas Jaeger  <aj@suse.de>
1254         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
1255         (_FPU_IEEE): Likewise.
1257         * math/Makefile (tests): Add test-fpucw.
1259         * math/test-fpucw.c (main): New file.
1261 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
1263         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
1265         * locale/programs/ld-collate.c (collate_output): Also write out the
1266         collation sequence values and the wide character string for the
1267         collation symbol table.
1269         * posix/fnmatch.c: Include "../locale/elem-hash.h".
1270         * posix/fnmatch_loop.c: Implement collating symbol handling.
1271         * posix/tst-fnmatch.input: Add more tests, especially for collating
1272         symbol handling.
1274         * posix/regex.c: Fix comment.
1276 2000-07-05  Andreas Jaeger  <aj@suse.de>
1278         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
1279         (_FPU_GETCW): Remove extra colon.
1280         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
1282         * posix/fnmatch_loop.c (FCT): Only declare len if
1283         !WIDE_CHAR_VERSION to silence GCC.
1285         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
1286         prototype.
1287         * sysdeps/generic/strchrnul.c: Likewise.
1288         * sysdeps/generic/strlen.c: Likewise.
1289         * sysdeps/generic/strchr.c: Likewise.
1290         * sysdeps/generic/memchr.c: Likewise.
1292 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
1294         * posix/fnmatch_loop.c: Implement equivalence class handling.
1295         * posix/tst-fnmatch.input: Add tests for equivalence class
1296         handling.
1298         * posix/fnmatch_loop.c: Improve performance for single-byte
1299         character sets by not using btowc.
1301         * posix/tst-fnmatch.input: Add tests for locale dependent
1302         behaviour.
1303         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
1305         * posix/tst-fnmatch.input: Add more test cases.
1307         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
1308         are not aligned to alignof(md5_uint32) do it before calling
1309         __md5_process_bytes.
1310         * crypt/md5.c: Make sure buffers are aligned.
1311         * crypt/md5.h: Likewise.
1312         Reported by Solar Designer <solar@false.com>.
1314         * crypt/Makefile: Add dependencies for test programs.
1316         * Rules: Define LC_ALL=C in environments of all programs we run.
1318         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
1320 2000-07-03  H.J. Lu  <hjl@gnu.org>
1322         * locale/programs/ld-ctype.c (ctype_output): The size of iov
1323         is 2 + elem + offset, not 2 + elem + offset + 2.
1325 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
1327         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
1328         suite.
1329         * posix/Makefile (tests): Add tst-fnmatch.
1330         (tst-fnmatch-ENV): Define.
1331         * posix/tst-fnmatch.c: New file.
1332         * posix/tst-fnmatch.sh: New file.
1334 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
1336         * locale/programs/charmap.c (charmap_read): Prepend
1337         the condition filename == NULL.
1339 2000-07-03  Greg McGary  <greg@mcgary.org>
1341         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
1343         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
1344         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
1346         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
1347         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
1348         (FILEBUF_LITERAL): Add cast for CHAIN init.
1349         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
1350         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
1351         Revert type of `fp' to _IO_FILE*.
1352         (_IO_iter_file): Remove cast.
1353         (_IO_iter_next): Elide intermediate member reference.
1355         * sysdeps/powerpc/strchr.S:  Check bounds.
1356         Wrap extern symbols in BP_SYM ().
1358 2000-07-03  Andreas Jaeger  <aj@suse.de>
1360         * dlfcn/Makefile (generated): New.
1362 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
1364         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
1365         (__uflow): Likewise.
1366         (__underflow): Likewise.
1367         * libio/wgenops.c (__wunderflow): Likewise.
1368         * stdio-common/tst-unbputc.c: New file.
1369         * stdio-common/tst-unbputc.sh: New file.
1370         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
1372         * po/en_GB.po: New file.
1373         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
1375 2000-07-01  Andreas Jaeger  <aj@suse.de>
1377         * intl/Makefile (generated-dirs): New.
1379         * elf/Makefile (generated): trusted-dirs.h is always generated,
1380         move out of build-shared condition.
1381         (generated): Merge the two entries for build-shared.
1383 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
1385         * debug/Makefile (distribute): Add xtrace.sh.
1387 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1389         * version.h (VERSION): Bump to 2.1.91.
1391         * configure.in: Update warning comment.  glibc should not be
1392         broken anymore.
1394         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
1395         ioperm.c, sys/procfs.h, and sys/io.h.
1397         * sysdeps/powerpc/Dist: Add bp-asm.h.
1399         * assert/Depend: Add localedata.
1400         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
1401         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
1403         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
1404         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
1405         relocation address to prevent unaligned trap.
1406         Suggested by Richard Henderson <rth@cygnus.com>.
1408 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
1410         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
1411         if redirecting and either redirection is done using defines or
1412         not optimizing.
1414 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1416         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
1417         generated expressions.
1418         Patch by Darren McClelland <dmcclell@zetec.com>.
1420         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
1421         since zic uses setlocale and gettext but we cannot make it use the
1422         new locale data since zic calls a shell which might not use the
1423         new libc.
1425         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
1426         handling the internation currency symbol.  POSIX says that the
1427         fourth character is used to separate the currency symbol from the
1428         value.  Therefore it does not have to be printed.  But we cannot
1429         remove the space if the currency symbol is printed before the
1430         number since this is what many locales expect.
1432         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
1433         whether this information is available.
1435         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
1436         buffers in case the translation is too large.  Remember allocated
1437         memory blocks in a list.
1438         (free_mem): Free memory for translations.
1440         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
1442         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
1443         information is available set the string length to zero.
1445         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
1447 2000-06-30  Greg McGary  <greg@mcgary.org>
1449         * sysdeps/powerpc/bp-asm.h: New file.
1450         * sysdeps/powerpc/__longjmp.S:  Check bounds.
1451         Wrap extern symbols in BP_SYM ().
1452         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
1453         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
1454         * sysdeps/powerpc/setjmp.S: Likewise.
1455         * sysdeps/powerpc/add_n.S: Likewise.
1456         * sysdeps/powerpc/addmul_1.S: Likewise.
1457         * sysdeps/powerpc/lshift.S: Likewise.
1458         * sysdeps/powerpc/rshift.S: Likewise.
1459         * sysdeps/powerpc/mul_1.S: Likewise.
1460         * sysdeps/powerpc/sub_n.S: Likewise.
1461         * sysdeps/powerpc/submul_1.S: Likewise.
1462         * sysdeps/powerpc/strlen.S: Likewise.
1463         * sysdeps/powerpc/memset.S: Likewise.
1464         * sysdeps/powerpc/stpcpy.S: Likewise.
1465         * sysdeps/powerpc/strcmp.S: Likewise.
1466         * sysdeps/powerpc/strcpy.S: Likewise.
1467         * sysdeps/powerpc/elf/bzero.S: Likewise.
1469         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
1470         Line up operands column with tabs.
1472 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1474         * elf/Makefile (LDFLAGS-origtest): Actually add it.
1476         * sysdeps/ia64/htonl.S: New file.
1477         * sysdeps/ia64/htons.S: New file.
1478         * sysdeps/ia64/memcpy.S: Replace with version which does not use
1479         floating point registers.
1480         Patches by Dan Pop <Dan.Pop@cern.ch>.
1482 2000-06-30  Andreas Jaeger  <aj@suse.de>
1484         * posix/Makefile (tests): tst-exec and tst-spawn only work with
1485         shared libraries.
1487         * io/Makefile (CFLAGS-test-lfs.c): New.
1488         (tests): Add test-lfs.
1490         * io/test-lfs.c: New file.
1492 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
1494         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
1495         instruction.
1497 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
1499         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
1501 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
1503         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
1504         alias to the fstatfs call.
1506         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
1507         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
1509         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
1510         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
1512         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
1513         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
1514         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
1515         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
1517         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
1518         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
1520         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
1521         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
1523         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
1524         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
1526         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
1528 2000-06-29  Andreas Jaeger  <aj@suse.de>
1530         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
1531         with syslog.
1532         (print_err_message): Likewise.
1533         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
1535 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1537         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
1538         used as words is properly aligned.
1540         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
1541         data files.
1543 2000-06-29  Greg McGary  <greg@mcgary.org>
1545         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
1546         * sysdeps/unix/make-syscalls.sh: Handle signatures of
1547         length 7..9, just in case...
1548         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
1550         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
1551         (POP_ERRNO_LOCATION_RETURN): Fold insns.
1552         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
1553         (PUSH_SIGNAL_MASK): New macro.
1554         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
1555         LEAVE is unnecessary.  Check bounds of jmp_buf.
1556         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
1557         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
1558         immediately before tail-call.
1559         * sysdeps/i386/setjmp.S: Likewise.
1560         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1561         * sysdeps/i386/bsd-setjmp.S: Likewise.
1563 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
1565         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
1566         versioned_symbol.
1567         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
1568         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
1569         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
1570         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
1571         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
1572         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
1573         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
1574         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
1576 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1578         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
1579         we later need to calling free().
1580         Patch by Matt Wilson <msw@redhat.com>.
1582         * stdio-common/tst-printf.c: Add test for above problem.
1584 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
1586         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
1587         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
1589 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
1591         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
1592         prototype for abs().
1593         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
1595 2000-06-23  Andreas Jaeger  <aj@suse.de>
1597         * config.h.in: Don't use regparm with bounded pointers.
1599 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1601         * stdlib/grouping.h: Correctly handle multibyte thousands
1602         separator and decimal point.
1603         * stdlib/stdtod.c: Likewise.
1604         * sysdeps/generic/strtol.c: Likewise.
1606         * locale/categories.def: Add entries for wide character decimal point
1607         and thousands separator in numeric and monetary category.
1609 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1611         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
1612         second definition and initialization of decimal.
1614 2000-06-28  Greg McGary  <greg@mcgary.org>
1616         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
1617         out.
1618         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
1619         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
1620         in.
1621         (_IO_JUMPS): Don't cast THIS--expect arg to be a
1622         (struct _IO_FILE_plus *).
1623         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
1624         THIS, since _IO_JUMPS no longer does it implicitly.
1625         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
1626         arg type as (struct _IO_FILE_plus *).
1627         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
1628         arg as (_IO_strfile *).
1629         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
1630         Declare 1st arg as (_IO_strfile *).
1631         * libio/fileops.c (_IO_new_file_init): Declare
1632         arg type as (struct _IO_FILE_plus *).
1633         * libio/oldfileops.c (_IO_old_file_init): Likewise.
1634         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
1635         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
1636         Declare iteration pointer as (struct _IO_FILE_plus *).
1637         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
1638                 (struct _IO_FILE_plus *).
1639         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
1640         * libio/oldstdfiles.c (_IO_list_all): Likewise.
1641         (_IO_check_libio): Set user-visible handles to
1642         (struct _IO_FILE_plus *).
1643         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
1644         to (struct _IO_FILE_plus *).
1646         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
1647         whose high bound includes vtable to all functions that will use
1648         vtable.  For streambufs, pass pointer whose bounds include struct
1649         _IO_strfile.
1650         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
1651         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
1652         * libio/iofopen.c (_IO_new_fopen): Likewise.
1653         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
1654         * libio/iofopen64.c (_IO_fopen64): Likewise.
1655         * libio/iopopen.c (_IO_new_popen): Likewise.
1656         * libio/oldiopopen.c (_IO_old_popen): Likewise.
1657         * libio/memstream.c (open_memstream): Likewise.
1658         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
1659         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
1660         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
1661         * libio/iofopncook.c (_IO_cookie_init): Likewise.
1662         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
1663         * libio/vasprintf.c (_IO_vasprintf): Likewise.
1664         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
1665         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
1666         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
1667         * stdlib/strfmon.c (__strfmon_l): Likewise.
1668         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
1669         (vfprintf): Qualify computed-goto targets as unbounded.
1671 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1673         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
1674         thousands separator correctly.
1676         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
1677         * stdio-common/vfwscanf.c: Likewise.
1679 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
1681         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
1682         count into signatures for most calls.
1684 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1686         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
1687         the generic parser now.
1689 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
1691         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
1692         table entries are 32 bit on the ia64 (as specified by the ABI),
1693         not 64 bit as on the Alpha.
1695         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
1696         change of objects to use 32 bit hash table indices (see above).
1698 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
1700         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
1701         prototype for abs().
1703 2000-06-28  Wolfram Gloger  <wg@malloc.de>
1705         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
1706         fails, try mmap_chunk() as a last resort even though n_mmaps_max
1707         may have been reached.
1709 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1711         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
1712         symbols in multi-character weights correctly.
1714         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
1715         depending on whether the input string is empty or not.
1717         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
1718         given state and not avoiding this by modifying a local object.
1719         * wcsmbs/wcrtomb.c: Likewise.
1721         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
1722         object since some incomplete characters might be in there.
1724         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
1725         sequences with first byte 0x8e correctly.
1727         * iconvdata/jis0208.h: Remove redundant test.
1729 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
1731         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
1732         Add it where it is needed now.
1734         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
1735         the input charset into account when generating the hash table.
1736         (allocate_arrays): Correct setting default width.  Not all empty slots
1737         in the table are filled, only those not covert explicitly by the
1738         locale description and in the charset.
1740         * wctype/towctrans.c (__towctrans): Be graceful and accept error
1741         return values from the wctrans function.
1743         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
1744         wide character version.
1745         For %C handling, test correct pointer variable for NULL.
1747         * wcsmbs/wctob.c: Handle WEOF special.
1749         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
1751         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
1752         always-true test to avoid warning.
1754 2000-06-27  Greg McGary  <greg@mcgary.org>
1756         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
1757         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
1758         (symbol_version, default_symbol_version): Factor redundant
1759         definitions out of conditional.
1761 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
1763         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
1764         not obstack_blank.
1766 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
1768         * include/libc-symbols.h (symbol_version): Add extra level of
1769         macro expansion.
1770         (default_symbol_version): Likewise.
1772 2000-06-26  Greg McGary  <greg@mcgary.org>
1774         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
1775         for BP return value & push implicit struct-return pointer to
1776         __errno_location.
1777         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1778         (SYSCALL_ERROR_HANDLER): Likewise.
1779         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
1780         (SYSCALL_ERROR_HANDLER): Likewise.
1782         * Makeconfig: Add missing comment.
1783         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
1784         BP-flavored startup object.
1785         ($(objpfx)b$(start-installed-name)): New rule.
1786         * include/libc-symbols.h (symbol_set_declare): Change type
1787         of `__start_##set' and `__stop_##set' to pointer-to-function.
1788         (symbol_set_declare): Change type of `set' to array of
1789         pointer-to-function.
1790         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
1791         pointer-to-function.
1793         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
1795         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
1796         Remove clock_* and timer_* entries.
1797         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
1798         arg-count with signatures.
1800         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
1801         Check bounds of arguments.
1802         * sysdeps/i386/addmul_1.S: Likewise.
1803         * sysdeps/i386/lshift.S: Likewise.
1804         * sysdeps/i386/mul_1.S: Likewise.
1805         * sysdeps/i386/rshift.S: Likewise.
1806         * sysdeps/i386/sub_n.S: Likewise.
1807         * sysdeps/i386/submul_1.S: Likewise.
1808         * sysdeps/i386/i586/add_n.S: Likewise.
1809         * sysdeps/i386/i586/addmul_1.S: Likewise.
1810         * sysdeps/i386/i586/lshift.S: Likewise.
1811         * sysdeps/i386/i586/rshift.S: Likewise.
1812         * sysdeps/i386/i586/sub_n.S: Likewise.
1813         * sysdeps/i386/i686/add_n.S: Likewise.
1815         * sysdeps/i386/memchr.S: Likewise.
1816         * sysdeps/i386/memcmp.S: Likewise.
1817         * sysdeps/i386/rawmemchr.S: Likewise.
1818         * sysdeps/i386/i586/bzero.S: Likewise.
1819         * sysdeps/i386/i586/memcpy.S: Likewise.
1820         * sysdeps/i386/i586/mempcpy.S: Likewise.
1821         * sysdeps/i386/i586/memset.S: Likewise.
1822         * sysdeps/i386/i686/bzero.S: Likewise.
1823         * sysdeps/i386/i686/memcpy.S: Likewise.
1824         * sysdeps/i386/i686/mempcpy.S: Likewise.
1825         * sysdeps/i386/i686/memset.S: Likewise.
1827         * sysdeps/i386/stpcpy.S: Likewise.
1828         * sysdeps/i386/stpncpy.S: Likewise.
1829         * sysdeps/i386/strchr.S: Likewise.
1830         * sysdeps/i386/strchrnul.S: Likewise.
1831         * sysdeps/i386/strcspn.S: Likewise.
1832         * sysdeps/i386/strpbrk.S: Likewise.
1833         * sysdeps/i386/strrchr.S: Likewise.
1834         * sysdeps/i386/strspn.S: Likewise.
1835         * sysdeps/i386/strtok.S: Likewise.
1836         * sysdeps/i386/strtok_r.S: Likewise.
1837         * sysdeps/i386/i486/strcat.S: Likewise.
1838         * sysdeps/i386/i486/strlen.S: Likewise.
1839         * sysdeps/i386/i586/strchr.S: Likewise.
1840         * sysdeps/i386/i586/strcpy.S: Likewise.
1841         * sysdeps/i386/i586/strlen.S: Likewise.
1842         * sysdeps/i386/i686/strcmp.S: Likewise.
1843         * sysdeps/i386/i686/strtok.S: Likewise.
1844         * sysdeps/i386/i686/strtok_r.S: Likewise.
1846         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
1847         * sysdeps/i386/fpu/fesetenv.c: Likewise.
1848         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
1849         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
1850         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1852         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
1853         * sysdeps/i386/mul_1.S: Likewise.
1854         * sysdeps/i386/submul_1.S: Likewise.
1855         * sysdeps/i386/i586/add_n.S: Likewise.
1856         * sysdeps/i386/i586/addmul_1.S: Likewise.
1857         * sysdeps/i386/i586/lshift.S: Likewise.
1858         * sysdeps/i386/i586/mul_1.S: Likewise.
1859         * sysdeps/i386/i586/rshift.S: Likewise.
1860         * sysdeps/i386/i586/sub_n.S: Likewise.
1861         * sysdeps/i386/i586/submul_1.S: Likewise.
1863 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
1865         * rt/Makefile (librt-routines): Add clock_nanosleep.
1866         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
1867         * sysdeps/generic/clock_nanosleep.c: New file.
1868         * sysdeps/unix/clock_nanosleep.c: New file.
1869         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
1870         * time/time.h: Declare clock_nanosleep.
1872 2000-06-26  Greg McGary  <greg@mcgary.org>
1874         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
1875         INSN1, INSN2, TEXT, GLOBL): Remove macros.
1876         (ALIGN): Cleanup surrounding conditionals.
1878         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
1879         Call ENTER/LEAVE macros.
1880         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
1881         * sysdeps/i386/submul_1.S: Likewise.
1883         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
1884         syntax.  Define & use symbolic argument stack offsets.  Call
1885         ENTER/LEAVE macros.
1886         * sysdeps/i386/i586/mul_1.S: Likewise.
1887         * sysdeps/i386/i586/submul_1.S: Likewise.
1889 2000-06-25  Greg McGary  <greg@mcgary.org>
1891         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
1892         not as bcopy.
1894 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
1896         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
1897         * iconvdata/gen-8bit-gap.sh: Likewise.
1898         * iconvdata/gen-8bit.sh: Likewise.
1900         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
1902         * locale/programs/ld-collate.c (collate_read): Don't actually read
1903         the copy locale if we are ignoring the content.
1905         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
1906         unknown character.
1908         * locale/programs/ld-collate.c: Correct handling of different
1909         collation sections.
1910         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
1911         as extra parameter from which to copy category information.
1912         Change all callers.
1913         (load_locale): Likewise.
1914         * locale/programs/localedef.h: Update prototypes of add_to_readlist
1915         and load_locale.
1916         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
1917         * locale/programs/locfile.h: Likewise.
1918         * locale/programs/locfile-kw.gperf: Add entry for script.
1919         * locale/programs/locfile-token.h: Add tok_script.
1921         * locale/programs/locale.c: Update copyright year.
1922         * locale/programs/localedef.c: Likewise.
1924 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
1926         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
1927         Jens Moeller <jens.moeller@waii.com>.
1929 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
1931         * locale/programs/ld-name.c (name_finish): Add missing format
1932         specifier to test for name_fmt.
1934         * locale/programs/ld-address.c (iso639): Correct length of string
1935         elements.
1936         (iso3166): Likewise.
1938         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
1940         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
1941         Define.
1943         * elf/elf.h (NT_PRFPXREG): Define.
1945 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
1947         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
1948         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
1950 2000-06-23  Andreas Schwab  <schwab@suse.de>
1952         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
1953         with signatures.
1955 2000-06-23  Andreas Jaeger  <aj@suse.de>
1957         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
1959         * io/test-stat.c: Add copyright header, mention Maciej.
1961         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
1962         SYS_mincore, SYS_madvise): Added.
1964         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
1965         execve.
1967 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
1969         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
1970         (CFLAGS-tst_putwc.c): New definition.
1971         * libio/tst_getwc.c: New file.
1972         * libio/tst_getwc.input: New file.
1973         * libio/tst_putwc.c: New file.
1975         * include/string.h: Add prototype for __strdup.
1977 2000-06-22  Greg McGary  <greg@mcgary.org>
1979         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
1980         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
1981         Fix signatures.
1983 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
1985         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
1987 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
1989         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
1991 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
1993         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
1994         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
1996 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
1998         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
1999         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
2000         and __S_TYPEISSHM.
2001         * sysdeps/mach/hurd/bits/stat.h: Likewise.
2002         * sysdeps/unix/bsd/bits/stat.h: Likewise.
2003         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
2004         * sysdeps/unix/sysv/bits/stat.h: Likewise.
2005         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
2006         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
2007         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2008         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2009         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2010         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2011         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
2012         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
2013         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
2014         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
2015         S_TYPEISSHM.
2017 2000-06-22  Andreas Jaeger  <aj@suse.de>
2019         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
2020         with signatures.
2022         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
2024         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
2026 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
2028         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
2029         ahead.
2031 2000-06-21  Greg McGary  <greg@mcgary.org>
2033         * Makerules (elide-routines.*, elide-bp-thunks):
2034         Define unconditionally.
2036 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
2038         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
2040 2000-06-21  Andreas Jaeger  <aj@suse.de>
2042         * io/Makefile (tests): Add test-stat.
2043         (CFLAGS-test-stat.c): New.
2045         * io/test-stat.c: New file from Maciej W. Rozycki
2046         <macro@ds2.pg.gda.pl>.
2048 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
2050         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
2051         in __rlimit_resource to make them match the kernel order.
2052         rlim_t is always 64 bit, use __rlim64_t to declare it
2053         unconditionally.
2055 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
2057         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
2058         RLIM_INFINITY before defining it to avoid clash with kernel header
2060 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
2062         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
2064 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
2066         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
2068 2000-06-21  Andreas Jaeger  <aj@suse.de>
2070         * stdio-common/temptest.c: Include <stdlib.h>.
2071         * stdio-common/tst-fileno.c: Likewise.
2072         * stdio-common/scanf4.c: Likewise.
2073         * stdio-common/scanf5.c: Likewise.
2074         * time/clocktest.c: Likewise.
2075         * posix/test-vfork.c: Likewise.
2076         * posix/globtest.c: Likewise.
2077         * io/test-utime.c: Likewise.
2078         * wctype/test_wcfuncs.c: Likewise.
2079         * crypt/cert.c: Likewise.
2081         * stdio-common/tst-printfsz.c: Include <string.h>.
2082         * libio/tst_swscanf.c: Likewise.
2083         * libio/tst_wscanf.c: Likewise.
2084         * posix/runtests.c: Likewise.
2085         * posix/tst-getaddrinfo.c: Likewise.
2086         * posix/wordexp-test.c: Likewise.
2087         * misc/tst-efgcvt.c: Likewise.
2089         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
2090         * nss/test-netdb.c: Likewise.
2092         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
2093         supported kernel for MIPS.
2095         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
2096         * rt/aio_suspend.c: Likewise.
2098 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
2100         * math/libm-test.inc: Include <string.h>.
2102 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2104         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
2106 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2108         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
2109         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
2111 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
2113         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
2115 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2117         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
2119 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
2121         * locale/programs/ld-collate.c (insert_value): Now take string and
2122         length instead of struct token* parameter.  Adjust use of token.
2123         (handle_ellipsis): Likewise.
2124         (collate_read): Allow <Uxxxx> names and transform them into names
2125         to be passed to insert_value and handle_ellipsis.
2127         * locale/programs/ld-ctype.c (uninames): New array with names of
2128         digits in <Uxxxxxxxx> format.
2129         (ctype_finish): Correct search for space character value.  Likewise
2130         for default outdigits values.
2132 2000-06-20  Greg McGary  <greg@mcgary.org>
2134         * Makerules (objects): Add BP thunks.
2136 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
2138         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
2139         in width definitions.
2141 2000-06-20  Andreas Jaeger  <aj@suse.de>
2143         * sysdeps/mips/fpu/libm-test-ulps: New file.
2145         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
2146         first.
2148         * sysdeps/mips/fpu/feholdexcpt.c: New file.
2150         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
2152 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
2154         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
2155         change in gconv_builtin.h.
2157         * malloc/Makefile: Change all references to memprof into memusage.
2158         * malloc/memprof.c: Rename to...
2159         * malloc/memusage.c: ...this.  New file.
2160         * malloc/memprof.sh: Rename to...
2161         * malloc/memusage.sh: ...this.  New file.
2162         * malloc/memprofstat.c: Rename to...
2163         * malloc/memusagestat.c: ...this.  New file.
2164         * sysdeps/alpha/memprof.h: Rename to..
2165         * sysdeps/alpha/memusage.h: ...this.  New file.
2166         * sysdeps/arm/memprof.h: Rename to..
2167         * sysdeps/arm/memusage.h: ...this.  New file.
2168         * sysdeps/generic/memprof.h: Rename to..
2169         * sysdeps/generic/memusage.h: ...this.  New file.
2170         * sysdeps/i386/memprof.h: Rename to..
2171         * sysdeps/i386/memusage.h: ...this.  New file.
2172         * sysdeps/ia64/memprof.h: Rename to..
2173         * sysdeps/ia64/memusage.h: ...this.  New file.
2174         * sysdeps/m68k/memprof.h: Rename to..
2175         * sysdeps/m68k/memusage.h: ...this.  New file.
2176         * sysdeps/mips/memprof.h: Rename to..
2177         * sysdeps/mips/memusage.h: ...this.  New file.
2178         * sysdeps/powerpc/memprof.h: Rename to..
2179         * sysdeps/powerpc/memusage.h: ...this.  New file.
2180         * sysdeps/sparc/memprof.h: Rename to..
2181         * sysdeps/sparc/memusage.h: ...this.  New file.
2182         * sysdeps/sh/memprof.h: Rename to..
2183         * sysdeps/sh/memusage.h: ...this.  New file.
2185         * elf/sprof.c (print_version): Update year.
2187         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
2188         table entry values.  Use D_PTR.
2189         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
2190         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
2192 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2194         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
2195         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
2196         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
2197         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
2199 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
2201         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
2203 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
2205         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
2206         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
2207         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
2209         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
2211         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
2212         kernel change.
2214         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
2215         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
2216         structure.
2217         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
2218         implementation.
2220 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
2222         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
2224 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
2226         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
2228 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
2230         * iconv/gconv_int.h (strict gconv_module): Remove all members
2231         associated with regular expressions.  Use a simple string as the
2232         from name.
2233         * iconv/gconv_db.c: Remove code handling regular expressions.
2234         * iconv/gconv_conf.c: Likewise.
2235         * iconv/iconv_prog.c: Likewise.
2236         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
2238         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
2239         General namespace cleanup.
2240         (struct __gconv_trans_data): Add next field.
2241         (struct __gconv_step_data): Make __trans a pointer.
2242         * iconv/gconv_conf.c: Split out code to find gconv directories from
2243         __gconv_read_conf in new functions.
2244         * iconv/gconv_int.h: Define new data structure and declare new
2245         functions for handling of gconv directory list.
2246         * iconv/gconv_open.c: Allow more than one error handling step being
2247         used.  Call function to load error handling module if it is none
2248         of the builtin transformations.
2249         * iconv/gconv_close.c: Add code to free transliteration data.
2250         * iconv/gconv_trans.c: Add functions to load and unload modules
2251         implementing transliteration etc.
2252         * iconv/skeleton.c: Call all context functions now that more than
2253         one module is allowed.
2254         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
2255         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
2256         where the full error handling using transliteration is needed.
2257         * iconvdata/8bit-gap.c: Likewise.
2258         * iconvdata/8bit-generic.c: Likewise.
2259         * iconvdata/ansi_x3.110.c: Likewise.
2260         * iconvdata/big5.c: Likewise.
2261         * iconvdata/big5hkscs.c: Likewise.
2262         * iconvdata/euc-cn.c: Likewise.
2263         * iconvdata/euc-jp.c: Likewise.
2264         * iconvdata/euc-kr.c: Likewise.
2265         * iconvdata/euc-tw.c: Likewise.
2266         * iconvdata/gbgbk.c: Likewise.
2267         * iconvdata/gbk.c: Likewise.
2268         * iconvdata/iso-2022-cn.c: Likewise.
2269         * iconvdata/iso-2022-jp.c: Likewise.
2270         * iconvdata/iso-2022-kr.c: Likewise.
2271         * iconvdata/iso646.c: Likewise.
2272         * iconvdata/iso8859-1.c: Likewise.
2273         * iconvdata/iso_6937-2.c: Likewise.
2274         * iconvdata/iso_6937.c: Likewise.
2275         * iconvdata/johab.c: Likewise.
2276         * iconvdata/sjis.c: Likewise.
2277         * iconvdata/t.61.c: Likewise.
2278         * iconvdata/uhc.c: Likewise.
2279         * iconvdata/unicode.c: Likewise.
2280         * iconvdata/utf-16.c: Likewise.
2281         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
2282         structure correctly after last change.
2283         * wcsmbs/btowc.c: Likewise.
2284         * wcsmbs/mbrtowc.c: Likewise.
2285         * wcsmbs/mbsnrtowcs.c: Likewise.
2286         * wcsmbs/mbsrtowcs.c: Likewise.
2287         * wcsmbs/wcrtomb.c: Likewise.
2288         * wcsmbs/wcsnrtombs.c: Likewise.
2289         * wcsmbs/wcsrtombs.c: Likewise.
2290         * wcsmbs/wctob.c: Likewise.
2292         * localedata/Makefile: Set -Wno-format for some files since gcc does
2293         not know all the format specifiers.
2295 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
2297         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
2298         unneeded code.
2299         * locale/lc-time.c (_nl_init_era_entries): Likewise.
2301 2000-06-18  Andreas Jaeger  <aj@suse.de>
2303         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
2304         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
2306 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
2308         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
2309         LINUX_LINK_MAX.
2310         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
2312         * locale/programs/ld-ctype.c (ctype_output): Really write out
2313         mboutdigits information.
2314         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
2315         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
2316         * localedata/tests/trans.def: Add outdigit information.
2318         * localedata/tst-mbswcs3.c: Remove comment.
2320         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
2321         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
2322         * libio/tst_wprintf.c (main): Add test for I flag.
2324         * iconv/gconv_trans.c: Implement handling if translit_ignore.
2325         * locale/langinfo.h: Add entries for translit_ignore information.
2326         * locale/categories.def: Add entries for new LC_CTYPE elements.
2327         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
2328         pointer instead of "" where possible.
2329         * locale/programs/ld-ctype.c: Write out translit_ignore information.
2330         * intl/Depend: Add localedata.
2331         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
2332         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
2334 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
2336         * locale/langinfo.h: Add entries for default_missing information.
2337         * locale/C-ctype.c: Add initializers for new fields.
2338         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
2339         information.
2340         * locale/categories.h: Add entries for all LC_CTYPE values.
2341         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
2342         information.
2344         * localedata/tst-trans.c: Write out an error message if class is
2345         not found.
2347         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
2348         * iconv/gconv_open.c: Remove error handling specification from `from'
2349         character set name.
2350         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
2351         new parameter to always enable transliteration.
2352         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
2353         change.
2354         (struct locale_data): Add new members use_translit and options.
2355         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
2356         character set name contained modifier TRANSLIT.
2357         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
2358         and options fields.
2359         (_nl_unload_locale): Free options string if necessary.
2360         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
2361         the locale names suggested this.
2362         * locale/C-address.c: Add two new initialilzers to adjust data
2363         structure for new format.
2364         * locale/C-collate.c: Likewise.
2365         * locale/C-ctype.c: Likewise.
2366         * locale/C-identification.c: Likewise.
2367         * locale/C-measurement.c: Likewise.
2368         * locale/C-messages.c: Likewise.
2369         * locale/C-monetary.c: Likewise.
2370         * locale/C-name.c: Likewise.
2371         * locale/C-numeric.c: Likewise.
2372         * locale/C-paper.c: Likewise.
2373         * locale/C-telephone.c: Likewise.
2374         * locale/C-time.c: Likewise.
2376         * locale/setlocale.c: Add some more __builtin_expect.
2378 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
2380         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
2381         unsigned char **.
2382         (__gconv_init_fct): Remove two parameters.
2383         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
2384         gconv_transliterate.  Remove two parameters.
2385         Change prototypes of builtin functions according to __gconv_fct change.
2386         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
2387         != NULL only during error handling.  Stop in this case after the
2388         conversion.
2389         * iconv/gconv_trans.c: Replace with real implementation for
2390         __gconv_transliterate.
2391         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
2392         * iconv/gconv.c: Change calls to downstream functions once again.
2393         Use NULL for the fifth parameter instead of pointer to output buffer.
2394         * libio/iofwide.c: Likewise.
2395         * wcsmbs/btowc.c: Likewise.
2396         * wcsmbs/mbrtowc.c: Likewise.
2397         * wcsmbs/mbsnrtowcs.c: Likewise.
2398         * wcsmbs/mbsrtowcs.c: Likewise.
2399         * wcsmbs/wcrtomb.c: Likewise.
2400         * wcsmbs/wcsnrtombs.c: Likewise.
2401         * wcsmbs/wcsrtombs.c: Likewise.
2402         * wcsmbs/wctob.c: Likewise.
2403         * iconv/gconv_simple.c: Remove two parameters from error handling
2404         function call.
2405         * iconvdata/8bit-gap.c: Likewise.
2406         * iconvdata/8bit-generic.c: Likewise.
2407         * iconvdata/ansi_x3.110.c: Likewise.
2408         * iconvdata/big5.c: Likewise.
2409         * iconvdata/big5hkscs.c: Likewise.
2410         * iconvdata/euc-cn.c: Likewise.
2411         * iconvdata/euc-jp.c: Likewise.
2412         * iconvdata/euc-kr.c: Likewise.
2413         * iconvdata/euc-tw.c: Likewise.
2414         * iconvdata/gbgbk.c: Likewise.
2415         * iconvdata/gbk.c: Likewise.
2416         * iconvdata/iso-2022-cn.c: Likewise.
2417         * iconvdata/iso-2022-jp.c: Likewise.
2418         * iconvdata/iso-2022-kr.c: Likewise.
2419         * iconvdata/iso646.c: Likewise.
2420         * iconvdata/iso8859-1.c: Likewise.
2421         * iconvdata/iso_6937-2.c: Likewise.
2422         * iconvdata/iso_6937.c: Likewise.
2423         * iconvdata/johab.c: Likewise.
2424         * iconvdata/sjis.c: Likewise.
2425         * iconvdata/t.61.c: Likewise.
2426         * iconvdata/uhc.c: Likewise.
2427         * iconvdata/unicode.c: Likewise.
2428         * iconvdata/utf-16.c: Likewise.
2430 2000-06-15  Greg McGary  <greg@mcgary.org>
2432         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
2433         of callnum assignment.  Tolerate callnum expressions containing
2434         parens.
2436 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
2438         * login/Makefile (utmpd): Remove rule to build utmpd.
2440         * csu/Versions: Move libgcc frame handling functions from here...
2441         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
2442         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
2443         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
2444         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
2445         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
2446         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
2447         New file.
2448         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
2450         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
2452         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
2454 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
2456         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
2457         compatibility.
2458         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
2459         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
2460         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
2461         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
2463 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
2465         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
2466         defined, terminate quotes and read them after the comment char.
2467         * configure.in (HAVE_SECTION_QUOTES): Test whether
2468         __attribute__((section ("x"))) puts quotes around x or not.
2469         * config.h.in (HAVE_SECTION_QUOTES): Add.
2470         * configure: Rebuilt.
2472 2000-06-14  Andreas Jaeger  <aj@suse.de>
2474         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
2475         depending on the configure option --sysconfdir.
2476         Closes PR libc/1762.
2477         Patch by Andreas Schwab <schwab@suse.de>.
2479         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
2480         entry point.
2481         Reported by Jim Pick <jim@jimpick.com>.
2483 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
2485         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
2486         crashing the application.  Emit some simple error message.
2487         Reported by mju@panasas.com [PR libc/1769].
2489 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
2491         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
2493         * crypt/Makefile (distribute): Add md5.h.
2495         * Makefile (distribute): Add include/shlib-compat.h.
2497         * Make-dist: Search for tests also in sysdeps hierachy.
2499         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
2500         ufc.c, speeds.c, README.ufc-crypt, and Banner.
2502         * sysdeps/sparc/Subdirs: New file.
2504         * locale/Makefile (distribute): Add weightwc.h and
2505         programs/localedef.h.
2507         * time/Makefile (distribute): Add datemsk.
2509         * sysdeps/ia64/Dist: Add softpipe.h.
2511         * sysdeps/unix/sysv/aix/Dist: New file.
2513         * posix/setpgrp.c: Moved to...
2514         * sysdeps/generic/setpgrp.c: ...here.  New file.
2515         * io/mknod.c: Moved to...
2516         * sysdeps/generic/mknod.c: ...here.  New file.
2518         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
2520         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
2522         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
2524         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
2525         gprsave0.S, gprrest1.S, and gprrest0.S.
2527         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
2529         * posix/Makefile (routines): Add spawnattr_getsigmask,
2530         spawnattr_getschedpolicy, spawnattr_getschedparam,
2531         spawnattr_setsigmask, spawnattr_setschedpolicy, and
2532         spawnattr_setschedparam.
2533         * posix/Versions: Add posix_spawnattr_getschedpolicy,
2534         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
2535         posix_spawnattr_setschedparam.
2537         * posix/spawnattr_setschedparam.c: Fix typo.
2539         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
2540         Correct typo.
2542         * login/programs/utmpd.c: Removed.
2543         * login/programs/utmpd.h: Removed.
2544         * login/programs/utmpd-private.h: Removed.
2546         * Makefile (distribute): Add include/db_185.h and include/db.h.
2548         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
2549         iso-ir-165.h.
2551         * elf/Makefile (distribute): Add missing files.
2553         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
2554         * elf/eval.c: Moved to...
2555         * dlfcn/eval.c: ...here.  New file.
2557         * Makefile (distribute): Also distribute ChangeLog.1?.
2559         * Make-dist (+tsrcs): Remove .args handling here as well.
2561         * rt/Makefile (tests): Add tst-timer.
2562         * sysdeps/generic/tst-timer.c: New file.
2564         * Makerules (sources): Don't add BP sources here.
2566         * login/Makefile (distribute): Remove xtmp.h.
2568         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
2569         is true.  Reported by Bruno Haible <haible@ilog.fr>.
2571 2000-06-13  Andreas Jaeger  <aj@suse.de>
2573         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
2574         Patch by Ralf Baechle <ralf@gnu.org>.
2576 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
2578         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
2579         for mincore syscall.
2581         * misc/sys/cdefs.h: Define __bounded and __unbounded if
2582         __BOUNDED_POINTERS__ is not defined.
2584 2000-06-07  Greg McGary  <greg@mcgary.org>
2586         * sysdeps/generic/bp-sym.h: New file.
2587         * sysdeps/generic/bp-start.h: New file.
2588         * sysdeps/i386/elf/start.S: Designate BP symbols.
2589         * sysdeps/generic/libc-start.c: Wrap bounds around
2590         argv & envp and each of their string members.
2592 2000-06-07  Greg McGary  <greg@mcgary.org>
2594         * sysdeps/unix/make-syscalls.sh: Add comments to
2595         output that aid debugging & comprehension.
2596         Map simple syscall signatures to number of args.
2597         Generate BP syscall thunk definitions.
2598         * sysdeps/generic/bp-thunks.h: New file.
2599         * sysdeps/unix/syscalls.list: Replace arg-count with
2600         simple return+arg signature.
2601         * sysdeps/unix/common/syscalls.list: Likewise.
2602         * sysdeps/unix/inet/syscalls.list: Likewise.
2603         * sysdeps/unix/mman/syscalls.list: Likewise.
2604         * sysdeps/unix/sysv/syscalls.list: Likewise.
2605         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2606         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2608 2000-06-07  Greg McGary  <greg@mcgary.org>
2610         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
2611         for all files *.[cS].
2612         (CFLAGS-.ob): Don't optimize sibling calls.
2613         (bppfx): New variable.
2614         * Makerules (elide-bp-thunks): New variable.
2615         (elide-routines.*): Elide BP-* files for all but *.ob.
2616         (sources): Include bp-thunks.
2618 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2620         * iconv/gconv_simple.c: Remove unnecessary prototype.
2622         * iconv/gconv_trans.c: Pretty print.
2624         * elf/elf.h (R_SH_NUM): Got accidently dropped.
2626         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
2627         minimal kernel versions.  Add information about IA-64 kernel.
2629         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
2630         specific minimal supported kernel versions to be specified.
2632         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
2633         step data structure.
2634         * wcsmbs/btowc.c: Likewise.
2635         * wcsmbs/mbrtowc.c: Likewise.
2636         * wcsmbs/mbsnrtowcs.c: Likewise.
2637         * wcsmbs/mbsrtowcs.c: Likewise.
2638         * wcsmbs/wcrtomb.c: Likewise.
2639         * wcsmbs/wcsnrtombs.c: Likewise.
2640         * wcsmbs/wcsrtombs.c: Likewise.
2641         * wcsmbs/wctob.c: Likewise.
2643         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
2644         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
2646         * shlib-versions: Earliest backward compatible version for SH is 2.2.
2648         * misc/sys/cdefs.h: Remove one more __P.
2650         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
2651         Reported by HJ Lu.
2653         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
2654         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
2655         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
2657 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
2658             Yutaka Niibe  <gniibe@chroot.org>
2660         * configure.in: Add machine sh3, sh4.
2661         * elf/elf.h: Add SH specific declarations of relocations.
2662         * shlib-versions: Add sh*-*-linux* cases.
2664 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2666         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
2667         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
2668         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
2669         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
2670         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
2671         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
2673         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
2674         instead of KERNEL_MATH_EMULATION.
2675         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
2676         KERNEL_MATH_EMULATION.
2678         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
2679         * sysdeps/sh/sh3/dl-machine.h: Moved to...
2680         * sysdeps/sh/dl-machine.h: ...here.  New file.
2681         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
2682         and include generic SH version.
2683         * sysdeps/sh/sh3/bits/endian.h: Move to...
2684         * sysdeps/sh/bits/endian.h: ...here.  New file.
2685         * sysdeps/sh/sh4/bits/endian.h: Removed.
2686         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
2687         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
2688         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
2690         * include/libc-symbols.h (link_warning): Work around a change in
2691         GAS which warns about changing section attributes.
2692         Proposed by Nick Clifton <nickc@redhat.com>.
2694 2000-06-12  H.J. Lu  <hjl@gnu.org>
2696         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
2698 2000-06-11  H.J. Lu  <hjl@gnu.org>
2700         * sysdeps/i386/fpu/Versions: New file.
2702 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2704         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
2705         parameters.
2706         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
2707         exists.
2709 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
2711         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2712         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
2713         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
2715         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
2716         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
2717         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
2719 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
2720             Yutaka Niibe  <gniibe@chroot.org>
2722         * sysdeps/sh/Dist: New file.
2723         * sysdeps/sh/Implies: New file.
2724         * sysdeps/sh/elf/initfini.c: New file.
2725         * sysdeps/sh/gmp-mparam.h: New file.
2726         * sysdeps/sh/init-first.c: New file.
2727         * sysdeps/sh/machine-gmon.h: New file.
2728         * sysdeps/sh/memcpy.S: New file.
2729         * sysdeps/sh/memprof.h: New file.
2730         * sysdeps/sh/memset.S: New file.
2731         * sysdeps/sh/sh3/__longjmp.S: New file.
2732         * sysdeps/sh/sh3/bits/endian.h: New file.
2733         * sysdeps/sh/sh3/bits/huge_val.h: New file.
2734         * sysdeps/sh/sh3/bits/setjmp.h: New file.
2735         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
2736         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
2737         * sysdeps/sh/sh3/dl-machine.h: New file.
2738         * sysdeps/sh/sh3/setjmp.S: New file.
2739         * sysdeps/sh/sh4/__longjmp.S: New file.
2740         * sysdeps/sh/sh4/bits/endian.h: New file.
2741         * sysdeps/sh/sh4/bits/huge_val.h: New file.
2742         * sysdeps/sh/sh4/bits/setjmp.h: New file.
2743         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
2744         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
2745         * sysdeps/sh/sh4/dl-machine.h: New file.
2746         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
2747         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
2748         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
2749         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
2750         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
2751         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
2752         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
2753         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
2754         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
2755         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
2756         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
2757         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
2758         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
2759         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
2760         * sysdeps/sh/sh4/setjmp.S: New file.
2761         * sysdeps/sh/elf/start.S: New file.
2762         * sysdeps/sh/sys/ucontext.h: New file.
2763         * sysdeps/sh/strlen.S: New file.
2764         * sysdeps/sh/sysdep.h: New file.
2765         * sysdeps/unix/sh/sysdep.S: New file.
2766         * sysdeps/unix/sh/sysdep.h: New file.
2767         * sysdeps/unix/sysv/linux/sh/Dist: New file.
2768         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
2769         * sysdeps/unix/sysv/linux/sh/Versions: New file.
2770         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
2771         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
2772         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
2773         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
2774         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
2775         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
2776         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
2777         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
2778         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
2779         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
2780         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
2781         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
2782         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
2783         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
2784         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
2785         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
2786         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
2787         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
2788         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
2789         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
2790         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
2791         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
2792         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
2793         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
2794         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
2795         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
2796         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
2797         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
2798         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
2799         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
2800         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
2801         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
2802         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
2803         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
2804         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
2805         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
2806         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
2807         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
2808         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
2809         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
2810         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
2811         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
2812         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
2813         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
2814         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
2815         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
2816         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
2818 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2820         * Rules (%.out): Define GCONV_PATH in the environment.
2821         * assert/Depend: New file.
2822         * iconvdata/Depend: New file.
2823         * intl/Depend: New file.
2824         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
2825         * intl/tst-gettext.sh: Likewise.
2826         * iconv/Makefile (routines): Add gconv_trans.
2827         * iconv/gconv_trans.c: New file.
2828         * iconv/gconv.h (struct __gconv_trans_data): New type.
2829         (__gconv_fct): New parameter with starting position in output buffer.
2830         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
2831         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
2832         (struct __gconv_step): Add new member __trans.
2833         * iconv/gconv_int.h: Pretty print prototypes.
2834         (gconv_transliterate): New prototype.
2835         (__BUILTIN_TRANS): Update for new conversion function interface.
2836         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
2837         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
2838         in names, find appropriate function, and install in the conversion
2839         steps it can be used.
2840         * iconv/skeleton.c: Add additional parameter for beginning of output
2841         buffer.  Change calls of downstream functions.
2842         * iconv/loop.c: Change loop function interface completely.  Pass in
2843         step and step_data structure.  Remove optimization for BODY with
2844         NEED_LENGTH_TEST == 0.
2845         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
2846         appropriate error handling code to use transliteration steps.  Remove
2847         optimization for BODY with NEED_LENGTH_TEST == 0.
2848         * iconvdata/8bit-gap.c: Likewise.
2849         * iconvdata/8bit-generic.c: Likewise.
2850         * iconvdata/ansi_x3.110.c: Likewise.
2851         * iconvdata/big5.c: Likewise.
2852         * iconvdata/big5hkscs.c: Likewise.
2853         * iconvdata/euc-cn.c: Likewise.
2854         * iconvdata/euc-jp.c: Likewise.
2855         * iconvdata/euc-kr.c: Likewise.
2856         * iconvdata/euc-tw.c: Likewise.
2857         * iconvdata/gbgbk.c: Likewise.
2858         * iconvdata/gbk.c: Likewise.
2859         * iconvdata/iso-2022-cn.c: Likewise.
2860         * iconvdata/iso-2022-jp.c: Likewise.
2861         * iconvdata/iso-2022-kr.c: Likewise.
2862         * iconvdata/iso646.c: Likewise.
2863         * iconvdata/iso8859-1.c: Likewise.
2864         * iconvdata/iso_6937-2.c: Likewise.
2865         * iconvdata/iso_6937.c: Likewise.
2866         * iconvdata/johab.c: Likewise.
2867         * iconvdata/sjis.c: Likewise.
2868         * iconvdata/t.61.c: Likewise.
2869         * iconvdata/uhc.c: Likewise.
2870         * iconvdata/unicode.c: Likewise.
2871         * iconvdata/utf-16.c: Likewise.
2872         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
2873         DL_CALL_FCT.
2874         * wcsmbs/btowc.c: Likewise.
2875         * wcsmbs/mbrtowc.c: Likewise.
2876         * wcsmbs/mbsnrtowcs.c: Likewise.
2877         * wcsmbs/mbsrtowcs.c: Likewise.
2878         * wcsmbs/wcrtomb.c: Likewise.
2879         * wcsmbs/wcsnrtombs.c: Likewise.
2880         * wcsmbs/wcsrtombs.c: Likewise.
2881         * wcsmbs/wctob.c: Likewise.
2883 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
2885         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
2886         other header files.  Mention about 128-byte cache line sizes.
2887         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
2888         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
2889         for current calling sequence.
2890         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
2892         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
2893         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2895         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
2896         and setrlimit syscalls for backwards compatibility.
2898 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
2900         * iconv/skeleton.c:  Rename converted written to correcter name
2901         irreversible.
2902         * iconv/gconv.c: Rename converted variable to correcter name
2903         irreversible.
2904         * iconv/gconv_int.h: Likewise.
2905         * iconv/gconv_simple.c: Likewise.
2906         * iconv/iconv.c: Likewise.
2907         * iconv/loop.c: Likewise.
2908         * iconvdata/8bit-gap.c: Likewise.
2909         * iconvdata/8bit-generic.c: Likewise.
2910         * iconvdata/ansi_x3.110.c: Likewise.
2911         * iconvdata/big5.c: Likewise.
2912         * iconvdata/big5hkscs.c: Likewise.
2913         * iconvdata/euc-cn.c: Likewise.
2914         * iconvdata/euc-jp.c: Likewise.
2915         * iconvdata/euc-kr.c: Likewise.
2916         * iconvdata/gbgbk.c: Likewise.
2917         * iconvdata/gbk.c: Likewise.
2918         * iconvdata/iso-2022-cn.c: Likewise.
2919         * iconvdata/iso-2022-jp.c: Likewise.
2920         * iconvdata/iso-2022-kr.c: Likewise.
2921         * iconvdata/iso646.c: Likewise.
2922         * iconvdata/iso8859-1.c: Likewise.
2923         * iconvdata/iso_6937-2.c: Likewise.
2924         * iconvdata/iso_6937.c: Likewise.
2925         * iconvdata/johab.c: Likewise.
2926         * iconvdata/sjis.c: Likewise.
2927         * iconvdata/t.61.c: Likewise.
2928         * iconvdata/uhc.c: Likewise.
2929         * iconvdata/unicode.c: Likewise.
2930         * iconvdata/utf-16.c: Likewise.
2932         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
2933         __cmsg_data field with __extension__.
2935 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
2937         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
2939 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
2941         * iconv/gconv_simple.c: Fix various small bugs in several
2942         functions.
2944         * iconv/loop.c: Fix comment.
2946 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
2948         * elf/link.h: Remove libc internal declarations.
2949         * include/link.h: Move them here.
2951 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
2953         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
2954         Patch by Dan Pop <Dan.Pop@cern.ch>.
2956         Rewrite error message handling.
2957         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
2958         _dl_catch_error.
2959         * elf/dl-error (struct catch): Add objname member.
2960         (_dl_signal_error): Take new parameter with object name.  When
2961         passing message on simply store object name and duplicate error
2962         message.
2963         (_dl_catch_error): Take new parameter.  Store object name in the
2964         place pointed to.
2965         * include/dlfcn.h: Adjust _dl_catch_error prototype.
2966         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
2967         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
2968         (dlerror): Add objname to asprintf() parameters.
2969         (_dl_error_run): Pass new parameter to _dl_catch_error.
2970         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
2971         * elf/dl-open.c (_dl_open): Likewise.
2972         * elf/rtld.c (dl_main): Likewise.
2973         * elf/dl-close.c: Mark error messages with N_().
2974         * elf/dl-deps.c: Likewise.
2975         * elf/dl-error.c: Likewise.
2976         * elf/dl-load.c: Likewise.
2977         * elf/dl-open.c: Likewise.
2978         * elf/dl-reloc.c: Likewise.
2979         * elf/dl-support.c: Likewise.
2980         * elf/dl-sym.c: Likewise.
2981         * elf/dl-version.c: Likewise.
2982         * elf/dl-lookup.c: Add comments about problems with error message
2983         translations.
2984         * elf/dl-reloc.c: Likewise.
2985         * elf/dl-version.c: Likewise.
2987 2000-06-09  H.J. Lu  <hjl@gnu.org>
2989         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
2990         after freeing it.
2992         * dlfcn/Makefile (distribute): Add failtestmod.c.
2993         (tests): Add failtest.
2994         Add rules to build and run failtest.
2995         * dlfcn/failtest.c: New file.
2996         * dlfcn/failtestmod.c: New file.
2998 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
3000         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
3001         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
3002         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
3003         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
3004         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
3006 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3008         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
3009         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
3011 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3012             Ulrich Drepper  <drepper@redhat.com>
3014         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
3015         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
3016         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
3017         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
3018         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
3019         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
3021 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
3023         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
3024         to find correct mount point despite wrong information from the
3025         kernel.
3027 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3029         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
3030         the address of a symbol so function pointers are handled properly.
3032 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
3034         * sysdeps/i386/Dist: Add bp-asm.h.
3036         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
3037         defaultdir variable instead of "/var/shm" everywhere.
3038         (defaultdir): Change to /dev/shm/.
3040 2000-06-08  Greg McGary  <greg@mcgary.org>
3042         * sysdeps/i386/bp-asm.h: New file.
3043         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
3044         offsets.  Add ENTER/LEAVE macros for optionally maintaining
3045         frame-pointer chain when debugging.
3046         * sysdeps/i386/add_n.S: Likewise.
3047         * sysdeps/i386/addmul_1.S: Likewise.
3048         * sysdeps/i386/lshift.S: Likewise.
3049         * sysdeps/i386/memchr.S: Likewise.
3050         * sysdeps/i386/memcmp.S: Likewise.
3051         * sysdeps/i386/mul_1.S: Likewise.
3052         * sysdeps/i386/rawmemchr.S: Likewise.
3053         * sysdeps/i386/rshift.S: Likewise.
3054         * sysdeps/i386/stpcpy.S: Likewise.
3055         * sysdeps/i386/stpncpy.S: Likewise.
3056         * sysdeps/i386/strchr.S: Likewise.
3057         * sysdeps/i386/strchrnul.S: Likewise.
3058         * sysdeps/i386/strcspn.S: Likewise.
3059         * sysdeps/i386/strpbrk.S: Likewise.
3060         * sysdeps/i386/strrchr.S: Likewise.
3061         * sysdeps/i386/strspn.S: Likewise.
3062         * sysdeps/i386/strtok.S: Likewise.
3063         * sysdeps/i386/sub_n.S: Likewise.
3064         * sysdeps/i386/submul_1.S: Likewise.
3065         * sysdeps/i386/elf/setjmp.S: Likewise.
3066         * sysdeps/i386/i486/strcat.S: Likewise.
3067         * sysdeps/i386/i486/strlen.S: Likewise.
3068         * sysdeps/i386/i586/add_n.S: Likewise.
3069         * sysdeps/i386/i586/lshift.S: Likewise.
3070         * sysdeps/i386/i586/memcpy.S: Likewise.
3071         * sysdeps/i386/i586/memset.S: Likewise.
3072         * sysdeps/i386/i586/rshift.S: Likewise.
3073         * sysdeps/i386/i586/strchr.S: Likewise.
3074         * sysdeps/i386/i586/strcpy.S: Likewise.
3075         * sysdeps/i386/i586/strlen.S: Likewise.
3076         * sysdeps/i386/i586/sub_n.S: Likewise.
3077         * sysdeps/i386/i686/add_n.S: Likewise.
3078         * sysdeps/i386/i686/memcpy.S: Likewise.
3079         * sysdeps/i386/i686/mempcpy.S: Likewise.
3080         * sysdeps/i386/i686/memset.S: Likewise.
3081         * sysdeps/i386/i686/strcmp.S: Likewise.
3083 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
3085         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
3087         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
3088         256 and don't use OPEN_MAX.
3090         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
3091         use it instead of LINK_MAX.
3092         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3094 2000-06-08  Andreas Jaeger  <aj@suse.de>
3096         * libio/genops.c (_IO_list_lock): Only compile body if we're
3097         thread safe.
3098         (_IO_list_unlock): Likewise.
3099         (_IO_list_resetlock): Likewise.
3101 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
3103         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
3104         unless user defined it.
3106         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
3107         if not defined by the user.
3109         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
3110         * libio/iofwrite.c (_IO_fwrite): Likewise.
3112         * time/time.h: Add missing __THROW for clock_getcpuclockid
3113         prototype.
3115         * elf/Makefile (distribute): Add dl-dtprocnum.h.
3116         * include/elf.h: Include also <dl-dtprocnum.h>.
3117         * elf/dl-deps.c: Likewise.
3118         * elf/dl-lookup.c: Likewise.
3119         * elf/dl-runtime.c: Likewise.
3120         * elf/dl-version.c: Likewise.
3121         * elf/do-rel.h: Likewise.
3122         * elf/dynamic-link.h: Likewise.
3123         * elf/link.h: Likewise.
3124         * elf/rtld.c: Likewise.
3125         * sysdeps/generic/dl-dtprocnum.h: New file.
3126         * sysdeps/ia64/dl-dtprocnum.h: New file.
3127         * sysdeps/mips/dl-dtprocnum.h: New file.
3128         * sysdeps/sparc/dl-dtprocnum.h: New file.
3130         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
3132         * elf/do-lookup.h: Add some __builtin_expect.
3134         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
3136         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
3137         (_dl_dynamic_weak): New variable.
3138         * elf/dl-support.c: Likewise.
3139         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
3140         * elf/do-lookup.h: If we find a weak definition treat it like a
3141         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
3142         case treat it like before.
3144         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
3145         is in main program.
3146         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
3148         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
3149         using l_map_start and l_map_end.
3151         * elf/dl-version.c: Add __builtin_expect in many places.
3153         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
3154         Update.
3156 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
3158         Lock for stdio stream list becomes global, for use in LinuxThreads.
3160         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
3161         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
3162         _IO_list_resetlock): New interface for iterating global list of
3163         streams without accessing the _IO_list_all global variable,
3164         and for manipulating the lock which protects this list.
3165         * libio/libioP.h: Likewise.
3166         * libio/Version: Add entries for the new functions.
3168         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
3169         pointer to _IO_FILE.
3171 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
3173         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
3174         BIT() must actually be BITw().
3176         * locale/programs/ld-ctype.c: Handle SP and space consistently.
3178         * locale/programs/charmap.c: Allow string arguments for
3179         code_set_name and repertoiremap.
3181 2000-06-07  Andreas Jaeger  <aj@suse.de>
3183         * elf/Makefile: Build ldconfig only when building shared libraries.
3185 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
3187         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
3188         __USE_ISOC99.
3189         (fdimf, __fdim, fdim): Likewise.
3191 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
3193         * locale/findlocale.c: Add __builtin_expect in many places.
3194         * locale/loadlocale.c: Likewise.
3196 2000-06-06  Greg McGary  <greg@mcgary.org>
3198         * sysdeps/mips/elf/start.S: Trim redundant code.
3200         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
3201         Use C comments throughout.  Line up operands column with tabs.
3202         * sysdeps/powerpc/strchr.S: Likewise.
3203         * sysdeps/powerpc/strcmp.S: Likewise.
3204         * sysdeps/powerpc/strcpy.S: Likewise.
3205         * sysdeps/powerpc/strlen.S: Likewise.
3207         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
3208         Get low part of &__curbrk with @l.
3210 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
3212         * iconvdata/utf-16.c: Add __builtin_expect in many places.
3213         * iconvdata/unicode.c: Likewise.
3214         * iconvdata/uhc.c: Likewise.
3215         * iconvdata/t.61.c: Likewise.
3216         * iconvdata/sjis.c: Likewise.
3217         * iconvdata/johab.c: Likewise.
3218         * iconvdata/iso_6937.c: Likewise.
3219         * iconvdata/iso_6937-2.c: Likewise.
3220         * iconvdata/iso8859-1.c: Likewise.
3221         * iconvdata/iso646.c: Likewise.
3222         * iconvdata/iso-2022-kr.c: Likewise.
3223         * iconvdata/iso-2022-jp.c: Likewise.
3224         * iconvdata/iso-2022-cn.c: Likewise.
3225         * iconvdata/gbgbk.c: Likewise.
3226         * iconvdata/gbk.c: Likewise.
3227         * iconvdata/euc-kr.c: Likewise.
3228         * iconvdata/euc-jp.c: Likewise.
3229         * iconvdata/euc-cn.c: Likewise.
3231 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
3233         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
3234         * iconvdata/big5.c: Likewise.
3235         * iconvdata/ansi_x3.110.c: Likewise.
3236         * iconvdata/8bit-generic.c: Likewise.
3237         * iconvdata/8bit-gap.c: Likewise.
3238         * iconv/loop.c: Likewise.
3239         * iconv/gconv_db.c: Likewise.
3240         * iconv/gconv_dl.c: Likewise.
3241         * iconv/gconv_simple.c: Likewise.
3242         * iconv/skeleton.c: Likewise.
3244         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
3245         (struct __gconv_step_data): Rename __is_last to __flags.
3246         * iconv/gconv_close.c: Change all uses of __is_last.
3247         * iconv/skeleton.c: Likewise.
3248         * iconvdata/iso-2022-cn.c: Likewise.
3249         * iconvdata/iso-2022-jp.c: Likewise.
3250         * iconvdata/iso-2022-kr.c: Likewise.
3251         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
3252         Recognize IGNORE error handling, set flag, and remove from name.
3253         * iconv/loop.c (ignore_errors_p): Define.
3254         Add flags parameter to both functions.
3255         * iconv/skeleton.c: Pass flags to all conversion functions.
3256         * iconv/gconv_simple.c: Add flags parameter to all functions.
3257         Don't return error for invald error if ignore flag is set.
3258         (ucs4_internal_loop_single): Add missing pointer increment.
3259         (internal_ucs4le_loop_single): Likewise.
3260         * iconv/iconv_prog.c: Implement handling of -c parameter.
3261         * iconvdata/8bit-gap.c: Don't return error for invald error if
3262         ignore flag is set.
3263         * iconvdata/8bit-generic.c: Likewise.
3264         * iconvdata/ansi_x3.110.c: Likewise.
3265         * iconvdata/big5.c: Likewise.
3266         * iconvdata/big5hkscs.c: Likewise.
3267         * iconvdata/euc-cn.c: Likewise.
3268         * iconvdata/euc-jp.c: Likewise.
3269         * iconvdata/euc-kr.c: Likewise.
3270         * iconvdata/gbgbk.c: Likewise.
3271         * iconvdata/gbk.c: Likewise.
3272         * iconvdata/iso-2022-cn.c: Likewise.
3273         * iconvdata/iso-2022-jp.c: Likewise.
3274         * iconvdata/iso-2022-kr.c: Likewise.
3275         * iconvdata/iso646.c: Likewise.
3276         * iconvdata/iso8859-1.c: Likewise.
3277         * iconvdata/iso_6937-2.c: Likewise.
3278         * iconvdata/iso_6937.c: Likewise.
3279         * iconvdata/johab.c: Likewise.
3280         * iconvdata/sjis.c: Likewise.
3281         * iconvdata/t.61.c: Likewise.
3282         * iconvdata/uhc.c: Likewise.
3283         * iconvdata/unicode.c: Likewise.
3284         * iconvdata/utf-16.c: Likewise.
3285         * libio/fileops.c: Likewise.
3286         * libio/iofwide.c: Likewise.
3287         * wcsmbs/btowc.c: Likewise.
3288         * wcsmbs/mbrtowc.c: Likewise.
3289         * wcsmbs/mbsnrtowcs.c: Likewise.
3290         * wcsmbs/mbsrtowcs.c: Likewise.
3291         * wcsmbs/wcrtomb.c: Likewise.
3292         * wcsmbs/wcsnrtombs.c: Likewise.
3293         * wcsmbs/wcsrtombs.c: Likewise.
3294         * wcsmbs/wctob.c: Likewise.
3296         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
3297         an error.
3299 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
3301         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
3302         counter for the object we are releasing, just decrement it.
3303         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
3305 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
3307         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
3308         if -ffast-math.
3310 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
3312         * iconvdata/big5hkscs.c: New file.
3313         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
3315         * iconvdata/gconv-modules: Add entry for new module.
3316         * iconvdata/Makefile (modules): Add BIG5HKSCS.
3317         (distribute): Add big5hkscs.c.
3319 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
3321         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
3322         inlines to match prototypes in mathcalls.h.
3323         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3324         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
3325         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3326         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3328 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
3330         * elf/elf.h (SHT_SUNW_move): Define.
3332         * elf/elf.h: Add more Solaris compatiblity definitions.
3334 2000-06-03  Andreas Jaeger  <aj@suse.de>
3336         * sysdeps/powerpc/dl-start.S: Close open comment.
3338 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
3340         * inet/Versions: Fix typo in rresvport_af export.
3342 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
3344         * math/tgmath.h: Pretty print.
3346 2000-06-02  Andreas Jaeger  <aj@suse.de>
3348         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
3349         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3351 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
3353         * elf/rtld.c (process_envvars): Test for = after variable name.
3355 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
3357         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
3358         have extra call to __gmon_start__, use the pointer we already have.
3360         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
3361         shifting.
3363         * sysdeps/i386/elf/setjmp.S: Work around change is recent
3364         binutils.  gas now emits a jump through the PLT instead of a
3365         relative jump if the jump target is an exported symbol.
3367 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
3369         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
3371 2000-05-31  Andreas Jaeger  <aj@suse.de>
3373         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
3374         gregset_t.
3376         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
3377         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3379         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
3380         syscall.
3381         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3383 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
3385         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
3387         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
3388         * locale/localeconv.c: Make function versioned (with same definition).
3390         * elf/Makefile (modules-names): Strip before using it.
3392 2000-05-30  Andreas Jaeger  <aj@suse.de>
3394         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
3395         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
3396         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
3397         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
3398         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
3399         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
3401 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
3403         * Makefile: Add GNU make magic.
3405         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
3406         Removed.
3407         * inet/rcmd.c: Remove __P.  Remove unused variables.
3408         (iruserfopen): Make first parameter const.
3409         (ruserok_sa): Return result of ruserok2_sa.
3410         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
3411         * inet/rexec.c: Remove unused variables.  Other small cleanups.
3412         * inet/ruserpass.c: Remove __P.  Remove unused variables.
3413         (ruserpass): Check results of memory allocation.
3414         * include/netdb.h: Add prototype for ruserpass.
3416 2000-05-29  Andreas Jaeger  <aj@suse.de>
3418         * elf/readlib.c (interpreters): Use LD_SO since this is supported
3419         for all platforms.
3421 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
3423         * inet/rcmd.c (rresvport_af): Use correct port number.
3425 2000-05-26  Andreas Schwab  <schwab@suse.de>
3427         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
3428         entries in all-sonames.
3429         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
3430         preserving the old name if different for compatibility.
3432 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
3434         * posix/Makefile (tests): Add tst-spawn.
3435         (tst-spawn-ARGS): New variable.
3436         * posix/tst-spawn.c: New file.
3438         * posix/spawn_faction_addclose.c: Correctly account for new entry.
3439         * posix/spawn_faction_adddup2.c: Likewise.
3440         * posix/spawn_faction_addopen.c: Likewise.
3441         * posix/spawni.c: Correctly test for success of dup2 calls.
3443         * posix/tst-preadwrite.c: Check success of malloc call.
3445 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3447         * posix/Makefile (tests): Add tst-exec.
3448         (tst-exec-ARGS): New variable.
3449         * posix/tst-exec.c: New file.
3451         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
3453 2000-05-04  Andreas Jaeger  <aj@suse.de>
3455         * string/string.h: Remove __strdup prototype, it's not needed in
3456         this file anymore.
3458 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3460         * posix/Makefile (tests): Add tst-fork.
3461         * posix/tst-fork.c: New file.
3463         * resolv/inet_pton.c: Loose __P.
3465 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
3467         * libio/libioP.h (_IO_CHECK_WIDE): Define.
3468         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
3469         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3470         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
3471         _IO_CHECK_WIDE fails.
3473 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3475         * po/da.po: New file.
3477         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
3478         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
3480         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
3481         (Other iconv Implementations): Fix typo.
3482         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
3484 2000-05-27  Andreas Jaeger  <aj@suse.de>
3486         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
3487         normal version now.
3488         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
3489         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
3490         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3491         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3492         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
3493         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
3495         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
3496         endianness to decide how to pass arguments.
3497         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
3499         * elf/vismain.c: Use test-skeleton interface.
3500         (TEST_FUNCTION): New macro.
3501         (do_test): Renamed from main.
3503 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
3505         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
3506         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
3508         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
3509         handling of AI_V4MAPPED flag.
3511         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
3512         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
3513         perform lookup for T_A type and tell getanswer_r to convert the
3514         result with new argument.
3515         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
3516         Don't convert addresses from IPv4 to IPv6 here.
3517         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
3518         IPv6 is wanted.  Allow qtype and type from reply to disagree if
3519         IPv4 mapping has to be done.  Perform mappings if required by the
3520         caller and not if RES_USE_INET6 bit in _res.options is set.
3521         Add several __builtin_expect.
3523 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
3525         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
3527         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
3528         NULL.
3530         * posix/tst-preadwrite.c: Allow parallel execution of
3531         tst-preadwrite and tst-preadwrite64.
3533         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
3534         * posix/tst-truncate.c: New file.
3535         * posix/tst-truncate64.c: New file.
3537         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
3538         was switched.
3540         * posix/Makefile (tests): Add tst-preadwrite64.
3541         * posix/tst-preadwrite.c: Alloc file being used also for testing
3542         pread64 and pwrite64.
3543         * posix/tst-preadwrite64.c: New file.
3545 2000-05-26  Andreas Jaeger  <aj@suse.de>
3547         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
3548         of arguments dependend on endianness.
3549         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3551         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
3552         normal version now.
3553         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3554         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3555         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3556         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3558         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
3559         endianness to check how to pass argument.
3560         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
3562         * elf/ldconfig.h: Update parameter list for process_elf_file.
3564         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
3565         Add parameter file_length and pass it ot process_elf*file.
3567         * sysdeps/generic/readelflib.c (check_ptr): New.
3568         (process_elf_file): Use check_ptr to check all accesses to the
3569         mmapped file. Add parameter file_length.
3571         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
3572         library names.
3574         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
3575         Closes PR libc/1573, reported by Bradley White
3576         <bww@laurelnetworks.com>.
3578 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
3580         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
3581         __FAST_MATH__ is defined.
3583 2000-05-22  Andreas Jaeger  <aj@suse.de>
3585         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
3586         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
3588         * manual/math.texi (FP Function Optimizations): Document gcc
3589         -ffast-math behaviour with mathinlines.
3591         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
3592         functions unless -ffast-math is given to gcc.
3594 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
3596         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
3597         __sincosl): Guard with __USE_GNU.
3599 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
3601         * csu/Makefile (routines): Add check_fds.
3602         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
3603         binaries.  Add various __builtin_expect.
3604         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
3605         * sysdeps/generic/check_fds.c: ...here.  New file.
3607         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
3608         binaries if file /etc/suid-debug is available.
3610         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
3611         and wcseqorder members.
3612         (struct locale_collate_t): Likewise.
3613         (collate_finish): Assign collation sequence value to each character.
3614         Create tables for output.
3615         (collate_output): Write out tables with collation sequence information.
3616         * locale/C-collate.c: Provide C locale data for collation sequence
3617         table.
3618         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
3619         _NL_COLLATE_COLLSEQWC.
3620         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
3621         _NL_COLLATE_COLLSEQWC.
3622         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
3623         include fnmatch_loop.c.
3624         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
3625         character is matched by range expression.  Use collation sequence
3626         table.  Outside glibc fall back on simple character value comparison.
3628 2000-05-24  Andreas Jaeger  <aj@suse.de>
3630         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
3631         words.
3633         * intl/Makefile: Run gettext-test only if msgfmt is available.
3635         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
3636         Define it for newer kernels.
3638 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
3640         * elf/dl-sym.c: Minor cleanups.
3642         * configure.in: Add test for .protected.
3643         * config.make.in: Add have-protected variable.
3644         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
3645         (tests-vis-yes): Add vismain.
3646         (modules-names): Add $(modules-vis-$(have-protected)).
3647         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
3648         Add rules to generate and run vismain.
3649         * elf/vismain.c: New file.
3650         * elf/vismod1.c: New file.
3651         * elf/vismod2.c: New file.
3652         * elf/vismod3.c: New file.
3654 2000-05-23  Andreas Jaeger  <aj@suse.de>
3656         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
3658         * manual/search.texi (Array Sort Function): Document that qsort is
3659         not necessarily in-place.
3661         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
3662         Closes PR libc/1731.
3664         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
3665         * dirent/scandir64.c: Likewise.
3666         * pwd/getpw.c: Likewise.
3667         * stdlib/bsearch.c (bsearch): Likewise.
3668         * stdlib/tst-strtoll.c: Likewise.
3669         * localedata/collate-test.c: Likewise.
3670         * localedata/xfrm-test.c: Likewise.
3671         * posix/bsd-getpgrp.c: Likewise.
3672         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
3673         * sysdeps/generic/bits/siginfo.h: Likewise.
3674         * sysdeps/generic/bits/sockaddr.h: Likewise.
3675         * sysdeps/generic/sys/swap.h: Likewise.
3676         * sysdeps/generic/sys/sysinfo.h: Likewise.
3677         * sysdeps/generic/vfork.c: Likewise.
3678         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
3679         * sysdeps/mach/hurd/fdopen.c: Likewise.
3680         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
3681         * sysdeps/unix/sysv/linux/poll.c: Likewise.
3682         * sysdeps/unix/sysv/linux/readv.c: Likewise.
3683         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3684         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3685         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3686         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
3688         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
3689         * shadow/lckpwdf.c: Likewise.
3690         * stdlib/tst-strtol.c: Likewise.
3691         * sysdeps/generic/tcsetattr.c: Likewise.
3692         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
3693         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
3695 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
3697         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
3698         free it and set to (void *) -1.
3700 2000-05-22  Jakub Jelinek <jakub@redhat.com>
3702         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
3703         not the second character in the range.
3704         * stdio-common/tstscanf.c (main): Add testcase for the above.
3705         Reported by jik@kamens.brookline.ma.us.
3707 2000-05-21  H.J. Lu  <hjl@gnu.org>
3709         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
3710         with noexec and noplt parameter.
3711         (do_lookup): Likewise.
3713         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
3714         do_lookup.  Support STV_PROTECTED.
3715         (_dl_lookup_symbol_skip): Likewise.
3716         (_dl_lookup_versioned_symbol): Likewise.
3717         (_dl_lookup_versioned_symbol_skip): Likewise.
3719         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
3721         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
3723 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
3725         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
3726         * sysdeps/i386/bits/huge_val.h: Likewise.
3727         * sysdeps/ieee754/bits/huge_val.h: Likewise.
3728         * sysdeps/m68k/bits/huge_val.h: Likewise.
3729         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
3730         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
3732 2000-05-22  Andreas Jaeger  <aj@suse.de>
3734         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
3735         change in iconv.h.
3737 2000-05-19  Andreas Jaeger  <aj@suse.de>
3739         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
3740         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
3741         breaks compilation without linuxthreads.
3743 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
3745         * sysdeps/ia64/memccpy.S: New file.
3746         * sysdeps/ia64/memchr.S: New file.
3747         * sysdeps/ia64/memcmp.S: New file.
3748         * sysdeps/ia64/memcpy.S: New file.
3749         * sysdeps/ia64/memmove.S: New file.
3750         * sysdeps/ia64/memset.S: New file.
3751         * sysdeps/ia64/strcat.S: New file.
3752         * sysdeps/ia64/strchr.S: New file.
3753         * sysdeps/ia64/strcmp.S: New file.
3754         * sysdeps/ia64/strcpy.S: New file.
3755         * sysdeps/ia64/strlen.S: New file.
3756         * sysdeps/ia64/strncmp.S: New file.
3757         * sysdeps/ia64/strncpy.S: New file.
3758         * sysdeps/ia64/softpipe.h: New file.
3759         Patches by Dan Pop <Dan.Pop@cern.ch>.
3761         * manual/memory.texi: Document memory handling functions (mlock,
3762         munlock, mlockall, munlockall, brk, and sbrk)
3763         * manual/time.texi: Document timespec and friends.
3764         * manual/conf.texi: Fix references.
3765         * manual/ctype.texi: Likewise.
3766         * manual/errno.texi: Likewise.
3767         * manual/intro.texi: Likewise.
3768         * manual/locale.texi: Likewise.
3769         * manual/sysinfo.texi: Likewise.
3770         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
3772 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
3774         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
3775         * sysdeps/ia64/dl-lookupcfg.h: ...here.
3777 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
3779         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
3780         dxfer_direction.
3782 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
3784         * locale/locale.h (struct lconv): Add new elements from ISO C99.
3785         * locale/localeconv.c: Initialize new elements from ISO C99.
3786         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
3787         new standard elements.
3788         * locale/categories.def: Adjust accordingly.
3790         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
3791         * iconv/iconv.c: Likewise.
3792         * conform/data/iconv.h-data: Likewise.
3793         * iconv/iconv_prog.c (process_block): Remove const from second
3794         parameter.
3795         (main): Remove const from addr definition.
3796         * manual/charset.texi (Generic Conversion Interface): Remove from
3797         inbuf parameter of iconv.
3799         * intl/dcigettext.c: Fix typo in comment.
3801 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
3803         * resolv/res_libc.c (_res): Initialize _sock to -1.
3805 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
3807         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
3808         (fopencookie@@GLIBC_2.2): New.
3809         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
3810         (fopencookie@GLIBC_2.0): New.
3811         * libio/Versions: Add fopencookie to GLIBC_2.2.
3813 2000-05-18  Andreas Jaeger  <aj@suse.de>
3815         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
3816         Closes PR libc/1731.
3818         * manual/arith.texi (Parsing of Integers): Fix typo.
3819         Closes PR libc/1744, reported by blp@gnu.org.
3821 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
3823         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
3824         __extension__ to hexadecimal floating constant notation.
3825         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
3826         Likewise.
3827         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
3828         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
3829         Likewise.
3830         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
3831         HUGE_VALL): Likewise.
3832         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
3833         HUGE_VALL): Likewise.
3834         (HUGE_VALL): Set to HUGE_VAL on sparc32.
3836 2000-05-17  Andreas Jaeger  <aj@suse.de>
3838         * string/envz.h: Add pure attributes if possible.
3840         * string/argz.h: argz_count is a pure function.
3842         * string/strings.h: Add pure and const attributes if possible.
3844         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
3845         possibly searching through the whole memory.
3846         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
3848 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
3850         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
3851         not yet defined.
3852         (_dl_cache_check_flags): Likewise.
3853         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
3854         dl-cache.h.
3856 2000-05-17  Andreas Jaeger  <aj@suse.de>
3858         * manual/creature.texi (Feature Test Macros): Remove paragraph
3859         since the description is wrong.
3860         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
3862         * scripts/config.sub: New version.
3863         * scripts/config.guess: Likewise.
3864         * manual/texinfo.tex: Likewise.
3866         * time/test_time.args: Removed.
3867         * time/Makefile (test_time-ARGS): Added contents here instead.
3869         * posix/tstgetopt.args: Removed.
3870         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
3872         * Rules: Allow arguments for test files to be specified in
3873         Makefile with testname-ARGS; remove rules with .args in it.
3875         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
3876         remove old bogus rule for opendir-tst1.args.
3878         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
3880         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
3881         into objdir.  This allows a readonly sourcetree.
3882         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
3884 2000-05-16  Andreas Jaeger  <aj@suse.de>,
3885             David Huggins-Daines <dhd@linuxcare.com>
3887         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
3888         cache_data in case of only new cache format correctly.
3890         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
3891         cache_file_new.
3893         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
3894         struct cache_file_new.
3896         * elf/cache.c (save_cache): Fix str_offset if only new cache is
3897         present.
3899         * elf/cache.c (save_cache): Align struct new_file_cache.
3900         (print_cache): Likewise.
3902 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
3904         * elf/soinit.c (__libc_global_ctors): Move
3905         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
3906         * resolv/resolv.h (__res_state): Added __attribute__((const)).
3907         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
3908         variable, don't define it to __res_state call.
3910 2000-05-13  Andreas Jaeger  <aj@suse.de>
3912         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
3913         Linux 2.3.99pre7.
3914         (AF_PPPOX): Likewise.
3915         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
3916         (AF_PPPOX): Likewise.
3918 2000-05-12  Andreas Jaeger  <aj@suse.de>
3920         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
3921         Reported by tmoestl@gmx.net, closes PR libc/1732.
3923 2000-05-11  Jan Hubicka  <jh@suse.cz>
3925         * misc/sys/cdefs.h: Add support for pure attribute.
3927         * include/string.h: Add __attribute_pure__ to various functions.
3928         * string/string.h: Likewise.
3930 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
3932         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
3933         argument.
3934         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3935         R_SPARC_UA64.
3936         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
3938 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
3940         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
3941         at proper place.  Compute the high nibble correctly.
3943 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
3945         * elf/ldconfig.c: Include elf.h.
3947         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
3948         (_dl_vsym): Likewise.
3949         Reported by Owen Taylor <otaylor@redhat.com>.
3951         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
3952         always.
3954 2000-05-08  Andreas Jaeger  <aj@suse.de>
3956         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
3958         * intl/bindtextdom.c (set_binding_values): Add prototype.
3960 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
3962         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
3963         call to elf_machine_fixup_plt.
3964         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3965         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3967 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
3969         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
3970         they are not dlclose'd from underneath us.
3972 2000-05-08  Andreas Schwab  <schwab@suse.de>
3974         * posix/execle.c: Fix size parameter of memcpy.
3976 2000-05-08  Andreas Schwab  <schwab@suse.de>
3978         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
3979         getpagesize syscall if available.
3981 2000-05-08  Andreas Jaeger  <aj@suse.de>
3983         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
3984         set errno.
3986 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
3988         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
3989         sizeof(struct link_map *) chunks, not in bytes.
3991 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
3993         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
3994         only needed for locale.
3995         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
3996         It's only needed for catgets.
3997         Patches by Greg McGary <gkm@eng.ascend.com>.
3999 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
4001         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
4002         Remove duplicate <errno.h> include.  Remove inclusion of
4003         <libintl.h> and "nsswitch.h".
4004         (set_cloexec_flag): New function, broken out of dbopen.
4005         (dbopen): Changed return type to `enum
4006         nss_status'.  Mostly rewritten to make sure that we do not report
4007         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
4008         (internal_setent): Change return type to nss_status.
4009         Document, and make sure that the function
4010         behaves accordingly.  Make dynamically loading the database
4011         library really thread-safe and return NSS_STATUS_UNAVAIL if it
4012         failed.
4013         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
4014         unecessary casts.
4015         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
4016         documentation.
4017         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
4018         c_get function member.
4019         * nss/nss_db/nss_db.h: Add and tweak some comments.
4020         (DBT): Move typedef before NSS_DBC typedef.
4021         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
4023 2000-05-07  H.J. Lu  <hjl@gnu.org>
4025         * csu/initfini.c: Moved to ....
4026         * sysdeps/generic/initfini.c: ...here.
4028         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
4030 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
4032         * manual/resource.texi: Document POSIX scheduling functions.
4033         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4035         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
4036         reading anything.  Reported by Andries.Brouwer@cwi.nl.
4038         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
4039         for x since promotion in comparison might leads to unexpected
4040         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
4042         * iconv/Makefile (tests): Add tst-iconv1.
4043         * iconv/tst-iconv1.c: New file.
4044         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
4045         empty input buffer over full output buffer.
4046         (ucs4_internal_loop): Likewise.
4047         (ucs4_internal_loop_unaligned): Likewise.
4048         (internal_ucs4le_loop): Likewise.
4049         (internal_ucs4le_loop_unaligned): Likewise.
4050         (ucs4le_internal_loop): Likewise.
4051         (ucs4le_internal_loop_unaligned): Likewise.
4052         Reported by yaoz@nih.gov.
4054 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
4056         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
4057         returned != __GCONV_OK, there is nothing to clean up.
4059 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
4061         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
4062         OUTPUT_CHARSET environment variables.
4064 2000-05-06  Andreas Jaeger  <aj@suse.de>
4066         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
4067         (struct cache_file_new): New.
4068         (struct file_entry): New (moved from cache.c).
4069         (struct cache_file): New (moved from cache.c).
4071         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
4072         from _dl_load_cache_lookup.
4073         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
4074         the different cache formats.
4075         New variable cache_new for new format.
4077         * elf/ldconfig.h: Change according to changes in cache.c and
4078         ldconfig.c; remove cache_libcmp; add opt_format.
4080         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
4081         stuff that's defined in those headers.
4082         Add hwcap to struct lib_entry.
4083         (opt_format): New variable to select cache format.
4084         (options): Add format parameter.
4085         (is_hwcap): New function.
4086         (path_hwcap): New function.
4087         (parse_opt): Handle new format parameter.
4088         (search_dir): Handle hwcap, search also subdirectories with hwcap.
4090         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
4091         ldconfig is part of glibc.
4092         Include dl-cache.h and remove stuff that's defined there.
4093         (struct cache_entry): Add new member hwcap.
4094         (print_entry): Print hwcap, cleanup a bit.
4095         (print_cache): Print new and old formats.
4096         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
4097         (save_cache): Save new and old formats.
4098         (add_to_cache): Handle hwcap.
4100         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
4101         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
4102         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
4103         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
4104         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
4105         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
4107 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
4109         * intl/dcigettext.c (alignof): New macro.
4110         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
4111         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
4112         freemem_size to 0.
4114 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
4116         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
4117         return value.
4119 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
4121         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
4122         (mempcpy): Correct typo is parameter list.
4124 2000-05-06  Andreas Jaeger  <aj@suse.de>
4126         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
4127         functions unless -ffast-math is given to gcc.
4129 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
4131         * po/ko.po: Update from translation team.
4133 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
4135         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
4136         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
4137         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
4138         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
4139         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
4140         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
4142         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
4143         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
4144         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
4146         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
4147         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
4148         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
4149         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
4151         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
4152         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
4154 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
4156         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
4157         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
4159         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
4160         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
4162         * sysdeps/ia64/Implies: New file.
4163         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
4164         * sysdeps/ia64/Makefile: New file.
4165         * sysdeps/ia64/gmp-mparam.h: New file,
4167         * sysdeps/ia64/elf/start.S: New file.
4169         * sysdeps/ia64/bits/fenv.h: New file.
4171 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
4173         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
4175 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
4177         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
4178         ia64 has 64 bit .hash entries just as the Alpha.
4180 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
4182         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
4184 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
4186         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
4187         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
4188         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
4189         * sysdeps/ia64/fpu/fegetenv.c: New file.
4190         * sysdeps/ia64/fpu/fegetexcept.c: New file.
4191         * sysdeps/ia64/fpu/fegetround.c: New file.
4192         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
4193         * sysdeps/ia64/fpu/fesetenv.c: New file.
4194         * sysdeps/ia64/fpu/fesetround.c: New file.
4195         * sysdeps/ia64/fpu/feupdateenv.c: New file.
4196         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
4197         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
4198         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
4199         * sysdeps/ia64/fpu/ftestexcept.c: New file.
4201 2000-05-05  Andreas Jaeger  <aj@suse.de>
4203         * misc/tst-tsearch.c (main): Correct type for initstate argument.
4205         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
4206         (_dl_string_hwcap): New, does nothing.
4208         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
4209         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4210         (_dl_string_hwcap): New function, converts from string to hwcap
4211         encoding.
4212         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
4213         (_DL_HWCAP_COUNT): New.
4214         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4215         (_dl_string_hwcap): New function, converts from string to hwcap
4216         encoding.
4217         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
4218         (_DL_HWCAP_COUNT): New.
4219         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4220         (_dl_string_hwcap): New function, converts from string to hwcap
4221         encoding.
4223 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
4225         * elf/Makefile (distribute): Add dl-lookupcfg.h.
4226         * sysdeps/ia64/Dist: New file.
4228         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
4229         parameter to mprotect and for variable assignments.
4231 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
4233         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
4234         validity of map before dereferencing it.
4236         * elf/dl-reloc.c (RESOLVE_MAP): Define.
4238 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
4240         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
4241         lookup to the arguments to elf_machine_fixup_plt().
4243         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
4244         of the symbol being resolved to input argument list and make the
4245         function return the pointer to the reloc.
4247         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
4248         return valuie to lookup_t and return the value.
4249         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
4250         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
4251         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
4252         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
4253         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
4254         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
4256         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
4257         Make it an inline function returning value after calling
4258         __elf_machine_fixup_plt().
4260         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
4261         symbol address.
4263         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
4264         obtain the symbol address.
4266         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
4267         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
4269         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
4270         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
4271         inline on non ia64.
4273 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
4275         * elf/dl-runtime.c (fixup): Use the portable macros to get the
4276         symbol address of an object.
4278         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
4279         the symbol address of an object.
4281         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
4282         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
4283         (_dl_lookup_symbol_skip): Likewise.
4284         (_dl_lookup_versioned_symbol): Likewise.
4285         (_dl_lookup_versioned_symbol_skip): Likewise.
4287 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
4289         * elf/rtld.c (_dl_start): Get the function pointer return address
4290         via _dl_start_address for architectures that need a function
4291         pointer descriptor rather than just a pointer (ia64).
4293         * sysdeps/generic/dl-lookupcfg.h: New file.
4294         * sysdeps/ia64/dl-lookupcfg.h: New file.
4295         * sysdeps/ia64/dl-machine.h: New file.
4296         * sysdeps/ia64/dl-symaddr.c: New file.
4297         * sysdeps/ia64/dl-fptr.c: New file.
4299         * elf/elf.h: Add IA-64 specific definitions.
4301 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
4303         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
4304         end of enum.
4306 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
4308         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
4309         happy.
4311 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
4313         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
4314         symbol.  Call _dl_init rather than the old way.
4316 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
4318         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
4319         test for pointer in range of DSO address space.
4321 2000-05-04  Andreas Jaeger  <aj@suse.de>
4323         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
4325 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4327         * locale/findlocale.c (_nl_find_locale): Add new parameter to
4328         calls of _nl_make_l10nflist.
4330         * libio/stdio.h: Make fseeko and ftello prototypes available is
4331         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
4333         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
4334         real unsetenv implementation from 1999-07-29 [PR libc/1714].
4336 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
4338         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
4339         before calling tfind.
4341 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
4343         * resolv/resolv.h (res_querydomain): Remove redefinition to
4344         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
4346 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4348         * po/gl.po: Update from translation team.
4350         * manual/intro.texi (Program Basics): Change section title.
4351         * manual/process.texi: Fix reference.
4352         (Executing a File): Add reference exec in other section.
4353         * manual/signal.texi: Fix reference.
4354         * manual/startup.texi: Document syscall function.
4355         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4357 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4359         * intl/libintl.h (bind_textdomain_codeset): New declaration.
4360         * intl/bindtextdom.c (set_binding_values): New function.
4361         (bindtextdomain): Call it.
4362         (bind_textdomain_codeset): New function.
4363         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
4364         (free_mem): Free each binding's codeset.
4365         * intl/gettextP.h (struct binding): Add codeset field.
4366         (_nl_find_domain): Add domainbinding argument.
4367         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
4368         Pass it to _nl_make_l10nflist.
4369         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
4370         (_nl_make_l10nflist): Add domainbinding argument.
4371         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
4372         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
4373         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
4374         locale_charset().
4375         * manual/message.texi: New node "Charset conversion in gettext".
4377 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
4379         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
4380         appropriate.  Handle possible __read error.
4382 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4384         * intl/gettextP.h (__builtin_expect): Define as empty if not a
4385         compiler builtin.
4386         * intl/loadinfo.h (__builtin_expect): Likewise.
4387         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
4388         __builtin_expect where appropriate.
4389         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
4390         * intl/localealias.c (extend_alias_table): Return an error indicator.
4391         (read_alias_file): Bail out if extend_alias_table fails.
4393 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4395         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
4396         * intl/localealias.c: Likewise.
4398 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4400         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
4401         Initialize domain->plural and domain->nplurals even if there is no
4402         nullentry.
4404 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4406         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
4407         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
4408         In case of failure, goto converted.
4410 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4412         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
4413         * iconv/gconv_int.h (norm_add_slashes): Move to here.
4414         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
4415         __gconv_open.
4417 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4419         * intl/dcigettext.c (transcmp): Compare the domains as well.
4420         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
4421         not before.
4422         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
4423         <errno.h>.
4425 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4427         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
4428         Reported by Bruno Haible.
4430 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4432         * manual/arith.texi: Remove @w from @itemize.
4434 2000-05-02  Andreas Jaeger  <aj@suse.de>
4436         * conform/data/tar.h-data: Add some checks for specific values.
4438         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
4439         and RAND_MAX.
4441         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
4442         FOPEN_MAX.
4444         * conform/data/netinet/in.h-data: Add exact checks for the values
4445         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
4447         * conform/data/float.h-data: Add some minimal values.
4449         * conform/conformtest.pl: Test for macros with string constants,
4450         check for minimum and maximum values.
4451         Add limits.h to headers.
4453         * conform/data/cpio.h-data: Test for value of MAGIC.
4455         * conform/data/limits.h-data: New file.
4457 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
4459         * math/Makefile (headers): Add bits/fenvinline.h.
4461 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
4463         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
4464         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
4466         * posix/Versions: Change posix_spawnattr_getdefault and
4467         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
4468         and posix_spawnattr_setsigdefault respectively.
4469         * posix/spawn.h: Likewise.
4470         * posix/spawnattr_getdefault.h: Likewise.
4471         * posix/spawnattr_setdefault.h: Likewise.
4472         * conform/data/spawn.h-data: Likewise.
4474 2000-05-01  Andreas Jaeger  <aj@suse.de>
4476         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
4478 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
4480         * manual/sysinfo.texi: Document getdomainname, setdomainname
4481         and sysctl.
4482         * manual/string.texi: Fix typo.
4483         * manual/terminal.texi: Document gtty and stty.
4484         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4486 2000-04-30  Andreas Jaeger  <aj@suse.de>
4488         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
4489         accordance with Austin Draft.
4491 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
4493         * catgets/gencat.c (read_input_file): Use isblank and not isspace
4494         to recognize second character in comment line.
4496         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
4497         ENOBUFS if we are out of memory.
4499         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
4500         available if __USE_XOPEN2K.
4501         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
4502         * sysdeps/unix/common/bits/fcntl.h: Likewise.
4503         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4504         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4505         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
4506         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4507         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
4508         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
4510 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
4512         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
4513         Recognize option -s, -c, and -l.
4515 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
4517         * nscd/nscd.c: Start new session for nscd, drop privilegs
4518         to configured user if requested and no -S parameter are used.
4519         * nscd/nscd.conf: Add new option "server-user".
4520         * nscd/nscd_conf.c: Add support for new "server-user" option.
4521         * nscd/nscd.h: Add declaration for server_user variable.
4522         Based on patch by Chris Wing <wingc@engin.umich.edu>
4524 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4526         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
4527         that changing the __restore and __restore_rt signal return code
4528         will break GDB.
4530 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4532         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
4533         <sys/user.h>.
4535 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4537         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
4539 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
4541         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
4542         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
4543         arpa/inet.h.
4544         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
4545         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
4546         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
4547         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
4548         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
4549         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
4550         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
4551         posix_fallocate, and posix_madvise.
4552         * conform/data/netdb.h-data: New file.
4553         * conform/data/pthread.h-data: Add pthread_barrier_t,
4554         pthread_barrierattr_t, pthread_barrier_destroy,
4555         pthread_barrier_init, pthread_barrier_wait,
4556         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
4557         pthread_barrierattr_init, pthread_barrierattr_setpshared,
4558         pthread_condattr_getclock, pthread_condattr_setclock,
4559         pthread_getcpuclockid, pthread_mutex_timedlock,
4560         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4561         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
4562         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
4563         * conform/data/sched.h-data: Add sched_ss_low_priority,
4564         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
4565         SCHED_SPORADIC.
4566         * conform/data/semaphore.h-data: Add sem_timedwait.
4567         * conform/data/signal.h-data: Add SIGIO.
4568         * conform/data/spawn.h-data: New file.
4569         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
4570         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
4571         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
4572         Fix typo in gmtime_r definition.
4573         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
4574         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
4575         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
4576         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
4577         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
4578         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
4579         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
4580         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
4581         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
4582         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
4583         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
4584         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
4585         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
4586         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
4587         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
4588         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
4589         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
4590         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
4591         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
4592         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
4593         typo in off_t definition.
4594         * conform/data/net/if.h-data: New file.
4595         * conform/data/netinet/in.h-data: New file.
4596         * conform/data/netinet/tcp.h-data: New file.
4597         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
4598         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
4599         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
4600         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
4601         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
4602         and posix_typed_mem_open.
4603         * conform/data/sys/socket.h-data: New file.
4604         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
4605         * conform/data/sys/types.h-data: Add pthread_barrier_t,
4606         pthread_barrierattr_t, and pthread_spinlock_t.
4607         * conform/data/sys/un.h-data: New file.
4608         * conform/data/sys/utsname.h-data: New file.
4610         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
4611         parameter.
4612         * inet/gethstbyad.c (gethostbyname): Likewise.
4613         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
4614         * inet/getipnodebyad.c (getipnodebyad): Likewise.
4615         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
4616         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
4617         Likewise.
4618         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
4619         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
4620         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
4621         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
4622         * resolv/gethnamaddr.c (gethostbyname): Likewise.
4623         * resolv/netdb.h (struct hostent): Fix type of h_length member.
4624         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
4625         and second parameter.
4627         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
4628         == NULL.
4630 2000-04-29  Andreas Jaeger  <aj@suse.de>
4632         * conform/data/arpa/inet.h-data: New file.
4634 2000-04-28  Geoff Clare <gwc@unisoft.com>
4636         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
4637         path passed to ftw() or nftw() is an empty string.
4638         Closes PR libc/1710.
4640 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
4642         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
4643         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
4644         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
4645         * localedata/tst-mbswcs4.c: New file.
4646         * localedata/tst-mbswcs5.c: New file.
4648         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
4649         == NULL.  Little optimization.
4651         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
4652         DT_PREINIT_ARRAYSZ).
4653         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
4655         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
4656         overflows in conversion from ASCII.
4658 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
4660         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
4661         * Makerules (full_config_sysdirs): Likewise.
4662         * MakeTAGS (full_config_sysdirs): Likewise.
4664 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
4666         * .cvsignore: Remove linuxthreads.
4667         * po/.cvsignore: Remove *.pot.
4668         * posix/glob/.cvsignore: Removed.
4669         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
4671 2000-04-25  Andreas Jaeger  <aj@suse.de>
4673         * conform/Makefile (distribute): Also distribute contents of
4674         subdirectories.
4676         * Makerules (no_deps): Remove abi-versions.h.
4678         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
4680 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
4682         * sysdeps/sparc/sparc64/elf/Dist: Remove.
4683         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
4684         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
4685         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
4686         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
4687         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
4688         objects.
4690 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
4692         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
4694 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
4696         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
4697         * intl/l10nflist.c: Likewise.
4699 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
4701         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
4702         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
4703         * intl/textdomain.c [!_LIBC]: Likewise.
4704         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
4705         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
4706         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
4707         syntax error.
4709 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
4711         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
4712         character set conversion also in the case the translation was found
4713         after a hash collision or through binary search.  Store the maximum
4714         index together with the converted message.  Use iconv() when available.
4715         In case of out of memory during conversion, return the unconverted
4716         translated string, not NULL.
4718 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
4720         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
4721         to avoid name clashes with the ia32 linker.
4723 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
4725         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
4726         handling.
4728 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
4730         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
4731         strtoumax, strfry, and memfrob.
4732         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
4733         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4735         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
4736         if this function is available.
4738         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
4739         all values.
4741 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
4743         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
4745 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
4747         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
4748         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
4749         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
4750         * localedata/tst-mbswcs3.c: New file.
4752 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
4754         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
4755         characters.  Don't handle incomplete characters as errors.
4756         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
4757         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
4758         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
4759         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
4760         * localedata/tst-mbswcs2.c: New file.
4762         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
4763         stored character in state in UNPACK_BYTES macro.
4764         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
4765         test for available characters, handle result of BODY code correctly.
4766         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
4767         (distribute): Add tst-mbswcs.sh.
4768         Add rule to run tst-mbswcs.sh.
4769         * localedata/tst-mbswcs.sh: New file.
4770         * localedata/tst-mbswcs1.c: New file.
4772 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
4774         * nis/nis_callback.c (__nis_create_callback): Do failed memory
4775         allocation fixups centrally, fix __builtin_expect call, return NULL
4776         on failure, not NIS_NOMEMORY.
4778 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
4780         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
4782         * intl/loadinfo.h (internal_function): Define if not already defined.
4784 2000-04-27  Andreas Jaeger  <aj@suse.de>
4786         * intl/libintl.h: Fix typo, reported by Bruno Haible
4787         <haible@clisp.cons.org>.
4789 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
4791         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
4792         setting the state to GMON_PROF_BUSY.
4794 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
4796         * elf/dl-profile.c (_dl_start_profile): define all variables which
4797         do not have to be global as local variables.
4799         * nis/nis_callback.c (__nis_create_callback): Partially undo last
4800         patch.  Keep needed tests for failed memory allocation.
4802         * elf/dl-reloc.c (_dl_relocate_object): Add one more
4803         __builtin_expect saying that we don't normally expect to profile.
4805         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
4806         __builtin_expect where desirable.
4808 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
4810         * manual/Makefile (chapters): Add syslog.
4811         * manual/syslog.texi: New file.
4812         * manual/math.texi: Fix references.
4813         * manual/terminal.texi: Likewise.
4814         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4816 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
4818         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
4819         stdlib.h was not included or __USE_XOPEN not defined.
4821 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
4823         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
4824         Patch by Zack Weinberg <zack@wolery.cumb.org>.
4826 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
4828         * manual/examples/subopt.c (mount_opts): Add missing terminating
4829         entry.
4830         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
4832         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
4833         * libio/ftello.c: Likewise.
4834         * libio/ftello64.c: Likewise.
4835         * libio/ioftell.c: Likewise.
4836         * sysdeps/generic/memrchr.c: Likewise.
4837         * sysdeps/posix/libc_fatal.c: Likewise.
4838         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4839         * misc/fstab.c: Include <string.h> for strcmp prototype.
4840         * sysdeps/generic/ldsodefs.h: Likewise.
4841         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4842         Patch by Kurt Roeckx <Q@ping.be>.
4844         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
4845         Remove db-open.  Change all uses.
4846         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
4848 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
4850         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
4851         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
4852         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
4853         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
4854         with .set noat/at to shut up warnings.
4855         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
4856         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
4857         compilation if __NR_pciconfig_iobase is not defined.
4858         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
4859         Add alias.
4861 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
4863         * manual/sysinfo.texi: Fix typo.
4864         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
4865         Replace "high precision time" with "high accuracy clock".
4866         Fix language.
4867         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4869         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
4870         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
4871         instead of malloc.
4872         * nis/nis_subr.c: Use __builtin_expect.
4873         * nis/ypclnt.c: Likewise.
4874         * nis/nis_getservlist.c: Likewise.
4875         * nis/nis_creategroup.c: Likewise.
4877         * nis/nis_callback.c (__nis_create_callback): Check result of
4878         memory allocation.  Fix memory leaks.  Use __builtin_expect.
4879         (__nis_destroy_callback): Fix memory leaks.
4881 2000-04-21  Andreas Jaeger  <aj@suse.de>
4883         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
4884         * sysdeps/mips/mips64/add_n.S: Likewise.
4885         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
4886         * sysdeps/mips/mips64/lshift.S: Likewise.
4887         * sysdeps/mips/mips64/mul_1.S: Likewise.
4888         * sysdeps/mips/mips64/rshift.S: Likewise.
4889         * sysdeps/mips/mips64/setjmp.S: Likewise.
4890         * sysdeps/mips/mips64/sub_n.S: Likewise.
4891         * sysdeps/mips/mips64/submul_1.S: Likewise
4892         * sysdeps/unix/mips/sysdep.S: Likewise.
4894         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
4895         and update comment.  The strtab from _dl_relocate_object can be
4896         used.
4898 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
4900         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
4901         * iconv/iconv_close.c (iconv_close): Likewise.
4902         * iconv/iconv_open.c (iconv_open): Likewise.
4904         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
4905         __builtin_expect where useful.
4907         * grp/initgroups.c (initgroups): Test for result of memory
4908         allocation and punt if it fails.
4910         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
4911         * grp/fgetgrent.c (fgetfrent): Likewise.
4912         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
4914 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
4916         * libio/vasprintf.c: Include string.h to get memcpy prototype.
4918 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
4920         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
4921         don't search for NUL byte to decrement counter.
4922         Reported by Ulrich.Brink@sap.com.
4924         * iconv/gconv_simple.c: Define separate functions to convert from
4925         UCS4/UCS4-LE to the internal encoding.
4926         * iconv/gconv_builtin.h: Use separate functions to convert from
4927         UCS4/UCS4-LE to the internal encoding.
4928         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
4929         __gconv_transform_ucs4le_internal.
4931         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
4932         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
4934         * iconv/skeleton.c: Add some more __builtin_expect.
4935         * iconv/loop.c: Likewise.
4937 2000-03-08  H.J. Lu  <hjl@gnu.org>
4939         * posix/regex.c (regex_compile): Correctly handle "\{" when
4940         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
4942 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
4944         * manual/stdio.texi: Give advise about handling error when using
4945         stream functions.
4946         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
4948 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
4950         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
4951         field to nelems * sizeof (uint32_t).
4952         * locale/programs/ld-address.c (address_output): Align word fields
4953         properly.
4954         * locale/programs/ld-monetary.c (monetary_output): Likewise.
4955         Don't restart idx pointers to idx end at the duo_int_curr_symbol
4956         field.
4957         Avoid giving arbitrary garbage in the crncystr field.
4958         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
4959         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
4960         fields.
4961         * locale/programs/ld-numeric.c (numeric_output): Likewise.
4962         Don't restart idx pointers to idx end at the decimal_point_wc field.
4963         * locale/programs/ld-time.c (time_output): week_1stday should be
4964         word, not byte.  Align it properly.
4966 2000-04-19  H.J. Lu  <hjl@gnu.org>
4968         * csu/gmon-start.c (_start): Declared as "extern void".
4969         (etext): Likewise.
4971 2000-04-18  Andreas Jaeger  <aj@suse.de>
4973         * manual/install.texi (Running make install): Don't mention utmpd
4974         anymore.
4976 2000-04-18  Andreas Jaeger  <aj@suse.de>
4978         * linuxthreads/Versions: Use ld instead of ld.so.
4980         * elf/Makefile (ld-map): Use ld.map.
4982         * Versions.def: Use ld instead of ld.so.
4983         * elf/Versions: Likewise.
4984         * sysdeps/mach/hurd/Versions: Likewise.
4986 2000-04-20  Andreas Jaeger  <aj@suse.de>
4988         * elf/rtld.c (print_statistics): Move ifndef further up.
4989         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
4990         (dl_main): Likewise.
4992 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
4994         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
4995         * gmon/Versions: Move moncontrol to GLIBC_2.2.
4997         * po/cs.po: Update from translation team.
4999         * sysdeps/generic/updwtmp.c: Remove daemon support.
5001         * login/Makefile (routines): Remove utmp_daemon.
5003         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
5004         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
5005         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
5006         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
5008         * elf/rtld.c: Display statitics option also if hp timing is not
5009         available.
5011         * login/programs/connection.c: Removed.
5012         * login/programs/database.c Removed.
5013         * login/programs/error.c: Removed.
5014         * login/programs/request.c: Removed.
5015         * login/programs/xtmp.c: Removed.
5016         * login/programs/xtmp.h: Removed.
5017         * login/Makefile: Remove rules for utmpd.
5018         * login/README.utmpd: Removed.
5019         * login/utmp_daemon.c: Removed.
5020         * login/getutent_r.c: Remove references to daemon functions.
5021         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
5022         declaration.
5024 2000-04-18  Andreas Jaeger  <aj@suse.de>
5026         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5027         2.2 for libnsl, libresolv, librt, libnss_*.
5029         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
5031         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
5033 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
5035         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
5036         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
5037         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
5038         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
5039         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
5040         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
5041         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
5042         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
5043         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
5044         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
5045         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
5046         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
5047         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
5048         it here.
5049         * sysdeps/unix/sysv/aix/msync.c: New file.
5050         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
5051         * sysdeps/unix/sysv/aix/net/if.h: New file.
5052         * sysdeps/unix/sysv/aix/pipe.c: New file.
5053         * sysdeps/unix/sysv/aix/poll.c: New file.
5054         * sysdeps/unix/sysv/aix/rename.c: New file.
5055         * sysdeps/unix/sysv/aix/rmdir.c: New file.
5056         * sysdeps/unix/sysv/aix/select.c: New file.
5057         * sysdeps/unix/sysv/aix/semctl.c: New file.
5058         * sysdeps/unix/sysv/aix/semget.c: New file.
5059         * sysdeps/unix/sysv/aix/semop.c: New file.
5060         * sysdeps/unix/sysv/aix/sendto.c: New file.
5061         * sysdeps/unix/sysv/aix/setgroups.c: New file.
5062         * sysdeps/unix/sysv/aix/setpgid.c: New file.
5063         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
5064         * sysdeps/unix/sysv/aix/setpriority.c: New file.
5065         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
5066         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
5067         * sysdeps/unix/sysv/aix/setsid.c: New file.
5068         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
5069         * sysdeps/unix/sysv/aix/shmat.c: New file.
5070         * sysdeps/unix/sysv/aix/shmctl.c: New file.
5071         * sysdeps/unix/sysv/aix/shmdt.c: New file.
5072         * sysdeps/unix/sysv/aix/shmget.c: New file.
5073         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
5074         * sysdeps/unix/sysv/aix/sigstack.c: New file.
5075         * sysdeps/unix/sysv/aix/socket.c: New file.
5076         * sysdeps/unix/sysv/aix/socketpair.c: New file.
5077         * sysdeps/unix/sysv/aix/speed.c: New file.
5078         * sysdeps/unix/sysv/aix/symlink.c: New file.
5079         * sysdeps/unix/sysv/aix/sync.c: New file.
5080         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
5081         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
5082         * sysdeps/unix/sysv/aix/times.c: New file.
5083         * sysdeps/unix/sysv/aix/ulimit.c: New file.
5084         * sysdeps/unix/sysv/aix/umask.c: New file.
5085         * sysdeps/unix/sysv/aix/unlink.c: New file.
5086         * sysdeps/unix/sysv/aix/ustat.c: New file.
5087         * sysdeps/unix/sysv/aix/utimes.c: New file.
5089 2000-04-18  Andreas Jaeger  <aj@suse.de>
5091         * manual/startup.texi (Environment Access): Fix putenv prototype
5092         according to recent changes.
5093         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
5094         PR libc/1692.
5096         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
5097         needed.
5099 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
5101         * posix/Makefile (tests): Add tst-getaddrinfo.
5102         * posix/tst-getaddrinfo.c: New file.
5104 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5106         * manual/sysinfo.texi: Document that umount2 is not widely available.
5108         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
5109         signal timing is not really implemented.
5111 2000-04-17  Andreas Jaeger  <aj@suse.de>
5113         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
5115 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
5117         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
5118         and inst_libdir.
5120 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5122         * manual/intro.texi: Change reference from System Information to
5123         System Management.
5124         * manual/users.texi: Likewise.
5125         * manual/conf.texi: Likewise.
5126         * manual/sysinfo.texi: Document mount, umount, and umount2.
5127         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5129 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
5131         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
5132         Create wnumstr as well as numstr to support wide character output
5133         correctly.
5135 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
5137         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
5138         modification and move it...
5139         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
5140         Add -melf64_sparc switch to $(LD) on sparc64-linux.
5141         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
5142         switch to $(LD) on sparc-linux.
5144 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
5146         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
5147         and setresuid from sysdep_routines.
5149 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5151         * manual/Makefile (chapters): Add resource.
5153         * manual/time.texi: Move section on resources to...
5154         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
5155         and vtimes.
5156         * manual/setjmp.texi: Adjust back reference.
5157         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5159         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
5160         definition.
5161         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
5162         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
5163         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
5164         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
5165         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
5166         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
5167         * sysdeps/unix/sysv/aix/close.c: Add copyright.
5168         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
5169         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
5170         * sysdeps/unix/sysv/aix/access.c: Add copyright.
5171         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
5172         * sysdeps/unix/sysv/aix/Implies: New file.
5173         * sysdeps/unix/sysv/aix/Versions: New file.
5174         * sysdeps/unix/sysv/aix/bind.c: New file.
5175         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
5176         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
5177         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
5178         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
5179         * sysdeps/unix/sysv/aix/chdir.c: New file.
5180         * sysdeps/unix/sysv/aix/chmod.c: New file.
5181         * sysdeps/unix/sysv/aix/chroot.c: New file.
5182         * sysdeps/unix/sysv/aix/creat.c: New file.
5183         * sysdeps/unix/sysv/aix/dl-close.c: New file.
5184         * sysdeps/unix/sysv/aix/dl-open.c: New file.
5185         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
5186         * sysdeps/unix/sysv/aix/fchdir.c: New file.
5187         * sysdeps/unix/sysv/aix/fchmod.c: New file.
5188         * sysdeps/unix/sysv/aix/getgroups.c: New file.
5189         * sysdeps/unix/sysv/aix/gethostname.c: New file.
5190         * sysdeps/unix/sysv/aix/getpriority.c: New file.
5191         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
5192         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
5193         * sysdeps/unix/sysv/aix/getrusage.c: New file.
5194         * sysdeps/unix/sysv/aix/link.c: New file.
5195         * sysdeps/unix/sysv/aix/madvise.c: New file.
5196         * sysdeps/unix/sysv/aix/mkdir.c: New file.
5197         * sysdeps/unix/sysv/aix/mknod.c: New file.
5198         * sysdeps/unix/sysv/aix/mprotect.c: New file.
5199         * sysdeps/unix/sysv/aix/msgctl.c: New file.
5200         * sysdeps/unix/sysv/aix/msgget.c: New file.
5201         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
5203 2000-04-17  Andreas Jaeger  <aj@suse.de>
5205         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
5206         as suggested by Ulrich Drepper.
5207         (__dl_runtime_resolve): Remove unused variable, initialize sym
5208         directly.
5209         (RTLD_START): Document OFFSET_GP_GOT.
5210         (OFFSET_GP_GOT): New magic value.
5211         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
5212         (elf_machine_got_rel): Only declare strtab if needed.
5213         (elf_machine_relplt): Removed, it's not needed.
5214         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
5216         * sysdeps/mips/add_n.S: Add newline at EOF.
5217         * sysdeps/mips/rshift.S: Likewise.
5218         * sysdeps/mips/mul_1.S: Likewise.
5219         * sysdeps/mips/lshift.S: Likewise.
5220         * sysdeps/mips/addmul_1.S: Likewise.
5222 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5224         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
5226         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
5227         * elf/dl-lookup.c: Likewise.
5228         * elf/dl-init.c (_dl_init): Likewise.
5229         * elf/dl-fini.c (_dl_fini): Likewise.
5230         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
5231         * elf/dl-close.c (_dl_close): Likewise.
5232         * elf/rtld.c (_dl_start_final): Likewise.
5234         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
5236 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
5238         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
5239         only fall back on using Linux.
5241         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
5242         Before testing versions check that we actually loaded the object
5243         and whether we are in trace mode.  If not loaded during tracing don't
5244         test versions in this object.
5245         (_dl_check_all_versions): Take new parameter and pass to
5246         _dl_check_map_versions.
5247         * sysdeps/generic/ldsodefs.h: Update prototypes for
5248         _dl_check_all_versions and _dl_check_map_versions.
5249         * elf/rtld.c (struct version_check_args): Add dotrace.
5250         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
5251         (dl_main): Pass info about trace mode to version_check_doit.
5252         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
5253         _dl_check_all_versions.
5255         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
5256         and getutmpx.
5257         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5259         * manual/argp.texi: Document index parameter of argp_parse.
5260         Fix typo.
5261         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
5263 2000-04-14  Andreas Jaeger  <aj@suse.de>
5265         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
5266         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
5268         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
5270 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
5272         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
5273         compat_symbol call for old adjtime.
5275         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
5276         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
5278         * posix/Makefile (headers): Add spawn.h.
5279         (distribute): Add spawn_int.h.
5280         (routines): Add spawn_faction_init, spawn_faction_destroy,
5281         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
5282         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
5283         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
5284         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
5285         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
5286         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
5287         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
5288         posix_spawnattr_init, posix_spawnattr_destroy,
5289         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
5290         posix_spawnattr_getflags, posix_spawnattr_setflags,
5291         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
5292         and posix_spawnp.
5293         * posix/spawn.c: New file.
5294         * posix/spawn.h: New file.
5295         * posix/spawn_faction_addclose.c: New file.
5296         * posix/spawn_faction_adddup2.c: New file.
5297         * posix/spawn_faction_addopen.c: New file.
5298         * posix/spawn_faction_destroy.c: New file.
5299         * posix/spawn_faction_init.c: New file.
5300         * posix/spawn_int.h: New file.
5301         * posix/spawnattr_destroy.c: New file.
5302         * posix/spawnattr_getdefault.c: New file.
5303         * posix/spawnattr_getflags.c: New file.
5304         * posix/spawnattr_getpgroup.c: New file.
5305         * posix/spawnattr_getschedparam.c: New file.
5306         * posix/spawnattr_getschedpolicy.c: New file.
5307         * posix/spawnattr_getsigmask.c: New file.
5308         * posix/spawnattr_init.c: New file.
5309         * posix/spawnattr_setdefault.c: New file.
5310         * posix/spawnattr_setflags.c: New file.
5311         * posix/spawnattr_setpgroup.c: New file.
5312         * posix/spawnattr_setschedparam.c: New file.
5313         * posix/spawnattr_setschedpolicy.c: New file.
5314         * posix/spawnattr_setsigmask.c: New file.
5315         * posix/spawni.c: New file.
5316         * posix/spawnp.c: New file.
5318         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
5319         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5321 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
5323         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
5324         * malloc/malloc.c: Implement posix_memalign for glibc.
5325         * include/stdlib.h: Add prototype for __posix_memalign.
5326         * stdlib/stdlib.h: Add prototype for posix_memalign.
5328 2000-04-14  Andreas Jaeger  <aj@suse.de>
5330         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
5331         symidx correctly.
5332         (elf_machine_got_rel): Cast sym correctly.
5334         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
5335         * sysdeps/mips/addmul_1.S: Likewise.
5336         * sysdeps/mips/lshift.S: Likewise.
5337         * sysdeps/mips/mul_1.S: Likewise.
5338         * sysdeps/mips/rshift.S: Likewise.
5339         * sysdeps/mips/sub_n.S: Likewise.
5340         * sysdeps/mips/submul_1.S: Likewise.
5342         * stdlib/stdlib.h: Fix typo in comment.
5344         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5345         2.2 for libdl, ld and libm.
5347         * sysdeps/generic/madvise.c: Fix typos.
5349         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
5351         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
5353         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
5354         warnings.
5356 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
5358         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
5359         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
5360         Make old name weak alias.
5361         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5362         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
5363         Make old name weak alias.
5364         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5366         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
5367         posix_fallocate, and posix_fallocate64.
5368         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
5369         posix_fallocate, and posix_fallocate64.
5370         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
5371         posix_fallocate, and posix_fallocate64.
5372         * sysdeps/generic/fadvise.c: New file.
5373         * sysdeps/generic/fadvise64.c: New file.
5374         * sysdeps/generic/fallocate.c: New file.
5375         * sysdeps/generic/fallocate64.c: New file.
5376         * sysdeps/posix/fallocate.c: New file.
5377         * sysdeps/posix/fallocate64.c: New file.
5378         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
5379         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
5380         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
5381         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
5382         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5383         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
5384         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5385         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5386         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5388         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
5389         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5391 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
5393         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
5394         * misc/sys/mman.h (posix_madvise): Add prototype.
5395         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
5396         old name and posix_madvise weak aliases.
5397         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5398         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
5399         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5400         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5401         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5402         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
5403         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5405 2000-04-13  Andreas Jaeger  <aj@suse.de>
5407         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
5408         versioning.
5409         (elf_machine_got_rel): Only add runtime display if needed.
5410         (elf_machine_got_rel): Handle symbol versioning.
5412 2000-04-13  Andreas Jaeger  <aj@suse.de>
5414         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
5416         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
5417         default.
5419         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
5420         with some applications.
5421         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
5423         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
5424         * sysdeps/mips/bsd-_setjmp.S: Likewise.
5425         * sysdeps/mips/setjmp.S: Likewise.
5427         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
5429 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
5431         * posix/globtest.sh: Work around inconsistency with expanding ~/
5432         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
5434 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
5436         * posix/getconf.c: Add support for many more POSIX options.
5437         * sysdeps/posix/sysconf.c: Likewise.
5438         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
5439         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
5440         _POSIX_SHELL.
5441         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5442         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
5443         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
5444         CLOCK_THREAD_CPUTIME_ID.
5445         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
5446         CLOCK_PROCESS_CPUTIME_ID.
5447         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
5448         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
5449         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
5450         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
5452         * malloc/Makefile (tests): Add tst-calloc.
5453         * malloc/tst-calloc.c: New file.
5455         * sysdeps/arm/libm-test-ulps: New file.
5457         * malloc/malloc.c: Undo all of today's changes.
5459         * locale/programs/locale.c (show_info): Don't try to look into
5460         data for LC_ALL (there is none).
5462         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
5463         avoid writing over boundary.
5464         Patch by Greg McGary <gkm@eng.ascend.com>.
5466         * sysdeps/arm/memprof.h: New file.
5468 2000-04-12  Andreas Jaeger  <aj@suse.de>
5470         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
5472         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
5473         for memmem declaration.
5475 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
5477         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
5478         to -1.
5479         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
5481         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
5482         mode is invalid.
5483         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
5484         Patch by Bart Veer <bartv@redhat.com>.
5486         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
5487         function interface.
5489 2000-04-11  Andreas Jaeger  <aj@suse.de>
5491         * sysdeps/mips/dl-machine.h: Update some comments.
5492         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
5494 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5496         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
5497         _POSIX_SHARED_MEMORY_OBJECTS.
5499         * rt/Makefile (tests): Add tst-shm.
5500         Add rules to generate tst-shm.
5501         * rt/tst-shm.c: New file.
5503         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
5504         for descriptor.
5506         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
5507         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
5508         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
5509         * sysdeps/generic/shm_open.c: New file.
5510         * sysdeps/generic/shm_unlink.c: New file.
5511         * sysdeps/unix/sysv/linux/shm_open.c: New file.
5512         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
5513         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
5514          __endmntent, __getmntent_r, __setmntent, and __statfs.
5516         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
5517         fragmentation by allocating new memory at the end instead of
5518         reallocating.
5520         * posix/globtest.sh: Fix last change.
5522 2000-04-10  Philip Blundell  <philb@gnu.org>
5524         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
5525         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
5526         IPV6_DROP_MEMBERSHIP.
5527         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
5528         Likewise.
5530 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5532         * elf/readlib (process_file): Close streams in case of an error.
5534 2000-04-09  Andreas Jaeger  <aj@suse.de>
5536         * elf/readlib.c (process_file): Check if file is big enough to
5537         contain aout and ELF headers.
5538         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
5540 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
5542         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
5544 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5546         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
5547         stream unbuffered.
5548         * rt/Makefile (tests): Add tst-clock.
5549         Add rules to build tst-clock.
5550         * rt/tst-clock.c: New file.
5551         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
5552         about initialization of nsec.
5553         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
5554         about initialization of freq.  Set retval to zero if successful.
5555         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
5557 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
5559         * Versions.def (librt): Add GLIBC_2.2.
5560         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
5561         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
5562         timer_getoverr, timer_gettime, and timer_settime.
5563         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
5564         clock_settime, timer_create, timer_delete, timer_getoverrun,
5565         timer_gettime, and timer_settime.
5566         * sysdeps/generic/clock_getcpuclockid.c: New file.
5567         * sysdeps/generic/get_clockfreq.c: New file.
5568         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
5569         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
5570         * sysdeps/mach/hurd/i386/bits/time.h: New file.
5571         * sysdeps/unix/i386/i586/clock_getres.c: New file.
5572         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
5573         * sysdeps/unix/i386/i686/Implies: New file.
5574         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
5575         * time/Makefile (routines): Move clock_getres, clock_gettime,
5576         clock_settime, timer_create, timer_delete, timer_getoverr,
5577         timer_gettime, and timer_settime to rt/Makefile.
5578         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
5579         clock_settime, timer_create, timer_delete, timer_getoverrun,
5580         timer_gettime, and timer_settime.
5581         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
5583         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
5584         and not const as attribute name.
5586 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
5588         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
5590 2000-04-10  Andreas Schwab  <schwab@suse.de>
5592         * posix/globtest.sh: Skip tests that depend on unreadable
5593         directories if run as root.
5595 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
5597         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
5598         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
5600 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
5602         * sysdeps/unix/clock_gettime.c: New file.
5603         * sysdeps/unix/clock_settime.c: New file.
5604         * sysdeps/posix/clock_getres.c: New file.
5606         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
5608         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
5609         lseek call be passing in a buffer which never allow a successful
5610         first getdents syscall if not at leas the initial entry can be
5611         stored in the user buffer.
5613         * localedata/Makefile: Add rules to clean up directories created by
5614         new strfmon tests.
5616 2000-04-09  Geoff Clare  <gwc@unisoft.com>
5618         * localedata/tst-fmon.data: Added new tests for strfmon()
5619         using test locales with all combinations of cs_precedes,
5620         sign_posn and sep_by_space.
5621         * localedata/tst-fmon.sh: Updated to support the new tests.
5622         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
5623         the localedef source for the new strfmon() test locale.
5624         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
5625         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
5626         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
5627         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
5628         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
5629         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
5630         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
5631         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
5632         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
5633         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
5634         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
5635         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
5636         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
5637         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
5639         * stdlib/strfmon.c: Correct problems with missing or extra
5640         spaces for unusual combinations of sign_posn and sep_by_space.
5641         Improved left-precision alignment code.
5643 2000-04-07  Andreas Jaeger  <aj@suse.de>
5645         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
5647 2000-04-10  Andreas Jaeger  <aj@suse.de>
5649         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
5651 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
5653         Implement handling of restartable conversion functions according to
5654         ISO C.
5655         * iconv/gconv.h (__gconv_fct): Add additional parameter.
5656         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
5657         * iconv/gconv.c: Pass additional parameter to conversion function.
5658         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
5659         (internal_ucs4le_loop_single): New function.
5660         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
5661         (__gconv_transform_internal_ascii): Likewise.
5662         (__gconv_transform_internal_utf8): Likewise.
5663         (__gconv_transform_utf8_internal): Likewise.
5664         (__gconv_transform_ucs2_internal): Likewise.
5665         (__gconv_transform_internal_ucs2): Likewise.
5666         (__gconv_transform_ucs2reverse_internal): Likewise.
5667         (__gconv_transform_internal_ucs2reverse): Likewise.
5668         (internal_ucs4le_loop_unaligned): Before return
5669         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
5670         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
5671         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
5672         * iconv/loop.c: Fit in definition of function to convert one character
5673         for processing of left-over bytes from the state object.
5674         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
5675         inend to match names in loop functions.
5676         (RESET_INPUT_BUFFER): Change apprpriately.
5677         (gconv): If needed, call function to process bytes from the state
5678         object.  Similar at the end: store left over bytes if input is
5679         incomplete.
5680         Take extra argument and add new argument to all calls of the
5681         conversion function.
5682         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
5683         information in the state object to not conflict with length count.
5684         * iconvdata/iso-2022-jp.c: Likewise.
5685         * iconvdata/iso-2022-kr.c: Likewise.
5686         * iconvdata/unicode.c: Adjust for change change in parameters of
5687         skeleton function.
5688         * iconvdata/utf-16.c: Likewise.
5689         * libio/iofwide.c: Add new parameter to all calls of conversion
5690         function.
5691         * wcsmbs/btowc.c: Likewise.
5692         * wcsmbs/mbrtowc.c: Likewise.
5693         * wcsmbs/mbsnrtowcs.c: Likewise.
5694         * wcsmbs/mbsrtowcs.c: Likewise.
5695         * wcsmbs/wcrtomb.c: Likewise.
5696         * wcsmbs/wcsnrtombs.c: Likewise.
5697         * wcsmbs/wcsrtombs.c: Likewise.
5698         * wcsmbs/wctob.c: Likewise.
5700         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
5701         MAX_NEEDED_INPUT.
5703 2000-04-07  Andreas Jaeger  <aj@suse.de>
5705         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
5706         newer kernels.
5708 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
5710         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
5711         element a union to allow byte access.
5712         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
5713         mbstate_t.
5714         * iconvdata/iso-2022-jp.c: Likewise.
5715         * iconvdata/iso-2022-kr.c: Likewise.
5716         * wcsmbs/mbsinit.c: Likewise.
5717         * stdlib/mblen.c: Likewise.
5718         * stdio-common/printf-parse.h: Likewise.
5720 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
5722         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
5723         kernel does not allow relative seeks on descriptors associated
5724         with directories.  Go back to get the position in the directory
5725         every time we enter the function.  Return -1 and set errno if one
5726         entry could be read from the kernel but does not fit into the
5727         buffer passed in by the user.
5729         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
5730         Support ..(2).. ellipsis.
5731         (parse_charmap): Recognize ..(2).. etc and pass step down.
5732         Correctly generate names for UCS4 characters.
5734         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
5735         (ctype_finish): We know the wide character value for <SP>,
5736         don't search.
5737         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
5738         (charclass_ucs4_ellipsis): Likewise.
5739         (read_translit_ignore_entry): Store ellipsis step.
5740         (ctype_read): Recognize ..(2).. etc and pass step down.
5742         * locale/programs/linereader.c (lr_token): When seeing comment
5743         character ignore only rest of line in sources but stop at escaped
5744         newline.
5745         Recognize ..(2).. and ....(2).....
5747         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
5748         and tok_ellipsis4_2.
5750 2000-04-06  Andreas Jaeger  <aj@suse.de>
5752         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
5753         removed, remove it here also.
5754         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
5755         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
5756         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
5757         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
5759 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
5761         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
5762         include bits/sigcontext.h.
5763         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
5765 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
5767         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
5768         collation symbol definition.  Value in quivalence definition must
5769         be defined, don't check that it is not.
5771         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
5772         values as character names.
5774         * locale/programs/ld-ctype.c (get_character): Handle missing
5775         repertoire map correctly.
5777 2000-04-05  Cristian Gafton  <gafton@redhat.com>
5779         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
5780         because it is used in generic code.
5781         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
5782         * wcsmbs/wcwidth.h: Declare __ctype32_b.
5783         * intl/gettext.c: Include <locale.h>.
5784         * intl/ngettext.c: Likewise.
5786 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
5788         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
5789         socklen_t type for size.
5790         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
5791         init function interface.
5792         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
5793         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
5794         sys/ucontext.h.
5795         (__jmp_buf): Declare the whole type structure here, don't use
5796         ucontext.
5798 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
5800         * iconv/skeleton.c (put16u): Fix typo.
5801         Reported by Bruno Haible <haible@ilog.fr>.
5803         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
5804         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
5805         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
5806         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
5807         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
5808         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
5810         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
5811         * Makefile (distribute): Add abi-versions.awk and
5812         firstversions.awk.
5813         Patches by Torsten Duwe <duwe@caldera.de>.
5815 2000-04-05  Andreas Schwab  <schwab@suse.de>
5817         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
5819 2000-04-05  Andreas Schwab  <schwab@suse.de>
5821         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
5822         entry point, used on Hurd.
5824 2000-04-04  Andreas Jaeger  <aj@suse.de>
5826         * intl/Makefile: Only run the gettext test with shared libraries.
5828 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
5830         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
5831         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
5833 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
5835         * Makeconfig: Undo last change.
5836         * configure.in: If --disable-shared was given, don't set VERSIONING,
5837         don't define DO_VERSIONING, and don't give scare warning for no
5838         versioning.
5839         * configure: Regenerated.
5841 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
5843         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
5845 2000-04-04  Andreas Jaeger  <aj@suse.de>
5847         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
5849 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
5851         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
5852         STV_HIDDEN and STV_INTERNAL during lookup.
5853         (profile_fixup): Likewise.
5854         * elf/dl-reloc.c (RESOLVE): Likewise.
5856         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
5857         unaligned so that it compiles for system which need unaligned
5858         access handling.
5860 2000-04-04  Andreas Schwab  <schwab@suse.de>
5862         * elf/cache.c (print_entry): Only look at the type field when
5863         printing the type.
5865 2000-04-04  Andreas Schwab  <schwab@suse.de>
5867         * iconvdata/big5.c (BODY): Fix typo.
5869 2000-04-04  Andreas Schwab  <schwab@suse.de>
5871         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
5872         function interface.  Remove unused _dl_start_user entry point.
5874 2000-04-03  Andreas Jaeger  <aj@suse.de>
5876         * include/arpa/inet.h (__inet_aton): Add protoype.
5878 2000-04-01  Andreas Jaeger  <aj@suse.de>
5880         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
5882         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
5883         * sysdeps/mach/mips/thread_state.h: Likewise.
5885         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
5886         * sysdeps/generic/fegetenv.c: Likewise.
5887         * sysdeps/generic/fesetenv.c: Likewise.
5888         * sysdeps/generic/feupdateenv.c: Likewise.
5889         * sysdeps/generic/fraiseexcpt.c: Likewise.
5890         * sysdeps/generic/fsetexcptflg.c: Likewise.
5891         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
5892         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
5893         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
5894         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5896 2000-04-02  H.J. Lu  <hjl@gnu.org>
5898         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
5900 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
5902         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
5903         (add_name_to_object): Add cast in malloc call.
5904         (fillin_rpath): Optimize loop to initialize ->status a bit.
5906         * sysdeps/i386/dl-machine.h: Undo last change.
5907         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
5908         Restore %edx register after call here.
5910         * sysdeps/arm/atomicity.h: New file.
5911         Contributed by Jesper Skov <jskov@redhat.com>.
5913 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
5915         * Makeconfig (preprocess-versions): Undo last change.
5916         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
5918         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
5919         here, before we might move the stack.
5920         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
5921         (init1): And not here.
5923         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
5924         change, to restore argc value in call-clobbered register after
5925         RTLD_START_SPECIAL_INIT, which will contain a call.
5927         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
5928         allocating and initializing L->l_initfini.
5930         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
5932 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
5934         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
5935         RUNPATH, RPATH, and LD_LIBRARY_PATH.
5936         (open_path): Change type of fourth parameter.  Make pointer to array
5937         of pointers.  Create variable dirs with original type.
5938         Track whether any directory for the object exists and if not,
5939         change *DIRSP to (void*) -1 to signal there is no such search path.
5940         (_dl_map_object): Change all calls of open_path.
5941         Rewrite decompose_rpath calls.
5943 2000-03-31  Andreas Schwab  <schwab@suse.de>
5945         * string/strfry.c: Declare STATE as array of char instead of int
5946         and do not initialize it (done by initstate_r).  Pass correct
5947         size.
5949 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
5951         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
5953         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
5954         instruction out of the code.
5956 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
5958         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
5959         element at this position.
5961         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
5962         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
5963         l_reldeps elements.
5964         * elf/dl-lookup.c (add_dependency): New function.
5965         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
5966         dynamically loaded object.
5967         (_dl_lookup_symbol_skip): Likewise.
5968         (_dl_lookup_versioned_symbol): Likewise.
5969         (_dl_lookup_versioned_symbol_skip): Likewise.
5970         * elf/dl-open.c: Don't define _dl_load_lock here...
5971         * elf/rtld.c: ...but here...
5972         * elf/dl-support.c: ...and here.
5973         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
5974         through relocation.
5975         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
5976         relocations.
5977         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
5978         anymore.
5979         * dlfcn/glrefmain.c: Add one more debug message.
5981         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
5982         command line.
5983         * Makerules (sysd-versions): Use ( ) instead of { }.
5985         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
5986         optimize for the non-debugging case.
5987         * elf/dl-lookup.c: Likewise.
5988         * sysdeps/generic/libc-start.c: Likewise.
5990 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
5992         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
5993         (init1): Don't initialize __environ here, since init already does it.
5994         (first_init): New function, broken out of _init.
5995         (_hurd_stack_setup): Use it.
5996         [SHARED] (_dl_init_first): New function, renamed from old _init.
5997         (init1) [SHARED]: Don't call posixland_init here.
5998         (posixland_init): Take ENVP arg, so signature is usual for initializer.
5999         [SHARED] (_init): Define as alias for posixland_init.
6000         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
6001         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
6002         RTLD_START_SPECIAL_INIT before calling initializers.
6003         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
6004         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
6005         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
6006         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
6008         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
6009         since we define the function with the name `tmpfile'.
6011         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
6012         * hurd/Versions: Likewise.
6014 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
6016         * elf/dl-runtime.c (fixup): Fix typo in comment.
6018         * resolv/netdb.h (getnameinfo): All length parameters are of type
6019         socklen_t.
6020         * inet/getnameinfo.c: Likewise.
6022 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
6024         * posix/unistd.h (socklen_t): Define if it has not yet happened.
6025         (gethostname): Change type of second parameter to socklen_t.
6026         * include/unistd.h (__gethostname): Change type of second
6027         parameter to socklen_t.
6028         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
6029         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
6030         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
6031         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
6032         Likewise.
6033         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
6034         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
6035         Allow definition elsewhere.
6036         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6037         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6038         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6039         * sysdeps/generic/bits/types.h: Define __socklen_t.
6040         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
6041         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
6042         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
6043         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
6044         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
6045         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
6046         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
6048         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
6049         (inet_lnaof): Likewise.
6050         (inet_netof): Likewise.
6051         (inet_network): Likewise.
6052         (inet_aton): Likewise.
6053         (inet_makeaddr): Change parameter types to in_addr_t.
6054         (inet_neta): Likewise.
6055         (inet_ntop): Change type of last parameter to socklen_t.
6056         (inet_aton): Only make available if __USE_MISC.
6057         (inet_neta): Likewise.
6058         (inet_net_ntop): Likewise.
6059         (inet_net_pton): Likewise.
6060         (inet_nsap_ntoa): Likewise.
6062         * inet/in.h: Define in_port_t type.
6063         Define in_addr_t type.
6064         (struct in_addr): Use in_addr_t in definition.
6065         (IN_CLASSA): Use cast to in_addr_t.
6066         (IN_CLASSB): Likewise.
6067         (IN_CLASSC): Likewise.
6068         (IN_CLASSD): Likewise.
6069         (IN_EXPERIMENTAL): Likewise.
6070         (IN_BADCLASS): Likewise.
6071         (INADDR_ANY): Likewise.
6072         (INADDR_BROADCAST): Likewise.
6073         (INADDR_NONE): Likewise.
6074         (INADDR_LOOPBACK): Likewise.
6075         (INADDR_UNSPEC_GROUP): Likewise.
6076         (INADDR_ALLHOSTS_GROUP): Likewise.
6077         (INADDR_ALLRTRS_GROUP): Likewise.
6078         (INADDR_MAX_LOCAL_GROUP): Likewise.
6079         (struct sockaddr_in): Use in_port_t for sin_port element.
6080         (struct sockaddr_in6): Use in_port_t for sin6_port element.
6081         Use uint8_t instead of u_int8_t.
6083         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
6084         Call __inet_aton instead of inet_aton.
6085         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
6087         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
6088         (innetgr): Likewise.
6089         (struct addrinfo): Use socklen_t for ai_addrlen element.
6091         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
6092         IPV6_RECVERR): New defines.
6094         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
6095         * inet/getnetbyad.c: Likewise.
6096         * inet/getnetbyad_r.c: Likewise.
6097         * nis/nss_nis/nis-network.c: Likewise.
6098         * nis/nssplus_nis/nisplus-network.c: Likewise.
6099         * nss/nss_files/files-network.c: Likewise.
6100         * resolv/netdb.h: Define uint32_t if not already happened.
6101         Include bits/netdb.h.  Remove definition of struct netent.
6102         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
6103         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
6104         * sysdeps/generic/bits/netdb.h: New file.
6105         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
6107         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
6108         (tests): Add glrefmain.
6109         Add rules to build modules and run tests.  Ignore result of glrefmain
6110         for now since it fails.
6111         * dlfcn/glrefmain.c: New file.
6112         * dlfcn/glreflib1.c: New file.
6113         * dlfcn/glreflib2.c: New file.
6115         * test-skeleton.c: Include <string.h> for strsignal prototype.
6117         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
6118         to be missing.
6120         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
6121         former init-first.h.  Initialize __libc_multiple_libcs.
6123 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
6125         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
6126         #if expression for use of unaligned function to the one used in
6127         the definition of these functions.
6128         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
6129         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
6130         (internal_ucs4le_loop_unaligned): New function.
6132         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
6133         (tests): Add order.
6134         (module-names): Add dep1, dep2, dep3, and dep4.
6135         Add dependencies for dep* modules and order.
6136         Define rule for order.out which checks the result.
6137         * elf/dep1.c: New file.
6138         * elf/dep2.c: New file.
6139         * elf/dep3.c: New file.
6140         * elf/dep4.c: New file.
6141         * elf/order.c: New file.
6143         * elf/dl-init.c: Fix typo in comment.
6145 2000-03-31  Andreas Jaeger  <aj@suse.de>
6147         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
6148         init function interface.
6149         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
6151 2000-03-31  Andreas Jaeger  <aj@suse.de>
6153         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
6154         * sysdeps/mips/fpu/fegetenv.c: Likewise.
6155         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
6156         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
6157         * sysdeps/mips/fpu/fesetenv.c: Likewise.
6159         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
6160         anymore, update comment.
6162         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6164         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
6165         SHLIB_COMPAT - the struct is always needed.
6167 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
6169         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
6170         * elf/dl-support.c: Define _dl_starting_up.
6172 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6174         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
6175         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
6177         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
6179         * elf/Makefile (dl-routines): Remove preinit.
6180         * elf/Versions: Remove _dl_preinit.
6181         * elf/dl-preinit.c: Removed.  Move content into...
6182         * elf/dl-init.c: ...here.
6183         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
6185         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
6186         elements.
6188 2000-03-29  Geoff Clare  <gwc@unisoft.com>
6190         * stdlib/strfmon.c: Corrected problems with the code that
6191         sets default values for [np]_sep_by_space and
6192         [np]_sign_posn; also the new positive/negative alignment
6193         code from the previous patch was not quite right for
6194         [np]_sign_posn = 0.
6196         * localedata/tst-fmon.data: Changes corresponding to the
6197         two sets of fixes made to stdlib/strfmon.c.
6199 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
6201         * malloc/malloc.c: Declare bit flags UL so that they will not
6202         default to int size when being inverted.
6204 2000-03-29  Andreas Jaeger  <aj@suse.de>
6206         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
6207         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
6209 2000-03-29  Andreas Jaeger  <aj@suse.de>,
6210             Ralf Baechle <ralf@uni-koblenz.de>
6212         * Makeconfig: Introduce new variable SHARED to mark code used in
6213         the shared library.
6214         * elf/dl-close.c: Use it instead of PIC.
6215         * elf/dl-load.c: Likewise.
6216         * elf/dl-open.c: Likewise.
6217         * hurd/geteuids.c: Likewise.
6218         * include/libc-symbols.h: Likewise.
6219         * include/shlib-compat.h: Likewise.
6220         * libio/freopen.c: Likewise.
6221         * linuxthreads/cancel.c: Likewise.
6222         * linuxthreads/pthread.c: Likewise.
6223         * linuxthreads/wrapsyscall.c: Likewise.
6224         * nss/nsswitch.c: Likewise.
6225         * stdio-common/vfprintf.c: Likewise.
6226         * sysdeps/arm/init-first.c: Likewise.
6227         * sysdeps/i386/init-first.c: Likewise
6228         * sysdeps/generic/init-first.c: Likewise.
6229         * sysdeps/generic/libc-start.c: Likewise.
6230         * sysdeps/mips/init-first.c: Likewise.
6231         * sysdeps/powerpc/elf/libc-start.c: Likewise.
6232         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6233         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
6234         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
6235         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6237         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
6239 2000-03-29  Andreas Jaeger  <aj@suse.de>
6241         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
6242         Use D_PTR to access relocated entries in l_info.
6243         (elf_machine_rela): Likewise.
6245         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
6246         Likewise.
6247         (elf_machine_rela): Likewise.
6249         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
6250         Likewise.
6251         (__elf_machine_fixup_plt): Likewise.
6252         (__process_machine_rela): Likewise.
6254         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
6255         (elf_machine_rela): Likewise.
6257         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
6258         (elf_machine_rel): Likewise.
6260         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
6261         (elf_machine_fixup_plt): Likewise.
6262         (elf_machine_rela): Likewise.
6264 2000-03-29  Andreas Jaeger  <aj@suse.de>
6266         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
6267         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
6268         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6269         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
6270         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
6271         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
6272         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
6273         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
6274         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
6275         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
6276         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
6277         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
6278         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
6279         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
6280         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6282         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
6283         macros, remove K&R prototypes.
6285 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6287         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
6288         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
6289         (PR libc/1677).
6291 2000-03-30  Andreas Jaeger  <aj@suse.de>
6293         * misc/sys/cdefs.h: Remove K&R support.
6295 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6297         * iconv/skeleton.c: Avoid compiling unaligned versions in some
6298         more cases.
6299         * iconv/loop.c: Likewise.
6301 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
6303         * iconv/loop.c (put16): Remove __const. Fix access index.
6304         (put32): Remove __const. Use uint32_t instead of uint16_t.
6305         * iconv/skeleton.c: Likewise.
6307 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
6309         * mach/Versions (libc: GLIBC_2.0)
6310         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
6311         __vm_allocate on this.
6312         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
6313         mutex- and spinlock-related symbols on this.
6314         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
6315         New version set.  Lock-related symbols go here instead in this case.
6316         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
6317         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
6318         cthread_getspecific, cthread_setspecific, __libc_getspecific.
6319         * hurd/Versions
6320         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
6321         Put them here instead.
6322         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
6323         New version set.  Those cthreads symbols go here instead in this case.
6324         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
6326 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6328         * elf/dl-init.c (_dl_init): We don't need to call constructors
6329         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
6331         Implement dynamic determination of constructor/destructor order in
6332         the dynamic linker.
6333         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
6334         (GLIBC_2.2): Add _dl_init.
6335         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
6336         r_duplist is not anymore allocated separately.  l_initfini is and
6337         therefore free it if necessary.
6338         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
6339         malloc block.  Otherwise allocate l_initfini list only.
6340         Put dependencies for the object in l_initfini list.
6341         Sort dependencies for the object to be loaded topologically.
6342         * elf/dl-fini.c: Before running the destructors sort the topologically.
6343         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
6344         call constructors instead of iterating over the pointers.  Get list of
6345         objects for which to run constructors from l_initfini element. Accept
6346         argc, argv, and env as parameters and pass them to the constructors.
6347         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
6348         with size of dynamic section.
6349         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
6350         _dl_init_next and calling constructors ourself.
6351         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
6352         Take argc, argv, and env as parameters and pass them to the
6353         constructors.  Rewrite to call all constructors and not iterate over
6354         the pointers.
6355         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
6356         precompute l_initcount and l_preinitcount.
6357         * elf/link.h (struct link_map): Add l_ldnum member.
6358         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
6359         l_initcount, and l_preinitcount.  Add l_initfini.
6360         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
6361         one for _dl_init.
6362         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
6363         function interface.
6364         * sysdeps/unix/sysv/linux/init-first.h: Removed.
6365         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
6366         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
6367         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
6368         conventions now match.
6370         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
6371         effect for shared objects.  Don't emit message and call only for
6372         static library.
6374 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
6376         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
6377         CSA_Z243.4-1985-1..UCS2.
6378         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
6379         ISO-8859-10..UCS2.
6381 2000-03-29  Andreas Jaeger  <aj@suse.de>
6383         * include/unistd.h: Remove duplicate entry for __rmdir.
6384         Remove declaration of __mkdir since __mkdir is declared in
6385         sys/stat.h.
6387         * manual/creature.texi (Feature Test Macros): Fix typo, reported
6388         by Michael Deutschmann <michael@talamasca.ocis.net>.
6390         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
6391         * sysdeps/mips/fpu/fegetenv.c: Likewise.
6392         * sysdeps/mips/fpu/fesetenv.c: Likewise.
6393         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
6394         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
6396 2000-03-28  Andreas Jaeger  <aj@suse.de>
6398         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
6399         declaration, the prototype is defined via bits/mathcalls.h.
6400         (__sincosf): Likewise.
6401         (__sincosl): Likewise.
6402         (ldexp): Likewise.
6403         (ldexpf): Likewise.
6404         (ldexpl): Likewise.
6405         (__finite): Likewise.
6406         (__inline_mathcodeNP): New macro without prototype
6407         declarations.
6408         (__inline_mathcodeNP2): Likewise.
6409         (__inline_mathcodeNP3): Likewise.
6410         (__inline_mathcodeNP_): Likewise.
6411         (__inline_mathcodeNP2_): Likewise.
6412         (__inline_mathcodeNP3_): Likewise.
6413         (__inline_mathopNP): Likewise.
6414         (__inline_mathop_declNP): Likewise.
6415         (__inline_mathop_declNP_): Likewise.
6416         (__inline_mathcode_): Use __inline_mathcodeNP_.
6417         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
6418         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
6419         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
6420         (__expm1l): Don't define prototype, the prototype is defined via
6421         bits/mathcalls.h.
6422         (exp): Likewise.
6423         (__expl): Likewise.
6424         (tan): Likewise.
6425         (atan2): Likewise.
6426         (__atan2l): Likewise.
6427         (fmod): Likewise.
6428         (pow): Likewise.
6429         (fabsf): Likewise.
6430         (fabsl): Likewise.
6431         (__fabsl): Likewise.
6432         (asin): Likewise.
6433         (acos): Likewise.
6434         (sinh): Likewise.
6435         (cosh): Likewise.
6436         (tanh): Likewise.
6437         (floor): Likewise.
6438         (ceil): Likewise.
6439         (expm1): Likewise.
6440         (log1p): Likewise.
6441         (asinh): Likewise.
6442         (acosh): Likewise.
6443         (atanh): Likewise.
6444         (hypot): Likewise.
6445         (logb): Likewise.
6446         (fma): Likewise.
6447         (drem): Likewise.
6448         (sqrt): Likewise.
6449         (__sqrtl): Likewise.
6450         (sin): Likewise.
6451         (cos): Likewise.
6452         (atan): Likewise.
6453         (log): Likewise.
6454         (log10): Likewise.
6455         (asinh): Likewise.
6456         (log2): Likewise.
6457         (rint): Likewise.
6459 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
6461         * Makerules: If make variable md5 is defined to yes after
6462         generating dependencies generate MD5 sum for the object.
6464         * iconv/gconv_builtin.h: Fix length in transformation definition
6465         for UNICODEBIG.
6467         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
6469         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
6470         allow as well reading from/writing to unaligned addresses on machines
6471         which don't support this in hardware.  Use FCTNAME macro to define
6472         function name.  Include the file a second time for platforms which
6473         need special unaligned handling.
6474         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
6475         to access potentially unaligned addresses.  These macros are intended
6476         to be used only outside the loops.
6477         (unaligned): New definition.  In case the machine can handle unaligned
6478         access define as zero.  Otherwise as a variable which is initialized
6479         as nonzero in case the buffer passed in at runtime is unaligned with
6480         respect to the character set encoding involved.
6481         Call aligned or unaligned looop functions according to unaligned
6482         variable.
6483         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
6484         of direct casting pointer to potentially handle unaligned memory
6485         accesses.
6486         * iconvdata/8bit-generic.c: Likewise.
6487         * iconvdata/ansi_x3.110.c: Likewise.
6488         * iconvdata/big5.c: Likewise.
6489         * iconvdata/euc-cn.c: Likewise.
6490         * iconvdata/euc-jp.c: Likewise.
6491         * iconvdata/euc-kr.c: Likewise.
6492         * iconvdata/euc-tw.c: Likewise.
6493         * iconvdata/gbk.c: Likewise.
6494         * iconvdata/iso-2022-cn.c: Likewise.
6495         * iconvdata/iso-2022-jp.c: Likewise.
6496         * iconvdata/iso-2022-kr.c: Likewise.
6497         * iconvdata/iso646.c: Likewise.
6498         * iconvdata/iso_6937-2.c: Likewise.
6499         * iconvdata/iso_6937.c: Likewise.
6500         * iconvdata/johab.c: Likewise.
6501         * iconvdata/sjis.c: Likewise.
6502         * iconvdata/t.61.c: Likewise.
6503         * iconvdata/uhc.c: Likewise.
6504         * iconvdata/unicode.c: Likewise.
6505         * iconvdata/utf-16.c: Likewise.
6507         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
6508         prototypes.
6510         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
6511         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
6512         public.
6513         * malloc/mcheck.h (mcheck_check_all): Declare.
6515         * stdio-common/Makefile (tests): Add tst-obprintf.
6517 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
6519         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
6520         Declare pthread_sigmask.
6522         * csu/version.c: Add 2000 to copyright years.
6523         Remove Emacs local variables section.
6525 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
6527         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
6528         __gconv_transform_internal_ucs2little): Remove declarations.
6529         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
6530         __gconv_transform_internal_ucs2): Never need to bswap_16.
6531         (__gconv_transform_ucs2reverse_internal,
6532         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
6534 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
6536         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
6537         obsoleting version not being defined at all, in which case the
6538         result is always true.
6540         * Makeconfig (preprocess-versions): New canned sequence for running
6541         cpp on shlib-versions and the like.
6542         (soversions.i): Use it.
6543         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
6544         Versions.def and Versions files.
6546 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
6548         * stdio-common/tst-obprintf.c (main): Add another check to see
6549         obstack_printf handling all possible beginnings of the block
6550         inside an obstack chunk.
6552         * locale/programs/localedef.c: Use __malloc_initialize_hook to
6553         install mcheck handler.
6555         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
6556         handling problem.
6558 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
6560         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
6562         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
6563         on [HAVE_ELF && DO_VERSIONING].
6565 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
6567         * stdio-common/tst-obprintf.c: New file.
6569 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
6571         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
6572         _IO_OVERFLOW directly instead through __overflow.
6574         * locale/programs/localedef.c (construct_output_path): If path
6575         contains a / compute the end of the directory name correctly.
6577         * include/features.h: Undef and document __USE_XOPEN2K.
6579         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
6580         whenever a function is called.  Initiated by calling mcheck_pedantic
6581         instead of mcheck.
6582         * malloc/mcheck.h: Declare mcheck_pedantic.
6583         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
6584         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
6585         for now.
6587 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
6589         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
6590         * dlfcn/dlopenold.c: Likewise.
6591         * nss/getXXbyYY_r.c: Likewise.
6592         * nss/getXXent_r.c: Likewise.
6593         * hurd/hurdinit.c: Likewise.
6594         * hurd/compat-20.c: Likewise.
6595         * libio/oldiofopen.c: Likewise.
6596         * libio/oldiofclose.c: Likewise.
6597         * libio/oldiofdopen.c: Likewise.
6598         * libio/oldfileops.c: Likewise.
6599         * libio/oldstdfiles.c: Likewise.
6600         * libio/oldiofsetpos.c: Likewise.
6601         * libio/oldiofgetpos.c: Likewise.
6602         * libio/oldiofgetpos64.c: Likewise.
6603         * libio/oldiofsetpos64.c: Likewise.
6604         * libio/oldiopopen.c: Likewise.
6605         * libio/oldpclose.c: Likewise.
6606         * libio/oldtmpfile.c: Likewise.
6607         * libio/freopen.c (freopen): Likewise.
6608         * libio/iofclose.c (_IO_new_fclose): Likewise.
6610         * sysdeps/mach/sys/reboot.h: Include <features.h>.
6611         (reboot): Declare it.
6613         * libio/Makefile (headers): Add bits/stdio-lock.h here.
6615         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
6617         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
6619         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
6620         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
6621         We need this for the sbrk decl, which can be included without Unix98.
6623 2000-03-20  Richard Henderson  <rth@cygnus.com>
6625         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
6626         argument to yperr2nss is an int, not size_t.
6627         * posix/regex.c (print_partial_compiled_pattern): Cast all
6628         ptrdiff_t to long for printing.
6629         (print_compiled_pattern): Use Z for printing size_t.
6630         * posix/testfnm.c (tests): Avoid trigraphs.
6631         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
6632         Use a C comment, not an assembly comment.
6634         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
6635         of __ASSUME_32BITUIDS.
6637 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
6639         * libio/iofopncook.c: Remove K&R prototypes.
6641 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
6643         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
6644         an initial value of 1024 instead of RLIM_INFINITY.
6646         * Versions.def (libmachuser, libhurduser): Remove these sections,
6647         since these libraries do not presently use symbol versions.
6649         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
6650         is RLIM_INFINITY, return -1 instead.
6652 2000-03-24  Andreas Jaeger  <aj@suse.de>
6654         * Makefile (postclean): Added soversions.i.
6656 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
6658         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
6659         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
6660         and _FPU_IEEE.  Change _FPU_RESERVED.
6662 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
6664         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
6666 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
6668         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
6669         (gaih_inet): Remove unused duplicate variable.
6671         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
6672         Don't use __libc_sa_len, which only exists for Linux.  Just handle
6673         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
6674         only flavors supported by this function anyway.
6676 2000-03-24  Geoff Clare  <gwc@unisoft.com>
6678         * stdlib/strfmon.c: Corrected problems with missing signs and
6679         missing or extra spaces; allow for sign strings longer than
6680         one character; add padding to ensure positive and negative
6681         formats are aligned when a left precision is used.
6683 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
6685         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
6686         Patch by John Mizel <John.Mizel@msdw.com>.
6688 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
6690         * manual/install.texi: Remove references to crypt add-on.
6692 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
6694         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
6695         section while taking the _hurd_rlimit_lock.
6696         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
6698 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
6700         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
6701         using $(LN_S).
6703         * sysdeps/mach/hurd/if_index.c: New file.
6705         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
6706         * sysdeps/gnu/net/if.h: here.
6707         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
6708         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
6709         * sysdeps/generic/net/if.h: New file.  Declares just the standard
6710         functions and `struct if_nameindex' type.
6711         * socket/Makefile (headers): Add net/if.h here.
6712         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
6713         * sysdeps/mach/hurd/Dist: Remove it here.
6714         * sysdeps/unix/sysv/linux/Dist: And here.
6715         * sysdeps/generic/if_index.c: Include <net/if.h>.
6717 2000-03-24  Andreas Jaeger  <aj@suse.de>
6719         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
6720         access relocated entries in l_info.
6721         (elf_machine_got_rel): Likewise.
6722         (elf_machine_runtime_setup): Likewise.
6723         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
6724         (elf_machine_runtime_setup): Likewise.
6725         (__dl_runtime_resolve): Likewise.
6727 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
6729         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
6730         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
6731         according to RFC 2553.
6732         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
6733         * inet/getnameinfo.c: Likewise.
6734         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
6736 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
6738         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
6739         Remove no-op pointer increment.
6741 2000-03-23  Andreas Jaeger  <aj@suse.de>
6743         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
6744         follow change for libio.h from 2000-03-10.
6746 2000-03-23  Andreas Jaeger  <aj@suse.de>
6748         * elf/dl-addr.c: Adjust include paths for ldsodefs location
6749         change.
6750         * elf/dl-debug.c: Likewise.
6751         * elf/dl-deps.c: Likewise.
6752         * elf/dl-error.c: Likewise.
6753         * elf/dl-fini.c: Likewise.
6754         * elf/dl-init.c: Likewise.
6755         * elf/dl-load.c: Likewise.
6756         * elf/dl-lookup.c: Likewise.
6757         * elf/dl-minimal.c: Likewise.
6758         * elf/dl-object.c: Likewise.
6759         * elf/dl-open.c: Likewise.
6760         * elf/dl-preinit.c: Likewise.
6761         * elf/dl-profile.c: Likewise.
6762         * elf/dl-profstub.c: Likewise.
6763         * elf/dl-reloc.c: Likewise.
6764         * elf/dl-runtime.c: Likewise.
6765         * elf/dl-support.c: Likewise.
6766         * elf/dl-symbol.c: Likewise.
6767         * elf/dl-version.c: Likewise.
6768         * elf/rtld.c: Likewise.
6769         * elf/sprof.c: Likewise.
6770         * sysdeps/generic/dl-cache.c: Likewise.
6771         * sysdeps/generic/dl-origin.c: Likewise.
6772         * sysdeps/generic/dl-sysdep.c: Likewise.
6773         * sysdeps/generic/elf/backtracesyms.c: Likewise.
6774         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
6775         * sysdeps/generic/libc-start.c: Likewise.
6776         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6777         * sysdeps/powerpc/dl-machine.c: Likewise.
6778         * sysdeps/powerpc/elf/libc-start.c: Likewise.
6779         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6780         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6781         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6783         * elf/ldsodefs.h: Move file to ...
6784         * sysdeps/generic/ldsodefs.h: ... here.
6786         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
6788         * sysdeps/mips/elf/ldsodefs.h: New file.
6790         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
6791         entries in l_info.
6792         (_dl_check_map_versions): Likewise.
6793         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6794         * elf/dl-load.c (_dl_init_paths): Likewise.
6795         (_dl_map_object): Likewise.
6796         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
6797         (elf_get_dynamic_info): Likewise.
6798         * elf/do-lookup.h (FCT): Likewise.
6799         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
6800         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
6801         * elf/dl-addr.c (_dl_addr): Likewise.
6802         * elf/dl-runtime.c (profile_fixup): Likewise.
6803         (fixup): Likewise.
6804         * elf/dl-init.c (_dl_init_next): Likewise.
6805         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
6806         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
6807         (DISTINGUISH_LIB_VERSIONS): Likewise.
6808         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
6809         (elf_machine_rel): Likewise.
6811         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
6812         for writable dynamic section.
6814 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
6816         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
6817         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
6819 2000-03-22  Andreas Jaeger  <aj@suse.de>
6821         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
6822         from latest Linux kernel.
6824 2000-03-21  Andreas Jaeger  <aj@suse.de>
6826         * Versions.def: Add version 2.1.4.
6828 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
6830         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
6831         * libio/oldiofopen.c: Likewise.
6832         * libio/oldiofclose.c: Likewise.
6833         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
6835 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
6837         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
6838         indicating the first version set to obsolete the conditionalized code.
6839         (compat_symbol): New macro.
6840         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
6841         rhs be the ABI_* macro for the subsuming version.  Assign increasing
6842         integer values to the ABI_* macros for supported versions.
6843         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
6844         compat_symbol macro.
6846 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
6848         * nscd/connections.c (nscd_run): Pretty print.
6849         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
6851         * manual/charset.texi: Fix typos.  Rephrase.
6852         * manual/process.texi: Likewise.
6853         * manual/signal.texi: Likewise.
6854         Patches by Mike Coleman <mkc@kc.net>.
6856         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
6857         versions.
6858         * libio/iofdopen.c: Likewise.
6859         * libio/iofgetpos.c: Likewise.
6860         * libio/iofgetpos64.c: Likewise.
6861         * libio/iofopen.c: Likewise.
6862         * libio/iofsetpos.c: Likewise.
6863         * libio/iofsetpos64.c: Likewise.
6864         * libio/iopopen.c: Likewise.
6865         * libio/oldiofopen.c: Likewise.
6866         * libio/pclose.c: Likewise.
6867         * sysdeps/gnu/siglist.c: Likewise.
6868         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
6870         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
6871         chance to expand VERSION_##lib##_##version.
6873         * libio/fileops.c: Use new macros from shlib-compat.h to define
6874         versions.
6875         * libio/iofclose.c: Likewise.
6876         * libio/oldiofclose.c: Likewise.
6877         Patch by Roland McGrath <roland@frob.com>.
6879 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
6881         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
6882         Lay out struct sigcontext according to what really gets passed on
6883         the stack.
6884         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
6885         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
6886         (prgregset_t, prfpregset_t): Define to elf_* types.
6887         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
6888         Define to correct value.
6889         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
6890         sigcontext.
6891         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
6893 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
6895         * scripts/firstversions.awk: Allow multiple version sets in the
6896         "earliest version" specification, meaning that version sets in the
6897         gaps between listed versions should be folded into the earliest later
6898         version that is explicitly listed.
6899         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
6900         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
6902 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
6904         * iconv/gconv_builtin.c: Include <endian.h>.
6905         * iconv/gconv_builtin.h: Add UCS-BE aliases.
6906         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
6907         according to current platform.
6908         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
6909         __gconv_transform_internal_ucs2reverse, and
6910         __gconv_transform_internal_ucs4le.
6911         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
6912         __gconv_transform_ucs2reverse_internal and
6913         __gconv_transform_internal_ucs2reverse.
6914         * iconvdata/Makefile (modules): Add UNICODE.
6915         (distribute): Add unicode.c.
6916         * iconvdata/gconv-modules: Add definitions for UNICODE module.
6917         * iconvdata/unicode.c: New file.
6919         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
6920         determine byte order of input and convert accordingly.
6922         * iconvdata/utf-16.c (gconv_init): Fix typo.
6924 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
6926         * iconvdata/gconv-modules: Fix typo.
6928         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
6929         more messages.
6931         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
6933 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
6935         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
6937 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
6939         * misc/Makefile (routines): Add mincore.
6941 2000-03-20  Andreas Jaeger  <aj@suse.de>
6943         * sysdeps/generic/mincore.c: New stub file.
6945         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
6946         from latest Linux kernel.
6948 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
6950         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
6951         _SC_GETPW_R_SIZE_MAX.
6953 2000-03-20  Richard Henderson  <rth@cygnus.com>
6955         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
6956         in GLIBC_2.1.4.
6958 2000-03-20  Richard Henderson  <rth@cygnus.com>
6960         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
6961         of arithmetic instructions.
6963         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
6964         with the fpcr.  Protect from INV exception.
6965         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6966         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
6967         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6969         * sysdeps/alpha/fpu/s_copysign.c: New.
6970         * sysdeps/alpha/fpu/s_copysignf.c: New.
6971         * sysdeps/alpha/fpu/s_fabs.c: New.
6972         * sysdeps/alpha/fpu/s_fabsf.c: New.
6973         * sysdeps/alpha/fpu/s_rint.c: New.
6974         * sysdeps/alpha/fpu/s_rintf.c: New.
6976         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
6978         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
6979         Kill sethae.
6980         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
6981         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
6982         Use physical addresses not KSEG addresses.
6983         (io_system): Add PYXIS.
6984         (io): Remove hae.reg, sys, hae_shift.
6985         (stb_mb, stw_mb, stl_mb, __sethae): New.
6986         (inline_outb, inline_outw, inline_outl): Don't set hae.
6987         (inline_inb, inline_inw, inline_inl): Likewise.
6988         (dense_sethae): New null function.
6989         (struct cpuinfo_data): New.
6990         (process_cpuinfo): Use local and stack variables, not static.
6991         Move readlink check here from init_iosys.
6992         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
6993         (_iopl): Simplify.
6994         (_hae_shift): Calculate it here.
6995         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
6996         add pciconfig_iobase.
6998 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
7000         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
7001         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
7003         * scripts/versions.awk: Fixed version renaming code to distinguish
7004         libraries properly.
7006 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
7008         * include/stdlib.h: Add prototype for __cxa_atexit.
7010         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
7011         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
7013 2000-03-17  Cristian Gafton  <gafton@redhat.com>
7015         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
7016         existing rtld-installed-name.
7017         ($(rtld-installed-name)): Request libc-$(version) be installed too.
7018         replace existing rtld-installed-name using $(symbolic-link-prog).
7020 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
7022         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
7023         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
7024         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
7025         but not the former.
7027 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
7029         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
7030         glob64.  Since there is no glob64 in the LFS proposal applications
7031         can assume that glob handles LFS situations.  glob64 is only needed
7032         if alternative filesystem functions are used.
7034 2000-03-19  Geoff Clare  <gwc@unisoft.com>
7036         * sysdeps/generic/glob.c: Correct gl_pathc value returned
7037         when GLOB_DOOFFS is set; correct handling of patterns
7038         containing escaped wildcards (and no unescaped ones);
7039         GLOB_ERR flag was being ignored in some situations.
7041         * posix/globtest.c, posix/globtest.sh: Updated to include
7042         tests for the problems fixed by the above changes to glob.c.
7044         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
7046 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
7048         * Makeconfig (soversion.i): Use only first match for each lib.
7050         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
7052         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
7053         rather than $(sysd-dirs-done) to protect these rules.
7055         * Makerules (version-renames.def): Target removed.
7056         (Versions.all): Depend on soversions.i directly and parse it.
7058         * Makeconfig (soversions.i): New target, input-reading parts of
7059         soversions.mk generation moved here; result is a canonicalized
7060         list "LIB VERSION [SET]" for this configuration.
7061         (soversions.mk): Use that as input.  Don't emit map-firstversions.
7062         * Makerules (version-renames.def): New target, generated from
7063         soversions.i with contents that was in $(map-firstversions).
7064         (Versions.all): Don't depend on soversions.mk, depend on
7065         version-renames.def instead; just cat it into the input.
7067         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
7068         for $(map-firstversions), which better handles it being empty.
7070         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
7071         supported version for libc 0.2.90.libio to GLIBC_2.2.
7073         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
7074         and use it to emit new variable `map-firstversions'.
7075         * scripts/firstversions.awk: New file.
7076         * Makerules (Versions.all): Use scripts/firstversions.awk and
7077         the $(map-firstversions) value to generate a modified versions list
7078         that includes renames in "A = B" syntax for each version set earlier
7079         than the "earliest symbol version" named in shlib-versions.
7080         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
7081         rename version set A to B in the output to the intermediate file.
7082         * scripts/abi-versions.awk: New file.
7083         * Makerules (abi-versions.h): New target, generated by that script.
7084         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
7085         * include/shlib-compat.h: New file, uses that generated header.
7087 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
7089         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
7090         after stripping # comments, and then run it through cpp.
7091         This allows things like "%ifdef FOO" based on config.h settings.
7092         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
7094         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
7095         and other errors that indicate a pseudo-receive happened, grok through
7096         the message buffer for port rights that need references fixed up.
7098 2000-03-16  Andreas Jaeger  <aj@suse.de>
7100         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
7102         * sysdeps/unix/sysv/linux/madvise.c: Remove.
7104         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
7105         from latest Linux kernel.
7106         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
7108         * misc/sys/mman.h: Add prototype for mincore.
7110 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
7112         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
7113         entry for GLIBC_2.0 version of setrlimit.
7114         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
7116 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
7118         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
7119         * nis/nss_compat/compat-initgroups.c: Likewise.
7120         * nis/nss_nis/nis-initgroups.c: Likewise.
7121         * nis/nss_nis/nis-netgrp.c: Likewise.
7122         * nis/nss_nis/nis-proto.c: Likewise.
7123         * nis/nss_nis/nis-rpc.c: Likewise.
7124         * nis/nss_nis/nis-service.c: Likewise.
7125         * nis/ypclnt.c: Likewise.
7127 2000-03-16  Andreas Jaeger  <aj@suse.de>
7129         * manual/Makefile: MAKEINFO is set to `:' from configure if it
7130         doesn't exist, correct checks.  Fixes PR libc/1649.
7132 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
7134         * nscd/hstcache.c: Restore correct UID.
7135         * nscd/pwdcache.c: Likewise.
7136         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
7138 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
7140         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
7141         macros for register names, in line with 2000-03-14 linux change.
7143         * sysdeps/mach/sched_yield.c: New file.
7145 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
7147         * sysdeps/generic/lockfile.c: Include <stdio.h>
7148         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
7149         case <libio.h> defined them.
7150         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
7151         from __internal_*.
7152         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
7153         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
7155         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
7156         for more pleasing parse error.
7158 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
7160         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
7161         memory for eras.
7162         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
7164         * elf/Makefile: Add rules to compile and run constload1 test.
7165         * elf/constload1.c: New file.
7166         * elf/constload2.c: New file.
7167         * elf/constload3.c: New file.
7169 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
7171         * sysdeps/posix/open64.c: Make __open64 weak alias.
7172         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
7173         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
7174         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
7175         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7176         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7177         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
7178         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7179         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7180         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7181         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7183 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
7185         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
7186         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
7188 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
7190         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
7191         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
7193 2000-03-08  Andreas Jaeger  <aj@suse.de>
7195         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
7197 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
7199         * timezone/africa: Update from tzdata2000d.
7200         * timezone/asia: Likewise.
7201         * timezone/australasia: Likewise.
7202         * timezone/europe: Likewise.
7203         * timezone/northamerica: Likewise.
7204         * timezone/southamerica: Likewise.
7206         * po/fr.po: Update from translation team.
7207         * po/de.po: Likewise.
7209         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
7210         last parameter.  Move code to add map to global scope from here...
7211         * elf/dl-open.c (dl_open_worker): ...here.
7212         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
7213         * elf/rtld.c: Adjust call to _dl_map_object_deps.
7215         * locale/programs/ld-collate.c (collate_read): Fix warning.
7217         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
7218         values and macros for register names.
7220         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
7221         returned by seek cookie function is -1.
7223 2000-03-14  Andreas Jaeger  <aj@suse.de>
7225         * locale/localeconv.c (localeconv): Fix typo.
7226         Reported by Andre Charbonneau <andrec@corel.com>.
7228 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
7230         * iconv/skeleton.c: Increment __invocation_counter in inner loop
7231         since modules depend on it counting the number of times the conversion
7232         function got called.
7234         * iconv/gconv_open.c: Optimize loop to setup step data structure.
7236         * iconv/gconv.h: Pretty print.
7238 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
7240         * posix/wordexp-test.c: Correct one of the tests added in the last
7241         change.  Really get the root passwd entry to check again ~root.
7243 2000-03-10  Andreas Jaeger  <aj@suse.de>
7245         * manual/filesys.texi (Working Directory): Fix last patch.
7246         Patch by Martin Buchholz  <martin@xemacs.org>.
7248 2000-03-10  Andreas Jaeger  <aj@suse.de>
7250         * manual/creature.texi (Feature Test Macros): Fix language.
7252 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
7254         * mach/devstream.c (devstream_write, devstream_read): New functions.
7255         (input, output): Functions removed.
7256         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
7257         using only the vanilla fopencookie interface.
7259         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
7260         as macro for __io_functions.
7261         (funcsio): Use cookie_io_functions_t type name.
7262         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
7264         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
7265         fopencookie.
7266         (fopencookie): Use it.
7267         * libio/libio.h: Declare _IO_cookie_init.
7268         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
7269         _IO_cookie_init.
7271         * libio/libio.h (__io_seek_fn): Fix second argument type
7272         to be a pointer, in line with the manual and the old stdio.
7273         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
7275         * sysdeps/generic/bits/stdio-lock.h: New file.
7276         This is a stub with #error, but that's better than no file at all.
7278 2000-03-09  Martin Buchholz  <martin@xemacs.org>
7280         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
7281         * manual/message.texi (Using gettextized software): Doc Fixes.
7282         * manual/message.texi (Message Translation): Doc Fixes.
7283         * manual/filesys.texi (File Size): Doc Fixes.
7284         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
7285         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
7286         * iconv/gconv_db.c (find_derivation): Doc Fixes.
7287         * manual/install.texi: Doc Fixes.
7288         * manual/search.texi (Hash Search Function): Doc Fixes.
7289         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
7290         * FAQ.in: Doc Fixes.
7291         * config.h.in: Doc Fixes.
7292         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
7293         Doc Fixes.  `allows to' is not correct English.
7295         * elf/rtld.c: Doc fixes.
7296         * manual/creature.texi (Feature Test Macros): Doc fixes.
7297         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
7299         * manual/filesys.texi (Working Directory): Check for ERANGE to
7300         avoid infloop.
7302 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
7304         * string/argz-stringify.c (__argz_stringify): Fix loop termination
7305         conditions so as not to clobber the final '\0' when there is only one
7306         element in the vector.
7308 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
7310         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
7311         broken by 2000-02-27 change.
7313         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
7315 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
7317         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
7318         argument type, for 2000-02-22 change in signal/signal.h declaration.
7320 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
7322         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
7323         to getdirentries64 (no __), since the Linux implementation
7324         has no __ name, and there is no declaration for the __ name.
7326         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
7328         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
7329         sed regexp so as not to break directory names including /../ within.
7331         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
7332         The sysdeps/generic file is right for BSD.  This file was in fact the
7333         Hurd file, but the only difference was the WNOREAP flag that was never
7334         actually implemented or used anywhere.
7336         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
7337         since AC_PATH_PROG already does it for us.
7338         (PERL): Rewrite check added in 2000-02-29 change for syntactic
7339         correctness and sh portability.  I replaced the broken check
7340         with a more sensible implementation of the apparently intended
7341         semantics, which might still be questionable.  Using expr causes
7342         a non-numeric value for `perl -V:apiversion` to be accepted,
7343         refusing to use only a perl that reports a number less than 5;
7344         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
7345         * configure: Regenerated.
7347 2000-03-08  Andreas Jaeger  <aj@suse.de>
7349         * manual/crypt.texi: Fix paths.
7351 2000-03-07  Andreas Jaeger  <aj@suse.de>
7353         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
7354         were swapped.
7355         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
7356         libc/1636.
7358 2000-03-06  Andreas Jaeger  <aj@suse.de>
7360         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
7361         in __sgn1l, otherwise g++ fails to parse this.
7362         Reported by Sean Chen <sean.chen@turbolinux.com>.
7364 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
7366         * configure.in: Compute sizeof-long-double.
7367         * configure: Regenerated.
7368         * config.make.in: Make sizeof-long-double available to sub-makes.
7370 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
7372         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
7373         call.
7375 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
7377         * Makeconfig (rpath-dirs): Add crypt.
7378         (all-subdirs): Remove md5crypt.
7379         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
7380         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
7381         * sysdeps/generic/crypt-entry.c: Delete.
7382         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
7383         * sysdeps/generic/crypt.h: Delete.
7384         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
7385         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
7386         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
7387         * sysdeps/generic/des_impl.c: Delete.
7388         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
7389         * crypt/sysdeps: Delete.
7390         * crypt/crypt_util.c: Don't use `patchlevel.h'.
7391         * md5-crypt/Versions: Move to crypt/.
7392         * md5-crypt/md5-crypt.c: Move to crypt/.
7393         * md5-crypt/md5.c: Move to crypt/.
7394         * md5-crypt/md5c-test.c: Move to crypt/.
7395         * md5-crypt/md5test.c: Move to crypt/.
7396         * md5-crypt: Delete.
7397         * crypt/Makefile: Adjust for new structure.
7399 2000-03-03  Paul Eggert  <eggert@twinsun.com>
7401         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
7402         define to 1 if not defined.
7404 2000-03-03  Andreas Jaeger  <aj@suse.de>
7406         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
7408 2000-03-03  Andreas Jaeger  <aj@suse.de>
7410         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
7411         cases.
7412         (xdr_int64_t): Correctly handle lower half.
7413         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
7415 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
7417         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
7418         call.
7420 2000-03-02  Andreas Jaeger  <aj@suse.de>
7422         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
7423         2.3.43.
7425 2000-03-02  Andreas Jaeger  <aj@suse.de>
7427         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
7429 2000-03-01  Andreas Jaeger  <aj@suse.de>
7431         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
7432         (tests): Added tst-getdate.
7434         * time/tst-getdate.c: New file.
7436         * time/datemsk: New file, needed for tst-getdate.
7438 2000-02-29  Cristian Gafton  <gafton@redhat.com>
7440         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
7442 2000-02-17  H.J. Lu  <hjl@gnu.org>
7444         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
7446         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
7447         available.
7448         (svcudp_recv): Set up message with the new "xp_pad" field for
7449         IP_PKTINFO.
7450         (svcudp_reply): Support IP_PKTINFO if available.
7452 2000-03-01  Andreas Jaeger  <aj@suse.de>
7454         * time/getdate.c (check_mday): Fix check for february.
7455         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
7456         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
7458 2000-03-02  Andreas Jaeger  <aj@suse.de>
7460         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
7461         g++ fails to parse this.
7462         Reported by Sean Chen <sean.chen@turbolinux.com>.
7464 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
7466         * io/creat.c: Moved to...
7467         * sysdeps/generic/creat.c: ...here.
7468         * io/creat64.c: Moved to...
7469         * sysdeps/generic/creat64.c: ...here.
7470         * io/lockf.c: Moved to...
7471         * sysdeps/generic/lockf.c: ...here.
7473         * crypt/crypt.texi: Moved to...
7474         * manual/crypt.texi: ...here.
7475         * crypt/examples/genpass.c: Moved to...
7476         * manual/examples/genpass.c: ...here.
7477         * crypt/examples/mygenpass.c: Moved to...
7478         * manual/examples/mygenpass.c: ...here.
7479         * crypt/examples/testpass.c: Moved to...
7480         * manual/examples/testpass.c: ...here.
7482         * manual/Makefile (chapters): Add crypt.
7483         * manual/conf.texi: Add usual header for not-last chapter.
7484         * manual/crypt.texi: Add special header for last chapter.
7486 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
7488         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
7489         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
7490         complain if there is no crypt add-on.
7491         * crypt/configure: Removed.
7493         * crypt/crypt.texi: Update documentation of US export restrictions
7494         to match the 14 Jan 2000 regulations.
7496 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
7498         * crypt: New subdirectory, merged in from the crypt add-on.
7500 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
7502         * include/unistd.h: Add __rmdir and __mkdir prototypes.
7505 See ChangeLog.10 for earlier changes.