Update.
[glibc.git] / ChangeLog
blob16e377285cce73744044ac8ddc83534231cdfeb9
1 2000-07-26  Philip Blundell  <philb@gnu.org>
3         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
5 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
7         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
8         * locale/programs/ld-ctype.c: Adjust for this.
10         * locale/programs/ld-collate.c: Add more alignment checks.
11         * locale/string/strcoll.c: Likewise.
13 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
15         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
16         outside USE_IN_LIBIO block.
18 2000-07-26  Philip Blundell  <philb@gnu.org>
20         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
21         (elf_machine_rel): Use it for out-of-range PC24 relocs.
23 2000-07-28  Philip Blundell  <philb@gnu.org>
25         * math/test-fpucw.c: Ignore reserved bits in control word.
27 2000-07-28  Philip Blundell  <philb@gnu.org>
29         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
30         (ret): Redefine to PSEUDO_RET.
31         (PSEUDO): Remove jump to syscall_error.
33 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
35         * resolv/README: Add some information about using the resolver in
36         multi-threaded code and with C++.  Spelling fixes.
38 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
40         * resolv/resolv.h (struct __sockaddr_in): Remove.
41         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
43 2000-07-29  Greg McGary  <greg@mcgary.org>
45         * Rules (test-bp-inputs, make-test-out): New variables.
46         ($(objpfx)%-bp.out): New rule.
47         ($(objpfx)%.out): Rewrite in terms of new variables.
49         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
50         internal function that uses vtable.
51         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
52         * libio/vswprintf.c (_IO_vswprintf): Likewise.
54         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
55         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
56         (chunk_align): Likewise.
58         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
59         in a way that conforms to decl, and avoids spurious bounds violation.
61         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
62         * sysdeps/generic/frame.h: Likewise.
63         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
64         around return value.
65         (__backtrace): Qualify frame-pointer chain and return address
66         pointers as __unbounded.  Wrap bounds around variable `current'.
67         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
68         around return value.
69         (catch_segfault): Qualify frame-pointer chain and return address
70         pointers as __unbounded.  Wrap bounds around variable `current'.
71         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
72         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
73         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
74         __unbounded.
75         (__backtrace): Qualify frame-pointer chain and return address
76         pointers as __unbounded.  Wrap bounds around variable `current'.
78         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
79         * sysdeps/i386/mul_1.S: Likewise.
80         * sysdeps/i386/submul_1.S: Likewise.
81         * sysdeps/i386/i586/addmul_1.S: Likewise.
82         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
83         * sysdeps/i386/i586/submul_1.S: Likewise.
85 2000-07-27  Andreas Jaeger  <aj@suse.de>
87         * libio/Depend: New file, libio needs localedata for tests.
88         * posix/Depend: Likewise.
90 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
92         * stdio-common/_i18n_itoa.c: Removed.
93         * stdio-common/_i18n_itoa.h: Removed.
94         * stdio-common/_i18n_itowa.c: Removed.
95         * stdio-common/_i18n_itowa.h: Removed.
96         * stdio-common/_i18n_number.h: New file.
97         * stdio-common/Depend: New file.
98         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
99         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
100         printing.  Change printing of numbers with locale specific digits to
101         use new code in _i18n_number.h.
102         * stdio-common/Makefile (routines): Remove _i18n_itoa and
103         _i18n_itowa.
105         * stdio-common/bug13.c: Improve messages.
107         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
108         (set_class_defaults): Always search also for Uxxxx names.
109         Detect insufficient number of outdigits.
111         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
113 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
115         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
116         _NL_CTYPE_MAP_NAMES.
117         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
118         * wctype/wcfuncs.c (towlower, towupper): Use them.
119         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
120         * wctype/wctrans.c (wctrans): Likewise.
121         * wctype/wctrans_l.c (__wctrans_l): Likewise.
123 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
125         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
126         Use the optimized version of this function outside glibc as well.
128 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
130         * locale/indigits.h (indigit_value): Correct.
131         * locale/indigitswc.h (indigitwc_value): Correct.
132         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
133         conversion, add GROUP checking for it, fix GROUP number
134         conversion with strlen(thousands) > 1.
135         Honour width correctly in the presence of floating
136         decimal points and thousands separators.
137         * stdio-common/tst-sscanf.c: New test.
138         * stdio-common/Makefile: Add it to tests.
139         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
140         thousands separators and group argument is non-zero.
142 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
144         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
145         starts at GLIBC_2.2.
147 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
149         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
150         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
151         _test_and_set.
152         (headers): Add sys/tas.h.
153         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
154         GLIBC_2.2 from libc.
155         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
156         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
157         _test_and_set.
159 2000-07-28  Andreas Jaeger  <aj@suse.de>
161         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
163         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
164         ($(objpfx)tst-dladdr.out): new.
165         (tests): Add tst-dladdr.
166         ($(objpfx)glrefmain): Use libdl.
168         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
169         <vs@caldera.de>.
171 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
173         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
174         ftruncate(64) calls.
176 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
178         * intl/tst-translit.c: Include string.h to get prototype for
179         strcmp().
181 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
183         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
184         name and add weak alias for __fork.
186         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
187         & pwrite to use __libc_<name> as strong names instead of
188         __syscall_<name>.
190         * include/sched.h: Add clone2 prototype.
192 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
194         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
195         procedure name twice.
197 2000-07-27  Philip Blundell  <philb@gnu.org>
199         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
201 2000-07-27  Andreas Jaeger  <aj@suse.de>
203         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
204         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
205         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
206         Reported by Andi Kleen <ak@suse.de>.
208         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
209         (do_wait): Test requests with aio_return64.
210         (do_test): Change callers of do_wait.
212 2000-07-26  Andreas Jaeger  <aj@suse.de>
214         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
215         (do_wait): Test requests with aio_return.
216         (do_test): Change callers of do_wait.
218 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
220         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
221         from request list.  Don't do the list handling here, call
222         __aio_remove_request.
223         * rt/aio_misc.h: Add prototype for __aio_remove_request.
224         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
225         request might already be processed.  Don't do the list handling
226         here, call __aio_remove_request.
228         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
229         LIO_DSYNC.
231         * rt/aio_misc.c: Add comment explaining why writer memory barriers
232         are missing.
234 2000-07-27  Greg McGary  <greg@mcgary.org>
236         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
237         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
238         in union init.  Pass zero for ignored semnum arg to semctl.
239         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
241 2000-07-26  Greg McGary  <greg@mcgary.org>
243         * sysdeps/gnu/bits/msq.h: Qualify kernel's
244         data structure pointers as __unbounded.
245         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
246         * sysdeps/generic/bp-semctl.h: New file.
247         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
248         pointers as __unbounded.  Check bounds of syscall args.
249         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
250         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
251         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
252         * sysdeps/unix/sysv/linux/semop.c: Likewise.
253         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
254         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
255         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
256         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
257         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
258         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
259         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
260         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
261         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
262         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
263         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
264         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
266 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
268         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
269         by default.
270         * locale/C-ctype.c: Likewise.
271         * wcsmbs/wcsmbsload.c: Likewise.
273 2000-07-26  Greg McGary  <greg@mcgary.org>
275         * Makeconfig (+link-bounded, link-libc-bounded,
276         link-extra-libs-bounded): New variables.
277         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
278         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
279         * Rules (tests-bp.out): New variable.
280         (tests): Conditionally add BP tests.
281         (binaries-bounded): Add variable and associated rule.
282         * csu/Makefile [build-bounded] (extra-objs, install-lib):
283         Move conditional stuff after place where condition is defined.
285         * malloc/malloc.c (bp-checks.h): Add #include.
286         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
287         (_bin_at): Add unbounded version of bin_at.
288         (IAV, chunk_alloc): Use unbounded _bin_at.
289         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
290         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
291         Wrap BOUNDED_N around return value.
292         (chunk_realloc): Adjust oldsize once.
294         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
295         (__ubp_memchr): Add correct decl.
296         (_CHECK_STRING): Use __ubp_memchr.
297         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
298         New alias for unbounded-pointer __memchr.
299         * sysdeps/i386/memchr.S: Likewise.
300         * sysdeps/ia64/memchr.S: Likewise.
301         * sysdeps/m68k/memchr.S: Likewise.
302         * sysdeps/sparc/sparc32/memchr.S: Likewise.
303         * sysdeps/sparc/sparc64/memchr.S: Likewise.
304         * sysdeps/vax/memchr.s: Likewise.
306         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
307         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
308         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
309         * sysdeps/i386/i686/strtok.S: Likewise.
310         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
311         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
313         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
314         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
316         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
317         bounds of copy_result to mount_proc.
319 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
321         * wctype/wctype.h (__wctrans_l): New declaration.
322         * wctype/wctrans_l.c: New file.
323         * wctype/Makefile (routines): Add wctrans_l.
325 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
327         * posix/fnmatch_loop.c: Fixes for use outside glibc.
328         Patch by MacGyver <macgyver@tos.net>.
330 2000-07-26  Andreas Jaeger  <aj@suse.de>
332         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
333         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
334         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
336         * rt/tst-aio.c (test_file): Fix typo.
337         * rt/tst-aio64.c (test_file): Likewise.
339         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
340         * rt/Makefile: Add rules to build and run tst-aio3.
342         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
343         it's not needed and confuses only.
345 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
347         * resolv/res_init.c: Add support for nameserver communication with
348         IPv6.
349         * resolv/res_send.c: Likewise.
350         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
351         in nsaddrs field.
352         Patch by <venaas@nvg.ntnu.no>.
354 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
356         * locale/programs/ld-ctype.c (wctype_table_get): New function.
357         (wcwidth_table_get): New function.
358         (wcwidth_table_add): Call it.
359         (wctrans_table_get): New function.
360         (wctrans_table_add): Call it.
362 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
364         * rt/lio_listio.c (lio_listio): Always disable individual
365         notification.
366         * rt/Makefile: Add rules to build and run tst-aio2.
367         * rt/tst-aio2.c: New file.
369         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
370         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
372 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
374         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
375         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
376         leading and trailing spaces from host, user and domain name.
378 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
380         * csu/defs.awk: Add support for need_endp.
382 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
384         * resolv/resolv.h: Remove __P from res_send_qhook and
385         res_send_rhook typedefs.
387 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
389         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
391 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
393         * iconv/gconv_builtin.h: Add WCHAR_T alias.
395 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
397         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
398         calling thread, set the cancellation flag and return success
399         instead of EINTR.
401 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
403         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
404         * libio/tst-widetext.c: New file.
405         * libio/tst-widetext.input: New file.
407         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
409         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
410         empty external buffer correctly.
412 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
414         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
415         __STRING(entry) and not #entry.
416         (_RTLD_EPILOGUE): Likewise.
417         * sysdeps/mips/mips64/dl-machine.h: Likewise.
419 2000-07-25  Andreas Jaeger  <aj@suse.de>
421         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
422         according to changes in test program, run also with static only
423         builds.
424         ($(objpfx)tst-printf.out): Likewise.
426         * stdio-common/tst-unbputc.sh: Likewise.
427         * stdio-common/tst-printf.sh: Likewise.
429 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
431         * libio/wfileops.c (_IO_wdo_write): Correct return value.
433         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
434         loop.
436         * libio/fileops.c: Pretty print.
438 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
440         * wctype/wchar-lookup.h: New file.
441         * wctype/iswctype.c: Include "wchar-lookup.h".
442         (__iswctype): Support alternate locale format with 3-level tables.
443         * wctype/iswctype_l.c (__iswctype_l): Likewise.
444         * wctype/towctrans.c (__towctrans): Likewise.
445         * wctype/towctrans_l.c (__towctrans_l): Likewise.
446         * wctype/wcfuncs.c: Include "wchar-lookup.h".
447         (__ctype32_wctype, __ctype32_wctrans): Declare external.
448         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
449         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
450         __iswxdigit, towlower, towupper): Support alternate locale format
451         with 3-level tables.
452         * wctype/wcextra.c (iswblank): Likewise.
453         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
454         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
455         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
456         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
457         format with 3-level tables.
458         * wctype/wcextra_l.c (__iswblank_l): Likewise.
459         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
460         format, return a 3-level table pointer.
461         * wctype/wctype_l.c (__wctype_l): Likewise.
462         * wctype/wctrans.c (wctrans): Likewise.
463         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
464         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
465         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
466         (iswctype): Remove macro definition.
467         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
468         (internal_wcwidth): Support alternate locale format with 3-level
469         tables.
470         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
471         New nl_items.
472         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
473         Define them as being type "word".
474         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
475         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
476         __ctype32_width): New exported variables.
477         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
478         alternate locale format. Don't initialize __ctype_names and
479         __ctype_width in the alternate locale format.
480         * locale/programs/localedef.h (oldstyle_tables): New declaration.
481         * locale/programs/localedef.c (oldstyle_tables): New variable.
482         (OPT_OLDSTYLE): New macro.
483         (options): Add --old-style option.
484         (parse_opt): Handle --old-style option.
485         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
486         map_offset, class_3level, map_3level, width_3level members.
487         (ctype_output): Support for alternate locale format: Computation of
488         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
489         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
490         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
491         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
492         now contain both class and map tables.
493         (struct wctype_table): New type.
494         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
495         functions.
496         (struct wcwidth_table): New type.
497         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
498         functions.
499         (struct wctrans_table): New type.
500         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
501         functions.
502         (allocate_arrays): Support for alternate locale format: Set
503         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
504         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
505         to the first 256 characters. Compute ctype->map_3level. Set
506         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
507         instead of ctype->width.
509 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
511         * libio/iogetwline.c (_IO_getwline_info): Use wide character
512         string functions.
514 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
516         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
517         in wide characters, not bytes.
518         * libio/tst_putwc.c (do_test): Add test for writing lots of data
519         into file.
521 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
523         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
524         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
525         LC_MEASUREMENT, LC_IDENTIFICATION.
527         * locale/xlocale.h (struct __locale_struct): Increase size of
528         __locales array.
529         * locale/duplocale.c (__duplocale): Copy newly added categories as
530         well.
531         * locale/freelocale.c (__freelocale): Free newly added categories.
532         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
533         If a base is given, use it, don't simply return it.
535 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
537         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
538         variables, copied_key and copied_salt, instead of boolean variables.
540 2000-07-24  Andreas Jaeger  <aj@suse.de>
542         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
543         check for offset.
545         * grp/initgroups.c (initgroups_dyn_function): Renamed from
546         initgroups_function, adopted prototype for change from 2000-07-23.
547         (initgroups): Follow type change.
549         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
550         & PAGE_MASK case, reformat.
552         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
553         from stdin and setup environment.
555 2000-07-24  Andreas Schwab  <schwab@suse.de>
557         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
559 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
561         * string/endian.h: Explain the _*_ENDIAN constant values a bit
562         more.  Patch by scarlet@mit.edu [PR libc/1799].
564         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
565         [PR libc/1792].
567         * argp/argp-parse.c (parser_finalize): Reverse order in which
568         parsers are run for ARGP_KEY_END.  [PR libc/1755].
570         * grp/initgroups.c (initgroups): Don't limit the possible number
571         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
572         the setgroups call while the call fails and descrease the number
573         of groups each round.
574         The name of the initgroups function in the NSS modules changed.
575         (compat_call): Adapt for dynamic resizing.
576         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
577         Implement dynamic resizing.
578         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
579         Likewise.
580         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
581         * hesiod/Versions: Change exported interface name.
582         * nis/Versions: Change exported interface name.
584 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
586         * locale/iso-639.def: Some errors corrected.
587         Patch by Keld Simonsen.
589         * include/limits.h: Update non-gcc portion.
590         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
592 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
594         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
595         program's data space, reallocate only the space that was just
596         deallocated to release its backing space.
598 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
600         * stdio-common/vfprintf.c (process_string_arg): For wide character
601         version, handle precision also correctly.
603         * nss/nss_files/files-hosts.c: Correct problem with three or more
604         entries with the same name.
606         * nss/nss_files/files-hosts.c: Implement multi handling.
607         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
609 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
611         * nss/nss_files/files-parse.c: Don't pollute namespace by using
612         strcasecmp.
614         * grp/Makefile: Change Makefiles and tests to run only when necessary.
615         * malloc/Makefile: Likewise.
616         * malloc/tst-mtrace.sh: Likewise.
617         * posix/Makefile: Likewise.
618         * posix/globtest.sh: Likewise.
619         * posix/wordexp-tst.sh: Likewise.
620         * string/Makefile: Likewise.
622 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
624         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
625         size instead of LC_ALL to take into account the new locale
626         categories.
628 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
630         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
631         remainders of hash table.
632         * locale/categories.def: Remove remainders of transliteration
633         hash table.
634         * locale/langinfo.h: Likewise.
635         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
636         transliteration tables.
638         * locale/gen-translit.pl: New file.
639         * locale/C-translit.h.in: New file.
640         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
641         data pointers with data from this file.
642         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
643         and gen-translit.pl.
644         Add rule to generate C-translit.h.
645         * intl/tst-translit.c (main): Update for now performed
646         transliteration.
648         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
649         (it's no input error).
650         * stdio-common/tstscanf.c: Add test case for format %f with input --.
651         * stdio-common/scanf12.c: Correct expected result for first scanf.
653         * stdio-common/vfprintf.c (process_string_arg): Correct handling
654         of multibyte character strings in %s format with precision.
656 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
658         * locale/programs/ld-collate.c (collate_read): Allow collating
659         symbols and elements be named in reorder-after instructions.
660         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
662         * locale/programs/ld-collate.c (handle_ellipsis): Test for
663         duplication with generated name, not the name of the first
664         character.
665         Patch by Yong Li <yong.li@asu.edu>.
667         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
668         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
670 2000-07-21  Wolfram Gloger  <wg@malloc.de>
672         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
673         allocations only if a non-main arena cannot be extended.
675 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
677         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
678         in DF_1_NODEFLIB handling.
680 2000-07-21  Andreas Jaeger  <aj@suse.de>
682         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
683         own rule.
685         * libio/fwide.c: Include <wchar.h> for prototype.
687 2000-07-21  Greg McGary  <greg@mcgary.org>
689         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
690         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
691         Define in terms of chunk_at_offset.
692         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
693         (next_bin, prev_bin): offset by size of real array elements.
694         (chunk_align): Make `m' a scalar, since that's how it's used.
696 2000-07-21  Greg McGary  <greg@mcgary.org>
698         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
699         UNCHECK_BOUNDS.
700         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
701         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
702         Wrap bounds around argv & envp and each of their string members.
703         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
704         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
705         symbol in BP_SYM ().  Discard bounds of address arg.
706         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
707         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
708         Discard bounds on address arg, add bounds to return value.
710 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
712         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
713         * elf/filter.c: New file.
714         * elf/filtmod1.c: New file.
715         * elf/filtmod2.c: New file.
717         * elf/rtld.c: Define _dl_bind_not variable.
718         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
719         * elf/dl-support.c: Likewise.
720         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
721         * elf/dl-runtime.c (fixup): Don't remember looked up value if
722         _dl_bind_not.
723         (profile_fixup): Likewise.
725         * libio/Makefile (routines): Add fwide.
726         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
727         fwide now.  Internal calls to _IO_fwide must do locking themselves
728         or don't need locking.
729         * libio/fwide.c: New file.
731         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
733         * elf/Makefile: Add no modules for nodelete test.
734         * elf/nodelmod3.c: New file.
735         * elf/nodelmod4.c: New file.
736         * elf/nodelete.c: Also test case where dependency of dlopen() object
737         is marked nodelete.
739         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
740         * elf/nodlopen.c: New file.
741         * elf/nodlopenmod.c: New file.
742         * include/dlfcn.h: Define __RTLD_DLOPEN.
743         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
744         and this is a dlopen() call, do not load the binary.
745         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
746         * dlfcn/dlopenold.c: Likewise.
747         * configure.in: Add test for -z nodelete option.
748         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
750 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
752         Make Hesiod NSS module thread-safe.
754         * hesiod/README.hesiod: Update.
756         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
757         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
758         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
759         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
760         hesiod-proto.
761         * hesiod/nss_hesiod/hesiod-init.c: New file.
762         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
763         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
764         * hesiod/nss_hesiod/nss_hesiod.h: New file.
765         * hesiod/nss_hesiod/hesiod-service.c
766         (_nss_hesiod_getservbyport_r): New function.  Provide support for
767         looking up services by port number.
768         * hesiod/nss_hesiod/hesiod-proto.c: New file.
770         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
771         * hesiod/hesiod.h: Likewise.
772         * hesiod/hesiod_p.h: Likewise.
774 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
776         Fix problems with `struct __res_state' getting too big.
777         * resolv/resolv.h (struct __sockaddr_in): New definition.
778         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
779         the private parts of the structure to save some space.
780         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
781         (struct sockaddr_in *) in call to sock_eq.
782         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
784 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
786         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
787         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
788         with nodelete.
789         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
790         to _dl_map_object.  Return immediately if no object loaded.
791         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
792         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
793         if it exists into l_flags_1 word.
794         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
795         it to determine whether loading is wanted or not.
796         (_dl_map_object): Likewise.
797         Call _dl_map_object_from_fd with new parameter.
798         * sysdeps/generic/ldsodefs.h: Update prototype.
799         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
800         * elf/rtld.c: Likewise.
801         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
802         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
803         * elf/noload.c: New file.
804         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
805         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
806         * sysdeps/mips/bits/dlfcn.h: Likewise.
807         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
808         (tests-nodelete-yes): Define.
809         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
810         Add rules to build nodelete and modules.
811         * elf/nodelete.c: New file.
812         * elf/nodelmod1.c: New file.
813         * elf/nodelmod2.c: New file.
814         * configure.in: Add test for -z nodelete option.
815         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
817         * libio/Makefile (tests): Add tst_wprintf2.
818         (tst_wprintf2-ARGS): Define.
819         * libio/tst_wprintf2.c: New file.
820         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
822         * libio/wfiledoalloc.c: Only allocate external buffer if this
823         hasn't happened yet.
825         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
826         something in the buffer.  gconv call can write up to end of the
827         buffer, not only _IO_write_end.
828         (_IO_wfile_overflow): Allocate also external buffer.
830 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
832         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
833         strings with precision in vfwprintf correctly.
834         * stdio-common/vfprintf.c: Fix completely broken handling of
835         unbuffered wide character streams.
836         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
838         * resolv/Makefile (distribute): Add README.
840         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
842 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
844         Update resolver code to BIND 8.2.3-T5B.
846         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
847         __res_nclose.
848         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
849         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
850         __res_search.
851         * resolv/Banner: BIND-8.2.3-T5B.
853         * resolv/base64.c: Update from BIND 8.2.3-T5B.
854         * resolv/herror.c: Likewise.
855         * resolv/inet_addr.c: Likewise.
856         * resolv/inet_net_ntop.c: Likewise.
857         * resolv/inet_net_pton.c: Likewise.
858         * resolv/inet_neta.c: Likewise.
859         * resolv/inet_ntop.c: Likewise.
860         * resolv/nsap_addr.c: Likewise.
861         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
862         IPv6 addresses (ISC bug #520).
864         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
865         * resolv/ns_parse.c: Likewise.
866         * resolv/ns_netint.c: Likewise.
867         * resolv/ns_samedomain.c: Likewise.
868         * resolv/ns_ttl.c: Likewise.
869         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
870         RCS ID in object file.
872         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
873         * resolv/res_mkquery.c: Likewise.
874         * resolv/res_query.c: Likewise.
875         * resolv/res_init.c: Likewise.
876         (res_setoptions): Mark internal.
877         * resolv/res_send.c: Likewise.
878         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
879         by using poll instead.
880         * resolv/res_comp.c: Likewise.
881         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
882         weak alias for __dn_expand.
883         * resolv/res_data.c: Likewise.
884         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
885         in _res.options.  Avoids a potential security risk by avoiding a
886         close (0).
887         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
888         res_mkquery, res_query, res_querydomain adn res_search weak
889         aliases for __res_mkquery, __res_query, __res_querydomain and
890         __res_search.
891         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
892         instead to avoid close(0).
893         (res_init): Always use the static resolver context.
894         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
895         alias for __res_init.
897         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
898         RES_SET_H_ERRNO and accompanying comment to...
899         * include/resolv.h: ... here.
901         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
902         * resolv/arpa/nameser_compat.h: Likewise.
904 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
906         * nss/makedb.c (main): Compare result of load_db with
907         NSS_STATUS_SUCCESS and not 0.
908         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
910         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
912 2000-07-18  Greg McGary  <greg@mcgary.org>
914         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
915         (EXTEND_BUFFER): Use it.
917 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
919         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
920         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
921         __builtin_return_address.
922         * dlfcn/dlopenold.c: Likewise.
923         * dlfcn/dlsym.c: Likewise.
924         * dlfcn/dlvsym.c: Likewise.
925         * elf/dl-profstub.c: Likewise.
926         * malloc/malloc.c: Likewise.
927         * sysdeps/generic/machine-gmon.h: Likewise.
928         Based on a patch by schwidefsky@de.ibm.com.
930 2000-07-18  Andreas Jaeger  <aj@suse.de>
932         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
933         NULL to elf_machine_fixup_plt t argument to silence GCC.
935         * include/string.h: Add prototype for __memchr.
937         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
939         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
940         instead of memrchr.
942 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
944         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
946         * locale/C-ctype.c: Add initializers for gap elements.
947         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
948         for gap elements.
950 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
952         * nscd/nscd.c (print_version): Update copyright year.
954 2000-07-17  Greg McGary  <greg@mcgary.org>
956         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
957         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
958         signature argnames with angle-brackets for use as word delimiters,
959         and to induce syntax errors for any args not handled.  Split
960         multi-echo echoes and comment each stage.
961         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
962         * sysdeps/unix/inet/syscalls.list: Likewise.
963         * sysdeps/unix/mman/syscalls.list: Likewise.
964         * sysdeps/unix/syscalls.list: Likewise.
965         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
966         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
967         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
968         * sysdeps/unix/sysv/syscalls.list: Likewise.
969         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
971         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
972         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
973         qualifiers.  Don't check NULL-terminator of argv & envp.
974         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
975         unbounded pointer type in word-size assertion.
976         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
977         cases to stifle warnings.
979         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
980         _IO_file_attach.
981         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
983         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
984         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
985         ptr as __unbouned.
987         * Makerules (o-objects): Supplement with $(o-objects$o).
988         * string/Makefile (o-objects.ob): Add variable to pull
989         unbounded versions of memcpy, memset and memchr into libc_b.
991         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
992         rather than non-existent __ubp_memchr.
993         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
994         (_CHECK_STRING, _CHECK_N): New macros.
995         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
996         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
997         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
998         Add weak alias "memchr".
999         * sysdeps/generic/memchr.c: Likewise.
1000         * sysdeps/i386/memchr.S: Likewise.
1001         * sysdeps/ia64/memchr.S: Likewise.
1002         * sysdeps/m68k/memchr.S: Likewise.
1003         * sysdeps/sparc/sparc32/memchr.S: Likewise.
1004         * sysdeps/sparc/sparc64/memchr.S: Likewise.
1005         * sysdeps/vax/memchr.s: Likewise.
1007         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
1009         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
1010         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
1011         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
1012         __BOUNDED_POINTERS__.
1013         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
1014         for __BOUNDED_POINTERS__.
1016 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
1018         * iconv/gconv_open.c (__gconv_open): Initialize the __data
1019         field of struct __gconv_trans_data differently.  Don't pass NULL to
1020         trans_init_fct.  Simplify list append operation.
1022 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
1024         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
1025         not only those having tsearch.
1027 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
1029         * locale/langinfo.h: Add placeholder values in enum for removed
1030         LC_CTYPE entries.
1032 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
1034         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
1035         chain if the PHDR check fails.
1037 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
1039         * nss/getent.c (print_hosts): Make sure we always print a space
1040         between numeric addresses and hostnames.
1042 2000-07-17  Wolfram Gloger  <wg@malloc.de>
1044         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
1045         i.e. if n_mmaps_max>0.
1047 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
1049         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
1050         values to remove possible clash with other AI_* constants.
1051         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
1052         hexadecimal constants to stress the fact they're in fact
1053         bit flags.
1055 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
1057         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
1058         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
1059         instead of res_init.
1061 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
1063         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
1064         parameters of memset calls to avoid warnings.
1066 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
1068         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
1069         necessary.
1071         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
1072         Patch by Greg McGary <greg@mcgary.org>.
1074         * io/Makefile (tests): Add tst-getcwd.
1075         * io/tst-getcwd.c: New file.
1077         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
1079 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
1081         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
1082         structure.
1084 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
1086         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
1087         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
1089 2000-07-12  H.J. Lu  <hjl@gnu.org>
1091         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
1092         GLIBC_2.2.
1093         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
1094         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
1095         (sysdep-routines): Add clone2.
1096         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
1098 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
1100         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
1101         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
1103 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
1105         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
1106         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
1107         Change type of si_band from "int" to "long".
1108         (si_imm) [USE_GNU]: Define
1109         (si_isr) [USE_GNU]: Ditto.
1110         (ILL_BREAK) [USE_GNU]: Ditto.
1111         (FPE_DECOVF) [USE_GNU]: Ditto.
1112         (FPE_DECDIV) [USE_GNU]: Ditto.
1113         (FPE_DECERR) [USE_GNU]: Ditto.
1114         (FPE_INVASC) [USE_GNU]: Ditto.
1115         (FPE_INVDEC) [USE_GNU]: Ditto.
1116         (TRAP_BRANCH) [USE_GNU]: Ditto.
1117         (TRAP_HWBKPT) [USE_GNU]: Ditto.
1119 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
1121         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
1122         bits/sigcontext as struct mcontext does not depend on it.
1124         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
1126 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
1128         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
1130 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
1132         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
1134 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
1136         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
1138 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
1140         * intl/Makefile (test-srcs): Add tst-translit.
1141         (tests): Likewise.
1142         Add rules to build and run tst-translit.
1143         * intl/tst-translit.c: New file.
1144         * intl/tst-translit.sh: New file.
1145         * intl/translit.po: New file.
1147 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
1149         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
1150         transliteration function did its job, continue, don't stop.
1152         * iconvdata/iso646.c: Little optimizations in body for conversion
1153         from UCS4.
1155 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
1157         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
1159 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
1161         * configure.in: Check for pwd binary.
1162         * config.make.in: Add PWD_P to be subsituted.
1163         * Makerules: Use $(PWD_P) instead of /bin/pwd.
1165 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
1167         * iconvdata/Makefile (modules): Add GB18030.
1168         (distribute): Add gb18030.c.
1169         * iconvdata/gconv-modules: Add entries for GB18030 module.
1170         * iconvdata/gb18030.c: New file.
1171         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
1172         and Wu Jian.
1174 2000-07-13  Andreas Jaeger  <aj@suse.de>
1176         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
1177         patch.
1179         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
1180         * inet/getnetgrent.c (free_mem): Likewise.
1181         * misc/mntent.c (free_mem): Likewise.
1182         * nss/getXXbyYY.c (free_mem): Likewise.
1183         * nss/getXXent.c (free_mem): Likewise.
1184         * pwd/fgetpwent.c (free_mem): Likewise.
1185         * shadow/fgetspent.c (free_mem): Likewise.
1187 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
1189         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
1190         64-bit architecture correctly [PR libc/1794].
1192 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
1194         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
1195         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
1196         report that we are out of memory.
1197         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
1198         * elf/dl-libc.c (dlerror_run): Likewise.
1199         * elf/dl-open.c (_dl_open): Likewise.
1200         * elf/rtld.c (dl_main): Likewise.
1201         * elf/dl-error.c: Define _dl_out_of_memory.
1202         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
1203         the error string.
1204         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
1205         [PR libc/1813].
1207         * dlfcn/dlerror.c (free_key_mem): Also free error string.
1209         * iconv/loop.c: Fix comment.
1211         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
1213 2000-07-13  Andreas Jaeger  <aj@suse.de>
1215         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
1216         getcwd (NULL, size) with size > 0.
1217         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
1219 2000-07-13  Andreas Jaeger  <aj@suse.de>
1221         * posix/Makefile: Remove build rules for libposix.
1223 2000-07-13  Andreas Schwab  <schwab@suse.de>
1225         * sysdeps/generic/glob.c (glob): Fix memory leak.
1226         [SHELL]: Remove reference to undefined variable `files'.
1227         Fixes PR libc/1782.
1229 2000-07-13  Andreas Jaeger  <aj@suse.de>
1231         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
1232         functions.
1234         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
1235         memory if it was allocated.
1237 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
1239         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
1240         step.
1242         * iconv/gconv_open.c (__gconv_open): Reapply
1243         2000-07-12 Bruno Haible <haible@clisp.cons.org>
1245                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
1247         * iconv/gconv_open.c: Undo last two changes for now.  They break
1248         everything.
1250 2000-07-12  Andreas Jaeger  <aj@suse.de>
1252         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
1253         compiler.
1254         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
1255         (CFLAGS-dl-cache.c): Likewise.
1256         (CFLAGS-ldconfig.c): Added, passes directory locations.
1258         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
1259         locate cache.
1260         * elf/ldconfig.c (LD_SO_CONF): Likewise.
1261         (main): Use configured LIBDIR and SLIBDIR.
1263 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
1265         * math/bits/cmathcalls.h (cimag): Add __THROW.
1266         (creal, conj): Likewise.
1267         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
1268         by negative value.
1270 2000-07-12  H.J. Lu  <hjl@gnu.org>
1272         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
1273         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
1275 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
1277         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
1278         it is wrong.
1280 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
1282         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
1284 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
1286         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
1287         __modname.
1289 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
1291         * iconv/gconv_open.c (__gconv_open): Initialize
1292         result->__steps[cnt].__data.
1294 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
1296         * nss/getent.c (services_keys): Pass port number in network byte
1297         order in call to getservbyport.
1299 2000-07-11  Andreas Jaeger  <aj@suse.de>
1301         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
1302         source dir.
1303         * intl/Makefile (do-gettext-test): Likewise.
1304         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
1306 2000-07-11  Andreas Schwab  <schwab@suse.de>
1308         * Makeconfig (run-program-prefix): New rule.
1309         (built-program-cmd): Use run-program-prefix.
1311 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
1313         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
1314         and NOEXPR unconditionally available.
1316 2000-07-12  Greg McGary  <greg@mcgary.org>
1318         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
1319         * sysdeps/posix/open64.c: Likewise.
1320         * sysdeps/generic/fegetenv.c: Likewise.
1321         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
1322         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
1323         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
1324         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
1325         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
1326         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
1328 2000-07-11  Greg McGary  <greg@mcgary.org>
1330         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
1331         Add extra level of macro expansion.
1332         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
1333         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
1334         is available at the time `select' prototype is declared.
1335         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
1336         Collect non-versioned weak aliases.  Consider only non-versioned
1337         aliases for the user-visible systemcall name.  Do checks inline with
1338         call to primitive system call.
1339         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
1340         stand-alone bounds checks to suppress unused value warnings.
1341         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
1343 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
1345         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
1346         file descriptor checking in SUID programs for the Hurd.
1348         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
1349         res_hostalias instead of __hostalias for thread-safety.
1351 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
1353         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
1354         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
1356 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
1358         * include/features.h: Include ISO C99 features if the compiler used
1359         is an ISO C99 compiler.
1360         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1362 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
1364         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
1366 2000-07-10  Andreas Jaeger  <aj@suse.de>
1368         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
1369         it's overridden by libpthreads.
1370         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1371         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1372         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1373         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1374         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1376         * malloc/Makefile: Run tst-mtrace only with shared libs.
1378         * stdio-common/Makefile: Run unbputc and tst-printf tests only
1379         with shared libs.
1381 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1383         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
1384         that gpreg really points to the GOT section of the calling object.
1385         Scan all PT_LOAD segments of objects for stub_pc, instead of only
1386         checking a start address of first one.
1387         Fix typos.
1388         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
1389         Likewise.
1391         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
1393 2000-07-10  Andreas Jaeger  <aj@suse.de>
1395         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
1396         (string_alias->strong_alias).
1398 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
1400         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
1402 2000-07-07  Greg McGary  <greg@mcgary.org>
1404         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
1405         have no names without leading underscores.
1407 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1409         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
1410         U007E.
1412         * stdio-common/Makefile (tests): Remove tst-printf here...
1413         (tests-srcs): ...and add it here.
1414         (distribute): Add tst-unbputc.sh and tst-printf.sh.
1415         Add rules to run tst-printf.sh.
1416         * stdio-common/tst-printf.c: Move code around so that there is really
1417         no further output where it's stated.
1418         * stdio-common/tst-printf.sh: New file.
1420 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
1422         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
1423         (do_write): Renamed from pwrite.
1424         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
1425         `struct _IO_cookie_file'.
1427 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1429         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
1430         detected.
1431         * malloc/tst-mtrace.sh: Run mtrace script.
1433 2000-07-07  Greg McGary  <greg@mcgary.org>
1435         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
1436         Move all three components of a bounded pointer.
1438 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
1440         * locale/programs/locale.c (write_locales): Don't simply add all
1441         directories found in the subdir, test whether at least the
1442         LC_CTYPE file is in there.
1444 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
1446         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
1447         * iconvdata/euc-kr.c: Likewise.
1449         * stdio-common/vfprintf.c (process_string_arg): Check result of
1450         wcrtomb call and bail out if it failed.
1452         * malloc/Makefile (test-srcs): Add tst-mtrace.
1453         (distribute): Add tst-mtrace.sh.
1454         Add rule to run tst-mtrace.sh.
1455         * malloc/tst-mtrace.c: New file.
1456         * malloc/tst-mtrace.sh: New file.
1458         * include/signal.h: Declare __libc_sigaction.
1459         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
1460         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
1461         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1462         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1463         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1464         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
1465         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1467         * configure.in: Fix CFLAGS-memprofstat.c definition after
1468         2000-06-19 change.
1469         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
1471 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
1473         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
1474         instead of NULL to elf_machine_fixup_plt t argument.
1475         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1476         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
1477         cast.
1479 2000-07-06  Andreas Jaeger  <aj@suse.de>
1481         * crypt/Makefile (LDLIBS-cert): Removed.
1482         (LDLIBS-md5c-test): Removed.
1483         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
1484         ($(objpfx)md5c-test): Likewise for md5c-test.out.
1486 2000-07-06  Andreas Jaeger  <aj@suse.de>
1488         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
1489         of the proc system is "proc".
1491         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
1492         thread library for static programs.
1494 2000-07-06  Greg McGary  <greg@mcgary.org>
1496         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
1497         New macros.
1498         * sysdeps/generic/strcpy.c: Add bounds checks.
1499         * sysdeps/unix/fxstat.c: Likewise.
1500         * sysdeps/unix/xstat.c: Likewise.
1501         * sysdeps/unix/common/lxstat.c: Likewise.
1502         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1503         * sysdeps/unix/sysv/linux/execve.c: Likewise.
1504         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
1505         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1506         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
1507         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
1508         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
1509         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1510         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1511         * sysdeps/unix/sysv/linux/poll.c: Likewise.
1512         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1513         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1514         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
1515         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1516         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1517         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1518         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1519         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
1520         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1521         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
1522         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1523         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1524         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1525         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1526         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1527         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
1528         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1529         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1530         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1531         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1532         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
1533         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
1534         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1535         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1536         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1537         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
1538         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
1539         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
1540         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
1541         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1542         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1543         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
1544         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1545         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1546         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
1547         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1548         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1549         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
1550         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
1551         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
1552         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
1553         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1554         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1555         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1556         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1557         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1558         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1559         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
1560         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1561         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
1562         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
1563         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1564         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
1565         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
1567         * string/endian.h (__LONG_LONG_PAIR): New macro.
1568         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
1569         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1570         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1571         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1572         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1573         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1574         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
1575         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1576         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1577         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1578         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1579         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1581         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
1583 2000-07-06  Andreas Jaeger  <aj@suse.de>
1585         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
1586         Initialize result.
1588         * math/test-fpucw.c: Include <stdio.h> for printf.
1590 2000-07-05  Greg McGary  <greg@mcgary.org>
1592         * sysdeps/generic/bp-checks.h: New file.
1593         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
1594         with list of #include files.
1595         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
1596         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
1597         Don't generate BP thunk if `V' appears in signature.
1598         Generate thunks with complete bounds checks.
1599         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
1600         * sysdeps/unix/inet/syscalls.list: Likewise.
1601         * sysdeps/unix/mman/syscalls.list: Likewise.
1602         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1603         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1604         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1605         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
1607 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
1609         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
1610         result.  Search first in /etc/mtab (proc/mounts would be stupid).
1611         If mount not in the file fall back on /proc.
1613         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
1614         string got copied in.
1615         Patch by Solar Designer <solar@false.com>.
1617 2000-07-05  Andreas Jaeger  <aj@suse.de>
1619         * manual/install.texi (Installation): Update information about
1620         add-ons.
1621         (Configuring and compiling): Update for glibc 2.2.
1623 2000-07-04  Andreas Jaeger  <aj@suse.de>
1625         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
1626         (_FPU_IEEE): Likewise.
1628         * math/Makefile (tests): Add test-fpucw.
1630         * math/test-fpucw.c (main): New file.
1632 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
1634         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
1636         * locale/programs/ld-collate.c (collate_output): Also write out the
1637         collation sequence values and the wide character string for the
1638         collation symbol table.
1640         * posix/fnmatch.c: Include "../locale/elem-hash.h".
1641         * posix/fnmatch_loop.c: Implement collating symbol handling.
1642         * posix/tst-fnmatch.input: Add more tests, especially for collating
1643         symbol handling.
1645         * posix/regex.c: Fix comment.
1647 2000-07-05  Andreas Jaeger  <aj@suse.de>
1649         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
1650         (_FPU_GETCW): Remove extra colon.
1651         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
1653         * posix/fnmatch_loop.c (FCT): Only declare len if
1654         !WIDE_CHAR_VERSION to silence GCC.
1656         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
1657         prototype.
1658         * sysdeps/generic/strchrnul.c: Likewise.
1659         * sysdeps/generic/strlen.c: Likewise.
1660         * sysdeps/generic/strchr.c: Likewise.
1661         * sysdeps/generic/memchr.c: Likewise.
1663 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
1665         * posix/fnmatch_loop.c: Implement equivalence class handling.
1666         * posix/tst-fnmatch.input: Add tests for equivalence class
1667         handling.
1669         * posix/fnmatch_loop.c: Improve performance for single-byte
1670         character sets by not using btowc.
1672         * posix/tst-fnmatch.input: Add tests for locale dependent
1673         behaviour.
1674         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
1676         * posix/tst-fnmatch.input: Add more test cases.
1678         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
1679         are not aligned to alignof(md5_uint32) do it before calling
1680         __md5_process_bytes.
1681         * crypt/md5.c: Make sure buffers are aligned.
1682         * crypt/md5.h: Likewise.
1683         Reported by Solar Designer <solar@false.com>.
1685         * crypt/Makefile: Add dependencies for test programs.
1687         * Rules: Define LC_ALL=C in environments of all programs we run.
1689         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
1691 2000-07-03  H.J. Lu  <hjl@gnu.org>
1693         * locale/programs/ld-ctype.c (ctype_output): The size of iov
1694         is 2 + elem + offset, not 2 + elem + offset + 2.
1696 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
1698         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
1699         suite.
1700         * posix/Makefile (tests): Add tst-fnmatch.
1701         (tst-fnmatch-ENV): Define.
1702         * posix/tst-fnmatch.c: New file.
1703         * posix/tst-fnmatch.sh: New file.
1705 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
1707         * locale/programs/charmap.c (charmap_read): Prepend
1708         the condition filename == NULL.
1710 2000-07-03  Greg McGary  <greg@mcgary.org>
1712         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
1714         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
1715         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
1717         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
1718         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
1719         (FILEBUF_LITERAL): Add cast for CHAIN init.
1720         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
1721         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
1722         Revert type of `fp' to _IO_FILE*.
1723         (_IO_iter_file): Remove cast.
1724         (_IO_iter_next): Elide intermediate member reference.
1726         * sysdeps/powerpc/strchr.S:  Check bounds.
1727         Wrap extern symbols in BP_SYM ().
1729 2000-07-03  Andreas Jaeger  <aj@suse.de>
1731         * dlfcn/Makefile (generated): New.
1733 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
1735         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
1736         (__uflow): Likewise.
1737         (__underflow): Likewise.
1738         * libio/wgenops.c (__wunderflow): Likewise.
1739         * stdio-common/tst-unbputc.c: New file.
1740         * stdio-common/tst-unbputc.sh: New file.
1741         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
1743         * po/en_GB.po: New file.
1744         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
1746 2000-07-01  Andreas Jaeger  <aj@suse.de>
1748         * intl/Makefile (generated-dirs): New.
1750         * elf/Makefile (generated): trusted-dirs.h is always generated,
1751         move out of build-shared condition.
1752         (generated): Merge the two entries for build-shared.
1754 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
1756         * debug/Makefile (distribute): Add xtrace.sh.
1758 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1760         * version.h (VERSION): Bump to 2.1.91.
1762         * configure.in: Update warning comment.  glibc should not be
1763         broken anymore.
1765         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
1766         ioperm.c, sys/procfs.h, and sys/io.h.
1768         * sysdeps/powerpc/Dist: Add bp-asm.h.
1770         * assert/Depend: Add localedata.
1771         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
1772         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
1774         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
1775         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
1776         relocation address to prevent unaligned trap.
1777         Suggested by Richard Henderson <rth@cygnus.com>.
1779 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
1781         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
1782         if redirecting and either redirection is done using defines or
1783         not optimizing.
1785 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1787         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
1788         generated expressions.
1789         Patch by Darren McClelland <dmcclell@zetec.com>.
1791         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
1792         since zic uses setlocale and gettext but we cannot make it use the
1793         new locale data since zic calls a shell which might not use the
1794         new libc.
1796         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
1797         handling the internation currency symbol.  POSIX says that the
1798         fourth character is used to separate the currency symbol from the
1799         value.  Therefore it does not have to be printed.  But we cannot
1800         remove the space if the currency symbol is printed before the
1801         number since this is what many locales expect.
1803         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
1804         whether this information is available.
1806         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
1807         buffers in case the translation is too large.  Remember allocated
1808         memory blocks in a list.
1809         (free_mem): Free memory for translations.
1811         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
1813         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
1814         information is available set the string length to zero.
1816         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
1818 2000-06-30  Greg McGary  <greg@mcgary.org>
1820         * sysdeps/powerpc/bp-asm.h: New file.
1821         * sysdeps/powerpc/__longjmp.S:  Check bounds.
1822         Wrap extern symbols in BP_SYM ().
1823         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
1824         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
1825         * sysdeps/powerpc/setjmp.S: Likewise.
1826         * sysdeps/powerpc/add_n.S: Likewise.
1827         * sysdeps/powerpc/addmul_1.S: Likewise.
1828         * sysdeps/powerpc/lshift.S: Likewise.
1829         * sysdeps/powerpc/rshift.S: Likewise.
1830         * sysdeps/powerpc/mul_1.S: Likewise.
1831         * sysdeps/powerpc/sub_n.S: Likewise.
1832         * sysdeps/powerpc/submul_1.S: Likewise.
1833         * sysdeps/powerpc/strlen.S: Likewise.
1834         * sysdeps/powerpc/memset.S: Likewise.
1835         * sysdeps/powerpc/stpcpy.S: Likewise.
1836         * sysdeps/powerpc/strcmp.S: Likewise.
1837         * sysdeps/powerpc/strcpy.S: Likewise.
1838         * sysdeps/powerpc/elf/bzero.S: Likewise.
1840         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
1841         Line up operands column with tabs.
1843 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
1845         * elf/Makefile (LDFLAGS-origtest): Actually add it.
1847         * sysdeps/ia64/htonl.S: New file.
1848         * sysdeps/ia64/htons.S: New file.
1849         * sysdeps/ia64/memcpy.S: Replace with version which does not use
1850         floating point registers.
1851         Patches by Dan Pop <Dan.Pop@cern.ch>.
1853 2000-06-30  Andreas Jaeger  <aj@suse.de>
1855         * posix/Makefile (tests): tst-exec and tst-spawn only work with
1856         shared libraries.
1858         * io/Makefile (CFLAGS-test-lfs.c): New.
1859         (tests): Add test-lfs.
1861         * io/test-lfs.c: New file.
1863 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
1865         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
1866         instruction.
1868 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
1870         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
1872 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
1874         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
1875         alias to the fstatfs call.
1877         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
1878         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
1880         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
1881         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
1883         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
1884         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
1885         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
1886         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
1888         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
1889         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
1891         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
1892         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
1894         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
1895         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
1897         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
1899 2000-06-29  Andreas Jaeger  <aj@suse.de>
1901         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
1902         with syslog.
1903         (print_err_message): Likewise.
1904         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
1906 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1908         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
1909         used as words is properly aligned.
1911         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
1912         data files.
1914 2000-06-29  Greg McGary  <greg@mcgary.org>
1916         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
1917         * sysdeps/unix/make-syscalls.sh: Handle signatures of
1918         length 7..9, just in case...
1919         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
1921         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
1922         (POP_ERRNO_LOCATION_RETURN): Fold insns.
1923         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
1924         (PUSH_SIGNAL_MASK): New macro.
1925         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
1926         LEAVE is unnecessary.  Check bounds of jmp_buf.
1927         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
1928         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
1929         immediately before tail-call.
1930         * sysdeps/i386/setjmp.S: Likewise.
1931         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1932         * sysdeps/i386/bsd-setjmp.S: Likewise.
1934 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
1936         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
1937         versioned_symbol.
1938         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
1939         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
1940         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
1941         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
1942         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
1943         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
1944         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
1945         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
1947 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1949         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
1950         we later need to calling free().
1951         Patch by Matt Wilson <msw@redhat.com>.
1953         * stdio-common/tst-printf.c: Add test for above problem.
1955 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
1957         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
1958         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
1960 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
1962         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
1963         prototype for abs().
1964         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
1966 2000-06-23  Andreas Jaeger  <aj@suse.de>
1968         * config.h.in: Don't use regparm with bounded pointers.
1970 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
1972         * stdlib/grouping.h: Correctly handle multibyte thousands
1973         separator and decimal point.
1974         * stdlib/stdtod.c: Likewise.
1975         * sysdeps/generic/strtol.c: Likewise.
1977         * locale/categories.def: Add entries for wide character decimal point
1978         and thousands separator in numeric and monetary category.
1980 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
1982         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
1983         second definition and initialization of decimal.
1985 2000-06-28  Greg McGary  <greg@mcgary.org>
1987         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
1988         out.
1989         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
1990         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
1991         in.
1992         (_IO_JUMPS): Don't cast THIS--expect arg to be a
1993         (struct _IO_FILE_plus *).
1994         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
1995         THIS, since _IO_JUMPS no longer does it implicitly.
1996         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
1997         arg type as (struct _IO_FILE_plus *).
1998         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
1999         arg as (_IO_strfile *).
2000         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
2001         Declare 1st arg as (_IO_strfile *).
2002         * libio/fileops.c (_IO_new_file_init): Declare
2003         arg type as (struct _IO_FILE_plus *).
2004         * libio/oldfileops.c (_IO_old_file_init): Likewise.
2005         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
2006         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
2007         Declare iteration pointer as (struct _IO_FILE_plus *).
2008         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
2009                 (struct _IO_FILE_plus *).
2010         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
2011         * libio/oldstdfiles.c (_IO_list_all): Likewise.
2012         (_IO_check_libio): Set user-visible handles to
2013         (struct _IO_FILE_plus *).
2014         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
2015         to (struct _IO_FILE_plus *).
2017         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
2018         whose high bound includes vtable to all functions that will use
2019         vtable.  For streambufs, pass pointer whose bounds include struct
2020         _IO_strfile.
2021         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
2022         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2023         * libio/iofopen.c (_IO_new_fopen): Likewise.
2024         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2025         * libio/iofopen64.c (_IO_fopen64): Likewise.
2026         * libio/iopopen.c (_IO_new_popen): Likewise.
2027         * libio/oldiopopen.c (_IO_old_popen): Likewise.
2028         * libio/memstream.c (open_memstream): Likewise.
2029         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2030         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
2031         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2032         * libio/iofopncook.c (_IO_cookie_init): Likewise.
2033         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
2034         * libio/vasprintf.c (_IO_vasprintf): Likewise.
2035         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2036         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
2037         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
2038         * stdlib/strfmon.c (__strfmon_l): Likewise.
2039         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
2040         (vfprintf): Qualify computed-goto targets as unbounded.
2042 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
2044         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
2045         thousands separator correctly.
2047         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
2048         * stdio-common/vfwscanf.c: Likewise.
2050 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
2052         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
2053         count into signatures for most calls.
2055 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
2057         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
2058         the generic parser now.
2060 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
2062         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
2063         table entries are 32 bit on the ia64 (as specified by the ABI),
2064         not 64 bit as on the Alpha.
2066         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
2067         change of objects to use 32 bit hash table indices (see above).
2069 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
2071         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
2072         prototype for abs().
2074 2000-06-28  Wolfram Gloger  <wg@malloc.de>
2076         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
2077         fails, try mmap_chunk() as a last resort even though n_mmaps_max
2078         may have been reached.
2080 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
2082         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
2083         symbols in multi-character weights correctly.
2085         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
2086         depending on whether the input string is empty or not.
2088         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
2089         given state and not avoiding this by modifying a local object.
2090         * wcsmbs/wcrtomb.c: Likewise.
2092         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
2093         object since some incomplete characters might be in there.
2095         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
2096         sequences with first byte 0x8e correctly.
2098         * iconvdata/jis0208.h: Remove redundant test.
2100 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
2102         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
2103         Add it where it is needed now.
2105         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
2106         the input charset into account when generating the hash table.
2107         (allocate_arrays): Correct setting default width.  Not all empty slots
2108         in the table are filled, only those not covert explicitly by the
2109         locale description and in the charset.
2111         * wctype/towctrans.c (__towctrans): Be graceful and accept error
2112         return values from the wctrans function.
2114         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
2115         wide character version.
2116         For %C handling, test correct pointer variable for NULL.
2118         * wcsmbs/wctob.c: Handle WEOF special.
2120         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
2122         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
2123         always-true test to avoid warning.
2125 2000-06-27  Greg McGary  <greg@mcgary.org>
2127         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
2128         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
2129         (symbol_version, default_symbol_version): Factor redundant
2130         definitions out of conditional.
2132 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
2134         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
2135         not obstack_blank.
2137 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
2139         * include/libc-symbols.h (symbol_version): Add extra level of
2140         macro expansion.
2141         (default_symbol_version): Likewise.
2143 2000-06-26  Greg McGary  <greg@mcgary.org>
2145         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
2146         for BP return value & push implicit struct-return pointer to
2147         __errno_location.
2148         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2149         (SYSCALL_ERROR_HANDLER): Likewise.
2150         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
2151         (SYSCALL_ERROR_HANDLER): Likewise.
2153         * Makeconfig: Add missing comment.
2154         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
2155         BP-flavored startup object.
2156         ($(objpfx)b$(start-installed-name)): New rule.
2157         * include/libc-symbols.h (symbol_set_declare): Change type
2158         of `__start_##set' and `__stop_##set' to pointer-to-function.
2159         (symbol_set_declare): Change type of `set' to array of
2160         pointer-to-function.
2161         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
2162         pointer-to-function.
2164         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
2166         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
2167         Remove clock_* and timer_* entries.
2168         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
2169         arg-count with signatures.
2171         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
2172         Check bounds of arguments.
2173         * sysdeps/i386/addmul_1.S: Likewise.
2174         * sysdeps/i386/lshift.S: Likewise.
2175         * sysdeps/i386/mul_1.S: Likewise.
2176         * sysdeps/i386/rshift.S: Likewise.
2177         * sysdeps/i386/sub_n.S: Likewise.
2178         * sysdeps/i386/submul_1.S: Likewise.
2179         * sysdeps/i386/i586/add_n.S: Likewise.
2180         * sysdeps/i386/i586/addmul_1.S: Likewise.
2181         * sysdeps/i386/i586/lshift.S: Likewise.
2182         * sysdeps/i386/i586/rshift.S: Likewise.
2183         * sysdeps/i386/i586/sub_n.S: Likewise.
2184         * sysdeps/i386/i686/add_n.S: Likewise.
2186         * sysdeps/i386/memchr.S: Likewise.
2187         * sysdeps/i386/memcmp.S: Likewise.
2188         * sysdeps/i386/rawmemchr.S: Likewise.
2189         * sysdeps/i386/i586/bzero.S: Likewise.
2190         * sysdeps/i386/i586/memcpy.S: Likewise.
2191         * sysdeps/i386/i586/mempcpy.S: Likewise.
2192         * sysdeps/i386/i586/memset.S: Likewise.
2193         * sysdeps/i386/i686/bzero.S: Likewise.
2194         * sysdeps/i386/i686/memcpy.S: Likewise.
2195         * sysdeps/i386/i686/mempcpy.S: Likewise.
2196         * sysdeps/i386/i686/memset.S: Likewise.
2198         * sysdeps/i386/stpcpy.S: Likewise.
2199         * sysdeps/i386/stpncpy.S: Likewise.
2200         * sysdeps/i386/strchr.S: Likewise.
2201         * sysdeps/i386/strchrnul.S: Likewise.
2202         * sysdeps/i386/strcspn.S: Likewise.
2203         * sysdeps/i386/strpbrk.S: Likewise.
2204         * sysdeps/i386/strrchr.S: Likewise.
2205         * sysdeps/i386/strspn.S: Likewise.
2206         * sysdeps/i386/strtok.S: Likewise.
2207         * sysdeps/i386/strtok_r.S: Likewise.
2208         * sysdeps/i386/i486/strcat.S: Likewise.
2209         * sysdeps/i386/i486/strlen.S: Likewise.
2210         * sysdeps/i386/i586/strchr.S: Likewise.
2211         * sysdeps/i386/i586/strcpy.S: Likewise.
2212         * sysdeps/i386/i586/strlen.S: Likewise.
2213         * sysdeps/i386/i686/strcmp.S: Likewise.
2214         * sysdeps/i386/i686/strtok.S: Likewise.
2215         * sysdeps/i386/i686/strtok_r.S: Likewise.
2217         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
2218         * sysdeps/i386/fpu/fesetenv.c: Likewise.
2219         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
2220         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
2221         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
2223         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
2224         * sysdeps/i386/mul_1.S: Likewise.
2225         * sysdeps/i386/submul_1.S: Likewise.
2226         * sysdeps/i386/i586/add_n.S: Likewise.
2227         * sysdeps/i386/i586/addmul_1.S: Likewise.
2228         * sysdeps/i386/i586/lshift.S: Likewise.
2229         * sysdeps/i386/i586/mul_1.S: Likewise.
2230         * sysdeps/i386/i586/rshift.S: Likewise.
2231         * sysdeps/i386/i586/sub_n.S: Likewise.
2232         * sysdeps/i386/i586/submul_1.S: Likewise.
2234 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
2236         * rt/Makefile (librt-routines): Add clock_nanosleep.
2237         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
2238         * sysdeps/generic/clock_nanosleep.c: New file.
2239         * sysdeps/unix/clock_nanosleep.c: New file.
2240         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
2241         * time/time.h: Declare clock_nanosleep.
2243 2000-06-26  Greg McGary  <greg@mcgary.org>
2245         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
2246         INSN1, INSN2, TEXT, GLOBL): Remove macros.
2247         (ALIGN): Cleanup surrounding conditionals.
2249         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
2250         Call ENTER/LEAVE macros.
2251         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
2252         * sysdeps/i386/submul_1.S: Likewise.
2254         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
2255         syntax.  Define & use symbolic argument stack offsets.  Call
2256         ENTER/LEAVE macros.
2257         * sysdeps/i386/i586/mul_1.S: Likewise.
2258         * sysdeps/i386/i586/submul_1.S: Likewise.
2260 2000-06-25  Greg McGary  <greg@mcgary.org>
2262         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
2263         not as bcopy.
2265 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
2267         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
2268         * iconvdata/gen-8bit-gap.sh: Likewise.
2269         * iconvdata/gen-8bit.sh: Likewise.
2271         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
2273         * locale/programs/ld-collate.c (collate_read): Don't actually read
2274         the copy locale if we are ignoring the content.
2276         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
2277         unknown character.
2279         * locale/programs/ld-collate.c: Correct handling of different
2280         collation sections.
2281         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
2282         as extra parameter from which to copy category information.
2283         Change all callers.
2284         (load_locale): Likewise.
2285         * locale/programs/localedef.h: Update prototypes of add_to_readlist
2286         and load_locale.
2287         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
2288         * locale/programs/locfile.h: Likewise.
2289         * locale/programs/locfile-kw.gperf: Add entry for script.
2290         * locale/programs/locfile-token.h: Add tok_script.
2292         * locale/programs/locale.c: Update copyright year.
2293         * locale/programs/localedef.c: Likewise.
2295 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
2297         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
2298         Jens Moeller <jens.moeller@waii.com>.
2300 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
2302         * locale/programs/ld-name.c (name_finish): Add missing format
2303         specifier to test for name_fmt.
2305         * locale/programs/ld-address.c (iso639): Correct length of string
2306         elements.
2307         (iso3166): Likewise.
2309         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
2311         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
2312         Define.
2314         * elf/elf.h (NT_PRFPXREG): Define.
2316 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
2318         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
2319         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
2321 2000-06-23  Andreas Schwab  <schwab@suse.de>
2323         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
2324         with signatures.
2326 2000-06-23  Andreas Jaeger  <aj@suse.de>
2328         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
2330         * io/test-stat.c: Add copyright header, mention Maciej.
2332         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
2333         SYS_mincore, SYS_madvise): Added.
2335         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
2336         execve.
2338 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
2340         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
2341         (CFLAGS-tst_putwc.c): New definition.
2342         * libio/tst_getwc.c: New file.
2343         * libio/tst_getwc.input: New file.
2344         * libio/tst_putwc.c: New file.
2346         * include/string.h: Add prototype for __strdup.
2348 2000-06-22  Greg McGary  <greg@mcgary.org>
2350         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
2351         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
2352         Fix signatures.
2354 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
2356         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
2358 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
2360         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
2362 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
2364         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
2365         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
2367 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
2369         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
2370         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
2371         and __S_TYPEISSHM.
2372         * sysdeps/mach/hurd/bits/stat.h: Likewise.
2373         * sysdeps/unix/bsd/bits/stat.h: Likewise.
2374         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
2375         * sysdeps/unix/sysv/bits/stat.h: Likewise.
2376         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
2377         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
2378         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2379         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2380         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2381         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2382         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
2383         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
2384         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
2385         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
2386         S_TYPEISSHM.
2388 2000-06-22  Andreas Jaeger  <aj@suse.de>
2390         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
2391         with signatures.
2393         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
2395         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
2397 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
2399         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
2400         ahead.
2402 2000-06-21  Greg McGary  <greg@mcgary.org>
2404         * Makerules (elide-routines.*, elide-bp-thunks):
2405         Define unconditionally.
2407 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
2409         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
2411 2000-06-21  Andreas Jaeger  <aj@suse.de>
2413         * io/Makefile (tests): Add test-stat.
2414         (CFLAGS-test-stat.c): New.
2416         * io/test-stat.c: New file from Maciej W. Rozycki
2417         <macro@ds2.pg.gda.pl>.
2419 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
2421         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
2422         in __rlimit_resource to make them match the kernel order.
2423         rlim_t is always 64 bit, use __rlim64_t to declare it
2424         unconditionally.
2426 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
2428         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
2429         RLIM_INFINITY before defining it to avoid clash with kernel header
2431 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
2433         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
2435 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
2437         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
2439 2000-06-21  Andreas Jaeger  <aj@suse.de>
2441         * stdio-common/temptest.c: Include <stdlib.h>.
2442         * stdio-common/tst-fileno.c: Likewise.
2443         * stdio-common/scanf4.c: Likewise.
2444         * stdio-common/scanf5.c: Likewise.
2445         * time/clocktest.c: Likewise.
2446         * posix/test-vfork.c: Likewise.
2447         * posix/globtest.c: Likewise.
2448         * io/test-utime.c: Likewise.
2449         * wctype/test_wcfuncs.c: Likewise.
2450         * crypt/cert.c: Likewise.
2452         * stdio-common/tst-printfsz.c: Include <string.h>.
2453         * libio/tst_swscanf.c: Likewise.
2454         * libio/tst_wscanf.c: Likewise.
2455         * posix/runtests.c: Likewise.
2456         * posix/tst-getaddrinfo.c: Likewise.
2457         * posix/wordexp-test.c: Likewise.
2458         * misc/tst-efgcvt.c: Likewise.
2460         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
2461         * nss/test-netdb.c: Likewise.
2463         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
2464         supported kernel for MIPS.
2466         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
2467         * rt/aio_suspend.c: Likewise.
2469 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
2471         * math/libm-test.inc: Include <string.h>.
2473 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2475         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
2477 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2479         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
2480         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
2482 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
2484         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
2486 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2488         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
2490 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
2492         * locale/programs/ld-collate.c (insert_value): Now take string and
2493         length instead of struct token* parameter.  Adjust use of token.
2494         (handle_ellipsis): Likewise.
2495         (collate_read): Allow <Uxxxx> names and transform them into names
2496         to be passed to insert_value and handle_ellipsis.
2498         * locale/programs/ld-ctype.c (uninames): New array with names of
2499         digits in <Uxxxxxxxx> format.
2500         (ctype_finish): Correct search for space character value.  Likewise
2501         for default outdigits values.
2503 2000-06-20  Greg McGary  <greg@mcgary.org>
2505         * Makerules (objects): Add BP thunks.
2507 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
2509         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
2510         in width definitions.
2512 2000-06-20  Andreas Jaeger  <aj@suse.de>
2514         * sysdeps/mips/fpu/libm-test-ulps: New file.
2516         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
2517         first.
2519         * sysdeps/mips/fpu/feholdexcpt.c: New file.
2521         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
2523 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
2525         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
2526         change in gconv_builtin.h.
2528         * malloc/Makefile: Change all references to memprof into memusage.
2529         * malloc/memprof.c: Rename to...
2530         * malloc/memusage.c: ...this.  New file.
2531         * malloc/memprof.sh: Rename to...
2532         * malloc/memusage.sh: ...this.  New file.
2533         * malloc/memprofstat.c: Rename to...
2534         * malloc/memusagestat.c: ...this.  New file.
2535         * sysdeps/alpha/memprof.h: Rename to..
2536         * sysdeps/alpha/memusage.h: ...this.  New file.
2537         * sysdeps/arm/memprof.h: Rename to..
2538         * sysdeps/arm/memusage.h: ...this.  New file.
2539         * sysdeps/generic/memprof.h: Rename to..
2540         * sysdeps/generic/memusage.h: ...this.  New file.
2541         * sysdeps/i386/memprof.h: Rename to..
2542         * sysdeps/i386/memusage.h: ...this.  New file.
2543         * sysdeps/ia64/memprof.h: Rename to..
2544         * sysdeps/ia64/memusage.h: ...this.  New file.
2545         * sysdeps/m68k/memprof.h: Rename to..
2546         * sysdeps/m68k/memusage.h: ...this.  New file.
2547         * sysdeps/mips/memprof.h: Rename to..
2548         * sysdeps/mips/memusage.h: ...this.  New file.
2549         * sysdeps/powerpc/memprof.h: Rename to..
2550         * sysdeps/powerpc/memusage.h: ...this.  New file.
2551         * sysdeps/sparc/memprof.h: Rename to..
2552         * sysdeps/sparc/memusage.h: ...this.  New file.
2553         * sysdeps/sh/memprof.h: Rename to..
2554         * sysdeps/sh/memusage.h: ...this.  New file.
2556         * elf/sprof.c (print_version): Update year.
2558         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
2559         table entry values.  Use D_PTR.
2560         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
2561         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
2563 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
2565         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
2566         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
2567         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
2568         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
2570 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
2572         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
2574 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
2576         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
2577         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
2578         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
2580         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
2582         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
2583         kernel change.
2585         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
2586         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
2587         structure.
2588         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
2589         implementation.
2591 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
2593         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
2595 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
2597         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
2599 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
2601         * iconv/gconv_int.h (strict gconv_module): Remove all members
2602         associated with regular expressions.  Use a simple string as the
2603         from name.
2604         * iconv/gconv_db.c: Remove code handling regular expressions.
2605         * iconv/gconv_conf.c: Likewise.
2606         * iconv/iconv_prog.c: Likewise.
2607         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
2609         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
2610         General namespace cleanup.
2611         (struct __gconv_trans_data): Add next field.
2612         (struct __gconv_step_data): Make __trans a pointer.
2613         * iconv/gconv_conf.c: Split out code to find gconv directories from
2614         __gconv_read_conf in new functions.
2615         * iconv/gconv_int.h: Define new data structure and declare new
2616         functions for handling of gconv directory list.
2617         * iconv/gconv_open.c: Allow more than one error handling step being
2618         used.  Call function to load error handling module if it is none
2619         of the builtin transformations.
2620         * iconv/gconv_close.c: Add code to free transliteration data.
2621         * iconv/gconv_trans.c: Add functions to load and unload modules
2622         implementing transliteration etc.
2623         * iconv/skeleton.c: Call all context functions now that more than
2624         one module is allowed.
2625         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
2626         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
2627         where the full error handling using transliteration is needed.
2628         * iconvdata/8bit-gap.c: Likewise.
2629         * iconvdata/8bit-generic.c: Likewise.
2630         * iconvdata/ansi_x3.110.c: Likewise.
2631         * iconvdata/big5.c: Likewise.
2632         * iconvdata/big5hkscs.c: Likewise.
2633         * iconvdata/euc-cn.c: Likewise.
2634         * iconvdata/euc-jp.c: Likewise.
2635         * iconvdata/euc-kr.c: Likewise.
2636         * iconvdata/euc-tw.c: Likewise.
2637         * iconvdata/gbgbk.c: Likewise.
2638         * iconvdata/gbk.c: Likewise.
2639         * iconvdata/iso-2022-cn.c: Likewise.
2640         * iconvdata/iso-2022-jp.c: Likewise.
2641         * iconvdata/iso-2022-kr.c: Likewise.
2642         * iconvdata/iso646.c: Likewise.
2643         * iconvdata/iso8859-1.c: Likewise.
2644         * iconvdata/iso_6937-2.c: Likewise.
2645         * iconvdata/iso_6937.c: Likewise.
2646         * iconvdata/johab.c: Likewise.
2647         * iconvdata/sjis.c: Likewise.
2648         * iconvdata/t.61.c: Likewise.
2649         * iconvdata/uhc.c: Likewise.
2650         * iconvdata/unicode.c: Likewise.
2651         * iconvdata/utf-16.c: Likewise.
2652         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
2653         structure correctly after last change.
2654         * wcsmbs/btowc.c: Likewise.
2655         * wcsmbs/mbrtowc.c: Likewise.
2656         * wcsmbs/mbsnrtowcs.c: Likewise.
2657         * wcsmbs/mbsrtowcs.c: Likewise.
2658         * wcsmbs/wcrtomb.c: Likewise.
2659         * wcsmbs/wcsnrtombs.c: Likewise.
2660         * wcsmbs/wcsrtombs.c: Likewise.
2661         * wcsmbs/wctob.c: Likewise.
2663         * localedata/Makefile: Set -Wno-format for some files since gcc does
2664         not know all the format specifiers.
2666 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
2668         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
2669         unneeded code.
2670         * locale/lc-time.c (_nl_init_era_entries): Likewise.
2672 2000-06-18  Andreas Jaeger  <aj@suse.de>
2674         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
2675         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
2677 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
2679         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
2680         LINUX_LINK_MAX.
2681         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
2683         * locale/programs/ld-ctype.c (ctype_output): Really write out
2684         mboutdigits information.
2685         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
2686         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
2687         * localedata/tests/trans.def: Add outdigit information.
2689         * localedata/tst-mbswcs3.c: Remove comment.
2691         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
2692         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
2693         * libio/tst_wprintf.c (main): Add test for I flag.
2695         * iconv/gconv_trans.c: Implement handling if translit_ignore.
2696         * locale/langinfo.h: Add entries for translit_ignore information.
2697         * locale/categories.def: Add entries for new LC_CTYPE elements.
2698         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
2699         pointer instead of "" where possible.
2700         * locale/programs/ld-ctype.c: Write out translit_ignore information.
2701         * intl/Depend: Add localedata.
2702         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
2703         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
2705 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
2707         * locale/langinfo.h: Add entries for default_missing information.
2708         * locale/C-ctype.c: Add initializers for new fields.
2709         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
2710         information.
2711         * locale/categories.h: Add entries for all LC_CTYPE values.
2712         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
2713         information.
2715         * localedata/tst-trans.c: Write out an error message if class is
2716         not found.
2718         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
2719         * iconv/gconv_open.c: Remove error handling specification from `from'
2720         character set name.
2721         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
2722         new parameter to always enable transliteration.
2723         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
2724         change.
2725         (struct locale_data): Add new members use_translit and options.
2726         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
2727         character set name contained modifier TRANSLIT.
2728         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
2729         and options fields.
2730         (_nl_unload_locale): Free options string if necessary.
2731         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
2732         the locale names suggested this.
2733         * locale/C-address.c: Add two new initialilzers to adjust data
2734         structure for new format.
2735         * locale/C-collate.c: Likewise.
2736         * locale/C-ctype.c: Likewise.
2737         * locale/C-identification.c: Likewise.
2738         * locale/C-measurement.c: Likewise.
2739         * locale/C-messages.c: Likewise.
2740         * locale/C-monetary.c: Likewise.
2741         * locale/C-name.c: Likewise.
2742         * locale/C-numeric.c: Likewise.
2743         * locale/C-paper.c: Likewise.
2744         * locale/C-telephone.c: Likewise.
2745         * locale/C-time.c: Likewise.
2747         * locale/setlocale.c: Add some more __builtin_expect.
2749 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
2751         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
2752         unsigned char **.
2753         (__gconv_init_fct): Remove two parameters.
2754         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
2755         gconv_transliterate.  Remove two parameters.
2756         Change prototypes of builtin functions according to __gconv_fct change.
2757         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
2758         != NULL only during error handling.  Stop in this case after the
2759         conversion.
2760         * iconv/gconv_trans.c: Replace with real implementation for
2761         __gconv_transliterate.
2762         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
2763         * iconv/gconv.c: Change calls to downstream functions once again.
2764         Use NULL for the fifth parameter instead of pointer to output buffer.
2765         * libio/iofwide.c: Likewise.
2766         * wcsmbs/btowc.c: Likewise.
2767         * wcsmbs/mbrtowc.c: Likewise.
2768         * wcsmbs/mbsnrtowcs.c: Likewise.
2769         * wcsmbs/mbsrtowcs.c: Likewise.
2770         * wcsmbs/wcrtomb.c: Likewise.
2771         * wcsmbs/wcsnrtombs.c: Likewise.
2772         * wcsmbs/wcsrtombs.c: Likewise.
2773         * wcsmbs/wctob.c: Likewise.
2774         * iconv/gconv_simple.c: Remove two parameters from error handling
2775         function call.
2776         * iconvdata/8bit-gap.c: Likewise.
2777         * iconvdata/8bit-generic.c: Likewise.
2778         * iconvdata/ansi_x3.110.c: Likewise.
2779         * iconvdata/big5.c: Likewise.
2780         * iconvdata/big5hkscs.c: Likewise.
2781         * iconvdata/euc-cn.c: Likewise.
2782         * iconvdata/euc-jp.c: Likewise.
2783         * iconvdata/euc-kr.c: Likewise.
2784         * iconvdata/euc-tw.c: Likewise.
2785         * iconvdata/gbgbk.c: Likewise.
2786         * iconvdata/gbk.c: Likewise.
2787         * iconvdata/iso-2022-cn.c: Likewise.
2788         * iconvdata/iso-2022-jp.c: Likewise.
2789         * iconvdata/iso-2022-kr.c: Likewise.
2790         * iconvdata/iso646.c: Likewise.
2791         * iconvdata/iso8859-1.c: Likewise.
2792         * iconvdata/iso_6937-2.c: Likewise.
2793         * iconvdata/iso_6937.c: Likewise.
2794         * iconvdata/johab.c: Likewise.
2795         * iconvdata/sjis.c: Likewise.
2796         * iconvdata/t.61.c: Likewise.
2797         * iconvdata/uhc.c: Likewise.
2798         * iconvdata/unicode.c: Likewise.
2799         * iconvdata/utf-16.c: Likewise.
2801 2000-06-15  Greg McGary  <greg@mcgary.org>
2803         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
2804         of callnum assignment.  Tolerate callnum expressions containing
2805         parens.
2807 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
2809         * login/Makefile (utmpd): Remove rule to build utmpd.
2811         * csu/Versions: Move libgcc frame handling functions from here...
2812         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
2813         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
2814         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
2815         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
2816         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
2817         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
2818         New file.
2819         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
2821         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
2823         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
2825 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
2827         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
2828         compatibility.
2829         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
2830         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
2831         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
2832         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
2834 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
2836         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
2837         defined, terminate quotes and read them after the comment char.
2838         * configure.in (HAVE_SECTION_QUOTES): Test whether
2839         __attribute__((section ("x"))) puts quotes around x or not.
2840         * config.h.in (HAVE_SECTION_QUOTES): Add.
2841         * configure: Rebuilt.
2843 2000-06-14  Andreas Jaeger  <aj@suse.de>
2845         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
2846         depending on the configure option --sysconfdir.
2847         Closes PR libc/1762.
2848         Patch by Andreas Schwab <schwab@suse.de>.
2850         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
2851         entry point.
2852         Reported by Jim Pick <jim@jimpick.com>.
2854 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
2856         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
2857         crashing the application.  Emit some simple error message.
2858         Reported by mju@panasas.com [PR libc/1769].
2860 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
2862         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
2864         * crypt/Makefile (distribute): Add md5.h.
2866         * Makefile (distribute): Add include/shlib-compat.h.
2868         * Make-dist: Search for tests also in sysdeps hierachy.
2870         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
2871         ufc.c, speeds.c, README.ufc-crypt, and Banner.
2873         * sysdeps/sparc/Subdirs: New file.
2875         * locale/Makefile (distribute): Add weightwc.h and
2876         programs/localedef.h.
2878         * time/Makefile (distribute): Add datemsk.
2880         * sysdeps/ia64/Dist: Add softpipe.h.
2882         * sysdeps/unix/sysv/aix/Dist: New file.
2884         * posix/setpgrp.c: Moved to...
2885         * sysdeps/generic/setpgrp.c: ...here.  New file.
2886         * io/mknod.c: Moved to...
2887         * sysdeps/generic/mknod.c: ...here.  New file.
2889         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
2891         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
2893         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
2895         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
2896         gprsave0.S, gprrest1.S, and gprrest0.S.
2898         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
2900         * posix/Makefile (routines): Add spawnattr_getsigmask,
2901         spawnattr_getschedpolicy, spawnattr_getschedparam,
2902         spawnattr_setsigmask, spawnattr_setschedpolicy, and
2903         spawnattr_setschedparam.
2904         * posix/Versions: Add posix_spawnattr_getschedpolicy,
2905         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
2906         posix_spawnattr_setschedparam.
2908         * posix/spawnattr_setschedparam.c: Fix typo.
2910         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
2911         Correct typo.
2913         * login/programs/utmpd.c: Removed.
2914         * login/programs/utmpd.h: Removed.
2915         * login/programs/utmpd-private.h: Removed.
2917         * Makefile (distribute): Add include/db_185.h and include/db.h.
2919         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
2920         iso-ir-165.h.
2922         * elf/Makefile (distribute): Add missing files.
2924         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
2925         * elf/eval.c: Moved to...
2926         * dlfcn/eval.c: ...here.  New file.
2928         * Makefile (distribute): Also distribute ChangeLog.1?.
2930         * Make-dist (+tsrcs): Remove .args handling here as well.
2932         * rt/Makefile (tests): Add tst-timer.
2933         * sysdeps/generic/tst-timer.c: New file.
2935         * Makerules (sources): Don't add BP sources here.
2937         * login/Makefile (distribute): Remove xtmp.h.
2939         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
2940         is true.  Reported by Bruno Haible <haible@ilog.fr>.
2942 2000-06-13  Andreas Jaeger  <aj@suse.de>
2944         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
2945         Patch by Ralf Baechle <ralf@gnu.org>.
2947 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
2949         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
2950         for mincore syscall.
2952         * misc/sys/cdefs.h: Define __bounded and __unbounded if
2953         __BOUNDED_POINTERS__ is not defined.
2955 2000-06-07  Greg McGary  <greg@mcgary.org>
2957         * sysdeps/generic/bp-sym.h: New file.
2958         * sysdeps/generic/bp-start.h: New file.
2959         * sysdeps/i386/elf/start.S: Designate BP symbols.
2960         * sysdeps/generic/libc-start.c: Wrap bounds around
2961         argv & envp and each of their string members.
2963 2000-06-07  Greg McGary  <greg@mcgary.org>
2965         * sysdeps/unix/make-syscalls.sh: Add comments to
2966         output that aid debugging & comprehension.
2967         Map simple syscall signatures to number of args.
2968         Generate BP syscall thunk definitions.
2969         * sysdeps/generic/bp-thunks.h: New file.
2970         * sysdeps/unix/syscalls.list: Replace arg-count with
2971         simple return+arg signature.
2972         * sysdeps/unix/common/syscalls.list: Likewise.
2973         * sysdeps/unix/inet/syscalls.list: Likewise.
2974         * sysdeps/unix/mman/syscalls.list: Likewise.
2975         * sysdeps/unix/sysv/syscalls.list: Likewise.
2976         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2977         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2979 2000-06-07  Greg McGary  <greg@mcgary.org>
2981         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
2982         for all files *.[cS].
2983         (CFLAGS-.ob): Don't optimize sibling calls.
2984         (bppfx): New variable.
2985         * Makerules (elide-bp-thunks): New variable.
2986         (elide-routines.*): Elide BP-* files for all but *.ob.
2987         (sources): Include bp-thunks.
2989 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2991         * iconv/gconv_simple.c: Remove unnecessary prototype.
2993         * iconv/gconv_trans.c: Pretty print.
2995         * elf/elf.h (R_SH_NUM): Got accidently dropped.
2997         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
2998         minimal kernel versions.  Add information about IA-64 kernel.
3000         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
3001         specific minimal supported kernel versions to be specified.
3003         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
3004         step data structure.
3005         * wcsmbs/btowc.c: Likewise.
3006         * wcsmbs/mbrtowc.c: Likewise.
3007         * wcsmbs/mbsnrtowcs.c: Likewise.
3008         * wcsmbs/mbsrtowcs.c: Likewise.
3009         * wcsmbs/wcrtomb.c: Likewise.
3010         * wcsmbs/wcsnrtombs.c: Likewise.
3011         * wcsmbs/wcsrtombs.c: Likewise.
3012         * wcsmbs/wctob.c: Likewise.
3014         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
3015         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
3017         * shlib-versions: Earliest backward compatible version for SH is 2.2.
3019         * misc/sys/cdefs.h: Remove one more __P.
3021         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
3022         Reported by HJ Lu.
3024         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
3025         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
3026         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
3028 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
3029             Yutaka Niibe  <gniibe@chroot.org>
3031         * configure.in: Add machine sh3, sh4.
3032         * elf/elf.h: Add SH specific declarations of relocations.
3033         * shlib-versions: Add sh*-*-linux* cases.
3035 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
3037         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
3038         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
3039         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
3040         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
3041         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
3042         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
3044         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
3045         instead of KERNEL_MATH_EMULATION.
3046         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
3047         KERNEL_MATH_EMULATION.
3049         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
3050         * sysdeps/sh/sh3/dl-machine.h: Moved to...
3051         * sysdeps/sh/dl-machine.h: ...here.  New file.
3052         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
3053         and include generic SH version.
3054         * sysdeps/sh/sh3/bits/endian.h: Move to...
3055         * sysdeps/sh/bits/endian.h: ...here.  New file.
3056         * sysdeps/sh/sh4/bits/endian.h: Removed.
3057         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
3058         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
3059         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
3061         * include/libc-symbols.h (link_warning): Work around a change in
3062         GAS which warns about changing section attributes.
3063         Proposed by Nick Clifton <nickc@redhat.com>.
3065 2000-06-12  H.J. Lu  <hjl@gnu.org>
3067         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
3069 2000-06-11  H.J. Lu  <hjl@gnu.org>
3071         * sysdeps/i386/fpu/Versions: New file.
3073 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
3075         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
3076         parameters.
3077         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
3078         exists.
3080 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
3082         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
3083         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
3084         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
3086         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
3087         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
3088         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
3090 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
3091             Yutaka Niibe  <gniibe@chroot.org>
3093         * sysdeps/sh/Dist: New file.
3094         * sysdeps/sh/Implies: New file.
3095         * sysdeps/sh/elf/initfini.c: New file.
3096         * sysdeps/sh/gmp-mparam.h: New file.
3097         * sysdeps/sh/init-first.c: New file.
3098         * sysdeps/sh/machine-gmon.h: New file.
3099         * sysdeps/sh/memcpy.S: New file.
3100         * sysdeps/sh/memprof.h: New file.
3101         * sysdeps/sh/memset.S: New file.
3102         * sysdeps/sh/sh3/__longjmp.S: New file.
3103         * sysdeps/sh/sh3/bits/endian.h: New file.
3104         * sysdeps/sh/sh3/bits/huge_val.h: New file.
3105         * sysdeps/sh/sh3/bits/setjmp.h: New file.
3106         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
3107         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
3108         * sysdeps/sh/sh3/dl-machine.h: New file.
3109         * sysdeps/sh/sh3/setjmp.S: New file.
3110         * sysdeps/sh/sh4/__longjmp.S: New file.
3111         * sysdeps/sh/sh4/bits/endian.h: New file.
3112         * sysdeps/sh/sh4/bits/huge_val.h: New file.
3113         * sysdeps/sh/sh4/bits/setjmp.h: New file.
3114         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
3115         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
3116         * sysdeps/sh/sh4/dl-machine.h: New file.
3117         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
3118         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
3119         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
3120         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
3121         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
3122         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
3123         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
3124         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
3125         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
3126         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
3127         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
3128         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
3129         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
3130         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
3131         * sysdeps/sh/sh4/setjmp.S: New file.
3132         * sysdeps/sh/elf/start.S: New file.
3133         * sysdeps/sh/sys/ucontext.h: New file.
3134         * sysdeps/sh/strlen.S: New file.
3135         * sysdeps/sh/sysdep.h: New file.
3136         * sysdeps/unix/sh/sysdep.S: New file.
3137         * sysdeps/unix/sh/sysdep.h: New file.
3138         * sysdeps/unix/sysv/linux/sh/Dist: New file.
3139         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
3140         * sysdeps/unix/sysv/linux/sh/Versions: New file.
3141         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
3142         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
3143         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
3144         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
3145         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
3146         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
3147         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
3148         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
3149         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
3150         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
3151         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
3152         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
3153         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
3154         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
3155         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
3156         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
3157         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
3158         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
3159         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
3160         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
3161         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
3162         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
3163         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
3164         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
3165         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
3166         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
3167         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
3168         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
3169         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
3170         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
3171         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
3172         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
3173         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
3174         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
3175         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
3176         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
3177         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
3178         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
3179         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
3180         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
3181         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
3182         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
3183         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
3184         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
3185         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
3186         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
3187         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
3189 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
3191         * Rules (%.out): Define GCONV_PATH in the environment.
3192         * assert/Depend: New file.
3193         * iconvdata/Depend: New file.
3194         * intl/Depend: New file.
3195         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
3196         * intl/tst-gettext.sh: Likewise.
3197         * iconv/Makefile (routines): Add gconv_trans.
3198         * iconv/gconv_trans.c: New file.
3199         * iconv/gconv.h (struct __gconv_trans_data): New type.
3200         (__gconv_fct): New parameter with starting position in output buffer.
3201         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
3202         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
3203         (struct __gconv_step): Add new member __trans.
3204         * iconv/gconv_int.h: Pretty print prototypes.
3205         (gconv_transliterate): New prototype.
3206         (__BUILTIN_TRANS): Update for new conversion function interface.
3207         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
3208         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
3209         in names, find appropriate function, and install in the conversion
3210         steps it can be used.
3211         * iconv/skeleton.c: Add additional parameter for beginning of output
3212         buffer.  Change calls of downstream functions.
3213         * iconv/loop.c: Change loop function interface completely.  Pass in
3214         step and step_data structure.  Remove optimization for BODY with
3215         NEED_LENGTH_TEST == 0.
3216         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
3217         appropriate error handling code to use transliteration steps.  Remove
3218         optimization for BODY with NEED_LENGTH_TEST == 0.
3219         * iconvdata/8bit-gap.c: Likewise.
3220         * iconvdata/8bit-generic.c: Likewise.
3221         * iconvdata/ansi_x3.110.c: Likewise.
3222         * iconvdata/big5.c: Likewise.
3223         * iconvdata/big5hkscs.c: Likewise.
3224         * iconvdata/euc-cn.c: Likewise.
3225         * iconvdata/euc-jp.c: Likewise.
3226         * iconvdata/euc-kr.c: Likewise.
3227         * iconvdata/euc-tw.c: Likewise.
3228         * iconvdata/gbgbk.c: Likewise.
3229         * iconvdata/gbk.c: Likewise.
3230         * iconvdata/iso-2022-cn.c: Likewise.
3231         * iconvdata/iso-2022-jp.c: Likewise.
3232         * iconvdata/iso-2022-kr.c: Likewise.
3233         * iconvdata/iso646.c: Likewise.
3234         * iconvdata/iso8859-1.c: Likewise.
3235         * iconvdata/iso_6937-2.c: Likewise.
3236         * iconvdata/iso_6937.c: Likewise.
3237         * iconvdata/johab.c: Likewise.
3238         * iconvdata/sjis.c: Likewise.
3239         * iconvdata/t.61.c: Likewise.
3240         * iconvdata/uhc.c: Likewise.
3241         * iconvdata/unicode.c: Likewise.
3242         * iconvdata/utf-16.c: Likewise.
3243         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
3244         DL_CALL_FCT.
3245         * wcsmbs/btowc.c: Likewise.
3246         * wcsmbs/mbrtowc.c: Likewise.
3247         * wcsmbs/mbsnrtowcs.c: Likewise.
3248         * wcsmbs/mbsrtowcs.c: Likewise.
3249         * wcsmbs/wcrtomb.c: Likewise.
3250         * wcsmbs/wcsnrtombs.c: Likewise.
3251         * wcsmbs/wcsrtombs.c: Likewise.
3252         * wcsmbs/wctob.c: Likewise.
3254 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
3256         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
3257         other header files.  Mention about 128-byte cache line sizes.
3258         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
3259         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
3260         for current calling sequence.
3261         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
3263         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
3264         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3266         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
3267         and setrlimit syscalls for backwards compatibility.
3269 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
3271         * iconv/skeleton.c:  Rename converted written to correcter name
3272         irreversible.
3273         * iconv/gconv.c: Rename converted variable to correcter name
3274         irreversible.
3275         * iconv/gconv_int.h: Likewise.
3276         * iconv/gconv_simple.c: Likewise.
3277         * iconv/iconv.c: Likewise.
3278         * iconv/loop.c: Likewise.
3279         * iconvdata/8bit-gap.c: Likewise.
3280         * iconvdata/8bit-generic.c: Likewise.
3281         * iconvdata/ansi_x3.110.c: Likewise.
3282         * iconvdata/big5.c: Likewise.
3283         * iconvdata/big5hkscs.c: Likewise.
3284         * iconvdata/euc-cn.c: Likewise.
3285         * iconvdata/euc-jp.c: Likewise.
3286         * iconvdata/euc-kr.c: Likewise.
3287         * iconvdata/gbgbk.c: Likewise.
3288         * iconvdata/gbk.c: Likewise.
3289         * iconvdata/iso-2022-cn.c: Likewise.
3290         * iconvdata/iso-2022-jp.c: Likewise.
3291         * iconvdata/iso-2022-kr.c: Likewise.
3292         * iconvdata/iso646.c: Likewise.
3293         * iconvdata/iso8859-1.c: Likewise.
3294         * iconvdata/iso_6937-2.c: Likewise.
3295         * iconvdata/iso_6937.c: Likewise.
3296         * iconvdata/johab.c: Likewise.
3297         * iconvdata/sjis.c: Likewise.
3298         * iconvdata/t.61.c: Likewise.
3299         * iconvdata/uhc.c: Likewise.
3300         * iconvdata/unicode.c: Likewise.
3301         * iconvdata/utf-16.c: Likewise.
3303         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
3304         __cmsg_data field with __extension__.
3306 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
3308         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
3310 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
3312         * iconv/gconv_simple.c: Fix various small bugs in several
3313         functions.
3315         * iconv/loop.c: Fix comment.
3317 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
3319         * elf/link.h: Remove libc internal declarations.
3320         * include/link.h: Move them here.
3322 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
3324         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
3325         Patch by Dan Pop <Dan.Pop@cern.ch>.
3327         Rewrite error message handling.
3328         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
3329         _dl_catch_error.
3330         * elf/dl-error (struct catch): Add objname member.
3331         (_dl_signal_error): Take new parameter with object name.  When
3332         passing message on simply store object name and duplicate error
3333         message.
3334         (_dl_catch_error): Take new parameter.  Store object name in the
3335         place pointed to.
3336         * include/dlfcn.h: Adjust _dl_catch_error prototype.
3337         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
3338         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
3339         (dlerror): Add objname to asprintf() parameters.
3340         (_dl_error_run): Pass new parameter to _dl_catch_error.
3341         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
3342         * elf/dl-open.c (_dl_open): Likewise.
3343         * elf/rtld.c (dl_main): Likewise.
3344         * elf/dl-close.c: Mark error messages with N_().
3345         * elf/dl-deps.c: Likewise.
3346         * elf/dl-error.c: Likewise.
3347         * elf/dl-load.c: Likewise.
3348         * elf/dl-open.c: Likewise.
3349         * elf/dl-reloc.c: Likewise.
3350         * elf/dl-support.c: Likewise.
3351         * elf/dl-sym.c: Likewise.
3352         * elf/dl-version.c: Likewise.
3353         * elf/dl-lookup.c: Add comments about problems with error message
3354         translations.
3355         * elf/dl-reloc.c: Likewise.
3356         * elf/dl-version.c: Likewise.
3358 2000-06-09  H.J. Lu  <hjl@gnu.org>
3360         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
3361         after freeing it.
3363         * dlfcn/Makefile (distribute): Add failtestmod.c.
3364         (tests): Add failtest.
3365         Add rules to build and run failtest.
3366         * dlfcn/failtest.c: New file.
3367         * dlfcn/failtestmod.c: New file.
3369 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
3371         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
3372         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
3373         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
3374         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
3375         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
3377 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3379         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
3380         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
3382 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3383             Ulrich Drepper  <drepper@redhat.com>
3385         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
3386         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
3387         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
3388         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
3389         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
3390         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
3392 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
3394         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
3395         to find correct mount point despite wrong information from the
3396         kernel.
3398 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
3400         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
3401         the address of a symbol so function pointers are handled properly.
3403 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
3405         * sysdeps/i386/Dist: Add bp-asm.h.
3407         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
3408         defaultdir variable instead of "/var/shm" everywhere.
3409         (defaultdir): Change to /dev/shm/.
3411 2000-06-08  Greg McGary  <greg@mcgary.org>
3413         * sysdeps/i386/bp-asm.h: New file.
3414         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
3415         offsets.  Add ENTER/LEAVE macros for optionally maintaining
3416         frame-pointer chain when debugging.
3417         * sysdeps/i386/add_n.S: Likewise.
3418         * sysdeps/i386/addmul_1.S: Likewise.
3419         * sysdeps/i386/lshift.S: Likewise.
3420         * sysdeps/i386/memchr.S: Likewise.
3421         * sysdeps/i386/memcmp.S: Likewise.
3422         * sysdeps/i386/mul_1.S: Likewise.
3423         * sysdeps/i386/rawmemchr.S: Likewise.
3424         * sysdeps/i386/rshift.S: Likewise.
3425         * sysdeps/i386/stpcpy.S: Likewise.
3426         * sysdeps/i386/stpncpy.S: Likewise.
3427         * sysdeps/i386/strchr.S: Likewise.
3428         * sysdeps/i386/strchrnul.S: Likewise.
3429         * sysdeps/i386/strcspn.S: Likewise.
3430         * sysdeps/i386/strpbrk.S: Likewise.
3431         * sysdeps/i386/strrchr.S: Likewise.
3432         * sysdeps/i386/strspn.S: Likewise.
3433         * sysdeps/i386/strtok.S: Likewise.
3434         * sysdeps/i386/sub_n.S: Likewise.
3435         * sysdeps/i386/submul_1.S: Likewise.
3436         * sysdeps/i386/elf/setjmp.S: Likewise.
3437         * sysdeps/i386/i486/strcat.S: Likewise.
3438         * sysdeps/i386/i486/strlen.S: Likewise.
3439         * sysdeps/i386/i586/add_n.S: Likewise.
3440         * sysdeps/i386/i586/lshift.S: Likewise.
3441         * sysdeps/i386/i586/memcpy.S: Likewise.
3442         * sysdeps/i386/i586/memset.S: Likewise.
3443         * sysdeps/i386/i586/rshift.S: Likewise.
3444         * sysdeps/i386/i586/strchr.S: Likewise.
3445         * sysdeps/i386/i586/strcpy.S: Likewise.
3446         * sysdeps/i386/i586/strlen.S: Likewise.
3447         * sysdeps/i386/i586/sub_n.S: Likewise.
3448         * sysdeps/i386/i686/add_n.S: Likewise.
3449         * sysdeps/i386/i686/memcpy.S: Likewise.
3450         * sysdeps/i386/i686/mempcpy.S: Likewise.
3451         * sysdeps/i386/i686/memset.S: Likewise.
3452         * sysdeps/i386/i686/strcmp.S: Likewise.
3454 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
3456         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
3458         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
3459         256 and don't use OPEN_MAX.
3461         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
3462         use it instead of LINK_MAX.
3463         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
3465 2000-06-08  Andreas Jaeger  <aj@suse.de>
3467         * libio/genops.c (_IO_list_lock): Only compile body if we're
3468         thread safe.
3469         (_IO_list_unlock): Likewise.
3470         (_IO_list_resetlock): Likewise.
3472 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
3474         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
3475         unless user defined it.
3477         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
3478         if not defined by the user.
3480         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
3481         * libio/iofwrite.c (_IO_fwrite): Likewise.
3483         * time/time.h: Add missing __THROW for clock_getcpuclockid
3484         prototype.
3486         * elf/Makefile (distribute): Add dl-dtprocnum.h.
3487         * include/elf.h: Include also <dl-dtprocnum.h>.
3488         * elf/dl-deps.c: Likewise.
3489         * elf/dl-lookup.c: Likewise.
3490         * elf/dl-runtime.c: Likewise.
3491         * elf/dl-version.c: Likewise.
3492         * elf/do-rel.h: Likewise.
3493         * elf/dynamic-link.h: Likewise.
3494         * elf/link.h: Likewise.
3495         * elf/rtld.c: Likewise.
3496         * sysdeps/generic/dl-dtprocnum.h: New file.
3497         * sysdeps/ia64/dl-dtprocnum.h: New file.
3498         * sysdeps/mips/dl-dtprocnum.h: New file.
3499         * sysdeps/sparc/dl-dtprocnum.h: New file.
3501         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
3503         * elf/do-lookup.h: Add some __builtin_expect.
3505         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
3507         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
3508         (_dl_dynamic_weak): New variable.
3509         * elf/dl-support.c: Likewise.
3510         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
3511         * elf/do-lookup.h: If we find a weak definition treat it like a
3512         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
3513         case treat it like before.
3515         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
3516         is in main program.
3517         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
3519         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
3520         using l_map_start and l_map_end.
3522         * elf/dl-version.c: Add __builtin_expect in many places.
3524         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
3525         Update.
3527 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
3529         Lock for stdio stream list becomes global, for use in LinuxThreads.
3531         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
3532         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
3533         _IO_list_resetlock): New interface for iterating global list of
3534         streams without accessing the _IO_list_all global variable,
3535         and for manipulating the lock which protects this list.
3536         * libio/libioP.h: Likewise.
3537         * libio/Version: Add entries for the new functions.
3539         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
3540         pointer to _IO_FILE.
3542 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
3544         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
3545         BIT() must actually be BITw().
3547         * locale/programs/ld-ctype.c: Handle SP and space consistently.
3549         * locale/programs/charmap.c: Allow string arguments for
3550         code_set_name and repertoiremap.
3552 2000-06-07  Andreas Jaeger  <aj@suse.de>
3554         * elf/Makefile: Build ldconfig only when building shared libraries.
3556 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
3558         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
3559         __USE_ISOC99.
3560         (fdimf, __fdim, fdim): Likewise.
3562 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
3564         * locale/findlocale.c: Add __builtin_expect in many places.
3565         * locale/loadlocale.c: Likewise.
3567 2000-06-06  Greg McGary  <greg@mcgary.org>
3569         * sysdeps/mips/elf/start.S: Trim redundant code.
3571         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
3572         Use C comments throughout.  Line up operands column with tabs.
3573         * sysdeps/powerpc/strchr.S: Likewise.
3574         * sysdeps/powerpc/strcmp.S: Likewise.
3575         * sysdeps/powerpc/strcpy.S: Likewise.
3576         * sysdeps/powerpc/strlen.S: Likewise.
3578         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
3579         Get low part of &__curbrk with @l.
3581 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
3583         * iconvdata/utf-16.c: Add __builtin_expect in many places.
3584         * iconvdata/unicode.c: Likewise.
3585         * iconvdata/uhc.c: Likewise.
3586         * iconvdata/t.61.c: Likewise.
3587         * iconvdata/sjis.c: Likewise.
3588         * iconvdata/johab.c: Likewise.
3589         * iconvdata/iso_6937.c: Likewise.
3590         * iconvdata/iso_6937-2.c: Likewise.
3591         * iconvdata/iso8859-1.c: Likewise.
3592         * iconvdata/iso646.c: Likewise.
3593         * iconvdata/iso-2022-kr.c: Likewise.
3594         * iconvdata/iso-2022-jp.c: Likewise.
3595         * iconvdata/iso-2022-cn.c: Likewise.
3596         * iconvdata/gbgbk.c: Likewise.
3597         * iconvdata/gbk.c: Likewise.
3598         * iconvdata/euc-kr.c: Likewise.
3599         * iconvdata/euc-jp.c: Likewise.
3600         * iconvdata/euc-cn.c: Likewise.
3602 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
3604         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
3605         * iconvdata/big5.c: Likewise.
3606         * iconvdata/ansi_x3.110.c: Likewise.
3607         * iconvdata/8bit-generic.c: Likewise.
3608         * iconvdata/8bit-gap.c: Likewise.
3609         * iconv/loop.c: Likewise.
3610         * iconv/gconv_db.c: Likewise.
3611         * iconv/gconv_dl.c: Likewise.
3612         * iconv/gconv_simple.c: Likewise.
3613         * iconv/skeleton.c: Likewise.
3615         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
3616         (struct __gconv_step_data): Rename __is_last to __flags.
3617         * iconv/gconv_close.c: Change all uses of __is_last.
3618         * iconv/skeleton.c: Likewise.
3619         * iconvdata/iso-2022-cn.c: Likewise.
3620         * iconvdata/iso-2022-jp.c: Likewise.
3621         * iconvdata/iso-2022-kr.c: Likewise.
3622         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
3623         Recognize IGNORE error handling, set flag, and remove from name.
3624         * iconv/loop.c (ignore_errors_p): Define.
3625         Add flags parameter to both functions.
3626         * iconv/skeleton.c: Pass flags to all conversion functions.
3627         * iconv/gconv_simple.c: Add flags parameter to all functions.
3628         Don't return error for invald error if ignore flag is set.
3629         (ucs4_internal_loop_single): Add missing pointer increment.
3630         (internal_ucs4le_loop_single): Likewise.
3631         * iconv/iconv_prog.c: Implement handling of -c parameter.
3632         * iconvdata/8bit-gap.c: Don't return error for invald error if
3633         ignore flag is set.
3634         * iconvdata/8bit-generic.c: Likewise.
3635         * iconvdata/ansi_x3.110.c: Likewise.
3636         * iconvdata/big5.c: Likewise.
3637         * iconvdata/big5hkscs.c: Likewise.
3638         * iconvdata/euc-cn.c: Likewise.
3639         * iconvdata/euc-jp.c: Likewise.
3640         * iconvdata/euc-kr.c: Likewise.
3641         * iconvdata/gbgbk.c: Likewise.
3642         * iconvdata/gbk.c: Likewise.
3643         * iconvdata/iso-2022-cn.c: Likewise.
3644         * iconvdata/iso-2022-jp.c: Likewise.
3645         * iconvdata/iso-2022-kr.c: Likewise.
3646         * iconvdata/iso646.c: Likewise.
3647         * iconvdata/iso8859-1.c: Likewise.
3648         * iconvdata/iso_6937-2.c: Likewise.
3649         * iconvdata/iso_6937.c: Likewise.
3650         * iconvdata/johab.c: Likewise.
3651         * iconvdata/sjis.c: Likewise.
3652         * iconvdata/t.61.c: Likewise.
3653         * iconvdata/uhc.c: Likewise.
3654         * iconvdata/unicode.c: Likewise.
3655         * iconvdata/utf-16.c: Likewise.
3656         * libio/fileops.c: Likewise.
3657         * libio/iofwide.c: Likewise.
3658         * wcsmbs/btowc.c: Likewise.
3659         * wcsmbs/mbrtowc.c: Likewise.
3660         * wcsmbs/mbsnrtowcs.c: Likewise.
3661         * wcsmbs/mbsrtowcs.c: Likewise.
3662         * wcsmbs/wcrtomb.c: Likewise.
3663         * wcsmbs/wcsnrtombs.c: Likewise.
3664         * wcsmbs/wcsrtombs.c: Likewise.
3665         * wcsmbs/wctob.c: Likewise.
3667         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
3668         an error.
3670 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
3672         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
3673         counter for the object we are releasing, just decrement it.
3674         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
3676 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
3678         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
3679         if -ffast-math.
3681 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
3683         * iconvdata/big5hkscs.c: New file.
3684         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
3686         * iconvdata/gconv-modules: Add entry for new module.
3687         * iconvdata/Makefile (modules): Add BIG5HKSCS.
3688         (distribute): Add big5hkscs.c.
3690 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
3692         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
3693         inlines to match prototypes in mathcalls.h.
3694         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3695         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
3696         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3697         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3699 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
3701         * elf/elf.h (SHT_SUNW_move): Define.
3703         * elf/elf.h: Add more Solaris compatiblity definitions.
3705 2000-06-03  Andreas Jaeger  <aj@suse.de>
3707         * sysdeps/powerpc/dl-start.S: Close open comment.
3709 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
3711         * inet/Versions: Fix typo in rresvport_af export.
3713 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
3715         * math/tgmath.h: Pretty print.
3717 2000-06-02  Andreas Jaeger  <aj@suse.de>
3719         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
3720         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3722 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
3724         * elf/rtld.c (process_envvars): Test for = after variable name.
3726 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
3728         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
3729         have extra call to __gmon_start__, use the pointer we already have.
3731         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
3732         shifting.
3734         * sysdeps/i386/elf/setjmp.S: Work around change is recent
3735         binutils.  gas now emits a jump through the PLT instead of a
3736         relative jump if the jump target is an exported symbol.
3738 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
3740         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
3742 2000-05-31  Andreas Jaeger  <aj@suse.de>
3744         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
3745         gregset_t.
3747         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
3748         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3750         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
3751         syscall.
3752         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3754 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
3756         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
3758         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
3759         * locale/localeconv.c: Make function versioned (with same definition).
3761         * elf/Makefile (modules-names): Strip before using it.
3763 2000-05-30  Andreas Jaeger  <aj@suse.de>
3765         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
3766         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
3767         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
3768         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
3769         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
3770         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
3772 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
3774         * Makefile: Add GNU make magic.
3776         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
3777         Removed.
3778         * inet/rcmd.c: Remove __P.  Remove unused variables.
3779         (iruserfopen): Make first parameter const.
3780         (ruserok_sa): Return result of ruserok2_sa.
3781         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
3782         * inet/rexec.c: Remove unused variables.  Other small cleanups.
3783         * inet/ruserpass.c: Remove __P.  Remove unused variables.
3784         (ruserpass): Check results of memory allocation.
3785         * include/netdb.h: Add prototype for ruserpass.
3787 2000-05-29  Andreas Jaeger  <aj@suse.de>
3789         * elf/readlib.c (interpreters): Use LD_SO since this is supported
3790         for all platforms.
3792 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
3794         * inet/rcmd.c (rresvport_af): Use correct port number.
3796 2000-05-26  Andreas Schwab  <schwab@suse.de>
3798         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
3799         entries in all-sonames.
3800         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
3801         preserving the old name if different for compatibility.
3803 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
3805         * posix/Makefile (tests): Add tst-spawn.
3806         (tst-spawn-ARGS): New variable.
3807         * posix/tst-spawn.c: New file.
3809         * posix/spawn_faction_addclose.c: Correctly account for new entry.
3810         * posix/spawn_faction_adddup2.c: Likewise.
3811         * posix/spawn_faction_addopen.c: Likewise.
3812         * posix/spawni.c: Correctly test for success of dup2 calls.
3814         * posix/tst-preadwrite.c: Check success of malloc call.
3816 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3818         * posix/Makefile (tests): Add tst-exec.
3819         (tst-exec-ARGS): New variable.
3820         * posix/tst-exec.c: New file.
3822         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
3824 2000-05-04  Andreas Jaeger  <aj@suse.de>
3826         * string/string.h: Remove __strdup prototype, it's not needed in
3827         this file anymore.
3829 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3831         * posix/Makefile (tests): Add tst-fork.
3832         * posix/tst-fork.c: New file.
3834         * resolv/inet_pton.c: Loose __P.
3836 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
3838         * libio/libioP.h (_IO_CHECK_WIDE): Define.
3839         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
3840         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3841         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
3842         _IO_CHECK_WIDE fails.
3844 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
3846         * po/da.po: New file.
3848         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
3849         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
3851         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
3852         (Other iconv Implementations): Fix typo.
3853         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
3855 2000-05-27  Andreas Jaeger  <aj@suse.de>
3857         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
3858         normal version now.
3859         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
3860         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
3861         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3862         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3863         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
3864         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
3866         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
3867         endianness to decide how to pass arguments.
3868         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
3870         * elf/vismain.c: Use test-skeleton interface.
3871         (TEST_FUNCTION): New macro.
3872         (do_test): Renamed from main.
3874 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
3876         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
3877         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
3879         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
3880         handling of AI_V4MAPPED flag.
3882         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
3883         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
3884         perform lookup for T_A type and tell getanswer_r to convert the
3885         result with new argument.
3886         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
3887         Don't convert addresses from IPv4 to IPv6 here.
3888         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
3889         IPv6 is wanted.  Allow qtype and type from reply to disagree if
3890         IPv4 mapping has to be done.  Perform mappings if required by the
3891         caller and not if RES_USE_INET6 bit in _res.options is set.
3892         Add several __builtin_expect.
3894 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
3896         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
3898         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
3899         NULL.
3901         * posix/tst-preadwrite.c: Allow parallel execution of
3902         tst-preadwrite and tst-preadwrite64.
3904         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
3905         * posix/tst-truncate.c: New file.
3906         * posix/tst-truncate64.c: New file.
3908         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
3909         was switched.
3911         * posix/Makefile (tests): Add tst-preadwrite64.
3912         * posix/tst-preadwrite.c: Alloc file being used also for testing
3913         pread64 and pwrite64.
3914         * posix/tst-preadwrite64.c: New file.
3916 2000-05-26  Andreas Jaeger  <aj@suse.de>
3918         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
3919         of arguments dependend on endianness.
3920         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3922         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
3923         normal version now.
3924         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3925         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3926         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3927         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3929         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
3930         endianness to check how to pass argument.
3931         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
3933         * elf/ldconfig.h: Update parameter list for process_elf_file.
3935         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
3936         Add parameter file_length and pass it ot process_elf*file.
3938         * sysdeps/generic/readelflib.c (check_ptr): New.
3939         (process_elf_file): Use check_ptr to check all accesses to the
3940         mmapped file. Add parameter file_length.
3942         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
3943         library names.
3945         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
3946         Closes PR libc/1573, reported by Bradley White
3947         <bww@laurelnetworks.com>.
3949 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
3951         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
3952         __FAST_MATH__ is defined.
3954 2000-05-22  Andreas Jaeger  <aj@suse.de>
3956         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
3957         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
3959         * manual/math.texi (FP Function Optimizations): Document gcc
3960         -ffast-math behaviour with mathinlines.
3962         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
3963         functions unless -ffast-math is given to gcc.
3965 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
3967         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
3968         __sincosl): Guard with __USE_GNU.
3970 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
3972         * csu/Makefile (routines): Add check_fds.
3973         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
3974         binaries.  Add various __builtin_expect.
3975         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
3976         * sysdeps/generic/check_fds.c: ...here.  New file.
3978         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
3979         binaries if file /etc/suid-debug is available.
3981         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
3982         and wcseqorder members.
3983         (struct locale_collate_t): Likewise.
3984         (collate_finish): Assign collation sequence value to each character.
3985         Create tables for output.
3986         (collate_output): Write out tables with collation sequence information.
3987         * locale/C-collate.c: Provide C locale data for collation sequence
3988         table.
3989         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
3990         _NL_COLLATE_COLLSEQWC.
3991         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
3992         _NL_COLLATE_COLLSEQWC.
3993         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
3994         include fnmatch_loop.c.
3995         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
3996         character is matched by range expression.  Use collation sequence
3997         table.  Outside glibc fall back on simple character value comparison.
3999 2000-05-24  Andreas Jaeger  <aj@suse.de>
4001         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
4002         words.
4004         * intl/Makefile: Run gettext-test only if msgfmt is available.
4006         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
4007         Define it for newer kernels.
4009 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
4011         * elf/dl-sym.c: Minor cleanups.
4013         * configure.in: Add test for .protected.
4014         * config.make.in: Add have-protected variable.
4015         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
4016         (tests-vis-yes): Add vismain.
4017         (modules-names): Add $(modules-vis-$(have-protected)).
4018         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
4019         Add rules to generate and run vismain.
4020         * elf/vismain.c: New file.
4021         * elf/vismod1.c: New file.
4022         * elf/vismod2.c: New file.
4023         * elf/vismod3.c: New file.
4025 2000-05-23  Andreas Jaeger  <aj@suse.de>
4027         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
4029         * manual/search.texi (Array Sort Function): Document that qsort is
4030         not necessarily in-place.
4032         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
4033         Closes PR libc/1731.
4035         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
4036         * dirent/scandir64.c: Likewise.
4037         * pwd/getpw.c: Likewise.
4038         * stdlib/bsearch.c (bsearch): Likewise.
4039         * stdlib/tst-strtoll.c: Likewise.
4040         * localedata/collate-test.c: Likewise.
4041         * localedata/xfrm-test.c: Likewise.
4042         * posix/bsd-getpgrp.c: Likewise.
4043         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
4044         * sysdeps/generic/bits/siginfo.h: Likewise.
4045         * sysdeps/generic/bits/sockaddr.h: Likewise.
4046         * sysdeps/generic/sys/swap.h: Likewise.
4047         * sysdeps/generic/sys/sysinfo.h: Likewise.
4048         * sysdeps/generic/vfork.c: Likewise.
4049         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
4050         * sysdeps/mach/hurd/fdopen.c: Likewise.
4051         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
4052         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4053         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4054         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4055         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4056         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
4057         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
4059         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
4060         * shadow/lckpwdf.c: Likewise.
4061         * stdlib/tst-strtol.c: Likewise.
4062         * sysdeps/generic/tcsetattr.c: Likewise.
4063         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4064         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4066 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
4068         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
4069         free it and set to (void *) -1.
4071 2000-05-22  Jakub Jelinek <jakub@redhat.com>
4073         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
4074         not the second character in the range.
4075         * stdio-common/tstscanf.c (main): Add testcase for the above.
4076         Reported by jik@kamens.brookline.ma.us.
4078 2000-05-21  H.J. Lu  <hjl@gnu.org>
4080         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
4081         with noexec and noplt parameter.
4082         (do_lookup): Likewise.
4084         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
4085         do_lookup.  Support STV_PROTECTED.
4086         (_dl_lookup_symbol_skip): Likewise.
4087         (_dl_lookup_versioned_symbol): Likewise.
4088         (_dl_lookup_versioned_symbol_skip): Likewise.
4090         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
4092         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
4094 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
4096         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
4097         * sysdeps/i386/bits/huge_val.h: Likewise.
4098         * sysdeps/ieee754/bits/huge_val.h: Likewise.
4099         * sysdeps/m68k/bits/huge_val.h: Likewise.
4100         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
4101         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
4103 2000-05-22  Andreas Jaeger  <aj@suse.de>
4105         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
4106         change in iconv.h.
4108 2000-05-19  Andreas Jaeger  <aj@suse.de>
4110         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
4111         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
4112         breaks compilation without linuxthreads.
4114 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
4116         * sysdeps/ia64/memccpy.S: New file.
4117         * sysdeps/ia64/memchr.S: New file.
4118         * sysdeps/ia64/memcmp.S: New file.
4119         * sysdeps/ia64/memcpy.S: New file.
4120         * sysdeps/ia64/memmove.S: New file.
4121         * sysdeps/ia64/memset.S: New file.
4122         * sysdeps/ia64/strcat.S: New file.
4123         * sysdeps/ia64/strchr.S: New file.
4124         * sysdeps/ia64/strcmp.S: New file.
4125         * sysdeps/ia64/strcpy.S: New file.
4126         * sysdeps/ia64/strlen.S: New file.
4127         * sysdeps/ia64/strncmp.S: New file.
4128         * sysdeps/ia64/strncpy.S: New file.
4129         * sysdeps/ia64/softpipe.h: New file.
4130         Patches by Dan Pop <Dan.Pop@cern.ch>.
4132         * manual/memory.texi: Document memory handling functions (mlock,
4133         munlock, mlockall, munlockall, brk, and sbrk)
4134         * manual/time.texi: Document timespec and friends.
4135         * manual/conf.texi: Fix references.
4136         * manual/ctype.texi: Likewise.
4137         * manual/errno.texi: Likewise.
4138         * manual/intro.texi: Likewise.
4139         * manual/locale.texi: Likewise.
4140         * manual/sysinfo.texi: Likewise.
4141         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4143 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
4145         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
4146         * sysdeps/ia64/dl-lookupcfg.h: ...here.
4148 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
4150         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
4151         dxfer_direction.
4153 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
4155         * locale/locale.h (struct lconv): Add new elements from ISO C99.
4156         * locale/localeconv.c: Initialize new elements from ISO C99.
4157         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
4158         new standard elements.
4159         * locale/categories.def: Adjust accordingly.
4161         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
4162         * iconv/iconv.c: Likewise.
4163         * conform/data/iconv.h-data: Likewise.
4164         * iconv/iconv_prog.c (process_block): Remove const from second
4165         parameter.
4166         (main): Remove const from addr definition.
4167         * manual/charset.texi (Generic Conversion Interface): Remove from
4168         inbuf parameter of iconv.
4170         * intl/dcigettext.c: Fix typo in comment.
4172 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
4174         * resolv/res_libc.c (_res): Initialize _sock to -1.
4176 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
4178         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
4179         (fopencookie@@GLIBC_2.2): New.
4180         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
4181         (fopencookie@GLIBC_2.0): New.
4182         * libio/Versions: Add fopencookie to GLIBC_2.2.
4184 2000-05-18  Andreas Jaeger  <aj@suse.de>
4186         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
4187         Closes PR libc/1731.
4189         * manual/arith.texi (Parsing of Integers): Fix typo.
4190         Closes PR libc/1744, reported by blp@gnu.org.
4192 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
4194         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
4195         __extension__ to hexadecimal floating constant notation.
4196         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
4197         Likewise.
4198         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
4199         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
4200         Likewise.
4201         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
4202         HUGE_VALL): Likewise.
4203         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
4204         HUGE_VALL): Likewise.
4205         (HUGE_VALL): Set to HUGE_VAL on sparc32.
4207 2000-05-17  Andreas Jaeger  <aj@suse.de>
4209         * string/envz.h: Add pure attributes if possible.
4211         * string/argz.h: argz_count is a pure function.
4213         * string/strings.h: Add pure and const attributes if possible.
4215         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
4216         possibly searching through the whole memory.
4217         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
4219 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
4221         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
4222         not yet defined.
4223         (_dl_cache_check_flags): Likewise.
4224         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
4225         dl-cache.h.
4227 2000-05-17  Andreas Jaeger  <aj@suse.de>
4229         * manual/creature.texi (Feature Test Macros): Remove paragraph
4230         since the description is wrong.
4231         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
4233         * scripts/config.sub: New version.
4234         * scripts/config.guess: Likewise.
4235         * manual/texinfo.tex: Likewise.
4237         * time/test_time.args: Removed.
4238         * time/Makefile (test_time-ARGS): Added contents here instead.
4240         * posix/tstgetopt.args: Removed.
4241         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
4243         * Rules: Allow arguments for test files to be specified in
4244         Makefile with testname-ARGS; remove rules with .args in it.
4246         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
4247         remove old bogus rule for opendir-tst1.args.
4249         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
4251         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
4252         into objdir.  This allows a readonly sourcetree.
4253         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
4255 2000-05-16  Andreas Jaeger  <aj@suse.de>,
4256             David Huggins-Daines <dhd@linuxcare.com>
4258         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
4259         cache_data in case of only new cache format correctly.
4261         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
4262         cache_file_new.
4264         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
4265         struct cache_file_new.
4267         * elf/cache.c (save_cache): Fix str_offset if only new cache is
4268         present.
4270         * elf/cache.c (save_cache): Align struct new_file_cache.
4271         (print_cache): Likewise.
4273 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
4275         * elf/soinit.c (__libc_global_ctors): Move
4276         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
4277         * resolv/resolv.h (__res_state): Added __attribute__((const)).
4278         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
4279         variable, don't define it to __res_state call.
4281 2000-05-13  Andreas Jaeger  <aj@suse.de>
4283         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
4284         Linux 2.3.99pre7.
4285         (AF_PPPOX): Likewise.
4286         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
4287         (AF_PPPOX): Likewise.
4289 2000-05-12  Andreas Jaeger  <aj@suse.de>
4291         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
4292         Reported by tmoestl@gmx.net, closes PR libc/1732.
4294 2000-05-11  Jan Hubicka  <jh@suse.cz>
4296         * misc/sys/cdefs.h: Add support for pure attribute.
4298         * include/string.h: Add __attribute_pure__ to various functions.
4299         * string/string.h: Likewise.
4301 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
4303         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
4304         argument.
4305         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
4306         R_SPARC_UA64.
4307         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
4309 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
4311         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
4312         at proper place.  Compute the high nibble correctly.
4314 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
4316         * elf/ldconfig.c: Include elf.h.
4318         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
4319         (_dl_vsym): Likewise.
4320         Reported by Owen Taylor <otaylor@redhat.com>.
4322         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
4323         always.
4325 2000-05-08  Andreas Jaeger  <aj@suse.de>
4327         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
4329         * intl/bindtextdom.c (set_binding_values): Add prototype.
4331 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
4333         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
4334         call to elf_machine_fixup_plt.
4335         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
4336         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4338 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
4340         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
4341         they are not dlclose'd from underneath us.
4343 2000-05-08  Andreas Schwab  <schwab@suse.de>
4345         * posix/execle.c: Fix size parameter of memcpy.
4347 2000-05-08  Andreas Schwab  <schwab@suse.de>
4349         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
4350         getpagesize syscall if available.
4352 2000-05-08  Andreas Jaeger  <aj@suse.de>
4354         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
4355         set errno.
4357 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
4359         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
4360         sizeof(struct link_map *) chunks, not in bytes.
4362 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
4364         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
4365         only needed for locale.
4366         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
4367         It's only needed for catgets.
4368         Patches by Greg McGary <gkm@eng.ascend.com>.
4370 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
4372         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
4373         Remove duplicate <errno.h> include.  Remove inclusion of
4374         <libintl.h> and "nsswitch.h".
4375         (set_cloexec_flag): New function, broken out of dbopen.
4376         (dbopen): Changed return type to `enum
4377         nss_status'.  Mostly rewritten to make sure that we do not report
4378         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
4379         (internal_setent): Change return type to nss_status.
4380         Document, and make sure that the function
4381         behaves accordingly.  Make dynamically loading the database
4382         library really thread-safe and return NSS_STATUS_UNAVAIL if it
4383         failed.
4384         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
4385         unecessary casts.
4386         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
4387         documentation.
4388         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
4389         c_get function member.
4390         * nss/nss_db/nss_db.h: Add and tweak some comments.
4391         (DBT): Move typedef before NSS_DBC typedef.
4392         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
4394 2000-05-07  H.J. Lu  <hjl@gnu.org>
4396         * csu/initfini.c: Moved to ....
4397         * sysdeps/generic/initfini.c: ...here.
4399         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
4401 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
4403         * manual/resource.texi: Document POSIX scheduling functions.
4404         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4406         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
4407         reading anything.  Reported by Andries.Brouwer@cwi.nl.
4409         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
4410         for x since promotion in comparison might leads to unexpected
4411         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
4413         * iconv/Makefile (tests): Add tst-iconv1.
4414         * iconv/tst-iconv1.c: New file.
4415         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
4416         empty input buffer over full output buffer.
4417         (ucs4_internal_loop): Likewise.
4418         (ucs4_internal_loop_unaligned): Likewise.
4419         (internal_ucs4le_loop): Likewise.
4420         (internal_ucs4le_loop_unaligned): Likewise.
4421         (ucs4le_internal_loop): Likewise.
4422         (ucs4le_internal_loop_unaligned): Likewise.
4423         Reported by yaoz@nih.gov.
4425 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
4427         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
4428         returned != __GCONV_OK, there is nothing to clean up.
4430 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
4432         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
4433         OUTPUT_CHARSET environment variables.
4435 2000-05-06  Andreas Jaeger  <aj@suse.de>
4437         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
4438         (struct cache_file_new): New.
4439         (struct file_entry): New (moved from cache.c).
4440         (struct cache_file): New (moved from cache.c).
4442         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
4443         from _dl_load_cache_lookup.
4444         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
4445         the different cache formats.
4446         New variable cache_new for new format.
4448         * elf/ldconfig.h: Change according to changes in cache.c and
4449         ldconfig.c; remove cache_libcmp; add opt_format.
4451         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
4452         stuff that's defined in those headers.
4453         Add hwcap to struct lib_entry.
4454         (opt_format): New variable to select cache format.
4455         (options): Add format parameter.
4456         (is_hwcap): New function.
4457         (path_hwcap): New function.
4458         (parse_opt): Handle new format parameter.
4459         (search_dir): Handle hwcap, search also subdirectories with hwcap.
4461         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
4462         ldconfig is part of glibc.
4463         Include dl-cache.h and remove stuff that's defined there.
4464         (struct cache_entry): Add new member hwcap.
4465         (print_entry): Print hwcap, cleanup a bit.
4466         (print_cache): Print new and old formats.
4467         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
4468         (save_cache): Save new and old formats.
4469         (add_to_cache): Handle hwcap.
4471         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
4472         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
4473         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
4474         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
4475         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
4476         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
4478 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
4480         * intl/dcigettext.c (alignof): New macro.
4481         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
4482         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
4483         freemem_size to 0.
4485 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
4487         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
4488         return value.
4490 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
4492         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
4493         (mempcpy): Correct typo is parameter list.
4495 2000-05-06  Andreas Jaeger  <aj@suse.de>
4497         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
4498         functions unless -ffast-math is given to gcc.
4500 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
4502         * po/ko.po: Update from translation team.
4504 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
4506         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
4507         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
4508         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
4509         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
4510         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
4511         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
4513         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
4514         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
4515         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
4517         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
4518         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
4519         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
4520         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
4522         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
4523         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
4525 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
4527         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
4528         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
4530         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
4531         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
4533         * sysdeps/ia64/Implies: New file.
4534         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
4535         * sysdeps/ia64/Makefile: New file.
4536         * sysdeps/ia64/gmp-mparam.h: New file,
4538         * sysdeps/ia64/elf/start.S: New file.
4540         * sysdeps/ia64/bits/fenv.h: New file.
4542 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
4544         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
4546 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
4548         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
4549         ia64 has 64 bit .hash entries just as the Alpha.
4551 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
4553         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
4555 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
4557         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
4558         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
4559         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
4560         * sysdeps/ia64/fpu/fegetenv.c: New file.
4561         * sysdeps/ia64/fpu/fegetexcept.c: New file.
4562         * sysdeps/ia64/fpu/fegetround.c: New file.
4563         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
4564         * sysdeps/ia64/fpu/fesetenv.c: New file.
4565         * sysdeps/ia64/fpu/fesetround.c: New file.
4566         * sysdeps/ia64/fpu/feupdateenv.c: New file.
4567         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
4568         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
4569         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
4570         * sysdeps/ia64/fpu/ftestexcept.c: New file.
4572 2000-05-05  Andreas Jaeger  <aj@suse.de>
4574         * misc/tst-tsearch.c (main): Correct type for initstate argument.
4576         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
4577         (_dl_string_hwcap): New, does nothing.
4579         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
4580         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4581         (_dl_string_hwcap): New function, converts from string to hwcap
4582         encoding.
4583         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
4584         (_DL_HWCAP_COUNT): New.
4585         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4586         (_dl_string_hwcap): New function, converts from string to hwcap
4587         encoding.
4588         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
4589         (_DL_HWCAP_COUNT): New.
4590         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
4591         (_dl_string_hwcap): New function, converts from string to hwcap
4592         encoding.
4594 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
4596         * elf/Makefile (distribute): Add dl-lookupcfg.h.
4597         * sysdeps/ia64/Dist: New file.
4599         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
4600         parameter to mprotect and for variable assignments.
4602 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
4604         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
4605         validity of map before dereferencing it.
4607         * elf/dl-reloc.c (RESOLVE_MAP): Define.
4609 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
4611         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
4612         lookup to the arguments to elf_machine_fixup_plt().
4614         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
4615         of the symbol being resolved to input argument list and make the
4616         function return the pointer to the reloc.
4618         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
4619         return valuie to lookup_t and return the value.
4620         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
4621         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
4622         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
4623         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
4624         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
4625         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
4627         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
4628         Make it an inline function returning value after calling
4629         __elf_machine_fixup_plt().
4631         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
4632         symbol address.
4634         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
4635         obtain the symbol address.
4637         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
4638         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
4640         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
4641         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
4642         inline on non ia64.
4644 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
4646         * elf/dl-runtime.c (fixup): Use the portable macros to get the
4647         symbol address of an object.
4649         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
4650         the symbol address of an object.
4652         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
4653         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
4654         (_dl_lookup_symbol_skip): Likewise.
4655         (_dl_lookup_versioned_symbol): Likewise.
4656         (_dl_lookup_versioned_symbol_skip): Likewise.
4658 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
4660         * elf/rtld.c (_dl_start): Get the function pointer return address
4661         via _dl_start_address for architectures that need a function
4662         pointer descriptor rather than just a pointer (ia64).
4664         * sysdeps/generic/dl-lookupcfg.h: New file.
4665         * sysdeps/ia64/dl-lookupcfg.h: New file.
4666         * sysdeps/ia64/dl-machine.h: New file.
4667         * sysdeps/ia64/dl-symaddr.c: New file.
4668         * sysdeps/ia64/dl-fptr.c: New file.
4670         * elf/elf.h: Add IA-64 specific definitions.
4672 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
4674         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
4675         end of enum.
4677 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
4679         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
4680         happy.
4682 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
4684         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
4685         symbol.  Call _dl_init rather than the old way.
4687 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
4689         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
4690         test for pointer in range of DSO address space.
4692 2000-05-04  Andreas Jaeger  <aj@suse.de>
4694         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
4696 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4698         * locale/findlocale.c (_nl_find_locale): Add new parameter to
4699         calls of _nl_make_l10nflist.
4701         * libio/stdio.h: Make fseeko and ftello prototypes available is
4702         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
4704         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
4705         real unsetenv implementation from 1999-07-29 [PR libc/1714].
4707 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
4709         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
4710         before calling tfind.
4712 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
4714         * resolv/resolv.h (res_querydomain): Remove redefinition to
4715         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
4717 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4719         * po/gl.po: Update from translation team.
4721         * manual/intro.texi (Program Basics): Change section title.
4722         * manual/process.texi: Fix reference.
4723         (Executing a File): Add reference exec in other section.
4724         * manual/signal.texi: Fix reference.
4725         * manual/startup.texi: Document syscall function.
4726         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
4728 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4730         * intl/libintl.h (bind_textdomain_codeset): New declaration.
4731         * intl/bindtextdom.c (set_binding_values): New function.
4732         (bindtextdomain): Call it.
4733         (bind_textdomain_codeset): New function.
4734         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
4735         (free_mem): Free each binding's codeset.
4736         * intl/gettextP.h (struct binding): Add codeset field.
4737         (_nl_find_domain): Add domainbinding argument.
4738         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
4739         Pass it to _nl_make_l10nflist.
4740         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
4741         (_nl_make_l10nflist): Add domainbinding argument.
4742         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
4743         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
4744         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
4745         locale_charset().
4746         * manual/message.texi: New node "Charset conversion in gettext".
4748 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
4750         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
4751         appropriate.  Handle possible __read error.
4753 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4755         * intl/gettextP.h (__builtin_expect): Define as empty if not a
4756         compiler builtin.
4757         * intl/loadinfo.h (__builtin_expect): Likewise.
4758         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
4759         __builtin_expect where appropriate.
4760         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
4761         * intl/localealias.c (extend_alias_table): Return an error indicator.
4762         (read_alias_file): Bail out if extend_alias_table fails.
4764 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4766         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
4767         * intl/localealias.c: Likewise.
4769 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4771         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
4772         Initialize domain->plural and domain->nplurals even if there is no
4773         nullentry.
4775 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4777         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
4778         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
4779         In case of failure, goto converted.
4781 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
4783         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
4784         * iconv/gconv_int.h (norm_add_slashes): Move to here.
4785         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
4786         __gconv_open.
4788 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4790         * intl/dcigettext.c (transcmp): Compare the domains as well.
4791         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
4792         not before.
4793         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
4794         <errno.h>.
4796 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
4798         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
4799         Reported by Bruno Haible.
4801 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
4803         * manual/arith.texi: Remove @w from @itemize.
4805 2000-05-02  Andreas Jaeger  <aj@suse.de>
4807         * conform/data/tar.h-data: Add some checks for specific values.
4809         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
4810         and RAND_MAX.
4812         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
4813         FOPEN_MAX.
4815         * conform/data/netinet/in.h-data: Add exact checks for the values
4816         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
4818         * conform/data/float.h-data: Add some minimal values.
4820         * conform/conformtest.pl: Test for macros with string constants,
4821         check for minimum and maximum values.
4822         Add limits.h to headers.
4824         * conform/data/cpio.h-data: Test for value of MAGIC.
4826         * conform/data/limits.h-data: New file.
4828 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
4830         * math/Makefile (headers): Add bits/fenvinline.h.
4832 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
4834         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
4835         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
4837         * posix/Versions: Change posix_spawnattr_getdefault and
4838         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
4839         and posix_spawnattr_setsigdefault respectively.
4840         * posix/spawn.h: Likewise.
4841         * posix/spawnattr_getdefault.h: Likewise.
4842         * posix/spawnattr_setdefault.h: Likewise.
4843         * conform/data/spawn.h-data: Likewise.
4845 2000-05-01  Andreas Jaeger  <aj@suse.de>
4847         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
4849 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
4851         * manual/sysinfo.texi: Document getdomainname, setdomainname
4852         and sysctl.
4853         * manual/string.texi: Fix typo.
4854         * manual/terminal.texi: Document gtty and stty.
4855         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
4857 2000-04-30  Andreas Jaeger  <aj@suse.de>
4859         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
4860         accordance with Austin Draft.
4862 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
4864         * catgets/gencat.c (read_input_file): Use isblank and not isspace
4865         to recognize second character in comment line.
4867         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
4868         ENOBUFS if we are out of memory.
4870         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
4871         available if __USE_XOPEN2K.
4872         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
4873         * sysdeps/unix/common/bits/fcntl.h: Likewise.
4874         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4875         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4876         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
4877         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4878         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
4879         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
4881 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
4883         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
4884         Recognize option -s, -c, and -l.
4886 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
4888         * nscd/nscd.c: Start new session for nscd, drop privilegs
4889         to configured user if requested and no -S parameter are used.
4890         * nscd/nscd.conf: Add new option "server-user".
4891         * nscd/nscd_conf.c: Add support for new "server-user" option.
4892         * nscd/nscd.h: Add declaration for server_user variable.
4893         Based on patch by Chris Wing <wingc@engin.umich.edu>
4895 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4897         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
4898         that changing the __restore and __restore_rt signal return code
4899         will break GDB.
4901 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4903         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
4904         <sys/user.h>.
4906 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
4908         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
4910 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
4912         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
4913         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
4914         arpa/inet.h.
4915         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
4916         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
4917         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
4918         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
4919         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
4920         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
4921         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
4922         posix_fallocate, and posix_madvise.
4923         * conform/data/netdb.h-data: New file.
4924         * conform/data/pthread.h-data: Add pthread_barrier_t,
4925         pthread_barrierattr_t, pthread_barrier_destroy,
4926         pthread_barrier_init, pthread_barrier_wait,
4927         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
4928         pthread_barrierattr_init, pthread_barrierattr_setpshared,
4929         pthread_condattr_getclock, pthread_condattr_setclock,
4930         pthread_getcpuclockid, pthread_mutex_timedlock,
4931         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4932         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
4933         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
4934         * conform/data/sched.h-data: Add sched_ss_low_priority,
4935         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
4936         SCHED_SPORADIC.
4937         * conform/data/semaphore.h-data: Add sem_timedwait.
4938         * conform/data/signal.h-data: Add SIGIO.
4939         * conform/data/spawn.h-data: New file.
4940         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
4941         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
4942         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
4943         Fix typo in gmtime_r definition.
4944         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
4945         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
4946         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
4947         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
4948         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
4949         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
4950         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
4951         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
4952         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
4953         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
4954         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
4955         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
4956         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
4957         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
4958         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
4959         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
4960         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
4961         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
4962         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
4963         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
4964         typo in off_t definition.
4965         * conform/data/net/if.h-data: New file.
4966         * conform/data/netinet/in.h-data: New file.
4967         * conform/data/netinet/tcp.h-data: New file.
4968         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
4969         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
4970         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
4971         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
4972         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
4973         and posix_typed_mem_open.
4974         * conform/data/sys/socket.h-data: New file.
4975         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
4976         * conform/data/sys/types.h-data: Add pthread_barrier_t,
4977         pthread_barrierattr_t, and pthread_spinlock_t.
4978         * conform/data/sys/un.h-data: New file.
4979         * conform/data/sys/utsname.h-data: New file.
4981         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
4982         parameter.
4983         * inet/gethstbyad.c (gethostbyname): Likewise.
4984         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
4985         * inet/getipnodebyad.c (getipnodebyad): Likewise.
4986         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
4987         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
4988         Likewise.
4989         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
4990         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
4991         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
4992         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
4993         * resolv/gethnamaddr.c (gethostbyname): Likewise.
4994         * resolv/netdb.h (struct hostent): Fix type of h_length member.
4995         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
4996         and second parameter.
4998         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
4999         == NULL.
5001 2000-04-29  Andreas Jaeger  <aj@suse.de>
5003         * conform/data/arpa/inet.h-data: New file.
5005 2000-04-28  Geoff Clare <gwc@unisoft.com>
5007         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
5008         path passed to ftw() or nftw() is an empty string.
5009         Closes PR libc/1710.
5011 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
5013         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
5014         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
5015         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
5016         * localedata/tst-mbswcs4.c: New file.
5017         * localedata/tst-mbswcs5.c: New file.
5019         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
5020         == NULL.  Little optimization.
5022         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
5023         DT_PREINIT_ARRAYSZ).
5024         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
5026         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
5027         overflows in conversion from ASCII.
5029 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
5031         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
5032         * Makerules (full_config_sysdirs): Likewise.
5033         * MakeTAGS (full_config_sysdirs): Likewise.
5035 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
5037         * .cvsignore: Remove linuxthreads.
5038         * po/.cvsignore: Remove *.pot.
5039         * posix/glob/.cvsignore: Removed.
5040         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
5042 2000-04-25  Andreas Jaeger  <aj@suse.de>
5044         * conform/Makefile (distribute): Also distribute contents of
5045         subdirectories.
5047         * Makerules (no_deps): Remove abi-versions.h.
5049         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
5051 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
5053         * sysdeps/sparc/sparc64/elf/Dist: Remove.
5054         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
5055         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
5056         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
5057         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
5058         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
5059         objects.
5061 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
5063         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
5065 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
5067         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
5068         * intl/l10nflist.c: Likewise.
5070 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
5072         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
5073         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
5074         * intl/textdomain.c [!_LIBC]: Likewise.
5075         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
5076         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
5077         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
5078         syntax error.
5080 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
5082         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
5083         character set conversion also in the case the translation was found
5084         after a hash collision or through binary search.  Store the maximum
5085         index together with the converted message.  Use iconv() when available.
5086         In case of out of memory during conversion, return the unconverted
5087         translated string, not NULL.
5089 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
5091         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
5092         to avoid name clashes with the ia32 linker.
5094 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
5096         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
5097         handling.
5099 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
5101         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
5102         strtoumax, strfry, and memfrob.
5103         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
5104         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5106         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
5107         if this function is available.
5109         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
5110         all values.
5112 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
5114         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
5116 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
5118         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
5119         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
5120         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
5121         * localedata/tst-mbswcs3.c: New file.
5123 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
5125         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
5126         characters.  Don't handle incomplete characters as errors.
5127         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
5128         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
5129         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
5130         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
5131         * localedata/tst-mbswcs2.c: New file.
5133         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
5134         stored character in state in UNPACK_BYTES macro.
5135         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
5136         test for available characters, handle result of BODY code correctly.
5137         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
5138         (distribute): Add tst-mbswcs.sh.
5139         Add rule to run tst-mbswcs.sh.
5140         * localedata/tst-mbswcs.sh: New file.
5141         * localedata/tst-mbswcs1.c: New file.
5143 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
5145         * nis/nis_callback.c (__nis_create_callback): Do failed memory
5146         allocation fixups centrally, fix __builtin_expect call, return NULL
5147         on failure, not NIS_NOMEMORY.
5149 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
5151         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
5153         * intl/loadinfo.h (internal_function): Define if not already defined.
5155 2000-04-27  Andreas Jaeger  <aj@suse.de>
5157         * intl/libintl.h: Fix typo, reported by Bruno Haible
5158         <haible@clisp.cons.org>.
5160 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
5162         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
5163         setting the state to GMON_PROF_BUSY.
5165 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
5167         * elf/dl-profile.c (_dl_start_profile): define all variables which
5168         do not have to be global as local variables.
5170         * nis/nis_callback.c (__nis_create_callback): Partially undo last
5171         patch.  Keep needed tests for failed memory allocation.
5173         * elf/dl-reloc.c (_dl_relocate_object): Add one more
5174         __builtin_expect saying that we don't normally expect to profile.
5176         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
5177         __builtin_expect where desirable.
5179 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
5181         * manual/Makefile (chapters): Add syslog.
5182         * manual/syslog.texi: New file.
5183         * manual/math.texi: Fix references.
5184         * manual/terminal.texi: Likewise.
5185         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5187 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
5189         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
5190         stdlib.h was not included or __USE_XOPEN not defined.
5192 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
5194         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
5195         Patch by Zack Weinberg <zack@wolery.cumb.org>.
5197 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
5199         * manual/examples/subopt.c (mount_opts): Add missing terminating
5200         entry.
5201         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
5203         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
5204         * libio/ftello.c: Likewise.
5205         * libio/ftello64.c: Likewise.
5206         * libio/ioftell.c: Likewise.
5207         * sysdeps/generic/memrchr.c: Likewise.
5208         * sysdeps/posix/libc_fatal.c: Likewise.
5209         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5210         * misc/fstab.c: Include <string.h> for strcmp prototype.
5211         * sysdeps/generic/ldsodefs.h: Likewise.
5212         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5213         Patch by Kurt Roeckx <Q@ping.be>.
5215         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
5216         Remove db-open.  Change all uses.
5217         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
5219 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
5221         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
5222         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
5223         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
5224         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
5225         with .set noat/at to shut up warnings.
5226         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
5227         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
5228         compilation if __NR_pciconfig_iobase is not defined.
5229         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
5230         Add alias.
5232 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
5234         * manual/sysinfo.texi: Fix typo.
5235         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
5236         Replace "high precision time" with "high accuracy clock".
5237         Fix language.
5238         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
5240         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
5241         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
5242         instead of malloc.
5243         * nis/nis_subr.c: Use __builtin_expect.
5244         * nis/ypclnt.c: Likewise.
5245         * nis/nis_getservlist.c: Likewise.
5246         * nis/nis_creategroup.c: Likewise.
5248         * nis/nis_callback.c (__nis_create_callback): Check result of
5249         memory allocation.  Fix memory leaks.  Use __builtin_expect.
5250         (__nis_destroy_callback): Fix memory leaks.
5252 2000-04-21  Andreas Jaeger  <aj@suse.de>
5254         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
5255         * sysdeps/mips/mips64/add_n.S: Likewise.
5256         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5257         * sysdeps/mips/mips64/lshift.S: Likewise.
5258         * sysdeps/mips/mips64/mul_1.S: Likewise.
5259         * sysdeps/mips/mips64/rshift.S: Likewise.
5260         * sysdeps/mips/mips64/setjmp.S: Likewise.
5261         * sysdeps/mips/mips64/sub_n.S: Likewise.
5262         * sysdeps/mips/mips64/submul_1.S: Likewise
5263         * sysdeps/unix/mips/sysdep.S: Likewise.
5265         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
5266         and update comment.  The strtab from _dl_relocate_object can be
5267         used.
5269 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
5271         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
5272         * iconv/iconv_close.c (iconv_close): Likewise.
5273         * iconv/iconv_open.c (iconv_open): Likewise.
5275         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
5276         __builtin_expect where useful.
5278         * grp/initgroups.c (initgroups): Test for result of memory
5279         allocation and punt if it fails.
5281         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
5282         * grp/fgetgrent.c (fgetfrent): Likewise.
5283         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
5285 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
5287         * libio/vasprintf.c: Include string.h to get memcpy prototype.
5289 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
5291         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
5292         don't search for NUL byte to decrement counter.
5293         Reported by Ulrich.Brink@sap.com.
5295         * iconv/gconv_simple.c: Define separate functions to convert from
5296         UCS4/UCS4-LE to the internal encoding.
5297         * iconv/gconv_builtin.h: Use separate functions to convert from
5298         UCS4/UCS4-LE to the internal encoding.
5299         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
5300         __gconv_transform_ucs4le_internal.
5302         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
5303         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
5305         * iconv/skeleton.c: Add some more __builtin_expect.
5306         * iconv/loop.c: Likewise.
5308 2000-03-08  H.J. Lu  <hjl@gnu.org>
5310         * posix/regex.c (regex_compile): Correctly handle "\{" when
5311         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
5313 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
5315         * manual/stdio.texi: Give advise about handling error when using
5316         stream functions.
5317         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
5319 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
5321         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
5322         field to nelems * sizeof (uint32_t).
5323         * locale/programs/ld-address.c (address_output): Align word fields
5324         properly.
5325         * locale/programs/ld-monetary.c (monetary_output): Likewise.
5326         Don't restart idx pointers to idx end at the duo_int_curr_symbol
5327         field.
5328         Avoid giving arbitrary garbage in the crncystr field.
5329         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
5330         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
5331         fields.
5332         * locale/programs/ld-numeric.c (numeric_output): Likewise.
5333         Don't restart idx pointers to idx end at the decimal_point_wc field.
5334         * locale/programs/ld-time.c (time_output): week_1stday should be
5335         word, not byte.  Align it properly.
5337 2000-04-19  H.J. Lu  <hjl@gnu.org>
5339         * csu/gmon-start.c (_start): Declared as "extern void".
5340         (etext): Likewise.
5342 2000-04-18  Andreas Jaeger  <aj@suse.de>
5344         * manual/install.texi (Running make install): Don't mention utmpd
5345         anymore.
5347 2000-04-18  Andreas Jaeger  <aj@suse.de>
5349         * linuxthreads/Versions: Use ld instead of ld.so.
5351         * elf/Makefile (ld-map): Use ld.map.
5353         * Versions.def: Use ld instead of ld.so.
5354         * elf/Versions: Likewise.
5355         * sysdeps/mach/hurd/Versions: Likewise.
5357 2000-04-20  Andreas Jaeger  <aj@suse.de>
5359         * elf/rtld.c (print_statistics): Move ifndef further up.
5360         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
5361         (dl_main): Likewise.
5363 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
5365         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
5366         * gmon/Versions: Move moncontrol to GLIBC_2.2.
5368         * po/cs.po: Update from translation team.
5370         * sysdeps/generic/updwtmp.c: Remove daemon support.
5372         * login/Makefile (routines): Remove utmp_daemon.
5374         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
5375         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
5376         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
5377         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
5379         * elf/rtld.c: Display statitics option also if hp timing is not
5380         available.
5382         * login/programs/connection.c: Removed.
5383         * login/programs/database.c Removed.
5384         * login/programs/error.c: Removed.
5385         * login/programs/request.c: Removed.
5386         * login/programs/xtmp.c: Removed.
5387         * login/programs/xtmp.h: Removed.
5388         * login/Makefile: Remove rules for utmpd.
5389         * login/README.utmpd: Removed.
5390         * login/utmp_daemon.c: Removed.
5391         * login/getutent_r.c: Remove references to daemon functions.
5392         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
5393         declaration.
5395 2000-04-18  Andreas Jaeger  <aj@suse.de>
5397         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5398         2.2 for libnsl, libresolv, librt, libnss_*.
5400         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
5402         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
5404 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
5406         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
5407         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
5408         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
5409         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
5410         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
5411         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
5412         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
5413         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
5414         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
5415         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
5416         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
5417         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
5418         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
5419         it here.
5420         * sysdeps/unix/sysv/aix/msync.c: New file.
5421         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
5422         * sysdeps/unix/sysv/aix/net/if.h: New file.
5423         * sysdeps/unix/sysv/aix/pipe.c: New file.
5424         * sysdeps/unix/sysv/aix/poll.c: New file.
5425         * sysdeps/unix/sysv/aix/rename.c: New file.
5426         * sysdeps/unix/sysv/aix/rmdir.c: New file.
5427         * sysdeps/unix/sysv/aix/select.c: New file.
5428         * sysdeps/unix/sysv/aix/semctl.c: New file.
5429         * sysdeps/unix/sysv/aix/semget.c: New file.
5430         * sysdeps/unix/sysv/aix/semop.c: New file.
5431         * sysdeps/unix/sysv/aix/sendto.c: New file.
5432         * sysdeps/unix/sysv/aix/setgroups.c: New file.
5433         * sysdeps/unix/sysv/aix/setpgid.c: New file.
5434         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
5435         * sysdeps/unix/sysv/aix/setpriority.c: New file.
5436         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
5437         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
5438         * sysdeps/unix/sysv/aix/setsid.c: New file.
5439         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
5440         * sysdeps/unix/sysv/aix/shmat.c: New file.
5441         * sysdeps/unix/sysv/aix/shmctl.c: New file.
5442         * sysdeps/unix/sysv/aix/shmdt.c: New file.
5443         * sysdeps/unix/sysv/aix/shmget.c: New file.
5444         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
5445         * sysdeps/unix/sysv/aix/sigstack.c: New file.
5446         * sysdeps/unix/sysv/aix/socket.c: New file.
5447         * sysdeps/unix/sysv/aix/socketpair.c: New file.
5448         * sysdeps/unix/sysv/aix/speed.c: New file.
5449         * sysdeps/unix/sysv/aix/symlink.c: New file.
5450         * sysdeps/unix/sysv/aix/sync.c: New file.
5451         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
5452         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
5453         * sysdeps/unix/sysv/aix/times.c: New file.
5454         * sysdeps/unix/sysv/aix/ulimit.c: New file.
5455         * sysdeps/unix/sysv/aix/umask.c: New file.
5456         * sysdeps/unix/sysv/aix/unlink.c: New file.
5457         * sysdeps/unix/sysv/aix/ustat.c: New file.
5458         * sysdeps/unix/sysv/aix/utimes.c: New file.
5460 2000-04-18  Andreas Jaeger  <aj@suse.de>
5462         * manual/startup.texi (Environment Access): Fix putenv prototype
5463         according to recent changes.
5464         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
5465         PR libc/1692.
5467         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
5468         needed.
5470 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
5472         * posix/Makefile (tests): Add tst-getaddrinfo.
5473         * posix/tst-getaddrinfo.c: New file.
5475 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5477         * manual/sysinfo.texi: Document that umount2 is not widely available.
5479         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
5480         signal timing is not really implemented.
5482 2000-04-17  Andreas Jaeger  <aj@suse.de>
5484         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
5486 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
5488         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
5489         and inst_libdir.
5491 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5493         * manual/intro.texi: Change reference from System Information to
5494         System Management.
5495         * manual/users.texi: Likewise.
5496         * manual/conf.texi: Likewise.
5497         * manual/sysinfo.texi: Document mount, umount, and umount2.
5498         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5500 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
5502         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
5503         Create wnumstr as well as numstr to support wide character output
5504         correctly.
5506 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
5508         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
5509         modification and move it...
5510         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
5511         Add -melf64_sparc switch to $(LD) on sparc64-linux.
5512         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
5513         switch to $(LD) on sparc-linux.
5515 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
5517         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
5518         and setresuid from sysdep_routines.
5520 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5522         * manual/Makefile (chapters): Add resource.
5524         * manual/time.texi: Move section on resources to...
5525         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
5526         and vtimes.
5527         * manual/setjmp.texi: Adjust back reference.
5528         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5530         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
5531         definition.
5532         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
5533         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
5534         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
5535         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
5536         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
5537         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
5538         * sysdeps/unix/sysv/aix/close.c: Add copyright.
5539         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
5540         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
5541         * sysdeps/unix/sysv/aix/access.c: Add copyright.
5542         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
5543         * sysdeps/unix/sysv/aix/Implies: New file.
5544         * sysdeps/unix/sysv/aix/Versions: New file.
5545         * sysdeps/unix/sysv/aix/bind.c: New file.
5546         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
5547         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
5548         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
5549         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
5550         * sysdeps/unix/sysv/aix/chdir.c: New file.
5551         * sysdeps/unix/sysv/aix/chmod.c: New file.
5552         * sysdeps/unix/sysv/aix/chroot.c: New file.
5553         * sysdeps/unix/sysv/aix/creat.c: New file.
5554         * sysdeps/unix/sysv/aix/dl-close.c: New file.
5555         * sysdeps/unix/sysv/aix/dl-open.c: New file.
5556         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
5557         * sysdeps/unix/sysv/aix/fchdir.c: New file.
5558         * sysdeps/unix/sysv/aix/fchmod.c: New file.
5559         * sysdeps/unix/sysv/aix/getgroups.c: New file.
5560         * sysdeps/unix/sysv/aix/gethostname.c: New file.
5561         * sysdeps/unix/sysv/aix/getpriority.c: New file.
5562         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
5563         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
5564         * sysdeps/unix/sysv/aix/getrusage.c: New file.
5565         * sysdeps/unix/sysv/aix/link.c: New file.
5566         * sysdeps/unix/sysv/aix/madvise.c: New file.
5567         * sysdeps/unix/sysv/aix/mkdir.c: New file.
5568         * sysdeps/unix/sysv/aix/mknod.c: New file.
5569         * sysdeps/unix/sysv/aix/mprotect.c: New file.
5570         * sysdeps/unix/sysv/aix/msgctl.c: New file.
5571         * sysdeps/unix/sysv/aix/msgget.c: New file.
5572         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
5574 2000-04-17  Andreas Jaeger  <aj@suse.de>
5576         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
5577         as suggested by Ulrich Drepper.
5578         (__dl_runtime_resolve): Remove unused variable, initialize sym
5579         directly.
5580         (RTLD_START): Document OFFSET_GP_GOT.
5581         (OFFSET_GP_GOT): New magic value.
5582         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
5583         (elf_machine_got_rel): Only declare strtab if needed.
5584         (elf_machine_relplt): Removed, it's not needed.
5585         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
5587         * sysdeps/mips/add_n.S: Add newline at EOF.
5588         * sysdeps/mips/rshift.S: Likewise.
5589         * sysdeps/mips/mul_1.S: Likewise.
5590         * sysdeps/mips/lshift.S: Likewise.
5591         * sysdeps/mips/addmul_1.S: Likewise.
5593 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
5595         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
5597         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
5598         * elf/dl-lookup.c: Likewise.
5599         * elf/dl-init.c (_dl_init): Likewise.
5600         * elf/dl-fini.c (_dl_fini): Likewise.
5601         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
5602         * elf/dl-close.c (_dl_close): Likewise.
5603         * elf/rtld.c (_dl_start_final): Likewise.
5605         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
5607 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
5609         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
5610         only fall back on using Linux.
5612         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
5613         Before testing versions check that we actually loaded the object
5614         and whether we are in trace mode.  If not loaded during tracing don't
5615         test versions in this object.
5616         (_dl_check_all_versions): Take new parameter and pass to
5617         _dl_check_map_versions.
5618         * sysdeps/generic/ldsodefs.h: Update prototypes for
5619         _dl_check_all_versions and _dl_check_map_versions.
5620         * elf/rtld.c (struct version_check_args): Add dotrace.
5621         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
5622         (dl_main): Pass info about trace mode to version_check_doit.
5623         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
5624         _dl_check_all_versions.
5626         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
5627         and getutmpx.
5628         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5630         * manual/argp.texi: Document index parameter of argp_parse.
5631         Fix typo.
5632         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
5634 2000-04-14  Andreas Jaeger  <aj@suse.de>
5636         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
5637         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
5639         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
5641 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
5643         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
5644         compat_symbol call for old adjtime.
5646         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
5647         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
5649         * posix/Makefile (headers): Add spawn.h.
5650         (distribute): Add spawn_int.h.
5651         (routines): Add spawn_faction_init, spawn_faction_destroy,
5652         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
5653         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
5654         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
5655         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
5656         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
5657         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
5658         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
5659         posix_spawnattr_init, posix_spawnattr_destroy,
5660         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
5661         posix_spawnattr_getflags, posix_spawnattr_setflags,
5662         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
5663         and posix_spawnp.
5664         * posix/spawn.c: New file.
5665         * posix/spawn.h: New file.
5666         * posix/spawn_faction_addclose.c: New file.
5667         * posix/spawn_faction_adddup2.c: New file.
5668         * posix/spawn_faction_addopen.c: New file.
5669         * posix/spawn_faction_destroy.c: New file.
5670         * posix/spawn_faction_init.c: New file.
5671         * posix/spawn_int.h: New file.
5672         * posix/spawnattr_destroy.c: New file.
5673         * posix/spawnattr_getdefault.c: New file.
5674         * posix/spawnattr_getflags.c: New file.
5675         * posix/spawnattr_getpgroup.c: New file.
5676         * posix/spawnattr_getschedparam.c: New file.
5677         * posix/spawnattr_getschedpolicy.c: New file.
5678         * posix/spawnattr_getsigmask.c: New file.
5679         * posix/spawnattr_init.c: New file.
5680         * posix/spawnattr_setdefault.c: New file.
5681         * posix/spawnattr_setflags.c: New file.
5682         * posix/spawnattr_setpgroup.c: New file.
5683         * posix/spawnattr_setschedparam.c: New file.
5684         * posix/spawnattr_setschedpolicy.c: New file.
5685         * posix/spawnattr_setsigmask.c: New file.
5686         * posix/spawni.c: New file.
5687         * posix/spawnp.c: New file.
5689         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
5690         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5692 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
5694         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
5695         * malloc/malloc.c: Implement posix_memalign for glibc.
5696         * include/stdlib.h: Add prototype for __posix_memalign.
5697         * stdlib/stdlib.h: Add prototype for posix_memalign.
5699 2000-04-14  Andreas Jaeger  <aj@suse.de>
5701         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
5702         symidx correctly.
5703         (elf_machine_got_rel): Cast sym correctly.
5705         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
5706         * sysdeps/mips/addmul_1.S: Likewise.
5707         * sysdeps/mips/lshift.S: Likewise.
5708         * sysdeps/mips/mul_1.S: Likewise.
5709         * sysdeps/mips/rshift.S: Likewise.
5710         * sysdeps/mips/sub_n.S: Likewise.
5711         * sysdeps/mips/submul_1.S: Likewise.
5713         * stdlib/stdlib.h: Fix typo in comment.
5715         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
5716         2.2 for libdl, ld and libm.
5718         * sysdeps/generic/madvise.c: Fix typos.
5720         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
5722         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
5724         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
5725         warnings.
5727 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
5729         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
5730         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
5731         Make old name weak alias.
5732         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5733         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
5734         Make old name weak alias.
5735         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5737         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
5738         posix_fallocate, and posix_fallocate64.
5739         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
5740         posix_fallocate, and posix_fallocate64.
5741         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
5742         posix_fallocate, and posix_fallocate64.
5743         * sysdeps/generic/fadvise.c: New file.
5744         * sysdeps/generic/fadvise64.c: New file.
5745         * sysdeps/generic/fallocate.c: New file.
5746         * sysdeps/generic/fallocate64.c: New file.
5747         * sysdeps/posix/fallocate.c: New file.
5748         * sysdeps/posix/fallocate64.c: New file.
5749         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
5750         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
5751         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
5752         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
5753         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5754         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
5755         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5756         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5757         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5759         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
5760         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5762 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
5764         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
5765         * misc/sys/mman.h (posix_madvise): Add prototype.
5766         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
5767         old name and posix_madvise weak aliases.
5768         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5769         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
5770         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
5771         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
5772         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5773         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
5774         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5776 2000-04-13  Andreas Jaeger  <aj@suse.de>
5778         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
5779         versioning.
5780         (elf_machine_got_rel): Only add runtime display if needed.
5781         (elf_machine_got_rel): Handle symbol versioning.
5783 2000-04-13  Andreas Jaeger  <aj@suse.de>
5785         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
5787         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
5788         default.
5790         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
5791         with some applications.
5792         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
5794         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
5795         * sysdeps/mips/bsd-_setjmp.S: Likewise.
5796         * sysdeps/mips/setjmp.S: Likewise.
5798         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
5800 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
5802         * posix/globtest.sh: Work around inconsistency with expanding ~/
5803         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
5805 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
5807         * posix/getconf.c: Add support for many more POSIX options.
5808         * sysdeps/posix/sysconf.c: Likewise.
5809         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
5810         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
5811         _POSIX_SHELL.
5812         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
5813         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
5814         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
5815         CLOCK_THREAD_CPUTIME_ID.
5816         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
5817         CLOCK_PROCESS_CPUTIME_ID.
5818         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
5819         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
5820         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
5821         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
5823         * malloc/Makefile (tests): Add tst-calloc.
5824         * malloc/tst-calloc.c: New file.
5826         * sysdeps/arm/libm-test-ulps: New file.
5828         * malloc/malloc.c: Undo all of today's changes.
5830         * locale/programs/locale.c (show_info): Don't try to look into
5831         data for LC_ALL (there is none).
5833         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
5834         avoid writing over boundary.
5835         Patch by Greg McGary <gkm@eng.ascend.com>.
5837         * sysdeps/arm/memprof.h: New file.
5839 2000-04-12  Andreas Jaeger  <aj@suse.de>
5841         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
5843         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
5844         for memmem declaration.
5846 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
5848         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
5849         to -1.
5850         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
5852         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
5853         mode is invalid.
5854         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
5855         Patch by Bart Veer <bartv@redhat.com>.
5857         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
5858         function interface.
5860 2000-04-11  Andreas Jaeger  <aj@suse.de>
5862         * sysdeps/mips/dl-machine.h: Update some comments.
5863         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
5865 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5867         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
5868         _POSIX_SHARED_MEMORY_OBJECTS.
5870         * rt/Makefile (tests): Add tst-shm.
5871         Add rules to generate tst-shm.
5872         * rt/tst-shm.c: New file.
5874         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
5875         for descriptor.
5877         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
5878         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
5879         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
5880         * sysdeps/generic/shm_open.c: New file.
5881         * sysdeps/generic/shm_unlink.c: New file.
5882         * sysdeps/unix/sysv/linux/shm_open.c: New file.
5883         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
5884         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
5885          __endmntent, __getmntent_r, __setmntent, and __statfs.
5887         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
5888         fragmentation by allocating new memory at the end instead of
5889         reallocating.
5891         * posix/globtest.sh: Fix last change.
5893 2000-04-10  Philip Blundell  <philb@gnu.org>
5895         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
5896         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
5897         IPV6_DROP_MEMBERSHIP.
5898         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
5899         Likewise.
5901 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5903         * elf/readlib (process_file): Close streams in case of an error.
5905 2000-04-09  Andreas Jaeger  <aj@suse.de>
5907         * elf/readlib.c (process_file): Check if file is big enough to
5908         contain aout and ELF headers.
5909         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
5911 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
5913         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
5915 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
5917         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
5918         stream unbuffered.
5919         * rt/Makefile (tests): Add tst-clock.
5920         Add rules to build tst-clock.
5921         * rt/tst-clock.c: New file.
5922         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
5923         about initialization of nsec.
5924         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
5925         about initialization of freq.  Set retval to zero if successful.
5926         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
5928 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
5930         * Versions.def (librt): Add GLIBC_2.2.
5931         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
5932         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
5933         timer_getoverr, timer_gettime, and timer_settime.
5934         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
5935         clock_settime, timer_create, timer_delete, timer_getoverrun,
5936         timer_gettime, and timer_settime.
5937         * sysdeps/generic/clock_getcpuclockid.c: New file.
5938         * sysdeps/generic/get_clockfreq.c: New file.
5939         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
5940         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
5941         * sysdeps/mach/hurd/i386/bits/time.h: New file.
5942         * sysdeps/unix/i386/i586/clock_getres.c: New file.
5943         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
5944         * sysdeps/unix/i386/i686/Implies: New file.
5945         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
5946         * time/Makefile (routines): Move clock_getres, clock_gettime,
5947         clock_settime, timer_create, timer_delete, timer_getoverr,
5948         timer_gettime, and timer_settime to rt/Makefile.
5949         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
5950         clock_settime, timer_create, timer_delete, timer_getoverrun,
5951         timer_gettime, and timer_settime.
5952         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
5954         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
5955         and not const as attribute name.
5957 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
5959         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
5961 2000-04-10  Andreas Schwab  <schwab@suse.de>
5963         * posix/globtest.sh: Skip tests that depend on unreadable
5964         directories if run as root.
5966 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
5968         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
5969         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
5971 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
5973         * sysdeps/unix/clock_gettime.c: New file.
5974         * sysdeps/unix/clock_settime.c: New file.
5975         * sysdeps/posix/clock_getres.c: New file.
5977         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
5979         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
5980         lseek call be passing in a buffer which never allow a successful
5981         first getdents syscall if not at leas the initial entry can be
5982         stored in the user buffer.
5984         * localedata/Makefile: Add rules to clean up directories created by
5985         new strfmon tests.
5987 2000-04-09  Geoff Clare  <gwc@unisoft.com>
5989         * localedata/tst-fmon.data: Added new tests for strfmon()
5990         using test locales with all combinations of cs_precedes,
5991         sign_posn and sep_by_space.
5992         * localedata/tst-fmon.sh: Updated to support the new tests.
5993         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
5994         the localedef source for the new strfmon() test locale.
5995         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
5996         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
5997         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
5998         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
5999         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
6000         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
6001         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
6002         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
6003         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
6004         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
6005         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
6006         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
6007         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
6008         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
6010         * stdlib/strfmon.c: Correct problems with missing or extra
6011         spaces for unusual combinations of sign_posn and sep_by_space.
6012         Improved left-precision alignment code.
6014 2000-04-07  Andreas Jaeger  <aj@suse.de>
6016         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
6018 2000-04-10  Andreas Jaeger  <aj@suse.de>
6020         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
6022 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
6024         Implement handling of restartable conversion functions according to
6025         ISO C.
6026         * iconv/gconv.h (__gconv_fct): Add additional parameter.
6027         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
6028         * iconv/gconv.c: Pass additional parameter to conversion function.
6029         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
6030         (internal_ucs4le_loop_single): New function.
6031         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
6032         (__gconv_transform_internal_ascii): Likewise.
6033         (__gconv_transform_internal_utf8): Likewise.
6034         (__gconv_transform_utf8_internal): Likewise.
6035         (__gconv_transform_ucs2_internal): Likewise.
6036         (__gconv_transform_internal_ucs2): Likewise.
6037         (__gconv_transform_ucs2reverse_internal): Likewise.
6038         (__gconv_transform_internal_ucs2reverse): Likewise.
6039         (internal_ucs4le_loop_unaligned): Before return
6040         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
6041         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
6042         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
6043         * iconv/loop.c: Fit in definition of function to convert one character
6044         for processing of left-over bytes from the state object.
6045         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
6046         inend to match names in loop functions.
6047         (RESET_INPUT_BUFFER): Change apprpriately.
6048         (gconv): If needed, call function to process bytes from the state
6049         object.  Similar at the end: store left over bytes if input is
6050         incomplete.
6051         Take extra argument and add new argument to all calls of the
6052         conversion function.
6053         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
6054         information in the state object to not conflict with length count.
6055         * iconvdata/iso-2022-jp.c: Likewise.
6056         * iconvdata/iso-2022-kr.c: Likewise.
6057         * iconvdata/unicode.c: Adjust for change change in parameters of
6058         skeleton function.
6059         * iconvdata/utf-16.c: Likewise.
6060         * libio/iofwide.c: Add new parameter to all calls of conversion
6061         function.
6062         * wcsmbs/btowc.c: Likewise.
6063         * wcsmbs/mbrtowc.c: Likewise.
6064         * wcsmbs/mbsnrtowcs.c: Likewise.
6065         * wcsmbs/mbsrtowcs.c: Likewise.
6066         * wcsmbs/wcrtomb.c: Likewise.
6067         * wcsmbs/wcsnrtombs.c: Likewise.
6068         * wcsmbs/wcsrtombs.c: Likewise.
6069         * wcsmbs/wctob.c: Likewise.
6071         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
6072         MAX_NEEDED_INPUT.
6074 2000-04-07  Andreas Jaeger  <aj@suse.de>
6076         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
6077         newer kernels.
6079 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
6081         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
6082         element a union to allow byte access.
6083         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
6084         mbstate_t.
6085         * iconvdata/iso-2022-jp.c: Likewise.
6086         * iconvdata/iso-2022-kr.c: Likewise.
6087         * wcsmbs/mbsinit.c: Likewise.
6088         * stdlib/mblen.c: Likewise.
6089         * stdio-common/printf-parse.h: Likewise.
6091 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
6093         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
6094         kernel does not allow relative seeks on descriptors associated
6095         with directories.  Go back to get the position in the directory
6096         every time we enter the function.  Return -1 and set errno if one
6097         entry could be read from the kernel but does not fit into the
6098         buffer passed in by the user.
6100         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
6101         Support ..(2).. ellipsis.
6102         (parse_charmap): Recognize ..(2).. etc and pass step down.
6103         Correctly generate names for UCS4 characters.
6105         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
6106         (ctype_finish): We know the wide character value for <SP>,
6107         don't search.
6108         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
6109         (charclass_ucs4_ellipsis): Likewise.
6110         (read_translit_ignore_entry): Store ellipsis step.
6111         (ctype_read): Recognize ..(2).. etc and pass step down.
6113         * locale/programs/linereader.c (lr_token): When seeing comment
6114         character ignore only rest of line in sources but stop at escaped
6115         newline.
6116         Recognize ..(2).. and ....(2).....
6118         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
6119         and tok_ellipsis4_2.
6121 2000-04-06  Andreas Jaeger  <aj@suse.de>
6123         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
6124         removed, remove it here also.
6125         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
6126         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
6127         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
6128         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
6130 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
6132         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
6133         include bits/sigcontext.h.
6134         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
6136 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
6138         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
6139         collation symbol definition.  Value in quivalence definition must
6140         be defined, don't check that it is not.
6142         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
6143         values as character names.
6145         * locale/programs/ld-ctype.c (get_character): Handle missing
6146         repertoire map correctly.
6148 2000-04-05  Cristian Gafton  <gafton@redhat.com>
6150         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
6151         because it is used in generic code.
6152         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
6153         * wcsmbs/wcwidth.h: Declare __ctype32_b.
6154         * intl/gettext.c: Include <locale.h>.
6155         * intl/ngettext.c: Likewise.
6157 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
6159         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
6160         socklen_t type for size.
6161         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
6162         init function interface.
6163         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6164         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
6165         sys/ucontext.h.
6166         (__jmp_buf): Declare the whole type structure here, don't use
6167         ucontext.
6169 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
6171         * iconv/skeleton.c (put16u): Fix typo.
6172         Reported by Bruno Haible <haible@ilog.fr>.
6174         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
6175         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
6176         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
6177         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
6178         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
6179         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
6181         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
6182         * Makefile (distribute): Add abi-versions.awk and
6183         firstversions.awk.
6184         Patches by Torsten Duwe <duwe@caldera.de>.
6186 2000-04-05  Andreas Schwab  <schwab@suse.de>
6188         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
6190 2000-04-05  Andreas Schwab  <schwab@suse.de>
6192         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
6193         entry point, used on Hurd.
6195 2000-04-04  Andreas Jaeger  <aj@suse.de>
6197         * intl/Makefile: Only run the gettext test with shared libraries.
6199 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
6201         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
6202         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
6204 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
6206         * Makeconfig: Undo last change.
6207         * configure.in: If --disable-shared was given, don't set VERSIONING,
6208         don't define DO_VERSIONING, and don't give scare warning for no
6209         versioning.
6210         * configure: Regenerated.
6212 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
6214         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
6216 2000-04-04  Andreas Jaeger  <aj@suse.de>
6218         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
6220 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
6222         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
6223         STV_HIDDEN and STV_INTERNAL during lookup.
6224         (profile_fixup): Likewise.
6225         * elf/dl-reloc.c (RESOLVE): Likewise.
6227         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
6228         unaligned so that it compiles for system which need unaligned
6229         access handling.
6231 2000-04-04  Andreas Schwab  <schwab@suse.de>
6233         * elf/cache.c (print_entry): Only look at the type field when
6234         printing the type.
6236 2000-04-04  Andreas Schwab  <schwab@suse.de>
6238         * iconvdata/big5.c (BODY): Fix typo.
6240 2000-04-04  Andreas Schwab  <schwab@suse.de>
6242         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
6243         function interface.  Remove unused _dl_start_user entry point.
6245 2000-04-03  Andreas Jaeger  <aj@suse.de>
6247         * include/arpa/inet.h (__inet_aton): Add protoype.
6249 2000-04-01  Andreas Jaeger  <aj@suse.de>
6251         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
6253         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
6254         * sysdeps/mach/mips/thread_state.h: Likewise.
6256         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
6257         * sysdeps/generic/fegetenv.c: Likewise.
6258         * sysdeps/generic/fesetenv.c: Likewise.
6259         * sysdeps/generic/feupdateenv.c: Likewise.
6260         * sysdeps/generic/fraiseexcpt.c: Likewise.
6261         * sysdeps/generic/fsetexcptflg.c: Likewise.
6262         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
6263         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
6264         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
6265         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6267 2000-04-02  H.J. Lu  <hjl@gnu.org>
6269         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
6271 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
6273         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
6274         (add_name_to_object): Add cast in malloc call.
6275         (fillin_rpath): Optimize loop to initialize ->status a bit.
6277         * sysdeps/i386/dl-machine.h: Undo last change.
6278         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
6279         Restore %edx register after call here.
6281         * sysdeps/arm/atomicity.h: New file.
6282         Contributed by Jesper Skov <jskov@redhat.com>.
6284 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
6286         * Makeconfig (preprocess-versions): Undo last change.
6287         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
6289         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
6290         here, before we might move the stack.
6291         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
6292         (init1): And not here.
6294         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
6295         change, to restore argc value in call-clobbered register after
6296         RTLD_START_SPECIAL_INIT, which will contain a call.
6298         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
6299         allocating and initializing L->l_initfini.
6301         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
6303 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
6305         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
6306         RUNPATH, RPATH, and LD_LIBRARY_PATH.
6307         (open_path): Change type of fourth parameter.  Make pointer to array
6308         of pointers.  Create variable dirs with original type.
6309         Track whether any directory for the object exists and if not,
6310         change *DIRSP to (void*) -1 to signal there is no such search path.
6311         (_dl_map_object): Change all calls of open_path.
6312         Rewrite decompose_rpath calls.
6314 2000-03-31  Andreas Schwab  <schwab@suse.de>
6316         * string/strfry.c: Declare STATE as array of char instead of int
6317         and do not initialize it (done by initstate_r).  Pass correct
6318         size.
6320 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
6322         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
6324         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
6325         instruction out of the code.
6327 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
6329         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
6330         element at this position.
6332         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
6333         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
6334         l_reldeps elements.
6335         * elf/dl-lookup.c (add_dependency): New function.
6336         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
6337         dynamically loaded object.
6338         (_dl_lookup_symbol_skip): Likewise.
6339         (_dl_lookup_versioned_symbol): Likewise.
6340         (_dl_lookup_versioned_symbol_skip): Likewise.
6341         * elf/dl-open.c: Don't define _dl_load_lock here...
6342         * elf/rtld.c: ...but here...
6343         * elf/dl-support.c: ...and here.
6344         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
6345         through relocation.
6346         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
6347         relocations.
6348         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
6349         anymore.
6350         * dlfcn/glrefmain.c: Add one more debug message.
6352         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
6353         command line.
6354         * Makerules (sysd-versions): Use ( ) instead of { }.
6356         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
6357         optimize for the non-debugging case.
6358         * elf/dl-lookup.c: Likewise.
6359         * sysdeps/generic/libc-start.c: Likewise.
6361 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
6363         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
6364         (init1): Don't initialize __environ here, since init already does it.
6365         (first_init): New function, broken out of _init.
6366         (_hurd_stack_setup): Use it.
6367         [SHARED] (_dl_init_first): New function, renamed from old _init.
6368         (init1) [SHARED]: Don't call posixland_init here.
6369         (posixland_init): Take ENVP arg, so signature is usual for initializer.
6370         [SHARED] (_init): Define as alias for posixland_init.
6371         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
6372         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
6373         RTLD_START_SPECIAL_INIT before calling initializers.
6374         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
6375         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
6376         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
6377         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
6379         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
6380         since we define the function with the name `tmpfile'.
6382         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
6383         * hurd/Versions: Likewise.
6385 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
6387         * elf/dl-runtime.c (fixup): Fix typo in comment.
6389         * resolv/netdb.h (getnameinfo): All length parameters are of type
6390         socklen_t.
6391         * inet/getnameinfo.c: Likewise.
6393 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
6395         * posix/unistd.h (socklen_t): Define if it has not yet happened.
6396         (gethostname): Change type of second parameter to socklen_t.
6397         * include/unistd.h (__gethostname): Change type of second
6398         parameter to socklen_t.
6399         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
6400         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
6401         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
6402         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
6403         Likewise.
6404         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
6405         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
6406         Allow definition elsewhere.
6407         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
6408         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6409         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
6410         * sysdeps/generic/bits/types.h: Define __socklen_t.
6411         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
6412         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
6413         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
6414         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
6415         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
6416         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
6417         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
6419         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
6420         (inet_lnaof): Likewise.
6421         (inet_netof): Likewise.
6422         (inet_network): Likewise.
6423         (inet_aton): Likewise.
6424         (inet_makeaddr): Change parameter types to in_addr_t.
6425         (inet_neta): Likewise.
6426         (inet_ntop): Change type of last parameter to socklen_t.
6427         (inet_aton): Only make available if __USE_MISC.
6428         (inet_neta): Likewise.
6429         (inet_net_ntop): Likewise.
6430         (inet_net_pton): Likewise.
6431         (inet_nsap_ntoa): Likewise.
6433         * inet/in.h: Define in_port_t type.
6434         Define in_addr_t type.
6435         (struct in_addr): Use in_addr_t in definition.
6436         (IN_CLASSA): Use cast to in_addr_t.
6437         (IN_CLASSB): Likewise.
6438         (IN_CLASSC): Likewise.
6439         (IN_CLASSD): Likewise.
6440         (IN_EXPERIMENTAL): Likewise.
6441         (IN_BADCLASS): Likewise.
6442         (INADDR_ANY): Likewise.
6443         (INADDR_BROADCAST): Likewise.
6444         (INADDR_NONE): Likewise.
6445         (INADDR_LOOPBACK): Likewise.
6446         (INADDR_UNSPEC_GROUP): Likewise.
6447         (INADDR_ALLHOSTS_GROUP): Likewise.
6448         (INADDR_ALLRTRS_GROUP): Likewise.
6449         (INADDR_MAX_LOCAL_GROUP): Likewise.
6450         (struct sockaddr_in): Use in_port_t for sin_port element.
6451         (struct sockaddr_in6): Use in_port_t for sin6_port element.
6452         Use uint8_t instead of u_int8_t.
6454         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
6455         Call __inet_aton instead of inet_aton.
6456         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
6458         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
6459         (innetgr): Likewise.
6460         (struct addrinfo): Use socklen_t for ai_addrlen element.
6462         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
6463         IPV6_RECVERR): New defines.
6465         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
6466         * inet/getnetbyad.c: Likewise.
6467         * inet/getnetbyad_r.c: Likewise.
6468         * nis/nss_nis/nis-network.c: Likewise.
6469         * nis/nssplus_nis/nisplus-network.c: Likewise.
6470         * nss/nss_files/files-network.c: Likewise.
6471         * resolv/netdb.h: Define uint32_t if not already happened.
6472         Include bits/netdb.h.  Remove definition of struct netent.
6473         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
6474         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
6475         * sysdeps/generic/bits/netdb.h: New file.
6476         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
6478         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
6479         (tests): Add glrefmain.
6480         Add rules to build modules and run tests.  Ignore result of glrefmain
6481         for now since it fails.
6482         * dlfcn/glrefmain.c: New file.
6483         * dlfcn/glreflib1.c: New file.
6484         * dlfcn/glreflib2.c: New file.
6486         * test-skeleton.c: Include <string.h> for strsignal prototype.
6488         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
6489         to be missing.
6491         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
6492         former init-first.h.  Initialize __libc_multiple_libcs.
6494 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
6496         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
6497         #if expression for use of unaligned function to the one used in
6498         the definition of these functions.
6499         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
6500         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
6501         (internal_ucs4le_loop_unaligned): New function.
6503         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
6504         (tests): Add order.
6505         (module-names): Add dep1, dep2, dep3, and dep4.
6506         Add dependencies for dep* modules and order.
6507         Define rule for order.out which checks the result.
6508         * elf/dep1.c: New file.
6509         * elf/dep2.c: New file.
6510         * elf/dep3.c: New file.
6511         * elf/dep4.c: New file.
6512         * elf/order.c: New file.
6514         * elf/dl-init.c: Fix typo in comment.
6516 2000-03-31  Andreas Jaeger  <aj@suse.de>
6518         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
6519         init function interface.
6520         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
6522 2000-03-31  Andreas Jaeger  <aj@suse.de>
6524         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
6525         * sysdeps/mips/fpu/fegetenv.c: Likewise.
6526         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
6527         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
6528         * sysdeps/mips/fpu/fesetenv.c: Likewise.
6530         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
6531         anymore, update comment.
6533         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6535         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
6536         SHLIB_COMPAT - the struct is always needed.
6538 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
6540         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
6541         * elf/dl-support.c: Define _dl_starting_up.
6543 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6545         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
6546         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
6548         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
6550         * elf/Makefile (dl-routines): Remove preinit.
6551         * elf/Versions: Remove _dl_preinit.
6552         * elf/dl-preinit.c: Removed.  Move content into...
6553         * elf/dl-init.c: ...here.
6554         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
6556         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
6557         elements.
6559 2000-03-29  Geoff Clare  <gwc@unisoft.com>
6561         * stdlib/strfmon.c: Corrected problems with the code that
6562         sets default values for [np]_sep_by_space and
6563         [np]_sign_posn; also the new positive/negative alignment
6564         code from the previous patch was not quite right for
6565         [np]_sign_posn = 0.
6567         * localedata/tst-fmon.data: Changes corresponding to the
6568         two sets of fixes made to stdlib/strfmon.c.
6570 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
6572         * malloc/malloc.c: Declare bit flags UL so that they will not
6573         default to int size when being inverted.
6575 2000-03-29  Andreas Jaeger  <aj@suse.de>
6577         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
6578         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
6580 2000-03-29  Andreas Jaeger  <aj@suse.de>,
6581             Ralf Baechle <ralf@uni-koblenz.de>
6583         * Makeconfig: Introduce new variable SHARED to mark code used in
6584         the shared library.
6585         * elf/dl-close.c: Use it instead of PIC.
6586         * elf/dl-load.c: Likewise.
6587         * elf/dl-open.c: Likewise.
6588         * hurd/geteuids.c: Likewise.
6589         * include/libc-symbols.h: Likewise.
6590         * include/shlib-compat.h: Likewise.
6591         * libio/freopen.c: Likewise.
6592         * linuxthreads/cancel.c: Likewise.
6593         * linuxthreads/pthread.c: Likewise.
6594         * linuxthreads/wrapsyscall.c: Likewise.
6595         * nss/nsswitch.c: Likewise.
6596         * stdio-common/vfprintf.c: Likewise.
6597         * sysdeps/arm/init-first.c: Likewise.
6598         * sysdeps/i386/init-first.c: Likewise
6599         * sysdeps/generic/init-first.c: Likewise.
6600         * sysdeps/generic/libc-start.c: Likewise.
6601         * sysdeps/mips/init-first.c: Likewise.
6602         * sysdeps/powerpc/elf/libc-start.c: Likewise.
6603         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6604         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
6605         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
6606         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6608         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
6610 2000-03-29  Andreas Jaeger  <aj@suse.de>
6612         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
6613         Use D_PTR to access relocated entries in l_info.
6614         (elf_machine_rela): Likewise.
6616         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
6617         Likewise.
6618         (elf_machine_rela): Likewise.
6620         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
6621         Likewise.
6622         (__elf_machine_fixup_plt): Likewise.
6623         (__process_machine_rela): Likewise.
6625         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
6626         (elf_machine_rela): Likewise.
6628         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
6629         (elf_machine_rel): Likewise.
6631         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
6632         (elf_machine_fixup_plt): Likewise.
6633         (elf_machine_rela): Likewise.
6635 2000-03-29  Andreas Jaeger  <aj@suse.de>
6637         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
6638         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
6639         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6640         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
6641         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
6642         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
6643         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
6644         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
6645         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
6646         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
6647         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
6648         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
6649         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
6650         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
6651         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6653         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
6654         macros, remove K&R prototypes.
6656 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6658         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
6659         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
6660         (PR libc/1677).
6662 2000-03-30  Andreas Jaeger  <aj@suse.de>
6664         * misc/sys/cdefs.h: Remove K&R support.
6666 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6668         * iconv/skeleton.c: Avoid compiling unaligned versions in some
6669         more cases.
6670         * iconv/loop.c: Likewise.
6672 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
6674         * iconv/loop.c (put16): Remove __const. Fix access index.
6675         (put32): Remove __const. Use uint32_t instead of uint16_t.
6676         * iconv/skeleton.c: Likewise.
6678 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
6680         * mach/Versions (libc: GLIBC_2.0)
6681         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
6682         __vm_allocate on this.
6683         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
6684         mutex- and spinlock-related symbols on this.
6685         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
6686         New version set.  Lock-related symbols go here instead in this case.
6687         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
6688         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
6689         cthread_getspecific, cthread_setspecific, __libc_getspecific.
6690         * hurd/Versions
6691         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
6692         Put them here instead.
6693         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
6694         New version set.  Those cthreads symbols go here instead in this case.
6695         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
6697 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
6699         * elf/dl-init.c (_dl_init): We don't need to call constructors
6700         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
6702         Implement dynamic determination of constructor/destructor order in
6703         the dynamic linker.
6704         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
6705         (GLIBC_2.2): Add _dl_init.
6706         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
6707         r_duplist is not anymore allocated separately.  l_initfini is and
6708         therefore free it if necessary.
6709         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
6710         malloc block.  Otherwise allocate l_initfini list only.
6711         Put dependencies for the object in l_initfini list.
6712         Sort dependencies for the object to be loaded topologically.
6713         * elf/dl-fini.c: Before running the destructors sort the topologically.
6714         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
6715         call constructors instead of iterating over the pointers.  Get list of
6716         objects for which to run constructors from l_initfini element. Accept
6717         argc, argv, and env as parameters and pass them to the constructors.
6718         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
6719         with size of dynamic section.
6720         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
6721         _dl_init_next and calling constructors ourself.
6722         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
6723         Take argc, argv, and env as parameters and pass them to the
6724         constructors.  Rewrite to call all constructors and not iterate over
6725         the pointers.
6726         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
6727         precompute l_initcount and l_preinitcount.
6728         * elf/link.h (struct link_map): Add l_ldnum member.
6729         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
6730         l_initcount, and l_preinitcount.  Add l_initfini.
6731         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
6732         one for _dl_init.
6733         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
6734         function interface.
6735         * sysdeps/unix/sysv/linux/init-first.h: Removed.
6736         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
6737         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
6738         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
6739         conventions now match.
6741         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
6742         effect for shared objects.  Don't emit message and call only for
6743         static library.
6745 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
6747         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
6748         CSA_Z243.4-1985-1..UCS2.
6749         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
6750         ISO-8859-10..UCS2.
6752 2000-03-29  Andreas Jaeger  <aj@suse.de>
6754         * include/unistd.h: Remove duplicate entry for __rmdir.
6755         Remove declaration of __mkdir since __mkdir is declared in
6756         sys/stat.h.
6758         * manual/creature.texi (Feature Test Macros): Fix typo, reported
6759         by Michael Deutschmann <michael@talamasca.ocis.net>.
6761         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
6762         * sysdeps/mips/fpu/fegetenv.c: Likewise.
6763         * sysdeps/mips/fpu/fesetenv.c: Likewise.
6764         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
6765         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
6767 2000-03-28  Andreas Jaeger  <aj@suse.de>
6769         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
6770         declaration, the prototype is defined via bits/mathcalls.h.
6771         (__sincosf): Likewise.
6772         (__sincosl): Likewise.
6773         (ldexp): Likewise.
6774         (ldexpf): Likewise.
6775         (ldexpl): Likewise.
6776         (__finite): Likewise.
6777         (__inline_mathcodeNP): New macro without prototype
6778         declarations.
6779         (__inline_mathcodeNP2): Likewise.
6780         (__inline_mathcodeNP3): Likewise.
6781         (__inline_mathcodeNP_): Likewise.
6782         (__inline_mathcodeNP2_): Likewise.
6783         (__inline_mathcodeNP3_): Likewise.
6784         (__inline_mathopNP): Likewise.
6785         (__inline_mathop_declNP): Likewise.
6786         (__inline_mathop_declNP_): Likewise.
6787         (__inline_mathcode_): Use __inline_mathcodeNP_.
6788         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
6789         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
6790         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
6791         (__expm1l): Don't define prototype, the prototype is defined via
6792         bits/mathcalls.h.
6793         (exp): Likewise.
6794         (__expl): Likewise.
6795         (tan): Likewise.
6796         (atan2): Likewise.
6797         (__atan2l): Likewise.
6798         (fmod): Likewise.
6799         (pow): Likewise.
6800         (fabsf): Likewise.
6801         (fabsl): Likewise.
6802         (__fabsl): Likewise.
6803         (asin): Likewise.
6804         (acos): Likewise.
6805         (sinh): Likewise.
6806         (cosh): Likewise.
6807         (tanh): Likewise.
6808         (floor): Likewise.
6809         (ceil): Likewise.
6810         (expm1): Likewise.
6811         (log1p): Likewise.
6812         (asinh): Likewise.
6813         (acosh): Likewise.
6814         (atanh): Likewise.
6815         (hypot): Likewise.
6816         (logb): Likewise.
6817         (fma): Likewise.
6818         (drem): Likewise.
6819         (sqrt): Likewise.
6820         (__sqrtl): Likewise.
6821         (sin): Likewise.
6822         (cos): Likewise.
6823         (atan): Likewise.
6824         (log): Likewise.
6825         (log10): Likewise.
6826         (asinh): Likewise.
6827         (log2): Likewise.
6828         (rint): Likewise.
6830 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
6832         * Makerules: If make variable md5 is defined to yes after
6833         generating dependencies generate MD5 sum for the object.
6835         * iconv/gconv_builtin.h: Fix length in transformation definition
6836         for UNICODEBIG.
6838         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
6840         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
6841         allow as well reading from/writing to unaligned addresses on machines
6842         which don't support this in hardware.  Use FCTNAME macro to define
6843         function name.  Include the file a second time for platforms which
6844         need special unaligned handling.
6845         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
6846         to access potentially unaligned addresses.  These macros are intended
6847         to be used only outside the loops.
6848         (unaligned): New definition.  In case the machine can handle unaligned
6849         access define as zero.  Otherwise as a variable which is initialized
6850         as nonzero in case the buffer passed in at runtime is unaligned with
6851         respect to the character set encoding involved.
6852         Call aligned or unaligned looop functions according to unaligned
6853         variable.
6854         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
6855         of direct casting pointer to potentially handle unaligned memory
6856         accesses.
6857         * iconvdata/8bit-generic.c: Likewise.
6858         * iconvdata/ansi_x3.110.c: Likewise.
6859         * iconvdata/big5.c: Likewise.
6860         * iconvdata/euc-cn.c: Likewise.
6861         * iconvdata/euc-jp.c: Likewise.
6862         * iconvdata/euc-kr.c: Likewise.
6863         * iconvdata/euc-tw.c: Likewise.
6864         * iconvdata/gbk.c: Likewise.
6865         * iconvdata/iso-2022-cn.c: Likewise.
6866         * iconvdata/iso-2022-jp.c: Likewise.
6867         * iconvdata/iso-2022-kr.c: Likewise.
6868         * iconvdata/iso646.c: Likewise.
6869         * iconvdata/iso_6937-2.c: Likewise.
6870         * iconvdata/iso_6937.c: Likewise.
6871         * iconvdata/johab.c: Likewise.
6872         * iconvdata/sjis.c: Likewise.
6873         * iconvdata/t.61.c: Likewise.
6874         * iconvdata/uhc.c: Likewise.
6875         * iconvdata/unicode.c: Likewise.
6876         * iconvdata/utf-16.c: Likewise.
6878         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
6879         prototypes.
6881         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
6882         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
6883         public.
6884         * malloc/mcheck.h (mcheck_check_all): Declare.
6886         * stdio-common/Makefile (tests): Add tst-obprintf.
6888 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
6890         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
6891         Declare pthread_sigmask.
6893         * csu/version.c: Add 2000 to copyright years.
6894         Remove Emacs local variables section.
6896 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
6898         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
6899         __gconv_transform_internal_ucs2little): Remove declarations.
6900         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
6901         __gconv_transform_internal_ucs2): Never need to bswap_16.
6902         (__gconv_transform_ucs2reverse_internal,
6903         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
6905 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
6907         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
6908         obsoleting version not being defined at all, in which case the
6909         result is always true.
6911         * Makeconfig (preprocess-versions): New canned sequence for running
6912         cpp on shlib-versions and the like.
6913         (soversions.i): Use it.
6914         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
6915         Versions.def and Versions files.
6917 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
6919         * stdio-common/tst-obprintf.c (main): Add another check to see
6920         obstack_printf handling all possible beginnings of the block
6921         inside an obstack chunk.
6923         * locale/programs/localedef.c: Use __malloc_initialize_hook to
6924         install mcheck handler.
6926         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
6927         handling problem.
6929 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
6931         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
6933         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
6934         on [HAVE_ELF && DO_VERSIONING].
6936 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
6938         * stdio-common/tst-obprintf.c: New file.
6940 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
6942         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
6943         _IO_OVERFLOW directly instead through __overflow.
6945         * locale/programs/localedef.c (construct_output_path): If path
6946         contains a / compute the end of the directory name correctly.
6948         * include/features.h: Undef and document __USE_XOPEN2K.
6950         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
6951         whenever a function is called.  Initiated by calling mcheck_pedantic
6952         instead of mcheck.
6953         * malloc/mcheck.h: Declare mcheck_pedantic.
6954         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
6955         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
6956         for now.
6958 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
6960         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
6961         * dlfcn/dlopenold.c: Likewise.
6962         * nss/getXXbyYY_r.c: Likewise.
6963         * nss/getXXent_r.c: Likewise.
6964         * hurd/hurdinit.c: Likewise.
6965         * hurd/compat-20.c: Likewise.
6966         * libio/oldiofopen.c: Likewise.
6967         * libio/oldiofclose.c: Likewise.
6968         * libio/oldiofdopen.c: Likewise.
6969         * libio/oldfileops.c: Likewise.
6970         * libio/oldstdfiles.c: Likewise.
6971         * libio/oldiofsetpos.c: Likewise.
6972         * libio/oldiofgetpos.c: Likewise.
6973         * libio/oldiofgetpos64.c: Likewise.
6974         * libio/oldiofsetpos64.c: Likewise.
6975         * libio/oldiopopen.c: Likewise.
6976         * libio/oldpclose.c: Likewise.
6977         * libio/oldtmpfile.c: Likewise.
6978         * libio/freopen.c (freopen): Likewise.
6979         * libio/iofclose.c (_IO_new_fclose): Likewise.
6981         * sysdeps/mach/sys/reboot.h: Include <features.h>.
6982         (reboot): Declare it.
6984         * libio/Makefile (headers): Add bits/stdio-lock.h here.
6986         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
6988         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
6990         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
6991         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
6992         We need this for the sbrk decl, which can be included without Unix98.
6994 2000-03-20  Richard Henderson  <rth@cygnus.com>
6996         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
6997         argument to yperr2nss is an int, not size_t.
6998         * posix/regex.c (print_partial_compiled_pattern): Cast all
6999         ptrdiff_t to long for printing.
7000         (print_compiled_pattern): Use Z for printing size_t.
7001         * posix/testfnm.c (tests): Avoid trigraphs.
7002         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7003         Use a C comment, not an assembly comment.
7005         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
7006         of __ASSUME_32BITUIDS.
7008 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
7010         * libio/iofopncook.c: Remove K&R prototypes.
7012 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
7014         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
7015         an initial value of 1024 instead of RLIM_INFINITY.
7017         * Versions.def (libmachuser, libhurduser): Remove these sections,
7018         since these libraries do not presently use symbol versions.
7020         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
7021         is RLIM_INFINITY, return -1 instead.
7023 2000-03-24  Andreas Jaeger  <aj@suse.de>
7025         * Makefile (postclean): Added soversions.i.
7027 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
7029         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
7030         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
7031         and _FPU_IEEE.  Change _FPU_RESERVED.
7033 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
7035         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
7037 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
7039         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
7040         (gaih_inet): Remove unused duplicate variable.
7042         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
7043         Don't use __libc_sa_len, which only exists for Linux.  Just handle
7044         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
7045         only flavors supported by this function anyway.
7047 2000-03-24  Geoff Clare  <gwc@unisoft.com>
7049         * stdlib/strfmon.c: Corrected problems with missing signs and
7050         missing or extra spaces; allow for sign strings longer than
7051         one character; add padding to ensure positive and negative
7052         formats are aligned when a left precision is used.
7054 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
7056         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
7057         Patch by John Mizel <John.Mizel@msdw.com>.
7059 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
7061         * manual/install.texi: Remove references to crypt add-on.
7063 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
7065         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
7066         section while taking the _hurd_rlimit_lock.
7067         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
7069 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
7071         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
7072         using $(LN_S).
7074         * sysdeps/mach/hurd/if_index.c: New file.
7076         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
7077         * sysdeps/gnu/net/if.h: here.
7078         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
7079         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
7080         * sysdeps/generic/net/if.h: New file.  Declares just the standard
7081         functions and `struct if_nameindex' type.
7082         * socket/Makefile (headers): Add net/if.h here.
7083         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
7084         * sysdeps/mach/hurd/Dist: Remove it here.
7085         * sysdeps/unix/sysv/linux/Dist: And here.
7086         * sysdeps/generic/if_index.c: Include <net/if.h>.
7088 2000-03-24  Andreas Jaeger  <aj@suse.de>
7090         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
7091         access relocated entries in l_info.
7092         (elf_machine_got_rel): Likewise.
7093         (elf_machine_runtime_setup): Likewise.
7094         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
7095         (elf_machine_runtime_setup): Likewise.
7096         (__dl_runtime_resolve): Likewise.
7098 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
7100         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
7101         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
7102         according to RFC 2553.
7103         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
7104         * inet/getnameinfo.c: Likewise.
7105         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
7107 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
7109         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
7110         Remove no-op pointer increment.
7112 2000-03-23  Andreas Jaeger  <aj@suse.de>
7114         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
7115         follow change for libio.h from 2000-03-10.
7117 2000-03-23  Andreas Jaeger  <aj@suse.de>
7119         * elf/dl-addr.c: Adjust include paths for ldsodefs location
7120         change.
7121         * elf/dl-debug.c: Likewise.
7122         * elf/dl-deps.c: Likewise.
7123         * elf/dl-error.c: Likewise.
7124         * elf/dl-fini.c: Likewise.
7125         * elf/dl-init.c: Likewise.
7126         * elf/dl-load.c: Likewise.
7127         * elf/dl-lookup.c: Likewise.
7128         * elf/dl-minimal.c: Likewise.
7129         * elf/dl-object.c: Likewise.
7130         * elf/dl-open.c: Likewise.
7131         * elf/dl-preinit.c: Likewise.
7132         * elf/dl-profile.c: Likewise.
7133         * elf/dl-profstub.c: Likewise.
7134         * elf/dl-reloc.c: Likewise.
7135         * elf/dl-runtime.c: Likewise.
7136         * elf/dl-support.c: Likewise.
7137         * elf/dl-symbol.c: Likewise.
7138         * elf/dl-version.c: Likewise.
7139         * elf/rtld.c: Likewise.
7140         * elf/sprof.c: Likewise.
7141         * sysdeps/generic/dl-cache.c: Likewise.
7142         * sysdeps/generic/dl-origin.c: Likewise.
7143         * sysdeps/generic/dl-sysdep.c: Likewise.
7144         * sysdeps/generic/elf/backtracesyms.c: Likewise.
7145         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7146         * sysdeps/generic/libc-start.c: Likewise.
7147         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7148         * sysdeps/powerpc/dl-machine.c: Likewise.
7149         * sysdeps/powerpc/elf/libc-start.c: Likewise.
7150         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7151         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7152         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7154         * elf/ldsodefs.h: Move file to ...
7155         * sysdeps/generic/ldsodefs.h: ... here.
7157         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
7159         * sysdeps/mips/elf/ldsodefs.h: New file.
7161         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
7162         entries in l_info.
7163         (_dl_check_map_versions): Likewise.
7164         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7165         * elf/dl-load.c (_dl_init_paths): Likewise.
7166         (_dl_map_object): Likewise.
7167         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
7168         (elf_get_dynamic_info): Likewise.
7169         * elf/do-lookup.h (FCT): Likewise.
7170         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
7171         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7172         * elf/dl-addr.c (_dl_addr): Likewise.
7173         * elf/dl-runtime.c (profile_fixup): Likewise.
7174         (fixup): Likewise.
7175         * elf/dl-init.c (_dl_init_next): Likewise.
7176         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
7177         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
7178         (DISTINGUISH_LIB_VERSIONS): Likewise.
7179         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
7180         (elf_machine_rel): Likewise.
7182         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
7183         for writable dynamic section.
7185 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
7187         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
7188         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
7190 2000-03-22  Andreas Jaeger  <aj@suse.de>
7192         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
7193         from latest Linux kernel.
7195 2000-03-21  Andreas Jaeger  <aj@suse.de>
7197         * Versions.def: Add version 2.1.4.
7199 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
7201         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
7202         * libio/oldiofopen.c: Likewise.
7203         * libio/oldiofclose.c: Likewise.
7204         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7206 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
7208         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
7209         indicating the first version set to obsolete the conditionalized code.
7210         (compat_symbol): New macro.
7211         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
7212         rhs be the ABI_* macro for the subsuming version.  Assign increasing
7213         integer values to the ABI_* macros for supported versions.
7214         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
7215         compat_symbol macro.
7217 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
7219         * nscd/connections.c (nscd_run): Pretty print.
7220         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
7222         * manual/charset.texi: Fix typos.  Rephrase.
7223         * manual/process.texi: Likewise.
7224         * manual/signal.texi: Likewise.
7225         Patches by Mike Coleman <mkc@kc.net>.
7227         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
7228         versions.
7229         * libio/iofdopen.c: Likewise.
7230         * libio/iofgetpos.c: Likewise.
7231         * libio/iofgetpos64.c: Likewise.
7232         * libio/iofopen.c: Likewise.
7233         * libio/iofsetpos.c: Likewise.
7234         * libio/iofsetpos64.c: Likewise.
7235         * libio/iopopen.c: Likewise.
7236         * libio/oldiofopen.c: Likewise.
7237         * libio/pclose.c: Likewise.
7238         * sysdeps/gnu/siglist.c: Likewise.
7239         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7241         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
7242         chance to expand VERSION_##lib##_##version.
7244         * libio/fileops.c: Use new macros from shlib-compat.h to define
7245         versions.
7246         * libio/iofclose.c: Likewise.
7247         * libio/oldiofclose.c: Likewise.
7248         Patch by Roland McGrath <roland@frob.com>.
7250 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
7252         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
7253         Lay out struct sigcontext according to what really gets passed on
7254         the stack.
7255         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
7256         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
7257         (prgregset_t, prfpregset_t): Define to elf_* types.
7258         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
7259         Define to correct value.
7260         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
7261         sigcontext.
7262         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
7264 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
7266         * scripts/firstversions.awk: Allow multiple version sets in the
7267         "earliest version" specification, meaning that version sets in the
7268         gaps between listed versions should be folded into the earliest later
7269         version that is explicitly listed.
7270         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
7271         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
7273 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
7275         * iconv/gconv_builtin.c: Include <endian.h>.
7276         * iconv/gconv_builtin.h: Add UCS-BE aliases.
7277         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
7278         according to current platform.
7279         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
7280         __gconv_transform_internal_ucs2reverse, and
7281         __gconv_transform_internal_ucs4le.
7282         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
7283         __gconv_transform_ucs2reverse_internal and
7284         __gconv_transform_internal_ucs2reverse.
7285         * iconvdata/Makefile (modules): Add UNICODE.
7286         (distribute): Add unicode.c.
7287         * iconvdata/gconv-modules: Add definitions for UNICODE module.
7288         * iconvdata/unicode.c: New file.
7290         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
7291         determine byte order of input and convert accordingly.
7293         * iconvdata/utf-16.c (gconv_init): Fix typo.
7295 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
7297         * iconvdata/gconv-modules: Fix typo.
7299         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
7300         more messages.
7302         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
7304 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
7306         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
7308 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
7310         * misc/Makefile (routines): Add mincore.
7312 2000-03-20  Andreas Jaeger  <aj@suse.de>
7314         * sysdeps/generic/mincore.c: New stub file.
7316         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
7317         from latest Linux kernel.
7319 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
7321         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
7322         _SC_GETPW_R_SIZE_MAX.
7324 2000-03-20  Richard Henderson  <rth@cygnus.com>
7326         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
7327         in GLIBC_2.1.4.
7329 2000-03-20  Richard Henderson  <rth@cygnus.com>
7331         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
7332         of arithmetic instructions.
7334         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
7335         with the fpcr.  Protect from INV exception.
7336         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7337         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
7338         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7340         * sysdeps/alpha/fpu/s_copysign.c: New.
7341         * sysdeps/alpha/fpu/s_copysignf.c: New.
7342         * sysdeps/alpha/fpu/s_fabs.c: New.
7343         * sysdeps/alpha/fpu/s_fabsf.c: New.
7344         * sysdeps/alpha/fpu/s_rint.c: New.
7345         * sysdeps/alpha/fpu/s_rintf.c: New.
7347         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
7349         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
7350         Kill sethae.
7351         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
7352         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
7353         Use physical addresses not KSEG addresses.
7354         (io_system): Add PYXIS.
7355         (io): Remove hae.reg, sys, hae_shift.
7356         (stb_mb, stw_mb, stl_mb, __sethae): New.
7357         (inline_outb, inline_outw, inline_outl): Don't set hae.
7358         (inline_inb, inline_inw, inline_inl): Likewise.
7359         (dense_sethae): New null function.
7360         (struct cpuinfo_data): New.
7361         (process_cpuinfo): Use local and stack variables, not static.
7362         Move readlink check here from init_iosys.
7363         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
7364         (_iopl): Simplify.
7365         (_hae_shift): Calculate it here.
7366         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
7367         add pciconfig_iobase.
7369 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
7371         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
7372         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
7374         * scripts/versions.awk: Fixed version renaming code to distinguish
7375         libraries properly.
7377 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
7379         * include/stdlib.h: Add prototype for __cxa_atexit.
7381         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
7382         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
7384 2000-03-17  Cristian Gafton  <gafton@redhat.com>
7386         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
7387         existing rtld-installed-name.
7388         ($(rtld-installed-name)): Request libc-$(version) be installed too.
7389         replace existing rtld-installed-name using $(symbolic-link-prog).
7391 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
7393         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
7394         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
7395         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
7396         but not the former.
7398 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
7400         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
7401         glob64.  Since there is no glob64 in the LFS proposal applications
7402         can assume that glob handles LFS situations.  glob64 is only needed
7403         if alternative filesystem functions are used.
7405 2000-03-19  Geoff Clare  <gwc@unisoft.com>
7407         * sysdeps/generic/glob.c: Correct gl_pathc value returned
7408         when GLOB_DOOFFS is set; correct handling of patterns
7409         containing escaped wildcards (and no unescaped ones);
7410         GLOB_ERR flag was being ignored in some situations.
7412         * posix/globtest.c, posix/globtest.sh: Updated to include
7413         tests for the problems fixed by the above changes to glob.c.
7415         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
7417 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
7419         * Makeconfig (soversion.i): Use only first match for each lib.
7421         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
7423         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
7424         rather than $(sysd-dirs-done) to protect these rules.
7426         * Makerules (version-renames.def): Target removed.
7427         (Versions.all): Depend on soversions.i directly and parse it.
7429         * Makeconfig (soversions.i): New target, input-reading parts of
7430         soversions.mk generation moved here; result is a canonicalized
7431         list "LIB VERSION [SET]" for this configuration.
7432         (soversions.mk): Use that as input.  Don't emit map-firstversions.
7433         * Makerules (version-renames.def): New target, generated from
7434         soversions.i with contents that was in $(map-firstversions).
7435         (Versions.all): Don't depend on soversions.mk, depend on
7436         version-renames.def instead; just cat it into the input.
7438         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
7439         for $(map-firstversions), which better handles it being empty.
7441         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
7442         supported version for libc 0.2.90.libio to GLIBC_2.2.
7444         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
7445         and use it to emit new variable `map-firstversions'.
7446         * scripts/firstversions.awk: New file.
7447         * Makerules (Versions.all): Use scripts/firstversions.awk and
7448         the $(map-firstversions) value to generate a modified versions list
7449         that includes renames in "A = B" syntax for each version set earlier
7450         than the "earliest symbol version" named in shlib-versions.
7451         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
7452         rename version set A to B in the output to the intermediate file.
7453         * scripts/abi-versions.awk: New file.
7454         * Makerules (abi-versions.h): New target, generated by that script.
7455         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
7456         * include/shlib-compat.h: New file, uses that generated header.
7458 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
7460         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
7461         after stripping # comments, and then run it through cpp.
7462         This allows things like "%ifdef FOO" based on config.h settings.
7463         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
7465         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
7466         and other errors that indicate a pseudo-receive happened, grok through
7467         the message buffer for port rights that need references fixed up.
7469 2000-03-16  Andreas Jaeger  <aj@suse.de>
7471         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
7473         * sysdeps/unix/sysv/linux/madvise.c: Remove.
7475         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
7476         from latest Linux kernel.
7477         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
7479         * misc/sys/mman.h: Add prototype for mincore.
7481 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
7483         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
7484         entry for GLIBC_2.0 version of setrlimit.
7485         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
7487 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
7489         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
7490         * nis/nss_compat/compat-initgroups.c: Likewise.
7491         * nis/nss_nis/nis-initgroups.c: Likewise.
7492         * nis/nss_nis/nis-netgrp.c: Likewise.
7493         * nis/nss_nis/nis-proto.c: Likewise.
7494         * nis/nss_nis/nis-rpc.c: Likewise.
7495         * nis/nss_nis/nis-service.c: Likewise.
7496         * nis/ypclnt.c: Likewise.
7498 2000-03-16  Andreas Jaeger  <aj@suse.de>
7500         * manual/Makefile: MAKEINFO is set to `:' from configure if it
7501         doesn't exist, correct checks.  Fixes PR libc/1649.
7503 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
7505         * nscd/hstcache.c: Restore correct UID.
7506         * nscd/pwdcache.c: Likewise.
7507         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
7509 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
7511         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
7512         macros for register names, in line with 2000-03-14 linux change.
7514         * sysdeps/mach/sched_yield.c: New file.
7516 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
7518         * sysdeps/generic/lockfile.c: Include <stdio.h>
7519         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
7520         case <libio.h> defined them.
7521         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
7522         from __internal_*.
7523         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
7524         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
7526         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
7527         for more pleasing parse error.
7529 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
7531         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
7532         memory for eras.
7533         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
7535         * elf/Makefile: Add rules to compile and run constload1 test.
7536         * elf/constload1.c: New file.
7537         * elf/constload2.c: New file.
7538         * elf/constload3.c: New file.
7540 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
7542         * sysdeps/posix/open64.c: Make __open64 weak alias.
7543         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
7544         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
7545         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
7546         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7547         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7548         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
7549         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7550         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7551         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7552         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7554 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
7556         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
7557         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
7559 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
7561         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
7562         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
7564 2000-03-08  Andreas Jaeger  <aj@suse.de>
7566         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
7568 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
7570         * timezone/africa: Update from tzdata2000d.
7571         * timezone/asia: Likewise.
7572         * timezone/australasia: Likewise.
7573         * timezone/europe: Likewise.
7574         * timezone/northamerica: Likewise.
7575         * timezone/southamerica: Likewise.
7577         * po/fr.po: Update from translation team.
7578         * po/de.po: Likewise.
7580         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
7581         last parameter.  Move code to add map to global scope from here...
7582         * elf/dl-open.c (dl_open_worker): ...here.
7583         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
7584         * elf/rtld.c: Adjust call to _dl_map_object_deps.
7586         * locale/programs/ld-collate.c (collate_read): Fix warning.
7588         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
7589         values and macros for register names.
7591         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
7592         returned by seek cookie function is -1.
7594 2000-03-14  Andreas Jaeger  <aj@suse.de>
7596         * locale/localeconv.c (localeconv): Fix typo.
7597         Reported by Andre Charbonneau <andrec@corel.com>.
7599 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
7601         * iconv/skeleton.c: Increment __invocation_counter in inner loop
7602         since modules depend on it counting the number of times the conversion
7603         function got called.
7605         * iconv/gconv_open.c: Optimize loop to setup step data structure.
7607         * iconv/gconv.h: Pretty print.
7609 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
7611         * posix/wordexp-test.c: Correct one of the tests added in the last
7612         change.  Really get the root passwd entry to check again ~root.
7614 2000-03-10  Andreas Jaeger  <aj@suse.de>
7616         * manual/filesys.texi (Working Directory): Fix last patch.
7617         Patch by Martin Buchholz  <martin@xemacs.org>.
7619 2000-03-10  Andreas Jaeger  <aj@suse.de>
7621         * manual/creature.texi (Feature Test Macros): Fix language.
7623 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
7625         * mach/devstream.c (devstream_write, devstream_read): New functions.
7626         (input, output): Functions removed.
7627         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
7628         using only the vanilla fopencookie interface.
7630         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
7631         as macro for __io_functions.
7632         (funcsio): Use cookie_io_functions_t type name.
7633         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
7635         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
7636         fopencookie.
7637         (fopencookie): Use it.
7638         * libio/libio.h: Declare _IO_cookie_init.
7639         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
7640         _IO_cookie_init.
7642         * libio/libio.h (__io_seek_fn): Fix second argument type
7643         to be a pointer, in line with the manual and the old stdio.
7644         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
7646         * sysdeps/generic/bits/stdio-lock.h: New file.
7647         This is a stub with #error, but that's better than no file at all.
7649 2000-03-09  Martin Buchholz  <martin@xemacs.org>
7651         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
7652         * manual/message.texi (Using gettextized software): Doc Fixes.
7653         * manual/message.texi (Message Translation): Doc Fixes.
7654         * manual/filesys.texi (File Size): Doc Fixes.
7655         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
7656         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
7657         * iconv/gconv_db.c (find_derivation): Doc Fixes.
7658         * manual/install.texi: Doc Fixes.
7659         * manual/search.texi (Hash Search Function): Doc Fixes.
7660         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
7661         * FAQ.in: Doc Fixes.
7662         * config.h.in: Doc Fixes.
7663         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
7664         Doc Fixes.  `allows to' is not correct English.
7666         * elf/rtld.c: Doc fixes.
7667         * manual/creature.texi (Feature Test Macros): Doc fixes.
7668         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
7670         * manual/filesys.texi (Working Directory): Check for ERANGE to
7671         avoid infloop.
7673 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
7675         * string/argz-stringify.c (__argz_stringify): Fix loop termination
7676         conditions so as not to clobber the final '\0' when there is only one
7677         element in the vector.
7679 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
7681         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
7682         broken by 2000-02-27 change.
7684         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
7686 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
7688         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
7689         argument type, for 2000-02-22 change in signal/signal.h declaration.
7691 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
7693         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
7694         to getdirentries64 (no __), since the Linux implementation
7695         has no __ name, and there is no declaration for the __ name.
7697         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
7699         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
7700         sed regexp so as not to break directory names including /../ within.
7702         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
7703         The sysdeps/generic file is right for BSD.  This file was in fact the
7704         Hurd file, but the only difference was the WNOREAP flag that was never
7705         actually implemented or used anywhere.
7707         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
7708         since AC_PATH_PROG already does it for us.
7709         (PERL): Rewrite check added in 2000-02-29 change for syntactic
7710         correctness and sh portability.  I replaced the broken check
7711         with a more sensible implementation of the apparently intended
7712         semantics, which might still be questionable.  Using expr causes
7713         a non-numeric value for `perl -V:apiversion` to be accepted,
7714         refusing to use only a perl that reports a number less than 5;
7715         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
7716         * configure: Regenerated.
7718 2000-03-08  Andreas Jaeger  <aj@suse.de>
7720         * manual/crypt.texi: Fix paths.
7722 2000-03-07  Andreas Jaeger  <aj@suse.de>
7724         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
7725         were swapped.
7726         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
7727         libc/1636.
7729 2000-03-06  Andreas Jaeger  <aj@suse.de>
7731         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
7732         in __sgn1l, otherwise g++ fails to parse this.
7733         Reported by Sean Chen <sean.chen@turbolinux.com>.
7735 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
7737         * configure.in: Compute sizeof-long-double.
7738         * configure: Regenerated.
7739         * config.make.in: Make sizeof-long-double available to sub-makes.
7741 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
7743         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
7744         call.
7746 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
7748         * Makeconfig (rpath-dirs): Add crypt.
7749         (all-subdirs): Remove md5crypt.
7750         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
7751         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
7752         * sysdeps/generic/crypt-entry.c: Delete.
7753         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
7754         * sysdeps/generic/crypt.h: Delete.
7755         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
7756         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
7757         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
7758         * sysdeps/generic/des_impl.c: Delete.
7759         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
7760         * crypt/sysdeps: Delete.
7761         * crypt/crypt_util.c: Don't use `patchlevel.h'.
7762         * md5-crypt/Versions: Move to crypt/.
7763         * md5-crypt/md5-crypt.c: Move to crypt/.
7764         * md5-crypt/md5.c: Move to crypt/.
7765         * md5-crypt/md5c-test.c: Move to crypt/.
7766         * md5-crypt/md5test.c: Move to crypt/.
7767         * md5-crypt: Delete.
7768         * crypt/Makefile: Adjust for new structure.
7770 2000-03-03  Paul Eggert  <eggert@twinsun.com>
7772         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
7773         define to 1 if not defined.
7775 2000-03-03  Andreas Jaeger  <aj@suse.de>
7777         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
7779 2000-03-03  Andreas Jaeger  <aj@suse.de>
7781         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
7782         cases.
7783         (xdr_int64_t): Correctly handle lower half.
7784         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
7786 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
7788         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
7789         call.
7791 2000-03-02  Andreas Jaeger  <aj@suse.de>
7793         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
7794         2.3.43.
7796 2000-03-02  Andreas Jaeger  <aj@suse.de>
7798         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
7800 2000-03-01  Andreas Jaeger  <aj@suse.de>
7802         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
7803         (tests): Added tst-getdate.
7805         * time/tst-getdate.c: New file.
7807         * time/datemsk: New file, needed for tst-getdate.
7809 2000-02-29  Cristian Gafton  <gafton@redhat.com>
7811         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
7813 2000-02-17  H.J. Lu  <hjl@gnu.org>
7815         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
7817         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
7818         available.
7819         (svcudp_recv): Set up message with the new "xp_pad" field for
7820         IP_PKTINFO.
7821         (svcudp_reply): Support IP_PKTINFO if available.
7823 2000-03-01  Andreas Jaeger  <aj@suse.de>
7825         * time/getdate.c (check_mday): Fix check for february.
7826         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
7827         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
7829 2000-03-02  Andreas Jaeger  <aj@suse.de>
7831         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
7832         g++ fails to parse this.
7833         Reported by Sean Chen <sean.chen@turbolinux.com>.
7835 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
7837         * io/creat.c: Moved to...
7838         * sysdeps/generic/creat.c: ...here.
7839         * io/creat64.c: Moved to...
7840         * sysdeps/generic/creat64.c: ...here.
7841         * io/lockf.c: Moved to...
7842         * sysdeps/generic/lockf.c: ...here.
7844         * crypt/crypt.texi: Moved to...
7845         * manual/crypt.texi: ...here.
7846         * crypt/examples/genpass.c: Moved to...
7847         * manual/examples/genpass.c: ...here.
7848         * crypt/examples/mygenpass.c: Moved to...
7849         * manual/examples/mygenpass.c: ...here.
7850         * crypt/examples/testpass.c: Moved to...
7851         * manual/examples/testpass.c: ...here.
7853         * manual/Makefile (chapters): Add crypt.
7854         * manual/conf.texi: Add usual header for not-last chapter.
7855         * manual/crypt.texi: Add special header for last chapter.
7857 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
7859         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
7860         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
7861         complain if there is no crypt add-on.
7862         * crypt/configure: Removed.
7864         * crypt/crypt.texi: Update documentation of US export restrictions
7865         to match the 14 Jan 2000 regulations.
7867 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
7869         * crypt: New subdirectory, merged in from the crypt add-on.
7871 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
7873         * include/unistd.h: Add __rmdir and __mkdir prototypes.
7876 See ChangeLog.10 for earlier changes.