Update.
[glibc.git] / ChangeLog
bloba4f0acd60233dee6d198aa1ec8bec6d44f30be4a
1 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
3         * rt/Makefile (librt-routines): Add clock_nanosleep.
4         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5         * sysdeps/generic/clock_nanosleep.c: New file.
6         * sysdeps/unix/clock_nanosleep.c: New file.
7         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
8         * time/time.h: Declare clock_nanosleep.
10 2000-06-26  Greg McGary  <greg@mcgary.org>
12         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
13         INSN1, INSN2, TEXT, GLOBL): Remove macros.
14         (ALIGN): Cleanup surrounding conditionals.
16         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
17         Call ENTER/LEAVE macros.
18         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
19         * sysdeps/i386/submul_1.S: Likewise.
21         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
22         syntax.  Define & use symbolic argument stack offsets.  Call
23         ENTER/LEAVE macros.
24         * sysdeps/i386/i586/mul_1.S: Likewise.
25         * sysdeps/i386/i586/submul_1.S: Likewise.
27 2000-06-25  Greg McGary  <greg@mcgary.org>
29         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
30         not as bcopy.
32 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
34         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
35         * iconvdata/gen-8bit-gap.sh: Likewise.
36         * iconvdata/gen-8bit.sh: Likewise.
38         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
40         * locale/programs/ld-collate.c (collate_read): Don't actually read
41         the copy locale if we are ignoring the content.
43         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
44         unknown character.
46         * locale/programs/ld-collate.c: Correct handling of different
47         collation sections.
48         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
49         as extra parameter from which to copy category information.
50         Change all callers.
51         (load_locale): Likewise.
52         * locale/programs/localedef.h: Update prototypes of add_to_readlist
53         and load_locale.
54         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
55         * locale/programs/locfile.h: Likewise.
56         * locale/programs/locfile-kw.gperf: Add entry for script.
57         * locale/programs/locfile-token.h: Add tok_script.
59         * locale/programs/locale.c: Update copyright year.
60         * locale/programs/localedef.c: Likewise.
62 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
64         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
65         Jens Moeller <jens.moeller@waii.com>.
67 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
69         * locale/programs/ld-name.c (name_finish): Add missing format
70         specifier to test for name_fmt.
72         * locale/programs/ld-address.c (iso639): Correct length of string
73         elements.
74         (iso3166): Likewise.
76         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
78         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
79         Define.
81         * elf/elf.h (NT_PRFPXREG): Define.
83 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
85         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
86         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
88 2000-06-23  Andreas Schwab  <schwab@suse.de>
90         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
91         with signatures.
93 2000-06-23  Andreas Jaeger  <aj@suse.de>
95         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
97         * io/test-stat.c: Add copyright header, mention Maciej.
99         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
100         SYS_mincore, SYS_madvise): Added.
102         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
103         execve.
105 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
107         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
108         (CFLAGS-tst_putwc.c): New definition.
109         * libio/tst_getwc.c: New file.
110         * libio/tst_getwc.input: New file.
111         * libio/tst_putwc.c: New file.
113         * include/string.h: Add prototype for __strdup.
115 2000-06-22  Greg McGary  <greg@mcgary.org>
117         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
118         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
119         Fix signatures.
121 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
123         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
125 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
127         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
129 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
131         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
132         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
134 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
136         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
137         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
138         and __S_TYPEISSHM.
139         * sysdeps/mach/hurd/bits/stat.h: Likewise.
140         * sysdeps/unix/bsd/bits/stat.h: Likewise.
141         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
142         * sysdeps/unix/sysv/bits/stat.h: Likewise.
143         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
144         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
145         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
146         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
147         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
148         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
149         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
150         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
151         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
152         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
153         S_TYPEISSHM.
155 2000-06-22  Andreas Jaeger  <aj@suse.de>
157         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
158         with signatures.
160         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
162         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
164 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
166         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
167         ahead.
169 2000-06-21  Greg McGary  <greg@mcgary.org>
171         * Makerules (elide-routines.*, elide-bp-thunks):
172         Define unconditionally.
174 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
176         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
178 2000-06-21  Andreas Jaeger  <aj@suse.de>
180         * io/Makefile (tests): Add test-stat.
181         (CFLAGS-test-stat.c): New.
183         * io/test-stat.c: New file from Maciej W. Rozycki
184         <macro@ds2.pg.gda.pl>.
186 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
188         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
189         in __rlimit_resource to make them match the kernel order.
190         rlim_t is always 64 bit, use __rlim64_t to declare it
191         unconditionally.
193 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
195         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
196         RLIM_INFINITY before defining it to avoid clash with kernel header
198 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
200         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
202 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
204         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
206 2000-06-21  Andreas Jaeger  <aj@suse.de>
208         * stdio-common/temptest.c: Include <stdlib.h>.
209         * stdio-common/tst-fileno.c: Likewise.
210         * stdio-common/scanf4.c: Likewise.
211         * stdio-common/scanf5.c: Likewise.
212         * time/clocktest.c: Likewise.
213         * posix/test-vfork.c: Likewise.
214         * posix/globtest.c: Likewise.
215         * io/test-utime.c: Likewise.
216         * wctype/test_wcfuncs.c: Likewise.
217         * crypt/cert.c: Likewise.
219         * stdio-common/tst-printfsz.c: Include <string.h>.
220         * libio/tst_swscanf.c: Likewise.
221         * libio/tst_wscanf.c: Likewise.
222         * posix/runtests.c: Likewise.
223         * posix/tst-getaddrinfo.c: Likewise.
224         * posix/wordexp-test.c: Likewise.
225         * misc/tst-efgcvt.c: Likewise.
227         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
228         * nss/test-netdb.c: Likewise.
230         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
231         supported kernel for MIPS.
233         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
234         * rt/aio_suspend.c: Likewise.
236 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
238         * math/libm-test.inc: Include <string.h>.
240 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
242         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
244 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
246         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
247         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
249 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
251         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
253 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
255         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
257 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
259         * locale/programs/ld-collate.c (insert_value): Now take string and
260         length instead of struct token* parameter.  Adjust use of token.
261         (handle_ellipsis): Likewise.
262         (collate_read): Allow <Uxxxx> names and transform them into names
263         to be passed to insert_value and handle_ellipsis.
265         * locale/programs/ld-ctype.c (uninames): New array with names of
266         digits in <Uxxxxxxxx> format.
267         (ctype_finish): Correct search for space character value.  Likewise
268         for default outdigits values.
270 2000-06-20  Greg McGary  <greg@mcgary.org>
272         * Makerules (objects): Add BP thunks.
274 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
276         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
277         in width definitions.
279 2000-06-20  Andreas Jaeger  <aj@suse.de>
281         * sysdeps/mips/fpu/libm-test-ulps: New file.
283         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
284         first.
286         * sysdeps/mips/fpu/feholdexcpt.c: New file.
288         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
290 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
292         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
293         change in gconv_builtin.h.
295         * malloc/Makefile: Change all references to memprof into memusage.
296         * malloc/memprof.c: Rename to...
297         * malloc/memusage.c: ...this.  New file.
298         * malloc/memprof.sh: Rename to...
299         * malloc/memusage.sh: ...this.  New file.
300         * malloc/memprofstat.c: Rename to...
301         * malloc/memusagestat.c: ...this.  New file.
302         * sysdeps/alpha/memprof.h: Rename to..
303         * sysdeps/alpha/memusage.h: ...this.  New file.
304         * sysdeps/arm/memprof.h: Rename to..
305         * sysdeps/arm/memusage.h: ...this.  New file.
306         * sysdeps/generic/memprof.h: Rename to..
307         * sysdeps/generic/memusage.h: ...this.  New file.
308         * sysdeps/i386/memprof.h: Rename to..
309         * sysdeps/i386/memusage.h: ...this.  New file.
310         * sysdeps/ia64/memprof.h: Rename to..
311         * sysdeps/ia64/memusage.h: ...this.  New file.
312         * sysdeps/m68k/memprof.h: Rename to..
313         * sysdeps/m68k/memusage.h: ...this.  New file.
314         * sysdeps/mips/memprof.h: Rename to..
315         * sysdeps/mips/memusage.h: ...this.  New file.
316         * sysdeps/powerpc/memprof.h: Rename to..
317         * sysdeps/powerpc/memusage.h: ...this.  New file.
318         * sysdeps/sparc/memprof.h: Rename to..
319         * sysdeps/sparc/memusage.h: ...this.  New file.
320         * sysdeps/sh/memprof.h: Rename to..
321         * sysdeps/sh/memusage.h: ...this.  New file.
323         * elf/sprof.c (print_version): Update year.
325         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
326         table entry values.  Use D_PTR.
327         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
328         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
330 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
332         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
333         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
334         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
335         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
337 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
339         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
341 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
343         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
344         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
345         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
347         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
349         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
350         kernel change.
352         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
353         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
354         structure.
355         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
356         implementation.
358 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
360         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
362 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
364         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
366 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
368         * iconv/gconv_int.h (strict gconv_module): Remove all members
369         associated with regular expressions.  Use a simple string as the
370         from name.
371         * iconv/gconv_db.c: Remove code handling regular expressions.
372         * iconv/gconv_conf.c: Likewise.
373         * iconv/iconv_prog.c: Likewise.
374         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
376         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
377         General namespace cleanup.
378         (struct __gconv_trans_data): Add next field.
379         (struct __gconv_step_data): Make __trans a pointer.
380         * iconv/gconv_conf.c: Split out code to find gconv directories from
381         __gconv_read_conf in new functions.
382         * iconv/gconv_int.h: Define new data structure and declare new
383         functions for handling of gconv directory list.
384         * iconv/gconv_open.c: Allow more than one error handling step being
385         used.  Call function to load error handling module if it is none
386         of the builtin transformations.
387         * iconv/gconv_close.c: Add code to free transliteration data.
388         * iconv/gconv_trans.c: Add functions to load and unload modules
389         implementing transliteration etc.
390         * iconv/skeleton.c: Call all context functions now that more than
391         one module is allowed.
392         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
393         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
394         where the full error handling using transliteration is needed.
395         * iconvdata/8bit-gap.c: Likewise.
396         * iconvdata/8bit-generic.c: Likewise.
397         * iconvdata/ansi_x3.110.c: Likewise.
398         * iconvdata/big5.c: Likewise.
399         * iconvdata/big5hkscs.c: Likewise.
400         * iconvdata/euc-cn.c: Likewise.
401         * iconvdata/euc-jp.c: Likewise.
402         * iconvdata/euc-kr.c: Likewise.
403         * iconvdata/euc-tw.c: Likewise.
404         * iconvdata/gbgbk.c: Likewise.
405         * iconvdata/gbk.c: Likewise.
406         * iconvdata/iso-2022-cn.c: Likewise.
407         * iconvdata/iso-2022-jp.c: Likewise.
408         * iconvdata/iso-2022-kr.c: Likewise.
409         * iconvdata/iso646.c: Likewise.
410         * iconvdata/iso8859-1.c: Likewise.
411         * iconvdata/iso_6937-2.c: Likewise.
412         * iconvdata/iso_6937.c: Likewise.
413         * iconvdata/johab.c: Likewise.
414         * iconvdata/sjis.c: Likewise.
415         * iconvdata/t.61.c: Likewise.
416         * iconvdata/uhc.c: Likewise.
417         * iconvdata/unicode.c: Likewise.
418         * iconvdata/utf-16.c: Likewise.
419         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
420         structure correctly after last change.
421         * wcsmbs/btowc.c: Likewise.
422         * wcsmbs/mbrtowc.c: Likewise.
423         * wcsmbs/mbsnrtowcs.c: Likewise.
424         * wcsmbs/mbsrtowcs.c: Likewise.
425         * wcsmbs/wcrtomb.c: Likewise.
426         * wcsmbs/wcsnrtombs.c: Likewise.
427         * wcsmbs/wcsrtombs.c: Likewise.
428         * wcsmbs/wctob.c: Likewise.
430         * localedata/Makefile: Set -Wno-format for some files since gcc does
431         not know all the format specifiers.
433 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
435         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
436         unneeded code.
437         * locale/lc-time.c (_nl_init_era_entries): Likewise.
439 2000-06-18  Andreas Jaeger  <aj@suse.de>
441         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
442         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
444 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
446         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
447         LINUX_LINK_MAX.
448         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
450         * locale/programs/ld-ctype.c (ctype_output): Really write out
451         mboutdigits information.
452         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
453         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
454         * localedata/tests/trans.def: Add outdigit information.
456         * localedata/tst-mbswcs3.c: Remove comment.
458         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
459         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
460         * libio/tst_wprintf.c (main): Add test for I flag.
462         * iconv/gconv_trans.c: Implement handling if translit_ignore.
463         * locale/langinfo.h: Add entries for translit_ignore information.
464         * locale/categories.def: Add entries for new LC_CTYPE elements.
465         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
466         pointer instead of "" where possible.
467         * locale/programs/ld-ctype.c: Write out translit_ignore information.
468         * intl/Depend: Add localedata.
469         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
470         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
472 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
474         * locale/langinfo.h: Add entries for default_missing information.
475         * locale/C-ctype.c: Add initializers for new fields.
476         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
477         information.
478         * locale/categories.h: Add entries for all LC_CTYPE values.
479         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
480         information.
482         * localedata/tst-trans.c: Write out an error message if class is
483         not found.
485         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
486         * iconv/gconv_open.c: Remove error handling specification from `from'
487         character set name.
488         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
489         new parameter to always enable transliteration.
490         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
491         change.
492         (struct locale_data): Add new members use_translit and options.
493         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
494         character set name contained modifier TRANSLIT.
495         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
496         and options fields.
497         (_nl_unload_locale): Free options string if necessary.
498         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
499         the locale names suggested this.
500         * locale/C-address.c: Add two new initialilzers to adjust data
501         structure for new format.
502         * locale/C-collate.c: Likewise.
503         * locale/C-ctype.c: Likewise.
504         * locale/C-identification.c: Likewise.
505         * locale/C-measurement.c: Likewise.
506         * locale/C-messages.c: Likewise.
507         * locale/C-monetary.c: Likewise.
508         * locale/C-name.c: Likewise.
509         * locale/C-numeric.c: Likewise.
510         * locale/C-paper.c: Likewise.
511         * locale/C-telephone.c: Likewise.
512         * locale/C-time.c: Likewise.
514         * locale/setlocale.c: Add some more __builtin_expect.
516 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
518         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
519         unsigned char **.
520         (__gconv_init_fct): Remove two parameters.
521         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
522         gconv_transliterate.  Remove two parameters.
523         Change prototypes of builtin functions according to __gconv_fct change.
524         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
525         != NULL only during error handling.  Stop in this case after the
526         conversion.
527         * iconv/gconv_trans.c: Replace with real implementation for
528         __gconv_transliterate.
529         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
530         * iconv/gconv.c: Change calls to downstream functions once again.
531         Use NULL for the fifth parameter instead of pointer to output buffer.
532         * libio/iofwide.c: Likewise.
533         * wcsmbs/btowc.c: Likewise.
534         * wcsmbs/mbrtowc.c: Likewise.
535         * wcsmbs/mbsnrtowcs.c: Likewise.
536         * wcsmbs/mbsrtowcs.c: Likewise.
537         * wcsmbs/wcrtomb.c: Likewise.
538         * wcsmbs/wcsnrtombs.c: Likewise.
539         * wcsmbs/wcsrtombs.c: Likewise.
540         * wcsmbs/wctob.c: Likewise.
541         * iconv/gconv_simple.c: Remove two parameters from error handling
542         function call.
543         * iconvdata/8bit-gap.c: Likewise.
544         * iconvdata/8bit-generic.c: Likewise.
545         * iconvdata/ansi_x3.110.c: Likewise.
546         * iconvdata/big5.c: Likewise.
547         * iconvdata/big5hkscs.c: Likewise.
548         * iconvdata/euc-cn.c: Likewise.
549         * iconvdata/euc-jp.c: Likewise.
550         * iconvdata/euc-kr.c: Likewise.
551         * iconvdata/euc-tw.c: Likewise.
552         * iconvdata/gbgbk.c: Likewise.
553         * iconvdata/gbk.c: Likewise.
554         * iconvdata/iso-2022-cn.c: Likewise.
555         * iconvdata/iso-2022-jp.c: Likewise.
556         * iconvdata/iso-2022-kr.c: Likewise.
557         * iconvdata/iso646.c: Likewise.
558         * iconvdata/iso8859-1.c: Likewise.
559         * iconvdata/iso_6937-2.c: Likewise.
560         * iconvdata/iso_6937.c: Likewise.
561         * iconvdata/johab.c: Likewise.
562         * iconvdata/sjis.c: Likewise.
563         * iconvdata/t.61.c: Likewise.
564         * iconvdata/uhc.c: Likewise.
565         * iconvdata/unicode.c: Likewise.
566         * iconvdata/utf-16.c: Likewise.
568 2000-06-15  Greg McGary  <greg@mcgary.org>
570         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
571         of callnum assignment.  Tolerate callnum expressions containing
572         parens.
574 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
576         * login/Makefile (utmpd): Remove rule to build utmpd.
578         * csu/Versions: Move libgcc frame handling functions from here...
579         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
580         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
581         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
582         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
583         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
584         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
585         New file.
586         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
588         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
590         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
592 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
594         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
595         compatibility.
596         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
597         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
598         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
599         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
601 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
603         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
604         defined, terminate quotes and read them after the comment char.
605         * configure.in (HAVE_SECTION_QUOTES): Test whether
606         __attribute__((section ("x"))) puts quotes around x or not.
607         * config.h.in (HAVE_SECTION_QUOTES): Add.
608         * configure: Rebuilt.
610 2000-06-14  Andreas Jaeger  <aj@suse.de>
612         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
613         depending on the configure option --sysconfdir.
614         Closes PR libc/1762.
615         Patch by Andreas Schwab <schwab@suse.de>.
617         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
618         entry point.
619         Reported by Jim Pick <jim@jimpick.com>.
621 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
623         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
624         crashing the application.  Emit some simple error message.
625         Reported by mju@panasas.com [PR libc/1769].
627 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
629         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
631         * crypt/Makefile (distribute): Add md5.h.
633         * Makefile (distribute): Add include/shlib-compat.h.
635         * Make-dist: Search for tests also in sysdeps hierachy.
637         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
638         ufc.c, speeds.c, README.ufc-crypt, and Banner.
640         * sysdeps/sparc/Subdirs: New file.
642         * locale/Makefile (distribute): Add weightwc.h and
643         programs/localedef.h.
645         * time/Makefile (distribute): Add datemsk.
647         * sysdeps/ia64/Dist: Add softpipe.h.
649         * sysdeps/unix/sysv/aix/Dist: New file.
651         * posix/setpgrp.c: Moved to...
652         * sysdeps/generic/setpgrp.c: ...here.  New file.
653         * io/mknod.c: Moved to...
654         * sysdeps/generic/mknod.c: ...here.  New file.
656         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
658         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
660         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
662         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
663         gprsave0.S, gprrest1.S, and gprrest0.S.
665         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
667         * posix/Makefile (routines): Add spawnattr_getsigmask,
668         spawnattr_getschedpolicy, spawnattr_getschedparam,
669         spawnattr_setsigmask, spawnattr_setschedpolicy, and
670         spawnattr_setschedparam.
671         * posix/Versions: Add posix_spawnattr_getschedpolicy,
672         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
673         posix_spawnattr_setschedparam.
675         * posix/spawnattr_setschedparam.c: Fix typo.
677         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
678         Correct typo.
680         * login/programs/utmpd.c: Removed.
681         * login/programs/utmpd.h: Removed.
682         * login/programs/utmpd-private.h: Removed.
684         * Makefile (distribute): Add include/db_185.h and include/db.h.
686         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
687         iso-ir-165.h.
689         * elf/Makefile (distribute): Add missing files.
691         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
692         * elf/eval.c: Moved to...
693         * dlfcn/eval.c: ...here.  New file.
695         * Makefile (distribute): Also distribute ChangeLog.1?.
697         * Make-dist (+tsrcs): Remove .args handling here as well.
699         * rt/Makefile (tests): Add tst-timer.
700         * sysdeps/generic/tst-timer.c: New file.
702         * Makerules (sources): Don't add BP sources here.
704         * login/Makefile (distribute): Remove xtmp.h.
706         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
707         is true.  Reported by Bruno Haible <haible@ilog.fr>.
709 2000-06-13  Andreas Jaeger  <aj@suse.de>
711         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
712         Patch by Ralf Baechle <ralf@gnu.org>.
714 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
716         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
717         for mincore syscall.
719         * misc/sys/cdefs.h: Define __bounded and __unbounded if
720         __BOUNDED_POINTERS__ is not defined.
722 2000-06-07  Greg McGary  <greg@mcgary.org>
724         * sysdeps/generic/bp-sym.h: New file.
725         * sysdeps/generic/bp-start.h: New file.
726         * sysdeps/i386/elf/start.S: Designate BP symbols.
727         * sysdeps/generic/libc-start.c: Wrap bounds around
728         argv & envp and each of their string members.
730 2000-06-07  Greg McGary  <greg@mcgary.org>
732         * sysdeps/unix/make-syscalls.sh: Add comments to
733         output that aid debugging & comprehension.
734         Map simple syscall signatures to number of args.
735         Generate BP syscall thunk definitions.
736         * sysdeps/generic/bp-thunks.h: New file.
737         * sysdeps/unix/syscalls.list: Replace arg-count with
738         simple return+arg signature.
739         * sysdeps/unix/common/syscalls.list: Likewise.
740         * sysdeps/unix/inet/syscalls.list: Likewise.
741         * sysdeps/unix/mman/syscalls.list: Likewise.
742         * sysdeps/unix/sysv/syscalls.list: Likewise.
743         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
744         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
746 2000-06-07  Greg McGary  <greg@mcgary.org>
748         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers for all files
749         *.[cS].
750         (CFLAGS-.ob): Don't optimize sibling calls.
751         (bppfx): New variable.
752         * Makerules (elide-bp-thunks): New variable.
753         (elide-routines.*): Elide BP-* files for all but *.ob.
754         (sources): Include bp-thunks.
756 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
758         * iconv/gconv_simple.c: Remove unnecessary prototype.
760         * iconv/gconv_trans.c: Pretty print.
762         * elf/elf.h (R_SH_NUM): Got accidently dropped.
764         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
765         minimal kernel versions.  Add information about IA-64 kernel.
767         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
768         specific minimal supported kernel versions to be specified.
770         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
771         step data structure.
772         * wcsmbs/btowc.c: Likewise.
773         * wcsmbs/mbrtowc.c: Likewise.
774         * wcsmbs/mbsnrtowcs.c: Likewise.
775         * wcsmbs/mbsrtowcs.c: Likewise.
776         * wcsmbs/wcrtomb.c: Likewise.
777         * wcsmbs/wcsnrtombs.c: Likewise.
778         * wcsmbs/wcsrtombs.c: Likewise.
779         * wcsmbs/wctob.c: Likewise.
781         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
782         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
784         * shlib-versions: Earliest backward compatible version for SH is 2.2.
786         * misc/sys/cdefs.h: Remove one more __P.
788         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
789         Reported by HJ Lu.
791         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
792         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
793         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
795 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
796             Yutaka Niibe  <gniibe@chroot.org>
798         * configure.in: Add machine sh3, sh4.
799         * elf/elf.h: Add SH specific declarations of relocations.
800         * shlib-versions: Add sh*-*-linux* cases.
802 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
804         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
805         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
806         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
807         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
808         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
809         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
811         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
812         instead of KERNEL_MATH_EMULATION.
813         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
814         KERNEL_MATH_EMULATION.
816         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
817         * sysdeps/sh/sh3/dl-machine.h: Moved to...
818         * sysdeps/sh/dl-machine.h: ...here.  New file.
819         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
820         and include generic SH version.
821         * sysdeps/sh/sh3/bits/endian.h: Move to...
822         * sysdeps/sh/bits/endian.h: ...here.  New file.
823         * sysdeps/sh/sh4/bits/endian.h: Removed.
824         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
825         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
826         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
828         * include/libc-symbols.h (link_warning): Work around a change in
829         GAS which warns about changing section attributes.
830         Proposed by Nick Clifton <nickc@redhat.com>.
832 2000-06-12  H.J. Lu  <hjl@gnu.org>
834         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
836 2000-06-11  H.J. Lu  <hjl@gnu.org>
838         * sysdeps/i386/fpu/Versions: New file.
840 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
842         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
843         parameters.
844         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
845         exists.
847 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
849         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
850         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
851         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
853         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
854         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
855         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
857 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
858             Yutaka Niibe  <gniibe@chroot.org>
860         * sysdeps/sh/Dist: New file.
861         * sysdeps/sh/Implies: New file.
862         * sysdeps/sh/elf/initfini.c: New file.
863         * sysdeps/sh/gmp-mparam.h: New file.
864         * sysdeps/sh/init-first.c: New file.
865         * sysdeps/sh/machine-gmon.h: New file.
866         * sysdeps/sh/memcpy.S: New file.
867         * sysdeps/sh/memprof.h: New file.
868         * sysdeps/sh/memset.S: New file.
869         * sysdeps/sh/sh3/__longjmp.S: New file.
870         * sysdeps/sh/sh3/bits/endian.h: New file.
871         * sysdeps/sh/sh3/bits/huge_val.h: New file.
872         * sysdeps/sh/sh3/bits/setjmp.h: New file.
873         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
874         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
875         * sysdeps/sh/sh3/dl-machine.h: New file.
876         * sysdeps/sh/sh3/setjmp.S: New file.
877         * sysdeps/sh/sh4/__longjmp.S: New file.
878         * sysdeps/sh/sh4/bits/endian.h: New file.
879         * sysdeps/sh/sh4/bits/huge_val.h: New file.
880         * sysdeps/sh/sh4/bits/setjmp.h: New file.
881         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
882         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
883         * sysdeps/sh/sh4/dl-machine.h: New file.
884         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
885         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
886         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
887         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
888         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
889         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
890         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
891         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
892         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
893         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
894         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
895         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
896         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
897         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
898         * sysdeps/sh/sh4/setjmp.S: New file.
899         * sysdeps/sh/elf/start.S: New file.
900         * sysdeps/sh/sys/ucontext.h: New file.
901         * sysdeps/sh/strlen.S: New file.
902         * sysdeps/sh/sysdep.h: New file.
903         * sysdeps/unix/sh/sysdep.S: New file.
904         * sysdeps/unix/sh/sysdep.h: New file.
905         * sysdeps/unix/sysv/linux/sh/Dist: New file.
906         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
907         * sysdeps/unix/sysv/linux/sh/Versions: New file.
908         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
909         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
910         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
911         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
912         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
913         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
914         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
915         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
916         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
917         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
918         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
919         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
920         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
921         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
922         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
923         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
924         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
925         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
926         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
927         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
928         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
929         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
930         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
931         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
932         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
933         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
934         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
935         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
936         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
937         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
938         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
939         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
940         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
941         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
942         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
943         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
944         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
945         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
946         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
947         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
948         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
949         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
950         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
951         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
952         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
953         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
954         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
956 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
958         * Rules (%.out): Define GCONV_PATH in the environment.
959         * assert/Depend: New file.
960         * iconvdata/Depend: New file.
961         * intl/Depend: New file.
962         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
963         * intl/tst-gettext.sh: Likewise.
964         * iconv/Makefile (routines): Add gconv_trans.
965         * iconv/gconv_trans.c: New file.
966         * iconv/gconv.h (struct __gconv_trans_data): New type.
967         (__gconv_fct): New parameter with starting position in output buffer.
968         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
969         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
970         (struct __gconv_step): Add new member __trans.
971         * iconv/gconv_int.h: Pretty print prototypes.
972         (gconv_transliterate): New prototype.
973         (__BUILTIN_TRANS): Update for new conversion function interface.
974         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
975         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
976         in names, find appropriate function, and install in the conversion
977         steps it can be used.
978         * iconv/skeleton.c: Add additional parameter for beginning of output
979         buffer.  Change calls of downstream functions.
980         * iconv/loop.c: Change loop function interface completely.  Pass in
981         step and step_data structure.  Remove optimization for BODY with
982         NEED_LENGTH_TEST == 0.
983         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
984         appropriate error handling code to use transliteration steps.  Remove
985         optimization for BODY with NEED_LENGTH_TEST == 0.
986         * iconvdata/8bit-gap.c: Likewise.
987         * iconvdata/8bit-generic.c: Likewise.
988         * iconvdata/ansi_x3.110.c: Likewise.
989         * iconvdata/big5.c: Likewise.
990         * iconvdata/big5hkscs.c: Likewise.
991         * iconvdata/euc-cn.c: Likewise.
992         * iconvdata/euc-jp.c: Likewise.
993         * iconvdata/euc-kr.c: Likewise.
994         * iconvdata/euc-tw.c: Likewise.
995         * iconvdata/gbgbk.c: Likewise.
996         * iconvdata/gbk.c: Likewise.
997         * iconvdata/iso-2022-cn.c: Likewise.
998         * iconvdata/iso-2022-jp.c: Likewise.
999         * iconvdata/iso-2022-kr.c: Likewise.
1000         * iconvdata/iso646.c: Likewise.
1001         * iconvdata/iso8859-1.c: Likewise.
1002         * iconvdata/iso_6937-2.c: Likewise.
1003         * iconvdata/iso_6937.c: Likewise.
1004         * iconvdata/johab.c: Likewise.
1005         * iconvdata/sjis.c: Likewise.
1006         * iconvdata/t.61.c: Likewise.
1007         * iconvdata/uhc.c: Likewise.
1008         * iconvdata/unicode.c: Likewise.
1009         * iconvdata/utf-16.c: Likewise.
1010         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
1011         DL_CALL_FCT.
1012         * wcsmbs/btowc.c: Likewise.
1013         * wcsmbs/mbrtowc.c: Likewise.
1014         * wcsmbs/mbsnrtowcs.c: Likewise.
1015         * wcsmbs/mbsrtowcs.c: Likewise.
1016         * wcsmbs/wcrtomb.c: Likewise.
1017         * wcsmbs/wcsnrtombs.c: Likewise.
1018         * wcsmbs/wcsrtombs.c: Likewise.
1019         * wcsmbs/wctob.c: Likewise.
1021 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
1023         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
1024         other header files.  Mention about 128-byte cache line sizes.
1025         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
1026         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
1027         for current calling sequence.
1028         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
1030         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
1031         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
1033         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
1034         and setrlimit syscalls for backwards compatibility.
1036 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
1038         * iconv/skeleton.c:  Rename converted written to correcter name
1039         irreversible.
1040         * iconv/gconv.c: Rename converted variable to correcter name
1041         irreversible.
1042         * iconv/gconv_int.h: Likewise.
1043         * iconv/gconv_simple.c: Likewise.
1044         * iconv/iconv.c: Likewise.
1045         * iconv/loop.c: Likewise.
1046         * iconvdata/8bit-gap.c: Likewise.
1047         * iconvdata/8bit-generic.c: Likewise.
1048         * iconvdata/ansi_x3.110.c: Likewise.
1049         * iconvdata/big5.c: Likewise.
1050         * iconvdata/big5hkscs.c: Likewise.
1051         * iconvdata/euc-cn.c: Likewise.
1052         * iconvdata/euc-jp.c: Likewise.
1053         * iconvdata/euc-kr.c: Likewise.
1054         * iconvdata/gbgbk.c: Likewise.
1055         * iconvdata/gbk.c: Likewise.
1056         * iconvdata/iso-2022-cn.c: Likewise.
1057         * iconvdata/iso-2022-jp.c: Likewise.
1058         * iconvdata/iso-2022-kr.c: Likewise.
1059         * iconvdata/iso646.c: Likewise.
1060         * iconvdata/iso8859-1.c: Likewise.
1061         * iconvdata/iso_6937-2.c: Likewise.
1062         * iconvdata/iso_6937.c: Likewise.
1063         * iconvdata/johab.c: Likewise.
1064         * iconvdata/sjis.c: Likewise.
1065         * iconvdata/t.61.c: Likewise.
1066         * iconvdata/uhc.c: Likewise.
1067         * iconvdata/unicode.c: Likewise.
1068         * iconvdata/utf-16.c: Likewise.
1070         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
1071         __cmsg_data field with __extension__.
1073 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
1075         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
1077 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
1079         * iconv/gconv_simple.c: Fix various small bugs in several
1080         functions.
1082         * iconv/loop.c: Fix comment.
1084 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
1086         * elf/link.h: Remove libc internal declarations.
1087         * include/link.h: Move them here.
1089 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
1091         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
1092         Patch by Dan Pop <Dan.Pop@cern.ch>.
1094         Rewrite error message handling.
1095         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
1096         _dl_catch_error.
1097         * elf/dl-error (struct catch): Add objname member.
1098         (_dl_signal_error): Take new parameter with object name.  When
1099         passing message on simply store object name and duplicate error
1100         message.
1101         (_dl_catch_error): Take new parameter.  Store object name in the
1102         place pointed to.
1103         * include/dlfcn.h: Adjust _dl_catch_error prototype.
1104         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
1105         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
1106         (dlerror): Add objname to asprintf() parameters.
1107         (_dl_error_run): Pass new parameter to _dl_catch_error.
1108         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
1109         * elf/dl-open.c (_dl_open): Likewise.
1110         * elf/rtld.c (dl_main): Likewise.
1111         * elf/dl-close.c: Mark error messages with N_().
1112         * elf/dl-deps.c: Likewise.
1113         * elf/dl-error.c: Likewise.
1114         * elf/dl-load.c: Likewise.
1115         * elf/dl-open.c: Likewise.
1116         * elf/dl-reloc.c: Likewise.
1117         * elf/dl-support.c: Likewise.
1118         * elf/dl-sym.c: Likewise.
1119         * elf/dl-version.c: Likewise.
1120         * elf/dl-lookup.c: Add comments about problems with error message
1121         translations.
1122         * elf/dl-reloc.c: Likewise.
1123         * elf/dl-version.c: Likewise.
1125 2000-06-09  H.J. Lu  <hjl@gnu.org>
1127         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
1128         after freeing it.
1130         * dlfcn/Makefile (distribute): Add failtestmod.c.
1131         (tests): Add failtest.
1132         Add rules to build and run failtest.
1133         * dlfcn/failtest.c: New file.
1134         * dlfcn/failtestmod.c: New file.
1136 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
1138         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
1139         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
1140         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
1141         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
1142         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
1144 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
1146         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
1147         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
1149 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
1150             Ulrich Drepper  <drepper@redhat.com>
1152         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
1153         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
1154         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
1155         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
1156         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
1157         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
1159 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
1161         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
1162         to find correct mount point despite wrong information from the
1163         kernel.
1165 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
1167         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
1168         the address of a symbol so function pointers are handled properly.
1170 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
1172         * sysdeps/i386/Dist: Add bp-asm.h.
1174         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
1175         defaultdir variable instead of "/var/shm" everywhere.
1176         (defaultdir): Change to /dev/shm/.
1178 2000-06-08  Greg McGary  <greg@mcgary.org>
1180         * sysdeps/i386/bp-asm.h: New file.
1181         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
1182         offsets.  Add ENTER/LEAVE macros for optionally maintaining
1183         frame-pointer chain when debugging.
1184         * sysdeps/i386/add_n.S: Likewise.
1185         * sysdeps/i386/addmul_1.S: Likewise.
1186         * sysdeps/i386/lshift.S: Likewise.
1187         * sysdeps/i386/memchr.S: Likewise.
1188         * sysdeps/i386/memcmp.S: Likewise.
1189         * sysdeps/i386/mul_1.S: Likewise.
1190         * sysdeps/i386/rawmemchr.S: Likewise.
1191         * sysdeps/i386/rshift.S: Likewise.
1192         * sysdeps/i386/stpcpy.S: Likewise.
1193         * sysdeps/i386/stpncpy.S: Likewise.
1194         * sysdeps/i386/strchr.S: Likewise.
1195         * sysdeps/i386/strchrnul.S: Likewise.
1196         * sysdeps/i386/strcspn.S: Likewise.
1197         * sysdeps/i386/strpbrk.S: Likewise.
1198         * sysdeps/i386/strrchr.S: Likewise.
1199         * sysdeps/i386/strspn.S: Likewise.
1200         * sysdeps/i386/strtok.S: Likewise.
1201         * sysdeps/i386/sub_n.S: Likewise.
1202         * sysdeps/i386/submul_1.S: Likewise.
1203         * sysdeps/i386/elf/setjmp.S: Likewise.
1204         * sysdeps/i386/i486/strcat.S: Likewise.
1205         * sysdeps/i386/i486/strlen.S: Likewise.
1206         * sysdeps/i386/i586/add_n.S: Likewise.
1207         * sysdeps/i386/i586/lshift.S: Likewise.
1208         * sysdeps/i386/i586/memcpy.S: Likewise.
1209         * sysdeps/i386/i586/memset.S: Likewise.
1210         * sysdeps/i386/i586/rshift.S: Likewise.
1211         * sysdeps/i386/i586/strchr.S: Likewise.
1212         * sysdeps/i386/i586/strcpy.S: Likewise.
1213         * sysdeps/i386/i586/strlen.S: Likewise.
1214         * sysdeps/i386/i586/sub_n.S: Likewise.
1215         * sysdeps/i386/i686/add_n.S: Likewise.
1216         * sysdeps/i386/i686/memcpy.S: Likewise.
1217         * sysdeps/i386/i686/mempcpy.S: Likewise.
1218         * sysdeps/i386/i686/memset.S: Likewise.
1219         * sysdeps/i386/i686/strcmp.S: Likewise.
1221 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
1223         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
1225         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
1226         256 and don't use OPEN_MAX.
1228         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
1229         use it instead of LINK_MAX.
1230         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
1232 2000-06-08  Andreas Jaeger  <aj@suse.de>
1234         * libio/genops.c (_IO_list_lock): Only compile body if we're
1235         thread safe.
1236         (_IO_list_unlock): Likewise.
1237         (_IO_list_resetlock): Likewise.
1239 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
1241         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
1242         unless user defined it.
1244         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
1245         if not defined by the user.
1247         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
1248         * libio/iofwrite.c (_IO_fwrite): Likewise.
1250         * time/time.h: Add missing __THROW for clock_getcpuclockid
1251         prototype.
1253         * elf/Makefile (distribute): Add dl-dtprocnum.h.
1254         * include/elf.h: Include also <dl-dtprocnum.h>.
1255         * elf/dl-deps.c: Likewise.
1256         * elf/dl-lookup.c: Likewise.
1257         * elf/dl-runtime.c: Likewise.
1258         * elf/dl-version.c: Likewise.
1259         * elf/do-rel.h: Likewise.
1260         * elf/dynamic-link.h: Likewise.
1261         * elf/link.h: Likewise.
1262         * elf/rtld.c: Likewise.
1263         * sysdeps/generic/dl-dtprocnum.h: New file.
1264         * sysdeps/ia64/dl-dtprocnum.h: New file.
1265         * sysdeps/mips/dl-dtprocnum.h: New file.
1266         * sysdeps/sparc/dl-dtprocnum.h: New file.
1268         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
1270         * elf/do-lookup.h: Add some __builtin_expect.
1272         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
1274         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
1275         (_dl_dynamic_weak): New variable.
1276         * elf/dl-support.c: Likewise.
1277         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
1278         * elf/do-lookup.h: If we find a weak definition treat it like a
1279         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
1280         case treat it like before.
1282         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
1283         is in main program.
1284         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
1286         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
1287         using l_map_start and l_map_end.
1289         * elf/dl-version.c: Add __builtin_expect in many places.
1291         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
1292         Update.
1294 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
1296         Lock for stdio stream list becomes global, for use in LinuxThreads.
1298         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
1299         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
1300         _IO_list_resetlock): New interface for iterating global list of
1301         streams without accessing the _IO_list_all global variable,
1302         and for manipulating the lock which protects this list.
1303         * libio/libioP.h: Likewise.
1304         * libio/Version: Add entries for the new functions.
1306         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
1307         pointer to _IO_FILE.
1309 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
1311         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
1312         BIT() must actually be BITw().
1314         * locale/programs/ld-ctype.c: Handle SP and space consistently.
1316         * locale/programs/charmap.c: Allow string arguments for
1317         code_set_name and repertoiremap.
1319 2000-06-07  Andreas Jaeger  <aj@suse.de>
1321         * elf/Makefile: Build ldconfig only when building shared libraries.
1323 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
1325         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
1326         __USE_ISOC99.
1327         (fdimf, __fdim, fdim): Likewise.
1329 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
1331         * locale/findlocale.c: Add __builtin_expect in many places.
1332         * locale/loadlocale.c: Likewise.
1334 2000-06-06  Greg McGary  <greg@mcgary.org>
1336         * sysdeps/mips/elf/start.S: Trim redundant code.
1338         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
1339         Use C comments throughout.  Line up operands column with tabs.
1340         * sysdeps/powerpc/strchr.S: Likewise.
1341         * sysdeps/powerpc/strcmp.S: Likewise.
1342         * sysdeps/powerpc/strcpy.S: Likewise.
1343         * sysdeps/powerpc/strlen.S: Likewise.
1345         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
1346         Get low part of &__curbrk with @l.
1348 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
1350         * iconvdata/utf-16.c: Add __builtin_expect in many places.
1351         * iconvdata/unicode.c: Likewise.
1352         * iconvdata/uhc.c: Likewise.
1353         * iconvdata/t.61.c: Likewise.
1354         * iconvdata/sjis.c: Likewise.
1355         * iconvdata/johab.c: Likewise.
1356         * iconvdata/iso_6937.c: Likewise.
1357         * iconvdata/iso_6937-2.c: Likewise.
1358         * iconvdata/iso8859-1.c: Likewise.
1359         * iconvdata/iso646.c: Likewise.
1360         * iconvdata/iso-2022-kr.c: Likewise.
1361         * iconvdata/iso-2022-jp.c: Likewise.
1362         * iconvdata/iso-2022-cn.c: Likewise.
1363         * iconvdata/gbgbk.c: Likewise.
1364         * iconvdata/gbk.c: Likewise.
1365         * iconvdata/euc-kr.c: Likewise.
1366         * iconvdata/euc-jp.c: Likewise.
1367         * iconvdata/euc-cn.c: Likewise.
1369 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
1371         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
1372         * iconvdata/big5.c: Likewise.
1373         * iconvdata/ansi_x3.110.c: Likewise.
1374         * iconvdata/8bit-generic.c: Likewise.
1375         * iconvdata/8bit-gap.c: Likewise.
1376         * iconv/loop.c: Likewise.
1377         * iconv/gconv_db.c: Likewise.
1378         * iconv/gconv_dl.c: Likewise.
1379         * iconv/gconv_simple.c: Likewise.
1380         * iconv/skeleton.c: Likewise.
1382         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
1383         (struct __gconv_step_data): Rename __is_last to __flags.
1384         * iconv/gconv_close.c: Change all uses of __is_last.
1385         * iconv/skeleton.c: Likewise.
1386         * iconvdata/iso-2022-cn.c: Likewise.
1387         * iconvdata/iso-2022-jp.c: Likewise.
1388         * iconvdata/iso-2022-kr.c: Likewise.
1389         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
1390         Recognize IGNORE error handling, set flag, and remove from name.
1391         * iconv/loop.c (ignore_errors_p): Define.
1392         Add flags parameter to both functions.
1393         * iconv/skeleton.c: Pass flags to all conversion functions.
1394         * iconv/gconv_simple.c: Add flags parameter to all functions.
1395         Don't return error for invald error if ignore flag is set.
1396         (ucs4_internal_loop_single): Add missing pointer increment.
1397         (internal_ucs4le_loop_single): Likewise.
1398         * iconv/iconv_prog.c: Implement handling of -c parameter.
1399         * iconvdata/8bit-gap.c: Don't return error for invald error if
1400         ignore flag is set.
1401         * iconvdata/8bit-generic.c: Likewise.
1402         * iconvdata/ansi_x3.110.c: Likewise.
1403         * iconvdata/big5.c: Likewise.
1404         * iconvdata/big5hkscs.c: Likewise.
1405         * iconvdata/euc-cn.c: Likewise.
1406         * iconvdata/euc-jp.c: Likewise.
1407         * iconvdata/euc-kr.c: Likewise.
1408         * iconvdata/gbgbk.c: Likewise.
1409         * iconvdata/gbk.c: Likewise.
1410         * iconvdata/iso-2022-cn.c: Likewise.
1411         * iconvdata/iso-2022-jp.c: Likewise.
1412         * iconvdata/iso-2022-kr.c: Likewise.
1413         * iconvdata/iso646.c: Likewise.
1414         * iconvdata/iso8859-1.c: Likewise.
1415         * iconvdata/iso_6937-2.c: Likewise.
1416         * iconvdata/iso_6937.c: Likewise.
1417         * iconvdata/johab.c: Likewise.
1418         * iconvdata/sjis.c: Likewise.
1419         * iconvdata/t.61.c: Likewise.
1420         * iconvdata/uhc.c: Likewise.
1421         * iconvdata/unicode.c: Likewise.
1422         * iconvdata/utf-16.c: Likewise.
1423         * libio/fileops.c: Likewise.
1424         * libio/iofwide.c: Likewise.
1425         * wcsmbs/btowc.c: Likewise.
1426         * wcsmbs/mbrtowc.c: Likewise.
1427         * wcsmbs/mbsnrtowcs.c: Likewise.
1428         * wcsmbs/mbsrtowcs.c: Likewise.
1429         * wcsmbs/wcrtomb.c: Likewise.
1430         * wcsmbs/wcsnrtombs.c: Likewise.
1431         * wcsmbs/wcsrtombs.c: Likewise.
1432         * wcsmbs/wctob.c: Likewise.
1434         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
1435         an error.
1437 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
1439         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
1440         counter for the object we are releasing, just decrement it.
1441         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
1443 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
1445         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
1446         if -ffast-math.
1448 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
1450         * iconvdata/big5hkscs.c: New file.
1451         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
1453         * iconvdata/gconv-modules: Add entry for new module.
1454         * iconvdata/Makefile (modules): Add BIG5HKSCS.
1455         (distribute): Add big5hkscs.c.
1457 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
1459         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
1460         inlines to match prototypes in mathcalls.h.
1461         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1462         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
1463         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1464         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1466 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
1468         * elf/elf.h (SHT_SUNW_move): Define.
1470         * elf/elf.h: Add more Solaris compatiblity definitions.
1472 2000-06-03  Andreas Jaeger  <aj@suse.de>
1474         * sysdeps/powerpc/dl-start.S: Close open comment.
1476 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
1478         * inet/Versions: Fix typo in rresvport_af export.
1480 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
1482         * math/tgmath.h: Pretty print.
1484 2000-06-02  Andreas Jaeger  <aj@suse.de>
1486         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
1487         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1489 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
1491         * elf/rtld.c (process_envvars): Test for = after variable name.
1493 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
1495         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
1496         have extra call to __gmon_start__, use the pointer we already have.
1498         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
1499         shifting.
1501         * sysdeps/i386/elf/setjmp.S: Work around change is recent
1502         binutils.  gas now emits a jump through the PLT instead of a
1503         relative jump if the jump target is an exported symbol.
1505 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
1507         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
1509 2000-05-31  Andreas Jaeger  <aj@suse.de>
1511         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
1512         gregset_t.
1514         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
1515         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1517         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
1518         syscall.
1519         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1521 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
1523         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
1525         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
1526         * locale/localeconv.c: Make function versioned (with same definition).
1528         * elf/Makefile (modules-names): Strip before using it.
1530 2000-05-30  Andreas Jaeger  <aj@suse.de>
1532         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
1533         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
1534         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
1535         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
1536         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
1537         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
1539 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
1541         * Makefile: Add GNU make magic.
1543         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
1544         Removed.
1545         * inet/rcmd.c: Remove __P.  Remove unused variables.
1546         (iruserfopen): Make first parameter const.
1547         (ruserok_sa): Return result of ruserok2_sa.
1548         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
1549         * inet/rexec.c: Remove unused variables.  Other small cleanups.
1550         * inet/ruserpass.c: Remove __P.  Remove unused variables.
1551         (ruserpass): Check results of memory allocation.
1552         * include/netdb.h: Add prototype for ruserpass.
1554 2000-05-29  Andreas Jaeger  <aj@suse.de>
1556         * elf/readlib.c (interpreters): Use LD_SO since this is supported
1557         for all platforms.
1559 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
1561         * inet/rcmd.c (rresvport_af): Use correct port number.
1563 2000-05-26  Andreas Schwab  <schwab@suse.de>
1565         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
1566         entries in all-sonames.
1567         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
1568         preserving the old name if different for compatibility.
1570 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
1572         * posix/Makefile (tests): Add tst-spawn.
1573         (tst-spawn-ARGS): New variable.
1574         * posix/tst-spawn.c: New file.
1576         * posix/spawn_faction_addclose.c: Correctly account for new entry.
1577         * posix/spawn_faction_adddup2.c: Likewise.
1578         * posix/spawn_faction_addopen.c: Likewise.
1579         * posix/spawni.c: Correctly test for success of dup2 calls.
1581         * posix/tst-preadwrite.c: Check success of malloc call.
1583 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
1585         * posix/Makefile (tests): Add tst-exec.
1586         (tst-exec-ARGS): New variable.
1587         * posix/tst-exec.c: New file.
1589         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
1591 2000-05-04  Andreas Jaeger  <aj@suse.de>
1593         * string/string.h: Remove __strdup prototype, it's not needed in
1594         this file anymore.
1596 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
1598         * posix/Makefile (tests): Add tst-fork.
1599         * posix/tst-fork.c: New file.
1601         * resolv/inet_pton.c: Loose __P.
1603 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
1605         * libio/libioP.h (_IO_CHECK_WIDE): Define.
1606         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
1607         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
1608         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
1609         _IO_CHECK_WIDE fails.
1611 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
1613         * po/da.po: New file.
1615         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
1616         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
1618         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
1619         (Other iconv Implementations): Fix typo.
1620         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
1622 2000-05-27  Andreas Jaeger  <aj@suse.de>
1624         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
1625         normal version now.
1626         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
1627         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
1628         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1629         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1630         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
1631         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
1633         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
1634         endianness to decide how to pass arguments.
1635         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
1637         * elf/vismain.c: Use test-skeleton interface.
1638         (TEST_FUNCTION): New macro.
1639         (do_test): Renamed from main.
1641 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
1643         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
1644         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
1646         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
1647         handling of AI_V4MAPPED flag.
1649         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
1650         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
1651         perform lookup for T_A type and tell getanswer_r to convert the
1652         result with new argument.
1653         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
1654         Don't convert addresses from IPv4 to IPv6 here.
1655         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
1656         IPv6 is wanted.  Allow qtype and type from reply to disagree if
1657         IPv4 mapping has to be done.  Perform mappings if required by the
1658         caller and not if RES_USE_INET6 bit in _res.options is set.
1659         Add several __builtin_expect.
1661 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
1663         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
1665         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
1666         NULL.
1668         * posix/tst-preadwrite.c: Allow parallel execution of
1669         tst-preadwrite and tst-preadwrite64.
1671         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
1672         * posix/tst-truncate.c: New file.
1673         * posix/tst-truncate64.c: New file.
1675         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
1676         was switched.
1678         * posix/Makefile (tests): Add tst-preadwrite64.
1679         * posix/tst-preadwrite.c: Alloc file being used also for testing
1680         pread64 and pwrite64.
1681         * posix/tst-preadwrite64.c: New file.
1683 2000-05-26  Andreas Jaeger  <aj@suse.de>
1685         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
1686         of arguments dependend on endianness.
1687         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1689         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
1690         normal version now.
1691         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
1692         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
1693         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1694         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1696         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
1697         endianness to check how to pass argument.
1698         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
1700         * elf/ldconfig.h: Update parameter list for process_elf_file.
1702         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
1703         Add parameter file_length and pass it ot process_elf*file.
1705         * sysdeps/generic/readelflib.c (check_ptr): New.
1706         (process_elf_file): Use check_ptr to check all accesses to the
1707         mmapped file. Add parameter file_length.
1709         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
1710         library names.
1712         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
1713         Closes PR libc/1573, reported by Bradley White
1714         <bww@laurelnetworks.com>.
1716 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
1718         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
1719         __FAST_MATH__ is defined.
1721 2000-05-22  Andreas Jaeger  <aj@suse.de>
1723         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
1724         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
1726         * manual/math.texi (FP Function Optimizations): Document gcc
1727         -ffast-math behaviour with mathinlines.
1729         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
1730         functions unless -ffast-math is given to gcc.
1732 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
1734         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
1735         __sincosl): Guard with __USE_GNU.
1737 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
1739         * csu/Makefile (routines): Add check_fds.
1740         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
1741         binaries.  Add various __builtin_expect.
1742         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
1743         * sysdeps/generic/check_fds.c: ...here.  New file.
1745         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
1746         binaries if file /etc/suid-debug is available.
1748         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
1749         and wcseqorder members.
1750         (struct locale_collate_t): Likewise.
1751         (collate_finish): Assign collation sequence value to each character.
1752         Create tables for output.
1753         (collate_output): Write out tables with collation sequence information.
1754         * locale/C-collate.c: Provide C locale data for collation sequence
1755         table.
1756         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
1757         _NL_COLLATE_COLLSEQWC.
1758         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
1759         _NL_COLLATE_COLLSEQWC.
1760         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
1761         include fnmatch_loop.c.
1762         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
1763         character is matched by range expression.  Use collation sequence
1764         table.  Outside glibc fall back on simple character value comparison.
1766 2000-05-24  Andreas Jaeger  <aj@suse.de>
1768         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
1769         words.
1771         * intl/Makefile: Run gettext-test only if msgfmt is available.
1773         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
1774         Define it for newer kernels.
1776 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
1778         * elf/dl-sym.c: Minor cleanups.
1780         * configure.in: Add test for .protected.
1781         * config.make.in: Add have-protected variable.
1782         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
1783         (tests-vis-yes): Add vismain.
1784         (modules-names): Add $(modules-vis-$(have-protected)).
1785         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
1786         Add rules to generate and run vismain.
1787         * elf/vismain.c: New file.
1788         * elf/vismod1.c: New file.
1789         * elf/vismod2.c: New file.
1790         * elf/vismod3.c: New file.
1792 2000-05-23  Andreas Jaeger  <aj@suse.de>
1794         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
1796         * manual/search.texi (Array Sort Function): Document that qsort is
1797         not necessarily in-place.
1799         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
1800         Closes PR libc/1731.
1802         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
1803         * dirent/scandir64.c: Likewise.
1804         * pwd/getpw.c: Likewise.
1805         * stdlib/bsearch.c (bsearch): Likewise.
1806         * stdlib/tst-strtoll.c: Likewise.
1807         * localedata/collate-test.c: Likewise.
1808         * localedata/xfrm-test.c: Likewise.
1809         * posix/bsd-getpgrp.c: Likewise.
1810         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
1811         * sysdeps/generic/bits/siginfo.h: Likewise.
1812         * sysdeps/generic/bits/sockaddr.h: Likewise.
1813         * sysdeps/generic/sys/swap.h: Likewise.
1814         * sysdeps/generic/sys/sysinfo.h: Likewise.
1815         * sysdeps/generic/vfork.c: Likewise.
1816         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
1817         * sysdeps/mach/hurd/fdopen.c: Likewise.
1818         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
1819         * sysdeps/unix/sysv/linux/poll.c: Likewise.
1820         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1821         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1822         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1823         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
1824         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1826         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
1827         * shadow/lckpwdf.c: Likewise.
1828         * stdlib/tst-strtol.c: Likewise.
1829         * sysdeps/generic/tcsetattr.c: Likewise.
1830         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1831         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1833 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
1835         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
1836         free it and set to (void *) -1.
1838 2000-05-22  Jakub Jelinek <jakub@redhat.com>
1840         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
1841         not the second character in the range.
1842         * stdio-common/tstscanf.c (main): Add testcase for the above.
1843         Reported by jik@kamens.brookline.ma.us.
1845 2000-05-21  H.J. Lu  <hjl@gnu.org>
1847         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
1848         with noexec and noplt parameter.
1849         (do_lookup): Likewise.
1851         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
1852         do_lookup.  Support STV_PROTECTED.
1853         (_dl_lookup_symbol_skip): Likewise.
1854         (_dl_lookup_versioned_symbol): Likewise.
1855         (_dl_lookup_versioned_symbol_skip): Likewise.
1857         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
1859         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
1861 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
1863         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
1864         * sysdeps/i386/bits/huge_val.h: Likewise.
1865         * sysdeps/ieee754/bits/huge_val.h: Likewise.
1866         * sysdeps/m68k/bits/huge_val.h: Likewise.
1867         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
1868         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
1870 2000-05-22  Andreas Jaeger  <aj@suse.de>
1872         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
1873         change in iconv.h.
1875 2000-05-19  Andreas Jaeger  <aj@suse.de>
1877         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
1878         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
1879         breaks compilation without linuxthreads.
1881 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
1883         * sysdeps/ia64/memccpy.S: New file.
1884         * sysdeps/ia64/memchr.S: New file.
1885         * sysdeps/ia64/memcmp.S: New file.
1886         * sysdeps/ia64/memcpy.S: New file.
1887         * sysdeps/ia64/memmove.S: New file.
1888         * sysdeps/ia64/memset.S: New file.
1889         * sysdeps/ia64/strcat.S: New file.
1890         * sysdeps/ia64/strchr.S: New file.
1891         * sysdeps/ia64/strcmp.S: New file.
1892         * sysdeps/ia64/strcpy.S: New file.
1893         * sysdeps/ia64/strlen.S: New file.
1894         * sysdeps/ia64/strncmp.S: New file.
1895         * sysdeps/ia64/strncpy.S: New file.
1896         * sysdeps/ia64/softpipe.h: New file.
1897         Patches by Dan Pop <Dan.Pop@cern.ch>.
1899         * manual/memory.texi: Document memory handling functions (mlock,
1900         munlock, mlockall, munlockall, brk, and sbrk)
1901         * manual/time.texi: Document timespec and friends.
1902         * manual/conf.texi: Fix references.
1903         * manual/ctype.texi: Likewise.
1904         * manual/errno.texi: Likewise.
1905         * manual/intro.texi: Likewise.
1906         * manual/locale.texi: Likewise.
1907         * manual/sysinfo.texi: Likewise.
1908         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
1910 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
1912         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
1913         * sysdeps/ia64/dl-lookupcfg.h: ...here.
1915 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
1917         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
1918         dxfer_direction.
1920 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
1922         * locale/locale.h (struct lconv): Add new elements from ISO C99.
1923         * locale/localeconv.c: Initialize new elements from ISO C99.
1924         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
1925         new standard elements.
1926         * locale/categories.def: Adjust accordingly.
1928         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
1929         * iconv/iconv.c: Likewise.
1930         * conform/data/iconv.h-data: Likewise.
1931         * iconv/iconv_prog.c (process_block): Remove const from second
1932         parameter.
1933         (main): Remove const from addr definition.
1934         * manual/charset.texi (Generic Conversion Interface): Remove from
1935         inbuf parameter of iconv.
1937         * intl/dcigettext.c: Fix typo in comment.
1939 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
1941         * resolv/res_libc.c (_res): Initialize _sock to -1.
1943 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
1945         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
1946         (fopencookie@@GLIBC_2.2): New.
1947         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
1948         (fopencookie@GLIBC_2.0): New.
1949         * libio/Versions: Add fopencookie to GLIBC_2.2.
1951 2000-05-18  Andreas Jaeger  <aj@suse.de>
1953         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
1954         Closes PR libc/1731.
1956         * manual/arith.texi (Parsing of Integers): Fix typo.
1957         Closes PR libc/1744, reported by blp@gnu.org.
1959 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
1961         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
1962         __extension__ to hexadecimal floating constant notation.
1963         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
1964         Likewise.
1965         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
1966         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
1967         Likewise.
1968         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
1969         HUGE_VALL): Likewise.
1970         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
1971         HUGE_VALL): Likewise.
1972         (HUGE_VALL): Set to HUGE_VAL on sparc32.
1974 2000-05-17  Andreas Jaeger  <aj@suse.de>
1976         * string/envz.h: Add pure attributes if possible.
1978         * string/argz.h: argz_count is a pure function.
1980         * string/strings.h: Add pure and const attributes if possible.
1982         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
1983         possibly searching through the whole memory.
1984         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
1986 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
1988         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
1989         not yet defined.
1990         (_dl_cache_check_flags): Likewise.
1991         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
1992         dl-cache.h.
1994 2000-05-17  Andreas Jaeger  <aj@suse.de>
1996         * manual/creature.texi (Feature Test Macros): Remove paragraph
1997         since the description is wrong.
1998         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
2000         * scripts/config.sub: New version.
2001         * scripts/config.guess: Likewise.
2002         * manual/texinfo.tex: Likewise.
2004         * time/test_time.args: Removed.
2005         * time/Makefile (test_time-ARGS): Added contents here instead.
2007         * posix/tstgetopt.args: Removed.
2008         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
2010         * Rules: Allow arguments for test files to be specified in
2011         Makefile with testname-ARGS; remove rules with .args in it.
2013         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
2014         remove old bogus rule for opendir-tst1.args.
2016         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
2018         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
2019         into objdir.  This allows a readonly sourcetree.
2020         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
2022 2000-05-16  Andreas Jaeger  <aj@suse.de>,
2023             David Huggins-Daines <dhd@linuxcare.com>
2025         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
2026         cache_data in case of only new cache format correctly.
2028         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
2029         cache_file_new.
2031         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
2032         struct cache_file_new.
2034         * elf/cache.c (save_cache): Fix str_offset if only new cache is
2035         present.
2037         * elf/cache.c (save_cache): Align struct new_file_cache.
2038         (print_cache): Likewise.
2040 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
2042         * elf/soinit.c (__libc_global_ctors): Move
2043         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
2044         * resolv/resolv.h (__res_state): Added __attribute__((const)).
2045         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
2046         variable, don't define it to __res_state call.
2048 2000-05-13  Andreas Jaeger  <aj@suse.de>
2050         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
2051         Linux 2.3.99pre7.
2052         (AF_PPPOX): Likewise.
2053         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
2054         (AF_PPPOX): Likewise.
2056 2000-05-12  Andreas Jaeger  <aj@suse.de>
2058         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
2059         Reported by tmoestl@gmx.net, closes PR libc/1732.
2061 2000-05-11  Jan Hubicka  <jh@suse.cz>
2063         * misc/sys/cdefs.h: Add support for pure attribute.
2065         * include/string.h: Add __attribute_pure__ to various functions.
2066         * string/string.h: Likewise.
2068 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
2070         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
2071         argument.
2072         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
2073         R_SPARC_UA64.
2074         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
2076 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
2078         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
2079         at proper place.  Compute the high nibble correctly.
2081 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
2083         * elf/ldconfig.c: Include elf.h.
2085         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
2086         (_dl_vsym): Likewise.
2087         Reported by Owen Taylor <otaylor@redhat.com>.
2089         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
2090         always.
2092 2000-05-08  Andreas Jaeger  <aj@suse.de>
2094         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
2096         * intl/bindtextdom.c (set_binding_values): Add prototype.
2098 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
2100         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
2101         call to elf_machine_fixup_plt.
2102         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2103         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2105 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
2107         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
2108         they are not dlclose'd from underneath us.
2110 2000-05-08  Andreas Schwab  <schwab@suse.de>
2112         * posix/execle.c: Fix size parameter of memcpy.
2114 2000-05-08  Andreas Schwab  <schwab@suse.de>
2116         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
2117         getpagesize syscall if available.
2119 2000-05-08  Andreas Jaeger  <aj@suse.de>
2121         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
2122         set errno.
2124 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
2126         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
2127         sizeof(struct link_map *) chunks, not in bytes.
2129 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
2131         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
2132         only needed for locale.
2133         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
2134         It's only needed for catgets.
2135         Patches by Greg McGary <gkm@eng.ascend.com>.
2137 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
2139         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
2140         Remove duplicate <errno.h> include.  Remove inclusion of
2141         <libintl.h> and "nsswitch.h".
2142         (set_cloexec_flag): New function, broken out of dbopen.
2143         (dbopen): Changed return type to `enum
2144         nss_status'.  Mostly rewritten to make sure that we do not report
2145         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
2146         (internal_setent): Change return type to nss_status.
2147         Document, and make sure that the function
2148         behaves accordingly.  Make dynamically loading the database
2149         library really thread-safe and return NSS_STATUS_UNAVAIL if it
2150         failed.
2151         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
2152         unecessary casts.
2153         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
2154         documentation.
2155         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
2156         c_get function member.
2157         * nss/nss_db/nss_db.h: Add and tweak some comments.
2158         (DBT): Move typedef before NSS_DBC typedef.
2159         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
2161 2000-05-07  H.J. Lu  <hjl@gnu.org>
2163         * csu/initfini.c: Moved to ....
2164         * sysdeps/generic/initfini.c: ...here.
2166         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
2168 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
2170         * manual/resource.texi: Document POSIX scheduling functions.
2171         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
2173         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
2174         reading anything.  Reported by Andries.Brouwer@cwi.nl.
2176         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
2177         for x since promotion in comparison might leads to unexpected
2178         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
2180         * iconv/Makefile (tests): Add tst-iconv1.
2181         * iconv/tst-iconv1.c: New file.
2182         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
2183         empty input buffer over full output buffer.
2184         (ucs4_internal_loop): Likewise.
2185         (ucs4_internal_loop_unaligned): Likewise.
2186         (internal_ucs4le_loop): Likewise.
2187         (internal_ucs4le_loop_unaligned): Likewise.
2188         (ucs4le_internal_loop): Likewise.
2189         (ucs4le_internal_loop_unaligned): Likewise.
2190         Reported by yaoz@nih.gov.
2192 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
2194         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
2195         returned != __GCONV_OK, there is nothing to clean up.
2197 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
2199         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
2200         OUTPUT_CHARSET environment variables.
2202 2000-05-06  Andreas Jaeger  <aj@suse.de>
2204         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
2205         (struct cache_file_new): New.
2206         (struct file_entry): New (moved from cache.c).
2207         (struct cache_file): New (moved from cache.c).
2209         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
2210         from _dl_load_cache_lookup.
2211         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
2212         the different cache formats.
2213         New variable cache_new for new format.
2215         * elf/ldconfig.h: Change according to changes in cache.c and
2216         ldconfig.c; remove cache_libcmp; add opt_format.
2218         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
2219         stuff that's defined in those headers.
2220         Add hwcap to struct lib_entry.
2221         (opt_format): New variable to select cache format.
2222         (options): Add format parameter.
2223         (is_hwcap): New function.
2224         (path_hwcap): New function.
2225         (parse_opt): Handle new format parameter.
2226         (search_dir): Handle hwcap, search also subdirectories with hwcap.
2228         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
2229         ldconfig is part of glibc.
2230         Include dl-cache.h and remove stuff that's defined there.
2231         (struct cache_entry): Add new member hwcap.
2232         (print_entry): Print hwcap, cleanup a bit.
2233         (print_cache): Print new and old formats.
2234         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
2235         (save_cache): Save new and old formats.
2236         (add_to_cache): Handle hwcap.
2238         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
2239         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
2240         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
2241         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
2242         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
2243         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
2245 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
2247         * intl/dcigettext.c (alignof): New macro.
2248         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
2249         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
2250         freemem_size to 0.
2252 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
2254         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
2255         return value.
2257 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
2259         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
2260         (mempcpy): Correct typo is parameter list.
2262 2000-05-06  Andreas Jaeger  <aj@suse.de>
2264         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
2265         functions unless -ffast-math is given to gcc.
2267 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
2269         * po/ko.po: Update from translation team.
2271 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
2273         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
2274         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
2275         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
2276         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
2277         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
2278         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
2280         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
2281         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
2282         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
2284         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
2285         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
2286         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
2287         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
2289         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
2290         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
2292 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
2294         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
2295         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
2297         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
2298         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
2300         * sysdeps/ia64/Implies: New file.
2301         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
2302         * sysdeps/ia64/Makefile: New file.
2303         * sysdeps/ia64/gmp-mparam.h: New file,
2305         * sysdeps/ia64/elf/start.S: New file.
2307         * sysdeps/ia64/bits/fenv.h: New file.
2309 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
2311         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
2313 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
2315         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
2316         ia64 has 64 bit .hash entries just as the Alpha.
2318 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
2320         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
2322 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
2324         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
2325         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
2326         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
2327         * sysdeps/ia64/fpu/fegetenv.c: New file.
2328         * sysdeps/ia64/fpu/fegetexcept.c: New file.
2329         * sysdeps/ia64/fpu/fegetround.c: New file.
2330         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
2331         * sysdeps/ia64/fpu/fesetenv.c: New file.
2332         * sysdeps/ia64/fpu/fesetround.c: New file.
2333         * sysdeps/ia64/fpu/feupdateenv.c: New file.
2334         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
2335         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
2336         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
2337         * sysdeps/ia64/fpu/ftestexcept.c: New file.
2339 2000-05-05  Andreas Jaeger  <aj@suse.de>
2341         * misc/tst-tsearch.c (main): Correct type for initstate argument.
2343         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
2344         (_dl_string_hwcap): New, does nothing.
2346         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
2347         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
2348         (_dl_string_hwcap): New function, converts from string to hwcap
2349         encoding.
2350         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
2351         (_DL_HWCAP_COUNT): New.
2352         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
2353         (_dl_string_hwcap): New function, converts from string to hwcap
2354         encoding.
2355         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
2356         (_DL_HWCAP_COUNT): New.
2357         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
2358         (_dl_string_hwcap): New function, converts from string to hwcap
2359         encoding.
2361 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
2363         * elf/Makefile (distribute): Add dl-lookupcfg.h.
2364         * sysdeps/ia64/Dist: New file.
2366         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
2367         parameter to mprotect and for variable assignments.
2369 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
2371         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
2372         validity of map before dereferencing it.
2374         * elf/dl-reloc.c (RESOLVE_MAP): Define.
2376 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
2378         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
2379         lookup to the arguments to elf_machine_fixup_plt().
2381         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
2382         of the symbol being resolved to input argument list and make the
2383         function return the pointer to the reloc.
2385         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
2386         return valuie to lookup_t and return the value.
2387         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
2388         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
2389         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
2390         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
2391         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
2392         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
2394         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
2395         Make it an inline function returning value after calling
2396         __elf_machine_fixup_plt().
2398         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
2399         symbol address.
2401         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
2402         obtain the symbol address.
2404         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
2405         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
2407         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
2408         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
2409         inline on non ia64.
2411 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
2413         * elf/dl-runtime.c (fixup): Use the portable macros to get the
2414         symbol address of an object.
2416         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
2417         the symbol address of an object.
2419         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
2420         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
2421         (_dl_lookup_symbol_skip): Likewise.
2422         (_dl_lookup_versioned_symbol): Likewise.
2423         (_dl_lookup_versioned_symbol_skip): Likewise.
2425 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
2427         * elf/rtld.c (_dl_start): Get the function pointer return address
2428         via _dl_start_address for architectures that need a function
2429         pointer descriptor rather than just a pointer (ia64).
2431         * sysdeps/generic/dl-lookupcfg.h: New file.
2432         * sysdeps/ia64/dl-lookupcfg.h: New file.
2433         * sysdeps/ia64/dl-machine.h: New file.
2434         * sysdeps/ia64/dl-symaddr.c: New file.
2435         * sysdeps/ia64/dl-fptr.c: New file.
2437         * elf/elf.h: Add IA-64 specific definitions.
2439 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
2441         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
2442         end of enum.
2444 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
2446         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
2447         happy.
2449 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
2451         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
2452         symbol.  Call _dl_init rather than the old way.
2454 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
2456         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
2457         test for pointer in range of DSO address space.
2459 2000-05-04  Andreas Jaeger  <aj@suse.de>
2461         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
2463 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
2465         * locale/findlocale.c (_nl_find_locale): Add new parameter to
2466         calls of _nl_make_l10nflist.
2468         * libio/stdio.h: Make fseeko and ftello prototypes available is
2469         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
2471         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
2472         real unsetenv implementation from 1999-07-29 [PR libc/1714].
2474 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
2476         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
2477         before calling tfind.
2479 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
2481         * resolv/resolv.h (res_querydomain): Remove redefinition to
2482         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
2484 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
2486         * po/gl.po: Update from translation team.
2488         * manual/intro.texi (Program Basics): Change section title.
2489         * manual/process.texi: Fix reference.
2490         (Executing a File): Add reference exec in other section.
2491         * manual/signal.texi: Fix reference.
2492         * manual/startup.texi: Document syscall function.
2493         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
2495 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
2497         * intl/libintl.h (bind_textdomain_codeset): New declaration.
2498         * intl/bindtextdom.c (set_binding_values): New function.
2499         (bindtextdomain): Call it.
2500         (bind_textdomain_codeset): New function.
2501         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
2502         (free_mem): Free each binding's codeset.
2503         * intl/gettextP.h (struct binding): Add codeset field.
2504         (_nl_find_domain): Add domainbinding argument.
2505         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
2506         Pass it to _nl_make_l10nflist.
2507         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
2508         (_nl_make_l10nflist): Add domainbinding argument.
2509         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
2510         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
2511         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
2512         locale_charset().
2513         * manual/message.texi: New node "Charset conversion in gettext".
2515 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
2517         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
2518         appropriate.  Handle possible __read error.
2520 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
2522         * intl/gettextP.h (__builtin_expect): Define as empty if not a
2523         compiler builtin.
2524         * intl/loadinfo.h (__builtin_expect): Likewise.
2525         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
2526         __builtin_expect where appropriate.
2527         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2528         * intl/localealias.c (extend_alias_table): Return an error indicator.
2529         (read_alias_file): Bail out if extend_alias_table fails.
2531 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
2533         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
2534         * intl/localealias.c: Likewise.
2536 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
2538         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
2539         Initialize domain->plural and domain->nplurals even if there is no
2540         nullentry.
2542 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
2544         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
2545         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
2546         In case of failure, goto converted.
2548 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
2550         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
2551         * iconv/gconv_int.h (norm_add_slashes): Move to here.
2552         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
2553         __gconv_open.
2555 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
2557         * intl/dcigettext.c (transcmp): Compare the domains as well.
2558         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
2559         not before.
2560         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
2561         <errno.h>.
2563 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
2565         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
2566         Reported by Bruno Haible.
2568 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
2570         * manual/arith.texi: Remove @w from @itemize.
2572 2000-05-02  Andreas Jaeger  <aj@suse.de>
2574         * conform/data/tar.h-data: Add some checks for specific values.
2576         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
2577         and RAND_MAX.
2579         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
2580         FOPEN_MAX.
2582         * conform/data/netinet/in.h-data: Add exact checks for the values
2583         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
2585         * conform/data/float.h-data: Add some minimal values.
2587         * conform/conformtest.pl: Test for macros with string constants,
2588         check for minimum and maximum values.
2589         Add limits.h to headers.
2591         * conform/data/cpio.h-data: Test for value of MAGIC.
2593         * conform/data/limits.h-data: New file.
2595 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
2597         * math/Makefile (headers): Add bits/fenvinline.h.
2599 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
2601         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
2602         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
2604         * posix/Versions: Change posix_spawnattr_getdefault and
2605         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
2606         and posix_spawnattr_setsigdefault respectively.
2607         * posix/spawn.h: Likewise.
2608         * posix/spawnattr_getdefault.h: Likewise.
2609         * posix/spawnattr_setdefault.h: Likewise.
2610         * conform/data/spawn.h-data: Likewise.
2612 2000-05-01  Andreas Jaeger  <aj@suse.de>
2614         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
2616 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
2618         * manual/sysinfo.texi: Document getdomainname, setdomainname
2619         and sysctl.
2620         * manual/string.texi: Fix typo.
2621         * manual/terminal.texi: Document gtty and stty.
2622         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
2624 2000-04-30  Andreas Jaeger  <aj@suse.de>
2626         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
2627         accordance with Austin Draft.
2629 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
2631         * catgets/gencat.c (read_input_file): Use isblank and not isspace
2632         to recognize second character in comment line.
2634         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
2635         ENOBUFS if we are out of memory.
2637         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
2638         available if __USE_XOPEN2K.
2639         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
2640         * sysdeps/unix/common/bits/fcntl.h: Likewise.
2641         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2642         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2643         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2644         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2645         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
2646         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2648 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
2650         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
2651         Recognize option -s, -c, and -l.
2653 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
2655         * nscd/nscd.c: Start new session for nscd, drop privilegs
2656         to configured user if requested and no -S parameter are used.
2657         * nscd/nscd.conf: Add new option "server-user".
2658         * nscd/nscd_conf.c: Add support for new "server-user" option.
2659         * nscd/nscd.h: Add declaration for server_user variable.
2660         Based on patch by Chris Wing <wingc@engin.umich.edu>
2662 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
2664         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
2665         that changing the __restore and __restore_rt signal return code
2666         will break GDB.
2668 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
2670         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
2671         <sys/user.h>.
2673 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
2675         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
2677 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
2679         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
2680         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
2681         arpa/inet.h.
2682         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
2683         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
2684         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
2685         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
2686         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
2687         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
2688         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
2689         posix_fallocate, and posix_madvise.
2690         * conform/data/netdb.h-data: New file.
2691         * conform/data/pthread.h-data: Add pthread_barrier_t,
2692         pthread_barrierattr_t, pthread_barrier_destroy,
2693         pthread_barrier_init, pthread_barrier_wait,
2694         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
2695         pthread_barrierattr_init, pthread_barrierattr_setpshared,
2696         pthread_condattr_getclock, pthread_condattr_setclock,
2697         pthread_getcpuclockid, pthread_mutex_timedlock,
2698         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
2699         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
2700         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
2701         * conform/data/sched.h-data: Add sched_ss_low_priority,
2702         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
2703         SCHED_SPORADIC.
2704         * conform/data/semaphore.h-data: Add sem_timedwait.
2705         * conform/data/signal.h-data: Add SIGIO.
2706         * conform/data/spawn.h-data: New file.
2707         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
2708         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
2709         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
2710         Fix typo in gmtime_r definition.
2711         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
2712         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
2713         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
2714         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
2715         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
2716         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
2717         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
2718         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
2719         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
2720         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
2721         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
2722         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
2723         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
2724         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
2725         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
2726         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
2727         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
2728         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
2729         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
2730         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
2731         typo in off_t definition.
2732         * conform/data/net/if.h-data: New file.
2733         * conform/data/netinet/in.h-data: New file.
2734         * conform/data/netinet/tcp.h-data: New file.
2735         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
2736         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
2737         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
2738         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
2739         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
2740         and posix_typed_mem_open.
2741         * conform/data/sys/socket.h-data: New file.
2742         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
2743         * conform/data/sys/types.h-data: Add pthread_barrier_t,
2744         pthread_barrierattr_t, and pthread_spinlock_t.
2745         * conform/data/sys/un.h-data: New file.
2746         * conform/data/sys/utsname.h-data: New file.
2748         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
2749         parameter.
2750         * inet/gethstbyad.c (gethostbyname): Likewise.
2751         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
2752         * inet/getipnodebyad.c (getipnodebyad): Likewise.
2753         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
2754         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
2755         Likewise.
2756         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
2757         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
2758         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
2759         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
2760         * resolv/gethnamaddr.c (gethostbyname): Likewise.
2761         * resolv/netdb.h (struct hostent): Fix type of h_length member.
2762         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
2763         and second parameter.
2765         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
2766         == NULL.
2768 2000-04-29  Andreas Jaeger  <aj@suse.de>
2770         * conform/data/arpa/inet.h-data: New file.
2772 2000-04-28  Geoff Clare <gwc@unisoft.com>
2774         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
2775         path passed to ftw() or nftw() is an empty string.
2776         Closes PR libc/1710.
2778 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
2780         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
2781         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
2782         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
2783         * localedata/tst-mbswcs4.c: New file.
2784         * localedata/tst-mbswcs5.c: New file.
2786         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
2787         == NULL.  Little optimization.
2789         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
2790         DT_PREINIT_ARRAYSZ).
2791         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
2793         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
2794         overflows in conversion from ASCII.
2796 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
2798         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
2799         * Makerules (full_config_sysdirs): Likewise.
2800         * MakeTAGS (full_config_sysdirs): Likewise.
2802 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
2804         * .cvsignore: Remove linuxthreads.
2805         * po/.cvsignore: Remove *.pot.
2806         * posix/glob/.cvsignore: Removed.
2807         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
2809 2000-04-25  Andreas Jaeger  <aj@suse.de>
2811         * conform/Makefile (distribute): Also distribute contents of
2812         subdirectories.
2814         * Makerules (no_deps): Remove abi-versions.h.
2816         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
2818 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
2820         * sysdeps/sparc/sparc64/elf/Dist: Remove.
2821         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
2822         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
2823         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
2824         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
2825         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
2826         objects.
2828 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
2830         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
2832 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
2834         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
2835         * intl/l10nflist.c: Likewise.
2837 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
2839         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
2840         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
2841         * intl/textdomain.c [!_LIBC]: Likewise.
2842         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
2843         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
2844         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
2845         syntax error.
2847 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
2849         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
2850         character set conversion also in the case the translation was found
2851         after a hash collision or through binary search.  Store the maximum
2852         index together with the converted message.  Use iconv() when available.
2853         In case of out of memory during conversion, return the unconverted
2854         translated string, not NULL.
2856 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
2858         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
2859         to avoid name clashes with the ia32 linker.
2861 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
2863         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
2864         handling.
2866 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
2868         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
2869         strtoumax, strfry, and memfrob.
2870         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
2871         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
2873         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
2874         if this function is available.
2876         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
2877         all values.
2879 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
2881         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
2883 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
2885         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
2886         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
2887         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
2888         * localedata/tst-mbswcs3.c: New file.
2890 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
2892         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
2893         characters.  Don't handle incomplete characters as errors.
2894         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
2895         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
2896         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
2897         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
2898         * localedata/tst-mbswcs2.c: New file.
2900         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
2901         stored character in state in UNPACK_BYTES macro.
2902         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
2903         test for available characters, handle result of BODY code correctly.
2904         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
2905         (distribute): Add tst-mbswcs.sh.
2906         Add rule to run tst-mbswcs.sh.
2907         * localedata/tst-mbswcs.sh: New file.
2908         * localedata/tst-mbswcs1.c: New file.
2910 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
2912         * nis/nis_callback.c (__nis_create_callback): Do failed memory
2913         allocation fixups centrally, fix __builtin_expect call, return NULL
2914         on failure, not NIS_NOMEMORY.
2916 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
2918         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
2920         * intl/loadinfo.h (internal_function): Define if not already defined.
2922 2000-04-27  Andreas Jaeger  <aj@suse.de>
2924         * intl/libintl.h: Fix typo, reported by Bruno Haible
2925         <haible@clisp.cons.org>.
2927 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
2929         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
2930         setting the state to GMON_PROF_BUSY.
2932 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
2934         * elf/dl-profile.c (_dl_start_profile): define all variables which
2935         do not have to be global as local variables.
2937         * nis/nis_callback.c (__nis_create_callback): Partially undo last
2938         patch.  Keep needed tests for failed memory allocation.
2940         * elf/dl-reloc.c (_dl_relocate_object): Add one more
2941         __builtin_expect saying that we don't normally expect to profile.
2943         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
2944         __builtin_expect where desirable.
2946 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
2948         * manual/Makefile (chapters): Add syslog.
2949         * manual/syslog.texi: New file.
2950         * manual/math.texi: Fix references.
2951         * manual/terminal.texi: Likewise.
2952         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
2954 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
2956         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
2957         stdlib.h was not included or __USE_XOPEN not defined.
2959 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
2961         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
2962         Patch by Zack Weinberg <zack@wolery.cumb.org>.
2964 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
2966         * manual/examples/subopt.c (mount_opts): Add missing terminating
2967         entry.
2968         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
2970         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
2971         * libio/ftello.c: Likewise.
2972         * libio/ftello64.c: Likewise.
2973         * libio/ioftell.c: Likewise.
2974         * sysdeps/generic/memrchr.c: Likewise.
2975         * sysdeps/posix/libc_fatal.c: Likewise.
2976         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2977         * misc/fstab.c: Include <string.h> for strcmp prototype.
2978         * sysdeps/generic/ldsodefs.h: Likewise.
2979         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2980         Patch by Kurt Roeckx <Q@ping.be>.
2982         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
2983         Remove db-open.  Change all uses.
2984         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
2986 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
2988         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
2989         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
2990         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
2991         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
2992         with .set noat/at to shut up warnings.
2993         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
2994         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
2995         compilation if __NR_pciconfig_iobase is not defined.
2996         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
2997         Add alias.
2999 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
3001         * manual/sysinfo.texi: Fix typo.
3002         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
3003         Replace "high precision time" with "high accuracy clock".
3004         Fix language.
3005         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
3007         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
3008         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
3009         instead of malloc.
3010         * nis/nis_subr.c: Use __builtin_expect.
3011         * nis/ypclnt.c: Likewise.
3012         * nis/nis_getservlist.c: Likewise.
3013         * nis/nis_creategroup.c: Likewise.
3015         * nis/nis_callback.c (__nis_create_callback): Check result of
3016         memory allocation.  Fix memory leaks.  Use __builtin_expect.
3017         (__nis_destroy_callback): Fix memory leaks.
3019 2000-04-21  Andreas Jaeger  <aj@suse.de>
3021         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
3022         * sysdeps/mips/mips64/add_n.S: Likewise.
3023         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
3024         * sysdeps/mips/mips64/lshift.S: Likewise.
3025         * sysdeps/mips/mips64/mul_1.S: Likewise.
3026         * sysdeps/mips/mips64/rshift.S: Likewise.
3027         * sysdeps/mips/mips64/setjmp.S: Likewise.
3028         * sysdeps/mips/mips64/sub_n.S: Likewise.
3029         * sysdeps/mips/mips64/submul_1.S: Likewise
3030         * sysdeps/unix/mips/sysdep.S: Likewise.
3032         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
3033         and update comment.  The strtab from _dl_relocate_object can be
3034         used.
3036 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
3038         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
3039         * iconv/iconv_close.c (iconv_close): Likewise.
3040         * iconv/iconv_open.c (iconv_open): Likewise.
3042         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
3043         __builtin_expect where useful.
3045         * grp/initgroups.c (initgroups): Test for result of memory
3046         allocation and punt if it fails.
3048         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
3049         * grp/fgetgrent.c (fgetfrent): Likewise.
3050         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
3052 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
3054         * libio/vasprintf.c: Include string.h to get memcpy prototype.
3056 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
3058         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
3059         don't search for NUL byte to decrement counter.
3060         Reported by Ulrich.Brink@sap.com.
3062         * iconv/gconv_simple.c: Define separate functions to convert from
3063         UCS4/UCS4-LE to the internal encoding.
3064         * iconv/gconv_builtin.h: Use separate functions to convert from
3065         UCS4/UCS4-LE to the internal encoding.
3066         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
3067         __gconv_transform_ucs4le_internal.
3069         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
3070         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
3072         * iconv/skeleton.c: Add some more __builtin_expect.
3073         * iconv/loop.c: Likewise.
3075 2000-03-08  H.J. Lu  <hjl@gnu.org>
3077         * posix/regex.c (regex_compile): Correctly handle "\{" when
3078         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
3080 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
3082         * manual/stdio.texi: Give advise about handling error when using
3083         stream functions.
3084         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
3086 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
3088         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
3089         field to nelems * sizeof (uint32_t).
3090         * locale/programs/ld-address.c (address_output): Align word fields
3091         properly.
3092         * locale/programs/ld-monetary.c (monetary_output): Likewise.
3093         Don't restart idx pointers to idx end at the duo_int_curr_symbol
3094         field.
3095         Avoid giving arbitrary garbage in the crncystr field.
3096         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
3097         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
3098         fields.
3099         * locale/programs/ld-numeric.c (numeric_output): Likewise.
3100         Don't restart idx pointers to idx end at the decimal_point_wc field.
3101         * locale/programs/ld-time.c (time_output): week_1stday should be
3102         word, not byte.  Align it properly.
3104 2000-04-19  H.J. Lu  <hjl@gnu.org>
3106         * csu/gmon-start.c (_start): Declared as "extern void".
3107         (etext): Likewise.
3109 2000-04-18  Andreas Jaeger  <aj@suse.de>
3111         * manual/install.texi (Running make install): Don't mention utmpd
3112         anymore.
3114 2000-04-18  Andreas Jaeger  <aj@suse.de>
3116         * linuxthreads/Versions: Use ld instead of ld.so.
3118         * elf/Makefile (ld-map): Use ld.map.
3120         * Versions.def: Use ld instead of ld.so.
3121         * elf/Versions: Likewise.
3122         * sysdeps/mach/hurd/Versions: Likewise.
3124 2000-04-20  Andreas Jaeger  <aj@suse.de>
3126         * elf/rtld.c (print_statistics): Move ifndef further up.
3127         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
3128         (dl_main): Likewise.
3130 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
3132         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
3133         * gmon/Versions: Move moncontrol to GLIBC_2.2.
3135         * po/cs.po: Update from translation team.
3137         * sysdeps/generic/updwtmp.c: Remove daemon support.
3139         * login/Makefile (routines): Remove utmp_daemon.
3141         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
3142         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
3143         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
3144         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
3146         * elf/rtld.c: Display statitics option also if hp timing is not
3147         available.
3149         * login/programs/connection.c: Removed.
3150         * login/programs/database.c Removed.
3151         * login/programs/error.c: Removed.
3152         * login/programs/request.c: Removed.
3153         * login/programs/xtmp.c: Removed.
3154         * login/programs/xtmp.h: Removed.
3155         * login/Makefile: Remove rules for utmpd.
3156         * login/README.utmpd: Removed.
3157         * login/utmp_daemon.c: Removed.
3158         * login/getutent_r.c: Remove references to daemon functions.
3159         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
3160         declaration.
3162 2000-04-18  Andreas Jaeger  <aj@suse.de>
3164         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
3165         2.2 for libnsl, libresolv, librt, libnss_*.
3167         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
3169         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
3171 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
3173         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
3174         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
3175         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
3176         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
3177         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
3178         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
3179         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
3180         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
3181         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
3182         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
3183         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
3184         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
3185         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
3186         it here.
3187         * sysdeps/unix/sysv/aix/msync.c: New file.
3188         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
3189         * sysdeps/unix/sysv/aix/net/if.h: New file.
3190         * sysdeps/unix/sysv/aix/pipe.c: New file.
3191         * sysdeps/unix/sysv/aix/poll.c: New file.
3192         * sysdeps/unix/sysv/aix/rename.c: New file.
3193         * sysdeps/unix/sysv/aix/rmdir.c: New file.
3194         * sysdeps/unix/sysv/aix/select.c: New file.
3195         * sysdeps/unix/sysv/aix/semctl.c: New file.
3196         * sysdeps/unix/sysv/aix/semget.c: New file.
3197         * sysdeps/unix/sysv/aix/semop.c: New file.
3198         * sysdeps/unix/sysv/aix/sendto.c: New file.
3199         * sysdeps/unix/sysv/aix/setgroups.c: New file.
3200         * sysdeps/unix/sysv/aix/setpgid.c: New file.
3201         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
3202         * sysdeps/unix/sysv/aix/setpriority.c: New file.
3203         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
3204         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
3205         * sysdeps/unix/sysv/aix/setsid.c: New file.
3206         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
3207         * sysdeps/unix/sysv/aix/shmat.c: New file.
3208         * sysdeps/unix/sysv/aix/shmctl.c: New file.
3209         * sysdeps/unix/sysv/aix/shmdt.c: New file.
3210         * sysdeps/unix/sysv/aix/shmget.c: New file.
3211         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
3212         * sysdeps/unix/sysv/aix/sigstack.c: New file.
3213         * sysdeps/unix/sysv/aix/socket.c: New file.
3214         * sysdeps/unix/sysv/aix/socketpair.c: New file.
3215         * sysdeps/unix/sysv/aix/speed.c: New file.
3216         * sysdeps/unix/sysv/aix/symlink.c: New file.
3217         * sysdeps/unix/sysv/aix/sync.c: New file.
3218         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
3219         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
3220         * sysdeps/unix/sysv/aix/times.c: New file.
3221         * sysdeps/unix/sysv/aix/ulimit.c: New file.
3222         * sysdeps/unix/sysv/aix/umask.c: New file.
3223         * sysdeps/unix/sysv/aix/unlink.c: New file.
3224         * sysdeps/unix/sysv/aix/ustat.c: New file.
3225         * sysdeps/unix/sysv/aix/utimes.c: New file.
3227 2000-04-18  Andreas Jaeger  <aj@suse.de>
3229         * manual/startup.texi (Environment Access): Fix putenv prototype
3230         according to recent changes.
3231         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
3232         PR libc/1692.
3234         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
3235         needed.
3237 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
3239         * posix/Makefile (tests): Add tst-getaddrinfo.
3240         * posix/tst-getaddrinfo.c: New file.
3242 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
3244         * manual/sysinfo.texi: Document that umount2 is not widely available.
3246         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
3247         signal timing is not really implemented.
3249 2000-04-17  Andreas Jaeger  <aj@suse.de>
3251         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
3253 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
3255         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
3256         and inst_libdir.
3258 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
3260         * manual/intro.texi: Change reference from System Information to
3261         System Management.
3262         * manual/users.texi: Likewise.
3263         * manual/conf.texi: Likewise.
3264         * manual/sysinfo.texi: Document mount, umount, and umount2.
3265         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
3267 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
3269         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
3270         Create wnumstr as well as numstr to support wide character output
3271         correctly.
3273 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
3275         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
3276         modification and move it...
3277         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
3278         Add -melf64_sparc switch to $(LD) on sparc64-linux.
3279         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
3280         switch to $(LD) on sparc-linux.
3282 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
3284         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
3285         and setresuid from sysdep_routines.
3287 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
3289         * manual/Makefile (chapters): Add resource.
3291         * manual/time.texi: Move section on resources to...
3292         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
3293         and vtimes.
3294         * manual/setjmp.texi: Adjust back reference.
3295         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
3297         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
3298         definition.
3299         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
3300         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
3301         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
3302         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
3303         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
3304         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
3305         * sysdeps/unix/sysv/aix/close.c: Add copyright.
3306         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
3307         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
3308         * sysdeps/unix/sysv/aix/access.c: Add copyright.
3309         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
3310         * sysdeps/unix/sysv/aix/Implies: New file.
3311         * sysdeps/unix/sysv/aix/Versions: New file.
3312         * sysdeps/unix/sysv/aix/bind.c: New file.
3313         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
3314         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
3315         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
3316         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
3317         * sysdeps/unix/sysv/aix/chdir.c: New file.
3318         * sysdeps/unix/sysv/aix/chmod.c: New file.
3319         * sysdeps/unix/sysv/aix/chroot.c: New file.
3320         * sysdeps/unix/sysv/aix/creat.c: New file.
3321         * sysdeps/unix/sysv/aix/dl-close.c: New file.
3322         * sysdeps/unix/sysv/aix/dl-open.c: New file.
3323         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
3324         * sysdeps/unix/sysv/aix/fchdir.c: New file.
3325         * sysdeps/unix/sysv/aix/fchmod.c: New file.
3326         * sysdeps/unix/sysv/aix/getgroups.c: New file.
3327         * sysdeps/unix/sysv/aix/gethostname.c: New file.
3328         * sysdeps/unix/sysv/aix/getpriority.c: New file.
3329         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
3330         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
3331         * sysdeps/unix/sysv/aix/getrusage.c: New file.
3332         * sysdeps/unix/sysv/aix/link.c: New file.
3333         * sysdeps/unix/sysv/aix/madvise.c: New file.
3334         * sysdeps/unix/sysv/aix/mkdir.c: New file.
3335         * sysdeps/unix/sysv/aix/mknod.c: New file.
3336         * sysdeps/unix/sysv/aix/mprotect.c: New file.
3337         * sysdeps/unix/sysv/aix/msgctl.c: New file.
3338         * sysdeps/unix/sysv/aix/msgget.c: New file.
3339         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
3341 2000-04-17  Andreas Jaeger  <aj@suse.de>
3343         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
3344         as suggested by Ulrich Drepper.
3345         (__dl_runtime_resolve): Remove unused variable, initialize sym
3346         directly.
3347         (RTLD_START): Document OFFSET_GP_GOT.
3348         (OFFSET_GP_GOT): New magic value.
3349         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
3350         (elf_machine_got_rel): Only declare strtab if needed.
3351         (elf_machine_relplt): Removed, it's not needed.
3352         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
3354         * sysdeps/mips/add_n.S: Add newline at EOF.
3355         * sysdeps/mips/rshift.S: Likewise.
3356         * sysdeps/mips/mul_1.S: Likewise.
3357         * sysdeps/mips/lshift.S: Likewise.
3358         * sysdeps/mips/addmul_1.S: Likewise.
3360 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
3362         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
3364         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
3365         * elf/dl-lookup.c: Likewise.
3366         * elf/dl-init.c (_dl_init): Likewise.
3367         * elf/dl-fini.c (_dl_fini): Likewise.
3368         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3369         * elf/dl-close.c (_dl_close): Likewise.
3370         * elf/rtld.c (_dl_start_final): Likewise.
3372         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
3374 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
3376         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
3377         only fall back on using Linux.
3379         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
3380         Before testing versions check that we actually loaded the object
3381         and whether we are in trace mode.  If not loaded during tracing don't
3382         test versions in this object.
3383         (_dl_check_all_versions): Take new parameter and pass to
3384         _dl_check_map_versions.
3385         * sysdeps/generic/ldsodefs.h: Update prototypes for
3386         _dl_check_all_versions and _dl_check_map_versions.
3387         * elf/rtld.c (struct version_check_args): Add dotrace.
3388         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
3389         (dl_main): Pass info about trace mode to version_check_doit.
3390         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
3391         _dl_check_all_versions.
3393         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
3394         and getutmpx.
3395         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
3397         * manual/argp.texi: Document index parameter of argp_parse.
3398         Fix typo.
3399         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
3401 2000-04-14  Andreas Jaeger  <aj@suse.de>
3403         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
3404         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
3406         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
3408 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
3410         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
3411         compat_symbol call for old adjtime.
3413         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
3414         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
3416         * posix/Makefile (headers): Add spawn.h.
3417         (distribute): Add spawn_int.h.
3418         (routines): Add spawn_faction_init, spawn_faction_destroy,
3419         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
3420         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
3421         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
3422         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
3423         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
3424         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
3425         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
3426         posix_spawnattr_init, posix_spawnattr_destroy,
3427         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
3428         posix_spawnattr_getflags, posix_spawnattr_setflags,
3429         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
3430         and posix_spawnp.
3431         * posix/spawn.c: New file.
3432         * posix/spawn.h: New file.
3433         * posix/spawn_faction_addclose.c: New file.
3434         * posix/spawn_faction_adddup2.c: New file.
3435         * posix/spawn_faction_addopen.c: New file.
3436         * posix/spawn_faction_destroy.c: New file.
3437         * posix/spawn_faction_init.c: New file.
3438         * posix/spawn_int.h: New file.
3439         * posix/spawnattr_destroy.c: New file.
3440         * posix/spawnattr_getdefault.c: New file.
3441         * posix/spawnattr_getflags.c: New file.
3442         * posix/spawnattr_getpgroup.c: New file.
3443         * posix/spawnattr_getschedparam.c: New file.
3444         * posix/spawnattr_getschedpolicy.c: New file.
3445         * posix/spawnattr_getsigmask.c: New file.
3446         * posix/spawnattr_init.c: New file.
3447         * posix/spawnattr_setdefault.c: New file.
3448         * posix/spawnattr_setflags.c: New file.
3449         * posix/spawnattr_setpgroup.c: New file.
3450         * posix/spawnattr_setschedparam.c: New file.
3451         * posix/spawnattr_setschedpolicy.c: New file.
3452         * posix/spawnattr_setsigmask.c: New file.
3453         * posix/spawni.c: New file.
3454         * posix/spawnp.c: New file.
3456         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
3457         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3459 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
3461         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
3462         * malloc/malloc.c: Implement posix_memalign for glibc.
3463         * include/stdlib.h: Add prototype for __posix_memalign.
3464         * stdlib/stdlib.h: Add prototype for posix_memalign.
3466 2000-04-14  Andreas Jaeger  <aj@suse.de>
3468         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
3469         symidx correctly.
3470         (elf_machine_got_rel): Cast sym correctly.
3472         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
3473         * sysdeps/mips/addmul_1.S: Likewise.
3474         * sysdeps/mips/lshift.S: Likewise.
3475         * sysdeps/mips/mul_1.S: Likewise.
3476         * sysdeps/mips/rshift.S: Likewise.
3477         * sysdeps/mips/sub_n.S: Likewise.
3478         * sysdeps/mips/submul_1.S: Likewise.
3480         * stdlib/stdlib.h: Fix typo in comment.
3482         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
3483         2.2 for libdl, ld and libm.
3485         * sysdeps/generic/madvise.c: Fix typos.
3487         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
3489         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
3491         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
3492         warnings.
3494 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
3496         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
3497         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
3498         Make old name weak alias.
3499         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
3500         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
3501         Make old name weak alias.
3502         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
3504         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
3505         posix_fallocate, and posix_fallocate64.
3506         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
3507         posix_fallocate, and posix_fallocate64.
3508         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
3509         posix_fallocate, and posix_fallocate64.
3510         * sysdeps/generic/fadvise.c: New file.
3511         * sysdeps/generic/fadvise64.c: New file.
3512         * sysdeps/generic/fallocate.c: New file.
3513         * sysdeps/generic/fallocate64.c: New file.
3514         * sysdeps/posix/fallocate.c: New file.
3515         * sysdeps/posix/fallocate64.c: New file.
3516         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
3517         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
3518         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
3519         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
3520         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3521         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
3522         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3523         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
3524         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3526         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
3527         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3529 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
3531         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
3532         * misc/sys/mman.h (posix_madvise): Add prototype.
3533         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
3534         old name and posix_madvise weak aliases.
3535         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3536         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
3537         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
3538         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3539         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3540         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
3541         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3543 2000-04-13  Andreas Jaeger  <aj@suse.de>
3545         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
3546         versioning.
3547         (elf_machine_got_rel): Only add runtime display if needed.
3548         (elf_machine_got_rel): Handle symbol versioning.
3550 2000-04-13  Andreas Jaeger  <aj@suse.de>
3552         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
3554         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
3555         default.
3557         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
3558         with some applications.
3559         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
3561         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
3562         * sysdeps/mips/bsd-_setjmp.S: Likewise.
3563         * sysdeps/mips/setjmp.S: Likewise.
3565         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
3567 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
3569         * posix/globtest.sh: Work around inconsistency with expanding ~/
3570         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
3572 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
3574         * posix/getconf.c: Add support for many more POSIX options.
3575         * sysdeps/posix/sysconf.c: Likewise.
3576         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
3577         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
3578         _POSIX_SHELL.
3579         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3580         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
3581         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
3582         CLOCK_THREAD_CPUTIME_ID.
3583         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
3584         CLOCK_PROCESS_CPUTIME_ID.
3585         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
3586         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
3587         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
3588         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
3590         * malloc/Makefile (tests): Add tst-calloc.
3591         * malloc/tst-calloc.c: New file.
3593         * sysdeps/arm/libm-test-ulps: New file.
3595         * malloc/malloc.c: Undo all of today's changes.
3597         * locale/programs/locale.c (show_info): Don't try to look into
3598         data for LC_ALL (there is none).
3600         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
3601         avoid writing over boundary.
3602         Patch by Greg McGary <gkm@eng.ascend.com>.
3604         * sysdeps/arm/memprof.h: New file.
3606 2000-04-12  Andreas Jaeger  <aj@suse.de>
3608         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
3610         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
3611         for memmem declaration.
3613 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
3615         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
3616         to -1.
3617         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
3619         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
3620         mode is invalid.
3621         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
3622         Patch by Bart Veer <bartv@redhat.com>.
3624         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
3625         function interface.
3627 2000-04-11  Andreas Jaeger  <aj@suse.de>
3629         * sysdeps/mips/dl-machine.h: Update some comments.
3630         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
3632 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
3634         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
3635         _POSIX_SHARED_MEMORY_OBJECTS.
3637         * rt/Makefile (tests): Add tst-shm.
3638         Add rules to generate tst-shm.
3639         * rt/tst-shm.c: New file.
3641         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
3642         for descriptor.
3644         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
3645         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
3646         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
3647         * sysdeps/generic/shm_open.c: New file.
3648         * sysdeps/generic/shm_unlink.c: New file.
3649         * sysdeps/unix/sysv/linux/shm_open.c: New file.
3650         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
3651         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
3652          __endmntent, __getmntent_r, __setmntent, and __statfs.
3654         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
3655         fragmentation by allocating new memory at the end instead of
3656         reallocating.
3658         * posix/globtest.sh: Fix last change.
3660 2000-04-10  Philip Blundell  <philb@gnu.org>
3662         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
3663         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
3664         IPV6_DROP_MEMBERSHIP.
3665         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
3666         Likewise.
3668 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
3670         * elf/readlib (process_file): Close streams in case of an error.
3672 2000-04-09  Andreas Jaeger  <aj@suse.de>
3674         * elf/readlib.c (process_file): Check if file is big enough to
3675         contain aout and ELF headers.
3676         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
3678 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
3680         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
3682 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
3684         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
3685         stream unbuffered.
3686         * rt/Makefile (tests): Add tst-clock.
3687         Add rules to build tst-clock.
3688         * rt/tst-clock.c: New file.
3689         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
3690         about initialization of nsec.
3691         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
3692         about initialization of freq.  Set retval to zero if successful.
3693         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
3695 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
3697         * Versions.def (librt): Add GLIBC_2.2.
3698         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
3699         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
3700         timer_getoverr, timer_gettime, and timer_settime.
3701         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
3702         clock_settime, timer_create, timer_delete, timer_getoverrun,
3703         timer_gettime, and timer_settime.
3704         * sysdeps/generic/clock_getcpuclockid.c: New file.
3705         * sysdeps/generic/get_clockfreq.c: New file.
3706         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
3707         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
3708         * sysdeps/mach/hurd/i386/bits/time.h: New file.
3709         * sysdeps/unix/i386/i586/clock_getres.c: New file.
3710         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
3711         * sysdeps/unix/i386/i686/Implies: New file.
3712         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
3713         * time/Makefile (routines): Move clock_getres, clock_gettime,
3714         clock_settime, timer_create, timer_delete, timer_getoverr,
3715         timer_gettime, and timer_settime to rt/Makefile.
3716         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
3717         clock_settime, timer_create, timer_delete, timer_getoverrun,
3718         timer_gettime, and timer_settime.
3719         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
3721         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
3722         and not const as attribute name.
3724 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
3726         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
3728 2000-04-10  Andreas Schwab  <schwab@suse.de>
3730         * posix/globtest.sh: Skip tests that depend on unreadable
3731         directories if run as root.
3733 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
3735         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
3736         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
3738 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
3740         * sysdeps/unix/clock_gettime.c: New file.
3741         * sysdeps/unix/clock_settime.c: New file.
3742         * sysdeps/posix/clock_getres.c: New file.
3744         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
3746         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
3747         lseek call be passing in a buffer which never allow a successful
3748         first getdents syscall if not at leas the initial entry can be
3749         stored in the user buffer.
3751         * localedata/Makefile: Add rules to clean up directories created by
3752         new strfmon tests.
3754 2000-04-09  Geoff Clare  <gwc@unisoft.com>
3756         * localedata/tst-fmon.data: Added new tests for strfmon()
3757         using test locales with all combinations of cs_precedes,
3758         sign_posn and sep_by_space.
3759         * localedata/tst-fmon.sh: Updated to support the new tests.
3760         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
3761         the localedef source for the new strfmon() test locale.
3762         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
3763         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
3764         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
3765         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
3766         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
3767         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
3768         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
3769         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
3770         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
3771         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
3772         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
3773         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
3774         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
3775         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
3777         * stdlib/strfmon.c: Correct problems with missing or extra
3778         spaces for unusual combinations of sign_posn and sep_by_space.
3779         Improved left-precision alignment code.
3781 2000-04-07  Andreas Jaeger  <aj@suse.de>
3783         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
3785 2000-04-10  Andreas Jaeger  <aj@suse.de>
3787         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
3789 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
3791         Implement handling of restartable conversion functions according to
3792         ISO C.
3793         * iconv/gconv.h (__gconv_fct): Add additional parameter.
3794         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
3795         * iconv/gconv.c: Pass additional parameter to conversion function.
3796         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
3797         (internal_ucs4le_loop_single): New function.
3798         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
3799         (__gconv_transform_internal_ascii): Likewise.
3800         (__gconv_transform_internal_utf8): Likewise.
3801         (__gconv_transform_utf8_internal): Likewise.
3802         (__gconv_transform_ucs2_internal): Likewise.
3803         (__gconv_transform_internal_ucs2): Likewise.
3804         (__gconv_transform_ucs2reverse_internal): Likewise.
3805         (__gconv_transform_internal_ucs2reverse): Likewise.
3806         (internal_ucs4le_loop_unaligned): Before return
3807         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
3808         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
3809         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
3810         * iconv/loop.c: Fit in definition of function to convert one character
3811         for processing of left-over bytes from the state object.
3812         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
3813         inend to match names in loop functions.
3814         (RESET_INPUT_BUFFER): Change apprpriately.
3815         (gconv): If needed, call function to process bytes from the state
3816         object.  Similar at the end: store left over bytes if input is
3817         incomplete.
3818         Take extra argument and add new argument to all calls of the
3819         conversion function.
3820         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
3821         information in the state object to not conflict with length count.
3822         * iconvdata/iso-2022-jp.c: Likewise.
3823         * iconvdata/iso-2022-kr.c: Likewise.
3824         * iconvdata/unicode.c: Adjust for change change in parameters of
3825         skeleton function.
3826         * iconvdata/utf-16.c: Likewise.
3827         * libio/iofwide.c: Add new parameter to all calls of conversion
3828         function.
3829         * wcsmbs/btowc.c: Likewise.
3830         * wcsmbs/mbrtowc.c: Likewise.
3831         * wcsmbs/mbsnrtowcs.c: Likewise.
3832         * wcsmbs/mbsrtowcs.c: Likewise.
3833         * wcsmbs/wcrtomb.c: Likewise.
3834         * wcsmbs/wcsnrtombs.c: Likewise.
3835         * wcsmbs/wcsrtombs.c: Likewise.
3836         * wcsmbs/wctob.c: Likewise.
3838         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
3839         MAX_NEEDED_INPUT.
3841 2000-04-07  Andreas Jaeger  <aj@suse.de>
3843         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
3844         newer kernels.
3846 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
3848         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
3849         element a union to allow byte access.
3850         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
3851         mbstate_t.
3852         * iconvdata/iso-2022-jp.c: Likewise.
3853         * iconvdata/iso-2022-kr.c: Likewise.
3854         * wcsmbs/mbsinit.c: Likewise.
3855         * stdlib/mblen.c: Likewise.
3856         * stdio-common/printf-parse.h: Likewise.
3858 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
3860         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
3861         kernel does not allow relative seeks on descriptors associated
3862         with directories.  Go back to get the position in the directory
3863         every time we enter the function.  Return -1 and set errno if one
3864         entry could be read from the kernel but does not fit into the
3865         buffer passed in by the user.
3867         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
3868         Support ..(2).. ellipsis.
3869         (parse_charmap): Recognize ..(2).. etc and pass step down.
3870         Correctly generate names for UCS4 characters.
3872         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
3873         (ctype_finish): We know the wide character value for <SP>,
3874         don't search.
3875         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
3876         (charclass_ucs4_ellipsis): Likewise.
3877         (read_translit_ignore_entry): Store ellipsis step.
3878         (ctype_read): Recognize ..(2).. etc and pass step down.
3880         * locale/programs/linereader.c (lr_token): When seeing comment
3881         character ignore only rest of line in sources but stop at escaped
3882         newline.
3883         Recognize ..(2).. and ....(2).....
3885         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
3886         and tok_ellipsis4_2.
3888 2000-04-06  Andreas Jaeger  <aj@suse.de>
3890         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
3891         removed, remove it here also.
3892         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
3893         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
3894         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
3895         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
3897 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
3899         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
3900         include bits/sigcontext.h.
3901         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
3903 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
3905         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
3906         collation symbol definition.  Value in quivalence definition must
3907         be defined, don't check that it is not.
3909         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
3910         values as character names.
3912         * locale/programs/ld-ctype.c (get_character): Handle missing
3913         repertoire map correctly.
3915 2000-04-05  Cristian Gafton  <gafton@redhat.com>
3917         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
3918         because it is used in generic code.
3919         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
3920         * wcsmbs/wcwidth.h: Declare __ctype32_b.
3921         * intl/gettext.c: Include <locale.h>.
3922         * intl/ngettext.c: Likewise.
3924 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
3926         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
3927         socklen_t type for size.
3928         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
3929         init function interface.
3930         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3931         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
3932         sys/ucontext.h.
3933         (__jmp_buf): Declare the whole type structure here, don't use
3934         ucontext.
3936 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
3938         * iconv/skeleton.c (put16u): Fix typo.
3939         Reported by Bruno Haible <haible@ilog.fr>.
3941         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
3942         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
3943         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
3944         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
3945         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
3946         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
3948         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
3949         * Makefile (distribute): Add abi-versions.awk and
3950         firstversions.awk.
3951         Patches by Torsten Duwe <duwe@caldera.de>.
3953 2000-04-05  Andreas Schwab  <schwab@suse.de>
3955         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
3957 2000-04-05  Andreas Schwab  <schwab@suse.de>
3959         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
3960         entry point, used on Hurd.
3962 2000-04-04  Andreas Jaeger  <aj@suse.de>
3964         * intl/Makefile: Only run the gettext test with shared libraries.
3966 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
3968         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
3969         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
3971 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
3973         * Makeconfig: Undo last change.
3974         * configure.in: If --disable-shared was given, don't set VERSIONING,
3975         don't define DO_VERSIONING, and don't give scare warning for no
3976         versioning.
3977         * configure: Regenerated.
3979 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
3981         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
3983 2000-04-04  Andreas Jaeger  <aj@suse.de>
3985         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
3987 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
3989         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
3990         STV_HIDDEN and STV_INTERNAL during lookup.
3991         (profile_fixup): Likewise.
3992         * elf/dl-reloc.c (RESOLVE): Likewise.
3994         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
3995         unaligned so that it compiles for system which need unaligned
3996         access handling.
3998 2000-04-04  Andreas Schwab  <schwab@suse.de>
4000         * elf/cache.c (print_entry): Only look at the type field when
4001         printing the type.
4003 2000-04-04  Andreas Schwab  <schwab@suse.de>
4005         * iconvdata/big5.c (BODY): Fix typo.
4007 2000-04-04  Andreas Schwab  <schwab@suse.de>
4009         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
4010         function interface.  Remove unused _dl_start_user entry point.
4012 2000-04-03  Andreas Jaeger  <aj@suse.de>
4014         * include/arpa/inet.h (__inet_aton): Add protoype.
4016 2000-04-01  Andreas Jaeger  <aj@suse.de>
4018         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
4020         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
4021         * sysdeps/mach/mips/thread_state.h: Likewise.
4023         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
4024         * sysdeps/generic/fegetenv.c: Likewise.
4025         * sysdeps/generic/fesetenv.c: Likewise.
4026         * sysdeps/generic/feupdateenv.c: Likewise.
4027         * sysdeps/generic/fraiseexcpt.c: Likewise.
4028         * sysdeps/generic/fsetexcptflg.c: Likewise.
4029         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
4030         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
4031         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
4032         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4034 2000-04-02  H.J. Lu  <hjl@gnu.org>
4036         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
4038 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
4040         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
4041         (add_name_to_object): Add cast in malloc call.
4042         (fillin_rpath): Optimize loop to initialize ->status a bit.
4044         * sysdeps/i386/dl-machine.h: Undo last change.
4045         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
4046         Restore %edx register after call here.
4048         * sysdeps/arm/atomicity.h: New file.
4049         Contributed by Jesper Skov <jskov@redhat.com>.
4051 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
4053         * Makeconfig (preprocess-versions): Undo last change.
4054         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
4056         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
4057         here, before we might move the stack.
4058         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
4059         (init1): And not here.
4061         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
4062         change, to restore argc value in call-clobbered register after
4063         RTLD_START_SPECIAL_INIT, which will contain a call.
4065         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
4066         allocating and initializing L->l_initfini.
4068         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
4070 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
4072         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
4073         RUNPATH, RPATH, and LD_LIBRARY_PATH.
4074         (open_path): Change type of fourth parameter.  Make pointer to array
4075         of pointers.  Create variable dirs with original type.
4076         Track whether any directory for the object exists and if not,
4077         change *DIRSP to (void*) -1 to signal there is no such search path.
4078         (_dl_map_object): Change all calls of open_path.
4079         Rewrite decompose_rpath calls.
4081 2000-03-31  Andreas Schwab  <schwab@suse.de>
4083         * string/strfry.c: Declare STATE as array of char instead of int
4084         and do not initialize it (done by initstate_r).  Pass correct
4085         size.
4087 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
4089         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
4091         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
4092         instruction out of the code.
4094 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
4096         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
4097         element at this position.
4099         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
4100         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
4101         l_reldeps elements.
4102         * elf/dl-lookup.c (add_dependency): New function.
4103         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
4104         dynamically loaded object.
4105         (_dl_lookup_symbol_skip): Likewise.
4106         (_dl_lookup_versioned_symbol): Likewise.
4107         (_dl_lookup_versioned_symbol_skip): Likewise.
4108         * elf/dl-open.c: Don't define _dl_load_lock here...
4109         * elf/rtld.c: ...but here...
4110         * elf/dl-support.c: ...and here.
4111         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
4112         through relocation.
4113         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
4114         relocations.
4115         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
4116         anymore.
4117         * dlfcn/glrefmain.c: Add one more debug message.
4119         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
4120         command line.
4121         * Makerules (sysd-versions): Use ( ) instead of { }.
4123         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
4124         optimize for the non-debugging case.
4125         * elf/dl-lookup.c: Likewise.
4126         * sysdeps/generic/libc-start.c: Likewise.
4128 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
4130         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
4131         (init1): Don't initialize __environ here, since init already does it.
4132         (first_init): New function, broken out of _init.
4133         (_hurd_stack_setup): Use it.
4134         [SHARED] (_dl_init_first): New function, renamed from old _init.
4135         (init1) [SHARED]: Don't call posixland_init here.
4136         (posixland_init): Take ENVP arg, so signature is usual for initializer.
4137         [SHARED] (_init): Define as alias for posixland_init.
4138         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
4139         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
4140         RTLD_START_SPECIAL_INIT before calling initializers.
4141         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
4142         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
4143         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
4144         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
4146         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
4147         since we define the function with the name `tmpfile'.
4149         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
4150         * hurd/Versions: Likewise.
4152 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
4154         * elf/dl-runtime.c (fixup): Fix typo in comment.
4156         * resolv/netdb.h (getnameinfo): All length parameters are of type
4157         socklen_t.
4158         * inet/getnameinfo.c: Likewise.
4160 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
4162         * posix/unistd.h (socklen_t): Define if it has not yet happened.
4163         (gethostname): Change type of second parameter to socklen_t.
4164         * include/unistd.h (__gethostname): Change type of second
4165         parameter to socklen_t.
4166         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
4167         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
4168         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
4169         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
4170         Likewise.
4171         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
4172         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
4173         Allow definition elsewhere.
4174         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4175         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4176         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4177         * sysdeps/generic/bits/types.h: Define __socklen_t.
4178         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
4179         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
4180         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
4181         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4182         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
4183         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
4184         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
4186         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
4187         (inet_lnaof): Likewise.
4188         (inet_netof): Likewise.
4189         (inet_network): Likewise.
4190         (inet_aton): Likewise.
4191         (inet_makeaddr): Change parameter types to in_addr_t.
4192         (inet_neta): Likewise.
4193         (inet_ntop): Change type of last parameter to socklen_t.
4194         (inet_aton): Only make available if __USE_MISC.
4195         (inet_neta): Likewise.
4196         (inet_net_ntop): Likewise.
4197         (inet_net_pton): Likewise.
4198         (inet_nsap_ntoa): Likewise.
4200         * inet/in.h: Define in_port_t type.
4201         Define in_addr_t type.
4202         (struct in_addr): Use in_addr_t in definition.
4203         (IN_CLASSA): Use cast to in_addr_t.
4204         (IN_CLASSB): Likewise.
4205         (IN_CLASSC): Likewise.
4206         (IN_CLASSD): Likewise.
4207         (IN_EXPERIMENTAL): Likewise.
4208         (IN_BADCLASS): Likewise.
4209         (INADDR_ANY): Likewise.
4210         (INADDR_BROADCAST): Likewise.
4211         (INADDR_NONE): Likewise.
4212         (INADDR_LOOPBACK): Likewise.
4213         (INADDR_UNSPEC_GROUP): Likewise.
4214         (INADDR_ALLHOSTS_GROUP): Likewise.
4215         (INADDR_ALLRTRS_GROUP): Likewise.
4216         (INADDR_MAX_LOCAL_GROUP): Likewise.
4217         (struct sockaddr_in): Use in_port_t for sin_port element.
4218         (struct sockaddr_in6): Use in_port_t for sin6_port element.
4219         Use uint8_t instead of u_int8_t.
4221         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
4222         Call __inet_aton instead of inet_aton.
4223         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
4225         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
4226         (innetgr): Likewise.
4227         (struct addrinfo): Use socklen_t for ai_addrlen element.
4229         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
4230         IPV6_RECVERR): New defines.
4232         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
4233         * inet/getnetbyad.c: Likewise.
4234         * inet/getnetbyad_r.c: Likewise.
4235         * nis/nss_nis/nis-network.c: Likewise.
4236         * nis/nssplus_nis/nisplus-network.c: Likewise.
4237         * nss/nss_files/files-network.c: Likewise.
4238         * resolv/netdb.h: Define uint32_t if not already happened.
4239         Include bits/netdb.h.  Remove definition of struct netent.
4240         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
4241         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
4242         * sysdeps/generic/bits/netdb.h: New file.
4243         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
4245         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
4246         (tests): Add glrefmain.
4247         Add rules to build modules and run tests.  Ignore result of glrefmain
4248         for now since it fails.
4249         * dlfcn/glrefmain.c: New file.
4250         * dlfcn/glreflib1.c: New file.
4251         * dlfcn/glreflib2.c: New file.
4253         * test-skeleton.c: Include <string.h> for strsignal prototype.
4255         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
4256         to be missing.
4258         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
4259         former init-first.h.  Initialize __libc_multiple_libcs.
4261 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
4263         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
4264         #if expression for use of unaligned function to the one used in
4265         the definition of these functions.
4266         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
4267         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
4268         (internal_ucs4le_loop_unaligned): New function.
4270         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
4271         (tests): Add order.
4272         (module-names): Add dep1, dep2, dep3, and dep4.
4273         Add dependencies for dep* modules and order.
4274         Define rule for order.out which checks the result.
4275         * elf/dep1.c: New file.
4276         * elf/dep2.c: New file.
4277         * elf/dep3.c: New file.
4278         * elf/dep4.c: New file.
4279         * elf/order.c: New file.
4281         * elf/dl-init.c: Fix typo in comment.
4283 2000-03-31  Andreas Jaeger  <aj@suse.de>
4285         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
4286         init function interface.
4287         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
4289 2000-03-31  Andreas Jaeger  <aj@suse.de>
4291         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
4292         * sysdeps/mips/fpu/fegetenv.c: Likewise.
4293         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
4294         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
4295         * sysdeps/mips/fpu/fesetenv.c: Likewise.
4297         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
4298         anymore, update comment.
4300         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4302         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
4303         SHLIB_COMPAT - the struct is always needed.
4305 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
4307         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
4308         * elf/dl-support.c: Define _dl_starting_up.
4310 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
4312         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
4313         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
4315         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
4317         * elf/Makefile (dl-routines): Remove preinit.
4318         * elf/Versions: Remove _dl_preinit.
4319         * elf/dl-preinit.c: Removed.  Move content into...
4320         * elf/dl-init.c: ...here.
4321         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
4323         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
4324         elements.
4326 2000-03-29  Geoff Clare  <gwc@unisoft.com>
4328         * stdlib/strfmon.c: Corrected problems with the code that
4329         sets default values for [np]_sep_by_space and
4330         [np]_sign_posn; also the new positive/negative alignment
4331         code from the previous patch was not quite right for
4332         [np]_sign_posn = 0.
4334         * localedata/tst-fmon.data: Changes corresponding to the
4335         two sets of fixes made to stdlib/strfmon.c.
4337 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
4339         * malloc/malloc.c: Declare bit flags UL so that they will not
4340         default to int size when being inverted.
4342 2000-03-29  Andreas Jaeger  <aj@suse.de>
4344         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
4345         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4347 2000-03-29  Andreas Jaeger  <aj@suse.de>,
4348             Ralf Baechle <ralf@uni-koblenz.de>
4350         * Makeconfig: Introduce new variable SHARED to mark code used in
4351         the shared library.
4352         * elf/dl-close.c: Use it instead of PIC.
4353         * elf/dl-load.c: Likewise.
4354         * elf/dl-open.c: Likewise.
4355         * hurd/geteuids.c: Likewise.
4356         * include/libc-symbols.h: Likewise.
4357         * include/shlib-compat.h: Likewise.
4358         * libio/freopen.c: Likewise.
4359         * linuxthreads/cancel.c: Likewise.
4360         * linuxthreads/pthread.c: Likewise.
4361         * linuxthreads/wrapsyscall.c: Likewise.
4362         * nss/nsswitch.c: Likewise.
4363         * stdio-common/vfprintf.c: Likewise.
4364         * sysdeps/arm/init-first.c: Likewise.
4365         * sysdeps/i386/init-first.c: Likewise
4366         * sysdeps/generic/init-first.c: Likewise.
4367         * sysdeps/generic/libc-start.c: Likewise.
4368         * sysdeps/mips/init-first.c: Likewise.
4369         * sysdeps/powerpc/elf/libc-start.c: Likewise.
4370         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
4371         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4372         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
4373         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4375         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
4377 2000-03-29  Andreas Jaeger  <aj@suse.de>
4379         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
4380         Use D_PTR to access relocated entries in l_info.
4381         (elf_machine_rela): Likewise.
4383         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
4384         Likewise.
4385         (elf_machine_rela): Likewise.
4387         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
4388         Likewise.
4389         (__elf_machine_fixup_plt): Likewise.
4390         (__process_machine_rela): Likewise.
4392         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
4393         (elf_machine_rela): Likewise.
4395         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
4396         (elf_machine_rel): Likewise.
4398         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
4399         (elf_machine_fixup_plt): Likewise.
4400         (elf_machine_rela): Likewise.
4402 2000-03-29  Andreas Jaeger  <aj@suse.de>
4404         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
4405         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4406         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4407         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4408         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
4409         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
4410         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
4411         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
4412         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4413         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
4414         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
4415         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
4416         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
4417         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
4418         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4420         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
4421         macros, remove K&R prototypes.
4423 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
4425         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
4426         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
4427         (PR libc/1677).
4429 2000-03-30  Andreas Jaeger  <aj@suse.de>
4431         * misc/sys/cdefs.h: Remove K&R support.
4433 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
4435         * iconv/skeleton.c: Avoid compiling unaligned versions in some
4436         more cases.
4437         * iconv/loop.c: Likewise.
4439 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
4441         * iconv/loop.c (put16): Remove __const. Fix access index.
4442         (put32): Remove __const. Use uint32_t instead of uint16_t.
4443         * iconv/skeleton.c: Likewise.
4445 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
4447         * mach/Versions (libc: GLIBC_2.0)
4448         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
4449         __vm_allocate on this.
4450         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
4451         mutex- and spinlock-related symbols on this.
4452         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
4453         New version set.  Lock-related symbols go here instead in this case.
4454         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
4455         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
4456         cthread_getspecific, cthread_setspecific, __libc_getspecific.
4457         * hurd/Versions
4458         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
4459         Put them here instead.
4460         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
4461         New version set.  Those cthreads symbols go here instead in this case.
4462         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
4464 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
4466         * elf/dl-init.c (_dl_init): We don't need to call constructors
4467         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
4469         Implement dynamic determination of constructor/destructor order in
4470         the dynamic linker.
4471         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
4472         (GLIBC_2.2): Add _dl_init.
4473         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
4474         r_duplist is not anymore allocated separately.  l_initfini is and
4475         therefore free it if necessary.
4476         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
4477         malloc block.  Otherwise allocate l_initfini list only.
4478         Put dependencies for the object in l_initfini list.
4479         Sort dependencies for the object to be loaded topologically.
4480         * elf/dl-fini.c: Before running the destructors sort the topologically.
4481         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
4482         call constructors instead of iterating over the pointers.  Get list of
4483         objects for which to run constructors from l_initfini element. Accept
4484         argc, argv, and env as parameters and pass them to the constructors.
4485         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
4486         with size of dynamic section.
4487         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
4488         _dl_init_next and calling constructors ourself.
4489         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
4490         Take argc, argv, and env as parameters and pass them to the
4491         constructors.  Rewrite to call all constructors and not iterate over
4492         the pointers.
4493         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
4494         precompute l_initcount and l_preinitcount.
4495         * elf/link.h (struct link_map): Add l_ldnum member.
4496         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
4497         l_initcount, and l_preinitcount.  Add l_initfini.
4498         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
4499         one for _dl_init.
4500         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
4501         function interface.
4502         * sysdeps/unix/sysv/linux/init-first.h: Removed.
4503         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
4504         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
4505         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
4506         conventions now match.
4508         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
4509         effect for shared objects.  Don't emit message and call only for
4510         static library.
4512 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
4514         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
4515         CSA_Z243.4-1985-1..UCS2.
4516         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
4517         ISO-8859-10..UCS2.
4519 2000-03-29  Andreas Jaeger  <aj@suse.de>
4521         * include/unistd.h: Remove duplicate entry for __rmdir.
4522         Remove declaration of __mkdir since __mkdir is declared in
4523         sys/stat.h.
4525         * manual/creature.texi (Feature Test Macros): Fix typo, reported
4526         by Michael Deutschmann <michael@talamasca.ocis.net>.
4528         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
4529         * sysdeps/mips/fpu/fegetenv.c: Likewise.
4530         * sysdeps/mips/fpu/fesetenv.c: Likewise.
4531         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
4532         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
4534 2000-03-28  Andreas Jaeger  <aj@suse.de>
4536         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
4537         declaration, the prototype is defined via bits/mathcalls.h.
4538         (__sincosf): Likewise.
4539         (__sincosl): Likewise.
4540         (ldexp): Likewise.
4541         (ldexpf): Likewise.
4542         (ldexpl): Likewise.
4543         (__finite): Likewise.
4544         (__inline_mathcodeNP): New macro without prototype
4545         declarations.
4546         (__inline_mathcodeNP2): Likewise.
4547         (__inline_mathcodeNP3): Likewise.
4548         (__inline_mathcodeNP_): Likewise.
4549         (__inline_mathcodeNP2_): Likewise.
4550         (__inline_mathcodeNP3_): Likewise.
4551         (__inline_mathopNP): Likewise.
4552         (__inline_mathop_declNP): Likewise.
4553         (__inline_mathop_declNP_): Likewise.
4554         (__inline_mathcode_): Use __inline_mathcodeNP_.
4555         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
4556         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
4557         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
4558         (__expm1l): Don't define prototype, the prototype is defined via
4559         bits/mathcalls.h.
4560         (exp): Likewise.
4561         (__expl): Likewise.
4562         (tan): Likewise.
4563         (atan2): Likewise.
4564         (__atan2l): Likewise.
4565         (fmod): Likewise.
4566         (pow): Likewise.
4567         (fabsf): Likewise.
4568         (fabsl): Likewise.
4569         (__fabsl): Likewise.
4570         (asin): Likewise.
4571         (acos): Likewise.
4572         (sinh): Likewise.
4573         (cosh): Likewise.
4574         (tanh): Likewise.
4575         (floor): Likewise.
4576         (ceil): Likewise.
4577         (expm1): Likewise.
4578         (log1p): Likewise.
4579         (asinh): Likewise.
4580         (acosh): Likewise.
4581         (atanh): Likewise.
4582         (hypot): Likewise.
4583         (logb): Likewise.
4584         (fma): Likewise.
4585         (drem): Likewise.
4586         (sqrt): Likewise.
4587         (__sqrtl): Likewise.
4588         (sin): Likewise.
4589         (cos): Likewise.
4590         (atan): Likewise.
4591         (log): Likewise.
4592         (log10): Likewise.
4593         (asinh): Likewise.
4594         (log2): Likewise.
4595         (rint): Likewise.
4597 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
4599         * Makerules: If make variable md5 is defined to yes after
4600         generating dependencies generate MD5 sum for the object.
4602         * iconv/gconv_builtin.h: Fix length in transformation definition
4603         for UNICODEBIG.
4605         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
4607         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
4608         allow as well reading from/writing to unaligned addresses on machines
4609         which don't support this in hardware.  Use FCTNAME macro to define
4610         function name.  Include the file a second time for platforms which
4611         need special unaligned handling.
4612         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
4613         to access potentially unaligned addresses.  These macros are intended
4614         to be used only outside the loops.
4615         (unaligned): New definition.  In case the machine can handle unaligned
4616         access define as zero.  Otherwise as a variable which is initialized
4617         as nonzero in case the buffer passed in at runtime is unaligned with
4618         respect to the character set encoding involved.
4619         Call aligned or unaligned looop functions according to unaligned
4620         variable.
4621         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
4622         of direct casting pointer to potentially handle unaligned memory
4623         accesses.
4624         * iconvdata/8bit-generic.c: Likewise.
4625         * iconvdata/ansi_x3.110.c: Likewise.
4626         * iconvdata/big5.c: Likewise.
4627         * iconvdata/euc-cn.c: Likewise.
4628         * iconvdata/euc-jp.c: Likewise.
4629         * iconvdata/euc-kr.c: Likewise.
4630         * iconvdata/euc-tw.c: Likewise.
4631         * iconvdata/gbk.c: Likewise.
4632         * iconvdata/iso-2022-cn.c: Likewise.
4633         * iconvdata/iso-2022-jp.c: Likewise.
4634         * iconvdata/iso-2022-kr.c: Likewise.
4635         * iconvdata/iso646.c: Likewise.
4636         * iconvdata/iso_6937-2.c: Likewise.
4637         * iconvdata/iso_6937.c: Likewise.
4638         * iconvdata/johab.c: Likewise.
4639         * iconvdata/sjis.c: Likewise.
4640         * iconvdata/t.61.c: Likewise.
4641         * iconvdata/uhc.c: Likewise.
4642         * iconvdata/unicode.c: Likewise.
4643         * iconvdata/utf-16.c: Likewise.
4645         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
4646         prototypes.
4648         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
4649         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
4650         public.
4651         * malloc/mcheck.h (mcheck_check_all): Declare.
4653         * stdio-common/Makefile (tests): Add tst-obprintf.
4655 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
4657         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
4658         Declare pthread_sigmask.
4660         * csu/version.c: Add 2000 to copyright years.
4661         Remove Emacs local variables section.
4663 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
4665         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
4666         __gconv_transform_internal_ucs2little): Remove declarations.
4667         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
4668         __gconv_transform_internal_ucs2): Never need to bswap_16.
4669         (__gconv_transform_ucs2reverse_internal,
4670         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
4672 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
4674         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
4675         obsoleting version not being defined at all, in which case the
4676         result is always true.
4678         * Makeconfig (preprocess-versions): New canned sequence for running
4679         cpp on shlib-versions and the like.
4680         (soversions.i): Use it.
4681         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
4682         Versions.def and Versions files.
4684 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
4686         * stdio-common/tst-obprintf.c (main): Add another check to see
4687         obstack_printf handling all possible beginnings of the block
4688         inside an obstack chunk.
4690         * locale/programs/localedef.c: Use __malloc_initialize_hook to
4691         install mcheck handler.
4693         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
4694         handling problem.
4696 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
4698         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
4700         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
4701         on [HAVE_ELF && DO_VERSIONING].
4703 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
4705         * stdio-common/tst-obprintf.c: New file.
4707 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
4709         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
4710         _IO_OVERFLOW directly instead through __overflow.
4712         * locale/programs/localedef.c (construct_output_path): If path
4713         contains a / compute the end of the directory name correctly.
4715         * include/features.h: Undef and document __USE_XOPEN2K.
4717         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
4718         whenever a function is called.  Initiated by calling mcheck_pedantic
4719         instead of mcheck.
4720         * malloc/mcheck.h: Declare mcheck_pedantic.
4721         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
4722         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
4723         for now.
4725 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
4727         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
4728         * dlfcn/dlopenold.c: Likewise.
4729         * nss/getXXbyYY_r.c: Likewise.
4730         * nss/getXXent_r.c: Likewise.
4731         * hurd/hurdinit.c: Likewise.
4732         * hurd/compat-20.c: Likewise.
4733         * libio/oldiofopen.c: Likewise.
4734         * libio/oldiofclose.c: Likewise.
4735         * libio/oldiofdopen.c: Likewise.
4736         * libio/oldfileops.c: Likewise.
4737         * libio/oldstdfiles.c: Likewise.
4738         * libio/oldiofsetpos.c: Likewise.
4739         * libio/oldiofgetpos.c: Likewise.
4740         * libio/oldiofgetpos64.c: Likewise.
4741         * libio/oldiofsetpos64.c: Likewise.
4742         * libio/oldiopopen.c: Likewise.
4743         * libio/oldpclose.c: Likewise.
4744         * libio/oldtmpfile.c: Likewise.
4745         * libio/freopen.c (freopen): Likewise.
4746         * libio/iofclose.c (_IO_new_fclose): Likewise.
4748         * sysdeps/mach/sys/reboot.h: Include <features.h>.
4749         (reboot): Declare it.
4751         * libio/Makefile (headers): Add bits/stdio-lock.h here.
4753         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
4755         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
4757         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
4758         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
4759         We need this for the sbrk decl, which can be included without Unix98.
4761 2000-03-20  Richard Henderson  <rth@cygnus.com>
4763         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
4764         argument to yperr2nss is an int, not size_t.
4765         * posix/regex.c (print_partial_compiled_pattern): Cast all
4766         ptrdiff_t to long for printing.
4767         (print_compiled_pattern): Use Z for printing size_t.
4768         * posix/testfnm.c (tests): Avoid trigraphs.
4769         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4770         Use a C comment, not an assembly comment.
4772         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
4773         of __ASSUME_32BITUIDS.
4775 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
4777         * libio/iofopncook.c: Remove K&R prototypes.
4779 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
4781         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
4782         an initial value of 1024 instead of RLIM_INFINITY.
4784         * Versions.def (libmachuser, libhurduser): Remove these sections,
4785         since these libraries do not presently use symbol versions.
4787         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
4788         is RLIM_INFINITY, return -1 instead.
4790 2000-03-24  Andreas Jaeger  <aj@suse.de>
4792         * Makefile (postclean): Added soversions.i.
4794 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
4796         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
4797         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
4798         and _FPU_IEEE.  Change _FPU_RESERVED.
4800 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
4802         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
4804 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
4806         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
4807         (gaih_inet): Remove unused duplicate variable.
4809         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
4810         Don't use __libc_sa_len, which only exists for Linux.  Just handle
4811         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
4812         only flavors supported by this function anyway.
4814 2000-03-24  Geoff Clare  <gwc@unisoft.com>
4816         * stdlib/strfmon.c: Corrected problems with missing signs and
4817         missing or extra spaces; allow for sign strings longer than
4818         one character; add padding to ensure positive and negative
4819         formats are aligned when a left precision is used.
4821 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
4823         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
4824         Patch by John Mizel <John.Mizel@msdw.com>.
4826 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
4828         * manual/install.texi: Remove references to crypt add-on.
4830 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
4832         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
4833         section while taking the _hurd_rlimit_lock.
4834         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
4836 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
4838         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
4839         using $(LN_S).
4841         * sysdeps/mach/hurd/if_index.c: New file.
4843         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
4844         * sysdeps/gnu/net/if.h: here.
4845         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
4846         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
4847         * sysdeps/generic/net/if.h: New file.  Declares just the standard
4848         functions and `struct if_nameindex' type.
4849         * socket/Makefile (headers): Add net/if.h here.
4850         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
4851         * sysdeps/mach/hurd/Dist: Remove it here.
4852         * sysdeps/unix/sysv/linux/Dist: And here.
4853         * sysdeps/generic/if_index.c: Include <net/if.h>.
4855 2000-03-24  Andreas Jaeger  <aj@suse.de>
4857         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
4858         access relocated entries in l_info.
4859         (elf_machine_got_rel): Likewise.
4860         (elf_machine_runtime_setup): Likewise.
4861         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
4862         (elf_machine_runtime_setup): Likewise.
4863         (__dl_runtime_resolve): Likewise.
4865 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
4867         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
4868         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
4869         according to RFC 2553.
4870         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
4871         * inet/getnameinfo.c: Likewise.
4872         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
4874 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
4876         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
4877         Remove no-op pointer increment.
4879 2000-03-23  Andreas Jaeger  <aj@suse.de>
4881         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
4882         follow change for libio.h from 2000-03-10.
4884 2000-03-23  Andreas Jaeger  <aj@suse.de>
4886         * elf/dl-addr.c: Adjust include paths for ldsodefs location
4887         change.
4888         * elf/dl-debug.c: Likewise.
4889         * elf/dl-deps.c: Likewise.
4890         * elf/dl-error.c: Likewise.
4891         * elf/dl-fini.c: Likewise.
4892         * elf/dl-init.c: Likewise.
4893         * elf/dl-load.c: Likewise.
4894         * elf/dl-lookup.c: Likewise.
4895         * elf/dl-minimal.c: Likewise.
4896         * elf/dl-object.c: Likewise.
4897         * elf/dl-open.c: Likewise.
4898         * elf/dl-preinit.c: Likewise.
4899         * elf/dl-profile.c: Likewise.
4900         * elf/dl-profstub.c: Likewise.
4901         * elf/dl-reloc.c: Likewise.
4902         * elf/dl-runtime.c: Likewise.
4903         * elf/dl-support.c: Likewise.
4904         * elf/dl-symbol.c: Likewise.
4905         * elf/dl-version.c: Likewise.
4906         * elf/rtld.c: Likewise.
4907         * elf/sprof.c: Likewise.
4908         * sysdeps/generic/dl-cache.c: Likewise.
4909         * sysdeps/generic/dl-origin.c: Likewise.
4910         * sysdeps/generic/dl-sysdep.c: Likewise.
4911         * sysdeps/generic/elf/backtracesyms.c: Likewise.
4912         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4913         * sysdeps/generic/libc-start.c: Likewise.
4914         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4915         * sysdeps/powerpc/dl-machine.c: Likewise.
4916         * sysdeps/powerpc/elf/libc-start.c: Likewise.
4917         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4918         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4919         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
4921         * elf/ldsodefs.h: Move file to ...
4922         * sysdeps/generic/ldsodefs.h: ... here.
4924         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
4926         * sysdeps/mips/elf/ldsodefs.h: New file.
4928         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
4929         entries in l_info.
4930         (_dl_check_map_versions): Likewise.
4931         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4932         * elf/dl-load.c (_dl_init_paths): Likewise.
4933         (_dl_map_object): Likewise.
4934         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
4935         (elf_get_dynamic_info): Likewise.
4936         * elf/do-lookup.h (FCT): Likewise.
4937         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
4938         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4939         * elf/dl-addr.c (_dl_addr): Likewise.
4940         * elf/dl-runtime.c (profile_fixup): Likewise.
4941         (fixup): Likewise.
4942         * elf/dl-init.c (_dl_init_next): Likewise.
4943         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
4944         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
4945         (DISTINGUISH_LIB_VERSIONS): Likewise.
4946         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
4947         (elf_machine_rel): Likewise.
4949         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
4950         for writable dynamic section.
4952 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
4954         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
4955         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
4957 2000-03-22  Andreas Jaeger  <aj@suse.de>
4959         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
4960         from latest Linux kernel.
4962 2000-03-21  Andreas Jaeger  <aj@suse.de>
4964         * Versions.def: Add version 2.1.4.
4966 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
4968         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
4969         * libio/oldiofopen.c: Likewise.
4970         * libio/oldiofclose.c: Likewise.
4971         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
4973 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
4975         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
4976         indicating the first version set to obsolete the conditionalized code.
4977         (compat_symbol): New macro.
4978         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
4979         rhs be the ABI_* macro for the subsuming version.  Assign increasing
4980         integer values to the ABI_* macros for supported versions.
4981         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
4982         compat_symbol macro.
4984 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
4986         * nscd/connections.c (nscd_run): Pretty print.
4987         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
4989         * manual/charset.texi: Fix typos.  Rephrase.
4990         * manual/process.texi: Likewise.
4991         * manual/signal.texi: Likewise.
4992         Patches by Mike Coleman <mkc@kc.net>.
4994         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
4995         versions.
4996         * libio/iofdopen.c: Likewise.
4997         * libio/iofgetpos.c: Likewise.
4998         * libio/iofgetpos64.c: Likewise.
4999         * libio/iofopen.c: Likewise.
5000         * libio/iofsetpos.c: Likewise.
5001         * libio/iofsetpos64.c: Likewise.
5002         * libio/iopopen.c: Likewise.
5003         * libio/oldiofopen.c: Likewise.
5004         * libio/pclose.c: Likewise.
5005         * sysdeps/gnu/siglist.c: Likewise.
5006         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
5008         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
5009         chance to expand VERSION_##lib##_##version.
5011         * libio/fileops.c: Use new macros from shlib-compat.h to define
5012         versions.
5013         * libio/iofclose.c: Likewise.
5014         * libio/oldiofclose.c: Likewise.
5015         Patch by Roland McGrath <roland@frob.com>.
5017 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
5019         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
5020         Lay out struct sigcontext according to what really gets passed on
5021         the stack.
5022         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
5023         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
5024         (prgregset_t, prfpregset_t): Define to elf_* types.
5025         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
5026         Define to correct value.
5027         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
5028         sigcontext.
5029         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
5031 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
5033         * scripts/firstversions.awk: Allow multiple version sets in the
5034         "earliest version" specification, meaning that version sets in the
5035         gaps between listed versions should be folded into the earliest later
5036         version that is explicitly listed.
5037         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
5038         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
5040 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
5042         * iconv/gconv_builtin.c: Include <endian.h>.
5043         * iconv/gconv_builtin.h: Add UCS-BE aliases.
5044         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
5045         according to current platform.
5046         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
5047         __gconv_transform_internal_ucs2reverse, and
5048         __gconv_transform_internal_ucs4le.
5049         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
5050         __gconv_transform_ucs2reverse_internal and
5051         __gconv_transform_internal_ucs2reverse.
5052         * iconvdata/Makefile (modules): Add UNICODE.
5053         (distribute): Add unicode.c.
5054         * iconvdata/gconv-modules: Add definitions for UNICODE module.
5055         * iconvdata/unicode.c: New file.
5057         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
5058         determine byte order of input and convert accordingly.
5060         * iconvdata/utf-16.c (gconv_init): Fix typo.
5062 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
5064         * iconvdata/gconv-modules: Fix typo.
5066         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
5067         more messages.
5069         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
5071 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
5073         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
5075 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
5077         * misc/Makefile (routines): Add mincore.
5079 2000-03-20  Andreas Jaeger  <aj@suse.de>
5081         * sysdeps/generic/mincore.c: New stub file.
5083         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
5084         from latest Linux kernel.
5086 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
5088         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
5089         _SC_GETPW_R_SIZE_MAX.
5091 2000-03-20  Richard Henderson  <rth@cygnus.com>
5093         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
5094         in GLIBC_2.1.4.
5096 2000-03-20  Richard Henderson  <rth@cygnus.com>
5098         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
5099         of arithmetic instructions.
5101         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
5102         with the fpcr.  Protect from INV exception.
5103         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
5104         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
5105         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
5107         * sysdeps/alpha/fpu/s_copysign.c: New.
5108         * sysdeps/alpha/fpu/s_copysignf.c: New.
5109         * sysdeps/alpha/fpu/s_fabs.c: New.
5110         * sysdeps/alpha/fpu/s_fabsf.c: New.
5111         * sysdeps/alpha/fpu/s_rint.c: New.
5112         * sysdeps/alpha/fpu/s_rintf.c: New.
5114         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
5116         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
5117         Kill sethae.
5118         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
5119         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
5120         Use physical addresses not KSEG addresses.
5121         (io_system): Add PYXIS.
5122         (io): Remove hae.reg, sys, hae_shift.
5123         (stb_mb, stw_mb, stl_mb, __sethae): New.
5124         (inline_outb, inline_outw, inline_outl): Don't set hae.
5125         (inline_inb, inline_inw, inline_inl): Likewise.
5126         (dense_sethae): New null function.
5127         (struct cpuinfo_data): New.
5128         (process_cpuinfo): Use local and stack variables, not static.
5129         Move readlink check here from init_iosys.
5130         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
5131         (_iopl): Simplify.
5132         (_hae_shift): Calculate it here.
5133         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
5134         add pciconfig_iobase.
5136 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
5138         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
5139         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
5141         * scripts/versions.awk: Fixed version renaming code to distinguish
5142         libraries properly.
5144 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
5146         * include/stdlib.h: Add prototype for __cxa_atexit.
5148         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
5149         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
5151 2000-03-17  Cristian Gafton  <gafton@redhat.com>
5153         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
5154         existing rtld-installed-name.
5155         ($(rtld-installed-name)): Request libc-$(version) be installed too.
5156         replace existing rtld-installed-name using $(symbolic-link-prog).
5158 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
5160         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
5161         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
5162         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
5163         but not the former.
5165 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
5167         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
5168         glob64.  Since there is no glob64 in the LFS proposal applications
5169         can assume that glob handles LFS situations.  glob64 is only needed
5170         if alternative filesystem functions are used.
5172 2000-03-19  Geoff Clare  <gwc@unisoft.com>
5174         * sysdeps/generic/glob.c: Correct gl_pathc value returned
5175         when GLOB_DOOFFS is set; correct handling of patterns
5176         containing escaped wildcards (and no unescaped ones);
5177         GLOB_ERR flag was being ignored in some situations.
5179         * posix/globtest.c, posix/globtest.sh: Updated to include
5180         tests for the problems fixed by the above changes to glob.c.
5182         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
5184 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
5186         * Makeconfig (soversion.i): Use only first match for each lib.
5188         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
5190         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
5191         rather than $(sysd-dirs-done) to protect these rules.
5193         * Makerules (version-renames.def): Target removed.
5194         (Versions.all): Depend on soversions.i directly and parse it.
5196         * Makeconfig (soversions.i): New target, input-reading parts of
5197         soversions.mk generation moved here; result is a canonicalized
5198         list "LIB VERSION [SET]" for this configuration.
5199         (soversions.mk): Use that as input.  Don't emit map-firstversions.
5200         * Makerules (version-renames.def): New target, generated from
5201         soversions.i with contents that was in $(map-firstversions).
5202         (Versions.all): Don't depend on soversions.mk, depend on
5203         version-renames.def instead; just cat it into the input.
5205         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
5206         for $(map-firstversions), which better handles it being empty.
5208         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
5209         supported version for libc 0.2.90.libio to GLIBC_2.2.
5211         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
5212         and use it to emit new variable `map-firstversions'.
5213         * scripts/firstversions.awk: New file.
5214         * Makerules (Versions.all): Use scripts/firstversions.awk and
5215         the $(map-firstversions) value to generate a modified versions list
5216         that includes renames in "A = B" syntax for each version set earlier
5217         than the "earliest symbol version" named in shlib-versions.
5218         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
5219         rename version set A to B in the output to the intermediate file.
5220         * scripts/abi-versions.awk: New file.
5221         * Makerules (abi-versions.h): New target, generated by that script.
5222         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
5223         * include/shlib-compat.h: New file, uses that generated header.
5225 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
5227         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
5228         after stripping # comments, and then run it through cpp.
5229         This allows things like "%ifdef FOO" based on config.h settings.
5230         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
5232         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
5233         and other errors that indicate a pseudo-receive happened, grok through
5234         the message buffer for port rights that need references fixed up.
5236 2000-03-16  Andreas Jaeger  <aj@suse.de>
5238         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
5240         * sysdeps/unix/sysv/linux/madvise.c: Remove.
5242         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
5243         from latest Linux kernel.
5244         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
5246         * misc/sys/mman.h: Add prototype for mincore.
5248 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
5250         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
5251         entry for GLIBC_2.0 version of setrlimit.
5252         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
5254 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
5256         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
5257         * nis/nss_compat/compat-initgroups.c: Likewise.
5258         * nis/nss_nis/nis-initgroups.c: Likewise.
5259         * nis/nss_nis/nis-netgrp.c: Likewise.
5260         * nis/nss_nis/nis-proto.c: Likewise.
5261         * nis/nss_nis/nis-rpc.c: Likewise.
5262         * nis/nss_nis/nis-service.c: Likewise.
5263         * nis/ypclnt.c: Likewise.
5265 2000-03-16  Andreas Jaeger  <aj@suse.de>
5267         * manual/Makefile: MAKEINFO is set to `:' from configure if it
5268         doesn't exist, correct checks.  Fixes PR libc/1649.
5270 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
5272         * nscd/hstcache.c: Restore correct UID.
5273         * nscd/pwdcache.c: Likewise.
5274         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
5276 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
5278         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
5279         macros for register names, in line with 2000-03-14 linux change.
5281         * sysdeps/mach/sched_yield.c: New file.
5283 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
5285         * sysdeps/generic/lockfile.c: Include <stdio.h>
5286         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
5287         case <libio.h> defined them.
5288         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
5289         from __internal_*.
5290         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
5291         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
5293         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
5294         for more pleasing parse error.
5296 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
5298         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
5299         memory for eras.
5300         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
5302         * elf/Makefile: Add rules to compile and run constload1 test.
5303         * elf/constload1.c: New file.
5304         * elf/constload2.c: New file.
5305         * elf/constload3.c: New file.
5307 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
5309         * sysdeps/posix/open64.c: Make __open64 weak alias.
5310         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
5311         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5312         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
5313         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5314         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
5315         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
5316         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5317         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
5318         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5319         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
5321 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
5323         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
5324         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
5326 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
5328         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
5329         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
5331 2000-03-08  Andreas Jaeger  <aj@suse.de>
5333         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
5335 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
5337         * timezone/africa: Update from tzdata2000d.
5338         * timezone/asia: Likewise.
5339         * timezone/australasia: Likewise.
5340         * timezone/europe: Likewise.
5341         * timezone/northamerica: Likewise.
5342         * timezone/southamerica: Likewise.
5344         * po/fr.po: Update from translation team.
5345         * po/de.po: Likewise.
5347         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
5348         last parameter.  Move code to add map to global scope from here...
5349         * elf/dl-open.c (dl_open_worker): ...here.
5350         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
5351         * elf/rtld.c: Adjust call to _dl_map_object_deps.
5353         * locale/programs/ld-collate.c (collate_read): Fix warning.
5355         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
5356         values and macros for register names.
5358         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
5359         returned by seek cookie function is -1.
5361 2000-03-14  Andreas Jaeger  <aj@suse.de>
5363         * locale/localeconv.c (localeconv): Fix typo.
5364         Reported by Andre Charbonneau <andrec@corel.com>.
5366 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
5368         * iconv/skeleton.c: Increment __invocation_counter in inner loop
5369         since modules depend on it counting the number of times the conversion
5370         function got called.
5372         * iconv/gconv_open.c: Optimize loop to setup step data structure.
5374         * iconv/gconv.h: Pretty print.
5376 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
5378         * posix/wordexp-test.c: Correct one of the tests added in the last
5379         change.  Really get the root passwd entry to check again ~root.
5381 2000-03-10  Andreas Jaeger  <aj@suse.de>
5383         * manual/filesys.texi (Working Directory): Fix last patch.
5384         Patch by Martin Buchholz  <martin@xemacs.org>.
5386 2000-03-10  Andreas Jaeger  <aj@suse.de>
5388         * manual/creature.texi (Feature Test Macros): Fix language.
5390 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
5392         * mach/devstream.c (devstream_write, devstream_read): New functions.
5393         (input, output): Functions removed.
5394         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
5395         using only the vanilla fopencookie interface.
5397         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
5398         as macro for __io_functions.
5399         (funcsio): Use cookie_io_functions_t type name.
5400         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
5402         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
5403         fopencookie.
5404         (fopencookie): Use it.
5405         * libio/libio.h: Declare _IO_cookie_init.
5406         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
5407         _IO_cookie_init.
5409         * libio/libio.h (__io_seek_fn): Fix second argument type
5410         to be a pointer, in line with the manual and the old stdio.
5411         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
5413         * sysdeps/generic/bits/stdio-lock.h: New file.
5414         This is a stub with #error, but that's better than no file at all.
5416 2000-03-09  Martin Buchholz  <martin@xemacs.org>
5418         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
5419         * manual/message.texi (Using gettextized software): Doc Fixes.
5420         * manual/message.texi (Message Translation): Doc Fixes.
5421         * manual/filesys.texi (File Size): Doc Fixes.
5422         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
5423         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
5424         * iconv/gconv_db.c (find_derivation): Doc Fixes.
5425         * manual/install.texi: Doc Fixes.
5426         * manual/search.texi (Hash Search Function): Doc Fixes.
5427         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
5428         * FAQ.in: Doc Fixes.
5429         * config.h.in: Doc Fixes.
5430         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
5431         Doc Fixes.  `allows to' is not correct English.
5433         * elf/rtld.c: Doc fixes.
5434         * manual/creature.texi (Feature Test Macros): Doc fixes.
5435         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
5437         * manual/filesys.texi (Working Directory): Check for ERANGE to
5438         avoid infloop.
5440 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
5442         * string/argz-stringify.c (__argz_stringify): Fix loop termination
5443         conditions so as not to clobber the final '\0' when there is only one
5444         element in the vector.
5446 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
5448         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
5449         broken by 2000-02-27 change.
5451         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
5453 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
5455         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
5456         argument type, for 2000-02-22 change in signal/signal.h declaration.
5458 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
5460         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
5461         to getdirentries64 (no __), since the Linux implementation
5462         has no __ name, and there is no declaration for the __ name.
5464         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
5466         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
5467         sed regexp so as not to break directory names including /../ within.
5469         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
5470         The sysdeps/generic file is right for BSD.  This file was in fact the
5471         Hurd file, but the only difference was the WNOREAP flag that was never
5472         actually implemented or used anywhere.
5474         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
5475         since AC_PATH_PROG already does it for us.
5476         (PERL): Rewrite check added in 2000-02-29 change for syntactic
5477         correctness and sh portability.  I replaced the broken check
5478         with a more sensible implementation of the apparently intended
5479         semantics, which might still be questionable.  Using expr causes
5480         a non-numeric value for `perl -V:apiversion` to be accepted,
5481         refusing to use only a perl that reports a number less than 5;
5482         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
5483         * configure: Regenerated.
5485 2000-03-08  Andreas Jaeger  <aj@suse.de>
5487         * manual/crypt.texi: Fix paths.
5489 2000-03-07  Andreas Jaeger  <aj@suse.de>
5491         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
5492         were swapped.
5493         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
5494         libc/1636.
5496 2000-03-06  Andreas Jaeger  <aj@suse.de>
5498         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
5499         in __sgn1l, otherwise g++ fails to parse this.
5500         Reported by Sean Chen <sean.chen@turbolinux.com>.
5502 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
5504         * configure.in: Compute sizeof-long-double.
5505         * configure: Regenerated.
5506         * config.make.in: Make sizeof-long-double available to sub-makes.
5508 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
5510         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
5511         call.
5513 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
5515         * Makeconfig (rpath-dirs): Add crypt.
5516         (all-subdirs): Remove md5crypt.
5517         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
5518         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
5519         * sysdeps/generic/crypt-entry.c: Delete.
5520         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
5521         * sysdeps/generic/crypt.h: Delete.
5522         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
5523         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
5524         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
5525         * sysdeps/generic/des_impl.c: Delete.
5526         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
5527         * crypt/sysdeps: Delete.
5528         * crypt/crypt_util.c: Don't use `patchlevel.h'.
5529         * md5-crypt/Versions: Move to crypt/.
5530         * md5-crypt/md5-crypt.c: Move to crypt/.
5531         * md5-crypt/md5.c: Move to crypt/.
5532         * md5-crypt/md5c-test.c: Move to crypt/.
5533         * md5-crypt/md5test.c: Move to crypt/.
5534         * md5-crypt: Delete.
5535         * crypt/Makefile: Adjust for new structure.
5537 2000-03-03  Paul Eggert  <eggert@twinsun.com>
5539         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
5540         define to 1 if not defined.
5542 2000-03-03  Andreas Jaeger  <aj@suse.de>
5544         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
5546 2000-03-03  Andreas Jaeger  <aj@suse.de>
5548         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
5549         cases.
5550         (xdr_int64_t): Correctly handle lower half.
5551         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
5553 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
5555         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
5556         call.
5558 2000-03-02  Andreas Jaeger  <aj@suse.de>
5560         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
5561         2.3.43.
5563 2000-03-02  Andreas Jaeger  <aj@suse.de>
5565         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
5567 2000-03-01  Andreas Jaeger  <aj@suse.de>
5569         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
5570         (tests): Added tst-getdate.
5572         * time/tst-getdate.c: New file.
5574         * time/datemsk: New file, needed for tst-getdate.
5576 2000-02-29  Cristian Gafton  <gafton@redhat.com>
5578         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
5580 2000-02-17  H.J. Lu  <hjl@gnu.org>
5582         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
5584         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
5585         available.
5586         (svcudp_recv): Set up message with the new "xp_pad" field for
5587         IP_PKTINFO.
5588         (svcudp_reply): Support IP_PKTINFO if available.
5590 2000-03-01  Andreas Jaeger  <aj@suse.de>
5592         * time/getdate.c (check_mday): Fix check for february.
5593         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
5594         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
5596 2000-03-02  Andreas Jaeger  <aj@suse.de>
5598         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
5599         g++ fails to parse this.
5600         Reported by Sean Chen <sean.chen@turbolinux.com>.
5602 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
5604         * io/creat.c: Moved to...
5605         * sysdeps/generic/creat.c: ...here.
5606         * io/creat64.c: Moved to...
5607         * sysdeps/generic/creat64.c: ...here.
5608         * io/lockf.c: Moved to...
5609         * sysdeps/generic/lockf.c: ...here.
5611         * crypt/crypt.texi: Moved to...
5612         * manual/crypt.texi: ...here.
5613         * crypt/examples/genpass.c: Moved to...
5614         * manual/examples/genpass.c: ...here.
5615         * crypt/examples/mygenpass.c: Moved to...
5616         * manual/examples/mygenpass.c: ...here.
5617         * crypt/examples/testpass.c: Moved to...
5618         * manual/examples/testpass.c: ...here.
5620         * manual/Makefile (chapters): Add crypt.
5621         * manual/conf.texi: Add usual header for not-last chapter.
5622         * manual/crypt.texi: Add special header for last chapter.
5624 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
5626         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
5627         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
5628         complain if there is no crypt add-on.
5629         * crypt/configure: Removed.
5631         * crypt/crypt.texi: Update documentation of US export restrictions
5632         to match the 14 Jan 2000 regulations.
5634 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
5636         * crypt: New subdirectory, merged in from the crypt add-on.
5638 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
5640         * include/unistd.h: Add __rmdir and __mkdir prototypes.
5643 See ChangeLog.10 for earlier changes.