Update.
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2000-10-24  Ulrich Drepper  <drepper@redhat.com>
2
3         * malloc/obstack.c (_obstack_newchunk): Correctly align first returned
4         block.
5         * malloc/tst-obstack.c: New file.
6         Patch and test case by Alexandre Duret-Lutz <duret_g@epita.fr>.
7         * malloc/Makefile (tests): Add tst-obstack.
8
9         Complete revamp of the reference counter handling.
10         * include/link.h (struct link_map): Add l_idx field.
11         * elf/dl-close.c: Handle decrementing of reference counters more
12         correctly. If necessary decrement reference counters of dependencies
13         of dependencies.
14         * elf/dl-lookup.c (add_dependency): Only increment reference counter
15         of the object itself and not also its dependencies.
16         * elf/dl-open.c: Increment reference counters here.
17         * elf/dl-deps.c: Remove reference counter handling here.
18         * elf/dl-load.c: Likewise.
19         * elf/rtld.c: Adjust for _dl_map_deps not handling reference counters.
20
21         * elf/loadtest.c: Print loaded objects at the beginning.
22
23 2000-10-24  Andreas Jaeger  <aj@suse.de>
24
25         * sysdeps/mips/dl-machine.h: Partly revert patch from 2000-10-18.
26
27 2000-10-23  Ulrich Drepper  <drepper@redhat.com>
28
29         * include/link.h (struct link_map): New bit field l_faked.
30         * elf/dl-deps.c: Use l_faked field in struct link_map instead of
31         the magic l_opencount==0.
32         * elf/dl-load.c: Likewise.
33         * elf/dl-version.c: Likewise.
34         * elf/rtld.c: Likewise.
35
36         * elf/dl-close.c (_dl_close): Add a few more __builtin_expect.
37
38 2000-10-23  Jim Meyering  <meyering@ascend.com>
39
40         Allow this code to be used outside of glibc.
41         * sysdeps/generic/memrchr.c: Undef __memrchr, too.
42         [!weak_alias]: Define __memrchr to memrchr.
43         Guard weak_alias use with `#ifdef weak_alias'.
44
45 2000-10-23  Ulrich Drepper  <drepper@redhat.com>
46
47         * elf/unload.c: Generate more debugging output.
48
49         * elf/neededtest.c: Make it more complicated.
50         * elf/neededtest2.c: New file.
51         * elf/Makefile: Add rules to build and run neededtest2.
52
53         * elf/dl-sym.c (_dl_sym): Use exact check for caller PC in range
54         of DSO address space.
55         (_dl_vsym): Likewise.
56
57         * elf/dl-sym.c (_dl_sym): For RTLD_DEFAULT, search in objects
58         global scope if we can determine it.
59
60 2000-10-23  Andreas Schwab  <schwab@suse.de>
61
62         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (RLIMIT_LOCKS): Added.
63         (RLIMIT_NLIMITS): Sync with kernel definition.
64         (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Also define as macros.
65
66 2000-10-23  Andreas Schwab  <schwab@suse.de>
67
68         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
69
70 2000-10-23  Ulrich Drepper  <drepper@redhat.com>
71
72         * elf/elf.h (R_IA64_GPREL32MSB, R_IA64_GPREL32LSB): New definitions.
73
74 2000-10-22  Bruno Haible  <haible@clisp.cons.org>
75
76         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Add irreversible mappings
77         for 0x8BF8, 0xA27E..0xA2A7.
78         * iconvdata/BIG5HKSCS.irreversible: New file.
79
80 2000-10-23  Jakub Jelinek  <jakub@redhat.com>
81
82         * timezone/zdump.c (main): setlocale LC_CTYPE as well as LC_MESSAGES.
83         * timezone/zic.c (main): Likewise.
84
85 2000-10-23  Thorsten Kukuk  <kukuk@suse.de>
86
87         * nscd/connections.c (invalidate_cache): Don't invalidate a cache
88         if it is not enabled.
89
90 2000-10-23  Andreas Jaeger  <aj@suse.de>
91
92         * sysdeps/s390/fpu/libm-test-ulps: New ulps.
93
94         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add fcntl64.
95         Patch by Ralf Baechle <ralf@gnu.org>.
96
97 2000-10-21  Ulrich Drepper  <drepper@redhat.com>
98
99         * elf/dl-load.c (_dl_map_object_from_fd): Split out ELF file
100         verification in open_verify.
101         (open_verify): New function.  Called instead of open.  Ignores valid
102         files for other architectures.
103         (open_path): Call open_verify instead of open.
104         (_dl_map_object): Likewise.
105         Somewhat based on a patch by Don Dugger <n0ano@valinux.com>.
106
107         * io/pwd.c (main): The output was missing a newline.
108
109         * posix/fnmatch_loop.c: Make FNM_LEADING_DIR behave as GNU tar
110         expects it.  Patch by Colin Watson <riva.ucam.org>.
111         * posix/tst-fnmatch.input: Add test cases for FNM_LEADING_DIR.
112
113         * elf/dl-open.c (add_to_global): New function.  Split out from
114         dl_open_worker.
115         (dl_open_worker): Call add_to_global not only for new objects, also for
116         previously loaded objects when (mode & RTLD_GLOBAL) and the object
117         was not yet in the global scope.
118         * elf/Makefile: Add rules to build and run lateglobal.
119         * elf/lateglobal.c: New file.
120         * elf/ltglobmod1.c: New file.
121         * elf/ltglobmod2.c: New file.
122
123 2000-10-20  Ulrich Drepper  <drepper@redhat.com>
124
125         * include/link.h (struct link_map): Add l_soname_added bitfield.
126         * elf/dl-load.c (_dl_map_object): Remember when we added the
127         SONAME to the l_libname list and don't try it again.
128
129         * elf/dl-close.c: Decrement opencount for all dependencies which can
130         be removed even if the object is not yet unloaded.
131         * elf/dl-deps.c (_dl_map_object_deps): If dependency is already in
132         the list decrement opencount of all dependencies.
133         * elf/dl-load.c (_dl_map_object_from_fd): Increment object of object
134         and all dependencies.
135         (_dl_map_object): Likewise.
136         * elf/dl-lookup.c (add_dependency): Likewise.
137
138         * elf/loadtest.c: Add debug when with more output.
139
140         * elf/Makefile: Add rules to build and run unload2.
141         * elf/unload2.c: New file.
142         * elf/unload2mod.c: New file.
143         * elf/unload2dep.c: New file.
144
145         * intl/libintl.h (ngettext macro): Add missing parameter.
146         (dngettext macro): Likewise.
147
148 2000-10-19  H.J. Lu  <hjl@gnu.org>
149
150         * elf/Makefile (distribute): Add neededtest.c, neededobj1.c,
151         neededobj2.c and neededobj3.c.
152         (tests): Add neededtest.
153         (modules-names): Add neededobj1, neededobj2 and neededobj3.
154         ($(objpfx)neededobj1.so): New target.
155         ($(objpfx)neededobj2.so): Likewise.
156         ($(objpfx)neededobj3.so): Likewise.
157         ($(objpfx)neededtest): Likewise.
158         ($(objpfx)neededtest.out): Likewise.
159         * elf/neededtest.c: New. Based on the bug report from
160         Allen Bauer <kylix_rd@hotmail.com>.
161         * elf/neededobj1.c: Likewise.
162         * elf/neededobj2.c: Likewise.
163         * elf/neededobj3.c: Likewise.
164
165 2000-10-20  Ulrich Drepper  <drepper@redhat.com>
166
167         * elf/dl-load.c (_dl_map_object_from_fd): Pass pointer to ELF header
168         to elf_machine_matches_host.
169         * sysdeps/alpha/dl-machine.h (elf_machine_matches_host): Parameter
170         is now pointer to ELF header.
171         * sysdeps/arm/dl-machine.h: Likewise.
172         * sysdeps/generic/dl-machine.h: Likewise.
173         * sysdeps/hppa/dl-machine.h: Likewise.
174         * sysdeps/i386/dl-machine.h: Likewise.
175         * sysdeps/ia64/dl-machine.h: Likewise.
176         * sysdeps/m68k/dl-machine.h: Likewise.
177         * sysdeps/mips/dl-machine.h: Likewise.
178         * sysdeps/mips/mips64/dl-machine.h: Likewise.
179         * sysdeps/powerpc/dl-machine.h: Likewise.
180         * sysdeps/s390/dl-machine.h: Likewise.
181         * sysdeps/sh/dl-machine.h: Likewise.
182         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
183         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
184         Patch by Martin Schwidefsksy <schwidefsky@de.ibm.com>.
185
186 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
187
188         * include/limits.h: Include bits/wordsize.h, use #if __WORDSIZE == 64
189         check instead of #ifdef __alpha__.
190         * include/bits/xopen_lim.h (WORD_BIT, LONG_BIT): Don't count on
191         INT_MAX, __INT_MAX__, LONG_MAX or __LONG_MAX__ being defined when
192         this is included.
193
194 2000-10-20  Ulrich Drepper  <drepper@redhat.com>
195
196         * posix/wordexp-tst.sh (testout): Place output file in build
197         directory.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
198
199         * sysdeps/powerpc/fpu/bits/mathinline.h: Pretty print.
200
201 2000-10-19  Ulrich Drepper  <drepper@redhat.com>
202
203         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
204         Correctly handle numeric group member information.
205         Patch by tomasw@cs.huji.ac.il.
206
207         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
208         Complete test for strtol overflow.
209
210 2000-10-19  Jakub Jelinek  <jakub@redhat.com>
211
212         * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Pass union
213         semun as 4th argument to semctl syscall, not address of it.
214
215 2000-10-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
216
217         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add fcntl64() syscall.
218
219 2000-10-17  Andreas Schwab  <schwab@suse.de>
220
221         * string/string.h: Remove declaration of __strcasecmp and __strcasestr.
222         * include/string.h: Declare them here.
223
224 2000-10-18  Ralf Baechle  <ralf@gnu.org>
225
226         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Include <asm/unistd.h>.
227
228 2000-10-19  Geoffrey Keating  <geoffk@cygnus.com>
229
230         * sysdeps/powerpc/fpu/bits/mathinline.h: Add versions
231         of the unordered comparison functions that use the GCC builtins.
232
233         * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): New function.
234         (__process_machine_rela): Print the address of an overflowing
235         reloc.
236
237 2000-10-18  Ulrich Drepper  <drepper@redhat.com>
238
239         * sysdeps/unix/sysv/linux/shm_open.c: Correct default mount point
240         in comments.
241         (freeit): Remove unnecessary test.
242
243 2000-10-18  Andreas Jaeger  <aj@suse.de>
244
245         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_OK): New.
246         (ELF_MACHINE_BEFORE_RTLD_RELOC): Handle newer linkers.
247         (elf_machine_runtime_link_map): Likewise.
248         (elf_machine_runtime_setup): Likewise.
249         Handle dynamic linker's local got entries.
250         Patches by Ralf Baechle <ralf@gnu.org>.
251
252 2000-10-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
253
254         * sysdeps/mips/dl-machine.h (_dl_runtime_resolve): Define $sp as
255         the frame pointer.  Allocate stack space for $a0 for
256         __dl_runtime_resolve().  Do not save $sp in $s0 as it's
257         callee-saved anyway.
258
259 2000-10-17  Ulrich Drepper  <drepper@redhat.com>
260
261         * sysdeps/powerpc/fpu/libm-test-ulps: Update for changes in
262         libm-test.inc.
263
264 2000-10-17  Andreas Schwab  <schwab@suse.de>
265
266         * sysdeps/m68k/fpu/libm-test-ulps: Update for changes in
267         libm-test.inc.
268
269 2000-10-17  Jakub Jelinek  <jakub@redhat.com>
270
271         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
272         Add missing backslash.
273
274 2000-10-16  Ulrich Drepper  <drepper@redhat.com>
275
276         * sysdeps/generic/dl-sysdep.c (DL_FIND_ARG_COMPONENTS): Little cleanup.
277
278         * sysdeps/i386/fpu/libm-test-ulps: Update for changes in libm-test.inc.
279
280 2000-10-16  Jakub Jelinek  <jakub@redhat.com>
281
282         * math/libm-test.inc (M_LOG_SQRT_PIl, M_LOG_2_SQRT_PIl): Increase
283         precision.
284         (acos_test, asin_text, cexp_test, cos_test, cproj_test, exp10_test,
285         sin_test, sincos_test, sqrt_test): Likewise.  Add L suffixes also
286         to parameters.
287         (acosh_test, asinh_test, atan2_test, atanh_test, atan_test, cabs_test,
288         cacosh_test, cacos_test, casinh_test, casin_test, catanh_test,
289         catan_test, cbrt_test, ccosh_test, ccos_test, clog10_test, cosh_test,
290         csinh_test, csin_test, csqrt_test, ctanh_test, ctan_test, erfc_test,
291         erf_test, exp2_test, expm1_test, exp_test, fmod_test, hypot_test,
292         j0_test, j1_test, jn_test, lgamma_test, llrint_test, llround_test,
293         log10_test, log1p_test, log2_test, log_test, lrint_test, lround_test,
294         nextafter_test, nexttoward_test, pow_test, round_test, scalb_test,
295         sinh_test, static void, tanh_test, tan_test, tgamma_test, y0_test,
296         y1_test, yn_test): Add L suffixes also to parameters.
297         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Fix mask.
298         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
299         * soft-fp/op-2.h (_FP_FRAC_SRS_2): Fix computation of sticky bit.
300
301 2000-10-16  Ulrich Drepper  <drepper@redhat.com>
302
303         * timezone/Makefile: Define HAVE_GETTEXT for zdump.c, zic.c,
304         ialloc.c, and scheck.c.
305         * malloc/obstack.c: Always include <libintl.h> for glibc.
306         * posix/getopt.c: Likewise.
307         Reported by Petr Vandrovec <VANDROVE@vc.cvut.cz>.
308
309 2000-10-15  Pete Wyckoff  <pw@osc.edu>
310
311         * Rules: Define _LIBC during generation of bits/stdio_lim.d.
312
313 2000-10-15  Pete Wyckoff  <pw@osc.edu>
314
315         * iconvdata/tst-tables.sh: Invoke other shell scripts through ${SHELL}.
316         * iconvdata/tst-table.sh: Likewise.
317
318 2000-10-15  Ulrich Drepper  <drepper@redhat.com>
319
320         * elf/dl-error.c (_dl_signal_error): Allocate memory for objname
321         as well.  Reported by Alexander V. Lukyanov <lav@yars.free.net>.
322
323         * iconvdata/gconv-modules: Add aliases for Winblowz charsets.
324         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
325
326 2000-10-13  Andreas Schwab  <schwab@suse.de>
327
328         * elf/elf.h (R_IA64_PCREL60B): Add relocation.
329
330 2000-10-15  Ulrich Drepper  <drepper@redhat.com>
331
332         * sysdeps/unix/sysv/linux/hppa/brk.c: Cleanups.
333         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
334         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
335         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Likewise.
336         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
337
338 2000-10-14  Ulrich Drepper  <drepper@redhat.com>
339
340         * math/libm-test.inc (frexp_test): Add L suffix also to parameters.
341         (hypot_test): Likewise.
342
343         * sysdeps/generic/printf_fphex.c: Compute width of decimal point
344         string correctly.  Handle padding correctly.
345
346         * sysdeps/ia64/fpu/printf_fphex.c: Use sizeof in _itowa parameters
347         correctly.
348         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
349         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
350
351 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
352
353         * FAQ.in: Add --start-group and --end-group.
354
355 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
356
357         * malloc/memusage.c: Conditionalize stack usage calculation on
358         stack direction.
359
360 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
361
362         * config.h.in: Add ASM_LINE_SEP.
363         * configure.in: Add test for comment and line separators.
364         * include/libc-symbols.h: Define and use ASM_LINE_SEP, and add tabs to
365         placate some hppa assemblers.
366         * sysdeps/hppa/sysdep.h: Likewise.
367         * sysdeps/gnu/siglist.c: Insert \n and \t into inline asm.
368         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
369
370 2000-10-12  David Huggins-Daines  <dhd@linuxcare.com>
371
372         * sysdeps/unix/sysv/linux/Makefile: Include <bits/initspin> in
373         $(sysdep_headers).
374         * sysdeps/unix/sysv/linux/bits/initspin.h: Dummy version for
375         non-threaded platforms.
376
377 2000-10-12  David Huggins-Daines  <dhd@linuxcare.com>
378
379         * configure.in: Add definitions for hppa.
380         * elf/elf.h: Add PLABEL32 relocation for hppa ELF32, comments
381         for IPLT and EPLT relocations.
382         * shlib-versions: Version symbol definitions for hppa-linux.
383         * sysdeps/unix/sysv/linux/configure.in: Define $arch_minimum_kernel
384         for hppa.
385
386 2000-10-12  David Huggins-Daines  <dhd@linuxcare.com>
387
388         * sysdeps/hppa/Makefile: New file.
389         * sysdeps/hppa/Versions: New file.
390
391         * sysdeps/hppa/setjmp.S: New file.
392         * sysdeps/hppa/__longjmp.S: New file.
393         * sysdeps/hppa/bits/setjmp.h: New file.
394         * sysdeps/hppa/frame.h: New file.
395
396         * sysdeps/hppa/add_n.s: Don't use %r19 (linkage table pointer).
397         * sysdeps/hppa/sub_n.s: Likewise.
398         * sysdeps/hppa/lshift.s: Likewise.
399         * sysdeps/hppa/rshift.s: Likewise.
400         * sysdeps/hppa/udiv_qrnnd.s: Likewise.
401         * sysdeps/hppa/hppa1.1/addmul_1.s: Likewise.
402         * sysdeps/hppa/hppa1.1/submul_1.s: Likewise.
403         * sysdeps/hppa/hppa1.1/mul_1.s: Likewise.
404         * sysdeps/hppa/hppa1.1/udiv_qrnnd.s: Likewise.
405
406         * sysdeps/hppa/dl-machine.h: New file.
407         * sysdeps/hppa/dl-fptr.c: New file (note that this is almost
408         identical to the IA-64 one).
409         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
410         * sysdeps/hppa/dl-symaddr.c: Likewise.
411
412         * sysdeps/hppa/elf/initfini.c: New file.
413         * sysdeps/hppa/elf/start.S: New file.
414
415         * sysdeps/hppa/fpu/bits/fenv.h: New file.
416         * sysdeps/hppa/fpu/fclrexcpt.c: New file.
417         * sysdeps/hppa/fpu/fedisblxcpt.c: New file.
418         * sysdeps/hppa/fpu/feenablxcpt.c: New file.
419         * sysdeps/hppa/fpu/fegetenv.c: New file.
420         * sysdeps/hppa/fpu/fegetexcept.c: New file.
421         * sysdeps/hppa/fpu/fegetround.c: New file.
422         * sysdeps/hppa/fpu/feholdexcpt.c: New file.
423         * sysdeps/hppa/fpu/fesetenv.c: New file.
424         * sysdeps/hppa/fpu/fesetround.c: New file.
425         * sysdeps/hppa/fpu/feupdateenv.c: New file.
426         * sysdeps/hppa/fpu/fegetexcptflg.c: New file.
427         * sysdeps/hppa/fpu/fraiseexcpt.c: New file.
428         * sysdeps/hppa/fpu/fsetexcptflg.c: New file.
429         * sysdeps/hppa/fpu/ftestexcept.c: New file.
430
431         * sysdeps/unix/sysv/linux/hppa/Makefile: New file.
432         * sysdeps/unix/sysv/linux/hppa/Versions: New file.
433         * sysdeps/unix/sysv/linux/hppa/syscalls.list: New file.
434         * sysdeps/unix/sysv/linux/hppa/sysdep.c: New file.
435         * sysdeps/unix/sysv/linux/hppa/sysdep.h: New file.
436
437
438         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: New file.
439         * sysdeps/unix/sysv/linux/hppa/bits/ioctls.h: New file.
440         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: New file.
441         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: New file.
442         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: New file.
443         * sysdeps/unix/sysv/linux/hppa/brk.c: New file.
444         * sysdeps/unix/sysv/linux/hppa/clone.S: New file.
445         * sysdeps/unix/sysv/linux/hppa/socket.S: New file.
446         * sysdeps/unix/sysv/linux/hppa/syscall.S: New file.
447         * sysdeps/unix/sysv/linux/hppa/setrlimit.c: New file.
448         * sysdeps/unix/sysv/linux/hppa/getrlimit.c: New file.
449         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: New file.
450         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: New file.
451         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: New file.
452         * sysdeps/unix/sysv/linux/hppa/mmap.c: New file.
453         * sysdeps/unix/sysv/linux/hppa/profil-counter.h: New file.
454         * sysdeps/unix/sysv/linux/hppa/procfs.h: New file.
455         * sysdeps/unix/sysv/linux/hppa/ucontext.h: New file.
456         * sysdeps/unix/sysv/linux/hppa/umount.c: New file.
457
458 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
459
460         * sysdeps/hppa/hppa1.1/Implies: New file.
461         * sysdeps/hppa/memusage.h: New file.
462
463 2000-10-28  Jes Sorensen  <jes@linuxcare.com>
464
465         * sysdeps/unix/sysv/linux/ia64/Versions: Export ioperm, iopl, inb,
466         inw, inl, _inb, _inw, _inl, outb, outw, outl, _outb, _outw,
467         _outl.  Reported by Bill Nottingham.
468
469 2000-04-06  Andreas Schwab  <schwab@suse.de>
470
471         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Save and
472         restore register r8 for functions that return a structure.
473
474 2000-10-12  Jakub Jelinek  <jakub@redhat.com>
475
476         * math/libm-test.inc (M_PI_6l, M_E2l, M_E3l, M_2_SQRT_PIl,
477         M_SQRT_PIl): Increase precision.
478         (cbrt_test): If cbrt is not implemented, don't test it.
479         Add L suffix to double constants in results which differ from their
480         L suffixed counterparts.
481         (exp10_test, fmod_test, frexp_test, hypot_test, sqrt_test): Likewise.
482
483         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
484
485 2000-10-11  Jakub Jelinek  <jakub@redhat.com>
486
487         * inet/rexec.c (rexec_af): Convert rport to host order before
488         passing it to snprintf.
489
490 2000-10-14  Ulrich Drepper  <drepper@redhat.com>
491
492         * sysdeps/gnu/netinet/tcp.h: Use u_intXX_t types instead of
493         uintXX_t since this is what <sys/types.h> defines and we include
494         this header.  Reported by Bernhard Rosenkraenzer <bero@redhat.de>.
495
496         * intl/localealias.c (read_alias_file): Update string pointers
497         in map[] if realloc() changed the values.
498         Patch by Jakub Jelinek <jakub@redhat.com>.
499
500         * manual/stdio.texi: Update printf extension documentation after
501         z became a valid modifier.
502         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
503
504         * timezone/africa: Update from tzcode2000g and tzdata2000g.
505         * timezone/asia: Likewise.
506         * timezone/australasia: Likewise.
507         * timezone/backward: Likewise.
508         * timezone/europe: Likewise.
509         * timezone/iso3166.tab: Likewise.
510         * timezone/northamerica: Likewise.
511         * timezone/southamerica: Likewise.
512         * timezone/zone.tab: Likewise.
513
514 2000-10-14  Geoffrey Keating  <geoffk@cygnus.com>
515
516         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add fcntl()
517         syscall.
518
519 2000-10-13  Michael Fedrowitz  <michael@fedrowitz.de>
520
521         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: New file.
522         * sysdeps/unix/sysv/linux/m68k/fcntl.c: New file.
523         * sysdeps/unix/sysv/linux/m68k/getdents64.c: New file.
524         * sysdeps/unix/sysv/linux/m68k/getrlimit.c: New file.
525         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: New file.
526         * sysdeps/unix/sysv/linux/m68k/glob64.c: New file.
527         * sysdeps/unix/sysv/linux/m68k/lockf64.c: New file.
528         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: New file.
529         * sysdeps/unix/sysv/linux/m68k/readdir64.c: New file.
530         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: New file.
531         * sysdeps/unix/sysv/linux/m68k/scandir64.c: New file.
532         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: New file.
533         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: New file.
534         * sysdeps/unix/sysv/linux/m68k/Dist: Add oldgetrlimit64.c.
535         * sysdeps/unix/sysv/linux/m68k/Makefile: Add oldgetrlimit64.
536         * sysdeps/unix/sysv/linux/m68k/Versions: Export __xstat64,
537         __fxstat64, __lxstat64, alphasort64, glob64, getrlimit, setrlimit,
538         getrlimit64, readdir64, readdir64_r, scandir64, versionsort64 at
539         GLIBC_2.2.
540         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add oldgetrlimit,
541         oldsetrlimit for GLIBC_2.0.
542
543         * sysdeps/m68k/dl-machine.h (_dl_start_user): Pass correct
544         arguments to _dl_init.
545
546 2000-10-13  Geoffrey Keating  <geoffk@cygnus.com>
547
548         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs for my Pentium III
549         building with the default options.
550
551 2000-10-11  Andreas Jaeger  <aj@suse.de>
552
553         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set cache.
554         Patch by Denis Zaitsev <zzz@cd-club.ru>.
555
556 2000-10-09  Jakub Jelinek  <jakub@redhat.com>
557
558         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): If x == y,
559         return y not x.
560         * manual/arith.texi (nextafter): Document it.
561         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Fix a comment.
562
563 2000-10-08  Ulrich Drepper  <drepper@redhat.com>
564
565         * version.h (VERSION): Bump to 2.1.95.
566
567         * configure.in: Remove warning message.
568
569         * nscd/Makefile (distribute): Add nscd-types.h.
570         * elf/Makefile (distribute): Add gccframe.h.
571         * sysdeps/sparc/sparc32/Dist: Add ieee754.h.
572         * sysdeps/ia64/Dist: Add ieee754.h.
573
574 2000-10-07  Ulrich Drepper  <drepper@redhat.com>
575
576         * elf/elf.h: Add a few section-related symbols.
577
578         * include/features.h (__STDC_ISO_10646__): Set to correct date.
579         Patch by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
580
581 2000-10-06  Jes Sorensen  <jes@linuxcare.com>
582
583         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Implement
584         overflow generation by adding DBL_MAX to DBL_MAX instead of
585         setting the bits manually in the fpsr and generating the exception
586         with kill() if necessary.
587         (feraiseexcept): Implement underflow by dividing DBL_MIN by
588         DBL_MIN - similar to the overflow change described above.
589
590 2000-08-27  H.J. Lu  <hjl@gnu.org>
591
592         * sysdeps/unix/sysv/linux/ia64/clone.S: Make it a dummy as clone
593         is not supported under Linux/ia64, use clone2.
594
595 2000-10-06  Jakub Jelinek  <jakub@redhat.com>
596
597         * malloc/malloc.h (__THROW): Define to nothing if not gcc.
598         * misc/sys/cdefs.h (__THROW): Likewise.
599
600 2000-10-05  Jakub Jelinek  <jakub@redhat.com>
601
602         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: New file.
603
604 2000-10-02  Jakub Jelinek  <jakub@redhat.com>
605
606         * sunrpc/svc_udp.c (svcudp_recv): Set msg_controllen to all
607         remaining xp_pad space.
608
609 2000-10-05  Jakub Jelinek  <jakub@redhat.com>
610
611         * elf/dl-close.c (_dl_close): Check imap's l_flags_1 for
612         DF_1_NODELETE, not list[i]'s.
613
614 2000-10-04  Ulrich Drepper  <drepper@redhat.com>
615
616         * iconvdata/euc-kr.c (euckr_from_ucs4): Handle U20a9.
617         (BODY from direction): Map \x5c to U20a9.
618         * iconvdata/testdata/EUC-KR..UTF8: Adjust to this change.
619         * iconvdata/EUC-KR.irreversible: New file.
620         * iconvdata/Makefile (distribute): Add EUC-KR.irreversible.
621
622         * argp/argp-parse.c (argp_default_argp): Set libc as message domain.
623         (argp_version_argp): Likewise.
624
625 2000-10-04  Jakub Jelinek  <jakub@redhat.com>
626
627         * stdio-common/vfscanf.c (_IO_vfscanf): For [ conversion do
628         input_error() if EOF is seen before processing.
629         * stdio-common/tstscanf.c (main): Add testcase.
630
631 2000-10-04  Ulrich Drepper  <drepper@redhat.com>
632
633         * argp/argp-help.c: Make sure we get the correct gettext and
634         dgettext definitions.
635         * argp/argp-parse.c: Likewise.
636
637 2000-10-03  Ulrich Drepper  <drepper@redhat.com>
638
639         * locale/programs/linereader.c (get_string): Also clear wide
640         string info if illegal_string.
641
642 2000-10-03  Andreas Schwab  <schwab@suse.de>
643
644         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: New file.
645
646 2000-10-02  Jakub Jelinek  <jakub@redhat.com>
647
648         * elf/nextmod1.c (failing_rtld_next_use): Ensure it is not tail call
649         optimized.
650
651         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: New file.
652
653 2000-10-02  Ralf Baechle  <ralf@gnu.org>
654
655         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Add missing .mips0 at the
656         end of inline assembler code.
657
658 2000-10-02  Ulrich Drepper  <drepper@redhat.com>
659
660         * include/features.h [__USE_FILE_OFFSET && !__REDIRECT]: Define
661         __USE_LARGEFILE64 and __USE_LARGEFILE to 1 and not nothing.
662
663 2000-10-02  Andreas Jaeger  <aj@suse.de>
664
665         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Synch with Linux
666         2.4.0-test9-pre8.
667
668         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Add RLIMIT_LOCKS.
669
670 2000-10-01  Ralf Baechle  <ralf@gnu.org>
671
672         * sysdeps/mips/dl-machine.h (RTLD_START): Fix computation of envp
673         argument passed to _dl_init.
674
675 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
676
677         * locale/programs/charmap-dir.h: New file.
678         * locale/programs/charmap-dir.c: New file.
679         * locale/programs/linereader.h (lr_create): New declaration.
680         * locale/programs/linereader.c (lr_create): New function, split out
681         from lr_open.
682         (lr_open): Tailcall lr_create.
683         * locale/programs/locale.c: Include "charmap-dir.h". Don't include
684         <unistd.h>.
685         (xstrdup): New declaration.
686         (more_help): Use xstrdup instead of strdup.
687         (write_locales): Likewise. When encountering a symbolic link, call
688         stat.
689         (write_charmaps): Simplify using the charmap-dir.h functions.
690         Use xstrdup instead of strdup.
691         * locale/programs/charmap.c: Include "charmap-dir.h". Don't include
692         <dirent.h> and <unistd.h>.
693         (cmlr_open): New function.
694         (charmap_read): Use cmlr_open instead of lr_open. Simplify using the
695         charmap-dir.h functions.
696         * locale/Makefile (distribute): Add charmap-dir.h.
697         (lib-modules): Add charmap-dir.
698         (CFLAGS-charmap-dir.c): Set to -Wno-write-strings, because posix_spawn
699         wants a 'char **', not a 'const char **'.
700         * include/spawn.h: New file.
701
702 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
703
704         * posix/spawn_faction_init.c: Include "spawn_int.h".
705         (__posix_spawn_file_actions_realloc): Fix second realloc argument.
706
707 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
708
709         * locale/programs/config.h (DEFAULT_CHARMAP): Set to ANSI_X3.4-1968.
710
711 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
712
713         * wcsmbs/wcwidth.h (__ctype32_wctype): Remove declaration.
714         (internal_wcwidth): Remove the tests for L'\0' and iswprint.
715         * locale/programs/ld-ctype.c (find_idx): If max == NULL, return
716         a pointer to the table entry, without extending the table.
717         (allocate_arrays): Set a width only for characters with 'print'
718         property. Set the width of L'\0' to 0.
719         * locale/C-ctype.c (_nl_C_LC_CTYPE_width): Use default entry 0xff
720         for unprintable characters.  Set entry of NUL to 0.
721
722 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
723
724         * locale/programs/charmap.c (charmap_read): Avoid redundant tests.
725         Don't forget to call closedir when the filename was found as a
726         code_set_name.
727
728 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
729
730         * iconv/gconv.h (__gconv_trans_context_fct): Change first argument's
731         type to 'void *'.
732
733 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
734
735         * locale/programs/ld-ctype.c (wctype_table_init): Initialize level1,
736         level2, and level3 as well.
737         (wctype_table_add): Remove a few unnecessary conditionals.
738
739 2000-09-30  Ralf Baechle  <ralf@gnu.org>
740
741         * wcsmbs/Versions [libc] (GLIBC_2.0): Add __mbrtowc.
742
743 2000-09-30  H.J. Lu  <hjl@gnu.org>
744
745         * sysdeps/ieee754/ldbl-96/s_ceill.c (__ceill): Handle overflow.
746         * sysdeps/ieee754/ldbl-96/s_floorl.c (__floorl): Likewise.
747
748 2000-09-29  H.J. Lu  <hjl@gnu.org>
749
750         * math/libm-test.inc (init_max_error): Clear all exceptions
751         before starting test.
752         (acosh_test): Test for existence of function.
753         (asinh_test): Likewise.
754         (atan2_test): Likewise.
755         (cabs_test): Likewise.
756         (cacos_test): Likewise.
757         (cacosh_test): Likewise.
758         (casin_test): Likewise.
759         (casinh_test): Likewise.
760         (catan_test): Likewise.
761         (catanh_test): Likewise.
762         (ccos_test): Likewise.
763         (ccosh_test): Likewise.
764         (cexp_test): Likewise.
765         (clog_test): Likewise.
766         (clog10_test): Likewise.
767         (cosh_test): Likewise.
768         (cpow_test): Likewise.
769         (csin_test): Likewise.
770         (csinh_test): Likewise.
771         (csqrt_test): Likewise.
772         (ctan_test): Likewise.
773         (ctanh_test): Likewise.
774         (fmod_test): Likewise.
775         (hypot_test): Likewise.
776         (remainder_test): Likewise.
777         (remquo_test): Likewise.
778         (sincos_test): Likewise.
779         (sinh_test): Likewise.
780         (tanh_test): Likewise.
781
782 2000-09-29  H.J. Lu  <hjl@gnu.org>
783
784         * sysdeps/ia64/ieee754.h: New file.
785
786         * sysdeps/ia64/fpu/math_ldbl.h: New file.
787
788 2000-09-30  Jakub Jelinek  <jakub@redhat.com>
789
790         * elf/ldconfig.h (FLAG_X8664_LIB64): Define.
791         * sysdeps/unix/sysv/linux/i386/readelflib.c: New file.
792
793 2000-09-30  Ulrich Drepper  <drepper@redhat.com>
794
795         * manual/charset.texi: Correct notations, reference to C90 amd 1,
796         and some other details.
797         * manual/ctype.texi: Likewise.
798         Patches by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
799
800 2000-09-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
801
802         * sysdeps/ieee754/flt-32/s_frexpf.c: Make it aliasing safe.
803
804 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
805
806         * elf/cache.c (save_cache): Initialize __unused field in new cache
807         as well to get reproducable results.
808
809 2000-09-29  H.J. Lu  <hjl@gnu.org>
810
811         * sysdeps/ia64/fpu/libm-test-ulps: Updated for long double.
812
813 2000-09-29  H.J. Lu  <hjl@gnu.org>
814
815         * sysdeps/ia64/bits/huge_val.h: New file.
816
817 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
818
819         * elf/chroot_canon.c: Don't report a failure if the last path
820         component is not available.
821         * elf/ldconfig.c (parse_conf): Use canonicalized name when reporting
822         error.
823
824         * elf/cache.c (print_cache): Use stat64 instead of stat.
825         * elf/ldconfig.c (chroot_stat): Likewise.
826         (create_links): Likewise.
827         (manual_link): Likewise.
828         (search_dir): Likewise.
829         * elf/readlib.c (process_file): Likewise.
830
831         * Makefile (install): Set LC_ALL and LANGUAGE to C before running
832         ldconfig.
833
834 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
835
836         * elf/chroot_canon.c: New file.
837         * elf/Makefile: Build and distribute it.
838         * elf/ldconfig.h (process_file): Add real_file_name argument.
839         (chroot_canon): Add prototype.
840         * elf/ldconfig.c (cache_file): Remove const.
841         (chroot_stat): New.
842         (create_links): Add real_path argument.
843         If opt_chroot, maintain both real and given filenames.
844         (manual_link): Likewise.
845         (search_dir): Likewise.
846         (parse_conf): If opt_chroot, use chroot_canon to find the real
847         config file.
848         (main): For -r, try to use chroot, if it fails, leave opt_chroot set
849         and use chroot_canon where appropriate to do the same as if chroot
850         succeeded.
851         * elf/readlib.c (process_file): Add real_file_name argument, pass it
852         to fopen.
853
854 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
855
856         * math/complex.h (_Complex): We can be more specific when _Complex
857         is defined by the compiler.
858
859 2000-09-29  H.J. Lu  <hjl@gnu.org>
860
861         * sysdeps/unix/sysv/linux/ia64/dl-cache.h: New.
862
863         * elf/cache.c (print_entry): Replace 64bit with IA-64 in message
864         for x86/IA-64 binary.
865
866 2000-09-29  Andreas Schwab  <schwab@suse.de>
867
868         * sysdeps/unix/sysv/linux/ia64/readelflib.c: New file.
869
870         * elf/cache.c (print_entry): Check for FLAG_IA64_LIB64.
871
872 2000-09-29  Mark Kettenis  <kettenis@gnu.org>
873
874         * sysdeps/mach/hurd/dl-sysdep.c (__access): New function.  Dummy
875         implementation for use by the dynamic linker.
876
877 2000-09-29  Andreas Jaeger  <aj@suse.de>
878
879         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Protect DN_* by
880         __USE_GNU.
881         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
882         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
883         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
884         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
885         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
886         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
887
888 2000-09-29  Andreas Jaeger  <aj@suse.de>
889
890         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Synch with Linux
891         2.4.0-test9-pre7.
892         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
893         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
894         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
895         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
897         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
898
899 2000-09-29  David Mosberger  <davidm@hpl.hp.com>
900
901         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__ia64_syscall): Cleanup.
902
903         * sysdeps/unix/sysv/linux/ia64/sysdep.h (CALL_MCOUNT): Implement.
904
905 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
906
907         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix it so it actually
908         works: call to __sigjmp_save must be done unconditionally to
909         ensure jmp_buf is initialized properly.
910
911 2000-09-27  Andreas Jaeger  <aj@suse.de>
912
913         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Synch with Linux
914         2.4.0-test9-pre7.
915
916 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
917
918         * nscd/nscd-client.h (NSCD_VERSION): Bump to 3.
919         Use nscd_ssize_t where appropriate.
920         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use nscd_ssize_t instead of
921         ssize_t where appropriate.
922         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
923         * nscd/hstcache.c (cache_addhst): Likewise.
924         * nscd/grpcache.c (cache_addgr): Likewise.
925         * sysdeps/generic/nscd-types.h: New file.
926         * sysdeps/alpha/nscd-types.h: New file.
927
928 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
929
930         * inet/getnameinfo.c (nrl_domainname): Use symbolic constant
931         INADDR_LOOPBACK instead of numeric value.
932
933 2000-09-28  H.J. Lu  <hjl@gnu.org>
934
935         * sysdeps/ia64/dl-machine.h (RTLD_START): Adjust _dl_argv by
936         _dl_skip_args.
937         (ELF_MACHINE_FIXED_STACK): Removed.
938
939 2000-09-29  Andreas Jaeger  <aj@suse.de>
940
941         * sysdeps/unix/sysv/linux/s390/lockf64.c: New file.
942
943         * sysdeps/unix/sysv/linux/s390/fcntl.c: New file.
944
945         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: New file.
946
947         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: New file.
948
949 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
950
951         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle unaligned
952         relocation also for R_ALPHA_RELATIVE.
953         Reported by Ivan Kokshaysky <ink@jurassic.park.msu.ru>.
954
955 2000-09-18  Bruno Haible  <haible@clisp.cons.org>
956
957         * intl/dcigettext.c: Outside libc, use local variable names that don't
958         clash with those in libc.
959         * intl/bindtextdom.c: Likewise.
960         * intl/textdomain.c: Likewise.
961
962 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
963
964         * elf/ldconfig.c (parse_conf): Print full name of config dir
965         including chroot() path.
966         (main): Remove trailing / from opt_chroot string.
967
968         * include/features.h: Correct description of what happens if no
969         *_SOURCE macro is defined.
970
971         * sysdeps/posix/getaddrinfo.c (gaih_inet): Handle req->ai_socktype
972         correctly.  Reported by Felix von Leitner <leitner@convergence.de>.
973
974 2000-09-19  H.J. Lu  <hjl@gnu.org>
975
976         * malloc/malloc.h (__memalign_hook): Fix the parameter order.
977         * malloc/malloc.c (__memalign_hook): Likewise.
978         (memalign_hook_ini): Likewise.
979
980 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
981
982         * stdio-common/tmpnam.c (tmpnam): Optimize a bit.
983
984         * sysdeps/posix/getaddrinfo.c (gaih_local): Don't use tmpnam, use
985         underlying functions directly.
986
987         * sysdeps/unix/sysv/linux/bits/resource.h: Add RLIMIT_LOCKS.
988         * sysdeps/unix/sysv/linux/arm/bits/resource.h: Likewise.
989         * sysdeps/unix/sysv/linux/i386/bits/resource.h: Likewise.
990         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
991         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: Likewise.
992         * sysdeps/unix/sysv/linux/sh/bits/resource.h: Likewise.
993         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
994
995 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
996
997         * sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_IPC64, only
998         define it for powerpc for kernel >= 2.4.0.
999         * sysdeps/unix/sysv/linux/msgctl.c: Test for __ASSUME_IPC64, not
1000         __ASSUME_32BITUIDS.
1001         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
1002         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1003         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Sync with kernel.
1004         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: New file.
1005         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: New file.
1006         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: New file.
1007
1008 2000-09-28  Martin Schwidefsksy  <schwidefsky@de.ibm.com>
1009
1010         * sysdeps/s390/atomicity.h: Fix compare_and_swap.
1011
1012         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h
1013         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
1014
1015 2000-09-28  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1016
1017         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Use definitions from
1018         ucontext.h.
1019         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Fix ucontext structure.
1020
1021 2000-09-27  Andreas Schwab  <schwab@suse.de>
1022
1023         * math/Makefile (distribute): Explicitly add the long double test
1024         sources, to get them included even if long double is not supported.
1025
1026 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
1027
1028         * elf/soinit.c (struct object): Move definition to gccframe.h and
1029         include it.  Problem identified by HJ Lu.
1030
1031         * sysdeps/ia64/gccframe.h: New file.  ia64 specific version of
1032         struct object to be searched for frame unwind info.
1033         * sysdeps/generic/gccframe.h: New file.  Generic version of
1034         struct object to be searched for frame unwind info.
1035
1036 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
1037
1038         * manual/errno.texi: Correct error text for ENXIO.
1039         Reported by Jörg Schilling <schilling@fokus.gmd.de>.
1040
1041 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
1042
1043         * sysdeps/ia64/fpu/fsetexcptflg.c (fesetexceptflag): Set the
1044         exception status bits rather than the exception disable bits.
1045         Don't include math.h.
1046
1047         * sysdeps/ia64/fpu/fgetexcptflg.c (fegetexceptflag): Report the
1048         status of exceptions currently raised rather than which exceptions
1049         are enabled.
1050
1051         * sysdeps/ia64/fpu/fclrexcpt.c (feclearexcept): Typecase to fenv_t
1052         rather than unsigned long int.
1053
1054         * sysdeps/ia64/fpu/fedisblxcpt.c (fedisableexcept): Only disable
1055         the exceptions actually requested by the caller and not just
1056         disable all exceptions.
1057
1058         * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Exceptions on
1059         the ia64 are enabled by clearing the respective bits in the fpsr,
1060         not setting them.
1061
1062         * sysdeps/ia64/bits/fenv.h: typedef fexcept_t and fenv_t to
1063         unsigned long int rather than unsigned long to be consistent with
1064         the coding conventions.
1065
1066 2000-09-20  H.J. Lu  <hjl@gnu.org>
1067
1068         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Use fenv_t instead of
1069         unsigned long int.
1070         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
1071
1072 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
1073
1074         * string/bits/string2.h: Unify #if usage.
1075
1076 2000-09-27  Jakub Jelinek  <jakub@redhat.com>
1077
1078         * math/test-fenv.c (feexcp_mask_test): If enabling all exceptions
1079         and disabling underflow or overflow, disable inexact as well.
1080
1081 2000-09-26  Andreas Jaeger  <aj@suse.de>
1082
1083         * sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types.
1084
1085         * sysdeps/unix/sysv/linux/sys/mount.h (enum): New flag MS_BIND.
1086
1087         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETLKW64,
1088         F_GETLK64, F_SETLK64): Update from Linux-2.4.0-test9-pre4.
1089
1090         * elf/ldconfig.c (search_dir): Allow unlimited path length.
1091         (create_links): Likewise.
1092
1093 2000-09-27  Ulrich Drepper  <drepper@redhat.com>
1094
1095         * posix/tst-dir.c: Test a few error cases of chdir.
1096
1097 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
1098
1099         * math/math_private.h: Don't add long double prototypes if
1100         NO_LONG_DOUBLE is defined.
1101
1102         * sysdeps/unix/i386/i586/clock_nanosleep.c (CLOCK_P): Remove
1103         CLOCK_MONOTONIC.
1104         * sysdeps/unix/i386/i586/clock_gettime.c (EXTRA_CLOCK_CASES): Likewise.
1105         * sysdeps/unix/i386/i586/clock_getres.c (EXTRA_CLOCK_CASES): Likewise.
1106
1107         * sysdeps/unix/sysv/linux/i386/bits/time.h: Remove CLOCK_MONOTONIC.
1108
1109 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
1110
1111         * sysdeps/sparc/sparc32/bits/endian.h: Remove.
1112         * sysdeps/sparc/sparc32/ieee754.h: New.
1113         * sysdeps/sparc/sparc64/bits/endian.h: Move...
1114         * sysdeps/sparc/bits/endian.h: ...here.
1115         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Optimize.
1116         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Check
1117         %o1, not %o0 to see if we're parent or child.  Optimize.
1118
1119 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
1120
1121         * sysdeps/unix/sysv/linux/ia64/fork.S: New file (based on code
1122         by Hans Boehm).
1123         * sysdeps/unix/sysv/linux/ia64/vfork.S: New file (based on
1124         code by Hans Boehm).
1125         * sysdeps/unix/sysv/linux/ia64/fork.c: Deleted (obsoleted by fork.S).
1126
1127 2000-09-20  H.J. Lu  <hjl@gnu.org>
1128
1129         * sysdeps/ia64/fpu/printf_fphex.c: New file.
1130
1131         * sysdeps/ia64/fpu/libm-test-ulps: New file.
1132
1133 2000-09-17  H.J. Lu  <hjl@gnu.org>
1134
1135         * sysdeps/ia64/Makefile (long-double-fcts): New.  Defined as yes.
1136
1137         * sysdeps/ia64/fpu/s_isinfl.c: New file.  Include
1138         sysdeps/i386/fpu/s_isinfl.c.
1139
1140         * sysdeps/ia64/fpu/s_isnanl.c: New file.  Include
1141         sysdeps/i386/fpu/s_isnanl.c.
1142
1143         * sysdeps/ia64/fpu/s_nextafterl.c: New file.  Include
1144         sysdeps/i386/fpu/s_nextafterl.c.
1145
1146         * sysdeps/ia64/fpu/bits/mathdef.h: New file.  Copied from
1147         sysdeps/i386/fpu/bits/mathdef.h.
1148
1149 2000-09-16  H.J. Lu  <hjl@gnu.org>
1150
1151         * sysdeps/generic/ldsodefs.h (DL_UNMAP): New.  Defined if
1152         DL_UNMAP_IS_SPECIAL is not defined.
1153
1154         * sysdeps/ia64/dl-lookupcfg.h (DL_UNMAP_IS_SPECIAL): Defined.
1155         (_dl_unmap): New prototype.
1156         (DL_UNMAP): New.  Defined as _dl_unmap.
1157
1158         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_unmap.
1159
1160         * elf/dl-close.c (_dl_close): Replace __munmap with DL_UNMAP.
1161
1162 2000-09-16  H.J. Lu  <hjl@gnu.org>
1163
1164         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_ADDRESS): New. Defined
1165         if ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
1166
1167         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): New
1168         prototype.
1169         (DL_LOOKUP_ADDRESS): New. Defined as _dl_lookup_address.
1170
1171         * sysdeps/ia64/dl-fptr.c (_dl_lookup_address): New. Lookup
1172         the memory location of a function from a function descriptor.
1173
1174         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_lookup_address.
1175
1176         * elf/dl-addr.c (_dl_addr): Use DL_LOOKUP_ADDRESS to get the
1177         memory location.
1178
1179 2000-09-14  Jes Sorensen  <jes@linuxcare.com>
1180
1181         * sysdeps/ia64/bits/byteswap.h (__bswap_16): Don't mark output
1182         variable as input argument.
1183         (__bswap_32): Likewise.
1184
1185         * sysdeps/ia64/dl-machine.h: Add missing stop bit in RTLD_START()
1186         - found by Jim Wilson <wilson@cygnus.com>
1187
1188 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
1189
1190         * string/strxfrm.c: Only require alignment on __alignof__ (int32_t)
1191         instead of 4.
1192
1193 2000-09-26  Andreas Schwab  <schwab@suse.de>
1194
1195         * locale/programs/ld-collate.c (collate_output): Only require
1196         alignment on __alignof__ (int32_t) instead of 4.
1197         * locale/loadlocale.c (_nl_load_locale): Likewise.
1198         * string/strcoll.c: Likewise.
1199
1200 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
1201
1202         * sysdeps/ieee754/ldbl-96/e_atan2l.c (__ieee754_atan2l): Add
1203         parentheses around arithmetic used in | statement to kill compiler
1204         warning.
1205
1206         * math/math_private.h: Add prototype for __finitel.
1207         (__ilogbl): Likewise.
1208         (__isinfl): Likewise.
1209         (__isnanl): Likewise.
1210         (__atanl): Likewise.
1211         (__copysignl): Likewise.
1212         (__expm1l): Likewise.
1213         (__floorl): Likewise.
1214         (__frexpl): Likewise.
1215         (__ldexpl): Likewise.
1216         (__log1pl): Likewise.
1217         (__nanl): Likewise.
1218         (__rintl): Likewise.
1219         (__scalbnl): Likewise.
1220         (__sqrtl): Likewise.
1221         (fabsl): Likewise.
1222         (__sincosl): Likewise.
1223
1224 2000-09-26  Andreas Schwab  <schwab@suse.de>
1225
1226         * sysdeps/m68k/fpu/libm-test-ulps: New file
1227
1228 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
1229
1230         * locale/langinfo.h (__nl_langinfo_l): Add prototype.
1231
1232 2000-09-26  Andreas Jaeger  <aj@suse.de>
1233
1234         * misc/mkstemp64.c: New file.
1235         * misc/Makefile (routines): Add mkstemp64.
1236         * stdlib/stdlib.h: Add prototype and redirection magic.
1237         * misc/Versions: Add mkstemp64.
1238
1239 2000-09-26  Thorsten Kukuk  <kukuk@suse.de>
1240
1241         * nscd/dbg_log.c (dbg_log): Add missing format string.
1242
1243 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
1244
1245         * catgets/catgets.c (catopen): Use getenv instead of __secure_getenv
1246         since we filter out the variable once.
1247         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
1248         * locale/newlocale.c (__newlocale): Likewise.
1249         * locale/setlocale.c (setlocale): Likewise.
1250         * malloc/malloc.c (ptmalloc_init): Likewise.
1251         * resolv/res_hconf.c (_res_hconf_init): Likewise.
1252         * resolv/res_init.c (__res_vinit): Likewise.
1253         * time/tzfile.c (__tzfile_read): Likewise.
1254         * sysdeps/generic/unsecvars.h: New file.
1255         * elf/dl-support.c (non_dynamic_init): Use it here to remove variables.
1256         * elf/rtld.c (process_envvars): Likewise.
1257         * elf/Makefile (distribute): Add unsecvars.h.
1258
1259         * misc/daemon.c (daemon): Fail if !noclose and we cannot open the
1260         real /dev/null device.
1261
1262         * sysdeps/generic/check_fds.c: Include device-nrs.h.
1263         * sysdeps/generic/device-nrs.h: New file.
1264         * sysdeps/unix/sysv/linux/device-nrs.h: New file.
1265         * misc/Makefile (distribute): Add device-nrs.h.
1266
1267         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Use O_TRUNC to
1268         remove possible garbage at the end of the file.
1269
1270 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
1271
1272         * stdio-common/tmpnam_r.c: Warn about insecure tmpnam_r.
1273         * stdio-common/tmpnam.c: Warn about insecure tmpnam.
1274         * stdio-common/tempnam.c: Warn about insecure tempnam.
1275         * misc/mktemp.c: Warn about insecure mktemp.
1276
1277         * sysdeps/generic/check_fds.c: Check that file opened is really
1278         /dev/null.
1279         * posix/wordexp.c (exec_comm_child): Likewise.
1280
1281         * elf/rtld.c (process_envvars): Open debug output file with O_NOFOLLOW.
1282
1283         * locale/Makefile (routines): Add nl_langinfo_l.
1284         * locale/Versions [libc] (GLIBC_2.2): Add __nl_langinfo_l.
1285         * locale/nl_langinfo_l.c: New file.
1286         * locale/nl_langinfo.c: Allow use of file for __nl_langinfo_l
1287         definition.
1288
1289 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
1290
1291         * iconvdata/gbk.c (USE_PRIVATE_AREA): Define to 0.
1292         (__gbk_to_ucs): Conditionalize private area mappings.
1293         (__gbk_from_ucs4_tab9): Likewise.
1294         (BODY for TO_LOOP): Likewise.
1295         * iconvdata/testdata/GBK: Don't use characters not yet in Unicode.
1296         * iconvdata/testdata/GBK..UTF-8: Likewise.
1297         * iconvdata/tst-tables.sh: Enable GBK test.
1298
1299 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
1300
1301         * iconvdata/gbk.c (__gbk_to_ucs): Swap U+2014 and U+2015.
1302         (__gbk_from_ucs4_tab4): Swap entries for U+2014 and U+2015.
1303         (BODY for FROM_LOOP): Reject input > 0xFEA0, avoids out-of-bounds
1304         array access.
1305         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Map 0xA844 to 0xA1AA.
1306         * iconvdata/testdata/GBK..UTF8: Swap U+2014 and U+2015.
1307
1308 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
1309
1310         * iconvdata/johab.c (final_to_ucs): Fix typos.
1311         (jamo_from_ucs_table): Likewise.
1312         (BODY for FROM_LOOP): Map 0x5c to U+20A9. Reject ranges
1313         0xD9E6..0xD9FE and 0xDEF2..0xDEFE.
1314         (BODY for TO_LOOP): Map U+20A9 to 0x5c. Don't produce values in
1315         the range 0xD9E6..0xD9FE.
1316         * iconvdata/tst-tables.sh: Enable JOHAB testing.
1317
1318 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
1319
1320         * iconv/gconv_conf.c (__gconv_get_path): Fix problem with relative
1321         GCONV_PATH.
1322
1323 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
1324
1325         * libio/genops.c (_IO_doallocbuf): Don't use single byte buffer if
1326         stream is in wide mode.
1327
1328         * stdio-common/vfprintf.c (buffered_vfprintf): Orient stream.
1329
1330 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
1331
1332         * iconvdata/iso-2022-cn-ext.c (EMIT_SHIFT_TO_INIT): Shift __count
1333         by 3, not 2.
1334         (INIT_PARAMS, UPDATE_PARAMS): Likewise.
1335
1336 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
1337
1338         * stdio-common/vfscanf.c (__vfscanf, _IO_vfscanf): Fix bugs in
1339         reallocation logic for MALLOC (%as, %aS formats).
1340
1341 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
1342
1343         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
1344         Add missing case in va_arg handling for numbers.
1345         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
1346         handling.
1347         * stdio/tst-printf.sh: Adjust expected results.
1348         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1349
1350 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
1351
1352         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
1353         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
1354         characters.
1355         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
1356         as equivalent to uppercase hexadecimal digits.
1357
1358 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
1359
1360         * iconvdata/testdata/EUC-KR..UTF8: New file.
1361         * iconvdata/testdata/EUC-TW: New file.
1362         * iconvdata/testdata/EUC-TW..UTF8: New file.
1363         * iconvdata/testdata/EUC-JP: New file.
1364         * iconvdata/testdata/EUC-JP..UTF8: New file.
1365         * iconvdata/testdata/ISO-2022-JP: New file.
1366         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
1367         * iconvdata/testdata/ISO-2022-JP-2: New file.
1368         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
1369         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
1370         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
1371         * iconvdata/testdata/ISO-2022-CN: New file.
1372         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
1373         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
1374         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
1375         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
1376         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
1377
1378 2000-09-24  Andreas Jaeger  <aj@suse.de>
1379
1380         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
1381         function add_single_dir.
1382         (add_single_dir): New function.
1383         (search_dir): Use add_single_dir instead of recursing.
1384
1385         * sysdeps/generic/dl-cache.h: Include stdint.h.
1386         (struct file_entry_new): Use fixed sizes for interoperability
1387         between 32bit and 64bit systems, add __unused to make alignment
1388         explicit.
1389         (CACHE_VERSION): Increment.
1390         (struct cache_file_new): Use fixed sizes, add one more unused
1391         entry to make alignment explicit.
1392
1393 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
1394
1395         * elf/ldconfig.c (search_dir): Make more use of d_type information.
1396
1397 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
1398
1399         * stdio-common/printf-parse.h (parse_one_spec): Clear
1400         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1401
1402 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
1403
1404         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
1405         #undef since we don't have msync.
1406
1407         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
1408         constant since that is what clock_t is.
1409         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
1410
1411 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
1412
1413         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
1414         multiply by LOAD_SCALE.
1415
1416 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
1417
1418         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
1419         (crypt_r, setkey_r, encrypt_r): Likewise.
1420
1421 2000-09-22  Andreas Jaeger  <aj@suse.de>
1422
1423         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
1424         array size.
1425
1426         * sysdeps/alpha/fpu/libm-test-ulps: New file.
1427         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
1428
1429 2000-09-21  Andreas Jaeger  <aj@suse.de>
1430
1431         * math/libm-test.inc (atan_test): Test for existence of function.
1432         (expm1_test): Likewise.
1433         (acos_test): Likewise.
1434         (asin_test): Likewise.
1435         (exp_test): Likewise.
1436         (log10_test): Likewise.
1437         (log_test): Likewise.
1438         (pow_test): Likewise.
1439         (sqrt_test): Likewise.
1440         (cos_test): Likewise.
1441         (sin_test): Likewise.
1442         (tan_test): Likewise.
1443         (log1p_test): Likewise.
1444         (log2_test): Likewise.
1445
1446         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
1447
1448         * libio/oldiofsetpos64.c: Fix alias names.
1449
1450 2000-09-21  Martin Buchholz  <martin@xemacs.org>
1451
1452         * manual/terminal.texi (Allocation): Sample code correction.
1453
1454 2000-09-20  Andreas Jaeger  <aj@suse.de>
1455
1456         * iconvdata/Makefile (generated): Add tst-tables.out.
1457
1458         * intl/Makefile (generated): Add test output.
1459
1460 2000-09-19  Andreas Jaeger  <aj@suse.de>
1461
1462         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
1463         Reported by Jens-Uwe Mager <jum@helios.de>.
1464
1465 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
1466
1467         * version.h (VERSION): Bump to 2.1.94.
1468
1469         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
1470         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
1471         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
1472         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
1473
1474         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
1475
1476 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
1477
1478         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
1479         range 0xD800..0xDFFF.
1480         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
1481         (BODY for FROM_LOOP): Likewise.
1482         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
1483         (internal_ucs2_loop): Likewise.
1484         (ucs2reverse_internal_loop): Likewise.
1485         (internal_ucs2reverse_loop): Likewise.
1486
1487 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
1488
1489         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
1490         names.
1491
1492 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
1493
1494         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
1495         * iconvdata/tst-table-to.c (main): Likewise.
1496
1497 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
1498
1499         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
1500         __isoir165_tab.
1501         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
1502         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
1503         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
1504         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
1505         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
1506         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
1507         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
1508         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
1509         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
1510         encodings when needed.  When outputting an announcement, don't clear
1511         most other announcements.
1512
1513 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
1514
1515         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
1516         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
1517
1518 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
1519
1520         * intl/Versions: Add bind_textdomain_codeset.
1521
1522 2000-09-16  Ralf Baechle  <ralf@gnu.org>
1523
1524         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
1525         as function.
1526         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
1527         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
1528         it will even work when not loaded to the standard address.
1529         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
1530         before the dynamic linker itself is relocated.
1531
1532 2000-09-18  Andreas Jaeger  <aj@suse.de>
1533
1534         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
1535         __ASSUME_32BITUIDS for MIPS.
1536         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
1537         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
1538
1539 2000-09-17  H.J. Lu  <hjl@gnu.org>
1540
1541         * catgets/Makefile ($(objpfx)de/libc.cat): Use
1542         $(make-target-directory) instead of mkdir.
1543
1544 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1545
1546         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
1547         __ASSUME_32BITUIDS for __powerpc__.
1548         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
1549         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
1550
1551 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
1552
1553         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
1554         patch.
1555         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
1556
1557 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
1558
1559         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
1560         first.
1561         * sysdeps/m68k/Implies: Likewise.
1562         * sysdeps/sparc/sparc64/Implies: Likewise.
1563
1564 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
1565
1566         * elf/readlib.c (process_file): Don't error for stale .so links either.
1567
1568 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
1569
1570         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
1571         __builtin_expect.
1572
1573         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
1574         Patch by Thorsten Kukuk <kukuk@suse.de>.
1575
1576         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
1577         (test): Add default.
1578         (modules-names): Add defaultmod1 and defaultmod2.
1579         Add rules to build test objects.
1580
1581 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
1582
1583         * wctype/wctype.h: Always include <bits/types.h>.
1584         Reported by Jim Meyering <meyering@ascend.com>.
1585
1586         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
1587         * elf/dl-support.c: Likewise.
1588
1589         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
1590         st_blocks member in stat and stat64 structs.
1591         Patch by Bill Nottingham <notting@redhat.com>.
1592
1593         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
1594         take longer.
1595
1596         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
1597         __extension__ to _Complex_I definition since gcc warns if -pedantic.
1598         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
1599         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1600
1601         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
1602         necessary.  Move includes of POSIX and Unix limits files to the end.
1603         * stdlib/Makefile (tests): Add tst-limits.
1604         * stdlib/tst-limits.h: New file.
1605
1606 2000-09-15  Andreas Jaeger  <aj@suse.de>
1607
1608         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
1609
1610         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
1611
1612 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
1613
1614         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
1615         clobber.
1616         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
1617         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
1618
1619 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
1620
1621         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
1622         (tests): Add next.
1623         (modules-names): Add nextmod1 and nextmod2.
1624         Add rules to build and run next.
1625         * elf/next.c: New file.
1626         * elf/nextmod1.c: New file.
1627         * elf/nextmod2.c: New file.
1628
1629 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
1630
1631         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
1632
1633 2000-09-15  Andreas Jaeger  <aj@suse.de>
1634
1635         * sysdeps/mips/fpu/fenv_libc.h: New file.
1636         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
1637         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
1638         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
1639
1640         * sysdeps/mips/fpu/feenablxcpt.c: New file.
1641         * sysdeps/mips/fpu/fegetexcept.c: New file.
1642         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
1643
1644 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
1645
1646         * intl/Makefile: Avoid unnecessary test reruns.
1647
1648         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
1649
1650         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
1651         to not use sysctl().  Too many architectures have problems with it.
1652
1653 2000-09-14  Andreas Jaeger  <aj@suse.de>
1654
1655         * scripts/config.sub: New version from subversions.gnu.org.
1656
1657         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
1658         long.
1659
1660 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
1661
1662         * posix/regex.c (compile_range): Cast collseq index to unsigned char
1663         to avoid accessing data before collseq.
1664
1665         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
1666         pasting strings together.
1667
1668 2000-09-14  Greg McGary  <greg@mcgary.org>
1669
1670         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
1671         copyright notice.
1672         * sysdeps/generic/bp-semctl.h: Likewise.
1673         * sysdeps/generic/bp-start.h: Likewise.
1674         * sysdeps/generic/bp-sym.h: Likewise.
1675         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
1676         rename prototype.
1677
1678 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1679
1680         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
1681         don't fail.
1682
1683         * elf/elf.h: Add missing official relocations.
1684
1685         * libio/stdio.h: Define __FILE if __need___FILE is defined.
1686         * stdio/stdio.h: Likewise.
1687         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
1688         * include/stdio.h: Handle __need___FILE like __need_FILE.
1689         * include/wchar.h: Use __FILE instead of FILE.
1690         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
1691         * libio/fwscanf.c: Likewise.
1692         * libio/getwc.c: Likewise.
1693
1694         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
1695         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
1696         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
1697
1698         * assert/assert.h: Update comment header about ISO C section.
1699         * math/complex.h: Likewise.
1700         * ctype/ctype.h: Likewise.
1701         * include/errno.h: Likewise.
1702         * include/limits.h: Likewise.
1703         * locale/locale.h: Likewise.
1704         * math/math.h: Likewise.
1705         * setjmp/setjmp.h: Likewise.
1706         * signal/signal.h: Likewise.
1707         * stdio/stdio.h: Likewise.
1708         * libio/stdio.h: Likewise.
1709         * stdlib/stdlib.h: Likewise.
1710         * string/string.h: Likewise.
1711         * time/time.h: Likewise.
1712         * wcsmbs/wchar.h: Likewise.
1713         * wctype/wctype.h: Likewise.
1714         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1715
1716 2000-09-13  Andreas Jaeger  <aj@suse.de>
1717
1718         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
1719         for no more entries.
1720         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
1721         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
1722         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
1723
1724 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1725
1726         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
1727         constant since this is what clock_t is.
1728         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
1729         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
1730         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
1731         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
1732
1733         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
1734         definitions are requested.
1735
1736 2000-09-13  Andreas Jaeger  <aj@suse.de>
1737
1738         * shlib-versions: libBrokenLocale needs minimal version for ia64,
1739         sparc64 and sh to synch with libc.
1740
1741 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1742
1743         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
1744         (distribute): Add iso-2022-cn-ext.c.
1745         Add definitions to compile the new module.
1746         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
1747         * iconvdata/iso-2022-cn-ext.c: New file.
1748         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
1749         ucs4_from_isoir165.  Increment input pointer if successful.
1750
1751         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
1752
1753         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
1754
1755 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
1756
1757         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
1758         __syscall_getdents64 wrapper.
1759
1760         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
1761
1762 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
1763
1764         * iconvdata/gb18030.c: Many many changes.  Make consistent with
1765         charmap and with itself.
1766         * iconvdata/tst-tables.sh: Test GB18030.
1767
1768 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1769
1770         * iconv/skeleton.c: Fix last patch, add missing parameter to
1771         unaligned function call.
1772
1773 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1774
1775         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
1776         of decimal ellipsis.
1777
1778 2000-09-11  Bruno Haible <haible@clisp.cons.org>
1779
1780         * locale/programs/ld-collate.c (collate_read): Always initialize
1781         error_section.next.
1782
1783 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1784
1785         * locale/programs/ld-collate.c (collate_finish): Upper bound for
1786         ruleidx is 128, not 256.
1787
1788 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1789
1790         * locale/programs/ld-collate.c (collate_read): Correct check for
1791         already inserted entries.
1792
1793 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1794
1795         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
1796         second try as well.
1797
1798 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1799
1800         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
1801         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
1802
1803 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1804
1805         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
1806         SAVE_RESET_STATE.
1807
1808 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1809
1810         * iconvdata/utf-7.c: New file.
1811         * iconvdata/gconv-modules (UTF-7): New module entries.
1812         * iconvdata/Makefile (modules): Add UTF-7.
1813         (distribute): Add utf-7.c.
1814         * iconvdata/testdata/UTF-7: New file.
1815         * iconvdata/testdata/UTF-7..UTF8: New file.
1816         * iconvdata/TESTS (UTF-7): New entry.
1817         * iconvdata/run-iconv-test.sh: Fix confusing output.
1818
1819 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1820
1821         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
1822
1823 2000-09-10  David S. Miller  <davem@redhat.com>
1824
1825         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
1826         frame pointer offset for non-fast path.
1827
1828 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
1829
1830         * locale/programs/3level.h (*_init): Initialize level1, level2,
1831         and level3 as well.
1832         (*_add): Remove a few unnecessary conditionals.
1833
1834 2000-09-05  Wolfram Gloger  <wg@malloc.de>
1835
1836         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
1837         ensure usability of mutex as an `in use' flag.
1838
1839 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
1840
1841         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
1842
1843         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
1844         ugly GMON_WEAK_START hack.
1845         Patch by Philip Blundell <philb@gnu.org>.
1846
1847         * sysdeps/i386/i486/bits/string.h: Pretty printing.
1848
1849 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
1850
1851         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
1852         and PPC_ICBI asm for broken compilers.
1853         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1854
1855 2000-09-09  Andreas Jaeger  <aj@suse.de>
1856
1857         * manual/message.texi (Advanced gettext functions): Fix typo.
1858
1859         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
1860         strncpy prototype.
1861
1862 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
1863
1864         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
1865         warnings.
1866         * sysdeps/ia64/memccpy.S: Likewise.
1867         Patches by Jim Wilson <wilson@redhat.com>.
1868
1869         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
1870         before trying to read /proc.
1871         Patch by Matt Wilson <msw@redhat.com>.
1872         * include/sys/utsname.h: Declare __uname.
1873         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
1874         * sysdeps/mach/hurd/uname.c: Likewise.
1875         * sysdeps/unix/syscalls.list: Likewise.
1876
1877         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
1878         unloading a bit.
1879
1880 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
1881
1882         * posix/getopt.c (_getopt_internal): When long_only is set always
1883         recognize conflicts just like before.
1884
1885 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1886
1887         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
1888
1889 2000-09-08  Greg McGary  <greg@mcgary.org>
1890
1891         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
1892         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
1893         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
1894
1895 2000-09-08  Andreas Jaeger  <aj@suse.de>
1896
1897         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
1898
1899         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
1900
1901         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
1902         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
1903         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
1904
1905 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1906
1907         * iconvdata/tst-tables.sh: Enable EUC-KR test.
1908
1909         * elf/dl-load.c (lose): Decrement _nl_loaded.
1910         (_dl_map_object_from_fd): Don't try to dlopen executables.
1911
1912         * iconvdata/tst-tables.sh: Actually return with an error if
1913         something goes wrong.
1914         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
1915         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
1916
1917         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
1918
1919         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
1920         * iconvdata/tst-table-from.c: Include <string.h>.
1921         (try): Correct cast in iconv call.
1922
1923         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
1924         too.
1925         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
1926         (sysdep_routines): Remove dl-start.
1927         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1928
1929         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
1930
1931         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
1932         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
1933
1934 2000-09-06  Andreas Schwab  <schwab@suse.de>
1935
1936         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
1937
1938 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1939
1940         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
1941
1942         * scripts/config.sub: Strip out -unknown for Linux targets.
1943         Patch by Scott Bambrough <scottb@netwinder.org>.
1944
1945         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
1946         add one more test.
1947
1948 2000-09-07  Andreas Jaeger  <aj@suse.de>
1949
1950         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
1951
1952         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
1953         syscalls.
1954
1955         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
1956
1957         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
1958         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
1959
1960         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
1961
1962         * stdlib/tst-bsearch.c (main): Add more test cases.
1963
1964         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
1965         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1966         Reported by GOTO Masanori <gotom@debian.or.jp>.
1967
1968 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1969
1970         * posix/Makefile (tests): Add tst-dir.
1971         (tst-dir-ARGS): New variable.
1972         * posix/tst-dir.c: New file.
1973
1974 2000-09-07  Andreas Jaeger  <aj@suse.de>
1975
1976         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
1977         (SYS_fcntl64): New.
1978
1979         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
1980
1981 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
1982
1983         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
1984         use the hack with tryopen_o_directory to determine at runtime
1985         whether it works.
1986         * sysdeps/unix/sysv/linux/opendir.c: New file.
1987         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1988         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
1989
1990         * catgets/Depend: New file.  Add intl.
1991         * catgets/Makefile (tests): Add tst-catgets.
1992         (generated): Remove de.msg.
1993         (generated-dirs): Add de.
1994         Add dependency if tst-catgets output on de/libc.cat.
1995         * catgets/tst-catgets.c: New file.
1996
1997         * po/ja.po: New file.
1998         * po/el.po: Update from translation team.
1999
2000         * wcsmbs/Depend: New file.
2001         * wcsmbs/Makefile (tests): Add tst-btowc.
2002         (tst-btowc-ENV): Define.
2003         * wcsmbs/tst-btowc.c: New file.
2004
2005         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
2006         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
2007
2008         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
2009
2010         * stdlib/Makefile (tests): Add tst-bsearch.
2011         * stdlib/tst-bsearch.c: New file.
2012
2013         * posix/getopt.c (_getopt_internal): Don't recognize an option
2014         name as ambiguous if it's a prefix for more than one name but the
2015         other struct option values are identical.
2016
2017         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
2018         Don't depend on visual inspection of the output file to recognize
2019         errors.
2020         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
2021
2022 2000-09-06  Andreas Jaeger  <aj@suse.de>
2023
2024         * sysdeps/alpha/soft-fp/Dist: New file.
2025         * sysdeps/i386/soft-fp/Dist: New file.
2026         * sysdeps/mips/mips64/soft-fp/Dist: New file.
2027         * sysdeps/mips/soft-fp/Dist: New file.
2028         * sysdeps/powerpc/soft-fp/Dist: New file.
2029         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
2030         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
2031
2032         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
2033         Use sysdep_routines instead of routines to fix make dist failure.
2034         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
2035         out code).
2036         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
2037
2038         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
2039         sysdep_headers instead of headers for make dist.
2040
2041         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
2042         Likewise.
2043
2044 2000-09-06  Andreas Schwab  <schwab@suse.de>
2045
2046         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
2047
2048 2000-09-06  Andreas Jaeger  <aj@suse.de>
2049
2050         * soft-fp/Makefile (distribute): Remove ChangeLog.
2051
2052         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
2053         sysdep_routines instead of routines for make dist.
2054
2055 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
2056
2057         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
2058         compatibility check for old stream and call _IO_wide in doubt.
2059         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
2060         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
2061         needed tst for such an old structure and don't do anything.
2062         * libio/freopen.c: Remove declaration of _IO_stdin_used.
2063
2064 2000-09-06  Andreas Jaeger  <aj@suse.de>
2065
2066         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
2067         sysdep-dl-routines and sysdep_routines instead of rtld-routines
2068         and dl-routines.
2069
2070         * soft-fp/ChangeLog: Merged with this file.
2071
2072 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
2073
2074         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
2075
2076         * soft-fp/Makefile (distribute): Add the math functions, too.
2077
2078         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
2079
2080 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
2081
2082         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
2083         as a statement.
2084
2085         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
2086         * soft-fp/sysdeps/powerpc/q_*: New files.
2087
2088 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
2089
2090         * stdio-common/vfprintf.c (process_string_arg): Handle precision
2091         in wide char case correctly.  Don't allocate too long temporary
2092         strings with alloca.
2093
2094         * stdio-common/Makefile (tests): Add tst-swprintf.
2095         (tst-swprintf-ENV): New variable.
2096         * stdio-common/tst-swprintf.c: New file.
2097
2098 2000-09-05  Andreas Jaeger  <aj@suse.de>
2099
2100         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
2101         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
2102         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2103
2104 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
2105
2106         * configure.in: Strip out "unknown" from configuration names.
2107
2108 2000-09-05  Andreas Jaeger  <aj@suse.de>
2109
2110         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
2111
2112         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
2113         * sysdeps/sparc/sparc32/Implies: Likewise.
2114         * sysdeps/powerpc/Implies: Likewise.
2115
2116         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
2117         * libio/oldiofgetpos64.c: Likewise.
2118
2119         * soft-fp/Makefile (distribute): Remove configure.
2120
2121         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
2122
2123         * soft-fp/configure: Remove.
2124
2125         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
2126         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
2127
2128         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
2129         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
2130
2131         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
2132         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
2133
2134         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
2135         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
2136
2137         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
2138         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
2139
2140         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
2141         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
2142
2143         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
2144         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
2145
2146         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
2147         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
2148
2149         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
2150         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
2151
2152         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
2153         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
2154
2155         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
2156         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
2157
2158         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
2159         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
2160
2161         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
2162         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
2163
2164         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
2165         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
2166
2167         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
2168         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
2169
2170         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
2171         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
2172
2173         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
2174         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
2175
2176         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
2177         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
2178
2179         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
2180         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
2181
2182         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
2183         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
2184
2185         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
2186         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
2187
2188         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
2189         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
2190
2191         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
2192         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
2193
2194         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
2195         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
2196
2197         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
2198         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
2199
2200         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
2201         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
2202
2203         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
2204         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
2205
2206         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
2207         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
2208
2209         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
2210         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
2211
2212         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
2213         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
2214
2215         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
2216         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
2217
2218         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
2219         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
2220
2221         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
2222         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
2223
2224         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
2225         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
2226
2227         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
2228         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
2229
2230         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
2231         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
2232
2233         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
2234         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
2235
2236         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
2237         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
2238
2239         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
2240         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
2241
2242         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
2243         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
2244
2245         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
2246         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
2247
2248         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
2249         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
2250
2251         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
2252         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
2253
2254         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
2255         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
2256
2257         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
2258         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
2259
2260         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
2261         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
2262
2263         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
2264         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
2265
2266         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
2267         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
2268
2269         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
2270         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
2271
2272         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
2273         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
2274
2275         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
2276         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
2277
2278         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
2279         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
2280
2281         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
2282         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
2283
2284         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
2285         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
2286
2287         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
2288         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
2289
2290         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
2291         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
2292
2293         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
2294         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
2295
2296         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
2297         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
2298
2299         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
2300         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
2301
2302         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
2303         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
2304
2305         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
2306         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
2307
2308         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
2309         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
2310
2311         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
2312         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
2313
2314         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
2315         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
2316
2317         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
2318         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
2319
2320         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
2321         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
2322
2323         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
2324         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
2325
2326         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
2327         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
2328
2329         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
2330         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
2331
2332         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
2333         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
2334
2335         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
2336         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
2337
2338         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
2339         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
2340
2341         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
2342         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
2343
2344         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
2345         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
2346
2347         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
2348         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
2349
2350         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
2351         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
2352
2353         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
2354         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
2355
2356         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
2357         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
2358
2359         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
2360         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
2361
2362         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
2363         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
2364
2365         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
2366         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
2367
2368         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
2369         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
2370
2371         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
2372         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
2373
2374         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
2375         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
2376
2377         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
2378         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
2379
2380         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
2381         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
2382
2383         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
2384         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
2385
2386         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
2387         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
2388
2389         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
2390         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
2391
2392         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
2393         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
2394
2395         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
2396         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
2397
2398         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
2399         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
2400
2401         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
2402         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
2403
2404         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
2405         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
2406
2407         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
2408         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
2409
2410         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
2411         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
2412
2413         * soft-fp/sysdeps/powerpc/Versions: Move from here...
2414         * sysdeps/powerpc/soft-fp/Versions: ... to here.
2415
2416         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
2417         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
2418
2419         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
2420         change symbol version.
2421         * libio/oldiofgetpos64.c: Likewise.
2422         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
2423
2424         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
2425         typo.
2426         Reported by dyky@kondara.org, closes PR libc/1886.
2427
2428         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
2429         libc/1880.
2430
2431 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
2432
2433         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
2434         script when ^C is hit.
2435
2436         * locale/programs/localedef.c (construct_output_path): Correct
2437         computation of endp after asprintf.
2438         * locale/programs/locfile.c (write_locale_data): Don't add extra
2439         slash in filename.
2440
2441 2000-09-05  Andreas Jaeger  <aj@suse.de>
2442
2443         * scripts/config.guess: New upstream version.
2444         * scripts/config.sub: Likewise.
2445         * manual/texinfo.tex: Likewise.
2446
2447 2000-09-04  Andreas Schwab  <schwab@suse.de>
2448
2449         * elf/Makefile (all-dl-routines): New variable.
2450         (elide-routines.os): Use it instead of $(dl-routines).
2451         (all-rtld-routines): New variable.
2452         (extra-objs): Use it instead of $(rtld-routines).
2453         ($(objpfx)dl-allobjs.os): Likewise.
2454         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
2455         sysdep-dl-routines and sysdep_routines instead of rtld-routines
2456         and dl-routines.
2457
2458 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2459
2460         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
2461         Set fname to NULL if the module wasn't found.
2462
2463 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2464
2465         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
2466         true if trans->name already ends in ".so".
2467
2468 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2469
2470         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
2471         void.
2472         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
2473         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
2474         (__gconv_release_shlib): Change return type to void.
2475         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
2476         step->__counter here.
2477         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
2478         if the reference is zero.
2479         (release_step): New function.
2480         (gen_steps): Always initialize the __counter to 1. Use release_step.
2481         Don't call the destructor on the step whose initializer failed.
2482         (increment_counter): Use release_step. Don't normally run destructors
2483         here.
2484         (__gconv_close_transform): Use release_step.
2485
2486 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2487
2488         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
2489         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
2490
2491 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2492
2493         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
2494         If the first byte is 0x8E, don't ask for 4 bytes until it has been
2495         verified that the second byte is valid. Leave it to cns11643_to_ucs4
2496         to check for incomplete input.
2497         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
2498         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
2499         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
2500         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
2501         0x9f9d..0x9fa5.
2502         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
2503         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
2504         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
2505         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
2506         upto index 0x0052.
2507
2508 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2509
2510         * iconv/gconv_db.c (find_derivation): Always use the least-cost
2511         solution.
2512
2513 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2514
2515         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
2516         are invalid.
2517
2518 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2519
2520         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
2521         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
2522         U+007E.
2523
2524 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2525
2526         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
2527
2528 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2529
2530         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
2531
2532 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
2533
2534         * iconvdata/tst-tables.sh: New file.
2535         * iconvdata/tst-table.sh: New file.
2536         * iconvdata/tst-table-from.c: New file.
2537         * iconvdata/tst-table-to.c: New file.
2538         * iconvdata/tst-table-charmap.sh: New file.
2539         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
2540         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
2541         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
2542         ISIRI-3342.irreversible, SJIS.irreversible.
2543         (tests): Add dependency on tst-tables.out.
2544         (tst-tables.out, tst-tables-clean): New rules.
2545         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
2546         * iconvdata/ISIRI-3342.irreversible: New file.
2547         * iconvdata/EUC-JP.irreversible: New file.
2548         * iconvdata/SJIS.irreversible: New file.
2549
2550 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
2551
2552         * manual/locale.texi (General Numeric): Update description of
2553         representation of the grouping information in the locale data.
2554         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
2555
2556 2000-09-04  Andreas Jaeger  <aj@suse.de>
2557
2558         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
2559         * iconv/iconv_prog.c (options): Fix typo.
2560         Reported by dyky@kondara.org, closes PR libc/1885.
2561
2562 2000-09-04  Andreas Jaeger  <aj@suse.de>
2563
2564         * sysdeps/generic/fegetenv.c: It's __fegetenv.
2565         Reported by Rob Levin <lilo@transvirtual.com>.
2566
2567 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
2568
2569         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
2570         to the typedefs of __timezone_ptr_t.
2571         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
2572
2573 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
2574
2575         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
2576         the loop.
2577
2578 2000-09-01  H.J. Lu  <hjl@gnu.org>
2579
2580         * Makeconfig (built-program-cmd): Don't use the dynamic linker
2581         to run a binary if it is in $(tests-static).
2582
2583         * Rules (binaries-static): Add $(tests-static).
2584
2585 2000-09-02  Andreas Jaeger  <aj@suse.de>
2586
2587         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
2588
2589         * libio/fmemopen.c (fmemopen_close): Revert one part of last
2590         patch.
2591
2592 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
2593
2594         * iconvdata/big5hkscs.c: Regenerated from charmap.
2595         * iconvdata/testdata/BIG5HKSCS: Regenerated.
2596         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
2597
2598         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
2599         statement.  General cleanup.
2600
2601 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
2602
2603         * wctype/wcfuncs.c (iswblank): New function.
2604         * wctype/wcfuncs_l.c (__iswblank_l): New function.
2605         * wctype/wcextra.c: Remove file.
2606         * wctype/wcextra_l.c: Remove file.
2607         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
2608
2609 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
2610
2611         * locale/programs/ld-collate.c (collate_output): Remove redundant
2612         assert call.
2613         * string/strcoll.c: Likewise.
2614         * string/strxfrm.c: Include assert.h.  Add assert calls like in
2615         string/strcoll.c.
2616
2617 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
2618
2619         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
2620         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
2621         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
2622         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
2623         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
2624         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
2625         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
2626         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
2627         _NL_CTYPE_GAP5/6 respectively.
2628
2629         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
2630         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
2631         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
2632         Don't initialize __ctype_names and __ctype_width.
2633         * wctype/cname-lookup.h: Remove file.
2634         * wctype/Makefile (distribute): Remove cname-lookup.h.
2635         * wctype/wchar-lookup.h: Include stdint.h.
2636         * wctype/wctype.c (__wctype): Assume new locale format.
2637         * wctype/wctype_l.c (__wctype_l): Likewise.
2638         * wctype/iswctype.c: Don't include cname-lookup.h.
2639         (__iswctype): Assume new locale format.
2640         * wctype/iswctype_l.c: Don't include cname-lookup.h.
2641         (__iswctype_l): Assume new locale format.
2642         * wctype/wctrans.c: Don't include ctype.h.
2643         (wctrans): Assume new locale format.
2644         * wctype/wctrans_l.c (__wctrans_l): Likewise.
2645         * wctype/towctrans.c: Don't include cname-lookup.h.
2646         (__towctrans): Assume new locale format.
2647         * wctype/towctrans_l.c: Don't include cname-lookup.h.
2648         (__towctrans_l): Assume new locale format.
2649         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
2650         localeinfo.h instead.
2651         (__NO_WCTYPE): Remove unused macro.
2652         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
2653         declarations.
2654         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
2655         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
2656         (towlower, towupper): Likewise.
2657         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
2658         localeinfo.h instead.
2659         (__NO_WCTYPE): Remove unused macro.
2660         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
2661         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
2662         __iswxdigit_l): Assume new locale format.
2663         (__towlower_l, __towupper_l): Likewise.
2664         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
2665         (__ctype32_b): Remove declaration.
2666         (internal_wcwidth): Assume new locale format.
2667         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
2668         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
2669         to map32_b, rename width_3level to width.
2670         (ctype_output): Always create new locale format. Don't emit
2671         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
2672         (allocate_arrays): Always create new locale format.
2673
2674         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
2675         * locale/weightwc.h (findidx): Assume new locale format.
2676         * string/strcoll.c (wcscoll): Remove local variables size, layers,
2677         names.
2678         * string/strxfrm.c (wcsxfrm): Likewise.
2679         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
2680         local variable collseq to 'const char *'.
2681         (SUFFIX): Don't use, don't undefine.
2682         * posix/fnmatch.c: Remove SUFFIX definition.
2683         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
2684         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
2685         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
2686         (collate_finish): Always create new locale format. Remove local
2687         variables min_total, act_size.
2688         (collate_output): Always create new locale format. Remove local
2689         variables table_size, names, tablewc. Rename tablewc_3level to
2690         tablewc.
2691
2692 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
2693
2694         * locale/programs/ld-collate.c (obstack_int32_grow,
2695         obstack_int32_grow_fast): New inline functions.
2696         (output_weightwc, collate_output): Use them where possible.
2697
2698 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
2699
2700         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
2701         patch (_mode -> _flags).
2702
2703         * libio/Makefile (headers): Add stdio_ext.h.
2704         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
2705         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
2706         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
2707         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
2708         __fsetlocking, and _flushlbf.
2709         * libio/__fbufsize.c: New file.
2710         * libio/__flbf.c: New file.
2711         * libio/__fpending.c: New file.
2712         * libio/__fpurge.c: New file.
2713         * libio/__freadable.c: New file.
2714         * libio/__freading.c: New file.
2715         * libio/__fsetlocking.c: New file.
2716         * libio/__fwritable.c: New file.
2717         * libio/__fwriting.c: New file.
2718         * libio/stdio_ext.h: New file.
2719         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
2720         * libio/libio.h (_IO_USER_LOCK): Define.
2721         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
2722         test _IO_USER_LOCK flag first.
2723
2724         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
2725         malloc fails.
2726
2727 2000-09-01  Andreas Jaeger  <aj@suse.de>
2728
2729         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
2730
2731         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
2732
2733 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
2734
2735         * math/Makefile (tests): Add tst-defintions.
2736         * math/tst-definitions.c: New file.
2737
2738         * stdlib/Makefile (headers): Add bits/wchar.h.
2739         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
2740         * sysdeps/generic/bits/wchar.h: New file.
2741         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
2742         file to define WCHAR_MIN and WCHAR_MAX.
2743         Change UINT*8_MAX and UIN*16_MAX value to type int.
2744         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
2745         file to define WCHAR_MIN and WCHAR_MAX.
2746         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
2747         int values.
2748         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
2749         * sysdeps/generic/bits/mathdef.h: Likewise.
2750         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
2751         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
2752         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
2753         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
2754         * locale/locale.h (struct lconv): Add __ prefix to the new members
2755         if not C99.
2756         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
2757         imaxdiv optimizations.
2758         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
2759         * sysdeps/wordsize-64/ldiv.c: Likewise.
2760         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
2761         const fenv_t*.
2762         * sysdeps/generic/bits/fenv.h: Likewise.
2763         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
2764         * sysdeps/ia64/bits/fenv.h: Likewise.
2765         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
2766         * sysdeps/mips/bits/fenv.h: Likewise.
2767         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
2768         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
2769         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2770
2771         * inet/rcmd.c: Use *stat64 instead of *stat internally.
2772         * inet/ruserpass.c: Likewise.
2773         * catgets/open_catalog.c: Likewise.
2774         * intl/loadmsgcat.c: Likewise.
2775         * io/getdirname.c: Likewise.
2776         * locale/loadlocale.c: Likewise.
2777         * misc/getusershell.c: Likewise.
2778         * stdlib/canonicalize.c: Likewise.
2779         * sysdeps/posix/euidaccess.c: Likewise.
2780         * sysdeps/posix/isfdtype.c: Likewise.
2781         * sysdeps/posix/posix_fallocate.c: Likewise.
2782         * sysdeps/posix/tempname.c: Likewise.
2783         * sysdeps/unix/grantpt.c: Likewise.
2784         * sysdeps/unix/opendir.c: Likewise.
2785         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
2786         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2787         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2788         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2789         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2790         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2791         * sysvipc/ftok.c: Likewise.
2792         * time/getdate.c: Likewise.
2793
2794         * time/getdate.c: Add extra access test.
2795
2796 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
2797
2798         * version.h (VERSION): Bump to 2.1.93.
2799
2800         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
2801         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
2802
2803         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
2804         Make this a new rule depending on tst-gettext.out and run mtrace.
2805         * intl/tst-gettext.c: Call mtrace.
2806         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
2807
2808         * elf/dl-reloc.c: Add a few more __builtin_expect.
2809
2810         * configure.in: Remove --with-gettext option.
2811
2812         * intl/dcigettext.c (free_mem): Correct freeing of
2813         _nl_domain_bindings list.
2814
2815         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
2816         allocated memory.
2817
2818         * intl/locale.alias: Add aliases for bokmal and nynorsk.
2819
2820         * locale/iso-639.def: Fix 639-1 code for Bokmal.
2821
2822         * stdio-common/itoa-digits.c: Move upper digits to...
2823         * stdio-common/itoa-udigits.c: ...here.  New file.
2824         * stdio-common/Makefile (routines): Add itoa-udigits.
2825
2826         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
2827         relocate ld.so don't add supprt for relocations which should not
2828         appear in ld.so.
2829
2830         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
2831         __secure_getenv.  Instead test __libc_enable_secure once.
2832
2833         * io/pwd.c (main): Provide a good example, use *_unlocked function.
2834
2835 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
2836
2837         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
2838         whether the new record should be freed if it's a duplicate.
2839         (add_module): Adjust insert_module call.
2840         (__gconv_read_conf): Likewise.
2841         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
2842         mtrace-tst-loading.
2843         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
2844
2845         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
2846         _dl_all_init_dirs.
2847         * include/link.h (struct r_search_path_struct): New.
2848         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
2849         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
2850         _dl_all_init_dirs.
2851         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
2852         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
2853         added at startup time.
2854         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
2855         contains element to remember fact that we can free memory.
2856         (all_dirs): Renamed to _dl_all_dirs.  Made global.
2857         (_dl_init_all_dirs): New variable.
2858         (fillin_rpath): Save one malloc call.
2859         (decompose_rpath): Change interface.  New first parameter points to
2860         r_search_path_struct.
2861         (_dl_init_paths): Adjust for changes.  Mark all memory as not
2862         deletable.  Set _dl_init_all_paths value.
2863         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
2864         parameter replaced with r_search_path_struct *.  Information about
2865         freeing now contained in r_search_path_struct.
2866         (_dl_map_object): Adjust for above changes.
2867
2868         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
2869
2870         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
2871         when adding new entries.
2872
2873         * elf/dl-load.c (fillin_rpath): Make local copy of where string
2874         since the object being loaded can be unloaded.
2875
2876         * iconvdata/Makefile (tests): Add tst-loading.
2877         * iconvdata/tst-loading.c: New file.
2878
2879 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
2880
2881         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
2882         When comparing a char with an int, always cast the char to
2883         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
2884         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
2885
2886 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
2887
2888         * time/strftime.c (my_strftime): Add compatibility code for use
2889         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
2890
2891         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
2892         return 0 for success but always < 0 on failure.
2893
2894         * nss/getXXbyYY_r.c: Define result to *result before including
2895         digits_dots.c.
2896
2897 2000-08-30  Andreas Jaeger  <aj@suse.de>
2898
2899         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
2900
2901 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2902
2903         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
2904         official file.
2905         * iconvdata/TESTS: Add BIG5HKSCS entry.
2906         * iconvdata/testdata/BIG5HKSCS: New file.
2907         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
2908
2909         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
2910         always true.
2911
2912         * libio/iogetline.c: Set mode before the loop in case n==0.
2913         * libio/iogetwline.c: Likewise.
2914
2915 2000-08-29  H.J. Lu  <hjl@gnu.org>
2916
2917         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
2918         of fp->_mode < 0.
2919         (_IO_new_file_overflow): Likewise.
2920         * libio/genops.c (_IO_flush_all): Likewise.
2921         * libio/ioftell.c (_IO_ftell): Likewise.
2922
2923 2000-08-29  Akira Higuchi  <a@kondara.org>
2924
2925         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
2926         and __end_fct fields of struct __gconv_step.
2927         * iconv/Makefile (tests): Add iconv-bug2.
2928         * iconv/iconv-bug2.c: New file.
2929
2930         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
2931         instead of 'inptr - inend' to ksc5601_to_ucs4.
2932
2933         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
2934
2935         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
2936         character or shift sequence is found at the end of the input
2937         string, return__GCONV_INCOMPLETE_INPUT instead of
2938         __GCONV_EMPTY_INPUT.
2939         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2940         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2941
2942         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
2943         __GCONV_ILLEGAL_INPUT for 8bit characters.
2944
2945 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2946
2947         * signal/signal.h (sigpause): Move __THROW before __asm__.
2948
2949         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
2950         names don't match don't return.
2951         Patch by Olaf Kirch <okir@flash.lst.de>.
2952
2953 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2954
2955         * time/strftime.c (my_strftime): Handle # flag for %b as well.
2956
2957 2000-08-27  H.J. Lu  <hjl@gnu.org>
2958
2959         * posix/Makefile (otherlibs): Add for building with static-nss
2960         for "make check".
2961
2962 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2963
2964         * libio/stdio.h: Add fmemopen prototype.
2965
2966 2000-08-25  Andreas Jaeger  <aj@suse.de>
2967
2968         * libio/Makefile (routines): Add fmemopen.
2969         (tests): Add test-fmemopen.
2970         * libio/Versions: Add fmemopen with version GLIBC_2.2.
2971         * libio/test-fmemopen.c: New file.
2972         * libio/fmemopen.c: New file.
2973         Patches by Hanno Mueller <kontakt@hanno.de>.
2974
2975 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2976
2977         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
2978         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
2979
2980         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
2981         to avoid crashing statically linked applications.
2982
2983 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2984
2985         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
2986         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
2987
2988         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
2989         If the result is fits in the buffer, copy only as many bytes as needed.
2990
2991         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
2992         buffer after copying numbuf into it.
2993         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
2994
2995 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2996
2997         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
2998         the result.  When string_len < len, don't clear the rest of the buffer.
2999
3000 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3001
3002         Support for new LC_COLLATE format.
3003         * locale/coll-lookup.h: New file.
3004         * locale/weightwc.h (findidx): When size == 0, call
3005         collidx_table_lookup.
3006         * wcsmbs/wcscoll.c: Include coll-lookup.h.
3007         * wcsmbs/wcsxfrm.c: Likewise.
3008         * posix/fnmatch.c: Likewise.
3009         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
3010         collseq_table_lookup.
3011         * locale/programs/3level.h: New file.
3012         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
3013         by including "3level.h".
3014         * locale/programs/ld-collate.c (wchead_table, collidx_table,
3015         collseq_table): New types, defined by including "3level.h".
3016         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
3017         (encoding_mask, encoding_byte): Remove.
3018         (utf8_encode): Use simple shifts instead.
3019         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
3020         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
3021         (collate_output): New local variable tablewc_3level. When
3022         !oldstyle_tables, set table_size to 0 and names to NULL and fill
3023         tablewc_3level instead of tablewc. Change format of TABLEWC and
3024         COLLSEQWC entries written to the file.
3025         * locale/C-collate.c (collseqwc): Change format.
3026         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
3027         of COLLSEQWC.
3028         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
3029
3030 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3031
3032         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
3033         (locale_ctype_t): New charnames_idx field.
3034         (ctype_startup): Initialize charnames_idx field.
3035         (find_idx): Speed up dramatically by using charnames_idx inverse table.
3036
3037 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3038
3039         * locale/C-ctype.c: Switch to new locale format.
3040         (_nl_C_LC_CTYPE_names): Remove array.
3041         (STRUCT_CTYPE_CLASS): New macro.
3042         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
3043         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
3044         New three-level tables.
3045         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
3046         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
3047         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
3048         12 class tables and 2 map tables at the end.
3049         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
3050         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
3051         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
3052         New declarations.
3053         (b): Remove trailing semicolon.
3054         (__ctype_names, __ctype_width): Don't initialize.
3055         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
3056
3057 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
3058
3059         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
3060         is guaranteed to be allocated with the same malloc() and may be
3061         passed to free().
3062         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
3063         been set to empty by an earlier open_path call, don't pass it again.
3064
3065 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
3066
3067         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
3068         we are not optimizing.
3069
3070         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
3071         inclusion.
3072
3073         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
3074         really match EOF.
3075         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3076
3077 2000-08-28  Andreas Jaeger  <aj@suse.de>
3078
3079         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
3080
3081 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
3082
3083         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
3084         getpeername.  Use ISO C style function definition.
3085         (getpeername): Provide weak alias.
3086         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
3087         setrlimit.  Use ISO C style function definition.
3088         (setrlimit): Provide weak alias.
3089
3090 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3091
3092         * shlib-versions: Add a rule for S/390 to the libm version list.
3093         * sysdeps/s390/Versions: New file.
3094         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
3095         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
3096         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3097         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
3098         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
3099         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
3100         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
3101         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
3102         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
3103         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
3104         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
3105         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
3106         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
3107         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
3108         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
3109         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
3110         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
3111         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
3112
3113 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
3114
3115         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
3116         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
3117
3118         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
3119         * elf/dl-close.c (_dl_close): Print debug message if object is not
3120         unloaded.
3121         * elf/dl-open.c (dl_open_worked): Print message about opencount before
3122         returning to caller.
3123
3124         * po/zh.po: Renamed to...
3125         * po/zh_TW.po: ...this.
3126
3127 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
3128
3129         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
3130
3131         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
3132         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
3133         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
3134         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
3135
3136 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
3137
3138         * locale/programs/ld-collate.c (insert_weights): Also update
3139         backpointer of next element.
3140         (collate_read): Allow definition of new collation symbols in stage 2.
3141         Symbol after reorder-after can be UCS4 value.
3142         Allow reordering of collation symbols and elements.
3143         Do not only move reorder entry in new position.  Instead call
3144         insert_weight to do this and read the weights.
3145
3146         * locale/findlocale.c (free_mem): Add cast to avoid warning.
3147
3148         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
3149         to determine invalid locale name.
3150         * locale/findlocale.c (_nl_find_locale): Likewise.
3151
3152         * posix/annexc.c: Correct test for unavailable feature.
3153
3154         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
3155         __inline.
3156
3157 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
3158
3159         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
3160         syscall.
3161
3162         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
3163         (sysdep_routines): Add oldgetrlimit64.
3164
3165         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
3166         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
3167         (tests): Add unload, reldep, reldep2, and reldep3.
3168         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
3169         and reldepmod4.
3170         Add rules to build and run unload, reldep, reldep2, and reldep3.
3171         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
3172         Don't create relocation dependency if it is nonzero.
3173         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
3174         can never happen here.
3175         (_dl_lookup_versioned_symbol): Add new parameter explicit.
3176         Don't create relocation dependency if it is nonzero.
3177         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
3178         stuff.  This can never happen here.
3179         * sysdeps/generic/ldsodefs.h: Change prototypes.
3180         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
3181         _dl_lookup_up and _dl_lookup_versioned_symbol.
3182         (RESOLV): Likewise.
3183         * elf/dl-runtime.c (fixup): Likewise.
3184         (profile_fixup): Likewise.
3185         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
3186         _dl_lookup_symbol.
3187         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
3188         * elf/rtld.c (dl_main): Likewise.
3189         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
3190         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
3191         and pass down the caller map.
3192         (_dl_vsym): Likewise.
3193         * elf/reldep.c: New file.
3194         * elf/reldep2.c: New file.
3195         * elf/reldep3.c: New file.
3196         * elf/reldepmod1.c: New file.
3197         * elf/reldepmod2.c: New file.
3198         * elf/reldepmod3.c: New file.
3199         * elf/reldepmod4.c: New file.
3200         * elf/unload.c: New file.
3201         * elf/unloadmod.c: New file.
3202
3203         * elf/do-lookup.h: Remove unused undef_name parameter.
3204         * elf/dl-lookup.c: Adjust callers.
3205
3206 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
3207
3208         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
3209         irreversible in recursive call of conversion function to signal that
3210         no error handling is wanted.
3211         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
3212         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
3213         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
3214         recursive error handling call, otherwise to &lirreversible.  Use it
3215         for calls to conversion functions.
3216         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
3217         transliterating.
3218         (ucs4_internal_loop_unaligned): Likewise.
3219         (ucs4le_internal_loop): Likewise.
3220         (ucs4le_internal_loop_unaligned): Likewise.
3221
3222 2000-08-25  Greg McGary  <greg@mcgary.org>
3223
3224         * sysdeps/i386/memchr.S: Check high bound against chars
3225         actually scanned.
3226         * sysdeps/i386/memcmp.S: Likewise.
3227         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
3228         account for pointers that lie one beyond end-of-buffer.
3229
3230 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
3231
3232         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
3233         * elf/nodelete.c (fini_ran): New global variable.
3234         (do_test): Before every dlclose call clear fini_ran and test
3235         afterwards that it is not set by the destructors.
3236         * elf/nodelmod1.c: Add destructor which sets fini_ran.
3237         * elf/nodelmod2.c: Likewise.
3238         * elf/nodelmod4.c: Likewise.
3239
3240 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
3241
3242         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
3243         getrlimit to the list.
3244
3245 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
3246
3247         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
3248         long double format so use ldbl-96 instead of ldbl-128.
3249
3250 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
3251
3252         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
3253         even if bits 10 a 11 are non-zero.
3254         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
3255
3256         * Makeconfig: Ensures the soversions.mk part of Makefile gets
3257         included before building gnu/lib-names.h
3258         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3259
3260         * elf/dl-close.c (_dl_close): Don't run destructors of objects
3261         marked DF_1_NODELETE.
3262
3263         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
3264         since we call sigaction in the child.
3265
3266 2000-08-25  Andreas Jaeger  <aj@suse.de>
3267
3268         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
3269         gconv-modules.
3270
3271 2000-08-25  Andreas Jaeger  <aj@suse.de>
3272
3273         * manual/arith.texi (Control Functions): Clarify possible
3274         arguments.  Closes PR libc/1856.
3275
3276 2000-08-24  H.J. Lu  <hjl@gnu.org>
3277
3278         * stdio-common/Makefile (tests): Don't do it for cross compiling.
3279         * malloc/Makefile (tests): Likewise.
3280
3281 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
3282
3283         * iconvdata/unicode.c (gconv_init): Correct test for direction.
3284
3285 2000-08-24  Andreas Jaeger  <aj@suse.de>
3286
3287         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
3288         only if LIBGD is available.
3289
3290 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
3291
3292         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
3293         problems with now restrict parameter types.
3294         (convaddr4to6): Likewise.
3295
3296 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
3297
3298         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
3299         * sysdeps/s390/fpu/feenablxcpt.c: New file.
3300         * sysdeps/s390/fpu/fegetexcept.c: New file.
3301         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
3302         FPC_VALID_MASK.
3303
3304 2000-08-24  Andreas Jaeger  <aj@suse.de>
3305
3306         * malloc/Makefile (extra-objs): Add memusagestat.o.
3307         (generated): Added memusage and memusagestat for make clean.
3308
3309         * libio/tst_putwc.c (do_test): Delete temporary file.
3310         Move inclusion of test-skeleton to front to have prototype for
3311         add_temp_file.
3312
3313         * posix/Makefile (generated): Add wordexp-tst.out.
3314
3315 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
3316
3317         * resolv/res_hconf.c (free_mem): Remove not needed if.
3318
3319         * time/tzset.c (free_mem): New function.
3320         * string/strsignal.c (free_mem): New function.
3321         * inet/inet_ntoa.c (free_mem): New function.
3322         * sunrpc/clnt_perr.c (free_mem): New function.
3323
3324 2000-08-24  Andreas Jaeger  <aj@suse.de>
3325
3326         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
3327         * sysdeps/unix/sysv/syscalls.list: Likewise.
3328
3329         * posix/unistd.h: Move internal prototypes from here ...
3330         * include/unistd.h: ... to here.
3331
3332         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
3333
3334 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
3335
3336         * grp/initgroups.c (initgroups): Deallocate groups array.
3337         Reported by jani.raiha@sonera.com [PR libc/1868].
3338
3339         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
3340         * sysdeps/alpha/Dist: Likewise.
3341
3342 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
3343
3344         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
3345         destructor).  Reported by Solar Designer <solar@false.com>.
3346
3347         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
3348         avoid adding double slashes.
3349
3350 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
3351
3352         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
3353         out of the __REDIRECT macro.
3354
3355 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
3356
3357         * stdio-common/vfscanf.c: Add %F format support.
3358
3359         * locale/programs/ld-ctype.c (ctype_output): Make sure
3360         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
3361         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
3362         (ctype_read): Enable returning of wide character strings for reading
3363         transliteration information.
3364
3365 2000-08-23  Andreas Jaeger  <aj@suse.de>
3366
3367         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
3368         Use static __inline instead of _EXTERN_INLINE.
3369
3370         * misc/sys/select.h: Move prototypes of __select from here ...
3371         * include/sys/select.h: ... to here.
3372
3373         * socket/sys/socket.h: Move prototypes of __send and __connect
3374         from here....
3375         * include/sys/socket.h: ... to here.
3376
3377         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
3378         lr_error.
3379
3380 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
3381
3382         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
3383         __setrlimit as strong name. Takes only 2 arguments.
3384
3385         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
3386         takes only 2 arguments.
3387
3388 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3389
3390         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
3391
3392         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
3393
3394 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
3395
3396         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
3397         default_missing character being specified, pick the first
3398         representable.
3399
3400 2000-08-23  Andreas Jaeger  <aj@suse.de>
3401
3402         * include/wchar.h: Add some pure attributes.
3403
3404         * time/time.h: Add const attribute for dysize.
3405
3406         * include/stdlib.h: Add malloc attribute to __posix memalign.
3407
3408         * stdlib/stdlib.h: Add some pure and malloc attributes.
3409         * wcsmbs/wchar.h: Likewise.
3410
3411         * dirent/dirent.h: Add some pure attributes.
3412         * include/dirent.h: Likewise.
3413
3414 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
3415
3416         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
3417         on 64bit arches.
3418
3419 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
3420
3421         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
3422         missing buffer size checks.
3423
3424 2000-08-23  Andreas Jaeger  <aj@suse.de>
3425
3426         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
3427         strong name.
3428         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3429
3430         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
3431         otherwise __LINUX_KERNEL_VERSION might not be defined.
3432         (MIN): Define if not already defined.
3433
3434 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
3435
3436         * stdio-common/vfprintf.c: Handle %F format.
3437         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
3438         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
3439
3440         * stdio-common/tstdiomisc.c: Add test for %F printf format.
3441
3442         * po/zh.po: New file.
3443
3444         * iconvdata/sjis.c: In conversion from UCS4, correct test for
3445         enough room in target buffer.
3446         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
3447         * iconvdata/bug-iconv1.c: New file.
3448         * iconvdata/Makefile (tests): Add bug-iconv1.
3449
3450         * locale/iso-4217.def: Update entry for Nicaragua.
3451
3452 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
3453
3454         * hurd/hurdsig.c: Rearrange headers a bit.
3455         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
3456         when cthreads is being used.
3457
3458 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
3459
3460         * elf/Makefile (distribute): Add dl-osinfo.h.
3461         * sysdeps/generic/dl-osinfo.h: New file.
3462         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
3463         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
3464         if defined.
3465         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
3466         only for !SHARED case.  Get the code from dl-osinfo.h.
3467
3468         * stdlib/random_r.c: Cleanups.
3469         * stdlib/tst-random.c: New file.
3470         * stdlib/Makefile (tests): Add tst-random.
3471         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
3472
3473 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3474
3475         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
3476         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
3477         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
3478         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
3479
3480 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
3481
3482         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
3483         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
3484         (__syscall__sysctl): Add.
3485
3486 2000-08-21  Andreas Jaeger  <aj@suse.de>
3487
3488         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
3489         libc/1864).
3490         * stdlib/tst-strtoll.c: Likewise.
3491
3492 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
3493
3494         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
3495         correctly.
3496         (__initstate_r): Set errno on error.
3497         (__random_r): Likewise.
3498         (__setstate_r): Correct offset when computing
3499         new rptr and fptr.  Test for arg_state being NULL.
3500         Reported by Michael Fischer <fischer@cs.yale.edu>.
3501
3502         * posix/regex.h: Add macro definitions to allow compiling outside
3503         glibc.
3504
3505         * sysdeps/i370/Implies: Removed.
3506         * sysdeps/mvs/Implies: Removed.
3507
3508         * catgets/catgets.c (catopen): Filter out env_var values with / if
3509         necessary.
3510
3511         * locale/findlocale.c (_nl_find_locale): Move test for unusable
3512         locale name after all getenvs.
3513
3514         * configure.in: Allow sed versions like 3.02.8.
3515         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
3516
3517 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
3518
3519         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
3520
3521 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
3522
3523         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
3524         of gethostbyname2_r call.
3525
3526         * intl/locale.alias: Add aliases for Korean.
3527
3528 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3529
3530         * sysdeps/s390/__longjmp.c: Remove unused variable result.
3531         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
3532         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
3533         * sysdeps/s390/fpu/fegetenv.c: New file.
3534         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
3535         * sysdeps/s390/fpu/feholdexcpt.c: New file.
3536         * sysdeps/s390/fpu/fenv_libc.h: New file.
3537         * sysdeps/s390/fpu/fesetenv.c: New file.
3538         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
3539         * sysdeps/s390/fpu/feupdateenv.c: New file.
3540         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
3541         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
3542         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
3543         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
3544         * sysdeps/s390/fpu/ftestexcept.c: New file.
3545         * sysdeps/s390/fpu/libm-test-ulps: New file.
3546         * sysdeps/s390/gmp-mparam.h: Add end of comment.
3547         * sysdeps/s390/initfini.c: New file.
3548         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
3549         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
3550         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
3551         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
3552         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
3553         sys/procfs.h as proposed by Mark Kettenis.
3554         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
3555
3556 2000-08-21  Andreas Jaeger  <aj@suse.de>
3557
3558         * include/poll.h: Include include/sys/poll.h to get __poll
3559         declaration.
3560
3561         * io/sys/poll.h: Move __poll declaration from here...
3562         * include/sys/poll.h: ...to here.
3563
3564         * include/sys/socket.h (__getpeername): Add declaration.
3565
3566         * include/wchar.h (__vswprintf): Add declaration.
3567
3568         * include/stdio.h (__flockfile): Add declaration.
3569         (__funlockfile): Likewise.
3570
3571 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
3572
3573         * misc/sys/cdefs.h: Define __restrict_arr.
3574         * include/sys/time.h: Add restrict where required by AGd4.
3575         * inet/arpa/inet.h: Likewise.
3576         * io/sys/stat.h: Likewise.
3577         * io/sys/statvfs.h: Likewise.
3578         * misc/search.h: Likewise.
3579         * misc/sys/select.h: Likewise.
3580         * posix/glob.h: Likewise.
3581         * posix/regex.h: Likewise.
3582         * posix/spawn.h: Likewise.
3583         * posix/unistd.h: Likewise.
3584         * rt/aio.h: Likewise.
3585         * signal/signal.h: Likewise.
3586         * socket/sys/socket.h: Likewise.
3587         * stdlib/ucontext.h: Likewise.
3588         * streams/stropts.h: Likewise.
3589         * string/string.h: Likewise.
3590         * time/time.h: Likewise.
3591         * time/sys/time.h: Likewise.
3592
3593         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
3594         and posix_spawnattr_setscheparam.
3595
3596         * libio/stdio.h: Make cuserid prototype again available for all
3597         XPG versions.
3598
3599         * argp/argp-help.c: Unify use of function aliases to make more compact
3600         PLT.
3601         * include/libintl.h: Likewise.
3602         * inet/rcmd.c: Likewise.
3603         * intl/dcigettext.c: Likewise.
3604         * libio/iofputws.c: Likewise.
3605         * libio/iofputws_u.c: Likewise.
3606         * libio/iogetwline.c: Likewise.
3607         * libio/swprintf.c: Likewise.
3608         * malloc/malloc.c: Likewise.
3609         * nss/digits_dots.c: Likewise.
3610         * posix/fnmatch.c: Likewise.
3611         * posix/spawn_faction_addclose.c: Likewise.
3612         * posix/spawn_faction_adddup2.c: Likewise.
3613         * posix/spawn_faction_addopen.c: Likewise.
3614         * posix/spawni.c: Likewise.
3615         * posix/wordexp.c: Likewise.
3616         * posix/spawni.c: Likewise.
3617         * resolv/res_hconf.c: Likewise.
3618         * resolv/res_init.c: Likewise.
3619         * shadow/lckpwdf.c: Likewise.
3620         * signal/sighold.c: Likewise.
3621         * signal/sigrelse.c: Likewise.
3622         * stdio-common/printf-parse.h: Likewise.
3623         * stdio-common/printf-prs.c: Likewise.
3624         * stdio-common/printf_fp.c: Likewise.
3625         * stdio-common/vfprintf.c: Likewise.
3626         * stdio-common/vfscanf.c: Likewise.
3627         * stdlib/rpmatch.c: Likewise.
3628         * sunrpc/create_xid.c: Likewise.
3629         * sunrpc/key_call.c: Likewise.
3630         * sysdeps/generic/setrlimit64.c: Likewise.
3631         * sysdeps/generic/utmp_file.c: Likewise.
3632         * sysdeps/generic/vlimit.c: Likewise.
3633         * sysdeps/posix/posix_fallocate.c: Likewise.
3634         * sysdeps/posix/posix_fallocate64.c: Likewise.
3635         * sysdeps/posix/sigpause.c: Likewise.
3636         * sysdeps/posix/sigset.c: Likewise.
3637         * sysdeps/unix/grantpt.c: Likewise.
3638         * sysdeps/unix/bsd/ualarm.c: Likewise.
3639         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3640         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
3641         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
3642         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
3643         * time/strftime.c: Likewise.
3644         * wcsmbs/wcscoll.c: Likewise.
3645         * wcsmbs/wcsxfrm.c: Likewise.
3646
3647         * time/tst-getdate.c (main): Make error messages more human readable.
3648
3649         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
3650         postinc/predec instruction.
3651         (_FPU_SETCW): Likewise.
3652         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3653
3654 2000-08-20  Andreas Jaeger  <aj@suse.de>
3655
3656         * time/tst-getdate.c (main): Increase error in case of wrong
3657         conversion.
3658         Fix typo in test case.
3659
3660 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
3661
3662         * ctype/ctype.h (isblank): Make available if ISO C99.
3663         * wctype/wctype.h (iswblank): Make available if ISO C99.
3664         * math/math.h (signgam): Don't make available if ISO C99.
3665         * math/tgmath.h (tgamma): Renamed from gamma.
3666         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
3667
3668         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
3669         Pretty printing.
3670         * intl/plural.y (new_exp): Take number of optional parameters in
3671         second parameter.  Test for correct number of parameters and free
3672         correctly in case of failure.  Adjust all callers.
3673         (yylex): Allow ';' as terminator character.
3674
3675 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
3676
3677         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
3678         walt_digits.
3679
3680         * locale/findlocale.c (free_mem): Also free here->filename.
3681
3682         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
3683
3684         * math/test-fenv.c (feenv_tests): Clear all exceptions before
3685         first test.
3686         (feexcp_nomask_test): Correct printf args.
3687         (feexcp_mask_test): Likewise.
3688
3689 2000-08-19  Andreas Jaeger  <aj@suse.de>
3690
3691         * inet/tst-gethnm.c: Include string.h to provide prototype for
3692         strcmp.
3693
3694         * malloc/mtrace.pl (usage): Inform about --help.
3695
3696 2000-08-19  Wolfram Gloger  <wg@malloc.de>
3697
3698         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
3699         size HEAP_MAX_SIZE.
3700
3701 2000-08-19  Andreas Jaeger  <aj@suse.de>
3702
3703         * shlib-versions: Remove libnss_db, libdb and libdb1.
3704
3705 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
3706
3707         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
3708         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
3709         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
3710         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
3711         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
3712         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
3713         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
3714         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
3715         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
3716         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
3717         getdents.
3718         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
3719         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
3720
3721 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
3722
3723         * include/glob.h (__glob64): Add prototype.
3724         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
3725         define glob and glob_in_dir.
3726         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
3727         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3728         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3729         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3730         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
3731         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
3732         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
3733         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
3734
3735 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
3736
3737         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
3738
3739 2000-08-17  Andreas Jaeger  <aj@suse.de>
3740
3741         * math/test-fenv.c (fe_single_test): New function.
3742         (fe_env_tests): Use fe_single_test.
3743         (feenable_test): New tests for feenable/fedisable and
3744         fegetexcpetions.
3745         (feexcp_mask_test): New function.
3746         (feexcp_nomask_test): New function.
3747
3748 2000-08-19  Richard Henderson  <rth@cygnus.com>
3749
3750         * sysdeps/alpha/fpu/fenv_libc.h: New file.
3751         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
3752         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
3753         * sysdeps/alpha/fpu/fesetround.c: Likewise.
3754         * sysdeps/alpha/fpu/fegetround.c: Likewise.
3755         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
3756         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
3757         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
3758         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
3759         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
3760         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
3761         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
3762         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
3763         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
3764         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
3765         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
3766         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
3767
3768 2000-08-19  Andreas Jaeger  <aj@suse.de>
3769
3770         * elf/constload1.c: Include <stdio.h> for puts prototype.
3771
3772 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
3773
3774         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
3775         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
3776         a dynamically loaded object remove old l_initfini list.
3777         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
3778         remove some dynamically allocated memory blocks in the dynamic
3779         loading data structures.
3780         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
3781         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
3782         Instead call _dl_check_map_versions only for the dependencies.
3783         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
3784         information of initial objects as not free-able.
3785         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
3786         element.
3787
3788         * elf/filter.c: Call mtrace.
3789         * elf/restest1.c: Likewise.  Close the objects.
3790         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
3791         debug information.
3792
3793         * elf/constload1.c: Add comment explaining not freed memory.
3794
3795 2000-08-18  Andreas Jaeger  <aj@suse.de>
3796
3797         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
3798         alignment for structs stat and stat64.
3799         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3800
3801 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
3802
3803         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
3804         handling.  Patch by Richard Henderson <rth@twiddle.net>.
3805
3806         * nss/Versions: Remove libnss_db information.
3807
3808 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3809
3810         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
3811         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
3812         * sysdeps/sparc/fpu/fegetexcept.c: New file.
3813         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
3814
3815         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
3816         to match Solaris.
3817
3818 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
3819
3820         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
3821         (_FPU_SETCW): Likewise.
3822         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3823
3824         * stdio-common/printf_fp.c: Fix chars_needed computation.
3825         Patch by Greg McGary <greg@mcgary.org>.
3826
3827 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3828
3829         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
3830         _dl_loaded are NULL.
3831
3832 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3833
3834         * manual/arith.texi (feholdexcept): Returns 0 on success.
3835
3836 2000-08-17  Andreas Jaeger  <aj@suse.de>
3837
3838         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
3839         (ifr_newname): New.
3840         Reported by Andi Kleen <ak@suse.de>.
3841
3842 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3843
3844         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
3845         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
3846         * sysdeps/alpha/fpu/fegetexcept.c: New file.
3847
3848 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3849
3850         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
3851         of buf->st_ino and kbuf->st_ino, not __st_ino.
3852         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
3853         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
3854         directive so that only linux/getdents.c is used, not some
3855         architecture specific one.
3856
3857 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3858
3859         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
3860         enabled, not disabled exceptions.
3861         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3862         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
3863
3864 2000-08-17  Greg McGary  <greg@mcgary.org>
3865
3866         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
3867         from test program name when constructing suffix for $(LDLIBS-*).
3868         (bounded-thread-library): New variable.
3869         * crypt/Makefile
3870         [build-shared, build-static] (libcrypt-dep): Remove variable.
3871         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
3872         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3873         * linuxthreads/Makefile (libpthread, librt): Remove variables.
3874         (librt-tests): Add variable.  (tests): Use it.
3875         [build-shared, build-static]
3876         ($(addprefix $(objpfx),$(tests)),
3877         $(addprefix $(objpfx),$(librt-tests))):
3878         Consolidate individual dependencies.
3879         [build-bounded]
3880         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
3881         Add dependencies.
3882         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
3883         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3884         * misc/Makefile
3885         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
3886         * rt/Makefile
3887         [build-shared, build-static]
3888         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
3889         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3890
3891 2000-08-17  Greg McGary  <greg@mcgary.org>
3892
3893         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
3894         * sysdeps/unix/make-syscalls.sh: Likewise.
3895         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3896         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3897         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3898         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3899         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3900
3901 2000-08-17  Greg McGary  <greg@mcgary.org>
3902
3903         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
3904         Wrap extern symbols in BP_SYM ().
3905         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3906         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3907         * sysdeps/i386/fpu/s_remquo.S: Likewise.
3908         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3909         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3910         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3911         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3912         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3913         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3914         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3915
3916 2000-08-16  Andreas Schwab  <schwab@suse.de>
3917
3918         * sysdeps/m68k/fpu/fegetexcept.c: New file.
3919         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
3920         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
3921
3922 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3923
3924         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
3925         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
3926         * elf/dl-support.c: Define _nl_nloaded.
3927         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
3928         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
3929         object to global list.
3930         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
3931         from _dl_loaded list.
3932         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3933         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
3934         number here.
3935
3936         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
3937         unmask, exceptions.
3938         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
3939         exceptions.
3940         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
3941
3942 2000-08-16  Andreas Jaeger  <aj@suse.de>
3943
3944         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
3945
3946 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
3947
3948         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
3949
3950 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3951
3952         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
3953         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
3954         (sysdep_routines): Add oldgetrlimit64.
3955         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
3956         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3957
3958         * include/link.h: Undo last patches.  Hurd now has stat64.
3959         * elf/Makefile: Likewise.
3960         * elf/dl-load.c: Likewise.
3961         * elf/dl-misc.c: Likewise.
3962         * elf/dl-profile.c: Likewise.
3963         * sysdeps/generic/sysd-link.h: Removed.
3964         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
3965
3966         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
3967         thread event callback function.
3968         (__aio_notify_only): Use function above.
3969         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
3970
3971 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
3972
3973         * sysdeps/mach/hurd/lseek64.c: New file.
3974
3975 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3976
3977         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
3978         Remove typedefs.
3979         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
3980         typedefs.
3981         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
3982         typedefs.
3983         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
3984
3985 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3986
3987         * sysdeps/mach/hurd/xstatconv.c: New file.
3988         * sysdeps/mach/hurd/fxstat64.c: New file.
3989         * sysdeps/mach/hurd/lxstat64.c: New file.
3990         * sysdeps/mach/hurd/xstat64.c: New file.
3991         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
3992
3993 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3994
3995         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
3996         Initialize, needed for change in common symbol handling in newer
3997         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
3998
3999 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
4000
4001         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
4002         * elf/constload2.c: Add destructor to unload constload3.
4003
4004         * include/link.h: Include sysd-link.h.
4005         * sysdeps/generic/sysd-link.h: New file.
4006         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
4007         * elf/Makefile (distribute): Add sysd-link.h.
4008         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
4009         types and functions directly.
4010         * elf/dl-misc.c: Likewise.
4011         * elf/dl-profile.c: Likewise.
4012
4013         * elf/loadfail.c (main): Close all successfully loaded objects.
4014
4015         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
4016         free wd.
4017         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
4018         there is already one.
4019
4020         * elf/dl-close.c: Pretty print.
4021
4022 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
4023
4024         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
4025         global (with file scope).  Add __libc_subfreeres function to free the
4026         string.
4027         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
4028         in ttyname function.
4029
4030         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
4031
4032         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
4033
4034         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
4035         mapping them to /x5c and /x7e respectively.
4036
4037         * locale/programs/ld-ctype.c: Add support for more definitions after
4038         copy statement.
4039
4040 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
4041
4042         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
4043         * sysdeps/unix/sysv/linux/kernel-features.h
4044         (__ASSUME_GETDENTS64_SYSCALL): Define.
4045         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
4046         syscall if available to get d_type fields.
4047         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
4048         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
4049         __lxstat64): Export at GLIBC_2.2.
4050         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
4051         Likewise.
4052         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
4053         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
4054         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
4055         getdirentries64, versionsort64): Remove.
4056         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
4057         getdirentries64, versionsort64): Remove.
4058
4059 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
4060
4061         * posix/Makefile: Remove rules to generate glob package.
4062
4063         * posix/Makefile (tests): Add tst-regexloc.
4064         (tst-regexloc-ENV): Add LOCPATH.
4065         * posix/tst-regexloc.c: New file.
4066
4067 2000-08-12  Andreas Jaeger  <aj@suse.de>
4068
4069         * include/features.h (__STDC_ISO_10646__): Define.
4070         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
4071
4072 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
4073
4074         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
4075
4076         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
4077         for revision 6 and up).
4078
4079         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
4080         including <time.h>.
4081         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
4082         to get definitions of just these types.
4083
4084         * signal/signal.h: Define thread signal handling functions also for
4085         POSIX95.
4086
4087         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
4088         POSIX95.
4089         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
4090         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
4091         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
4092         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
4093
4094         * sysvipc/sys/shm.h: Define pid_t for XPG.
4095
4096         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
4097         they are not anymore required here.
4098
4099         * wcsmbs/wchar.h: Make the various wide char string and stream
4100         functions available for the respective XPG versions.
4101
4102         * nss/Makefile: Remove rules to build and distribute nss_db.
4103
4104         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
4105         * sysdeps/generic/scandir64.c: Likewise.
4106         * sysdeps/generic/versionsort64.c: Likewise.
4107
4108 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
4109             Benjamin Koznik  <bkoz@redhat.com>
4110
4111         * libio/fileops.c: Merge with libstdc++-v3.
4112         * libio/genops.c: Likewise.
4113         * libio/iofclose.c: Likewise.
4114         * libio/iofopen.c: Likewise.
4115         * libio/iofwide.c: Likewise.
4116         * libio/libio.h: Likewise.
4117         * libio/libioP.h: Likewise.
4118         * libio/stdfiles.c: Likewise.
4119         * libio/stdio.c: Likewise.
4120         * libio/wfileops.c: Likewise.
4121         * libio/wgenops.c: Likewise.
4122
4123         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
4124
4125 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
4126
4127         * locale/programs/localedef.c: Implement --prefix option to allow
4128         writing in standard places of alternative install directories.
4129
4130         * posix/regex.c (compile_range): Implement collation sequence
4131         handling for glibc.  Use simple character ordering otherwise and
4132         not strcoll.
4133
4134 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
4135
4136         * sysdeps/generic/scandir64.c: Include <dirent.h>.
4137
4138 2000-08-12  Andreas Jaeger  <aj@suse.de>
4139
4140         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
4141         __USE_FILE_OFFSET64 correctly for locking.
4142         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4143
4144 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
4145
4146         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4147         Define for 2.4.1 on sparc as well.
4148         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
4149         for F_GETLK64, F_SETLK64, and F_SETLKW64.
4150         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
4151         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
4152
4153 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
4154
4155         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
4156         defined.
4157
4158 2000-08-12  Andreas Jaeger  <aj@suse.de>
4159
4160         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
4161         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
4162
4163         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
4164         mips2 for assembler.
4165
4166         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
4167         if fnctl64 is not available for F_*LK*64.
4168
4169         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
4170
4171 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
4172
4173         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4174         Define for 2.4.1 on x86.
4175         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
4176         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
4177         for F_GETLK64, F_SETLK64, and F_SETLKW64.
4178
4179         * dirent/dirent.h: Define DT_WHT.
4180
4181         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
4182         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
4183         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
4184         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
4185         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
4186         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
4187
4188 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
4189
4190         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
4191         lookup, pass pointer to array with NULL pointer [PR libc/1858].
4192         * inet/Makefile (tests): Add tst-gethnm.
4193         * inet/tst-gethnm.c: New file.
4194
4195         * rt/aio_cancel.c: If canceling a specific request which is running
4196         *really* do nothing.
4197         * rt/aio_misc.h: Add `done' to states of a request.
4198         * rt/aio_misc.c: Add several tests for the correct state.
4199         Simplify request table memory handling.
4200
4201 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
4202
4203         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
4204         * dirent/scandir64.c: Move...
4205         * sysdeps/generic/scandir64.c: ...here.
4206         * dirent/alphasort64.c: Move...
4207         * sysdeps/generic/alphasort64.c: ...here.
4208         * dirent/versionsort64.c: Move...
4209         * sysdeps/generic/versionsort64.c: ...here.
4210         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
4211         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
4212         Export symbols at GLIBC_2.2.
4213         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
4214         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
4215         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
4216         __versionsort64): Add prototypes.
4217         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
4218         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
4219         unused prototype.
4220         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
4221         and GLIBC_2.2.
4222         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
4223         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
4224         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
4225         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
4226         __u_quad_t.
4227         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
4228         Adjust for kernel-2.4.0-test6 layout.
4229         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
4230         GLIBC_2.1 and GLIBC_2.2.
4231         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
4232         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
4233         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
4234         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
4235         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
4236         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
4237         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
4238         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
4239         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
4240         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
4241         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
4242         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
4243         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
4244         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
4245         __u_quad_t.
4246         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
4247         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
4248         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
4249         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
4250         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
4251         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
4252         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
4253         __u_quad_t.
4254         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
4255         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
4256         Define.
4257         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
4258         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
4259         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
4260         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
4261         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
4262         Define.
4263         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
4264         alpha/readdir.c.
4265         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
4266         alpha/readdir_r.c
4267         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
4268         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
4269         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
4270         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
4271         st_ino from __st_ino.
4272         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
4273         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
4274         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
4275         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
4276         set __st_ino in addition to st_ino.
4277         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
4278         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
4279         __old_getdents64 as well.
4280         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
4281         getdirentries64 and old_getdirentries64 as well.
4282         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
4283         __GETDENTS): Define.
4284         (GETDENTS64): Remove.
4285         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
4286         Define.
4287         (GETDENTS64): Remove.
4288         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
4289         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
4290         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
4291         as well.
4292         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
4293         __old_readdir64_r as well.
4294         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4295         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
4296
4297 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
4298
4299         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
4300         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
4301         define of the kernel.
4302         Add missing __SEG_PSTKOVF definition.
4303         Adjust the padding of struct siginfo and struct sigevent to
4304         match the fact that sigval_t is 64 bit.
4305
4306 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
4307
4308         * timezone/zic.c: Update from tzcode2000f.
4309         * timezone/australasia: Update from tzdata2000f.
4310         * timezone/europe: Likewise.
4311         * timezone/southamerica: Likewise.
4312         * timezone/yearistype: Likewise.
4313
4314 2000-08-10  Andreas Jaeger  <aj@suse.de>
4315
4316         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
4317         stat with current MIPS kernel.
4318
4319 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
4320
4321         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
4322         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
4323         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
4324         Remove the junk that's only relevant in the Linux kernel itself.
4325         Add a warning saying that this file is now obsolete, and include
4326         <sys/procfs.h>.
4327         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
4328         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
4329         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
4330         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
4331         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
4332         and add the notice that the file is primarily there for GDB.
4333         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
4334
4335 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
4336
4337         * time/tzfile.c (__tzfile_compute): __tzstring zones
4338         from zone_names.
4339
4340 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
4341
4342         * resolv/resolv.h (__res_state): Surround prototype with
4343         __BEGIN_DECLS/__END_DECLS.
4344         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
4345
4346 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
4347
4348         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
4349         Make independant of asm/resource.h from the Linux kernel.
4350
4351 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
4352
4353         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
4354
4355 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
4356
4357         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
4358         * locale/Makefile (locale-CPPFLAGS): Likewise.
4359
4360 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
4361
4362         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
4363         for AMD processors.
4364
4365 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
4366
4367         * misc/Versions (mincore): Export at GLIBC_2.2.
4368
4369 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
4370
4371         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
4372
4373 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
4374
4375         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
4376         socketpair.  Made socketpair a weak alias.
4377         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
4378         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
4379         conforming, but fall back on the old protocol if the socket server
4380         doesn't support it.
4381         * include/sys/socket.h: Add prototype for __socketpair.
4382
4383 2000-08-09  Andreas Schwab  <schwab@suse.de>
4384
4385         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
4386         long long modifier is seen.
4387
4388         * elf/nodelete.c (do_test): Remove reference to undefined member
4389         sa_restorer.
4390         * rt/tst-aio4.c (do_test): Likewise.
4391
4392         * configure.in: Add `-lm' when checking for libgd.
4393         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
4394         linking.
4395
4396 2000-08-09  Andreas Jaeger  <aj@suse.de>
4397
4398         * configure.in: Change required make versions.
4399
4400         * manual/install.texi (Tools for Compilation): Document required
4401         make version.
4402         (Supported Configurations): Update list of supported
4403         configurations.
4404
4405 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
4406
4407         * locale/linereader.c (get_string): Don't print an error is a string
4408         contains an unknown character.
4409
4410 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
4411
4412         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
4413         (new_symbol): Take new parameters with name of the symbol.
4414         Adjust callers.
4415         (handle_ellipsis): Don't only allow character symbols.
4416         (collate_read): Allow string of collating elements contain invalid
4417         characters; ignore entry in this case.
4418         Handle ellipsis of collating symbols before first order_start.
4419         Allow ellipsis in state 0.
4420
4421 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
4422
4423         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
4424         error message.
4425         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
4426
4427 2000-08-04  Greg McGary  <greg@mcgary.org>
4428
4429         * posix/regex.c (SET_HIGH_BOUND): New macro.
4430         (MOVE_BUFFER_POINTER): Use it.
4431         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
4432         (EXTEND_BUFFER): Use it.
4433
4434 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
4435
4436         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
4437         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
4438         _wide_data but from _IO_FILE directly.
4439         * libio/iofclose.c: Likewise.
4440         * libio/wfileops.c: Likewise.
4441
4442         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
4443         * libio/libioP.h: Change prototypes.
4444
4445 2000-08-03  Greg McGary  <greg@mcgary.org>
4446
4447         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
4448         frame pointer early so that we save caller's frame pointer.
4449         * sysdeps/i386/elf/setjmp.S: Likewise.
4450
4451         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
4452         * io/test-utime.c: Test passing NULL as utimbuf* arg.
4453
4454         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
4455         (MOVE_BUFFER_POINTER): Handle high_bound properly.
4456         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
4457
4458 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
4459
4460         * iconvdata/big5.c: Updated.
4461         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
4462
4463 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
4464
4465         * Makeconfig (all-subdirs): Add conform.
4466         * conform/Makefile: Include ../Rules.
4467
4468         * Makefile (README): Add rules to generate here as well.
4469
4470 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
4471
4472         * version.h (VERSION): Bump to 2.1.92.
4473
4474         * sysdeps/ia64/Dist: Add _mcount.S.
4475
4476         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
4477
4478         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
4479
4480         * elf/Makefile (distribute): Add missing modules.
4481
4482         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
4483
4484         * posix/regex.c (compile_range): Translate range start and end
4485         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
4486
4487         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
4488         asm/resource.h.
4489
4490         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
4491
4492 2000-08-02  Andreas Jaeger  <aj@suse.de>
4493
4494         * elf/elf.h (EM_S390): Added.
4495         (R_390_*): New relocs for S390.
4496
4497         * sysdeps/unix/sysv/linux/s390/Dist: New file.
4498         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
4499         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
4500         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
4501         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
4502         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
4503         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
4504         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
4505         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
4506         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
4507         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
4508         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
4509         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
4510         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
4511         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
4512         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
4513         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
4514         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
4515         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
4516         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
4517         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
4518         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
4519         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
4520         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
4521         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
4522         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
4523         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
4524         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
4525         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
4526         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
4527         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
4528         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
4529         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
4530         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
4531         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
4532         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
4533         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
4534         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
4535         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
4536         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
4537         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
4538         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
4539         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
4540         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
4541         * sysdeps/s390/sysdep.h: New file.
4542         * sysdeps/s390/sys/ucontext.h: New file.
4543         * sysdeps/s390/sub_n.S: New file.
4544         * sysdeps/s390/strncpy.S: New file.
4545         * sysdeps/s390/strcpy.S: New file.
4546         * sysdeps/s390/stackinfo.h: New file.
4547         * sysdeps/s390/setjmp.S: New file.
4548         * sysdeps/s390/s390-mcount.S: New file.
4549         * sysdeps/s390/mul_1.S: New file.
4550         * sysdeps/s390/memusage.h: New file.
4551         * sysdeps/s390/memset.S: New file.
4552         * sysdeps/s390/memcpy.S: New file.
4553         * sysdeps/s390/memchr.S: New file.
4554         * sysdeps/s390/machine-gmon.h: New file.
4555         * sysdeps/s390/ldbl2mpn.c: New file.
4556         * sysdeps/s390/gmp-mparam.h: New file.
4557         * sysdeps/s390/fpu/fpu_control.h: New file.
4558         * sysdeps/s390/fpu/fesetround.c: New file.
4559         * sysdeps/s390/fpu/fegetround.c: New file.
4560         * sysdeps/s390/fpu/fclrexcpt.c: New file.
4561         * sysdeps/s390/fpu/bits/fenv.h: New file.
4562         * sysdeps/s390/ffs.c: New file.
4563         * sysdeps/s390/elf/start.S: New file.
4564         * sysdeps/s390/elf/setjmp.S: New file.
4565         * sysdeps/s390/elf/bsd-setjmp.S: New file.
4566         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
4567         * sysdeps/s390/dl-machine.h: New file.
4568         * sysdeps/s390/bzero.S: New file.
4569         * sysdeps/s390/bsd-setjmp.S: New file.
4570         * sysdeps/s390/bsd-_setjmp.S: New file.
4571         * sysdeps/s390/bits/string.h: New file.
4572         * sysdeps/s390/bits/setjmp.h: New file.
4573         * sysdeps/s390/bits/huge_val.h: New file.
4574         * sysdeps/s390/bits/endian.h: New file.
4575         * sysdeps/s390/bits/byteswap.h: New file.
4576         * sysdeps/s390/bcopy.S: New file.
4577         * sysdeps/s390/backtrace.c: New file.
4578         * sysdeps/s390/atomicity.h: New file.
4579         * sysdeps/s390/asm-syntax.h: New file.
4580         * sysdeps/s390/addmul_1.S: New file.
4581         * sysdeps/s390/add_n.S: New file.
4582         * sysdeps/s390/abort-instr.h: New file.
4583         * sysdeps/s390/__longjmp.c: New file.
4584         * sysdeps/s390/Makefile: New file.
4585         * sysdeps/s390/Implies: New file.
4586         * sysdeps/s390/Dist: New file.
4587         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
4588
4589 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
4590
4591         Remove incompatible IPv6 extension of RPC.
4592         * sunrpc/Makefile: Undo changes.
4593         * sunrpc/rpc_main.c: Likewise.
4594         * sunrpc/rpc/clnt.h: Likewise.
4595         * sunrpc/rpc/svc.h: Likewise.
4596         * sunrpc/bindrsvprt6.c: Removed.
4597         * sunrpc/clnt_tcp6.c: Removed.
4598         * sunrpc/clnt_udp6.c: Removed.
4599         * sunrpc/svc_tcp6.c: Removed.
4600         * sunrpc/svc_udp6.c: Removed.
4601
4602         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
4603         dgettext, and dcgettetxt.
4604
4605         * intl/locale.alias: Update japanese aliases.
4606
4607         * sysdeps/ia64/bits/byteswap.h: New file.
4608         Patch by Dan Pop <Dan.Pop@cern.ch>.
4609
4610         * misc/sys/cdefs.h: Define __attribute_format_arg__.
4611         * intl/libintl.h: Use it here instead of using __attribute__ directly.
4612
4613 2000-07-13  H.J. Lu  <hjl@gnu.org>
4614
4615         * posix/regex.c (re_max_failures): Set to 4000.
4616
4617 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
4618
4619         * gnulib/Makefile (tests): Add tst-gcc.
4620         * gnulib/tst-gcc.c: New file.
4621
4622         * assert/Makefile (routines): Add __assert.
4623         * assert/Versions: Export __assert for glibc 2.2.
4624         * assert/__assert.c: New file.
4625         * assert/assert.h: Declare __assert.
4626
4627 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4628
4629         * locale/localeinfo.h (_ISCTYPE): New macro.
4630         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
4631         LC_CTYPE locale format.
4632         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
4633         (ctype_output): Output class_b[nr] right before class_3level[nr].
4634         (allocate_arrays): Fill class_b, similarly to class_3level.
4635
4636 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
4637             Joseph S. Myers  <jsm28@cam.ac.uk>
4638
4639         * math/tgmath.h: Make standard compliant.  Don't ask how.
4640
4641 2000-07-04  H.J. Lu  <hjl@gnu.org>
4642
4643         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
4644         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
4645         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
4646
4647 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4648
4649         * include/features.h (_XOPEN_SOURCE): Update the explanation.
4650         (__USE_LARGEFILE): Add an explanation.
4651         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
4652         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
4653
4654 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
4655
4656         * libio/Makefile: Enable exception handling for genops, wgenops,
4657         fileops, and wfileops.
4658
4659 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4660
4661         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
4662         acount that elf/rtld's main program might remove some varibales
4663         from the environment if we're trying to be secure.  Move the Hurd
4664         startup data if necessary, or, if we there is no startup data,
4665         make sure the magical convention that ARGV[0] is stored just after
4666         the environment list.
4667
4668 2000-08-01  Philip Blundell  <philb@gnu.org>
4669
4670         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
4671         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
4672         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
4673         oldsetrlimit for GLIBC_2.0.
4674
4675 2000-08-01  Andreas Jaeger  <aj@suse.de>
4676
4677         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
4678         (LINE_PARSER): Allow any number of spaces between ip address and
4679         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
4680
4681         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
4682
4683         * include/netdb.h: Remove getipnodebyaddr and friends, leave
4684         constants in.
4685
4686         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
4687         _nss_nisplus_getipnodebyname_r.
4688
4689         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
4690         now, getipnodebyname is deprecated.
4691         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
4692         Likewise.
4693
4694         * inet/Makefile (routines): Don't build getipnodebyaddr and
4695         friends.
4696
4697         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
4698
4699         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
4700
4701         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
4702
4703         * wctype/Makefile (distribute): Add wchar-lookup.h.
4704
4705         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
4706
4707         * iconvdata/Makefile (distribute): Add isiri-3342.h.
4708
4709 2000-08-01  Andreas Schwab  <schwab@suse.de>
4710
4711         * Make-dist (dist): Resolve `..' in file names.
4712
4713 2000-08-01  Andreas Jaeger  <aj@suse.de>
4714
4715         * stdio-common/Makefile (distribute): Remove removed files, add
4716         new files.
4717
4718         * Makefile (distribute): Remove include/db_185.h and db.h.
4719
4720         * include/db_185.h: Remove, it's not needed anymore.
4721         * include/db.h: Likewise.
4722
4723 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4724
4725         * inet/Makefile (tests): Remove tst-ipnode.
4726         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
4727         now.
4728
4729 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
4730
4731         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
4732         endp statements have already been added.
4733
4734 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
4735
4736         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
4737         <sysdeps/ia64/sysdep.h>.
4738
4739         * sysdeps/ia64/_mcount.S: New file.
4740
4741         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
4742         __gmon_start__.  Fix up extraneous whitespace.
4743
4744 2000-01-12  H.J. Lu  <hjl@gnu.org>
4745
4746         * sysdeps/ia64/elf/initfini.c: New file.
4747
4748 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
4749
4750         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
4751         dependency between branch and ar.pfs write.
4752
4753 2000-07-31  H.J. Lu  <hjl@gnu.org>
4754
4755         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
4756         handle the wchar_t array.
4757
4758 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4759
4760         * iconvdata/gb18030.c: Don't map to and from positions in ISO
4761         10646 which are not yet assigned.
4762         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
4763
4764 2000-07-31  Andreas Jaeger  <aj@suse.de>
4765
4766         * inet/Versions: Remove getipnodebyaddr and friends from
4767         GLIBC_2.2.
4768
4769         * resolv/netdb.h: Remove getipnodebyaddr and friends.
4770
4771 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4772
4773         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
4774         ch >= 0x81 && ch2 < 0x40 as invalid.
4775
4776 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4777
4778         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
4779         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
4780
4781 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4782
4783         * iconvdata/johab.c (BODY for TO_LOOP): After calling
4784         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
4785
4786 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4787
4788         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
4789         0xb8.
4790         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
4791
4792 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4793
4794         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
4795
4796 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4797
4798         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
4799         (from_ucs4): Change values of U+00A4 and U+00ED.
4800         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
4801
4802 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4803
4804         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
4805         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
4806
4807 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4808
4809         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
4810         * iconvdata/isiri-3342.h: New file.
4811         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
4812         treat 0x80 as a gap.
4813
4814 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4815
4816         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
4817         (utf8_encode): Use simple shifts instead.  Fix return value.
4818
4819 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4820
4821         * timezone/private.h: Update from tzcode2000e.
4822         * timezone/asia: Update from tzdata2000e.
4823         * timezone/australasia: Likewise.
4824         * timezone/europe: Likewise.
4825         * timezone/northamerica: Likewise.
4826         * timezone/zone-tab: Likewise.
4827
4828 2000-07-30  Ralf Baechle  <ralf@gnu.org>
4829
4830         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
4831         the order of struct sigaltstack members is different.
4832
4833 2000-07-26  Philip Blundell  <philb@gnu.org>
4834
4835         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
4836
4837 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
4838
4839         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
4840         * locale/programs/ld-ctype.c: Adjust for this.
4841
4842         * locale/programs/ld-collate.c: Add more alignment checks.
4843         * locale/string/strcoll.c: Likewise.
4844
4845 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
4846
4847         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
4848         outside USE_IN_LIBIO block.
4849
4850 2000-07-26  Philip Blundell  <philb@gnu.org>
4851
4852         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
4853         (elf_machine_rel): Use it for out-of-range PC24 relocs.
4854
4855 2000-07-28  Philip Blundell  <philb@gnu.org>
4856
4857         * math/test-fpucw.c: Ignore reserved bits in control word.
4858
4859 2000-07-28  Philip Blundell  <philb@gnu.org>
4860
4861         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
4862         (ret): Redefine to PSEUDO_RET.
4863         (PSEUDO): Remove jump to syscall_error.
4864
4865 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4866
4867         * resolv/README: Add some information about using the resolver in
4868         multi-threaded code and with C++.  Spelling fixes.
4869
4870 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4871
4872         * resolv/resolv.h (struct __sockaddr_in): Remove.
4873         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
4874
4875 2000-07-29  Greg McGary  <greg@mcgary.org>
4876
4877         * Rules (test-bp-inputs, make-test-out): New variables.
4878         ($(objpfx)%-bp.out): New rule.
4879         ($(objpfx)%.out): Rewrite in terms of new variables.
4880
4881         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
4882         internal function that uses vtable.
4883         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4884         * libio/vswprintf.c (_IO_vswprintf): Likewise.
4885
4886         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
4887         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
4888         (chunk_align): Likewise.
4889
4890         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
4891         in a way that conforms to decl, and avoids spurious bounds violation.
4892
4893         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
4894         * sysdeps/generic/frame.h: Likewise.
4895         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
4896         around return value.
4897         (__backtrace): Qualify frame-pointer chain and return address
4898         pointers as __unbounded.  Wrap bounds around variable `current'.
4899         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
4900         around return value.
4901         (catch_segfault): Qualify frame-pointer chain and return address
4902         pointers as __unbounded.  Wrap bounds around variable `current'.
4903         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
4904         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
4905         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
4906         __unbounded.
4907         (__backtrace): Qualify frame-pointer chain and return address
4908         pointers as __unbounded.  Wrap bounds around variable `current'.
4909
4910         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
4911         * sysdeps/i386/mul_1.S: Likewise.
4912         * sysdeps/i386/submul_1.S: Likewise.
4913         * sysdeps/i386/i586/addmul_1.S: Likewise.
4914         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
4915         * sysdeps/i386/i586/submul_1.S: Likewise.
4916
4917 2000-07-27  Andreas Jaeger  <aj@suse.de>
4918
4919         * libio/Depend: New file, libio needs localedata for tests.
4920         * posix/Depend: Likewise.
4921
4922 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
4923
4924         * stdio-common/_i18n_itoa.c: Removed.
4925         * stdio-common/_i18n_itoa.h: Removed.
4926         * stdio-common/_i18n_itowa.c: Removed.
4927         * stdio-common/_i18n_itowa.h: Removed.
4928         * stdio-common/_i18n_number.h: New file.
4929         * stdio-common/Depend: New file.
4930         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
4931         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
4932         printing.  Change printing of numbers with locale specific digits to
4933         use new code in _i18n_number.h.
4934         * stdio-common/Makefile (routines): Remove _i18n_itoa and
4935         _i18n_itowa.
4936
4937         * stdio-common/bug13.c: Improve messages.
4938
4939         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
4940         (set_class_defaults): Always search also for Uxxxx names.
4941         Detect insufficient number of outdigits.
4942
4943         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
4944
4945 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4946
4947         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
4948         _NL_CTYPE_MAP_NAMES.
4949         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
4950         * wctype/wcfuncs.c (towlower, towupper): Use them.
4951         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
4952         * wctype/wctrans.c (wctrans): Likewise.
4953         * wctype/wctrans_l.c (__wctrans_l): Likewise.
4954
4955 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4956
4957         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
4958         Use the optimized version of this function outside glibc as well.
4959
4960 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
4961
4962         * locale/indigits.h (indigit_value): Correct.
4963         * locale/indigitswc.h (indigitwc_value): Correct.
4964         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
4965         conversion, add GROUP checking for it, fix GROUP number
4966         conversion with strlen(thousands) > 1.
4967         Honour width correctly in the presence of floating
4968         decimal points and thousands separators.
4969         * stdio-common/tst-sscanf.c: New test.
4970         * stdio-common/Makefile: Add it to tests.
4971         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
4972         thousands separators and group argument is non-zero.
4973
4974 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4975
4976         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
4977         starts at GLIBC_2.2.
4978
4979 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4980
4981         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
4982         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
4983         _test_and_set.
4984         (headers): Add sys/tas.h.
4985         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
4986         GLIBC_2.2 from libc.
4987         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
4988         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
4989         _test_and_set.
4990
4991 2000-07-28  Andreas Jaeger  <aj@suse.de>
4992
4993         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
4994
4995         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
4996         ($(objpfx)tst-dladdr.out): new.
4997         (tests): Add tst-dladdr.
4998         ($(objpfx)glrefmain): Use libdl.
4999
5000         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
5001         <vs@caldera.de>.
5002
5003 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
5004
5005         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
5006         ftruncate(64) calls.
5007
5008 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
5009
5010         * intl/tst-translit.c: Include string.h to get prototype for
5011         strcmp().
5012
5013 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
5014
5015         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
5016         name and add weak alias for __fork.
5017
5018         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
5019         & pwrite to use __libc_<name> as strong names instead of
5020         __syscall_<name>.
5021
5022         * include/sched.h: Add clone2 prototype.
5023
5024 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
5025
5026         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
5027         procedure name twice.
5028
5029 2000-07-27  Philip Blundell  <philb@gnu.org>
5030
5031         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
5032
5033 2000-07-27  Andreas Jaeger  <aj@suse.de>
5034
5035         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
5036         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
5037         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
5038         Reported by Andi Kleen <ak@suse.de>.
5039
5040         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
5041         (do_wait): Test requests with aio_return64.
5042         (do_test): Change callers of do_wait.
5043
5044 2000-07-26  Andreas Jaeger  <aj@suse.de>
5045
5046         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
5047         (do_wait): Test requests with aio_return.
5048         (do_test): Change callers of do_wait.
5049
5050 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
5051
5052         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
5053         from request list.  Don't do the list handling here, call
5054         __aio_remove_request.
5055         * rt/aio_misc.h: Add prototype for __aio_remove_request.
5056         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
5057         request might already be processed.  Don't do the list handling
5058         here, call __aio_remove_request.
5059
5060         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
5061         LIO_DSYNC.
5062
5063         * rt/aio_misc.c: Add comment explaining why writer memory barriers
5064         are missing.
5065
5066 2000-07-27  Greg McGary  <greg@mcgary.org>
5067
5068         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
5069         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
5070         in union init.  Pass zero for ignored semnum arg to semctl.
5071         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
5072
5073 2000-07-26  Greg McGary  <greg@mcgary.org>
5074
5075         * sysdeps/gnu/bits/msq.h: Qualify kernel's
5076         data structure pointers as __unbounded.
5077         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5078         * sysdeps/generic/bp-semctl.h: New file.
5079         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
5080         pointers as __unbounded.  Check bounds of syscall args.
5081         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
5082         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
5083         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5084         * sysdeps/unix/sysv/linux/semop.c: Likewise.
5085         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
5086         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5087         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
5088         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
5089         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
5090         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
5091         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
5092         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
5093         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
5094         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
5095         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
5096         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
5097
5098 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
5099
5100         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
5101         by default.
5102         * locale/C-ctype.c: Likewise.
5103         * wcsmbs/wcsmbsload.c: Likewise.
5104
5105 2000-07-26  Greg McGary  <greg@mcgary.org>
5106
5107         * Makeconfig (+link-bounded, link-libc-bounded,
5108         link-extra-libs-bounded): New variables.
5109         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
5110         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
5111         * Rules (tests-bp.out): New variable.
5112         (tests): Conditionally add BP tests.
5113         (binaries-bounded): Add variable and associated rule.
5114         * csu/Makefile [build-bounded] (extra-objs, install-lib):
5115         Move conditional stuff after place where condition is defined.
5116
5117         * malloc/malloc.c (bp-checks.h): Add #include.
5118         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
5119         (_bin_at): Add unbounded version of bin_at.
5120         (IAV, chunk_alloc): Use unbounded _bin_at.
5121         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
5122         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
5123         Wrap BOUNDED_N around return value.
5124         (chunk_realloc): Adjust oldsize once.
5125
5126         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
5127         (__ubp_memchr): Add correct decl.
5128         (_CHECK_STRING): Use __ubp_memchr.
5129         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
5130         New alias for unbounded-pointer __memchr.
5131         * sysdeps/i386/memchr.S: Likewise.
5132         * sysdeps/ia64/memchr.S: Likewise.
5133         * sysdeps/m68k/memchr.S: Likewise.
5134         * sysdeps/sparc/sparc32/memchr.S: Likewise.
5135         * sysdeps/sparc/sparc64/memchr.S: Likewise.
5136         * sysdeps/vax/memchr.s: Likewise.
5137
5138         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
5139         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
5140         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
5141         * sysdeps/i386/i686/strtok.S: Likewise.
5142         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
5143         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
5144
5145         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
5146         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
5147
5148         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
5149         bounds of copy_result to mount_proc.
5150
5151 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
5152
5153         * wctype/wctype.h (__wctrans_l): New declaration.
5154         * wctype/wctrans_l.c: New file.
5155         * wctype/Makefile (routines): Add wctrans_l.
5156
5157 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
5158
5159         * posix/fnmatch_loop.c: Fixes for use outside glibc.
5160         Patch by MacGyver <macgyver@tos.net>.
5161
5162 2000-07-26  Andreas Jaeger  <aj@suse.de>
5163
5164         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
5165         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
5166         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
5167
5168         * rt/tst-aio.c (test_file): Fix typo.
5169         * rt/tst-aio64.c (test_file): Likewise.
5170
5171         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
5172         * rt/Makefile: Add rules to build and run tst-aio3.
5173
5174         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
5175         it's not needed and confuses only.
5176
5177 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
5178
5179         * resolv/res_init.c: Add support for nameserver communication with
5180         IPv6.
5181         * resolv/res_send.c: Likewise.
5182         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
5183         in nsaddrs field.
5184         Patch by <venaas@nvg.ntnu.no>.
5185
5186 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
5187
5188         * locale/programs/ld-ctype.c (wctype_table_get): New function.
5189         (wcwidth_table_get): New function.
5190         (wcwidth_table_add): Call it.
5191         (wctrans_table_get): New function.
5192         (wctrans_table_add): Call it.
5193
5194 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
5195
5196         * rt/lio_listio.c (lio_listio): Always disable individual
5197         notification.
5198         * rt/Makefile: Add rules to build and run tst-aio2.
5199         * rt/tst-aio2.c: New file.
5200
5201         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
5202         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
5203
5204 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
5205
5206         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
5207         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
5208         leading and trailing spaces from host, user and domain name.
5209
5210 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
5211
5212         * csu/defs.awk: Add support for need_endp.
5213
5214 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
5215
5216         * resolv/resolv.h: Remove __P from res_send_qhook and
5217         res_send_rhook typedefs.
5218
5219 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
5220
5221         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
5222
5223 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
5224
5225         * iconv/gconv_builtin.h: Add WCHAR_T alias.
5226
5227 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
5228
5229         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
5230         calling thread, set the cancellation flag and return success
5231         instead of EINTR.
5232
5233 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
5234
5235         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
5236         * libio/tst-widetext.c: New file.
5237         * libio/tst-widetext.input: New file.
5238
5239         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
5240
5241         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
5242         empty external buffer correctly.
5243
5244 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5245
5246         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
5247         __STRING(entry) and not #entry.
5248         (_RTLD_EPILOGUE): Likewise.
5249         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5250
5251 2000-07-25  Andreas Jaeger  <aj@suse.de>
5252
5253         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
5254         according to changes in test program, run also with static only
5255         builds.
5256         ($(objpfx)tst-printf.out): Likewise.
5257
5258         * stdio-common/tst-unbputc.sh: Likewise.
5259         * stdio-common/tst-printf.sh: Likewise.
5260
5261 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
5262
5263         * libio/wfileops.c (_IO_wdo_write): Correct return value.
5264
5265         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
5266         loop.
5267
5268         * libio/fileops.c: Pretty print.
5269
5270 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
5271
5272         * wctype/wchar-lookup.h: New file.
5273         * wctype/iswctype.c: Include "wchar-lookup.h".
5274         (__iswctype): Support alternate locale format with 3-level tables.
5275         * wctype/iswctype_l.c (__iswctype_l): Likewise.
5276         * wctype/towctrans.c (__towctrans): Likewise.
5277         * wctype/towctrans_l.c (__towctrans_l): Likewise.
5278         * wctype/wcfuncs.c: Include "wchar-lookup.h".
5279         (__ctype32_wctype, __ctype32_wctrans): Declare external.
5280         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
5281         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
5282         __iswxdigit, towlower, towupper): Support alternate locale format
5283         with 3-level tables.
5284         * wctype/wcextra.c (iswblank): Likewise.
5285         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
5286         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
5287         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
5288         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
5289         format with 3-level tables.
5290         * wctype/wcextra_l.c (__iswblank_l): Likewise.
5291         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
5292         format, return a 3-level table pointer.
5293         * wctype/wctype_l.c (__wctype_l): Likewise.
5294         * wctype/wctrans.c (wctrans): Likewise.
5295         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
5296         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
5297         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
5298         (iswctype): Remove macro definition.
5299         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
5300         (internal_wcwidth): Support alternate locale format with 3-level
5301         tables.
5302         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
5303         New nl_items.
5304         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
5305         Define them as being type "word".
5306         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
5307         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
5308         __ctype32_width): New exported variables.
5309         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
5310         alternate locale format. Don't initialize __ctype_names and
5311         __ctype_width in the alternate locale format.
5312         * locale/programs/localedef.h (oldstyle_tables): New declaration.
5313         * locale/programs/localedef.c (oldstyle_tables): New variable.
5314         (OPT_OLDSTYLE): New macro.
5315         (options): Add --old-style option.
5316         (parse_opt): Handle --old-style option.
5317         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
5318         map_offset, class_3level, map_3level, width_3level members.
5319         (ctype_output): Support for alternate locale format: Computation of
5320         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
5321         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
5322         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
5323         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
5324         now contain both class and map tables.
5325         (struct wctype_table): New type.
5326         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
5327         functions.
5328         (struct wcwidth_table): New type.
5329         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
5330         functions.
5331         (struct wctrans_table): New type.
5332         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
5333         functions.
5334         (allocate_arrays): Support for alternate locale format: Set
5335         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
5336         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
5337         to the first 256 characters. Compute ctype->map_3level. Set
5338         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
5339         instead of ctype->width.
5340
5341 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
5342
5343         * libio/iogetwline.c (_IO_getwline_info): Use wide character
5344         string functions.
5345
5346 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
5347
5348         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
5349         in wide characters, not bytes.
5350         * libio/tst_putwc.c (do_test): Add test for writing lots of data
5351         into file.
5352
5353 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
5354
5355         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
5356         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
5357         LC_MEASUREMENT, LC_IDENTIFICATION.
5358
5359         * locale/xlocale.h (struct __locale_struct): Increase size of
5360         __locales array.
5361         * locale/duplocale.c (__duplocale): Copy newly added categories as
5362         well.
5363         * locale/freelocale.c (__freelocale): Free newly added categories.
5364         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
5365         If a base is given, use it, don't simply return it.
5366
5367 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
5368
5369         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
5370         variables, copied_key and copied_salt, instead of boolean variables.
5371
5372 2000-07-24  Andreas Jaeger  <aj@suse.de>
5373
5374         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
5375         check for offset.
5376
5377         * grp/initgroups.c (initgroups_dyn_function): Renamed from
5378         initgroups_function, adopted prototype for change from 2000-07-23.
5379         (initgroups): Follow type change.
5380
5381         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
5382         & PAGE_MASK case, reformat.
5383
5384         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
5385         from stdin and setup environment.
5386
5387 2000-07-24  Andreas Schwab  <schwab@suse.de>
5388
5389         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
5390
5391 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
5392
5393         * string/endian.h: Explain the _*_ENDIAN constant values a bit
5394         more.  Patch by scarlet@mit.edu [PR libc/1799].
5395
5396         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
5397         [PR libc/1792].
5398
5399         * argp/argp-parse.c (parser_finalize): Reverse order in which
5400         parsers are run for ARGP_KEY_END.  [PR libc/1755].
5401
5402         * grp/initgroups.c (initgroups): Don't limit the possible number
5403         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
5404         the setgroups call while the call fails and descrease the number
5405         of groups each round.
5406         The name of the initgroups function in the NSS modules changed.
5407         (compat_call): Adapt for dynamic resizing.
5408         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
5409         Implement dynamic resizing.
5410         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
5411         Likewise.
5412         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
5413         * hesiod/Versions: Change exported interface name.
5414         * nis/Versions: Change exported interface name.
5415
5416 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
5417
5418         * locale/iso-639.def: Some errors corrected.
5419         Patch by Keld Simonsen.
5420
5421         * include/limits.h: Update non-gcc portion.
5422         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
5423
5424 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
5425
5426         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
5427         program's data space, reallocate only the space that was just
5428         deallocated to release its backing space.
5429
5430 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
5431
5432         * stdio-common/vfprintf.c (process_string_arg): For wide character
5433         version, handle precision also correctly.
5434
5435         * nss/nss_files/files-hosts.c: Correct problem with three or more
5436         entries with the same name.
5437
5438         * nss/nss_files/files-hosts.c: Implement multi handling.
5439         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
5440
5441 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
5442
5443         * nss/nss_files/files-parse.c: Don't pollute namespace by using
5444         strcasecmp.
5445
5446         * grp/Makefile: Change Makefiles and tests to run only when necessary.
5447         * malloc/Makefile: Likewise.
5448         * malloc/tst-mtrace.sh: Likewise.
5449         * posix/Makefile: Likewise.
5450         * posix/globtest.sh: Likewise.
5451         * posix/wordexp-tst.sh: Likewise.
5452         * string/Makefile: Likewise.
5453
5454 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
5455
5456         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
5457         size instead of LC_ALL to take into account the new locale
5458         categories.
5459
5460 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
5461
5462         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
5463         remainders of hash table.
5464         * locale/categories.def: Remove remainders of transliteration
5465         hash table.
5466         * locale/langinfo.h: Likewise.
5467         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
5468         transliteration tables.
5469
5470         * locale/gen-translit.pl: New file.
5471         * locale/C-translit.h.in: New file.
5472         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
5473         data pointers with data from this file.
5474         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
5475         and gen-translit.pl.
5476         Add rule to generate C-translit.h.
5477         * intl/tst-translit.c (main): Update for now performed
5478         transliteration.
5479
5480         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
5481         (it's no input error).
5482         * stdio-common/tstscanf.c: Add test case for format %f with input --.
5483         * stdio-common/scanf12.c: Correct expected result for first scanf.
5484
5485         * stdio-common/vfprintf.c (process_string_arg): Correct handling
5486         of multibyte character strings in %s format with precision.
5487
5488 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
5489
5490         * locale/programs/ld-collate.c (collate_read): Allow collating
5491         symbols and elements be named in reorder-after instructions.
5492         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
5493
5494         * locale/programs/ld-collate.c (handle_ellipsis): Test for
5495         duplication with generated name, not the name of the first
5496         character.
5497         Patch by Yong Li <yong.li@asu.edu>.
5498
5499         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
5500         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
5501
5502 2000-07-21  Wolfram Gloger  <wg@malloc.de>
5503
5504         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
5505         allocations only if a non-main arena cannot be extended.
5506
5507 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
5508
5509         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
5510         in DF_1_NODEFLIB handling.
5511
5512 2000-07-21  Andreas Jaeger  <aj@suse.de>
5513
5514         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
5515         own rule.
5516
5517         * libio/fwide.c: Include <wchar.h> for prototype.
5518
5519 2000-07-21  Greg McGary  <greg@mcgary.org>
5520
5521         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
5522         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
5523         Define in terms of chunk_at_offset.
5524         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
5525         (next_bin, prev_bin): offset by size of real array elements.
5526         (chunk_align): Make `m' a scalar, since that's how it's used.
5527
5528 2000-07-21  Greg McGary  <greg@mcgary.org>
5529
5530         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
5531         UNCHECK_BOUNDS.
5532         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
5533         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
5534         Wrap bounds around argv & envp and each of their string members.
5535         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
5536         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
5537         symbol in BP_SYM ().  Discard bounds of address arg.
5538         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
5539         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
5540         Discard bounds on address arg, add bounds to return value.
5541
5542 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
5543
5544         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
5545         * elf/filter.c: New file.
5546         * elf/filtmod1.c: New file.
5547         * elf/filtmod2.c: New file.
5548
5549         * elf/rtld.c: Define _dl_bind_not variable.
5550         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
5551         * elf/dl-support.c: Likewise.
5552         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
5553         * elf/dl-runtime.c (fixup): Don't remember looked up value if
5554         _dl_bind_not.
5555         (profile_fixup): Likewise.
5556
5557         * libio/Makefile (routines): Add fwide.
5558         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
5559         fwide now.  Internal calls to _IO_fwide must do locking themselves
5560         or don't need locking.
5561         * libio/fwide.c: New file.
5562
5563         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
5564
5565         * elf/Makefile: Add no modules for nodelete test.
5566         * elf/nodelmod3.c: New file.
5567         * elf/nodelmod4.c: New file.
5568         * elf/nodelete.c: Also test case where dependency of dlopen() object
5569         is marked nodelete.
5570
5571         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
5572         * elf/nodlopen.c: New file.
5573         * elf/nodlopenmod.c: New file.
5574         * include/dlfcn.h: Define __RTLD_DLOPEN.
5575         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
5576         and this is a dlopen() call, do not load the binary.
5577         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
5578         * dlfcn/dlopenold.c: Likewise.
5579         * configure.in: Add test for -z nodelete option.
5580         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
5581
5582 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
5583
5584         Make Hesiod NSS module thread-safe.
5585
5586         * hesiod/README.hesiod: Update.
5587
5588         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
5589         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
5590         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
5591         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
5592         hesiod-proto.
5593         * hesiod/nss_hesiod/hesiod-init.c: New file.
5594         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
5595         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
5596         * hesiod/nss_hesiod/nss_hesiod.h: New file.
5597         * hesiod/nss_hesiod/hesiod-service.c
5598         (_nss_hesiod_getservbyport_r): New function.  Provide support for
5599         looking up services by port number.
5600         * hesiod/nss_hesiod/hesiod-proto.c: New file.
5601
5602         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
5603         * hesiod/hesiod.h: Likewise.
5604         * hesiod/hesiod_p.h: Likewise.
5605
5606 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
5607
5608         Fix problems with `struct __res_state' getting too big.
5609         * resolv/resolv.h (struct __sockaddr_in): New definition.
5610         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
5611         the private parts of the structure to save some space.
5612         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
5613         (struct sockaddr_in *) in call to sock_eq.
5614         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
5615
5616 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
5617
5618         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
5619         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
5620         with nodelete.
5621         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
5622         to _dl_map_object.  Return immediately if no object loaded.
5623         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
5624         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
5625         if it exists into l_flags_1 word.
5626         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
5627         it to determine whether loading is wanted or not.
5628         (_dl_map_object): Likewise.
5629         Call _dl_map_object_from_fd with new parameter.
5630         * sysdeps/generic/ldsodefs.h: Update prototype.
5631         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
5632         * elf/rtld.c: Likewise.
5633         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5634         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
5635         * elf/noload.c: New file.
5636         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
5637         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
5638         * sysdeps/mips/bits/dlfcn.h: Likewise.
5639         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
5640         (tests-nodelete-yes): Define.
5641         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
5642         Add rules to build nodelete and modules.
5643         * elf/nodelete.c: New file.
5644         * elf/nodelmod1.c: New file.
5645         * elf/nodelmod2.c: New file.
5646         * configure.in: Add test for -z nodelete option.
5647         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
5648
5649         * libio/Makefile (tests): Add tst_wprintf2.
5650         (tst_wprintf2-ARGS): Define.
5651         * libio/tst_wprintf2.c: New file.
5652         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
5653
5654         * libio/wfiledoalloc.c: Only allocate external buffer if this
5655         hasn't happened yet.
5656
5657         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
5658         something in the buffer.  gconv call can write up to end of the
5659         buffer, not only _IO_write_end.
5660         (_IO_wfile_overflow): Allocate also external buffer.
5661
5662 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
5663
5664         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
5665         strings with precision in vfwprintf correctly.
5666         * stdio-common/vfprintf.c: Fix completely broken handling of
5667         unbuffered wide character streams.
5668         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
5669
5670         * resolv/Makefile (distribute): Add README.
5671
5672         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
5673
5674 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
5675
5676         Update resolver code to BIND 8.2.3-T5B.
5677
5678         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
5679         __res_nclose.
5680         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
5681         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
5682         __res_search.
5683         * resolv/Banner: BIND-8.2.3-T5B.
5684
5685         * resolv/base64.c: Update from BIND 8.2.3-T5B.
5686         * resolv/herror.c: Likewise.
5687         * resolv/inet_addr.c: Likewise.
5688         * resolv/inet_net_ntop.c: Likewise.
5689         * resolv/inet_net_pton.c: Likewise.
5690         * resolv/inet_neta.c: Likewise.
5691         * resolv/inet_ntop.c: Likewise.
5692         * resolv/nsap_addr.c: Likewise.
5693         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
5694         IPv6 addresses (ISC bug #520).
5695
5696         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
5697         * resolv/ns_parse.c: Likewise.
5698         * resolv/ns_netint.c: Likewise.
5699         * resolv/ns_samedomain.c: Likewise.
5700         * resolv/ns_ttl.c: Likewise.
5701         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
5702         RCS ID in object file.
5703
5704         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
5705         * resolv/res_mkquery.c: Likewise.
5706         * resolv/res_query.c: Likewise.
5707         * resolv/res_init.c: Likewise.
5708         (res_setoptions): Mark internal.
5709         * resolv/res_send.c: Likewise.
5710         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
5711         by using poll instead.
5712         * resolv/res_comp.c: Likewise.
5713         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
5714         weak alias for __dn_expand.
5715         * resolv/res_data.c: Likewise.
5716         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
5717         in _res.options.  Avoids a potential security risk by avoiding a
5718         close (0).
5719         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
5720         res_mkquery, res_query, res_querydomain adn res_search weak
5721         aliases for __res_mkquery, __res_query, __res_querydomain and
5722         __res_search.
5723         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
5724         instead to avoid close(0).
5725         (res_init): Always use the static resolver context.
5726         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
5727         alias for __res_init.
5728
5729         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
5730         RES_SET_H_ERRNO and accompanying comment to...
5731         * include/resolv.h: ... here.
5732
5733         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
5734         * resolv/arpa/nameser_compat.h: Likewise.
5735
5736 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5737
5738         * nss/makedb.c (main): Compare result of load_db with
5739         NSS_STATUS_SUCCESS and not 0.
5740         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
5741
5742         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
5743
5744 2000-07-18  Greg McGary  <greg@mcgary.org>
5745
5746         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
5747         (EXTEND_BUFFER): Use it.
5748
5749 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5750
5751         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
5752         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
5753         __builtin_return_address.
5754         * dlfcn/dlopenold.c: Likewise.
5755         * dlfcn/dlsym.c: Likewise.
5756         * dlfcn/dlvsym.c: Likewise.
5757         * elf/dl-profstub.c: Likewise.
5758         * malloc/malloc.c: Likewise.
5759         * sysdeps/generic/machine-gmon.h: Likewise.
5760         Based on a patch by schwidefsky@de.ibm.com.
5761
5762 2000-07-18  Andreas Jaeger  <aj@suse.de>
5763
5764         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
5765         NULL to elf_machine_fixup_plt t argument to silence GCC.
5766
5767         * include/string.h: Add prototype for __memchr.
5768
5769         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
5770
5771         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
5772         instead of memrchr.
5773
5774 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5775
5776         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
5777
5778         * locale/C-ctype.c: Add initializers for gap elements.
5779         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
5780         for gap elements.
5781
5782 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
5783
5784         * nscd/nscd.c (print_version): Update copyright year.
5785
5786 2000-07-17  Greg McGary  <greg@mcgary.org>
5787
5788         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5789         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
5790         signature argnames with angle-brackets for use as word delimiters,
5791         and to induce syntax errors for any args not handled.  Split
5792         multi-echo echoes and comment each stage.
5793         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
5794         * sysdeps/unix/inet/syscalls.list: Likewise.
5795         * sysdeps/unix/mman/syscalls.list: Likewise.
5796         * sysdeps/unix/syscalls.list: Likewise.
5797         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5798         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5799         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5800         * sysdeps/unix/sysv/syscalls.list: Likewise.
5801         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
5802
5803         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
5804         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
5805         qualifiers.  Don't check NULL-terminator of argv & envp.
5806         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
5807         unbounded pointer type in word-size assertion.
5808         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
5809         cases to stifle warnings.
5810
5811         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
5812         _IO_file_attach.
5813         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5814
5815         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
5816         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
5817         ptr as __unbouned.
5818
5819         * Makerules (o-objects): Supplement with $(o-objects$o).
5820         * string/Makefile (o-objects.ob): Add variable to pull
5821         unbounded versions of memcpy, memset and memchr into libc_b.
5822
5823         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
5824         rather than non-existent __ubp_memchr.
5825         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
5826         (_CHECK_STRING, _CHECK_N): New macros.
5827         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
5828         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
5829         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
5830         Add weak alias "memchr".
5831         * sysdeps/generic/memchr.c: Likewise.
5832         * sysdeps/i386/memchr.S: Likewise.
5833         * sysdeps/ia64/memchr.S: Likewise.
5834         * sysdeps/m68k/memchr.S: Likewise.
5835         * sysdeps/sparc/sparc32/memchr.S: Likewise.
5836         * sysdeps/sparc/sparc64/memchr.S: Likewise.
5837         * sysdeps/vax/memchr.s: Likewise.
5838
5839         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
5840
5841         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
5842         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
5843         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
5844         __BOUNDED_POINTERS__.
5845         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
5846         for __BOUNDED_POINTERS__.
5847
5848 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
5849
5850         * iconv/gconv_open.c (__gconv_open): Initialize the __data
5851         field of struct __gconv_trans_data differently.  Don't pass NULL to
5852         trans_init_fct.  Simplify list append operation.
5853
5854 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
5855
5856         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
5857         not only those having tsearch.
5858
5859 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
5860
5861         * locale/langinfo.h: Add placeholder values in enum for removed
5862         LC_CTYPE entries.
5863
5864 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
5865
5866         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
5867         chain if the PHDR check fails.
5868
5869 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
5870
5871         * nss/getent.c (print_hosts): Make sure we always print a space
5872         between numeric addresses and hostnames.
5873
5874 2000-07-17  Wolfram Gloger  <wg@malloc.de>
5875
5876         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
5877         i.e. if n_mmaps_max>0.
5878
5879 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
5880
5881         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
5882         values to remove possible clash with other AI_* constants.
5883         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
5884         hexadecimal constants to stress the fact they're in fact
5885         bit flags.
5886
5887 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
5888
5889         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
5890         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
5891         instead of res_init.
5892
5893 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
5894
5895         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
5896         parameters of memset calls to avoid warnings.
5897
5898 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5899
5900         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
5901         necessary.
5902
5903         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
5904         Patch by Greg McGary <greg@mcgary.org>.
5905
5906         * io/Makefile (tests): Add tst-getcwd.
5907         * io/tst-getcwd.c: New file.
5908
5909         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
5910
5911 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
5912
5913         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
5914         structure.
5915
5916 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
5917
5918         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
5919         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
5920
5921 2000-07-12  H.J. Lu  <hjl@gnu.org>
5922
5923         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
5924         GLIBC_2.2.
5925         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
5926         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
5927         (sysdep-routines): Add clone2.
5928         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
5929
5930 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
5931
5932         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
5933         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
5934
5935 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
5936
5937         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
5938         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
5939         Change type of si_band from "int" to "long".
5940         (si_imm) [USE_GNU]: Define
5941         (si_isr) [USE_GNU]: Likewise.
5942         (ILL_BREAK) [USE_GNU]: Likewise.
5943         (FPE_DECOVF) [USE_GNU]: Likewise.
5944         (FPE_DECDIV) [USE_GNU]: Likewise.
5945         (FPE_DECERR) [USE_GNU]: Likewise.
5946         (FPE_INVASC) [USE_GNU]: Likewise.
5947         (FPE_INVDEC) [USE_GNU]: Likewise.
5948         (TRAP_BRANCH) [USE_GNU]: Likewise.
5949         (TRAP_HWBKPT) [USE_GNU]: Likewise.
5950
5951 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
5952
5953         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
5954         bits/sigcontext as struct mcontext does not depend on it.
5955
5956         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
5957
5958 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
5959
5960         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
5961
5962 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
5963
5964         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
5965
5966 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5967
5968         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
5969
5970 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5971
5972         * intl/Makefile (test-srcs): Add tst-translit.
5973         (tests): Likewise.
5974         Add rules to build and run tst-translit.
5975         * intl/tst-translit.c: New file.
5976         * intl/tst-translit.sh: New file.
5977         * intl/translit.po: New file.
5978
5979 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5980
5981         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
5982         transliteration function did its job, continue, don't stop.
5983
5984         * iconvdata/iso646.c: Little optimizations in body for conversion
5985         from UCS4.
5986
5987 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5988
5989         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
5990
5991 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5992
5993         * configure.in: Check for pwd binary.
5994         * config.make.in: Add PWD_P to be subsituted.
5995         * Makerules: Use $(PWD_P) instead of /bin/pwd.
5996
5997 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5998
5999         * iconvdata/Makefile (modules): Add GB18030.
6000         (distribute): Add gb18030.c.
6001         * iconvdata/gconv-modules: Add entries for GB18030 module.
6002         * iconvdata/gb18030.c: New file.
6003         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
6004         and Wu Jian.
6005
6006 2000-07-13  Andreas Jaeger  <aj@suse.de>
6007
6008         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
6009         patch.
6010
6011         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
6012         * inet/getnetgrent.c (free_mem): Likewise.
6013         * misc/mntent.c (free_mem): Likewise.
6014         * nss/getXXbyYY.c (free_mem): Likewise.
6015         * nss/getXXent.c (free_mem): Likewise.
6016         * pwd/fgetpwent.c (free_mem): Likewise.
6017         * shadow/fgetspent.c (free_mem): Likewise.
6018
6019 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
6020
6021         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
6022         64-bit architecture correctly [PR libc/1794].
6023
6024 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
6025
6026         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
6027         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
6028         report that we are out of memory.
6029         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
6030         * elf/dl-libc.c (dlerror_run): Likewise.
6031         * elf/dl-open.c (_dl_open): Likewise.
6032         * elf/rtld.c (dl_main): Likewise.
6033         * elf/dl-error.c: Define _dl_out_of_memory.
6034         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
6035         the error string.
6036         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
6037         [PR libc/1813].
6038
6039         * dlfcn/dlerror.c (free_key_mem): Also free error string.
6040
6041         * iconv/loop.c: Fix comment.
6042
6043         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
6044
6045 2000-07-13  Andreas Jaeger  <aj@suse.de>
6046
6047         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
6048         getcwd (NULL, size) with size > 0.
6049         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
6050
6051 2000-07-13  Andreas Jaeger  <aj@suse.de>
6052
6053         * posix/Makefile: Remove build rules for libposix.
6054
6055 2000-07-13  Andreas Schwab  <schwab@suse.de>
6056
6057         * sysdeps/generic/glob.c (glob): Fix memory leak.
6058         [SHELL]: Remove reference to undefined variable `files'.
6059         Fixes PR libc/1782.
6060
6061 2000-07-13  Andreas Jaeger  <aj@suse.de>
6062
6063         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
6064         functions.
6065
6066         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
6067         memory if it was allocated.
6068
6069 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
6070
6071         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
6072         step.
6073
6074         * iconv/gconv_open.c (__gconv_open): Reapply
6075         2000-07-12 Bruno Haible <haible@clisp.cons.org>
6076
6077                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
6078
6079         * iconv/gconv_open.c: Undo last two changes for now.  They break
6080         everything.
6081
6082 2000-07-12  Andreas Jaeger  <aj@suse.de>
6083
6084         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
6085         compiler.
6086         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
6087         (CFLAGS-dl-cache.c): Likewise.
6088         (CFLAGS-ldconfig.c): Added, passes directory locations.
6089
6090         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
6091         locate cache.
6092         * elf/ldconfig.c (LD_SO_CONF): Likewise.
6093         (main): Use configured LIBDIR and SLIBDIR.
6094
6095 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
6096
6097         * math/bits/cmathcalls.h (cimag): Add __THROW.
6098         (creal, conj): Likewise.
6099         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
6100         by negative value.
6101
6102 2000-07-12  H.J. Lu  <hjl@gnu.org>
6103
6104         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
6105         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
6106
6107 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
6108
6109         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
6110         it is wrong.
6111
6112 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
6113
6114         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
6115
6116 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
6117
6118         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
6119         __modname.
6120
6121 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
6122
6123         * iconv/gconv_open.c (__gconv_open): Initialize
6124         result->__steps[cnt].__data.
6125
6126 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
6127
6128         * nss/getent.c (services_keys): Pass port number in network byte
6129         order in call to getservbyport.
6130
6131 2000-07-11  Andreas Jaeger  <aj@suse.de>
6132
6133         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
6134         source dir.
6135         * intl/Makefile (do-gettext-test): Likewise.
6136         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
6137
6138 2000-07-11  Andreas Schwab  <schwab@suse.de>
6139
6140         * Makeconfig (run-program-prefix): New rule.
6141         (built-program-cmd): Use run-program-prefix.
6142
6143 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
6144
6145         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
6146         and NOEXPR unconditionally available.
6147
6148 2000-07-12  Greg McGary  <greg@mcgary.org>
6149
6150         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
6151         * sysdeps/posix/open64.c: Likewise.
6152         * sysdeps/generic/fegetenv.c: Likewise.
6153         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
6154         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
6155         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
6156         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
6157         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
6158         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
6159
6160 2000-07-11  Greg McGary  <greg@mcgary.org>
6161
6162         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
6163         Add extra level of macro expansion.
6164         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
6165         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
6166         is available at the time `select' prototype is declared.
6167         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
6168         Collect non-versioned weak aliases.  Consider only non-versioned
6169         aliases for the user-visible systemcall name.  Do checks inline with
6170         call to primitive system call.
6171         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
6172         stand-alone bounds checks to suppress unused value warnings.
6173         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
6174
6175 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
6176
6177         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
6178         file descriptor checking in SUID programs for the Hurd.
6179
6180         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
6181         res_hostalias instead of __hostalias for thread-safety.
6182
6183 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
6184
6185         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
6186         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
6187
6188 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
6189
6190         * include/features.h: Include ISO C99 features if the compiler used
6191         is an ISO C99 compiler.
6192         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
6193
6194 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
6195
6196         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
6197
6198 2000-07-10  Andreas Jaeger  <aj@suse.de>
6199
6200         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
6201         it's overridden by libpthreads.
6202         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
6203         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
6204         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
6205         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6206         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6207
6208         * malloc/Makefile: Run tst-mtrace only with shared libs.
6209
6210         * stdio-common/Makefile: Run unbputc and tst-printf tests only
6211         with shared libs.
6212
6213 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6214
6215         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
6216         that gpreg really points to the GOT section of the calling object.
6217         Scan all PT_LOAD segments of objects for stub_pc, instead of only
6218         checking a start address of first one.
6219         Fix typos.
6220         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
6221         Likewise.
6222
6223         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
6224
6225 2000-07-10  Andreas Jaeger  <aj@suse.de>
6226
6227         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
6228         (string_alias->strong_alias).
6229
6230 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
6231
6232         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
6233
6234 2000-07-07  Greg McGary  <greg@mcgary.org>
6235
6236         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
6237         have no names without leading underscores.
6238
6239 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
6240
6241         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
6242         U007E.
6243
6244         * stdio-common/Makefile (tests): Remove tst-printf here...
6245         (tests-srcs): ...and add it here.
6246         (distribute): Add tst-unbputc.sh and tst-printf.sh.
6247         Add rules to run tst-printf.sh.
6248         * stdio-common/tst-printf.c: Move code around so that there is really
6249         no further output where it's stated.
6250         * stdio-common/tst-printf.sh: New file.
6251
6252 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
6253
6254         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
6255         (do_write): Renamed from pwrite.
6256         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
6257         `struct _IO_cookie_file'.
6258
6259 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
6260
6261         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
6262         detected.
6263         * malloc/tst-mtrace.sh: Run mtrace script.
6264
6265 2000-07-07  Greg McGary  <greg@mcgary.org>
6266
6267         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
6268         Move all three components of a bounded pointer.
6269
6270 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
6271
6272         * locale/programs/locale.c (write_locales): Don't simply add all
6273         directories found in the subdir, test whether at least the
6274         LC_CTYPE file is in there.
6275
6276 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
6277
6278         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
6279         * iconvdata/euc-kr.c: Likewise.
6280
6281         * stdio-common/vfprintf.c (process_string_arg): Check result of
6282         wcrtomb call and bail out if it failed.
6283
6284         * malloc/Makefile (test-srcs): Add tst-mtrace.
6285         (distribute): Add tst-mtrace.sh.
6286         Add rule to run tst-mtrace.sh.
6287         * malloc/tst-mtrace.c: New file.
6288         * malloc/tst-mtrace.sh: New file.
6289
6290         * include/signal.h: Declare __libc_sigaction.
6291         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
6292         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
6293         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
6294         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6295         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
6296         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6297         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6298
6299         * configure.in: Fix CFLAGS-memprofstat.c definition after
6300         2000-06-19 change.
6301         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
6302
6303 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
6304
6305         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
6306         instead of NULL to elf_machine_fixup_plt t argument.
6307         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6308         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
6309         cast.
6310
6311 2000-07-06  Andreas Jaeger  <aj@suse.de>
6312
6313         * crypt/Makefile (LDLIBS-cert): Removed.
6314         (LDLIBS-md5c-test): Removed.
6315         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
6316         ($(objpfx)md5c-test): Likewise for md5c-test.out.
6317
6318 2000-07-06  Andreas Jaeger  <aj@suse.de>
6319
6320         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
6321         of the proc system is "proc".
6322
6323         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
6324         thread library for static programs.
6325
6326 2000-07-06  Greg McGary  <greg@mcgary.org>
6327
6328         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
6329         New macros.
6330         * sysdeps/generic/strcpy.c: Add bounds checks.
6331         * sysdeps/unix/fxstat.c: Likewise.
6332         * sysdeps/unix/xstat.c: Likewise.
6333         * sysdeps/unix/common/lxstat.c: Likewise.
6334         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
6335         * sysdeps/unix/sysv/linux/execve.c: Likewise.
6336         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6337         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6338         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
6339         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
6340         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
6341         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6342         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6343         * sysdeps/unix/sysv/linux/poll.c: Likewise.
6344         * sysdeps/unix/sysv/linux/pread.c: Likewise.
6345         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6346         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
6347         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6348         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6349         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6350         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
6351         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
6352         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
6353         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
6354         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
6355         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6356         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6357         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
6358         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
6359         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
6360         * sysdeps/unix/sysv/linux/writev.c: Likewise.
6361         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
6362         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
6363         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
6364         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
6365         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
6366         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6367         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6368         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
6369         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
6370         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
6371         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
6372         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
6373         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6374         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
6375         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
6376         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6377         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
6378         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6379         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6380         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
6381         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
6382         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
6383         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
6384         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
6385         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6386         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6387         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6388         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6389         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6390         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6391         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
6392         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
6393         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
6394         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6395         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
6396         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
6397         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
6398
6399         * string/endian.h (__LONG_LONG_PAIR): New macro.
6400         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
6401         * sysdeps/unix/sysv/linux/pread.c: Likewise.
6402         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6403         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6404         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6405         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
6406         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
6407         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6408         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6409         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6410         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6411         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6412
6413         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
6414
6415 2000-07-06  Andreas Jaeger  <aj@suse.de>
6416
6417         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
6418         Initialize result.
6419
6420         * math/test-fpucw.c: Include <stdio.h> for printf.
6421
6422 2000-07-05  Greg McGary  <greg@mcgary.org>
6423
6424         * sysdeps/generic/bp-checks.h: New file.
6425         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
6426         with list of #include files.
6427         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
6428         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
6429         Don't generate BP thunk if `V' appears in signature.
6430         Generate thunks with complete bounds checks.
6431         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
6432         * sysdeps/unix/inet/syscalls.list: Likewise.
6433         * sysdeps/unix/mman/syscalls.list: Likewise.
6434         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6435         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6436         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6437         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
6438
6439 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
6440
6441         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
6442         result.  Search first in /etc/mtab (proc/mounts would be stupid).
6443         If mount not in the file fall back on /proc.
6444
6445         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
6446         string got copied in.
6447         Patch by Solar Designer <solar@false.com>.
6448
6449 2000-07-05  Andreas Jaeger  <aj@suse.de>
6450
6451         * manual/install.texi (Installation): Update information about
6452         add-ons.
6453         (Configuring and compiling): Update for glibc 2.2.
6454
6455 2000-07-04  Andreas Jaeger  <aj@suse.de>
6456
6457         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
6458         (_FPU_IEEE): Likewise.
6459
6460         * math/Makefile (tests): Add test-fpucw.
6461
6462         * math/test-fpucw.c (main): New file.
6463
6464 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
6465
6466         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
6467
6468         * locale/programs/ld-collate.c (collate_output): Also write out the
6469         collation sequence values and the wide character string for the
6470         collation symbol table.
6471
6472         * posix/fnmatch.c: Include "../locale/elem-hash.h".
6473         * posix/fnmatch_loop.c: Implement collating symbol handling.
6474         * posix/tst-fnmatch.input: Add more tests, especially for collating
6475         symbol handling.
6476
6477         * posix/regex.c: Fix comment.
6478
6479 2000-07-05  Andreas Jaeger  <aj@suse.de>
6480
6481         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
6482         (_FPU_GETCW): Remove extra colon.
6483         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6484
6485         * posix/fnmatch_loop.c (FCT): Only declare len if
6486         !WIDE_CHAR_VERSION to silence GCC.
6487
6488         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
6489         prototype.
6490         * sysdeps/generic/strchrnul.c: Likewise.
6491         * sysdeps/generic/strlen.c: Likewise.
6492         * sysdeps/generic/strchr.c: Likewise.
6493         * sysdeps/generic/memchr.c: Likewise.
6494
6495 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
6496
6497         * posix/fnmatch_loop.c: Implement equivalence class handling.
6498         * posix/tst-fnmatch.input: Add tests for equivalence class
6499         handling.
6500
6501         * posix/fnmatch_loop.c: Improve performance for single-byte
6502         character sets by not using btowc.
6503
6504         * posix/tst-fnmatch.input: Add tests for locale dependent
6505         behaviour.
6506         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
6507
6508         * posix/tst-fnmatch.input: Add more test cases.
6509
6510         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
6511         are not aligned to alignof(md5_uint32) do it before calling
6512         __md5_process_bytes.
6513         * crypt/md5.c: Make sure buffers are aligned.
6514         * crypt/md5.h: Likewise.
6515         Reported by Solar Designer <solar@false.com>.
6516
6517         * crypt/Makefile: Add dependencies for test programs.
6518
6519         * Rules: Define LC_ALL=C in environments of all programs we run.
6520
6521         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
6522
6523 2000-07-03  H.J. Lu  <hjl@gnu.org>
6524
6525         * locale/programs/ld-ctype.c (ctype_output): The size of iov
6526         is 2 + elem + offset, not 2 + elem + offset + 2.
6527
6528 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
6529
6530         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
6531         suite.
6532         * posix/Makefile (tests): Add tst-fnmatch.
6533         (tst-fnmatch-ENV): Define.
6534         * posix/tst-fnmatch.c: New file.
6535         * posix/tst-fnmatch.sh: New file.
6536
6537 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
6538
6539         * locale/programs/charmap.c (charmap_read): Prepend
6540         the condition filename == NULL.
6541
6542 2000-07-03  Greg McGary  <greg@mcgary.org>
6543
6544         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
6545
6546         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
6547         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
6548
6549         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
6550         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
6551         (FILEBUF_LITERAL): Add cast for CHAIN init.
6552         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
6553         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
6554         Revert type of `fp' to _IO_FILE*.
6555         (_IO_iter_file): Remove cast.
6556         (_IO_iter_next): Elide intermediate member reference.
6557
6558         * sysdeps/powerpc/strchr.S:  Check bounds.
6559         Wrap extern symbols in BP_SYM ().
6560
6561 2000-07-03  Andreas Jaeger  <aj@suse.de>
6562
6563         * dlfcn/Makefile (generated): New.
6564
6565 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
6566
6567         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
6568         (__uflow): Likewise.
6569         (__underflow): Likewise.
6570         * libio/wgenops.c (__wunderflow): Likewise.
6571         * stdio-common/tst-unbputc.c: New file.
6572         * stdio-common/tst-unbputc.sh: New file.
6573         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
6574
6575         * po/en_GB.po: New file.
6576         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
6577
6578 2000-07-01  Andreas Jaeger  <aj@suse.de>
6579
6580         * intl/Makefile (generated-dirs): New.
6581
6582         * elf/Makefile (generated): trusted-dirs.h is always generated,
6583         move out of build-shared condition.
6584         (generated): Merge the two entries for build-shared.
6585
6586 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
6587
6588         * debug/Makefile (distribute): Add xtrace.sh.
6589
6590 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
6591
6592         * version.h (VERSION): Bump to 2.1.91.
6593
6594         * configure.in: Update warning comment.  glibc should not be
6595         broken anymore.
6596
6597         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
6598         ioperm.c, sys/procfs.h, and sys/io.h.
6599
6600         * sysdeps/powerpc/Dist: Add bp-asm.h.
6601
6602         * assert/Depend: Add localedata.
6603         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
6604         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
6605
6606         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
6607         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
6608         relocation address to prevent unaligned trap.
6609         Suggested by Richard Henderson <rth@cygnus.com>.
6610
6611 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
6612
6613         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
6614         if redirecting and either redirection is done using defines or
6615         not optimizing.
6616
6617 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
6618
6619         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
6620         generated expressions.
6621         Patch by Darren McClelland <dmcclell@zetec.com>.
6622
6623         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
6624         since zic uses setlocale and gettext but we cannot make it use the
6625         new locale data since zic calls a shell which might not use the
6626         new libc.
6627
6628         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
6629         handling the internation currency symbol.  POSIX says that the
6630         fourth character is used to separate the currency symbol from the
6631         value.  Therefore it does not have to be printed.  But we cannot
6632         remove the space if the currency symbol is printed before the
6633         number since this is what many locales expect.
6634
6635         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
6636         whether this information is available.
6637
6638         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
6639         buffers in case the translation is too large.  Remember allocated
6640         memory blocks in a list.
6641         (free_mem): Free memory for translations.
6642
6643         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
6644
6645         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
6646         information is available set the string length to zero.
6647
6648         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
6649
6650 2000-06-30  Greg McGary  <greg@mcgary.org>
6651
6652         * sysdeps/powerpc/bp-asm.h: New file.
6653         * sysdeps/powerpc/__longjmp.S:  Check bounds.
6654         Wrap extern symbols in BP_SYM ().
6655         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
6656         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
6657         * sysdeps/powerpc/setjmp.S: Likewise.
6658         * sysdeps/powerpc/add_n.S: Likewise.
6659         * sysdeps/powerpc/addmul_1.S: Likewise.
6660         * sysdeps/powerpc/lshift.S: Likewise.
6661         * sysdeps/powerpc/rshift.S: Likewise.
6662         * sysdeps/powerpc/mul_1.S: Likewise.
6663         * sysdeps/powerpc/sub_n.S: Likewise.
6664         * sysdeps/powerpc/submul_1.S: Likewise.
6665         * sysdeps/powerpc/strlen.S: Likewise.
6666         * sysdeps/powerpc/memset.S: Likewise.
6667         * sysdeps/powerpc/stpcpy.S: Likewise.
6668         * sysdeps/powerpc/strcmp.S: Likewise.
6669         * sysdeps/powerpc/strcpy.S: Likewise.
6670         * sysdeps/powerpc/elf/bzero.S: Likewise.
6671
6672         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
6673         Line up operands column with tabs.
6674
6675 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
6676
6677         * elf/Makefile (LDFLAGS-origtest): Actually add it.
6678
6679         * sysdeps/ia64/htonl.S: New file.
6680         * sysdeps/ia64/htons.S: New file.
6681         * sysdeps/ia64/memcpy.S: Replace with version which does not use
6682         floating point registers.
6683         Patches by Dan Pop <Dan.Pop@cern.ch>.
6684
6685 2000-06-30  Andreas Jaeger  <aj@suse.de>
6686
6687         * posix/Makefile (tests): tst-exec and tst-spawn only work with
6688         shared libraries.
6689
6690         * io/Makefile (CFLAGS-test-lfs.c): New.
6691         (tests): Add test-lfs.
6692
6693         * io/test-lfs.c: New file.
6694
6695 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
6696
6697         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
6698         instruction.
6699
6700 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
6701
6702         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
6703
6704 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
6705
6706         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
6707         alias to the fstatfs call.
6708
6709         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
6710         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
6711
6712         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
6713         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
6714
6715         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
6716         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
6717         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
6718         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
6719
6720         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
6721         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
6722
6723         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
6724         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
6725
6726         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
6727         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
6728
6729         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
6730
6731 2000-06-29  Andreas Jaeger  <aj@suse.de>
6732
6733         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
6734         with syslog.
6735         (print_err_message): Likewise.
6736         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
6737
6738 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6739
6740         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
6741         used as words is properly aligned.
6742
6743         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
6744         data files.
6745
6746 2000-06-29  Greg McGary  <greg@mcgary.org>
6747
6748         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
6749         * sysdeps/unix/make-syscalls.sh: Handle signatures of
6750         length 7..9, just in case...
6751         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
6752
6753         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
6754         (POP_ERRNO_LOCATION_RETURN): Fold insns.
6755         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
6756         (PUSH_SIGNAL_MASK): New macro.
6757         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
6758         LEAVE is unnecessary.  Check bounds of jmp_buf.
6759         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
6760         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
6761         immediately before tail-call.
6762         * sysdeps/i386/setjmp.S: Likewise.
6763         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6764         * sysdeps/i386/bsd-setjmp.S: Likewise.
6765
6766 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
6767
6768         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
6769         versioned_symbol.
6770         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
6771         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
6772         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
6773         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6774         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
6775         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
6776         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
6777         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
6778
6779 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6780
6781         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
6782         we later need to calling free().
6783         Patch by Matt Wilson <msw@redhat.com>.
6784
6785         * stdio-common/tst-printf.c: Add test for above problem.
6786
6787 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
6788
6789         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
6790         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
6791
6792 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6793
6794         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
6795         prototype for abs().
6796         * sysdeps/ieee754/flt-32/s_exp2f.c: Likewise.
6797
6798 2000-06-23  Andreas Jaeger  <aj@suse.de>
6799
6800         * config.h.in: Don't use regparm with bounded pointers.
6801
6802 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6803
6804         * stdlib/grouping.h: Correctly handle multibyte thousands
6805         separator and decimal point.
6806         * stdlib/stdtod.c: Likewise.
6807         * sysdeps/generic/strtol.c: Likewise.
6808
6809         * locale/categories.def: Add entries for wide character decimal point
6810         and thousands separator in numeric and monetary category.
6811
6812 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6813
6814         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
6815         second definition and initialization of decimal.
6816
6817 2000-06-28  Greg McGary  <greg@mcgary.org>
6818
6819         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
6820         out.
6821         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
6822         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
6823         in.
6824         (_IO_JUMPS): Don't cast THIS--expect arg to be a
6825         (struct _IO_FILE_plus *).
6826         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
6827         THIS, since _IO_JUMPS no longer does it implicitly.
6828         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
6829         arg type as (struct _IO_FILE_plus *).
6830         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
6831         arg as (_IO_strfile *).
6832         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
6833         Declare 1st arg as (_IO_strfile *).
6834         * libio/fileops.c (_IO_new_file_init): Declare
6835         arg type as (struct _IO_FILE_plus *).
6836         * libio/oldfileops.c (_IO_old_file_init): Likewise.
6837         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
6838         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
6839         Declare iteration pointer as (struct _IO_FILE_plus *).
6840         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
6841                 (struct _IO_FILE_plus *).
6842         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
6843         * libio/oldstdfiles.c (_IO_list_all): Likewise.
6844         (_IO_check_libio): Set user-visible handles to
6845         (struct _IO_FILE_plus *).
6846         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
6847         to (struct _IO_FILE_plus *).
6848
6849         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
6850         whose high bound includes vtable to all functions that will use
6851         vtable.  For streambufs, pass pointer whose bounds include struct
6852         _IO_strfile.
6853         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
6854         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
6855         * libio/iofopen.c (_IO_new_fopen): Likewise.
6856         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6857         * libio/iofopen64.c (_IO_fopen64): Likewise.
6858         * libio/iopopen.c (_IO_new_popen): Likewise.
6859         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6860         * libio/memstream.c (open_memstream): Likewise.
6861         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
6862         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
6863         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6864         * libio/iofopncook.c (_IO_cookie_init): Likewise.
6865         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
6866         * libio/vasprintf.c (_IO_vasprintf): Likewise.
6867         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
6868         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
6869         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
6870         * stdlib/strfmon.c (__strfmon_l): Likewise.
6871         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6872         (vfprintf): Qualify computed-goto targets as unbounded.
6873
6874 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6875
6876         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
6877         thousands separator correctly.
6878
6879         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
6880         * stdio-common/vfwscanf.c: Likewise.
6881
6882 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
6883
6884         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
6885         count into signatures for most calls.
6886
6887 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6888
6889         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
6890         the generic parser now.
6891
6892 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6893
6894         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
6895         table entries are 32 bit on the ia64 (as specified by the ABI),
6896         not 64 bit as on the Alpha.
6897
6898         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
6899         change of objects to use 32 bit hash table indices (see above).
6900
6901 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6902
6903         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
6904         prototype for abs().
6905
6906 2000-06-28  Wolfram Gloger  <wg@malloc.de>
6907
6908         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
6909         fails, try mmap_chunk() as a last resort even though n_mmaps_max
6910         may have been reached.
6911
6912 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6913
6914         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
6915         symbols in multi-character weights correctly.
6916
6917         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
6918         depending on whether the input string is empty or not.
6919
6920         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
6921         given state and not avoiding this by modifying a local object.
6922         * wcsmbs/wcrtomb.c: Likewise.
6923
6924         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
6925         object since some incomplete characters might be in there.
6926
6927         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
6928         sequences with first byte 0x8e correctly.
6929
6930         * iconvdata/jis0208.h: Remove redundant test.
6931
6932 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
6933
6934         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
6935         Add it where it is needed now.
6936
6937         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
6938         the input charset into account when generating the hash table.
6939         (allocate_arrays): Correct setting default width.  Not all empty slots
6940         in the table are filled, only those not covert explicitly by the
6941         locale description and in the charset.
6942
6943         * wctype/towctrans.c (__towctrans): Be graceful and accept error
6944         return values from the wctrans function.
6945
6946         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
6947         wide character version.
6948         For %C handling, test correct pointer variable for NULL.
6949
6950         * wcsmbs/wctob.c: Handle WEOF special.
6951
6952         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
6953
6954         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
6955         always-true test to avoid warning.
6956
6957 2000-06-27  Greg McGary  <greg@mcgary.org>
6958
6959         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
6960         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
6961         (symbol_version, default_symbol_version): Factor redundant
6962         definitions out of conditional.
6963
6964 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
6965
6966         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
6967         not obstack_blank.
6968
6969 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6970
6971         * include/libc-symbols.h (symbol_version): Add extra level of
6972         macro expansion.
6973         (default_symbol_version): Likewise.
6974
6975 2000-06-26  Greg McGary  <greg@mcgary.org>
6976
6977         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
6978         for BP return value & push implicit struct-return pointer to
6979         __errno_location.
6980         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6981         (SYSCALL_ERROR_HANDLER): Likewise.
6982         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
6983         (SYSCALL_ERROR_HANDLER): Likewise.
6984
6985         * Makeconfig: Add missing comment.
6986         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
6987         BP-flavored startup object.
6988         ($(objpfx)b$(start-installed-name)): New rule.
6989         * include/libc-symbols.h (symbol_set_declare): Change type
6990         of `__start_##set' and `__stop_##set' to pointer-to-function.
6991         (symbol_set_declare): Change type of `set' to array of
6992         pointer-to-function.
6993         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
6994         pointer-to-function.
6995
6996         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
6997
6998         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
6999         Remove clock_* and timer_* entries.
7000         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
7001         arg-count with signatures.
7002
7003         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
7004         Check bounds of arguments.
7005         * sysdeps/i386/addmul_1.S: Likewise.
7006         * sysdeps/i386/lshift.S: Likewise.
7007         * sysdeps/i386/mul_1.S: Likewise.
7008         * sysdeps/i386/rshift.S: Likewise.
7009         * sysdeps/i386/sub_n.S: Likewise.
7010         * sysdeps/i386/submul_1.S: Likewise.
7011         * sysdeps/i386/i586/add_n.S: Likewise.
7012         * sysdeps/i386/i586/addmul_1.S: Likewise.
7013         * sysdeps/i386/i586/lshift.S: Likewise.
7014         * sysdeps/i386/i586/rshift.S: Likewise.
7015         * sysdeps/i386/i586/sub_n.S: Likewise.
7016         * sysdeps/i386/i686/add_n.S: Likewise.
7017
7018         * sysdeps/i386/memchr.S: Likewise.
7019         * sysdeps/i386/memcmp.S: Likewise.
7020         * sysdeps/i386/rawmemchr.S: Likewise.
7021         * sysdeps/i386/i586/bzero.S: Likewise.
7022         * sysdeps/i386/i586/memcpy.S: Likewise.
7023         * sysdeps/i386/i586/mempcpy.S: Likewise.
7024         * sysdeps/i386/i586/memset.S: Likewise.
7025         * sysdeps/i386/i686/bzero.S: Likewise.
7026         * sysdeps/i386/i686/memcpy.S: Likewise.
7027         * sysdeps/i386/i686/mempcpy.S: Likewise.
7028         * sysdeps/i386/i686/memset.S: Likewise.
7029
7030         * sysdeps/i386/stpcpy.S: Likewise.
7031         * sysdeps/i386/stpncpy.S: Likewise.
7032         * sysdeps/i386/strchr.S: Likewise.
7033         * sysdeps/i386/strchrnul.S: Likewise.
7034         * sysdeps/i386/strcspn.S: Likewise.
7035         * sysdeps/i386/strpbrk.S: Likewise.
7036         * sysdeps/i386/strrchr.S: Likewise.
7037         * sysdeps/i386/strspn.S: Likewise.
7038         * sysdeps/i386/strtok.S: Likewise.
7039         * sysdeps/i386/strtok_r.S: Likewise.
7040         * sysdeps/i386/i486/strcat.S: Likewise.
7041         * sysdeps/i386/i486/strlen.S: Likewise.
7042         * sysdeps/i386/i586/strchr.S: Likewise.
7043         * sysdeps/i386/i586/strcpy.S: Likewise.
7044         * sysdeps/i386/i586/strlen.S: Likewise.
7045         * sysdeps/i386/i686/strcmp.S: Likewise.
7046         * sysdeps/i386/i686/strtok.S: Likewise.
7047         * sysdeps/i386/i686/strtok_r.S: Likewise.
7048
7049         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
7050         * sysdeps/i386/fpu/fesetenv.c: Likewise.
7051         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
7052         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
7053         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
7054
7055         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
7056         * sysdeps/i386/mul_1.S: Likewise.
7057         * sysdeps/i386/submul_1.S: Likewise.
7058         * sysdeps/i386/i586/add_n.S: Likewise.
7059         * sysdeps/i386/i586/addmul_1.S: Likewise.
7060         * sysdeps/i386/i586/lshift.S: Likewise.
7061         * sysdeps/i386/i586/mul_1.S: Likewise.
7062         * sysdeps/i386/i586/rshift.S: Likewise.
7063         * sysdeps/i386/i586/sub_n.S: Likewise.
7064         * sysdeps/i386/i586/submul_1.S: Likewise.
7065
7066 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
7067
7068         * rt/Makefile (librt-routines): Add clock_nanosleep.
7069         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
7070         * sysdeps/generic/clock_nanosleep.c: New file.
7071         * sysdeps/unix/clock_nanosleep.c: New file.
7072         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
7073         * time/time.h: Declare clock_nanosleep.
7074
7075 2000-06-26  Greg McGary  <greg@mcgary.org>
7076
7077         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
7078         INSN1, INSN2, TEXT, GLOBL): Remove macros.
7079         (ALIGN): Cleanup surrounding conditionals.
7080
7081         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
7082         Call ENTER/LEAVE macros.
7083         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
7084         * sysdeps/i386/submul_1.S: Likewise.
7085
7086         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
7087         syntax.  Define & use symbolic argument stack offsets.  Call
7088         ENTER/LEAVE macros.
7089         * sysdeps/i386/i586/mul_1.S: Likewise.
7090         * sysdeps/i386/i586/submul_1.S: Likewise.
7091
7092 2000-06-25  Greg McGary  <greg@mcgary.org>
7093
7094         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
7095         not as bcopy.
7096
7097 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
7098
7099         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
7100         * iconvdata/gen-8bit-gap.sh: Likewise.
7101         * iconvdata/gen-8bit.sh: Likewise.
7102
7103         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
7104
7105         * locale/programs/ld-collate.c (collate_read): Don't actually read
7106         the copy locale if we are ignoring the content.
7107
7108         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
7109         unknown character.
7110
7111         * locale/programs/ld-collate.c: Correct handling of different
7112         collation sections.
7113         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
7114         as extra parameter from which to copy category information.
7115         Change all callers.
7116         (load_locale): Likewise.
7117         * locale/programs/localedef.h: Update prototypes of add_to_readlist
7118         and load_locale.
7119         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
7120         * locale/programs/locfile.h: Likewise.
7121         * locale/programs/locfile-kw.gperf: Add entry for script.
7122         * locale/programs/locfile-token.h: Add tok_script.
7123
7124         * locale/programs/locale.c: Update copyright year.
7125         * locale/programs/localedef.c: Likewise.
7126
7127 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
7128
7129         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
7130         Jens Moeller <jens.moeller@waii.com>.
7131
7132 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
7133
7134         * locale/programs/ld-name.c (name_finish): Add missing format
7135         specifier to test for name_fmt.
7136
7137         * locale/programs/ld-address.c (iso639): Correct length of string
7138         elements.
7139         (iso3166): Likewise.
7140
7141         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
7142
7143         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
7144         Define.
7145
7146         * elf/elf.h (NT_PRFPXREG): Define.
7147
7148 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
7149
7150         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
7151         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
7152
7153 2000-06-23  Andreas Schwab  <schwab@suse.de>
7154
7155         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
7156         with signatures.
7157
7158 2000-06-23  Andreas Jaeger  <aj@suse.de>
7159
7160         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
7161
7162         * io/test-stat.c: Add copyright header, mention Maciej.
7163
7164         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
7165         SYS_mincore, SYS_madvise): Added.
7166
7167         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
7168         execve.
7169
7170 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
7171
7172         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
7173         (CFLAGS-tst_putwc.c): New definition.
7174         * libio/tst_getwc.c: New file.
7175         * libio/tst_getwc.input: New file.
7176         * libio/tst_putwc.c: New file.
7177
7178         * include/string.h: Add prototype for __strdup.
7179
7180 2000-06-22  Greg McGary  <greg@mcgary.org>
7181
7182         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
7183         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
7184         Fix signatures.
7185
7186 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
7187
7188         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
7189
7190 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
7191
7192         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
7193
7194 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
7195
7196         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
7197         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
7198
7199 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
7200
7201         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
7202         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
7203         and __S_TYPEISSHM.
7204         * sysdeps/mach/hurd/bits/stat.h: Likewise.
7205         * sysdeps/unix/bsd/bits/stat.h: Likewise.
7206         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
7207         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7208         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
7209         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
7210         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7211         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7212         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7213         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
7214         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
7215         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
7216         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
7217         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
7218         S_TYPEISSHM.
7219
7220 2000-06-22  Andreas Jaeger  <aj@suse.de>
7221
7222         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
7223         with signatures.
7224
7225         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
7226
7227         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
7228
7229 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
7230
7231         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
7232         ahead.
7233
7234 2000-06-21  Greg McGary  <greg@mcgary.org>
7235
7236         * Makerules (elide-routines.*, elide-bp-thunks):
7237         Define unconditionally.
7238
7239 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
7240
7241         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
7242
7243 2000-06-21  Andreas Jaeger  <aj@suse.de>
7244
7245         * io/Makefile (tests): Add test-stat.
7246         (CFLAGS-test-stat.c): New.
7247
7248         * io/test-stat.c: New file from Maciej W. Rozycki
7249         <macro@ds2.pg.gda.pl>.
7250
7251 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
7252
7253         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
7254         in __rlimit_resource to make them match the kernel order.
7255         rlim_t is always 64 bit, use __rlim64_t to declare it
7256         unconditionally.
7257
7258 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
7259
7260         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
7261         RLIM_INFINITY before defining it to avoid clash with kernel header
7262
7263 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7264
7265         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
7266
7267 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
7268
7269         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
7270
7271 2000-06-21  Andreas Jaeger  <aj@suse.de>
7272
7273         * stdio-common/temptest.c: Include <stdlib.h>.
7274         * stdio-common/tst-fileno.c: Likewise.
7275         * stdio-common/scanf4.c: Likewise.
7276         * stdio-common/scanf5.c: Likewise.
7277         * time/clocktest.c: Likewise.
7278         * posix/test-vfork.c: Likewise.
7279         * posix/globtest.c: Likewise.
7280         * io/test-utime.c: Likewise.
7281         * wctype/test_wcfuncs.c: Likewise.
7282         * crypt/cert.c: Likewise.
7283
7284         * stdio-common/tst-printfsz.c: Include <string.h>.
7285         * libio/tst_swscanf.c: Likewise.
7286         * libio/tst_wscanf.c: Likewise.
7287         * posix/runtests.c: Likewise.
7288         * posix/tst-getaddrinfo.c: Likewise.
7289         * posix/wordexp-test.c: Likewise.
7290         * misc/tst-efgcvt.c: Likewise.
7291
7292         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
7293         * nss/test-netdb.c: Likewise.
7294
7295         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
7296         supported kernel for MIPS.
7297
7298         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
7299         * rt/aio_suspend.c: Likewise.
7300
7301 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
7302
7303         * math/libm-test.inc: Include <string.h>.
7304
7305 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
7306
7307         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
7308
7309 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
7310
7311         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
7312         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
7313
7314 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
7315
7316         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
7317
7318 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
7319
7320         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
7321
7322 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
7323
7324         * locale/programs/ld-collate.c (insert_value): Now take string and
7325         length instead of struct token* parameter.  Adjust use of token.
7326         (handle_ellipsis): Likewise.
7327         (collate_read): Allow <Uxxxx> names and transform them into names
7328         to be passed to insert_value and handle_ellipsis.
7329
7330         * locale/programs/ld-ctype.c (uninames): New array with names of
7331         digits in <Uxxxxxxxx> format.
7332         (ctype_finish): Correct search for space character value.  Likewise
7333         for default outdigits values.
7334
7335 2000-06-20  Greg McGary  <greg@mcgary.org>
7336
7337         * Makerules (objects): Add BP thunks.
7338
7339 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
7340
7341         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
7342         in width definitions.
7343
7344 2000-06-20  Andreas Jaeger  <aj@suse.de>
7345
7346         * sysdeps/mips/fpu/libm-test-ulps: New file.
7347
7348         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
7349         first.
7350
7351         * sysdeps/mips/fpu/feholdexcpt.c: New file.
7352
7353         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
7354
7355 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
7356
7357         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
7358         change in gconv_builtin.h.
7359
7360         * malloc/Makefile: Change all references to memprof into memusage.
7361         * malloc/memprof.c: Rename to...
7362         * malloc/memusage.c: ...this.  New file.
7363         * malloc/memprof.sh: Rename to...
7364         * malloc/memusage.sh: ...this.  New file.
7365         * malloc/memprofstat.c: Rename to...
7366         * malloc/memusagestat.c: ...this.  New file.
7367         * sysdeps/alpha/memprof.h: Rename to..
7368         * sysdeps/alpha/memusage.h: ...this.  New file.
7369         * sysdeps/arm/memprof.h: Rename to..
7370         * sysdeps/arm/memusage.h: ...this.  New file.
7371         * sysdeps/generic/memprof.h: Rename to..
7372         * sysdeps/generic/memusage.h: ...this.  New file.
7373         * sysdeps/i386/memprof.h: Rename to..
7374         * sysdeps/i386/memusage.h: ...this.  New file.
7375         * sysdeps/ia64/memprof.h: Rename to..
7376         * sysdeps/ia64/memusage.h: ...this.  New file.
7377         * sysdeps/m68k/memprof.h: Rename to..
7378         * sysdeps/m68k/memusage.h: ...this.  New file.
7379         * sysdeps/mips/memprof.h: Rename to..
7380         * sysdeps/mips/memusage.h: ...this.  New file.
7381         * sysdeps/powerpc/memprof.h: Rename to..
7382         * sysdeps/powerpc/memusage.h: ...this.  New file.
7383         * sysdeps/sparc/memprof.h: Rename to..
7384         * sysdeps/sparc/memusage.h: ...this.  New file.
7385         * sysdeps/sh/memprof.h: Rename to..
7386         * sysdeps/sh/memusage.h: ...this.  New file.
7387
7388         * elf/sprof.c (print_version): Update year.
7389
7390         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
7391         table entry values.  Use D_PTR.
7392         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
7393         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
7394
7395 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
7396
7397         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
7398         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
7399         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
7400         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
7401
7402 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7403
7404         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
7405
7406 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
7407
7408         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
7409         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
7410         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
7411
7412         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
7413
7414         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
7415         kernel change.
7416
7417         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
7418         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
7419         structure.
7420         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
7421         implementation.
7422
7423 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
7424
7425         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
7426
7427 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
7428
7429         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
7430
7431 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
7432
7433         * iconv/gconv_int.h (strict gconv_module): Remove all members
7434         associated with regular expressions.  Use a simple string as the
7435         from name.
7436         * iconv/gconv_db.c: Remove code handling regular expressions.
7437         * iconv/gconv_conf.c: Likewise.
7438         * iconv/iconv_prog.c: Likewise.
7439         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
7440
7441         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
7442         General namespace cleanup.
7443         (struct __gconv_trans_data): Add next field.
7444         (struct __gconv_step_data): Make __trans a pointer.
7445         * iconv/gconv_conf.c: Split out code to find gconv directories from
7446         __gconv_read_conf in new functions.
7447         * iconv/gconv_int.h: Define new data structure and declare new
7448         functions for handling of gconv directory list.
7449         * iconv/gconv_open.c: Allow more than one error handling step being
7450         used.  Call function to load error handling module if it is none
7451         of the builtin transformations.
7452         * iconv/gconv_close.c: Add code to free transliteration data.
7453         * iconv/gconv_trans.c: Add functions to load and unload modules
7454         implementing transliteration etc.
7455         * iconv/skeleton.c: Call all context functions now that more than
7456         one module is allowed.
7457         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
7458         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
7459         where the full error handling using transliteration is needed.
7460         * iconvdata/8bit-gap.c: Likewise.
7461         * iconvdata/8bit-generic.c: Likewise.
7462         * iconvdata/ansi_x3.110.c: Likewise.
7463         * iconvdata/big5.c: Likewise.
7464         * iconvdata/big5hkscs.c: Likewise.
7465         * iconvdata/euc-cn.c: Likewise.
7466         * iconvdata/euc-jp.c: Likewise.
7467         * iconvdata/euc-kr.c: Likewise.
7468         * iconvdata/euc-tw.c: Likewise.
7469         * iconvdata/gbgbk.c: Likewise.
7470         * iconvdata/gbk.c: Likewise.
7471         * iconvdata/iso-2022-cn.c: Likewise.
7472         * iconvdata/iso-2022-jp.c: Likewise.
7473         * iconvdata/iso-2022-kr.c: Likewise.
7474         * iconvdata/iso646.c: Likewise.
7475         * iconvdata/iso8859-1.c: Likewise.
7476         * iconvdata/iso_6937-2.c: Likewise.
7477         * iconvdata/iso_6937.c: Likewise.
7478         * iconvdata/johab.c: Likewise.
7479         * iconvdata/sjis.c: Likewise.
7480         * iconvdata/t.61.c: Likewise.
7481         * iconvdata/uhc.c: Likewise.
7482         * iconvdata/unicode.c: Likewise.
7483         * iconvdata/utf-16.c: Likewise.
7484         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
7485         structure correctly after last change.
7486         * wcsmbs/btowc.c: Likewise.
7487         * wcsmbs/mbrtowc.c: Likewise.
7488         * wcsmbs/mbsnrtowcs.c: Likewise.
7489         * wcsmbs/mbsrtowcs.c: Likewise.
7490         * wcsmbs/wcrtomb.c: Likewise.
7491         * wcsmbs/wcsnrtombs.c: Likewise.
7492         * wcsmbs/wcsrtombs.c: Likewise.
7493         * wcsmbs/wctob.c: Likewise.
7494
7495         * localedata/Makefile: Set -Wno-format for some files since gcc does
7496         not know all the format specifiers.
7497
7498 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
7499
7500         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
7501         unneeded code.
7502         * locale/lc-time.c (_nl_init_era_entries): Likewise.
7503
7504 2000-06-18  Andreas Jaeger  <aj@suse.de>
7505
7506         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
7507         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
7508
7509 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
7510
7511         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
7512         LINUX_LINK_MAX.
7513         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
7514
7515         * locale/programs/ld-ctype.c (ctype_output): Really write out
7516         mboutdigits information.
7517         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
7518         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
7519         * localedata/tests/trans.def: Add outdigit information.
7520
7521         * localedata/tst-mbswcs3.c: Remove comment.
7522
7523         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
7524         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
7525         * libio/tst_wprintf.c (main): Add test for I flag.
7526
7527         * iconv/gconv_trans.c: Implement handling if translit_ignore.
7528         * locale/langinfo.h: Add entries for translit_ignore information.
7529         * locale/categories.def: Add entries for new LC_CTYPE elements.
7530         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
7531         pointer instead of "" where possible.
7532         * locale/programs/ld-ctype.c: Write out translit_ignore information.
7533         * intl/Depend: Add localedata.
7534         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
7535         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
7536
7537 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
7538
7539         * locale/langinfo.h: Add entries for default_missing information.
7540         * locale/C-ctype.c: Add initializers for new fields.
7541         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
7542         information.
7543         * locale/categories.h: Add entries for all LC_CTYPE values.
7544         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
7545         information.
7546
7547         * localedata/tst-trans.c: Write out an error message if class is
7548         not found.
7549
7550         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
7551         * iconv/gconv_open.c: Remove error handling specification from `from'
7552         character set name.
7553         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
7554         new parameter to always enable transliteration.
7555         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
7556         change.
7557         (struct locale_data): Add new members use_translit and options.
7558         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
7559         character set name contained modifier TRANSLIT.
7560         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
7561         and options fields.
7562         (_nl_unload_locale): Free options string if necessary.
7563         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
7564         the locale names suggested this.
7565         * locale/C-address.c: Add two new initialilzers to adjust data
7566         structure for new format.
7567         * locale/C-collate.c: Likewise.
7568         * locale/C-ctype.c: Likewise.
7569         * locale/C-identification.c: Likewise.
7570         * locale/C-measurement.c: Likewise.
7571         * locale/C-messages.c: Likewise.
7572         * locale/C-monetary.c: Likewise.
7573         * locale/C-name.c: Likewise.
7574         * locale/C-numeric.c: Likewise.
7575         * locale/C-paper.c: Likewise.
7576         * locale/C-telephone.c: Likewise.
7577         * locale/C-time.c: Likewise.
7578
7579         * locale/setlocale.c: Add some more __builtin_expect.
7580
7581 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
7582
7583         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
7584         unsigned char **.
7585         (__gconv_init_fct): Remove two parameters.
7586         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
7587         gconv_transliterate.  Remove two parameters.
7588         Change prototypes of builtin functions according to __gconv_fct change.
7589         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
7590         != NULL only during error handling.  Stop in this case after the
7591         conversion.
7592         * iconv/gconv_trans.c: Replace with real implementation for
7593         __gconv_transliterate.
7594         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
7595         * iconv/gconv.c: Change calls to downstream functions once again.
7596         Use NULL for the fifth parameter instead of pointer to output buffer.
7597         * libio/iofwide.c: Likewise.
7598         * wcsmbs/btowc.c: Likewise.
7599         * wcsmbs/mbrtowc.c: Likewise.
7600         * wcsmbs/mbsnrtowcs.c: Likewise.
7601         * wcsmbs/mbsrtowcs.c: Likewise.
7602         * wcsmbs/wcrtomb.c: Likewise.
7603         * wcsmbs/wcsnrtombs.c: Likewise.
7604         * wcsmbs/wcsrtombs.c: Likewise.
7605         * wcsmbs/wctob.c: Likewise.
7606         * iconv/gconv_simple.c: Remove two parameters from error handling
7607         function call.
7608         * iconvdata/8bit-gap.c: Likewise.
7609         * iconvdata/8bit-generic.c: Likewise.
7610         * iconvdata/ansi_x3.110.c: Likewise.
7611         * iconvdata/big5.c: Likewise.
7612         * iconvdata/big5hkscs.c: Likewise.
7613         * iconvdata/euc-cn.c: Likewise.
7614         * iconvdata/euc-jp.c: Likewise.
7615         * iconvdata/euc-kr.c: Likewise.
7616         * iconvdata/euc-tw.c: Likewise.
7617         * iconvdata/gbgbk.c: Likewise.
7618         * iconvdata/gbk.c: Likewise.
7619         * iconvdata/iso-2022-cn.c: Likewise.
7620         * iconvdata/iso-2022-jp.c: Likewise.
7621         * iconvdata/iso-2022-kr.c: Likewise.
7622         * iconvdata/iso646.c: Likewise.
7623         * iconvdata/iso8859-1.c: Likewise.
7624         * iconvdata/iso_6937-2.c: Likewise.
7625         * iconvdata/iso_6937.c: Likewise.
7626         * iconvdata/johab.c: Likewise.
7627         * iconvdata/sjis.c: Likewise.
7628         * iconvdata/t.61.c: Likewise.
7629         * iconvdata/uhc.c: Likewise.
7630         * iconvdata/unicode.c: Likewise.
7631         * iconvdata/utf-16.c: Likewise.
7632
7633 2000-06-15  Greg McGary  <greg@mcgary.org>
7634
7635         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
7636         of callnum assignment.  Tolerate callnum expressions containing
7637         parens.
7638
7639 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
7640
7641         * login/Makefile (utmpd): Remove rule to build utmpd.
7642
7643         * csu/Versions: Move libgcc frame handling functions from here...
7644         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
7645         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
7646         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
7647         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
7648         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
7649         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
7650         New file.
7651         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
7652
7653         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
7654
7655         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
7656
7657 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7658
7659         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
7660         compatibility.
7661         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
7662         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
7663         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
7664         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
7665
7666 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
7667
7668         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
7669         defined, terminate quotes and read them after the comment char.
7670         * configure.in (HAVE_SECTION_QUOTES): Test whether
7671         __attribute__((section ("x"))) puts quotes around x or not.
7672         * config.h.in (HAVE_SECTION_QUOTES): Add.
7673         * configure: Rebuilt.
7674
7675 2000-06-14  Andreas Jaeger  <aj@suse.de>
7676
7677         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
7678         depending on the configure option --sysconfdir.
7679         Closes PR libc/1762.
7680         Patch by Andreas Schwab <schwab@suse.de>.
7681
7682         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
7683         entry point.
7684         Reported by Jim Pick <jim@jimpick.com>.
7685
7686 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
7687
7688         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
7689         crashing the application.  Emit some simple error message.
7690         Reported by mju@panasas.com [PR libc/1769].
7691
7692 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
7693
7694         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
7695
7696         * crypt/Makefile (distribute): Add md5.h.
7697
7698         * Makefile (distribute): Add include/shlib-compat.h.
7699
7700         * Make-dist: Search for tests also in sysdeps hierachy.
7701
7702         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
7703         ufc.c, speeds.c, README.ufc-crypt, and Banner.
7704
7705         * sysdeps/sparc/Subdirs: New file.
7706
7707         * locale/Makefile (distribute): Add weightwc.h and
7708         programs/localedef.h.
7709
7710         * time/Makefile (distribute): Add datemsk.
7711
7712         * sysdeps/ia64/Dist: Add softpipe.h.
7713
7714         * sysdeps/unix/sysv/aix/Dist: New file.
7715
7716         * posix/setpgrp.c: Moved to...
7717         * sysdeps/generic/setpgrp.c: ...here.  New file.
7718         * io/mknod.c: Moved to...
7719         * sysdeps/generic/mknod.c: ...here.  New file.
7720
7721         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
7722
7723         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
7724
7725         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
7726
7727         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
7728         gprsave0.S, gprrest1.S, and gprrest0.S.
7729
7730         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
7731
7732         * posix/Makefile (routines): Add spawnattr_getsigmask,
7733         spawnattr_getschedpolicy, spawnattr_getschedparam,
7734         spawnattr_setsigmask, spawnattr_setschedpolicy, and
7735         spawnattr_setschedparam.
7736         * posix/Versions: Add posix_spawnattr_getschedpolicy,
7737         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
7738         posix_spawnattr_setschedparam.
7739
7740         * posix/spawnattr_setschedparam.c: Fix typo.
7741
7742         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
7743         Correct typo.
7744
7745         * login/programs/utmpd.c: Removed.
7746         * login/programs/utmpd.h: Removed.
7747         * login/programs/utmpd-private.h: Removed.
7748
7749         * Makefile (distribute): Add include/db_185.h and include/db.h.
7750
7751         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
7752         iso-ir-165.h.
7753
7754         * elf/Makefile (distribute): Add missing files.
7755
7756         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
7757         * elf/eval.c: Moved to...
7758         * dlfcn/eval.c: ...here.  New file.
7759
7760         * Makefile (distribute): Also distribute ChangeLog.1?.
7761
7762         * Make-dist (+tsrcs): Remove .args handling here as well.
7763
7764         * rt/Makefile (tests): Add tst-timer.
7765         * sysdeps/generic/tst-timer.c: New file.
7766
7767         * Makerules (sources): Don't add BP sources here.
7768
7769         * login/Makefile (distribute): Remove xtmp.h.
7770
7771         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
7772         is true.  Reported by Bruno Haible <haible@ilog.fr>.
7773
7774 2000-06-13  Andreas Jaeger  <aj@suse.de>
7775
7776         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
7777         Patch by Ralf Baechle <ralf@gnu.org>.
7778
7779 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
7780
7781         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
7782         for mincore syscall.
7783
7784         * misc/sys/cdefs.h: Define __bounded and __unbounded if
7785         __BOUNDED_POINTERS__ is not defined.
7786
7787 2000-06-07  Greg McGary  <greg@mcgary.org>
7788
7789         * sysdeps/generic/bp-sym.h: New file.
7790         * sysdeps/generic/bp-start.h: New file.
7791         * sysdeps/i386/elf/start.S: Designate BP symbols.
7792         * sysdeps/generic/libc-start.c: Wrap bounds around
7793         argv & envp and each of their string members.
7794
7795 2000-06-07  Greg McGary  <greg@mcgary.org>
7796
7797         * sysdeps/unix/make-syscalls.sh: Add comments to
7798         output that aid debugging & comprehension.
7799         Map simple syscall signatures to number of args.
7800         Generate BP syscall thunk definitions.
7801         * sysdeps/generic/bp-thunks.h: New file.
7802         * sysdeps/unix/syscalls.list: Replace arg-count with
7803         simple return+arg signature.
7804         * sysdeps/unix/common/syscalls.list: Likewise.
7805         * sysdeps/unix/inet/syscalls.list: Likewise.
7806         * sysdeps/unix/mman/syscalls.list: Likewise.
7807         * sysdeps/unix/sysv/syscalls.list: Likewise.
7808         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7809         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
7810
7811 2000-06-07  Greg McGary  <greg@mcgary.org>
7812
7813         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
7814         for all files *.[cS].
7815         (CFLAGS-.ob): Don't optimize sibling calls.
7816         (bppfx): New variable.
7817         * Makerules (elide-bp-thunks): New variable.
7818         (elide-routines.*): Elide BP-* files for all but *.ob.
7819         (sources): Include bp-thunks.
7820
7821 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7822
7823         * iconv/gconv_simple.c: Remove unnecessary prototype.
7824
7825         * iconv/gconv_trans.c: Pretty print.
7826
7827         * elf/elf.h (R_SH_NUM): Got accidently dropped.
7828
7829         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
7830         minimal kernel versions.  Add information about IA-64 kernel.
7831
7832         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
7833         specific minimal supported kernel versions to be specified.
7834
7835         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
7836         step data structure.
7837         * wcsmbs/btowc.c: Likewise.
7838         * wcsmbs/mbrtowc.c: Likewise.
7839         * wcsmbs/mbsnrtowcs.c: Likewise.
7840         * wcsmbs/mbsrtowcs.c: Likewise.
7841         * wcsmbs/wcrtomb.c: Likewise.
7842         * wcsmbs/wcsnrtombs.c: Likewise.
7843         * wcsmbs/wcsrtombs.c: Likewise.
7844         * wcsmbs/wctob.c: Likewise.
7845
7846         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
7847         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
7848
7849         * shlib-versions: Earliest backward compatible version for SH is 2.2.
7850
7851         * misc/sys/cdefs.h: Remove one more __P.
7852
7853         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
7854         Reported by HJ Lu.
7855
7856         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
7857         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
7858         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
7859
7860 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7861             Yutaka Niibe  <gniibe@chroot.org>
7862
7863         * configure.in: Add machine sh3, sh4.
7864         * elf/elf.h: Add SH specific declarations of relocations.
7865         * shlib-versions: Add sh*-*-linux* cases.
7866
7867 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7868
7869         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
7870         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
7871         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
7872         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
7873         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
7874         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
7875
7876         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
7877         instead of KERNEL_MATH_EMULATION.
7878         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
7879         KERNEL_MATH_EMULATION.
7880
7881         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
7882         * sysdeps/sh/sh3/dl-machine.h: Moved to...
7883         * sysdeps/sh/dl-machine.h: ...here.  New file.
7884         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
7885         and include generic SH version.
7886         * sysdeps/sh/sh3/bits/endian.h: Move to...
7887         * sysdeps/sh/bits/endian.h: ...here.  New file.
7888         * sysdeps/sh/sh4/bits/endian.h: Removed.
7889         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
7890         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
7891         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
7892
7893         * include/libc-symbols.h (link_warning): Work around a change in
7894         GAS which warns about changing section attributes.
7895         Proposed by Nick Clifton <nickc@redhat.com>.
7896
7897 2000-06-12  H.J. Lu  <hjl@gnu.org>
7898
7899         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
7900
7901 2000-06-11  H.J. Lu  <hjl@gnu.org>
7902
7903         * sysdeps/i386/fpu/Versions: New file.
7904
7905 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7906
7907         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
7908         parameters.
7909         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
7910         exists.
7911
7912 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
7913
7914         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
7915         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
7916         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
7917
7918         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
7919         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
7920         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
7921
7922 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7923             Yutaka Niibe  <gniibe@chroot.org>
7924
7925         * sysdeps/sh/Dist: New file.
7926         * sysdeps/sh/Implies: New file.
7927         * sysdeps/sh/elf/initfini.c: New file.
7928         * sysdeps/sh/gmp-mparam.h: New file.
7929         * sysdeps/sh/init-first.c: New file.
7930         * sysdeps/sh/machine-gmon.h: New file.
7931         * sysdeps/sh/memcpy.S: New file.
7932         * sysdeps/sh/memprof.h: New file.
7933         * sysdeps/sh/memset.S: New file.
7934         * sysdeps/sh/sh3/__longjmp.S: New file.
7935         * sysdeps/sh/sh3/bits/endian.h: New file.
7936         * sysdeps/sh/sh3/bits/huge_val.h: New file.
7937         * sysdeps/sh/sh3/bits/setjmp.h: New file.
7938         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
7939         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
7940         * sysdeps/sh/sh3/dl-machine.h: New file.
7941         * sysdeps/sh/sh3/setjmp.S: New file.
7942         * sysdeps/sh/sh4/__longjmp.S: New file.
7943         * sysdeps/sh/sh4/bits/endian.h: New file.
7944         * sysdeps/sh/sh4/bits/huge_val.h: New file.
7945         * sysdeps/sh/sh4/bits/setjmp.h: New file.
7946         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
7947         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
7948         * sysdeps/sh/sh4/dl-machine.h: New file.
7949         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
7950         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
7951         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
7952         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
7953         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
7954         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
7955         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
7956         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
7957         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
7958         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
7959         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
7960         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
7961         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
7962         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
7963         * sysdeps/sh/sh4/setjmp.S: New file.
7964         * sysdeps/sh/elf/start.S: New file.
7965         * sysdeps/sh/sys/ucontext.h: New file.
7966         * sysdeps/sh/strlen.S: New file.
7967         * sysdeps/sh/sysdep.h: New file.
7968         * sysdeps/unix/sh/sysdep.S: New file.
7969         * sysdeps/unix/sh/sysdep.h: New file.
7970         * sysdeps/unix/sysv/linux/sh/Dist: New file.
7971         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
7972         * sysdeps/unix/sysv/linux/sh/Versions: New file.
7973         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
7974         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
7975         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
7976         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
7977         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
7978         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
7979         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
7980         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
7981         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
7982         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
7983         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
7984         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
7985         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
7986         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
7987         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
7988         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
7989         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
7990         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
7991         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
7992         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
7993         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
7994         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
7995         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
7996         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
7997         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
7998         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
7999         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
8000         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
8001         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
8002         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
8003         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
8004         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
8005         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
8006         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
8007         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
8008         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
8009         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
8010         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
8011         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
8012         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
8013         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8014         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
8015         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
8016         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
8017         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
8018         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
8019         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
8020
8021 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
8022
8023         * Rules (%.out): Define GCONV_PATH in the environment.
8024         * assert/Depend: New file.
8025         * iconvdata/Depend: New file.
8026         * intl/Depend: New file.
8027         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
8028         * intl/tst-gettext.sh: Likewise.
8029         * iconv/Makefile (routines): Add gconv_trans.
8030         * iconv/gconv_trans.c: New file.
8031         * iconv/gconv.h (struct __gconv_trans_data): New type.
8032         (__gconv_fct): New parameter with starting position in output buffer.
8033         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
8034         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
8035         (struct __gconv_step): Add new member __trans.
8036         * iconv/gconv_int.h: Pretty print prototypes.
8037         (gconv_transliterate): New prototype.
8038         (__BUILTIN_TRANS): Update for new conversion function interface.
8039         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
8040         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
8041         in names, find appropriate function, and install in the conversion
8042         steps it can be used.
8043         * iconv/skeleton.c: Add additional parameter for beginning of output
8044         buffer.  Change calls of downstream functions.
8045         * iconv/loop.c: Change loop function interface completely.  Pass in
8046         step and step_data structure.  Remove optimization for BODY with
8047         NEED_LENGTH_TEST == 0.
8048         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
8049         appropriate error handling code to use transliteration steps.  Remove
8050         optimization for BODY with NEED_LENGTH_TEST == 0.
8051         * iconvdata/8bit-gap.c: Likewise.
8052         * iconvdata/8bit-generic.c: Likewise.
8053         * iconvdata/ansi_x3.110.c: Likewise.
8054         * iconvdata/big5.c: Likewise.
8055         * iconvdata/big5hkscs.c: Likewise.
8056         * iconvdata/euc-cn.c: Likewise.
8057         * iconvdata/euc-jp.c: Likewise.
8058         * iconvdata/euc-kr.c: Likewise.
8059         * iconvdata/euc-tw.c: Likewise.
8060         * iconvdata/gbgbk.c: Likewise.
8061         * iconvdata/gbk.c: Likewise.
8062         * iconvdata/iso-2022-cn.c: Likewise.
8063         * iconvdata/iso-2022-jp.c: Likewise.
8064         * iconvdata/iso-2022-kr.c: Likewise.
8065         * iconvdata/iso646.c: Likewise.
8066         * iconvdata/iso8859-1.c: Likewise.
8067         * iconvdata/iso_6937-2.c: Likewise.
8068         * iconvdata/iso_6937.c: Likewise.
8069         * iconvdata/johab.c: Likewise.
8070         * iconvdata/sjis.c: Likewise.
8071         * iconvdata/t.61.c: Likewise.
8072         * iconvdata/uhc.c: Likewise.
8073         * iconvdata/unicode.c: Likewise.
8074         * iconvdata/utf-16.c: Likewise.
8075         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
8076         DL_CALL_FCT.
8077         * wcsmbs/btowc.c: Likewise.
8078         * wcsmbs/mbrtowc.c: Likewise.
8079         * wcsmbs/mbsnrtowcs.c: Likewise.
8080         * wcsmbs/mbsrtowcs.c: Likewise.
8081         * wcsmbs/wcrtomb.c: Likewise.
8082         * wcsmbs/wcsnrtombs.c: Likewise.
8083         * wcsmbs/wcsrtombs.c: Likewise.
8084         * wcsmbs/wctob.c: Likewise.
8085
8086 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8087
8088         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
8089         other header files.  Mention about 128-byte cache line sizes.
8090         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
8091         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
8092         for current calling sequence.
8093         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
8094
8095         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
8096         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8097
8098         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
8099         and setrlimit syscalls for backwards compatibility.
8100
8101 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
8102
8103         * iconv/skeleton.c:  Rename converted written to correcter name
8104         irreversible.
8105         * iconv/gconv.c: Rename converted variable to correcter name
8106         irreversible.
8107         * iconv/gconv_int.h: Likewise.
8108         * iconv/gconv_simple.c: Likewise.
8109         * iconv/iconv.c: Likewise.
8110         * iconv/loop.c: Likewise.
8111         * iconvdata/8bit-gap.c: Likewise.
8112         * iconvdata/8bit-generic.c: Likewise.
8113         * iconvdata/ansi_x3.110.c: Likewise.
8114         * iconvdata/big5.c: Likewise.
8115         * iconvdata/big5hkscs.c: Likewise.
8116         * iconvdata/euc-cn.c: Likewise.
8117         * iconvdata/euc-jp.c: Likewise.
8118         * iconvdata/euc-kr.c: Likewise.
8119         * iconvdata/gbgbk.c: Likewise.
8120         * iconvdata/gbk.c: Likewise.
8121         * iconvdata/iso-2022-cn.c: Likewise.
8122         * iconvdata/iso-2022-jp.c: Likewise.
8123         * iconvdata/iso-2022-kr.c: Likewise.
8124         * iconvdata/iso646.c: Likewise.
8125         * iconvdata/iso8859-1.c: Likewise.
8126         * iconvdata/iso_6937-2.c: Likewise.
8127         * iconvdata/iso_6937.c: Likewise.
8128         * iconvdata/johab.c: Likewise.
8129         * iconvdata/sjis.c: Likewise.
8130         * iconvdata/t.61.c: Likewise.
8131         * iconvdata/uhc.c: Likewise.
8132         * iconvdata/unicode.c: Likewise.
8133         * iconvdata/utf-16.c: Likewise.
8134
8135         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
8136         __cmsg_data field with __extension__.
8137
8138 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
8139
8140         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
8141
8142 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
8143
8144         * iconv/gconv_simple.c: Fix various small bugs in several
8145         functions.
8146
8147         * iconv/loop.c: Fix comment.
8148
8149 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
8150
8151         * elf/link.h: Remove libc internal declarations.
8152         * include/link.h: Move them here.
8153
8154 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
8155
8156         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
8157         Patch by Dan Pop <Dan.Pop@cern.ch>.
8158
8159         Rewrite error message handling.
8160         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
8161         _dl_catch_error.
8162         * elf/dl-error (struct catch): Add objname member.
8163         (_dl_signal_error): Take new parameter with object name.  When
8164         passing message on simply store object name and duplicate error
8165         message.
8166         (_dl_catch_error): Take new parameter.  Store object name in the
8167         place pointed to.
8168         * include/dlfcn.h: Adjust _dl_catch_error prototype.
8169         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
8170         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
8171         (dlerror): Add objname to asprintf() parameters.
8172         (_dl_error_run): Pass new parameter to _dl_catch_error.
8173         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
8174         * elf/dl-open.c (_dl_open): Likewise.
8175         * elf/rtld.c (dl_main): Likewise.
8176         * elf/dl-close.c: Mark error messages with N_().
8177         * elf/dl-deps.c: Likewise.
8178         * elf/dl-error.c: Likewise.
8179         * elf/dl-load.c: Likewise.
8180         * elf/dl-open.c: Likewise.
8181         * elf/dl-reloc.c: Likewise.
8182         * elf/dl-support.c: Likewise.
8183         * elf/dl-sym.c: Likewise.
8184         * elf/dl-version.c: Likewise.
8185         * elf/dl-lookup.c: Add comments about problems with error message
8186         translations.
8187         * elf/dl-reloc.c: Likewise.
8188         * elf/dl-version.c: Likewise.
8189
8190 2000-06-09  H.J. Lu  <hjl@gnu.org>
8191
8192         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
8193         after freeing it.
8194
8195         * dlfcn/Makefile (distribute): Add failtestmod.c.
8196         (tests): Add failtest.
8197         Add rules to build and run failtest.
8198         * dlfcn/failtest.c: New file.
8199         * dlfcn/failtestmod.c: New file.
8200
8201 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
8202
8203         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
8204         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
8205         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
8206         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
8207         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
8208
8209 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
8210
8211         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
8212         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
8213
8214 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
8215             Ulrich Drepper  <drepper@redhat.com>
8216
8217         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
8218         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
8219         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
8220         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
8221         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
8222         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
8223
8224 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
8225
8226         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
8227         to find correct mount point despite wrong information from the
8228         kernel.
8229
8230 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
8231
8232         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
8233         the address of a symbol so function pointers are handled properly.
8234
8235 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
8236
8237         * sysdeps/i386/Dist: Add bp-asm.h.
8238
8239         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
8240         defaultdir variable instead of "/var/shm" everywhere.
8241         (defaultdir): Change to /dev/shm/.
8242
8243 2000-06-08  Greg McGary  <greg@mcgary.org>
8244
8245         * sysdeps/i386/bp-asm.h: New file.
8246         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
8247         offsets.  Add ENTER/LEAVE macros for optionally maintaining
8248         frame-pointer chain when debugging.
8249         * sysdeps/i386/add_n.S: Likewise.
8250         * sysdeps/i386/addmul_1.S: Likewise.
8251         * sysdeps/i386/lshift.S: Likewise.
8252         * sysdeps/i386/memchr.S: Likewise.
8253         * sysdeps/i386/memcmp.S: Likewise.
8254         * sysdeps/i386/mul_1.S: Likewise.
8255         * sysdeps/i386/rawmemchr.S: Likewise.
8256         * sysdeps/i386/rshift.S: Likewise.
8257         * sysdeps/i386/stpcpy.S: Likewise.
8258         * sysdeps/i386/stpncpy.S: Likewise.
8259         * sysdeps/i386/strchr.S: Likewise.
8260         * sysdeps/i386/strchrnul.S: Likewise.
8261         * sysdeps/i386/strcspn.S: Likewise.
8262         * sysdeps/i386/strpbrk.S: Likewise.
8263         * sysdeps/i386/strrchr.S: Likewise.
8264         * sysdeps/i386/strspn.S: Likewise.
8265         * sysdeps/i386/strtok.S: Likewise.
8266         * sysdeps/i386/sub_n.S: Likewise.
8267         * sysdeps/i386/submul_1.S: Likewise.
8268         * sysdeps/i386/elf/setjmp.S: Likewise.
8269         * sysdeps/i386/i486/strcat.S: Likewise.
8270         * sysdeps/i386/i486/strlen.S: Likewise.
8271         * sysdeps/i386/i586/add_n.S: Likewise.
8272         * sysdeps/i386/i586/lshift.S: Likewise.
8273         * sysdeps/i386/i586/memcpy.S: Likewise.
8274         * sysdeps/i386/i586/memset.S: Likewise.
8275         * sysdeps/i386/i586/rshift.S: Likewise.
8276         * sysdeps/i386/i586/strchr.S: Likewise.
8277         * sysdeps/i386/i586/strcpy.S: Likewise.
8278         * sysdeps/i386/i586/strlen.S: Likewise.
8279         * sysdeps/i386/i586/sub_n.S: Likewise.
8280         * sysdeps/i386/i686/add_n.S: Likewise.
8281         * sysdeps/i386/i686/memcpy.S: Likewise.
8282         * sysdeps/i386/i686/mempcpy.S: Likewise.
8283         * sysdeps/i386/i686/memset.S: Likewise.
8284         * sysdeps/i386/i686/strcmp.S: Likewise.
8285
8286 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
8287
8288         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
8289
8290         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
8291         256 and don't use OPEN_MAX.
8292
8293         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
8294         use it instead of LINK_MAX.
8295         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
8296
8297 2000-06-08  Andreas Jaeger  <aj@suse.de>
8298
8299         * libio/genops.c (_IO_list_lock): Only compile body if we're
8300         thread safe.
8301         (_IO_list_unlock): Likewise.
8302         (_IO_list_resetlock): Likewise.
8303
8304 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
8305
8306         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
8307         unless user defined it.
8308
8309         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
8310         if not defined by the user.
8311
8312         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
8313         * libio/iofwrite.c (_IO_fwrite): Likewise.
8314
8315         * time/time.h: Add missing __THROW for clock_getcpuclockid
8316         prototype.
8317
8318         * elf/Makefile (distribute): Add dl-dtprocnum.h.
8319         * include/elf.h: Include also <dl-dtprocnum.h>.
8320         * elf/dl-deps.c: Likewise.
8321         * elf/dl-lookup.c: Likewise.
8322         * elf/dl-runtime.c: Likewise.
8323         * elf/dl-version.c: Likewise.
8324         * elf/do-rel.h: Likewise.
8325         * elf/dynamic-link.h: Likewise.
8326         * elf/link.h: Likewise.
8327         * elf/rtld.c: Likewise.
8328         * sysdeps/generic/dl-dtprocnum.h: New file.
8329         * sysdeps/ia64/dl-dtprocnum.h: New file.
8330         * sysdeps/mips/dl-dtprocnum.h: New file.
8331         * sysdeps/sparc/dl-dtprocnum.h: New file.
8332
8333         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
8334
8335         * elf/do-lookup.h: Add some __builtin_expect.
8336
8337         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
8338
8339         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
8340         (_dl_dynamic_weak): New variable.
8341         * elf/dl-support.c: Likewise.
8342         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
8343         * elf/do-lookup.h: If we find a weak definition treat it like a
8344         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
8345         case treat it like before.
8346
8347         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
8348         is in main program.
8349         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
8350
8351         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
8352         using l_map_start and l_map_end.
8353
8354         * elf/dl-version.c: Add __builtin_expect in many places.
8355
8356         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
8357         Update.
8358
8359 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
8360
8361         Lock for stdio stream list becomes global, for use in LinuxThreads.
8362
8363         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
8364         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
8365         _IO_list_resetlock): New interface for iterating global list of
8366         streams without accessing the _IO_list_all global variable,
8367         and for manipulating the lock which protects this list.
8368         * libio/libioP.h: Likewise.
8369         * libio/Version: Add entries for the new functions.
8370
8371         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
8372         pointer to _IO_FILE.
8373
8374 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
8375
8376         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
8377         BIT() must actually be BITw().
8378
8379         * locale/programs/ld-ctype.c: Handle SP and space consistently.
8380
8381         * locale/programs/charmap.c: Allow string arguments for
8382         code_set_name and repertoiremap.
8383
8384 2000-06-07  Andreas Jaeger  <aj@suse.de>
8385
8386         * elf/Makefile: Build ldconfig only when building shared libraries.
8387
8388 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
8389
8390         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
8391         __USE_ISOC99.
8392         (fdimf, __fdim, fdim): Likewise.
8393
8394 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
8395
8396         * locale/findlocale.c: Add __builtin_expect in many places.
8397         * locale/loadlocale.c: Likewise.
8398
8399 2000-06-06  Greg McGary  <greg@mcgary.org>
8400
8401         * sysdeps/mips/elf/start.S: Trim redundant code.
8402
8403         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
8404         Use C comments throughout.  Line up operands column with tabs.
8405         * sysdeps/powerpc/strchr.S: Likewise.
8406         * sysdeps/powerpc/strcmp.S: Likewise.
8407         * sysdeps/powerpc/strcpy.S: Likewise.
8408         * sysdeps/powerpc/strlen.S: Likewise.
8409
8410         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
8411         Get low part of &__curbrk with @l.
8412
8413 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
8414
8415         * iconvdata/utf-16.c: Add __builtin_expect in many places.
8416         * iconvdata/unicode.c: Likewise.
8417         * iconvdata/uhc.c: Likewise.
8418         * iconvdata/t.61.c: Likewise.
8419         * iconvdata/sjis.c: Likewise.
8420         * iconvdata/johab.c: Likewise.
8421         * iconvdata/iso_6937.c: Likewise.
8422         * iconvdata/iso_6937-2.c: Likewise.
8423         * iconvdata/iso8859-1.c: Likewise.
8424         * iconvdata/iso646.c: Likewise.
8425         * iconvdata/iso-2022-kr.c: Likewise.
8426         * iconvdata/iso-2022-jp.c: Likewise.
8427         * iconvdata/iso-2022-cn.c: Likewise.
8428         * iconvdata/gbgbk.c: Likewise.
8429         * iconvdata/gbk.c: Likewise.
8430         * iconvdata/euc-kr.c: Likewise.
8431         * iconvdata/euc-jp.c: Likewise.
8432         * iconvdata/euc-cn.c: Likewise.
8433
8434 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
8435
8436         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
8437         * iconvdata/big5.c: Likewise.
8438         * iconvdata/ansi_x3.110.c: Likewise.
8439         * iconvdata/8bit-generic.c: Likewise.
8440         * iconvdata/8bit-gap.c: Likewise.
8441         * iconv/loop.c: Likewise.
8442         * iconv/gconv_db.c: Likewise.
8443         * iconv/gconv_dl.c: Likewise.
8444         * iconv/gconv_simple.c: Likewise.
8445         * iconv/skeleton.c: Likewise.
8446
8447         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
8448         (struct __gconv_step_data): Rename __is_last to __flags.
8449         * iconv/gconv_close.c: Change all uses of __is_last.
8450         * iconv/skeleton.c: Likewise.
8451         * iconvdata/iso-2022-cn.c: Likewise.
8452         * iconvdata/iso-2022-jp.c: Likewise.
8453         * iconvdata/iso-2022-kr.c: Likewise.
8454         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
8455         Recognize IGNORE error handling, set flag, and remove from name.
8456         * iconv/loop.c (ignore_errors_p): Define.
8457         Add flags parameter to both functions.
8458         * iconv/skeleton.c: Pass flags to all conversion functions.
8459         * iconv/gconv_simple.c: Add flags parameter to all functions.
8460         Don't return error for invald error if ignore flag is set.
8461         (ucs4_internal_loop_single): Add missing pointer increment.
8462         (internal_ucs4le_loop_single): Likewise.
8463         * iconv/iconv_prog.c: Implement handling of -c parameter.
8464         * iconvdata/8bit-gap.c: Don't return error for invald error if
8465         ignore flag is set.
8466         * iconvdata/8bit-generic.c: Likewise.
8467         * iconvdata/ansi_x3.110.c: Likewise.
8468         * iconvdata/big5.c: Likewise.
8469         * iconvdata/big5hkscs.c: Likewise.
8470         * iconvdata/euc-cn.c: Likewise.
8471         * iconvdata/euc-jp.c: Likewise.
8472         * iconvdata/euc-kr.c: Likewise.
8473         * iconvdata/gbgbk.c: Likewise.
8474         * iconvdata/gbk.c: Likewise.
8475         * iconvdata/iso-2022-cn.c: Likewise.
8476         * iconvdata/iso-2022-jp.c: Likewise.
8477         * iconvdata/iso-2022-kr.c: Likewise.
8478         * iconvdata/iso646.c: Likewise.
8479         * iconvdata/iso8859-1.c: Likewise.
8480         * iconvdata/iso_6937-2.c: Likewise.
8481         * iconvdata/iso_6937.c: Likewise.
8482         * iconvdata/johab.c: Likewise.
8483         * iconvdata/sjis.c: Likewise.
8484         * iconvdata/t.61.c: Likewise.
8485         * iconvdata/uhc.c: Likewise.
8486         * iconvdata/unicode.c: Likewise.
8487         * iconvdata/utf-16.c: Likewise.
8488         * libio/fileops.c: Likewise.
8489         * libio/iofwide.c: Likewise.
8490         * wcsmbs/btowc.c: Likewise.
8491         * wcsmbs/mbrtowc.c: Likewise.
8492         * wcsmbs/mbsnrtowcs.c: Likewise.
8493         * wcsmbs/mbsrtowcs.c: Likewise.
8494         * wcsmbs/wcrtomb.c: Likewise.
8495         * wcsmbs/wcsnrtombs.c: Likewise.
8496         * wcsmbs/wcsrtombs.c: Likewise.
8497         * wcsmbs/wctob.c: Likewise.
8498
8499         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
8500         an error.
8501
8502 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
8503
8504         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
8505         counter for the object we are releasing, just decrement it.
8506         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
8507
8508 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
8509
8510         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
8511         if -ffast-math.
8512
8513 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
8514
8515         * iconvdata/big5hkscs.c: New file.
8516         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
8517
8518         * iconvdata/gconv-modules: Add entry for new module.
8519         * iconvdata/Makefile (modules): Add BIG5HKSCS.
8520         (distribute): Add big5hkscs.c.
8521
8522 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
8523
8524         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
8525         inlines to match prototypes in mathcalls.h.
8526         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8527         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
8528         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8529         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8530
8531 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
8532
8533         * elf/elf.h (SHT_SUNW_move): Define.
8534
8535         * elf/elf.h: Add more Solaris compatiblity definitions.
8536
8537 2000-06-03  Andreas Jaeger  <aj@suse.de>
8538
8539         * sysdeps/powerpc/dl-start.S: Close open comment.
8540
8541 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
8542
8543         * inet/Versions: Fix typo in rresvport_af export.
8544
8545 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
8546
8547         * math/tgmath.h: Pretty print.
8548
8549 2000-06-02  Andreas Jaeger  <aj@suse.de>
8550
8551         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
8552         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
8553
8554 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
8555
8556         * elf/rtld.c (process_envvars): Test for = after variable name.
8557
8558 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
8559
8560         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
8561         have extra call to __gmon_start__, use the pointer we already have.
8562
8563         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
8564         shifting.
8565
8566         * sysdeps/i386/elf/setjmp.S: Work around change is recent
8567         binutils.  gas now emits a jump through the PLT instead of a
8568         relative jump if the jump target is an exported symbol.
8569
8570 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
8571
8572         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
8573
8574 2000-05-31  Andreas Jaeger  <aj@suse.de>
8575
8576         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
8577         gregset_t.
8578
8579         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
8580         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
8581
8582         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
8583         syscall.
8584         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
8585
8586 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
8587
8588         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
8589
8590         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
8591         * locale/localeconv.c: Make function versioned (with same definition).
8592
8593         * elf/Makefile (modules-names): Strip before using it.
8594
8595 2000-05-30  Andreas Jaeger  <aj@suse.de>
8596
8597         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
8598         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
8599         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
8600         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
8601         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
8602         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
8603
8604 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
8605
8606         * Makefile: Add GNU make magic.
8607
8608         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
8609         Removed.
8610         * inet/rcmd.c: Remove __P.  Remove unused variables.
8611         (iruserfopen): Make first parameter const.
8612         (ruserok_sa): Return result of ruserok2_sa.
8613         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
8614         * inet/rexec.c: Remove unused variables.  Other small cleanups.
8615         * inet/ruserpass.c: Remove __P.  Remove unused variables.
8616         (ruserpass): Check results of memory allocation.
8617         * include/netdb.h: Add prototype for ruserpass.
8618
8619 2000-05-29  Andreas Jaeger  <aj@suse.de>
8620
8621         * elf/readlib.c (interpreters): Use LD_SO since this is supported
8622         for all platforms.
8623
8624 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
8625
8626         * inet/rcmd.c (rresvport_af): Use correct port number.
8627
8628 2000-05-26  Andreas Schwab  <schwab@suse.de>
8629
8630         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
8631         entries in all-sonames.
8632         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
8633         preserving the old name if different for compatibility.
8634
8635 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
8636
8637         * posix/Makefile (tests): Add tst-spawn.
8638         (tst-spawn-ARGS): New variable.
8639         * posix/tst-spawn.c: New file.
8640
8641         * posix/spawn_faction_addclose.c: Correctly account for new entry.
8642         * posix/spawn_faction_adddup2.c: Likewise.
8643         * posix/spawn_faction_addopen.c: Likewise.
8644         * posix/spawni.c: Correctly test for success of dup2 calls.
8645
8646         * posix/tst-preadwrite.c: Check success of malloc call.
8647
8648 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8649
8650         * posix/Makefile (tests): Add tst-exec.
8651         (tst-exec-ARGS): New variable.
8652         * posix/tst-exec.c: New file.
8653
8654         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
8655
8656 2000-05-04  Andreas Jaeger  <aj@suse.de>
8657
8658         * string/string.h: Remove __strdup prototype, it's not needed in
8659         this file anymore.
8660
8661 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8662
8663         * posix/Makefile (tests): Add tst-fork.
8664         * posix/tst-fork.c: New file.
8665
8666         * resolv/inet_pton.c: Loose __P.
8667
8668 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8669
8670         * libio/libioP.h (_IO_CHECK_WIDE): Define.
8671         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
8672         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8673         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
8674         _IO_CHECK_WIDE fails.
8675
8676 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8677
8678         * po/da.po: New file.
8679
8680         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
8681         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
8682
8683         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
8684         (Other iconv Implementations): Fix typo.
8685         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
8686
8687 2000-05-27  Andreas Jaeger  <aj@suse.de>
8688
8689         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
8690         normal version now.
8691         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
8692         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
8693         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
8694         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
8695         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
8696         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
8697
8698         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
8699         endianness to decide how to pass arguments.
8700         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
8701
8702         * elf/vismain.c: Use test-skeleton interface.
8703         (TEST_FUNCTION): New macro.
8704         (do_test): Renamed from main.
8705
8706 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
8707
8708         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
8709         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
8710
8711         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
8712         handling of AI_V4MAPPED flag.
8713
8714         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
8715         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
8716         perform lookup for T_A type and tell getanswer_r to convert the
8717         result with new argument.
8718         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
8719         Don't convert addresses from IPv4 to IPv6 here.
8720         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
8721         IPv6 is wanted.  Allow qtype and type from reply to disagree if
8722         IPv4 mapping has to be done.  Perform mappings if required by the
8723         caller and not if RES_USE_INET6 bit in _res.options is set.
8724         Add several __builtin_expect.
8725
8726 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
8727
8728         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
8729
8730         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
8731         NULL.
8732
8733         * posix/tst-preadwrite.c: Allow parallel execution of
8734         tst-preadwrite and tst-preadwrite64.
8735
8736         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
8737         * posix/tst-truncate.c: New file.
8738         * posix/tst-truncate64.c: New file.
8739
8740         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
8741         was switched.
8742
8743         * posix/Makefile (tests): Add tst-preadwrite64.
8744         * posix/tst-preadwrite.c: Alloc file being used also for testing
8745         pread64 and pwrite64.
8746         * posix/tst-preadwrite64.c: New file.
8747
8748 2000-05-26  Andreas Jaeger  <aj@suse.de>
8749
8750         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
8751         of arguments dependend on endianness.
8752         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
8753
8754         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
8755         normal version now.
8756         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
8757         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
8758         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8759         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8760
8761         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
8762         endianness to check how to pass argument.
8763         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
8764
8765         * elf/ldconfig.h: Update parameter list for process_elf_file.
8766
8767         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
8768         Add parameter file_length and pass it ot process_elf*file.
8769
8770         * sysdeps/generic/readelflib.c (check_ptr): New.
8771         (process_elf_file): Use check_ptr to check all accesses to the
8772         mmapped file. Add parameter file_length.
8773
8774         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
8775         library names.
8776
8777         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
8778         Closes PR libc/1573, reported by Bradley White
8779         <bww@laurelnetworks.com>.
8780
8781 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
8782
8783         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
8784         __FAST_MATH__ is defined.
8785
8786 2000-05-22  Andreas Jaeger  <aj@suse.de>
8787
8788         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
8789         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
8790
8791         * manual/math.texi (FP Function Optimizations): Document gcc
8792         -ffast-math behaviour with mathinlines.
8793
8794         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
8795         functions unless -ffast-math is given to gcc.
8796
8797 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
8798
8799         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
8800         __sincosl): Guard with __USE_GNU.
8801
8802 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
8803
8804         * csu/Makefile (routines): Add check_fds.
8805         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
8806         binaries.  Add various __builtin_expect.
8807         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
8808         * sysdeps/generic/check_fds.c: ...here.  New file.
8809
8810         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
8811         binaries if file /etc/suid-debug is available.
8812
8813         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
8814         and wcseqorder members.
8815         (struct locale_collate_t): Likewise.
8816         (collate_finish): Assign collation sequence value to each character.
8817         Create tables for output.
8818         (collate_output): Write out tables with collation sequence information.
8819         * locale/C-collate.c: Provide C locale data for collation sequence
8820         table.
8821         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
8822         _NL_COLLATE_COLLSEQWC.
8823         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
8824         _NL_COLLATE_COLLSEQWC.
8825         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
8826         include fnmatch_loop.c.
8827         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
8828         character is matched by range expression.  Use collation sequence
8829         table.  Outside glibc fall back on simple character value comparison.
8830
8831 2000-05-24  Andreas Jaeger  <aj@suse.de>
8832
8833         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
8834         words.
8835
8836         * intl/Makefile: Run gettext-test only if msgfmt is available.
8837
8838         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
8839         Define it for newer kernels.
8840
8841 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
8842
8843         * elf/dl-sym.c: Minor cleanups.
8844
8845         * configure.in: Add test for .protected.
8846         * config.make.in: Add have-protected variable.
8847         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
8848         (tests-vis-yes): Add vismain.
8849         (modules-names): Add $(modules-vis-$(have-protected)).
8850         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
8851         Add rules to generate and run vismain.
8852         * elf/vismain.c: New file.
8853         * elf/vismod1.c: New file.
8854         * elf/vismod2.c: New file.
8855         * elf/vismod3.c: New file.
8856
8857 2000-05-23  Andreas Jaeger  <aj@suse.de>
8858
8859         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
8860
8861         * manual/search.texi (Array Sort Function): Document that qsort is
8862         not necessarily in-place.
8863
8864         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
8865         Closes PR libc/1731.
8866
8867         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
8868         * dirent/scandir64.c: Likewise.
8869         * pwd/getpw.c: Likewise.
8870         * stdlib/bsearch.c (bsearch): Likewise.
8871         * stdlib/tst-strtoll.c: Likewise.
8872         * localedata/collate-test.c: Likewise.
8873         * localedata/xfrm-test.c: Likewise.
8874         * posix/bsd-getpgrp.c: Likewise.
8875         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
8876         * sysdeps/generic/bits/siginfo.h: Likewise.
8877         * sysdeps/generic/bits/sockaddr.h: Likewise.
8878         * sysdeps/generic/sys/swap.h: Likewise.
8879         * sysdeps/generic/sys/sysinfo.h: Likewise.
8880         * sysdeps/generic/vfork.c: Likewise.
8881         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
8882         * sysdeps/mach/hurd/fdopen.c: Likewise.
8883         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
8884         * sysdeps/unix/sysv/linux/poll.c: Likewise.
8885         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8886         * sysdeps/unix/sysv/linux/writev.c: Likewise.
8887         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
8888         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
8889         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
8890
8891         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
8892         * shadow/lckpwdf.c: Likewise.
8893         * stdlib/tst-strtol.c: Likewise.
8894         * sysdeps/generic/tcsetattr.c: Likewise.
8895         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8896         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8897
8898 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
8899
8900         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
8901         free it and set to (void *) -1.
8902
8903 2000-05-22  Jakub Jelinek <jakub@redhat.com>
8904
8905         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
8906         not the second character in the range.
8907         * stdio-common/tstscanf.c (main): Add testcase for the above.
8908         Reported by jik@kamens.brookline.ma.us.
8909
8910 2000-05-21  H.J. Lu  <hjl@gnu.org>
8911
8912         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
8913         with noexec and noplt parameter.
8914         (do_lookup): Likewise.
8915
8916         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
8917         do_lookup.  Support STV_PROTECTED.
8918         (_dl_lookup_symbol_skip): Likewise.
8919         (_dl_lookup_versioned_symbol): Likewise.
8920         (_dl_lookup_versioned_symbol_skip): Likewise.
8921
8922         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
8923
8924         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
8925
8926 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8927
8928         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
8929         * sysdeps/i386/bits/huge_val.h: Likewise.
8930         * sysdeps/ieee754/bits/huge_val.h: Likewise.
8931         * sysdeps/m68k/bits/huge_val.h: Likewise.
8932         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
8933         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
8934
8935 2000-05-22  Andreas Jaeger  <aj@suse.de>
8936
8937         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
8938         change in iconv.h.
8939
8940 2000-05-19  Andreas Jaeger  <aj@suse.de>
8941
8942         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
8943         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
8944         breaks compilation without linuxthreads.
8945
8946 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8947
8948         * sysdeps/ia64/memccpy.S: New file.
8949         * sysdeps/ia64/memchr.S: New file.
8950         * sysdeps/ia64/memcmp.S: New file.
8951         * sysdeps/ia64/memcpy.S: New file.
8952         * sysdeps/ia64/memmove.S: New file.
8953         * sysdeps/ia64/memset.S: New file.
8954         * sysdeps/ia64/strcat.S: New file.
8955         * sysdeps/ia64/strchr.S: New file.
8956         * sysdeps/ia64/strcmp.S: New file.
8957         * sysdeps/ia64/strcpy.S: New file.
8958         * sysdeps/ia64/strlen.S: New file.
8959         * sysdeps/ia64/strncmp.S: New file.
8960         * sysdeps/ia64/strncpy.S: New file.
8961         * sysdeps/ia64/softpipe.h: New file.
8962         Patches by Dan Pop <Dan.Pop@cern.ch>.
8963
8964         * manual/memory.texi: Document memory handling functions (mlock,
8965         munlock, mlockall, munlockall, brk, and sbrk)
8966         * manual/time.texi: Document timespec and friends.
8967         * manual/conf.texi: Fix references.
8968         * manual/ctype.texi: Likewise.
8969         * manual/errno.texi: Likewise.
8970         * manual/intro.texi: Likewise.
8971         * manual/locale.texi: Likewise.
8972         * manual/sysinfo.texi: Likewise.
8973         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8974
8975 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
8976
8977         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
8978         * sysdeps/ia64/dl-lookupcfg.h: ...here.
8979
8980 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8981
8982         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
8983         dxfer_direction.
8984
8985 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8986
8987         * locale/locale.h (struct lconv): Add new elements from ISO C99.
8988         * locale/localeconv.c: Initialize new elements from ISO C99.
8989         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
8990         new standard elements.
8991         * locale/categories.def: Adjust accordingly.
8992
8993         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
8994         * iconv/iconv.c: Likewise.
8995         * conform/data/iconv.h-data: Likewise.
8996         * iconv/iconv_prog.c (process_block): Remove const from second
8997         parameter.
8998         (main): Remove const from addr definition.
8999         * manual/charset.texi (Generic Conversion Interface): Remove from
9000         inbuf parameter of iconv.
9001
9002         * intl/dcigettext.c: Fix typo in comment.
9003
9004 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
9005
9006         * resolv/res_libc.c (_res): Initialize _sock to -1.
9007
9008 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
9009
9010         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
9011         (fopencookie@@GLIBC_2.2): New.
9012         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
9013         (fopencookie@GLIBC_2.0): New.
9014         * libio/Versions: Add fopencookie to GLIBC_2.2.
9015
9016 2000-05-18  Andreas Jaeger  <aj@suse.de>
9017
9018         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
9019         Closes PR libc/1731.
9020
9021         * manual/arith.texi (Parsing of Integers): Fix typo.
9022         Closes PR libc/1744, reported by blp@gnu.org.
9023
9024 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
9025
9026         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
9027         __extension__ to hexadecimal floating constant notation.
9028         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
9029         Likewise.
9030         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
9031         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
9032         Likewise.
9033         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
9034         HUGE_VALL): Likewise.
9035         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
9036         HUGE_VALL): Likewise.
9037         (HUGE_VALL): Set to HUGE_VAL on sparc32.
9038
9039 2000-05-17  Andreas Jaeger  <aj@suse.de>
9040
9041         * string/envz.h: Add pure attributes if possible.
9042
9043         * string/argz.h: argz_count is a pure function.
9044
9045         * string/strings.h: Add pure and const attributes if possible.
9046
9047         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
9048         possibly searching through the whole memory.
9049         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
9050
9051 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
9052
9053         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
9054         not yet defined.
9055         (_dl_cache_check_flags): Likewise.
9056         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
9057         dl-cache.h.
9058
9059 2000-05-17  Andreas Jaeger  <aj@suse.de>
9060
9061         * manual/creature.texi (Feature Test Macros): Remove paragraph
9062         since the description is wrong.
9063         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
9064
9065         * scripts/config.sub: New version.
9066         * scripts/config.guess: Likewise.
9067         * manual/texinfo.tex: Likewise.
9068
9069         * time/test_time.args: Removed.
9070         * time/Makefile (test_time-ARGS): Added contents here instead.
9071
9072         * posix/tstgetopt.args: Removed.
9073         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
9074
9075         * Rules: Allow arguments for test files to be specified in
9076         Makefile with testname-ARGS; remove rules with .args in it.
9077
9078         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
9079         remove old bogus rule for opendir-tst1.args.
9080
9081         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
9082
9083         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
9084         into objdir.  This allows a readonly sourcetree.
9085         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
9086
9087 2000-05-16  Andreas Jaeger  <aj@suse.de>,
9088             David Huggins-Daines <dhd@linuxcare.com>
9089
9090         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
9091         cache_data in case of only new cache format correctly.
9092
9093         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
9094         cache_file_new.
9095
9096         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
9097         struct cache_file_new.
9098
9099         * elf/cache.c (save_cache): Fix str_offset if only new cache is
9100         present.
9101
9102         * elf/cache.c (save_cache): Align struct new_file_cache.
9103         (print_cache): Likewise.
9104
9105 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
9106
9107         * elf/soinit.c (__libc_global_ctors): Move
9108         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
9109         * resolv/resolv.h (__res_state): Added __attribute__((const)).
9110         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
9111         variable, don't define it to __res_state call.
9112
9113 2000-05-13  Andreas Jaeger  <aj@suse.de>
9114
9115         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
9116         Linux 2.3.99pre7.
9117         (AF_PPPOX): Likewise.
9118         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
9119         (AF_PPPOX): Likewise.
9120
9121 2000-05-12  Andreas Jaeger  <aj@suse.de>
9122
9123         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
9124         Reported by tmoestl@gmx.net, closes PR libc/1732.
9125
9126 2000-05-11  Jan Hubicka  <jh@suse.cz>
9127
9128         * misc/sys/cdefs.h: Add support for pure attribute.
9129
9130         * include/string.h: Add __attribute_pure__ to various functions.
9131         * string/string.h: Likewise.
9132
9133 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
9134
9135         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
9136         argument.
9137         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9138         R_SPARC_UA64.
9139         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
9140
9141 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
9142
9143         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
9144         at proper place.  Compute the high nibble correctly.
9145
9146 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
9147
9148         * elf/ldconfig.c: Include elf.h.
9149
9150         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
9151         (_dl_vsym): Likewise.
9152         Reported by Owen Taylor <otaylor@redhat.com>.
9153
9154         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
9155         always.
9156
9157 2000-05-08  Andreas Jaeger  <aj@suse.de>
9158
9159         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
9160
9161         * intl/bindtextdom.c (set_binding_values): Add prototype.
9162
9163 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
9164
9165         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
9166         call to elf_machine_fixup_plt.
9167         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
9168         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
9169
9170 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
9171
9172         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
9173         they are not dlclose'd from underneath us.
9174
9175 2000-05-08  Andreas Schwab  <schwab@suse.de>
9176
9177         * posix/execle.c: Fix size parameter of memcpy.
9178
9179 2000-05-08  Andreas Schwab  <schwab@suse.de>
9180
9181         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
9182         getpagesize syscall if available.
9183
9184 2000-05-08  Andreas Jaeger  <aj@suse.de>
9185
9186         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
9187         set errno.
9188
9189 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
9190
9191         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
9192         sizeof(struct link_map *) chunks, not in bytes.
9193
9194 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
9195
9196         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
9197         only needed for locale.
9198         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
9199         It's only needed for catgets.
9200         Patches by Greg McGary <gkm@eng.ascend.com>.
9201
9202 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
9203
9204         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
9205         Remove duplicate <errno.h> include.  Remove inclusion of
9206         <libintl.h> and "nsswitch.h".
9207         (set_cloexec_flag): New function, broken out of dbopen.
9208         (dbopen): Changed return type to `enum
9209         nss_status'.  Mostly rewritten to make sure that we do not report
9210         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
9211         (internal_setent): Change return type to nss_status.
9212         Document, and make sure that the function
9213         behaves accordingly.  Make dynamically loading the database
9214         library really thread-safe and return NSS_STATUS_UNAVAIL if it
9215         failed.
9216         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
9217         unecessary casts.
9218         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
9219         documentation.
9220         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
9221         c_get function member.
9222         * nss/nss_db/nss_db.h: Add and tweak some comments.
9223         (DBT): Move typedef before NSS_DBC typedef.
9224         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
9225
9226 2000-05-07  H.J. Lu  <hjl@gnu.org>
9227
9228         * csu/initfini.c: Moved to ....
9229         * sysdeps/generic/initfini.c: ...here.
9230
9231         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
9232
9233 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
9234
9235         * manual/resource.texi: Document POSIX scheduling functions.
9236         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9237
9238         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
9239         reading anything.  Reported by Andries.Brouwer@cwi.nl.
9240
9241         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
9242         for x since promotion in comparison might leads to unexpected
9243         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
9244
9245         * iconv/Makefile (tests): Add tst-iconv1.
9246         * iconv/tst-iconv1.c: New file.
9247         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
9248         empty input buffer over full output buffer.
9249         (ucs4_internal_loop): Likewise.
9250         (ucs4_internal_loop_unaligned): Likewise.
9251         (internal_ucs4le_loop): Likewise.
9252         (internal_ucs4le_loop_unaligned): Likewise.
9253         (ucs4le_internal_loop): Likewise.
9254         (ucs4le_internal_loop_unaligned): Likewise.
9255         Reported by yaoz@nih.gov.
9256
9257 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
9258
9259         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
9260         returned != __GCONV_OK, there is nothing to clean up.
9261
9262 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
9263
9264         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
9265         OUTPUT_CHARSET environment variables.
9266
9267 2000-05-06  Andreas Jaeger  <aj@suse.de>
9268
9269         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
9270         (struct cache_file_new): New.
9271         (struct file_entry): New (moved from cache.c).
9272         (struct cache_file): New (moved from cache.c).
9273
9274         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
9275         from _dl_load_cache_lookup.
9276         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
9277         the different cache formats.
9278         New variable cache_new for new format.
9279
9280         * elf/ldconfig.h: Change according to changes in cache.c and
9281         ldconfig.c; remove cache_libcmp; add opt_format.
9282
9283         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
9284         stuff that's defined in those headers.
9285         Add hwcap to struct lib_entry.
9286         (opt_format): New variable to select cache format.
9287         (options): Add format parameter.
9288         (is_hwcap): New function.
9289         (path_hwcap): New function.
9290         (parse_opt): Handle new format parameter.
9291         (search_dir): Handle hwcap, search also subdirectories with hwcap.
9292
9293         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
9294         ldconfig is part of glibc.
9295         Include dl-cache.h and remove stuff that's defined there.
9296         (struct cache_entry): Add new member hwcap.
9297         (print_entry): Print hwcap, cleanup a bit.
9298         (print_cache): Print new and old formats.
9299         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
9300         (save_cache): Save new and old formats.
9301         (add_to_cache): Handle hwcap.
9302
9303         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
9304         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
9305         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
9306         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
9307         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
9308         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
9309
9310 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
9311
9312         * intl/dcigettext.c (alignof): New macro.
9313         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
9314         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
9315         freemem_size to 0.
9316
9317 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
9318
9319         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
9320         return value.
9321
9322 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
9323
9324         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
9325         (mempcpy): Correct typo is parameter list.
9326
9327 2000-05-06  Andreas Jaeger  <aj@suse.de>
9328
9329         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
9330         functions unless -ffast-math is given to gcc.
9331
9332 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
9333
9334         * po/ko.po: Update from translation team.
9335
9336 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
9337
9338         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
9339         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
9340         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
9341         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
9342         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
9343         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
9344
9345         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
9346         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
9347         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
9348
9349         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
9350         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
9351         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
9352         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
9353
9354         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
9355         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
9356
9357 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
9358
9359         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
9360         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
9361
9362         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
9363         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
9364
9365         * sysdeps/ia64/Implies: New file.
9366         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
9367         * sysdeps/ia64/Makefile: New file.
9368         * sysdeps/ia64/gmp-mparam.h: New file,
9369
9370         * sysdeps/ia64/elf/start.S: New file.
9371
9372         * sysdeps/ia64/bits/fenv.h: New file.
9373
9374 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
9375
9376         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
9377
9378 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
9379
9380         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
9381         ia64 has 64 bit .hash entries just as the Alpha.
9382
9383 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
9384
9385         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
9386
9387 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
9388
9389         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
9390         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
9391         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
9392         * sysdeps/ia64/fpu/fegetenv.c: New file.
9393         * sysdeps/ia64/fpu/fegetexcept.c: New file.
9394         * sysdeps/ia64/fpu/fegetround.c: New file.
9395         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
9396         * sysdeps/ia64/fpu/fesetenv.c: New file.
9397         * sysdeps/ia64/fpu/fesetround.c: New file.
9398         * sysdeps/ia64/fpu/feupdateenv.c: New file.
9399         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
9400         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
9401         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
9402         * sysdeps/ia64/fpu/ftestexcept.c: New file.
9403
9404 2000-05-05  Andreas Jaeger  <aj@suse.de>
9405
9406         * misc/tst-tsearch.c (main): Correct type for initstate argument.
9407
9408         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
9409         (_dl_string_hwcap): New, does nothing.
9410
9411         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
9412         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
9413         (_dl_string_hwcap): New function, converts from string to hwcap
9414         encoding.
9415         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
9416         (_DL_HWCAP_COUNT): New.
9417         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
9418         (_dl_string_hwcap): New function, converts from string to hwcap
9419         encoding.
9420         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
9421         (_DL_HWCAP_COUNT): New.
9422         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
9423         (_dl_string_hwcap): New function, converts from string to hwcap
9424         encoding.
9425
9426 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
9427
9428         * elf/Makefile (distribute): Add dl-lookupcfg.h.
9429         * sysdeps/ia64/Dist: New file.
9430
9431         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
9432         parameter to mprotect and for variable assignments.
9433
9434 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
9435
9436         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
9437         validity of map before dereferencing it.
9438
9439         * elf/dl-reloc.c (RESOLVE_MAP): Define.
9440
9441 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
9442
9443         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
9444         lookup to the arguments to elf_machine_fixup_plt().
9445
9446         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
9447         of the symbol being resolved to input argument list and make the
9448         function return the pointer to the reloc.
9449
9450         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
9451         return valuie to lookup_t and return the value.
9452         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
9453         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
9454         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
9455         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
9456         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
9457         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
9458
9459         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
9460         Make it an inline function returning value after calling
9461         __elf_machine_fixup_plt().
9462
9463         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
9464         symbol address.
9465
9466         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
9467         obtain the symbol address.
9468
9469         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
9470         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
9471
9472         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
9473         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
9474         inline on non ia64.
9475
9476 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
9477
9478         * elf/dl-runtime.c (fixup): Use the portable macros to get the
9479         symbol address of an object.
9480
9481         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
9482         the symbol address of an object.
9483
9484         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
9485         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
9486         (_dl_lookup_symbol_skip): Likewise.
9487         (_dl_lookup_versioned_symbol): Likewise.
9488         (_dl_lookup_versioned_symbol_skip): Likewise.
9489
9490 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
9491
9492         * elf/rtld.c (_dl_start): Get the function pointer return address
9493         via _dl_start_address for architectures that need a function
9494         pointer descriptor rather than just a pointer (ia64).
9495
9496         * sysdeps/generic/dl-lookupcfg.h: New file.
9497         * sysdeps/ia64/dl-lookupcfg.h: New file.
9498         * sysdeps/ia64/dl-machine.h: New file.
9499         * sysdeps/ia64/dl-symaddr.c: New file.
9500         * sysdeps/ia64/dl-fptr.c: New file.
9501
9502         * elf/elf.h: Add IA-64 specific definitions.
9503
9504 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
9505
9506         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
9507         end of enum.
9508
9509 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
9510
9511         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
9512         happy.
9513
9514 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
9515
9516         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
9517         symbol.  Call _dl_init rather than the old way.
9518
9519 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
9520
9521         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
9522         test for pointer in range of DSO address space.
9523
9524 2000-05-04  Andreas Jaeger  <aj@suse.de>
9525
9526         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
9527
9528 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
9529
9530         * locale/findlocale.c (_nl_find_locale): Add new parameter to
9531         calls of _nl_make_l10nflist.
9532
9533         * libio/stdio.h: Make fseeko and ftello prototypes available is
9534         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
9535
9536         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
9537         real unsetenv implementation from 1999-07-29 [PR libc/1714].
9538
9539 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
9540
9541         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
9542         before calling tfind.
9543
9544 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
9545
9546         * resolv/resolv.h (res_querydomain): Remove redefinition to
9547         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
9548
9549 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
9550
9551         * po/gl.po: Update from translation team.
9552
9553         * manual/intro.texi (Program Basics): Change section title.
9554         * manual/process.texi: Fix reference.
9555         (Executing a File): Add reference exec in other section.
9556         * manual/signal.texi: Fix reference.
9557         * manual/startup.texi: Document syscall function.
9558         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
9559
9560 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
9561
9562         * intl/libintl.h (bind_textdomain_codeset): New declaration.
9563         * intl/bindtextdom.c (set_binding_values): New function.
9564         (bindtextdomain): Call it.
9565         (bind_textdomain_codeset): New function.
9566         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
9567         (free_mem): Free each binding's codeset.
9568         * intl/gettextP.h (struct binding): Add codeset field.
9569         (_nl_find_domain): Add domainbinding argument.
9570         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
9571         Pass it to _nl_make_l10nflist.
9572         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
9573         (_nl_make_l10nflist): Add domainbinding argument.
9574         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
9575         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
9576         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
9577         locale_charset().
9578         * manual/message.texi: New node "Charset conversion in gettext".
9579
9580 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
9581
9582         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
9583         appropriate.  Handle possible __read error.
9584
9585 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
9586
9587         * intl/gettextP.h (__builtin_expect): Define as empty if not a
9588         compiler builtin.
9589         * intl/loadinfo.h (__builtin_expect): Likewise.
9590         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
9591         __builtin_expect where appropriate.
9592         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
9593         * intl/localealias.c (extend_alias_table): Return an error indicator.
9594         (read_alias_file): Bail out if extend_alias_table fails.
9595
9596 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
9597
9598         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
9599         * intl/localealias.c: Likewise.
9600
9601 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
9602
9603         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
9604         Initialize domain->plural and domain->nplurals even if there is no
9605         nullentry.
9606
9607 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
9608
9609         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
9610         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
9611         In case of failure, goto converted.
9612
9613 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
9614
9615         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
9616         * iconv/gconv_int.h (norm_add_slashes): Move to here.
9617         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
9618         __gconv_open.
9619
9620 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
9621
9622         * intl/dcigettext.c (transcmp): Compare the domains as well.
9623         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
9624         not before.
9625         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
9626         <errno.h>.
9627
9628 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
9629
9630         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
9631         Reported by Bruno Haible.
9632
9633 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
9634
9635         * manual/arith.texi: Remove @w from @itemize.
9636
9637 2000-05-02  Andreas Jaeger  <aj@suse.de>
9638
9639         * conform/data/tar.h-data: Add some checks for specific values.
9640
9641         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
9642         and RAND_MAX.
9643
9644         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
9645         FOPEN_MAX.
9646
9647         * conform/data/netinet/in.h-data: Add exact checks for the values
9648         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
9649
9650         * conform/data/float.h-data: Add some minimal values.
9651
9652         * conform/conformtest.pl: Test for macros with string constants,
9653         check for minimum and maximum values.
9654         Add limits.h to headers.
9655
9656         * conform/data/cpio.h-data: Test for value of MAGIC.
9657
9658         * conform/data/limits.h-data: New file.
9659
9660 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
9661
9662         * math/Makefile (headers): Add bits/fenvinline.h.
9663
9664 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
9665
9666         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
9667         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
9668
9669         * posix/Versions: Change posix_spawnattr_getdefault and
9670         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
9671         and posix_spawnattr_setsigdefault respectively.
9672         * posix/spawn.h: Likewise.
9673         * posix/spawnattr_getdefault.h: Likewise.
9674         * posix/spawnattr_setdefault.h: Likewise.
9675         * conform/data/spawn.h-data: Likewise.
9676
9677 2000-05-01  Andreas Jaeger  <aj@suse.de>
9678
9679         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
9680
9681 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
9682
9683         * manual/sysinfo.texi: Document getdomainname, setdomainname
9684         and sysctl.
9685         * manual/string.texi: Fix typo.
9686         * manual/terminal.texi: Document gtty and stty.
9687         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9688
9689 2000-04-30  Andreas Jaeger  <aj@suse.de>
9690
9691         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
9692         accordance with Austin Draft.
9693
9694 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
9695
9696         * catgets/gencat.c (read_input_file): Use isblank and not isspace
9697         to recognize second character in comment line.
9698
9699         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
9700         ENOBUFS if we are out of memory.
9701
9702         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
9703         available if __USE_XOPEN2K.
9704         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9705         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9706         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9707         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9708         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9709         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9710         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
9711         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9712
9713 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
9714
9715         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
9716         Recognize option -s, -c, and -l.
9717
9718 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
9719
9720         * nscd/nscd.c: Start new session for nscd, drop privilegs
9721         to configured user if requested and no -S parameter are used.
9722         * nscd/nscd.conf: Add new option "server-user".
9723         * nscd/nscd_conf.c: Add support for new "server-user" option.
9724         * nscd/nscd.h: Add declaration for server_user variable.
9725         Based on patch by Chris Wing <wingc@engin.umich.edu>
9726
9727 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9728
9729         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
9730         that changing the __restore and __restore_rt signal return code
9731         will break GDB.
9732
9733 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9734
9735         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
9736         <sys/user.h>.
9737
9738 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9739
9740         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
9741
9742 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
9743
9744         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
9745         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
9746         arpa/inet.h.
9747         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
9748         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
9749         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
9750         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
9751         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
9752         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
9753         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
9754         posix_fallocate, and posix_madvise.
9755         * conform/data/netdb.h-data: New file.
9756         * conform/data/pthread.h-data: Add pthread_barrier_t,
9757         pthread_barrierattr_t, pthread_barrier_destroy,
9758         pthread_barrier_init, pthread_barrier_wait,
9759         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
9760         pthread_barrierattr_init, pthread_barrierattr_setpshared,
9761         pthread_condattr_getclock, pthread_condattr_setclock,
9762         pthread_getcpuclockid, pthread_mutex_timedlock,
9763         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
9764         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
9765         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
9766         * conform/data/sched.h-data: Add sched_ss_low_priority,
9767         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
9768         SCHED_SPORADIC.
9769         * conform/data/semaphore.h-data: Add sem_timedwait.
9770         * conform/data/signal.h-data: Add SIGIO.
9771         * conform/data/spawn.h-data: New file.
9772         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
9773         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
9774         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
9775         Fix typo in gmtime_r definition.
9776         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
9777         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
9778         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
9779         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
9780         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
9781         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
9782         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
9783         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
9784         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
9785         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
9786         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
9787         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
9788         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
9789         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
9790         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
9791         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
9792         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
9793         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
9794         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
9795         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
9796         typo in off_t definition.
9797         * conform/data/net/if.h-data: New file.
9798         * conform/data/netinet/in.h-data: New file.
9799         * conform/data/netinet/tcp.h-data: New file.
9800         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
9801         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
9802         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
9803         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
9804         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
9805         and posix_typed_mem_open.
9806         * conform/data/sys/socket.h-data: New file.
9807         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
9808         * conform/data/sys/types.h-data: Add pthread_barrier_t,
9809         pthread_barrierattr_t, and pthread_spinlock_t.
9810         * conform/data/sys/un.h-data: New file.
9811         * conform/data/sys/utsname.h-data: New file.
9812
9813         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
9814         parameter.
9815         * inet/gethstbyad.c (gethostbyname): Likewise.
9816         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
9817         * inet/getipnodebyad.c (getipnodebyad): Likewise.
9818         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
9819         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
9820         Likewise.
9821         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
9822         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
9823         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
9824         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
9825         * resolv/gethnamaddr.c (gethostbyname): Likewise.
9826         * resolv/netdb.h (struct hostent): Fix type of h_length member.
9827         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
9828         and second parameter.
9829
9830         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
9831         == NULL.
9832
9833 2000-04-29  Andreas Jaeger  <aj@suse.de>
9834
9835         * conform/data/arpa/inet.h-data: New file.
9836
9837 2000-04-28  Geoff Clare <gwc@unisoft.com>
9838
9839         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
9840         path passed to ftw() or nftw() is an empty string.
9841         Closes PR libc/1710.
9842
9843 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9844
9845         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
9846         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
9847         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
9848         * localedata/tst-mbswcs4.c: New file.
9849         * localedata/tst-mbswcs5.c: New file.
9850
9851         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
9852         == NULL.  Little optimization.
9853
9854         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
9855         DT_PREINIT_ARRAYSZ).
9856         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
9857
9858         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
9859         overflows in conversion from ASCII.
9860
9861 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9862
9863         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
9864         * Makerules (full_config_sysdirs): Likewise.
9865         * MakeTAGS (full_config_sysdirs): Likewise.
9866
9867 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9868
9869         * .cvsignore: Remove linuxthreads.
9870         * po/.cvsignore: Remove *.pot.
9871         * posix/glob/.cvsignore: Removed.
9872         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
9873
9874 2000-04-25  Andreas Jaeger  <aj@suse.de>
9875
9876         * conform/Makefile (distribute): Also distribute contents of
9877         subdirectories.
9878
9879         * Makerules (no_deps): Remove abi-versions.h.
9880
9881         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
9882
9883 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9884
9885         * sysdeps/sparc/sparc64/elf/Dist: Remove.
9886         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
9887         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
9888         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
9889         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
9890         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
9891         objects.
9892
9893 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
9894
9895         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
9896
9897 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9898
9899         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
9900         * intl/l10nflist.c: Likewise.
9901
9902 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9903
9904         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
9905         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
9906         * intl/textdomain.c [!_LIBC]: Likewise.
9907         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
9908         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
9909         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
9910         syntax error.
9911
9912 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9913
9914         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
9915         character set conversion also in the case the translation was found
9916         after a hash collision or through binary search.  Store the maximum
9917         index together with the converted message.  Use iconv() when available.
9918         In case of out of memory during conversion, return the unconverted
9919         translated string, not NULL.
9920
9921 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
9922
9923         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
9924         to avoid name clashes with the ia32 linker.
9925
9926 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9927
9928         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
9929         handling.
9930
9931 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9932
9933         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
9934         strtoumax, strfry, and memfrob.
9935         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
9936         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9937
9938         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
9939         if this function is available.
9940
9941         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
9942         all values.
9943
9944 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
9945
9946         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
9947
9948 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9949
9950         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
9951         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
9952         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
9953         * localedata/tst-mbswcs3.c: New file.
9954
9955 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
9956
9957         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
9958         characters.  Don't handle incomplete characters as errors.
9959         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
9960         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
9961         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
9962         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
9963         * localedata/tst-mbswcs2.c: New file.
9964
9965         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
9966         stored character in state in UNPACK_BYTES macro.
9967         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
9968         test for available characters, handle result of BODY code correctly.
9969         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
9970         (distribute): Add tst-mbswcs.sh.
9971         Add rule to run tst-mbswcs.sh.
9972         * localedata/tst-mbswcs.sh: New file.
9973         * localedata/tst-mbswcs1.c: New file.
9974
9975 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9976
9977         * nis/nis_callback.c (__nis_create_callback): Do failed memory
9978         allocation fixups centrally, fix __builtin_expect call, return NULL
9979         on failure, not NIS_NOMEMORY.
9980
9981 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
9982
9983         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
9984
9985         * intl/loadinfo.h (internal_function): Define if not already defined.
9986
9987 2000-04-27  Andreas Jaeger  <aj@suse.de>
9988
9989         * intl/libintl.h: Fix typo, reported by Bruno Haible
9990         <haible@clisp.cons.org>.
9991
9992 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
9993
9994         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
9995         setting the state to GMON_PROF_BUSY.
9996
9997 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
9998
9999         * elf/dl-profile.c (_dl_start_profile): define all variables which
10000         do not have to be global as local variables.
10001
10002         * nis/nis_callback.c (__nis_create_callback): Partially undo last
10003         patch.  Keep needed tests for failed memory allocation.
10004
10005         * elf/dl-reloc.c (_dl_relocate_object): Add one more
10006         __builtin_expect saying that we don't normally expect to profile.
10007
10008         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
10009         __builtin_expect where desirable.
10010
10011 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
10012
10013         * manual/Makefile (chapters): Add syslog.
10014         * manual/syslog.texi: New file.
10015         * manual/math.texi: Fix references.
10016         * manual/terminal.texi: Likewise.
10017         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
10018
10019 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
10020
10021         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
10022         stdlib.h was not included or __USE_XOPEN not defined.
10023
10024 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
10025
10026         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
10027         Patch by Zack Weinberg <zack@wolery.cumb.org>.
10028
10029 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
10030
10031         * manual/examples/subopt.c (mount_opts): Add missing terminating
10032         entry.
10033         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
10034
10035         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
10036         * libio/ftello.c: Likewise.
10037         * libio/ftello64.c: Likewise.
10038         * libio/ioftell.c: Likewise.
10039         * sysdeps/generic/memrchr.c: Likewise.
10040         * sysdeps/posix/libc_fatal.c: Likewise.
10041         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10042         * misc/fstab.c: Include <string.h> for strcmp prototype.
10043         * sysdeps/generic/ldsodefs.h: Likewise.
10044         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10045         Patch by Kurt Roeckx <Q@ping.be>.
10046
10047         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
10048         Remove db-open.  Change all uses.
10049         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
10050
10051 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
10052
10053         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
10054         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
10055         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
10056         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
10057         with .set noat/at to shut up warnings.
10058         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
10059         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
10060         compilation if __NR_pciconfig_iobase is not defined.
10061         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
10062         Add alias.
10063
10064 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
10065
10066         * manual/sysinfo.texi: Fix typo.
10067         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
10068         Replace "high precision time" with "high accuracy clock".
10069         Fix language.
10070         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
10071
10072         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
10073         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
10074         instead of malloc.
10075         * nis/nis_subr.c: Use __builtin_expect.
10076         * nis/ypclnt.c: Likewise.
10077         * nis/nis_getservlist.c: Likewise.
10078         * nis/nis_creategroup.c: Likewise.
10079
10080         * nis/nis_callback.c (__nis_create_callback): Check result of
10081         memory allocation.  Fix memory leaks.  Use __builtin_expect.
10082         (__nis_destroy_callback): Fix memory leaks.
10083
10084 2000-04-21  Andreas Jaeger  <aj@suse.de>
10085
10086         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
10087         * sysdeps/mips/mips64/add_n.S: Likewise.
10088         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10089         * sysdeps/mips/mips64/lshift.S: Likewise.
10090         * sysdeps/mips/mips64/mul_1.S: Likewise.
10091         * sysdeps/mips/mips64/rshift.S: Likewise.
10092         * sysdeps/mips/mips64/setjmp.S: Likewise.
10093         * sysdeps/mips/mips64/sub_n.S: Likewise.
10094         * sysdeps/mips/mips64/submul_1.S: Likewise
10095         * sysdeps/unix/mips/sysdep.S: Likewise.
10096
10097         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
10098         and update comment.  The strtab from _dl_relocate_object can be
10099         used.
10100
10101 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
10102
10103         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
10104         * iconv/iconv_close.c (iconv_close): Likewise.
10105         * iconv/iconv_open.c (iconv_open): Likewise.
10106
10107         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
10108         __builtin_expect where useful.
10109
10110         * grp/initgroups.c (initgroups): Test for result of memory
10111         allocation and punt if it fails.
10112
10113         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
10114         * grp/fgetgrent.c (fgetfrent): Likewise.
10115         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
10116
10117 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
10118
10119         * libio/vasprintf.c: Include string.h to get memcpy prototype.
10120
10121 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
10122
10123         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
10124         don't search for NUL byte to decrement counter.
10125         Reported by Ulrich.Brink@sap.com.
10126
10127         * iconv/gconv_simple.c: Define separate functions to convert from
10128         UCS4/UCS4-LE to the internal encoding.
10129         * iconv/gconv_builtin.h: Use separate functions to convert from
10130         UCS4/UCS4-LE to the internal encoding.
10131         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
10132         __gconv_transform_ucs4le_internal.
10133
10134         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
10135         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
10136
10137         * iconv/skeleton.c: Add some more __builtin_expect.
10138         * iconv/loop.c: Likewise.
10139
10140 2000-03-08  H.J. Lu  <hjl@gnu.org>
10141
10142         * posix/regex.c (regex_compile): Correctly handle "\{" when
10143         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
10144
10145 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
10146
10147         * manual/stdio.texi: Give advise about handling error when using
10148         stream functions.
10149         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
10150
10151 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
10152
10153         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
10154         field to nelems * sizeof (uint32_t).
10155         * locale/programs/ld-address.c (address_output): Align word fields
10156         properly.
10157         * locale/programs/ld-monetary.c (monetary_output): Likewise.
10158         Don't restart idx pointers to idx end at the duo_int_curr_symbol
10159         field.
10160         Avoid giving arbitrary garbage in the crncystr field.
10161         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
10162         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
10163         fields.
10164         * locale/programs/ld-numeric.c (numeric_output): Likewise.
10165         Don't restart idx pointers to idx end at the decimal_point_wc field.
10166         * locale/programs/ld-time.c (time_output): week_1stday should be
10167         word, not byte.  Align it properly.
10168
10169 2000-04-19  H.J. Lu  <hjl@gnu.org>
10170
10171         * csu/gmon-start.c (_start): Declared as "extern void".
10172         (etext): Likewise.
10173
10174 2000-04-18  Andreas Jaeger  <aj@suse.de>
10175
10176         * manual/install.texi (Running make install): Don't mention utmpd
10177         anymore.
10178
10179 2000-04-18  Andreas Jaeger  <aj@suse.de>
10180
10181         * linuxthreads/Versions: Use ld instead of ld.so.
10182
10183         * elf/Makefile (ld-map): Use ld.map.
10184
10185         * Versions.def: Use ld instead of ld.so.
10186         * elf/Versions: Likewise.
10187         * sysdeps/mach/hurd/Versions: Likewise.
10188
10189 2000-04-20  Andreas Jaeger  <aj@suse.de>
10190
10191         * elf/rtld.c (print_statistics): Move ifndef further up.
10192         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
10193         (dl_main): Likewise.
10194
10195 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
10196
10197         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
10198         * gmon/Versions: Move moncontrol to GLIBC_2.2.
10199
10200         * po/cs.po: Update from translation team.
10201
10202         * sysdeps/generic/updwtmp.c: Remove daemon support.
10203
10204         * login/Makefile (routines): Remove utmp_daemon.
10205
10206         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
10207         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
10208         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
10209         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
10210
10211         * elf/rtld.c: Display statitics option also if hp timing is not
10212         available.
10213
10214         * login/programs/connection.c: Removed.
10215         * login/programs/database.c Removed.
10216         * login/programs/error.c: Removed.
10217         * login/programs/request.c: Removed.
10218         * login/programs/xtmp.c: Removed.
10219         * login/programs/xtmp.h: Removed.
10220         * login/Makefile: Remove rules for utmpd.
10221         * login/README.utmpd: Removed.
10222         * login/utmp_daemon.c: Removed.
10223         * login/getutent_r.c: Remove references to daemon functions.
10224         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
10225         declaration.
10226
10227 2000-04-18  Andreas Jaeger  <aj@suse.de>
10228
10229         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
10230         2.2 for libnsl, libresolv, librt, libnss_*.
10231
10232         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
10233
10234         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
10235
10236 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
10237
10238         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
10239         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
10240         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
10241         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
10242         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
10243         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
10244         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
10245         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
10246         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
10247         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
10248         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
10249         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
10250         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
10251         it here.
10252         * sysdeps/unix/sysv/aix/msync.c: New file.
10253         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
10254         * sysdeps/unix/sysv/aix/net/if.h: New file.
10255         * sysdeps/unix/sysv/aix/pipe.c: New file.
10256         * sysdeps/unix/sysv/aix/poll.c: New file.
10257         * sysdeps/unix/sysv/aix/rename.c: New file.
10258         * sysdeps/unix/sysv/aix/rmdir.c: New file.
10259         * sysdeps/unix/sysv/aix/select.c: New file.
10260         * sysdeps/unix/sysv/aix/semctl.c: New file.
10261         * sysdeps/unix/sysv/aix/semget.c: New file.
10262         * sysdeps/unix/sysv/aix/semop.c: New file.
10263         * sysdeps/unix/sysv/aix/sendto.c: New file.
10264         * sysdeps/unix/sysv/aix/setgroups.c: New file.
10265         * sysdeps/unix/sysv/aix/setpgid.c: New file.
10266         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
10267         * sysdeps/unix/sysv/aix/setpriority.c: New file.
10268         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
10269         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
10270         * sysdeps/unix/sysv/aix/setsid.c: New file.
10271         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
10272         * sysdeps/unix/sysv/aix/shmat.c: New file.
10273         * sysdeps/unix/sysv/aix/shmctl.c: New file.
10274         * sysdeps/unix/sysv/aix/shmdt.c: New file.
10275         * sysdeps/unix/sysv/aix/shmget.c: New file.
10276         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
10277         * sysdeps/unix/sysv/aix/sigstack.c: New file.
10278         * sysdeps/unix/sysv/aix/socket.c: New file.
10279         * sysdeps/unix/sysv/aix/socketpair.c: New file.
10280         * sysdeps/unix/sysv/aix/speed.c: New file.
10281         * sysdeps/unix/sysv/aix/symlink.c: New file.
10282         * sysdeps/unix/sysv/aix/sync.c: New file.
10283         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
10284         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
10285         * sysdeps/unix/sysv/aix/times.c: New file.
10286         * sysdeps/unix/sysv/aix/ulimit.c: New file.
10287         * sysdeps/unix/sysv/aix/umask.c: New file.
10288         * sysdeps/unix/sysv/aix/unlink.c: New file.
10289         * sysdeps/unix/sysv/aix/ustat.c: New file.
10290         * sysdeps/unix/sysv/aix/utimes.c: New file.
10291
10292 2000-04-18  Andreas Jaeger  <aj@suse.de>
10293
10294         * manual/startup.texi (Environment Access): Fix putenv prototype
10295         according to recent changes.
10296         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
10297         PR libc/1692.
10298
10299         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
10300         needed.
10301
10302 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
10303
10304         * posix/Makefile (tests): Add tst-getaddrinfo.
10305         * posix/tst-getaddrinfo.c: New file.
10306
10307 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
10308
10309         * manual/sysinfo.texi: Document that umount2 is not widely available.
10310
10311         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
10312         signal timing is not really implemented.
10313
10314 2000-04-17  Andreas Jaeger  <aj@suse.de>
10315
10316         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
10317
10318 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
10319
10320         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
10321         and inst_libdir.
10322
10323 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
10324
10325         * manual/intro.texi: Change reference from System Information to
10326         System Management.
10327         * manual/users.texi: Likewise.
10328         * manual/conf.texi: Likewise.
10329         * manual/sysinfo.texi: Document mount, umount, and umount2.
10330         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
10331
10332 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
10333
10334         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
10335         Create wnumstr as well as numstr to support wide character output
10336         correctly.
10337
10338 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
10339
10340         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
10341         modification and move it...
10342         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
10343         Add -melf64_sparc switch to $(LD) on sparc64-linux.
10344         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
10345         switch to $(LD) on sparc-linux.
10346
10347 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
10348
10349         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
10350         and setresuid from sysdep_routines.
10351
10352 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
10353
10354         * manual/Makefile (chapters): Add resource.
10355
10356         * manual/time.texi: Move section on resources to...
10357         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
10358         and vtimes.
10359         * manual/setjmp.texi: Adjust back reference.
10360         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
10361
10362         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
10363         definition.
10364         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
10365         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
10366         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
10367         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
10368         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
10369         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
10370         * sysdeps/unix/sysv/aix/close.c: Add copyright.
10371         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
10372         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
10373         * sysdeps/unix/sysv/aix/access.c: Add copyright.
10374         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
10375         * sysdeps/unix/sysv/aix/Implies: New file.
10376         * sysdeps/unix/sysv/aix/Versions: New file.
10377         * sysdeps/unix/sysv/aix/bind.c: New file.
10378         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
10379         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
10380         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
10381         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
10382         * sysdeps/unix/sysv/aix/chdir.c: New file.
10383         * sysdeps/unix/sysv/aix/chmod.c: New file.
10384         * sysdeps/unix/sysv/aix/chroot.c: New file.
10385         * sysdeps/unix/sysv/aix/creat.c: New file.
10386         * sysdeps/unix/sysv/aix/dl-close.c: New file.
10387         * sysdeps/unix/sysv/aix/dl-open.c: New file.
10388         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
10389         * sysdeps/unix/sysv/aix/fchdir.c: New file.
10390         * sysdeps/unix/sysv/aix/fchmod.c: New file.
10391         * sysdeps/unix/sysv/aix/getgroups.c: New file.
10392         * sysdeps/unix/sysv/aix/gethostname.c: New file.
10393         * sysdeps/unix/sysv/aix/getpriority.c: New file.
10394         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
10395         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
10396         * sysdeps/unix/sysv/aix/getrusage.c: New file.
10397         * sysdeps/unix/sysv/aix/link.c: New file.
10398         * sysdeps/unix/sysv/aix/madvise.c: New file.
10399         * sysdeps/unix/sysv/aix/mkdir.c: New file.
10400         * sysdeps/unix/sysv/aix/mknod.c: New file.
10401         * sysdeps/unix/sysv/aix/mprotect.c: New file.
10402         * sysdeps/unix/sysv/aix/msgctl.c: New file.
10403         * sysdeps/unix/sysv/aix/msgget.c: New file.
10404         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
10405
10406 2000-04-17  Andreas Jaeger  <aj@suse.de>
10407
10408         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
10409         as suggested by Ulrich Drepper.
10410         (__dl_runtime_resolve): Remove unused variable, initialize sym
10411         directly.
10412         (RTLD_START): Document OFFSET_GP_GOT.
10413         (OFFSET_GP_GOT): New magic value.
10414         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
10415         (elf_machine_got_rel): Only declare strtab if needed.
10416         (elf_machine_relplt): Removed, it's not needed.
10417         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
10418
10419         * sysdeps/mips/add_n.S: Add newline at EOF.
10420         * sysdeps/mips/rshift.S: Likewise.
10421         * sysdeps/mips/mul_1.S: Likewise.
10422         * sysdeps/mips/lshift.S: Likewise.
10423         * sysdeps/mips/addmul_1.S: Likewise.
10424
10425 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
10426
10427         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
10428
10429         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
10430         * elf/dl-lookup.c: Likewise.
10431         * elf/dl-init.c (_dl_init): Likewise.
10432         * elf/dl-fini.c (_dl_fini): Likewise.
10433         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10434         * elf/dl-close.c (_dl_close): Likewise.
10435         * elf/rtld.c (_dl_start_final): Likewise.
10436
10437         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
10438
10439 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
10440
10441         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
10442         only fall back on using Linux.
10443
10444         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
10445         Before testing versions check that we actually loaded the object
10446         and whether we are in trace mode.  If not loaded during tracing don't
10447         test versions in this object.
10448         (_dl_check_all_versions): Take new parameter and pass to
10449         _dl_check_map_versions.
10450         * sysdeps/generic/ldsodefs.h: Update prototypes for
10451         _dl_check_all_versions and _dl_check_map_versions.
10452         * elf/rtld.c (struct version_check_args): Add dotrace.
10453         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
10454         (dl_main): Pass info about trace mode to version_check_doit.
10455         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
10456         _dl_check_all_versions.
10457
10458         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
10459         and getutmpx.
10460         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
10461
10462         * manual/argp.texi: Document index parameter of argp_parse.
10463         Fix typo.
10464         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
10465
10466 2000-04-14  Andreas Jaeger  <aj@suse.de>
10467
10468         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
10469         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
10470
10471         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
10472
10473 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
10474
10475         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
10476         compat_symbol call for old adjtime.
10477
10478         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
10479         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
10480
10481         * posix/Makefile (headers): Add spawn.h.
10482         (distribute): Add spawn_int.h.
10483         (routines): Add spawn_faction_init, spawn_faction_destroy,
10484         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
10485         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
10486         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
10487         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
10488         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
10489         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
10490         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
10491         posix_spawnattr_init, posix_spawnattr_destroy,
10492         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
10493         posix_spawnattr_getflags, posix_spawnattr_setflags,
10494         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
10495         and posix_spawnp.
10496         * posix/spawn.c: New file.
10497         * posix/spawn.h: New file.
10498         * posix/spawn_faction_addclose.c: New file.
10499         * posix/spawn_faction_adddup2.c: New file.
10500         * posix/spawn_faction_addopen.c: New file.
10501         * posix/spawn_faction_destroy.c: New file.
10502         * posix/spawn_faction_init.c: New file.
10503         * posix/spawn_int.h: New file.
10504         * posix/spawnattr_destroy.c: New file.
10505         * posix/spawnattr_getdefault.c: New file.
10506         * posix/spawnattr_getflags.c: New file.
10507         * posix/spawnattr_getpgroup.c: New file.
10508         * posix/spawnattr_getschedparam.c: New file.
10509         * posix/spawnattr_getschedpolicy.c: New file.
10510         * posix/spawnattr_getsigmask.c: New file.
10511         * posix/spawnattr_init.c: New file.
10512         * posix/spawnattr_setdefault.c: New file.
10513         * posix/spawnattr_setflags.c: New file.
10514         * posix/spawnattr_setpgroup.c: New file.
10515         * posix/spawnattr_setschedparam.c: New file.
10516         * posix/spawnattr_setschedpolicy.c: New file.
10517         * posix/spawnattr_setsigmask.c: New file.
10518         * posix/spawni.c: New file.
10519         * posix/spawnp.c: New file.
10520
10521         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
10522         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
10523
10524 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
10525
10526         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
10527         * malloc/malloc.c: Implement posix_memalign for glibc.
10528         * include/stdlib.h: Add prototype for __posix_memalign.
10529         * stdlib/stdlib.h: Add prototype for posix_memalign.
10530
10531 2000-04-14  Andreas Jaeger  <aj@suse.de>
10532
10533         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
10534         symidx correctly.
10535         (elf_machine_got_rel): Cast sym correctly.
10536
10537         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
10538         * sysdeps/mips/addmul_1.S: Likewise.
10539         * sysdeps/mips/lshift.S: Likewise.
10540         * sysdeps/mips/mul_1.S: Likewise.
10541         * sysdeps/mips/rshift.S: Likewise.
10542         * sysdeps/mips/sub_n.S: Likewise.
10543         * sysdeps/mips/submul_1.S: Likewise.
10544
10545         * stdlib/stdlib.h: Fix typo in comment.
10546
10547         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
10548         2.2 for libdl, ld and libm.
10549
10550         * sysdeps/generic/madvise.c: Fix typos.
10551
10552         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
10553
10554         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
10555
10556         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
10557         warnings.
10558
10559 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
10560
10561         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
10562         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
10563         Make old name weak alias.
10564         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
10565         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
10566         Make old name weak alias.
10567         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
10568
10569         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
10570         posix_fallocate, and posix_fallocate64.
10571         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
10572         posix_fallocate, and posix_fallocate64.
10573         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
10574         posix_fallocate, and posix_fallocate64.
10575         * sysdeps/generic/fadvise.c: New file.
10576         * sysdeps/generic/fadvise64.c: New file.
10577         * sysdeps/generic/fallocate.c: New file.
10578         * sysdeps/generic/fallocate64.c: New file.
10579         * sysdeps/posix/fallocate.c: New file.
10580         * sysdeps/posix/fallocate64.c: New file.
10581         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
10582         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
10583         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
10584         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
10585         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10586         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
10587         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10588         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
10589         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10590
10591         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
10592         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10593
10594 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
10595
10596         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
10597         * misc/sys/mman.h (posix_madvise): Add prototype.
10598         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
10599         old name and posix_madvise weak aliases.
10600         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10601         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
10602         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
10603         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
10604         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
10605         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10606         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10607
10608 2000-04-13  Andreas Jaeger  <aj@suse.de>
10609
10610         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
10611         versioning.
10612         (elf_machine_got_rel): Only add runtime display if needed.
10613         (elf_machine_got_rel): Handle symbol versioning.
10614
10615 2000-04-13  Andreas Jaeger  <aj@suse.de>
10616
10617         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
10618
10619         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
10620         default.
10621
10622         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
10623         with some applications.
10624         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
10625
10626         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
10627         * sysdeps/mips/bsd-_setjmp.S: Likewise.
10628         * sysdeps/mips/setjmp.S: Likewise.
10629
10630         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
10631
10632 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
10633
10634         * posix/globtest.sh: Work around inconsistency with expanding ~/
10635         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
10636
10637 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
10638
10639         * posix/getconf.c: Add support for many more POSIX options.
10640         * sysdeps/posix/sysconf.c: Likewise.
10641         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
10642         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
10643         _POSIX_SHELL.
10644         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
10645         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
10646         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
10647         CLOCK_THREAD_CPUTIME_ID.
10648         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
10649         CLOCK_PROCESS_CPUTIME_ID.
10650         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
10651         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
10652         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
10653         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
10654
10655         * malloc/Makefile (tests): Add tst-calloc.
10656         * malloc/tst-calloc.c: New file.
10657
10658         * sysdeps/arm/libm-test-ulps: New file.
10659
10660         * malloc/malloc.c: Undo all of today's changes.
10661
10662         * locale/programs/locale.c (show_info): Don't try to look into
10663         data for LC_ALL (there is none).
10664
10665         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
10666         avoid writing over boundary.
10667         Patch by Greg McGary <gkm@eng.ascend.com>.
10668
10669         * sysdeps/arm/memprof.h: New file.
10670
10671 2000-04-12  Andreas Jaeger  <aj@suse.de>
10672
10673         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
10674
10675         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
10676         for memmem declaration.
10677
10678 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
10679
10680         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
10681         to -1.
10682         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
10683
10684         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
10685         mode is invalid.
10686         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
10687         Patch by Bart Veer <bartv@redhat.com>.
10688
10689         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
10690         function interface.
10691
10692 2000-04-11  Andreas Jaeger  <aj@suse.de>
10693
10694         * sysdeps/mips/dl-machine.h: Update some comments.
10695         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
10696
10697 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10698
10699         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
10700         _POSIX_SHARED_MEMORY_OBJECTS.
10701
10702         * rt/Makefile (tests): Add tst-shm.
10703         Add rules to generate tst-shm.
10704         * rt/tst-shm.c: New file.
10705
10706         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
10707         for descriptor.
10708
10709         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
10710         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
10711         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
10712         * sysdeps/generic/shm_open.c: New file.
10713         * sysdeps/generic/shm_unlink.c: New file.
10714         * sysdeps/unix/sysv/linux/shm_open.c: New file.
10715         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
10716         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
10717          __endmntent, __getmntent_r, __setmntent, and __statfs.
10718
10719         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
10720         fragmentation by allocating new memory at the end instead of
10721         reallocating.
10722
10723         * posix/globtest.sh: Fix last change.
10724
10725 2000-04-10  Philip Blundell  <philb@gnu.org>
10726
10727         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
10728         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
10729         IPV6_DROP_MEMBERSHIP.
10730         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
10731         Likewise.
10732
10733 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10734
10735         * elf/readlib (process_file): Close streams in case of an error.
10736
10737 2000-04-09  Andreas Jaeger  <aj@suse.de>
10738
10739         * elf/readlib.c (process_file): Check if file is big enough to
10740         contain aout and ELF headers.
10741         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
10742
10743 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
10744
10745         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
10746
10747 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10748
10749         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
10750         stream unbuffered.
10751         * rt/Makefile (tests): Add tst-clock.
10752         Add rules to build tst-clock.
10753         * rt/tst-clock.c: New file.
10754         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
10755         about initialization of nsec.
10756         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
10757         about initialization of freq.  Set retval to zero if successful.
10758         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
10759
10760 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
10761
10762         * Versions.def (librt): Add GLIBC_2.2.
10763         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
10764         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
10765         timer_getoverr, timer_gettime, and timer_settime.
10766         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
10767         clock_settime, timer_create, timer_delete, timer_getoverrun,
10768         timer_gettime, and timer_settime.
10769         * sysdeps/generic/clock_getcpuclockid.c: New file.
10770         * sysdeps/generic/get_clockfreq.c: New file.
10771         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
10772         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
10773         * sysdeps/mach/hurd/i386/bits/time.h: New file.
10774         * sysdeps/unix/i386/i586/clock_getres.c: New file.
10775         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
10776         * sysdeps/unix/i386/i686/Implies: New file.
10777         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
10778         * time/Makefile (routines): Move clock_getres, clock_gettime,
10779         clock_settime, timer_create, timer_delete, timer_getoverr,
10780         timer_gettime, and timer_settime to rt/Makefile.
10781         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
10782         clock_settime, timer_create, timer_delete, timer_getoverrun,
10783         timer_gettime, and timer_settime.
10784         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
10785
10786         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
10787         and not const as attribute name.
10788
10789 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
10790
10791         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
10792
10793 2000-04-10  Andreas Schwab  <schwab@suse.de>
10794
10795         * posix/globtest.sh: Skip tests that depend on unreadable
10796         directories if run as root.
10797
10798 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
10799
10800         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
10801         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
10802
10803 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
10804
10805         * sysdeps/unix/clock_gettime.c: New file.
10806         * sysdeps/unix/clock_settime.c: New file.
10807         * sysdeps/posix/clock_getres.c: New file.
10808
10809         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
10810
10811         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
10812         lseek call be passing in a buffer which never allow a successful
10813         first getdents syscall if not at leas the initial entry can be
10814         stored in the user buffer.
10815
10816         * localedata/Makefile: Add rules to clean up directories created by
10817         new strfmon tests.
10818
10819 2000-04-09  Geoff Clare  <gwc@unisoft.com>
10820
10821         * localedata/tst-fmon.data: Added new tests for strfmon()
10822         using test locales with all combinations of cs_precedes,
10823         sign_posn and sep_by_space.
10824         * localedata/tst-fmon.sh: Updated to support the new tests.
10825         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
10826         the localedef source for the new strfmon() test locale.
10827         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
10828         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
10829         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
10830         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
10831         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
10832         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
10833         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
10834         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
10835         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
10836         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
10837         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
10838         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
10839         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
10840         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
10841
10842         * stdlib/strfmon.c: Correct problems with missing or extra
10843         spaces for unusual combinations of sign_posn and sep_by_space.
10844         Improved left-precision alignment code.
10845
10846 2000-04-07  Andreas Jaeger  <aj@suse.de>
10847
10848         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
10849
10850 2000-04-10  Andreas Jaeger  <aj@suse.de>
10851
10852         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
10853
10854 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
10855
10856         Implement handling of restartable conversion functions according to
10857         ISO C.
10858         * iconv/gconv.h (__gconv_fct): Add additional parameter.
10859         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
10860         * iconv/gconv.c: Pass additional parameter to conversion function.
10861         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
10862         (internal_ucs4le_loop_single): New function.
10863         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
10864         (__gconv_transform_internal_ascii): Likewise.
10865         (__gconv_transform_internal_utf8): Likewise.
10866         (__gconv_transform_utf8_internal): Likewise.
10867         (__gconv_transform_ucs2_internal): Likewise.
10868         (__gconv_transform_internal_ucs2): Likewise.
10869         (__gconv_transform_ucs2reverse_internal): Likewise.
10870         (__gconv_transform_internal_ucs2reverse): Likewise.
10871         (internal_ucs4le_loop_unaligned): Before return
10872         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
10873         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
10874         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
10875         * iconv/loop.c: Fit in definition of function to convert one character
10876         for processing of left-over bytes from the state object.
10877         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
10878         inend to match names in loop functions.
10879         (RESET_INPUT_BUFFER): Change apprpriately.
10880         (gconv): If needed, call function to process bytes from the state
10881         object.  Similar at the end: store left over bytes if input is
10882         incomplete.
10883         Take extra argument and add new argument to all calls of the
10884         conversion function.
10885         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
10886         information in the state object to not conflict with length count.
10887         * iconvdata/iso-2022-jp.c: Likewise.
10888         * iconvdata/iso-2022-kr.c: Likewise.
10889         * iconvdata/unicode.c: Adjust for change change in parameters of
10890         skeleton function.
10891         * iconvdata/utf-16.c: Likewise.
10892         * libio/iofwide.c: Add new parameter to all calls of conversion
10893         function.
10894         * wcsmbs/btowc.c: Likewise.
10895         * wcsmbs/mbrtowc.c: Likewise.
10896         * wcsmbs/mbsnrtowcs.c: Likewise.
10897         * wcsmbs/mbsrtowcs.c: Likewise.
10898         * wcsmbs/wcrtomb.c: Likewise.
10899         * wcsmbs/wcsnrtombs.c: Likewise.
10900         * wcsmbs/wcsrtombs.c: Likewise.
10901         * wcsmbs/wctob.c: Likewise.
10902
10903         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
10904         MAX_NEEDED_INPUT.
10905
10906 2000-04-07  Andreas Jaeger  <aj@suse.de>
10907
10908         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
10909         newer kernels.
10910
10911 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
10912
10913         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
10914         element a union to allow byte access.
10915         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
10916         mbstate_t.
10917         * iconvdata/iso-2022-jp.c: Likewise.
10918         * iconvdata/iso-2022-kr.c: Likewise.
10919         * wcsmbs/mbsinit.c: Likewise.
10920         * stdlib/mblen.c: Likewise.
10921         * stdio-common/printf-parse.h: Likewise.
10922
10923 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10924
10925         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
10926         kernel does not allow relative seeks on descriptors associated
10927         with directories.  Go back to get the position in the directory
10928         every time we enter the function.  Return -1 and set errno if one
10929         entry could be read from the kernel but does not fit into the
10930         buffer passed in by the user.
10931
10932         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
10933         Support ..(2).. ellipsis.
10934         (parse_charmap): Recognize ..(2).. etc and pass step down.
10935         Correctly generate names for UCS4 characters.
10936
10937         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
10938         (ctype_finish): We know the wide character value for <SP>,
10939         don't search.
10940         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
10941         (charclass_ucs4_ellipsis): Likewise.
10942         (read_translit_ignore_entry): Store ellipsis step.
10943         (ctype_read): Recognize ..(2).. etc and pass step down.
10944
10945         * locale/programs/linereader.c (lr_token): When seeing comment
10946         character ignore only rest of line in sources but stop at escaped
10947         newline.
10948         Recognize ..(2).. and ....(2).....
10949
10950         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
10951         and tok_ellipsis4_2.
10952
10953 2000-04-06  Andreas Jaeger  <aj@suse.de>
10954
10955         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
10956         removed, remove it here also.
10957         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10958         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
10959         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
10960         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
10961
10962 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
10963
10964         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
10965         include bits/sigcontext.h.
10966         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10967
10968 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10969
10970         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
10971         collation symbol definition.  Value in quivalence definition must
10972         be defined, don't check that it is not.
10973
10974         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
10975         values as character names.
10976
10977         * locale/programs/ld-ctype.c (get_character): Handle missing
10978         repertoire map correctly.
10979
10980 2000-04-05  Cristian Gafton  <gafton@redhat.com>
10981
10982         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
10983         because it is used in generic code.
10984         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
10985         * wcsmbs/wcwidth.h: Declare __ctype32_b.
10986         * intl/gettext.c: Include <locale.h>.
10987         * intl/ngettext.c: Likewise.
10988
10989 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
10990
10991         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
10992         socklen_t type for size.
10993         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
10994         init function interface.
10995         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10996         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
10997         sys/ucontext.h.
10998         (__jmp_buf): Declare the whole type structure here, don't use
10999         ucontext.
11000
11001 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
11002
11003         * iconv/skeleton.c (put16u): Fix typo.
11004         Reported by Bruno Haible <haible@ilog.fr>.
11005
11006         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
11007         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
11008         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
11009         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
11010         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
11011         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
11012
11013         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
11014         * Makefile (distribute): Add abi-versions.awk and
11015         firstversions.awk.
11016         Patches by Torsten Duwe <duwe@caldera.de>.
11017
11018 2000-04-05  Andreas Schwab  <schwab@suse.de>
11019
11020         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
11021
11022 2000-04-05  Andreas Schwab  <schwab@suse.de>
11023
11024         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
11025         entry point, used on Hurd.
11026
11027 2000-04-04  Andreas Jaeger  <aj@suse.de>
11028
11029         * intl/Makefile: Only run the gettext test with shared libraries.
11030
11031 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11032
11033         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11034         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11035
11036 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
11037
11038         * Makeconfig: Undo last change.
11039         * configure.in: If --disable-shared was given, don't set VERSIONING,
11040         don't define DO_VERSIONING, and don't give scare warning for no
11041         versioning.
11042         * configure: Regenerated.
11043
11044 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
11045
11046         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
11047
11048 2000-04-04  Andreas Jaeger  <aj@suse.de>
11049
11050         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
11051
11052 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
11053
11054         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
11055         STV_HIDDEN and STV_INTERNAL during lookup.
11056         (profile_fixup): Likewise.
11057         * elf/dl-reloc.c (RESOLVE): Likewise.
11058
11059         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
11060         unaligned so that it compiles for system which need unaligned
11061         access handling.
11062
11063 2000-04-04  Andreas Schwab  <schwab@suse.de>
11064
11065         * elf/cache.c (print_entry): Only look at the type field when
11066         printing the type.
11067
11068 2000-04-04  Andreas Schwab  <schwab@suse.de>
11069
11070         * iconvdata/big5.c (BODY): Fix typo.
11071
11072 2000-04-04  Andreas Schwab  <schwab@suse.de>
11073
11074         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
11075         function interface.  Remove unused _dl_start_user entry point.
11076
11077 2000-04-03  Andreas Jaeger  <aj@suse.de>
11078
11079         * include/arpa/inet.h (__inet_aton): Add protoype.
11080
11081 2000-04-01  Andreas Jaeger  <aj@suse.de>
11082
11083         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
11084
11085         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
11086         * sysdeps/mach/mips/thread_state.h: Likewise.
11087
11088         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
11089         * sysdeps/generic/fegetenv.c: Likewise.
11090         * sysdeps/generic/fesetenv.c: Likewise.
11091         * sysdeps/generic/feupdateenv.c: Likewise.
11092         * sysdeps/generic/fraiseexcpt.c: Likewise.
11093         * sysdeps/generic/fsetexcptflg.c: Likewise.
11094         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
11095         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
11096         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11097         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
11098
11099 2000-04-02  H.J. Lu  <hjl@gnu.org>
11100
11101         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
11102
11103 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
11104
11105         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
11106         (add_name_to_object): Add cast in malloc call.
11107         (fillin_rpath): Optimize loop to initialize ->status a bit.
11108
11109         * sysdeps/i386/dl-machine.h: Undo last change.
11110         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
11111         Restore %edx register after call here.
11112
11113         * sysdeps/arm/atomicity.h: New file.
11114         Contributed by Jesper Skov <jskov@redhat.com>.
11115
11116 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
11117
11118         * Makeconfig (preprocess-versions): Undo last change.
11119         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
11120
11121         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
11122         here, before we might move the stack.
11123         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
11124         (init1): And not here.
11125
11126         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
11127         change, to restore argc value in call-clobbered register after
11128         RTLD_START_SPECIAL_INIT, which will contain a call.
11129
11130         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
11131         allocating and initializing L->l_initfini.
11132
11133         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
11134
11135 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
11136
11137         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
11138         RUNPATH, RPATH, and LD_LIBRARY_PATH.
11139         (open_path): Change type of fourth parameter.  Make pointer to array
11140         of pointers.  Create variable dirs with original type.
11141         Track whether any directory for the object exists and if not,
11142         change *DIRSP to (void*) -1 to signal there is no such search path.
11143         (_dl_map_object): Change all calls of open_path.
11144         Rewrite decompose_rpath calls.
11145
11146 2000-03-31  Andreas Schwab  <schwab@suse.de>
11147
11148         * string/strfry.c: Declare STATE as array of char instead of int
11149         and do not initialize it (done by initstate_r).  Pass correct
11150         size.
11151
11152 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
11153
11154         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
11155
11156         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
11157         instruction out of the code.
11158
11159 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
11160
11161         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
11162         element at this position.
11163
11164         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
11165         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
11166         l_reldeps elements.
11167         * elf/dl-lookup.c (add_dependency): New function.
11168         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
11169         dynamically loaded object.
11170         (_dl_lookup_symbol_skip): Likewise.
11171         (_dl_lookup_versioned_symbol): Likewise.
11172         (_dl_lookup_versioned_symbol_skip): Likewise.
11173         * elf/dl-open.c: Don't define _dl_load_lock here...
11174         * elf/rtld.c: ...but here...
11175         * elf/dl-support.c: ...and here.
11176         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
11177         through relocation.
11178         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
11179         relocations.
11180         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
11181         anymore.
11182         * dlfcn/glrefmain.c: Add one more debug message.
11183
11184         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
11185         command line.
11186         * Makerules (sysd-versions): Use ( ) instead of { }.
11187
11188         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
11189         optimize for the non-debugging case.
11190         * elf/dl-lookup.c: Likewise.
11191         * sysdeps/generic/libc-start.c: Likewise.
11192
11193 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
11194
11195         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
11196         (init1): Don't initialize __environ here, since init already does it.
11197         (first_init): New function, broken out of _init.
11198         (_hurd_stack_setup): Use it.
11199         [SHARED] (_dl_init_first): New function, renamed from old _init.
11200         (init1) [SHARED]: Don't call posixland_init here.
11201         (posixland_init): Take ENVP arg, so signature is usual for initializer.
11202         [SHARED] (_init): Define as alias for posixland_init.
11203         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
11204         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
11205         RTLD_START_SPECIAL_INIT before calling initializers.
11206         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
11207         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
11208         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
11209         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
11210
11211         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
11212         since we define the function with the name `tmpfile'.
11213
11214         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
11215         * hurd/Versions: Likewise.
11216
11217 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
11218
11219         * elf/dl-runtime.c (fixup): Fix typo in comment.
11220
11221         * resolv/netdb.h (getnameinfo): All length parameters are of type
11222         socklen_t.
11223         * inet/getnameinfo.c: Likewise.
11224
11225 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
11226
11227         * posix/unistd.h (socklen_t): Define if it has not yet happened.
11228         (gethostname): Change type of second parameter to socklen_t.
11229         * include/unistd.h (__gethostname): Change type of second
11230         parameter to socklen_t.
11231         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
11232         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
11233         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
11234         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
11235         Likewise.
11236         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
11237         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
11238         Allow definition elsewhere.
11239         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11240         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11241         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11242         * sysdeps/generic/bits/types.h: Define __socklen_t.
11243         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
11244         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
11245         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
11246         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11247         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
11248         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
11249         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
11250
11251         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
11252         (inet_lnaof): Likewise.
11253         (inet_netof): Likewise.
11254         (inet_network): Likewise.
11255         (inet_aton): Likewise.
11256         (inet_makeaddr): Change parameter types to in_addr_t.
11257         (inet_neta): Likewise.
11258         (inet_ntop): Change type of last parameter to socklen_t.
11259         (inet_aton): Only make available if __USE_MISC.
11260         (inet_neta): Likewise.
11261         (inet_net_ntop): Likewise.
11262         (inet_net_pton): Likewise.
11263         (inet_nsap_ntoa): Likewise.
11264
11265         * inet/in.h: Define in_port_t type.
11266         Define in_addr_t type.
11267         (struct in_addr): Use in_addr_t in definition.
11268         (IN_CLASSA): Use cast to in_addr_t.
11269         (IN_CLASSB): Likewise.
11270         (IN_CLASSC): Likewise.
11271         (IN_CLASSD): Likewise.
11272         (IN_EXPERIMENTAL): Likewise.
11273         (IN_BADCLASS): Likewise.
11274         (INADDR_ANY): Likewise.
11275         (INADDR_BROADCAST): Likewise.
11276         (INADDR_NONE): Likewise.
11277         (INADDR_LOOPBACK): Likewise.
11278         (INADDR_UNSPEC_GROUP): Likewise.
11279         (INADDR_ALLHOSTS_GROUP): Likewise.
11280         (INADDR_ALLRTRS_GROUP): Likewise.
11281         (INADDR_MAX_LOCAL_GROUP): Likewise.
11282         (struct sockaddr_in): Use in_port_t for sin_port element.
11283         (struct sockaddr_in6): Use in_port_t for sin6_port element.
11284         Use uint8_t instead of u_int8_t.
11285
11286         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
11287         Call __inet_aton instead of inet_aton.
11288         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
11289
11290         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
11291         (innetgr): Likewise.
11292         (struct addrinfo): Use socklen_t for ai_addrlen element.
11293
11294         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
11295         IPV6_RECVERR): New defines.
11296
11297         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
11298         * inet/getnetbyad.c: Likewise.
11299         * inet/getnetbyad_r.c: Likewise.
11300         * nis/nss_nis/nis-network.c: Likewise.
11301         * nis/nssplus_nis/nisplus-network.c: Likewise.
11302         * nss/nss_files/files-network.c: Likewise.
11303         * resolv/netdb.h: Define uint32_t if not already happened.
11304         Include bits/netdb.h.  Remove definition of struct netent.
11305         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
11306         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
11307         * sysdeps/generic/bits/netdb.h: New file.
11308         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
11309
11310         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
11311         (tests): Add glrefmain.
11312         Add rules to build modules and run tests.  Ignore result of glrefmain
11313         for now since it fails.
11314         * dlfcn/glrefmain.c: New file.
11315         * dlfcn/glreflib1.c: New file.
11316         * dlfcn/glreflib2.c: New file.
11317
11318         * test-skeleton.c: Include <string.h> for strsignal prototype.
11319
11320         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
11321         to be missing.
11322
11323         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
11324         former init-first.h.  Initialize __libc_multiple_libcs.
11325
11326 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
11327
11328         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
11329         #if expression for use of unaligned function to the one used in
11330         the definition of these functions.
11331         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
11332         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
11333         (internal_ucs4le_loop_unaligned): New function.
11334
11335         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
11336         (tests): Add order.
11337         (module-names): Add dep1, dep2, dep3, and dep4.
11338         Add dependencies for dep* modules and order.
11339         Define rule for order.out which checks the result.
11340         * elf/dep1.c: New file.
11341         * elf/dep2.c: New file.
11342         * elf/dep3.c: New file.
11343         * elf/dep4.c: New file.
11344         * elf/order.c: New file.
11345
11346         * elf/dl-init.c: Fix typo in comment.
11347
11348 2000-03-31  Andreas Jaeger  <aj@suse.de>
11349
11350         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
11351         init function interface.
11352         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
11353
11354 2000-03-31  Andreas Jaeger  <aj@suse.de>
11355
11356         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
11357         * sysdeps/mips/fpu/fegetenv.c: Likewise.
11358         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
11359         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
11360         * sysdeps/mips/fpu/fesetenv.c: Likewise.
11361
11362         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
11363         anymore, update comment.
11364
11365         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
11366
11367         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
11368         SHLIB_COMPAT - the struct is always needed.
11369
11370 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
11371
11372         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
11373         * elf/dl-support.c: Define _dl_starting_up.
11374
11375 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
11376
11377         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
11378         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
11379
11380         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
11381
11382         * elf/Makefile (dl-routines): Remove preinit.
11383         * elf/Versions: Remove _dl_preinit.
11384         * elf/dl-preinit.c: Removed.  Move content into...
11385         * elf/dl-init.c: ...here.
11386         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
11387
11388         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
11389         elements.
11390
11391 2000-03-29  Geoff Clare  <gwc@unisoft.com>
11392
11393         * stdlib/strfmon.c: Corrected problems with the code that
11394         sets default values for [np]_sep_by_space and
11395         [np]_sign_posn; also the new positive/negative alignment
11396         code from the previous patch was not quite right for
11397         [np]_sign_posn = 0.
11398
11399         * localedata/tst-fmon.data: Changes corresponding to the
11400         two sets of fixes made to stdlib/strfmon.c.
11401
11402 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
11403
11404         * malloc/malloc.c: Declare bit flags UL so that they will not
11405         default to int size when being inverted.
11406
11407 2000-03-29  Andreas Jaeger  <aj@suse.de>
11408
11409         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
11410         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
11411
11412 2000-03-29  Andreas Jaeger  <aj@suse.de>,
11413             Ralf Baechle <ralf@uni-koblenz.de>
11414
11415         * Makeconfig: Introduce new variable SHARED to mark code used in
11416         the shared library.
11417         * elf/dl-close.c: Use it instead of PIC.
11418         * elf/dl-load.c: Likewise.
11419         * elf/dl-open.c: Likewise.
11420         * hurd/geteuids.c: Likewise.
11421         * include/libc-symbols.h: Likewise.
11422         * include/shlib-compat.h: Likewise.
11423         * libio/freopen.c: Likewise.
11424         * linuxthreads/cancel.c: Likewise.
11425         * linuxthreads/pthread.c: Likewise.
11426         * linuxthreads/wrapsyscall.c: Likewise.
11427         * nss/nsswitch.c: Likewise.
11428         * stdio-common/vfprintf.c: Likewise.
11429         * sysdeps/arm/init-first.c: Likewise.
11430         * sysdeps/i386/init-first.c: Likewise
11431         * sysdeps/generic/init-first.c: Likewise.
11432         * sysdeps/generic/libc-start.c: Likewise.
11433         * sysdeps/mips/init-first.c: Likewise.
11434         * sysdeps/powerpc/elf/libc-start.c: Likewise.
11435         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
11436         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
11437         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
11438         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
11439
11440         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
11441
11442 2000-03-29  Andreas Jaeger  <aj@suse.de>
11443
11444         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
11445         Use D_PTR to access relocated entries in l_info.
11446         (elf_machine_rela): Likewise.
11447
11448         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
11449         Likewise.
11450         (elf_machine_rela): Likewise.
11451
11452         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
11453         Likewise.
11454         (__elf_machine_fixup_plt): Likewise.
11455         (__process_machine_rela): Likewise.
11456
11457         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
11458         (elf_machine_rela): Likewise.
11459
11460         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
11461         (elf_machine_rel): Likewise.
11462
11463         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
11464         (elf_machine_fixup_plt): Likewise.
11465         (elf_machine_rela): Likewise.
11466
11467 2000-03-29  Andreas Jaeger  <aj@suse.de>
11468
11469         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
11470         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
11471         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
11472         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
11473         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
11474         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
11475         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
11476         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
11477         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
11478         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
11479         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
11480         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
11481         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
11482         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
11483         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
11484
11485         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
11486         macros, remove K&R prototypes.
11487
11488 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
11489
11490         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
11491         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
11492         (PR libc/1677).
11493
11494 2000-03-30  Andreas Jaeger  <aj@suse.de>
11495
11496         * misc/sys/cdefs.h: Remove K&R support.
11497
11498 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
11499
11500         * iconv/skeleton.c: Avoid compiling unaligned versions in some
11501         more cases.
11502         * iconv/loop.c: Likewise.
11503
11504 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
11505
11506         * iconv/loop.c (put16): Remove __const. Fix access index.
11507         (put32): Remove __const. Use uint32_t instead of uint16_t.
11508         * iconv/skeleton.c: Likewise.
11509
11510 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
11511
11512         * mach/Versions (libc: GLIBC_2.0)
11513         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
11514         __vm_allocate on this.
11515         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
11516         mutex- and spinlock-related symbols on this.
11517         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
11518         New version set.  Lock-related symbols go here instead in this case.
11519         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
11520         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
11521         cthread_getspecific, cthread_setspecific, __libc_getspecific.
11522         * hurd/Versions
11523         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
11524         Put them here instead.
11525         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
11526         New version set.  Those cthreads symbols go here instead in this case.
11527         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
11528
11529 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
11530
11531         * elf/dl-init.c (_dl_init): We don't need to call constructors
11532         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
11533
11534         Implement dynamic determination of constructor/destructor order in
11535         the dynamic linker.
11536         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
11537         (GLIBC_2.2): Add _dl_init.
11538         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
11539         r_duplist is not anymore allocated separately.  l_initfini is and
11540         therefore free it if necessary.
11541         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
11542         malloc block.  Otherwise allocate l_initfini list only.
11543         Put dependencies for the object in l_initfini list.
11544         Sort dependencies for the object to be loaded topologically.
11545         * elf/dl-fini.c: Before running the destructors sort the topologically.
11546         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
11547         call constructors instead of iterating over the pointers.  Get list of
11548         objects for which to run constructors from l_initfini element. Accept
11549         argc, argv, and env as parameters and pass them to the constructors.
11550         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
11551         with size of dynamic section.
11552         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
11553         _dl_init_next and calling constructors ourself.
11554         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
11555         Take argc, argv, and env as parameters and pass them to the
11556         constructors.  Rewrite to call all constructors and not iterate over
11557         the pointers.
11558         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
11559         precompute l_initcount and l_preinitcount.
11560         * elf/link.h (struct link_map): Add l_ldnum member.
11561         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
11562         l_initcount, and l_preinitcount.  Add l_initfini.
11563         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
11564         one for _dl_init.
11565         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
11566         function interface.
11567         * sysdeps/unix/sysv/linux/init-first.h: Removed.
11568         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
11569         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
11570         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
11571         conventions now match.
11572
11573         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
11574         effect for shared objects.  Don't emit message and call only for
11575         static library.
11576
11577 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
11578
11579         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
11580         CSA_Z243.4-1985-1..UCS2.
11581         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
11582         ISO-8859-10..UCS2.
11583
11584 2000-03-29  Andreas Jaeger  <aj@suse.de>
11585
11586         * include/unistd.h: Remove duplicate entry for __rmdir.
11587         Remove declaration of __mkdir since __mkdir is declared in
11588         sys/stat.h.
11589
11590         * manual/creature.texi (Feature Test Macros): Fix typo, reported
11591         by Michael Deutschmann <michael@talamasca.ocis.net>.
11592
11593         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
11594         * sysdeps/mips/fpu/fegetenv.c: Likewise.
11595         * sysdeps/mips/fpu/fesetenv.c: Likewise.
11596         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
11597         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
11598
11599 2000-03-28  Andreas Jaeger  <aj@suse.de>
11600
11601         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
11602         declaration, the prototype is defined via bits/mathcalls.h.
11603         (__sincosf): Likewise.
11604         (__sincosl): Likewise.
11605         (ldexp): Likewise.
11606         (ldexpf): Likewise.
11607         (ldexpl): Likewise.
11608         (__finite): Likewise.
11609         (__inline_mathcodeNP): New macro without prototype
11610         declarations.
11611         (__inline_mathcodeNP2): Likewise.
11612         (__inline_mathcodeNP3): Likewise.
11613         (__inline_mathcodeNP_): Likewise.
11614         (__inline_mathcodeNP2_): Likewise.
11615         (__inline_mathcodeNP3_): Likewise.
11616         (__inline_mathopNP): Likewise.
11617         (__inline_mathop_declNP): Likewise.
11618         (__inline_mathop_declNP_): Likewise.
11619         (__inline_mathcode_): Use __inline_mathcodeNP_.
11620         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
11621         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
11622         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
11623         (__expm1l): Don't define prototype, the prototype is defined via
11624         bits/mathcalls.h.
11625         (exp): Likewise.
11626         (__expl): Likewise.
11627         (tan): Likewise.
11628         (atan2): Likewise.
11629         (__atan2l): Likewise.
11630         (fmod): Likewise.
11631         (pow): Likewise.
11632         (fabsf): Likewise.
11633         (fabsl): Likewise.
11634         (__fabsl): Likewise.
11635         (asin): Likewise.
11636         (acos): Likewise.
11637         (sinh): Likewise.
11638         (cosh): Likewise.
11639         (tanh): Likewise.
11640         (floor): Likewise.
11641         (ceil): Likewise.
11642         (expm1): Likewise.
11643         (log1p): Likewise.
11644         (asinh): Likewise.
11645         (acosh): Likewise.
11646         (atanh): Likewise.
11647         (hypot): Likewise.
11648         (logb): Likewise.
11649         (fma): Likewise.
11650         (drem): Likewise.
11651         (sqrt): Likewise.
11652         (__sqrtl): Likewise.
11653         (sin): Likewise.
11654         (cos): Likewise.
11655         (atan): Likewise.
11656         (log): Likewise.
11657         (log10): Likewise.
11658         (asinh): Likewise.
11659         (log2): Likewise.
11660         (rint): Likewise.
11661
11662 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
11663
11664         * Makerules: If make variable md5 is defined to yes after
11665         generating dependencies generate MD5 sum for the object.
11666
11667         * iconv/gconv_builtin.h: Fix length in transformation definition
11668         for UNICODEBIG.
11669
11670         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
11671
11672         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
11673         allow as well reading from/writing to unaligned addresses on machines
11674         which don't support this in hardware.  Use FCTNAME macro to define
11675         function name.  Include the file a second time for platforms which
11676         need special unaligned handling.
11677         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
11678         to access potentially unaligned addresses.  These macros are intended
11679         to be used only outside the loops.
11680         (unaligned): New definition.  In case the machine can handle unaligned
11681         access define as zero.  Otherwise as a variable which is initialized
11682         as nonzero in case the buffer passed in at runtime is unaligned with
11683         respect to the character set encoding involved.
11684         Call aligned or unaligned looop functions according to unaligned
11685         variable.
11686         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
11687         of direct casting pointer to potentially handle unaligned memory
11688         accesses.
11689         * iconvdata/8bit-generic.c: Likewise.
11690         * iconvdata/ansi_x3.110.c: Likewise.
11691         * iconvdata/big5.c: Likewise.
11692         * iconvdata/euc-cn.c: Likewise.
11693         * iconvdata/euc-jp.c: Likewise.
11694         * iconvdata/euc-kr.c: Likewise.
11695         * iconvdata/euc-tw.c: Likewise.
11696         * iconvdata/gbk.c: Likewise.
11697         * iconvdata/iso-2022-cn.c: Likewise.
11698         * iconvdata/iso-2022-jp.c: Likewise.
11699         * iconvdata/iso-2022-kr.c: Likewise.
11700         * iconvdata/iso646.c: Likewise.
11701         * iconvdata/iso_6937-2.c: Likewise.
11702         * iconvdata/iso_6937.c: Likewise.
11703         * iconvdata/johab.c: Likewise.
11704         * iconvdata/sjis.c: Likewise.
11705         * iconvdata/t.61.c: Likewise.
11706         * iconvdata/uhc.c: Likewise.
11707         * iconvdata/unicode.c: Likewise.
11708         * iconvdata/utf-16.c: Likewise.
11709
11710         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
11711         prototypes.
11712
11713         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
11714         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
11715         public.
11716         * malloc/mcheck.h (mcheck_check_all): Declare.
11717
11718         * stdio-common/Makefile (tests): Add tst-obprintf.
11719
11720 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
11721
11722         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
11723         Declare pthread_sigmask.
11724
11725         * csu/version.c: Add 2000 to copyright years.
11726         Remove Emacs local variables section.
11727
11728 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11729
11730         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
11731         __gconv_transform_internal_ucs2little): Remove declarations.
11732         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
11733         __gconv_transform_internal_ucs2): Never need to bswap_16.
11734         (__gconv_transform_ucs2reverse_internal,
11735         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
11736
11737 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
11738
11739         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
11740         obsoleting version not being defined at all, in which case the
11741         result is always true.
11742
11743         * Makeconfig (preprocess-versions): New canned sequence for running
11744         cpp on shlib-versions and the like.
11745         (soversions.i): Use it.
11746         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
11747         Versions.def and Versions files.
11748
11749 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
11750
11751         * stdio-common/tst-obprintf.c (main): Add another check to see
11752         obstack_printf handling all possible beginnings of the block
11753         inside an obstack chunk.
11754
11755         * locale/programs/localedef.c: Use __malloc_initialize_hook to
11756         install mcheck handler.
11757
11758         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
11759         handling problem.
11760
11761 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
11762
11763         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
11764
11765         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
11766         on [HAVE_ELF && DO_VERSIONING].
11767
11768 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
11769
11770         * stdio-common/tst-obprintf.c: New file.
11771
11772 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11773
11774         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
11775         _IO_OVERFLOW directly instead through __overflow.
11776
11777         * locale/programs/localedef.c (construct_output_path): If path
11778         contains a / compute the end of the directory name correctly.
11779
11780         * include/features.h: Undef and document __USE_XOPEN2K.
11781
11782         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
11783         whenever a function is called.  Initiated by calling mcheck_pedantic
11784         instead of mcheck.
11785         * malloc/mcheck.h: Declare mcheck_pedantic.
11786         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
11787         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
11788         for now.
11789
11790 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
11791
11792         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
11793         * dlfcn/dlopenold.c: Likewise.
11794         * nss/getXXbyYY_r.c: Likewise.
11795         * nss/getXXent_r.c: Likewise.
11796         * hurd/hurdinit.c: Likewise.
11797         * hurd/compat-20.c: Likewise.
11798         * libio/oldiofopen.c: Likewise.
11799         * libio/oldiofclose.c: Likewise.
11800         * libio/oldiofdopen.c: Likewise.
11801         * libio/oldfileops.c: Likewise.
11802         * libio/oldstdfiles.c: Likewise.
11803         * libio/oldiofsetpos.c: Likewise.
11804         * libio/oldiofgetpos.c: Likewise.
11805         * libio/oldiofgetpos64.c: Likewise.
11806         * libio/oldiofsetpos64.c: Likewise.
11807         * libio/oldiopopen.c: Likewise.
11808         * libio/oldpclose.c: Likewise.
11809         * libio/oldtmpfile.c: Likewise.
11810         * libio/freopen.c (freopen): Likewise.
11811         * libio/iofclose.c (_IO_new_fclose): Likewise.
11812
11813         * sysdeps/mach/sys/reboot.h: Include <features.h>.
11814         (reboot): Declare it.
11815
11816         * libio/Makefile (headers): Add bits/stdio-lock.h here.
11817
11818         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
11819
11820         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
11821
11822         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
11823         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
11824         We need this for the sbrk decl, which can be included without Unix98.
11825
11826 2000-03-20  Richard Henderson  <rth@cygnus.com>
11827
11828         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
11829         argument to yperr2nss is an int, not size_t.
11830         * posix/regex.c (print_partial_compiled_pattern): Cast all
11831         ptrdiff_t to long for printing.
11832         (print_compiled_pattern): Use Z for printing size_t.
11833         * posix/testfnm.c (tests): Avoid trigraphs.
11834         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
11835         Use a C comment, not an assembly comment.
11836
11837         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
11838         of __ASSUME_32BITUIDS.
11839
11840 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11841
11842         * libio/iofopncook.c: Remove K&R prototypes.
11843
11844 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
11845
11846         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
11847         an initial value of 1024 instead of RLIM_INFINITY.
11848
11849         * Versions.def (libmachuser, libhurduser): Remove these sections,
11850         since these libraries do not presently use symbol versions.
11851
11852         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
11853         is RLIM_INFINITY, return -1 instead.
11854
11855 2000-03-24  Andreas Jaeger  <aj@suse.de>
11856
11857         * Makefile (postclean): Added soversions.i.
11858
11859 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
11860
11861         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
11862         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
11863         and _FPU_IEEE.  Change _FPU_RESERVED.
11864
11865 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
11866
11867         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
11868
11869 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11870
11871         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
11872         (gaih_inet): Remove unused duplicate variable.
11873
11874         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
11875         Don't use __libc_sa_len, which only exists for Linux.  Just handle
11876         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
11877         only flavors supported by this function anyway.
11878
11879 2000-03-24  Geoff Clare  <gwc@unisoft.com>
11880
11881         * stdlib/strfmon.c: Corrected problems with missing signs and
11882         missing or extra spaces; allow for sign strings longer than
11883         one character; add padding to ensure positive and negative
11884         formats are aligned when a left precision is used.
11885
11886 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11887
11888         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
11889         Patch by John Mizel <John.Mizel@msdw.com>.
11890
11891 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
11892
11893         * manual/install.texi: Remove references to crypt add-on.
11894
11895 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
11896
11897         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
11898         section while taking the _hurd_rlimit_lock.
11899         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
11900
11901 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11902
11903         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
11904         using $(LN_S).
11905
11906         * sysdeps/mach/hurd/if_index.c: New file.
11907
11908         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
11909         * sysdeps/gnu/net/if.h: here.
11910         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
11911         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
11912         * sysdeps/generic/net/if.h: New file.  Declares just the standard
11913         functions and `struct if_nameindex' type.
11914         * socket/Makefile (headers): Add net/if.h here.
11915         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
11916         * sysdeps/mach/hurd/Dist: Remove it here.
11917         * sysdeps/unix/sysv/linux/Dist: And here.
11918         * sysdeps/generic/if_index.c: Include <net/if.h>.
11919
11920 2000-03-24  Andreas Jaeger  <aj@suse.de>
11921
11922         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
11923         access relocated entries in l_info.
11924         (elf_machine_got_rel): Likewise.
11925         (elf_machine_runtime_setup): Likewise.
11926         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
11927         (elf_machine_runtime_setup): Likewise.
11928         (__dl_runtime_resolve): Likewise.
11929
11930 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
11931
11932         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
11933         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
11934         according to RFC 2553.
11935         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
11936         * inet/getnameinfo.c: Likewise.
11937         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11938
11939 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11940
11941         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
11942         Remove no-op pointer increment.
11943
11944 2000-03-23  Andreas Jaeger  <aj@suse.de>
11945
11946         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
11947         follow change for libio.h from 2000-03-10.
11948
11949 2000-03-23  Andreas Jaeger  <aj@suse.de>
11950
11951         * elf/dl-addr.c: Adjust include paths for ldsodefs location
11952         change.
11953         * elf/dl-debug.c: Likewise.
11954         * elf/dl-deps.c: Likewise.
11955         * elf/dl-error.c: Likewise.
11956         * elf/dl-fini.c: Likewise.
11957         * elf/dl-init.c: Likewise.
11958         * elf/dl-load.c: Likewise.
11959         * elf/dl-lookup.c: Likewise.
11960         * elf/dl-minimal.c: Likewise.
11961         * elf/dl-object.c: Likewise.
11962         * elf/dl-open.c: Likewise.
11963         * elf/dl-preinit.c: Likewise.
11964         * elf/dl-profile.c: Likewise.
11965         * elf/dl-profstub.c: Likewise.
11966         * elf/dl-reloc.c: Likewise.
11967         * elf/dl-runtime.c: Likewise.
11968         * elf/dl-support.c: Likewise.
11969         * elf/dl-symbol.c: Likewise.
11970         * elf/dl-version.c: Likewise.
11971         * elf/rtld.c: Likewise.
11972         * elf/sprof.c: Likewise.
11973         * sysdeps/generic/dl-cache.c: Likewise.
11974         * sysdeps/generic/dl-origin.c: Likewise.
11975         * sysdeps/generic/dl-sysdep.c: Likewise.
11976         * sysdeps/generic/elf/backtracesyms.c: Likewise.
11977         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11978         * sysdeps/generic/libc-start.c: Likewise.
11979         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11980         * sysdeps/powerpc/dl-machine.c: Likewise.
11981         * sysdeps/powerpc/elf/libc-start.c: Likewise.
11982         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11983         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11984         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
11985
11986         * elf/ldsodefs.h: Move file to ...
11987         * sysdeps/generic/ldsodefs.h: ... here.
11988
11989         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
11990
11991         * sysdeps/mips/elf/ldsodefs.h: New file.
11992
11993         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
11994         entries in l_info.
11995         (_dl_check_map_versions): Likewise.
11996         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11997         * elf/dl-load.c (_dl_init_paths): Likewise.
11998         (_dl_map_object): Likewise.
11999         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
12000         (elf_get_dynamic_info): Likewise.
12001         * elf/do-lookup.h (FCT): Likewise.
12002         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
12003         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
12004         * elf/dl-addr.c (_dl_addr): Likewise.
12005         * elf/dl-runtime.c (profile_fixup): Likewise.
12006         (fixup): Likewise.
12007         * elf/dl-init.c (_dl_init_next): Likewise.
12008         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
12009         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
12010         (DISTINGUISH_LIB_VERSIONS): Likewise.
12011         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
12012         (elf_machine_rel): Likewise.
12013
12014         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
12015         for writable dynamic section.
12016
12017 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
12018
12019         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
12020         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
12021
12022 2000-03-22  Andreas Jaeger  <aj@suse.de>
12023
12024         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
12025         from latest Linux kernel.
12026
12027 2000-03-21  Andreas Jaeger  <aj@suse.de>
12028
12029         * Versions.def: Add version 2.1.4.
12030
12031 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
12032
12033         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
12034         * libio/oldiofopen.c: Likewise.
12035         * libio/oldiofclose.c: Likewise.
12036         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
12037
12038 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
12039
12040         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
12041         indicating the first version set to obsolete the conditionalized code.
12042         (compat_symbol): New macro.
12043         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
12044         rhs be the ABI_* macro for the subsuming version.  Assign increasing
12045         integer values to the ABI_* macros for supported versions.
12046         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
12047         compat_symbol macro.
12048
12049 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
12050
12051         * nscd/connections.c (nscd_run): Pretty print.
12052         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
12053
12054         * manual/charset.texi: Fix typos.  Rephrase.
12055         * manual/process.texi: Likewise.
12056         * manual/signal.texi: Likewise.
12057         Patches by Mike Coleman <mkc@kc.net>.
12058
12059         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
12060         versions.
12061         * libio/iofdopen.c: Likewise.
12062         * libio/iofgetpos.c: Likewise.
12063         * libio/iofgetpos64.c: Likewise.
12064         * libio/iofopen.c: Likewise.
12065         * libio/iofsetpos.c: Likewise.
12066         * libio/iofsetpos64.c: Likewise.
12067         * libio/iopopen.c: Likewise.
12068         * libio/oldiofopen.c: Likewise.
12069         * libio/pclose.c: Likewise.
12070         * sysdeps/gnu/siglist.c: Likewise.
12071         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
12072
12073         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
12074         chance to expand VERSION_##lib##_##version.
12075
12076         * libio/fileops.c: Use new macros from shlib-compat.h to define
12077         versions.
12078         * libio/iofclose.c: Likewise.
12079         * libio/oldiofclose.c: Likewise.
12080         Patch by Roland McGrath <roland@frob.com>.
12081
12082 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
12083
12084         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
12085         Lay out struct sigcontext according to what really gets passed on
12086         the stack.
12087         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
12088         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
12089         (prgregset_t, prfpregset_t): Define to elf_* types.
12090         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
12091         Define to correct value.
12092         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
12093         sigcontext.
12094         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
12095
12096 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
12097
12098         * scripts/firstversions.awk: Allow multiple version sets in the
12099         "earliest version" specification, meaning that version sets in the
12100         gaps between listed versions should be folded into the earliest later
12101         version that is explicitly listed.
12102         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
12103         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
12104
12105 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
12106
12107         * iconv/gconv_builtin.c: Include <endian.h>.
12108         * iconv/gconv_builtin.h: Add UCS-BE aliases.
12109         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
12110         according to current platform.
12111         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
12112         __gconv_transform_internal_ucs2reverse, and
12113         __gconv_transform_internal_ucs4le.
12114         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
12115         __gconv_transform_ucs2reverse_internal and
12116         __gconv_transform_internal_ucs2reverse.
12117         * iconvdata/Makefile (modules): Add UNICODE.
12118         (distribute): Add unicode.c.
12119         * iconvdata/gconv-modules: Add definitions for UNICODE module.
12120         * iconvdata/unicode.c: New file.
12121
12122         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
12123         determine byte order of input and convert accordingly.
12124
12125         * iconvdata/utf-16.c (gconv_init): Fix typo.
12126
12127 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
12128
12129         * iconvdata/gconv-modules: Fix typo.
12130
12131         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
12132         more messages.
12133
12134         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
12135
12136 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
12137
12138         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
12139
12140 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
12141
12142         * misc/Makefile (routines): Add mincore.
12143
12144 2000-03-20  Andreas Jaeger  <aj@suse.de>
12145
12146         * sysdeps/generic/mincore.c: New stub file.
12147
12148         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
12149         from latest Linux kernel.
12150
12151 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
12152
12153         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
12154         _SC_GETPW_R_SIZE_MAX.
12155
12156 2000-03-20  Richard Henderson  <rth@cygnus.com>
12157
12158         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
12159         in GLIBC_2.1.4.
12160
12161 2000-03-20  Richard Henderson  <rth@cygnus.com>
12162
12163         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
12164         of arithmetic instructions.
12165
12166         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
12167         with the fpcr.  Protect from INV exception.
12168         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12169         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
12170         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12171
12172         * sysdeps/alpha/fpu/s_copysign.c: New.
12173         * sysdeps/alpha/fpu/s_copysignf.c: New.
12174         * sysdeps/alpha/fpu/s_fabs.c: New.
12175         * sysdeps/alpha/fpu/s_fabsf.c: New.
12176         * sysdeps/alpha/fpu/s_rint.c: New.
12177         * sysdeps/alpha/fpu/s_rintf.c: New.
12178
12179         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
12180
12181         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
12182         Kill sethae.
12183         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
12184         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
12185         Use physical addresses not KSEG addresses.
12186         (io_system): Add PYXIS.
12187         (io): Remove hae.reg, sys, hae_shift.
12188         (stb_mb, stw_mb, stl_mb, __sethae): New.
12189         (inline_outb, inline_outw, inline_outl): Don't set hae.
12190         (inline_inb, inline_inw, inline_inl): Likewise.
12191         (dense_sethae): New null function.
12192         (struct cpuinfo_data): New.
12193         (process_cpuinfo): Use local and stack variables, not static.
12194         Move readlink check here from init_iosys.
12195         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
12196         (_iopl): Simplify.
12197         (_hae_shift): Calculate it here.
12198         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
12199         add pciconfig_iobase.
12200
12201 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
12202
12203         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
12204         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
12205
12206         * scripts/versions.awk: Fixed version renaming code to distinguish
12207         libraries properly.
12208
12209 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
12210
12211         * include/stdlib.h: Add prototype for __cxa_atexit.
12212
12213         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
12214         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
12215
12216 2000-03-17  Cristian Gafton  <gafton@redhat.com>
12217
12218         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
12219         existing rtld-installed-name.
12220         ($(rtld-installed-name)): Request libc-$(version) be installed too.
12221         replace existing rtld-installed-name using $(symbolic-link-prog).
12222
12223 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
12224
12225         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
12226         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
12227         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
12228         but not the former.
12229
12230 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
12231
12232         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
12233         glob64.  Since there is no glob64 in the LFS proposal applications
12234         can assume that glob handles LFS situations.  glob64 is only needed
12235         if alternative filesystem functions are used.
12236
12237 2000-03-19  Geoff Clare  <gwc@unisoft.com>
12238
12239         * sysdeps/generic/glob.c: Correct gl_pathc value returned
12240         when GLOB_DOOFFS is set; correct handling of patterns
12241         containing escaped wildcards (and no unescaped ones);
12242         GLOB_ERR flag was being ignored in some situations.
12243
12244         * posix/globtest.c, posix/globtest.sh: Updated to include
12245         tests for the problems fixed by the above changes to glob.c.
12246
12247         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
12248
12249 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
12250
12251         * Makeconfig (soversion.i): Use only first match for each lib.
12252
12253         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
12254
12255         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
12256         rather than $(sysd-dirs-done) to protect these rules.
12257
12258         * Makerules (version-renames.def): Target removed.
12259         (Versions.all): Depend on soversions.i directly and parse it.
12260
12261         * Makeconfig (soversions.i): New target, input-reading parts of
12262         soversions.mk generation moved here; result is a canonicalized
12263         list "LIB VERSION [SET]" for this configuration.
12264         (soversions.mk): Use that as input.  Don't emit map-firstversions.
12265         * Makerules (version-renames.def): New target, generated from
12266         soversions.i with contents that was in $(map-firstversions).
12267         (Versions.all): Don't depend on soversions.mk, depend on
12268         version-renames.def instead; just cat it into the input.
12269
12270         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
12271         for $(map-firstversions), which better handles it being empty.
12272
12273         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
12274         supported version for libc 0.2.90.libio to GLIBC_2.2.
12275
12276         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
12277         and use it to emit new variable `map-firstversions'.
12278         * scripts/firstversions.awk: New file.
12279         * Makerules (Versions.all): Use scripts/firstversions.awk and
12280         the $(map-firstversions) value to generate a modified versions list
12281         that includes renames in "A = B" syntax for each version set earlier
12282         than the "earliest symbol version" named in shlib-versions.
12283         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
12284         rename version set A to B in the output to the intermediate file.
12285         * scripts/abi-versions.awk: New file.
12286         * Makerules (abi-versions.h): New target, generated by that script.
12287         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
12288         * include/shlib-compat.h: New file, uses that generated header.
12289
12290 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
12291
12292         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
12293         after stripping # comments, and then run it through cpp.
12294         This allows things like "%ifdef FOO" based on config.h settings.
12295         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
12296
12297         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
12298         and other errors that indicate a pseudo-receive happened, grok through
12299         the message buffer for port rights that need references fixed up.
12300
12301 2000-03-16  Andreas Jaeger  <aj@suse.de>
12302
12303         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
12304
12305         * sysdeps/unix/sysv/linux/madvise.c: Remove.
12306
12307         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
12308         from latest Linux kernel.
12309         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
12310
12311         * misc/sys/mman.h: Add prototype for mincore.
12312
12313 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
12314
12315         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
12316         entry for GLIBC_2.0 version of setrlimit.
12317         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
12318
12319 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
12320
12321         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
12322         * nis/nss_compat/compat-initgroups.c: Likewise.
12323         * nis/nss_nis/nis-initgroups.c: Likewise.
12324         * nis/nss_nis/nis-netgrp.c: Likewise.
12325         * nis/nss_nis/nis-proto.c: Likewise.
12326         * nis/nss_nis/nis-rpc.c: Likewise.
12327         * nis/nss_nis/nis-service.c: Likewise.
12328         * nis/ypclnt.c: Likewise.
12329
12330 2000-03-16  Andreas Jaeger  <aj@suse.de>
12331
12332         * manual/Makefile: MAKEINFO is set to `:' from configure if it
12333         doesn't exist, correct checks.  Fixes PR libc/1649.
12334
12335 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
12336
12337         * nscd/hstcache.c: Restore correct UID.
12338         * nscd/pwdcache.c: Likewise.
12339         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
12340
12341 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
12342
12343         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
12344         macros for register names, in line with 2000-03-14 linux change.
12345
12346         * sysdeps/mach/sched_yield.c: New file.
12347
12348 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
12349
12350         * sysdeps/generic/lockfile.c: Include <stdio.h>
12351         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
12352         case <libio.h> defined them.
12353         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
12354         from __internal_*.
12355         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
12356         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
12357
12358         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
12359         for more pleasing parse error.
12360
12361 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
12362
12363         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
12364         memory for eras.
12365         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
12366
12367         * elf/Makefile: Add rules to compile and run constload1 test.
12368         * elf/constload1.c: New file.
12369         * elf/constload2.c: New file.
12370         * elf/constload3.c: New file.
12371
12372 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
12373
12374         * sysdeps/posix/open64.c: Make __open64 weak alias.
12375         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
12376         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
12377         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
12378         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
12379         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12380         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
12381         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12382         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
12383         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
12384         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12385
12386 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
12387
12388         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
12389         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
12390
12391 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
12392
12393         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
12394         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
12395
12396 2000-03-08  Andreas Jaeger  <aj@suse.de>
12397
12398         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
12399
12400 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
12401
12402         * timezone/africa: Update from tzdata2000d.
12403         * timezone/asia: Likewise.
12404         * timezone/australasia: Likewise.
12405         * timezone/europe: Likewise.
12406         * timezone/northamerica: Likewise.
12407         * timezone/southamerica: Likewise.
12408
12409         * po/fr.po: Update from translation team.
12410         * po/de.po: Likewise.
12411
12412         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
12413         last parameter.  Move code to add map to global scope from here...
12414         * elf/dl-open.c (dl_open_worker): ...here.
12415         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
12416         * elf/rtld.c: Adjust call to _dl_map_object_deps.
12417
12418         * locale/programs/ld-collate.c (collate_read): Fix warning.
12419
12420         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
12421         values and macros for register names.
12422
12423         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
12424         returned by seek cookie function is -1.
12425
12426 2000-03-14  Andreas Jaeger  <aj@suse.de>
12427
12428         * locale/localeconv.c (localeconv): Fix typo.
12429         Reported by Andre Charbonneau <andrec@corel.com>.
12430
12431 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
12432
12433         * iconv/skeleton.c: Increment __invocation_counter in inner loop
12434         since modules depend on it counting the number of times the conversion
12435         function got called.
12436
12437         * iconv/gconv_open.c: Optimize loop to setup step data structure.
12438
12439         * iconv/gconv.h: Pretty print.
12440
12441 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
12442
12443         * posix/wordexp-test.c: Correct one of the tests added in the last
12444         change.  Really get the root passwd entry to check again ~root.
12445
12446 2000-03-10  Andreas Jaeger  <aj@suse.de>
12447
12448         * manual/filesys.texi (Working Directory): Fix last patch.
12449         Patch by Martin Buchholz  <martin@xemacs.org>.
12450
12451 2000-03-10  Andreas Jaeger  <aj@suse.de>
12452
12453         * manual/creature.texi (Feature Test Macros): Fix language.
12454
12455 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
12456
12457         * mach/devstream.c (devstream_write, devstream_read): New functions.
12458         (input, output): Functions removed.
12459         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
12460         using only the vanilla fopencookie interface.
12461
12462         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
12463         as macro for __io_functions.
12464         (funcsio): Use cookie_io_functions_t type name.
12465         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
12466
12467         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
12468         fopencookie.
12469         (fopencookie): Use it.
12470         * libio/libio.h: Declare _IO_cookie_init.
12471         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
12472         _IO_cookie_init.
12473
12474         * libio/libio.h (__io_seek_fn): Fix second argument type
12475         to be a pointer, in line with the manual and the old stdio.
12476         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
12477
12478         * sysdeps/generic/bits/stdio-lock.h: New file.
12479         This is a stub with #error, but that's better than no file at all.
12480
12481 2000-03-09  Martin Buchholz  <martin@xemacs.org>
12482
12483         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
12484         * manual/message.texi (Using gettextized software): Doc Fixes.
12485         * manual/message.texi (Message Translation): Doc Fixes.
12486         * manual/filesys.texi (File Size): Doc Fixes.
12487         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
12488         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
12489         * iconv/gconv_db.c (find_derivation): Doc Fixes.
12490         * manual/install.texi: Doc Fixes.
12491         * manual/search.texi (Hash Search Function): Doc Fixes.
12492         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
12493         * FAQ.in: Doc Fixes.
12494         * config.h.in: Doc Fixes.
12495         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
12496         Doc Fixes.  `allows to' is not correct English.
12497
12498         * elf/rtld.c: Doc fixes.
12499         * manual/creature.texi (Feature Test Macros): Doc fixes.
12500         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
12501
12502         * manual/filesys.texi (Working Directory): Check for ERANGE to
12503         avoid infloop.
12504
12505 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
12506
12507         * string/argz-stringify.c (__argz_stringify): Fix loop termination
12508         conditions so as not to clobber the final '\0' when there is only one
12509         element in the vector.
12510
12511 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
12512
12513         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
12514         broken by 2000-02-27 change.
12515
12516         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
12517
12518 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
12519
12520         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
12521         argument type, for 2000-02-22 change in signal/signal.h declaration.
12522
12523 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
12524
12525         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
12526         to getdirentries64 (no __), since the Linux implementation
12527         has no __ name, and there is no declaration for the __ name.
12528
12529         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
12530
12531         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
12532         sed regexp so as not to break directory names including /../ within.
12533
12534         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
12535         The sysdeps/generic file is right for BSD.  This file was in fact the
12536         Hurd file, but the only difference was the WNOREAP flag that was never
12537         actually implemented or used anywhere.
12538
12539         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
12540         since AC_PATH_PROG already does it for us.
12541         (PERL): Rewrite check added in 2000-02-29 change for syntactic
12542         correctness and sh portability.  I replaced the broken check
12543         with a more sensible implementation of the apparently intended
12544         semantics, which might still be questionable.  Using expr causes
12545         a non-numeric value for `perl -V:apiversion` to be accepted,
12546         refusing to use only a perl that reports a number less than 5;
12547         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
12548         * configure: Regenerated.
12549
12550 2000-03-08  Andreas Jaeger  <aj@suse.de>
12551
12552         * manual/crypt.texi: Fix paths.
12553
12554 2000-03-07  Andreas Jaeger  <aj@suse.de>
12555
12556         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
12557         were swapped.
12558         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
12559         libc/1636.
12560
12561 2000-03-06  Andreas Jaeger  <aj@suse.de>
12562
12563         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
12564         in __sgn1l, otherwise g++ fails to parse this.
12565         Reported by Sean Chen <sean.chen@turbolinux.com>.
12566
12567 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
12568
12569         * configure.in: Compute sizeof-long-double.
12570         * configure: Regenerated.
12571         * config.make.in: Make sizeof-long-double available to sub-makes.
12572
12573 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
12574
12575         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
12576         call.
12577
12578 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
12579
12580         * Makeconfig (rpath-dirs): Add crypt.
12581         (all-subdirs): Remove md5crypt.
12582         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
12583         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
12584         * sysdeps/generic/crypt-entry.c: Delete.
12585         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
12586         * sysdeps/generic/crypt.h: Delete.
12587         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
12588         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
12589         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
12590         * sysdeps/generic/des_impl.c: Delete.
12591         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
12592         * crypt/sysdeps: Delete.
12593         * crypt/crypt_util.c: Don't use `patchlevel.h'.
12594         * md5-crypt/Versions: Move to crypt/.
12595         * md5-crypt/md5-crypt.c: Move to crypt/.
12596         * md5-crypt/md5.c: Move to crypt/.
12597         * md5-crypt/md5c-test.c: Move to crypt/.
12598         * md5-crypt/md5test.c: Move to crypt/.
12599         * md5-crypt: Delete.
12600         * crypt/Makefile: Adjust for new structure.
12601
12602 2000-03-03  Paul Eggert  <eggert@twinsun.com>
12603
12604         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
12605         define to 1 if not defined.
12606
12607 2000-03-03  Andreas Jaeger  <aj@suse.de>
12608
12609         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
12610
12611 2000-03-03  Andreas Jaeger  <aj@suse.de>
12612
12613         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
12614         cases.
12615         (xdr_int64_t): Correctly handle lower half.
12616         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
12617
12618 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
12619
12620         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
12621         call.
12622
12623 2000-03-02  Andreas Jaeger  <aj@suse.de>
12624
12625         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
12626         2.3.43.
12627
12628 2000-03-02  Andreas Jaeger  <aj@suse.de>
12629
12630         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
12631
12632 2000-03-01  Andreas Jaeger  <aj@suse.de>
12633
12634         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
12635         (tests): Added tst-getdate.
12636
12637         * time/tst-getdate.c: New file.
12638
12639         * time/datemsk: New file, needed for tst-getdate.
12640
12641 2000-02-29  Cristian Gafton  <gafton@redhat.com>
12642
12643         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
12644
12645 2000-02-17  H.J. Lu  <hjl@gnu.org>
12646
12647         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
12648
12649         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
12650         available.
12651         (svcudp_recv): Set up message with the new "xp_pad" field for
12652         IP_PKTINFO.
12653         (svcudp_reply): Support IP_PKTINFO if available.
12654
12655 2000-03-01  Andreas Jaeger  <aj@suse.de>
12656
12657         * time/getdate.c (check_mday): Fix check for february.
12658         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
12659         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
12660
12661 2000-03-02  Andreas Jaeger  <aj@suse.de>
12662
12663         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
12664         g++ fails to parse this.
12665         Reported by Sean Chen <sean.chen@turbolinux.com>.
12666
12667 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
12668
12669         * io/creat.c: Moved to...
12670         * sysdeps/generic/creat.c: ...here.
12671         * io/creat64.c: Moved to...
12672         * sysdeps/generic/creat64.c: ...here.
12673         * io/lockf.c: Moved to...
12674         * sysdeps/generic/lockf.c: ...here.
12675
12676         * crypt/crypt.texi: Moved to...
12677         * manual/crypt.texi: ...here.
12678         * crypt/examples/genpass.c: Moved to...
12679         * manual/examples/genpass.c: ...here.
12680         * crypt/examples/mygenpass.c: Moved to...
12681         * manual/examples/mygenpass.c: ...here.
12682         * crypt/examples/testpass.c: Moved to...
12683         * manual/examples/testpass.c: ...here.
12684
12685         * manual/Makefile (chapters): Add crypt.
12686         * manual/conf.texi: Add usual header for not-last chapter.
12687         * manual/crypt.texi: Add special header for last chapter.
12688
12689 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
12690
12691         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
12692         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
12693         complain if there is no crypt add-on.
12694         * crypt/configure: Removed.
12695
12696         * crypt/crypt.texi: Update documentation of US export restrictions
12697         to match the 14 Jan 2000 regulations.
12698
12699 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
12700
12701         * crypt: New subdirectory, merged in from the crypt add-on.
12702
12703 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
12704
12705         * include/unistd.h: Add __rmdir and __mkdir prototypes.
12706
12707
12708 See ChangeLog.10 for earlier changes.